diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 64277a85..060b5ee8 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,19 +1,19 @@ lockVersion: 2.0.0 id: f73d2126-985b-4d69-88ee-b7c69254d8bf management: - docChecksum: 52df6f1f34dfe76968f8ed009cc2bfd3 + docChecksum: 8e0ff093baf67c9e2001a9f810f355de docVersion: 0.4.0 - speakeasyVersion: 1.468.2 - generationVersion: 2.493.4 - releaseVersion: 5.12.0 - configChecksum: 4ac5f7ce74e22b4b8247f447fc0fc3c9 + speakeasyVersion: 1.476.1 + generationVersion: 2.495.1 + releaseVersion: 5.12.1 + configChecksum: 1704246957845667cabd932d3e901606 repoURL: https://github.com/speakeasy-api/speakeasy-client-sdk-csharp.git repoSubDirectory: . published: true features: csharp: additionalDependencies: 0.1.0 - core: 3.10.10 + core: 3.10.11 deprecations: 2.81.2 globalSecurity: 2.83.6 globalSecurityCallbacks: 0.1.0 @@ -61,8 +61,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 +198,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 @@ -213,8 +213,6 @@ generatedFiles: - docs/Models/Shared/Tag.md - docs/Models/Shared/TargetSDK.md - docs/Models/Shared/Type.md - - docs/Models/Shared/UsageSnippet.md - - docs/Models/Shared/UsageSnippets.md - docs/Models/Shared/User.md - docs/Models/Shared/V2Descriptor.md - docs/Models/Shared/WorkflowDocument.md @@ -278,8 +276,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 +413,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 @@ -430,8 +428,6 @@ generatedFiles: - src/SpeakeasySDK/Models/Shared/Tag.cs - src/SpeakeasySDK/Models/Shared/TargetSDK.cs - src/SpeakeasySDK/Models/Shared/Type.cs - - src/SpeakeasySDK/Models/Shared/UsageSnippet.cs - - src/SpeakeasySDK/Models/Shared/UsageSnippets.cs - src/SpeakeasySDK/Models/Shared/User.cs - src/SpeakeasySDK/Models/Shared/V2Descriptor.cs - src/SpeakeasySDK/Models/Shared/WorkflowDocument.cs @@ -471,288 +467,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 +481,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 +494,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 +501,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 +512,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,391 +522,72 @@ 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} - 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: + listRemoteSources: + speakeasy-default-list-remote-sources: 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: {"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": 868924} - getWorkspaceFeatureFlags: - speakeasy-default-get-workspace-feature-flags: + application/json: {"message": "", "status_code": 754391} + postTags: + speakeasy-default-post-tags: parameters: path: - workspace_id: "" + namespace_name: "" responses: - 5XX: - application/json: {"message": "", "status_code": 365854} - "200": + 4XX: + application/json: {"message": "", "status_code": 581484} + preflight: + speakeasy-default-preflight: + responses: + 2XX: application/json: {} - getWorkspaceEventsByTarget: - speakeasy-default-get-workspace-events-by-target: + 4XX: + application/json: {"message": "", "status_code": 820828} + 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: requestBody: @@ -1225,6 +598,8 @@ examples: application/x-yaml: "0xfA011e0be4" 4XX: application/json: {"message": "", "status_code": 396101} + 5XX: + application/json: {"message": "", "status_code": 950459} generateCodeSamplePreviewAsync: speakeasy-default-generate-code-sample-preview-async: requestBody: @@ -1234,6 +609,8 @@ examples: application/json: {"job_id": "", "status": "pending"} 4XX: application/json: {"message": "", "status_code": 394086} + 5XX: + application/json: {"message": "", "status_code": 828814} getCodeSamplePreviewAsync: speakeasy-default-get-code-sample-preview-async: parameters: @@ -1247,29 +624,8 @@ examples: 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} + 5XX: + application/json: {"message": "", "status_code": 388593} checkGithubAccess: speakeasy-default-check-github-access: parameters: @@ -1291,6 +647,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 +708,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 +731,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 +808,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 +825,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 +869,8 @@ examples: speakeasy-default-delete-workspace-token: parameters: path: - tokenID: "" workspace_id: "" + tokenID: "" responses: 4XX: application/json: {"message": "", "status_code": 120260} @@ -1422,9 +885,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 +942,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 +953,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 +987,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": "AUTHENTICATE", "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 +1014,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..21167cca 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,21 +1,21 @@ -speakeasyVersion: 1.468.2 +speakeasyVersion: 1.476.1 sources: speakeasy: sourceNamespace: speakeasy - sourceRevisionDigest: sha256:8af7ebde12785185cdbd700c1b3b6b8848b43d34f1fe8c06fff5ae4af471faf2 - sourceBlobDigest: sha256:952a58da1511e3191ea8e470c7f01a4e3785d11d9152f490a3e5a7173c8542e7 + sourceRevisionDigest: sha256:214056b6048e870f42209f0718cb593c0665fff50efb735635168f3b0a39e343 + sourceBlobDigest: sha256:fdce65fc06375b5ac8b51a49e68853e76ba820d057de83e9d0c608a25af78b7d 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:214056b6048e870f42209f0718cb593c0665fff50efb735635168f3b0a39e343 + sourceBlobDigest: sha256:fdce65fc06375b5ac8b51a49e68853e76ba820d057de83e9d0c608a25af78b7d codeSamplesNamespace: code-samples-csharp-speakeasy-client-sdk-csharp - codeSamplesRevisionDigest: sha256:aacf508e82244f7628670bda7c73bdda3a36059c4143c3566f2b4d4935251ec8 + codeSamplesRevisionDigest: sha256:3caca7615429d44939d0cbb408cc1d9419dcddb760384fdaf71171d63d8f7080 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..e904a61d 100755 --- a/README.md +++ b/README.md @@ -102,7 +102,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..7b93f49f 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-01-27 00:20:27 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.476.1 (2.495.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [csharp v5.12.1] . +### Releases +- [NuGet v5.12.1] https://www.nuget.org/packages/SpeakeasySDK/5.12.1 - . \ No newline at end of file diff --git a/codeSamples.yaml b/codeSamples.yaml index 6ded62a4..0a901207 100644 --- a/codeSamples.yaml +++ b/codeSamples.yaml @@ -205,27 +205,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: 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/Operations/GetCodeSamplesResponse.md b/docs/Models/Operations/GetCodeSamplesResponse.md deleted file mode 100644 index ab675241..00000000 --- a/docs/Models/Operations/GetCodeSamplesResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetCodeSamplesResponse - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -| `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 diff --git a/docs/Models/Shared/Namespace.md b/docs/Models/Shared/Namespace.md index 1741b841..d358fb86 100644 --- a/docs/Models/Shared/Namespace.md +++ b/docs/Models/Shared/Namespace.md @@ -10,6 +10,7 @@ A namespace contains many revisions. | `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 deleted file mode 100644 index c75a9015..00000000 --- a/docs/Models/Shared/UsageSnippet.md +++ /dev/null @@ -1,10 +0,0 @@ -# UsageSnippet - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------- | -------------------------------- | -------------------------------- | -------------------------------- | -| `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 diff --git a/docs/Models/Shared/UsageSnippets.md b/docs/Models/Shared/UsageSnippets.md deleted file mode 100644 index 0ef6bd2d..00000000 --- a/docs/Models/Shared/UsageSnippets.md +++ /dev/null @@ -1,8 +0,0 @@ -# UsageSnippets - - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | -| `Snippets` | List<[UsageSnippet](../../Models/Shared/UsageSnippet.md)> | :heavy_check_mark: | N/A | \ 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/codesamples/README.md b/docs/sdks/codesamples/README.md index f814ab3a..9f961b15 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 @@ -57,7 +56,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 @@ -104,48 +104,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 +145,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/gen.yaml b/gen.yaml index 7d57f2ac..46f05ac6 100755 --- a/gen.yaml +++ b/gen.yaml @@ -11,7 +11,7 @@ generation: oAuth2ClientCredentialsEnabled: false oAuth2PasswordEnabled: false csharp: - version: 5.12.0 + version: 5.12.1 additionalDependencies: [] author: Speakeasy clientServerStatusCodesAsErrors: true diff --git a/src/SpeakeasySDK/Artifacts.cs b/src/SpeakeasySDK/Artifacts.cs index 0b8ea240..285fc694 100644 --- a/src/SpeakeasySDK/Artifacts.cs +++ b/src/SpeakeasySDK/Artifacts.cs @@ -78,10 +78,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.12.1"; + private const string _sdkGenVersion = "2.495.1"; 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.12.1 2.495.1 0.4.0 SpeakeasySDK"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; diff --git a/src/SpeakeasySDK/Auth.cs b/src/SpeakeasySDK/Auth.cs index 493d69b9..0374f484 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.12.1"; + private const string _sdkGenVersion = "2.495.1"; 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.12.1 2.495.1 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..6a7c691d 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.12.1"; + private const string _sdkGenVersion = "2.495.1"; 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.12.1 2.495.1 0.4.0 SpeakeasySDK"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; @@ -171,7 +162,17 @@ public async Task GenerateCodeSamplePreviewAs 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)) + { + 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) { if(Utilities.IsContentTypeMatch("application/json", contentType)) { @@ -258,7 +259,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 +269,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 +279,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); } @@ -449,7 +376,17 @@ public async Task GetCodeSamplePreviewAsyncAs 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)) + { + 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) { if(Utilities.IsContentTypeMatch("application/json", contentType)) { diff --git a/src/SpeakeasySDK/Events.cs b/src/SpeakeasySDK/Events.cs index ff9266b3..2a05fc77 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.12.1"; + private const string _sdkGenVersion = "2.495.1"; 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.12.1 2.495.1 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..cc4650bb 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.12.1"; + private const string _sdkGenVersion = "2.495.1"; 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.12.1 2.495.1 0.4.0 SpeakeasySDK"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; 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/Operations/GetCodeSamplesResponse.cs b/src/SpeakeasySDK/Models/Operations/GetCodeSamplesResponse.cs deleted file mode 100644 index 03092bd0..00000000 --- a/src/SpeakeasySDK/Models/Operations/GetCodeSamplesResponse.cs +++ /dev/null @@ -1,40 +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.Models.Shared; - using SpeakeasySDK.Utils; - using System; - using System.Net.Http; - - public class GetCodeSamplesResponse - { - - /// - /// HTTP response content type for this operation - /// - public string? ContentType { get; set; } = default!; - - /// - /// HTTP response status code for this operation - /// - public int StatusCode { get; set; } = default!; - - /// - /// 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/Shared/Namespace.cs b/src/SpeakeasySDK/Models/Shared/Namespace.cs index 5ab49c03..966e5808 100644 --- a/src/SpeakeasySDK/Models/Shared/Namespace.cs +++ b/src/SpeakeasySDK/Models/Shared/Namespace.cs @@ -32,6 +32,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 deleted file mode 100644 index 36e1ab57..00000000 --- a/src/SpeakeasySDK/Models/Shared/UsageSnippet.cs +++ /dev/null @@ -1,36 +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.Shared -{ - using Newtonsoft.Json; - using SpeakeasySDK.Utils; - - public class UsageSnippet - { - - /// - /// The code snippet - /// - [JsonProperty("code")] - public string Code { get; set; } = default!; - - /// - /// The language of the snippet - /// - [JsonProperty("language")] - public string Language { get; set; } = default!; - - /// - /// The operation ID for the snippet - /// - [JsonProperty("operationId")] - public string OperationId { get; set; } = default!; - } -} \ No newline at end of file diff --git a/src/SpeakeasySDK/Models/Shared/UsageSnippets.cs b/src/SpeakeasySDK/Models/Shared/UsageSnippets.cs deleted file mode 100644 index 09b46b74..00000000 --- a/src/SpeakeasySDK/Models/Shared/UsageSnippets.cs +++ /dev/null @@ -1,23 +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.Shared -{ - using Newtonsoft.Json; - using SpeakeasySDK.Models.Shared; - using SpeakeasySDK.Utils; - using System.Collections.Generic; - - public class UsageSnippets - { - - [JsonProperty("snippets")] - public List Snippets { 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..7b9e9a19 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.12.1"; + private const string _sdkGenVersion = "2.495.1"; 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.12.1 2.495.1 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..e8ca27c5 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.12.1"; + private const string _sdkGenVersion = "2.495.1"; 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.12.1 2.495.1 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..313a9ae7 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.12.1"; + private const string _sdkGenVersion = "2.495.1"; 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.12.1 2.495.1 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..4882a65d 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.12.1"; + private const string _sdkGenVersion = "2.495.1"; 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.12.1 2.495.1 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..cb594123 100644 --- a/src/SpeakeasySDK/SpeakeasySDK.csproj +++ b/src/SpeakeasySDK/SpeakeasySDK.csproj @@ -3,7 +3,7 @@ true SpeakeasySDK - 5.12.0 + 5.12.1 net8.0 Speakeasy Copyright (c) Speakeasy 2025 diff --git a/src/SpeakeasySDK/Subscriptions.cs b/src/SpeakeasySDK/Subscriptions.cs index b2dcdbc7..0ed93367 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.12.1"; + private const string _sdkGenVersion = "2.495.1"; 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.12.1 2.495.1 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..59bf20dd 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.12.1"; + private const string _sdkGenVersion = "2.495.1"; 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.12.1 2.495.1 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..1621fe97 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.12.1"; + private const string _sdkGenVersion = "2.495.1"; 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.12.1 2.495.1 0.4.0 SpeakeasySDK"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource;