Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.469.11
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Jan 21, 2025
1 parent 184ec77 commit 0437b90
Show file tree
Hide file tree
Showing 147 changed files with 5,435 additions and 1,847 deletions.
2,012 changes: 1,079 additions & 933 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ generation:
oAuth2ClientCredentialsEnabled: true
oAuth2PasswordEnabled: true
go:
version: 0.3.4
version: 0.4.0
additionalDependencies: {}
allowUnknownFieldsInWeakUnions: false
clientServerStatusCodesAsErrors: true
Expand Down
16 changes: 8 additions & 8 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
speakeasyVersion: 1.468.5
speakeasyVersion: 1.469.11
sources:
Apideck:
sourceNamespace: apideck
sourceRevisionDigest: sha256:71bffe486ff782ac3f79fc11eab840312c8c780171831f2a77897f24b0d38d61
sourceBlobDigest: sha256:e49054352f142b1d04915c13e5da0a7ab0a031c52609cf3b00a1a7c46cbc6970
sourceRevisionDigest: sha256:134368dcb449cf5302b82c436c42a15bb7aa4cb6aaa739b038769822793a70e3
sourceBlobDigest: sha256:ebfccb50c6a46288e3e9f63e7b625c7159d42bf841eb324d785c7fdfbb82ba04
tags:
- latest
- speakeasy-sdk-regen-1736865343
- 10.9.1
- speakeasy-sdk-regen-1737099259
- 10.10.0
targets:
apideck:
source: Apideck
sourceNamespace: apideck
sourceRevisionDigest: sha256:71bffe486ff782ac3f79fc11eab840312c8c780171831f2a77897f24b0d38d61
sourceBlobDigest: sha256:e49054352f142b1d04915c13e5da0a7ab0a031c52609cf3b00a1a7c46cbc6970
sourceRevisionDigest: sha256:134368dcb449cf5302b82c436c42a15bb7aa4cb6aaa739b038769822793a70e3
sourceBlobDigest: sha256:ebfccb50c6a46288e3e9f63e7b625c7159d42bf841eb324d785c7fdfbb82ba04
codeSamplesNamespace: apideck-go-code-samples
codeSamplesRevisionDigest: sha256:5c57f361fde695b59660b12a6961d1cc1dbd2f530b9d129568f89b96da33a821
codeSamplesRevisionDigest: sha256:c7385aeebef15dc750540c6371ff18b385427b07cebc8713e19bda587b8d9fc3
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
37 changes: 36 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ func main() {
)

res, err := s.Accounting.TaxRates.List(ctx, operations.AccountingTaxRatesAllRequest{
Raw: sdkgo.Bool(false),
ServiceID: sdkgo.String("salesforce"),
Limit: sdkgo.Int64(20),
Filter: &components.TaxRatesFilter{
Assets: sdkgo.Bool(true),
Equity: sdkgo.Bool(true),
Expand Down Expand Up @@ -144,7 +146,9 @@ func main() {
)

res, err := s.Accounting.TaxRates.List(ctx, operations.AccountingTaxRatesAllRequest{
Raw: sdkgo.Bool(false),
ServiceID: sdkgo.String("salesforce"),
Limit: sdkgo.Int64(20),
Filter: &components.TaxRatesFilter{
Assets: sdkgo.Bool(true),
Equity: sdkgo.Bool(true),
Expand Down Expand Up @@ -737,7 +741,9 @@ func main() {
)

res, err := s.Accounting.TaxRates.List(ctx, operations.AccountingTaxRatesAllRequest{
Raw: sdkgo.Bool(false),
ServiceID: sdkgo.String("salesforce"),
Limit: sdkgo.Int64(20),
Filter: &components.TaxRatesFilter{
Assets: sdkgo.Bool(true),
Equity: sdkgo.Bool(true),
Expand Down Expand Up @@ -803,7 +809,9 @@ func main() {
)

res, err := s.Accounting.TaxRates.List(ctx, operations.AccountingTaxRatesAllRequest{
Raw: sdkgo.Bool(false),
ServiceID: sdkgo.String("salesforce"),
Limit: sdkgo.Int64(20),
Filter: &components.TaxRatesFilter{
Assets: sdkgo.Bool(true),
Equity: sdkgo.Bool(true),
Expand Down Expand Up @@ -883,7 +891,9 @@ func main() {
)

res, err := s.Accounting.TaxRates.List(ctx, operations.AccountingTaxRatesAllRequest{
Raw: sdkgo.Bool(false),
ServiceID: sdkgo.String("salesforce"),
Limit: sdkgo.Int64(20),
Filter: &components.TaxRatesFilter{
Assets: sdkgo.Bool(true),
Equity: sdkgo.Bool(true),
Expand Down Expand Up @@ -963,7 +973,9 @@ func main() {
)

res, err := s.Accounting.TaxRates.List(ctx, operations.AccountingTaxRatesAllRequest{
Raw: sdkgo.Bool(false),
ServiceID: sdkgo.String("salesforce"),
Limit: sdkgo.Int64(20),
Filter: &components.TaxRatesFilter{
Assets: sdkgo.Bool(true),
Equity: sdkgo.Bool(true),
Expand Down Expand Up @@ -1048,7 +1060,9 @@ func main() {
)

res, err := s.Accounting.TaxRates.List(ctx, operations.AccountingTaxRatesAllRequest{
Raw: sdkgo.Bool(false),
ServiceID: sdkgo.String("salesforce"),
Limit: sdkgo.Int64(20),
Filter: &components.TaxRatesFilter{
Assets: sdkgo.Bool(true),
Equity: sdkgo.Bool(true),
Expand Down Expand Up @@ -1134,8 +1148,29 @@ func main() {
},
},
},
components.PassThroughBody{
ServiceID: "<id>",
ExtendPaths: []components.ExtendPaths{
components.ExtendPaths{
Path: "$.nested.property",
Value: map[string]any{
"TaxClassificationRef": map[string]any{
"value": "EUC-99990201-V1-00020000",
},
},
},
components.ExtendPaths{
Path: "$.nested.property",
Value: map[string]any{
"TaxClassificationRef": map[string]any{
"value": "EUC-99990201-V1-00020000",
},
},
},
},
},
},
}, nil, sdkgo.String("salesforce"), operations.WithServerURL("https://upload.apideck.com"))
}, sdkgo.Bool(false), sdkgo.String("salesforce"), operations.WithServerURL("https://upload.apideck.com"))
if err != nil {
log.Fatal(err)
}
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,14 @@ Based on:
### Generated
- [go v0.3.4] .
### Releases
- [Go v0.3.4] https://github.com/apideck-libraries/sdk-go/releases/tag/v0.3.4 - .
- [Go v0.3.4] https://github.com/apideck-libraries/sdk-go/releases/tag/v0.3.4 - .

## 2025-01-21 00:21:25
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.469.11 (2.493.32) https://github.com/speakeasy-api/speakeasy
### Generated
- [go v0.4.0] .
### Releases
- [Go v0.4.0] https://github.com/apideck-libraries/sdk-go/releases/tag/v0.4.0 - .
2 changes: 2 additions & 0 deletions USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ func main() {
)

res, err := s.Accounting.TaxRates.List(ctx, operations.AccountingTaxRatesAllRequest{
Raw: sdkgo.Bool(false),
ServiceID: sdkgo.String("salesforce"),
Limit: sdkgo.Int64(20),
Filter: &components.TaxRatesFilter{
Assets: sdkgo.Bool(true),
Equity: sdkgo.Bool(true),
Expand Down
30 changes: 25 additions & 5 deletions activities.go
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,11 @@ func (s *Activities) List(ctx context.Context, request operations.CrmActivitiesA
return nil, apierrors.NewAPIError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500:
fallthrough
rawBody, err := utils.ConsumeRawBody(httpRes)
if err != nil {
return nil, err
}
return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes)
case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600:
rawBody, err := utils.ConsumeRawBody(httpRes)
if err != nil {
Expand Down Expand Up @@ -725,7 +729,11 @@ func (s *Activities) Create(ctx context.Context, activity components.ActivityInp
return nil, apierrors.NewAPIError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500:
fallthrough
rawBody, err := utils.ConsumeRawBody(httpRes)
if err != nil {
return nil, err
}
return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes)
case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600:
rawBody, err := utils.ConsumeRawBody(httpRes)
if err != nil {
Expand Down Expand Up @@ -1066,7 +1074,11 @@ func (s *Activities) Get(ctx context.Context, id string, serviceID *string, raw
return nil, apierrors.NewAPIError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500:
fallthrough
rawBody, err := utils.ConsumeRawBody(httpRes)
if err != nil {
return nil, err
}
return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes)
case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600:
rawBody, err := utils.ConsumeRawBody(httpRes)
if err != nil {
Expand Down Expand Up @@ -1415,7 +1427,11 @@ func (s *Activities) Update(ctx context.Context, id string, activity components.
return nil, apierrors.NewAPIError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500:
fallthrough
rawBody, err := utils.ConsumeRawBody(httpRes)
if err != nil {
return nil, err
}
return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes)
case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600:
rawBody, err := utils.ConsumeRawBody(httpRes)
if err != nil {
Expand Down Expand Up @@ -1755,7 +1771,11 @@ func (s *Activities) Delete(ctx context.Context, id string, serviceID *string, r
return nil, apierrors.NewAPIError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500:
fallthrough
rawBody, err := utils.ConsumeRawBody(httpRes)
if err != nil {
return nil, err
}
return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes)
case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600:
rawBody, err := utils.ConsumeRawBody(httpRes)
if err != nil {
Expand Down
6 changes: 5 additions & 1 deletion ageddebtors.go
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,11 @@ func (s *AgedDebtors) Get(ctx context.Context, request operations.AccountingAged
return nil, apierrors.NewAPIError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500:
fallthrough
rawBody, err := utils.ConsumeRawBody(httpRes)
if err != nil {
return nil, err
}
return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes)
case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600:
rawBody, err := utils.ConsumeRawBody(httpRes)
if err != nil {
Expand Down
8 changes: 4 additions & 4 deletions apideck.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,10 +193,10 @@ func New(opts ...SDKOption) *Apideck {
sdk := &Apideck{
sdkConfiguration: sdkConfiguration{
Language: "go",
OpenAPIDocVersion: "10.9.1",
SDKVersion: "0.3.4",
GenVersion: "2.493.11",
UserAgent: "speakeasy-sdk/go 0.3.4 2.493.11 10.9.1 github.com/apideck-libraries/sdk-go",
OpenAPIDocVersion: "10.10.0",
SDKVersion: "0.4.0",
GenVersion: "2.493.32",
UserAgent: "speakeasy-sdk/go 0.4.0 2.493.32 10.10.0 github.com/apideck-libraries/sdk-go",
Globals: globals.Globals{},
Hooks: hooks.New(),
},
Expand Down
30 changes: 25 additions & 5 deletions apideckcompanies.go
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,11 @@ func (s *ApideckCompanies) List(ctx context.Context, request operations.HrisComp
return nil, apierrors.NewAPIError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500:
fallthrough
rawBody, err := utils.ConsumeRawBody(httpRes)
if err != nil {
return nil, err
}
return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes)
case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600:
rawBody, err := utils.ConsumeRawBody(httpRes)
if err != nil {
Expand Down Expand Up @@ -723,7 +727,11 @@ func (s *ApideckCompanies) Create(ctx context.Context, hrisCompany components.Hr
return nil, apierrors.NewAPIError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500:
fallthrough
rawBody, err := utils.ConsumeRawBody(httpRes)
if err != nil {
return nil, err
}
return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes)
case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600:
rawBody, err := utils.ConsumeRawBody(httpRes)
if err != nil {
Expand Down Expand Up @@ -1064,7 +1072,11 @@ func (s *ApideckCompanies) Get(ctx context.Context, id string, serviceID *string
return nil, apierrors.NewAPIError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500:
fallthrough
rawBody, err := utils.ConsumeRawBody(httpRes)
if err != nil {
return nil, err
}
return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes)
case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600:
rawBody, err := utils.ConsumeRawBody(httpRes)
if err != nil {
Expand Down Expand Up @@ -1413,7 +1425,11 @@ func (s *ApideckCompanies) Update(ctx context.Context, id string, hrisCompany co
return nil, apierrors.NewAPIError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500:
fallthrough
rawBody, err := utils.ConsumeRawBody(httpRes)
if err != nil {
return nil, err
}
return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes)
case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600:
rawBody, err := utils.ConsumeRawBody(httpRes)
if err != nil {
Expand Down Expand Up @@ -1753,7 +1769,11 @@ func (s *ApideckCompanies) Delete(ctx context.Context, id string, serviceID *str
return nil, apierrors.NewAPIError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500:
fallthrough
rawBody, err := utils.ConsumeRawBody(httpRes)
if err != nil {
return nil, err
}
return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes)
case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600:
rawBody, err := utils.ConsumeRawBody(httpRes)
if err != nil {
Expand Down
12 changes: 10 additions & 2 deletions apideckcustomers.go
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,11 @@ func (s *ApideckCustomers) List(ctx context.Context, request operations.Ecommerc
return nil, apierrors.NewAPIError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500:
fallthrough
rawBody, err := utils.ConsumeRawBody(httpRes)
if err != nil {
return nil, err
}
return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes)
case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600:
rawBody, err := utils.ConsumeRawBody(httpRes)
if err != nil {
Expand Down Expand Up @@ -717,7 +721,11 @@ func (s *ApideckCustomers) Get(ctx context.Context, id string, serviceID *string
return nil, apierrors.NewAPIError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500:
fallthrough
rawBody, err := utils.ConsumeRawBody(httpRes)
if err != nil {
return nil, err
}
return nil, apierrors.NewAPIError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes)
case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600:
rawBody, err := utils.ConsumeRawBody(httpRes)
if err != nil {
Expand Down
Loading

0 comments on commit 0437b90

Please sign in to comment.