From 7c3415fd38d0e02f115bdf3462a7dec088966a37 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 4 Feb 2025 00:20:34 +0000 Subject: [PATCH] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.483.0 --- .speakeasy/gen.lock | 991 +++++------------- .speakeasy/workflow.lock | 14 +- CONTRIBUTING.md | 26 + README.md | 2 +- RELEASES.md | 12 +- codeSamples.yaml | 54 +- .../Operations/ArchiveNamespaceRequest.md | 9 + .../Operations/ArchiveNamespaceRequestBody.md | 10 + ...esponse.md => ArchiveNamespaceResponse.md} | 5 +- .../GenerateCodeSamplePreviewResponse.md | 5 +- .../GetCodeSamplePreviewAsyncResponse.md | 7 +- .../Operations/GetCodeSamplesRequest.md | 10 - docs/Models/Shared/CliEvent.md | 1 + docs/Models/Shared/CodeSampleSchemaInput.md | 13 +- docs/Models/Shared/InteractionType.md | 3 +- docs/Models/Shared/Namespace.md | 2 + docs/Models/Shared/Revision.md | 1 + .../Models/Shared/RevisionContentsMetadata.md | 20 + .../Shared/RevisionContentsMetadataType.md | 9 + docs/Models/Shared/UsageSnippet.md | 4 +- docs/Models/Shared/User.md | 1 + docs/sdks/artifacts/README.md | 42 + docs/sdks/codesamples/README.md | 61 +- docs/sdks/events/README.md | 2 +- gen.yaml | 2 +- src/SpeakeasySDK/Artifacts.cs | 93 +- src/SpeakeasySDK/Auth.cs | 12 +- src/SpeakeasySDK/CodeSamples.cs | 147 +-- src/SpeakeasySDK/Events.cs | 6 +- src/SpeakeasySDK/Github.cs | 6 +- .../Operations/ArchiveNamespaceRequest.cs | 27 + .../Operations/ArchiveNamespaceRequestBody.cs | 24 + ...esponse.cs => ArchiveNamespaceResponse.cs} | 8 +- .../GenerateCodeSamplePreviewResponse.cs | 16 +- .../GetCodeSamplePreviewAsyncResponse.cs | 26 +- .../Operations/GetCodeSamplesRequest.cs | 30 - src/SpeakeasySDK/Models/Shared/CliEvent.cs | 6 + .../Models/Shared/CodeSampleSchemaInput.cs | 12 +- .../Models/Shared/InteractionType.cs | 2 + src/SpeakeasySDK/Models/Shared/Namespace.cs | 6 + src/SpeakeasySDK/Models/Shared/Revision.cs | 4 + .../Models/Shared/RevisionContentsMetadata.cs | 93 ++ .../Shared/RevisionContentsMetadataType.cs | 57 + .../Models/Shared/UsageSnippet.cs | 12 + src/SpeakeasySDK/Models/Shared/User.cs | 6 + src/SpeakeasySDK/Organizations.cs | 6 +- src/SpeakeasySDK/Reports.cs | 24 +- src/SpeakeasySDK/SDK.cs | 6 +- src/SpeakeasySDK/ShortURLs.cs | 12 +- src/SpeakeasySDK/SpeakeasySDK.csproj | 2 +- src/SpeakeasySDK/Subscriptions.cs | 6 +- src/SpeakeasySDK/Suggest.cs | 30 +- src/SpeakeasySDK/Workspaces.cs | 6 +- 53 files changed, 911 insertions(+), 1080 deletions(-) create mode 100644 CONTRIBUTING.md create mode 100644 docs/Models/Operations/ArchiveNamespaceRequest.md create mode 100644 docs/Models/Operations/ArchiveNamespaceRequestBody.md rename docs/Models/Operations/{GetCodeSamplesResponse.md => ArchiveNamespaceResponse.md} (82%) delete mode 100644 docs/Models/Operations/GetCodeSamplesRequest.md create mode 100644 docs/Models/Shared/RevisionContentsMetadata.md create mode 100644 docs/Models/Shared/RevisionContentsMetadataType.md create mode 100644 src/SpeakeasySDK/Models/Operations/ArchiveNamespaceRequest.cs create mode 100644 src/SpeakeasySDK/Models/Operations/ArchiveNamespaceRequestBody.cs rename src/SpeakeasySDK/Models/Operations/{GetCodeSamplesResponse.cs => ArchiveNamespaceResponse.cs} (84%) delete mode 100644 src/SpeakeasySDK/Models/Operations/GetCodeSamplesRequest.cs create mode 100644 src/SpeakeasySDK/Models/Shared/RevisionContentsMetadata.cs create mode 100644 src/SpeakeasySDK/Models/Shared/RevisionContentsMetadataType.cs diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 64277a85..284cffaa 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,19 +1,20 @@ lockVersion: 2.0.0 id: f73d2126-985b-4d69-88ee-b7c69254d8bf management: - docChecksum: 52df6f1f34dfe76968f8ed009cc2bfd3 + docChecksum: b2633754445813a0caca48987361efbb docVersion: 0.4.0 - speakeasyVersion: 1.468.2 - generationVersion: 2.493.4 - releaseVersion: 5.12.0 - configChecksum: 4ac5f7ce74e22b4b8247f447fc0fc3c9 + speakeasyVersion: 1.483.0 + generationVersion: 2.502.0 + releaseVersion: 5.13.0 + configChecksum: bd4186d437ab6770fadd755208456e3f repoURL: https://github.com/speakeasy-api/speakeasy-client-sdk-csharp.git repoSubDirectory: . published: true features: csharp: additionalDependencies: 0.1.0 - core: 3.10.10 + constsAndDefaults: 0.0.1 + core: 3.10.13 deprecations: 2.81.2 globalSecurity: 2.83.6 globalSecurityCallbacks: 0.1.0 @@ -35,6 +36,9 @@ generatedFiles: - docs/Models/Errors/Error.md - docs/Models/Operations/ActivateSubscriptionNamespaceRequest.md - docs/Models/Operations/ActivateSubscriptionNamespaceResponse.md + - docs/Models/Operations/ArchiveNamespaceRequest.md + - docs/Models/Operations/ArchiveNamespaceRequestBody.md + - docs/Models/Operations/ArchiveNamespaceResponse.md - docs/Models/Operations/CheckGithubAccessRequest.md - docs/Models/Operations/CheckGithubAccessResponse.md - docs/Models/Operations/CreateFreeTrialResponse.md @@ -61,8 +65,6 @@ generatedFiles: - docs/Models/Operations/GetCodeSamplePreviewAsyncRequest.md - docs/Models/Operations/GetCodeSamplePreviewAsyncResponse.md - docs/Models/Operations/GetCodeSamplePreviewAsyncResponseBody.md - - docs/Models/Operations/GetCodeSamplesRequest.md - - docs/Models/Operations/GetCodeSamplesResponse.md - docs/Models/Operations/GetGitHubActionRequest.md - docs/Models/Operations/GetGitHubActionResponse.md - docs/Models/Operations/GetGithubSetupStateRequest.md @@ -200,6 +202,8 @@ generatedFiles: - docs/Models/Shared/RemoteSourceSubscriptionSettings.md - docs/Models/Shared/Report.md - docs/Models/Shared/Revision.md + - docs/Models/Shared/RevisionContentsMetadata.md + - docs/Models/Shared/RevisionContentsMetadataType.md - docs/Models/Shared/SSOMetadata.md - docs/Models/Shared/SchemaFile.md - docs/Models/Shared/Secrets.md @@ -252,6 +256,9 @@ generatedFiles: - src/SpeakeasySDK/Models/Errors/SDKException.cs - src/SpeakeasySDK/Models/Operations/ActivateSubscriptionNamespaceRequest.cs - src/SpeakeasySDK/Models/Operations/ActivateSubscriptionNamespaceResponse.cs + - src/SpeakeasySDK/Models/Operations/ArchiveNamespaceRequest.cs + - src/SpeakeasySDK/Models/Operations/ArchiveNamespaceRequestBody.cs + - src/SpeakeasySDK/Models/Operations/ArchiveNamespaceResponse.cs - src/SpeakeasySDK/Models/Operations/CheckGithubAccessRequest.cs - src/SpeakeasySDK/Models/Operations/CheckGithubAccessResponse.cs - src/SpeakeasySDK/Models/Operations/CreateFreeTrialResponse.cs @@ -278,8 +285,6 @@ generatedFiles: - src/SpeakeasySDK/Models/Operations/GetCodeSamplePreviewAsyncRequest.cs - src/SpeakeasySDK/Models/Operations/GetCodeSamplePreviewAsyncResponse.cs - src/SpeakeasySDK/Models/Operations/GetCodeSamplePreviewAsyncResponseBody.cs - - src/SpeakeasySDK/Models/Operations/GetCodeSamplesRequest.cs - - src/SpeakeasySDK/Models/Operations/GetCodeSamplesResponse.cs - src/SpeakeasySDK/Models/Operations/GetGitHubActionRequest.cs - src/SpeakeasySDK/Models/Operations/GetGitHubActionResponse.cs - src/SpeakeasySDK/Models/Operations/GetGithubSetupStateRequest.cs @@ -417,6 +422,8 @@ generatedFiles: - src/SpeakeasySDK/Models/Shared/RemoteSourceSubscriptionSettings.cs - src/SpeakeasySDK/Models/Shared/Report.cs - src/SpeakeasySDK/Models/Shared/Revision.cs + - src/SpeakeasySDK/Models/Shared/RevisionContentsMetadata.cs + - src/SpeakeasySDK/Models/Shared/RevisionContentsMetadataType.cs - src/SpeakeasySDK/Models/Shared/SSOMetadata.cs - src/SpeakeasySDK/Models/Shared/SchemaFile.cs - src/SpeakeasySDK/Models/Shared/Secrets.cs @@ -471,288 +478,11 @@ generatedFiles: - src/SpeakeasySDK/Utils/Utilities.cs - src/SpeakeasySDK/Workspaces.cs examples: - deleteApi: - speakeasy-default-delete-api: - parameters: - path: - apiID: "" - versionID: "" - responses: - default: - application/json: {"message": "", "status_code": 875451} - generateOpenApiSpec: - speakeasy-default-generate-open-api-spec: - parameters: - path: - apiID: "" - versionID: "" - responses: - "200": - application/json: {"current_schema": "", "new_schema": ""} - default: - application/json: {"message": "", "status_code": 871055} - generatePostmanCollection: - speakeasy-default-generate-postman-collection: - parameters: - path: - apiID: "" - versionID: "" - responses: - "200": - application/octet-stream: "0xd6Be621e7F" - default: - application/json: {"message": "", "status_code": 697008} - getAllApiVersions: - speakeasy-default-get-all-api-versions: - parameters: - path: - apiID: "" - query: {} - responses: - "200": - application/json: [] - default: - application/json: {"message": "", "status_code": 784529} - getApis: - speakeasy-default-get-apis: - responses: - "200": - application/json: [] - default: - application/json: {"message": "", "status_code": 11490} - upsertApi: - speakeasy-default-upsert-api: - parameters: - path: - apiID: "" - requestBody: - application/json: {"api_id": "", "description": "Synchronised 5th generation knowledge user", "version_id": ""} - responses: - "200": - application/json: {"api_id": "", "created_at": "2022-11-30T03:11:22.096Z", "description": "Visionary 4th generation focus group", "updated_at": "2022-03-06T16:10:22.154Z", "version_id": "", "workspace_id": ""} - default: - application/json: {"message": "", "status_code": 17590} - deleteApiEndpoint: - speakeasy-default-delete-api-endpoint: - parameters: - path: - apiID: "" - versionID: "" - apiEndpointID: "" - responses: - default: - application/json: {"message": "", "status_code": 788324} - findApiEndpoint: - speakeasy-default-find-api-endpoint: - parameters: - path: - apiID: "" - versionID: "" - displayName: "Don.Strosin" - responses: - "200": - application/json: {"api_endpoint_id": "", "api_id": "", "created_at": "2023-05-01T15:36:31.538Z", "description": "Programmable uniform adapter", "display_name": "Gracie23", "method": "", "path": "/srv", "updated_at": "2024-01-26T05:16:49.540Z", "version_id": "", "workspace_id": ""} - default: - application/json: {"message": "", "status_code": 398024} - generateOpenApiSpecForApiEndpoint: - speakeasy-default-generate-open-api-spec-for-api-endpoint: - parameters: - path: - apiID: "" - versionID: "" - apiEndpointID: "" - responses: - "200": - application/json: {"current_schema": "", "new_schema": ""} - default: - application/json: {"message": "", "status_code": 833540} - generatePostmanCollectionForApiEndpoint: - speakeasy-default-generate-postman-collection-for-api-endpoint: - parameters: - path: - apiID: "" - versionID: "" - apiEndpointID: "" - responses: - "200": - application/octet-stream: "0xBBF5e24c4D" - default: - application/json: {"message": "", "status_code": 870898} - getAllApiEndpoints: - speakeasy-default-get-all-api-endpoints: - parameters: - path: - apiID: "" - responses: - "200": - application/json: [] - default: - application/json: {"message": "", "status_code": 909400} - getAllForVersionApiEndpoints: - speakeasy-default-get-all-for-version-api-endpoints: - parameters: - path: - apiID: "" - versionID: "" - responses: - "200": - application/json: [] - default: - application/json: {"message": "", "status_code": 908203} - getApiEndpoint: - speakeasy-default-get-api-endpoint: - parameters: - path: - apiID: "" - versionID: "" - apiEndpointID: "" - responses: - "200": - application/json: {"api_endpoint_id": "", "api_id": "", "created_at": "2024-12-16T12:54:49.054Z", "description": "Grass-roots interactive orchestration", "display_name": "Mylene_Kozey58", "method": "", "path": "/rescue", "updated_at": "2024-07-01T02:49:47.888Z", "version_id": "", "workspace_id": ""} - default: - application/json: {"message": "", "status_code": 572524} - upsertApiEndpoint: - speakeasy-default-upsert-api-endpoint: - parameters: - path: - apiID: "" - versionID: "" - apiEndpointID: "" - requestBody: - application/json: {"api_endpoint_id": "", "description": "Public-key systematic attitude", "display_name": "Camille.Schaefer11", "method": "", "path": "/Library", "version_id": ""} - responses: - "200": - application/json: {"api_endpoint_id": "", "api_id": "", "created_at": "2023-05-11T02:25:34.515Z", "description": "Triple-buffered optimal methodology", "display_name": "Nolan_Corwin58", "method": "", "path": "/home/user", "updated_at": "2022-04-29T18:24:21.535Z", "version_id": "", "workspace_id": ""} - default: - application/json: {"message": "", "status_code": 462700} - deleteVersionMetadata: - speakeasy-default-delete-version-metadata: - parameters: - path: - apiID: "" - versionID: "" - metaKey: "" - metaValue: "" - responses: - default: - application/json: {"message": "", "status_code": 730807} - getVersionMetadata: - speakeasy-default-get-version-metadata: - parameters: - path: - apiID: "" - versionID: "" - responses: - "200": - application/json: [] - default: - application/json: {"message": "", "status_code": 269133} - insertVersionMetadata: - speakeasy-default-insert-version-metadata: - parameters: - path: - apiID: "" - versionID: "" - requestBody: - application/json: {"meta_key": "", "meta_value": ""} - responses: - "200": - application/json: {"api_id": "", "created_at": "2022-03-18T13:32:09.395Z", "meta_key": "", "meta_value": "", "version_id": "", "workspace_id": ""} - default: - application/json: {"message": "", "status_code": 516378} - deleteSchema: - speakeasy-default-delete-schema: - parameters: - path: - apiID: "" - versionID: "" - revisionID: "" - responses: - default: - application/json: {"message": "", "status_code": 9376} - downloadSchema: - speakeasy-default-download-schema: - parameters: - path: - apiID: "" - versionID: "" - responses: - "200": - application/json: "0xaf6D2e8557" - application/x-yaml: "0x5EFea906ee" - default: - application/json: {"message": "", "status_code": 375177} - downloadSchemaRevision: - speakeasy-default-download-schema-revision: - parameters: - path: - apiID: "" - versionID: "" - revisionID: "" - responses: - "200": - application/json: "0xC11b2bbEC4" - application/x-yaml: "0xE04B837904" - default: - application/json: {"message": "", "status_code": 298817} - getSchema: - speakeasy-default-get-schema: - parameters: - path: - apiID: "" - versionID: "" - responses: - "200": - application/json: {"api_id": "", "created_at": "2022-09-09T00:58:17.303Z", "description": "Quality-focused scalable superstructure", "revision_id": "", "version_id": "", "workspace_id": ""} - default: - application/json: {"message": "", "status_code": 983881} - getSchemaDiff: - speakeasy-default-get-schema-diff: - parameters: - path: - apiID: "" - versionID: "" - baseRevisionID: "" - targetRevisionID: "" - responses: - "200": - application/json: {"additions": [], "deletions": [], "modifications": {}} - default: - application/json: {"message": "", "status_code": 201370} - getSchemaRevision: - speakeasy-default-get-schema-revision: - parameters: - path: - apiID: "" - versionID: "" - revisionID: "" - responses: - "200": - application/json: {"api_id": "", "created_at": "2022-01-23T10:21:45.287Z", "description": "Managed intermediate flexibility", "revision_id": "", "version_id": "", "workspace_id": ""} - default: - application/json: {"message": "", "status_code": 941905} - getSchemas: - speakeasy-default-get-schemas: - parameters: - path: - apiID: "" - versionID: "" - responses: - "200": - application/json: [] - default: - application/json: {"message": "", "status_code": 170115} - registerSchema: - speakeasy-default-register-schema: - parameters: - path: - apiID: "" - versionID: "" - requestBody: - multipart/form-data: {"file": {"": "example.file"}} + createRemoteSource: + speakeasy-default-create-remote-source: responses: - default: - application/json: {"message": "", "status_code": 867990} + 4XX: + application/json: {"message": "", "status_code": 580557} getBlob: speakeasy-default-get-blob: parameters: @@ -762,10 +492,6 @@ examples: namespace_name: "" digest: "" responses: - "200": - application/octet-stream: "0x211ECBAE5E" - default: - application/json: {"message": "", "status_code": 279725} 2XX: application/octet-stream: "0x21CA56a82d" 4XX: @@ -779,10 +505,6 @@ examples: namespace_name: "" revision_reference: "" responses: - "200": - application/vnd.oci.image.manifest.v1+json: {"layers": [{"digest": "sha256:5d20c808ce198565ff70b3ed23a991dd49afac45dece63474b27ce6ed036adc6", "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip", "size": 2107098}], "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "schemaVersion": 2} - default: - application/json: {"message": "", "status_code": 707258} 2XX: application/vnd.oci.image.manifest.v1+json: {"layers": [{"digest": "sha256:5d20c808ce198565ff70b3ed23a991dd49afac45dece63474b27ce6ed036adc6", "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip", "size": 2107098}], "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "schemaVersion": 2} 4XX: @@ -790,25 +512,10 @@ examples: getNamespaces: speakeasy-default-get-namespaces: responses: - "200": - application/json: {"items": []} - default: - application/json: {"message": "", "status_code": 917991} 2XX: application/json: {"items": [{"created_at": "2025-01-19T10:11:46.428Z", "id": "", "name": "", "updated_at": "2023-01-07T04:43:36.873Z"}, {"created_at": "2024-07-05T07:26:30.970Z", "id": "", "name": "", "updated_at": "2025-01-30T11:34:19.590Z"}, {"created_at": "2023-08-10T13:43:30.983Z", "id": "", "name": "", "updated_at": "2023-07-15T08:41:36.371Z"}]} 4XX: application/json: {"message": "", "status_code": 305198} - getOASSummary: - speakeasy-default-get-OAS-summary: - parameters: - path: - namespace_name: "" - revision_reference: "" - responses: - "200": - application/json: {"info": {"description": "Fully-configurable neutral software", "summary": "", "title": "", "version": ""}, "operations": []} - default: - application/json: {"message": "", "status_code": 963960} getRevisions: speakeasy-default-get-revisions: parameters: @@ -816,10 +523,6 @@ examples: namespace_name: "" query: {} responses: - "200": - application/json: {"items": [], "next_page_token": ""} - default: - application/json: {"message": "", "status_code": 284614} 2XX: application/json: {"items": [{"created_at": "2025-09-16T19:17:04.361Z", "digest": "sha256:6d1ef012b5674ad8a127ecfa9b5e6f5178d171b90ee462846974177fd9bdd39f", "id": "", "namespace_name": "", "tags": [""], "updated_at": "2024-12-05T05:58:38.953Z"}], "next_page_token": ""} 4XX: @@ -830,446 +533,106 @@ examples: path: namespace_name: "" responses: - "200": - application/json: {"items": []} - default: - application/json: {"message": "", "status_code": 136548} 2XX: application/json: {"items": []} 4XX: application/json: {"message": "", "status_code": 50428} + listRemoteSources: + speakeasy-default-list-remote-sources: + parameters: + query: + namespace_name: "" + responses: + 2XX: + application/json: {"inputs": [{"registry_url": "https://well-lit-cap.net"}, {"registry_url": "https://vibrant-labourer.net"}], "output": {"registry_url": "https://unfit-minor.biz"}} + 4XX: + application/json: {"message": "", "status_code": 754391} postTags: speakeasy-default-post-tags: parameters: path: namespace_name: "" responses: - default: - application/json: {"message": "", "status_code": 581484} 4XX: application/json: {"message": "", "status_code": 581484} preflight: speakeasy-default-preflight: responses: - default: - application/json: {"message": "", "status_code": 820828} - "200": {} - 2XX: - application/json: {} - 4XX: - application/json: {"message": "", "status_code": 820828} - getAccessToken: - speakeasy-default-get-access-token: - parameters: - query: - workspace_id: "" - responses: - "200": - application/json: {"access_token": ""} - default: - application/json: {"message": "", "status_code": 299050} - 2XX: - application/json: {"access_token": ""} - 4XX: - application/json: {"message": "", "status_code": 299050} - getUser: - speakeasy-default-get-user: - responses: - "200": - application/json: {"admin": true, "confirmed": false, "created_at": "2022-06-27T09:27:02.992Z", "display_name": "Kendrick92", "email": "Kirstin.Kautzer61@yahoo.com", "email_verified": false, "id": "", "last_login_at": "2023-04-23T00:14:06.093Z", "updated_at": "2023-07-11T14:17:50.684Z", "whitelisted": false} - default: - application/json: {"message": "", "status_code": 502060} - 2XX: - application/json: {"admin": false, "confirmed": true, "created_at": "2025-09-05T08:59:40.988Z", "display_name": "Tianna_Prohaska", "email": "Morton82@gmail.com", "email_verified": false, "id": "", "updated_at": "2023-08-28T03:26:52.335Z", "whitelisted": true} - 4XX: - application/json: {"message": "", "status_code": 237845} - getWorkspaceAccess: - speakeasy-default-get-workspace-access: - responses: - "200": - application/json: {"generation_allowed": false, "message": ""} - 2XX: - application/json: {"generation_allowed": true, "message": ""} - validateApiKey: - speakeasy-default-validate-api-key: - responses: - "200": - application/json: {"account_type_v2": "enterprise", "enabled_features": [], "org_slug": "", "telemetry_disabled": true, "workspace_id": "", "workspace_slug": ""} - default: - application/json: {"message": "", "status_code": 858745} 2XX: - application/json: {"account_type_v2": "enterprise", "enabled_features": ["", "", ""], "org_slug": "", "telemetry_disabled": true, "workspace_created_at": "2024-02-05T22:57:49.657Z", "workspace_id": "", "workspace_slug": ""} - 4XX: - application/json: {"message": "", "status_code": 150892} - generateRequestPostmanCollection: - speakeasy-default-generate-request-postman-collection: - parameters: - path: - requestID: "" - responses: - "200": - application/octet-stream: "0xe9bfc5350A" - default: - application/json: {"message": "", "status_code": 319220} - getRequestFromEventLog: - speakeasy-default-get-request-from-event-log: - parameters: - path: - requestID: "" - responses: - "200": - application/json: {"created_at": "2024-07-06T20:33:24.663Z", "har": "", "har_size_bytes": 205280, "request_id": "", "workspace_id": ""} - default: - application/json: {"message": "", "status_code": 659422} - queryEventLog: - speakeasy-default-query-event-log: - responses: - "200": - application/json: [] - default: - application/json: {"message": "", "status_code": 241978} - checkAccess: - speakeasy-default-check-access: - parameters: - query: - org: "" - repo: "" - responses: - default: - application/json: {"message": "", "status_code": 74604} - configureCodeSamples: - speakeasy-default-configure-code-samples: - requestBody: - application/json: {"org": "", "repo": "", "targetName": ""} - responses: - "200": - application/json: {"codeSampleOverlayRegistryURL": "", "source": {"location": ""}} - default: - application/json: {"message": "", "status_code": 968093} - configureMintlifyRepo: - speakeasy-default-configure-mintlify-repo: - requestBody: - application/json: {"input": "", "org": "", "overlays": [], "repo": ""} - responses: - default: - application/json: {"message": "", "status_code": 310607} - configureTarget: - speakeasy-default-configure-target: - requestBody: - application/json: {"org": "", "repo_name": ""} - responses: - default: - application/json: {"message": "", "status_code": 210299} - fetchPublishingPRs: - speakeasy-default-fetch-publishing-P-rs: - parameters: - query: - generate_gen_lock_id: "" - org: "" - repo: "" - responses: - default: - application/json: {"message": "", "status_code": 192607} - "200": {} - getAction: - speakeasy-default-get-action: - parameters: - query: - org: "" - repo: "" - responses: - default: - application/json: {"message": "", "status_code": 252330} - "200": {} - githubCheckPublishingSecrets: - speakeasy-default-github-check-publishing-secrets: - parameters: - query: - generate_gen_lock_id: "" - responses: - default: - application/json: {"message": "", "status_code": 445560} - "200": {} - 2XX: - application/json: {} - 4XX: - application/json: {"message": "", "status_code": 749379} - githubStorePublishingSecrets: - speakeasy-default-github-store-publishing-secrets: - requestBody: - application/json: {"generate_gen_lock_id": ""} - responses: - default: - application/json: {"message": "", "status_code": 802162} - 4XX: - application/json: {"message": "", "status_code": 444361} - triggerAction: - speakeasy-default-trigger-action: - requestBody: - application/json: {"gen_lock_id": "", "org": "", "repo_name": ""} - responses: - default: - application/json: {"message": "", "status_code": 689611} - createFreeTrial: - speakeasy-default-create-free-trial: - responses: - default: - application/json: {"message": "", "status_code": 728627} - 4XX: - application/json: {"message": "", "status_code": 728627} - getOrganization: - speakeasy-default-get-organization: - parameters: - path: - organizationID: "" - responses: - "200": - application/json: {"account_type": "scale-up", "id": "", "name": "", "telemetry_disabled": true} - default: - application/json: {"message": "", "status_code": 492205} - 2XX: - application/json: {"account_type": "business", "created_at": "2024-09-04T11:33:52.011Z", "id": "", "name": "", "slug": "", "sso_activated": false, "telemetry_disabled": false, "updated_at": "2025-11-29T01:50:48.954Z"} - 4XX: - application/json: {"message": "", "status_code": 458049} - getOrganizationUsage: - speakeasy-default-get-organization-usage: - responses: - "200": - application/json: {"allowed_languages": [], "total_allowed_languages": 85188, "usage": []} - default: - application/json: {"message": "", "status_code": 689787} - 2XX: - application/json: {"allowed_languages": [], "total_allowed_languages": 863126, "usage": [{"accessible": false, "accessible_features": [""], "gen_lock_ids": ["", "", ""], "language": "", "max_operations": 939867, "number_of_operations": 881790, "used_features": [""], "workspaces": ["", ""]}, {"accessible": true, "accessible_features": ["", "", ""], "gen_lock_ids": [""], "language": "", "max_operations": 593645, "number_of_operations": 369818, "used_features": [""], "workspaces": []}]} - 4XX: - application/json: {"message": "", "status_code": 804495} - getOrganizations: - speakeasy-default-get-organizations: - responses: - "200": - application/json: [] - default: - application/json: {"message": "", "status_code": 952344} - 2XX: - application/json: [{"account_type": "free", "created_at": "2024-10-17T22:25:06.537Z", "id": "", "name": "", "slug": "", "sso_activated": false, "telemetry_disabled": true, "updated_at": "2024-05-22T13:01:16.115Z"}] - 4XX: - application/json: {"message": "", "status_code": 621425} - getChangesReportSignedUrl: - speakeasy-default-get-changes-report-signed-url: - parameters: - path: - documentChecksum: "" - responses: - "200": - application/json: {"url": "http://precious-pressure.biz"} - 2XX: - application/json: {"url": "https://rosy-masterpiece.biz/"} - getLintingReportSignedUrl: - speakeasy-default-get-linting-report-signed-url: - parameters: - path: - documentChecksum: "" - responses: - "200": - application/json: {"url": "https://overdue-maybe.net"} - 2XX: - application/json: {"url": "https://negligible-merit.info"} - uploadReport: - speakeasy-default-upload-report: - requestBody: - multipart/form-data: {"file": {"": "example.file"}} - responses: - "200": - application/json: {"url": "http://earnest-upgrade.com"} - 2XX: - application/json: {"url": "https://cluttered-stall.info"} - create: - speakeasy-default-create: - requestBody: - application/json: {"url": "http://limp-pastry.org"} - responses: - "200": - application/json: {"full_url": "", "short_url": ""} - 2XX: - application/json: {"full_url": "https://probable-heating.com/", "short_url": "https://standard-utilization.com/"} - suggest: - speakeasy-default-suggest: - parameters: - header: - x-session-id: "" - requestBody: - application/json: {"diagnostics": [], "oas_summary": {"info": {"description": "Operative impactful monitoring", "summary": "", "title": "", "version": ""}, "operations": []}, "suggestion_type": "diagnostics-only"} - responses: - "200": - application/json: "0x8D9A3DCDEa" - 2XX: - application/json: "0xbe893CEca6" - suggestOpenAPI: - speakeasy-default-suggest-open-API: - parameters: - header: - x-session-id: "" - requestBody: - multipart/form-data: {"schema": {"": "example.file"}} - responses: - "200": - application/json: "0xB470c0FE6E" - 2XX: - application/json: "0x0beEcB7cF6" - suggestOpenAPIRegistry: - speakeasy-default-suggest-open-API-registry: - parameters: - path: - namespace_name: "" - revision_reference: "" - header: - x-session-id: "" - responses: - "200": - application/json: "0x94DFDbB4df" - 2XX: - application/json: "0x9DDBdD905F" - getEmbedAccessToken: - speakeasy-default-get-embed-access-token: - responses: - "200": - application/json: {"access_token": ""} - default: - application/json: {"message": "", "status_code": 964408} - getValidEmbedAccessTokens: - speakeasy-default-get-valid-embed-access-tokens: - responses: - "200": - application/json: [] - default: - application/json: {"message": "", "status_code": 806352} - revokeEmbedAccessToken: - speakeasy-default-revoke-embed-access-token: - parameters: - path: - tokenID: "" - responses: - default: - application/json: {"message": "", "status_code": 217594} - getWorkspace: - speakeasy-default-get-workspace: - parameters: - path: - workspace_id: "" - responses: - "200": - application/json: {"created_at": "2024-06-17T21:39:51.489Z", "id": "", "name": "", "organization_id": "", "slug": "", "telemetry_disabled": true, "updated_at": "2022-01-05T09:55:04.665Z", "verified": false} - default: - application/json: {"message": "", "status_code": 488095} - 2XX: - application/json: {"created_at": "2025-11-17T10:14:22.985Z", "id": "", "name": "", "organization_id": "", "slug": "", "updated_at": "2025-07-28T15:04:25.117Z", "verified": false} + application/json: {} 4XX: - application/json: {"message": "", "status_code": 868924} - getWorkspaceFeatureFlags: - speakeasy-default-get-workspace-feature-flags: + application/json: {"message": "", "status_code": 820828} + archiveNamespace: + speakeasy-default-archive-namespace: parameters: path: - workspace_id: "" + namespace_name: "" responses: - 5XX: - application/json: {"message": "", "status_code": 365854} - "200": - application/json: {} - getWorkspaceEventsByTarget: - speakeasy-default-get-workspace-events-by-target: + 4XX: + application/json: {"message": "", "status_code": 334009} + setVisibility: + speakeasy-default-set-visibility: parameters: path: - targetID: "" - target_id: "" - workspace_id: "" - query: {} + namespace_name: "" responses: - "200": - application/json: [] - 5XX: - application/json: {"message": "", "status_code": 749240} - getWorkspaceTargets: - speakeasy-default-get-workspace-targets: + 4XX: + application/json: {"message": "", "status_code": 651364} + getWorkspaceAccess: + speakeasy-default-get-workspace-access: responses: - "200": - application/json: [] - 5XX: - application/json: {"message": "", "status_code": 966013} - postWorkspaceEvents: - speakeasy-default-post-workspace-events: + 2XX: + application/json: {"generation_allowed": true, "message": ""} + getAccessToken: + speakeasy-default-get-access-token: parameters: - path: + query: workspace_id: "" - requestBody: - application/json: [] responses: - 5XX: - application/json: {"message": "", "status_code": 962857} - searchWorkspaceEvents: - speakeasy-default-search-workspace-events: - parameters: - path: - workspace_id: "" - query: {} + 2XX: + application/json: {"access_token": "", "claims": {}, "user": {}} + 4XX: + application/json: {"message": "", "status_code": 299050} + getUser: + speakeasy-default-get-user: responses: - "200": - application/json: [] - 5XX: - application/json: {"message": "", "status_code": 750032} + 2XX: + application/json: {"admin": false, "confirmed": true, "created_at": "2025-09-05T08:59:40.988Z", "display_name": "Tianna_Prohaska", "email": "Morton82@gmail.com", "email_verified": false, "id": "", "updated_at": "2023-08-28T03:26:52.335Z", "whitelisted": true} + 4XX: + application/json: {"message": "", "status_code": 237845} + validateApiKey: + speakeasy-default-validate-api-key: + responses: + 2XX: + application/json: {"account_type_v2": "enterprise", "enabled_features": ["", "", ""], "org_slug": "", "telemetry_disabled": true, "workspace_created_at": "2024-02-05T22:57:49.657Z", "workspace_id": "", "workspace_slug": ""} + 4XX: + application/json: {"message": "", "status_code": 150892} generateCodeSamplePreview: - speakeasy-default-generate-code-sample-preview: + default: requestBody: - multipart/form-data: {"languages": ["", ""], "schema_file": {"": "example.file"}} + multipart/form-data: {"language": "", "schema_file": {"": "example.file"}} responses: - "200": - application/json: "0x28e0E3f5d1" - application/x-yaml: "0xfA011e0be4" - 4XX: - application/json: {"message": "", "status_code": 396101} + 2XX: + application/json: {"snippets": [{"code": "import { Petstore } from \"petstore-sdk\";\n\nconst petstore = new Petstore({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await petstore.pet.getById({\n id: 137396,\n });\n\n // Handle the result\n console.log(result);\n}\n\nrun();", "language": "typescript", "method": "get", "operationId": "getPetById", "path": "/pet/{id}"}]} generateCodeSamplePreviewAsync: speakeasy-default-generate-code-sample-preview-async: requestBody: - multipart/form-data: {"languages": ["", "", ""], "schema_file": {"": "example.file"}} + multipart/form-data: {"language": "", "schema_file": {"": "example.file"}} responses: "202": - application/json: {"job_id": "", "status": "pending"} + application/json: {"job_id": "", "status": "running"} 4XX: + application/json: {"message": "", "status_code": 134142} + 5XX: application/json: {"message": "", "status_code": 394086} getCodeSamplePreviewAsync: - speakeasy-default-get-code-sample-preview-async: + default: parameters: path: jobID: "" - responses: - "200": - application/json: "0x2090d4E1A7" - application/x-yaml: "0x14456CbEbA" - "202": - application/json: {"status": "running"} - 4XX: - application/json: {"message": "", "status_code": 462062} - createRemoteSource: - speakeasy-default-create-remote-source: - responses: - 4XX: - application/json: {"message": "", "status_code": 580557} - listRemoteSources: - speakeasy-default-list-remote-sources: - parameters: - query: - namespace_name: "" responses: 2XX: - application/json: {"inputs": [{"registry_url": "https://well-lit-cap.net"}, {"registry_url": "https://vibrant-labourer.net"}], "output": {"registry_url": "https://unfit-minor.biz"}} - 4XX: - application/json: {"message": "", "status_code": 754391} - setVisibility: - speakeasy-default-set-visibility: - parameters: - path: - namespace_name: "" - responses: - 4XX: - application/json: {"message": "", "status_code": 651364} + application/json: {"snippets": [{"code": "import { Petstore } from \"petstore-sdk\";\n\nconst petstore = new Petstore({\n apiKey: \"\",\n});\n\nasync function run() {\n const result = await petstore.pet.getById({\n id: 137396,\n });\n\n // Handle the result\n console.log(result);\n}\n\nrun();", "language": "typescript", "method": "get", "operationId": "getPetById", "path": "/pet/{id}"}]} checkGithubAccess: speakeasy-default-check-github-access: parameters: @@ -1291,6 +654,16 @@ examples: application/json: {} 4XX: application/json: {"message": "", "status_code": 670562} + githubCheckPublishingSecrets: + speakeasy-default-github-check-publishing-secrets: + parameters: + query: + generate_gen_lock_id: "" + responses: + 2XX: + application/json: {} + 4XX: + application/json: {"message": "", "status_code": 749379} githubConfigureCodeSamples: speakeasy-default-github-configure-code-samples: requestBody: @@ -1342,6 +715,13 @@ examples: responses: 4XX: application/json: {"message": "", "status_code": 774553} + githubStorePublishingSecrets: + speakeasy-default-github-store-publishing-secrets: + requestBody: + application/json: {"generate_gen_lock_id": ""} + responses: + 4XX: + application/json: {"message": "", "status_code": 444361} githubTriggerAction: speakeasy-default-github-trigger-action: requestBody: @@ -1358,6 +738,65 @@ examples: application/json: {"account_type": "enterprise", "created_at": "2025-11-08T08:43:39.394Z", "id": "", "name": "", "slug": "", "sso_activated": true, "telemetry_disabled": true, "updated_at": "2023-04-09T14:25:29.356Z"} 4XX: application/json: {"message": "", "status_code": 792620} + createFreeTrial: + speakeasy-default-create-free-trial: + responses: + 4XX: + application/json: {"message": "", "status_code": 728627} + getOrganization: + speakeasy-default-get-organization: + parameters: + path: + organizationID: "" + responses: + 2XX: + application/json: {"account_type": "business", "created_at": "2024-09-04T11:33:52.011Z", "id": "", "name": "", "slug": "", "sso_activated": false, "telemetry_disabled": false, "updated_at": "2025-11-29T01:50:48.954Z"} + 4XX: + application/json: {"message": "", "status_code": 458049} + getOrganizations: + speakeasy-default-get-organizations: + responses: + 2XX: + application/json: [{"account_type": "free", "created_at": "2024-10-17T22:25:06.537Z", "id": "", "name": "", "slug": "", "sso_activated": false, "telemetry_disabled": true, "updated_at": "2024-05-22T13:01:16.115Z"}, {"account_type": "business", "created_at": "2023-03-09T16:25:53.264Z", "id": "", "name": "", "slug": "", "sso_activated": false, "telemetry_disabled": false, "updated_at": "2023-06-16T08:07:08.454Z"}] + 4XX: + application/json: {"message": "", "status_code": 217828} + getOrganizationUsage: + speakeasy-default-get-organization-usage: + responses: + 2XX: + application/json: {"allowed_languages": [], "total_allowed_languages": 863126, "usage": [{"accessible": false, "accessible_features": [""], "gen_lock_ids": ["", "", ""], "language": "", "max_operations": 939867, "number_of_operations": 881790, "used_features": [""], "workspaces": ["", ""]}, {"accessible": true, "accessible_features": ["", "", ""], "gen_lock_ids": [""], "language": "", "max_operations": 593645, "number_of_operations": 369818, "used_features": [""], "workspaces": []}]} + 4XX: + application/json: {"message": "", "status_code": 804495} + getChangesReportSignedUrl: + speakeasy-default-get-changes-report-signed-url: + parameters: + path: + documentChecksum: "" + responses: + 2XX: + application/json: {"url": "https://rosy-masterpiece.biz/"} + getLintingReportSignedUrl: + speakeasy-default-get-linting-report-signed-url: + parameters: + path: + documentChecksum: "" + responses: + 2XX: + application/json: {"url": "https://negligible-merit.info"} + uploadReport: + speakeasy-default-upload-report: + requestBody: + multipart/form-data: {"data": {}, "file": {"": "example.file"}} + responses: + 2XX: + application/json: {"url": "https://everlasting-hexagon.info"} + create: + speakeasy-default-create: + requestBody: + application/json: {"url": "https://probable-heating.com/"} + responses: + 2XX: + application/json: {"full_url": "https://standard-utilization.com/", "short_url": "https://brisk-seafood.net/"} activateSubscriptionNamespace: speakeasy-default-activate-subscription-namespace: parameters: @@ -1376,6 +815,16 @@ examples: responses: 4XX: application/json: {"message": "", "status_code": 844164} + suggest: + speakeasy-default-suggest: + parameters: + header: + x-session-id: "" + requestBody: + application/json: {"diagnostics": [{"message": "", "path": ["/opt/include", "/opt/share"], "type": ""}, {"message": "", "path": [], "type": ""}], "oas_summary": {"info": {"description": "amid traffic the unfortunately underneath what father lovely out", "license": {}, "summary": "", "title": "", "version": ""}, "operations": [{"description": "times dull than except", "method": "", "operation_id": "", "path": "/mnt", "tags": ["", ""]}]}, "suggestion_type": "diagnostics-only"} + responses: + 2XX: + application/json: "0x5e221847Cc" suggestItems: speakeasy-default-suggest-items: requestBody: @@ -1383,6 +832,27 @@ examples: responses: 2XX: application/json: ["", ""] + suggestOpenAPI: + speakeasy-default-suggest-open-API: + parameters: + header: + x-session-id: "" + requestBody: + multipart/form-data: {"schema": {"": "example.file"}} + responses: + 2XX: + application/json: "0x5F8Df5AB67" + suggestOpenAPIRegistry: + speakeasy-default-suggest-open-API-registry: + parameters: + path: + namespace_name: "" + revision_reference: "" + header: + x-session-id: "" + responses: + 2XX: + application/json: "0x9DDBdD905F" createWorkspace: speakeasy-default-create-workspace: requestBody: @@ -1406,8 +876,8 @@ examples: speakeasy-default-delete-workspace-token: parameters: path: - tokenID: "" workspace_id: "" + tokenID: "" responses: 4XX: application/json: {"message": "", "status_code": 120260} @@ -1422,9 +892,29 @@ examples: speakeasy-default-get-workspaces: responses: 2XX: - application/json: [{"created_at": "2023-03-06T21:36:22.528Z", "id": "", "name": "", "organization_id": "", "slug": "", "updated_at": "2024-10-17T22:25:06.537Z", "verified": false}] + application/json: [{"created_at": "2023-03-06T21:36:22.528Z", "id": "", "name": "", "organization_id": "", "slug": "", "updated_at": "2024-10-17T22:25:06.537Z", "verified": false}, {"created_at": "2023-01-18T20:59:19.735Z", "id": "", "name": "", "organization_id": "", "slug": "", "updated_at": "2024-05-22T13:01:16.115Z", "verified": false}] + 4XX: + application/json: {"message": "", "status_code": 61756} + getWorkspace: + speakeasy-default-get-workspace: + parameters: + path: + workspace_id: "" + responses: + 2XX: + application/json: {"created_at": "2025-11-17T10:14:22.985Z", "id": "", "name": "", "organization_id": "", "slug": "", "updated_at": "2025-07-28T15:04:25.117Z", "verified": false} 4XX: - application/json: {"message": "", "status_code": 16308} + application/json: {"message": "", "status_code": 868924} + getWorkspaceFeatureFlags: + speakeasy-default-get-workspace-feature-flags: + parameters: + path: + workspace_id: "" + responses: + "200": + application/json: {} + 5XX: + application/json: {"message": "", "status_code": 104495} getWorkspaceSettings: speakeasy-default-get-workspace-settings: parameters: @@ -1459,8 +949,8 @@ examples: speakeasy-default-grant-user-access-to-workspace: parameters: path: - email: "Lucinda.Batz8@hotmail.com" workspace_id: "" + email: "Lucinda.Batz8@hotmail.com" responses: "200": application/json: {"relationship": {"user_id": "", "workspace_id": ""}} @@ -1470,11 +960,20 @@ examples: speakeasy-default-revoke-user-access-to-workspace: parameters: path: - userId: "" workspace_id: "" + userId: "" responses: 4XX: application/json: {"message": "", "status_code": 243814} + setWorkspaceFeatureFlags: + speakeasy-default-set-workspace-feature-flags: + requestBody: + application/json: {"feature_flags": ["skip_schema_registry", "webhooks"]} + responses: + "200": + application/json: {} + 5XX: + application/json: {"message": "", "status_code": 264889} updateWorkspaceDetails: speakeasy-default-update-workspace-details: parameters: @@ -1495,6 +994,25 @@ examples: responses: 4XX: application/json: {"message": "", "status_code": 54657} + getWorkspaceEventsByTarget: + speakeasy-default-get-workspace-events-by-target: + parameters: + path: + workspace_id: "" + target_id: "" + query: {} + responses: + "200": + application/json: [{"created_at": "2023-11-22T11:46:52.430Z", "execution_id": "", "id": "", "interaction_type": "QUICKSTART", "local_started_at": "2023-09-25T12:14:43.566Z", "speakeasy_api_key_name": "", "speakeasy_version": "", "success": true, "workspace_id": ""}] + 5XX: + application/json: {"message": "", "status_code": 858330} + getWorkspaceTargets: + speakeasy-default-get-workspace-targets: + responses: + "200": + application/json: [{"generate_gen_lock_id": "", "generate_target": "", "id": "", "last_event_created_at": "2025-12-14T05:15:52.449Z", "last_event_id": "", "last_event_interaction_type": "TARGET_GENERATE"}, {"generate_gen_lock_id": "", "generate_target": "", "id": "", "last_event_created_at": "2023-05-31T08:33:28.499Z", "last_event_id": "", "last_event_interaction_type": "CLI_EXEC"}] + 5XX: + application/json: {"message": "", "status_code": 801192} getWorkspaceTargetsDeprecated: speakeasy-default-get-workspace-targets-deprecated: parameters: @@ -1503,26 +1021,29 @@ examples: query: {} responses: "200": - application/json: [] + application/json: [{"generate_gen_lock_id": "", "generate_target": "", "id": "", "last_event_created_at": "2023-10-08T11:47:38.510Z", "last_event_id": "", "last_event_interaction_type": "TOMBSTONE"}] 5XX: - application/json: {"message": "", "status_code": 255923} - getCodeSamples: - speakeasy-default-get-code-samples: + application/json: {"message": "", "status_code": 264673} + postWorkspaceEvents: + speakeasy-default-post-workspace-events: parameters: - query: - registry_url: "https://normal-making.name" - responses: - 2XX: - application/json: {"snippets": [{"code": "", "language": "", "operationId": ""}, {"code": "", "language": "", "operationId": ""}, {"code": "", "language": "", "operationId": ""}]} - 4XX: - application/json: {"message": "", "status_code": 458049} - setWorkspaceFeatureFlags: - speakeasy-default-set-workspace-feature-flags: + path: + workspace_id: "" requestBody: - application/json: {"feature_flags": ["skip_schema_registry", "webhooks"]} + application/json: [{"created_at": "2025-03-02T10:07:28.113Z", "execution_id": "", "id": "", "interaction_type": "AUTHENTICATE", "local_started_at": "2025-08-12T17:54:17.538Z", "speakeasy_api_key_name": "", "speakeasy_version": "", "success": true, "workspace_id": ""}] + responses: + 5XX: + application/json: {"message": "", "status_code": 630719} + searchWorkspaceEvents: + speakeasy-default-search-workspace-events: + parameters: + path: + workspace_id: "" + query: {} responses: "200": - application/json: {} + application/json: [{"created_at": "2024-01-24T23:49:11.608Z", "execution_id": "", "id": "", "interaction_type": "LINT", "local_started_at": "2023-03-09T07:00:10.489Z", "speakeasy_api_key_name": "", "speakeasy_version": "", "success": true, "workspace_id": ""}] 5XX: - application/json: {"message": "", "status_code": 264889} + application/json: {"message": "", "status_code": 238575} +examplesVersion: 1.0.0 generatedTests: {} diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index d3a7000c..b8a97144 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,21 +1,21 @@ -speakeasyVersion: 1.468.2 +speakeasyVersion: 1.483.0 sources: speakeasy: sourceNamespace: speakeasy - sourceRevisionDigest: sha256:8af7ebde12785185cdbd700c1b3b6b8848b43d34f1fe8c06fff5ae4af471faf2 - sourceBlobDigest: sha256:952a58da1511e3191ea8e470c7f01a4e3785d11d9152f490a3e5a7173c8542e7 + sourceRevisionDigest: sha256:bdb7eb973d792f631599c3d6d1ecd50a586fc0bc8cfc8660ff5ca80adf13d8dc + sourceBlobDigest: sha256:a3c82707f36dbd5fb67ba0be2bbd133524f693e35e5a278ceadc7cca1b90ef5a tags: - latest - - speakeasy-sdk-regen-1735949986 + - speakeasy-sdk-regen-1736900413 - 0.4.0 targets: speakeasy-client-sdk-csharp: source: speakeasy sourceNamespace: speakeasy - sourceRevisionDigest: sha256:8af7ebde12785185cdbd700c1b3b6b8848b43d34f1fe8c06fff5ae4af471faf2 - sourceBlobDigest: sha256:952a58da1511e3191ea8e470c7f01a4e3785d11d9152f490a3e5a7173c8542e7 + sourceRevisionDigest: sha256:bdb7eb973d792f631599c3d6d1ecd50a586fc0bc8cfc8660ff5ca80adf13d8dc + sourceBlobDigest: sha256:a3c82707f36dbd5fb67ba0be2bbd133524f693e35e5a278ceadc7cca1b90ef5a codeSamplesNamespace: code-samples-csharp-speakeasy-client-sdk-csharp - codeSamplesRevisionDigest: sha256:aacf508e82244f7628670bda7c73bdda3a36059c4143c3566f2b4d4935251ec8 + codeSamplesRevisionDigest: sha256:da97a428e1a4dba3433f40d0f548fff0d05082f0386b2cdb32ce543f968e3a10 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 00000000..d585717f --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,26 @@ +# Contributing to This Repository + +Thank you for your interest in contributing to this repository. Please note that this repository contains generated code. As such, we do not accept direct changes or pull requests. Instead, we encourage you to follow the guidelines below to report issues and suggest improvements. + +## How to Report Issues + +If you encounter any bugs or have suggestions for improvements, please open an issue on GitHub. When reporting an issue, please provide as much detail as possible to help us reproduce the problem. This includes: + +- A clear and descriptive title +- Steps to reproduce the issue +- Expected and actual behavior +- Any relevant logs, screenshots, or error messages +- Information about your environment (e.g., operating system, software versions) + - For example can be collected using the `npx envinfo` command from your terminal if you have Node.js installed + +## Issue Triage and Upstream Fixes + +We will review and triage issues as quickly as possible. Our goal is to address bugs and incorporate improvements in the upstream source code. Fixes will be included in the next generation of the generated code. + +## Contact + +If you have any questions or need further assistance, please feel free to reach out by opening an issue. + +Thank you for your understanding and cooperation! + +The Maintainers diff --git a/README.md b/README.md index 1b233214..5d18e3ec 100755 --- a/README.md +++ b/README.md @@ -89,6 +89,7 @@ var res = await sdk.Artifacts.CreateRemoteSourceAsync(req); * [ListRemoteSources](docs/sdks/artifacts/README.md#listremotesources) - Get remote sources attached to a particular namespace * [PostTags](docs/sdks/artifacts/README.md#posttags) - Add tags to an existing revision * [Preflight](docs/sdks/artifacts/README.md#preflight) - Get access token for communicating with OCI distribution endpoints +* [SetArchived](docs/sdks/artifacts/README.md#setarchived) - Set whether a namespace is archived * [SetVisibility](docs/sdks/artifacts/README.md#setvisibility) - Set visibility of a namespace with an existing metadata entry ### [Auth](docs/sdks/auth/README.md) @@ -102,7 +103,6 @@ var res = await sdk.Artifacts.CreateRemoteSourceAsync(req); * [GenerateCodeSamplePreview](docs/sdks/codesamples/README.md#generatecodesamplepreview) - Generate Code Sample previews from a file and configuration parameters. * [GenerateCodeSamplePreviewAsync](docs/sdks/codesamples/README.md#generatecodesamplepreviewasync) - Initiate asynchronous Code Sample preview generation from a file and configuration parameters, receiving an async JobID response for polling. -* [Get](docs/sdks/codesamples/README.md#get) - Retrieve usage snippets from document stored in the registry * [GetCodeSamplePreviewAsync](docs/sdks/codesamples/README.md#getcodesamplepreviewasync) - Poll for the result of an asynchronous Code Sample preview generation. ### [Events](docs/sdks/events/README.md) diff --git a/RELEASES.md b/RELEASES.md index 4df5c678..54c1d90a 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -949,4 +949,14 @@ Based on: ### Generated - [csharp v5.12.0] . ### Releases -- [NuGet v5.12.0] https://www.nuget.org/packages/SpeakeasySDK/5.12.0 - . \ No newline at end of file +- [NuGet v5.12.0] https://www.nuget.org/packages/SpeakeasySDK/5.12.0 - . + +## 2025-02-04 00:19:36 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.483.0 (2.502.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [csharp v5.13.0] . +### Releases +- [NuGet v5.13.0] https://www.nuget.org/packages/SpeakeasySDK/5.13.0 - . \ No newline at end of file diff --git a/codeSamples.yaml b/codeSamples.yaml index 6ded62a4..7fb3c3da 100644 --- a/codeSamples.yaml +++ b/codeSamples.yaml @@ -18,6 +18,27 @@ actions: var res = await sdk.Artifacts.GetNamespacesAsync(); + // handle response + - target: $["paths"]["/v1/artifacts/namespaces/{namespace_name}/archive"]["post"] + update: + x-codeSamples: + - lang: csharp + label: archiveNamespace + source: |- + using SpeakeasySDK; + using SpeakeasySDK.Models.Operations; + using SpeakeasySDK.Models.Shared; + + var sdk = new SDK(security: new Security() { + APIKey = "", + }); + + ArchiveNamespaceRequest req = new ArchiveNamespaceRequest() { + NamespaceName = "", + }; + + var res = await sdk.Artifacts.SetArchivedAsync(req); + // handle response - target: $["paths"]["/v1/artifacts/namespaces/{namespace_name}/revisions"]["get"] update: @@ -205,27 +226,6 @@ actions: var res = await sdk.Auth.ValidateApiKeyAsync(); - // handle response - - target: $["paths"]["/v1/code_sample"]["get"] - update: - x-codeSamples: - - lang: csharp - label: getCodeSamples - source: |- - using SpeakeasySDK; - using SpeakeasySDK.Models.Operations; - using SpeakeasySDK.Models.Shared; - - var sdk = new SDK(security: new Security() { - APIKey = "", - }); - - GetCodeSamplesRequest req = new GetCodeSamplesRequest() { - RegistryUrl = "https://normal-making.name", - }; - - var res = await sdk.CodeSamples.GetAsync(req); - // handle response - target: $["paths"]["/v1/code_sample/preview"]["post"] update: @@ -236,16 +236,13 @@ actions: using SpeakeasySDK; using SpeakeasySDK.Models.Shared; using System; - using System.Collections.Generic; var sdk = new SDK(security: new Security() { APIKey = "", }); CodeSampleSchemaInput req = new CodeSampleSchemaInput() { - Languages = new List() { - "", - }, + Language = "", SchemaFile = new SchemaFile() { FileName = "example.file", Content = System.Text.Encoding.UTF8.GetBytes("0xc3dD8BfBef"), @@ -264,16 +261,13 @@ actions: using SpeakeasySDK; using SpeakeasySDK.Models.Shared; using System; - using System.Collections.Generic; var sdk = new SDK(security: new Security() { APIKey = "", }); CodeSampleSchemaInput req = new CodeSampleSchemaInput() { - Languages = new List() { - "", - }, + Language = "", SchemaFile = new SchemaFile() { FileName = "example.file", Content = System.Text.Encoding.UTF8.GetBytes("0xED5CDd177E"), @@ -1169,7 +1163,7 @@ actions: ExecutionId = "", WorkspaceId = "", SpeakeasyApiKeyName = "", - InteractionType = InteractionType.TargetGenerate, + InteractionType = InteractionType.Tombstone, LocalStartedAt = System.DateTime.Parse("2025-03-02T10:07:28.113Z"), CreatedAt = System.DateTime.Parse("2024-09-08T05:59:33.876Z"), SpeakeasyVersion = "", diff --git a/docs/Models/Operations/ArchiveNamespaceRequest.md b/docs/Models/Operations/ArchiveNamespaceRequest.md new file mode 100644 index 00000000..0cf22f55 --- /dev/null +++ b/docs/Models/Operations/ArchiveNamespaceRequest.md @@ -0,0 +1,9 @@ +# ArchiveNamespaceRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `NamespaceName` | *string* | :heavy_check_mark: | N/A | +| `RequestBody` | [ArchiveNamespaceRequestBody](../../Models/Operations/ArchiveNamespaceRequestBody.md) | :heavy_minus_sign: | Archived status | \ No newline at end of file diff --git a/docs/Models/Operations/ArchiveNamespaceRequestBody.md b/docs/Models/Operations/ArchiveNamespaceRequestBody.md new file mode 100644 index 00000000..79e11679 --- /dev/null +++ b/docs/Models/Operations/ArchiveNamespaceRequestBody.md @@ -0,0 +1,10 @@ +# ArchiveNamespaceRequestBody + +Archived status + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Archived` | *bool* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/GetCodeSamplesResponse.md b/docs/Models/Operations/ArchiveNamespaceResponse.md similarity index 82% rename from docs/Models/Operations/GetCodeSamplesResponse.md rename to docs/Models/Operations/ArchiveNamespaceResponse.md index ab675241..0588677a 100644 --- a/docs/Models/Operations/GetCodeSamplesResponse.md +++ b/docs/Models/Operations/ArchiveNamespaceResponse.md @@ -1,4 +1,4 @@ -# GetCodeSamplesResponse +# ArchiveNamespaceResponse ## Fields @@ -7,5 +7,4 @@ | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | | `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `UsageSnippets` | [UsageSnippets](../../Models/Shared/UsageSnippets.md) | :heavy_minus_sign: | OK | \ No newline at end of file +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/GenerateCodeSamplePreviewResponse.md b/docs/Models/Operations/GenerateCodeSamplePreviewResponse.md index d4cbe9b5..a22ef0d4 100644 --- a/docs/Models/Operations/GenerateCodeSamplePreviewResponse.md +++ b/docs/Models/Operations/GenerateCodeSamplePreviewResponse.md @@ -5,8 +5,7 @@ | Field | Type | Required | Description | | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -| `TwoHundredApplicationJsonBytes` | *byte[]* | :heavy_minus_sign: | Successfully returned codeSample overlay file | -| `TwoHundredApplicationXYamlBytes` | *byte[]* | :heavy_minus_sign: | Successfully returned codeSample overlay file | | `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `UsageSnippets` | [UsageSnippets](../../Models/Shared/UsageSnippets.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/Models/Operations/GetCodeSamplePreviewAsyncResponse.md b/docs/Models/Operations/GetCodeSamplePreviewAsyncResponse.md index b967f295..e72dab96 100644 --- a/docs/Models/Operations/GetCodeSamplePreviewAsyncResponse.md +++ b/docs/Models/Operations/GetCodeSamplePreviewAsyncResponse.md @@ -5,9 +5,8 @@ | Field | Type | Required | Description | | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -| `TwoHundredApplicationJsonBytes` | *byte[]* | :heavy_minus_sign: | Successfully returned codeSample overlay file | -| `TwoHundredApplicationXYamlBytes` | *byte[]* | :heavy_minus_sign: | Successfully returned codeSample overlay file | -| `TwoHundredAndTwoApplicationJsonObject` | [GetCodeSamplePreviewAsyncResponseBody](../../Models/Operations/GetCodeSamplePreviewAsyncResponseBody.md) | :heavy_minus_sign: | Job is still in progress | | `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `UsageSnippets` | [UsageSnippets](../../Models/Shared/UsageSnippets.md) | :heavy_minus_sign: | OK | +| `Object` | [GetCodeSamplePreviewAsyncResponseBody](../../Models/Operations/GetCodeSamplePreviewAsyncResponseBody.md) | :heavy_minus_sign: | Job is still in progress | \ No newline at end of file diff --git a/docs/Models/Operations/GetCodeSamplesRequest.md b/docs/Models/Operations/GetCodeSamplesRequest.md deleted file mode 100644 index 679b5b87..00000000 --- a/docs/Models/Operations/GetCodeSamplesRequest.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetCodeSamplesRequest - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | -| `RegistryUrl` | *string* | :heavy_check_mark: | The registry URL from which to retrieve the snippets. E.g. https://spec.speakeasy.com/org/ws/my-source | -| `Languages` | List<*string*> | :heavy_minus_sign: | N/A | -| `OperationIds` | List<*string*> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Shared/CliEvent.md b/docs/Models/Shared/CliEvent.md index 59461fb5..3698ca07 100644 --- a/docs/Models/Shared/CliEvent.md +++ b/docs/Models/Shared/CliEvent.md @@ -81,6 +81,7 @@ | `SpeakeasyApiKeyName` | *string* | :heavy_check_mark: | Identifier of the Speakeasy API key. | | `SpeakeasyVersion` | *string* | :heavy_check_mark: | Version of the Speakeasy CLI. | | `Success` | *bool* | :heavy_check_mark: | Indicates whether the event was successful. | +| `TestReportRaw` | *string* | :heavy_minus_sign: | The raw test report xml | | `WorkflowLockPostRaw` | *string* | :heavy_minus_sign: | Workflow lock file (post execution) | | `WorkflowLockPreRaw` | *string* | :heavy_minus_sign: | Workflow lock file (prior to execution) | | `WorkflowPostRaw` | *string* | :heavy_minus_sign: | Workflow file (post execution) | diff --git a/docs/Models/Shared/CodeSampleSchemaInput.md b/docs/Models/Shared/CodeSampleSchemaInput.md index 0253e80c..dce155e5 100644 --- a/docs/Models/Shared/CodeSampleSchemaInput.md +++ b/docs/Models/Shared/CodeSampleSchemaInput.md @@ -3,9 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | -| `Languages` | List<*string*> | :heavy_check_mark: | A list of languages to generate code samples for | -| `SchemaFile` | [SchemaFile](../../Models/Shared/SchemaFile.md) | :heavy_check_mark: | The OpenAPI file to be uploaded | -| `PackageName` | *string* | :heavy_minus_sign: | The name of the package | -| `SDKClassName` | *string* | :heavy_minus_sign: | The SDK class name | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | +| `Language` | *string* | :heavy_check_mark: | The language to generate code samples for | +| `SchemaFile` | [SchemaFile](../../Models/Shared/SchemaFile.md) | :heavy_check_mark: | The OpenAPI file to be uploaded | +| `OperationIds` | List<*string*> | :heavy_minus_sign: | A list of operations IDs to generate code samples for | +| `PackageName` | *string* | :heavy_minus_sign: | The name of the package | +| `SDKClassName` | *string* | :heavy_minus_sign: | The SDK class name | \ No newline at end of file diff --git a/docs/Models/Shared/InteractionType.md b/docs/Models/Shared/InteractionType.md index 8acd51a2..1f503a9f 100644 --- a/docs/Models/Shared/InteractionType.md +++ b/docs/Models/Shared/InteractionType.md @@ -17,4 +17,5 @@ Type of interaction. | `Quickstart` | QUICKSTART | | `Run` | RUN | | `Configure` | CONFIGURE | -| `Publish` | PUBLISH | \ No newline at end of file +| `Publish` | PUBLISH | +| `Test` | TEST | \ No newline at end of file diff --git a/docs/Models/Shared/Namespace.md b/docs/Models/Shared/Namespace.md index 1741b841..b42d60ec 100644 --- a/docs/Models/Shared/Namespace.md +++ b/docs/Models/Shared/Namespace.md @@ -7,9 +7,11 @@ A namespace contains many revisions. | Field | Type | Required | Description | | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `ArchivedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_minus_sign: | N/A | | `CompositeSpecMetadata` | [CompositeSpecMetadata](../../Models/Shared/CompositeSpecMetadata.md) | :heavy_minus_sign: | N/A | | `CreatedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | N/A | | `Id` | *string* | :heavy_check_mark: | {organization_slug}/{workspace_slug}/{namespace_name} | +| `LatestRevisionMetadata` | [RevisionContentsMetadata](../../Models/Shared/RevisionContentsMetadata.md) | :heavy_minus_sign: | N/A | | `Name` | *string* | :heavy_check_mark: | A human-readable name for the namespace. | | `Public` | *bool* | :heavy_minus_sign: | Indicates whether the namespace is publicly accessible | | `UpdatedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/Models/Shared/Revision.md b/docs/Models/Shared/Revision.md index adeb8407..030fd435 100644 --- a/docs/Models/Shared/Revision.md +++ b/docs/Models/Shared/Revision.md @@ -5,6 +5,7 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `ContentsMetadata` | [RevisionContentsMetadata](../../Models/Shared/RevisionContentsMetadata.md) | :heavy_minus_sign: | N/A | | | `CreatedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | N/A | | | `Digest` | *string* | :heavy_check_mark: | N/A | sha256:6d1ef012b5674ad8a127ecfa9b5e6f5178d171b90ee462846974177fd9bdd39f | | `Id` | *string* | :heavy_check_mark: | Format {namespace_id}/{revision_digest} | | diff --git a/docs/Models/Shared/RevisionContentsMetadata.md b/docs/Models/Shared/RevisionContentsMetadata.md new file mode 100644 index 00000000..2169b106 --- /dev/null +++ b/docs/Models/Shared/RevisionContentsMetadata.md @@ -0,0 +1,20 @@ +# RevisionContentsMetadata + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | +| `ContainsCodeSamples` | *bool* | :heavy_check_mark: | Whether the OAS contains code samples. | +| `CreatedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | N/A | +| `Description` | *string* | :heavy_check_mark: | The OAS description | +| `Hash` | *string* | :heavy_check_mark: | The hash of the contents | +| `Namespace` | *string* | :heavy_check_mark: | The fully qualified namespace | +| `NumOverlayActions` | *long* | :heavy_check_mark: | The number of overlay actions in the OAS. Will be 0 if the OAS is not an overlay. | +| `OperationIds` | List<*string*> | :heavy_check_mark: | The operation IDs contained in the OAS. Will be empty if the OAS is an overlay. | +| `RevisionDigest` | *string* | :heavy_check_mark: | The digest of the parent bundle | +| `Tags` | List<*string*> | :heavy_check_mark: | The tags contained in the OAS -- NOT the OCI tags. Will be empty if the OAS is an overlay. | +| `Title` | *string* | :heavy_check_mark: | The OAS title | +| `Type` | [RevisionContentsMetadataType](../../Models/Shared/RevisionContentsMetadataType.md) | :heavy_check_mark: | N/A | +| `Version` | *string* | :heavy_check_mark: | The OAS version | +| `WorkspaceId` | *string* | :heavy_check_mark: | The workspace ID | \ No newline at end of file diff --git a/docs/Models/Shared/RevisionContentsMetadataType.md b/docs/Models/Shared/RevisionContentsMetadataType.md new file mode 100644 index 00000000..1b3b6020 --- /dev/null +++ b/docs/Models/Shared/RevisionContentsMetadataType.md @@ -0,0 +1,9 @@ +# RevisionContentsMetadataType + + +## Values + +| Name | Value | +| ---------------- | ---------------- | +| `OpenapiBundle` | OPENAPI_BUNDLE | +| `OpenapiOverlay` | OPENAPI_OVERLAY | \ No newline at end of file diff --git a/docs/Models/Shared/UsageSnippet.md b/docs/Models/Shared/UsageSnippet.md index c75a9015..3acfd939 100644 --- a/docs/Models/Shared/UsageSnippet.md +++ b/docs/Models/Shared/UsageSnippet.md @@ -7,4 +7,6 @@ | -------------------------------- | -------------------------------- | -------------------------------- | -------------------------------- | | `Code` | *string* | :heavy_check_mark: | The code snippet | | `Language` | *string* | :heavy_check_mark: | The language of the snippet | -| `OperationId` | *string* | :heavy_check_mark: | The operation ID for the snippet | \ No newline at end of file +| `Method` | *object* | :heavy_check_mark: | The HTTP method of the operation | +| `OperationId` | *string* | :heavy_check_mark: | The operation ID for the snippet | +| `Path` | *string* | :heavy_check_mark: | The path of the operation | \ No newline at end of file diff --git a/docs/Models/Shared/User.md b/docs/Models/Shared/User.md index 0f8eb716..ca113541 100644 --- a/docs/Models/Shared/User.md +++ b/docs/Models/Shared/User.md @@ -17,5 +17,6 @@ | `Internal` | *bool* | :heavy_minus_sign: | Indicates whether the user is internal. | | `LastLoginAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_minus_sign: | Timestamp of the last login. | | `PhotoUrl` | *string* | :heavy_minus_sign: | URL of the user's photo. | +| `PylonIdentityHash` | *string* | :heavy_minus_sign: | Hash used for pylon identity verification returned on v1/user. | | `UpdatedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | Timestamp of the user's last update. | | `Whitelisted` | *bool* | :heavy_check_mark: | Indicates whether the user has been whitelisted. | \ No newline at end of file diff --git a/docs/sdks/artifacts/README.md b/docs/sdks/artifacts/README.md index 9291801c..cbe62856 100644 --- a/docs/sdks/artifacts/README.md +++ b/docs/sdks/artifacts/README.md @@ -16,6 +16,7 @@ REST APIs for working with Registry artifacts * [ListRemoteSources](#listremotesources) - Get remote sources attached to a particular namespace * [PostTags](#posttags) - Add tags to an existing revision * [Preflight](#preflight) - Get access token for communicating with OCI distribution endpoints +* [SetArchived](#setarchived) - Set whether a namespace is archived * [SetVisibility](#setvisibility) - Set visibility of a namespace with an existing metadata entry ## CreateRemoteSource @@ -384,6 +385,47 @@ var res = await sdk.Artifacts.PreflightAsync(req); | SpeakeasySDK.Models.Errors.Error | 4XX | application/json | | SpeakeasySDK.Models.Errors.SDKException | 5XX | \*/\* | +## SetArchived + +Set whether a namespace is archived + +### Example Usage + +```csharp +using SpeakeasySDK; +using SpeakeasySDK.Models.Operations; +using SpeakeasySDK.Models.Shared; + +var sdk = new SDK(security: new Security() { + APIKey = "", +}); + +ArchiveNamespaceRequest req = new ArchiveNamespaceRequest() { + NamespaceName = "", +}; + +var res = await sdk.Artifacts.SetArchivedAsync(req); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | +| `request` | [ArchiveNamespaceRequest](../../Models/Operations/ArchiveNamespaceRequest.md) | :heavy_check_mark: | The request object to use for the request. | + +### Response + +**[ArchiveNamespaceResponse](../../Models/Operations/ArchiveNamespaceResponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| --------------------------------------- | --------------------------------------- | --------------------------------------- | +| SpeakeasySDK.Models.Errors.Error | 4XX | application/json | +| SpeakeasySDK.Models.Errors.SDKException | 5XX | \*/\* | + ## SetVisibility Set visibility of a namespace with an existing metadata entry diff --git a/docs/sdks/codesamples/README.md b/docs/sdks/codesamples/README.md index f814ab3a..fad083c6 100644 --- a/docs/sdks/codesamples/README.md +++ b/docs/sdks/codesamples/README.md @@ -9,7 +9,6 @@ REST APIs for retrieving Code Samples * [GenerateCodeSamplePreview](#generatecodesamplepreview) - Generate Code Sample previews from a file and configuration parameters. * [GenerateCodeSamplePreviewAsync](#generatecodesamplepreviewasync) - Initiate asynchronous Code Sample preview generation from a file and configuration parameters, receiving an async JobID response for polling. -* [Get](#get) - Retrieve usage snippets from document stored in the registry * [GetCodeSamplePreviewAsync](#getcodesamplepreviewasync) - Poll for the result of an asynchronous Code Sample preview generation. ## GenerateCodeSamplePreview @@ -22,16 +21,13 @@ This endpoint generates Code Sample previews from a file and configuration param using SpeakeasySDK; using SpeakeasySDK.Models.Shared; using System; -using System.Collections.Generic; var sdk = new SDK(security: new Security() { APIKey = "", }); CodeSampleSchemaInput req = new CodeSampleSchemaInput() { - Languages = new List() { - "", - }, + Language = "", SchemaFile = new SchemaFile() { Content = System.Text.Encoding.UTF8.GetBytes("0xc3dD8BfBef"), FileName = "example.file", @@ -57,7 +53,8 @@ var res = await sdk.CodeSamples.GenerateCodeSamplePreviewAsync(req); | Error Type | Status Code | Content Type | | -------------------------------- | -------------------------------- | -------------------------------- | -| SpeakeasySDK.Models.Errors.Error | 4XX, 5XX | application/json | +| SpeakeasySDK.Models.Errors.Error | 4XX | application/json | +| SpeakeasySDK.Models.Errors.Error | 5XX | application/json | ## GenerateCodeSamplePreviewAsync @@ -69,16 +66,13 @@ This endpoint generates Code Sample previews from a file and configuration param using SpeakeasySDK; using SpeakeasySDK.Models.Shared; using System; -using System.Collections.Generic; var sdk = new SDK(security: new Security() { APIKey = "", }); CodeSampleSchemaInput req = new CodeSampleSchemaInput() { - Languages = new List() { - "", - }, + Language = "", SchemaFile = new SchemaFile() { Content = System.Text.Encoding.UTF8.GetBytes("0xED5CDd177E"), FileName = "example.file", @@ -104,48 +98,8 @@ var res = await sdk.CodeSamples.GenerateCodeSamplePreviewAsyncAsync(req); | Error Type | Status Code | Content Type | | -------------------------------- | -------------------------------- | -------------------------------- | -| SpeakeasySDK.Models.Errors.Error | 4XX, 5XX | application/json | - -## Get - -Retrieve usage snippets from document stored in the registry. Supports filtering by language and operation ID. - -### Example Usage - -```csharp -using SpeakeasySDK; -using SpeakeasySDK.Models.Operations; -using SpeakeasySDK.Models.Shared; - -var sdk = new SDK(security: new Security() { - APIKey = "", -}); - -GetCodeSamplesRequest req = new GetCodeSamplesRequest() { - RegistryUrl = "https://normal-making.name", -}; - -var res = await sdk.CodeSamples.GetAsync(req); - -// handle response -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | -| `request` | [GetCodeSamplesRequest](../../Models/Operations/GetCodeSamplesRequest.md) | :heavy_check_mark: | The request object to use for the request. | - -### Response - -**[GetCodeSamplesResponse](../../Models/Operations/GetCodeSamplesResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| --------------------------------------- | --------------------------------------- | --------------------------------------- | -| SpeakeasySDK.Models.Errors.Error | 4XX | application/json | -| SpeakeasySDK.Models.Errors.SDKException | 5XX | \*/\* | +| SpeakeasySDK.Models.Errors.Error | 4XX | application/json | +| SpeakeasySDK.Models.Errors.Error | 5XX | application/json | ## GetCodeSamplePreviewAsync @@ -185,4 +139,5 @@ var res = await sdk.CodeSamples.GetCodeSamplePreviewAsyncAsync(req); | Error Type | Status Code | Content Type | | -------------------------------- | -------------------------------- | -------------------------------- | -| SpeakeasySDK.Models.Errors.Error | 4XX, 5XX | application/json | \ No newline at end of file +| SpeakeasySDK.Models.Errors.Error | 4XX | application/json | +| SpeakeasySDK.Models.Errors.Error | 5XX | application/json | \ No newline at end of file diff --git a/docs/sdks/events/README.md b/docs/sdks/events/README.md index b0945553..2c8e1164 100644 --- a/docs/sdks/events/README.md +++ b/docs/sdks/events/README.md @@ -158,7 +158,7 @@ PostWorkspaceEventsRequest req = new PostWorkspaceEventsRequest() { CreatedAt = System.DateTime.Parse("2024-05-07T03:24:39.583Z"), ExecutionId = "", Id = "", - InteractionType = InteractionType.Quickstart, + InteractionType = InteractionType.Run, LocalStartedAt = System.DateTime.Parse("2024-09-08T05:59:33.876Z"), SpeakeasyApiKeyName = "", SpeakeasyVersion = "", diff --git a/gen.yaml b/gen.yaml index 7d57f2ac..d99a7198 100755 --- a/gen.yaml +++ b/gen.yaml @@ -11,7 +11,7 @@ generation: oAuth2ClientCredentialsEnabled: false oAuth2PasswordEnabled: false csharp: - version: 5.12.0 + version: 5.13.0 additionalDependencies: [] author: Speakeasy clientServerStatusCodesAsErrors: true diff --git a/src/SpeakeasySDK/Artifacts.cs b/src/SpeakeasySDK/Artifacts.cs index 0b8ea240..035e583b 100644 --- a/src/SpeakeasySDK/Artifacts.cs +++ b/src/SpeakeasySDK/Artifacts.cs @@ -65,6 +65,11 @@ public interface IArtifacts /// Task PreflightAsync(PreflightRequest? request = null); + /// + /// Set whether a namespace is archived + /// + Task SetArchivedAsync(ArchiveNamespaceRequest request); + /// /// Set visibility of a namespace with an existing metadata entry /// @@ -78,10 +83,10 @@ public class Artifacts: IArtifacts { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "5.12.0"; - private const string _sdkGenVersion = "2.493.4"; + private const string _sdkVersion = "5.13.0"; + private const string _sdkGenVersion = "2.502.0"; private const string _openapiDocVersion = "0.4.0"; - private const string _userAgent = "speakeasy-sdk/csharp 5.12.0 2.493.4 0.4.0 SpeakeasySDK"; + private const string _userAgent = "speakeasy-sdk/csharp 5.13.0 2.502.0 0.4.0 SpeakeasySDK"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; @@ -854,6 +859,88 @@ public async Task PreflightAsync(PreflightRequest? request = throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + public async Task SetArchivedAsync(ArchiveNamespaceRequest request) + { + string baseUrl = this.SDKConfiguration.GetTemplatedServerUrl(); + var urlString = URLBuilder.Build(baseUrl, "/v1/artifacts/namespaces/{namespace_name}/archive", request); + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "RequestBody", "json", false, true); + if (serializedBody != null) + { + httpRequest.Content = serializedBody; + } + + if (_securitySource != null) + { + httpRequest = new SecurityMetadata(_securitySource).Apply(httpRequest); + } + + var hookCtx = new HookContext("archiveNamespace", null, _securitySource); + + httpRequest = await this.SDKConfiguration.Hooks.BeforeRequestAsync(new BeforeRequestContext(hookCtx), httpRequest); + + HttpResponseMessage httpResponse; + try + { + httpResponse = await _client.SendAsync(httpRequest); + int _statusCode = (int)httpResponse.StatusCode; + + if (_statusCode >= 400 && _statusCode < 500 || _statusCode >= 500 && _statusCode < 600) + { + var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), httpResponse, null); + if (_httpResponse != null) + { + httpResponse = _httpResponse; + } + } + } + catch (Exception error) + { + var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), null, error); + if (_httpResponse != null) + { + httpResponse = _httpResponse; + } + else + { + throw; + } + } + + httpResponse = await this.SDKConfiguration.Hooks.AfterSuccessAsync(new AfterSuccessContext(hookCtx), httpResponse); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + int responseStatusCode = (int)httpResponse.StatusCode; + if(responseStatusCode >= 200 && responseStatusCode < 300) + { + return new ArchiveNamespaceResponse() + { + StatusCode = responseStatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + } + else if(responseStatusCode >= 400 && responseStatusCode < 500) + { + if(Utilities.IsContentTypeMatch("application/json", contentType)) + { + var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); + throw obj!; + } + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + public async Task SetVisibilityAsync(SetVisibilityRequest request) { string baseUrl = this.SDKConfiguration.GetTemplatedServerUrl(); diff --git a/src/SpeakeasySDK/Auth.cs b/src/SpeakeasySDK/Auth.cs index 493d69b9..cda26088 100644 --- a/src/SpeakeasySDK/Auth.cs +++ b/src/SpeakeasySDK/Auth.cs @@ -60,10 +60,10 @@ public class Auth: IAuth { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "5.12.0"; - private const string _sdkGenVersion = "2.493.4"; + private const string _sdkVersion = "5.13.0"; + private const string _sdkGenVersion = "2.502.0"; private const string _openapiDocVersion = "0.4.0"; - private const string _userAgent = "speakeasy-sdk/csharp 5.12.0 2.493.4 0.4.0 SpeakeasySDK"; + private const string _userAgent = "speakeasy-sdk/csharp 5.13.0 2.502.0 0.4.0 SpeakeasySDK"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; @@ -178,7 +178,11 @@ public async Task GetAccessAsync(GetWorkspaceAccessR throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } diff --git a/src/SpeakeasySDK/CodeSamples.cs b/src/SpeakeasySDK/CodeSamples.cs index c1027ec0..a8393aaf 100644 --- a/src/SpeakeasySDK/CodeSamples.cs +++ b/src/SpeakeasySDK/CodeSamples.cs @@ -46,15 +46,6 @@ public interface ICodeSamples /// Task GenerateCodeSamplePreviewAsyncAsync(CodeSampleSchemaInput request); - /// - /// Retrieve usage snippets from document stored in the registry - /// - /// - /// Retrieve usage snippets from document stored in the registry. Supports filtering by language and operation ID. - /// - /// - Task GetAsync(GetCodeSamplesRequest request); - /// /// Poll for the result of an asynchronous Code Sample preview generation. /// @@ -72,10 +63,10 @@ public class CodeSamples: ICodeSamples { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "5.12.0"; - private const string _sdkGenVersion = "2.493.4"; + private const string _sdkVersion = "5.13.0"; + private const string _sdkGenVersion = "2.502.0"; private const string _openapiDocVersion = "0.4.0"; - private const string _userAgent = "speakeasy-sdk/csharp 5.12.0 2.493.4 0.4.0 SpeakeasySDK"; + private const string _userAgent = "speakeasy-sdk/csharp 5.13.0 2.502.0 0.4.0 SpeakeasySDK"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; @@ -144,34 +135,34 @@ public async Task GenerateCodeSamplePreviewAs var contentType = httpResponse.Content.Headers.ContentType?.MediaType; int responseStatusCode = (int)httpResponse.StatusCode; - if(responseStatusCode == 200) + if(responseStatusCode >= 200 && responseStatusCode < 300) { if(Utilities.IsContentTypeMatch("application/json", contentType)) { + var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); var response = new GenerateCodeSamplePreviewResponse() { StatusCode = responseStatusCode, ContentType = contentType, RawResponse = httpResponse }; - response.TwoHundredApplicationJsonBytes = await httpResponse.Content.ReadAsByteArrayAsync(); + response.UsageSnippets = obj; return response; } - else if(Utilities.IsContentTypeMatch("application/x-yaml", contentType)) + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 400 && responseStatusCode < 500) + { + if(Utilities.IsContentTypeMatch("application/json", contentType)) { - var response = new GenerateCodeSamplePreviewResponse() - { - StatusCode = responseStatusCode, - ContentType = contentType, - RawResponse = httpResponse - }; - response.TwoHundredApplicationXYamlBytes = await httpResponse.Content.ReadAsByteArrayAsync(); - return response; + var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); + throw obj!; } throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode >= 500 && responseStatusCode < 600) { if(Utilities.IsContentTypeMatch("application/json", contentType)) { @@ -258,7 +249,7 @@ public async Task GenerateCodeSamplePrev throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode >= 400 && responseStatusCode < 500) { if(Utilities.IsContentTypeMatch("application/json", contentType)) { @@ -268,77 +259,7 @@ public async Task GenerateCodeSamplePrev throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - - throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - - public async Task GetAsync(GetCodeSamplesRequest request) - { - string baseUrl = this.SDKConfiguration.GetTemplatedServerUrl(); - var urlString = URLBuilder.Build(baseUrl, "/v1/code_sample", request); - - var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); - httpRequest.Headers.Add("user-agent", _userAgent); - - if (_securitySource != null) - { - httpRequest = new SecurityMetadata(_securitySource).Apply(httpRequest); - } - - var hookCtx = new HookContext("getCodeSamples", null, _securitySource); - - httpRequest = await this.SDKConfiguration.Hooks.BeforeRequestAsync(new BeforeRequestContext(hookCtx), httpRequest); - - HttpResponseMessage httpResponse; - try - { - httpResponse = await _client.SendAsync(httpRequest); - int _statusCode = (int)httpResponse.StatusCode; - - if (_statusCode >= 400 && _statusCode < 500 || _statusCode >= 500 && _statusCode < 600) - { - var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), httpResponse, null); - if (_httpResponse != null) - { - httpResponse = _httpResponse; - } - } - } - catch (Exception error) - { - var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), null, error); - if (_httpResponse != null) - { - httpResponse = _httpResponse; - } - else - { - throw; - } - } - - httpResponse = await this.SDKConfiguration.Hooks.AfterSuccessAsync(new AfterSuccessContext(hookCtx), httpResponse); - - var contentType = httpResponse.Content.Headers.ContentType?.MediaType; - int responseStatusCode = (int)httpResponse.StatusCode; - if(responseStatusCode >= 200 && responseStatusCode < 300) - { - if(Utilities.IsContentTypeMatch("application/json", contentType)) - { - var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); - var response = new GetCodeSamplesResponse() - { - StatusCode = responseStatusCode, - ContentType = contentType, - RawResponse = httpResponse - }; - response.UsageSnippets = obj; - return response; - } - - throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else if(responseStatusCode >= 400 && responseStatusCode < 500) + else if(responseStatusCode >= 500 && responseStatusCode < 600) { if(Utilities.IsContentTypeMatch("application/json", contentType)) { @@ -348,10 +269,6 @@ public async Task GetAsync(GetCodeSamplesRequest request throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode >= 500 && responseStatusCode < 600) - { - throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } @@ -405,51 +322,51 @@ public async Task GetCodeSamplePreviewAsyncAs var contentType = httpResponse.Content.Headers.ContentType?.MediaType; int responseStatusCode = (int)httpResponse.StatusCode; - if(responseStatusCode == 200) + if(responseStatusCode == 202) { if(Utilities.IsContentTypeMatch("application/json", contentType)) { + var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); var response = new GetCodeSamplePreviewAsyncResponse() { StatusCode = responseStatusCode, ContentType = contentType, RawResponse = httpResponse }; - response.TwoHundredApplicationJsonBytes = await httpResponse.Content.ReadAsByteArrayAsync(); + response.Object = obj; return response; } - else if(Utilities.IsContentTypeMatch("application/x-yaml", contentType)) + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 200 && responseStatusCode < 300) + { + if(Utilities.IsContentTypeMatch("application/json", contentType)) { + var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); var response = new GetCodeSamplePreviewAsyncResponse() { StatusCode = responseStatusCode, ContentType = contentType, RawResponse = httpResponse }; - response.TwoHundredApplicationXYamlBytes = await httpResponse.Content.ReadAsByteArrayAsync(); + response.UsageSnippets = obj; return response; } throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode == 202) + else if(responseStatusCode >= 400 && responseStatusCode < 500) { if(Utilities.IsContentTypeMatch("application/json", contentType)) { - var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); - var response = new GetCodeSamplePreviewAsyncResponse() - { - StatusCode = responseStatusCode, - ContentType = contentType, - RawResponse = httpResponse - }; - response.TwoHundredAndTwoApplicationJsonObject = obj; - return response; + var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); + throw obj!; } throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode >= 500 && responseStatusCode < 600) { if(Utilities.IsContentTypeMatch("application/json", contentType)) { diff --git a/src/SpeakeasySDK/Events.cs b/src/SpeakeasySDK/Events.cs index ff9266b3..b4033f87 100644 --- a/src/SpeakeasySDK/Events.cs +++ b/src/SpeakeasySDK/Events.cs @@ -65,10 +65,10 @@ public class Events: IEvents { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "5.12.0"; - private const string _sdkGenVersion = "2.493.4"; + private const string _sdkVersion = "5.13.0"; + private const string _sdkGenVersion = "2.502.0"; private const string _openapiDocVersion = "0.4.0"; - private const string _userAgent = "speakeasy-sdk/csharp 5.12.0 2.493.4 0.4.0 SpeakeasySDK"; + private const string _userAgent = "speakeasy-sdk/csharp 5.13.0 2.502.0 0.4.0 SpeakeasySDK"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; diff --git a/src/SpeakeasySDK/Github.cs b/src/SpeakeasySDK/Github.cs index 6fcd317f..16b629f5 100644 --- a/src/SpeakeasySDK/Github.cs +++ b/src/SpeakeasySDK/Github.cs @@ -47,10 +47,10 @@ public class Github: IGithub { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "5.12.0"; - private const string _sdkGenVersion = "2.493.4"; + private const string _sdkVersion = "5.13.0"; + private const string _sdkGenVersion = "2.502.0"; private const string _openapiDocVersion = "0.4.0"; - private const string _userAgent = "speakeasy-sdk/csharp 5.12.0 2.493.4 0.4.0 SpeakeasySDK"; + private const string _userAgent = "speakeasy-sdk/csharp 5.13.0 2.502.0 0.4.0 SpeakeasySDK"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; diff --git a/src/SpeakeasySDK/Models/Operations/ArchiveNamespaceRequest.cs b/src/SpeakeasySDK/Models/Operations/ArchiveNamespaceRequest.cs new file mode 100644 index 00000000..82bbc5d0 --- /dev/null +++ b/src/SpeakeasySDK/Models/Operations/ArchiveNamespaceRequest.cs @@ -0,0 +1,27 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SpeakeasySDK.Models.Operations +{ + using SpeakeasySDK.Models.Operations; + using SpeakeasySDK.Utils; + + public class ArchiveNamespaceRequest + { + + [SpeakeasyMetadata("pathParam:style=simple,explode=false,name=namespace_name")] + public string NamespaceName { get; set; } = default!; + + /// + /// Archived status + /// + [SpeakeasyMetadata("request:mediaType=application/json")] + public ArchiveNamespaceRequestBody? RequestBody { get; set; } + } +} \ No newline at end of file diff --git a/src/SpeakeasySDK/Models/Operations/ArchiveNamespaceRequestBody.cs b/src/SpeakeasySDK/Models/Operations/ArchiveNamespaceRequestBody.cs new file mode 100644 index 00000000..582758b2 --- /dev/null +++ b/src/SpeakeasySDK/Models/Operations/ArchiveNamespaceRequestBody.cs @@ -0,0 +1,24 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SpeakeasySDK.Models.Operations +{ + using Newtonsoft.Json; + using SpeakeasySDK.Utils; + + /// + /// Archived status + /// + public class ArchiveNamespaceRequestBody + { + + [JsonProperty("archived")] + public bool? Archived { get; set; } = true; + } +} \ No newline at end of file diff --git a/src/SpeakeasySDK/Models/Operations/GetCodeSamplesResponse.cs b/src/SpeakeasySDK/Models/Operations/ArchiveNamespaceResponse.cs similarity index 84% rename from src/SpeakeasySDK/Models/Operations/GetCodeSamplesResponse.cs rename to src/SpeakeasySDK/Models/Operations/ArchiveNamespaceResponse.cs index 03092bd0..1e2496ba 100644 --- a/src/SpeakeasySDK/Models/Operations/GetCodeSamplesResponse.cs +++ b/src/SpeakeasySDK/Models/Operations/ArchiveNamespaceResponse.cs @@ -9,12 +9,11 @@ #nullable enable namespace SpeakeasySDK.Models.Operations { - using SpeakeasySDK.Models.Shared; using SpeakeasySDK.Utils; using System; using System.Net.Http; - public class GetCodeSamplesResponse + public class ArchiveNamespaceResponse { /// @@ -31,10 +30,5 @@ public class GetCodeSamplesResponse /// Raw HTTP response; suitable for custom response parsing /// public HttpResponseMessage RawResponse { get; set; } = default!; - - /// - /// OK - /// - public UsageSnippets? UsageSnippets { get; set; } } } \ No newline at end of file diff --git a/src/SpeakeasySDK/Models/Operations/GenerateCodeSamplePreviewResponse.cs b/src/SpeakeasySDK/Models/Operations/GenerateCodeSamplePreviewResponse.cs index 8bcb0164..10f4b041 100644 --- a/src/SpeakeasySDK/Models/Operations/GenerateCodeSamplePreviewResponse.cs +++ b/src/SpeakeasySDK/Models/Operations/GenerateCodeSamplePreviewResponse.cs @@ -9,6 +9,7 @@ #nullable enable namespace SpeakeasySDK.Models.Operations { + using SpeakeasySDK.Models.Shared; using SpeakeasySDK.Utils; using System; using System.Net.Http; @@ -16,16 +17,6 @@ namespace SpeakeasySDK.Models.Operations public class GenerateCodeSamplePreviewResponse { - /// - /// Successfully returned codeSample overlay file - /// - public byte[]? TwoHundredApplicationJsonBytes { get; set; } - - /// - /// Successfully returned codeSample overlay file - /// - public byte[]? TwoHundredApplicationXYamlBytes { get; set; } - /// /// HTTP response content type for this operation /// @@ -40,5 +31,10 @@ public class GenerateCodeSamplePreviewResponse /// Raw HTTP response; suitable for custom response parsing /// public HttpResponseMessage RawResponse { get; set; } = default!; + + /// + /// OK + /// + public UsageSnippets? UsageSnippets { get; set; } } } \ No newline at end of file diff --git a/src/SpeakeasySDK/Models/Operations/GetCodeSamplePreviewAsyncResponse.cs b/src/SpeakeasySDK/Models/Operations/GetCodeSamplePreviewAsyncResponse.cs index 26c1b3b6..f13ee3ce 100644 --- a/src/SpeakeasySDK/Models/Operations/GetCodeSamplePreviewAsyncResponse.cs +++ b/src/SpeakeasySDK/Models/Operations/GetCodeSamplePreviewAsyncResponse.cs @@ -10,6 +10,7 @@ namespace SpeakeasySDK.Models.Operations { using SpeakeasySDK.Models.Operations; + using SpeakeasySDK.Models.Shared; using SpeakeasySDK.Utils; using System; using System.Net.Http; @@ -17,21 +18,6 @@ namespace SpeakeasySDK.Models.Operations public class GetCodeSamplePreviewAsyncResponse { - /// - /// Successfully returned codeSample overlay file - /// - public byte[]? TwoHundredApplicationJsonBytes { get; set; } - - /// - /// Successfully returned codeSample overlay file - /// - public byte[]? TwoHundredApplicationXYamlBytes { get; set; } - - /// - /// Job is still in progress - /// - public GetCodeSamplePreviewAsyncResponseBody? TwoHundredAndTwoApplicationJsonObject { get; set; } - /// /// HTTP response content type for this operation /// @@ -46,5 +32,15 @@ public class GetCodeSamplePreviewAsyncResponse /// Raw HTTP response; suitable for custom response parsing /// public HttpResponseMessage RawResponse { get; set; } = default!; + + /// + /// OK + /// + public UsageSnippets? UsageSnippets { get; set; } + + /// + /// Job is still in progress + /// + public GetCodeSamplePreviewAsyncResponseBody? Object { get; set; } } } \ No newline at end of file diff --git a/src/SpeakeasySDK/Models/Operations/GetCodeSamplesRequest.cs b/src/SpeakeasySDK/Models/Operations/GetCodeSamplesRequest.cs deleted file mode 100644 index c709971c..00000000 --- a/src/SpeakeasySDK/Models/Operations/GetCodeSamplesRequest.cs +++ /dev/null @@ -1,30 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. -// -// Changes to this file may cause incorrect behavior and will be lost when -// the code is regenerated. -// -//------------------------------------------------------------------------------ -#nullable enable -namespace SpeakeasySDK.Models.Operations -{ - using SpeakeasySDK.Utils; - using System.Collections.Generic; - - public class GetCodeSamplesRequest - { - - /// - /// The registry URL from which to retrieve the snippets. E.g. https://spec.speakeasy.com/org/ws/my-source - /// - [SpeakeasyMetadata("queryParam:style=form,explode=true,name=registry_url")] - public string RegistryUrl { get; set; } = default!; - - [SpeakeasyMetadata("queryParam:style=form,explode=true,name=languages")] - public List? Languages { get; set; } - - [SpeakeasyMetadata("queryParam:style=form,explode=true,name=operation_ids")] - public List? OperationIds { get; set; } - } -} \ No newline at end of file diff --git a/src/SpeakeasySDK/Models/Shared/CliEvent.cs b/src/SpeakeasySDK/Models/Shared/CliEvent.cs index ecc30d78..c1182ff6 100644 --- a/src/SpeakeasySDK/Models/Shared/CliEvent.cs +++ b/src/SpeakeasySDK/Models/Shared/CliEvent.cs @@ -473,6 +473,12 @@ public class CliEvent [JsonProperty("success")] public bool Success { get; set; } = default!; + /// + /// The raw test report xml + /// + [JsonProperty("test_report_raw")] + public string? TestReportRaw { get; set; } + /// /// Workflow lock file (post execution) /// diff --git a/src/SpeakeasySDK/Models/Shared/CodeSampleSchemaInput.cs b/src/SpeakeasySDK/Models/Shared/CodeSampleSchemaInput.cs index 8beae2e8..0857f185 100644 --- a/src/SpeakeasySDK/Models/Shared/CodeSampleSchemaInput.cs +++ b/src/SpeakeasySDK/Models/Shared/CodeSampleSchemaInput.cs @@ -17,10 +17,10 @@ public class CodeSampleSchemaInput { /// - /// A list of languages to generate code samples for + /// The language to generate code samples for /// - [SpeakeasyMetadata("multipartForm:name=languages")] - public List Languages { get; set; } = default!; + [SpeakeasyMetadata("multipartForm:name=language")] + public string Language { get; set; } = default!; /// /// The OpenAPI file to be uploaded @@ -28,6 +28,12 @@ public class CodeSampleSchemaInput [SpeakeasyMetadata("multipartForm:file,name=schema_file")] public SchemaFile SchemaFile { get; set; } = default!; + /// + /// A list of operations IDs to generate code samples for + /// + [SpeakeasyMetadata("multipartForm:name=operation_ids")] + public List? OperationIds { get; set; } + /// /// The name of the package /// diff --git a/src/SpeakeasySDK/Models/Shared/InteractionType.cs b/src/SpeakeasySDK/Models/Shared/InteractionType.cs index 2cd15282..d7b1793e 100644 --- a/src/SpeakeasySDK/Models/Shared/InteractionType.cs +++ b/src/SpeakeasySDK/Models/Shared/InteractionType.cs @@ -40,6 +40,8 @@ public enum InteractionType Configure, [JsonProperty("PUBLISH")] Publish, + [JsonProperty("TEST")] + Test, } public static class InteractionTypeExtension diff --git a/src/SpeakeasySDK/Models/Shared/Namespace.cs b/src/SpeakeasySDK/Models/Shared/Namespace.cs index 5ab49c03..f4c9bdaa 100644 --- a/src/SpeakeasySDK/Models/Shared/Namespace.cs +++ b/src/SpeakeasySDK/Models/Shared/Namespace.cs @@ -20,6 +20,9 @@ namespace SpeakeasySDK.Models.Shared public class Namespace { + [JsonProperty("archived_at")] + public DateTime? ArchivedAt { get; set; } + [JsonProperty("composite_spec_metadata")] public CompositeSpecMetadata? CompositeSpecMetadata { get; set; } @@ -32,6 +35,9 @@ public class Namespace [JsonProperty("id")] public string Id { get; set; } = default!; + [JsonProperty("latest_revision_metadata")] + public RevisionContentsMetadata? LatestRevisionMetadata { get; set; } + /// /// A human-readable name for the namespace. /// diff --git a/src/SpeakeasySDK/Models/Shared/Revision.cs b/src/SpeakeasySDK/Models/Shared/Revision.cs index e19a985b..3cda1aa7 100644 --- a/src/SpeakeasySDK/Models/Shared/Revision.cs +++ b/src/SpeakeasySDK/Models/Shared/Revision.cs @@ -10,6 +10,7 @@ namespace SpeakeasySDK.Models.Shared { using Newtonsoft.Json; + using SpeakeasySDK.Models.Shared; using SpeakeasySDK.Utils; using System; using System.Collections.Generic; @@ -17,6 +18,9 @@ namespace SpeakeasySDK.Models.Shared public class Revision { + [JsonProperty("contents_metadata")] + public RevisionContentsMetadata? ContentsMetadata { get; set; } + [JsonProperty("created_at")] public DateTime CreatedAt { get; set; } = default!; diff --git a/src/SpeakeasySDK/Models/Shared/RevisionContentsMetadata.cs b/src/SpeakeasySDK/Models/Shared/RevisionContentsMetadata.cs new file mode 100644 index 00000000..c282b51f --- /dev/null +++ b/src/SpeakeasySDK/Models/Shared/RevisionContentsMetadata.cs @@ -0,0 +1,93 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SpeakeasySDK.Models.Shared +{ + using Newtonsoft.Json; + using SpeakeasySDK.Models.Shared; + using SpeakeasySDK.Utils; + using System; + using System.Collections.Generic; + + public class RevisionContentsMetadata + { + + /// + /// Whether the OAS contains code samples. + /// + [JsonProperty("contains_code_samples")] + public bool ContainsCodeSamples { get; set; } = default!; + + [JsonProperty("created_at")] + public DateTime CreatedAt { get; set; } = default!; + + /// + /// The OAS description + /// + [JsonProperty("description")] + public string Description { get; set; } = default!; + + /// + /// The hash of the contents + /// + [JsonProperty("hash")] + public string Hash { get; set; } = default!; + + /// + /// The fully qualified namespace + /// + [JsonProperty("namespace")] + public string Namespace { get; set; } = default!; + + /// + /// The number of overlay actions in the OAS. Will be 0 if the OAS is not an overlay. + /// + [JsonProperty("num_overlay_actions")] + public long NumOverlayActions { get; set; } = default!; + + /// + /// The operation IDs contained in the OAS. Will be empty if the OAS is an overlay. + /// + [JsonProperty("operation_ids")] + public List OperationIds { get; set; } = default!; + + /// + /// The digest of the parent bundle + /// + [JsonProperty("revision_digest")] + public string RevisionDigest { get; set; } = default!; + + /// + /// The tags contained in the OAS -- NOT the OCI tags. Will be empty if the OAS is an overlay. + /// + [JsonProperty("tags")] + public List Tags { get; set; } = default!; + + /// + /// The OAS title + /// + [JsonProperty("title")] + public string Title { get; set; } = default!; + + [JsonProperty("type")] + public RevisionContentsMetadataType Type { get; set; } = default!; + + /// + /// The OAS version + /// + [JsonProperty("version")] + public string Version { get; set; } = default!; + + /// + /// The workspace ID + /// + [JsonProperty("workspace_id")] + public string WorkspaceId { get; set; } = default!; + } +} \ No newline at end of file diff --git a/src/SpeakeasySDK/Models/Shared/RevisionContentsMetadataType.cs b/src/SpeakeasySDK/Models/Shared/RevisionContentsMetadataType.cs new file mode 100644 index 00000000..fe811667 --- /dev/null +++ b/src/SpeakeasySDK/Models/Shared/RevisionContentsMetadataType.cs @@ -0,0 +1,57 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SpeakeasySDK.Models.Shared +{ + using Newtonsoft.Json; + using SpeakeasySDK.Utils; + using System; + + public enum RevisionContentsMetadataType + { + [JsonProperty("OPENAPI_BUNDLE")] + OpenapiBundle, + [JsonProperty("OPENAPI_OVERLAY")] + OpenapiOverlay, + } + + public static class RevisionContentsMetadataTypeExtension + { + public static string Value(this RevisionContentsMetadataType value) + { + return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString(); + } + + public static RevisionContentsMetadataType ToEnum(this string value) + { + foreach(var field in typeof(RevisionContentsMetadataType).GetFields()) + { + var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false); + if (attributes.Length == 0) + { + continue; + } + + var attribute = attributes[0] as JsonPropertyAttribute; + if (attribute != null && attribute.PropertyName == value) + { + var enumVal = field.GetValue(null); + + if (enumVal is RevisionContentsMetadataType) + { + return (RevisionContentsMetadataType)enumVal; + } + } + } + + throw new Exception($"Unknown value {value} for enum RevisionContentsMetadataType"); + } + } + +} \ No newline at end of file diff --git a/src/SpeakeasySDK/Models/Shared/UsageSnippet.cs b/src/SpeakeasySDK/Models/Shared/UsageSnippet.cs index 36e1ab57..4544b1c8 100644 --- a/src/SpeakeasySDK/Models/Shared/UsageSnippet.cs +++ b/src/SpeakeasySDK/Models/Shared/UsageSnippet.cs @@ -27,10 +27,22 @@ public class UsageSnippet [JsonProperty("language")] public string Language { get; set; } = default!; + /// + /// The HTTP method of the operation + /// + [JsonProperty("method")] + public object Method { get; set; } = default!; + /// /// The operation ID for the snippet /// [JsonProperty("operationId")] public string OperationId { get; set; } = default!; + + /// + /// The path of the operation + /// + [JsonProperty("path")] + public string Path { get; set; } = default!; } } \ No newline at end of file diff --git a/src/SpeakeasySDK/Models/Shared/User.cs b/src/SpeakeasySDK/Models/Shared/User.cs index 990b3fb9..1c76183d 100644 --- a/src/SpeakeasySDK/Models/Shared/User.cs +++ b/src/SpeakeasySDK/Models/Shared/User.cs @@ -88,6 +88,12 @@ public class User [JsonProperty("photo_url")] public string? PhotoUrl { get; set; } = null; + /// + /// Hash used for pylon identity verification returned on v1/user. + /// + [JsonProperty("pylon_identity_hash")] + public string? PylonIdentityHash { get; set; } + /// /// Timestamp of the user's last update. /// diff --git a/src/SpeakeasySDK/Organizations.cs b/src/SpeakeasySDK/Organizations.cs index e1a3903c..f0657002 100644 --- a/src/SpeakeasySDK/Organizations.cs +++ b/src/SpeakeasySDK/Organizations.cs @@ -81,10 +81,10 @@ public class Organizations: IOrganizations { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "5.12.0"; - private const string _sdkGenVersion = "2.493.4"; + private const string _sdkVersion = "5.13.0"; + private const string _sdkGenVersion = "2.502.0"; private const string _openapiDocVersion = "0.4.0"; - private const string _userAgent = "speakeasy-sdk/csharp 5.12.0 2.493.4 0.4.0 SpeakeasySDK"; + private const string _userAgent = "speakeasy-sdk/csharp 5.13.0 2.502.0 0.4.0 SpeakeasySDK"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; diff --git a/src/SpeakeasySDK/Reports.cs b/src/SpeakeasySDK/Reports.cs index 1f287cac..fabab72c 100644 --- a/src/SpeakeasySDK/Reports.cs +++ b/src/SpeakeasySDK/Reports.cs @@ -51,10 +51,10 @@ public class Reports: IReports { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "5.12.0"; - private const string _sdkGenVersion = "2.493.4"; + private const string _sdkVersion = "5.13.0"; + private const string _sdkGenVersion = "2.502.0"; private const string _openapiDocVersion = "0.4.0"; - private const string _userAgent = "speakeasy-sdk/csharp 5.12.0 2.493.4 0.4.0 SpeakeasySDK"; + private const string _userAgent = "speakeasy-sdk/csharp 5.13.0 2.502.0 0.4.0 SpeakeasySDK"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; @@ -133,7 +133,11 @@ public async Task GetChangesReportSignedUrlAs throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } @@ -207,7 +211,11 @@ public async Task GetLintingReportSignedUrlAs throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } @@ -288,7 +296,11 @@ public async Task UploadReportAsync(UploadReportRequestBod throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } diff --git a/src/SpeakeasySDK/SDK.cs b/src/SpeakeasySDK/SDK.cs index a41cac0a..619878d2 100644 --- a/src/SpeakeasySDK/SDK.cs +++ b/src/SpeakeasySDK/SDK.cs @@ -149,10 +149,10 @@ public class SDK: ISDK public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "5.12.0"; - private const string _sdkGenVersion = "2.493.4"; + private const string _sdkVersion = "5.13.0"; + private const string _sdkGenVersion = "2.502.0"; private const string _openapiDocVersion = "0.4.0"; - private const string _userAgent = "speakeasy-sdk/csharp 5.12.0 2.493.4 0.4.0 SpeakeasySDK"; + private const string _userAgent = "speakeasy-sdk/csharp 5.13.0 2.502.0 0.4.0 SpeakeasySDK"; private string _serverUrl = ""; private SDKConfig.Server? _server = null; private ISpeakeasyHttpClient _client; diff --git a/src/SpeakeasySDK/ShortURLs.cs b/src/SpeakeasySDK/ShortURLs.cs index 65c3f711..93c96ab4 100644 --- a/src/SpeakeasySDK/ShortURLs.cs +++ b/src/SpeakeasySDK/ShortURLs.cs @@ -41,10 +41,10 @@ public class ShortURLs: IShortURLs { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "5.12.0"; - private const string _sdkGenVersion = "2.493.4"; + private const string _sdkVersion = "5.13.0"; + private const string _sdkGenVersion = "2.502.0"; private const string _openapiDocVersion = "0.4.0"; - private const string _userAgent = "speakeasy-sdk/csharp 5.12.0 2.493.4 0.4.0 SpeakeasySDK"; + private const string _userAgent = "speakeasy-sdk/csharp 5.13.0 2.502.0 0.4.0 SpeakeasySDK"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; @@ -130,7 +130,11 @@ public async Task CreateAsync(CreateRequestBody request) throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } diff --git a/src/SpeakeasySDK/SpeakeasySDK.csproj b/src/SpeakeasySDK/SpeakeasySDK.csproj index 142f8a2a..bb7026f2 100644 --- a/src/SpeakeasySDK/SpeakeasySDK.csproj +++ b/src/SpeakeasySDK/SpeakeasySDK.csproj @@ -3,7 +3,7 @@ true SpeakeasySDK - 5.12.0 + 5.13.0 net8.0 Speakeasy Copyright (c) Speakeasy 2025 diff --git a/src/SpeakeasySDK/Subscriptions.cs b/src/SpeakeasySDK/Subscriptions.cs index b2dcdbc7..d22fa31d 100644 --- a/src/SpeakeasySDK/Subscriptions.cs +++ b/src/SpeakeasySDK/Subscriptions.cs @@ -46,10 +46,10 @@ public class Subscriptions: ISubscriptions { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "5.12.0"; - private const string _sdkGenVersion = "2.493.4"; + private const string _sdkVersion = "5.13.0"; + private const string _sdkGenVersion = "2.502.0"; private const string _openapiDocVersion = "0.4.0"; - private const string _userAgent = "speakeasy-sdk/csharp 5.12.0 2.493.4 0.4.0 SpeakeasySDK"; + private const string _userAgent = "speakeasy-sdk/csharp 5.13.0 2.502.0 0.4.0 SpeakeasySDK"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; diff --git a/src/SpeakeasySDK/Suggest.cs b/src/SpeakeasySDK/Suggest.cs index 241b4dfd..da06eb24 100644 --- a/src/SpeakeasySDK/Suggest.cs +++ b/src/SpeakeasySDK/Suggest.cs @@ -68,10 +68,10 @@ public class Suggest: ISuggest { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "5.12.0"; - private const string _sdkGenVersion = "2.493.4"; + private const string _sdkVersion = "5.13.0"; + private const string _sdkGenVersion = "2.502.0"; private const string _openapiDocVersion = "0.4.0"; - private const string _userAgent = "speakeasy-sdk/csharp 5.12.0 2.493.4 0.4.0 SpeakeasySDK"; + private const string _userAgent = "speakeasy-sdk/csharp 5.13.0 2.502.0 0.4.0 SpeakeasySDK"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; @@ -157,7 +157,11 @@ public async Task SuggestAsync(SuggestRequest request) throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } @@ -238,7 +242,11 @@ public async Task SuggestItemsAsync(SuggestItemsRequestBod throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } @@ -319,7 +327,11 @@ public async Task SuggestOpenAPIAsync(SuggestOpenAPIRequ throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } @@ -399,7 +411,11 @@ public async Task SuggestOpenAPIRegistryAsync(Su throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } diff --git a/src/SpeakeasySDK/Workspaces.cs b/src/SpeakeasySDK/Workspaces.cs index e390c6b2..ae96c00b 100644 --- a/src/SpeakeasySDK/Workspaces.cs +++ b/src/SpeakeasySDK/Workspaces.cs @@ -139,10 +139,10 @@ public class Workspaces: IWorkspaces { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "5.12.0"; - private const string _sdkGenVersion = "2.493.4"; + private const string _sdkVersion = "5.13.0"; + private const string _sdkGenVersion = "2.502.0"; private const string _openapiDocVersion = "0.4.0"; - private const string _userAgent = "speakeasy-sdk/csharp 5.12.0 2.493.4 0.4.0 SpeakeasySDK"; + private const string _userAgent = "speakeasy-sdk/csharp 5.13.0 2.502.0 0.4.0 SpeakeasySDK"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource;