Skip to content

Commit

Permalink
Merge pull request #565 from codatio/speakeasy-sdk-regen-1730230313
Browse files Browse the repository at this point in the history
chore: 🐝 Update SDK - Generate Platform library PLATFORM-LIBRARY 4.0.0
  • Loading branch information
dcoplowe authored Oct 29, 2024
2 parents a2b350a + e0bc5ab commit 1eda6d5
Show file tree
Hide file tree
Showing 153 changed files with 2,383 additions and 3,137 deletions.
8 changes: 4 additions & 4 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ sources:
- main
platform-source:
sourceNamespace: platform-source
sourceRevisionDigest: sha256:9d1b7d84cf409ce52032d4c8b3e484355297cdc001d4d9169d5df5301efecabc
sourceBlobDigest: sha256:e1e3f4c3ed16022322bc656bb0e4ef28c04fff8c92c271cc859c6e2b32af5613
sourceRevisionDigest: sha256:79f704c98bf458bc595e6607b6bf1fc95a6ba5da522953eedbba8fc9cce25e21
sourceBlobDigest: sha256:e4fb24c2ca300a5005adef27857ad9afba70f056e51a84fb38368609c61cafc8
tags:
- latest
- main
Expand Down Expand Up @@ -156,8 +156,8 @@ targets:
platform-library:
source: platform-source
sourceNamespace: platform-source
sourceRevisionDigest: sha256:9d1b7d84cf409ce52032d4c8b3e484355297cdc001d4d9169d5df5301efecabc
sourceBlobDigest: sha256:e1e3f4c3ed16022322bc656bb0e4ef28c04fff8c92c271cc859c6e2b32af5613
sourceRevisionDigest: sha256:79f704c98bf458bc595e6607b6bf1fc95a6ba5da522953eedbba8fc9cce25e21
sourceBlobDigest: sha256:e4fb24c2ca300a5005adef27857ad9afba70f056e51a84fb38368609c61cafc8
sync-for-commerce-library:
source: sync-for-commerce-source
sourceNamespace: sync-for-commerce-source
Expand Down
119 changes: 77 additions & 42 deletions platform/.speakeasy/gen.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion platform/.speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ generation:
oAuth2ClientCredentialsEnabled: false
telemetryEnabled: true
go:
version: 3.4.0
version: 4.0.0
additionalDependencies: {}
allowUnknownFieldsInWeakUnions: false
clientServerStatusCodesAsErrors: true
Expand Down
71 changes: 31 additions & 40 deletions platform/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ These end points cover creating and managing your companies, data connections, a
| Companies | Create and manage your SMB users' companies. |
| Connections | Create new and manage existing data connections for a company. |
| Connection management | Configure connection management UI and retrieve access tokens for authentication. |
| Groups | Define and manage sets of companies based on a chosen characteristic. |
| Webhooks | Create and manage webhooks that listen to Codat's events. |
| Integrations | Get a list of integrations supported by Codat and their logos. |
| Refresh data | Initiate data refreshes, view pull status and history. |
Expand All @@ -46,7 +45,6 @@ These end points cover creating and managing your companies, data connections, a
* [Server Selection](#server-selection)
* [Custom HTTP Client](#custom-http-client)
* [Authentication](#authentication)
* [Special Types](#special-types)
<!-- End Table of Contents [toc] -->

<!-- Start SDK Installation [installation] -->
Expand All @@ -69,8 +67,8 @@ package main

import (
"context"
platform "github.com/codatio/client-sdk-go/platform/v3"
"github.com/codatio/client-sdk-go/platform/v3/pkg/models/shared"
platform "github.com/codatio/client-sdk-go/platform/v4"
"github.com/codatio/client-sdk-go/platform/v4/pkg/models/shared"
"log"
)

Expand Down Expand Up @@ -105,10 +103,12 @@ func main() {

### [Companies](docs/sdks/companies/README.md)

* [AddProduct](docs/sdks/companies/README.md#addproduct) - Add product
* [Create](docs/sdks/companies/README.md#create) - Create company
* [Delete](docs/sdks/companies/README.md#delete) - Delete a company
* [Get](docs/sdks/companies/README.md#get) - Get company
* [List](docs/sdks/companies/README.md#list) - List companies
* [RemoveProduct](docs/sdks/companies/README.md#removeproduct) - Remove product
* [Update](docs/sdks/companies/README.md#update) - Update company

### [ConnectionManagement](docs/sdks/connectionmanagement/README.md)
Expand Down Expand Up @@ -136,13 +136,6 @@ func main() {
* [List](docs/sdks/customdatatype/README.md#list) - List custom data type records
* [Refresh](docs/sdks/customdatatype/README.md#refresh) - Refresh custom data type

### [Groups](docs/sdks/groups/README.md)

* [AddCompany](docs/sdks/groups/README.md#addcompany) - Add company
* [Create](docs/sdks/groups/README.md#create) - Create group
* [List](docs/sdks/groups/README.md#list) - List groups
* [RemoveCompany](docs/sdks/groups/README.md#removecompany) - Remove company

### [Integrations](docs/sdks/integrations/README.md)

* [Get](docs/sdks/integrations/README.md#get) - Get integration
Expand Down Expand Up @@ -180,11 +173,11 @@ func main() {

### [Webhooks](docs/sdks/webhooks/README.md)

* [~~Create~~](docs/sdks/webhooks/README.md#create) - Create webhook :warning: **Deprecated**
* [~~Create~~](docs/sdks/webhooks/README.md#create) - Create webhook (legacy) :warning: **Deprecated**
* [CreateConsumer](docs/sdks/webhooks/README.md#createconsumer) - Create webhook consumer
* [DeleteConsumer](docs/sdks/webhooks/README.md#deleteconsumer) - Delete webhook consumer
* [~~Get~~](docs/sdks/webhooks/README.md#get) - Get webhook :warning: **Deprecated**
* [~~List~~](docs/sdks/webhooks/README.md#list) - List webhooks :warning: **Deprecated**
* [~~Get~~](docs/sdks/webhooks/README.md#get) - Get webhook (legacy) :warning: **Deprecated**
* [~~List~~](docs/sdks/webhooks/README.md#list) - List webhooks (legacy) :warning: **Deprecated**
* [ListConsumers](docs/sdks/webhooks/README.md#listconsumers) - List webhook consumers

</details>
Expand All @@ -194,12 +187,6 @@ func main() {



<!-- Start Special Types [types] -->
## Special Types


<!-- End Special Types [types] -->

<!-- Start Retries [retries] -->
## Retries

Expand All @@ -211,9 +198,9 @@ package main

import (
"context"
platform "github.com/codatio/client-sdk-go/platform/v3"
"github.com/codatio/client-sdk-go/platform/v3/pkg/models/shared"
"github.com/codatio/client-sdk-go/platform/v3/pkg/retry"
platform "github.com/codatio/client-sdk-go/platform/v4"
"github.com/codatio/client-sdk-go/platform/v4/pkg/models/shared"
"github.com/codatio/client-sdk-go/platform/v4/pkg/retry"
"log"
"pkg/models/operations"
)
Expand Down Expand Up @@ -255,9 +242,9 @@ package main

import (
"context"
platform "github.com/codatio/client-sdk-go/platform/v3"
"github.com/codatio/client-sdk-go/platform/v3/pkg/models/shared"
"github.com/codatio/client-sdk-go/platform/v3/pkg/retry"
platform "github.com/codatio/client-sdk-go/platform/v4"
"github.com/codatio/client-sdk-go/platform/v4/pkg/models/shared"
"github.com/codatio/client-sdk-go/platform/v4/pkg/retry"
"log"
)

Expand Down Expand Up @@ -297,12 +284,16 @@ func main() {
<!-- Start Error Handling [errors] -->
## Error Handling

Handling errors in this SDK should largely match your expectations. All operations return a response object or an error, they will never return both. When specified by the OpenAPI spec document, the SDK will return the appropriate subclass.
Handling errors in this SDK should largely match your expectations. All operations return a response object or an error, they will never return both.

By Default, an API error will return `sdkerrors.SDKError`. When custom error responses are specified for an operation, the SDK may also return their associated error. You can refer to respective *Errors* tables in SDK docs for more details on possible error types for each operation.

For example, the `CreateAPIKey` function may return the following errors:

| Error Object | Status Code | Content Type |
| ------------------------------- | ------------------------------- | ------------------------------- |
| sdkerrors.ErrorMessage | 400,401,402,403,409,429,500,503 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* |
| Error Type | Status Code | Content Type |
| -------------------------------------- | -------------------------------------- | -------------------------------------- |
| sdkerrors.ErrorMessage | 400, 401, 402, 403, 409, 429, 500, 503 | application/json |
| sdkerrors.SDKError | 4XX, 5XX | \*/\* |

### Example

Expand All @@ -312,9 +303,9 @@ package main
import (
"context"
"errors"
platform "github.com/codatio/client-sdk-go/platform/v3"
"github.com/codatio/client-sdk-go/platform/v3/pkg/models/sdkerrors"
"github.com/codatio/client-sdk-go/platform/v3/pkg/models/shared"
platform "github.com/codatio/client-sdk-go/platform/v4"
"github.com/codatio/client-sdk-go/platform/v4/pkg/models/sdkerrors"
"github.com/codatio/client-sdk-go/platform/v4/pkg/models/shared"
"log"
)

Expand Down Expand Up @@ -366,8 +357,8 @@ package main

import (
"context"
platform "github.com/codatio/client-sdk-go/platform/v3"
"github.com/codatio/client-sdk-go/platform/v3/pkg/models/shared"
platform "github.com/codatio/client-sdk-go/platform/v4"
"github.com/codatio/client-sdk-go/platform/v4/pkg/models/shared"
"log"
)

Expand Down Expand Up @@ -402,8 +393,8 @@ package main

import (
"context"
platform "github.com/codatio/client-sdk-go/platform/v3"
"github.com/codatio/client-sdk-go/platform/v3/pkg/models/shared"
platform "github.com/codatio/client-sdk-go/platform/v4"
"github.com/codatio/client-sdk-go/platform/v4/pkg/models/shared"
"log"
)

Expand Down Expand Up @@ -476,8 +467,8 @@ package main

import (
"context"
platform "github.com/codatio/client-sdk-go/platform/v3"
"github.com/codatio/client-sdk-go/platform/v3/pkg/models/shared"
platform "github.com/codatio/client-sdk-go/platform/v4"
"github.com/codatio/client-sdk-go/platform/v4/pkg/models/shared"
"log"
)

Expand Down
12 changes: 11 additions & 1 deletion platform/RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,14 @@ Based on:
### Generated
- [go v3.4.0] platform
### Releases
- [Go v3.4.0] https://github.com/codatio/client-sdk-go/releases/tag/platform/v3.4.0 - platform
- [Go v3.4.0] https://github.com/codatio/client-sdk-go/releases/tag/platform/v3.4.0 - platform

## 2024-10-29 19:31:45
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.423.1 (2.442.11) https://github.com/speakeasy-api/speakeasy
### Generated
- [go v4.0.0] platform
### Releases
- [Go v4.0.0] https://github.com/codatio/client-sdk-go/releases/tag/platform/v4.0.0 - platform
4 changes: 2 additions & 2 deletions platform/USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ package main

import (
"context"
platform "github.com/codatio/client-sdk-go/platform/v3"
"github.com/codatio/client-sdk-go/platform/v3/pkg/models/shared"
platform "github.com/codatio/client-sdk-go/platform/v4"
"github.com/codatio/client-sdk-go/platform/v4/pkg/models/shared"
"log"
)

Expand Down
19 changes: 7 additions & 12 deletions platform/codatplatform.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ package platform
import (
"context"
"fmt"
"github.com/codatio/client-sdk-go/platform/v3/internal/hooks"
"github.com/codatio/client-sdk-go/platform/v3/pkg/models/shared"
"github.com/codatio/client-sdk-go/platform/v3/pkg/retry"
"github.com/codatio/client-sdk-go/platform/v3/pkg/utils"
"github.com/codatio/client-sdk-go/platform/v4/internal/hooks"
"github.com/codatio/client-sdk-go/platform/v4/pkg/models/shared"
"github.com/codatio/client-sdk-go/platform/v4/pkg/retry"
"github.com/codatio/client-sdk-go/platform/v4/pkg/utils"
"net/http"
"time"
)
Expand Down Expand Up @@ -84,7 +84,6 @@ func (c *sdkConfiguration) GetServerDetails() (string, map[string]string) {
// | Companies | Create and manage your SMB users' companies. |
// | Connections | Create new and manage existing data connections for a company. |
// | Connection management | Configure connection management UI and retrieve access tokens for authentication. |
// | Groups | Define and manage sets of companies based on a chosen characteristic. |
// | Webhooks | Create and manage webhooks that listen to Codat's events. |
// | Integrations | Get a list of integrations supported by Codat and their logos. |
// | Refresh data | Initiate data refreshes, view pull status and history. |
Expand All @@ -108,8 +107,6 @@ type CodatPlatform struct {
PushData *PushData
// Initiate data refreshes, view pull status and history.
RefreshData *RefreshData
// Define and manage sets of companies based on a chosen characteristic.
Groups *Groups
// Get a list of integrations supported by Codat and their logos.
Integrations *Integrations
// Configure and pull additional data you can include in Codat's standard data types.
Expand Down Expand Up @@ -193,9 +190,9 @@ func New(opts ...SDKOption) *CodatPlatform {
sdkConfiguration: sdkConfiguration{
Language: "go",
OpenAPIDocVersion: "3.0.0",
SDKVersion: "3.4.0",
GenVersion: "2.415.6",
UserAgent: "speakeasy-sdk/go 3.4.0 2.415.6 3.0.0 github.com/codatio/client-sdk-go/platform",
SDKVersion: "4.0.0",
GenVersion: "2.442.11",
UserAgent: "speakeasy-sdk/go 4.0.0 2.442.11 3.0.0 github.com/codatio/client-sdk-go/platform",
Hooks: hooks.New(),
},
}
Expand Down Expand Up @@ -229,8 +226,6 @@ func New(opts ...SDKOption) *CodatPlatform {

sdk.RefreshData = newRefreshData(sdk.sdkConfiguration)

sdk.Groups = newGroups(sdk.sdkConfiguration)

sdk.Integrations = newIntegrations(sdk.sdkConfiguration)

sdk.SupplementalData = newSupplementalData(sdk.sdkConfiguration)
Expand Down
Loading

0 comments on commit 1eda6d5

Please sign in to comment.