Skip to content

Commit

Permalink
Merge pull request #13 from apideck-libraries/speakeasy-sdk-regen-173…
Browse files Browse the repository at this point in the history
…7468496

chore: 🐝 Update SDK - Generate 0.5.0
  • Loading branch information
Amzani authored Jan 21, 2025
2 parents fc93c00 + 1714815 commit 528c8e7
Show file tree
Hide file tree
Showing 887 changed files with 18,250 additions and 13,487 deletions.
60 changes: 31 additions & 29 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.4.0
version: 0.5.0
additionalDependencies: {}
allowUnknownFieldsInWeakUnions: false
clientServerStatusCodesAsErrors: true
Expand Down
14 changes: 7 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
speakeasyVersion: 1.469.11
speakeasyVersion: 1.469.12
sources:
Apideck:
sourceNamespace: apideck
sourceRevisionDigest: sha256:134368dcb449cf5302b82c436c42a15bb7aa4cb6aaa739b038769822793a70e3
sourceBlobDigest: sha256:ebfccb50c6a46288e3e9f63e7b625c7159d42bf841eb324d785c7fdfbb82ba04
sourceRevisionDigest: sha256:9a4914b456f76dc0e23d6f6b4623f2e5bcb7aed62a1f3ef307ae4cba9203d302
sourceBlobDigest: sha256:706b685e35b7af2a7a804de37c8aa57108c7087f3f6dc64fa14160789f964708
tags:
- latest
- speakeasy-sdk-regen-1737099259
- speakeasy-sdk-regen-1737468496
- 10.10.0
targets:
apideck:
source: Apideck
sourceNamespace: apideck
sourceRevisionDigest: sha256:134368dcb449cf5302b82c436c42a15bb7aa4cb6aaa739b038769822793a70e3
sourceBlobDigest: sha256:ebfccb50c6a46288e3e9f63e7b625c7159d42bf841eb324d785c7fdfbb82ba04
sourceRevisionDigest: sha256:9a4914b456f76dc0e23d6f6b4623f2e5bcb7aed62a1f3ef307ae4cba9203d302
sourceBlobDigest: sha256:706b685e35b7af2a7a804de37c8aa57108c7087f3f6dc64fa14160789f964708
codeSamplesNamespace: apideck-go-code-samples
codeSamplesRevisionDigest: sha256:c7385aeebef15dc750540c6371ff18b385427b07cebc8713e19bda587b8d9fc3
codeSamplesRevisionDigest: sha256:7873fb88b3ce28d7280f247d8dea0f74724160ac226684f63752c44efcab2835
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
76 changes: 40 additions & 36 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1121,56 +1121,60 @@ func main() {
sdkgo.WithAppID("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX"),
)

res, err := s.FileStorage.UploadSessions.Create(ctx, components.CreateUploadSessionRequest{
Name: "Documents",
ParentFolderID: "1234",
DriveID: sdkgo.String("1234"),
Size: sdkgo.Int64(1810673),
PassThrough: []components.PassThroughBody{
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",
res, err := s.FileStorage.UploadSessions.Create(ctx, operations.FileStorageUploadSessionsAddRequest{
Raw: sdkgo.Bool(false),
ServiceID: sdkgo.String("salesforce"),
CreateUploadSessionRequest: components.CreateUploadSessionRequest{
Name: "Documents",
ParentFolderID: "1234",
DriveID: sdkgo.String("1234"),
Size: sdkgo.Int64(1810673),
PassThrough: []components.PassThroughBody{
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",
components.ExtendPaths{
Path: "$.nested.property",
Value: map[string]any{
"TaxClassificationRef": map[string]any{
"value": "EUC-99990201-V1-00020000",
},
},
},
},
},
},
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.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",
components.ExtendPaths{
Path: "$.nested.property",
Value: map[string]any{
"TaxClassificationRef": map[string]any{
"value": "EUC-99990201-V1-00020000",
},
},
},
},
},
},
},
}, sdkgo.Bool(false), sdkgo.String("salesforce"), operations.WithServerURL("https://upload.apideck.com"))
}, 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 @@ -98,4 +98,14 @@ Based on:
### Generated
- [go v0.4.0] .
### Releases
- [Go v0.4.0] https://github.com/apideck-libraries/sdk-go/releases/tag/v0.4.0 - .
- [Go v0.4.0] https://github.com/apideck-libraries/sdk-go/releases/tag/v0.4.0 - .

## 2025-01-21 14:07:59
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.469.12 (2.493.34) https://github.com/speakeasy-api/speakeasy
### Generated
- [go v0.5.0] .
### Releases
- [Go v0.5.0] https://github.com/apideck-libraries/sdk-go/releases/tag/v0.5.0 - .
36 changes: 6 additions & 30 deletions activities.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,8 @@ func (s *Activities) List(ctx context.Context, request operations.CrmActivitiesA
ctx,
operations.CrmActivitiesAllRequest{
Raw: request.Raw,
ConsumerID: request.ConsumerID,
AppID: request.AppID,
ServiceID: request.ServiceID,
Cursor: &nCVal,
Limit: request.Limit,
Expand Down Expand Up @@ -417,20 +419,14 @@ func (s *Activities) List(ctx context.Context, request operations.CrmActivitiesA

// Create activity
// Create activity
func (s *Activities) Create(ctx context.Context, activity components.ActivityInput, raw *bool, serviceID *string, opts ...operations.Option) (*operations.CrmActivitiesAddResponse, error) {
func (s *Activities) Create(ctx context.Context, request operations.CrmActivitiesAddRequest, opts ...operations.Option) (*operations.CrmActivitiesAddResponse, error) {
hookCtx := hooks.HookContext{
Context: ctx,
OperationID: "crm.activitiesAdd",
OAuth2Scopes: []string{},
SecuritySource: s.sdkConfiguration.Security,
}

request := operations.CrmActivitiesAddRequest{
Raw: raw,
ServiceID: serviceID,
Activity: activity,
}

globals := operations.CrmActivitiesAddGlobals{
ConsumerID: s.sdkConfiguration.Globals.ConsumerID,
AppID: s.sdkConfiguration.Globals.AppID,
Expand Down Expand Up @@ -769,21 +765,14 @@ func (s *Activities) Create(ctx context.Context, activity components.ActivityInp

// Get activity
// Get activity
func (s *Activities) Get(ctx context.Context, id string, serviceID *string, raw *bool, fields *string, opts ...operations.Option) (*operations.CrmActivitiesOneResponse, error) {
func (s *Activities) Get(ctx context.Context, request operations.CrmActivitiesOneRequest, opts ...operations.Option) (*operations.CrmActivitiesOneResponse, error) {
hookCtx := hooks.HookContext{
Context: ctx,
OperationID: "crm.activitiesOne",
OAuth2Scopes: []string{},
SecuritySource: s.sdkConfiguration.Security,
}

request := operations.CrmActivitiesOneRequest{
ID: id,
ServiceID: serviceID,
Raw: raw,
Fields: fields,
}

globals := operations.CrmActivitiesOneGlobals{
ConsumerID: s.sdkConfiguration.Globals.ConsumerID,
AppID: s.sdkConfiguration.Globals.AppID,
Expand Down Expand Up @@ -1114,21 +1103,14 @@ func (s *Activities) Get(ctx context.Context, id string, serviceID *string, raw

// Update activity
// Update activity
func (s *Activities) Update(ctx context.Context, id string, activity components.ActivityInput, serviceID *string, raw *bool, opts ...operations.Option) (*operations.CrmActivitiesUpdateResponse, error) {
func (s *Activities) Update(ctx context.Context, request operations.CrmActivitiesUpdateRequest, opts ...operations.Option) (*operations.CrmActivitiesUpdateResponse, error) {
hookCtx := hooks.HookContext{
Context: ctx,
OperationID: "crm.activitiesUpdate",
OAuth2Scopes: []string{},
SecuritySource: s.sdkConfiguration.Security,
}

request := operations.CrmActivitiesUpdateRequest{
ID: id,
ServiceID: serviceID,
Raw: raw,
Activity: activity,
}

globals := operations.CrmActivitiesUpdateGlobals{
ConsumerID: s.sdkConfiguration.Globals.ConsumerID,
AppID: s.sdkConfiguration.Globals.AppID,
Expand Down Expand Up @@ -1467,20 +1449,14 @@ func (s *Activities) Update(ctx context.Context, id string, activity components.

// Delete activity
// Delete activity
func (s *Activities) Delete(ctx context.Context, id string, serviceID *string, raw *bool, opts ...operations.Option) (*operations.CrmActivitiesDeleteResponse, error) {
func (s *Activities) Delete(ctx context.Context, request operations.CrmActivitiesDeleteRequest, opts ...operations.Option) (*operations.CrmActivitiesDeleteResponse, error) {
hookCtx := hooks.HookContext{
Context: ctx,
OperationID: "crm.activitiesDelete",
OAuth2Scopes: []string{},
SecuritySource: s.sdkConfiguration.Security,
}

request := operations.CrmActivitiesDeleteRequest{
ID: id,
ServiceID: serviceID,
Raw: raw,
}

globals := operations.CrmActivitiesDeleteGlobals{
ConsumerID: s.sdkConfiguration.Globals.ConsumerID,
AppID: s.sdkConfiguration.Globals.AppID,
Expand Down
6 changes: 3 additions & 3 deletions apideck.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,9 @@ func New(opts ...SDKOption) *Apideck {
sdkConfiguration: sdkConfiguration{
Language: "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",
SDKVersion: "0.5.0",
GenVersion: "2.493.34",
UserAgent: "speakeasy-sdk/go 0.5.0 2.493.34 10.10.0 github.com/apideck-libraries/sdk-go",
Globals: globals.Globals{},
Hooks: hooks.New(),
},
Expand Down
36 changes: 6 additions & 30 deletions apideckcompanies.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,8 @@ func (s *ApideckCompanies) List(ctx context.Context, request operations.HrisComp
ctx,
operations.HrisCompaniesAllRequest{
Raw: request.Raw,
ConsumerID: request.ConsumerID,
AppID: request.AppID,
ServiceID: request.ServiceID,
Cursor: &nCVal,
Limit: request.Limit,
Expand Down Expand Up @@ -415,20 +417,14 @@ func (s *ApideckCompanies) List(ctx context.Context, request operations.HrisComp

// Create Company
// Create Company
func (s *ApideckCompanies) Create(ctx context.Context, hrisCompany components.HrisCompanyInput, raw *bool, serviceID *string, opts ...operations.Option) (*operations.HrisCompaniesAddResponse, error) {
func (s *ApideckCompanies) Create(ctx context.Context, request operations.HrisCompaniesAddRequest, opts ...operations.Option) (*operations.HrisCompaniesAddResponse, error) {
hookCtx := hooks.HookContext{
Context: ctx,
OperationID: "hris.companiesAdd",
OAuth2Scopes: []string{},
SecuritySource: s.sdkConfiguration.Security,
}

request := operations.HrisCompaniesAddRequest{
Raw: raw,
ServiceID: serviceID,
HrisCompany: hrisCompany,
}

globals := operations.HrisCompaniesAddGlobals{
ConsumerID: s.sdkConfiguration.Globals.ConsumerID,
AppID: s.sdkConfiguration.Globals.AppID,
Expand Down Expand Up @@ -767,21 +763,14 @@ func (s *ApideckCompanies) Create(ctx context.Context, hrisCompany components.Hr

// Get Company
// Get Company
func (s *ApideckCompanies) Get(ctx context.Context, id string, serviceID *string, raw *bool, fields *string, opts ...operations.Option) (*operations.HrisCompaniesOneResponse, error) {
func (s *ApideckCompanies) Get(ctx context.Context, request operations.HrisCompaniesOneRequest, opts ...operations.Option) (*operations.HrisCompaniesOneResponse, error) {
hookCtx := hooks.HookContext{
Context: ctx,
OperationID: "hris.companiesOne",
OAuth2Scopes: []string{},
SecuritySource: s.sdkConfiguration.Security,
}

request := operations.HrisCompaniesOneRequest{
ID: id,
ServiceID: serviceID,
Raw: raw,
Fields: fields,
}

globals := operations.HrisCompaniesOneGlobals{
ConsumerID: s.sdkConfiguration.Globals.ConsumerID,
AppID: s.sdkConfiguration.Globals.AppID,
Expand Down Expand Up @@ -1112,21 +1101,14 @@ func (s *ApideckCompanies) Get(ctx context.Context, id string, serviceID *string

// Update Company
// Update Company
func (s *ApideckCompanies) Update(ctx context.Context, id string, hrisCompany components.HrisCompanyInput, serviceID *string, raw *bool, opts ...operations.Option) (*operations.HrisCompaniesUpdateResponse, error) {
func (s *ApideckCompanies) Update(ctx context.Context, request operations.HrisCompaniesUpdateRequest, opts ...operations.Option) (*operations.HrisCompaniesUpdateResponse, error) {
hookCtx := hooks.HookContext{
Context: ctx,
OperationID: "hris.companiesUpdate",
OAuth2Scopes: []string{},
SecuritySource: s.sdkConfiguration.Security,
}

request := operations.HrisCompaniesUpdateRequest{
ID: id,
ServiceID: serviceID,
Raw: raw,
HrisCompany: hrisCompany,
}

globals := operations.HrisCompaniesUpdateGlobals{
ConsumerID: s.sdkConfiguration.Globals.ConsumerID,
AppID: s.sdkConfiguration.Globals.AppID,
Expand Down Expand Up @@ -1465,20 +1447,14 @@ func (s *ApideckCompanies) Update(ctx context.Context, id string, hrisCompany co

// Delete Company
// Delete Company
func (s *ApideckCompanies) Delete(ctx context.Context, id string, serviceID *string, raw *bool, opts ...operations.Option) (*operations.HrisCompaniesDeleteResponse, error) {
func (s *ApideckCompanies) Delete(ctx context.Context, request operations.HrisCompaniesDeleteRequest, opts ...operations.Option) (*operations.HrisCompaniesDeleteResponse, error) {
hookCtx := hooks.HookContext{
Context: ctx,
OperationID: "hris.companiesDelete",
OAuth2Scopes: []string{},
SecuritySource: s.sdkConfiguration.Security,
}

request := operations.HrisCompaniesDeleteRequest{
ID: id,
ServiceID: serviceID,
Raw: raw,
}

globals := operations.HrisCompaniesDeleteGlobals{
ConsumerID: s.sdkConfiguration.Globals.ConsumerID,
AppID: s.sdkConfiguration.Globals.AppID,
Expand Down
11 changes: 3 additions & 8 deletions apideckcustomers.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,8 @@ func (s *ApideckCustomers) List(ctx context.Context, request operations.Ecommerc
ctx,
operations.EcommerceCustomersAllRequest{
Raw: request.Raw,
ConsumerID: request.ConsumerID,
AppID: request.AppID,
ServiceID: request.ServiceID,
Cursor: &nCVal,
Limit: request.Limit,
Expand Down Expand Up @@ -416,21 +418,14 @@ func (s *ApideckCustomers) List(ctx context.Context, request operations.Ecommerc

// Get Customer
// Get Customer
func (s *ApideckCustomers) Get(ctx context.Context, id string, serviceID *string, raw *bool, fields *string, opts ...operations.Option) (*operations.EcommerceCustomersOneResponse, error) {
func (s *ApideckCustomers) Get(ctx context.Context, request operations.EcommerceCustomersOneRequest, opts ...operations.Option) (*operations.EcommerceCustomersOneResponse, error) {
hookCtx := hooks.HookContext{
Context: ctx,
OperationID: "ecommerce.customersOne",
OAuth2Scopes: []string{},
SecuritySource: s.sdkConfiguration.Security,
}

request := operations.EcommerceCustomersOneRequest{
ID: id,
ServiceID: serviceID,
Raw: raw,
Fields: fields,
}

globals := operations.EcommerceCustomersOneGlobals{
ConsumerID: s.sdkConfiguration.Globals.ConsumerID,
AppID: s.sdkConfiguration.Globals.AppID,
Expand Down
Loading

0 comments on commit 528c8e7

Please sign in to comment.