From 99461c7b58b985e3ef503158cbed4988102343ab Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Mon, 10 Nov 2025 00:23:56 +0000 Subject: [PATCH 1/2] ## Typescript SDK Changes Detected: * `speakeasy.artifacts.getNamespaces()`: `response.items.[].latestRevisionMetadata` **Changed** * `speakeasy.artifacts.getRevisions()`: `response.items.[].contentsMetadata` **Changed** --- .gitignore | 4 + .speakeasy/gen.lock | 33 +- .speakeasy/workflow.lock | 16 +- README.md | 10 +- RELEASES.md | 12 +- RUNTIMES.md | 12 +- .../operations/createworkspacetokenrequest.md | 11 +- .../operations/postworkspaceeventsrequest.md | 16 +- docs/sdk/models/operations/suggestrequest.md | 23 + .../updateworkspacedetailsrequest.md | 12 +- .../updateworkspacesettingsrequest.md | 9 +- docs/sdk/models/shared/accounttype.md | 2 +- docs/sdk/models/shared/apikeydetails.md | 2 +- docs/sdk/models/shared/relativediff.md | 18 + .../models/shared/revisioncontentsmetadata.md | 11 +- docs/sdk/models/shared/server.md | 22 + .../models/shared/workspaceandorganization.md | 2 +- docs/sdks/artifacts/README.md | 11 + docs/sdks/auth/README.md | 4 + docs/sdks/codesamples/README.md | 4 + docs/sdks/events/README.md | 5 + docs/sdks/github/README.md | 11 + docs/sdks/organizations/README.md | 8 + docs/sdks/publishingtokens/README.md | 7 + docs/sdks/reports/README.md | 3 + docs/sdks/schemastore/README.md | 1 + docs/sdks/shorturls/README.md | 1 + docs/sdks/speakeasy/README.md | 10 - docs/sdks/subscriptions/README.md | 2 + docs/sdks/suggest/README.md | 4 + docs/sdks/workspaces/README.md | 15 + examples/.env.template | 3 + examples/README.md | 31 + .../artifactsCreateRemoteSource.example.ts | 26 + examples/package-lock.json | 641 ++++++++++++++++++ examples/package.json | 18 + gen.yaml | 20 +- jsr.json | 2 +- package-lock.json | 141 ++-- package.json | 16 +- src/funcs/artifactsCreateRemoteSource.ts | 4 +- src/funcs/artifactsGetBlob.ts | 4 +- src/funcs/artifactsGetManifest.ts | 2 +- src/funcs/artifactsGetNamespaces.ts | 2 +- src/funcs/artifactsGetRevisions.ts | 2 +- src/funcs/artifactsGetTags.ts | 2 +- src/funcs/artifactsListRemoteSources.ts | 2 +- src/funcs/artifactsPostTags.ts | 4 +- src/funcs/artifactsPreflight.ts | 2 +- src/funcs/artifactsSetArchived.ts | 4 +- src/funcs/artifactsSetVisibility.ts | 4 +- src/funcs/authGetAccess.ts | 2 +- src/funcs/authGetAccessToken.ts | 2 +- src/funcs/authGetUser.ts | 2 +- src/funcs/authValidateApiKey.ts | 2 +- .../codeSamplesGenerateCodeSamplePreview.ts | 2 +- ...deSamplesGenerateCodeSamplePreviewAsync.ts | 2 +- src/funcs/codeSamplesGet.ts | 2 +- .../codeSamplesGetCodeSamplePreviewAsync.ts | 2 +- src/funcs/eventsGetEventsByTarget.ts | 4 +- src/funcs/eventsGetTargets.ts | 4 +- src/funcs/eventsGetTargetsDeprecated.ts | 4 +- src/funcs/eventsPost.ts | 4 +- src/funcs/eventsSearch.ts | 4 +- src/funcs/githubCheckAccess.ts | 4 +- src/funcs/githubCheckPublishingPRs.ts | 2 +- src/funcs/githubCheckPublishingSecrets.ts | 2 +- src/funcs/githubConfigureCodeSamples.ts | 2 +- src/funcs/githubConfigureMintlifyRepo.ts | 4 +- src/funcs/githubConfigureTarget.ts | 4 +- src/funcs/githubGetAction.ts | 2 +- src/funcs/githubGetSetup.ts | 2 +- src/funcs/githubLinkGithub.ts | 4 +- src/funcs/githubStorePublishingSecrets.ts | 4 +- src/funcs/githubTriggerAction.ts | 4 +- src/funcs/organizationsCreate.ts | 2 +- src/funcs/organizationsCreateBillingAddOns.ts | 2 +- src/funcs/organizationsCreateFreeTrial.ts | 4 +- src/funcs/organizationsDeleteBillingAddOn.ts | 4 +- src/funcs/organizationsGet.ts | 2 +- src/funcs/organizationsGetAll.ts | 4 +- src/funcs/organizationsGetBillingAddOns.ts | 2 +- src/funcs/organizationsGetUsage.ts | 2 +- src/funcs/publishingTokensCreate.ts | 2 +- src/funcs/publishingTokensDelete.ts | 4 +- src/funcs/publishingTokensGet.ts | 2 +- src/funcs/publishingTokensList.ts | 4 +- src/funcs/publishingTokensResolveMetadata.ts | 2 +- src/funcs/publishingTokensResolveTarget.ts | 4 +- src/funcs/publishingTokensUpdate.ts | 4 +- src/funcs/reportsGetChangesReportSignedUrl.ts | 2 +- src/funcs/reportsGetLintingReportSignedUrl.ts | 2 +- src/funcs/reportsUploadReport.ts | 2 +- src/funcs/schemaStoreCreateSchemaStoreItem.ts | 2 +- src/funcs/shortURLsCreate.ts | 2 +- ...scriptionsActivateSubscriptionNamespace.ts | 4 +- ...ubscriptionsIgnoreSubscriptionNamespace.ts | 4 +- src/funcs/suggestSuggest.ts | 4 +- src/funcs/suggestSuggestItems.ts | 4 +- src/funcs/suggestSuggestOpenAPI.ts | 4 +- src/funcs/suggestSuggestOpenAPIRegistry.ts | 4 +- src/funcs/workspacesCreate.ts | 2 +- src/funcs/workspacesCreateToken.ts | 4 +- src/funcs/workspacesDeleteToken.ts | 4 +- src/funcs/workspacesGet.ts | 2 +- src/funcs/workspacesGetAll.ts | 4 +- src/funcs/workspacesGetByID.ts | 2 +- src/funcs/workspacesGetFeatureFlags.ts | 2 +- src/funcs/workspacesGetSettings.ts | 2 +- src/funcs/workspacesGetTeam.ts | 2 +- src/funcs/workspacesGetTokens.ts | 4 +- src/funcs/workspacesGrantAccess.ts | 2 +- src/funcs/workspacesRevokeAccess.ts | 4 +- src/funcs/workspacesSetFeatureFlags.ts | 2 +- src/funcs/workspacesUpdate.ts | 4 +- src/funcs/workspacesUpdateSettings.ts | 4 +- src/lib/base64.ts | 2 +- src/lib/config.ts | 6 +- src/lib/schemas.ts | 2 +- src/lib/security.ts | 9 +- src/lib/url.ts | 2 +- src/mcp-server/cli/start/command.ts | 15 +- src/mcp-server/cli/start/impl.ts | 4 - src/mcp-server/extensions.ts | 2 +- src/mcp-server/mcp-server.ts | 2 +- src/mcp-server/prompts.ts | 2 +- src/mcp-server/server.ts | 2 +- src/mcp-server/shared.ts | 3 +- src/mcp-server/tools.ts | 2 +- src/sdk/models/errors/error.ts | 19 +- src/sdk/models/errors/index.ts | 1 + .../models/errors/responsevalidationerror.ts | 2 +- src/sdk/models/errors/sdkerror.ts | 10 +- src/sdk/models/errors/sdkvalidationerror.ts | 2 +- .../activatesubscriptionnamespace.ts | 19 +- src/sdk/models/operations/archivenamespace.ts | 32 +- .../models/operations/checkgithubaccess.ts | 17 +- src/sdk/models/operations/create.ts | 17 +- .../operations/createpublishingtoken.ts | 17 +- .../operations/createschemastoreitem.ts | 29 +- .../models/operations/createworkspacetoken.ts | 32 +- .../models/operations/deletebillingaddon.ts | 17 +- .../operations/deletepublishingtoken.ts | 17 +- .../models/operations/deleteworkspacetoken.ts | 32 +- .../generatecodesamplepreviewasync.ts | 19 +- src/sdk/models/operations/getaccesstoken.ts | 17 +- src/sdk/models/operations/getblob.ts | 17 +- .../operations/getchangesreportsignedurl.ts | 34 +- .../operations/getcodesamplepreviewasync.ts | 50 +- src/sdk/models/operations/getcodesamples.ts | 32 +- src/sdk/models/operations/getgithubaction.ts | 17 +- .../models/operations/getgithubsetupstate.ts | 17 +- .../operations/getlintingreportsignedurl.ts | 34 +- src/sdk/models/operations/getmanifest.ts | 17 +- src/sdk/models/operations/getorganization.ts | 17 +- .../operations/getpublishingtokenbyid.ts | 17 +- .../getpublishingtokenpublicmetadata.ts | 36 +- .../getpublishingtokentargetbyid.ts | 19 +- src/sdk/models/operations/getrevisions.ts | 17 +- src/sdk/models/operations/gettags.ts | 17 +- src/sdk/models/operations/getworkspace.ts | 32 +- .../models/operations/getworkspaceaccess.ts | 17 +- .../operations/getworkspaceeventsbytarget.ts | 34 +- .../operations/getworkspacefeatureflags.ts | 32 +- .../models/operations/getworkspacesettings.ts | 32 +- .../models/operations/getworkspacetargets.ts | 17 +- .../getworkspacetargetsdeprecated.ts | 36 +- src/sdk/models/operations/getworkspaceteam.ts | 32 +- .../models/operations/getworkspacetokens.ts | 32 +- .../operations/githubcheckpublishingprs.ts | 17 +- .../githubcheckpublishingsecrets.ts | 19 +- .../operations/grantuseraccesstoworkspace.ts | 34 +- .../operations/ignoresubscriptionnamespace.ts | 18 +- src/sdk/models/operations/linkgithubaccess.ts | 17 +- .../models/operations/listremotesources.ts | 17 +- src/sdk/models/operations/posttags.ts | 17 +- .../models/operations/postworkspaceevents.ts | 32 +- .../operations/revokeuseraccesstoworkspace.ts | 34 +- .../operations/searchworkspaceevents.ts | 32 +- src/sdk/models/operations/setvisibility.ts | 32 +- src/sdk/models/operations/suggest.ts | 17 +- src/sdk/models/operations/suggestopenapi.ts | 47 +- .../operations/suggestopenapiregistry.ts | 17 +- .../updatepublishingtokenexpiration.ts | 36 +- .../operations/updateworkspacedetails.ts | 32 +- .../operations/updateworkspacesettings.ts | 32 +- src/sdk/models/operations/uploadreport.ts | 47 +- src/sdk/models/shared/accessdetails.ts | 29 +- src/sdk/models/shared/accesstoken.ts | 62 +- src/sdk/models/shared/accounttype.ts | 15 +- src/sdk/models/shared/addtags.ts | 17 +- src/sdk/models/shared/annotations.ts | 17 +- src/sdk/models/shared/apikeydetails.ts | 17 +- src/sdk/models/shared/billingaddon.ts | 14 +- src/sdk/models/shared/clievent.ts | 41 +- .../models/shared/codesampleschemainput.ts | 32 +- src/sdk/models/shared/codesamplesjobstatus.ts | 14 +- src/sdk/models/shared/diagnostic.ts | 17 +- src/sdk/models/shared/featureflag.ts | 17 +- .../models/shared/getnamespacesresponse.ts | 17 +- src/sdk/models/shared/getrevisionsresponse.ts | 17 +- src/sdk/models/shared/gettagsresponse.ts | 17 +- .../githubconfigurecodesamplesrequest.ts | 18 +- .../githubconfigurecodesamplesresponse.ts | 18 +- .../githubconfiguremintlifyreporequest.ts | 18 +- .../shared/githubconfiguretargetrequest.ts | 17 +- .../models/shared/githubgetactionresponse.ts | 17 +- .../githubmissingpublishingsecretsresponse.ts | 19 +- .../shared/githubpublishingprresponse.ts | 32 +- .../models/shared/githubsetupstateresponse.ts | 47 +- .../githubstorepublishingsecretsrequest.ts | 19 +- .../shared/githubtriggeractionrequest.ts | 17 +- src/sdk/models/shared/httpmethod.ts | 14 +- src/sdk/models/shared/index.ts | 2 + src/sdk/models/shared/interactiontype.ts | 14 +- src/sdk/models/shared/manifest.ts | 17 +- src/sdk/models/shared/namespace.ts | 32 +- src/sdk/models/shared/oasinfo.ts | 32 +- src/sdk/models/shared/oasoperation.ts | 17 +- src/sdk/models/shared/oassummary.ts | 17 +- src/sdk/models/shared/organization.ts | 17 +- .../shared/organizationbillingaddonrequest.ts | 17 +- .../organizationbillingaddonresponse.ts | 17 +- src/sdk/models/shared/organizationusage.ts | 17 +- .../shared/organizationusageresponse.ts | 17 +- src/sdk/models/shared/preflightrequest.ts | 17 +- src/sdk/models/shared/preflighttoken.ts | 17 +- src/sdk/models/shared/publishingtoken.ts | 29 +- src/sdk/models/shared/relativediff.ts | 71 ++ src/sdk/models/shared/remotedocument.ts | 17 +- src/sdk/models/shared/remotesource.ts | 17 +- .../remotesourcesubscriptionsettings.ts | 17 +- src/sdk/models/shared/report.ts | 29 +- src/sdk/models/shared/revision.ts | 17 +- .../models/shared/revisioncontentsmetadata.ts | 59 +- src/sdk/models/shared/schemastoreitem.ts | 29 +- src/sdk/models/shared/security.ts | 17 +- src/sdk/models/shared/server.ts | 58 ++ src/sdk/models/shared/shorturl.ts | 17 +- src/sdk/models/shared/ssometadata.ts | 17 +- .../models/shared/suggestitemsrequestbody.ts | 17 +- src/sdk/models/shared/suggestoptsold.ts | 29 +- src/sdk/models/shared/suggestrequestbody.ts | 29 +- src/sdk/models/shared/tag.ts | 17 +- src/sdk/models/shared/targetsdk.ts | 17 +- src/sdk/models/shared/usagesnippet.ts | 17 +- src/sdk/models/shared/usagesnippets.ts | 17 +- src/sdk/models/shared/user.ts | 17 +- src/sdk/models/shared/v2descriptor.ts | 17 +- src/sdk/models/shared/workflowdocument.ts | 32 +- src/sdk/models/shared/workspace.ts | 17 +- .../models/shared/workspaceandorganization.ts | 17 +- src/sdk/models/shared/workspacefeatureflag.ts | 14 +- .../shared/workspacefeatureflagrequest.ts | 17 +- .../shared/workspacefeatureflagresponse.ts | 17 +- .../models/shared/workspaceinviteresponse.ts | 32 +- src/sdk/models/shared/workspacesettings.ts | 17 +- .../models/shared/workspaceteamresponse.ts | 17 +- src/sdk/models/shared/workspacetoken.ts | 17 +- src/sdk/types/blobs.ts | 13 +- src/sdk/types/constdatetime.ts | 4 +- 261 files changed, 1496 insertions(+), 2995 deletions(-) create mode 100644 docs/sdk/models/shared/relativediff.md create mode 100644 docs/sdk/models/shared/server.md delete mode 100644 docs/sdks/speakeasy/README.md create mode 100644 examples/.env.template create mode 100644 examples/README.md create mode 100644 examples/artifactsCreateRemoteSource.example.ts create mode 100644 examples/package-lock.json create mode 100644 examples/package.json create mode 100644 src/sdk/models/shared/relativediff.ts create mode 100644 src/sdk/models/shared/server.ts diff --git a/.gitignore b/.gitignore index 38d2f40f..7a06ba20 100755 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,7 @@ +/examples/node_modules +.env +.env.local +.env.*.local .DS_Store **/.speakeasy/temp/ **/.speakeasy/logs/ diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 0e536b7f..e93e7161 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: 89968bf0-a755-4d50-9acb-d47410010f05 management: - docChecksum: 17226457b23fc2563102eb22d263bc30 + docChecksum: 9c4b2769bf8dd7d16f4dcf78898eb940 docVersion: 0.4.0 - speakeasyVersion: 1.561.0 - generationVersion: 2.628.0 - releaseVersion: 5.0.0-rc.4 - configChecksum: f3d6e491d6a8639407af1874416c9ae0 + speakeasyVersion: 1.651.0 + generationVersion: 2.745.2 + releaseVersion: 5.0.0-rc.5 + configChecksum: 1e97cf001ab77e6a1509541cf3cd9cb9 repoURL: https://github.com/speakeasy-api/speakeasy-client-sdk-typescript.git repoSubDirectory: . installationURL: https://github.com/speakeasy-api/speakeasy-client-sdk-typescript @@ -14,19 +14,19 @@ management: features: typescript: additionalDependencies: 0.1.0 - constsAndDefaults: 0.1.11 - core: 3.21.11 + constsAndDefaults: 0.1.12 + core: 3.26.3 deepObjectParams: 0.1.0 defaultEnabledRetries: 0.1.0 deprecations: 2.81.1 downloadStreams: 0.1.1 enumUnions: 0.1.0 envVarSecurityUsage: 0.1.2 - globalSecurity: 2.82.13 + globalSecurity: 2.82.14 globalSecurityCallbacks: 0.1.0 - globalServerURLs: 2.82.5 + globalServerURLs: 2.83.0 globals: 2.82.2 - mcpServer: 0.9.2 + mcpServer: 0.9.3 nameOverrides: 2.81.2 nullables: 0.1.1 openEnums: 0.1.1 @@ -179,6 +179,7 @@ generatedFiles: - docs/sdk/models/shared/publishingtoken.md - docs/sdk/models/shared/pullrequestmetadata.md - docs/sdk/models/shared/relationship.md + - docs/sdk/models/shared/relativediff.md - docs/sdk/models/shared/remotedocument.md - docs/sdk/models/shared/remotesource.md - docs/sdk/models/shared/remotesourcesubscriptionsettings.md @@ -190,6 +191,7 @@ generatedFiles: - docs/sdk/models/shared/schemastoreitem.md - docs/sdk/models/shared/secrets.md - docs/sdk/models/shared/security.md + - docs/sdk/models/shared/server.md - docs/sdk/models/shared/shorturl.md - docs/sdk/models/shared/ssometadata.md - docs/sdk/models/shared/suggestiontype.md @@ -226,11 +228,14 @@ generatedFiles: - docs/sdks/reports/README.md - docs/sdks/schemastore/README.md - docs/sdks/shorturls/README.md - - docs/sdks/speakeasy/README.md - docs/sdks/subscriptions/README.md - docs/sdks/suggest/README.md - docs/sdks/workspaces/README.md - eslint.config.mjs + - examples/.env.template + - examples/README.md + - examples/artifactsCreateRemoteSource.example.ts + - examples/package.json - jsr.json - package.json - src/core.ts @@ -605,6 +610,7 @@ generatedFiles: - src/sdk/models/shared/preflightrequest.ts - src/sdk/models/shared/preflighttoken.ts - src/sdk/models/shared/publishingtoken.ts + - src/sdk/models/shared/relativediff.ts - src/sdk/models/shared/remotedocument.ts - src/sdk/models/shared/remotesource.ts - src/sdk/models/shared/remotesourcesubscriptionsettings.ts @@ -613,6 +619,7 @@ generatedFiles: - src/sdk/models/shared/revisioncontentsmetadata.ts - src/sdk/models/shared/schemastoreitem.ts - src/sdk/models/shared/security.ts + - src/sdk/models/shared/server.ts - src/sdk/models/shared/shorturl.ts - src/sdk/models/shared/ssometadata.ts - src/sdk/models/shared/suggestitemsrequestbody.ts @@ -1335,3 +1342,7 @@ examples: application/json: {"message": "", "status_code": 436496} examplesVersion: 1.0.2 generatedTests: {} +releaseNotes: | + ## Typescript SDK Changes Detected: + * `speakeasy.artifacts.getNamespaces()`: `response.items.[].latestRevisionMetadata` **Changed** + * `speakeasy.artifacts.getRevisions()`: `response.items.[].contentsMetadata` **Changed** diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 3ef192c4..d13ecff8 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,28 +1,28 @@ -speakeasyVersion: 1.561.0 +speakeasyVersion: 1.651.0 sources: my-source: sourceNamespace: my-source - sourceRevisionDigest: sha256:2e5dc78239617b9501f2028df534aa4601c61396c89a582390d75a797fc228cc - sourceBlobDigest: sha256:0442ef7698d8979dd825b3eab0ab868ac86580f4cffcd3e0dff7afdd6191e6d9 + sourceRevisionDigest: sha256:01a202f9b2f5c54bbf985d5ef6db20a01d6ab1cc7f9112274d2eca38e8daf24f + sourceBlobDigest: sha256:180487180cb415c9db8edd2bd57b7b893e7b0d592afd8337df061d61a2e6343a tags: - latest - - speakeasy-sdk-regen-1746577270 + - speakeasy-sdk-regen-1753835013 - 0.4.0 targets: speakeasy-client-sdk-typescript: source: my-source sourceNamespace: my-source - sourceRevisionDigest: sha256:2e5dc78239617b9501f2028df534aa4601c61396c89a582390d75a797fc228cc - sourceBlobDigest: sha256:0442ef7698d8979dd825b3eab0ab868ac86580f4cffcd3e0dff7afdd6191e6d9 + sourceRevisionDigest: sha256:01a202f9b2f5c54bbf985d5ef6db20a01d6ab1cc7f9112274d2eca38e8daf24f + sourceBlobDigest: sha256:180487180cb415c9db8edd2bd57b7b893e7b0d592afd8337df061d61a2e6343a codeSamplesNamespace: my-source-typescript-code-samples - codeSamplesRevisionDigest: sha256:65717f579dccb319b073cb22e553e23bd3419cf420967387c00d148c041f5dc1 + codeSamplesRevisionDigest: sha256:c02ea3be935eb6739760db5b35c48b6dc9b862ca2374ffa42c4c9b21a4ec48ce workflow: workflowVersion: 1.0.0 speakeasyVersion: latest sources: my-source: inputs: - - location: https://speakeasy.com/openapi.yaml + - location: https://spec.speakeasy.com/speakeasy-self/speakeasy-self/speakeasy-api registry: location: registry.speakeasyapi.dev/speakeasy-self/speakeasy-self/my-source targets: diff --git a/README.md b/README.md index e34905c9..cbe6c916 100644 --- a/README.md +++ b/README.md @@ -73,12 +73,9 @@ bun add @tanstack/react-query react react-dom ### Yarn ```bash -yarn add @speakeasy-api/speakeasy-client-sdk-typescript zod +yarn add @speakeasy-api/speakeasy-client-sdk-typescript # Install optional peer dependencies if you plan to use React hooks yarn add @tanstack/react-query react react-dom - -# Note that Yarn does not install peer dependencies automatically. You will need -# to install zod as shown above. ``` @@ -287,7 +284,6 @@ run(); * [create](docs/sdks/shorturls/README.md#create) - Shorten a URL. - ### [subscriptions](docs/sdks/subscriptions/README.md) * [activateSubscriptionNamespace](docs/sdks/subscriptions/README.md#activatesubscriptionnamespace) - Activate an ignored namespace for a subscription @@ -379,7 +375,7 @@ run(); ### Error Classes **Primary errors:** * [`SpeakeasyError`](./src/sdk/models/errors/speakeasyerror.ts): The base class for HTTP error responses. - * [`ErrorT`](docs/sdk/models/errors/errort.md): The `Status` type defines a logical error model. * + * [`ErrorT`](./src/sdk/models/errors/errort.ts): The `Status` type defines a logical error model. *
Less common errors (6) @@ -503,7 +499,7 @@ httpClient.addHook("requestError", (error, request) => { console.groupEnd(); }); -const sdk = new Speakeasy({ httpClient }); +const sdk = new Speakeasy({ httpClient: httpClient }); ``` diff --git a/RELEASES.md b/RELEASES.md index 28501155..8736cb59 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1706,4 +1706,14 @@ Based on: ### Generated - [typescript v5.0.0-rc.4] . ### Releases -- [NPM v5.0.0-rc.4] https://www.npmjs.com/package/@speakeasy-api/speakeasy-client-sdk-typescript/v/5.0.0-rc.4 - . \ No newline at end of file +- [NPM v5.0.0-rc.4] https://www.npmjs.com/package/@speakeasy-api/speakeasy-client-sdk-typescript/v/5.0.0-rc.4 - . + +## 2025-11-10 00:22:37 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.651.0 (2.745.2) https://github.com/speakeasy-api/speakeasy +### Generated +- [typescript v5.0.0-rc.5] . +### Releases +- [NPM v5.0.0-rc.5] https://www.npmjs.com/package/@speakeasy-api/speakeasy-client-sdk-typescript/v/5.0.0-rc.5 - . \ No newline at end of file diff --git a/RUNTIMES.md b/RUNTIMES.md index db7ea942..27731c3b 100644 --- a/RUNTIMES.md +++ b/RUNTIMES.md @@ -2,9 +2,9 @@ This SDK is intended to be used in JavaScript runtimes that support ECMAScript 2020 or newer. The SDK uses the following features: -* [Web Fetch API][web-fetch] -* [Web Streams API][web-streams] and in particular `ReadableStream` -* [Async iterables][async-iter] using `Symbol.asyncIterator` +- [Web Fetch API][web-fetch] +- [Web Streams API][web-streams] and in particular `ReadableStream` +- [Async iterables][async-iter] using `Symbol.asyncIterator` [web-fetch]: https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API [web-streams]: https://developer.mozilla.org/en-US/docs/Web/API/Streams_API @@ -25,7 +25,7 @@ Runtime environments that are explicitly supported are: The following `tsconfig.json` options are recommended for projects using this SDK in order to get static type support for features like async iterables, -streams and `fetch`-related APIs ([`for await...of`][for-await-of], +streams and `fetch`-related APIs ([`for await...of`][for-await-of], [`AbortSignal`][abort-signal], [`Request`][request], [`Response`][response] and so on): @@ -38,11 +38,11 @@ so on): { "compilerOptions": { "target": "es2020", // or higher - "lib": ["es2020", "dom", "dom.iterable"], + "lib": ["es2020", "dom", "dom.iterable"] } } ``` While `target` can be set to older ECMAScript versions, it may result in extra, unnecessary compatibility code being generated if you are not targeting old -runtimes. \ No newline at end of file +runtimes. diff --git a/docs/sdk/models/operations/createworkspacetokenrequest.md b/docs/sdk/models/operations/createworkspacetokenrequest.md index 2c54d002..229d233c 100644 --- a/docs/sdk/models/operations/createworkspacetokenrequest.md +++ b/docs/sdk/models/operations/createworkspacetokenrequest.md @@ -5,7 +5,16 @@ ```typescript import { CreateWorkspaceTokenRequest } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; -let value: CreateWorkspaceTokenRequest = {}; +let value: CreateWorkspaceTokenRequest = { + workspaceToken: { + alg: "", + createdAt: new Date("2023-10-18T04:12:26.286Z"), + id: "", + key: "", + name: "", + workspaceId: "", + }, +}; ``` ## Fields diff --git a/docs/sdk/models/operations/postworkspaceeventsrequest.md b/docs/sdk/models/operations/postworkspaceeventsrequest.md index 212d82e1..744b2e0e 100644 --- a/docs/sdk/models/operations/postworkspaceeventsrequest.md +++ b/docs/sdk/models/operations/postworkspaceeventsrequest.md @@ -5,7 +5,21 @@ ```typescript import { PostWorkspaceEventsRequest } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; -let value: PostWorkspaceEventsRequest = {}; +let value: PostWorkspaceEventsRequest = { + requestBody: [ + { + createdAt: new Date("2024-04-27T01:44:18.572Z"), + executionId: "", + id: "", + interactionType: "TOMBSTONE", + localStartedAt: new Date("2024-11-09T15:10:21.242Z"), + speakeasyApiKeyName: "", + speakeasyVersion: "", + success: false, + workspaceId: "", + }, + ], +}; ``` ## Fields diff --git a/docs/sdk/models/operations/suggestrequest.md b/docs/sdk/models/operations/suggestrequest.md index bd0bc300..a2026cef 100644 --- a/docs/sdk/models/operations/suggestrequest.md +++ b/docs/sdk/models/operations/suggestrequest.md @@ -7,6 +7,29 @@ import { SuggestRequest } from "@speakeasy-api/speakeasy-client-sdk-typescript/s let value: SuggestRequest = { xSessionId: "", + suggestRequestBody: { + diagnostics: [ + { + message: "", + path: [ + "/lib", + "/usr/X11R6", + ], + type: "", + }, + ], + oasSummary: { + info: { + description: "yowza huge mutate anguished wring", + license: {}, + summary: "", + title: "", + version: "", + }, + operations: [], + }, + suggestionType: "method-names", + }, }; ``` diff --git a/docs/sdk/models/operations/updateworkspacedetailsrequest.md b/docs/sdk/models/operations/updateworkspacedetailsrequest.md index ea65c54f..446cc558 100644 --- a/docs/sdk/models/operations/updateworkspacedetailsrequest.md +++ b/docs/sdk/models/operations/updateworkspacedetailsrequest.md @@ -5,7 +5,17 @@ ```typescript import { UpdateWorkspaceDetailsRequest } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; -let value: UpdateWorkspaceDetailsRequest = {}; +let value: UpdateWorkspaceDetailsRequest = { + workspace: { + createdAt: new Date("2023-11-16T00:00:08.537Z"), + id: "", + name: "", + organizationId: "", + slug: "", + updatedAt: new Date("2024-06-14T01:29:49.528Z"), + verified: true, + }, +}; ``` ## Fields diff --git a/docs/sdk/models/operations/updateworkspacesettingsrequest.md b/docs/sdk/models/operations/updateworkspacesettingsrequest.md index 9fb943fb..4ec68223 100644 --- a/docs/sdk/models/operations/updateworkspacesettingsrequest.md +++ b/docs/sdk/models/operations/updateworkspacesettingsrequest.md @@ -5,7 +5,14 @@ ```typescript import { UpdateWorkspaceSettingsRequest } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; -let value: UpdateWorkspaceSettingsRequest = {}; +let value: UpdateWorkspaceSettingsRequest = { + workspaceSettings: { + createdAt: new Date("2024-01-11T14:49:22.396Z"), + updatedAt: new Date("2023-02-11T06:08:15.713Z"), + webhookUrl: "https://damaged-role.org", + workspaceId: "", + }, +}; ``` ## Fields diff --git a/docs/sdk/models/shared/accounttype.md b/docs/sdk/models/shared/accounttype.md index 85ee68ec..c021b6d5 100644 --- a/docs/sdk/models/shared/accounttype.md +++ b/docs/sdk/models/shared/accounttype.md @@ -13,5 +13,5 @@ let value: AccountType = "enterprise"; This is an open enum. Unrecognized values will be captured as the `Unrecognized` branded type. ```typescript -"free" | "scale-up" | "business" | "enterprise" | Unrecognized +"free" | "scale-up" | "business" | "oss" | "enterprise" | Unrecognized ``` \ No newline at end of file diff --git a/docs/sdk/models/shared/apikeydetails.md b/docs/sdk/models/shared/apikeydetails.md index 6592b670..1e80d986 100644 --- a/docs/sdk/models/shared/apikeydetails.md +++ b/docs/sdk/models/shared/apikeydetails.md @@ -6,7 +6,7 @@ import { ApiKeyDetails } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/shared"; let value: ApiKeyDetails = { - accountTypeV2: "enterprise", + accountTypeV2: "oss", billingAddOns: [ "snippet_ai", ], diff --git a/docs/sdk/models/shared/relativediff.md b/docs/sdk/models/shared/relativediff.md new file mode 100644 index 00000000..f3cb3a76 --- /dev/null +++ b/docs/sdk/models/shared/relativediff.md @@ -0,0 +1,18 @@ +# RelativeDiff + +A relative diff between the current revision and the previous revision. + +## Example Usage + +```typescript +import { RelativeDiff } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/shared"; + +let value: RelativeDiff = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| `addedLines` | *number* | :heavy_minus_sign: | The number of lines added against the previous revision | +| `removedLines` | *number* | :heavy_minus_sign: | The number of lines removed against the previous revision | \ No newline at end of file diff --git a/docs/sdk/models/shared/revisioncontentsmetadata.md b/docs/sdk/models/shared/revisioncontentsmetadata.md index 42449ba1..503ffe1b 100644 --- a/docs/sdk/models/shared/revisioncontentsmetadata.md +++ b/docs/sdk/models/shared/revisioncontentsmetadata.md @@ -18,10 +18,13 @@ let value: RevisionContentsMetadata = { "", ], revisionDigest: "", - tags: [ - "", - "", + serverUrls: [ + { + description: "boo er yippee rudely edible simplistic impressive mortally", + url: "https://primary-heating.org/", + }, ], + tags: [], title: "", type: "OPENAPI_OVERLAY", version: "", @@ -40,7 +43,9 @@ let value: RevisionContentsMetadata = { | `namespace` | *string* | :heavy_check_mark: | The fully qualified namespace | | `numOverlayActions` | *number* | :heavy_check_mark: | The number of overlay actions in the OAS. Will be 0 if the OAS is not an overlay. | | `operationIds` | *string*[] | :heavy_check_mark: | The operation IDs contained in the OAS. Will be empty if the OAS is an overlay. | +| `relativeDiff` | [shared.RelativeDiff](../../../sdk/models/shared/relativediff.md) | :heavy_minus_sign: | A relative diff between the current revision and the previous revision. | | `revisionDigest` | *string* | :heavy_check_mark: | The digest of the parent bundle | +| `serverUrls` | [shared.Server](../../../sdk/models/shared/server.md)[] | :heavy_check_mark: | The servers contained in the OAS. Will be empty if the OAS is an overlay. | | `tags` | *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` | [shared.RevisionContentsMetadataType](../../../sdk/models/shared/revisioncontentsmetadatatype.md) | :heavy_check_mark: | N/A | diff --git a/docs/sdk/models/shared/server.md b/docs/sdk/models/shared/server.md new file mode 100644 index 00000000..6ff075fc --- /dev/null +++ b/docs/sdk/models/shared/server.md @@ -0,0 +1,22 @@ +# Server + +A server as defined in an OpenAPI document + +## Example Usage + +```typescript +import { Server } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/shared"; + +let value: Server = { + description: "too slip knitting", + url: "https://stunning-topsail.biz", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------- | --------------------------------------- | --------------------------------------- | --------------------------------------- | +| `description` | *string* | :heavy_check_mark: | N/A | +| `id` | *string* | :heavy_minus_sign: | The x-speakeasy-server-id of the server | +| `url` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/shared/workspaceandorganization.md b/docs/sdk/models/shared/workspaceandorganization.md index 5967727e..1cb4bc71 100644 --- a/docs/sdk/models/shared/workspaceandorganization.md +++ b/docs/sdk/models/shared/workspaceandorganization.md @@ -9,7 +9,7 @@ import { WorkspaceAndOrganization } from "@speakeasy-api/speakeasy-client-sdk-ty let value: WorkspaceAndOrganization = { organization: { - accountType: "business", + accountType: "oss", createdAt: new Date("2023-06-23T09:04:56.583Z"), id: "", name: "", diff --git a/docs/sdks/artifacts/README.md b/docs/sdks/artifacts/README.md index bed64e79..297ed3d0 100644 --- a/docs/sdks/artifacts/README.md +++ b/docs/sdks/artifacts/README.md @@ -25,6 +25,7 @@ Configure a new remote source ### Example Usage + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; @@ -115,6 +116,7 @@ Get blob for a particular digest ### Example Usage + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; @@ -226,6 +228,7 @@ Get manifest for a particular reference ### Example Usage + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; @@ -337,6 +340,7 @@ Each namespace contains many revisions. ### Example Usage + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; @@ -434,6 +438,7 @@ import { ### Example Usage + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; @@ -537,6 +542,7 @@ import { ### Example Usage + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; @@ -642,6 +648,7 @@ Get remote sources attached to a particular namespace ### Example Usage + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; @@ -747,6 +754,7 @@ Add tags to an existing revision ### Example Usage + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; @@ -841,6 +849,7 @@ Get access token for communicating with OCI distribution endpoints ### Example Usage + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; @@ -931,6 +940,7 @@ Set whether a namespace is archived ### Example Usage + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; @@ -1025,6 +1035,7 @@ Set visibility of a namespace with an existing metadata entry ### Example Usage + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; diff --git a/docs/sdks/auth/README.md b/docs/sdks/auth/README.md index 98c87021..8967dd60 100644 --- a/docs/sdks/auth/README.md +++ b/docs/sdks/auth/README.md @@ -18,6 +18,7 @@ Checks if generation is permitted for a particular run of the CLI ### Example Usage + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; @@ -118,6 +119,7 @@ Get or refresh an access token for the current workspace. ### Example Usage + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; @@ -215,6 +217,7 @@ Get information about the current user. ### Example Usage + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; @@ -314,6 +317,7 @@ Validate the current api key. ### Example Usage + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; diff --git a/docs/sdks/codesamples/README.md b/docs/sdks/codesamples/README.md index 1c2c3cd2..0637e61f 100644 --- a/docs/sdks/codesamples/README.md +++ b/docs/sdks/codesamples/README.md @@ -18,6 +18,7 @@ This endpoint generates Code Sample previews from a file and configuration param ### Example Usage + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; import { openAsBlob } from "node:fs"; @@ -116,6 +117,7 @@ This endpoint generates Code Sample previews from a file and configuration param ### Example Usage + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; import { openAsBlob } from "node:fs"; @@ -214,6 +216,7 @@ Retrieve usage snippets from an OpenAPI document stored in the registry. Support ### Example Usage + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; @@ -357,6 +360,7 @@ Poll for the result of an asynchronous Code Sample preview generation. ### Example Usage + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; diff --git a/docs/sdks/events/README.md b/docs/sdks/events/README.md index 796a805a..d702c632 100644 --- a/docs/sdks/events/README.md +++ b/docs/sdks/events/README.md @@ -19,6 +19,7 @@ Load recent events for a particular workspace ### Example Usage + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; @@ -126,6 +127,7 @@ Load targets for a particular workspace ### Example Usage + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; @@ -227,6 +229,7 @@ Load targets for a particular workspace ### Example Usage + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; @@ -330,6 +333,7 @@ Sends an array of events to be stored for a particular workspace. ### Example Usage + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; @@ -450,6 +454,7 @@ Search events for a particular workspace by any field ### Example Usage + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; diff --git a/docs/sdks/github/README.md b/docs/sdks/github/README.md index 0af56afd..55d3e275 100644 --- a/docs/sdks/github/README.md +++ b/docs/sdks/github/README.md @@ -23,6 +23,7 @@ REST APIs for managing the github integration ### Example Usage + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; @@ -128,6 +129,7 @@ import { ### Example Usage + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; @@ -235,6 +237,7 @@ import { ### Example Usage + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; @@ -338,6 +341,7 @@ import { ### Example Usage + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; @@ -434,6 +438,7 @@ import { ### Example Usage + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; @@ -536,6 +541,7 @@ import { ### Example Usage + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; @@ -630,6 +636,7 @@ import { ### Example Usage + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; @@ -735,6 +742,7 @@ import { ### Example Usage + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; @@ -842,6 +850,7 @@ import { ### Example Usage + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; @@ -930,6 +939,7 @@ import { ### Example Usage + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; @@ -1022,6 +1032,7 @@ import { ### Example Usage + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; diff --git a/docs/sdks/organizations/README.md b/docs/sdks/organizations/README.md index 84fbd241..2a8a9518 100644 --- a/docs/sdks/organizations/README.md +++ b/docs/sdks/organizations/README.md @@ -22,6 +22,7 @@ Creates an organization ### Example Usage + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; @@ -130,6 +131,7 @@ Create billing add ons ### Example Usage + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; @@ -228,6 +230,7 @@ Creates a free trial for an organization ### Example Usage + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; @@ -317,6 +320,7 @@ Delete billing add ons ### Example Usage + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; @@ -411,6 +415,7 @@ Get information about a particular organization. ### Example Usage + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; @@ -516,6 +521,7 @@ Returns a list of organizations a user has access too ### Example Usage + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; @@ -615,6 +621,7 @@ Get billing add ons ### Example Usage + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; @@ -714,6 +721,7 @@ Returns a billing usage summary by target languages for a particular organizatio ### Example Usage + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; diff --git a/docs/sdks/publishingtokens/README.md b/docs/sdks/publishingtokens/README.md index 384ced85..91afc520 100644 --- a/docs/sdks/publishingtokens/README.md +++ b/docs/sdks/publishingtokens/README.md @@ -19,6 +19,7 @@ Creates a publishing token for the current workspace ### Example Usage + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; @@ -109,6 +110,7 @@ Delete a particular publishing token. ### Example Usage + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; @@ -203,6 +205,7 @@ Get information about a particular publishing token. ### Example Usage + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; @@ -308,6 +311,7 @@ Returns a publishing token for the current workspace ### Example Usage + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; @@ -407,6 +411,7 @@ Get information about a particular publishing token. ### Example Usage + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; @@ -512,6 +517,7 @@ Get information about a particular publishing token target. ### Example Usage + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; @@ -617,6 +623,7 @@ Updates the validity period of a particular publishing token. ### Example Usage + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; diff --git a/docs/sdks/reports/README.md b/docs/sdks/reports/README.md index c5f8f775..a875db9c 100644 --- a/docs/sdks/reports/README.md +++ b/docs/sdks/reports/README.md @@ -17,6 +17,7 @@ Get the signed access url for the change reports for a particular document. ### Example Usage + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; @@ -121,6 +122,7 @@ Get the signed access url for the linting reports for a particular document. ### Example Usage + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; @@ -225,6 +227,7 @@ Upload a report. ### Example Usage + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; import { openAsBlob } from "node:fs"; diff --git a/docs/sdks/schemastore/README.md b/docs/sdks/schemastore/README.md index fedd3abd..e663ca47 100644 --- a/docs/sdks/schemastore/README.md +++ b/docs/sdks/schemastore/README.md @@ -13,6 +13,7 @@ Create a schema in the schema store ### Example Usage + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; diff --git a/docs/sdks/shorturls/README.md b/docs/sdks/shorturls/README.md index 1d159495..964de8db 100644 --- a/docs/sdks/shorturls/README.md +++ b/docs/sdks/shorturls/README.md @@ -15,6 +15,7 @@ Shorten a URL. ### Example Usage + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; diff --git a/docs/sdks/speakeasy/README.md b/docs/sdks/speakeasy/README.md deleted file mode 100644 index 2c9348bc..00000000 --- a/docs/sdks/speakeasy/README.md +++ /dev/null @@ -1,10 +0,0 @@ -# Speakeasy SDK - -## Overview - -Speakeasy API: The Subscriptions API manages subscriptions for CLI and registry events - -The Speakeasy Platform Documentation - - -### Available Operations diff --git a/docs/sdks/subscriptions/README.md b/docs/sdks/subscriptions/README.md index 295d61e0..7d533a54 100644 --- a/docs/sdks/subscriptions/README.md +++ b/docs/sdks/subscriptions/README.md @@ -16,6 +16,7 @@ Activate an ignored namespace for a subscription ### Example Usage + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; @@ -112,6 +113,7 @@ Ignored a namespace for a subscription ### Example Usage + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; diff --git a/docs/sdks/suggest/README.md b/docs/sdks/suggest/README.md index 7dadb19b..9bb24c61 100644 --- a/docs/sdks/suggest/README.md +++ b/docs/sdks/suggest/README.md @@ -18,6 +18,7 @@ Get suggestions from an LLM model for improving an OpenAPI document. ### Example Usage + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; @@ -177,6 +178,7 @@ Generate generic suggestions for a list of items. ### Example Usage + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; @@ -276,6 +278,7 @@ Get suggestions from an LLM model for improving an OpenAPI document. ### Example Usage + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; import { openAsBlob } from "node:fs"; @@ -377,6 +380,7 @@ Get suggestions from an LLM model for improving an OpenAPI document stored in th ### Example Usage + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; diff --git a/docs/sdks/workspaces/README.md b/docs/sdks/workspaces/README.md index e7f72ef3..1871499c 100644 --- a/docs/sdks/workspaces/README.md +++ b/docs/sdks/workspaces/README.md @@ -29,6 +29,7 @@ Creates a workspace ### Example Usage + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; @@ -135,6 +136,7 @@ Create a token for a particular workspace ### Example Usage + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; @@ -245,6 +247,7 @@ Delete a token for a particular workspace ### Example Usage + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; @@ -341,6 +344,7 @@ Get information about a particular workspace by context. ### Example Usage + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; @@ -440,6 +444,7 @@ Returns a list of workspaces a user has access too ### Example Usage + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; @@ -539,6 +544,7 @@ Get information about a particular workspace. ### Example Usage + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; @@ -642,6 +648,7 @@ Get workspace feature flags ### Example Usage + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; @@ -745,6 +752,7 @@ Get settings about a particular workspace. ### Example Usage + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; @@ -848,6 +856,7 @@ Get team members for a particular workspace ### Example Usage + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; @@ -951,6 +960,7 @@ Get tokens for a particular workspace ### Example Usage + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; @@ -1054,6 +1064,7 @@ Grant a user access to a particular workspace ### Example Usage + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; @@ -1150,6 +1161,7 @@ Revoke a user's access to a particular workspace ### Example Usage + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; @@ -1246,6 +1258,7 @@ Set workspace feature flags ### Example Usage + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; @@ -1340,6 +1353,7 @@ Update information about a particular workspace. ### Example Usage + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; @@ -1452,6 +1466,7 @@ Update settings about a particular workspace. ### Example Usage + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; diff --git a/examples/.env.template b/examples/.env.template new file mode 100644 index 00000000..642bf99c --- /dev/null +++ b/examples/.env.template @@ -0,0 +1,3 @@ +# @speakeasy-api/speakeasy-client-sdk-typescript SDK Environment Variables +# Copy this file to .env and fill in your actual values +# DO NOT commit the .env file to version control diff --git a/examples/README.md b/examples/README.md new file mode 100644 index 00000000..fbc9789f --- /dev/null +++ b/examples/README.md @@ -0,0 +1,31 @@ +# @speakeasy-api/speakeasy-client-sdk-typescript Examples + +This directory contains example scripts demonstrating how to use the @speakeasy-api/speakeasy-client-sdk-typescript SDK. + +## Prerequisites + +- Node.js (v18 or higher) +- npm + +## Setup + +1. Copy `.env.template` to `.env`: + ```bash + cp .env.template .env + ``` + +2. Edit `.env` and add your actual credentials + +## Running the Examples + +To run an example file from the examples directory: + +```bash +npm run build && npx tsx example.ts +``` + +## Creating new examples + +Duplicate an existing example file, they won't be overwritten by the generation process. + + diff --git a/examples/artifactsCreateRemoteSource.example.ts b/examples/artifactsCreateRemoteSource.example.ts new file mode 100644 index 00000000..ae5210da --- /dev/null +++ b/examples/artifactsCreateRemoteSource.example.ts @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import dotenv from "dotenv"; +dotenv.config(); +/** + * Example usage of the @speakeasy-api/speakeasy-client-sdk-typescript SDK + * + * To run this example from the examples directory: + * npm run build && npx tsx artifactsCreateRemoteSource.example.ts + */ + +import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; + +const speakeasy = new Speakeasy({ + security: { + apiKey: "", + }, +}); + +async function main() { + await speakeasy.artifacts.createRemoteSource(); +} + +main().catch(console.error); diff --git a/examples/package-lock.json b/examples/package-lock.json new file mode 100644 index 00000000..28f6bae5 --- /dev/null +++ b/examples/package-lock.json @@ -0,0 +1,641 @@ +{ + "name": "@speakeasy-api/speakeasy-client-sdk-typescript-examples", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "@speakeasy-api/speakeasy-client-sdk-typescript-examples", + "version": "1.0.0", + "dependencies": { + "@speakeasy-api/speakeasy-client-sdk-typescript": "file:.." + }, + "devDependencies": { + "@types/node": "^20.0.0", + "dotenv": "^16.4.5", + "tsx": "^4.19.2" + } + }, + "..": { + "name": "@speakeasy-api/speakeasy-client-sdk-typescript", + "version": "5.0.0-rc.5", + "dependencies": { + "zod": "^3.25.0 || ^4.0.0" + }, + "bin": { + "mcp": "bin/mcp-server.js" + }, + "devDependencies": { + "@eslint/js": "^9.19.0", + "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0", + "@stricli/core": "^1.1.1", + "@tanstack/react-query": "^5.61.4", + "@types/express": "^4.17.21", + "@types/react": "^18.3.12", + "bun": "1.2.17", + "bun-types": "1.2.17", + "eslint": "^9.19.0", + "express": "^4.21.2", + "globals": "^15.14.0", + "typescript": "~5.8.3", + "typescript-eslint": "^8.26.0" + }, + "peerDependencies": { + "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0", + "@tanstack/react-query": "^5", + "react": "^18 || ^19", + "react-dom": "^18 || ^19" + }, + "peerDependenciesMeta": { + "@modelcontextprotocol/sdk": { + "optional": true + }, + "@tanstack/react-query": { + "optional": true + }, + "react": { + "optional": true + }, + "react-dom": { + "optional": true + } + } + }, + "node_modules/@esbuild/aix-ppc64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.12.tgz", + "integrity": "sha512-Hhmwd6CInZ3dwpuGTF8fJG6yoWmsToE+vYgD4nytZVxcu1ulHpUQRAB1UJ8+N1Am3Mz4+xOByoQoSZf4D+CpkA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.12.tgz", + "integrity": "sha512-VJ+sKvNA/GE7Ccacc9Cha7bpS8nyzVv0jdVgwNDaR4gDMC/2TTRc33Ip8qrNYUcpkOHUT5OZ0bUcNNVZQ9RLlg==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.12.tgz", + "integrity": "sha512-6AAmLG7zwD1Z159jCKPvAxZd4y/VTO0VkprYy+3N2FtJ8+BQWFXU+OxARIwA46c5tdD9SsKGZ/1ocqBS/gAKHg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.12.tgz", + "integrity": "sha512-5jbb+2hhDHx5phYR2By8GTWEzn6I9UqR11Kwf22iKbNpYrsmRB18aX/9ivc5cabcUiAT/wM+YIZ6SG9QO6a8kg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.12.tgz", + "integrity": "sha512-N3zl+lxHCifgIlcMUP5016ESkeQjLj/959RxxNYIthIg+CQHInujFuXeWbWMgnTo4cp5XVHqFPmpyu9J65C1Yg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.12.tgz", + "integrity": "sha512-HQ9ka4Kx21qHXwtlTUVbKJOAnmG1ipXhdWTmNXiPzPfWKpXqASVcWdnf2bnL73wgjNrFXAa3yYvBSd9pzfEIpA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.12.tgz", + "integrity": "sha512-gA0Bx759+7Jve03K1S0vkOu5Lg/85dou3EseOGUes8flVOGxbhDDh/iZaoek11Y8mtyKPGF3vP8XhnkDEAmzeg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.12.tgz", + "integrity": "sha512-TGbO26Yw2xsHzxtbVFGEXBFH0FRAP7gtcPE7P5yP7wGy7cXK2oO7RyOhL5NLiqTlBh47XhmIUXuGciXEqYFfBQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.12.tgz", + "integrity": "sha512-lPDGyC1JPDou8kGcywY0YILzWlhhnRjdof3UlcoqYmS9El818LLfJJc3PXXgZHrHCAKs/Z2SeZtDJr5MrkxtOw==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.12.tgz", + "integrity": "sha512-8bwX7a8FghIgrupcxb4aUmYDLp8pX06rGh5HqDT7bB+8Rdells6mHvrFHHW2JAOPZUbnjUpKTLg6ECyzvas2AQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ia32": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.12.tgz", + "integrity": "sha512-0y9KrdVnbMM2/vG8KfU0byhUN+EFCny9+8g202gYqSSVMonbsCfLjUO+rCci7pM0WBEtz+oK/PIwHkzxkyharA==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-loong64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.12.tgz", + "integrity": "sha512-h///Lr5a9rib/v1GGqXVGzjL4TMvVTv+s1DPoxQdz7l/AYv6LDSxdIwzxkrPW438oUXiDtwM10o9PmwS/6Z0Ng==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-mips64el": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.12.tgz", + "integrity": "sha512-iyRrM1Pzy9GFMDLsXn1iHUm18nhKnNMWscjmp4+hpafcZjrr2WbT//d20xaGljXDBYHqRcl8HnxbX6uaA/eGVw==", + "cpu": [ + "mips64el" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ppc64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.12.tgz", + "integrity": "sha512-9meM/lRXxMi5PSUqEXRCtVjEZBGwB7P/D4yT8UG/mwIdze2aV4Vo6U5gD3+RsoHXKkHCfSxZKzmDssVlRj1QQA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-riscv64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.12.tgz", + "integrity": "sha512-Zr7KR4hgKUpWAwb1f3o5ygT04MzqVrGEGXGLnj15YQDJErYu/BGg+wmFlIDOdJp0PmB0lLvxFIOXZgFRrdjR0w==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-s390x": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.12.tgz", + "integrity": "sha512-MsKncOcgTNvdtiISc/jZs/Zf8d0cl/t3gYWX8J9ubBnVOwlk65UIEEvgBORTiljloIWnBzLs4qhzPkJcitIzIg==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.12.tgz", + "integrity": "sha512-uqZMTLr/zR/ed4jIGnwSLkaHmPjOjJvnm6TVVitAa08SLS9Z0VM8wIRx7gWbJB5/J54YuIMInDquWyYvQLZkgw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.12.tgz", + "integrity": "sha512-xXwcTq4GhRM7J9A8Gv5boanHhRa/Q9KLVmcyXHCTaM4wKfIpWkdXiMog/KsnxzJ0A1+nD+zoecuzqPmCRyBGjg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.12.tgz", + "integrity": "sha512-Ld5pTlzPy3YwGec4OuHh1aCVCRvOXdH8DgRjfDy/oumVovmuSzWfnSJg+VtakB9Cm0gxNO9BzWkj6mtO1FMXkQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.12.tgz", + "integrity": "sha512-fF96T6KsBo/pkQI950FARU9apGNTSlZGsv1jZBAlcLL1MLjLNIWPBkj5NlSz8aAzYKg+eNqknrUJ24QBybeR5A==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.12.tgz", + "integrity": "sha512-MZyXUkZHjQxUvzK7rN8DJ3SRmrVrke8ZyRusHlP+kuwqTcfWLyqMOE3sScPPyeIXN/mDJIfGXvcMqCgYKekoQw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openharmony-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.25.12.tgz", + "integrity": "sha512-rm0YWsqUSRrjncSXGA7Zv78Nbnw4XL6/dzr20cyrQf7ZmRcsovpcRBdhD43Nuk3y7XIoW2OxMVvwuRvk9XdASg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/sunos-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.12.tgz", + "integrity": "sha512-3wGSCDyuTHQUzt0nV7bocDy72r2lI33QL3gkDNGkod22EsYl04sMf0qLb8luNKTOmgF/eDEDP5BFNwoBKH441w==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.12.tgz", + "integrity": "sha512-rMmLrur64A7+DKlnSuwqUdRKyd3UE7oPJZmnljqEptesKM8wx9J8gx5u0+9Pq0fQQW8vqeKebwNXdfOyP+8Bsg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-ia32": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.12.tgz", + "integrity": "sha512-HkqnmmBoCbCwxUKKNPBixiWDGCpQGVsrQfJoVGYLPT41XWF8lHuE5N6WhVia2n4o5QK5M4tYr21827fNhi4byQ==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.12.tgz", + "integrity": "sha512-alJC0uCZpTFrSL0CCDjcgleBXPnCrEAhTBILpeAp7M/OFgoqtAetfBzX0xM00MUsVVPpVjlPuMbREqnZCXaTnA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@speakeasy-api/speakeasy-client-sdk-typescript": { + "resolved": "..", + "link": true + }, + "node_modules/@types/node": { + "version": "20.19.24", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.19.24.tgz", + "integrity": "sha512-FE5u0ezmi6y9OZEzlJfg37mqqf6ZDSF2V/NLjUyGrR9uTZ7Sb9F7bLNZ03S4XVUNRWGA7Ck4c1kK+YnuWjl+DA==", + "dev": true, + "license": "MIT", + "dependencies": { + "undici-types": "~6.21.0" + } + }, + "node_modules/dotenv": { + "version": "16.6.1", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.6.1.tgz", + "integrity": "sha512-uBq4egWHTcTt33a72vpSG0z3HnPuIl6NqYcTrKEg2azoEyl2hpW0zqlxysq2pK9HlDIHyHyakeYaYnSAwd8bow==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://dotenvx.com" + } + }, + "node_modules/esbuild": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.12.tgz", + "integrity": "sha512-bbPBYYrtZbkt6Os6FiTLCTFxvq4tt3JKall1vRwshA3fdVztsLAatFaZobhkBC8/BrPetoa0oksYoKXoG4ryJg==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=18" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.25.12", + "@esbuild/android-arm": "0.25.12", + "@esbuild/android-arm64": "0.25.12", + "@esbuild/android-x64": "0.25.12", + "@esbuild/darwin-arm64": "0.25.12", + "@esbuild/darwin-x64": "0.25.12", + "@esbuild/freebsd-arm64": "0.25.12", + "@esbuild/freebsd-x64": "0.25.12", + "@esbuild/linux-arm": "0.25.12", + "@esbuild/linux-arm64": "0.25.12", + "@esbuild/linux-ia32": "0.25.12", + "@esbuild/linux-loong64": "0.25.12", + "@esbuild/linux-mips64el": "0.25.12", + "@esbuild/linux-ppc64": "0.25.12", + "@esbuild/linux-riscv64": "0.25.12", + "@esbuild/linux-s390x": "0.25.12", + "@esbuild/linux-x64": "0.25.12", + "@esbuild/netbsd-arm64": "0.25.12", + "@esbuild/netbsd-x64": "0.25.12", + "@esbuild/openbsd-arm64": "0.25.12", + "@esbuild/openbsd-x64": "0.25.12", + "@esbuild/openharmony-arm64": "0.25.12", + "@esbuild/sunos-x64": "0.25.12", + "@esbuild/win32-arm64": "0.25.12", + "@esbuild/win32-ia32": "0.25.12", + "@esbuild/win32-x64": "0.25.12" + } + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/get-tsconfig": { + "version": "4.13.0", + "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.13.0.tgz", + "integrity": "sha512-1VKTZJCwBrvbd+Wn3AOgQP/2Av+TfTCOlE4AcRJE72W1ksZXbAx8PPBR9RzgTeSPzlPMHrbANMH3LbltH73wxQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "resolve-pkg-maps": "^1.0.0" + }, + "funding": { + "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1" + } + }, + "node_modules/resolve-pkg-maps": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz", + "integrity": "sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1" + } + }, + "node_modules/tsx": { + "version": "4.20.6", + "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.20.6.tgz", + "integrity": "sha512-ytQKuwgmrrkDTFP4LjR0ToE2nqgy886GpvRSpU0JAnrdBYppuY5rLkRUYPU1yCryb24SsKBTL/hlDQAEFVwtZg==", + "dev": true, + "license": "MIT", + "dependencies": { + "esbuild": "~0.25.0", + "get-tsconfig": "^4.7.5" + }, + "bin": { + "tsx": "dist/cli.mjs" + }, + "engines": { + "node": ">=18.0.0" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + } + }, + "node_modules/undici-types": { + "version": "6.21.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz", + "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==", + "dev": true, + "license": "MIT" + } + } +} diff --git a/examples/package.json b/examples/package.json new file mode 100644 index 00000000..6e1c0f47 --- /dev/null +++ b/examples/package.json @@ -0,0 +1,18 @@ +{ + "name": "@speakeasy-api/speakeasy-client-sdk-typescript-examples", + "version": "1.0.0", + "private": true, + "scripts": { + "build:parent": "cd .. && npm i && npm run build && cd -", + "build:examples": "npm i", + "build": "npm run build:parent && npm run build:examples" + }, + "devDependencies": { + "@types/node": "^20.0.0", + "dotenv": "^16.4.5", + "tsx": "^4.19.2" + }, + "dependencies": { + "@speakeasy-api/speakeasy-client-sdk-typescript": "file:.." + } +} \ No newline at end of file diff --git a/gen.yaml b/gen.yaml index 094c0c39..73b0f079 100644 --- a/gen.yaml +++ b/gen.yaml @@ -14,23 +14,37 @@ generation: auth: oAuth2ClientCredentialsEnabled: false oAuth2PasswordEnabled: false + hoistGlobalSecurity: true + schemas: + allOfMergeStrategy: shallowMerge + requestBodyFieldName: "" + tests: + generateTests: true + generateNewTests: false + skipResponseBodyAssertions: false typescript: - version: 5.0.0-rc.4 + version: 5.0.0-rc.5 + acceptHeaderEnum: true additionalDependencies: dependencies: {} devDependencies: {} peerDependencies: {} additionalPackageJSON: {} + additionalScripts: {} + alwaysIncludeInboundAndOutbound: false author: Speakeasy baseErrorName: SpeakeasyError clientServerStatusCodesAsErrors: true + constFieldsAlwaysOptional: true defaultErrorName: SDKError enableCustomCodeRegions: false enableMCPServer: true enableReactQuery: true enumFormat: union + exportZodModelNamespace: false flattenGlobalSecurity: true flatteningOrder: body-first + generateExamples: true imports: option: openapi paths: @@ -43,9 +57,13 @@ typescript: jsonpath: legacy maxMethodParams: 0 methodArguments: require-security-and-request + modelPropertyCasing: camel moduleFormat: commonjs outputModelSuffix: output packageName: '@speakeasy-api/speakeasy-client-sdk-typescript' responseFormat: flat + sseFlatResponse: false templateVersion: v2 + usageSDKInitImports: [] useIndexModules: true + zodVersion: v3 diff --git a/jsr.json b/jsr.json index e8794ffd..08879101 100644 --- a/jsr.json +++ b/jsr.json @@ -2,7 +2,7 @@ { "name": "@speakeasy-api/speakeasy-client-sdk-typescript", - "version": "5.0.0-rc.4", + "version": "5.0.0-rc.5", "exports": { ".": "./src/index.ts", "./sdk/models/errors": "./src/sdk/models/errors/index.ts", diff --git a/package-lock.json b/package-lock.json index cc74afee..7bb9f122 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,15 @@ { "name": "@speakeasy-api/speakeasy-client-sdk-typescript", - "version": "5.0.0-rc.4", + "version": "5.0.0-rc.5", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@speakeasy-api/speakeasy-client-sdk-typescript", - "version": "5.0.0-rc.4", + "version": "5.0.0-rc.5", + "dependencies": { + "zod": "^3.25.0 || ^4.0.0" + }, "bin": { "mcp": "bin/mcp-server.js" }, @@ -17,21 +20,19 @@ "@tanstack/react-query": "^5.61.4", "@types/express": "^4.17.21", "@types/react": "^18.3.12", - "bun": "^1.2.2", - "bun-types": "^1.2.2", + "bun": "1.2.17", + "bun-types": "1.2.17", "eslint": "^9.19.0", "express": "^4.21.2", "globals": "^15.14.0", - "typescript": "^5.4.5", - "typescript-eslint": "^8.22.0", - "zod": "^3.25.17" + "typescript": "~5.8.3", + "typescript-eslint": "^8.26.0" }, "peerDependencies": { "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0", "@tanstack/react-query": "^5", "react": "^18 || ^19", - "react-dom": "^18 || ^19", - "zod": ">= 3" + "react-dom": "^18 || ^19" }, "peerDependenciesMeta": { "@modelcontextprotocol/sdk": { @@ -646,9 +647,9 @@ } }, "node_modules/@oven/bun-darwin-aarch64": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/@oven/bun-darwin-aarch64/-/bun-darwin-aarch64-1.2.8.tgz", - "integrity": "sha512-O97RiReqBVzno5qLgoFX/dYI+xO+jSTIw0S+Cp1MRedXMZEqEgi8ql3ExWpteZyvUGBiXdvc0sQSOQwPoEwiPA==", + "version": "1.2.17", + "resolved": "https://registry.npmjs.org/@oven/bun-darwin-aarch64/-/bun-darwin-aarch64-1.2.17.tgz", + "integrity": "sha512-66Xjz3NZXUUWKZJPvWKuwEkaqMZpir1Gm4SbhbB2iiRSSTW8jqwdkSb9RhgTCDt5OnSPd3+Cq0WsP/T5ExJbhA==", "cpu": [ "arm64" ], @@ -660,9 +661,9 @@ ] }, "node_modules/@oven/bun-darwin-x64": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/@oven/bun-darwin-x64/-/bun-darwin-x64-1.2.8.tgz", - "integrity": "sha512-aofXwEl3ZzQgiOw/ITzAlXIpQiWeslvIVxol5/n/7Dv8Ekfrqhvo+j/uvEvY0KDECUn8gNIHwa839d701u/rhA==", + "version": "1.2.17", + "resolved": "https://registry.npmjs.org/@oven/bun-darwin-x64/-/bun-darwin-x64-1.2.17.tgz", + "integrity": "sha512-OMJMHpcpBlWcVnWfSQ6x+8fF7HpkQLqBfoIvzxgUjIZZvj2d8K46XX4N/h62RglDEinRC9VDGxt24vwvlk5tTw==", "cpu": [ "x64" ], @@ -674,9 +675,9 @@ ] }, "node_modules/@oven/bun-darwin-x64-baseline": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/@oven/bun-darwin-x64-baseline/-/bun-darwin-x64-baseline-1.2.8.tgz", - "integrity": "sha512-SqckVEKEALPJ1TLE+w1xlieZW5coRmmm2nxV5sxMs5BqUb6asrhJ+Wp51KePScvb2ctN7A00SGpROxVq2IA5GQ==", + "version": "1.2.17", + "resolved": "https://registry.npmjs.org/@oven/bun-darwin-x64-baseline/-/bun-darwin-x64-baseline-1.2.17.tgz", + "integrity": "sha512-VSIctl90tV8yg1LRMvPg/8LgUzl55Q7Jcxe+u6PfuvLQIJOTIPbNn7HtRpJg7MGc3+qyztB5KDd70xC7qI2yEg==", "cpu": [ "x64" ], @@ -688,9 +689,9 @@ ] }, "node_modules/@oven/bun-linux-aarch64": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/@oven/bun-linux-aarch64/-/bun-linux-aarch64-1.2.8.tgz", - "integrity": "sha512-BYzMj7H49xwmUBlHwfIXm/ky1D8yZyyVOnyRDNLTT+3+/odw7TTz3/+lZEBPGyet2tZ6oyBeis1xSZ9vYwSzZA==", + "version": "1.2.17", + "resolved": "https://registry.npmjs.org/@oven/bun-linux-aarch64/-/bun-linux-aarch64-1.2.17.tgz", + "integrity": "sha512-KPoMqaibCXcSv+VZ3uMqKUNZqMxE6Hho1be6+laolYGOIJxJTMnZPfmKfIlQmnnW3vLlm3g2Rm8pPPC7doSHWg==", "cpu": [ "arm64" ], @@ -702,9 +703,9 @@ ] }, "node_modules/@oven/bun-linux-aarch64-musl": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/@oven/bun-linux-aarch64-musl/-/bun-linux-aarch64-musl-1.2.8.tgz", - "integrity": "sha512-rl15SGTFCNj1PE/I2VpUc4XvOZXDCPlqgJGTAObH7+731ET6wgclAehp0x7s2qdyDN4awPnOtold+FYvMH/g9Q==", + "version": "1.2.17", + "resolved": "https://registry.npmjs.org/@oven/bun-linux-aarch64-musl/-/bun-linux-aarch64-musl-1.2.17.tgz", + "integrity": "sha512-PH+hUV+I6DGD1VRHdAIAKEAOed+GSdvn6S1b3qqX27/VuHBU781V+hzt+6DBlcWBHYLw8PIg9sfIdNp485gQmw==", "cpu": [ "aarch64" ], @@ -716,9 +717,9 @@ ] }, "node_modules/@oven/bun-linux-x64": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/@oven/bun-linux-x64/-/bun-linux-x64-1.2.8.tgz", - "integrity": "sha512-AzvrOAUGsKI9U7eYIbJbgtLVq9Jhx8dExt9QY6PtCgBklUlpTBU+9T+HPgXJqtIJYGtn9C9W4EBGjq9fEgy08A==", + "version": "1.2.17", + "resolved": "https://registry.npmjs.org/@oven/bun-linux-x64/-/bun-linux-x64-1.2.17.tgz", + "integrity": "sha512-BfySnrTxp7D9hVUi9JEpviJl8ndsuESiRiQKTzgmdTLrMjUxP4SwrwMtYt6R9X20n9rREG6a47C0IyQMhbwG/g==", "cpu": [ "x64" ], @@ -730,9 +731,9 @@ ] }, "node_modules/@oven/bun-linux-x64-baseline": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/@oven/bun-linux-x64-baseline/-/bun-linux-x64-baseline-1.2.8.tgz", - "integrity": "sha512-j0SxtM9XYCE0N7vnUzuYfnP2iFSoTsQ7pF+K0DPUr/+zmBVJ5tcZUU3xRPc4St86zSrMUD3J2tIUTNksxo81sw==", + "version": "1.2.17", + "resolved": "https://registry.npmjs.org/@oven/bun-linux-x64-baseline/-/bun-linux-x64-baseline-1.2.17.tgz", + "integrity": "sha512-IrnFMUwYWxoKICQgK8ZlJ6rI/HU2gITFNEW0MIOPIcuT0s3j0/33631M9EzYDoL4NuLQPks6569JDvSHEVqdeA==", "cpu": [ "x64" ], @@ -744,9 +745,9 @@ ] }, "node_modules/@oven/bun-linux-x64-musl": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/@oven/bun-linux-x64-musl/-/bun-linux-x64-musl-1.2.8.tgz", - "integrity": "sha512-NgjwsqRWRbCycTlLxg2mka3ZW8cnLPwkmg/zWRe9yjMutU7TGPV0Ak8cCf9PvA6Xgmrz+/HSO1ohO6Pii6Tb3w==", + "version": "1.2.17", + "resolved": "https://registry.npmjs.org/@oven/bun-linux-x64-musl/-/bun-linux-x64-musl-1.2.17.tgz", + "integrity": "sha512-fW9qn/WqO131/qSIkIPW8zN+thQnYUWa/k98EWubLG87htKSPh1v023E5ikKb7WlUv4Yb6UlE/z4NmMYKffmAg==", "cpu": [ "x64" ], @@ -758,9 +759,9 @@ ] }, "node_modules/@oven/bun-linux-x64-musl-baseline": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/@oven/bun-linux-x64-musl-baseline/-/bun-linux-x64-musl-baseline-1.2.8.tgz", - "integrity": "sha512-JbkQ452sYyK/TZGCvYz5eCmnlIazhPqkuEfZDwr9K2hfaY8JGJKwkC1sLxM3yvfoXzPgDrPFvYGBU75hmrJHTQ==", + "version": "1.2.17", + "resolved": "https://registry.npmjs.org/@oven/bun-linux-x64-musl-baseline/-/bun-linux-x64-musl-baseline-1.2.17.tgz", + "integrity": "sha512-YE5wQ/YA79BykMLhuwgdoF8Yjj5dRipD8dwmXs8n7gzR+/L9tL7Q69NQgskW2KkAalmWPoGAv3TV0IwbU+1dFw==", "cpu": [ "x64" ], @@ -772,9 +773,9 @@ ] }, "node_modules/@oven/bun-windows-x64": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/@oven/bun-windows-x64/-/bun-windows-x64-1.2.8.tgz", - "integrity": "sha512-9nQ45l6LCG+v0AUoBQrrSqsznO0Y36EyQ9sJmDYsI4faPmkHd+cQiyNnMFO5vIwjTXbB3Hb65ql7bjNYbP/O5g==", + "version": "1.2.17", + "resolved": "https://registry.npmjs.org/@oven/bun-windows-x64/-/bun-windows-x64-1.2.17.tgz", + "integrity": "sha512-GJUg1oA59DWH6eyV8uccpgfTEVxjmgfTWQCOl2ySMXR3IfRoFwS4aQfpjcVzNmEZrv8eYt+yMuw1K7aNcWTTIg==", "cpu": [ "x64" ], @@ -786,9 +787,9 @@ ] }, "node_modules/@oven/bun-windows-x64-baseline": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/@oven/bun-windows-x64-baseline/-/bun-windows-x64-baseline-1.2.8.tgz", - "integrity": "sha512-fVZ1hNhA9Gph76jToSc5lglNO7Y349v4IUwZaBH25ypenyPPrBoxH11D8v/EB95CsUej4KyWieYcxUiTNZUVmg==", + "version": "1.2.17", + "resolved": "https://registry.npmjs.org/@oven/bun-windows-x64-baseline/-/bun-windows-x64-baseline-1.2.17.tgz", + "integrity": "sha512-aVkq4l1yZ9VKfBOtZ2HEj0OCU5kUe3Fx6LbAG6oY6OglWVYj051i3RGaE2OdR4L4F2jDyxzfGYRTM/qs8nU5qA==", "cpu": [ "x64" ], @@ -974,16 +975,6 @@ "@types/send": "*" } }, - "node_modules/@types/ws": { - "version": "8.18.1", - "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.18.1.tgz", - "integrity": "sha512-ThVF6DCVhA8kUGy+aazFQ4kXQ7E1Ty7A3ypFOe0IcJV8O/M511G99AW24irKrW56Wt44yG9+ij8FaqoBGkuBXg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/node": "*" - } - }, "node_modules/@typescript-eslint/type-utils": { "version": "8.29.1", "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.29.1.tgz", @@ -1393,9 +1384,9 @@ } }, "node_modules/bun": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/bun/-/bun-1.2.8.tgz", - "integrity": "sha512-X8r9UuXAruvpE37u/JVfvJI8KRdFf9hUdTLw00DMScnBe7Xerawd/VvmFVT9Y/NrmXDAdDp0Dm6N6bulZYTGvA==", + "version": "1.2.17", + "resolved": "https://registry.npmjs.org/bun/-/bun-1.2.17.tgz", + "integrity": "sha512-lrUZTWS24eVy6v+Eph8VTwqFPcG7/XQ0rLBQEMNoQs2Vd7ctVdMGAzJKKGZRUQH+rgkD8rBeHGIVoWxX4vJLCA==", "cpu": [ "arm64", "x64", @@ -1411,31 +1402,30 @@ ], "bin": { "bun": "bin/bun.exe", - "bunx": "bin/bun.exe" + "bunx": "bin/bunx.exe" }, "optionalDependencies": { - "@oven/bun-darwin-aarch64": "1.2.8", - "@oven/bun-darwin-x64": "1.2.8", - "@oven/bun-darwin-x64-baseline": "1.2.8", - "@oven/bun-linux-aarch64": "1.2.8", - "@oven/bun-linux-aarch64-musl": "1.2.8", - "@oven/bun-linux-x64": "1.2.8", - "@oven/bun-linux-x64-baseline": "1.2.8", - "@oven/bun-linux-x64-musl": "1.2.8", - "@oven/bun-linux-x64-musl-baseline": "1.2.8", - "@oven/bun-windows-x64": "1.2.8", - "@oven/bun-windows-x64-baseline": "1.2.8" + "@oven/bun-darwin-aarch64": "1.2.17", + "@oven/bun-darwin-x64": "1.2.17", + "@oven/bun-darwin-x64-baseline": "1.2.17", + "@oven/bun-linux-aarch64": "1.2.17", + "@oven/bun-linux-aarch64-musl": "1.2.17", + "@oven/bun-linux-x64": "1.2.17", + "@oven/bun-linux-x64-baseline": "1.2.17", + "@oven/bun-linux-x64-musl": "1.2.17", + "@oven/bun-linux-x64-musl-baseline": "1.2.17", + "@oven/bun-windows-x64": "1.2.17", + "@oven/bun-windows-x64-baseline": "1.2.17" } }, "node_modules/bun-types": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/bun-types/-/bun-types-1.2.8.tgz", - "integrity": "sha512-D5npfxKIGuYe9dTHLK1hi4XFmbMdKYoLrgyd25rrUyCrnyU4ljmQW7vDdonvibKeyU72mZuixIhQ2J+q6uM0Mg==", + "version": "1.2.17", + "resolved": "https://registry.npmjs.org/bun-types/-/bun-types-1.2.17.tgz", + "integrity": "sha512-ElC7ItwT3SCQwYZDYoAH+q6KT4Fxjl8DtZ6qDulUFBmXA8YB4xo+l54J9ZJN+k2pphfn9vk7kfubeSd5QfTVJQ==", "dev": true, "license": "MIT", "dependencies": { - "@types/node": "*", - "@types/ws": "*" + "@types/node": "*" } }, "node_modules/bytes": { @@ -3393,9 +3383,9 @@ } }, "node_modules/typescript": { - "version": "5.5.4", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.5.4.tgz", - "integrity": "sha512-Mtq29sKDAEYP7aljRgtPOpTvOfbwRWlS6dPRzwjdE+C0R4brX/GUyhHSecbHMFLNBLcJIPt9nl9yG5TZ1weH+Q==", + "version": "5.8.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.3.tgz", + "integrity": "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==", "dev": true, "license": "Apache-2.0", "bin": { @@ -3684,7 +3674,6 @@ "version": "3.25.63", "resolved": "https://registry.npmjs.org/zod/-/zod-3.25.63.tgz", "integrity": "sha512-3ttCkqhtpncYXfP0f6dsyabbYV/nEUW+Xlu89jiXbTBifUfjaSqXOG6JnQPLtqt87n7KAmnMqcjay6c0Wq0Vbw==", - "dev": true, "license": "MIT", "funding": { "url": "https://github.com/sponsors/colinhacks" diff --git a/package.json b/package.json index 33336f52..60645a29 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@speakeasy-api/speakeasy-client-sdk-typescript", - "version": "5.0.0-rc.4", + "version": "5.0.0-rc.5", "author": "Speakeasy", "bin": { "mcp": "bin/mcp-server.js" @@ -22,8 +22,7 @@ "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0", "@tanstack/react-query": "^5", "react": "^18 || ^19", - "react-dom": "^18 || ^19", - "zod": ">= 3" + "react-dom": "^18 || ^19" }, "peerDependenciesMeta": { "@modelcontextprotocol/sdk": {"optional":true}, @@ -38,16 +37,15 @@ "@tanstack/react-query": "^5.61.4", "@types/express": "^4.17.21", "@types/react": "^18.3.12", - "bun": "^1.2.2", - "bun-types": "^1.2.2", + "bun": "1.2.17", + "bun-types": "1.2.17", "eslint": "^9.19.0", "express": "^4.21.2", "globals": "^15.14.0", - "typescript": "^5.4.5", - "typescript-eslint": "^8.22.0", - "zod": "^3.25.17" + "typescript": "~5.8.3", + "typescript-eslint": "^8.26.0" }, "dependencies": { - + "zod": "^3.25.0 || ^4.0.0" } } diff --git a/src/funcs/artifactsCreateRemoteSource.ts b/src/funcs/artifactsCreateRemoteSource.ts index 60d3b768..3ea333d4 100644 --- a/src/funcs/artifactsCreateRemoteSource.ts +++ b/src/funcs/artifactsCreateRemoteSource.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { SpeakeasyCore } from "../core.js"; import { encodeJSON } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -102,7 +102,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "createRemoteSource", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/artifactsGetBlob.ts b/src/funcs/artifactsGetBlob.ts index 95f0fea4..693048b9 100644 --- a/src/funcs/artifactsGetBlob.ts +++ b/src/funcs/artifactsGetBlob.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { SpeakeasyCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -121,7 +121,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getBlob", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/artifactsGetManifest.ts b/src/funcs/artifactsGetManifest.ts index 3940febf..88a6c11d 100644 --- a/src/funcs/artifactsGetManifest.ts +++ b/src/funcs/artifactsGetManifest.ts @@ -122,7 +122,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getManifest", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/artifactsGetNamespaces.ts b/src/funcs/artifactsGetNamespaces.ts index 0798ed86..469e461c 100644 --- a/src/funcs/artifactsGetNamespaces.ts +++ b/src/funcs/artifactsGetNamespaces.ts @@ -82,7 +82,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getNamespaces", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/artifactsGetRevisions.ts b/src/funcs/artifactsGetRevisions.ts index e4dfaf84..40b75e27 100644 --- a/src/funcs/artifactsGetRevisions.ts +++ b/src/funcs/artifactsGetRevisions.ts @@ -109,7 +109,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getRevisions", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/artifactsGetTags.ts b/src/funcs/artifactsGetTags.ts index ec3f61dd..b8aa89a1 100644 --- a/src/funcs/artifactsGetTags.ts +++ b/src/funcs/artifactsGetTags.ts @@ -105,7 +105,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getTags", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/artifactsListRemoteSources.ts b/src/funcs/artifactsListRemoteSources.ts index ade99b83..bc057b35 100644 --- a/src/funcs/artifactsListRemoteSources.ts +++ b/src/funcs/artifactsListRemoteSources.ts @@ -103,7 +103,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "listRemoteSources", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/artifactsPostTags.ts b/src/funcs/artifactsPostTags.ts index c76a0be2..a6555107 100644 --- a/src/funcs/artifactsPostTags.ts +++ b/src/funcs/artifactsPostTags.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { SpeakeasyCore } from "../core.js"; import { encodeJSON, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -109,7 +109,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "postTags", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/artifactsPreflight.ts b/src/funcs/artifactsPreflight.ts index 0413eaf1..41f18dcd 100644 --- a/src/funcs/artifactsPreflight.ts +++ b/src/funcs/artifactsPreflight.ts @@ -101,7 +101,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "preflight", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/artifactsSetArchived.ts b/src/funcs/artifactsSetArchived.ts index f50a263b..f5e7548c 100644 --- a/src/funcs/artifactsSetArchived.ts +++ b/src/funcs/artifactsSetArchived.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { SpeakeasyCore } from "../core.js"; import { encodeJSON, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -109,7 +109,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "archiveNamespace", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/artifactsSetVisibility.ts b/src/funcs/artifactsSetVisibility.ts index 67a100b1..7a50df66 100644 --- a/src/funcs/artifactsSetVisibility.ts +++ b/src/funcs/artifactsSetVisibility.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { SpeakeasyCore } from "../core.js"; import { encodeJSON, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -109,7 +109,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "setVisibility", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/authGetAccess.ts b/src/funcs/authGetAccess.ts index fa7b823f..04ed3d16 100644 --- a/src/funcs/authGetAccess.ts +++ b/src/funcs/authGetAccess.ts @@ -105,7 +105,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getWorkspaceAccess", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/authGetAccessToken.ts b/src/funcs/authGetAccessToken.ts index 58766703..f91cfca8 100644 --- a/src/funcs/authGetAccessToken.ts +++ b/src/funcs/authGetAccessToken.ts @@ -99,7 +99,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getAccessToken", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: null, diff --git a/src/funcs/authGetUser.ts b/src/funcs/authGetUser.ts index d628aae1..bc0bd473 100644 --- a/src/funcs/authGetUser.ts +++ b/src/funcs/authGetUser.ts @@ -82,7 +82,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getUser", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/authValidateApiKey.ts b/src/funcs/authValidateApiKey.ts index d8091d8f..7c689d7c 100644 --- a/src/funcs/authValidateApiKey.ts +++ b/src/funcs/authValidateApiKey.ts @@ -82,7 +82,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "validateApiKey", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/codeSamplesGenerateCodeSamplePreview.ts b/src/funcs/codeSamplesGenerateCodeSamplePreview.ts index b436d4f1..54ebeaea 100644 --- a/src/funcs/codeSamplesGenerateCodeSamplePreview.ts +++ b/src/funcs/codeSamplesGenerateCodeSamplePreview.ts @@ -138,7 +138,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "generateCodeSamplePreview", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/codeSamplesGenerateCodeSamplePreviewAsync.ts b/src/funcs/codeSamplesGenerateCodeSamplePreviewAsync.ts index 8c6b2b9b..697d6e28 100644 --- a/src/funcs/codeSamplesGenerateCodeSamplePreviewAsync.ts +++ b/src/funcs/codeSamplesGenerateCodeSamplePreviewAsync.ts @@ -139,7 +139,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "generateCodeSamplePreviewAsync", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/codeSamplesGet.ts b/src/funcs/codeSamplesGet.ts index 32016130..cfa3992c 100644 --- a/src/funcs/codeSamplesGet.ts +++ b/src/funcs/codeSamplesGet.ts @@ -109,7 +109,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getCodeSamples", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/codeSamplesGetCodeSamplePreviewAsync.ts b/src/funcs/codeSamplesGetCodeSamplePreviewAsync.ts index 4275f150..2cf06f72 100644 --- a/src/funcs/codeSamplesGetCodeSamplePreviewAsync.ts +++ b/src/funcs/codeSamplesGetCodeSamplePreviewAsync.ts @@ -109,7 +109,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getCodeSamplePreviewAsync", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/eventsGetEventsByTarget.ts b/src/funcs/eventsGetEventsByTarget.ts index 9a431877..8cd8ec20 100644 --- a/src/funcs/eventsGetEventsByTarget.ts +++ b/src/funcs/eventsGetEventsByTarget.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { SpeakeasyCore } from "../core.js"; import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -119,7 +119,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getWorkspaceEventsByTarget", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/eventsGetTargets.ts b/src/funcs/eventsGetTargets.ts index 4637933b..b9690f67 100644 --- a/src/funcs/eventsGetTargets.ts +++ b/src/funcs/eventsGetTargets.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { SpeakeasyCore } from "../core.js"; import { encodeFormQuery } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -105,7 +105,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getWorkspaceTargets", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/eventsGetTargetsDeprecated.ts b/src/funcs/eventsGetTargetsDeprecated.ts index 0d99af8e..316ecfe8 100644 --- a/src/funcs/eventsGetTargetsDeprecated.ts +++ b/src/funcs/eventsGetTargetsDeprecated.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { SpeakeasyCore } from "../core.js"; import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -117,7 +117,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getWorkspaceTargetsDeprecated", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/eventsPost.ts b/src/funcs/eventsPost.ts index 9fbeecaf..48b8f07f 100644 --- a/src/funcs/eventsPost.ts +++ b/src/funcs/eventsPost.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { SpeakeasyCore } from "../core.js"; import { encodeJSON, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -112,7 +112,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "postWorkspaceEvents", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/eventsSearch.ts b/src/funcs/eventsSearch.ts index 9067ea8d..1d199d3b 100644 --- a/src/funcs/eventsSearch.ts +++ b/src/funcs/eventsSearch.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { SpeakeasyCore } from "../core.js"; import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -120,7 +120,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "searchWorkspaceEvents", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/githubCheckAccess.ts b/src/funcs/githubCheckAccess.ts index 58ad90c0..95649f61 100644 --- a/src/funcs/githubCheckAccess.ts +++ b/src/funcs/githubCheckAccess.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { SpeakeasyCore } from "../core.js"; import { encodeFormQuery } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -101,7 +101,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "checkGithubAccess", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/githubCheckPublishingPRs.ts b/src/funcs/githubCheckPublishingPRs.ts index 0a49bdd9..264403c9 100644 --- a/src/funcs/githubCheckPublishingPRs.ts +++ b/src/funcs/githubCheckPublishingPRs.ts @@ -103,7 +103,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "githubCheckPublishingPRs", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/githubCheckPublishingSecrets.ts b/src/funcs/githubCheckPublishingSecrets.ts index 5c3b432d..45f3baa3 100644 --- a/src/funcs/githubCheckPublishingSecrets.ts +++ b/src/funcs/githubCheckPublishingSecrets.ts @@ -103,7 +103,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "githubCheckPublishingSecrets", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/githubConfigureCodeSamples.ts b/src/funcs/githubConfigureCodeSamples.ts index 9928ac11..8e4ff39d 100644 --- a/src/funcs/githubConfigureCodeSamples.ts +++ b/src/funcs/githubConfigureCodeSamples.ts @@ -97,7 +97,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "githubConfigureCodeSamples", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/githubConfigureMintlifyRepo.ts b/src/funcs/githubConfigureMintlifyRepo.ts index 6ed47453..a0ea13b2 100644 --- a/src/funcs/githubConfigureMintlifyRepo.ts +++ b/src/funcs/githubConfigureMintlifyRepo.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { SpeakeasyCore } from "../core.js"; import { encodeJSON } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -98,7 +98,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "githubConfigureMintlifyRepo", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/githubConfigureTarget.ts b/src/funcs/githubConfigureTarget.ts index 5c1ed32d..3a9033eb 100644 --- a/src/funcs/githubConfigureTarget.ts +++ b/src/funcs/githubConfigureTarget.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { SpeakeasyCore } from "../core.js"; import { encodeJSON } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -97,7 +97,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "githubConfigureTarget", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/githubGetAction.ts b/src/funcs/githubGetAction.ts index 9fdac66c..5efc28ed 100644 --- a/src/funcs/githubGetAction.ts +++ b/src/funcs/githubGetAction.ts @@ -102,7 +102,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getGitHubAction", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/githubGetSetup.ts b/src/funcs/githubGetSetup.ts index 8ae12a07..3618f545 100644 --- a/src/funcs/githubGetSetup.ts +++ b/src/funcs/githubGetSetup.ts @@ -103,7 +103,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getGithubSetupState", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/githubLinkGithub.ts b/src/funcs/githubLinkGithub.ts index a8c3615b..011a10df 100644 --- a/src/funcs/githubLinkGithub.ts +++ b/src/funcs/githubLinkGithub.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { SpeakeasyCore } from "../core.js"; import { encodeFormQuery } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -102,7 +102,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "linkGithubAccess", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/githubStorePublishingSecrets.ts b/src/funcs/githubStorePublishingSecrets.ts index bbef52f9..dcdd91f3 100644 --- a/src/funcs/githubStorePublishingSecrets.ts +++ b/src/funcs/githubStorePublishingSecrets.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { SpeakeasyCore } from "../core.js"; import { encodeJSON } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -98,7 +98,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "githubStorePublishingSecrets", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/githubTriggerAction.ts b/src/funcs/githubTriggerAction.ts index 62d7d329..75cb793a 100644 --- a/src/funcs/githubTriggerAction.ts +++ b/src/funcs/githubTriggerAction.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { SpeakeasyCore } from "../core.js"; import { encodeJSON } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -97,7 +97,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "githubTriggerAction", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/organizationsCreate.ts b/src/funcs/organizationsCreate.ts index 577b2a7f..4cd10c54 100644 --- a/src/funcs/organizationsCreate.ts +++ b/src/funcs/organizationsCreate.ts @@ -102,7 +102,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "createOrganization", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/organizationsCreateBillingAddOns.ts b/src/funcs/organizationsCreateBillingAddOns.ts index 7b8ec244..7291a666 100644 --- a/src/funcs/organizationsCreateBillingAddOns.ts +++ b/src/funcs/organizationsCreateBillingAddOns.ts @@ -100,7 +100,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "createBillingAddOns", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/organizationsCreateFreeTrial.ts b/src/funcs/organizationsCreateFreeTrial.ts index 39d2b1f0..398decf6 100644 --- a/src/funcs/organizationsCreateFreeTrial.ts +++ b/src/funcs/organizationsCreateFreeTrial.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { SpeakeasyCore } from "../core.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; @@ -85,7 +85,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "createFreeTrial", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/organizationsDeleteBillingAddOn.ts b/src/funcs/organizationsDeleteBillingAddOn.ts index 31f3e2b1..a02bb411 100644 --- a/src/funcs/organizationsDeleteBillingAddOn.ts +++ b/src/funcs/organizationsDeleteBillingAddOn.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { SpeakeasyCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -106,7 +106,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "deleteBillingAddOn", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/organizationsGet.ts b/src/funcs/organizationsGet.ts index 27a579d0..83b8c94b 100644 --- a/src/funcs/organizationsGet.ts +++ b/src/funcs/organizationsGet.ts @@ -109,7 +109,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getOrganization", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/organizationsGetAll.ts b/src/funcs/organizationsGetAll.ts index 051fcc05..e4761da2 100644 --- a/src/funcs/organizationsGetAll.ts +++ b/src/funcs/organizationsGetAll.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { SpeakeasyCore } from "../core.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; @@ -86,7 +86,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getOrganizations", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/organizationsGetBillingAddOns.ts b/src/funcs/organizationsGetBillingAddOns.ts index 22ab06e2..d90fdf5b 100644 --- a/src/funcs/organizationsGetBillingAddOns.ts +++ b/src/funcs/organizationsGetBillingAddOns.ts @@ -82,7 +82,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getBillingAddOns", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/organizationsGetUsage.ts b/src/funcs/organizationsGetUsage.ts index 56ce469e..14a73c38 100644 --- a/src/funcs/organizationsGetUsage.ts +++ b/src/funcs/organizationsGetUsage.ts @@ -85,7 +85,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getOrganizationUsage", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/publishingTokensCreate.ts b/src/funcs/publishingTokensCreate.ts index 01443473..e441329a 100644 --- a/src/funcs/publishingTokensCreate.ts +++ b/src/funcs/publishingTokensCreate.ts @@ -107,7 +107,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "createPublishingToken", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/publishingTokensDelete.ts b/src/funcs/publishingTokensDelete.ts index 227b938a..17c0f02e 100644 --- a/src/funcs/publishingTokensDelete.ts +++ b/src/funcs/publishingTokensDelete.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { SpeakeasyCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -110,7 +110,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "deletePublishingToken", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/publishingTokensGet.ts b/src/funcs/publishingTokensGet.ts index ccb7f7a0..d0b908e9 100644 --- a/src/funcs/publishingTokensGet.ts +++ b/src/funcs/publishingTokensGet.ts @@ -110,7 +110,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getPublishingTokenByID", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/publishingTokensList.ts b/src/funcs/publishingTokensList.ts index 01294ee9..16fadc06 100644 --- a/src/funcs/publishingTokensList.ts +++ b/src/funcs/publishingTokensList.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { SpeakeasyCore } from "../core.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; @@ -86,7 +86,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getPublishingToken", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/publishingTokensResolveMetadata.ts b/src/funcs/publishingTokensResolveMetadata.ts index 720c0391..3c9ce956 100644 --- a/src/funcs/publishingTokensResolveMetadata.ts +++ b/src/funcs/publishingTokensResolveMetadata.ts @@ -113,7 +113,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getPublishingTokenPublicMetadata", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/publishingTokensResolveTarget.ts b/src/funcs/publishingTokensResolveTarget.ts index 81162976..82e613b4 100644 --- a/src/funcs/publishingTokensResolveTarget.ts +++ b/src/funcs/publishingTokensResolveTarget.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { SpeakeasyCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -112,7 +112,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getPublishingTokenTargetByID", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/publishingTokensUpdate.ts b/src/funcs/publishingTokensUpdate.ts index 1a1f9a3c..8177ff1a 100644 --- a/src/funcs/publishingTokensUpdate.ts +++ b/src/funcs/publishingTokensUpdate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { SpeakeasyCore } from "../core.js"; import { encodeJSON, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -113,7 +113,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "updatePublishingTokenExpiration", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/reportsGetChangesReportSignedUrl.ts b/src/funcs/reportsGetChangesReportSignedUrl.ts index c6a0a830..62e1b592 100644 --- a/src/funcs/reportsGetChangesReportSignedUrl.ts +++ b/src/funcs/reportsGetChangesReportSignedUrl.ts @@ -104,7 +104,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getChangesReportSignedUrl", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/reportsGetLintingReportSignedUrl.ts b/src/funcs/reportsGetLintingReportSignedUrl.ts index d60e4d3a..bfd25ce8 100644 --- a/src/funcs/reportsGetLintingReportSignedUrl.ts +++ b/src/funcs/reportsGetLintingReportSignedUrl.ts @@ -104,7 +104,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getLintingReportSignedUrl", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/reportsUploadReport.ts b/src/funcs/reportsUploadReport.ts index 06b98903..7ea11ba1 100644 --- a/src/funcs/reportsUploadReport.ts +++ b/src/funcs/reportsUploadReport.ts @@ -121,7 +121,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "uploadReport", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/schemaStoreCreateSchemaStoreItem.ts b/src/funcs/schemaStoreCreateSchemaStoreItem.ts index 02697283..4d0418c9 100644 --- a/src/funcs/schemaStoreCreateSchemaStoreItem.ts +++ b/src/funcs/schemaStoreCreateSchemaStoreItem.ts @@ -101,7 +101,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "createSchemaStoreItem", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/shortURLsCreate.ts b/src/funcs/shortURLsCreate.ts index e9294061..d59cfd2d 100644 --- a/src/funcs/shortURLsCreate.ts +++ b/src/funcs/shortURLsCreate.ts @@ -97,7 +97,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "create", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/subscriptionsActivateSubscriptionNamespace.ts b/src/funcs/subscriptionsActivateSubscriptionNamespace.ts index 75bf059f..c9b5d138 100644 --- a/src/funcs/subscriptionsActivateSubscriptionNamespace.ts +++ b/src/funcs/subscriptionsActivateSubscriptionNamespace.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { SpeakeasyCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -115,7 +115,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "activateSubscriptionNamespace", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/subscriptionsIgnoreSubscriptionNamespace.ts b/src/funcs/subscriptionsIgnoreSubscriptionNamespace.ts index 0115932b..2a667c1c 100644 --- a/src/funcs/subscriptionsIgnoreSubscriptionNamespace.ts +++ b/src/funcs/subscriptionsIgnoreSubscriptionNamespace.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { SpeakeasyCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -113,7 +113,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "ignoreSubscriptionNamespace", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/suggestSuggest.ts b/src/funcs/suggestSuggest.ts index 1f3ab622..cea52d58 100644 --- a/src/funcs/suggestSuggest.ts +++ b/src/funcs/suggestSuggest.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { SpeakeasyCore } from "../core.js"; import { encodeJSON, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -106,7 +106,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "suggest", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/suggestSuggestItems.ts b/src/funcs/suggestSuggestItems.ts index ac775e80..de04fd67 100644 --- a/src/funcs/suggestSuggestItems.ts +++ b/src/funcs/suggestSuggestItems.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { SpeakeasyCore } from "../core.js"; import { encodeJSON } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -97,7 +97,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "suggestItems", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/suggestSuggestOpenAPI.ts b/src/funcs/suggestSuggestOpenAPI.ts index fd600227..96e6edb3 100644 --- a/src/funcs/suggestSuggestOpenAPI.ts +++ b/src/funcs/suggestSuggestOpenAPI.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { SpeakeasyCore } from "../core.js"; import { appendForm, encodeJSON, encodeSimple } from "../lib/encodings.js"; import { @@ -139,7 +139,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "suggestOpenAPI", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/suggestSuggestOpenAPIRegistry.ts b/src/funcs/suggestSuggestOpenAPIRegistry.ts index 12991a7d..6f69a11e 100644 --- a/src/funcs/suggestSuggestOpenAPIRegistry.ts +++ b/src/funcs/suggestSuggestOpenAPIRegistry.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { SpeakeasyCore } from "../core.js"; import { encodeJSON, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -121,7 +121,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "suggestOpenAPIRegistry", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/workspacesCreate.ts b/src/funcs/workspacesCreate.ts index 85553009..b3337116 100644 --- a/src/funcs/workspacesCreate.ts +++ b/src/funcs/workspacesCreate.ts @@ -102,7 +102,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "createWorkspace", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/workspacesCreateToken.ts b/src/funcs/workspacesCreateToken.ts index 37162dcc..611305b7 100644 --- a/src/funcs/workspacesCreateToken.ts +++ b/src/funcs/workspacesCreateToken.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { SpeakeasyCore } from "../core.js"; import { encodeJSON, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -109,7 +109,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "createWorkspaceToken", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/workspacesDeleteToken.ts b/src/funcs/workspacesDeleteToken.ts index 3d909cc9..193250e2 100644 --- a/src/funcs/workspacesDeleteToken.ts +++ b/src/funcs/workspacesDeleteToken.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { SpeakeasyCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -114,7 +114,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "deleteWorkspaceToken", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/workspacesGet.ts b/src/funcs/workspacesGet.ts index 3c7d80fb..04f5a9bc 100644 --- a/src/funcs/workspacesGet.ts +++ b/src/funcs/workspacesGet.ts @@ -85,7 +85,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getWorkspaceByContext", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/workspacesGetAll.ts b/src/funcs/workspacesGetAll.ts index 2ce79617..8a721264 100644 --- a/src/funcs/workspacesGetAll.ts +++ b/src/funcs/workspacesGetAll.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { SpeakeasyCore } from "../core.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; @@ -86,7 +86,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getWorkspaces", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/workspacesGetByID.ts b/src/funcs/workspacesGetByID.ts index 8dac828a..a96cf07f 100644 --- a/src/funcs/workspacesGetByID.ts +++ b/src/funcs/workspacesGetByID.ts @@ -110,7 +110,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getWorkspace", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/workspacesGetFeatureFlags.ts b/src/funcs/workspacesGetFeatureFlags.ts index 4d647baf..dd4f8b86 100644 --- a/src/funcs/workspacesGetFeatureFlags.ts +++ b/src/funcs/workspacesGetFeatureFlags.ts @@ -110,7 +110,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getWorkspaceFeatureFlags", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/workspacesGetSettings.ts b/src/funcs/workspacesGetSettings.ts index 3f20ae83..5d422596 100644 --- a/src/funcs/workspacesGetSettings.ts +++ b/src/funcs/workspacesGetSettings.ts @@ -111,7 +111,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getWorkspaceSettings", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/workspacesGetTeam.ts b/src/funcs/workspacesGetTeam.ts index cb53e49d..346c6fe3 100644 --- a/src/funcs/workspacesGetTeam.ts +++ b/src/funcs/workspacesGetTeam.ts @@ -107,7 +107,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getWorkspaceTeam", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/workspacesGetTokens.ts b/src/funcs/workspacesGetTokens.ts index 8e847256..49f4b1b8 100644 --- a/src/funcs/workspacesGetTokens.ts +++ b/src/funcs/workspacesGetTokens.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { SpeakeasyCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -108,7 +108,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getWorkspaceTokens", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/workspacesGrantAccess.ts b/src/funcs/workspacesGrantAccess.ts index 64640f0f..f96b6aec 100644 --- a/src/funcs/workspacesGrantAccess.ts +++ b/src/funcs/workspacesGrantAccess.ts @@ -114,7 +114,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "grantUserAccessToWorkspace", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/workspacesRevokeAccess.ts b/src/funcs/workspacesRevokeAccess.ts index 323b80e5..c31df085 100644 --- a/src/funcs/workspacesRevokeAccess.ts +++ b/src/funcs/workspacesRevokeAccess.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { SpeakeasyCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -114,7 +114,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "revokeUserAccessToWorkspace", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/workspacesSetFeatureFlags.ts b/src/funcs/workspacesSetFeatureFlags.ts index 601c626f..f4a78dd9 100644 --- a/src/funcs/workspacesSetFeatureFlags.ts +++ b/src/funcs/workspacesSetFeatureFlags.ts @@ -99,7 +99,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "setWorkspaceFeatureFlags", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/workspacesUpdate.ts b/src/funcs/workspacesUpdate.ts index ec37f8cc..57eb3a32 100644 --- a/src/funcs/workspacesUpdate.ts +++ b/src/funcs/workspacesUpdate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { SpeakeasyCore } from "../core.js"; import { encodeJSON, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -112,7 +112,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "updateWorkspaceDetails", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/workspacesUpdateSettings.ts b/src/funcs/workspacesUpdateSettings.ts index 6feaff92..c8f354fe 100644 --- a/src/funcs/workspacesUpdateSettings.ts +++ b/src/funcs/workspacesUpdateSettings.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { SpeakeasyCore } from "../core.js"; import { encodeJSON, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -112,7 +112,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "updateWorkspaceSettings", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/lib/base64.ts b/src/lib/base64.ts index c2d5b389..0aebd8b0 100644 --- a/src/lib/base64.ts +++ b/src/lib/base64.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; export function bytesToBase64(u8arr: Uint8Array): string { return btoa(String.fromCodePoint(...u8arr)); diff --git a/src/lib/config.ts b/src/lib/config.ts index 1254ca2b..993b89ad 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -65,8 +65,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null { export const SDK_METADATA = { language: "typescript", openapiDocVersion: "0.4.0", - sdkVersion: "5.0.0-rc.4", - genVersion: "2.628.0", + sdkVersion: "5.0.0-rc.5", + genVersion: "2.745.2", userAgent: - "speakeasy-sdk/typescript 5.0.0-rc.4 2.628.0 0.4.0 @speakeasy-api/speakeasy-client-sdk-typescript", + "speakeasy-sdk/typescript 5.0.0-rc.5 2.745.2 0.4.0 @speakeasy-api/speakeasy-client-sdk-typescript", } as const; diff --git a/src/lib/schemas.ts b/src/lib/schemas.ts index 6bfea6f6..dc2510e3 100644 --- a/src/lib/schemas.ts +++ b/src/lib/schemas.ts @@ -9,7 +9,7 @@ import { ZodObject, ZodRawShape, ZodTypeAny, -} from "zod"; +} from "zod/v3"; import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; import { ERR, OK, Result } from "../sdk/types/fp.js"; diff --git a/src/lib/security.ts b/src/lib/security.ts index 8273a7fe..cf6bf4f1 100644 --- a/src/lib/security.ts +++ b/src/lib/security.ts @@ -6,8 +6,8 @@ import * as shared from "../sdk/models/shared/index.js"; type OAuth2PasswordFlow = { username: string; - password?: string | undefined; - clientID: string; + password: string; + clientID?: string | undefined; clientSecret?: string | undefined; tokenURL: string; }; @@ -83,7 +83,10 @@ type SecurityInputOAuth2 = { type SecurityInputOAuth2ClientCredentials = { type: "oauth2:client_credentials"; value: - | { clientID?: string | undefined; clientSecret?: string | undefined } + | { + clientID?: string | undefined; + clientSecret?: string | undefined; + } | null | string | undefined; diff --git a/src/lib/url.ts b/src/lib/url.ts index 6bc6356e..f3a8de6c 100644 --- a/src/lib/url.ts +++ b/src/lib/url.ts @@ -10,7 +10,7 @@ export function pathToFunc( pathPattern: string, options?: { charEncoding?: "percent" | "none" }, ): (params?: Params) => string { - const paramRE = /\{([a-zA-Z0-9_]+?)\}/g; + const paramRE = /\{([a-zA-Z0-9_][a-zA-Z0-9_-]*?)\}/g; return function buildURLPath(params: Record = {}): string { return pathPattern.replace(paramRE, function (_, placeholder) { diff --git a/src/mcp-server/cli/start/command.ts b/src/mcp-server/cli/start/command.ts index 3b887a09..4ca9706a 100644 --- a/src/mcp-server/cli/start/command.ts +++ b/src/mcp-server/cli/start/command.ts @@ -3,10 +3,9 @@ */ import { buildCommand } from "@stricli/core"; -import * as z from "zod"; +import * as z from "zod/v3"; import { ServerList } from "../../../lib/config.js"; import { consoleLoggerLevels } from "../../console-logger.js"; -import { mcpScopes } from "../../scopes.js"; export const startCommand = buildCommand({ loader: async () => { @@ -37,18 +36,6 @@ export const startCommand = buildCommand({ return z.string().parse(value); }, }, - ...(mcpScopes.length - ? { - scope: { - kind: "enum", - brief: - "Mount tools/resources that match given scope (repeatable flag)", - values: mcpScopes, - variadic: true, - optional: true, - }, - } - : {}), "api-key": { kind: "parsed", brief: "Sets the apiKey auth field for the API", diff --git a/src/mcp-server/cli/start/impl.ts b/src/mcp-server/cli/start/impl.ts index 722d6807..42cc0b29 100644 --- a/src/mcp-server/cli/start/impl.ts +++ b/src/mcp-server/cli/start/impl.ts @@ -11,14 +11,12 @@ import { ConsoleLoggerLevel, createConsoleLogger, } from "../../console-logger.js"; -import { MCPScope } from "../../scopes.js"; import { createMCPServer } from "../../server.js"; interface StartCommandFlags { readonly transport: "stdio" | "sse"; readonly port: number; readonly tool?: string[]; - readonly scope?: MCPScope[]; readonly "api-key"?: string | undefined; readonly bearer?: string | undefined; readonly "workspace-identifier"?: string | undefined; @@ -52,7 +50,6 @@ async function startStdio(flags: StartCommandFlags) { const server = createMCPServer({ logger, allowedTools: flags.tool, - scopes: flags.scope, security: { apiKey: flags["api-key"] ?? "", bearer: flags.bearer ?? "", @@ -78,7 +75,6 @@ async function startSSE(flags: StartCommandFlags) { const mcpServer = createMCPServer({ logger, allowedTools: flags.tool, - scopes: flags.scope, security: { apiKey: flags["api-key"] ?? "", bearer: flags.bearer ?? "", diff --git a/src/mcp-server/extensions.ts b/src/mcp-server/extensions.ts index 7aab2809..0955a573 100644 --- a/src/mcp-server/extensions.ts +++ b/src/mcp-server/extensions.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { ZodRawShape } from "zod"; +import { ZodRawShape } from "zod/v3"; import { PromptArgsRawShape, PromptDefinition } from "./prompts.js"; import { ResourceDefinition, ResourceTemplateDefinition } from "./resources.js"; import { ToolDefinition } from "./tools.js"; diff --git a/src/mcp-server/mcp-server.ts b/src/mcp-server/mcp-server.ts index 68467e81..e045f09a 100644 --- a/src/mcp-server/mcp-server.ts +++ b/src/mcp-server/mcp-server.ts @@ -19,7 +19,7 @@ const routes = buildRouteMap({ export const app = buildApplication(routes, { name: "mcp", versionInfo: { - currentVersion: "5.0.0-rc.4", + currentVersion: "5.0.0-rc.5", }, }); diff --git a/src/mcp-server/prompts.ts b/src/mcp-server/prompts.ts index 7921302c..e6f6d7ff 100644 --- a/src/mcp-server/prompts.ts +++ b/src/mcp-server/prompts.ts @@ -11,7 +11,7 @@ import { ZodType, ZodTypeAny, ZodTypeDef, -} from "zod"; +} from "zod/v3"; import { SpeakeasyCore } from "../core.js"; import { ConsoleLogger } from "./console-logger.js"; import { MCPScope } from "./scopes.js"; diff --git a/src/mcp-server/server.ts b/src/mcp-server/server.ts index 1fada170..e34351ac 100644 --- a/src/mcp-server/server.ts +++ b/src/mcp-server/server.ts @@ -101,7 +101,7 @@ export function createMCPServer(deps: { }) { const server = new McpServer({ name: "Speakeasy", - version: "5.0.0-rc.4", + version: "5.0.0-rc.5", }); const client = new SpeakeasyCore({ diff --git a/src/mcp-server/shared.ts b/src/mcp-server/shared.ts index 9dc6d2f6..3e94144d 100644 --- a/src/mcp-server/shared.ts +++ b/src/mcp-server/shared.ts @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { bytesToBase64 } from "../lib/base64.js"; - type BinaryData = | Uint8Array | ArrayBuffer diff --git a/src/mcp-server/tools.ts b/src/mcp-server/tools.ts index 4d8b5175..ddf6f0cf 100644 --- a/src/mcp-server/tools.ts +++ b/src/mcp-server/tools.ts @@ -5,7 +5,7 @@ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { RequestHandlerExtra } from "@modelcontextprotocol/sdk/shared/protocol.js"; import { CallToolResult } from "@modelcontextprotocol/sdk/types.js"; -import { objectOutputType, ZodRawShape, ZodTypeAny } from "zod"; +import { objectOutputType, ZodRawShape, ZodTypeAny } from "zod/v3"; import { SpeakeasyCore } from "../core.js"; import { ConsoleLogger } from "./console-logger.js"; import { MCPScope } from "./scopes.js"; diff --git a/src/sdk/models/errors/error.ts b/src/sdk/models/errors/error.ts index ef279a4b..db1b34ad 100644 --- a/src/sdk/models/errors/error.ts +++ b/src/sdk/models/errors/error.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { SpeakeasyError } from "./speakeasyerror.js"; @@ -31,9 +31,7 @@ export class ErrorT extends SpeakeasyError { err: ErrorTData, httpMeta: { response: Response; request: Request; body: string }, ) { - const message = "message" in err && typeof err.message === "string" - ? err.message - : `API error occurred: ${JSON.stringify(err)}`; + const message = err.message || `API error occurred: ${JSON.stringify(err)}`; super(message, httpMeta); this.data$ = err; @@ -85,16 +83,3 @@ export const ErrorT$outboundSchema: z.ZodType< }); }), ); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ErrorT$ { - /** @deprecated use `ErrorT$inboundSchema` instead. */ - export const inboundSchema = ErrorT$inboundSchema; - /** @deprecated use `ErrorT$outboundSchema` instead. */ - export const outboundSchema = ErrorT$outboundSchema; - /** @deprecated use `ErrorT$Outbound` instead. */ - export type Outbound = ErrorT$Outbound; -} diff --git a/src/sdk/models/errors/index.ts b/src/sdk/models/errors/index.ts index 4ee3a373..eb73d2f7 100644 --- a/src/sdk/models/errors/index.ts +++ b/src/sdk/models/errors/index.ts @@ -7,3 +7,4 @@ export * from "./httpclienterrors.js"; export * from "./responsevalidationerror.js"; export * from "./sdkerror.js"; export * from "./sdkvalidationerror.js"; +export * from "./speakeasyerror.js"; diff --git a/src/sdk/models/errors/responsevalidationerror.ts b/src/sdk/models/errors/responsevalidationerror.ts index 0712acdd..f9192f65 100644 --- a/src/sdk/models/errors/responsevalidationerror.ts +++ b/src/sdk/models/errors/responsevalidationerror.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { formatZodError } from "./sdkvalidationerror.js"; import { SpeakeasyError } from "./speakeasyerror.js"; diff --git a/src/sdk/models/errors/sdkerror.ts b/src/sdk/models/errors/sdkerror.ts index 2e0cd9b5..aee6ed99 100644 --- a/src/sdk/models/errors/sdkerror.ts +++ b/src/sdk/models/errors/sdkerror.ts @@ -25,8 +25,14 @@ export class SDKError extends SpeakeasyError { }`; } const body = httpMeta.body || `""`; - message += body.length > 100 ? "\n" : " "; - message += `Body ${body}`; + message += body.length > 100 ? "\n" : ". "; + let bodyDisplay = body; + if (body.length > 10000) { + const truncated = body.substring(0, 10000); + const remaining = body.length - 10000; + bodyDisplay = `${truncated}...and ${remaining} more chars`; + } + message += `Body: ${bodyDisplay}`; message = message.trim(); super(message, httpMeta); this.name = "SDKError"; diff --git a/src/sdk/models/errors/sdkvalidationerror.ts b/src/sdk/models/errors/sdkvalidationerror.ts index 37face8a..6826e120 100644 --- a/src/sdk/models/errors/sdkvalidationerror.ts +++ b/src/sdk/models/errors/sdkvalidationerror.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; export class SDKValidationError extends Error { /** diff --git a/src/sdk/models/operations/activatesubscriptionnamespace.ts b/src/sdk/models/operations/activatesubscriptionnamespace.ts index 6c0975fa..3b14bde6 100644 --- a/src/sdk/models/operations/activatesubscriptionnamespace.ts +++ b/src/sdk/models/operations/activatesubscriptionnamespace.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -27,7 +27,6 @@ export const ActivateSubscriptionNamespaceRequest$inboundSchema: z.ZodType< subscriptionID: z.string(), namespaceName: z.string(), }); - /** @internal */ export type ActivateSubscriptionNamespaceRequest$Outbound = { subscriptionID: string; @@ -44,21 +43,6 @@ export const ActivateSubscriptionNamespaceRequest$outboundSchema: z.ZodType< namespaceName: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ActivateSubscriptionNamespaceRequest$ { - /** @deprecated use `ActivateSubscriptionNamespaceRequest$inboundSchema` instead. */ - export const inboundSchema = - ActivateSubscriptionNamespaceRequest$inboundSchema; - /** @deprecated use `ActivateSubscriptionNamespaceRequest$outboundSchema` instead. */ - export const outboundSchema = - ActivateSubscriptionNamespaceRequest$outboundSchema; - /** @deprecated use `ActivateSubscriptionNamespaceRequest$Outbound` instead. */ - export type Outbound = ActivateSubscriptionNamespaceRequest$Outbound; -} - export function activateSubscriptionNamespaceRequestToJSON( activateSubscriptionNamespaceRequest: ActivateSubscriptionNamespaceRequest, ): string { @@ -68,7 +52,6 @@ export function activateSubscriptionNamespaceRequestToJSON( ), ); } - export function activateSubscriptionNamespaceRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/archivenamespace.ts b/src/sdk/models/operations/archivenamespace.ts index 97d3aa57..fd43dfd3 100644 --- a/src/sdk/models/operations/archivenamespace.ts +++ b/src/sdk/models/operations/archivenamespace.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -31,7 +31,6 @@ export const ArchiveNamespaceRequestBody$inboundSchema: z.ZodType< > = z.object({ archived: z.boolean().default(true), }); - /** @internal */ export type ArchiveNamespaceRequestBody$Outbound = { archived: boolean; @@ -46,19 +45,6 @@ export const ArchiveNamespaceRequestBody$outboundSchema: z.ZodType< archived: z.boolean().default(true), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ArchiveNamespaceRequestBody$ { - /** @deprecated use `ArchiveNamespaceRequestBody$inboundSchema` instead. */ - export const inboundSchema = ArchiveNamespaceRequestBody$inboundSchema; - /** @deprecated use `ArchiveNamespaceRequestBody$outboundSchema` instead. */ - export const outboundSchema = ArchiveNamespaceRequestBody$outboundSchema; - /** @deprecated use `ArchiveNamespaceRequestBody$Outbound` instead. */ - export type Outbound = ArchiveNamespaceRequestBody$Outbound; -} - export function archiveNamespaceRequestBodyToJSON( archiveNamespaceRequestBody: ArchiveNamespaceRequestBody, ): string { @@ -68,7 +54,6 @@ export function archiveNamespaceRequestBodyToJSON( ), ); } - export function archiveNamespaceRequestBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -94,7 +79,6 @@ export const ArchiveNamespaceRequest$inboundSchema: z.ZodType< "RequestBody": "requestBody", }); }); - /** @internal */ export type ArchiveNamespaceRequest$Outbound = { namespace_name: string; @@ -117,19 +101,6 @@ export const ArchiveNamespaceRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ArchiveNamespaceRequest$ { - /** @deprecated use `ArchiveNamespaceRequest$inboundSchema` instead. */ - export const inboundSchema = ArchiveNamespaceRequest$inboundSchema; - /** @deprecated use `ArchiveNamespaceRequest$outboundSchema` instead. */ - export const outboundSchema = ArchiveNamespaceRequest$outboundSchema; - /** @deprecated use `ArchiveNamespaceRequest$Outbound` instead. */ - export type Outbound = ArchiveNamespaceRequest$Outbound; -} - export function archiveNamespaceRequestToJSON( archiveNamespaceRequest: ArchiveNamespaceRequest, ): string { @@ -137,7 +108,6 @@ export function archiveNamespaceRequestToJSON( ArchiveNamespaceRequest$outboundSchema.parse(archiveNamespaceRequest), ); } - export function archiveNamespaceRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/checkgithubaccess.ts b/src/sdk/models/operations/checkgithubaccess.ts index fc7d54c1..77be2176 100644 --- a/src/sdk/models/operations/checkgithubaccess.ts +++ b/src/sdk/models/operations/checkgithubaccess.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -21,7 +21,6 @@ export const CheckGithubAccessRequest$inboundSchema: z.ZodType< org: z.string(), repo: z.string(), }); - /** @internal */ export type CheckGithubAccessRequest$Outbound = { org: string; @@ -38,19 +37,6 @@ export const CheckGithubAccessRequest$outboundSchema: z.ZodType< repo: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CheckGithubAccessRequest$ { - /** @deprecated use `CheckGithubAccessRequest$inboundSchema` instead. */ - export const inboundSchema = CheckGithubAccessRequest$inboundSchema; - /** @deprecated use `CheckGithubAccessRequest$outboundSchema` instead. */ - export const outboundSchema = CheckGithubAccessRequest$outboundSchema; - /** @deprecated use `CheckGithubAccessRequest$Outbound` instead. */ - export type Outbound = CheckGithubAccessRequest$Outbound; -} - export function checkGithubAccessRequestToJSON( checkGithubAccessRequest: CheckGithubAccessRequest, ): string { @@ -58,7 +44,6 @@ export function checkGithubAccessRequestToJSON( CheckGithubAccessRequest$outboundSchema.parse(checkGithubAccessRequest), ); } - export function checkGithubAccessRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/create.ts b/src/sdk/models/operations/create.ts index 42a0b794..03ca94d1 100644 --- a/src/sdk/models/operations/create.ts +++ b/src/sdk/models/operations/create.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -22,7 +22,6 @@ export const CreateRequestBody$inboundSchema: z.ZodType< > = z.object({ url: z.string(), }); - /** @internal */ export type CreateRequestBody$Outbound = { url: string; @@ -37,19 +36,6 @@ export const CreateRequestBody$outboundSchema: z.ZodType< url: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateRequestBody$ { - /** @deprecated use `CreateRequestBody$inboundSchema` instead. */ - export const inboundSchema = CreateRequestBody$inboundSchema; - /** @deprecated use `CreateRequestBody$outboundSchema` instead. */ - export const outboundSchema = CreateRequestBody$outboundSchema; - /** @deprecated use `CreateRequestBody$Outbound` instead. */ - export type Outbound = CreateRequestBody$Outbound; -} - export function createRequestBodyToJSON( createRequestBody: CreateRequestBody, ): string { @@ -57,7 +43,6 @@ export function createRequestBodyToJSON( CreateRequestBody$outboundSchema.parse(createRequestBody), ); } - export function createRequestBodyFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/createpublishingtoken.ts b/src/sdk/models/operations/createpublishingtoken.ts index f5a55a97..fb928b28 100644 --- a/src/sdk/models/operations/createpublishingtoken.ts +++ b/src/sdk/models/operations/createpublishingtoken.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -38,7 +38,6 @@ export const CreatePublishingTokenRequestBody$inboundSchema: z.ZodType< "valid_until": "validUntil", }); }); - /** @internal */ export type CreatePublishingTokenRequestBody$Outbound = { target_id: string; @@ -66,19 +65,6 @@ export const CreatePublishingTokenRequestBody$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreatePublishingTokenRequestBody$ { - /** @deprecated use `CreatePublishingTokenRequestBody$inboundSchema` instead. */ - export const inboundSchema = CreatePublishingTokenRequestBody$inboundSchema; - /** @deprecated use `CreatePublishingTokenRequestBody$outboundSchema` instead. */ - export const outboundSchema = CreatePublishingTokenRequestBody$outboundSchema; - /** @deprecated use `CreatePublishingTokenRequestBody$Outbound` instead. */ - export type Outbound = CreatePublishingTokenRequestBody$Outbound; -} - export function createPublishingTokenRequestBodyToJSON( createPublishingTokenRequestBody: CreatePublishingTokenRequestBody, ): string { @@ -88,7 +74,6 @@ export function createPublishingTokenRequestBodyToJSON( ), ); } - export function createPublishingTokenRequestBodyFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/createschemastoreitem.ts b/src/sdk/models/operations/createschemastoreitem.ts index c747dce2..854ed23d 100644 --- a/src/sdk/models/operations/createschemastoreitem.ts +++ b/src/sdk/models/operations/createschemastoreitem.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -42,22 +42,10 @@ export type CreateSchemaStoreItemRequestBody = { /** @internal */ export const Format$inboundSchema: z.ZodNativeEnum = z .nativeEnum(Format); - /** @internal */ export const Format$outboundSchema: z.ZodNativeEnum = Format$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Format$ { - /** @deprecated use `Format$inboundSchema` instead. */ - export const inboundSchema = Format$inboundSchema; - /** @deprecated use `Format$outboundSchema` instead. */ - export const outboundSchema = Format$outboundSchema; -} - /** @internal */ export const CreateSchemaStoreItemRequestBody$inboundSchema: z.ZodType< CreateSchemaStoreItemRequestBody, @@ -69,7 +57,6 @@ export const CreateSchemaStoreItemRequestBody$inboundSchema: z.ZodType< sdkClassname: z.string(), spec: z.string(), }); - /** @internal */ export type CreateSchemaStoreItemRequestBody$Outbound = { format: string; @@ -90,19 +77,6 @@ export const CreateSchemaStoreItemRequestBody$outboundSchema: z.ZodType< spec: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateSchemaStoreItemRequestBody$ { - /** @deprecated use `CreateSchemaStoreItemRequestBody$inboundSchema` instead. */ - export const inboundSchema = CreateSchemaStoreItemRequestBody$inboundSchema; - /** @deprecated use `CreateSchemaStoreItemRequestBody$outboundSchema` instead. */ - export const outboundSchema = CreateSchemaStoreItemRequestBody$outboundSchema; - /** @deprecated use `CreateSchemaStoreItemRequestBody$Outbound` instead. */ - export type Outbound = CreateSchemaStoreItemRequestBody$Outbound; -} - export function createSchemaStoreItemRequestBodyToJSON( createSchemaStoreItemRequestBody: CreateSchemaStoreItemRequestBody, ): string { @@ -112,7 +86,6 @@ export function createSchemaStoreItemRequestBodyToJSON( ), ); } - export function createSchemaStoreItemRequestBodyFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/createworkspacetoken.ts b/src/sdk/models/operations/createworkspacetoken.ts index 25093d0a..adca5ecc 100644 --- a/src/sdk/models/operations/createworkspacetoken.ts +++ b/src/sdk/models/operations/createworkspacetoken.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -33,7 +33,6 @@ export const CreateWorkspaceTokenGlobals$inboundSchema: z.ZodType< "workspace_id": "workspaceId", }); }); - /** @internal */ export type CreateWorkspaceTokenGlobals$Outbound = { workspace_id?: string | undefined; @@ -52,19 +51,6 @@ export const CreateWorkspaceTokenGlobals$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateWorkspaceTokenGlobals$ { - /** @deprecated use `CreateWorkspaceTokenGlobals$inboundSchema` instead. */ - export const inboundSchema = CreateWorkspaceTokenGlobals$inboundSchema; - /** @deprecated use `CreateWorkspaceTokenGlobals$outboundSchema` instead. */ - export const outboundSchema = CreateWorkspaceTokenGlobals$outboundSchema; - /** @deprecated use `CreateWorkspaceTokenGlobals$Outbound` instead. */ - export type Outbound = CreateWorkspaceTokenGlobals$Outbound; -} - export function createWorkspaceTokenGlobalsToJSON( createWorkspaceTokenGlobals: CreateWorkspaceTokenGlobals, ): string { @@ -74,7 +60,6 @@ export function createWorkspaceTokenGlobalsToJSON( ), ); } - export function createWorkspaceTokenGlobalsFromJSON( jsonString: string, ): SafeParseResult { @@ -99,7 +84,6 @@ export const CreateWorkspaceTokenRequest$inboundSchema: z.ZodType< "WorkspaceToken": "workspaceToken", }); }); - /** @internal */ export type CreateWorkspaceTokenRequest$Outbound = { workspace_id?: string | undefined; @@ -121,19 +105,6 @@ export const CreateWorkspaceTokenRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateWorkspaceTokenRequest$ { - /** @deprecated use `CreateWorkspaceTokenRequest$inboundSchema` instead. */ - export const inboundSchema = CreateWorkspaceTokenRequest$inboundSchema; - /** @deprecated use `CreateWorkspaceTokenRequest$outboundSchema` instead. */ - export const outboundSchema = CreateWorkspaceTokenRequest$outboundSchema; - /** @deprecated use `CreateWorkspaceTokenRequest$Outbound` instead. */ - export type Outbound = CreateWorkspaceTokenRequest$Outbound; -} - export function createWorkspaceTokenRequestToJSON( createWorkspaceTokenRequest: CreateWorkspaceTokenRequest, ): string { @@ -143,7 +114,6 @@ export function createWorkspaceTokenRequestToJSON( ), ); } - export function createWorkspaceTokenRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/deletebillingaddon.ts b/src/sdk/models/operations/deletebillingaddon.ts index f57b4c98..09da6d5e 100644 --- a/src/sdk/models/operations/deletebillingaddon.ts +++ b/src/sdk/models/operations/deletebillingaddon.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -28,7 +28,6 @@ export const DeleteBillingAddOnRequest$inboundSchema: z.ZodType< "add_on": "addOn", }); }); - /** @internal */ export type DeleteBillingAddOnRequest$Outbound = { add_on: string; @@ -47,19 +46,6 @@ export const DeleteBillingAddOnRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteBillingAddOnRequest$ { - /** @deprecated use `DeleteBillingAddOnRequest$inboundSchema` instead. */ - export const inboundSchema = DeleteBillingAddOnRequest$inboundSchema; - /** @deprecated use `DeleteBillingAddOnRequest$outboundSchema` instead. */ - export const outboundSchema = DeleteBillingAddOnRequest$outboundSchema; - /** @deprecated use `DeleteBillingAddOnRequest$Outbound` instead. */ - export type Outbound = DeleteBillingAddOnRequest$Outbound; -} - export function deleteBillingAddOnRequestToJSON( deleteBillingAddOnRequest: DeleteBillingAddOnRequest, ): string { @@ -67,7 +53,6 @@ export function deleteBillingAddOnRequestToJSON( DeleteBillingAddOnRequest$outboundSchema.parse(deleteBillingAddOnRequest), ); } - export function deleteBillingAddOnRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/deletepublishingtoken.ts b/src/sdk/models/operations/deletepublishingtoken.ts index d71f9d2a..f861d6d9 100644 --- a/src/sdk/models/operations/deletepublishingtoken.ts +++ b/src/sdk/models/operations/deletepublishingtoken.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -22,7 +22,6 @@ export const DeletePublishingTokenRequest$inboundSchema: z.ZodType< > = z.object({ tokenID: z.string(), }); - /** @internal */ export type DeletePublishingTokenRequest$Outbound = { tokenID: string; @@ -37,19 +36,6 @@ export const DeletePublishingTokenRequest$outboundSchema: z.ZodType< tokenID: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeletePublishingTokenRequest$ { - /** @deprecated use `DeletePublishingTokenRequest$inboundSchema` instead. */ - export const inboundSchema = DeletePublishingTokenRequest$inboundSchema; - /** @deprecated use `DeletePublishingTokenRequest$outboundSchema` instead. */ - export const outboundSchema = DeletePublishingTokenRequest$outboundSchema; - /** @deprecated use `DeletePublishingTokenRequest$Outbound` instead. */ - export type Outbound = DeletePublishingTokenRequest$Outbound; -} - export function deletePublishingTokenRequestToJSON( deletePublishingTokenRequest: DeletePublishingTokenRequest, ): string { @@ -59,7 +45,6 @@ export function deletePublishingTokenRequestToJSON( ), ); } - export function deletePublishingTokenRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/deleteworkspacetoken.ts b/src/sdk/models/operations/deleteworkspacetoken.ts index 187ba9e7..fad839f0 100644 --- a/src/sdk/models/operations/deleteworkspacetoken.ts +++ b/src/sdk/models/operations/deleteworkspacetoken.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -35,7 +35,6 @@ export const DeleteWorkspaceTokenGlobals$inboundSchema: z.ZodType< "workspace_id": "workspaceId", }); }); - /** @internal */ export type DeleteWorkspaceTokenGlobals$Outbound = { workspace_id?: string | undefined; @@ -54,19 +53,6 @@ export const DeleteWorkspaceTokenGlobals$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteWorkspaceTokenGlobals$ { - /** @deprecated use `DeleteWorkspaceTokenGlobals$inboundSchema` instead. */ - export const inboundSchema = DeleteWorkspaceTokenGlobals$inboundSchema; - /** @deprecated use `DeleteWorkspaceTokenGlobals$outboundSchema` instead. */ - export const outboundSchema = DeleteWorkspaceTokenGlobals$outboundSchema; - /** @deprecated use `DeleteWorkspaceTokenGlobals$Outbound` instead. */ - export type Outbound = DeleteWorkspaceTokenGlobals$Outbound; -} - export function deleteWorkspaceTokenGlobalsToJSON( deleteWorkspaceTokenGlobals: DeleteWorkspaceTokenGlobals, ): string { @@ -76,7 +62,6 @@ export function deleteWorkspaceTokenGlobalsToJSON( ), ); } - export function deleteWorkspaceTokenGlobalsFromJSON( jsonString: string, ): SafeParseResult { @@ -100,7 +85,6 @@ export const DeleteWorkspaceTokenRequest$inboundSchema: z.ZodType< "workspace_id": "workspaceId", }); }); - /** @internal */ export type DeleteWorkspaceTokenRequest$Outbound = { workspace_id?: string | undefined; @@ -121,19 +105,6 @@ export const DeleteWorkspaceTokenRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteWorkspaceTokenRequest$ { - /** @deprecated use `DeleteWorkspaceTokenRequest$inboundSchema` instead. */ - export const inboundSchema = DeleteWorkspaceTokenRequest$inboundSchema; - /** @deprecated use `DeleteWorkspaceTokenRequest$outboundSchema` instead. */ - export const outboundSchema = DeleteWorkspaceTokenRequest$outboundSchema; - /** @deprecated use `DeleteWorkspaceTokenRequest$Outbound` instead. */ - export type Outbound = DeleteWorkspaceTokenRequest$Outbound; -} - export function deleteWorkspaceTokenRequestToJSON( deleteWorkspaceTokenRequest: DeleteWorkspaceTokenRequest, ): string { @@ -143,7 +114,6 @@ export function deleteWorkspaceTokenRequestToJSON( ), ); } - export function deleteWorkspaceTokenRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/generatecodesamplepreviewasync.ts b/src/sdk/models/operations/generatecodesamplepreviewasync.ts index ddef4da7..41d195cb 100644 --- a/src/sdk/models/operations/generatecodesamplepreviewasync.ts +++ b/src/sdk/models/operations/generatecodesamplepreviewasync.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -34,7 +34,6 @@ export const GenerateCodeSamplePreviewAsyncResponseBody$inboundSchema: "job_id": "jobId", }); }); - /** @internal */ export type GenerateCodeSamplePreviewAsyncResponseBody$Outbound = { job_id: string; @@ -56,21 +55,6 @@ export const GenerateCodeSamplePreviewAsyncResponseBody$outboundSchema: }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GenerateCodeSamplePreviewAsyncResponseBody$ { - /** @deprecated use `GenerateCodeSamplePreviewAsyncResponseBody$inboundSchema` instead. */ - export const inboundSchema = - GenerateCodeSamplePreviewAsyncResponseBody$inboundSchema; - /** @deprecated use `GenerateCodeSamplePreviewAsyncResponseBody$outboundSchema` instead. */ - export const outboundSchema = - GenerateCodeSamplePreviewAsyncResponseBody$outboundSchema; - /** @deprecated use `GenerateCodeSamplePreviewAsyncResponseBody$Outbound` instead. */ - export type Outbound = GenerateCodeSamplePreviewAsyncResponseBody$Outbound; -} - export function generateCodeSamplePreviewAsyncResponseBodyToJSON( generateCodeSamplePreviewAsyncResponseBody: GenerateCodeSamplePreviewAsyncResponseBody, @@ -81,7 +65,6 @@ export function generateCodeSamplePreviewAsyncResponseBodyToJSON( ), ); } - export function generateCodeSamplePreviewAsyncResponseBodyFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/sdk/models/operations/getaccesstoken.ts b/src/sdk/models/operations/getaccesstoken.ts index 2a48c213..d3b35e9a 100644 --- a/src/sdk/models/operations/getaccesstoken.ts +++ b/src/sdk/models/operations/getaccesstoken.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -27,7 +27,6 @@ export const GetAccessTokenRequest$inboundSchema: z.ZodType< "workspace_id": "workspaceId", }); }); - /** @internal */ export type GetAccessTokenRequest$Outbound = { workspace_id: string; @@ -46,19 +45,6 @@ export const GetAccessTokenRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAccessTokenRequest$ { - /** @deprecated use `GetAccessTokenRequest$inboundSchema` instead. */ - export const inboundSchema = GetAccessTokenRequest$inboundSchema; - /** @deprecated use `GetAccessTokenRequest$outboundSchema` instead. */ - export const outboundSchema = GetAccessTokenRequest$outboundSchema; - /** @deprecated use `GetAccessTokenRequest$Outbound` instead. */ - export type Outbound = GetAccessTokenRequest$Outbound; -} - export function getAccessTokenRequestToJSON( getAccessTokenRequest: GetAccessTokenRequest, ): string { @@ -66,7 +52,6 @@ export function getAccessTokenRequestToJSON( GetAccessTokenRequest$outboundSchema.parse(getAccessTokenRequest), ); } - export function getAccessTokenRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getblob.ts b/src/sdk/models/operations/getblob.ts index 8432dfdd..7d05e2fb 100644 --- a/src/sdk/models/operations/getblob.ts +++ b/src/sdk/models/operations/getblob.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -32,7 +32,6 @@ export const GetBlobRequest$inboundSchema: z.ZodType< "namespace_name": "namespaceName", }); }); - /** @internal */ export type GetBlobRequest$Outbound = { organization_slug: string; @@ -59,23 +58,9 @@ export const GetBlobRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetBlobRequest$ { - /** @deprecated use `GetBlobRequest$inboundSchema` instead. */ - export const inboundSchema = GetBlobRequest$inboundSchema; - /** @deprecated use `GetBlobRequest$outboundSchema` instead. */ - export const outboundSchema = GetBlobRequest$outboundSchema; - /** @deprecated use `GetBlobRequest$Outbound` instead. */ - export type Outbound = GetBlobRequest$Outbound; -} - export function getBlobRequestToJSON(getBlobRequest: GetBlobRequest): string { return JSON.stringify(GetBlobRequest$outboundSchema.parse(getBlobRequest)); } - export function getBlobRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getchangesreportsignedurl.ts b/src/sdk/models/operations/getchangesreportsignedurl.ts index a6c6c59a..6114695c 100644 --- a/src/sdk/models/operations/getchangesreportsignedurl.ts +++ b/src/sdk/models/operations/getchangesreportsignedurl.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -29,7 +29,6 @@ export const GetChangesReportSignedUrlRequest$inboundSchema: z.ZodType< > = z.object({ documentChecksum: z.string(), }); - /** @internal */ export type GetChangesReportSignedUrlRequest$Outbound = { documentChecksum: string; @@ -44,19 +43,6 @@ export const GetChangesReportSignedUrlRequest$outboundSchema: z.ZodType< documentChecksum: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetChangesReportSignedUrlRequest$ { - /** @deprecated use `GetChangesReportSignedUrlRequest$inboundSchema` instead. */ - export const inboundSchema = GetChangesReportSignedUrlRequest$inboundSchema; - /** @deprecated use `GetChangesReportSignedUrlRequest$outboundSchema` instead. */ - export const outboundSchema = GetChangesReportSignedUrlRequest$outboundSchema; - /** @deprecated use `GetChangesReportSignedUrlRequest$Outbound` instead. */ - export type Outbound = GetChangesReportSignedUrlRequest$Outbound; -} - export function getChangesReportSignedUrlRequestToJSON( getChangesReportSignedUrlRequest: GetChangesReportSignedUrlRequest, ): string { @@ -66,7 +52,6 @@ export function getChangesReportSignedUrlRequestToJSON( ), ); } - export function getChangesReportSignedUrlRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -85,7 +70,6 @@ export const GetChangesReportSignedUrlSignedAccess$inboundSchema: z.ZodType< > = z.object({ url: z.string(), }); - /** @internal */ export type GetChangesReportSignedUrlSignedAccess$Outbound = { url: string; @@ -100,21 +84,6 @@ export const GetChangesReportSignedUrlSignedAccess$outboundSchema: z.ZodType< url: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetChangesReportSignedUrlSignedAccess$ { - /** @deprecated use `GetChangesReportSignedUrlSignedAccess$inboundSchema` instead. */ - export const inboundSchema = - GetChangesReportSignedUrlSignedAccess$inboundSchema; - /** @deprecated use `GetChangesReportSignedUrlSignedAccess$outboundSchema` instead. */ - export const outboundSchema = - GetChangesReportSignedUrlSignedAccess$outboundSchema; - /** @deprecated use `GetChangesReportSignedUrlSignedAccess$Outbound` instead. */ - export type Outbound = GetChangesReportSignedUrlSignedAccess$Outbound; -} - export function getChangesReportSignedUrlSignedAccessToJSON( getChangesReportSignedUrlSignedAccess: GetChangesReportSignedUrlSignedAccess, ): string { @@ -124,7 +93,6 @@ export function getChangesReportSignedUrlSignedAccessToJSON( ), ); } - export function getChangesReportSignedUrlSignedAccessFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getcodesamplepreviewasync.ts b/src/sdk/models/operations/getcodesamplepreviewasync.ts index 54164328..becb91f7 100644 --- a/src/sdk/models/operations/getcodesamplepreviewasync.ts +++ b/src/sdk/models/operations/getcodesamplepreviewasync.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -37,7 +37,6 @@ export const GetCodeSamplePreviewAsyncRequest$inboundSchema: z.ZodType< > = z.object({ jobID: z.string(), }); - /** @internal */ export type GetCodeSamplePreviewAsyncRequest$Outbound = { jobID: string; @@ -52,19 +51,6 @@ export const GetCodeSamplePreviewAsyncRequest$outboundSchema: z.ZodType< jobID: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetCodeSamplePreviewAsyncRequest$ { - /** @deprecated use `GetCodeSamplePreviewAsyncRequest$inboundSchema` instead. */ - export const inboundSchema = GetCodeSamplePreviewAsyncRequest$inboundSchema; - /** @deprecated use `GetCodeSamplePreviewAsyncRequest$outboundSchema` instead. */ - export const outboundSchema = GetCodeSamplePreviewAsyncRequest$outboundSchema; - /** @deprecated use `GetCodeSamplePreviewAsyncRequest$Outbound` instead. */ - export type Outbound = GetCodeSamplePreviewAsyncRequest$Outbound; -} - export function getCodeSamplePreviewAsyncRequestToJSON( getCodeSamplePreviewAsyncRequest: GetCodeSamplePreviewAsyncRequest, ): string { @@ -74,7 +60,6 @@ export function getCodeSamplePreviewAsyncRequestToJSON( ), ); } - export function getCodeSamplePreviewAsyncRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -93,7 +78,6 @@ export const GetCodeSamplePreviewAsyncResponseBody$inboundSchema: z.ZodType< > = z.object({ status: shared.CodeSamplesJobStatus$inboundSchema, }); - /** @internal */ export type GetCodeSamplePreviewAsyncResponseBody$Outbound = { status: string; @@ -108,21 +92,6 @@ export const GetCodeSamplePreviewAsyncResponseBody$outboundSchema: z.ZodType< status: shared.CodeSamplesJobStatus$outboundSchema, }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetCodeSamplePreviewAsyncResponseBody$ { - /** @deprecated use `GetCodeSamplePreviewAsyncResponseBody$inboundSchema` instead. */ - export const inboundSchema = - GetCodeSamplePreviewAsyncResponseBody$inboundSchema; - /** @deprecated use `GetCodeSamplePreviewAsyncResponseBody$outboundSchema` instead. */ - export const outboundSchema = - GetCodeSamplePreviewAsyncResponseBody$outboundSchema; - /** @deprecated use `GetCodeSamplePreviewAsyncResponseBody$Outbound` instead. */ - export type Outbound = GetCodeSamplePreviewAsyncResponseBody$Outbound; -} - export function getCodeSamplePreviewAsyncResponseBodyToJSON( getCodeSamplePreviewAsyncResponseBody: GetCodeSamplePreviewAsyncResponseBody, ): string { @@ -132,7 +101,6 @@ export function getCodeSamplePreviewAsyncResponseBodyToJSON( ), ); } - export function getCodeSamplePreviewAsyncResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -153,7 +121,6 @@ export const GetCodeSamplePreviewAsyncResponse$inboundSchema: z.ZodType< shared.UsageSnippets$inboundSchema, z.lazy(() => GetCodeSamplePreviewAsyncResponseBody$inboundSchema), ]); - /** @internal */ export type GetCodeSamplePreviewAsyncResponse$Outbound = | shared.UsageSnippets$Outbound @@ -169,20 +136,6 @@ export const GetCodeSamplePreviewAsyncResponse$outboundSchema: z.ZodType< z.lazy(() => GetCodeSamplePreviewAsyncResponseBody$outboundSchema), ]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetCodeSamplePreviewAsyncResponse$ { - /** @deprecated use `GetCodeSamplePreviewAsyncResponse$inboundSchema` instead. */ - export const inboundSchema = GetCodeSamplePreviewAsyncResponse$inboundSchema; - /** @deprecated use `GetCodeSamplePreviewAsyncResponse$outboundSchema` instead. */ - export const outboundSchema = - GetCodeSamplePreviewAsyncResponse$outboundSchema; - /** @deprecated use `GetCodeSamplePreviewAsyncResponse$Outbound` instead. */ - export type Outbound = GetCodeSamplePreviewAsyncResponse$Outbound; -} - export function getCodeSamplePreviewAsyncResponseToJSON( getCodeSamplePreviewAsyncResponse: GetCodeSamplePreviewAsyncResponse, ): string { @@ -192,7 +145,6 @@ export function getCodeSamplePreviewAsyncResponseToJSON( ), ); } - export function getCodeSamplePreviewAsyncResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getcodesamples.ts b/src/sdk/models/operations/getcodesamples.ts index 150ca4d3..5dc3d97d 100644 --- a/src/sdk/models/operations/getcodesamples.ts +++ b/src/sdk/models/operations/getcodesamples.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -42,7 +42,6 @@ export const MethodPaths$inboundSchema: z.ZodType< method: shared.HttpMethod$inboundSchema, path: z.string(), }); - /** @internal */ export type MethodPaths$Outbound = { method: string; @@ -59,23 +58,9 @@ export const MethodPaths$outboundSchema: z.ZodType< path: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MethodPaths$ { - /** @deprecated use `MethodPaths$inboundSchema` instead. */ - export const inboundSchema = MethodPaths$inboundSchema; - /** @deprecated use `MethodPaths$outboundSchema` instead. */ - export const outboundSchema = MethodPaths$outboundSchema; - /** @deprecated use `MethodPaths$Outbound` instead. */ - export type Outbound = MethodPaths$Outbound; -} - export function methodPathsToJSON(methodPaths: MethodPaths): string { return JSON.stringify(MethodPaths$outboundSchema.parse(methodPaths)); } - export function methodPathsFromJSON( jsonString: string, ): SafeParseResult { @@ -103,7 +88,6 @@ export const GetCodeSamplesRequest$inboundSchema: z.ZodType< "method_paths": "methodPaths", }); }); - /** @internal */ export type GetCodeSamplesRequest$Outbound = { registry_url: string; @@ -130,19 +114,6 @@ export const GetCodeSamplesRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetCodeSamplesRequest$ { - /** @deprecated use `GetCodeSamplesRequest$inboundSchema` instead. */ - export const inboundSchema = GetCodeSamplesRequest$inboundSchema; - /** @deprecated use `GetCodeSamplesRequest$outboundSchema` instead. */ - export const outboundSchema = GetCodeSamplesRequest$outboundSchema; - /** @deprecated use `GetCodeSamplesRequest$Outbound` instead. */ - export type Outbound = GetCodeSamplesRequest$Outbound; -} - export function getCodeSamplesRequestToJSON( getCodeSamplesRequest: GetCodeSamplesRequest, ): string { @@ -150,7 +121,6 @@ export function getCodeSamplesRequestToJSON( GetCodeSamplesRequest$outboundSchema.parse(getCodeSamplesRequest), ); } - export function getCodeSamplesRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getgithubaction.ts b/src/sdk/models/operations/getgithubaction.ts index 9119e184..6826e436 100644 --- a/src/sdk/models/operations/getgithubaction.ts +++ b/src/sdk/models/operations/getgithubaction.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -26,7 +26,6 @@ export const GetGitHubActionRequest$inboundSchema: z.ZodType< org: z.string(), repo: z.string(), }); - /** @internal */ export type GetGitHubActionRequest$Outbound = { targetName?: string | undefined; @@ -45,19 +44,6 @@ export const GetGitHubActionRequest$outboundSchema: z.ZodType< repo: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetGitHubActionRequest$ { - /** @deprecated use `GetGitHubActionRequest$inboundSchema` instead. */ - export const inboundSchema = GetGitHubActionRequest$inboundSchema; - /** @deprecated use `GetGitHubActionRequest$outboundSchema` instead. */ - export const outboundSchema = GetGitHubActionRequest$outboundSchema; - /** @deprecated use `GetGitHubActionRequest$Outbound` instead. */ - export type Outbound = GetGitHubActionRequest$Outbound; -} - export function getGitHubActionRequestToJSON( getGitHubActionRequest: GetGitHubActionRequest, ): string { @@ -65,7 +51,6 @@ export function getGitHubActionRequestToJSON( GetGitHubActionRequest$outboundSchema.parse(getGitHubActionRequest), ); } - export function getGitHubActionRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getgithubsetupstate.ts b/src/sdk/models/operations/getgithubsetupstate.ts index eda3d54b..627dd001 100644 --- a/src/sdk/models/operations/getgithubsetupstate.ts +++ b/src/sdk/models/operations/getgithubsetupstate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -28,7 +28,6 @@ export const GetGithubSetupStateRequest$inboundSchema: z.ZodType< "generate_gen_lock_id": "generateGenLockId", }); }); - /** @internal */ export type GetGithubSetupStateRequest$Outbound = { org: string; @@ -51,19 +50,6 @@ export const GetGithubSetupStateRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetGithubSetupStateRequest$ { - /** @deprecated use `GetGithubSetupStateRequest$inboundSchema` instead. */ - export const inboundSchema = GetGithubSetupStateRequest$inboundSchema; - /** @deprecated use `GetGithubSetupStateRequest$outboundSchema` instead. */ - export const outboundSchema = GetGithubSetupStateRequest$outboundSchema; - /** @deprecated use `GetGithubSetupStateRequest$Outbound` instead. */ - export type Outbound = GetGithubSetupStateRequest$Outbound; -} - export function getGithubSetupStateRequestToJSON( getGithubSetupStateRequest: GetGithubSetupStateRequest, ): string { @@ -71,7 +57,6 @@ export function getGithubSetupStateRequestToJSON( GetGithubSetupStateRequest$outboundSchema.parse(getGithubSetupStateRequest), ); } - export function getGithubSetupStateRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getlintingreportsignedurl.ts b/src/sdk/models/operations/getlintingreportsignedurl.ts index cfad5aad..aaa494f6 100644 --- a/src/sdk/models/operations/getlintingreportsignedurl.ts +++ b/src/sdk/models/operations/getlintingreportsignedurl.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -29,7 +29,6 @@ export const GetLintingReportSignedUrlRequest$inboundSchema: z.ZodType< > = z.object({ documentChecksum: z.string(), }); - /** @internal */ export type GetLintingReportSignedUrlRequest$Outbound = { documentChecksum: string; @@ -44,19 +43,6 @@ export const GetLintingReportSignedUrlRequest$outboundSchema: z.ZodType< documentChecksum: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetLintingReportSignedUrlRequest$ { - /** @deprecated use `GetLintingReportSignedUrlRequest$inboundSchema` instead. */ - export const inboundSchema = GetLintingReportSignedUrlRequest$inboundSchema; - /** @deprecated use `GetLintingReportSignedUrlRequest$outboundSchema` instead. */ - export const outboundSchema = GetLintingReportSignedUrlRequest$outboundSchema; - /** @deprecated use `GetLintingReportSignedUrlRequest$Outbound` instead. */ - export type Outbound = GetLintingReportSignedUrlRequest$Outbound; -} - export function getLintingReportSignedUrlRequestToJSON( getLintingReportSignedUrlRequest: GetLintingReportSignedUrlRequest, ): string { @@ -66,7 +52,6 @@ export function getLintingReportSignedUrlRequestToJSON( ), ); } - export function getLintingReportSignedUrlRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -85,7 +70,6 @@ export const GetLintingReportSignedUrlSignedAccess$inboundSchema: z.ZodType< > = z.object({ url: z.string(), }); - /** @internal */ export type GetLintingReportSignedUrlSignedAccess$Outbound = { url: string; @@ -100,21 +84,6 @@ export const GetLintingReportSignedUrlSignedAccess$outboundSchema: z.ZodType< url: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetLintingReportSignedUrlSignedAccess$ { - /** @deprecated use `GetLintingReportSignedUrlSignedAccess$inboundSchema` instead. */ - export const inboundSchema = - GetLintingReportSignedUrlSignedAccess$inboundSchema; - /** @deprecated use `GetLintingReportSignedUrlSignedAccess$outboundSchema` instead. */ - export const outboundSchema = - GetLintingReportSignedUrlSignedAccess$outboundSchema; - /** @deprecated use `GetLintingReportSignedUrlSignedAccess$Outbound` instead. */ - export type Outbound = GetLintingReportSignedUrlSignedAccess$Outbound; -} - export function getLintingReportSignedUrlSignedAccessToJSON( getLintingReportSignedUrlSignedAccess: GetLintingReportSignedUrlSignedAccess, ): string { @@ -124,7 +93,6 @@ export function getLintingReportSignedUrlSignedAccessToJSON( ), ); } - export function getLintingReportSignedUrlSignedAccessFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getmanifest.ts b/src/sdk/models/operations/getmanifest.ts index 6b731423..d0b40e85 100644 --- a/src/sdk/models/operations/getmanifest.ts +++ b/src/sdk/models/operations/getmanifest.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -36,7 +36,6 @@ export const GetManifestRequest$inboundSchema: z.ZodType< "revision_reference": "revisionReference", }); }); - /** @internal */ export type GetManifestRequest$Outbound = { organization_slug: string; @@ -64,19 +63,6 @@ export const GetManifestRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetManifestRequest$ { - /** @deprecated use `GetManifestRequest$inboundSchema` instead. */ - export const inboundSchema = GetManifestRequest$inboundSchema; - /** @deprecated use `GetManifestRequest$outboundSchema` instead. */ - export const outboundSchema = GetManifestRequest$outboundSchema; - /** @deprecated use `GetManifestRequest$Outbound` instead. */ - export type Outbound = GetManifestRequest$Outbound; -} - export function getManifestRequestToJSON( getManifestRequest: GetManifestRequest, ): string { @@ -84,7 +70,6 @@ export function getManifestRequestToJSON( GetManifestRequest$outboundSchema.parse(getManifestRequest), ); } - export function getManifestRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getorganization.ts b/src/sdk/models/operations/getorganization.ts index 55df4eba..26416c15 100644 --- a/src/sdk/models/operations/getorganization.ts +++ b/src/sdk/models/operations/getorganization.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -22,7 +22,6 @@ export const GetOrganizationRequest$inboundSchema: z.ZodType< > = z.object({ organizationID: z.string(), }); - /** @internal */ export type GetOrganizationRequest$Outbound = { organizationID: string; @@ -37,19 +36,6 @@ export const GetOrganizationRequest$outboundSchema: z.ZodType< organizationID: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetOrganizationRequest$ { - /** @deprecated use `GetOrganizationRequest$inboundSchema` instead. */ - export const inboundSchema = GetOrganizationRequest$inboundSchema; - /** @deprecated use `GetOrganizationRequest$outboundSchema` instead. */ - export const outboundSchema = GetOrganizationRequest$outboundSchema; - /** @deprecated use `GetOrganizationRequest$Outbound` instead. */ - export type Outbound = GetOrganizationRequest$Outbound; -} - export function getOrganizationRequestToJSON( getOrganizationRequest: GetOrganizationRequest, ): string { @@ -57,7 +43,6 @@ export function getOrganizationRequestToJSON( GetOrganizationRequest$outboundSchema.parse(getOrganizationRequest), ); } - export function getOrganizationRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getpublishingtokenbyid.ts b/src/sdk/models/operations/getpublishingtokenbyid.ts index f330ad06..1bd44364 100644 --- a/src/sdk/models/operations/getpublishingtokenbyid.ts +++ b/src/sdk/models/operations/getpublishingtokenbyid.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -22,7 +22,6 @@ export const GetPublishingTokenByIDRequest$inboundSchema: z.ZodType< > = z.object({ tokenID: z.string(), }); - /** @internal */ export type GetPublishingTokenByIDRequest$Outbound = { tokenID: string; @@ -37,19 +36,6 @@ export const GetPublishingTokenByIDRequest$outboundSchema: z.ZodType< tokenID: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetPublishingTokenByIDRequest$ { - /** @deprecated use `GetPublishingTokenByIDRequest$inboundSchema` instead. */ - export const inboundSchema = GetPublishingTokenByIDRequest$inboundSchema; - /** @deprecated use `GetPublishingTokenByIDRequest$outboundSchema` instead. */ - export const outboundSchema = GetPublishingTokenByIDRequest$outboundSchema; - /** @deprecated use `GetPublishingTokenByIDRequest$Outbound` instead. */ - export type Outbound = GetPublishingTokenByIDRequest$Outbound; -} - export function getPublishingTokenByIDRequestToJSON( getPublishingTokenByIDRequest: GetPublishingTokenByIDRequest, ): string { @@ -59,7 +45,6 @@ export function getPublishingTokenByIDRequestToJSON( ), ); } - export function getPublishingTokenByIDRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getpublishingtokenpublicmetadata.ts b/src/sdk/models/operations/getpublishingtokenpublicmetadata.ts index e3e5022f..260f31da 100644 --- a/src/sdk/models/operations/getpublishingtokenpublicmetadata.ts +++ b/src/sdk/models/operations/getpublishingtokenpublicmetadata.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -34,7 +34,6 @@ export const GetPublishingTokenPublicMetadataRequest$inboundSchema: z.ZodType< > = z.object({ tokenID: z.string(), }); - /** @internal */ export type GetPublishingTokenPublicMetadataRequest$Outbound = { tokenID: string; @@ -49,21 +48,6 @@ export const GetPublishingTokenPublicMetadataRequest$outboundSchema: z.ZodType< tokenID: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetPublishingTokenPublicMetadataRequest$ { - /** @deprecated use `GetPublishingTokenPublicMetadataRequest$inboundSchema` instead. */ - export const inboundSchema = - GetPublishingTokenPublicMetadataRequest$inboundSchema; - /** @deprecated use `GetPublishingTokenPublicMetadataRequest$outboundSchema` instead. */ - export const outboundSchema = - GetPublishingTokenPublicMetadataRequest$outboundSchema; - /** @deprecated use `GetPublishingTokenPublicMetadataRequest$Outbound` instead. */ - export type Outbound = GetPublishingTokenPublicMetadataRequest$Outbound; -} - export function getPublishingTokenPublicMetadataRequestToJSON( getPublishingTokenPublicMetadataRequest: GetPublishingTokenPublicMetadataRequest, @@ -74,7 +58,6 @@ export function getPublishingTokenPublicMetadataRequestToJSON( ), ); } - export function getPublishingTokenPublicMetadataRequestFromJSON( jsonString: string, ): SafeParseResult< @@ -114,7 +97,6 @@ export const GetPublishingTokenPublicMetadataResponseBody$inboundSchema: "workspace_id": "workspaceId", }); }); - /** @internal */ export type GetPublishingTokenPublicMetadataResponseBody$Outbound = { organization_id?: string | undefined; @@ -146,21 +128,6 @@ export const GetPublishingTokenPublicMetadataResponseBody$outboundSchema: }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetPublishingTokenPublicMetadataResponseBody$ { - /** @deprecated use `GetPublishingTokenPublicMetadataResponseBody$inboundSchema` instead. */ - export const inboundSchema = - GetPublishingTokenPublicMetadataResponseBody$inboundSchema; - /** @deprecated use `GetPublishingTokenPublicMetadataResponseBody$outboundSchema` instead. */ - export const outboundSchema = - GetPublishingTokenPublicMetadataResponseBody$outboundSchema; - /** @deprecated use `GetPublishingTokenPublicMetadataResponseBody$Outbound` instead. */ - export type Outbound = GetPublishingTokenPublicMetadataResponseBody$Outbound; -} - export function getPublishingTokenPublicMetadataResponseBodyToJSON( getPublishingTokenPublicMetadataResponseBody: GetPublishingTokenPublicMetadataResponseBody, @@ -171,7 +138,6 @@ export function getPublishingTokenPublicMetadataResponseBodyToJSON( ), ); } - export function getPublishingTokenPublicMetadataResponseBodyFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/sdk/models/operations/getpublishingtokentargetbyid.ts b/src/sdk/models/operations/getpublishingtokentargetbyid.ts index 9272d3b0..de712f0b 100644 --- a/src/sdk/models/operations/getpublishingtokentargetbyid.ts +++ b/src/sdk/models/operations/getpublishingtokentargetbyid.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -22,7 +22,6 @@ export const GetPublishingTokenTargetByIDRequest$inboundSchema: z.ZodType< > = z.object({ tokenID: z.string(), }); - /** @internal */ export type GetPublishingTokenTargetByIDRequest$Outbound = { tokenID: string; @@ -37,21 +36,6 @@ export const GetPublishingTokenTargetByIDRequest$outboundSchema: z.ZodType< tokenID: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetPublishingTokenTargetByIDRequest$ { - /** @deprecated use `GetPublishingTokenTargetByIDRequest$inboundSchema` instead. */ - export const inboundSchema = - GetPublishingTokenTargetByIDRequest$inboundSchema; - /** @deprecated use `GetPublishingTokenTargetByIDRequest$outboundSchema` instead. */ - export const outboundSchema = - GetPublishingTokenTargetByIDRequest$outboundSchema; - /** @deprecated use `GetPublishingTokenTargetByIDRequest$Outbound` instead. */ - export type Outbound = GetPublishingTokenTargetByIDRequest$Outbound; -} - export function getPublishingTokenTargetByIDRequestToJSON( getPublishingTokenTargetByIDRequest: GetPublishingTokenTargetByIDRequest, ): string { @@ -61,7 +45,6 @@ export function getPublishingTokenTargetByIDRequestToJSON( ), ); } - export function getPublishingTokenTargetByIDRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getrevisions.ts b/src/sdk/models/operations/getrevisions.ts index 90a634bb..0af0f324 100644 --- a/src/sdk/models/operations/getrevisions.ts +++ b/src/sdk/models/operations/getrevisions.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -30,7 +30,6 @@ export const GetRevisionsRequest$inboundSchema: z.ZodType< "next_page_token": "nextPageToken", }); }); - /** @internal */ export type GetRevisionsRequest$Outbound = { namespace_name: string; @@ -52,19 +51,6 @@ export const GetRevisionsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetRevisionsRequest$ { - /** @deprecated use `GetRevisionsRequest$inboundSchema` instead. */ - export const inboundSchema = GetRevisionsRequest$inboundSchema; - /** @deprecated use `GetRevisionsRequest$outboundSchema` instead. */ - export const outboundSchema = GetRevisionsRequest$outboundSchema; - /** @deprecated use `GetRevisionsRequest$Outbound` instead. */ - export type Outbound = GetRevisionsRequest$Outbound; -} - export function getRevisionsRequestToJSON( getRevisionsRequest: GetRevisionsRequest, ): string { @@ -72,7 +58,6 @@ export function getRevisionsRequestToJSON( GetRevisionsRequest$outboundSchema.parse(getRevisionsRequest), ); } - export function getRevisionsRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/gettags.ts b/src/sdk/models/operations/gettags.ts index 2f5c2aae..ec7fe9e8 100644 --- a/src/sdk/models/operations/gettags.ts +++ b/src/sdk/models/operations/gettags.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -24,7 +24,6 @@ export const GetTagsRequest$inboundSchema: z.ZodType< "namespace_name": "namespaceName", }); }); - /** @internal */ export type GetTagsRequest$Outbound = { namespace_name: string; @@ -43,23 +42,9 @@ export const GetTagsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetTagsRequest$ { - /** @deprecated use `GetTagsRequest$inboundSchema` instead. */ - export const inboundSchema = GetTagsRequest$inboundSchema; - /** @deprecated use `GetTagsRequest$outboundSchema` instead. */ - export const outboundSchema = GetTagsRequest$outboundSchema; - /** @deprecated use `GetTagsRequest$Outbound` instead. */ - export type Outbound = GetTagsRequest$Outbound; -} - export function getTagsRequestToJSON(getTagsRequest: GetTagsRequest): string { return JSON.stringify(GetTagsRequest$outboundSchema.parse(getTagsRequest)); } - export function getTagsRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getworkspace.ts b/src/sdk/models/operations/getworkspace.ts index 38b9cd25..7011e266 100644 --- a/src/sdk/models/operations/getworkspace.ts +++ b/src/sdk/models/operations/getworkspace.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -31,7 +31,6 @@ export const GetWorkspaceGlobals$inboundSchema: z.ZodType< "workspace_id": "workspaceId", }); }); - /** @internal */ export type GetWorkspaceGlobals$Outbound = { workspace_id?: string | undefined; @@ -50,19 +49,6 @@ export const GetWorkspaceGlobals$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetWorkspaceGlobals$ { - /** @deprecated use `GetWorkspaceGlobals$inboundSchema` instead. */ - export const inboundSchema = GetWorkspaceGlobals$inboundSchema; - /** @deprecated use `GetWorkspaceGlobals$outboundSchema` instead. */ - export const outboundSchema = GetWorkspaceGlobals$outboundSchema; - /** @deprecated use `GetWorkspaceGlobals$Outbound` instead. */ - export type Outbound = GetWorkspaceGlobals$Outbound; -} - export function getWorkspaceGlobalsToJSON( getWorkspaceGlobals: GetWorkspaceGlobals, ): string { @@ -70,7 +56,6 @@ export function getWorkspaceGlobalsToJSON( GetWorkspaceGlobals$outboundSchema.parse(getWorkspaceGlobals), ); } - export function getWorkspaceGlobalsFromJSON( jsonString: string, ): SafeParseResult { @@ -93,7 +78,6 @@ export const GetWorkspaceRequest$inboundSchema: z.ZodType< "workspace_id": "workspaceId", }); }); - /** @internal */ export type GetWorkspaceRequest$Outbound = { workspace_id?: string | undefined; @@ -112,19 +96,6 @@ export const GetWorkspaceRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetWorkspaceRequest$ { - /** @deprecated use `GetWorkspaceRequest$inboundSchema` instead. */ - export const inboundSchema = GetWorkspaceRequest$inboundSchema; - /** @deprecated use `GetWorkspaceRequest$outboundSchema` instead. */ - export const outboundSchema = GetWorkspaceRequest$outboundSchema; - /** @deprecated use `GetWorkspaceRequest$Outbound` instead. */ - export type Outbound = GetWorkspaceRequest$Outbound; -} - export function getWorkspaceRequestToJSON( getWorkspaceRequest: GetWorkspaceRequest, ): string { @@ -132,7 +103,6 @@ export function getWorkspaceRequestToJSON( GetWorkspaceRequest$outboundSchema.parse(getWorkspaceRequest), ); } - export function getWorkspaceRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getworkspaceaccess.ts b/src/sdk/models/operations/getworkspaceaccess.ts index 9e531f2a..40ded3d8 100644 --- a/src/sdk/models/operations/getworkspaceaccess.ts +++ b/src/sdk/models/operations/getworkspaceaccess.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -32,7 +32,6 @@ export const GetWorkspaceAccessRequest$inboundSchema: z.ZodType< targetType: z.string().optional(), passive: z.boolean().optional(), }); - /** @internal */ export type GetWorkspaceAccessRequest$Outbound = { genLockId?: string | undefined; @@ -51,19 +50,6 @@ export const GetWorkspaceAccessRequest$outboundSchema: z.ZodType< passive: z.boolean().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetWorkspaceAccessRequest$ { - /** @deprecated use `GetWorkspaceAccessRequest$inboundSchema` instead. */ - export const inboundSchema = GetWorkspaceAccessRequest$inboundSchema; - /** @deprecated use `GetWorkspaceAccessRequest$outboundSchema` instead. */ - export const outboundSchema = GetWorkspaceAccessRequest$outboundSchema; - /** @deprecated use `GetWorkspaceAccessRequest$Outbound` instead. */ - export type Outbound = GetWorkspaceAccessRequest$Outbound; -} - export function getWorkspaceAccessRequestToJSON( getWorkspaceAccessRequest: GetWorkspaceAccessRequest, ): string { @@ -71,7 +57,6 @@ export function getWorkspaceAccessRequestToJSON( GetWorkspaceAccessRequest$outboundSchema.parse(getWorkspaceAccessRequest), ); } - export function getWorkspaceAccessRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getworkspaceeventsbytarget.ts b/src/sdk/models/operations/getworkspaceeventsbytarget.ts index 59a05742..0dfe4074 100644 --- a/src/sdk/models/operations/getworkspaceeventsbytarget.ts +++ b/src/sdk/models/operations/getworkspaceeventsbytarget.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -39,7 +39,6 @@ export const GetWorkspaceEventsByTargetGlobals$inboundSchema: z.ZodType< "workspace_id": "workspaceId", }); }); - /** @internal */ export type GetWorkspaceEventsByTargetGlobals$Outbound = { workspace_id?: string | undefined; @@ -58,20 +57,6 @@ export const GetWorkspaceEventsByTargetGlobals$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetWorkspaceEventsByTargetGlobals$ { - /** @deprecated use `GetWorkspaceEventsByTargetGlobals$inboundSchema` instead. */ - export const inboundSchema = GetWorkspaceEventsByTargetGlobals$inboundSchema; - /** @deprecated use `GetWorkspaceEventsByTargetGlobals$outboundSchema` instead. */ - export const outboundSchema = - GetWorkspaceEventsByTargetGlobals$outboundSchema; - /** @deprecated use `GetWorkspaceEventsByTargetGlobals$Outbound` instead. */ - export type Outbound = GetWorkspaceEventsByTargetGlobals$Outbound; -} - export function getWorkspaceEventsByTargetGlobalsToJSON( getWorkspaceEventsByTargetGlobals: GetWorkspaceEventsByTargetGlobals, ): string { @@ -81,7 +66,6 @@ export function getWorkspaceEventsByTargetGlobalsToJSON( ), ); } - export function getWorkspaceEventsByTargetGlobalsFromJSON( jsonString: string, ): SafeParseResult { @@ -110,7 +94,6 @@ export const GetWorkspaceEventsByTargetRequest$inboundSchema: z.ZodType< "after_created_at": "afterCreatedAt", }); }); - /** @internal */ export type GetWorkspaceEventsByTargetRequest$Outbound = { workspace_id?: string | undefined; @@ -135,20 +118,6 @@ export const GetWorkspaceEventsByTargetRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetWorkspaceEventsByTargetRequest$ { - /** @deprecated use `GetWorkspaceEventsByTargetRequest$inboundSchema` instead. */ - export const inboundSchema = GetWorkspaceEventsByTargetRequest$inboundSchema; - /** @deprecated use `GetWorkspaceEventsByTargetRequest$outboundSchema` instead. */ - export const outboundSchema = - GetWorkspaceEventsByTargetRequest$outboundSchema; - /** @deprecated use `GetWorkspaceEventsByTargetRequest$Outbound` instead. */ - export type Outbound = GetWorkspaceEventsByTargetRequest$Outbound; -} - export function getWorkspaceEventsByTargetRequestToJSON( getWorkspaceEventsByTargetRequest: GetWorkspaceEventsByTargetRequest, ): string { @@ -158,7 +127,6 @@ export function getWorkspaceEventsByTargetRequestToJSON( ), ); } - export function getWorkspaceEventsByTargetRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getworkspacefeatureflags.ts b/src/sdk/models/operations/getworkspacefeatureflags.ts index 1705ff82..a25a3324 100644 --- a/src/sdk/models/operations/getworkspacefeatureflags.ts +++ b/src/sdk/models/operations/getworkspacefeatureflags.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -31,7 +31,6 @@ export const GetWorkspaceFeatureFlagsGlobals$inboundSchema: z.ZodType< "workspace_id": "workspaceId", }); }); - /** @internal */ export type GetWorkspaceFeatureFlagsGlobals$Outbound = { workspace_id?: string | undefined; @@ -50,19 +49,6 @@ export const GetWorkspaceFeatureFlagsGlobals$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetWorkspaceFeatureFlagsGlobals$ { - /** @deprecated use `GetWorkspaceFeatureFlagsGlobals$inboundSchema` instead. */ - export const inboundSchema = GetWorkspaceFeatureFlagsGlobals$inboundSchema; - /** @deprecated use `GetWorkspaceFeatureFlagsGlobals$outboundSchema` instead. */ - export const outboundSchema = GetWorkspaceFeatureFlagsGlobals$outboundSchema; - /** @deprecated use `GetWorkspaceFeatureFlagsGlobals$Outbound` instead. */ - export type Outbound = GetWorkspaceFeatureFlagsGlobals$Outbound; -} - export function getWorkspaceFeatureFlagsGlobalsToJSON( getWorkspaceFeatureFlagsGlobals: GetWorkspaceFeatureFlagsGlobals, ): string { @@ -72,7 +58,6 @@ export function getWorkspaceFeatureFlagsGlobalsToJSON( ), ); } - export function getWorkspaceFeatureFlagsGlobalsFromJSON( jsonString: string, ): SafeParseResult { @@ -95,7 +80,6 @@ export const GetWorkspaceFeatureFlagsRequest$inboundSchema: z.ZodType< "workspace_id": "workspaceId", }); }); - /** @internal */ export type GetWorkspaceFeatureFlagsRequest$Outbound = { workspace_id?: string | undefined; @@ -114,19 +98,6 @@ export const GetWorkspaceFeatureFlagsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetWorkspaceFeatureFlagsRequest$ { - /** @deprecated use `GetWorkspaceFeatureFlagsRequest$inboundSchema` instead. */ - export const inboundSchema = GetWorkspaceFeatureFlagsRequest$inboundSchema; - /** @deprecated use `GetWorkspaceFeatureFlagsRequest$outboundSchema` instead. */ - export const outboundSchema = GetWorkspaceFeatureFlagsRequest$outboundSchema; - /** @deprecated use `GetWorkspaceFeatureFlagsRequest$Outbound` instead. */ - export type Outbound = GetWorkspaceFeatureFlagsRequest$Outbound; -} - export function getWorkspaceFeatureFlagsRequestToJSON( getWorkspaceFeatureFlagsRequest: GetWorkspaceFeatureFlagsRequest, ): string { @@ -136,7 +107,6 @@ export function getWorkspaceFeatureFlagsRequestToJSON( ), ); } - export function getWorkspaceFeatureFlagsRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getworkspacesettings.ts b/src/sdk/models/operations/getworkspacesettings.ts index f0652a9c..d36817fc 100644 --- a/src/sdk/models/operations/getworkspacesettings.ts +++ b/src/sdk/models/operations/getworkspacesettings.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -31,7 +31,6 @@ export const GetWorkspaceSettingsGlobals$inboundSchema: z.ZodType< "workspace_id": "workspaceId", }); }); - /** @internal */ export type GetWorkspaceSettingsGlobals$Outbound = { workspace_id?: string | undefined; @@ -50,19 +49,6 @@ export const GetWorkspaceSettingsGlobals$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetWorkspaceSettingsGlobals$ { - /** @deprecated use `GetWorkspaceSettingsGlobals$inboundSchema` instead. */ - export const inboundSchema = GetWorkspaceSettingsGlobals$inboundSchema; - /** @deprecated use `GetWorkspaceSettingsGlobals$outboundSchema` instead. */ - export const outboundSchema = GetWorkspaceSettingsGlobals$outboundSchema; - /** @deprecated use `GetWorkspaceSettingsGlobals$Outbound` instead. */ - export type Outbound = GetWorkspaceSettingsGlobals$Outbound; -} - export function getWorkspaceSettingsGlobalsToJSON( getWorkspaceSettingsGlobals: GetWorkspaceSettingsGlobals, ): string { @@ -72,7 +58,6 @@ export function getWorkspaceSettingsGlobalsToJSON( ), ); } - export function getWorkspaceSettingsGlobalsFromJSON( jsonString: string, ): SafeParseResult { @@ -95,7 +80,6 @@ export const GetWorkspaceSettingsRequest$inboundSchema: z.ZodType< "workspace_id": "workspaceId", }); }); - /** @internal */ export type GetWorkspaceSettingsRequest$Outbound = { workspace_id?: string | undefined; @@ -114,19 +98,6 @@ export const GetWorkspaceSettingsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetWorkspaceSettingsRequest$ { - /** @deprecated use `GetWorkspaceSettingsRequest$inboundSchema` instead. */ - export const inboundSchema = GetWorkspaceSettingsRequest$inboundSchema; - /** @deprecated use `GetWorkspaceSettingsRequest$outboundSchema` instead. */ - export const outboundSchema = GetWorkspaceSettingsRequest$outboundSchema; - /** @deprecated use `GetWorkspaceSettingsRequest$Outbound` instead. */ - export type Outbound = GetWorkspaceSettingsRequest$Outbound; -} - export function getWorkspaceSettingsRequestToJSON( getWorkspaceSettingsRequest: GetWorkspaceSettingsRequest, ): string { @@ -136,7 +107,6 @@ export function getWorkspaceSettingsRequestToJSON( ), ); } - export function getWorkspaceSettingsRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getworkspacetargets.ts b/src/sdk/models/operations/getworkspacetargets.ts index 447b05c9..395d7b44 100644 --- a/src/sdk/models/operations/getworkspacetargets.ts +++ b/src/sdk/models/operations/getworkspacetargets.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -29,7 +29,6 @@ export const GetWorkspaceTargetsRequest$inboundSchema: z.ZodType< "after_last_event_created_at": "afterLastEventCreatedAt", }); }); - /** @internal */ export type GetWorkspaceTargetsRequest$Outbound = { after_last_event_created_at?: string | undefined; @@ -48,19 +47,6 @@ export const GetWorkspaceTargetsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetWorkspaceTargetsRequest$ { - /** @deprecated use `GetWorkspaceTargetsRequest$inboundSchema` instead. */ - export const inboundSchema = GetWorkspaceTargetsRequest$inboundSchema; - /** @deprecated use `GetWorkspaceTargetsRequest$outboundSchema` instead. */ - export const outboundSchema = GetWorkspaceTargetsRequest$outboundSchema; - /** @deprecated use `GetWorkspaceTargetsRequest$Outbound` instead. */ - export type Outbound = GetWorkspaceTargetsRequest$Outbound; -} - export function getWorkspaceTargetsRequestToJSON( getWorkspaceTargetsRequest: GetWorkspaceTargetsRequest, ): string { @@ -68,7 +54,6 @@ export function getWorkspaceTargetsRequestToJSON( GetWorkspaceTargetsRequest$outboundSchema.parse(getWorkspaceTargetsRequest), ); } - export function getWorkspaceTargetsRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getworkspacetargetsdeprecated.ts b/src/sdk/models/operations/getworkspacetargetsdeprecated.ts index b00ffd41..7bbc3e77 100644 --- a/src/sdk/models/operations/getworkspacetargetsdeprecated.ts +++ b/src/sdk/models/operations/getworkspacetargetsdeprecated.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -35,7 +35,6 @@ export const GetWorkspaceTargetsDeprecatedGlobals$inboundSchema: z.ZodType< "workspace_id": "workspaceId", }); }); - /** @internal */ export type GetWorkspaceTargetsDeprecatedGlobals$Outbound = { workspace_id?: string | undefined; @@ -54,21 +53,6 @@ export const GetWorkspaceTargetsDeprecatedGlobals$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetWorkspaceTargetsDeprecatedGlobals$ { - /** @deprecated use `GetWorkspaceTargetsDeprecatedGlobals$inboundSchema` instead. */ - export const inboundSchema = - GetWorkspaceTargetsDeprecatedGlobals$inboundSchema; - /** @deprecated use `GetWorkspaceTargetsDeprecatedGlobals$outboundSchema` instead. */ - export const outboundSchema = - GetWorkspaceTargetsDeprecatedGlobals$outboundSchema; - /** @deprecated use `GetWorkspaceTargetsDeprecatedGlobals$Outbound` instead. */ - export type Outbound = GetWorkspaceTargetsDeprecatedGlobals$Outbound; -} - export function getWorkspaceTargetsDeprecatedGlobalsToJSON( getWorkspaceTargetsDeprecatedGlobals: GetWorkspaceTargetsDeprecatedGlobals, ): string { @@ -78,7 +62,6 @@ export function getWorkspaceTargetsDeprecatedGlobalsToJSON( ), ); } - export function getWorkspaceTargetsDeprecatedGlobalsFromJSON( jsonString: string, ): SafeParseResult { @@ -106,7 +89,6 @@ export const GetWorkspaceTargetsDeprecatedRequest$inboundSchema: z.ZodType< "after_last_event_created_at": "afterLastEventCreatedAt", }); }); - /** @internal */ export type GetWorkspaceTargetsDeprecatedRequest$Outbound = { workspace_id?: string | undefined; @@ -128,21 +110,6 @@ export const GetWorkspaceTargetsDeprecatedRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetWorkspaceTargetsDeprecatedRequest$ { - /** @deprecated use `GetWorkspaceTargetsDeprecatedRequest$inboundSchema` instead. */ - export const inboundSchema = - GetWorkspaceTargetsDeprecatedRequest$inboundSchema; - /** @deprecated use `GetWorkspaceTargetsDeprecatedRequest$outboundSchema` instead. */ - export const outboundSchema = - GetWorkspaceTargetsDeprecatedRequest$outboundSchema; - /** @deprecated use `GetWorkspaceTargetsDeprecatedRequest$Outbound` instead. */ - export type Outbound = GetWorkspaceTargetsDeprecatedRequest$Outbound; -} - export function getWorkspaceTargetsDeprecatedRequestToJSON( getWorkspaceTargetsDeprecatedRequest: GetWorkspaceTargetsDeprecatedRequest, ): string { @@ -152,7 +119,6 @@ export function getWorkspaceTargetsDeprecatedRequestToJSON( ), ); } - export function getWorkspaceTargetsDeprecatedRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getworkspaceteam.ts b/src/sdk/models/operations/getworkspaceteam.ts index b3b42aa3..6fb6f309 100644 --- a/src/sdk/models/operations/getworkspaceteam.ts +++ b/src/sdk/models/operations/getworkspaceteam.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -31,7 +31,6 @@ export const GetWorkspaceTeamGlobals$inboundSchema: z.ZodType< "workspace_id": "workspaceId", }); }); - /** @internal */ export type GetWorkspaceTeamGlobals$Outbound = { workspace_id?: string | undefined; @@ -50,19 +49,6 @@ export const GetWorkspaceTeamGlobals$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetWorkspaceTeamGlobals$ { - /** @deprecated use `GetWorkspaceTeamGlobals$inboundSchema` instead. */ - export const inboundSchema = GetWorkspaceTeamGlobals$inboundSchema; - /** @deprecated use `GetWorkspaceTeamGlobals$outboundSchema` instead. */ - export const outboundSchema = GetWorkspaceTeamGlobals$outboundSchema; - /** @deprecated use `GetWorkspaceTeamGlobals$Outbound` instead. */ - export type Outbound = GetWorkspaceTeamGlobals$Outbound; -} - export function getWorkspaceTeamGlobalsToJSON( getWorkspaceTeamGlobals: GetWorkspaceTeamGlobals, ): string { @@ -70,7 +56,6 @@ export function getWorkspaceTeamGlobalsToJSON( GetWorkspaceTeamGlobals$outboundSchema.parse(getWorkspaceTeamGlobals), ); } - export function getWorkspaceTeamGlobalsFromJSON( jsonString: string, ): SafeParseResult { @@ -93,7 +78,6 @@ export const GetWorkspaceTeamRequest$inboundSchema: z.ZodType< "workspace_id": "workspaceId", }); }); - /** @internal */ export type GetWorkspaceTeamRequest$Outbound = { workspace_id?: string | undefined; @@ -112,19 +96,6 @@ export const GetWorkspaceTeamRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetWorkspaceTeamRequest$ { - /** @deprecated use `GetWorkspaceTeamRequest$inboundSchema` instead. */ - export const inboundSchema = GetWorkspaceTeamRequest$inboundSchema; - /** @deprecated use `GetWorkspaceTeamRequest$outboundSchema` instead. */ - export const outboundSchema = GetWorkspaceTeamRequest$outboundSchema; - /** @deprecated use `GetWorkspaceTeamRequest$Outbound` instead. */ - export type Outbound = GetWorkspaceTeamRequest$Outbound; -} - export function getWorkspaceTeamRequestToJSON( getWorkspaceTeamRequest: GetWorkspaceTeamRequest, ): string { @@ -132,7 +103,6 @@ export function getWorkspaceTeamRequestToJSON( GetWorkspaceTeamRequest$outboundSchema.parse(getWorkspaceTeamRequest), ); } - export function getWorkspaceTeamRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/getworkspacetokens.ts b/src/sdk/models/operations/getworkspacetokens.ts index e6ea7c13..9d2fe485 100644 --- a/src/sdk/models/operations/getworkspacetokens.ts +++ b/src/sdk/models/operations/getworkspacetokens.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -31,7 +31,6 @@ export const GetWorkspaceTokensGlobals$inboundSchema: z.ZodType< "workspace_id": "workspaceId", }); }); - /** @internal */ export type GetWorkspaceTokensGlobals$Outbound = { workspace_id?: string | undefined; @@ -50,19 +49,6 @@ export const GetWorkspaceTokensGlobals$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetWorkspaceTokensGlobals$ { - /** @deprecated use `GetWorkspaceTokensGlobals$inboundSchema` instead. */ - export const inboundSchema = GetWorkspaceTokensGlobals$inboundSchema; - /** @deprecated use `GetWorkspaceTokensGlobals$outboundSchema` instead. */ - export const outboundSchema = GetWorkspaceTokensGlobals$outboundSchema; - /** @deprecated use `GetWorkspaceTokensGlobals$Outbound` instead. */ - export type Outbound = GetWorkspaceTokensGlobals$Outbound; -} - export function getWorkspaceTokensGlobalsToJSON( getWorkspaceTokensGlobals: GetWorkspaceTokensGlobals, ): string { @@ -70,7 +56,6 @@ export function getWorkspaceTokensGlobalsToJSON( GetWorkspaceTokensGlobals$outboundSchema.parse(getWorkspaceTokensGlobals), ); } - export function getWorkspaceTokensGlobalsFromJSON( jsonString: string, ): SafeParseResult { @@ -93,7 +78,6 @@ export const GetWorkspaceTokensRequest$inboundSchema: z.ZodType< "workspace_id": "workspaceId", }); }); - /** @internal */ export type GetWorkspaceTokensRequest$Outbound = { workspace_id?: string | undefined; @@ -112,19 +96,6 @@ export const GetWorkspaceTokensRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetWorkspaceTokensRequest$ { - /** @deprecated use `GetWorkspaceTokensRequest$inboundSchema` instead. */ - export const inboundSchema = GetWorkspaceTokensRequest$inboundSchema; - /** @deprecated use `GetWorkspaceTokensRequest$outboundSchema` instead. */ - export const outboundSchema = GetWorkspaceTokensRequest$outboundSchema; - /** @deprecated use `GetWorkspaceTokensRequest$Outbound` instead. */ - export type Outbound = GetWorkspaceTokensRequest$Outbound; -} - export function getWorkspaceTokensRequestToJSON( getWorkspaceTokensRequest: GetWorkspaceTokensRequest, ): string { @@ -132,7 +103,6 @@ export function getWorkspaceTokensRequestToJSON( GetWorkspaceTokensRequest$outboundSchema.parse(getWorkspaceTokensRequest), ); } - export function getWorkspaceTokensRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/githubcheckpublishingprs.ts b/src/sdk/models/operations/githubcheckpublishingprs.ts index 01a62d76..95bf6a5d 100644 --- a/src/sdk/models/operations/githubcheckpublishingprs.ts +++ b/src/sdk/models/operations/githubcheckpublishingprs.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -28,7 +28,6 @@ export const GithubCheckPublishingPRsRequest$inboundSchema: z.ZodType< "generate_gen_lock_id": "generateGenLockId", }); }); - /** @internal */ export type GithubCheckPublishingPRsRequest$Outbound = { generate_gen_lock_id: string; @@ -51,19 +50,6 @@ export const GithubCheckPublishingPRsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GithubCheckPublishingPRsRequest$ { - /** @deprecated use `GithubCheckPublishingPRsRequest$inboundSchema` instead. */ - export const inboundSchema = GithubCheckPublishingPRsRequest$inboundSchema; - /** @deprecated use `GithubCheckPublishingPRsRequest$outboundSchema` instead. */ - export const outboundSchema = GithubCheckPublishingPRsRequest$outboundSchema; - /** @deprecated use `GithubCheckPublishingPRsRequest$Outbound` instead. */ - export type Outbound = GithubCheckPublishingPRsRequest$Outbound; -} - export function githubCheckPublishingPRsRequestToJSON( githubCheckPublishingPRsRequest: GithubCheckPublishingPRsRequest, ): string { @@ -73,7 +59,6 @@ export function githubCheckPublishingPRsRequestToJSON( ), ); } - export function githubCheckPublishingPRsRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/githubcheckpublishingsecrets.ts b/src/sdk/models/operations/githubcheckpublishingsecrets.ts index 15832a20..bd2985fb 100644 --- a/src/sdk/models/operations/githubcheckpublishingsecrets.ts +++ b/src/sdk/models/operations/githubcheckpublishingsecrets.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -24,7 +24,6 @@ export const GithubCheckPublishingSecretsRequest$inboundSchema: z.ZodType< "generate_gen_lock_id": "generateGenLockId", }); }); - /** @internal */ export type GithubCheckPublishingSecretsRequest$Outbound = { generate_gen_lock_id: string; @@ -43,21 +42,6 @@ export const GithubCheckPublishingSecretsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GithubCheckPublishingSecretsRequest$ { - /** @deprecated use `GithubCheckPublishingSecretsRequest$inboundSchema` instead. */ - export const inboundSchema = - GithubCheckPublishingSecretsRequest$inboundSchema; - /** @deprecated use `GithubCheckPublishingSecretsRequest$outboundSchema` instead. */ - export const outboundSchema = - GithubCheckPublishingSecretsRequest$outboundSchema; - /** @deprecated use `GithubCheckPublishingSecretsRequest$Outbound` instead. */ - export type Outbound = GithubCheckPublishingSecretsRequest$Outbound; -} - export function githubCheckPublishingSecretsRequestToJSON( githubCheckPublishingSecretsRequest: GithubCheckPublishingSecretsRequest, ): string { @@ -67,7 +51,6 @@ export function githubCheckPublishingSecretsRequestToJSON( ), ); } - export function githubCheckPublishingSecretsRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/grantuseraccesstoworkspace.ts b/src/sdk/models/operations/grantuseraccesstoworkspace.ts index 7b2a933f..310ae561 100644 --- a/src/sdk/models/operations/grantuseraccesstoworkspace.ts +++ b/src/sdk/models/operations/grantuseraccesstoworkspace.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -35,7 +35,6 @@ export const GrantUserAccessToWorkspaceGlobals$inboundSchema: z.ZodType< "workspace_id": "workspaceId", }); }); - /** @internal */ export type GrantUserAccessToWorkspaceGlobals$Outbound = { workspace_id?: string | undefined; @@ -54,20 +53,6 @@ export const GrantUserAccessToWorkspaceGlobals$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GrantUserAccessToWorkspaceGlobals$ { - /** @deprecated use `GrantUserAccessToWorkspaceGlobals$inboundSchema` instead. */ - export const inboundSchema = GrantUserAccessToWorkspaceGlobals$inboundSchema; - /** @deprecated use `GrantUserAccessToWorkspaceGlobals$outboundSchema` instead. */ - export const outboundSchema = - GrantUserAccessToWorkspaceGlobals$outboundSchema; - /** @deprecated use `GrantUserAccessToWorkspaceGlobals$Outbound` instead. */ - export type Outbound = GrantUserAccessToWorkspaceGlobals$Outbound; -} - export function grantUserAccessToWorkspaceGlobalsToJSON( grantUserAccessToWorkspaceGlobals: GrantUserAccessToWorkspaceGlobals, ): string { @@ -77,7 +62,6 @@ export function grantUserAccessToWorkspaceGlobalsToJSON( ), ); } - export function grantUserAccessToWorkspaceGlobalsFromJSON( jsonString: string, ): SafeParseResult { @@ -101,7 +85,6 @@ export const GrantUserAccessToWorkspaceRequest$inboundSchema: z.ZodType< "workspace_id": "workspaceId", }); }); - /** @internal */ export type GrantUserAccessToWorkspaceRequest$Outbound = { workspace_id?: string | undefined; @@ -122,20 +105,6 @@ export const GrantUserAccessToWorkspaceRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GrantUserAccessToWorkspaceRequest$ { - /** @deprecated use `GrantUserAccessToWorkspaceRequest$inboundSchema` instead. */ - export const inboundSchema = GrantUserAccessToWorkspaceRequest$inboundSchema; - /** @deprecated use `GrantUserAccessToWorkspaceRequest$outboundSchema` instead. */ - export const outboundSchema = - GrantUserAccessToWorkspaceRequest$outboundSchema; - /** @deprecated use `GrantUserAccessToWorkspaceRequest$Outbound` instead. */ - export type Outbound = GrantUserAccessToWorkspaceRequest$Outbound; -} - export function grantUserAccessToWorkspaceRequestToJSON( grantUserAccessToWorkspaceRequest: GrantUserAccessToWorkspaceRequest, ): string { @@ -145,7 +114,6 @@ export function grantUserAccessToWorkspaceRequestToJSON( ), ); } - export function grantUserAccessToWorkspaceRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/ignoresubscriptionnamespace.ts b/src/sdk/models/operations/ignoresubscriptionnamespace.ts index 65a9626f..d16b4ae1 100644 --- a/src/sdk/models/operations/ignoresubscriptionnamespace.ts +++ b/src/sdk/models/operations/ignoresubscriptionnamespace.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -27,7 +27,6 @@ export const IgnoreSubscriptionNamespaceRequest$inboundSchema: z.ZodType< subscriptionID: z.string(), namespaceName: z.string(), }); - /** @internal */ export type IgnoreSubscriptionNamespaceRequest$Outbound = { subscriptionID: string; @@ -44,20 +43,6 @@ export const IgnoreSubscriptionNamespaceRequest$outboundSchema: z.ZodType< namespaceName: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace IgnoreSubscriptionNamespaceRequest$ { - /** @deprecated use `IgnoreSubscriptionNamespaceRequest$inboundSchema` instead. */ - export const inboundSchema = IgnoreSubscriptionNamespaceRequest$inboundSchema; - /** @deprecated use `IgnoreSubscriptionNamespaceRequest$outboundSchema` instead. */ - export const outboundSchema = - IgnoreSubscriptionNamespaceRequest$outboundSchema; - /** @deprecated use `IgnoreSubscriptionNamespaceRequest$Outbound` instead. */ - export type Outbound = IgnoreSubscriptionNamespaceRequest$Outbound; -} - export function ignoreSubscriptionNamespaceRequestToJSON( ignoreSubscriptionNamespaceRequest: IgnoreSubscriptionNamespaceRequest, ): string { @@ -67,7 +52,6 @@ export function ignoreSubscriptionNamespaceRequestToJSON( ), ); } - export function ignoreSubscriptionNamespaceRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/linkgithubaccess.ts b/src/sdk/models/operations/linkgithubaccess.ts index d4528518..4fd15cdb 100644 --- a/src/sdk/models/operations/linkgithubaccess.ts +++ b/src/sdk/models/operations/linkgithubaccess.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -30,7 +30,6 @@ export const LinkGithubAccessRequest$inboundSchema: z.ZodType< "github_oidc_token": "githubOidcToken", }); }); - /** @internal */ export type LinkGithubAccessRequest$Outbound = { installation_id?: string | undefined; @@ -55,19 +54,6 @@ export const LinkGithubAccessRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace LinkGithubAccessRequest$ { - /** @deprecated use `LinkGithubAccessRequest$inboundSchema` instead. */ - export const inboundSchema = LinkGithubAccessRequest$inboundSchema; - /** @deprecated use `LinkGithubAccessRequest$outboundSchema` instead. */ - export const outboundSchema = LinkGithubAccessRequest$outboundSchema; - /** @deprecated use `LinkGithubAccessRequest$Outbound` instead. */ - export type Outbound = LinkGithubAccessRequest$Outbound; -} - export function linkGithubAccessRequestToJSON( linkGithubAccessRequest: LinkGithubAccessRequest, ): string { @@ -75,7 +61,6 @@ export function linkGithubAccessRequestToJSON( LinkGithubAccessRequest$outboundSchema.parse(linkGithubAccessRequest), ); } - export function linkGithubAccessRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/listremotesources.ts b/src/sdk/models/operations/listremotesources.ts index a6712add..678bfb78 100644 --- a/src/sdk/models/operations/listremotesources.ts +++ b/src/sdk/models/operations/listremotesources.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -24,7 +24,6 @@ export const ListRemoteSourcesRequest$inboundSchema: z.ZodType< "namespace_name": "namespaceName", }); }); - /** @internal */ export type ListRemoteSourcesRequest$Outbound = { namespace_name: string; @@ -43,19 +42,6 @@ export const ListRemoteSourcesRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListRemoteSourcesRequest$ { - /** @deprecated use `ListRemoteSourcesRequest$inboundSchema` instead. */ - export const inboundSchema = ListRemoteSourcesRequest$inboundSchema; - /** @deprecated use `ListRemoteSourcesRequest$outboundSchema` instead. */ - export const outboundSchema = ListRemoteSourcesRequest$outboundSchema; - /** @deprecated use `ListRemoteSourcesRequest$Outbound` instead. */ - export type Outbound = ListRemoteSourcesRequest$Outbound; -} - export function listRemoteSourcesRequestToJSON( listRemoteSourcesRequest: ListRemoteSourcesRequest, ): string { @@ -63,7 +49,6 @@ export function listRemoteSourcesRequestToJSON( ListRemoteSourcesRequest$outboundSchema.parse(listRemoteSourcesRequest), ); } - export function listRemoteSourcesRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/posttags.ts b/src/sdk/models/operations/posttags.ts index 4263b61a..beb6c385 100644 --- a/src/sdk/models/operations/posttags.ts +++ b/src/sdk/models/operations/posttags.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -31,7 +31,6 @@ export const PostTagsRequest$inboundSchema: z.ZodType< "AddTags": "addTags", }); }); - /** @internal */ export type PostTagsRequest$Outbound = { namespace_name: string; @@ -53,25 +52,11 @@ export const PostTagsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostTagsRequest$ { - /** @deprecated use `PostTagsRequest$inboundSchema` instead. */ - export const inboundSchema = PostTagsRequest$inboundSchema; - /** @deprecated use `PostTagsRequest$outboundSchema` instead. */ - export const outboundSchema = PostTagsRequest$outboundSchema; - /** @deprecated use `PostTagsRequest$Outbound` instead. */ - export type Outbound = PostTagsRequest$Outbound; -} - export function postTagsRequestToJSON( postTagsRequest: PostTagsRequest, ): string { return JSON.stringify(PostTagsRequest$outboundSchema.parse(postTagsRequest)); } - export function postTagsRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/postworkspaceevents.ts b/src/sdk/models/operations/postworkspaceevents.ts index adb29e13..5a5f5263 100644 --- a/src/sdk/models/operations/postworkspaceevents.ts +++ b/src/sdk/models/operations/postworkspaceevents.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -33,7 +33,6 @@ export const PostWorkspaceEventsGlobals$inboundSchema: z.ZodType< "workspace_id": "workspaceId", }); }); - /** @internal */ export type PostWorkspaceEventsGlobals$Outbound = { workspace_id?: string | undefined; @@ -52,19 +51,6 @@ export const PostWorkspaceEventsGlobals$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostWorkspaceEventsGlobals$ { - /** @deprecated use `PostWorkspaceEventsGlobals$inboundSchema` instead. */ - export const inboundSchema = PostWorkspaceEventsGlobals$inboundSchema; - /** @deprecated use `PostWorkspaceEventsGlobals$outboundSchema` instead. */ - export const outboundSchema = PostWorkspaceEventsGlobals$outboundSchema; - /** @deprecated use `PostWorkspaceEventsGlobals$Outbound` instead. */ - export type Outbound = PostWorkspaceEventsGlobals$Outbound; -} - export function postWorkspaceEventsGlobalsToJSON( postWorkspaceEventsGlobals: PostWorkspaceEventsGlobals, ): string { @@ -72,7 +58,6 @@ export function postWorkspaceEventsGlobalsToJSON( PostWorkspaceEventsGlobals$outboundSchema.parse(postWorkspaceEventsGlobals), ); } - export function postWorkspaceEventsGlobalsFromJSON( jsonString: string, ): SafeParseResult { @@ -97,7 +82,6 @@ export const PostWorkspaceEventsRequest$inboundSchema: z.ZodType< "RequestBody": "requestBody", }); }); - /** @internal */ export type PostWorkspaceEventsRequest$Outbound = { workspace_id?: string | undefined; @@ -119,19 +103,6 @@ export const PostWorkspaceEventsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostWorkspaceEventsRequest$ { - /** @deprecated use `PostWorkspaceEventsRequest$inboundSchema` instead. */ - export const inboundSchema = PostWorkspaceEventsRequest$inboundSchema; - /** @deprecated use `PostWorkspaceEventsRequest$outboundSchema` instead. */ - export const outboundSchema = PostWorkspaceEventsRequest$outboundSchema; - /** @deprecated use `PostWorkspaceEventsRequest$Outbound` instead. */ - export type Outbound = PostWorkspaceEventsRequest$Outbound; -} - export function postWorkspaceEventsRequestToJSON( postWorkspaceEventsRequest: PostWorkspaceEventsRequest, ): string { @@ -139,7 +110,6 @@ export function postWorkspaceEventsRequestToJSON( PostWorkspaceEventsRequest$outboundSchema.parse(postWorkspaceEventsRequest), ); } - export function postWorkspaceEventsRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/revokeuseraccesstoworkspace.ts b/src/sdk/models/operations/revokeuseraccesstoworkspace.ts index e593ad79..cd76fd0e 100644 --- a/src/sdk/models/operations/revokeuseraccesstoworkspace.ts +++ b/src/sdk/models/operations/revokeuseraccesstoworkspace.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -35,7 +35,6 @@ export const RevokeUserAccessToWorkspaceGlobals$inboundSchema: z.ZodType< "workspace_id": "workspaceId", }); }); - /** @internal */ export type RevokeUserAccessToWorkspaceGlobals$Outbound = { workspace_id?: string | undefined; @@ -54,20 +53,6 @@ export const RevokeUserAccessToWorkspaceGlobals$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RevokeUserAccessToWorkspaceGlobals$ { - /** @deprecated use `RevokeUserAccessToWorkspaceGlobals$inboundSchema` instead. */ - export const inboundSchema = RevokeUserAccessToWorkspaceGlobals$inboundSchema; - /** @deprecated use `RevokeUserAccessToWorkspaceGlobals$outboundSchema` instead. */ - export const outboundSchema = - RevokeUserAccessToWorkspaceGlobals$outboundSchema; - /** @deprecated use `RevokeUserAccessToWorkspaceGlobals$Outbound` instead. */ - export type Outbound = RevokeUserAccessToWorkspaceGlobals$Outbound; -} - export function revokeUserAccessToWorkspaceGlobalsToJSON( revokeUserAccessToWorkspaceGlobals: RevokeUserAccessToWorkspaceGlobals, ): string { @@ -77,7 +62,6 @@ export function revokeUserAccessToWorkspaceGlobalsToJSON( ), ); } - export function revokeUserAccessToWorkspaceGlobalsFromJSON( jsonString: string, ): SafeParseResult { @@ -102,7 +86,6 @@ export const RevokeUserAccessToWorkspaceRequest$inboundSchema: z.ZodType< "workspace_id": "workspaceId", }); }); - /** @internal */ export type RevokeUserAccessToWorkspaceRequest$Outbound = { workspace_id?: string | undefined; @@ -123,20 +106,6 @@ export const RevokeUserAccessToWorkspaceRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RevokeUserAccessToWorkspaceRequest$ { - /** @deprecated use `RevokeUserAccessToWorkspaceRequest$inboundSchema` instead. */ - export const inboundSchema = RevokeUserAccessToWorkspaceRequest$inboundSchema; - /** @deprecated use `RevokeUserAccessToWorkspaceRequest$outboundSchema` instead. */ - export const outboundSchema = - RevokeUserAccessToWorkspaceRequest$outboundSchema; - /** @deprecated use `RevokeUserAccessToWorkspaceRequest$Outbound` instead. */ - export type Outbound = RevokeUserAccessToWorkspaceRequest$Outbound; -} - export function revokeUserAccessToWorkspaceRequestToJSON( revokeUserAccessToWorkspaceRequest: RevokeUserAccessToWorkspaceRequest, ): string { @@ -146,7 +115,6 @@ export function revokeUserAccessToWorkspaceRequestToJSON( ), ); } - export function revokeUserAccessToWorkspaceRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/searchworkspaceevents.ts b/src/sdk/models/operations/searchworkspaceevents.ts index 682c52a7..51172e14 100644 --- a/src/sdk/models/operations/searchworkspaceevents.ts +++ b/src/sdk/models/operations/searchworkspaceevents.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -64,7 +64,6 @@ export const SearchWorkspaceEventsGlobals$inboundSchema: z.ZodType< "workspace_id": "workspaceId", }); }); - /** @internal */ export type SearchWorkspaceEventsGlobals$Outbound = { workspace_id?: string | undefined; @@ -83,19 +82,6 @@ export const SearchWorkspaceEventsGlobals$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SearchWorkspaceEventsGlobals$ { - /** @deprecated use `SearchWorkspaceEventsGlobals$inboundSchema` instead. */ - export const inboundSchema = SearchWorkspaceEventsGlobals$inboundSchema; - /** @deprecated use `SearchWorkspaceEventsGlobals$outboundSchema` instead. */ - export const outboundSchema = SearchWorkspaceEventsGlobals$outboundSchema; - /** @deprecated use `SearchWorkspaceEventsGlobals$Outbound` instead. */ - export type Outbound = SearchWorkspaceEventsGlobals$Outbound; -} - export function searchWorkspaceEventsGlobalsToJSON( searchWorkspaceEventsGlobals: SearchWorkspaceEventsGlobals, ): string { @@ -105,7 +91,6 @@ export function searchWorkspaceEventsGlobalsToJSON( ), ); } - export function searchWorkspaceEventsGlobalsFromJSON( jsonString: string, ): SafeParseResult { @@ -142,7 +127,6 @@ export const SearchWorkspaceEventsRequest$inboundSchema: z.ZodType< "execution_id": "executionId", }); }); - /** @internal */ export type SearchWorkspaceEventsRequest$Outbound = { workspace_id?: string | undefined; @@ -183,19 +167,6 @@ export const SearchWorkspaceEventsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SearchWorkspaceEventsRequest$ { - /** @deprecated use `SearchWorkspaceEventsRequest$inboundSchema` instead. */ - export const inboundSchema = SearchWorkspaceEventsRequest$inboundSchema; - /** @deprecated use `SearchWorkspaceEventsRequest$outboundSchema` instead. */ - export const outboundSchema = SearchWorkspaceEventsRequest$outboundSchema; - /** @deprecated use `SearchWorkspaceEventsRequest$Outbound` instead. */ - export type Outbound = SearchWorkspaceEventsRequest$Outbound; -} - export function searchWorkspaceEventsRequestToJSON( searchWorkspaceEventsRequest: SearchWorkspaceEventsRequest, ): string { @@ -205,7 +176,6 @@ export function searchWorkspaceEventsRequestToJSON( ), ); } - export function searchWorkspaceEventsRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/setvisibility.ts b/src/sdk/models/operations/setvisibility.ts index 6dd84694..c10cf55b 100644 --- a/src/sdk/models/operations/setvisibility.ts +++ b/src/sdk/models/operations/setvisibility.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -31,7 +31,6 @@ export const SetVisibilityRequestBody$inboundSchema: z.ZodType< > = z.object({ public: z.boolean(), }); - /** @internal */ export type SetVisibilityRequestBody$Outbound = { public: boolean; @@ -46,19 +45,6 @@ export const SetVisibilityRequestBody$outboundSchema: z.ZodType< public: z.boolean(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SetVisibilityRequestBody$ { - /** @deprecated use `SetVisibilityRequestBody$inboundSchema` instead. */ - export const inboundSchema = SetVisibilityRequestBody$inboundSchema; - /** @deprecated use `SetVisibilityRequestBody$outboundSchema` instead. */ - export const outboundSchema = SetVisibilityRequestBody$outboundSchema; - /** @deprecated use `SetVisibilityRequestBody$Outbound` instead. */ - export type Outbound = SetVisibilityRequestBody$Outbound; -} - export function setVisibilityRequestBodyToJSON( setVisibilityRequestBody: SetVisibilityRequestBody, ): string { @@ -66,7 +52,6 @@ export function setVisibilityRequestBodyToJSON( SetVisibilityRequestBody$outboundSchema.parse(setVisibilityRequestBody), ); } - export function setVisibilityRequestBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -91,7 +76,6 @@ export const SetVisibilityRequest$inboundSchema: z.ZodType< "RequestBody": "requestBody", }); }); - /** @internal */ export type SetVisibilityRequest$Outbound = { namespace_name: string; @@ -113,19 +97,6 @@ export const SetVisibilityRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SetVisibilityRequest$ { - /** @deprecated use `SetVisibilityRequest$inboundSchema` instead. */ - export const inboundSchema = SetVisibilityRequest$inboundSchema; - /** @deprecated use `SetVisibilityRequest$outboundSchema` instead. */ - export const outboundSchema = SetVisibilityRequest$outboundSchema; - /** @deprecated use `SetVisibilityRequest$Outbound` instead. */ - export type Outbound = SetVisibilityRequest$Outbound; -} - export function setVisibilityRequestToJSON( setVisibilityRequest: SetVisibilityRequest, ): string { @@ -133,7 +104,6 @@ export function setVisibilityRequestToJSON( SetVisibilityRequest$outboundSchema.parse(setVisibilityRequest), ); } - export function setVisibilityRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/suggest.ts b/src/sdk/models/operations/suggest.ts index ad261c0c..c702be55 100644 --- a/src/sdk/models/operations/suggest.ts +++ b/src/sdk/models/operations/suggest.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -31,7 +31,6 @@ export const SuggestRequest$inboundSchema: z.ZodType< "SuggestRequestBody": "suggestRequestBody", }); }); - /** @internal */ export type SuggestRequest$Outbound = { "x-session-id": string; @@ -53,23 +52,9 @@ export const SuggestRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SuggestRequest$ { - /** @deprecated use `SuggestRequest$inboundSchema` instead. */ - export const inboundSchema = SuggestRequest$inboundSchema; - /** @deprecated use `SuggestRequest$outboundSchema` instead. */ - export const outboundSchema = SuggestRequest$outboundSchema; - /** @deprecated use `SuggestRequest$Outbound` instead. */ - export type Outbound = SuggestRequest$Outbound; -} - export function suggestRequestToJSON(suggestRequest: SuggestRequest): string { return JSON.stringify(SuggestRequest$outboundSchema.parse(suggestRequest)); } - export function suggestRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/suggestopenapi.ts b/src/sdk/models/operations/suggestopenapi.ts index e24661a7..a930fbc6 100644 --- a/src/sdk/models/operations/suggestopenapi.ts +++ b/src/sdk/models/operations/suggestopenapi.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { blobLikeSchema } from "../../types/blobs.js"; @@ -42,7 +42,6 @@ export const Schema$inboundSchema: z.ZodType = z ]), fileName: z.string(), }); - /** @internal */ export type Schema$Outbound = { content: ReadableStream | Blob | ArrayBuffer | Uint8Array; @@ -64,23 +63,9 @@ export const Schema$outboundSchema: z.ZodType< fileName: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Schema$ { - /** @deprecated use `Schema$inboundSchema` instead. */ - export const inboundSchema = Schema$inboundSchema; - /** @deprecated use `Schema$outboundSchema` instead. */ - export const outboundSchema = Schema$outboundSchema; - /** @deprecated use `Schema$Outbound` instead. */ - export type Outbound = Schema$Outbound; -} - export function schemaToJSON(schema: Schema): string { return JSON.stringify(Schema$outboundSchema.parse(schema)); } - export function schemaFromJSON( jsonString: string, ): SafeParseResult { @@ -100,7 +85,6 @@ export const SuggestOpenAPIRequestBody$inboundSchema: z.ZodType< opts: shared.SuggestOptsOld$inboundSchema.optional(), schema: z.lazy(() => Schema$inboundSchema), }); - /** @internal */ export type SuggestOpenAPIRequestBody$Outbound = { opts?: shared.SuggestOptsOld$Outbound | undefined; @@ -117,19 +101,6 @@ export const SuggestOpenAPIRequestBody$outboundSchema: z.ZodType< schema: z.lazy(() => Schema$outboundSchema).or(blobLikeSchema), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SuggestOpenAPIRequestBody$ { - /** @deprecated use `SuggestOpenAPIRequestBody$inboundSchema` instead. */ - export const inboundSchema = SuggestOpenAPIRequestBody$inboundSchema; - /** @deprecated use `SuggestOpenAPIRequestBody$outboundSchema` instead. */ - export const outboundSchema = SuggestOpenAPIRequestBody$outboundSchema; - /** @deprecated use `SuggestOpenAPIRequestBody$Outbound` instead. */ - export type Outbound = SuggestOpenAPIRequestBody$Outbound; -} - export function suggestOpenAPIRequestBodyToJSON( suggestOpenAPIRequestBody: SuggestOpenAPIRequestBody, ): string { @@ -137,7 +108,6 @@ export function suggestOpenAPIRequestBodyToJSON( SuggestOpenAPIRequestBody$outboundSchema.parse(suggestOpenAPIRequestBody), ); } - export function suggestOpenAPIRequestBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -162,7 +132,6 @@ export const SuggestOpenAPIRequest$inboundSchema: z.ZodType< "RequestBody": "requestBody", }); }); - /** @internal */ export type SuggestOpenAPIRequest$Outbound = { "x-session-id": string; @@ -184,19 +153,6 @@ export const SuggestOpenAPIRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SuggestOpenAPIRequest$ { - /** @deprecated use `SuggestOpenAPIRequest$inboundSchema` instead. */ - export const inboundSchema = SuggestOpenAPIRequest$inboundSchema; - /** @deprecated use `SuggestOpenAPIRequest$outboundSchema` instead. */ - export const outboundSchema = SuggestOpenAPIRequest$outboundSchema; - /** @deprecated use `SuggestOpenAPIRequest$Outbound` instead. */ - export type Outbound = SuggestOpenAPIRequest$Outbound; -} - export function suggestOpenAPIRequestToJSON( suggestOpenAPIRequest: SuggestOpenAPIRequest, ): string { @@ -204,7 +160,6 @@ export function suggestOpenAPIRequestToJSON( SuggestOpenAPIRequest$outboundSchema.parse(suggestOpenAPIRequest), ); } - export function suggestOpenAPIRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/suggestopenapiregistry.ts b/src/sdk/models/operations/suggestopenapiregistry.ts index 135888d9..d6a454dc 100644 --- a/src/sdk/models/operations/suggestopenapiregistry.ts +++ b/src/sdk/models/operations/suggestopenapiregistry.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -40,7 +40,6 @@ export const SuggestOpenAPIRegistryRequest$inboundSchema: z.ZodType< "SuggestRequestBody": "suggestRequestBody", }); }); - /** @internal */ export type SuggestOpenAPIRegistryRequest$Outbound = { "x-session-id": string; @@ -68,19 +67,6 @@ export const SuggestOpenAPIRegistryRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SuggestOpenAPIRegistryRequest$ { - /** @deprecated use `SuggestOpenAPIRegistryRequest$inboundSchema` instead. */ - export const inboundSchema = SuggestOpenAPIRegistryRequest$inboundSchema; - /** @deprecated use `SuggestOpenAPIRegistryRequest$outboundSchema` instead. */ - export const outboundSchema = SuggestOpenAPIRegistryRequest$outboundSchema; - /** @deprecated use `SuggestOpenAPIRegistryRequest$Outbound` instead. */ - export type Outbound = SuggestOpenAPIRegistryRequest$Outbound; -} - export function suggestOpenAPIRegistryRequestToJSON( suggestOpenAPIRegistryRequest: SuggestOpenAPIRegistryRequest, ): string { @@ -90,7 +76,6 @@ export function suggestOpenAPIRegistryRequestToJSON( ), ); } - export function suggestOpenAPIRegistryRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/updatepublishingtokenexpiration.ts b/src/sdk/models/operations/updatepublishingtokenexpiration.ts index cc36e43c..44a6c79d 100644 --- a/src/sdk/models/operations/updatepublishingtokenexpiration.ts +++ b/src/sdk/models/operations/updatepublishingtokenexpiration.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -47,7 +47,6 @@ export const UpdatePublishingTokenExpirationRequestBody$inboundSchema: "valid_until": "validUntil", }); }); - /** @internal */ export type UpdatePublishingTokenExpirationRequestBody$Outbound = { token_name?: string | undefined; @@ -70,21 +69,6 @@ export const UpdatePublishingTokenExpirationRequestBody$outboundSchema: }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdatePublishingTokenExpirationRequestBody$ { - /** @deprecated use `UpdatePublishingTokenExpirationRequestBody$inboundSchema` instead. */ - export const inboundSchema = - UpdatePublishingTokenExpirationRequestBody$inboundSchema; - /** @deprecated use `UpdatePublishingTokenExpirationRequestBody$outboundSchema` instead. */ - export const outboundSchema = - UpdatePublishingTokenExpirationRequestBody$outboundSchema; - /** @deprecated use `UpdatePublishingTokenExpirationRequestBody$Outbound` instead. */ - export type Outbound = UpdatePublishingTokenExpirationRequestBody$Outbound; -} - export function updatePublishingTokenExpirationRequestBodyToJSON( updatePublishingTokenExpirationRequestBody: UpdatePublishingTokenExpirationRequestBody, @@ -95,7 +79,6 @@ export function updatePublishingTokenExpirationRequestBodyToJSON( ), ); } - export function updatePublishingTokenExpirationRequestBodyFromJSON( jsonString: string, ): SafeParseResult< @@ -127,7 +110,6 @@ export const UpdatePublishingTokenExpirationRequest$inboundSchema: z.ZodType< "RequestBody": "requestBody", }); }); - /** @internal */ export type UpdatePublishingTokenExpirationRequest$Outbound = { tokenID: string; @@ -150,21 +132,6 @@ export const UpdatePublishingTokenExpirationRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdatePublishingTokenExpirationRequest$ { - /** @deprecated use `UpdatePublishingTokenExpirationRequest$inboundSchema` instead. */ - export const inboundSchema = - UpdatePublishingTokenExpirationRequest$inboundSchema; - /** @deprecated use `UpdatePublishingTokenExpirationRequest$outboundSchema` instead. */ - export const outboundSchema = - UpdatePublishingTokenExpirationRequest$outboundSchema; - /** @deprecated use `UpdatePublishingTokenExpirationRequest$Outbound` instead. */ - export type Outbound = UpdatePublishingTokenExpirationRequest$Outbound; -} - export function updatePublishingTokenExpirationRequestToJSON( updatePublishingTokenExpirationRequest: UpdatePublishingTokenExpirationRequest, @@ -175,7 +142,6 @@ export function updatePublishingTokenExpirationRequestToJSON( ), ); } - export function updatePublishingTokenExpirationRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/updateworkspacedetails.ts b/src/sdk/models/operations/updateworkspacedetails.ts index 9ee7c090..625921bc 100644 --- a/src/sdk/models/operations/updateworkspacedetails.ts +++ b/src/sdk/models/operations/updateworkspacedetails.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -36,7 +36,6 @@ export const UpdateWorkspaceDetailsGlobals$inboundSchema: z.ZodType< "workspace_id": "workspaceId", }); }); - /** @internal */ export type UpdateWorkspaceDetailsGlobals$Outbound = { workspace_id?: string | undefined; @@ -55,19 +54,6 @@ export const UpdateWorkspaceDetailsGlobals$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateWorkspaceDetailsGlobals$ { - /** @deprecated use `UpdateWorkspaceDetailsGlobals$inboundSchema` instead. */ - export const inboundSchema = UpdateWorkspaceDetailsGlobals$inboundSchema; - /** @deprecated use `UpdateWorkspaceDetailsGlobals$outboundSchema` instead. */ - export const outboundSchema = UpdateWorkspaceDetailsGlobals$outboundSchema; - /** @deprecated use `UpdateWorkspaceDetailsGlobals$Outbound` instead. */ - export type Outbound = UpdateWorkspaceDetailsGlobals$Outbound; -} - export function updateWorkspaceDetailsGlobalsToJSON( updateWorkspaceDetailsGlobals: UpdateWorkspaceDetailsGlobals, ): string { @@ -77,7 +63,6 @@ export function updateWorkspaceDetailsGlobalsToJSON( ), ); } - export function updateWorkspaceDetailsGlobalsFromJSON( jsonString: string, ): SafeParseResult { @@ -102,7 +87,6 @@ export const UpdateWorkspaceDetailsRequest$inboundSchema: z.ZodType< "Workspace": "workspace", }); }); - /** @internal */ export type UpdateWorkspaceDetailsRequest$Outbound = { workspace_id?: string | undefined; @@ -124,19 +108,6 @@ export const UpdateWorkspaceDetailsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateWorkspaceDetailsRequest$ { - /** @deprecated use `UpdateWorkspaceDetailsRequest$inboundSchema` instead. */ - export const inboundSchema = UpdateWorkspaceDetailsRequest$inboundSchema; - /** @deprecated use `UpdateWorkspaceDetailsRequest$outboundSchema` instead. */ - export const outboundSchema = UpdateWorkspaceDetailsRequest$outboundSchema; - /** @deprecated use `UpdateWorkspaceDetailsRequest$Outbound` instead. */ - export type Outbound = UpdateWorkspaceDetailsRequest$Outbound; -} - export function updateWorkspaceDetailsRequestToJSON( updateWorkspaceDetailsRequest: UpdateWorkspaceDetailsRequest, ): string { @@ -146,7 +117,6 @@ export function updateWorkspaceDetailsRequestToJSON( ), ); } - export function updateWorkspaceDetailsRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/updateworkspacesettings.ts b/src/sdk/models/operations/updateworkspacesettings.ts index 3299bf61..0736d5ea 100644 --- a/src/sdk/models/operations/updateworkspacesettings.ts +++ b/src/sdk/models/operations/updateworkspacesettings.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -36,7 +36,6 @@ export const UpdateWorkspaceSettingsGlobals$inboundSchema: z.ZodType< "workspace_id": "workspaceId", }); }); - /** @internal */ export type UpdateWorkspaceSettingsGlobals$Outbound = { workspace_id?: string | undefined; @@ -55,19 +54,6 @@ export const UpdateWorkspaceSettingsGlobals$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateWorkspaceSettingsGlobals$ { - /** @deprecated use `UpdateWorkspaceSettingsGlobals$inboundSchema` instead. */ - export const inboundSchema = UpdateWorkspaceSettingsGlobals$inboundSchema; - /** @deprecated use `UpdateWorkspaceSettingsGlobals$outboundSchema` instead. */ - export const outboundSchema = UpdateWorkspaceSettingsGlobals$outboundSchema; - /** @deprecated use `UpdateWorkspaceSettingsGlobals$Outbound` instead. */ - export type Outbound = UpdateWorkspaceSettingsGlobals$Outbound; -} - export function updateWorkspaceSettingsGlobalsToJSON( updateWorkspaceSettingsGlobals: UpdateWorkspaceSettingsGlobals, ): string { @@ -77,7 +63,6 @@ export function updateWorkspaceSettingsGlobalsToJSON( ), ); } - export function updateWorkspaceSettingsGlobalsFromJSON( jsonString: string, ): SafeParseResult { @@ -102,7 +87,6 @@ export const UpdateWorkspaceSettingsRequest$inboundSchema: z.ZodType< "WorkspaceSettings": "workspaceSettings", }); }); - /** @internal */ export type UpdateWorkspaceSettingsRequest$Outbound = { workspace_id?: string | undefined; @@ -124,19 +108,6 @@ export const UpdateWorkspaceSettingsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateWorkspaceSettingsRequest$ { - /** @deprecated use `UpdateWorkspaceSettingsRequest$inboundSchema` instead. */ - export const inboundSchema = UpdateWorkspaceSettingsRequest$inboundSchema; - /** @deprecated use `UpdateWorkspaceSettingsRequest$outboundSchema` instead. */ - export const outboundSchema = UpdateWorkspaceSettingsRequest$outboundSchema; - /** @deprecated use `UpdateWorkspaceSettingsRequest$Outbound` instead. */ - export type Outbound = UpdateWorkspaceSettingsRequest$Outbound; -} - export function updateWorkspaceSettingsRequestToJSON( updateWorkspaceSettingsRequest: UpdateWorkspaceSettingsRequest, ): string { @@ -146,7 +117,6 @@ export function updateWorkspaceSettingsRequestToJSON( ), ); } - export function updateWorkspaceSettingsRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/operations/uploadreport.ts b/src/sdk/models/operations/uploadreport.ts index 193449ec..0e638bcb 100644 --- a/src/sdk/models/operations/uploadreport.ts +++ b/src/sdk/models/operations/uploadreport.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../../lib/schemas.js"; import { blobLikeSchema } from "../../types/blobs.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -40,7 +40,6 @@ export const FileT$inboundSchema: z.ZodType = z ]), fileName: z.string(), }); - /** @internal */ export type FileT$Outbound = { content: ReadableStream | Blob | ArrayBuffer | Uint8Array; @@ -62,23 +61,9 @@ export const FileT$outboundSchema: z.ZodType< fileName: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileT$ { - /** @deprecated use `FileT$inboundSchema` instead. */ - export const inboundSchema = FileT$inboundSchema; - /** @deprecated use `FileT$outboundSchema` instead. */ - export const outboundSchema = FileT$outboundSchema; - /** @deprecated use `FileT$Outbound` instead. */ - export type Outbound = FileT$Outbound; -} - export function fileToJSON(fileT: FileT): string { return JSON.stringify(FileT$outboundSchema.parse(fileT)); } - export function fileFromJSON( jsonString: string, ): SafeParseResult { @@ -98,7 +83,6 @@ export const UploadReportRequestBody$inboundSchema: z.ZodType< data: shared.Report$inboundSchema, file: z.lazy(() => FileT$inboundSchema), }); - /** @internal */ export type UploadReportRequestBody$Outbound = { data: shared.Report$Outbound; @@ -115,19 +99,6 @@ export const UploadReportRequestBody$outboundSchema: z.ZodType< file: z.lazy(() => FileT$outboundSchema).or(blobLikeSchema), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UploadReportRequestBody$ { - /** @deprecated use `UploadReportRequestBody$inboundSchema` instead. */ - export const inboundSchema = UploadReportRequestBody$inboundSchema; - /** @deprecated use `UploadReportRequestBody$outboundSchema` instead. */ - export const outboundSchema = UploadReportRequestBody$outboundSchema; - /** @deprecated use `UploadReportRequestBody$Outbound` instead. */ - export type Outbound = UploadReportRequestBody$Outbound; -} - export function uploadReportRequestBodyToJSON( uploadReportRequestBody: UploadReportRequestBody, ): string { @@ -135,7 +106,6 @@ export function uploadReportRequestBodyToJSON( UploadReportRequestBody$outboundSchema.parse(uploadReportRequestBody), ); } - export function uploadReportRequestBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -154,7 +124,6 @@ export const UploadReportUploadedReport$inboundSchema: z.ZodType< > = z.object({ url: z.string(), }); - /** @internal */ export type UploadReportUploadedReport$Outbound = { url: string; @@ -169,19 +138,6 @@ export const UploadReportUploadedReport$outboundSchema: z.ZodType< url: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UploadReportUploadedReport$ { - /** @deprecated use `UploadReportUploadedReport$inboundSchema` instead. */ - export const inboundSchema = UploadReportUploadedReport$inboundSchema; - /** @deprecated use `UploadReportUploadedReport$outboundSchema` instead. */ - export const outboundSchema = UploadReportUploadedReport$outboundSchema; - /** @deprecated use `UploadReportUploadedReport$Outbound` instead. */ - export type Outbound = UploadReportUploadedReport$Outbound; -} - export function uploadReportUploadedReportToJSON( uploadReportUploadedReport: UploadReportUploadedReport, ): string { @@ -189,7 +145,6 @@ export function uploadReportUploadedReportToJSON( UploadReportUploadedReport$outboundSchema.parse(uploadReportUploadedReport), ); } - export function uploadReportUploadedReportFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/accessdetails.ts b/src/sdk/models/shared/accessdetails.ts index adf8acf4..b4584483 100644 --- a/src/sdk/models/shared/accessdetails.ts +++ b/src/sdk/models/shared/accessdetails.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -26,22 +26,10 @@ export type AccessDetails = { export const Level$inboundSchema: z.ZodNativeEnum = z.nativeEnum( Level, ); - /** @internal */ export const Level$outboundSchema: z.ZodNativeEnum = Level$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Level$ { - /** @deprecated use `Level$inboundSchema` instead. */ - export const inboundSchema = Level$inboundSchema; - /** @deprecated use `Level$outboundSchema` instead. */ - export const outboundSchema = Level$outboundSchema; -} - /** @internal */ export const AccessDetails$inboundSchema: z.ZodType< AccessDetails, @@ -56,7 +44,6 @@ export const AccessDetails$inboundSchema: z.ZodType< "generation_allowed": "generationAllowed", }); }); - /** @internal */ export type AccessDetails$Outbound = { generation_allowed: boolean; @@ -79,23 +66,9 @@ export const AccessDetails$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccessDetails$ { - /** @deprecated use `AccessDetails$inboundSchema` instead. */ - export const inboundSchema = AccessDetails$inboundSchema; - /** @deprecated use `AccessDetails$outboundSchema` instead. */ - export const outboundSchema = AccessDetails$outboundSchema; - /** @deprecated use `AccessDetails$Outbound` instead. */ - export type Outbound = AccessDetails$Outbound; -} - export function accessDetailsToJSON(accessDetails: AccessDetails): string { return JSON.stringify(AccessDetails$outboundSchema.parse(accessDetails)); } - export function accessDetailsFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/accesstoken.ts b/src/sdk/models/shared/accesstoken.ts index 91a4a93b..5ec7e099 100644 --- a/src/sdk/models/shared/accesstoken.ts +++ b/src/sdk/models/shared/accesstoken.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -51,7 +51,6 @@ export type AccessToken = { /** @internal */ export const Claims$inboundSchema: z.ZodType = z .object({}); - /** @internal */ export type Claims$Outbound = {}; @@ -62,23 +61,9 @@ export const Claims$outboundSchema: z.ZodType< Claims > = z.object({}); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Claims$ { - /** @deprecated use `Claims$inboundSchema` instead. */ - export const inboundSchema = Claims$inboundSchema; - /** @deprecated use `Claims$outboundSchema` instead. */ - export const outboundSchema = Claims$outboundSchema; - /** @deprecated use `Claims$Outbound` instead. */ - export type Outbound = Claims$Outbound; -} - export function claimsToJSON(claims: Claims): string { return JSON.stringify(Claims$outboundSchema.parse(claims)); } - export function claimsFromJSON( jsonString: string, ): SafeParseResult { @@ -109,7 +94,6 @@ export const AccessTokenUser$inboundSchema: z.ZodType< "email_verified": "emailVerified", }); }); - /** @internal */ export type AccessTokenUser$Outbound = { admin?: boolean | undefined; @@ -140,25 +124,11 @@ export const AccessTokenUser$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccessTokenUser$ { - /** @deprecated use `AccessTokenUser$inboundSchema` instead. */ - export const inboundSchema = AccessTokenUser$inboundSchema; - /** @deprecated use `AccessTokenUser$outboundSchema` instead. */ - export const outboundSchema = AccessTokenUser$outboundSchema; - /** @deprecated use `AccessTokenUser$Outbound` instead. */ - export type Outbound = AccessTokenUser$Outbound; -} - export function accessTokenUserToJSON( accessTokenUser: AccessTokenUser, ): string { return JSON.stringify(AccessTokenUser$outboundSchema.parse(accessTokenUser)); } - export function accessTokenUserFromJSON( jsonString: string, ): SafeParseResult { @@ -186,7 +156,6 @@ export const Workspaces$inboundSchema: z.ZodType< "updated_at": "updatedAt", }); }); - /** @internal */ export type Workspaces$Outbound = { account_type?: string | undefined; @@ -212,23 +181,9 @@ export const Workspaces$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Workspaces$ { - /** @deprecated use `Workspaces$inboundSchema` instead. */ - export const inboundSchema = Workspaces$inboundSchema; - /** @deprecated use `Workspaces$outboundSchema` instead. */ - export const outboundSchema = Workspaces$outboundSchema; - /** @deprecated use `Workspaces$Outbound` instead. */ - export type Outbound = Workspaces$Outbound; -} - export function workspacesToJSON(workspaces: Workspaces): string { return JSON.stringify(Workspaces$outboundSchema.parse(workspaces)); } - export function workspacesFromJSON( jsonString: string, ): SafeParseResult { @@ -256,7 +211,6 @@ export const AccessToken$inboundSchema: z.ZodType< "feature_flags": "featureFlags", }); }); - /** @internal */ export type AccessToken$Outbound = { access_token: string; @@ -284,23 +238,9 @@ export const AccessToken$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccessToken$ { - /** @deprecated use `AccessToken$inboundSchema` instead. */ - export const inboundSchema = AccessToken$inboundSchema; - /** @deprecated use `AccessToken$outboundSchema` instead. */ - export const outboundSchema = AccessToken$outboundSchema; - /** @deprecated use `AccessToken$Outbound` instead. */ - export type Outbound = AccessToken$Outbound; -} - export function accessTokenToJSON(accessToken: AccessToken): string { return JSON.stringify(AccessToken$outboundSchema.parse(accessToken)); } - export function accessTokenFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/accounttype.ts b/src/sdk/models/shared/accounttype.ts index f1b03645..bc9e787f 100644 --- a/src/sdk/models/shared/accounttype.ts +++ b/src/sdk/models/shared/accounttype.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { catchUnrecognizedEnum, OpenEnum, @@ -13,6 +13,7 @@ export const AccountType = { Free: "free", ScaleUp: "scale-up", Business: "business", + Oss: "oss", Enterprise: "enterprise", } as const; export type AccountType = OpenEnum; @@ -27,7 +28,6 @@ export const AccountType$inboundSchema: z.ZodType< z.nativeEnum(AccountType), z.string().transform(catchUnrecognizedEnum), ]); - /** @internal */ export const AccountType$outboundSchema: z.ZodType< AccountType, @@ -37,14 +37,3 @@ export const AccountType$outboundSchema: z.ZodType< z.nativeEnum(AccountType), z.string().and(z.custom>()), ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountType$ { - /** @deprecated use `AccountType$inboundSchema` instead. */ - export const inboundSchema = AccountType$inboundSchema; - /** @deprecated use `AccountType$outboundSchema` instead. */ - export const outboundSchema = AccountType$outboundSchema; -} diff --git a/src/sdk/models/shared/addtags.ts b/src/sdk/models/shared/addtags.ts index dab978a8..f08c1fdd 100644 --- a/src/sdk/models/shared/addtags.ts +++ b/src/sdk/models/shared/addtags.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -32,7 +32,6 @@ export const AddTags$inboundSchema: z.ZodType = "revision_digest": "revisionDigest", }); }); - /** @internal */ export type AddTags$Outbound = { revision_digest: string; @@ -53,23 +52,9 @@ export const AddTags$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AddTags$ { - /** @deprecated use `AddTags$inboundSchema` instead. */ - export const inboundSchema = AddTags$inboundSchema; - /** @deprecated use `AddTags$outboundSchema` instead. */ - export const outboundSchema = AddTags$outboundSchema; - /** @deprecated use `AddTags$Outbound` instead. */ - export type Outbound = AddTags$Outbound; -} - export function addTagsToJSON(addTags: AddTags): string { return JSON.stringify(AddTags$outboundSchema.parse(addTags)); } - export function addTagsFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/annotations.ts b/src/sdk/models/shared/annotations.ts index f77406ba..660631be 100644 --- a/src/sdk/models/shared/annotations.ts +++ b/src/sdk/models/shared/annotations.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -94,7 +94,6 @@ export const Annotations$inboundSchema: z.ZodType< "org.opencontainers.image.version": "orgOpencontainersImageVersion", }); }); - /** @internal */ export type Annotations$Outbound = { "org.opencontainers.image.authors"?: string | undefined; @@ -147,23 +146,9 @@ export const Annotations$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Annotations$ { - /** @deprecated use `Annotations$inboundSchema` instead. */ - export const inboundSchema = Annotations$inboundSchema; - /** @deprecated use `Annotations$outboundSchema` instead. */ - export const outboundSchema = Annotations$outboundSchema; - /** @deprecated use `Annotations$Outbound` instead. */ - export type Outbound = Annotations$Outbound; -} - export function annotationsToJSON(annotations: Annotations): string { return JSON.stringify(Annotations$outboundSchema.parse(annotations)); } - export function annotationsFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/apikeydetails.ts b/src/sdk/models/shared/apikeydetails.ts index 2678b239..c29ebc9b 100644 --- a/src/sdk/models/shared/apikeydetails.ts +++ b/src/sdk/models/shared/apikeydetails.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -69,7 +69,6 @@ export const ApiKeyDetails$inboundSchema: z.ZodType< "workspace_slug": "workspaceSlug", }); }); - /** @internal */ export type ApiKeyDetails$Outbound = { account_type_v2: string; @@ -115,23 +114,9 @@ export const ApiKeyDetails$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApiKeyDetails$ { - /** @deprecated use `ApiKeyDetails$inboundSchema` instead. */ - export const inboundSchema = ApiKeyDetails$inboundSchema; - /** @deprecated use `ApiKeyDetails$outboundSchema` instead. */ - export const outboundSchema = ApiKeyDetails$outboundSchema; - /** @deprecated use `ApiKeyDetails$Outbound` instead. */ - export type Outbound = ApiKeyDetails$Outbound; -} - export function apiKeyDetailsToJSON(apiKeyDetails: ApiKeyDetails): string { return JSON.stringify(ApiKeyDetails$outboundSchema.parse(apiKeyDetails)); } - export function apiKeyDetailsFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/billingaddon.ts b/src/sdk/models/shared/billingaddon.ts index 8666d0a4..962d4d15 100644 --- a/src/sdk/models/shared/billingaddon.ts +++ b/src/sdk/models/shared/billingaddon.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { catchUnrecognizedEnum, OpenEnum, @@ -27,7 +27,6 @@ export const BillingAddOn$inboundSchema: z.ZodType< z.nativeEnum(BillingAddOn), z.string().transform(catchUnrecognizedEnum), ]); - /** @internal */ export const BillingAddOn$outboundSchema: z.ZodType< BillingAddOn, @@ -37,14 +36,3 @@ export const BillingAddOn$outboundSchema: z.ZodType< z.nativeEnum(BillingAddOn), z.string().and(z.custom>()), ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BillingAddOn$ { - /** @deprecated use `BillingAddOn$inboundSchema` instead. */ - export const inboundSchema = BillingAddOn$inboundSchema; - /** @deprecated use `BillingAddOn$outboundSchema` instead. */ - export const outboundSchema = BillingAddOn$outboundSchema; -} diff --git a/src/sdk/models/shared/clievent.ts b/src/sdk/models/shared/clievent.ts index 67142f50..614df5f3 100644 --- a/src/sdk/models/shared/clievent.ts +++ b/src/sdk/models/shared/clievent.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -380,44 +380,20 @@ export type CliEvent = { export const GenerateBumpType$inboundSchema: z.ZodNativeEnum< typeof GenerateBumpType > = z.nativeEnum(GenerateBumpType); - /** @internal */ export const GenerateBumpType$outboundSchema: z.ZodNativeEnum< typeof GenerateBumpType > = GenerateBumpType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GenerateBumpType$ { - /** @deprecated use `GenerateBumpType$inboundSchema` instead. */ - export const inboundSchema = GenerateBumpType$inboundSchema; - /** @deprecated use `GenerateBumpType$outboundSchema` instead. */ - export const outboundSchema = GenerateBumpType$outboundSchema; -} - /** @internal */ export const OpenapiDiffBumpType$inboundSchema: z.ZodNativeEnum< typeof OpenapiDiffBumpType > = z.nativeEnum(OpenapiDiffBumpType); - /** @internal */ export const OpenapiDiffBumpType$outboundSchema: z.ZodNativeEnum< typeof OpenapiDiffBumpType > = OpenapiDiffBumpType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OpenapiDiffBumpType$ { - /** @deprecated use `OpenapiDiffBumpType$inboundSchema` instead. */ - export const inboundSchema = OpenapiDiffBumpType$inboundSchema; - /** @deprecated use `OpenapiDiffBumpType$outboundSchema` instead. */ - export const outboundSchema = OpenapiDiffBumpType$outboundSchema; -} - /** @internal */ export const CliEvent$inboundSchema: z.ZodType< CliEvent, @@ -596,7 +572,6 @@ export const CliEvent$inboundSchema: z.ZodType< "workspace_id": "workspaceId", }); }); - /** @internal */ export type CliEvent$Outbound = { commit_head?: string | undefined; @@ -857,23 +832,9 @@ export const CliEvent$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CliEvent$ { - /** @deprecated use `CliEvent$inboundSchema` instead. */ - export const inboundSchema = CliEvent$inboundSchema; - /** @deprecated use `CliEvent$outboundSchema` instead. */ - export const outboundSchema = CliEvent$outboundSchema; - /** @deprecated use `CliEvent$Outbound` instead. */ - export type Outbound = CliEvent$Outbound; -} - export function cliEventToJSON(cliEvent: CliEvent): string { return JSON.stringify(CliEvent$outboundSchema.parse(cliEvent)); } - export function cliEventFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/codesampleschemainput.ts b/src/sdk/models/shared/codesampleschemainput.ts index 391c77de..3fceeb42 100644 --- a/src/sdk/models/shared/codesampleschemainput.ts +++ b/src/sdk/models/shared/codesampleschemainput.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { blobLikeSchema } from "../../types/blobs.js"; @@ -51,7 +51,6 @@ export const SchemaFile$inboundSchema: z.ZodType< ]), fileName: z.string(), }); - /** @internal */ export type SchemaFile$Outbound = { content: ReadableStream | Blob | ArrayBuffer | Uint8Array; @@ -73,23 +72,9 @@ export const SchemaFile$outboundSchema: z.ZodType< fileName: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SchemaFile$ { - /** @deprecated use `SchemaFile$inboundSchema` instead. */ - export const inboundSchema = SchemaFile$inboundSchema; - /** @deprecated use `SchemaFile$outboundSchema` instead. */ - export const outboundSchema = SchemaFile$outboundSchema; - /** @deprecated use `SchemaFile$Outbound` instead. */ - export type Outbound = SchemaFile$Outbound; -} - export function schemaFileToJSON(schemaFile: SchemaFile): string { return JSON.stringify(SchemaFile$outboundSchema.parse(schemaFile)); } - export function schemaFileFromJSON( jsonString: string, ): SafeParseResult { @@ -119,7 +104,6 @@ export const CodeSampleSchemaInput$inboundSchema: z.ZodType< "sdk_class_name": "sdkClassName", }); }); - /** @internal */ export type CodeSampleSchemaInput$Outbound = { language: string; @@ -149,19 +133,6 @@ export const CodeSampleSchemaInput$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CodeSampleSchemaInput$ { - /** @deprecated use `CodeSampleSchemaInput$inboundSchema` instead. */ - export const inboundSchema = CodeSampleSchemaInput$inboundSchema; - /** @deprecated use `CodeSampleSchemaInput$outboundSchema` instead. */ - export const outboundSchema = CodeSampleSchemaInput$outboundSchema; - /** @deprecated use `CodeSampleSchemaInput$Outbound` instead. */ - export type Outbound = CodeSampleSchemaInput$Outbound; -} - export function codeSampleSchemaInputToJSON( codeSampleSchemaInput: CodeSampleSchemaInput, ): string { @@ -169,7 +140,6 @@ export function codeSampleSchemaInputToJSON( CodeSampleSchemaInput$outboundSchema.parse(codeSampleSchemaInput), ); } - export function codeSampleSchemaInputFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/codesamplesjobstatus.ts b/src/sdk/models/shared/codesamplesjobstatus.ts index b05f6bc2..9a13ab99 100644 --- a/src/sdk/models/shared/codesamplesjobstatus.ts +++ b/src/sdk/models/shared/codesamplesjobstatus.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; /** @@ -21,19 +21,7 @@ export type CodeSamplesJobStatus = ClosedEnum; export const CodeSamplesJobStatus$inboundSchema: z.ZodNativeEnum< typeof CodeSamplesJobStatus > = z.nativeEnum(CodeSamplesJobStatus); - /** @internal */ export const CodeSamplesJobStatus$outboundSchema: z.ZodNativeEnum< typeof CodeSamplesJobStatus > = CodeSamplesJobStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CodeSamplesJobStatus$ { - /** @deprecated use `CodeSamplesJobStatus$inboundSchema` instead. */ - export const inboundSchema = CodeSamplesJobStatus$inboundSchema; - /** @deprecated use `CodeSamplesJobStatus$outboundSchema` instead. */ - export const outboundSchema = CodeSamplesJobStatus$outboundSchema; -} diff --git a/src/sdk/models/shared/diagnostic.ts b/src/sdk/models/shared/diagnostic.ts index 9a6df620..f0400c8b 100644 --- a/src/sdk/models/shared/diagnostic.ts +++ b/src/sdk/models/shared/diagnostic.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -37,7 +37,6 @@ export const Diagnostic$inboundSchema: z.ZodType< path: z.array(z.string()), type: z.string(), }); - /** @internal */ export type Diagnostic$Outbound = { helpMessage?: string | undefined; @@ -58,23 +57,9 @@ export const Diagnostic$outboundSchema: z.ZodType< type: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Diagnostic$ { - /** @deprecated use `Diagnostic$inboundSchema` instead. */ - export const inboundSchema = Diagnostic$inboundSchema; - /** @deprecated use `Diagnostic$outboundSchema` instead. */ - export const outboundSchema = Diagnostic$outboundSchema; - /** @deprecated use `Diagnostic$Outbound` instead. */ - export type Outbound = Diagnostic$Outbound; -} - export function diagnosticToJSON(diagnostic: Diagnostic): string { return JSON.stringify(Diagnostic$outboundSchema.parse(diagnostic)); } - export function diagnosticFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/featureflag.ts b/src/sdk/models/shared/featureflag.ts index 4a2b900f..a73f1346 100644 --- a/src/sdk/models/shared/featureflag.ts +++ b/src/sdk/models/shared/featureflag.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -40,7 +40,6 @@ export const FeatureFlag$inboundSchema: z.ZodType< "trial_ends_at": "trialEndsAt", }); }); - /** @internal */ export type FeatureFlag$Outbound = { feature_flag: string; @@ -62,23 +61,9 @@ export const FeatureFlag$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FeatureFlag$ { - /** @deprecated use `FeatureFlag$inboundSchema` instead. */ - export const inboundSchema = FeatureFlag$inboundSchema; - /** @deprecated use `FeatureFlag$outboundSchema` instead. */ - export const outboundSchema = FeatureFlag$outboundSchema; - /** @deprecated use `FeatureFlag$Outbound` instead. */ - export type Outbound = FeatureFlag$Outbound; -} - export function featureFlagToJSON(featureFlag: FeatureFlag): string { return JSON.stringify(FeatureFlag$outboundSchema.parse(featureFlag)); } - export function featureFlagFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/getnamespacesresponse.ts b/src/sdk/models/shared/getnamespacesresponse.ts index c4914718..40c53ee6 100644 --- a/src/sdk/models/shared/getnamespacesresponse.ts +++ b/src/sdk/models/shared/getnamespacesresponse.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -25,7 +25,6 @@ export const GetNamespacesResponse$inboundSchema: z.ZodType< > = z.object({ items: z.array(Namespace$inboundSchema), }); - /** @internal */ export type GetNamespacesResponse$Outbound = { items: Array; @@ -40,19 +39,6 @@ export const GetNamespacesResponse$outboundSchema: z.ZodType< items: z.array(Namespace$outboundSchema), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetNamespacesResponse$ { - /** @deprecated use `GetNamespacesResponse$inboundSchema` instead. */ - export const inboundSchema = GetNamespacesResponse$inboundSchema; - /** @deprecated use `GetNamespacesResponse$outboundSchema` instead. */ - export const outboundSchema = GetNamespacesResponse$outboundSchema; - /** @deprecated use `GetNamespacesResponse$Outbound` instead. */ - export type Outbound = GetNamespacesResponse$Outbound; -} - export function getNamespacesResponseToJSON( getNamespacesResponse: GetNamespacesResponse, ): string { @@ -60,7 +46,6 @@ export function getNamespacesResponseToJSON( GetNamespacesResponse$outboundSchema.parse(getNamespacesResponse), ); } - export function getNamespacesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/getrevisionsresponse.ts b/src/sdk/models/shared/getrevisionsresponse.ts index af83c576..b2ca23c1 100644 --- a/src/sdk/models/shared/getrevisionsresponse.ts +++ b/src/sdk/models/shared/getrevisionsresponse.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -32,7 +32,6 @@ export const GetRevisionsResponse$inboundSchema: z.ZodType< "next_page_token": "nextPageToken", }); }); - /** @internal */ export type GetRevisionsResponse$Outbound = { items: Array; @@ -53,19 +52,6 @@ export const GetRevisionsResponse$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetRevisionsResponse$ { - /** @deprecated use `GetRevisionsResponse$inboundSchema` instead. */ - export const inboundSchema = GetRevisionsResponse$inboundSchema; - /** @deprecated use `GetRevisionsResponse$outboundSchema` instead. */ - export const outboundSchema = GetRevisionsResponse$outboundSchema; - /** @deprecated use `GetRevisionsResponse$Outbound` instead. */ - export type Outbound = GetRevisionsResponse$Outbound; -} - export function getRevisionsResponseToJSON( getRevisionsResponse: GetRevisionsResponse, ): string { @@ -73,7 +59,6 @@ export function getRevisionsResponseToJSON( GetRevisionsResponse$outboundSchema.parse(getRevisionsResponse), ); } - export function getRevisionsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/gettagsresponse.ts b/src/sdk/models/shared/gettagsresponse.ts index 131749c8..5bd0b3a0 100644 --- a/src/sdk/models/shared/gettagsresponse.ts +++ b/src/sdk/models/shared/gettagsresponse.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -25,7 +25,6 @@ export const GetTagsResponse$inboundSchema: z.ZodType< > = z.object({ items: z.array(Tag$inboundSchema), }); - /** @internal */ export type GetTagsResponse$Outbound = { items: Array; @@ -40,25 +39,11 @@ export const GetTagsResponse$outboundSchema: z.ZodType< items: z.array(Tag$outboundSchema), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetTagsResponse$ { - /** @deprecated use `GetTagsResponse$inboundSchema` instead. */ - export const inboundSchema = GetTagsResponse$inboundSchema; - /** @deprecated use `GetTagsResponse$outboundSchema` instead. */ - export const outboundSchema = GetTagsResponse$outboundSchema; - /** @deprecated use `GetTagsResponse$Outbound` instead. */ - export type Outbound = GetTagsResponse$Outbound; -} - export function getTagsResponseToJSON( getTagsResponse: GetTagsResponse, ): string { return JSON.stringify(GetTagsResponse$outboundSchema.parse(getTagsResponse)); } - export function getTagsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/githubconfigurecodesamplesrequest.ts b/src/sdk/models/shared/githubconfigurecodesamplesrequest.ts index f3893afc..9baa2f7b 100644 --- a/src/sdk/models/shared/githubconfigurecodesamplesrequest.ts +++ b/src/sdk/models/shared/githubconfigurecodesamplesrequest.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -35,7 +35,6 @@ export const GithubConfigureCodeSamplesRequest$inboundSchema: z.ZodType< repo: z.string(), targetName: z.string(), }); - /** @internal */ export type GithubConfigureCodeSamplesRequest$Outbound = { org: string; @@ -54,20 +53,6 @@ export const GithubConfigureCodeSamplesRequest$outboundSchema: z.ZodType< targetName: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GithubConfigureCodeSamplesRequest$ { - /** @deprecated use `GithubConfigureCodeSamplesRequest$inboundSchema` instead. */ - export const inboundSchema = GithubConfigureCodeSamplesRequest$inboundSchema; - /** @deprecated use `GithubConfigureCodeSamplesRequest$outboundSchema` instead. */ - export const outboundSchema = - GithubConfigureCodeSamplesRequest$outboundSchema; - /** @deprecated use `GithubConfigureCodeSamplesRequest$Outbound` instead. */ - export type Outbound = GithubConfigureCodeSamplesRequest$Outbound; -} - export function githubConfigureCodeSamplesRequestToJSON( githubConfigureCodeSamplesRequest: GithubConfigureCodeSamplesRequest, ): string { @@ -77,7 +62,6 @@ export function githubConfigureCodeSamplesRequestToJSON( ), ); } - export function githubConfigureCodeSamplesRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/githubconfigurecodesamplesresponse.ts b/src/sdk/models/shared/githubconfigurecodesamplesresponse.ts index 34ffe223..42b16f4e 100644 --- a/src/sdk/models/shared/githubconfigurecodesamplesresponse.ts +++ b/src/sdk/models/shared/githubconfigurecodesamplesresponse.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -41,7 +41,6 @@ export const GithubConfigureCodeSamplesResponse$inboundSchema: z.ZodType< ghActionID: z.string().optional(), source: WorkflowDocument$inboundSchema, }); - /** @internal */ export type GithubConfigureCodeSamplesResponse$Outbound = { codeSampleOverlayRegistryURL: string; @@ -60,20 +59,6 @@ export const GithubConfigureCodeSamplesResponse$outboundSchema: z.ZodType< source: WorkflowDocument$outboundSchema, }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GithubConfigureCodeSamplesResponse$ { - /** @deprecated use `GithubConfigureCodeSamplesResponse$inboundSchema` instead. */ - export const inboundSchema = GithubConfigureCodeSamplesResponse$inboundSchema; - /** @deprecated use `GithubConfigureCodeSamplesResponse$outboundSchema` instead. */ - export const outboundSchema = - GithubConfigureCodeSamplesResponse$outboundSchema; - /** @deprecated use `GithubConfigureCodeSamplesResponse$Outbound` instead. */ - export type Outbound = GithubConfigureCodeSamplesResponse$Outbound; -} - export function githubConfigureCodeSamplesResponseToJSON( githubConfigureCodeSamplesResponse: GithubConfigureCodeSamplesResponse, ): string { @@ -83,7 +68,6 @@ export function githubConfigureCodeSamplesResponseToJSON( ), ); } - export function githubConfigureCodeSamplesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/githubconfiguremintlifyreporequest.ts b/src/sdk/models/shared/githubconfiguremintlifyreporequest.ts index 8bd0e5f4..4b17c404 100644 --- a/src/sdk/models/shared/githubconfiguremintlifyreporequest.ts +++ b/src/sdk/models/shared/githubconfiguremintlifyreporequest.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -45,7 +45,6 @@ export const GithubConfigureMintlifyRepoRequest$inboundSchema: z.ZodType< repo: z.string(), subdirectory: z.string().optional(), }); - /** @internal */ export type GithubConfigureMintlifyRepoRequest$Outbound = { input: string; @@ -68,20 +67,6 @@ export const GithubConfigureMintlifyRepoRequest$outboundSchema: z.ZodType< subdirectory: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GithubConfigureMintlifyRepoRequest$ { - /** @deprecated use `GithubConfigureMintlifyRepoRequest$inboundSchema` instead. */ - export const inboundSchema = GithubConfigureMintlifyRepoRequest$inboundSchema; - /** @deprecated use `GithubConfigureMintlifyRepoRequest$outboundSchema` instead. */ - export const outboundSchema = - GithubConfigureMintlifyRepoRequest$outboundSchema; - /** @deprecated use `GithubConfigureMintlifyRepoRequest$Outbound` instead. */ - export type Outbound = GithubConfigureMintlifyRepoRequest$Outbound; -} - export function githubConfigureMintlifyRepoRequestToJSON( githubConfigureMintlifyRepoRequest: GithubConfigureMintlifyRepoRequest, ): string { @@ -91,7 +76,6 @@ export function githubConfigureMintlifyRepoRequestToJSON( ), ); } - export function githubConfigureMintlifyRepoRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/githubconfiguretargetrequest.ts b/src/sdk/models/shared/githubconfiguretargetrequest.ts index 3662efc0..d7e1178f 100644 --- a/src/sdk/models/shared/githubconfiguretargetrequest.ts +++ b/src/sdk/models/shared/githubconfiguretargetrequest.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -35,7 +35,6 @@ export const GithubConfigureTargetRequest$inboundSchema: z.ZodType< "repo_name": "repoName", }); }); - /** @internal */ export type GithubConfigureTargetRequest$Outbound = { org: string; @@ -56,19 +55,6 @@ export const GithubConfigureTargetRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GithubConfigureTargetRequest$ { - /** @deprecated use `GithubConfigureTargetRequest$inboundSchema` instead. */ - export const inboundSchema = GithubConfigureTargetRequest$inboundSchema; - /** @deprecated use `GithubConfigureTargetRequest$outboundSchema` instead. */ - export const outboundSchema = GithubConfigureTargetRequest$outboundSchema; - /** @deprecated use `GithubConfigureTargetRequest$Outbound` instead. */ - export type Outbound = GithubConfigureTargetRequest$Outbound; -} - export function githubConfigureTargetRequestToJSON( githubConfigureTargetRequest: GithubConfigureTargetRequest, ): string { @@ -78,7 +64,6 @@ export function githubConfigureTargetRequestToJSON( ), ); } - export function githubConfigureTargetRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/githubgetactionresponse.ts b/src/sdk/models/shared/githubgetactionresponse.ts index 85664e04..f74103ac 100644 --- a/src/sdk/models/shared/githubgetactionresponse.ts +++ b/src/sdk/models/shared/githubgetactionresponse.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -36,7 +36,6 @@ export const GithubGetActionResponse$inboundSchema: z.ZodType< "run_url": "runUrl", }); }); - /** @internal */ export type GithubGetActionResponse$Outbound = { run_status?: string | undefined; @@ -58,19 +57,6 @@ export const GithubGetActionResponse$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GithubGetActionResponse$ { - /** @deprecated use `GithubGetActionResponse$inboundSchema` instead. */ - export const inboundSchema = GithubGetActionResponse$inboundSchema; - /** @deprecated use `GithubGetActionResponse$outboundSchema` instead. */ - export const outboundSchema = GithubGetActionResponse$outboundSchema; - /** @deprecated use `GithubGetActionResponse$Outbound` instead. */ - export type Outbound = GithubGetActionResponse$Outbound; -} - export function githubGetActionResponseToJSON( githubGetActionResponse: GithubGetActionResponse, ): string { @@ -78,7 +64,6 @@ export function githubGetActionResponseToJSON( GithubGetActionResponse$outboundSchema.parse(githubGetActionResponse), ); } - export function githubGetActionResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/githubmissingpublishingsecretsresponse.ts b/src/sdk/models/shared/githubmissingpublishingsecretsresponse.ts index 11556156..742eae41 100644 --- a/src/sdk/models/shared/githubmissingpublishingsecretsresponse.ts +++ b/src/sdk/models/shared/githubmissingpublishingsecretsresponse.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -27,7 +27,6 @@ export const GithubMissingPublishingSecretsResponse$inboundSchema: z.ZodType< "missing_secrets": "missingSecrets", }); }); - /** @internal */ export type GithubMissingPublishingSecretsResponse$Outbound = { missing_secrets?: Array | undefined; @@ -46,21 +45,6 @@ export const GithubMissingPublishingSecretsResponse$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GithubMissingPublishingSecretsResponse$ { - /** @deprecated use `GithubMissingPublishingSecretsResponse$inboundSchema` instead. */ - export const inboundSchema = - GithubMissingPublishingSecretsResponse$inboundSchema; - /** @deprecated use `GithubMissingPublishingSecretsResponse$outboundSchema` instead. */ - export const outboundSchema = - GithubMissingPublishingSecretsResponse$outboundSchema; - /** @deprecated use `GithubMissingPublishingSecretsResponse$Outbound` instead. */ - export type Outbound = GithubMissingPublishingSecretsResponse$Outbound; -} - export function githubMissingPublishingSecretsResponseToJSON( githubMissingPublishingSecretsResponse: GithubMissingPublishingSecretsResponse, @@ -71,7 +55,6 @@ export function githubMissingPublishingSecretsResponseToJSON( ), ); } - export function githubMissingPublishingSecretsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/githubpublishingprresponse.ts b/src/sdk/models/shared/githubpublishingprresponse.ts index 3c8b4ddc..4ef5f926 100644 --- a/src/sdk/models/shared/githubpublishingprresponse.ts +++ b/src/sdk/models/shared/githubpublishingprresponse.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -69,7 +69,6 @@ export const PullRequestMetadata$inboundSchema: z.ZodType< "requested_reviewers": "requestedReviewers", }); }); - /** @internal */ export type PullRequestMetadata$Outbound = { base_branch?: string | undefined; @@ -108,19 +107,6 @@ export const PullRequestMetadata$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PullRequestMetadata$ { - /** @deprecated use `PullRequestMetadata$inboundSchema` instead. */ - export const inboundSchema = PullRequestMetadata$inboundSchema; - /** @deprecated use `PullRequestMetadata$outboundSchema` instead. */ - export const outboundSchema = PullRequestMetadata$outboundSchema; - /** @deprecated use `PullRequestMetadata$Outbound` instead. */ - export type Outbound = PullRequestMetadata$Outbound; -} - export function pullRequestMetadataToJSON( pullRequestMetadata: PullRequestMetadata, ): string { @@ -128,7 +114,6 @@ export function pullRequestMetadataToJSON( PullRequestMetadata$outboundSchema.parse(pullRequestMetadata), ); } - export function pullRequestMetadataFromJSON( jsonString: string, ): SafeParseResult { @@ -156,7 +141,6 @@ export const GithubPublishingPRResponse$inboundSchema: z.ZodType< "pull_request_metadata": "pullRequestMetadata", }); }); - /** @internal */ export type GithubPublishingPRResponse$Outbound = { pending_version?: string | undefined; @@ -182,19 +166,6 @@ export const GithubPublishingPRResponse$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GithubPublishingPRResponse$ { - /** @deprecated use `GithubPublishingPRResponse$inboundSchema` instead. */ - export const inboundSchema = GithubPublishingPRResponse$inboundSchema; - /** @deprecated use `GithubPublishingPRResponse$outboundSchema` instead. */ - export const outboundSchema = GithubPublishingPRResponse$outboundSchema; - /** @deprecated use `GithubPublishingPRResponse$Outbound` instead. */ - export type Outbound = GithubPublishingPRResponse$Outbound; -} - export function githubPublishingPRResponseToJSON( githubPublishingPRResponse: GithubPublishingPRResponse, ): string { @@ -202,7 +173,6 @@ export function githubPublishingPRResponseToJSON( GithubPublishingPRResponse$outboundSchema.parse(githubPublishingPRResponse), ); } - export function githubPublishingPRResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/githubsetupstateresponse.ts b/src/sdk/models/shared/githubsetupstateresponse.ts index bbfc8281..3fb57446 100644 --- a/src/sdk/models/shared/githubsetupstateresponse.ts +++ b/src/sdk/models/shared/githubsetupstateresponse.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -38,7 +38,6 @@ export const Actions$inboundSchema: z.ZodType = "publish_action_configured": "publishActionConfigured", }); }); - /** @internal */ export type Actions$Outbound = { generation_action_configured: boolean; @@ -60,23 +59,9 @@ export const Actions$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Actions$ { - /** @deprecated use `Actions$inboundSchema` instead. */ - export const inboundSchema = Actions$inboundSchema; - /** @deprecated use `Actions$outboundSchema` instead. */ - export const outboundSchema = Actions$outboundSchema; - /** @deprecated use `Actions$Outbound` instead. */ - export type Outbound = Actions$Outbound; -} - export function actionsToJSON(actions: Actions): string { return JSON.stringify(Actions$outboundSchema.parse(actions)); } - export function actionsFromJSON( jsonString: string, ): SafeParseResult { @@ -98,7 +83,6 @@ export const Secrets$inboundSchema: z.ZodType = "publishing_secrets_configured": "publishingSecretsConfigured", }); }); - /** @internal */ export type Secrets$Outbound = { api_key_configured: boolean; @@ -120,23 +104,9 @@ export const Secrets$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Secrets$ { - /** @deprecated use `Secrets$inboundSchema` instead. */ - export const inboundSchema = Secrets$inboundSchema; - /** @deprecated use `Secrets$outboundSchema` instead. */ - export const outboundSchema = Secrets$outboundSchema; - /** @deprecated use `Secrets$Outbound` instead. */ - export type Outbound = Secrets$Outbound; -} - export function secretsToJSON(secrets: Secrets): string { return JSON.stringify(Secrets$outboundSchema.parse(secrets)); } - export function secretsFromJSON( jsonString: string, ): SafeParseResult { @@ -161,7 +131,6 @@ export const GithubSetupStateResponse$inboundSchema: z.ZodType< "app_installed": "appInstalled", }); }); - /** @internal */ export type GithubSetupStateResponse$Outbound = { actions: Actions$Outbound; @@ -184,19 +153,6 @@ export const GithubSetupStateResponse$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GithubSetupStateResponse$ { - /** @deprecated use `GithubSetupStateResponse$inboundSchema` instead. */ - export const inboundSchema = GithubSetupStateResponse$inboundSchema; - /** @deprecated use `GithubSetupStateResponse$outboundSchema` instead. */ - export const outboundSchema = GithubSetupStateResponse$outboundSchema; - /** @deprecated use `GithubSetupStateResponse$Outbound` instead. */ - export type Outbound = GithubSetupStateResponse$Outbound; -} - export function githubSetupStateResponseToJSON( githubSetupStateResponse: GithubSetupStateResponse, ): string { @@ -204,7 +160,6 @@ export function githubSetupStateResponseToJSON( GithubSetupStateResponse$outboundSchema.parse(githubSetupStateResponse), ); } - export function githubSetupStateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/githubstorepublishingsecretsrequest.ts b/src/sdk/models/shared/githubstorepublishingsecretsrequest.ts index 88284cf3..59d37002 100644 --- a/src/sdk/models/shared/githubstorepublishingsecretsrequest.ts +++ b/src/sdk/models/shared/githubstorepublishingsecretsrequest.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -35,7 +35,6 @@ export const GithubStorePublishingSecretsRequest$inboundSchema: z.ZodType< "generate_gen_lock_id": "generateGenLockId", }); }); - /** @internal */ export type GithubStorePublishingSecretsRequest$Outbound = { generate_gen_lock_id: string; @@ -56,21 +55,6 @@ export const GithubStorePublishingSecretsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GithubStorePublishingSecretsRequest$ { - /** @deprecated use `GithubStorePublishingSecretsRequest$inboundSchema` instead. */ - export const inboundSchema = - GithubStorePublishingSecretsRequest$inboundSchema; - /** @deprecated use `GithubStorePublishingSecretsRequest$outboundSchema` instead. */ - export const outboundSchema = - GithubStorePublishingSecretsRequest$outboundSchema; - /** @deprecated use `GithubStorePublishingSecretsRequest$Outbound` instead. */ - export type Outbound = GithubStorePublishingSecretsRequest$Outbound; -} - export function githubStorePublishingSecretsRequestToJSON( githubStorePublishingSecretsRequest: GithubStorePublishingSecretsRequest, ): string { @@ -80,7 +64,6 @@ export function githubStorePublishingSecretsRequestToJSON( ), ); } - export function githubStorePublishingSecretsRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/githubtriggeractionrequest.ts b/src/sdk/models/shared/githubtriggeractionrequest.ts index 2bab613a..ad5acc53 100644 --- a/src/sdk/models/shared/githubtriggeractionrequest.ts +++ b/src/sdk/models/shared/githubtriggeractionrequest.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -58,7 +58,6 @@ export const GithubTriggerActionRequest$inboundSchema: z.ZodType< "target_name": "targetName", }); }); - /** @internal */ export type GithubTriggerActionRequest$Outbound = { force?: boolean | undefined; @@ -90,19 +89,6 @@ export const GithubTriggerActionRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GithubTriggerActionRequest$ { - /** @deprecated use `GithubTriggerActionRequest$inboundSchema` instead. */ - export const inboundSchema = GithubTriggerActionRequest$inboundSchema; - /** @deprecated use `GithubTriggerActionRequest$outboundSchema` instead. */ - export const outboundSchema = GithubTriggerActionRequest$outboundSchema; - /** @deprecated use `GithubTriggerActionRequest$Outbound` instead. */ - export type Outbound = GithubTriggerActionRequest$Outbound; -} - export function githubTriggerActionRequestToJSON( githubTriggerActionRequest: GithubTriggerActionRequest, ): string { @@ -110,7 +96,6 @@ export function githubTriggerActionRequestToJSON( GithubTriggerActionRequest$outboundSchema.parse(githubTriggerActionRequest), ); } - export function githubTriggerActionRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/httpmethod.ts b/src/sdk/models/shared/httpmethod.ts index ab8a1253..e333ff9c 100644 --- a/src/sdk/models/shared/httpmethod.ts +++ b/src/sdk/models/shared/httpmethod.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; export const HttpMethod = { @@ -20,18 +20,6 @@ export type HttpMethod = ClosedEnum; /** @internal */ export const HttpMethod$inboundSchema: z.ZodNativeEnum = z .nativeEnum(HttpMethod); - /** @internal */ export const HttpMethod$outboundSchema: z.ZodNativeEnum = HttpMethod$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HttpMethod$ { - /** @deprecated use `HttpMethod$inboundSchema` instead. */ - export const inboundSchema = HttpMethod$inboundSchema; - /** @deprecated use `HttpMethod$outboundSchema` instead. */ - export const outboundSchema = HttpMethod$outboundSchema; -} diff --git a/src/sdk/models/shared/index.ts b/src/sdk/models/shared/index.ts index 2ddccf17..d7d4352e 100644 --- a/src/sdk/models/shared/index.ts +++ b/src/sdk/models/shared/index.ts @@ -42,6 +42,7 @@ export * from "./organizationusageresponse.js"; export * from "./preflightrequest.js"; export * from "./preflighttoken.js"; export * from "./publishingtoken.js"; +export * from "./relativediff.js"; export * from "./remotedocument.js"; export * from "./remotesource.js"; export * from "./remotesourcesubscriptionsettings.js"; @@ -50,6 +51,7 @@ export * from "./revision.js"; export * from "./revisioncontentsmetadata.js"; export * from "./schemastoreitem.js"; export * from "./security.js"; +export * from "./server.js"; export * from "./shorturl.js"; export * from "./ssometadata.js"; export * from "./suggestitemsrequestbody.js"; diff --git a/src/sdk/models/shared/interactiontype.ts b/src/sdk/models/shared/interactiontype.ts index 776c09f2..e2ee84ca 100644 --- a/src/sdk/models/shared/interactiontype.ts +++ b/src/sdk/models/shared/interactiontype.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; /** @@ -31,19 +31,7 @@ export type InteractionType = ClosedEnum; export const InteractionType$inboundSchema: z.ZodNativeEnum< typeof InteractionType > = z.nativeEnum(InteractionType); - /** @internal */ export const InteractionType$outboundSchema: z.ZodNativeEnum< typeof InteractionType > = InteractionType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace InteractionType$ { - /** @deprecated use `InteractionType$inboundSchema` instead. */ - export const inboundSchema = InteractionType$inboundSchema; - /** @deprecated use `InteractionType$outboundSchema` instead. */ - export const outboundSchema = InteractionType$outboundSchema; -} diff --git a/src/sdk/models/shared/manifest.ts b/src/sdk/models/shared/manifest.ts index 48d8d3e3..ed23e97e 100644 --- a/src/sdk/models/shared/manifest.ts +++ b/src/sdk/models/shared/manifest.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -57,7 +57,6 @@ export const Manifest$inboundSchema: z.ZodType< mediaType: z.string().optional(), schemaVersion: z.number().int().optional(), }); - /** @internal */ export type Manifest$Outbound = { annotations?: Annotations$Outbound | undefined; @@ -80,23 +79,9 @@ export const Manifest$outboundSchema: z.ZodType< schemaVersion: z.number().int().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Manifest$ { - /** @deprecated use `Manifest$inboundSchema` instead. */ - export const inboundSchema = Manifest$inboundSchema; - /** @deprecated use `Manifest$outboundSchema` instead. */ - export const outboundSchema = Manifest$outboundSchema; - /** @deprecated use `Manifest$Outbound` instead. */ - export type Outbound = Manifest$Outbound; -} - export function manifestToJSON(manifest: Manifest): string { return JSON.stringify(Manifest$outboundSchema.parse(manifest)); } - export function manifestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/namespace.ts b/src/sdk/models/shared/namespace.ts index 023cb29f..9aee8c82 100644 --- a/src/sdk/models/shared/namespace.ts +++ b/src/sdk/models/shared/namespace.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -65,7 +65,6 @@ export const CompositeSpecMetadata$inboundSchema: z.ZodType< "subscription_settings": "subscriptionSettings", }); }); - /** @internal */ export type CompositeSpecMetadata$Outbound = { subscription_id: string; @@ -87,19 +86,6 @@ export const CompositeSpecMetadata$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CompositeSpecMetadata$ { - /** @deprecated use `CompositeSpecMetadata$inboundSchema` instead. */ - export const inboundSchema = CompositeSpecMetadata$inboundSchema; - /** @deprecated use `CompositeSpecMetadata$outboundSchema` instead. */ - export const outboundSchema = CompositeSpecMetadata$outboundSchema; - /** @deprecated use `CompositeSpecMetadata$Outbound` instead. */ - export type Outbound = CompositeSpecMetadata$Outbound; -} - export function compositeSpecMetadataToJSON( compositeSpecMetadata: CompositeSpecMetadata, ): string { @@ -107,7 +93,6 @@ export function compositeSpecMetadataToJSON( CompositeSpecMetadata$outboundSchema.parse(compositeSpecMetadata), ); } - export function compositeSpecMetadataFromJSON( jsonString: string, ): SafeParseResult { @@ -143,7 +128,6 @@ export const Namespace$inboundSchema: z.ZodType< "updated_at": "updatedAt", }); }); - /** @internal */ export type Namespace$Outbound = { archived_at?: string | undefined; @@ -181,23 +165,9 @@ export const Namespace$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Namespace$ { - /** @deprecated use `Namespace$inboundSchema` instead. */ - export const inboundSchema = Namespace$inboundSchema; - /** @deprecated use `Namespace$outboundSchema` instead. */ - export const outboundSchema = Namespace$outboundSchema; - /** @deprecated use `Namespace$Outbound` instead. */ - export type Outbound = Namespace$Outbound; -} - export function namespaceToJSON(namespace: Namespace): string { return JSON.stringify(Namespace$outboundSchema.parse(namespace)); } - export function namespaceFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/oasinfo.ts b/src/sdk/models/shared/oasinfo.ts index e02e0095..1f9b6d5e 100644 --- a/src/sdk/models/shared/oasinfo.ts +++ b/src/sdk/models/shared/oasinfo.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -24,7 +24,6 @@ export const License$inboundSchema: z.ZodType = z.object({ identifier: z.string().optional(), }); - /** @internal */ export type License$Outbound = { identifier?: string | undefined; @@ -39,23 +38,9 @@ export const License$outboundSchema: z.ZodType< identifier: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace License$ { - /** @deprecated use `License$inboundSchema` instead. */ - export const inboundSchema = License$inboundSchema; - /** @deprecated use `License$outboundSchema` instead. */ - export const outboundSchema = License$outboundSchema; - /** @deprecated use `License$Outbound` instead. */ - export type Outbound = License$Outbound; -} - export function licenseToJSON(license: License): string { return JSON.stringify(License$outboundSchema.parse(license)); } - export function licenseFromJSON( jsonString: string, ): SafeParseResult { @@ -75,7 +60,6 @@ export const OASInfo$inboundSchema: z.ZodType = title: z.string(), version: z.string(), }); - /** @internal */ export type OASInfo$Outbound = { description: string; @@ -98,23 +82,9 @@ export const OASInfo$outboundSchema: z.ZodType< version: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OASInfo$ { - /** @deprecated use `OASInfo$inboundSchema` instead. */ - export const inboundSchema = OASInfo$inboundSchema; - /** @deprecated use `OASInfo$outboundSchema` instead. */ - export const outboundSchema = OASInfo$outboundSchema; - /** @deprecated use `OASInfo$Outbound` instead. */ - export type Outbound = OASInfo$Outbound; -} - export function oasInfoToJSON(oasInfo: OASInfo): string { return JSON.stringify(OASInfo$outboundSchema.parse(oasInfo)); } - export function oasInfoFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/oasoperation.ts b/src/sdk/models/shared/oasoperation.ts index c84adfae..5e791267 100644 --- a/src/sdk/models/shared/oasoperation.ts +++ b/src/sdk/models/shared/oasoperation.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -38,7 +38,6 @@ export const OASOperation$inboundSchema: z.ZodType< "operation_id": "operationId", }); }); - /** @internal */ export type OASOperation$Outbound = { description: string; @@ -71,23 +70,9 @@ export const OASOperation$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OASOperation$ { - /** @deprecated use `OASOperation$inboundSchema` instead. */ - export const inboundSchema = OASOperation$inboundSchema; - /** @deprecated use `OASOperation$outboundSchema` instead. */ - export const outboundSchema = OASOperation$outboundSchema; - /** @deprecated use `OASOperation$Outbound` instead. */ - export type Outbound = OASOperation$Outbound; -} - export function oasOperationToJSON(oasOperation: OASOperation): string { return JSON.stringify(OASOperation$outboundSchema.parse(oasOperation)); } - export function oasOperationFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/oassummary.ts b/src/sdk/models/shared/oassummary.ts index 51158bd8..1868f97c 100644 --- a/src/sdk/models/shared/oassummary.ts +++ b/src/sdk/models/shared/oassummary.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -33,7 +33,6 @@ export const OASSummary$inboundSchema: z.ZodType< info: OASInfo$inboundSchema, operations: z.array(OASOperation$inboundSchema), }); - /** @internal */ export type OASSummary$Outbound = { info: OASInfo$Outbound; @@ -50,23 +49,9 @@ export const OASSummary$outboundSchema: z.ZodType< operations: z.array(OASOperation$outboundSchema), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OASSummary$ { - /** @deprecated use `OASSummary$inboundSchema` instead. */ - export const inboundSchema = OASSummary$inboundSchema; - /** @deprecated use `OASSummary$outboundSchema` instead. */ - export const outboundSchema = OASSummary$outboundSchema; - /** @deprecated use `OASSummary$Outbound` instead. */ - export type Outbound = OASSummary$Outbound; -} - export function oasSummaryToJSON(oasSummary: OASSummary): string { return JSON.stringify(OASSummary$outboundSchema.parse(oasSummary)); } - export function oasSummaryFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/organization.ts b/src/sdk/models/shared/organization.ts index 74959b18..1bec40cf 100644 --- a/src/sdk/models/shared/organization.ts +++ b/src/sdk/models/shared/organization.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -60,7 +60,6 @@ export const Organization$inboundSchema: z.ZodType< "updated_at": "updatedAt", }); }); - /** @internal */ export type Organization$Outbound = { account_type: string; @@ -106,23 +105,9 @@ export const Organization$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Organization$ { - /** @deprecated use `Organization$inboundSchema` instead. */ - export const inboundSchema = Organization$inboundSchema; - /** @deprecated use `Organization$outboundSchema` instead. */ - export const outboundSchema = Organization$outboundSchema; - /** @deprecated use `Organization$Outbound` instead. */ - export type Outbound = Organization$Outbound; -} - export function organizationToJSON(organization: Organization): string { return JSON.stringify(Organization$outboundSchema.parse(organization)); } - export function organizationFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/organizationbillingaddonrequest.ts b/src/sdk/models/shared/organizationbillingaddonrequest.ts index 38ac6b0f..772a9984 100644 --- a/src/sdk/models/shared/organizationbillingaddonrequest.ts +++ b/src/sdk/models/shared/organizationbillingaddonrequest.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -32,7 +32,6 @@ export const OrganizationBillingAddOnRequest$inboundSchema: z.ZodType< "add_ons": "addOns", }); }); - /** @internal */ export type OrganizationBillingAddOnRequest$Outbound = { add_ons: Array; @@ -51,19 +50,6 @@ export const OrganizationBillingAddOnRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OrganizationBillingAddOnRequest$ { - /** @deprecated use `OrganizationBillingAddOnRequest$inboundSchema` instead. */ - export const inboundSchema = OrganizationBillingAddOnRequest$inboundSchema; - /** @deprecated use `OrganizationBillingAddOnRequest$outboundSchema` instead. */ - export const outboundSchema = OrganizationBillingAddOnRequest$outboundSchema; - /** @deprecated use `OrganizationBillingAddOnRequest$Outbound` instead. */ - export type Outbound = OrganizationBillingAddOnRequest$Outbound; -} - export function organizationBillingAddOnRequestToJSON( organizationBillingAddOnRequest: OrganizationBillingAddOnRequest, ): string { @@ -73,7 +59,6 @@ export function organizationBillingAddOnRequestToJSON( ), ); } - export function organizationBillingAddOnRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/organizationbillingaddonresponse.ts b/src/sdk/models/shared/organizationbillingaddonresponse.ts index b27810be..dd61869c 100644 --- a/src/sdk/models/shared/organizationbillingaddonresponse.ts +++ b/src/sdk/models/shared/organizationbillingaddonresponse.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -32,7 +32,6 @@ export const OrganizationBillingAddOnResponse$inboundSchema: z.ZodType< "add_ons": "addOns", }); }); - /** @internal */ export type OrganizationBillingAddOnResponse$Outbound = { add_ons: Array; @@ -51,19 +50,6 @@ export const OrganizationBillingAddOnResponse$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OrganizationBillingAddOnResponse$ { - /** @deprecated use `OrganizationBillingAddOnResponse$inboundSchema` instead. */ - export const inboundSchema = OrganizationBillingAddOnResponse$inboundSchema; - /** @deprecated use `OrganizationBillingAddOnResponse$outboundSchema` instead. */ - export const outboundSchema = OrganizationBillingAddOnResponse$outboundSchema; - /** @deprecated use `OrganizationBillingAddOnResponse$Outbound` instead. */ - export type Outbound = OrganizationBillingAddOnResponse$Outbound; -} - export function organizationBillingAddOnResponseToJSON( organizationBillingAddOnResponse: OrganizationBillingAddOnResponse, ): string { @@ -73,7 +59,6 @@ export function organizationBillingAddOnResponseToJSON( ), ); } - export function organizationBillingAddOnResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/organizationusage.ts b/src/sdk/models/shared/organizationusage.ts index 08aa5972..1711984d 100644 --- a/src/sdk/models/shared/organizationusage.ts +++ b/src/sdk/models/shared/organizationusage.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -66,7 +66,6 @@ export const OrganizationUsage$inboundSchema: z.ZodType< "used_features": "usedFeatures", }); }); - /** @internal */ export type OrganizationUsage$Outbound = { accessible: boolean; @@ -103,19 +102,6 @@ export const OrganizationUsage$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OrganizationUsage$ { - /** @deprecated use `OrganizationUsage$inboundSchema` instead. */ - export const inboundSchema = OrganizationUsage$inboundSchema; - /** @deprecated use `OrganizationUsage$outboundSchema` instead. */ - export const outboundSchema = OrganizationUsage$outboundSchema; - /** @deprecated use `OrganizationUsage$Outbound` instead. */ - export type Outbound = OrganizationUsage$Outbound; -} - export function organizationUsageToJSON( organizationUsage: OrganizationUsage, ): string { @@ -123,7 +109,6 @@ export function organizationUsageToJSON( OrganizationUsage$outboundSchema.parse(organizationUsage), ); } - export function organizationUsageFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/organizationusageresponse.ts b/src/sdk/models/shared/organizationusageresponse.ts index 85324345..8a2f9b6c 100644 --- a/src/sdk/models/shared/organizationusageresponse.ts +++ b/src/sdk/models/shared/organizationusageresponse.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -52,7 +52,6 @@ export const OrganizationUsageResponse$inboundSchema: z.ZodType< "total_allowed_languages": "totalAllowedLanguages", }); }); - /** @internal */ export type OrganizationUsageResponse$Outbound = { allowed_languages: Array; @@ -79,19 +78,6 @@ export const OrganizationUsageResponse$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OrganizationUsageResponse$ { - /** @deprecated use `OrganizationUsageResponse$inboundSchema` instead. */ - export const inboundSchema = OrganizationUsageResponse$inboundSchema; - /** @deprecated use `OrganizationUsageResponse$outboundSchema` instead. */ - export const outboundSchema = OrganizationUsageResponse$outboundSchema; - /** @deprecated use `OrganizationUsageResponse$Outbound` instead. */ - export type Outbound = OrganizationUsageResponse$Outbound; -} - export function organizationUsageResponseToJSON( organizationUsageResponse: OrganizationUsageResponse, ): string { @@ -99,7 +85,6 @@ export function organizationUsageResponseToJSON( OrganizationUsageResponse$outboundSchema.parse(organizationUsageResponse), ); } - export function organizationUsageResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/preflightrequest.ts b/src/sdk/models/shared/preflightrequest.ts index 443a9219..d444a93a 100644 --- a/src/sdk/models/shared/preflightrequest.ts +++ b/src/sdk/models/shared/preflightrequest.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -24,7 +24,6 @@ export const PreflightRequest$inboundSchema: z.ZodType< "namespace_name": "namespaceName", }); }); - /** @internal */ export type PreflightRequest$Outbound = { namespace_name: string; @@ -43,19 +42,6 @@ export const PreflightRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PreflightRequest$ { - /** @deprecated use `PreflightRequest$inboundSchema` instead. */ - export const inboundSchema = PreflightRequest$inboundSchema; - /** @deprecated use `PreflightRequest$outboundSchema` instead. */ - export const outboundSchema = PreflightRequest$outboundSchema; - /** @deprecated use `PreflightRequest$Outbound` instead. */ - export type Outbound = PreflightRequest$Outbound; -} - export function preflightRequestToJSON( preflightRequest: PreflightRequest, ): string { @@ -63,7 +49,6 @@ export function preflightRequestToJSON( PreflightRequest$outboundSchema.parse(preflightRequest), ); } - export function preflightRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/preflighttoken.ts b/src/sdk/models/shared/preflighttoken.ts index 488d2eca..f94a70ff 100644 --- a/src/sdk/models/shared/preflighttoken.ts +++ b/src/sdk/models/shared/preflighttoken.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -27,7 +27,6 @@ export const PreflightToken$inboundSchema: z.ZodType< "auth_token": "authToken", }); }); - /** @internal */ export type PreflightToken$Outbound = { auth_token?: string | undefined; @@ -46,23 +45,9 @@ export const PreflightToken$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PreflightToken$ { - /** @deprecated use `PreflightToken$inboundSchema` instead. */ - export const inboundSchema = PreflightToken$inboundSchema; - /** @deprecated use `PreflightToken$outboundSchema` instead. */ - export const outboundSchema = PreflightToken$outboundSchema; - /** @deprecated use `PreflightToken$Outbound` instead. */ - export type Outbound = PreflightToken$Outbound; -} - export function preflightTokenToJSON(preflightToken: PreflightToken): string { return JSON.stringify(PreflightToken$outboundSchema.parse(preflightToken)); } - export function preflightTokenFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/publishingtoken.ts b/src/sdk/models/shared/publishingtoken.ts index 91e55a09..ea4ff9e6 100644 --- a/src/sdk/models/shared/publishingtoken.ts +++ b/src/sdk/models/shared/publishingtoken.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -36,23 +36,11 @@ export type PublishingToken = { export const TargetResource$inboundSchema: z.ZodNativeEnum< typeof TargetResource > = z.nativeEnum(TargetResource); - /** @internal */ export const TargetResource$outboundSchema: z.ZodNativeEnum< typeof TargetResource > = TargetResource$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TargetResource$ { - /** @deprecated use `TargetResource$inboundSchema` instead. */ - export const inboundSchema = TargetResource$inboundSchema; - /** @deprecated use `TargetResource$outboundSchema` instead. */ - export const outboundSchema = TargetResource$outboundSchema; -} - /** @internal */ export const PublishingToken$inboundSchema: z.ZodType< PublishingToken, @@ -88,7 +76,6 @@ export const PublishingToken$inboundSchema: z.ZodType< "workspace_id": "workspaceId", }); }); - /** @internal */ export type PublishingToken$Outbound = { created_at: string; @@ -138,25 +125,11 @@ export const PublishingToken$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PublishingToken$ { - /** @deprecated use `PublishingToken$inboundSchema` instead. */ - export const inboundSchema = PublishingToken$inboundSchema; - /** @deprecated use `PublishingToken$outboundSchema` instead. */ - export const outboundSchema = PublishingToken$outboundSchema; - /** @deprecated use `PublishingToken$Outbound` instead. */ - export type Outbound = PublishingToken$Outbound; -} - export function publishingTokenToJSON( publishingToken: PublishingToken, ): string { return JSON.stringify(PublishingToken$outboundSchema.parse(publishingToken)); } - export function publishingTokenFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/relativediff.ts b/src/sdk/models/shared/relativediff.ts new file mode 100644 index 00000000..98a74706 --- /dev/null +++ b/src/sdk/models/shared/relativediff.ts @@ -0,0 +1,71 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { remap as remap$ } from "../../../lib/primitives.js"; +import { safeParse } from "../../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; + +/** + * A relative diff between the current revision and the previous revision. + */ +export type RelativeDiff = { + /** + * The number of lines added against the previous revision + */ + addedLines?: number | undefined; + /** + * The number of lines removed against the previous revision + */ + removedLines?: number | undefined; +}; + +/** @internal */ +export const RelativeDiff$inboundSchema: z.ZodType< + RelativeDiff, + z.ZodTypeDef, + unknown +> = z.object({ + added_lines: z.number().int().optional(), + removed_lines: z.number().int().optional(), +}).transform((v) => { + return remap$(v, { + "added_lines": "addedLines", + "removed_lines": "removedLines", + }); +}); +/** @internal */ +export type RelativeDiff$Outbound = { + added_lines?: number | undefined; + removed_lines?: number | undefined; +}; + +/** @internal */ +export const RelativeDiff$outboundSchema: z.ZodType< + RelativeDiff$Outbound, + z.ZodTypeDef, + RelativeDiff +> = z.object({ + addedLines: z.number().int().optional(), + removedLines: z.number().int().optional(), +}).transform((v) => { + return remap$(v, { + addedLines: "added_lines", + removedLines: "removed_lines", + }); +}); + +export function relativeDiffToJSON(relativeDiff: RelativeDiff): string { + return JSON.stringify(RelativeDiff$outboundSchema.parse(relativeDiff)); +} +export function relativeDiffFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => RelativeDiff$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'RelativeDiff' from JSON`, + ); +} diff --git a/src/sdk/models/shared/remotedocument.ts b/src/sdk/models/shared/remotedocument.ts index 0de7657f..578566d3 100644 --- a/src/sdk/models/shared/remotedocument.ts +++ b/src/sdk/models/shared/remotedocument.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -27,7 +27,6 @@ export const RemoteDocument$inboundSchema: z.ZodType< "registry_url": "registryUrl", }); }); - /** @internal */ export type RemoteDocument$Outbound = { registry_url: string; @@ -46,23 +45,9 @@ export const RemoteDocument$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RemoteDocument$ { - /** @deprecated use `RemoteDocument$inboundSchema` instead. */ - export const inboundSchema = RemoteDocument$inboundSchema; - /** @deprecated use `RemoteDocument$outboundSchema` instead. */ - export const outboundSchema = RemoteDocument$outboundSchema; - /** @deprecated use `RemoteDocument$Outbound` instead. */ - export type Outbound = RemoteDocument$Outbound; -} - export function remoteDocumentToJSON(remoteDocument: RemoteDocument): string { return JSON.stringify(RemoteDocument$outboundSchema.parse(remoteDocument)); } - export function remoteDocumentFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/remotesource.ts b/src/sdk/models/shared/remotesource.ts index f06027ed..15557db0 100644 --- a/src/sdk/models/shared/remotesource.ts +++ b/src/sdk/models/shared/remotesource.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -35,7 +35,6 @@ export const RemoteSource$inboundSchema: z.ZodType< output: RemoteDocument$inboundSchema, overlays: z.array(RemoteDocument$inboundSchema).optional(), }); - /** @internal */ export type RemoteSource$Outbound = { inputs: Array; @@ -54,23 +53,9 @@ export const RemoteSource$outboundSchema: z.ZodType< overlays: z.array(RemoteDocument$outboundSchema).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RemoteSource$ { - /** @deprecated use `RemoteSource$inboundSchema` instead. */ - export const inboundSchema = RemoteSource$inboundSchema; - /** @deprecated use `RemoteSource$outboundSchema` instead. */ - export const outboundSchema = RemoteSource$outboundSchema; - /** @deprecated use `RemoteSource$Outbound` instead. */ - export type Outbound = RemoteSource$Outbound; -} - export function remoteSourceToJSON(remoteSource: RemoteSource): string { return JSON.stringify(RemoteSource$outboundSchema.parse(remoteSource)); } - export function remoteSourceFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/remotesourcesubscriptionsettings.ts b/src/sdk/models/shared/remotesourcesubscriptionsettings.ts index f4d060dd..9f3659e4 100644 --- a/src/sdk/models/shared/remotesourcesubscriptionsettings.ts +++ b/src/sdk/models/shared/remotesourcesubscriptionsettings.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -33,7 +33,6 @@ export const RemoteSourceSubscriptionSettings$inboundSchema: z.ZodType< "overlay_namespaces": "overlayNamespaces", }); }); - /** @internal */ export type RemoteSourceSubscriptionSettings$Outbound = { base_spec_namespaces: Array; @@ -61,19 +60,6 @@ export const RemoteSourceSubscriptionSettings$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RemoteSourceSubscriptionSettings$ { - /** @deprecated use `RemoteSourceSubscriptionSettings$inboundSchema` instead. */ - export const inboundSchema = RemoteSourceSubscriptionSettings$inboundSchema; - /** @deprecated use `RemoteSourceSubscriptionSettings$outboundSchema` instead. */ - export const outboundSchema = RemoteSourceSubscriptionSettings$outboundSchema; - /** @deprecated use `RemoteSourceSubscriptionSettings$Outbound` instead. */ - export type Outbound = RemoteSourceSubscriptionSettings$Outbound; -} - export function remoteSourceSubscriptionSettingsToJSON( remoteSourceSubscriptionSettings: RemoteSourceSubscriptionSettings, ): string { @@ -83,7 +69,6 @@ export function remoteSourceSubscriptionSettingsToJSON( ), ); } - export function remoteSourceSubscriptionSettingsFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/report.ts b/src/sdk/models/shared/report.ts index 12dad274..dc29dea2 100644 --- a/src/sdk/models/shared/report.ts +++ b/src/sdk/models/shared/report.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -22,28 +22,15 @@ export type Report = { export const Type$inboundSchema: z.ZodNativeEnum = z.nativeEnum( Type, ); - /** @internal */ export const Type$outboundSchema: z.ZodNativeEnum = Type$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Type$ { - /** @deprecated use `Type$inboundSchema` instead. */ - export const inboundSchema = Type$inboundSchema; - /** @deprecated use `Type$outboundSchema` instead. */ - export const outboundSchema = Type$outboundSchema; -} - /** @internal */ export const Report$inboundSchema: z.ZodType = z .object({ type: Type$inboundSchema.optional(), }); - /** @internal */ export type Report$Outbound = { type?: string | undefined; @@ -58,23 +45,9 @@ export const Report$outboundSchema: z.ZodType< type: Type$outboundSchema.optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Report$ { - /** @deprecated use `Report$inboundSchema` instead. */ - export const inboundSchema = Report$inboundSchema; - /** @deprecated use `Report$outboundSchema` instead. */ - export const outboundSchema = Report$outboundSchema; - /** @deprecated use `Report$Outbound` instead. */ - export type Outbound = Report$Outbound; -} - export function reportToJSON(report: Report): string { return JSON.stringify(Report$outboundSchema.parse(report)); } - export function reportFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/revision.ts b/src/sdk/models/shared/revision.ts index 090cb51f..e209d5ba 100644 --- a/src/sdk/models/shared/revision.ts +++ b/src/sdk/models/shared/revision.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -48,7 +48,6 @@ export const Revision$inboundSchema: z.ZodType< "updated_at": "updatedAt", }); }); - /** @internal */ export type Revision$Outbound = { contents_metadata?: RevisionContentsMetadata$Outbound | undefined; @@ -82,23 +81,9 @@ export const Revision$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Revision$ { - /** @deprecated use `Revision$inboundSchema` instead. */ - export const inboundSchema = Revision$inboundSchema; - /** @deprecated use `Revision$outboundSchema` instead. */ - export const outboundSchema = Revision$outboundSchema; - /** @deprecated use `Revision$Outbound` instead. */ - export type Outbound = Revision$Outbound; -} - export function revisionToJSON(revision: Revision): string { return JSON.stringify(Revision$outboundSchema.parse(revision)); } - export function revisionFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/revisioncontentsmetadata.ts b/src/sdk/models/shared/revisioncontentsmetadata.ts index 098d1349..6d53fcde 100644 --- a/src/sdk/models/shared/revisioncontentsmetadata.ts +++ b/src/sdk/models/shared/revisioncontentsmetadata.ts @@ -2,12 +2,24 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import { + RelativeDiff, + RelativeDiff$inboundSchema, + RelativeDiff$Outbound, + RelativeDiff$outboundSchema, +} from "./relativediff.js"; +import { + Server, + Server$inboundSchema, + Server$Outbound, + Server$outboundSchema, +} from "./server.js"; export const RevisionContentsMetadataType = { OpenapiBundle: "OPENAPI_BUNDLE", @@ -43,10 +55,18 @@ export type RevisionContentsMetadata = { * The operation IDs contained in the OAS. Will be empty if the OAS is an overlay. */ operationIds: Array; + /** + * A relative diff between the current revision and the previous revision. + */ + relativeDiff?: RelativeDiff | undefined; /** * The digest of the parent bundle */ revisionDigest: string; + /** + * The servers contained in the OAS. Will be empty if the OAS is an overlay. + */ + serverUrls: Array; /** * The tags contained in the OAS -- NOT the OCI tags. Will be empty if the OAS is an overlay. */ @@ -70,23 +90,11 @@ export type RevisionContentsMetadata = { export const RevisionContentsMetadataType$inboundSchema: z.ZodNativeEnum< typeof RevisionContentsMetadataType > = z.nativeEnum(RevisionContentsMetadataType); - /** @internal */ export const RevisionContentsMetadataType$outboundSchema: z.ZodNativeEnum< typeof RevisionContentsMetadataType > = RevisionContentsMetadataType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RevisionContentsMetadataType$ { - /** @deprecated use `RevisionContentsMetadataType$inboundSchema` instead. */ - export const inboundSchema = RevisionContentsMetadataType$inboundSchema; - /** @deprecated use `RevisionContentsMetadataType$outboundSchema` instead. */ - export const outboundSchema = RevisionContentsMetadataType$outboundSchema; -} - /** @internal */ export const RevisionContentsMetadata$inboundSchema: z.ZodType< RevisionContentsMetadata, @@ -100,7 +108,9 @@ export const RevisionContentsMetadata$inboundSchema: z.ZodType< namespace: z.string(), num_overlay_actions: z.number().int(), operation_ids: z.array(z.string()), + relative_diff: RelativeDiff$inboundSchema.optional(), revision_digest: z.string(), + server_urls: z.array(Server$inboundSchema), tags: z.array(z.string()), title: z.string(), type: RevisionContentsMetadataType$inboundSchema, @@ -112,11 +122,12 @@ export const RevisionContentsMetadata$inboundSchema: z.ZodType< "created_at": "createdAt", "num_overlay_actions": "numOverlayActions", "operation_ids": "operationIds", + "relative_diff": "relativeDiff", "revision_digest": "revisionDigest", + "server_urls": "serverUrls", "workspace_id": "workspaceId", }); }); - /** @internal */ export type RevisionContentsMetadata$Outbound = { contains_code_samples: boolean; @@ -126,7 +137,9 @@ export type RevisionContentsMetadata$Outbound = { namespace: string; num_overlay_actions: number; operation_ids: Array; + relative_diff?: RelativeDiff$Outbound | undefined; revision_digest: string; + server_urls: Array; tags: Array; title: string; type: string; @@ -147,7 +160,9 @@ export const RevisionContentsMetadata$outboundSchema: z.ZodType< namespace: z.string(), numOverlayActions: z.number().int(), operationIds: z.array(z.string()), + relativeDiff: RelativeDiff$outboundSchema.optional(), revisionDigest: z.string(), + serverUrls: z.array(Server$outboundSchema), tags: z.array(z.string()), title: z.string(), type: RevisionContentsMetadataType$outboundSchema, @@ -159,24 +174,13 @@ export const RevisionContentsMetadata$outboundSchema: z.ZodType< createdAt: "created_at", numOverlayActions: "num_overlay_actions", operationIds: "operation_ids", + relativeDiff: "relative_diff", revisionDigest: "revision_digest", + serverUrls: "server_urls", workspaceId: "workspace_id", }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RevisionContentsMetadata$ { - /** @deprecated use `RevisionContentsMetadata$inboundSchema` instead. */ - export const inboundSchema = RevisionContentsMetadata$inboundSchema; - /** @deprecated use `RevisionContentsMetadata$outboundSchema` instead. */ - export const outboundSchema = RevisionContentsMetadata$outboundSchema; - /** @deprecated use `RevisionContentsMetadata$Outbound` instead. */ - export type Outbound = RevisionContentsMetadata$Outbound; -} - export function revisionContentsMetadataToJSON( revisionContentsMetadata: RevisionContentsMetadata, ): string { @@ -184,7 +188,6 @@ export function revisionContentsMetadataToJSON( RevisionContentsMetadata$outboundSchema.parse(revisionContentsMetadata), ); } - export function revisionContentsMetadataFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/schemastoreitem.ts b/src/sdk/models/shared/schemastoreitem.ts index 5dd7348c..79e7787b 100644 --- a/src/sdk/models/shared/schemastoreitem.ts +++ b/src/sdk/models/shared/schemastoreitem.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -27,22 +27,10 @@ export type SchemaStoreItem = { /** @internal */ export const Format$inboundSchema: z.ZodNativeEnum = z .nativeEnum(Format); - /** @internal */ export const Format$outboundSchema: z.ZodNativeEnum = Format$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Format$ { - /** @deprecated use `Format$inboundSchema` instead. */ - export const inboundSchema = Format$inboundSchema; - /** @deprecated use `Format$outboundSchema` instead. */ - export const outboundSchema = Format$outboundSchema; -} - /** @internal */ export const SchemaStoreItem$inboundSchema: z.ZodType< SchemaStoreItem, @@ -60,7 +48,6 @@ export const SchemaStoreItem$inboundSchema: z.ZodType< "created_at": "createdAt", }); }); - /** @internal */ export type SchemaStoreItem$Outbound = { created_at: string; @@ -89,25 +76,11 @@ export const SchemaStoreItem$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SchemaStoreItem$ { - /** @deprecated use `SchemaStoreItem$inboundSchema` instead. */ - export const inboundSchema = SchemaStoreItem$inboundSchema; - /** @deprecated use `SchemaStoreItem$outboundSchema` instead. */ - export const outboundSchema = SchemaStoreItem$outboundSchema; - /** @deprecated use `SchemaStoreItem$Outbound` instead. */ - export type Outbound = SchemaStoreItem$Outbound; -} - export function schemaStoreItemToJSON( schemaStoreItem: SchemaStoreItem, ): string { return JSON.stringify(SchemaStoreItem$outboundSchema.parse(schemaStoreItem)); } - export function schemaStoreItemFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/security.ts b/src/sdk/models/shared/security.ts index ee05901d..a125cf98 100644 --- a/src/sdk/models/shared/security.ts +++ b/src/sdk/models/shared/security.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -30,7 +30,6 @@ export const Security$inboundSchema: z.ZodType< "WorkspaceIdentifier": "workspaceIdentifier", }); }); - /** @internal */ export type Security$Outbound = { APIKey?: string | undefined; @@ -55,23 +54,9 @@ export const Security$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Security$ { - /** @deprecated use `Security$inboundSchema` instead. */ - export const inboundSchema = Security$inboundSchema; - /** @deprecated use `Security$outboundSchema` instead. */ - export const outboundSchema = Security$outboundSchema; - /** @deprecated use `Security$Outbound` instead. */ - export type Outbound = Security$Outbound; -} - export function securityToJSON(security: Security): string { return JSON.stringify(Security$outboundSchema.parse(security)); } - export function securityFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/server.ts b/src/sdk/models/shared/server.ts new file mode 100644 index 00000000..d8ecd57c --- /dev/null +++ b/src/sdk/models/shared/server.ts @@ -0,0 +1,58 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { safeParse } from "../../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; + +/** + * A server as defined in an OpenAPI document + */ +export type Server = { + description: string; + /** + * The x-speakeasy-server-id of the server + */ + id?: string | undefined; + url: string; +}; + +/** @internal */ +export const Server$inboundSchema: z.ZodType = z + .object({ + description: z.string(), + id: z.string().optional(), + url: z.string(), + }); +/** @internal */ +export type Server$Outbound = { + description: string; + id?: string | undefined; + url: string; +}; + +/** @internal */ +export const Server$outboundSchema: z.ZodType< + Server$Outbound, + z.ZodTypeDef, + Server +> = z.object({ + description: z.string(), + id: z.string().optional(), + url: z.string(), +}); + +export function serverToJSON(server: Server): string { + return JSON.stringify(Server$outboundSchema.parse(server)); +} +export function serverFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => Server$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'Server' from JSON`, + ); +} diff --git a/src/sdk/models/shared/shorturl.ts b/src/sdk/models/shared/shorturl.ts index 285fd026..f06d3e5e 100644 --- a/src/sdk/models/shared/shorturl.ts +++ b/src/sdk/models/shared/shorturl.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -27,7 +27,6 @@ export const ShortURL$inboundSchema: z.ZodType< "short_url": "shortUrl", }); }); - /** @internal */ export type ShortURL$Outbound = { full_url: string; @@ -49,23 +48,9 @@ export const ShortURL$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ShortURL$ { - /** @deprecated use `ShortURL$inboundSchema` instead. */ - export const inboundSchema = ShortURL$inboundSchema; - /** @deprecated use `ShortURL$outboundSchema` instead. */ - export const outboundSchema = ShortURL$outboundSchema; - /** @deprecated use `ShortURL$Outbound` instead. */ - export type Outbound = ShortURL$Outbound; -} - export function shortURLToJSON(shortURL: ShortURL): string { return JSON.stringify(ShortURL$outboundSchema.parse(shortURL)); } - export function shortURLFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/ssometadata.ts b/src/sdk/models/shared/ssometadata.ts index 1ec2e5ec..007fed9b 100644 --- a/src/sdk/models/shared/ssometadata.ts +++ b/src/sdk/models/shared/ssometadata.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -30,7 +30,6 @@ export const SSOMetadata$inboundSchema: z.ZodType< "sso_domains": "ssoDomains", }); }); - /** @internal */ export type SSOMetadata$Outbound = { sso_activated: boolean; @@ -52,23 +51,9 @@ export const SSOMetadata$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SSOMetadata$ { - /** @deprecated use `SSOMetadata$inboundSchema` instead. */ - export const inboundSchema = SSOMetadata$inboundSchema; - /** @deprecated use `SSOMetadata$outboundSchema` instead. */ - export const outboundSchema = SSOMetadata$outboundSchema; - /** @deprecated use `SSOMetadata$Outbound` instead. */ - export type Outbound = SSOMetadata$Outbound; -} - export function ssoMetadataToJSON(ssoMetadata: SSOMetadata): string { return JSON.stringify(SSOMetadata$outboundSchema.parse(ssoMetadata)); } - export function ssoMetadataFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/suggestitemsrequestbody.ts b/src/sdk/models/shared/suggestitemsrequestbody.ts index d8feee07..36a12b66 100644 --- a/src/sdk/models/shared/suggestitemsrequestbody.ts +++ b/src/sdk/models/shared/suggestitemsrequestbody.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -27,7 +27,6 @@ export const SuggestItemsRequestBody$inboundSchema: z.ZodType< items: z.array(z.string()), prompt: z.string(), }); - /** @internal */ export type SuggestItemsRequestBody$Outbound = { items: Array; @@ -44,19 +43,6 @@ export const SuggestItemsRequestBody$outboundSchema: z.ZodType< prompt: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SuggestItemsRequestBody$ { - /** @deprecated use `SuggestItemsRequestBody$inboundSchema` instead. */ - export const inboundSchema = SuggestItemsRequestBody$inboundSchema; - /** @deprecated use `SuggestItemsRequestBody$outboundSchema` instead. */ - export const outboundSchema = SuggestItemsRequestBody$outboundSchema; - /** @deprecated use `SuggestItemsRequestBody$Outbound` instead. */ - export type Outbound = SuggestItemsRequestBody$Outbound; -} - export function suggestItemsRequestBodyToJSON( suggestItemsRequestBody: SuggestItemsRequestBody, ): string { @@ -64,7 +50,6 @@ export function suggestItemsRequestBodyToJSON( SuggestItemsRequestBody$outboundSchema.parse(suggestItemsRequestBody), ); } - export function suggestItemsRequestBodyFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/suggestoptsold.ts b/src/sdk/models/shared/suggestoptsold.ts index 0d8f6527..6075adea 100644 --- a/src/sdk/models/shared/suggestoptsold.ts +++ b/src/sdk/models/shared/suggestoptsold.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -30,23 +30,11 @@ export type SuggestOptsOld = { export const SuggestionType$inboundSchema: z.ZodNativeEnum< typeof SuggestionType > = z.nativeEnum(SuggestionType); - /** @internal */ export const SuggestionType$outboundSchema: z.ZodNativeEnum< typeof SuggestionType > = SuggestionType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SuggestionType$ { - /** @deprecated use `SuggestionType$inboundSchema` instead. */ - export const inboundSchema = SuggestionType$inboundSchema; - /** @deprecated use `SuggestionType$outboundSchema` instead. */ - export const outboundSchema = SuggestionType$outboundSchema; -} - /** @internal */ export const SuggestOptsOld$inboundSchema: z.ZodType< SuggestOptsOld, @@ -60,7 +48,6 @@ export const SuggestOptsOld$inboundSchema: z.ZodType< "suggestion_type": "suggestionType", }); }); - /** @internal */ export type SuggestOptsOld$Outbound = { diagnostics?: Array | undefined; @@ -81,23 +68,9 @@ export const SuggestOptsOld$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SuggestOptsOld$ { - /** @deprecated use `SuggestOptsOld$inboundSchema` instead. */ - export const inboundSchema = SuggestOptsOld$inboundSchema; - /** @deprecated use `SuggestOptsOld$outboundSchema` instead. */ - export const outboundSchema = SuggestOptsOld$outboundSchema; - /** @deprecated use `SuggestOptsOld$Outbound` instead. */ - export type Outbound = SuggestOptsOld$Outbound; -} - export function suggestOptsOldToJSON(suggestOptsOld: SuggestOptsOld): string { return JSON.stringify(SuggestOptsOld$outboundSchema.parse(suggestOptsOld)); } - export function suggestOptsOldFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/suggestrequestbody.ts b/src/sdk/models/shared/suggestrequestbody.ts index d8e391be..c96604e6 100644 --- a/src/sdk/models/shared/suggestrequestbody.ts +++ b/src/sdk/models/shared/suggestrequestbody.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -39,23 +39,11 @@ export type SuggestRequestBody = { export const SuggestRequestBodySuggestionType$inboundSchema: z.ZodNativeEnum< typeof SuggestRequestBodySuggestionType > = z.nativeEnum(SuggestRequestBodySuggestionType); - /** @internal */ export const SuggestRequestBodySuggestionType$outboundSchema: z.ZodNativeEnum< typeof SuggestRequestBodySuggestionType > = SuggestRequestBodySuggestionType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SuggestRequestBodySuggestionType$ { - /** @deprecated use `SuggestRequestBodySuggestionType$inboundSchema` instead. */ - export const inboundSchema = SuggestRequestBodySuggestionType$inboundSchema; - /** @deprecated use `SuggestRequestBodySuggestionType$outboundSchema` instead. */ - export const outboundSchema = SuggestRequestBodySuggestionType$outboundSchema; -} - /** @internal */ export const SuggestRequestBody$inboundSchema: z.ZodType< SuggestRequestBody, @@ -71,7 +59,6 @@ export const SuggestRequestBody$inboundSchema: z.ZodType< "suggestion_type": "suggestionType", }); }); - /** @internal */ export type SuggestRequestBody$Outbound = { diagnostics: Array; @@ -95,19 +82,6 @@ export const SuggestRequestBody$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SuggestRequestBody$ { - /** @deprecated use `SuggestRequestBody$inboundSchema` instead. */ - export const inboundSchema = SuggestRequestBody$inboundSchema; - /** @deprecated use `SuggestRequestBody$outboundSchema` instead. */ - export const outboundSchema = SuggestRequestBody$outboundSchema; - /** @deprecated use `SuggestRequestBody$Outbound` instead. */ - export type Outbound = SuggestRequestBody$Outbound; -} - export function suggestRequestBodyToJSON( suggestRequestBody: SuggestRequestBody, ): string { @@ -115,7 +89,6 @@ export function suggestRequestBodyToJSON( SuggestRequestBody$outboundSchema.parse(suggestRequestBody), ); } - export function suggestRequestBodyFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/tag.ts b/src/sdk/models/shared/tag.ts index 391719d3..ec87b1f2 100644 --- a/src/sdk/models/shared/tag.ts +++ b/src/sdk/models/shared/tag.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -34,7 +34,6 @@ export const Tag$inboundSchema: z.ZodType = z "revision_digest": "revisionDigest", }); }); - /** @internal */ export type Tag$Outbound = { id: string; @@ -57,23 +56,9 @@ export const Tag$outboundSchema: z.ZodType = z }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Tag$ { - /** @deprecated use `Tag$inboundSchema` instead. */ - export const inboundSchema = Tag$inboundSchema; - /** @deprecated use `Tag$outboundSchema` instead. */ - export const outboundSchema = Tag$outboundSchema; - /** @deprecated use `Tag$Outbound` instead. */ - export type Outbound = Tag$Outbound; -} - export function tagToJSON(tag: Tag): string { return JSON.stringify(Tag$outboundSchema.parse(tag)); } - export function tagFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/targetsdk.ts b/src/sdk/models/shared/targetsdk.ts index 884a7c11..c88ef7d1 100644 --- a/src/sdk/models/shared/targetsdk.ts +++ b/src/sdk/models/shared/targetsdk.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -298,7 +298,6 @@ export const TargetSDK$inboundSchema: z.ZodType< "workflow_pre_raw": "workflowPreRaw", }); }); - /** @internal */ export type TargetSDK$Outbound = { commit_head?: string | undefined; @@ -446,23 +445,9 @@ export const TargetSDK$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TargetSDK$ { - /** @deprecated use `TargetSDK$inboundSchema` instead. */ - export const inboundSchema = TargetSDK$inboundSchema; - /** @deprecated use `TargetSDK$outboundSchema` instead. */ - export const outboundSchema = TargetSDK$outboundSchema; - /** @deprecated use `TargetSDK$Outbound` instead. */ - export type Outbound = TargetSDK$Outbound; -} - export function targetSDKToJSON(targetSDK: TargetSDK): string { return JSON.stringify(TargetSDK$outboundSchema.parse(targetSDK)); } - export function targetSDKFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/usagesnippet.ts b/src/sdk/models/shared/usagesnippet.ts index c98cf036..1eb3d859 100644 --- a/src/sdk/models/shared/usagesnippet.ts +++ b/src/sdk/models/shared/usagesnippet.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -42,7 +42,6 @@ export const UsageSnippet$inboundSchema: z.ZodType< operationId: z.string(), path: z.string(), }); - /** @internal */ export type UsageSnippet$Outbound = { code: string; @@ -65,23 +64,9 @@ export const UsageSnippet$outboundSchema: z.ZodType< path: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UsageSnippet$ { - /** @deprecated use `UsageSnippet$inboundSchema` instead. */ - export const inboundSchema = UsageSnippet$inboundSchema; - /** @deprecated use `UsageSnippet$outboundSchema` instead. */ - export const outboundSchema = UsageSnippet$outboundSchema; - /** @deprecated use `UsageSnippet$Outbound` instead. */ - export type Outbound = UsageSnippet$Outbound; -} - export function usageSnippetToJSON(usageSnippet: UsageSnippet): string { return JSON.stringify(UsageSnippet$outboundSchema.parse(usageSnippet)); } - export function usageSnippetFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/usagesnippets.ts b/src/sdk/models/shared/usagesnippets.ts index 216b5cee..2b7feebb 100644 --- a/src/sdk/models/shared/usagesnippets.ts +++ b/src/sdk/models/shared/usagesnippets.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -25,7 +25,6 @@ export const UsageSnippets$inboundSchema: z.ZodType< > = z.object({ snippets: z.array(UsageSnippet$inboundSchema), }); - /** @internal */ export type UsageSnippets$Outbound = { snippets: Array; @@ -40,23 +39,9 @@ export const UsageSnippets$outboundSchema: z.ZodType< snippets: z.array(UsageSnippet$outboundSchema), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UsageSnippets$ { - /** @deprecated use `UsageSnippets$inboundSchema` instead. */ - export const inboundSchema = UsageSnippets$inboundSchema; - /** @deprecated use `UsageSnippets$outboundSchema` instead. */ - export const outboundSchema = UsageSnippets$outboundSchema; - /** @deprecated use `UsageSnippets$Outbound` instead. */ - export type Outbound = UsageSnippets$Outbound; -} - export function usageSnippetsToJSON(usageSnippets: UsageSnippets): string { return JSON.stringify(UsageSnippets$outboundSchema.parse(usageSnippets)); } - export function usageSnippetsFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/user.ts b/src/sdk/models/shared/user.ts index 8af246e8..3f0af392 100644 --- a/src/sdk/models/shared/user.ts +++ b/src/sdk/models/shared/user.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -114,7 +114,6 @@ export const User$inboundSchema: z.ZodType = z "updated_at": "updatedAt", }); }); - /** @internal */ export type User$Outbound = { admin: boolean; @@ -170,23 +169,9 @@ export const User$outboundSchema: z.ZodType = }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace User$ { - /** @deprecated use `User$inboundSchema` instead. */ - export const inboundSchema = User$inboundSchema; - /** @deprecated use `User$outboundSchema` instead. */ - export const outboundSchema = User$outboundSchema; - /** @deprecated use `User$Outbound` instead. */ - export type Outbound = User$Outbound; -} - export function userToJSON(user: User): string { return JSON.stringify(User$outboundSchema.parse(user)); } - export function userFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/v2descriptor.ts b/src/sdk/models/shared/v2descriptor.ts index 781484cc..d6bdafb7 100644 --- a/src/sdk/models/shared/v2descriptor.ts +++ b/src/sdk/models/shared/v2descriptor.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -46,7 +46,6 @@ export const V2Descriptor$inboundSchema: z.ZodType< mediaType: z.string().optional(), size: z.number().int().optional(), }); - /** @internal */ export type V2Descriptor$Outbound = { annotations?: Annotations$Outbound | undefined; @@ -67,23 +66,9 @@ export const V2Descriptor$outboundSchema: z.ZodType< size: z.number().int().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace V2Descriptor$ { - /** @deprecated use `V2Descriptor$inboundSchema` instead. */ - export const inboundSchema = V2Descriptor$inboundSchema; - /** @deprecated use `V2Descriptor$outboundSchema` instead. */ - export const outboundSchema = V2Descriptor$outboundSchema; - /** @deprecated use `V2Descriptor$Outbound` instead. */ - export type Outbound = V2Descriptor$Outbound; -} - export function v2DescriptorToJSON(v2Descriptor: V2Descriptor): string { return JSON.stringify(V2Descriptor$outboundSchema.parse(v2Descriptor)); } - export function v2DescriptorFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/workflowdocument.ts b/src/sdk/models/shared/workflowdocument.ts index ef018ea6..4a3b321c 100644 --- a/src/sdk/models/shared/workflowdocument.ts +++ b/src/sdk/models/shared/workflowdocument.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -26,7 +26,6 @@ export const Auth$inboundSchema: z.ZodType = z header: z.string(), secret: z.string(), }); - /** @internal */ export type Auth$Outbound = { header: string; @@ -40,23 +39,9 @@ export const Auth$outboundSchema: z.ZodType = secret: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Auth$ { - /** @deprecated use `Auth$inboundSchema` instead. */ - export const inboundSchema = Auth$inboundSchema; - /** @deprecated use `Auth$outboundSchema` instead. */ - export const outboundSchema = Auth$outboundSchema; - /** @deprecated use `Auth$Outbound` instead. */ - export type Outbound = Auth$Outbound; -} - export function authToJSON(auth: Auth): string { return JSON.stringify(Auth$outboundSchema.parse(auth)); } - export function authFromJSON( jsonString: string, ): SafeParseResult { @@ -76,7 +61,6 @@ export const WorkflowDocument$inboundSchema: z.ZodType< auth: z.lazy(() => Auth$inboundSchema).optional(), location: z.string(), }); - /** @internal */ export type WorkflowDocument$Outbound = { auth?: Auth$Outbound | undefined; @@ -93,19 +77,6 @@ export const WorkflowDocument$outboundSchema: z.ZodType< location: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace WorkflowDocument$ { - /** @deprecated use `WorkflowDocument$inboundSchema` instead. */ - export const inboundSchema = WorkflowDocument$inboundSchema; - /** @deprecated use `WorkflowDocument$outboundSchema` instead. */ - export const outboundSchema = WorkflowDocument$outboundSchema; - /** @deprecated use `WorkflowDocument$Outbound` instead. */ - export type Outbound = WorkflowDocument$Outbound; -} - export function workflowDocumentToJSON( workflowDocument: WorkflowDocument, ): string { @@ -113,7 +84,6 @@ export function workflowDocumentToJSON( WorkflowDocument$outboundSchema.parse(workflowDocument), ); } - export function workflowDocumentFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/workspace.ts b/src/sdk/models/shared/workspace.ts index cdf9a0d9..f715b6bf 100644 --- a/src/sdk/models/shared/workspace.ts +++ b/src/sdk/models/shared/workspace.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -51,7 +51,6 @@ export const Workspace$inboundSchema: z.ZodType< "updated_at": "updatedAt", }); }); - /** @internal */ export type Workspace$Outbound = { created_at: string; @@ -89,23 +88,9 @@ export const Workspace$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Workspace$ { - /** @deprecated use `Workspace$inboundSchema` instead. */ - export const inboundSchema = Workspace$inboundSchema; - /** @deprecated use `Workspace$outboundSchema` instead. */ - export const outboundSchema = Workspace$outboundSchema; - /** @deprecated use `Workspace$Outbound` instead. */ - export type Outbound = Workspace$Outbound; -} - export function workspaceToJSON(workspace: Workspace): string { return JSON.stringify(Workspace$outboundSchema.parse(workspace)); } - export function workspaceFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/workspaceandorganization.ts b/src/sdk/models/shared/workspaceandorganization.ts index 33d221f5..d58a5f61 100644 --- a/src/sdk/models/shared/workspaceandorganization.ts +++ b/src/sdk/models/shared/workspaceandorganization.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -42,7 +42,6 @@ export const WorkspaceAndOrganization$inboundSchema: z.ZodType< organization: Organization$inboundSchema, workspace: Workspace$inboundSchema, }); - /** @internal */ export type WorkspaceAndOrganization$Outbound = { organization: Organization$Outbound; @@ -59,19 +58,6 @@ export const WorkspaceAndOrganization$outboundSchema: z.ZodType< workspace: Workspace$outboundSchema, }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace WorkspaceAndOrganization$ { - /** @deprecated use `WorkspaceAndOrganization$inboundSchema` instead. */ - export const inboundSchema = WorkspaceAndOrganization$inboundSchema; - /** @deprecated use `WorkspaceAndOrganization$outboundSchema` instead. */ - export const outboundSchema = WorkspaceAndOrganization$outboundSchema; - /** @deprecated use `WorkspaceAndOrganization$Outbound` instead. */ - export type Outbound = WorkspaceAndOrganization$Outbound; -} - export function workspaceAndOrganizationToJSON( workspaceAndOrganization: WorkspaceAndOrganization, ): string { @@ -79,7 +65,6 @@ export function workspaceAndOrganizationToJSON( WorkspaceAndOrganization$outboundSchema.parse(workspaceAndOrganization), ); } - export function workspaceAndOrganizationFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/workspacefeatureflag.ts b/src/sdk/models/shared/workspacefeatureflag.ts index e7ae8cbf..52e450b5 100644 --- a/src/sdk/models/shared/workspacefeatureflag.ts +++ b/src/sdk/models/shared/workspacefeatureflag.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { catchUnrecognizedEnum, OpenEnum, @@ -33,7 +33,6 @@ export const WorkspaceFeatureFlag$inboundSchema: z.ZodType< z.nativeEnum(WorkspaceFeatureFlag), z.string().transform(catchUnrecognizedEnum), ]); - /** @internal */ export const WorkspaceFeatureFlag$outboundSchema: z.ZodType< WorkspaceFeatureFlag, @@ -43,14 +42,3 @@ export const WorkspaceFeatureFlag$outboundSchema: z.ZodType< z.nativeEnum(WorkspaceFeatureFlag), z.string().and(z.custom>()), ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace WorkspaceFeatureFlag$ { - /** @deprecated use `WorkspaceFeatureFlag$inboundSchema` instead. */ - export const inboundSchema = WorkspaceFeatureFlag$inboundSchema; - /** @deprecated use `WorkspaceFeatureFlag$outboundSchema` instead. */ - export const outboundSchema = WorkspaceFeatureFlag$outboundSchema; -} diff --git a/src/sdk/models/shared/workspacefeatureflagrequest.ts b/src/sdk/models/shared/workspacefeatureflagrequest.ts index adf8f8f2..15c517e2 100644 --- a/src/sdk/models/shared/workspacefeatureflagrequest.ts +++ b/src/sdk/models/shared/workspacefeatureflagrequest.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -32,7 +32,6 @@ export const WorkspaceFeatureFlagRequest$inboundSchema: z.ZodType< "feature_flags": "featureFlags", }); }); - /** @internal */ export type WorkspaceFeatureFlagRequest$Outbound = { feature_flags: Array; @@ -51,19 +50,6 @@ export const WorkspaceFeatureFlagRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace WorkspaceFeatureFlagRequest$ { - /** @deprecated use `WorkspaceFeatureFlagRequest$inboundSchema` instead. */ - export const inboundSchema = WorkspaceFeatureFlagRequest$inboundSchema; - /** @deprecated use `WorkspaceFeatureFlagRequest$outboundSchema` instead. */ - export const outboundSchema = WorkspaceFeatureFlagRequest$outboundSchema; - /** @deprecated use `WorkspaceFeatureFlagRequest$Outbound` instead. */ - export type Outbound = WorkspaceFeatureFlagRequest$Outbound; -} - export function workspaceFeatureFlagRequestToJSON( workspaceFeatureFlagRequest: WorkspaceFeatureFlagRequest, ): string { @@ -73,7 +59,6 @@ export function workspaceFeatureFlagRequestToJSON( ), ); } - export function workspaceFeatureFlagRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/workspacefeatureflagresponse.ts b/src/sdk/models/shared/workspacefeatureflagresponse.ts index 74c98d98..2ed24a5e 100644 --- a/src/sdk/models/shared/workspacefeatureflagresponse.ts +++ b/src/sdk/models/shared/workspacefeatureflagresponse.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -33,7 +33,6 @@ export const WorkspaceFeatureFlagResponse$inboundSchema: z.ZodType< "feature_flags": "featureFlags", }); }); - /** @internal */ export type WorkspaceFeatureFlagResponse$Outbound = { feature_flags?: Array | undefined; @@ -52,19 +51,6 @@ export const WorkspaceFeatureFlagResponse$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace WorkspaceFeatureFlagResponse$ { - /** @deprecated use `WorkspaceFeatureFlagResponse$inboundSchema` instead. */ - export const inboundSchema = WorkspaceFeatureFlagResponse$inboundSchema; - /** @deprecated use `WorkspaceFeatureFlagResponse$outboundSchema` instead. */ - export const outboundSchema = WorkspaceFeatureFlagResponse$outboundSchema; - /** @deprecated use `WorkspaceFeatureFlagResponse$Outbound` instead. */ - export type Outbound = WorkspaceFeatureFlagResponse$Outbound; -} - export function workspaceFeatureFlagResponseToJSON( workspaceFeatureFlagResponse: WorkspaceFeatureFlagResponse, ): string { @@ -74,7 +60,6 @@ export function workspaceFeatureFlagResponseToJSON( ), ); } - export function workspaceFeatureFlagResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/workspaceinviteresponse.ts b/src/sdk/models/shared/workspaceinviteresponse.ts index 9b4a721e..10513897 100644 --- a/src/sdk/models/shared/workspaceinviteresponse.ts +++ b/src/sdk/models/shared/workspaceinviteresponse.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -35,7 +35,6 @@ export const Relationship$inboundSchema: z.ZodType< "workspace_id": "workspaceId", }); }); - /** @internal */ export type Relationship$Outbound = { user_id: string; @@ -57,23 +56,9 @@ export const Relationship$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Relationship$ { - /** @deprecated use `Relationship$inboundSchema` instead. */ - export const inboundSchema = Relationship$inboundSchema; - /** @deprecated use `Relationship$outboundSchema` instead. */ - export const outboundSchema = Relationship$outboundSchema; - /** @deprecated use `Relationship$Outbound` instead. */ - export type Outbound = Relationship$Outbound; -} - export function relationshipToJSON(relationship: Relationship): string { return JSON.stringify(Relationship$outboundSchema.parse(relationship)); } - export function relationshipFromJSON( jsonString: string, ): SafeParseResult { @@ -97,7 +82,6 @@ export const WorkspaceInviteResponse$inboundSchema: z.ZodType< "invite_link": "inviteLink", }); }); - /** @internal */ export type WorkspaceInviteResponse$Outbound = { invite_link?: string | null | undefined; @@ -118,19 +102,6 @@ export const WorkspaceInviteResponse$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace WorkspaceInviteResponse$ { - /** @deprecated use `WorkspaceInviteResponse$inboundSchema` instead. */ - export const inboundSchema = WorkspaceInviteResponse$inboundSchema; - /** @deprecated use `WorkspaceInviteResponse$outboundSchema` instead. */ - export const outboundSchema = WorkspaceInviteResponse$outboundSchema; - /** @deprecated use `WorkspaceInviteResponse$Outbound` instead. */ - export type Outbound = WorkspaceInviteResponse$Outbound; -} - export function workspaceInviteResponseToJSON( workspaceInviteResponse: WorkspaceInviteResponse, ): string { @@ -138,7 +109,6 @@ export function workspaceInviteResponseToJSON( WorkspaceInviteResponse$outboundSchema.parse(workspaceInviteResponse), ); } - export function workspaceInviteResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/workspacesettings.ts b/src/sdk/models/shared/workspacesettings.ts index 4a8b36c5..ce88a5cc 100644 --- a/src/sdk/models/shared/workspacesettings.ts +++ b/src/sdk/models/shared/workspacesettings.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -33,7 +33,6 @@ export const WorkspaceSettings$inboundSchema: z.ZodType< "workspace_id": "workspaceId", }); }); - /** @internal */ export type WorkspaceSettings$Outbound = { created_at: string; @@ -61,19 +60,6 @@ export const WorkspaceSettings$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace WorkspaceSettings$ { - /** @deprecated use `WorkspaceSettings$inboundSchema` instead. */ - export const inboundSchema = WorkspaceSettings$inboundSchema; - /** @deprecated use `WorkspaceSettings$outboundSchema` instead. */ - export const outboundSchema = WorkspaceSettings$outboundSchema; - /** @deprecated use `WorkspaceSettings$Outbound` instead. */ - export type Outbound = WorkspaceSettings$Outbound; -} - export function workspaceSettingsToJSON( workspaceSettings: WorkspaceSettings, ): string { @@ -81,7 +67,6 @@ export function workspaceSettingsToJSON( WorkspaceSettings$outboundSchema.parse(workspaceSettings), ); } - export function workspaceSettingsFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/workspaceteamresponse.ts b/src/sdk/models/shared/workspaceteamresponse.ts index dc205dbc..8d1545de 100644 --- a/src/sdk/models/shared/workspaceteamresponse.ts +++ b/src/sdk/models/shared/workspaceteamresponse.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -44,7 +44,6 @@ export const WorkspaceTeamResponse$inboundSchema: z.ZodType< "sso_metadata": "ssoMetadata", }); }); - /** @internal */ export type WorkspaceTeamResponse$Outbound = { sso_metadata?: SSOMetadata$Outbound | undefined; @@ -65,19 +64,6 @@ export const WorkspaceTeamResponse$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace WorkspaceTeamResponse$ { - /** @deprecated use `WorkspaceTeamResponse$inboundSchema` instead. */ - export const inboundSchema = WorkspaceTeamResponse$inboundSchema; - /** @deprecated use `WorkspaceTeamResponse$outboundSchema` instead. */ - export const outboundSchema = WorkspaceTeamResponse$outboundSchema; - /** @deprecated use `WorkspaceTeamResponse$Outbound` instead. */ - export type Outbound = WorkspaceTeamResponse$Outbound; -} - export function workspaceTeamResponseToJSON( workspaceTeamResponse: WorkspaceTeamResponse, ): string { @@ -85,7 +71,6 @@ export function workspaceTeamResponseToJSON( WorkspaceTeamResponse$outboundSchema.parse(workspaceTeamResponse), ); } - export function workspaceTeamResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/models/shared/workspacetoken.ts b/src/sdk/models/shared/workspacetoken.ts index 4b19cdc6..bd8f1611 100644 --- a/src/sdk/models/shared/workspacetoken.ts +++ b/src/sdk/models/shared/workspacetoken.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../../lib/primitives.js"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -54,7 +54,6 @@ export const WorkspaceToken$inboundSchema: z.ZodType< "workspace_id": "workspaceId", }); }); - /** @internal */ export type WorkspaceToken$Outbound = { alg: string; @@ -98,23 +97,9 @@ export const WorkspaceToken$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace WorkspaceToken$ { - /** @deprecated use `WorkspaceToken$inboundSchema` instead. */ - export const inboundSchema = WorkspaceToken$inboundSchema; - /** @deprecated use `WorkspaceToken$outboundSchema` instead. */ - export const outboundSchema = WorkspaceToken$outboundSchema; - /** @deprecated use `WorkspaceToken$Outbound` instead. */ - export type Outbound = WorkspaceToken$Outbound; -} - export function workspaceTokenToJSON(workspaceToken: WorkspaceToken): string { return JSON.stringify(WorkspaceToken$outboundSchema.parse(workspaceToken)); } - export function workspaceTokenFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/types/blobs.ts b/src/sdk/types/blobs.ts index 4ce84602..cce2892d 100644 --- a/src/sdk/types/blobs.ts +++ b/src/sdk/types/blobs.ts @@ -2,13 +2,14 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; -export const blobLikeSchema: z.ZodType = - z.custom(isBlobLike, { - message: "expected a Blob, File or Blob-like object", - fatal: true, - }); +export const blobLikeSchema: z.ZodType = z.custom< + Blob +>(isBlobLike, { + message: "expected a Blob, File or Blob-like object", + fatal: true, +}); export function isBlobLike(val: unknown): val is Blob { if (val instanceof Blob) { diff --git a/src/sdk/types/constdatetime.ts b/src/sdk/types/constdatetime.ts index c0a4409c..fe62144e 100644 --- a/src/sdk/types/constdatetime.ts +++ b/src/sdk/types/constdatetime.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; export function constDateTime( val: string, @@ -11,5 +11,5 @@ export function constDateTime( return ( typeof v === "string" && new Date(v).getTime() === new Date(val).getTime() ); - }, `Value must be equivelant to ${val}`); + }, `Value must be equivalent to ${val}`); } From fcd3c2f09feec3f4f37d1cf0f909cbc07f394b43 Mon Sep 17 00:00:00 2001 From: "speakeasy-github[bot]" <128539517+speakeasy-github[bot]@users.noreply.github.com> Date: Mon, 10 Nov 2025 00:24:10 +0000 Subject: [PATCH 2/2] empty commit to trigger [run-tests] workflow