diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index f17cfa1a..8b02df36 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -3,10 +3,10 @@ id: 2858c6d9-f946-4185-ae68-3b8e708830fb management: docChecksum: 7e5374ccd8317cf07089c151d486221b docVersion: 0.4.0 . - speakeasyVersion: 1.358.0 - generationVersion: 2.390.6 - releaseVersion: 3.12.2 - configChecksum: 44383e3c0feae04fdb10ca24786fd004 + speakeasyVersion: 1.359.1 + generationVersion: 2.392.0 + releaseVersion: 3.12.3 + configChecksum: 94e4245165844e39ac7778fdaa6cb685 repoURL: https://github.com/speakeasy-api/speakeasy-client-sdk-go.git repoSubDirectory: . installationURL: https://github.com/speakeasy-api/speakeasy-client-sdk-go diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 70730456..8b48a48b 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,9 +1,9 @@ -speakeasyVersion: 1.358.0 +speakeasyVersion: 1.359.1 sources: my-source: sourceNamespace: my-source - sourceRevisionDigest: sha256:7cf69ec7b1247f8099a22a0f1aaeecbeec4d45272f6fae6cb8ef4551e9d6e9ca - sourceBlobDigest: sha256:ab34ff3ccb0f645a6cddb9bfa4715bd2f11a31cc3ad452961a68e4976445f75d + sourceRevisionDigest: sha256:792c2fb338319e1154996f5bf090cb645d34eba8ed55a33543419d203436a9e4 + sourceBlobDigest: sha256:28d39c7e07004c22ce179aa3921d03b1199e30f9ed1cf219f7eaf4142999ddff tags: - latest - main @@ -11,10 +11,10 @@ targets: speakeasy-client-sdk-go: source: my-source sourceNamespace: my-source - sourceRevisionDigest: sha256:7cf69ec7b1247f8099a22a0f1aaeecbeec4d45272f6fae6cb8ef4551e9d6e9ca - sourceBlobDigest: sha256:ab34ff3ccb0f645a6cddb9bfa4715bd2f11a31cc3ad452961a68e4976445f75d + sourceRevisionDigest: sha256:792c2fb338319e1154996f5bf090cb645d34eba8ed55a33543419d203436a9e4 + sourceBlobDigest: sha256:28d39c7e07004c22ce179aa3921d03b1199e30f9ed1cf219f7eaf4142999ddff codeSamplesNamespace: code-samples-go-speakeasy-client-sdk-go - codeSamplesRevisionDigest: sha256:61c40bfa37ab35b7c4d50448c0225e4cc22ec4694f5c10c2f57b2aad1977e853 + codeSamplesRevisionDigest: sha256:43d760bdf36d0b51bf205e7fb807e6c69eab60f34841c54ca8affeb23c2bb10f outLocation: /github/workspace/repo workflow: workflowVersion: 1.0.0 diff --git a/RELEASES.md b/RELEASES.md index a1a94171..67293b8a 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1156,4 +1156,14 @@ Based on: ### Generated - [go v3.12.2] . ### Releases -- [Go v3.12.2] https://github.com/speakeasy-api/speakeasy-client-sdk-go/releases/tag/v3.12.2 - . \ No newline at end of file +- [Go v3.12.2] https://github.com/speakeasy-api/speakeasy-client-sdk-go/releases/tag/v3.12.2 - . + +## 2024-08-09 18:12:18 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.359.1 (2.392.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [go v3.12.3] . +### Releases +- [Go v3.12.3] https://github.com/speakeasy-api/speakeasy-client-sdk-go/releases/tag/v3.12.3 - . \ No newline at end of file diff --git a/codeSamples.yaml b/codeSamples.yaml index d7a36035..1594bea3 100644 --- a/codeSamples.yaml +++ b/codeSamples.yaml @@ -3,17 +3,18 @@ info: title: CodeSamples overlay for go target version: 0.0.0 actions: - - target: $["paths"]["/v1/organization/free_trial"]["post"] + - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/metadata"]["post"] update: x-codeSamples: - lang: go - label: createFreeTrial + label: insertVersionMetadata source: |- package main import( "github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/shared" speakeasyclientsdkgo "github.com/speakeasy-api/speakeasy-client-sdk-go/v3" + "github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/operations" "context" "log" ) @@ -24,21 +25,28 @@ actions: APIKey: speakeasyclientsdkgo.String(""), }), ) - + request := operations.InsertVersionMetadataRequest{ + APIID: "", + VersionID: "", + VersionMetadata: shared.VersionMetadataInput{ + MetaKey: "", + MetaValue: "", + }, + } ctx := context.Background() - res, err := s.Organizations.CreateFreeTrial(ctx) + res, err := s.Metadata.InsertVersionMetadata(ctx, request) if err != nil { log.Fatal(err) } - if res != nil { + if res.VersionMetadata != nil { // handle response } } - - target: $["paths"]["/v1/workspace/embed-access-token"]["get"] + - target: $["paths"]["/v1/eventlog/query"]["get"] update: x-codeSamples: - lang: go - label: getEmbedAccessToken + label: queryEventLog source: |- package main @@ -56,21 +64,21 @@ actions: APIKey: speakeasyclientsdkgo.String(""), }), ) - request := operations.GetEmbedAccessTokenRequest{} + request := operations.QueryEventLogRequest{} ctx := context.Background() - res, err := s.Embeds.GetEmbedAccessToken(ctx, request) + res, err := s.Requests.QueryEventLog(ctx, request) if err != nil { log.Fatal(err) } - if res.EmbedAccessTokenResponse != nil { + if res.BoundedRequests != nil { // handle response } } - - target: $["paths"]["/v1/reports/linting/{documentChecksum}"]["get"] + - target: $["paths"]["/v1/eventlog/{requestID}/generate/postman"]["get"] update: x-codeSamples: - lang: go - label: getLintingReportSignedUrl + label: generateRequestPostmanCollection source: |- package main @@ -88,23 +96,23 @@ actions: APIKey: speakeasyclientsdkgo.String(""), }), ) - request := operations.GetLintingReportSignedURLRequest{ - DocumentChecksum: "", + request := operations.GenerateRequestPostmanCollectionRequest{ + RequestID: "", } ctx := context.Background() - res, err := s.Reports.GetLintingReportSignedURL(ctx, request) + res, err := s.Requests.GenerateRequestPostmanCollection(ctx, request) if err != nil { log.Fatal(err) } - if res.SignedAccess != nil { + if res.PostmanCollection != nil { // handle response } } - - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/api_endpoints/{apiEndpointID}/generate/postman"]["get"] + - target: $["paths"]["/v1/workspace/{workspaceID}"]["get"] update: x-codeSamples: - lang: go - label: generatePostmanCollectionForApiEndpoint + label: getWorkspace source: |- package main @@ -122,31 +130,28 @@ actions: APIKey: speakeasyclientsdkgo.String(""), }), ) - request := operations.GeneratePostmanCollectionForAPIEndpointRequest{ - APIID: "", - VersionID: "", - APIEndpointID: "", - } + request := operations.GetWorkspaceRequest{} ctx := context.Background() - res, err := s.APIEndpoints.GeneratePostmanCollectionForAPIEndpoint(ctx, request) + res, err := s.Workspaces.GetWorkspace(ctx, request) if err != nil { log.Fatal(err) } - if res.PostmanCollection != nil { + if res.Workspace != nil { // handle response } } - - target: $["paths"]["/v1/organization"]["get"] + - target: $["paths"]["/v1/workspace/{workspaceID}/events"]["get"] update: x-codeSamples: - lang: go - label: getOrganizations + label: searchWorkspaceEvents source: |- package main import( "github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/shared" speakeasyclientsdkgo "github.com/speakeasy-api/speakeasy-client-sdk-go/v3" + "github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/operations" "context" "log" ) @@ -157,28 +162,27 @@ actions: APIKey: speakeasyclientsdkgo.String(""), }), ) - + request := operations.SearchWorkspaceEventsRequest{} ctx := context.Background() - res, err := s.Organizations.GetOrganizations(ctx) + res, err := s.Events.SearchWorkspaceEvents(ctx, request) if err != nil { log.Fatal(err) } - if res.Organizations != nil { + if res.CliEventBatch != nil { // handle response } } - - target: $["paths"]["/v1/oci/v2/{organization_slug}/{workspace_slug}/{namespace_name}/blobs/{digest}"]["get"] + - target: $["paths"]["/v1/artifacts/preflight"]["post"] update: x-codeSamples: - lang: go - label: getBlob + label: preflight source: |- package main import( "github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/shared" speakeasyclientsdkgo "github.com/speakeasy-api/speakeasy-client-sdk-go/v3" - "github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/operations" "context" "log" ) @@ -189,26 +193,21 @@ actions: APIKey: speakeasyclientsdkgo.String(""), }), ) - request := operations.GetBlobRequest{ - OrganizationSlug: "", - WorkspaceSlug: "", - NamespaceName: "", - Digest: "", - } + ctx := context.Background() - res, err := s.Artifacts.GetBlob(ctx, request) + res, err := s.Artifacts.Preflight(ctx, nil) if err != nil { log.Fatal(err) } - if res.Blob != nil { + if res.PreflightToken != nil { // handle response } } - - target: $["paths"]["/v1/suggest/operation_ids"]["post"] + - target: $["paths"]["/v1/artifacts/namespaces/{namespace_name}/tags"]["post"] update: x-codeSamples: - lang: go - label: suggestOperationIDs + label: postTags source: |- package main @@ -226,29 +225,23 @@ actions: APIKey: speakeasyclientsdkgo.String(""), }), ) - request := operations.SuggestOperationIDsRequest{ - XSessionID: "", - RequestBody: operations.SuggestOperationIDsRequestBody{ - Schema: operations.Schema{ - FileName: "your_file_here", - Content: []byte("0xb2de88c98a"), - }, - }, + request := operations.PostTagsRequest{ + NamespaceName: "", } ctx := context.Background() - res, err := s.Suggest.SuggestOperationIDs(ctx, request) + res, err := s.Artifacts.PostTags(ctx, request) if err != nil { log.Fatal(err) } - if res.SuggestedOperationIDs != nil { + if res != nil { // handle response } } - - target: $["paths"]["/v1/apis"]["get"] + - target: $["paths"]["/v1/apis/{apiID}/api_endpoints"]["get"] update: x-codeSamples: - lang: go - label: getApis + label: getAllApiEndpoints source: |- package main @@ -266,21 +259,23 @@ actions: APIKey: speakeasyclientsdkgo.String(""), }), ) - request := operations.GetApisRequest{} + request := operations.GetAllAPIEndpointsRequest{ + APIID: "", + } ctx := context.Background() - res, err := s.Apis.GetApis(ctx, request) + res, err := s.APIEndpoints.GetAllAPIEndpoints(ctx, request) if err != nil { log.Fatal(err) } - if res.Apis != nil { + if res.APIEndpoints != nil { // handle response } } - - target: $["paths"]["/v1/eventlog/query"]["get"] + - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/metadata"]["get"] update: x-codeSamples: - lang: go - label: queryEventLog + label: getVersionMetadata source: |- package main @@ -298,28 +293,30 @@ actions: APIKey: speakeasyclientsdkgo.String(""), }), ) - request := operations.QueryEventLogRequest{} + request := operations.GetVersionMetadataRequest{ + APIID: "", + VersionID: "", + } ctx := context.Background() - res, err := s.Requests.QueryEventLog(ctx, request) + res, err := s.Metadata.GetVersionMetadata(ctx, request) if err != nil { log.Fatal(err) } - if res.BoundedRequests != nil { + if res.VersionMetadata != nil { // handle response } } - - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/api_endpoints/{apiEndpointID}"]["get"] + - target: $["paths"]["/v1/github/publishing_secrets"]["post"] update: x-codeSamples: - lang: go - label: getApiEndpoint + label: githubStorePublishingSecrets source: |- package main import( "github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/shared" speakeasyclientsdkgo "github.com/speakeasy-api/speakeasy-client-sdk-go/v3" - "github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/operations" "context" "log" ) @@ -330,31 +327,30 @@ actions: APIKey: speakeasyclientsdkgo.String(""), }), ) - request := operations.GetAPIEndpointRequest{ - APIID: "", - VersionID: "", - APIEndpointID: "", + request := shared.GithubStorePublishingSecretsRequest{ + GenerateGenLockID: "", } ctx := context.Background() - res, err := s.APIEndpoints.GetAPIEndpoint(ctx, request) + res, err := s.Github.GithubStorePublishingSecrets(ctx, request) if err != nil { log.Fatal(err) } - if res.APIEndpoint != nil { + if res != nil { // handle response } } - - target: $["paths"]["/v1/auth/validate"]["get"] + - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/api_endpoints/{apiEndpointID}/generate/postman"]["get"] update: x-codeSamples: - lang: go - label: validateApiKey + label: generatePostmanCollectionForApiEndpoint source: |- package main import( "github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/shared" speakeasyclientsdkgo "github.com/speakeasy-api/speakeasy-client-sdk-go/v3" + "github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/operations" "context" "log" ) @@ -365,21 +361,25 @@ actions: APIKey: speakeasyclientsdkgo.String(""), }), ) - + request := operations.GeneratePostmanCollectionForAPIEndpointRequest{ + APIID: "", + VersionID: "", + APIEndpointID: "", + } ctx := context.Background() - res, err := s.Auth.ValidateAPIKey(ctx) + res, err := s.APIEndpoints.GeneratePostmanCollectionForAPIEndpoint(ctx, request) if err != nil { log.Fatal(err) } - if res.APIKeyDetails != nil { + if res.PostmanCollection != nil { // handle response } } - - target: $["paths"]["/v1/eventlog/{requestID}"]["get"] + - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/api_endpoints/{apiEndpointID}"]["get"] update: x-codeSamples: - lang: go - label: getRequestFromEventLog + label: getApiEndpoint source: |- package main @@ -397,23 +397,25 @@ actions: APIKey: speakeasyclientsdkgo.String(""), }), ) - request := operations.GetRequestFromEventLogRequest{ - RequestID: "", + request := operations.GetAPIEndpointRequest{ + APIID: "", + VersionID: "", + APIEndpointID: "", } ctx := context.Background() - res, err := s.Requests.GetRequestFromEventLog(ctx, request) + res, err := s.APIEndpoints.GetAPIEndpoint(ctx, request) if err != nil { log.Fatal(err) } - if res.UnboundedRequest != nil { + if res.APIEndpoint != nil { // handle response } } - - target: $["paths"]["/v1/workspace/{workspaceID}"]["get"] + - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/metadata/{metaKey}/{metaValue}"]["delete"] update: x-codeSamples: - lang: go - label: getWorkspace + label: deleteVersionMetadata source: |- package main @@ -431,21 +433,26 @@ actions: APIKey: speakeasyclientsdkgo.String(""), }), ) - request := operations.GetWorkspaceRequest{} + request := operations.DeleteVersionMetadataRequest{ + APIID: "", + VersionID: "", + MetaKey: "", + MetaValue: "", + } ctx := context.Background() - res, err := s.Workspaces.GetWorkspace(ctx, request) + res, err := s.Metadata.DeleteVersionMetadata(ctx, request) if err != nil { log.Fatal(err) } - if res.Workspace != nil { + if res != nil { // handle response } } - - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/generate/openapi"]["get"] + - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/schemas"]["get"] update: x-codeSamples: - lang: go - label: generateOpenApiSpec + label: getSchemas source: |- package main @@ -463,31 +470,30 @@ actions: APIKey: speakeasyclientsdkgo.String(""), }), ) - request := operations.GenerateOpenAPISpecRequest{ + request := operations.GetSchemasRequest{ APIID: "", VersionID: "", } ctx := context.Background() - res, err := s.Apis.GenerateOpenAPISpec(ctx, request) + res, err := s.Schemas.GetSchemas(ctx, request) if err != nil { log.Fatal(err) } - if res.GenerateOpenAPISpecDiff != nil { + if res.Schemata != nil { // handle response } } - - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/metadata"]["post"] + - target: $["paths"]["/v1/github/configure_target"]["post"] update: x-codeSamples: - lang: go - label: insertVersionMetadata + label: configureTarget source: |- package main import( "github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/shared" speakeasyclientsdkgo "github.com/speakeasy-api/speakeasy-client-sdk-go/v3" - "github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/operations" "context" "log" ) @@ -498,28 +504,24 @@ actions: APIKey: speakeasyclientsdkgo.String(""), }), ) - request := operations.InsertVersionMetadataRequest{ - APIID: "", - VersionID: "", - VersionMetadata: shared.VersionMetadataInput{ - MetaKey: "", - MetaValue: "", - }, + request := shared.GithubConfigureTargetRequest{ + Org: "", + RepoName: "", } ctx := context.Background() - res, err := s.Metadata.InsertVersionMetadata(ctx, request) + res, err := s.Github.ConfigureTarget(ctx, request) if err != nil { log.Fatal(err) } - if res.VersionMetadata != nil { + if res != nil { // handle response } } - - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/schema/{revisionID}"]["delete"] + - target: $["paths"]["/v1/workspace/{workspaceID}/events"]["post"] update: x-codeSamples: - lang: go - label: deleteSchema + label: postWorkspaceEvents source: |- package main @@ -527,6 +529,7 @@ actions: "github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/shared" speakeasyclientsdkgo "github.com/speakeasy-api/speakeasy-client-sdk-go/v3" "github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/operations" + "github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/types" "context" "log" ) @@ -537,13 +540,23 @@ actions: APIKey: speakeasyclientsdkgo.String(""), }), ) - request := operations.DeleteSchemaRequest{ - APIID: "", - VersionID: "", - RevisionID: "", + request := operations.PostWorkspaceEventsRequest{ + RequestBody: []shared.CliEvent{ + shared.CliEvent{ + ID: "", + ExecutionID: "", + WorkspaceID: "", + SpeakeasyAPIKeyName: "", + InteractionType: shared.InteractionTypePublish, + LocalStartedAt: types.MustTimeFromString("2022-05-18T11:28:11.328Z"), + CreatedAt: types.MustTimeFromString("2024-05-07T12:35:47.182Z"), + SpeakeasyVersion: "", + Success: false, + }, + }, } ctx := context.Background() - res, err := s.Schemas.DeleteSchema(ctx, request) + res, err := s.Events.PostWorkspaceEvents(ctx, request) if err != nil { log.Fatal(err) } @@ -551,11 +564,11 @@ actions: // handle response } } - - target: $["paths"]["/v1/short_urls"]["post"] + - target: $["paths"]["/v1/apis"]["get"] update: x-codeSamples: - lang: go - label: create + label: getApis source: |- package main @@ -573,28 +586,25 @@ actions: APIKey: speakeasyclientsdkgo.String(""), }), ) - request := operations.CreateRequestBody{ - URL: "http://limp-pastry.org", - } + request := operations.GetApisRequest{} ctx := context.Background() - res, err := s.ShortURLs.Create(ctx, request) + res, err := s.Apis.GetApis(ctx, request) if err != nil { log.Fatal(err) } - if res.ShortURL != nil { + if res.Apis != nil { // handle response } } - - target: $["paths"]["/v1/apis/{apiID}"]["get"] + - target: $["paths"]["/v1/auth/access_token"]["get"] update: x-codeSamples: - lang: go - label: getAllApiVersions + label: getAccessToken source: |- package main import( - "github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/shared" speakeasyclientsdkgo "github.com/speakeasy-api/speakeasy-client-sdk-go/v3" "github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/operations" "context" @@ -602,28 +612,24 @@ actions: ) func main() { - s := speakeasyclientsdkgo.New( - speakeasyclientsdkgo.WithSecurity(shared.Security{ - APIKey: speakeasyclientsdkgo.String(""), - }), - ) - request := operations.GetAllAPIVersionsRequest{ - APIID: "", + s := speakeasyclientsdkgo.New() + request := operations.GetAccessTokenRequest{ + WorkspaceID: "", } ctx := context.Background() - res, err := s.Apis.GetAllAPIVersions(ctx, request) + res, err := s.Auth.GetAccessToken(ctx, request) if err != nil { log.Fatal(err) } - if res.Apis != nil { + if res.AccessToken != nil { // handle response } } - - target: $["paths"]["/v1/apis/{apiID}"]["put"] + - target: $["paths"]["/v1/eventlog/{requestID}"]["get"] update: x-codeSamples: - lang: go - label: upsertApi + label: getRequestFromEventLog source: |- package main @@ -641,28 +647,23 @@ actions: APIKey: speakeasyclientsdkgo.String(""), }), ) - request := operations.UpsertAPIRequest{ - APIID: "", - API: shared.APIInput{ - APIID: "", - Description: "Synchronised 5th generation knowledge user", - VersionID: "", - }, + request := operations.GetRequestFromEventLogRequest{ + RequestID: "", } ctx := context.Background() - res, err := s.Apis.UpsertAPI(ctx, request) + res, err := s.Requests.GetRequestFromEventLog(ctx, request) if err != nil { log.Fatal(err) } - if res.API != nil { + if res.UnboundedRequest != nil { // handle response } } - - target: $["paths"]["/v1/reports/changes/{documentChecksum}"]["get"] + - target: $["paths"]["/v1/github/action"]["get"] update: x-codeSamples: - lang: go - label: getChangesReportSignedUrl + label: getAction source: |- package main @@ -680,23 +681,24 @@ actions: APIKey: speakeasyclientsdkgo.String(""), }), ) - request := operations.GetChangesReportSignedURLRequest{ - DocumentChecksum: "", + request := operations.GetActionRequest{ + Org: "", + Repo: "", } ctx := context.Background() - res, err := s.Reports.GetChangesReportSignedURL(ctx, request) + res, err := s.Github.GetAction(ctx, request) if err != nil { log.Fatal(err) } - if res.SignedAccess != nil { + if res.GithubGetActionResponse != nil { // handle response } } - - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/metadata"]["get"] + - target: $["paths"]["/v1/apis/{apiID}"]["put"] update: x-codeSamples: - lang: go - label: getVersionMetadata + label: upsertApi source: |- package main @@ -714,24 +716,28 @@ actions: APIKey: speakeasyclientsdkgo.String(""), }), ) - request := operations.GetVersionMetadataRequest{ + request := operations.UpsertAPIRequest{ APIID: "", - VersionID: "", + API: shared.APIInput{ + APIID: "", + Description: "Synchronised 5th generation knowledge user", + VersionID: "", + }, } ctx := context.Background() - res, err := s.Metadata.GetVersionMetadata(ctx, request) + res, err := s.Apis.UpsertAPI(ctx, request) if err != nil { log.Fatal(err) } - if res.VersionMetadata != nil { + if res.API != nil { // handle response } } - - target: $["paths"]["/v1/artifacts/preflight"]["post"] + - target: $["paths"]["/v1/github/configure_code_samples"]["post"] update: x-codeSamples: - lang: go - label: preflight + label: configureCodeSamples source: |- package main @@ -748,28 +754,31 @@ actions: APIKey: speakeasyclientsdkgo.String(""), }), ) - + request := shared.GithubConfigureCodeSamplesRequest{ + Org: "", + Repo: "", + TargetName: "", + } ctx := context.Background() - res, err := s.Artifacts.Preflight(ctx, nil) + res, err := s.Github.ConfigureCodeSamples(ctx, request) if err != nil { log.Fatal(err) } - if res.PreflightToken != nil { + if res.GithubConfigureCodeSamplesResponse != nil { // handle response } } - - target: $["paths"]["/v1/workspace/access"]["get"] + - target: $["paths"]["/v1/organization/usage"]["get"] update: x-codeSamples: - lang: go - label: getWorkspaceAccess + label: getOrganizationUsage source: |- package main import( "github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/shared" speakeasyclientsdkgo "github.com/speakeasy-api/speakeasy-client-sdk-go/v3" - "github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/operations" "context" "log" ) @@ -780,13 +789,13 @@ actions: APIKey: speakeasyclientsdkgo.String(""), }), ) - request := operations.GetWorkspaceAccessRequest{} + ctx := context.Background() - res, err := s.Auth.GetWorkspaceAccess(ctx, request) + res, err := s.Organizations.GetOrganizationUsage(ctx) if err != nil { log.Fatal(err) } - if res.AccessDetails != nil { + if res.OrganizationUsageResponse != nil { // handle response } } @@ -824,11 +833,11 @@ actions: // handle response } } - - target: $["paths"]["/v1/reports"]["post"] + - target: $["paths"]["/v1/oci/v2/{organization_slug}/{workspace_slug}/{namespace_name}/blobs/{digest}"]["get"] update: x-codeSamples: - lang: go - label: uploadReport + label: getBlob source: |- package main @@ -846,27 +855,26 @@ actions: APIKey: speakeasyclientsdkgo.String(""), }), ) - request := operations.UploadReportRequestBody{ - Data: shared.Report{}, - File: operations.UploadReportFile{ - FileName: "your_file_here", - Content: []byte("0xA329C0ad85"), - }, + request := operations.GetBlobRequest{ + OrganizationSlug: "", + WorkspaceSlug: "", + NamespaceName: "", + Digest: "", } ctx := context.Background() - res, err := s.Reports.UploadReport(ctx, request) + res, err := s.Artifacts.GetBlob(ctx, request) if err != nil { log.Fatal(err) } - if res.UploadedReport != nil { + if res.Blob != nil { // handle response } } - - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}"]["delete"] + - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/schema/download"]["get"] update: x-codeSamples: - lang: go - label: deleteApi + label: downloadSchema source: |- package main @@ -884,24 +892,24 @@ actions: APIKey: speakeasyclientsdkgo.String(""), }), ) - request := operations.DeleteAPIRequest{ + request := operations.DownloadSchemaRequest{ APIID: "", VersionID: "", } ctx := context.Background() - res, err := s.Apis.DeleteAPI(ctx, request) + res, err := s.Schemas.DownloadSchema(ctx, request) if err != nil { log.Fatal(err) } - if res != nil { + if res.TwoHundredApplicationJSONSchema != nil { // handle response } } - - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/schema/download"]["get"] + - target: $["paths"]["/v1/suggest/operation_ids/apply"]["post"] update: x-codeSamples: - lang: go - label: downloadSchema + label: applyOperationIDs source: |- package main @@ -919,12 +927,11 @@ actions: APIKey: speakeasyclientsdkgo.String(""), }), ) - request := operations.DownloadSchemaRequest{ - APIID: "", - VersionID: "", + request := operations.ApplyOperationIDsRequest{ + XSessionID: "", } ctx := context.Background() - res, err := s.Schemas.DownloadSchema(ctx, request) + res, err := s.Suggest.ApplyOperationIDs(ctx, request) if err != nil { log.Fatal(err) } @@ -932,11 +939,11 @@ actions: // handle response } } - - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/schema/{revisionID}"]["get"] + - target: $["paths"]["/v1/reports/linting/{documentChecksum}"]["get"] update: x-codeSamples: - lang: go - label: getSchemaRevision + label: getLintingReportSignedUrl source: |- package main @@ -954,32 +961,29 @@ actions: APIKey: speakeasyclientsdkgo.String(""), }), ) - request := operations.GetSchemaRevisionRequest{ - APIID: "", - VersionID: "", - RevisionID: "", + request := operations.GetLintingReportSignedURLRequest{ + DocumentChecksum: "", } ctx := context.Background() - res, err := s.Schemas.GetSchemaRevision(ctx, request) + res, err := s.Reports.GetLintingReportSignedURL(ctx, request) if err != nil { log.Fatal(err) } - if res.Schema != nil { + if res.SignedAccess != nil { // handle response } } - - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/schema/{revisionID}/download"]["get"] + - target: $["paths"]["/v1/auth/validate"]["get"] update: x-codeSamples: - lang: go - label: downloadSchemaRevision + label: validateApiKey source: |- package main import( "github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/shared" speakeasyclientsdkgo "github.com/speakeasy-api/speakeasy-client-sdk-go/v3" - "github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/operations" "context" "log" ) @@ -990,25 +994,21 @@ actions: APIKey: speakeasyclientsdkgo.String(""), }), ) - request := operations.DownloadSchemaRevisionRequest{ - APIID: "", - VersionID: "", - RevisionID: "", - } + ctx := context.Background() - res, err := s.Schemas.DownloadSchemaRevision(ctx, request) + res, err := s.Auth.ValidateAPIKey(ctx) if err != nil { log.Fatal(err) } - if res.TwoHundredApplicationJSONSchema != nil { + if res.APIKeyDetails != nil { // handle response } } - - target: $["paths"]["/v1/eventlog/{requestID}/generate/postman"]["get"] + - target: $["paths"]["/v1/github/check_access"]["get"] update: x-codeSamples: - lang: go - label: generateRequestPostmanCollection + label: checkAccess source: |- package main @@ -1026,29 +1026,31 @@ actions: APIKey: speakeasyclientsdkgo.String(""), }), ) - request := operations.GenerateRequestPostmanCollectionRequest{ - RequestID: "", + request := operations.CheckAccessRequest{ + Org: "", + Repo: "", } ctx := context.Background() - res, err := s.Requests.GenerateRequestPostmanCollection(ctx, request) + res, err := s.Github.CheckAccess(ctx, request) if err != nil { log.Fatal(err) } - if res.PostmanCollection != nil { + if res != nil { // handle response } } - - target: $["paths"]["/v1/github/configure_mintlify_repo"]["post"] + - target: $["paths"]["/v1/artifacts/namespaces/{namespace_name}/revisions"]["get"] update: x-codeSamples: - lang: go - label: configureMintlifyRepo + label: getRevisions source: |- package main import( "github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/shared" speakeasyclientsdkgo "github.com/speakeasy-api/speakeasy-client-sdk-go/v3" + "github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/operations" "context" "log" ) @@ -1059,34 +1061,30 @@ actions: APIKey: speakeasyclientsdkgo.String(""), }), ) - request := shared.GithubConfigureMintlifyRepoRequest{ - Org: "", - Repo: "", - Input: "", - Overlays: []string{ - "", - }, + request := operations.GetRevisionsRequest{ + NamespaceName: "", } ctx := context.Background() - res, err := s.Github.ConfigureMintlifyRepo(ctx, request) + res, err := s.Artifacts.GetRevisions(ctx, request) if err != nil { log.Fatal(err) } - if res != nil { + if res.GetRevisionsResponse != nil { // handle response } } - - target: $["paths"]["/v1/github/configure_target"]["post"] + - target: $["paths"]["/v1/artifacts/namespaces/{namespace_name}/revisions/{revision_reference}/summary"]["get"] update: x-codeSamples: - lang: go - label: configureTarget + label: getOASSummary source: |- package main import( "github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/shared" speakeasyclientsdkgo "github.com/speakeasy-api/speakeasy-client-sdk-go/v3" + "github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/operations" "context" "log" ) @@ -1097,24 +1095,24 @@ actions: APIKey: speakeasyclientsdkgo.String(""), }), ) - request := shared.GithubConfigureTargetRequest{ - Org: "", - RepoName: "", + request := operations.GetOASSummaryRequest{ + NamespaceName: "", + RevisionReference: "", } ctx := context.Background() - res, err := s.Github.ConfigureTarget(ctx, request) + res, err := s.Artifacts.GetOASSummary(ctx, request) if err != nil { log.Fatal(err) } - if res != nil { + if res.OASSummary != nil { // handle response } } - - target: $["paths"]["/v1/workspace/{workspaceID}/events"]["post"] + - target: $["paths"]["/v1/artifacts/namespaces/{namespace_name}/tags"]["get"] update: x-codeSamples: - lang: go - label: postWorkspaceEvents + label: getTags source: |- package main @@ -1122,7 +1120,6 @@ actions: "github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/shared" speakeasyclientsdkgo "github.com/speakeasy-api/speakeasy-client-sdk-go/v3" "github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/operations" - "github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/types" "context" "log" ) @@ -1133,35 +1130,23 @@ actions: APIKey: speakeasyclientsdkgo.String(""), }), ) - request := operations.PostWorkspaceEventsRequest{ - RequestBody: []shared.CliEvent{ - shared.CliEvent{ - ID: "", - ExecutionID: "", - WorkspaceID: "", - SpeakeasyAPIKeyName: "", - InteractionType: shared.InteractionTypePublish, - LocalStartedAt: types.MustTimeFromString("2022-05-18T11:28:11.328Z"), - CreatedAt: types.MustTimeFromString("2024-05-07T12:35:47.182Z"), - SpeakeasyVersion: "", - Success: false, - }, - }, + request := operations.GetTagsRequest{ + NamespaceName: "", } ctx := context.Background() - res, err := s.Events.PostWorkspaceEvents(ctx, request) + res, err := s.Artifacts.GetTags(ctx, request) if err != nil { log.Fatal(err) } - if res != nil { + if res.GetTagsResponse != nil { // handle response } } - - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/metadata/{metaKey}/{metaValue}"]["delete"] + - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/schema"]["post"] update: x-codeSamples: - lang: go - label: deleteVersionMetadata + label: registerSchema source: |- package main @@ -1179,14 +1164,18 @@ actions: APIKey: speakeasyclientsdkgo.String(""), }), ) - request := operations.DeleteVersionMetadataRequest{ + request := operations.RegisterSchemaRequest{ APIID: "", VersionID: "", - MetaKey: "", - MetaValue: "", + RequestBody: operations.RegisterSchemaRequestBody{ + File: operations.File{ + FileName: "your_file_here", + Content: []byte("0xCAFCA03e0e"), + }, + }, } ctx := context.Background() - res, err := s.Metadata.DeleteVersionMetadata(ctx, request) + res, err := s.Schemas.RegisterSchema(ctx, request) if err != nil { log.Fatal(err) } @@ -1194,11 +1183,11 @@ actions: // handle response } } - - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/schema"]["get"] + - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/generate/openapi"]["get"] update: x-codeSamples: - lang: go - label: getSchema + label: generateOpenApiSpec source: |- package main @@ -1216,24 +1205,24 @@ actions: APIKey: speakeasyclientsdkgo.String(""), }), ) - request := operations.GetSchemaRequest{ + request := operations.GenerateOpenAPISpecRequest{ APIID: "", VersionID: "", } ctx := context.Background() - res, err := s.Schemas.GetSchema(ctx, request) + res, err := s.Apis.GenerateOpenAPISpec(ctx, request) if err != nil { log.Fatal(err) } - if res.Schema != nil { + if res.GenerateOpenAPISpecDiff != nil { // handle response } } - - target: $["paths"]["/v1/organization/{organizationID}"]["get"] + - target: $["paths"]["/v1/workspace/access"]["get"] update: x-codeSamples: - lang: go - label: getOrganization + label: getWorkspaceAccess source: |- package main @@ -1251,23 +1240,21 @@ actions: APIKey: speakeasyclientsdkgo.String(""), }), ) - request := operations.GetOrganizationRequest{ - OrganizationID: "", - } + request := operations.GetWorkspaceAccessRequest{} ctx := context.Background() - res, err := s.Organizations.GetOrganization(ctx, request) + res, err := s.Auth.GetWorkspaceAccess(ctx, request) if err != nil { log.Fatal(err) } - if res.Organization != nil { + if res.AccessDetails != nil { // handle response } } - - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/generate/postman"]["get"] + - target: $["paths"]["/v1/github/publishing_prs"]["get"] update: x-codeSamples: - lang: go - label: generatePostmanCollection + label: fetchPublishingPRs source: |- package main @@ -1285,24 +1272,25 @@ actions: APIKey: speakeasyclientsdkgo.String(""), }), ) - request := operations.GeneratePostmanCollectionRequest{ - APIID: "", - VersionID: "", + request := operations.FetchPublishingPRsRequest{ + GenerateGenLockID: "", + Org: "", + Repo: "", } ctx := context.Background() - res, err := s.Apis.GeneratePostmanCollection(ctx, request) + res, err := s.Github.FetchPublishingPRs(ctx, request) if err != nil { log.Fatal(err) } - if res.PostmanCollection != nil { + if res.GithubPublishingPRResponse != nil { // handle response } } - - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/schemas"]["get"] + - target: $["paths"]["/v1/github/publishing_secrets"]["get"] update: x-codeSamples: - lang: go - label: getSchemas + label: githubCheckPublishingSecrets source: |- package main @@ -1320,53 +1308,54 @@ actions: APIKey: speakeasyclientsdkgo.String(""), }), ) - request := operations.GetSchemasRequest{ - APIID: "", - VersionID: "", + request := operations.GithubCheckPublishingSecretsRequest{ + GenerateGenLockID: "", } ctx := context.Background() - res, err := s.Schemas.GetSchemas(ctx, request) + res, err := s.Github.GithubCheckPublishingSecrets(ctx, request) if err != nil { log.Fatal(err) } - if res.Schemata != nil { + if res.GithubMissingPublishingSecretsResponse != nil { // handle response } } - - target: $["paths"]["/v1/auth/access_token"]["get"] + - target: $["paths"]["/v1/workspace/embed-access-tokens/valid"]["get"] update: x-codeSamples: - lang: go - label: getAccessToken + label: getValidEmbedAccessTokens source: |- package main import( + "github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/shared" speakeasyclientsdkgo "github.com/speakeasy-api/speakeasy-client-sdk-go/v3" - "github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/operations" "context" "log" ) func main() { - s := speakeasyclientsdkgo.New() - request := operations.GetAccessTokenRequest{ - WorkspaceID: "", - } + s := speakeasyclientsdkgo.New( + speakeasyclientsdkgo.WithSecurity(shared.Security{ + APIKey: speakeasyclientsdkgo.String(""), + }), + ) + ctx := context.Background() - res, err := s.Auth.GetAccessToken(ctx, request) + res, err := s.Embeds.GetValidEmbedAccessTokens(ctx) if err != nil { log.Fatal(err) } - if res.AccessToken != nil { + if res.EmbedTokens != nil { // handle response } } - - target: $["paths"]["/v1/github/check_access"]["get"] + - target: $["paths"]["/v1/reports/changes/{documentChecksum}"]["get"] update: x-codeSamples: - lang: go - label: checkAccess + label: getChangesReportSignedUrl source: |- package main @@ -1384,24 +1373,23 @@ actions: APIKey: speakeasyclientsdkgo.String(""), }), ) - request := operations.CheckAccessRequest{ - Org: "", - Repo: "", + request := operations.GetChangesReportSignedURLRequest{ + DocumentChecksum: "", } ctx := context.Background() - res, err := s.Github.CheckAccess(ctx, request) + res, err := s.Reports.GetChangesReportSignedURL(ctx, request) if err != nil { log.Fatal(err) } - if res != nil { + if res.SignedAccess != nil { // handle response } } - - target: $["paths"]["/v1/github/action"]["get"] + - target: $["paths"]["/v1/short_urls"]["post"] update: x-codeSamples: - lang: go - label: getAction + label: create source: |- package main @@ -1419,30 +1407,30 @@ actions: APIKey: speakeasyclientsdkgo.String(""), }), ) - request := operations.GetActionRequest{ - Org: "", - Repo: "", + request := operations.CreateRequestBody{ + URL: "http://limp-pastry.org", } ctx := context.Background() - res, err := s.Github.GetAction(ctx, request) + res, err := s.ShortURLs.Create(ctx, request) if err != nil { log.Fatal(err) } - if res.GithubGetActionResponse != nil { + if res.ShortURL != nil { // handle response } } - - target: $["paths"]["/v1/workspace/embed-access-tokens/valid"]["get"] + - target: $["paths"]["/v1/apis/{apiID}"]["get"] update: x-codeSamples: - lang: go - label: getValidEmbedAccessTokens + label: getAllApiVersions source: |- package main import( "github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/shared" speakeasyclientsdkgo "github.com/speakeasy-api/speakeasy-client-sdk-go/v3" + "github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/operations" "context" "log" ) @@ -1453,21 +1441,23 @@ actions: APIKey: speakeasyclientsdkgo.String(""), }), ) - + request := operations.GetAllAPIVersionsRequest{ + APIID: "", + } ctx := context.Background() - res, err := s.Embeds.GetValidEmbedAccessTokens(ctx) + res, err := s.Apis.GetAllAPIVersions(ctx, request) if err != nil { log.Fatal(err) } - if res.EmbedTokens != nil { + if res.Apis != nil { // handle response } } - - target: $["paths"]["/v1/workspace/{workspaceID}/events/targets/{targetID}/events"]["get"] + - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/api_endpoints/{apiEndpointID}"]["put"] update: x-codeSamples: - lang: go - label: getWorkspaceEventsByTarget + label: upsertApiEndpoint source: |- package main @@ -1485,23 +1475,33 @@ actions: APIKey: speakeasyclientsdkgo.String(""), }), ) - request := operations.GetWorkspaceEventsByTargetRequest{ - TargetID: "", + request := operations.UpsertAPIEndpointRequest{ + APIID: "", + VersionID: "", + APIEndpointID: "", + APIEndpoint: shared.APIEndpointInput{ + APIEndpointID: "", + Description: "Public-key systematic attitude", + DisplayName: "Camille.Schaefer11", + Method: "", + Path: "/Library", + VersionID: "", + }, } ctx := context.Background() - res, err := s.Events.GetWorkspaceEventsByTarget(ctx, request) + res, err := s.APIEndpoints.UpsertAPIEndpoint(ctx, request) if err != nil { log.Fatal(err) } - if res.CliEventBatch != nil { + if res.APIEndpoint != nil { // handle response } } - - target: $["paths"]["/v1/artifacts/namespaces/{namespace_name}/revisions"]["get"] + - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/api_endpoints/{apiEndpointID}/generate/openapi"]["get"] update: x-codeSamples: - lang: go - label: getRevisions + label: generateOpenApiSpecForApiEndpoint source: |- package main @@ -1519,30 +1519,31 @@ actions: APIKey: speakeasyclientsdkgo.String(""), }), ) - request := operations.GetRevisionsRequest{ - NamespaceName: "", + request := operations.GenerateOpenAPISpecForAPIEndpointRequest{ + APIID: "", + VersionID: "", + APIEndpointID: "", } ctx := context.Background() - res, err := s.Artifacts.GetRevisions(ctx, request) + res, err := s.APIEndpoints.GenerateOpenAPISpecForAPIEndpoint(ctx, request) if err != nil { log.Fatal(err) } - if res.GetRevisionsResponse != nil { + if res.GenerateOpenAPISpecDiff != nil { // handle response } } - - target: $["paths"]["/v1/apis/{apiID}/api_endpoints"]["get"] + - target: $["paths"]["/v1/user"]["get"] update: x-codeSamples: - lang: go - label: getAllApiEndpoints + label: getUser source: |- package main import( "github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/shared" speakeasyclientsdkgo "github.com/speakeasy-api/speakeasy-client-sdk-go/v3" - "github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/operations" "context" "log" ) @@ -1553,23 +1554,21 @@ actions: APIKey: speakeasyclientsdkgo.String(""), }), ) - request := operations.GetAllAPIEndpointsRequest{ - APIID: "", - } + ctx := context.Background() - res, err := s.APIEndpoints.GetAllAPIEndpoints(ctx, request) + res, err := s.Auth.GetUser(ctx) if err != nil { log.Fatal(err) } - if res.APIEndpoints != nil { + if res.User != nil { // handle response } } - - target: $["paths"]["/v1/user"]["get"] + - target: $["paths"]["/v1/organization"]["get"] update: x-codeSamples: - lang: go - label: getUser + label: getOrganizations source: |- package main @@ -1588,19 +1587,19 @@ actions: ) ctx := context.Background() - res, err := s.Auth.GetUser(ctx) + res, err := s.Organizations.GetOrganizations(ctx) if err != nil { log.Fatal(err) } - if res.User != nil { + if res.Organizations != nil { // handle response } } - - target: $["paths"]["/v1/suggest/operation_ids/{namespace_name}/{revision_reference}"]["post"] + - target: $["paths"]["/v1/organization/{organizationID}"]["get"] update: x-codeSamples: - lang: go - label: suggestOperationIDsRegistry + label: getOrganization source: |- package main @@ -1618,25 +1617,23 @@ actions: APIKey: speakeasyclientsdkgo.String(""), }), ) - request := operations.SuggestOperationIDsRegistryRequest{ - NamespaceName: "", - RevisionReference: "", - XSessionID: "", + request := operations.GetOrganizationRequest{ + OrganizationID: "", } ctx := context.Background() - res, err := s.Suggest.SuggestOperationIDsRegistry(ctx, request) + res, err := s.Organizations.GetOrganization(ctx, request) if err != nil { log.Fatal(err) } - if res.SuggestedOperationIDs != nil { + if res.Organization != nil { // handle response } } - - target: $["paths"]["/v1/oci/v2/{organization_slug}/{workspace_slug}/{namespace_name}/manifests/{revision_reference}"]["get"] + - target: $["paths"]["/v1/suggest/operation_ids/{namespace_name}/{revision_reference}"]["post"] update: x-codeSamples: - lang: go - label: getManifest + label: suggestOperationIDsRegistry source: |- package main @@ -1654,26 +1651,25 @@ actions: APIKey: speakeasyclientsdkgo.String(""), }), ) - request := operations.GetManifestRequest{ - OrganizationSlug: "", - WorkspaceSlug: "", + request := operations.SuggestOperationIDsRegistryRequest{ NamespaceName: "", RevisionReference: "", + XSessionID: "", } ctx := context.Background() - res, err := s.Artifacts.GetManifest(ctx, request) + res, err := s.Suggest.SuggestOperationIDsRegistry(ctx, request) if err != nil { log.Fatal(err) } - if res.Manifest != nil { + if res.SuggestedOperationIDs != nil { // handle response } } - - target: $["paths"]["/v1/suggest/operation_ids/apply"]["post"] + - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}"]["delete"] update: x-codeSamples: - lang: go - label: applyOperationIDs + label: deleteApi source: |- package main @@ -1691,15 +1687,16 @@ actions: APIKey: speakeasyclientsdkgo.String(""), }), ) - request := operations.ApplyOperationIDsRequest{ - XSessionID: "", + request := operations.DeleteAPIRequest{ + APIID: "", + VersionID: "", } ctx := context.Background() - res, err := s.Suggest.ApplyOperationIDs(ctx, request) + res, err := s.Apis.DeleteAPI(ctx, request) if err != nil { log.Fatal(err) } - if res.TwoHundredApplicationJSONSchema != nil { + if res != nil { // handle response } } @@ -1738,11 +1735,11 @@ actions: // handle response } } - - target: $["paths"]["/v1/artifacts/namespaces/{namespace_name}/revisions/{revision_reference}/summary"]["get"] + - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/schema/{revisionID}"]["get"] update: x-codeSamples: - lang: go - label: getOASSummary + label: getSchemaRevision source: |- package main @@ -1760,24 +1757,25 @@ actions: APIKey: speakeasyclientsdkgo.String(""), }), ) - request := operations.GetOASSummaryRequest{ - NamespaceName: "", - RevisionReference: "", + request := operations.GetSchemaRevisionRequest{ + APIID: "", + VersionID: "", + RevisionID: "", } ctx := context.Background() - res, err := s.Artifacts.GetOASSummary(ctx, request) + res, err := s.Schemas.GetSchemaRevision(ctx, request) if err != nil { log.Fatal(err) } - if res.OASSummary != nil { + if res.Schema != nil { // handle response } } - - target: $["paths"]["/v1/organization/usage"]["get"] + - target: $["paths"]["/v1/github/configure_mintlify_repo"]["post"] update: x-codeSamples: - lang: go - label: getOrganizationUsage + label: configureMintlifyRepo source: |- package main @@ -1794,27 +1792,35 @@ actions: APIKey: speakeasyclientsdkgo.String(""), }), ) - + request := shared.GithubConfigureMintlifyRepoRequest{ + Org: "", + Repo: "", + Input: "", + Overlays: []string{ + "", + }, + } ctx := context.Background() - res, err := s.Organizations.GetOrganizationUsage(ctx) + res, err := s.Github.ConfigureMintlifyRepo(ctx, request) if err != nil { log.Fatal(err) } - if res.OrganizationUsageResponse != nil { + if res != nil { // handle response } } - - target: $["paths"]["/v1/github/trigger_action"]["post"] + - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/api_endpoints/find/{displayName}"]["get"] update: x-codeSamples: - lang: go - label: triggerAction + label: findApiEndpoint source: |- package main import( "github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/shared" speakeasyclientsdkgo "github.com/speakeasy-api/speakeasy-client-sdk-go/v3" + "github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/operations" "context" "log" ) @@ -1825,31 +1831,32 @@ actions: APIKey: speakeasyclientsdkgo.String(""), }), ) - request := shared.GithubTriggerActionRequest{ - Org: "", - RepoName: "", - GenLockID: "", + request := operations.FindAPIEndpointRequest{ + APIID: "", + VersionID: "", + DisplayName: "Don.Strosin", } ctx := context.Background() - res, err := s.Github.TriggerAction(ctx, request) + res, err := s.APIEndpoints.FindAPIEndpoint(ctx, request) if err != nil { log.Fatal(err) } - if res != nil { + if res.APIEndpoint != nil { // handle response } } - - target: $["paths"]["/v1/github/publishing_secrets"]["post"] + - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/api_endpoints/{apiEndpointID}"]["delete"] update: x-codeSamples: - lang: go - label: githubStorePublishingSecrets + label: deleteApiEndpoint source: |- package main import( "github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/shared" speakeasyclientsdkgo "github.com/speakeasy-api/speakeasy-client-sdk-go/v3" + "github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/operations" "context" "log" ) @@ -1860,11 +1867,13 @@ actions: APIKey: speakeasyclientsdkgo.String(""), }), ) - request := shared.GithubStorePublishingSecretsRequest{ - GenerateGenLockID: "", + request := operations.DeleteAPIEndpointRequest{ + APIID: "", + VersionID: "", + APIEndpointID: "", } ctx := context.Background() - res, err := s.Github.GithubStorePublishingSecrets(ctx, request) + res, err := s.APIEndpoints.DeleteAPIEndpoint(ctx, request) if err != nil { log.Fatal(err) } @@ -1872,17 +1881,18 @@ actions: // handle response } } - - target: $["paths"]["/v1/github/configure_code_samples"]["post"] + - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/schema/{revisionID}"]["delete"] update: x-codeSamples: - lang: go - label: configureCodeSamples + label: deleteSchema source: |- package main import( "github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/shared" speakeasyclientsdkgo "github.com/speakeasy-api/speakeasy-client-sdk-go/v3" + "github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/operations" "context" "log" ) @@ -1893,32 +1903,31 @@ actions: APIKey: speakeasyclientsdkgo.String(""), }), ) - request := shared.GithubConfigureCodeSamplesRequest{ - Org: "", - Repo: "", - TargetName: "", + request := operations.DeleteSchemaRequest{ + APIID: "", + VersionID: "", + RevisionID: "", } ctx := context.Background() - res, err := s.Github.ConfigureCodeSamples(ctx, request) + res, err := s.Schemas.DeleteSchema(ctx, request) if err != nil { log.Fatal(err) } - if res.GithubConfigureCodeSamplesResponse != nil { + if res != nil { // handle response } } - - target: $["paths"]["/v1/workspace/{workspaceID}/events/targets"]["get"] + - target: $["paths"]["/v1/github/trigger_action"]["post"] update: x-codeSamples: - lang: go - label: getWorkspaceTargets + label: triggerAction source: |- package main import( "github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/shared" speakeasyclientsdkgo "github.com/speakeasy-api/speakeasy-client-sdk-go/v3" - "github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/operations" "context" "log" ) @@ -1929,28 +1938,31 @@ actions: APIKey: speakeasyclientsdkgo.String(""), }), ) - request := operations.GetWorkspaceTargetsRequest{} + request := shared.GithubTriggerActionRequest{ + Org: "", + RepoName: "", + GenLockID: "", + } ctx := context.Background() - res, err := s.Events.GetWorkspaceTargets(ctx, request) + res, err := s.Github.TriggerAction(ctx, request) if err != nil { log.Fatal(err) } - if res.TargetSDKList != nil { + if res != nil { // handle response } } - - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/api_endpoints/{apiEndpointID}/generate/openapi"]["get"] + - target: $["paths"]["/v1/organization/free_trial"]["post"] update: x-codeSamples: - lang: go - label: generateOpenApiSpecForApiEndpoint + label: createFreeTrial source: |- package main import( "github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/shared" speakeasyclientsdkgo "github.com/speakeasy-api/speakeasy-client-sdk-go/v3" - "github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/operations" "context" "log" ) @@ -1961,32 +1973,27 @@ actions: APIKey: speakeasyclientsdkgo.String(""), }), ) - request := operations.GenerateOpenAPISpecForAPIEndpointRequest{ - APIID: "", - VersionID: "", - APIEndpointID: "", - } + ctx := context.Background() - res, err := s.APIEndpoints.GenerateOpenAPISpecForAPIEndpoint(ctx, request) + res, err := s.Organizations.CreateFreeTrial(ctx) if err != nil { log.Fatal(err) } - if res.GenerateOpenAPISpecDiff != nil { + if res != nil { // handle response } } - - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/schema/{baseRevisionID}/diff/{targetRevisionID}"]["get"] + - target: $["paths"]["/v1/artifacts/namespaces"]["get"] update: x-codeSamples: - lang: go - label: getSchemaDiff + label: getNamespaces source: |- package main import( "github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/shared" speakeasyclientsdkgo "github.com/speakeasy-api/speakeasy-client-sdk-go/v3" - "github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/operations" "context" "log" ) @@ -1997,26 +2004,21 @@ actions: APIKey: speakeasyclientsdkgo.String(""), }), ) - request := operations.GetSchemaDiffRequest{ - APIID: "", - VersionID: "", - BaseRevisionID: "", - TargetRevisionID: "", - } + ctx := context.Background() - res, err := s.Schemas.GetSchemaDiff(ctx, request) + res, err := s.Artifacts.GetNamespaces(ctx) if err != nil { log.Fatal(err) } - if res.SchemaDiff != nil { + if res.GetNamespacesResponse != nil { // handle response } } - - target: $["paths"]["/v1/github/publishing_prs"]["get"] + - target: $["paths"]["/v1/suggest/operation_ids"]["post"] update: x-codeSamples: - lang: go - label: fetchPublishingPRs + label: suggestOperationIDs source: |- package main @@ -2034,25 +2036,29 @@ actions: APIKey: speakeasyclientsdkgo.String(""), }), ) - request := operations.FetchPublishingPRsRequest{ - GenerateGenLockID: "", - Org: "", - Repo: "", + request := operations.SuggestOperationIDsRequest{ + XSessionID: "", + RequestBody: operations.SuggestOperationIDsRequestBody{ + Schema: operations.Schema{ + FileName: "your_file_here", + Content: []byte("0xb2de88c98a"), + }, + }, } ctx := context.Background() - res, err := s.Github.FetchPublishingPRs(ctx, request) + res, err := s.Suggest.SuggestOperationIDs(ctx, request) if err != nil { log.Fatal(err) } - if res.GithubPublishingPRResponse != nil { + if res.SuggestedOperationIDs != nil { // handle response } } - - target: $["paths"]["/v1/github/publishing_secrets"]["get"] + - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/generate/postman"]["get"] update: x-codeSamples: - lang: go - label: githubCheckPublishingSecrets + label: generatePostmanCollection source: |- package main @@ -2070,29 +2076,31 @@ actions: APIKey: speakeasyclientsdkgo.String(""), }), ) - request := operations.GithubCheckPublishingSecretsRequest{ - GenerateGenLockID: "", + request := operations.GeneratePostmanCollectionRequest{ + APIID: "", + VersionID: "", } ctx := context.Background() - res, err := s.Github.GithubCheckPublishingSecrets(ctx, request) + res, err := s.Apis.GeneratePostmanCollection(ctx, request) if err != nil { log.Fatal(err) } - if res.GithubMissingPublishingSecretsResponse != nil { + if res.PostmanCollection != nil { // handle response } } - - target: $["paths"]["/v1/artifacts/namespaces"]["get"] + - target: $["paths"]["/v1/workspace/embed-access-token"]["get"] update: x-codeSamples: - lang: go - label: getNamespaces + label: getEmbedAccessToken source: |- package main import( "github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/shared" speakeasyclientsdkgo "github.com/speakeasy-api/speakeasy-client-sdk-go/v3" + "github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/operations" "context" "log" ) @@ -2103,21 +2111,21 @@ actions: APIKey: speakeasyclientsdkgo.String(""), }), ) - + request := operations.GetEmbedAccessTokenRequest{} ctx := context.Background() - res, err := s.Artifacts.GetNamespaces(ctx) + res, err := s.Embeds.GetEmbedAccessToken(ctx, request) if err != nil { log.Fatal(err) } - if res.GetNamespacesResponse != nil { + if res.EmbedAccessTokenResponse != nil { // handle response } } - - target: $["paths"]["/v1/artifacts/namespaces/{namespace_name}/tags"]["post"] + - target: $["paths"]["/v1/workspace/{workspaceID}/events/targets/{targetID}/events"]["get"] update: x-codeSamples: - lang: go - label: postTags + label: getWorkspaceEventsByTarget source: |- package main @@ -2135,23 +2143,23 @@ actions: APIKey: speakeasyclientsdkgo.String(""), }), ) - request := operations.PostTagsRequest{ - NamespaceName: "", + request := operations.GetWorkspaceEventsByTargetRequest{ + TargetID: "", } ctx := context.Background() - res, err := s.Artifacts.PostTags(ctx, request) + res, err := s.Events.GetWorkspaceEventsByTarget(ctx, request) if err != nil { log.Fatal(err) } - if res != nil { + if res.CliEventBatch != nil { // handle response } } - - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/api_endpoints/{apiEndpointID}"]["put"] + - target: $["paths"]["/v1/workspace/{workspaceID}/events/targets"]["get"] update: x-codeSamples: - lang: go - label: upsertApiEndpoint + label: getWorkspaceTargets source: |- package main @@ -2169,33 +2177,21 @@ actions: APIKey: speakeasyclientsdkgo.String(""), }), ) - request := operations.UpsertAPIEndpointRequest{ - APIID: "", - VersionID: "", - APIEndpointID: "", - APIEndpoint: shared.APIEndpointInput{ - APIEndpointID: "", - Description: "Public-key systematic attitude", - DisplayName: "Camille.Schaefer11", - Method: "", - Path: "/Library", - VersionID: "", - }, - } + request := operations.GetWorkspaceTargetsRequest{} ctx := context.Background() - res, err := s.APIEndpoints.UpsertAPIEndpoint(ctx, request) + res, err := s.Events.GetWorkspaceTargets(ctx, request) if err != nil { log.Fatal(err) } - if res.APIEndpoint != nil { + if res.TargetSDKList != nil { // handle response } } - - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/schema"]["post"] + - target: $["paths"]["/v1/oci/v2/{organization_slug}/{workspace_slug}/{namespace_name}/manifests/{revision_reference}"]["get"] update: x-codeSamples: - lang: go - label: registerSchema + label: getManifest source: |- package main @@ -2213,30 +2209,26 @@ actions: APIKey: speakeasyclientsdkgo.String(""), }), ) - request := operations.RegisterSchemaRequest{ - APIID: "", - VersionID: "", - RequestBody: operations.RegisterSchemaRequestBody{ - File: operations.File{ - FileName: "your_file_here", - Content: []byte("0xCAFCA03e0e"), - }, - }, + request := operations.GetManifestRequest{ + OrganizationSlug: "", + WorkspaceSlug: "", + NamespaceName: "", + RevisionReference: "", } ctx := context.Background() - res, err := s.Schemas.RegisterSchema(ctx, request) + res, err := s.Artifacts.GetManifest(ctx, request) if err != nil { log.Fatal(err) } - if res != nil { + if res.Manifest != nil { // handle response } } - - target: $["paths"]["/v1/workspace/{workspaceID}/events"]["get"] + - target: $["paths"]["/v1/reports"]["post"] update: x-codeSamples: - lang: go - label: searchWorkspaceEvents + label: uploadReport source: |- package main @@ -2254,21 +2246,27 @@ actions: APIKey: speakeasyclientsdkgo.String(""), }), ) - request := operations.SearchWorkspaceEventsRequest{} + request := operations.UploadReportRequestBody{ + Data: shared.Report{}, + File: operations.UploadReportFile{ + FileName: "your_file_here", + Content: []byte("0xA329C0ad85"), + }, + } ctx := context.Background() - res, err := s.Events.SearchWorkspaceEvents(ctx, request) + res, err := s.Reports.UploadReport(ctx, request) if err != nil { log.Fatal(err) } - if res.CliEventBatch != nil { + if res.UploadedReport != nil { // handle response } } - - target: $["paths"]["/v1/artifacts/namespaces/{namespace_name}/tags"]["get"] + - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/schema/{revisionID}/download"]["get"] update: x-codeSamples: - lang: go - label: getTags + label: downloadSchemaRevision source: |- package main @@ -2286,23 +2284,25 @@ actions: APIKey: speakeasyclientsdkgo.String(""), }), ) - request := operations.GetTagsRequest{ - NamespaceName: "", + request := operations.DownloadSchemaRevisionRequest{ + APIID: "", + VersionID: "", + RevisionID: "", } ctx := context.Background() - res, err := s.Artifacts.GetTags(ctx, request) + res, err := s.Schemas.DownloadSchemaRevision(ctx, request) if err != nil { log.Fatal(err) } - if res.GetTagsResponse != nil { + if res.TwoHundredApplicationJSONSchema != nil { // handle response } } - - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/api_endpoints/find/{displayName}"]["get"] + - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/schema/{baseRevisionID}/diff/{targetRevisionID}"]["get"] update: x-codeSamples: - lang: go - label: findApiEndpoint + label: getSchemaDiff source: |- package main @@ -2320,25 +2320,26 @@ actions: APIKey: speakeasyclientsdkgo.String(""), }), ) - request := operations.FindAPIEndpointRequest{ + request := operations.GetSchemaDiffRequest{ APIID: "", VersionID: "", - DisplayName: "Don.Strosin", + BaseRevisionID: "", + TargetRevisionID: "", } ctx := context.Background() - res, err := s.APIEndpoints.FindAPIEndpoint(ctx, request) + res, err := s.Schemas.GetSchemaDiff(ctx, request) if err != nil { log.Fatal(err) } - if res.APIEndpoint != nil { + if res.SchemaDiff != nil { // handle response } } - - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/api_endpoints/{apiEndpointID}"]["delete"] + - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/schema"]["get"] update: x-codeSamples: - lang: go - label: deleteApiEndpoint + label: getSchema source: |- package main @@ -2356,17 +2357,16 @@ actions: APIKey: speakeasyclientsdkgo.String(""), }), ) - request := operations.DeleteAPIEndpointRequest{ + request := operations.GetSchemaRequest{ APIID: "", VersionID: "", - APIEndpointID: "", } ctx := context.Background() - res, err := s.APIEndpoints.DeleteAPIEndpoint(ctx, request) + res, err := s.Schemas.GetSchema(ctx, request) if err != nil { log.Fatal(err) } - if res != nil { + if res.Schema != nil { // handle response } } diff --git a/gen.yaml b/gen.yaml index c28d65c5..fd1604b6 100644 --- a/gen.yaml +++ b/gen.yaml @@ -13,7 +13,7 @@ generation: auth: oAuth2ClientCredentialsEnabled: false go: - version: 3.12.2 + version: 3.12.3 additionalDependencies: {} allowUnknownFieldsInWeakUnions: false clientServerStatusCodesAsErrors: true diff --git a/speakeasy.go b/speakeasy.go index f729e74c..3c274e82 100644 --- a/speakeasy.go +++ b/speakeasy.go @@ -190,9 +190,9 @@ func New(opts ...SDKOption) *Speakeasy { sdkConfiguration: sdkConfiguration{ Language: "go", OpenAPIDocVersion: "0.4.0 .", - SDKVersion: "3.12.2", - GenVersion: "2.390.6", - UserAgent: "speakeasy-sdk/go 3.12.2 2.390.6 0.4.0 . github.com/speakeasy-api/speakeasy-client-sdk-go", + SDKVersion: "3.12.3", + GenVersion: "2.392.0", + UserAgent: "speakeasy-sdk/go 3.12.3 2.392.0 0.4.0 . github.com/speakeasy-api/speakeasy-client-sdk-go", Globals: globals.Globals{}, Hooks: hooks.New(), },