From 64a83c60ac2ac958303809a8c1c69b8eddb6a22d Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 27 Jun 2026 00:52:11 +0000 Subject: [PATCH 1/2] =?UTF-8?q?##=20Typescript=20SDK=20Changes:=20*=20`spe?= =?UTF-8?q?akeasy.publishingTokens.list()`:=20=20`request.security`=20**Ad?= =?UTF-8?q?ded**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`speakeasy.organi?= =?UTF-8?q?zations.getAll()`:=20=20=20*=20=20`request.security`=20**Added*?= =?UTF-8?q?*=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20=20=20*=20=20`response.[]?= =?UTF-8?q?`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`speake?= =?UTF-8?q?asy.auth.validateApiKey()`:=20=20`request.security`=20**Added**?= =?UTF-8?q?=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`speakeasy.codeSamples?= =?UTF-8?q?.generateCodeSamplePreview()`:=20=20`request.security`=20**Adde?= =?UTF-8?q?d**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`speakeasy.codeSamp?= =?UTF-8?q?les.generateCodeSamplePreviewAsync()`:=20=20`request.security`?= =?UTF-8?q?=20**Added**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`speakeasy?= =?UTF-8?q?.events.search()`:=20=20`request.security`=20**Added**=20(Break?= =?UTF-8?q?ing=20=E2=9A=A0=EF=B8=8F)=20*=20`speakeasy.events.post()`:=20?= =?UTF-8?q?=20`request.security`=20**Added**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`speakeasy.events.getTargetsSummary()`:=20=20`?= =?UTF-8?q?request.security`=20**Added**=20(Breaking=20=E2=9A=A0=EF=B8=8F)?= =?UTF-8?q?=20*=20`speakeasy.events.getTargetsDeprecated()`:=20=20`request?= =?UTF-8?q?.security`=20**Added**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20?= =?UTF-8?q?`speakeasy.events.getTargets()`:=20=20`request.security`=20**Ad?= =?UTF-8?q?ded**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`speakeasy.events?= =?UTF-8?q?.getEventsByTarget()`:=20=20`request.security`=20**Added**=20(B?= =?UTF-8?q?reaking=20=E2=9A=A0=EF=B8=8F)=20*=20`speakeasy.workspaces.updat?= =?UTF-8?q?eSettings()`:=20=20`request.security`=20**Added**=20(Breaking?= =?UTF-8?q?=20=E2=9A=A0=EF=B8=8F)=20*=20`speakeasy.workspaces.update()`:?= =?UTF-8?q?=20=20`request.security`=20**Added**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`speakeasy.codeSamples.get()`:=20=20`request.s?= =?UTF-8?q?ecurity`=20**Added**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`s?= =?UTF-8?q?peakeasy.codeSamples.getCodeSamplePreviewAsync()`:=20=20`reques?= =?UTF-8?q?t.security`=20**Added**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*?= =?UTF-8?q?=20`speakeasy.github.checkAccess()`:=20=20`request.security`=20?= =?UTF-8?q?**Added**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`speakeasy.gi?= =?UTF-8?q?thub.checkPublishingPRs()`:=20=20`request.security`=20**Added**?= =?UTF-8?q?=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`speakeasy.github.chec?= =?UTF-8?q?kPublishingSecrets()`:=20=20`request.security`=20**Added**=20(B?= =?UTF-8?q?reaking=20=E2=9A=A0=EF=B8=8F)=20*=20`speakeasy.github.configure?= =?UTF-8?q?CodeSamples()`:=20=20`request.security`=20**Added**=20(Breaking?= =?UTF-8?q?=20=E2=9A=A0=EF=B8=8F)=20*=20`speakeasy.github.configureMintlif?= =?UTF-8?q?yRepo()`:=20=20`request.security`=20**Added**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20*=20`speakeasy.github.configureTarget()`:?= =?UTF-8?q?=20=20`request.security`=20**Added**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`speakeasy.github.getAction()`:=20=20`request.?= =?UTF-8?q?security`=20**Added**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`?= =?UTF-8?q?speakeasy.github.getSetup()`:=20=20`request.security`=20**Added?= =?UTF-8?q?**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`speakeasy.github.li?= =?UTF-8?q?nkGithub()`:=20=20`request.security`=20**Added**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20*=20`speakeasy.github.storePublishingSecr?= =?UTF-8?q?ets()`:=20=20`request.security`=20**Added**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20*=20`speakeasy.github.triggerAction()`:?= =?UTF-8?q?=20=20`request.security`=20**Added**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`speakeasy.organizations.create()`:=20=20=20*?= =?UTF-8?q?=20=20`request`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)?= =?UTF-8?q?=20=20=20*=20=20`response`=20**Changed**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20*=20`speakeasy.organizations.createBillin?= =?UTF-8?q?gAddOns()`:=20=20`request.security`=20**Added**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20*=20`speakeasy.organizations.createFreeTr?= =?UTF-8?q?ial()`:=20=20`request.security`=20**Added**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20*=20`speakeasy.organizations.deleteBillin?= =?UTF-8?q?gAddOn()`:=20=20`request.security`=20**Added**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20*=20`speakeasy.organizations.get()`:=20?= =?UTF-8?q?=20=20*=20=20`request.security`=20**Added**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20=20=20*=20=20`response`=20**Changed**=20(?= =?UTF-8?q?Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`speakeasy.publishingToken?= =?UTF-8?q?s.resolveMetadata()`:=20=20`request.security`=20**Added**=20(Br?= =?UTF-8?q?eaking=20=E2=9A=A0=EF=B8=8F)=20*=20`speakeasy.organizations.get?= =?UTF-8?q?BillingAddOns()`:=20=20`request.security`=20**Added**=20(Breaki?= =?UTF-8?q?ng=20=E2=9A=A0=EF=B8=8F)=20*=20`speakeasy.organizations.getBill?= =?UTF-8?q?ingOperations()`:=20=20=20*=20=20`request`=20**Changed**=20(Bre?= =?UTF-8?q?aking=20=E2=9A=A0=EF=B8=8F)=20=20=20*=20=20`response`=20**Chang?= =?UTF-8?q?ed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`speakeasy.organiz?= =?UTF-8?q?ations.getUsage()`:=20=20`request.security`=20**Added**=20(Brea?= =?UTF-8?q?king=20=E2=9A=A0=EF=B8=8F)=20*=20`speakeasy.publishingTokens.cr?= =?UTF-8?q?eate()`:=20=20`request.security`=20**Added**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20*=20`speakeasy.publishingTokens.delete()`?= =?UTF-8?q?:=20=20`request.security`=20**Added**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`speakeasy.publishingTokens.get()`:=20=20`requ?= =?UTF-8?q?est.security`=20**Added**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*?= =?UTF-8?q?=20`speakeasy.auth.getUser()`:=20=20`request.security`=20**Adde?= =?UTF-8?q?d**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`speakeasy.auth.get?= =?UTF-8?q?Access()`:=20=20`request.security`=20**Added**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20*=20`speakeasy.schemaStore.createSchemaSt?= =?UTF-8?q?oreItem()`:=20=20`request.security`=20**Added**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20*=20`speakeasy.publishingTokens.update()`?= =?UTF-8?q?:=20=20`request.security`=20**Added**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`speakeasy.reports.getChangesReportSignedUrl()?= =?UTF-8?q?`:=20=20`request.security`=20**Added**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`speakeasy.reports.getLintingReportSignedUrl()?= =?UTF-8?q?`:=20=20`request.security`=20**Added**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`speakeasy.reports.uploadReport()`:=20=20`requ?= =?UTF-8?q?est.security`=20**Added**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*?= =?UTF-8?q?=20`speakeasy.publishingTokens.resolveTarget()`:=20=20`request.?= =?UTF-8?q?security`=20**Added**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`?= =?UTF-8?q?speakeasy.shortUrLs.create()`:=20=20`request.security`=20**Adde?= =?UTF-8?q?d**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`speakeasy.suggest.?= =?UTF-8?q?suggest()`:=20=20`request.security`=20**Added**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20*=20`speakeasy.suggest.suggestItems()`:?= =?UTF-8?q?=20=20`request.security`=20**Added**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`speakeasy.suggest.suggestOpenApi()`:=20=20`re?= =?UTF-8?q?quest.security`=20**Added**=20(Breaking=20=E2=9A=A0=EF=B8=8F)?= =?UTF-8?q?=20*=20`speakeasy.suggest.suggestOpenApiRegistry()`:=20=20`requ?= =?UTF-8?q?est.security`=20**Added**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*?= =?UTF-8?q?=20`speakeasy.workspaces.create()`:=20=20`request.security`=20*?= =?UTF-8?q?*Added**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`speakeasy.wor?= =?UTF-8?q?kspaces.createToken()`:=20=20`request.security`=20**Added**=20(?= =?UTF-8?q?Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`speakeasy.workspaces.dele?= =?UTF-8?q?teToken()`:=20=20`request.security`=20**Added**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20*=20`speakeasy.workspaces.get()`:=20=20?= =?UTF-8?q?=20*=20=20`request.security`=20**Added**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20=20=20*=20=20`response.organization`=20**?= =?UTF-8?q?Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`speakeasy.wo?= =?UTF-8?q?rkspaces.getAll()`:=20=20`request.security`=20**Added**=20(Brea?= =?UTF-8?q?king=20=E2=9A=A0=EF=B8=8F)=20*=20`speakeasy.workspaces.getById(?= =?UTF-8?q?)`:=20=20`request.security`=20**Added**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`speakeasy.workspaces.getFeatureFlags()`:=20?= =?UTF-8?q?=20`request.security`=20**Added**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`speakeasy.workspaces.getSettings()`:=20=20`re?= =?UTF-8?q?quest.security`=20**Added**=20(Breaking=20=E2=9A=A0=EF=B8=8F)?= =?UTF-8?q?=20*=20`speakeasy.workspaces.getTeam()`:=20=20`request.security?= =?UTF-8?q?`=20**Added**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`speakeas?= =?UTF-8?q?y.workspaces.getTokens()`:=20=20`request.security`=20**Added**?= =?UTF-8?q?=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`speakeasy.workspaces.?= =?UTF-8?q?grantAccess()`:=20=20`request.security`=20**Added**=20(Breaking?= =?UTF-8?q?=20=E2=9A=A0=EF=B8=8F)=20*=20`speakeasy.workspaces.revokeAccess?= =?UTF-8?q?()`:=20=20`request.security`=20**Added**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20*=20`speakeasy.workspaces.setFeatureFlags?= =?UTF-8?q?()`:=20=20`request.security`=20**Added**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20*=20`speakeasy.organizations.upsertBillin?= =?UTF-8?q?gEmail()`:=20**Added**=20*=20`speakeasy.organizations.getLangua?= =?UTF-8?q?ges()`:=20**Added**=20*=20`speakeasy.organizations.getBusinessT?= =?UTF-8?q?ierPrices()`:=20**Added**=20*=20`speakeasy.organizations.getBil?= =?UTF-8?q?lingEmail()`:=20**Added**=20*=20`speakeasy.organizations.deacti?= =?UTF-8?q?vateLanguage()`:=20**Added**=20*=20`speakeasy.organizations.act?= =?UTF-8?q?ivateLanguage()`:=20**Added**=20*=20`speakeasy.organizations.cr?= =?UTF-8?q?eateLanguageCheckoutSession()`:=20**Added**=20*=20`speakeasy.or?= =?UTF-8?q?ganizations.getSubscription()`:=20**Added**=20*=20`speakeasy.or?= =?UTF-8?q?ganizations.getTrialTargets()`:=20**Added**=20*=20`speakeasy.or?= =?UTF-8?q?ganizations.handleCheckoutCallback()`:=20**Added**=20*=20`speak?= =?UTF-8?q?easy.organizations.revertSubscriptionCancellation()`:=20**Added?= =?UTF-8?q?**=20*=20`speakeasy.organizations.cancelSubscription()`:=20**Ad?= =?UTF-8?q?ded**=20*=20`speakeasy.webhooks.handleStripeWebhook()`:=20**Add?= =?UTF-8?q?ed**?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .npmignore | 1 + .speakeasy/gen.lock | 2273 ++++++++++------- .speakeasy/workflow.lock | 13 +- FUNCTIONS.md | 10 +- REACT_QUERY.md | 22 +- README.md | 128 +- RELEASES.md | 12 +- USAGE.md | 6 +- .../operations/activatelanguagerequest.md | 17 + .../operations/activatelanguagesecurity.md | 17 + .../operations/cancelsubscriptionsecurity.md | 17 + .../operations/checkgithubaccesssecurity.md | 17 + .../operations/createbillingaddonssecurity.md | 17 + .../operations/createfreetrialsecurity.md | 17 + .../createlanguagecheckoutsessionsecurity.md | 17 + .../operations/createorganizationsecurity.md | 17 + .../createpublishingtokensecurity.md | 17 + .../createschemastoreitemsecurity.md | 17 + docs/sdk/models/operations/createsecurity.md | 17 + .../operations/createworkspacesecurity.md | 17 + .../createworkspacetokensecurity.md | 17 + .../operations/deactivatelanguagerequest.md | 17 + .../operations/deactivatelanguagesecurity.md | 17 + .../operations/deletebillingaddonsecurity.md | 17 + .../deletepublishingtokensecurity.md | 17 + .../deleteworkspacetokensecurity.md | 17 + .../generatecodesamplepreviewasyncsecurity.md | 17 + .../generatecodesamplepreviewsecurity.md | 17 + .../operations/getbillingaddonssecurity.md | 17 + .../operations/getbillingemailsecurity.md | 17 + .../operations/getbillingoperationsrequest.md | 15 - .../getbillingoperationssecurity.md | 17 + .../getbusinesstierpricessecurity.md | 17 + .../getchangesreportsignedurlsecurity.md | 17 + .../getcodesamplepreviewasyncsecurity.md | 17 + .../operations/getcodesamplessecurity.md | 17 + .../operations/getgithubactionsecurity.md | 17 + .../operations/getgithubsetupstatesecurity.md | 17 + .../models/operations/getlanguagessecurity.md | 17 + .../getlintingreportsignedurlsecurity.md | 17 + .../operations/getorganizationsecurity.md | 17 + .../operations/getorganizationssecurity.md | 17 + .../getorganizationsubscriptionsecurity.md | 17 + .../getorganizationusagesecurity.md | 17 + .../getpublishingtokenbyidsecurity.md | 17 + ...etpublishingtokenpublicmetadatasecurity.md | 17 + .../operations/getpublishingtokensecurity.md | 17 + .../getpublishingtokentargetbyidsecurity.md | 17 + .../operations/gettrialtargetssecurity.md | 17 + docs/sdk/models/operations/getusersecurity.md | 17 + .../operations/getworkspaceaccesssecurity.md | 17 + .../getworkspacebycontextsecurity.md | 17 + .../getworkspaceeventsbytargetsecurity.md | 17 + .../getworkspacefeatureflagssecurity.md | 17 + .../models/operations/getworkspacesecurity.md | 17 + .../getworkspacesettingssecurity.md | 17 + .../operations/getworkspacessecurity.md | 17 + .../getworkspacetargetsdeprecatedsecurity.md | 17 + .../operations/getworkspacetargetssecurity.md | 17 + .../getworkspacetargetssummarysecurity.md | 17 + .../operations/getworkspaceteamsecurity.md | 17 + .../operations/getworkspacetokenssecurity.md | 17 + .../githubcheckpublishingprssecurity.md | 17 + .../githubcheckpublishingsecretssecurity.md | 17 + .../githubconfigurecodesamplessecurity.md | 17 + .../githubconfiguremintlifyreposecurity.md | 17 + .../githubconfiguretargetsecurity.md | 17 + .../githubstorepublishingsecretssecurity.md | 17 + .../operations/githubtriggeractionsecurity.md | 17 + .../grantuseraccesstoworkspacesecurity.md | 17 + .../handlecheckoutcallbackrequest.md | 17 + .../handlecheckoutcallbackresponse.md | 23 + .../handlestripewebhookrequestbody.md | 16 + .../operations/linkgithubaccesssecurity.md | 17 + .../operations/postworkspaceeventssecurity.md | 17 + .../revertsubscriptioncancellationsecurity.md | 17 + .../revokeuseraccesstoworkspacesecurity.md | 17 + .../searchworkspaceeventssecurity.md | 17 + .../setworkspacefeatureflagssecurity.md | 17 + .../models/operations/suggestitemssecurity.md | 17 + .../suggestopenapiregistrysecurity.md | 17 + .../operations/suggestopenapisecurity.md | 17 + docs/sdk/models/operations/suggestsecurity.md | 17 + ...updatepublishingtokenexpirationsecurity.md | 17 + .../updateworkspacedetailssecurity.md | 17 + .../updateworkspacesettingssecurity.md | 17 + .../models/operations/uploadreportsecurity.md | 17 + .../operations/upsertbillingemailsecurity.md | 17 + .../operations/validateapikeysecurity.md | 17 + docs/sdk/models/shared/accounttype.md | 4 +- docs/sdk/models/shared/billingaddon.md | 4 +- docs/sdk/models/shared/billingemailrequest.md | 17 + .../sdk/models/shared/billingemailresponse.md | 18 + docs/sdk/models/shared/billinginterval.md | 17 + .../shared/billingoperationsresponse.md | 12 +- docs/sdk/models/shared/billingstatus.md | 17 + .../shared/businesstierpriceresponse.md | 25 + .../shared/businesstierpricesresponse.md | 31 + .../shared/cancelsubscriptionrequest.md | 15 + .../shared/cancelsubscriptionresponse.md | 20 + .../shared/createcheckoutsessionresponse.md | 19 + .../createlanguagecheckoutsessionrequest.md | 24 + .../sdk/models/shared/getlanguagesresponse.md | 23 + .../shared/languageactivationresponse.md | 24 + ...eakdown.md => languagebillingbreakdown.md} | 40 +- .../models/shared/languagebillingstatus.md | 17 + docs/sdk/models/shared/languageresponse.md | 23 + docs/sdk/models/shared/organization.md | 4 +- .../organizationsubscriptionresponse.md | 31 + ...tionsubscriptionresponsebillinginterval.md | 17 + .../models/shared/pendingcancellationinfo.md | 19 + docs/sdk/models/shared/security.md | 8 +- .../models/shared/targetbillingbreakdown.md | 12 +- .../sdk/models/shared/trialtargetsresponse.md | 22 + .../sdk/models/shared/workspacefeatureflag.md | 4 +- docs/sdks/artifacts/README.md | 132 +- docs/sdks/auth/README.md | 63 +- docs/sdks/codesamples/README.md | 68 +- docs/sdks/events/README.md | 94 +- docs/sdks/github/README.md | 191 +- docs/sdks/organizations/README.md | 1622 ++++++++++-- docs/sdks/publishingtokens/README.md | 127 +- docs/sdks/reports/README.md | 51 +- docs/sdks/schemastore/README.md | 17 +- docs/sdks/shorturls/README.md | 17 +- docs/sdks/subscriptions/README.md | 24 +- docs/sdks/suggest/README.md | 68 +- docs/sdks/webhooks/README.md | 92 + docs/sdks/workspaces/README.md | 217 +- .../artifactsCreateRemoteSource.example.ts | 6 +- examples/package-lock.json | 2 +- gen.yaml | 9 +- jsr.json | 2 +- package-lock.json | 4 +- package.json | 2 +- src/funcs/artifactsCreateRemoteSource.ts | 13 +- src/funcs/artifactsGetBlob.ts | 14 +- src/funcs/artifactsGetManifest.ts | 14 +- src/funcs/artifactsGetNamespaces.ts | 13 +- src/funcs/artifactsGetRevisions.ts | 14 +- src/funcs/artifactsGetTags.ts | 14 +- src/funcs/artifactsListRemoteSources.ts | 13 +- src/funcs/artifactsPostTags.ts | 14 +- src/funcs/artifactsPreflight.ts | 13 +- src/funcs/artifactsSetArchived.ts | 14 +- src/funcs/artifactsSetVisibility.ts | 14 +- src/funcs/authGetAccess.ts | 36 +- src/funcs/authGetAccessToken.ts | 4 +- src/funcs/authGetUser.ts | 37 +- src/funcs/authValidateApiKey.ts | 37 +- .../codeSamplesGenerateCodeSamplePreview.ts | 55 +- ...deSamplesGenerateCodeSamplePreviewAsync.ts | 54 +- src/funcs/codeSamplesGet.ts | 36 +- .../codeSamplesGetCodeSamplePreviewAsync.ts | 37 +- src/funcs/eventsGetEventsByTarget.ts | 37 +- src/funcs/eventsGetTargets.ts | 36 +- src/funcs/eventsGetTargetsDeprecated.ts | 37 +- src/funcs/eventsGetTargetsSummary.ts | 43 +- src/funcs/eventsPost.ts | 37 +- src/funcs/eventsSearch.ts | 37 +- src/funcs/githubCheckAccess.ts | 36 +- src/funcs/githubCheckPublishingPRs.ts | 36 +- src/funcs/githubCheckPublishingSecrets.ts | 36 +- src/funcs/githubConfigureCodeSamples.ts | 37 +- src/funcs/githubConfigureMintlifyRepo.ts | 37 +- src/funcs/githubConfigureTarget.ts | 37 +- src/funcs/githubGetAction.ts | 36 +- src/funcs/githubGetSetup.ts | 36 +- src/funcs/githubLinkGithub.ts | 36 +- src/funcs/githubStorePublishingSecrets.ts | 37 +- src/funcs/githubTriggerAction.ts | 37 +- src/funcs/organizationsActivateLanguage.ts | 202 ++ src/funcs/organizationsCancelSubscription.ts | 196 ++ src/funcs/organizationsCreate.ts | 37 +- src/funcs/organizationsCreateBillingAddOns.ts | 37 +- src/funcs/organizationsCreateFreeTrial.ts | 37 +- ...anizationsCreateLanguageCheckoutSession.ts | 198 ++ src/funcs/organizationsDeactivateLanguage.ts | 201 ++ src/funcs/organizationsDeleteBillingAddOn.ts | 37 +- src/funcs/organizationsGet.ts | 37 +- src/funcs/organizationsGetAll.ts | 37 +- src/funcs/organizationsGetBillingAddOns.ts | 37 +- src/funcs/organizationsGetBillingEmail.ts | 176 ++ .../organizationsGetBillingOperations.ts | 64 +- .../organizationsGetBusinessTierPrices.ts | 176 ++ src/funcs/organizationsGetLanguages.ts | 177 ++ src/funcs/organizationsGetSubscription.ts | 176 ++ src/funcs/organizationsGetTrialTargets.ts | 178 ++ src/funcs/organizationsGetUsage.ts | 37 +- .../organizationsHandleCheckoutCallback.ts | 175 ++ ...nizationsRevertSubscriptionCancellation.ts | 179 ++ src/funcs/organizationsUpsertBillingEmail.ts | 194 ++ src/funcs/publishingTokensCreate.ts | 36 +- src/funcs/publishingTokensDelete.ts | 37 +- src/funcs/publishingTokensGet.ts | 37 +- src/funcs/publishingTokensList.ts | 37 +- src/funcs/publishingTokensResolveMetadata.ts | 37 +- src/funcs/publishingTokensResolveTarget.ts | 37 +- src/funcs/publishingTokensUpdate.ts | 37 +- src/funcs/reportsGetChangesReportSignedUrl.ts | 37 +- src/funcs/reportsGetLintingReportSignedUrl.ts | 37 +- src/funcs/reportsUploadReport.ts | 54 +- src/funcs/schemaStoreCreateSchemaStoreItem.ts | 36 +- src/funcs/shortURLsCreate.ts | 36 +- ...scriptionsActivateSubscriptionNamespace.ts | 14 +- ...ubscriptionsIgnoreSubscriptionNamespace.ts | 14 +- src/funcs/suggestSuggest.ts | 36 +- src/funcs/suggestSuggestItems.ts | 37 +- src/funcs/suggestSuggestOpenAPI.ts | 59 +- src/funcs/suggestSuggestOpenAPIRegistry.ts | 37 +- src/funcs/webhooksHandleStripeWebhook.ts | 144 ++ src/funcs/workspacesCreate.ts | 37 +- src/funcs/workspacesCreateToken.ts | 37 +- src/funcs/workspacesDeleteToken.ts | 37 +- src/funcs/workspacesGet.ts | 37 +- src/funcs/workspacesGetAll.ts | 37 +- src/funcs/workspacesGetByID.ts | 37 +- src/funcs/workspacesGetFeatureFlags.ts | 37 +- src/funcs/workspacesGetSettings.ts | 37 +- src/funcs/workspacesGetTeam.ts | 37 +- src/funcs/workspacesGetTokens.ts | 37 +- src/funcs/workspacesGrantAccess.ts | 37 +- src/funcs/workspacesRevokeAccess.ts | 37 +- src/funcs/workspacesSetFeatureFlags.ts | 37 +- src/funcs/workspacesUpdate.ts | 37 +- src/funcs/workspacesUpdateSettings.ts | 37 +- src/hooks/types.ts | 1 + src/lib/config.ts | 12 +- src/lib/dlv.ts | 53 - src/lib/encodings.ts | 38 +- src/lib/files.ts | 22 + src/lib/is-plain-object.ts | 43 - src/lib/matchers.ts | 7 +- src/lib/primitives.ts | 16 + src/lib/retries.ts | 8 + src/lib/sdks.ts | 92 +- src/lib/security.ts | 33 +- src/lib/url.ts | 30 +- src/mcp-server/cli/start/command.ts | 16 - src/mcp-server/cli/start/impl.ts | 16 +- src/mcp-server/mcp-server.ts | 2 +- src/mcp-server/server.ts | 138 +- src/mcp-server/shared.ts | 4 +- src/mcp-server/tools/authGetAccess.ts | 37 - src/mcp-server/tools/authGetUser.ts | 28 - src/mcp-server/tools/authValidateApiKey.ts | 28 - .../codeSamplesGenerateCodeSamplePreview.ts | 40 - ...deSamplesGenerateCodeSamplePreviewAsync.ts | 40 - src/mcp-server/tools/codeSamplesGet.ts | 37 - .../codeSamplesGetCodeSamplePreviewAsync.ts | 40 - .../tools/eventsGetEventsByTarget.ts | 35 - src/mcp-server/tools/eventsGetTargets.ts | 35 - .../tools/eventsGetTargetsDeprecated.ts | 35 - .../tools/eventsGetTargetsSummary.ts | 36 - src/mcp-server/tools/eventsPost.ts | 35 - src/mcp-server/tools/eventsSearch.ts | 35 - src/mcp-server/tools/githubCheckAccess.ts | 33 - .../tools/githubCheckPublishingPRs.ts | 35 - .../tools/githubCheckPublishingSecrets.ts | 35 - .../tools/githubConfigureCodeSamples.ts | 35 - .../tools/githubConfigureMintlifyRepo.ts | 33 - src/mcp-server/tools/githubConfigureTarget.ts | 33 - src/mcp-server/tools/githubGetAction.ts | 35 - src/mcp-server/tools/githubGetSetup.ts | 35 - src/mcp-server/tools/githubLinkGithub.ts | 33 - .../tools/githubStorePublishingSecrets.ts | 33 - src/mcp-server/tools/githubTriggerAction.ts | 33 - src/mcp-server/tools/organizationsCreate.ts | 37 - .../tools/organizationsCreateBillingAddOns.ts | 37 - .../tools/organizationsCreateFreeTrial.ts | 28 - .../tools/organizationsDeleteBillingAddOn.ts | 34 - src/mcp-server/tools/organizationsGet.ts | 37 - src/mcp-server/tools/organizationsGetAll.ts | 30 - .../tools/organizationsGetBillingAddOns.ts | 28 - .../organizationsGetBillingOperations.ts | 40 - src/mcp-server/tools/organizationsGetUsage.ts | 30 - .../organizationsHandleCheckoutCallback.ts | 39 + .../tools/publishingTokensCreate.ts | 37 - .../tools/publishingTokensDelete.ts | 35 - src/mcp-server/tools/publishingTokensGet.ts | 37 - src/mcp-server/tools/publishingTokensList.ts | 30 - .../tools/publishingTokensResolveMetadata.ts | 38 - .../tools/publishingTokensResolveTarget.ts | 37 - .../tools/publishingTokensUpdate.ts | 35 - .../tools/reportsGetChangesReportSignedUrl.ts | 38 - .../tools/reportsGetLintingReportSignedUrl.ts | 38 - src/mcp-server/tools/reportsUploadReport.ts | 35 - .../tools/schemaStoreCreateSchemaStoreItem.ts | 37 - src/mcp-server/tools/shortURLsCreate.ts | 35 - src/mcp-server/tools/suggestSuggest.ts | 37 - src/mcp-server/tools/suggestSuggestItems.ts | 35 - src/mcp-server/tools/suggestSuggestOpenAPI.ts | 38 - .../tools/suggestSuggestOpenAPIRegistry.ts | 38 - ...ings.ts => webhooksHandleStripeWebhook.ts} | 15 +- src/mcp-server/tools/workspacesCreate.ts | 37 - src/mcp-server/tools/workspacesCreateToken.ts | 33 - src/mcp-server/tools/workspacesDeleteToken.ts | 33 - src/mcp-server/tools/workspacesGet.ts | 30 - src/mcp-server/tools/workspacesGetAll.ts | 30 - src/mcp-server/tools/workspacesGetByID.ts | 37 - .../tools/workspacesGetFeatureFlags.ts | 35 - src/mcp-server/tools/workspacesGetSettings.ts | 37 - src/mcp-server/tools/workspacesGetTeam.ts | 35 - src/mcp-server/tools/workspacesGetTokens.ts | 35 - src/mcp-server/tools/workspacesGrantAccess.ts | 35 - .../tools/workspacesRevokeAccess.ts | 33 - .../tools/workspacesSetFeatureFlags.ts | 35 - src/mcp-server/tools/workspacesUpdate.ts | 35 - src/react-query/authGetAccess.core.ts | 4 + src/react-query/authGetAccess.ts | 4 + src/react-query/authGetUser.core.ts | 5 + src/react-query/authGetUser.ts | 5 + src/react-query/authValidateApiKey.core.ts | 5 + src/react-query/authValidateApiKey.ts | 5 + .../codeSamplesGenerateCodeSamplePreview.ts | 4 + ...deSamplesGenerateCodeSamplePreviewAsync.ts | 3 + src/react-query/codeSamplesGet.core.ts | 4 + src/react-query/codeSamplesGet.ts | 4 + ...deSamplesGetCodeSamplePreviewAsync.core.ts | 4 + .../codeSamplesGetCodeSamplePreviewAsync.ts | 4 + .../eventsGetEventsByTarget.core.ts | 4 + src/react-query/eventsGetEventsByTarget.ts | 4 + src/react-query/eventsGetTargets.core.ts | 4 + src/react-query/eventsGetTargets.ts | 4 + .../eventsGetTargetsDeprecated.core.ts | 4 + src/react-query/eventsGetTargetsDeprecated.ts | 4 + .../eventsGetTargetsSummary.core.ts | 9 + src/react-query/eventsGetTargetsSummary.ts | 8 + src/react-query/eventsPost.ts | 3 + src/react-query/eventsSearch.core.ts | 4 + src/react-query/eventsSearch.ts | 4 + src/react-query/githubCheckAccess.core.ts | 4 + src/react-query/githubCheckAccess.ts | 4 + .../githubCheckPublishingPRs.core.ts | 4 + src/react-query/githubCheckPublishingPRs.ts | 4 + .../githubCheckPublishingSecrets.core.ts | 4 + .../githubCheckPublishingSecrets.ts | 4 + src/react-query/githubConfigureCodeSamples.ts | 4 + .../githubConfigureMintlifyRepo.ts | 4 + src/react-query/githubConfigureTarget.ts | 4 + src/react-query/githubGetAction.core.ts | 4 + src/react-query/githubGetAction.ts | 4 + src/react-query/githubGetSetup.core.ts | 4 + src/react-query/githubGetSetup.ts | 4 + src/react-query/githubLinkGithub.ts | 3 + .../githubStorePublishingSecrets.ts | 4 + src/react-query/githubTriggerAction.ts | 4 + src/react-query/index.ts | 13 + .../organizationsActivateLanguage.ts | 120 + .../organizationsCancelSubscription.ts | 121 + src/react-query/organizationsCreate.ts | 4 + .../organizationsCreateBillingAddOns.ts | 4 + .../organizationsCreateFreeTrial.ts | 4 + ...anizationsCreateLanguageCheckoutSession.ts | 120 + .../organizationsDeactivateLanguage.ts | 119 + .../organizationsDeleteBillingAddOn.ts | 3 + src/react-query/organizationsGet.core.ts | 4 + src/react-query/organizationsGet.ts | 4 + src/react-query/organizationsGetAll.core.ts | 5 + src/react-query/organizationsGetAll.ts | 5 + .../organizationsGetBillingAddOns.core.ts | 5 + .../organizationsGetBillingAddOns.ts | 5 + .../organizationsGetBillingEmail.core.ts | 75 + .../organizationsGetBillingEmail.ts | 126 + .../organizationsGetBillingOperations.core.ts | 17 +- .../organizationsGetBillingOperations.ts | 45 +- ...organizationsGetBusinessTierPrices.core.ts | 76 + .../organizationsGetBusinessTierPrices.ts | 129 + .../organizationsGetLanguages.core.ts | 75 + src/react-query/organizationsGetLanguages.ts | 128 + .../organizationsGetSubscription.core.ts | 76 + .../organizationsGetSubscription.ts | 126 + .../organizationsGetTrialTargets.core.ts | 75 + .../organizationsGetTrialTargets.ts | 130 + src/react-query/organizationsGetUsage.core.ts | 5 + src/react-query/organizationsGetUsage.ts | 5 + ...rganizationsHandleCheckoutCallback.core.ts | 81 + .../organizationsHandleCheckoutCallback.ts | 154 ++ ...nizationsRevertSubscriptionCancellation.ts | 120 + .../organizationsUpsertBillingEmail.ts | 119 + src/react-query/publishingTokensCreate.ts | 3 + src/react-query/publishingTokensDelete.ts | 3 + src/react-query/publishingTokensGet.core.ts | 4 + src/react-query/publishingTokensGet.ts | 4 + src/react-query/publishingTokensList.core.ts | 5 + src/react-query/publishingTokensList.ts | 5 + .../publishingTokensResolveMetadata.core.ts | 4 + .../publishingTokensResolveMetadata.ts | 4 + .../publishingTokensResolveTarget.core.ts | 4 + .../publishingTokensResolveTarget.ts | 4 + src/react-query/publishingTokensUpdate.ts | 3 + .../reportsGetChangesReportSignedUrl.core.ts | 4 + .../reportsGetChangesReportSignedUrl.ts | 4 + .../reportsGetLintingReportSignedUrl.core.ts | 4 + .../reportsGetLintingReportSignedUrl.ts | 4 + src/react-query/reportsUploadReport.ts | 3 + .../schemaStoreCreateSchemaStoreItem.ts | 3 + src/react-query/shortURLsCreate.ts | 3 + src/react-query/suggestSuggest.ts | 3 + src/react-query/suggestSuggestItems.ts | 4 + src/react-query/suggestSuggestOpenAPI.ts | 3 + .../suggestSuggestOpenAPIRegistry.ts | 3 + .../webhooksHandleStripeWebhook.ts | 113 + src/react-query/workspacesCreate.ts | 4 + src/react-query/workspacesCreateToken.ts | 3 + src/react-query/workspacesDeleteToken.ts | 3 + src/react-query/workspacesGet.core.ts | 5 + src/react-query/workspacesGet.ts | 5 + src/react-query/workspacesGetAll.core.ts | 5 + src/react-query/workspacesGetAll.ts | 5 + src/react-query/workspacesGetByID.core.ts | 4 + src/react-query/workspacesGetByID.ts | 4 + .../workspacesGetFeatureFlags.core.ts | 4 + src/react-query/workspacesGetFeatureFlags.ts | 4 + src/react-query/workspacesGetSettings.core.ts | 4 + src/react-query/workspacesGetSettings.ts | 4 + src/react-query/workspacesGetTeam.core.ts | 4 + src/react-query/workspacesGetTeam.ts | 4 + src/react-query/workspacesGetTokens.core.ts | 4 + src/react-query/workspacesGetTokens.ts | 4 + src/react-query/workspacesGrantAccess.ts | 3 + src/react-query/workspacesRevokeAccess.ts | 3 + src/react-query/workspacesSetFeatureFlags.ts | 4 + src/react-query/workspacesUpdate.ts | 3 + src/react-query/workspacesUpdateSettings.ts | 3 + src/sdk/auth.ts | 6 + src/sdk/codesamples.ts | 8 + src/sdk/events.ts | 12 + src/sdk/github.ts | 22 + src/sdk/models/operations/activatelanguage.ts | 118 + .../models/operations/cancelsubscription.ts | 72 + .../models/operations/checkgithubaccess.ts | 64 + src/sdk/models/operations/create.ts | 60 + .../models/operations/createbillingaddons.ts | 74 + src/sdk/models/operations/createfreetrial.ts | 72 + .../createlanguagecheckoutsession.ts | 75 + .../models/operations/createorganization.ts | 72 + .../operations/createpublishingtoken.ts | 65 + .../operations/createschemastoreitem.ts | 66 + src/sdk/models/operations/createworkspace.ts | 72 + .../models/operations/createworkspacetoken.ts | 65 + .../models/operations/deactivatelanguage.ts | 118 + .../models/operations/deletebillingaddon.ts | 63 + .../operations/deletepublishingtoken.ts | 66 + .../models/operations/deleteworkspacetoken.ts | 65 + .../operations/generatecodesamplepreview.ts | 74 + .../generatecodesamplepreviewasync.ts | 67 + src/sdk/models/operations/getbillingaddons.ts | 72 + src/sdk/models/operations/getbillingemail.ts | 72 + .../models/operations/getbillingoperations.ts | 57 +- .../operations/getbusinesstierprices.ts | 74 + .../operations/getchangesreportsignedurl.ts | 66 + .../operations/getcodesamplepreviewasync.ts | 66 + src/sdk/models/operations/getcodesamples.ts | 63 + src/sdk/models/operations/getgithubaction.ts | 64 + .../models/operations/getgithubsetupstate.ts | 65 + src/sdk/models/operations/getlanguages.ts | 72 + .../operations/getlintingreportsignedurl.ts | 66 + src/sdk/models/operations/getorganization.ts | 64 + src/sdk/models/operations/getorganizations.ts | 72 + .../operations/getorganizationsubscription.ts | 75 + .../models/operations/getorganizationusage.ts | 74 + .../models/operations/getpublishingtoken.ts | 72 + .../operations/getpublishingtokenbyid.ts | 66 + .../getpublishingtokenpublicmetadata.ts | 72 + .../getpublishingtokentargetbyid.ts | 67 + src/sdk/models/operations/gettrialtargets.ts | 72 + src/sdk/models/operations/getuser.ts | 70 + src/sdk/models/operations/getworkspace.ts | 63 + .../models/operations/getworkspaceaccess.ts | 64 + .../operations/getworkspacebycontext.ts | 74 + .../operations/getworkspaceeventsbytarget.ts | 66 + .../operations/getworkspacefeatureflags.ts | 65 + src/sdk/models/operations/getworkspaces.ts | 72 + .../models/operations/getworkspacesettings.ts | 65 + .../models/operations/getworkspacetargets.ts | 65 + .../getworkspacetargetsdeprecated.ts | 66 + .../operations/getworkspacetargetssummary.ts | 66 + src/sdk/models/operations/getworkspaceteam.ts | 63 + .../models/operations/getworkspacetokens.ts | 63 + .../operations/githubcheckpublishingprs.ts | 65 + .../githubcheckpublishingsecrets.ts | 66 + .../operations/githubconfigurecodesamples.ts | 75 + .../operations/githubconfiguremintlifyrepo.ts | 75 + .../operations/githubconfiguretarget.ts | 74 + .../githubstorepublishingsecrets.ts | 75 + .../models/operations/githubtriggeraction.ts | 74 + .../operations/grantuseraccesstoworkspace.ts | 66 + .../operations/handlecheckoutcallback.ts | 118 + .../models/operations/handlestripewebhook.ts | 48 + src/sdk/models/operations/index.ts | 33 + src/sdk/models/operations/linkgithubaccess.ts | 63 + .../models/operations/postworkspaceevents.ts | 65 + .../revertsubscriptioncancellation.ts | 76 + .../operations/revokeuseraccesstoworkspace.ts | 66 + .../operations/searchworkspaceevents.ts | 65 + .../operations/setworkspacefeatureflags.ts | 74 + src/sdk/models/operations/suggest.ts | 61 + src/sdk/models/operations/suggestitems.ts | 72 + src/sdk/models/operations/suggestopenapi.ts | 63 + .../operations/suggestopenapiregistry.ts | 65 + .../updatepublishingtokenexpiration.ts | 72 + .../operations/updateworkspacedetails.ts | 65 + .../operations/updateworkspacesettings.ts | 65 + src/sdk/models/operations/uploadreport.ts | 64 + .../models/operations/upsertbillingemail.ts | 72 + src/sdk/models/operations/validateapikey.ts | 72 + src/sdk/models/shared/billingemailrequest.ts | 63 + src/sdk/models/shared/billingemailresponse.ts | 72 + .../shared/billingoperationsresponse.ts | 24 +- .../shared/businesstierpriceresponse.ts | 95 + .../shared/businesstierpricesresponse.ts | 61 + .../shared/cancelsubscriptionrequest.ts | 63 + .../shared/cancelsubscriptionresponse.ts | 88 + .../shared/createcheckoutsessionresponse.ts | 74 + .../createlanguagecheckoutsessionrequest.ts | 113 + src/sdk/models/shared/getlanguagesresponse.ts | 60 + src/sdk/models/shared/index.ts | 17 +- .../shared/languageactivationresponse.ts | 105 + ...eakdown.ts => languagebillingbreakdown.ts} | 66 +- .../models/shared/languagebillingstatus.ts | 30 + src/sdk/models/shared/languageresponse.ts | 102 + src/sdk/models/shared/organization.ts | 12 +- .../organizationsubscriptionresponse.ts | 214 ++ .../models/shared/pendingcancellationinfo.ts | 86 + src/sdk/models/shared/security.ts | 12 - .../models/shared/targetbillingbreakdown.ts | 99 + src/sdk/models/shared/trialtargetsresponse.ts | 72 + src/sdk/organizations.ts | 261 +- src/sdk/publishingtokens.ts | 14 + src/sdk/reports.ts | 6 + src/sdk/schemastore.ts | 2 + src/sdk/sdk.ts | 16 +- src/sdk/shorturls.ts | 2 + src/sdk/suggest.ts | 8 + src/sdk/types/async.ts | 15 +- src/sdk/webhooks.ts | 28 + src/sdk/workspaces.ts | 30 + tsconfig.json | 3 +- 539 files changed, 19722 insertions(+), 5109 deletions(-) create mode 100644 docs/sdk/models/operations/activatelanguagerequest.md create mode 100644 docs/sdk/models/operations/activatelanguagesecurity.md create mode 100644 docs/sdk/models/operations/cancelsubscriptionsecurity.md create mode 100644 docs/sdk/models/operations/checkgithubaccesssecurity.md create mode 100644 docs/sdk/models/operations/createbillingaddonssecurity.md create mode 100644 docs/sdk/models/operations/createfreetrialsecurity.md create mode 100644 docs/sdk/models/operations/createlanguagecheckoutsessionsecurity.md create mode 100644 docs/sdk/models/operations/createorganizationsecurity.md create mode 100644 docs/sdk/models/operations/createpublishingtokensecurity.md create mode 100644 docs/sdk/models/operations/createschemastoreitemsecurity.md create mode 100644 docs/sdk/models/operations/createsecurity.md create mode 100644 docs/sdk/models/operations/createworkspacesecurity.md create mode 100644 docs/sdk/models/operations/createworkspacetokensecurity.md create mode 100644 docs/sdk/models/operations/deactivatelanguagerequest.md create mode 100644 docs/sdk/models/operations/deactivatelanguagesecurity.md create mode 100644 docs/sdk/models/operations/deletebillingaddonsecurity.md create mode 100644 docs/sdk/models/operations/deletepublishingtokensecurity.md create mode 100644 docs/sdk/models/operations/deleteworkspacetokensecurity.md create mode 100644 docs/sdk/models/operations/generatecodesamplepreviewasyncsecurity.md create mode 100644 docs/sdk/models/operations/generatecodesamplepreviewsecurity.md create mode 100644 docs/sdk/models/operations/getbillingaddonssecurity.md create mode 100644 docs/sdk/models/operations/getbillingemailsecurity.md delete mode 100644 docs/sdk/models/operations/getbillingoperationsrequest.md create mode 100644 docs/sdk/models/operations/getbillingoperationssecurity.md create mode 100644 docs/sdk/models/operations/getbusinesstierpricessecurity.md create mode 100644 docs/sdk/models/operations/getchangesreportsignedurlsecurity.md create mode 100644 docs/sdk/models/operations/getcodesamplepreviewasyncsecurity.md create mode 100644 docs/sdk/models/operations/getcodesamplessecurity.md create mode 100644 docs/sdk/models/operations/getgithubactionsecurity.md create mode 100644 docs/sdk/models/operations/getgithubsetupstatesecurity.md create mode 100644 docs/sdk/models/operations/getlanguagessecurity.md create mode 100644 docs/sdk/models/operations/getlintingreportsignedurlsecurity.md create mode 100644 docs/sdk/models/operations/getorganizationsecurity.md create mode 100644 docs/sdk/models/operations/getorganizationssecurity.md create mode 100644 docs/sdk/models/operations/getorganizationsubscriptionsecurity.md create mode 100644 docs/sdk/models/operations/getorganizationusagesecurity.md create mode 100644 docs/sdk/models/operations/getpublishingtokenbyidsecurity.md create mode 100644 docs/sdk/models/operations/getpublishingtokenpublicmetadatasecurity.md create mode 100644 docs/sdk/models/operations/getpublishingtokensecurity.md create mode 100644 docs/sdk/models/operations/getpublishingtokentargetbyidsecurity.md create mode 100644 docs/sdk/models/operations/gettrialtargetssecurity.md create mode 100644 docs/sdk/models/operations/getusersecurity.md create mode 100644 docs/sdk/models/operations/getworkspaceaccesssecurity.md create mode 100644 docs/sdk/models/operations/getworkspacebycontextsecurity.md create mode 100644 docs/sdk/models/operations/getworkspaceeventsbytargetsecurity.md create mode 100644 docs/sdk/models/operations/getworkspacefeatureflagssecurity.md create mode 100644 docs/sdk/models/operations/getworkspacesecurity.md create mode 100644 docs/sdk/models/operations/getworkspacesettingssecurity.md create mode 100644 docs/sdk/models/operations/getworkspacessecurity.md create mode 100644 docs/sdk/models/operations/getworkspacetargetsdeprecatedsecurity.md create mode 100644 docs/sdk/models/operations/getworkspacetargetssecurity.md create mode 100644 docs/sdk/models/operations/getworkspacetargetssummarysecurity.md create mode 100644 docs/sdk/models/operations/getworkspaceteamsecurity.md create mode 100644 docs/sdk/models/operations/getworkspacetokenssecurity.md create mode 100644 docs/sdk/models/operations/githubcheckpublishingprssecurity.md create mode 100644 docs/sdk/models/operations/githubcheckpublishingsecretssecurity.md create mode 100644 docs/sdk/models/operations/githubconfigurecodesamplessecurity.md create mode 100644 docs/sdk/models/operations/githubconfiguremintlifyreposecurity.md create mode 100644 docs/sdk/models/operations/githubconfiguretargetsecurity.md create mode 100644 docs/sdk/models/operations/githubstorepublishingsecretssecurity.md create mode 100644 docs/sdk/models/operations/githubtriggeractionsecurity.md create mode 100644 docs/sdk/models/operations/grantuseraccesstoworkspacesecurity.md create mode 100644 docs/sdk/models/operations/handlecheckoutcallbackrequest.md create mode 100644 docs/sdk/models/operations/handlecheckoutcallbackresponse.md create mode 100644 docs/sdk/models/operations/handlestripewebhookrequestbody.md create mode 100644 docs/sdk/models/operations/linkgithubaccesssecurity.md create mode 100644 docs/sdk/models/operations/postworkspaceeventssecurity.md create mode 100644 docs/sdk/models/operations/revertsubscriptioncancellationsecurity.md create mode 100644 docs/sdk/models/operations/revokeuseraccesstoworkspacesecurity.md create mode 100644 docs/sdk/models/operations/searchworkspaceeventssecurity.md create mode 100644 docs/sdk/models/operations/setworkspacefeatureflagssecurity.md create mode 100644 docs/sdk/models/operations/suggestitemssecurity.md create mode 100644 docs/sdk/models/operations/suggestopenapiregistrysecurity.md create mode 100644 docs/sdk/models/operations/suggestopenapisecurity.md create mode 100644 docs/sdk/models/operations/suggestsecurity.md create mode 100644 docs/sdk/models/operations/updatepublishingtokenexpirationsecurity.md create mode 100644 docs/sdk/models/operations/updateworkspacedetailssecurity.md create mode 100644 docs/sdk/models/operations/updateworkspacesettingssecurity.md create mode 100644 docs/sdk/models/operations/uploadreportsecurity.md create mode 100644 docs/sdk/models/operations/upsertbillingemailsecurity.md create mode 100644 docs/sdk/models/operations/validateapikeysecurity.md create mode 100644 docs/sdk/models/shared/billingemailrequest.md create mode 100644 docs/sdk/models/shared/billingemailresponse.md create mode 100644 docs/sdk/models/shared/billinginterval.md create mode 100644 docs/sdk/models/shared/billingstatus.md create mode 100644 docs/sdk/models/shared/businesstierpriceresponse.md create mode 100644 docs/sdk/models/shared/businesstierpricesresponse.md create mode 100644 docs/sdk/models/shared/cancelsubscriptionrequest.md create mode 100644 docs/sdk/models/shared/cancelsubscriptionresponse.md create mode 100644 docs/sdk/models/shared/createcheckoutsessionresponse.md create mode 100644 docs/sdk/models/shared/createlanguagecheckoutsessionrequest.md create mode 100644 docs/sdk/models/shared/getlanguagesresponse.md create mode 100644 docs/sdk/models/shared/languageactivationresponse.md rename docs/sdk/models/shared/{specbillingbreakdown.md => languagebillingbreakdown.md} (56%) create mode 100644 docs/sdk/models/shared/languagebillingstatus.md create mode 100644 docs/sdk/models/shared/languageresponse.md create mode 100644 docs/sdk/models/shared/organizationsubscriptionresponse.md create mode 100644 docs/sdk/models/shared/organizationsubscriptionresponsebillinginterval.md create mode 100644 docs/sdk/models/shared/pendingcancellationinfo.md create mode 100644 docs/sdk/models/shared/trialtargetsresponse.md create mode 100644 docs/sdks/webhooks/README.md create mode 100644 src/funcs/organizationsActivateLanguage.ts create mode 100644 src/funcs/organizationsCancelSubscription.ts create mode 100644 src/funcs/organizationsCreateLanguageCheckoutSession.ts create mode 100644 src/funcs/organizationsDeactivateLanguage.ts create mode 100644 src/funcs/organizationsGetBillingEmail.ts create mode 100644 src/funcs/organizationsGetBusinessTierPrices.ts create mode 100644 src/funcs/organizationsGetLanguages.ts create mode 100644 src/funcs/organizationsGetSubscription.ts create mode 100644 src/funcs/organizationsGetTrialTargets.ts create mode 100644 src/funcs/organizationsHandleCheckoutCallback.ts create mode 100644 src/funcs/organizationsRevertSubscriptionCancellation.ts create mode 100644 src/funcs/organizationsUpsertBillingEmail.ts create mode 100644 src/funcs/webhooksHandleStripeWebhook.ts delete mode 100644 src/lib/dlv.ts delete mode 100644 src/lib/is-plain-object.ts delete mode 100644 src/mcp-server/tools/authGetAccess.ts delete mode 100644 src/mcp-server/tools/authGetUser.ts delete mode 100644 src/mcp-server/tools/authValidateApiKey.ts delete mode 100644 src/mcp-server/tools/codeSamplesGenerateCodeSamplePreview.ts delete mode 100644 src/mcp-server/tools/codeSamplesGenerateCodeSamplePreviewAsync.ts delete mode 100644 src/mcp-server/tools/codeSamplesGet.ts delete mode 100644 src/mcp-server/tools/codeSamplesGetCodeSamplePreviewAsync.ts delete mode 100644 src/mcp-server/tools/eventsGetEventsByTarget.ts delete mode 100644 src/mcp-server/tools/eventsGetTargets.ts delete mode 100644 src/mcp-server/tools/eventsGetTargetsDeprecated.ts delete mode 100644 src/mcp-server/tools/eventsGetTargetsSummary.ts delete mode 100644 src/mcp-server/tools/eventsPost.ts delete mode 100644 src/mcp-server/tools/eventsSearch.ts delete mode 100644 src/mcp-server/tools/githubCheckAccess.ts delete mode 100644 src/mcp-server/tools/githubCheckPublishingPRs.ts delete mode 100644 src/mcp-server/tools/githubCheckPublishingSecrets.ts delete mode 100644 src/mcp-server/tools/githubConfigureCodeSamples.ts delete mode 100644 src/mcp-server/tools/githubConfigureMintlifyRepo.ts delete mode 100644 src/mcp-server/tools/githubConfigureTarget.ts delete mode 100644 src/mcp-server/tools/githubGetAction.ts delete mode 100644 src/mcp-server/tools/githubGetSetup.ts delete mode 100644 src/mcp-server/tools/githubLinkGithub.ts delete mode 100644 src/mcp-server/tools/githubStorePublishingSecrets.ts delete mode 100644 src/mcp-server/tools/githubTriggerAction.ts delete mode 100644 src/mcp-server/tools/organizationsCreate.ts delete mode 100644 src/mcp-server/tools/organizationsCreateBillingAddOns.ts delete mode 100644 src/mcp-server/tools/organizationsCreateFreeTrial.ts delete mode 100644 src/mcp-server/tools/organizationsDeleteBillingAddOn.ts delete mode 100644 src/mcp-server/tools/organizationsGet.ts delete mode 100644 src/mcp-server/tools/organizationsGetAll.ts delete mode 100644 src/mcp-server/tools/organizationsGetBillingAddOns.ts delete mode 100644 src/mcp-server/tools/organizationsGetBillingOperations.ts delete mode 100644 src/mcp-server/tools/organizationsGetUsage.ts create mode 100644 src/mcp-server/tools/organizationsHandleCheckoutCallback.ts delete mode 100644 src/mcp-server/tools/publishingTokensCreate.ts delete mode 100644 src/mcp-server/tools/publishingTokensDelete.ts delete mode 100644 src/mcp-server/tools/publishingTokensGet.ts delete mode 100644 src/mcp-server/tools/publishingTokensList.ts delete mode 100644 src/mcp-server/tools/publishingTokensResolveMetadata.ts delete mode 100644 src/mcp-server/tools/publishingTokensResolveTarget.ts delete mode 100644 src/mcp-server/tools/publishingTokensUpdate.ts delete mode 100644 src/mcp-server/tools/reportsGetChangesReportSignedUrl.ts delete mode 100644 src/mcp-server/tools/reportsGetLintingReportSignedUrl.ts delete mode 100644 src/mcp-server/tools/reportsUploadReport.ts delete mode 100644 src/mcp-server/tools/schemaStoreCreateSchemaStoreItem.ts delete mode 100644 src/mcp-server/tools/shortURLsCreate.ts delete mode 100644 src/mcp-server/tools/suggestSuggest.ts delete mode 100644 src/mcp-server/tools/suggestSuggestItems.ts delete mode 100644 src/mcp-server/tools/suggestSuggestOpenAPI.ts delete mode 100644 src/mcp-server/tools/suggestSuggestOpenAPIRegistry.ts rename src/mcp-server/tools/{workspacesUpdateSettings.ts => webhooksHandleStripeWebhook.ts} (50%) delete mode 100644 src/mcp-server/tools/workspacesCreate.ts delete mode 100644 src/mcp-server/tools/workspacesCreateToken.ts delete mode 100644 src/mcp-server/tools/workspacesDeleteToken.ts delete mode 100644 src/mcp-server/tools/workspacesGet.ts delete mode 100644 src/mcp-server/tools/workspacesGetAll.ts delete mode 100644 src/mcp-server/tools/workspacesGetByID.ts delete mode 100644 src/mcp-server/tools/workspacesGetFeatureFlags.ts delete mode 100644 src/mcp-server/tools/workspacesGetSettings.ts delete mode 100644 src/mcp-server/tools/workspacesGetTeam.ts delete mode 100644 src/mcp-server/tools/workspacesGetTokens.ts delete mode 100644 src/mcp-server/tools/workspacesGrantAccess.ts delete mode 100644 src/mcp-server/tools/workspacesRevokeAccess.ts delete mode 100644 src/mcp-server/tools/workspacesSetFeatureFlags.ts delete mode 100644 src/mcp-server/tools/workspacesUpdate.ts create mode 100644 src/react-query/organizationsActivateLanguage.ts create mode 100644 src/react-query/organizationsCancelSubscription.ts create mode 100644 src/react-query/organizationsCreateLanguageCheckoutSession.ts create mode 100644 src/react-query/organizationsDeactivateLanguage.ts create mode 100644 src/react-query/organizationsGetBillingEmail.core.ts create mode 100644 src/react-query/organizationsGetBillingEmail.ts create mode 100644 src/react-query/organizationsGetBusinessTierPrices.core.ts create mode 100644 src/react-query/organizationsGetBusinessTierPrices.ts create mode 100644 src/react-query/organizationsGetLanguages.core.ts create mode 100644 src/react-query/organizationsGetLanguages.ts create mode 100644 src/react-query/organizationsGetSubscription.core.ts create mode 100644 src/react-query/organizationsGetSubscription.ts create mode 100644 src/react-query/organizationsGetTrialTargets.core.ts create mode 100644 src/react-query/organizationsGetTrialTargets.ts create mode 100644 src/react-query/organizationsHandleCheckoutCallback.core.ts create mode 100644 src/react-query/organizationsHandleCheckoutCallback.ts create mode 100644 src/react-query/organizationsRevertSubscriptionCancellation.ts create mode 100644 src/react-query/organizationsUpsertBillingEmail.ts create mode 100644 src/react-query/webhooksHandleStripeWebhook.ts create mode 100644 src/sdk/models/operations/activatelanguage.ts create mode 100644 src/sdk/models/operations/cancelsubscription.ts create mode 100644 src/sdk/models/operations/createbillingaddons.ts create mode 100644 src/sdk/models/operations/createfreetrial.ts create mode 100644 src/sdk/models/operations/createlanguagecheckoutsession.ts create mode 100644 src/sdk/models/operations/createorganization.ts create mode 100644 src/sdk/models/operations/createworkspace.ts create mode 100644 src/sdk/models/operations/deactivatelanguage.ts create mode 100644 src/sdk/models/operations/generatecodesamplepreview.ts create mode 100644 src/sdk/models/operations/getbillingaddons.ts create mode 100644 src/sdk/models/operations/getbillingemail.ts create mode 100644 src/sdk/models/operations/getbusinesstierprices.ts create mode 100644 src/sdk/models/operations/getlanguages.ts create mode 100644 src/sdk/models/operations/getorganizations.ts create mode 100644 src/sdk/models/operations/getorganizationsubscription.ts create mode 100644 src/sdk/models/operations/getorganizationusage.ts create mode 100644 src/sdk/models/operations/getpublishingtoken.ts create mode 100644 src/sdk/models/operations/gettrialtargets.ts create mode 100644 src/sdk/models/operations/getuser.ts create mode 100644 src/sdk/models/operations/getworkspacebycontext.ts create mode 100644 src/sdk/models/operations/getworkspaces.ts create mode 100644 src/sdk/models/operations/githubconfigurecodesamples.ts create mode 100644 src/sdk/models/operations/githubconfiguremintlifyrepo.ts create mode 100644 src/sdk/models/operations/githubconfiguretarget.ts create mode 100644 src/sdk/models/operations/githubstorepublishingsecrets.ts create mode 100644 src/sdk/models/operations/githubtriggeraction.ts create mode 100644 src/sdk/models/operations/handlecheckoutcallback.ts create mode 100644 src/sdk/models/operations/handlestripewebhook.ts create mode 100644 src/sdk/models/operations/revertsubscriptioncancellation.ts create mode 100644 src/sdk/models/operations/setworkspacefeatureflags.ts create mode 100644 src/sdk/models/operations/suggestitems.ts create mode 100644 src/sdk/models/operations/upsertbillingemail.ts create mode 100644 src/sdk/models/operations/validateapikey.ts create mode 100644 src/sdk/models/shared/billingemailrequest.ts create mode 100644 src/sdk/models/shared/billingemailresponse.ts create mode 100644 src/sdk/models/shared/businesstierpriceresponse.ts create mode 100644 src/sdk/models/shared/businesstierpricesresponse.ts create mode 100644 src/sdk/models/shared/cancelsubscriptionrequest.ts create mode 100644 src/sdk/models/shared/cancelsubscriptionresponse.ts create mode 100644 src/sdk/models/shared/createcheckoutsessionresponse.ts create mode 100644 src/sdk/models/shared/createlanguagecheckoutsessionrequest.ts create mode 100644 src/sdk/models/shared/getlanguagesresponse.ts create mode 100644 src/sdk/models/shared/languageactivationresponse.ts rename src/sdk/models/shared/{specbillingbreakdown.ts => languagebillingbreakdown.ts} (52%) create mode 100644 src/sdk/models/shared/languagebillingstatus.ts create mode 100644 src/sdk/models/shared/languageresponse.ts create mode 100644 src/sdk/models/shared/organizationsubscriptionresponse.ts create mode 100644 src/sdk/models/shared/pendingcancellationinfo.ts create mode 100644 src/sdk/models/shared/trialtargetsresponse.ts create mode 100644 src/sdk/webhooks.ts diff --git a/.npmignore b/.npmignore index 134e78a6..670ac0a6 100644 --- a/.npmignore +++ b/.npmignore @@ -12,6 +12,7 @@ !/**/*.map /eslint.config.mjs +/.oxlintrc.json /cjs /.tshy /.tshy-* diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index f5f05195..e99e0eb8 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,46 +1,48 @@ lockVersion: 2.0.0 id: 89968bf0-a755-4d50-9acb-d47410010f05 management: - docChecksum: f44b422b5d22b3d7eb45c68574e67c2c + docChecksum: 229692963b8c051f9913e30c802f6f42 docVersion: 0.4.0 - speakeasyVersion: 1.736.1 - generationVersion: 2.845.15 - releaseVersion: 5.0.0-rc.5 - configChecksum: eb322c985114429e126d7b855dc936a7 + speakeasyVersion: 1.786.1 + generationVersion: 2.913.3 + releaseVersion: 5.0.0-rc.6 + configChecksum: c259365559d70b5bd570e5be6dcc1f3a repoURL: https://github.com/speakeasy-api/speakeasy-client-sdk-typescript.git repoSubDirectory: . installationURL: https://github.com/speakeasy-api/speakeasy-client-sdk-typescript published: true persistentEdits: - generation_id: 37ee2a56-e129-4320-b371-9485ec3c9324 - pristine_commit_hash: f2c3dece458bd7d9677e5540cad17e1819dcac65 - pristine_tree_hash: 690c9cfd3272a6b25c9f4b3af0cbff37980a62b0 + generation_id: b76c7f49-50d1-411e-8af4-db6f3e7ab717 + pristine_commit_hash: 8b6d9f1e9531098a6da6e75a9a150d05bc43152c + pristine_tree_hash: 8795b660a58dec155d66df8bac428568dd05f98c features: typescript: additionalDependencies: 0.1.0 constsAndDefaults: 0.1.14 - core: 3.26.38 + core: 3.31.2 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.15 + globalSecurity: 2.82.16 globalSecurityCallbacks: 0.1.0 + globalSecurityFlattening: 0.1.1 globalServerURLs: 2.83.1 globals: 2.82.2 mcpServer: 0.9.4 + methodSecurity: 2.82.8 nameOverrides: 2.81.4 nullables: 0.1.1 - openEnums: 0.1.2 + openEnums: 0.1.3 pagination: 2.83.2 reactQueryHooks: 0.2.4 responseFormat: 0.3.0 - retries: 2.83.0 + retries: 2.83.1 sdkHooks: 0.4.0 serverIDs: 2.81.2 - uploadStreams: 0.1.0 + uploadStreams: 0.1.1 trackedFiles: .gitattributes: id: 24139dae6567 @@ -48,24 +50,24 @@ trackedFiles: pristine_git_object: 113eead5093c17d43a46159132885318f281a68a .npmignore: id: aa70c1f807c3 - last_write_checksum: sha1:425e91786e3b6cddd2b364bf3f9f9cd38e3c3e1a - pristine_git_object: 134e78a629b846b88e408199011801852bacc600 + last_write_checksum: sha1:6572da81f2e7a978ec29c22c2210bf461c5897b2 + pristine_git_object: 670ac0a62d7e568c9d44a14f5deafb8442a255d8 FUNCTIONS.md: id: 21b9df02aaeb - last_write_checksum: sha1:463d62fa67ae5eb8536227d325e47162457b1742 - pristine_git_object: cb39b6692cea5aaca96f1649aebb0367827c7900 + last_write_checksum: sha1:cb03eacf23b180fa9f1373c2c6ea0251ee8fc7b7 + pristine_git_object: 221b50efdd81b4b6e79103f8108ae46bf92f37e3 REACT_QUERY.md: id: 43d3a3ba4147 - last_write_checksum: sha1:bb2b9ca5c8a1d2f51fb0311331496bf3dd7ccabd - pristine_git_object: 94c79edd398e45b217c4afe732fc012d8bae740b + last_write_checksum: sha1:0d761db86ee7461c21cc5403ca0aa880da869f82 + pristine_git_object: cf875070f392c0ebd85acf6175d24d2b22d66332 RUNTIMES.md: id: 620c490847b6 last_write_checksum: sha1:e45b854f02c357cbcfdb8c3663000e8339e16505 pristine_git_object: 27731c3b5ace66bedc454ed5acbe15075aacd3dc USAGE.md: id: 3aed33ce6e6f - last_write_checksum: sha1:26de7dcb6b05f2670afbaf325d041a5f61e7802d - pristine_git_object: a7ec032a862db514c0498910f17a7d317aba62a3 + last_write_checksum: sha1:c0854a7c4d6f7851eea581fd6503c947d11498e6 + pristine_git_object: 239bbfb42028ec42375e66422f92983edebf405a docs/lib/utils/retryconfig.md: id: 0ce9707cb848 last_write_checksum: sha1:bc4454e196fcd219f5a78da690375a884f5ed07b @@ -74,6 +76,14 @@ trackedFiles: id: 1014da2ded41 last_write_checksum: sha1:2ed553909f3682af66d2687f892078f7a6c7a845 pristine_git_object: 0b1a0d68b376d61b7d04e8e743e34100053fd52b + docs/sdk/models/operations/activatelanguagerequest.md: + id: 14d32d746a8b + last_write_checksum: sha1:d9c673b722d7007578983695b4745110dd4c0c11 + pristine_git_object: b98e3f6cd2fb0c216460978b14e163de90b8d20d + docs/sdk/models/operations/activatelanguagesecurity.md: + id: cfc2a19b117b + last_write_checksum: sha1:9680230ce8980b1685747765aa27278e8e88c454 + pristine_git_object: 4727434a149e264d6947eea9d31f069709f2bd1a docs/sdk/models/operations/activatesubscriptionnamespacerequest.md: id: 2091408621c2 last_write_checksum: sha1:2461b7977c0962264727746fb39f61b9b4be51de @@ -86,14 +96,42 @@ trackedFiles: id: 942ff3e4f7a4 last_write_checksum: sha1:f6a9df5cb3ce409bc9d6a5405bda35dde5682db7 pristine_git_object: a3cf23e6fd20a1f6bf047a836d153cdce6d8cbd2 + docs/sdk/models/operations/cancelsubscriptionsecurity.md: + id: 714242a2cfbd + last_write_checksum: sha1:33e8e03fc0b3ffe2f864adfe359a57aa9cc46613 + pristine_git_object: 863e571948fa6601efe411af2207082576d05a0f docs/sdk/models/operations/checkgithubaccessrequest.md: id: df1bf9e58f48 last_write_checksum: sha1:918b759f54624bad9e720b17686d84a28cd8b513 pristine_git_object: 111d77f8b9e7fe6a1abd04f269c3ac351f0a2d35 + docs/sdk/models/operations/checkgithubaccesssecurity.md: + id: 00f0bb7a3053 + last_write_checksum: sha1:c134c1daa0714644bd6a70632467ab072219ac08 + pristine_git_object: 8a4b4d9676e938185780f9c42702093570d02188 + docs/sdk/models/operations/createbillingaddonssecurity.md: + id: fbee37060027 + last_write_checksum: sha1:a11283d9d4ab1a5c25a674be7116d5f72b50e631 + pristine_git_object: bb528a507fe8b167c42e4387743e095bf2fc510d + docs/sdk/models/operations/createfreetrialsecurity.md: + id: a15915fddafb + last_write_checksum: sha1:c2f2503e215fb06523fb4e2626a22b9e4c9791eb + pristine_git_object: 9ae8b7e26b44971b61fe71b1bca6172b45cb0aa4 + docs/sdk/models/operations/createlanguagecheckoutsessionsecurity.md: + id: 6041f3b10672 + last_write_checksum: sha1:9aac76ec2ae370bbee5d34299fcb408bc9ef953e + pristine_git_object: 480f2e9baab97cbbf9c01751ff01e9607d8cadac + docs/sdk/models/operations/createorganizationsecurity.md: + id: 8645c01d44a7 + last_write_checksum: sha1:85c86a4f3cf16aed7dce78429d8d91feb2e018de + pristine_git_object: 3d59b38b459c79023cbf630ff99c11606d4fe01b docs/sdk/models/operations/createpublishingtokenrequestbody.md: id: 2fbab9882fd2 last_write_checksum: sha1:46deec986d55f2db93a2967fa4993a909015f771 pristine_git_object: fae93c0de8da1e4f11ecaad35b132ea56384f292 + docs/sdk/models/operations/createpublishingtokensecurity.md: + id: fca93f9ceafd + last_write_checksum: sha1:2aeea60227d7f1031573e9edccac8819822f2d0f + pristine_git_object: 6c267807b5644ec0fe6f1f8b8ceb5c96a7e7f681 docs/sdk/models/operations/createrequestbody.md: id: 49c1211c656e last_write_checksum: sha1:7b0c75e82bb881eb2dd0fa5322304f5984704a01 @@ -102,6 +140,18 @@ trackedFiles: id: 78b39aec57be last_write_checksum: sha1:9fbc62904dd009bac4fa4d65276b49b30760c878 pristine_git_object: 51554b180a5193f0b8f2c784be9356d1da043274 + docs/sdk/models/operations/createschemastoreitemsecurity.md: + id: 6a3e6bc04682 + last_write_checksum: sha1:fe541cd182d8c21166d21b2ccfb1767009fe5f60 + pristine_git_object: 7b80ac5960ce3748302c5767753b19635e64a44f + docs/sdk/models/operations/createsecurity.md: + id: 644641fc8ee5 + last_write_checksum: sha1:d81b30dd4b3252a34b1dc99f28dfb054447db8b6 + pristine_git_object: 2bdfc8e76b4912cfb7be8c55871a0f87bcc691ef + docs/sdk/models/operations/createworkspacesecurity.md: + id: cb07f7a00003 + last_write_checksum: sha1:040e68ab2bc13c604582899cebe33de0d4cf28d9 + pristine_git_object: 279d95a079ea341a9e4aee69539b2cbac675104f docs/sdk/models/operations/createworkspacetokenglobals.md: id: 3ce2d5b73fff last_write_checksum: sha1:2e767f1c5bf183cc33d4a53f91ef578bee2ba1b2 @@ -110,14 +160,34 @@ trackedFiles: id: 77f20fde818d last_write_checksum: sha1:127c87e2ea504aefad79f839b289c8b3a2db7993 pristine_git_object: 10bee8db2b0b901d923e376826e60629149dcff1 + docs/sdk/models/operations/createworkspacetokensecurity.md: + id: e01b566914f7 + last_write_checksum: sha1:a6b012a14e83c5383b8bd362ab70fbda7180b951 + pristine_git_object: 5c7f49919ce75dd5fb7644242815826947d702d4 + docs/sdk/models/operations/deactivatelanguagerequest.md: + id: f23bd677a200 + last_write_checksum: sha1:8c87a79f2bb5e9e65c6fdca7b0f9d9c0ffeedf7b + pristine_git_object: 4dfced8da4eb5ee4a7409f73769cabf1252ae5aa + docs/sdk/models/operations/deactivatelanguagesecurity.md: + id: ec85c67108e7 + last_write_checksum: sha1:47281fc3206674ba511e7d74748083251dfa0b30 + pristine_git_object: 9b294e182bbac0b57645d338bf06f576d54d8096 docs/sdk/models/operations/deletebillingaddonrequest.md: id: 602b9d144f01 last_write_checksum: sha1:6a27a71884e8ea50829f38ef6f1595fbf4421a38 pristine_git_object: 52b969622544fc1b3304eb2c8740db5448cafab3 + docs/sdk/models/operations/deletebillingaddonsecurity.md: + id: 8b24eee842c6 + last_write_checksum: sha1:d29bf8133b64882e58b7d39f8fc02d6853020e84 + pristine_git_object: bb33cf5e59bf455afdbe8a7111557e2ad51d73a6 docs/sdk/models/operations/deletepublishingtokenrequest.md: id: 11f635c3a5cd last_write_checksum: sha1:4934e73516c02fc4198b87bd1f8bd7045eb7c6d2 pristine_git_object: fb5d14a1e30fdc0427690b2827b40ddc119b6251 + docs/sdk/models/operations/deletepublishingtokensecurity.md: + id: 8d5d24508f6d + last_write_checksum: sha1:bb19c22640836fb41cb63457931f87b21a2eec2d + pristine_git_object: 3a0af320b3ea0ccdd2dc47206afe35fccccb73cd docs/sdk/models/operations/deleteworkspacetokenglobals.md: id: d33c30acaf32 last_write_checksum: sha1:05aa8749d526c8c2335ed69c398ede60cfdb60b6 @@ -126,6 +196,10 @@ trackedFiles: id: 21faeb352fb9 last_write_checksum: sha1:fc9a8236600b9b4786859f73d626e25ea7510b40 pristine_git_object: 5fc72256d1df20ab81e250bd48c1a08596f85d3c + docs/sdk/models/operations/deleteworkspacetokensecurity.md: + id: 0bad571f839c + last_write_checksum: sha1:e0850f5c608d652ebcc6371954ca27b1a1aacdb8 + pristine_git_object: 3451a4be9c9330372e6f00d9402717a3eba9f67f docs/sdk/models/operations/filet.md: id: a4ad60d27074 last_write_checksum: sha1:957a6fd2c671e95138500b78d377f5d9872d28bd @@ -138,22 +212,46 @@ trackedFiles: id: 24bffdac25f6 last_write_checksum: sha1:5c332003a406e4bd2f7d71861f55d61adbf2c1e6 pristine_git_object: d0a94650615f34df50745939745145a98e82b6b7 + docs/sdk/models/operations/generatecodesamplepreviewasyncsecurity.md: + id: 0b2363917efb + last_write_checksum: sha1:33d6f29ee9c8aa925be1136a86f1b54fd90105ee + pristine_git_object: be3f87f5184f3dc9b412f5bd96825c58c048a212 + docs/sdk/models/operations/generatecodesamplepreviewsecurity.md: + id: b1a73f84644c + last_write_checksum: sha1:077d5bc90a685218428f12089514c3df7e9cab02 + pristine_git_object: fafd7911d0fbcec4b6228f62e7ed5da73e7489a0 docs/sdk/models/operations/getaccesstokenrequest.md: id: e79d202394d9 last_write_checksum: sha1:e601a2d519d70a9b8682402c37c563721f641231 pristine_git_object: 3c8b0dcd53aafecac6d34ac211433b27b58e59bd - docs/sdk/models/operations/getbillingoperationsrequest.md: - id: 2244d78614ca - last_write_checksum: sha1:c0b639a69e5695a0a371754ea85f84e902810bec - pristine_git_object: 6a9aa295b9aaa43cd732ded2473d07acb47af3ca + docs/sdk/models/operations/getbillingaddonssecurity.md: + id: 7cfca32466ca + last_write_checksum: sha1:6e718ec906298e1679afd66737036cf8a4fe91e8 + pristine_git_object: eecbd04e20f4d197022bb8234aa12a3cafb0448c + docs/sdk/models/operations/getbillingemailsecurity.md: + id: 0d1f48b52abf + last_write_checksum: sha1:62f75ff9e9e47d8b77ca7c4663023ab8a057ed2b + pristine_git_object: 14b518836d6b143b8ab51cc5e9950e60f003a24f + docs/sdk/models/operations/getbillingoperationssecurity.md: + id: a260a2732c9e + last_write_checksum: sha1:9180c3a58c4aef0dfaac90eb53150f70203ee2d5 + pristine_git_object: 6c0bb9aee9c40f2a2b03224e67789dc4cbb6d44b docs/sdk/models/operations/getblobrequest.md: id: 6c55278485c0 last_write_checksum: sha1:18e5d60df2a42f6eca16046a5af7887721002ea0 pristine_git_object: a28ce6083bb7c13a2de696fffdcad1c41dc480a2 + docs/sdk/models/operations/getbusinesstierpricessecurity.md: + id: 467b059e61a7 + last_write_checksum: sha1:a48602e37aad9abb4b5885843003c9c3858ea9aa + pristine_git_object: 565c879f97821e6269e7320d99d80049884bd3e7 docs/sdk/models/operations/getchangesreportsignedurlrequest.md: id: 5e13d3a01950 last_write_checksum: sha1:8e09c659c1fc4faea1789fc0dadf3feb0fd35ac6 pristine_git_object: a74dfd9e667a877e7f07b1ca10ae15e043a1ded4 + docs/sdk/models/operations/getchangesreportsignedurlsecurity.md: + id: 936036bff725 + last_write_checksum: sha1:080e7cd7085278708ad1b28727a6e2940e83afac + pristine_git_object: 6df618d7b161f044ecc66a23be5e92104901a9ee docs/sdk/models/operations/getchangesreportsignedurlsignedaccess.md: id: aa518a60bac5 last_write_checksum: sha1:5dfb53267b4af1b61b34d3bf35016f639894228a @@ -170,22 +268,46 @@ trackedFiles: id: 0cab74e9ca3b last_write_checksum: sha1:2100b8a5af8eab7907d26e5c1e2314896e63c360 pristine_git_object: dc370d70d972d3658f119e089f59f03060c6d750 + docs/sdk/models/operations/getcodesamplepreviewasyncsecurity.md: + id: 950b0eae07ea + last_write_checksum: sha1:f6201a541103bae1122f2580ae5e8a7322405193 + pristine_git_object: 5be7819767536c06f8c364892a27e11e1fa51392 docs/sdk/models/operations/getcodesamplesrequest.md: id: bc8789f2d78f last_write_checksum: sha1:944a330ce66949d8e9bb963ca37ec579169738be pristine_git_object: 268608c02157ae414ec60aee4a93b4b1c8e5fad5 + docs/sdk/models/operations/getcodesamplessecurity.md: + id: 86661dd9cf8b + last_write_checksum: sha1:f2d226b3bb6e6008ad776ad5a9e5e7420588eba8 + pristine_git_object: 518b142adde8f8f0f3c114b369dc097a6ba7d410 docs/sdk/models/operations/getgithubactionrequest.md: id: 30826e1b16bf last_write_checksum: sha1:31f41abcf1c448728772f79b3da29167ff42931b pristine_git_object: 1369c3e71170581179d8dcd18558598a974c0488 + docs/sdk/models/operations/getgithubactionsecurity.md: + id: 5bd504e86999 + last_write_checksum: sha1:94a1565447bb06704c5fd499ccc9371923d2e52b + pristine_git_object: 1c1ca6072b34f606f3bae553d404a39ef611cebd docs/sdk/models/operations/getgithubsetupstaterequest.md: id: 67eaf2ed22cb last_write_checksum: sha1:a3058a61104d0f9901d588c111b018da5fd54c60 pristine_git_object: b08d6abf3dccd21a1bc0ebcfc1925ac47d9ebfc3 + docs/sdk/models/operations/getgithubsetupstatesecurity.md: + id: 9165de66d802 + last_write_checksum: sha1:7cb8def3b2a354c8a63ca88650930ad14cc77cf6 + pristine_git_object: 1c40c9f124509eac83fab4e2f3a9b5d14beaafcb + docs/sdk/models/operations/getlanguagessecurity.md: + id: 00673471de0f + last_write_checksum: sha1:34635b2219038d0ed8e8be8bf1b5ad5f3ec05f5d + pristine_git_object: 0ca441aa4632c442856123260964ceeeb2cf77df docs/sdk/models/operations/getlintingreportsignedurlrequest.md: id: c1d2d2c4a866 last_write_checksum: sha1:79aebd9f3a8450a76ca8d0a1810cc9ad8fcf6934 pristine_git_object: c545b40575541448b330308d4b9fd51b0ac02fb5 + docs/sdk/models/operations/getlintingreportsignedurlsecurity.md: + id: 560abc0fd44b + last_write_checksum: sha1:a8c22242c80b42d2582badfc595f60563132b255 + pristine_git_object: 1b00a9630ec95558ace282b0790c98e7805ae51b docs/sdk/models/operations/getlintingreportsignedurlsignedaccess.md: id: 800743e822f1 last_write_checksum: sha1:e6401a810e84056b3cf4278f498dfd68503139ea @@ -198,10 +320,30 @@ trackedFiles: id: f80777c8a4a9 last_write_checksum: sha1:8900ff464c5f719a164e31b023966abf16b0f368 pristine_git_object: 2577a698a35212efca0a7df5b43251ed685e4083 + docs/sdk/models/operations/getorganizationsecurity.md: + id: 793be23ed4cf + last_write_checksum: sha1:2422351ec32e038ba1d4faab209f334a9df50591 + pristine_git_object: 25a0a7fe774f3741afb005fe5fab01059faa0075 + docs/sdk/models/operations/getorganizationssecurity.md: + id: ff7633b574cb + last_write_checksum: sha1:9127bbc720f8f2dc1d50b2e0280bd5cb661af695 + pristine_git_object: 39992cfb1b74e2fdfd0a0a1adb2fe240f8d0d915 + docs/sdk/models/operations/getorganizationsubscriptionsecurity.md: + id: 0134354ce1a3 + last_write_checksum: sha1:5f4eecd33efd563810a73fdadcd9eb3b376f8c59 + pristine_git_object: e93fab0776691cfe40dc63f6e0c9b78fb935149a + docs/sdk/models/operations/getorganizationusagesecurity.md: + id: 3ef29de5a340 + last_write_checksum: sha1:4da4030c65236f07616f3992ccf945b1b9670f83 + pristine_git_object: 33888a2c6b43709c3a56ea905938824a81f0934b docs/sdk/models/operations/getpublishingtokenbyidrequest.md: id: 8e484353884c last_write_checksum: sha1:ebabf20cb4fdc50fa38753ec5ea80793133ea387 pristine_git_object: 8d5331f3169b5682eff7aeff4ae41d810fb6cebb + docs/sdk/models/operations/getpublishingtokenbyidsecurity.md: + id: da4cf6ea23cc + last_write_checksum: sha1:1c7cbe7e6c7bd910dbd5cde846395291b400290e + pristine_git_object: fa06d23db596a6ae5d4e0c618b6714fe4d18a398 docs/sdk/models/operations/getpublishingtokenpublicmetadatarequest.md: id: 2a82b5e8fb23 last_write_checksum: sha1:532917fc4ce07e06da4521a8a813b8f20b16721d @@ -210,10 +352,22 @@ trackedFiles: id: 5b9bff11947e last_write_checksum: sha1:52f7fb3408a51b2d0335d06523d7ef5a0f197271 pristine_git_object: f28cc168556c3d2ba567d638a382b29aa233b179 + docs/sdk/models/operations/getpublishingtokenpublicmetadatasecurity.md: + id: c5c197f6f652 + last_write_checksum: sha1:6bd02e26e1bb65375f53c519ce0d22b9c406a4f1 + pristine_git_object: 7d1470b798eb45ff66b4633b5f0a850c4c78b967 + docs/sdk/models/operations/getpublishingtokensecurity.md: + id: 79a29d560222 + last_write_checksum: sha1:9843ef827ca82f0e85aa3e82ec97a21c8724ce30 + pristine_git_object: e72dc006619f9a39f78c29771e46a99e9d53e9ea docs/sdk/models/operations/getpublishingtokentargetbyidrequest.md: id: a0a4734147d9 last_write_checksum: sha1:88f36c215234b4aa048a122a99c680a232728336 pristine_git_object: 1c653c79601ee15172fe47ae8956f945192f78f1 + docs/sdk/models/operations/getpublishingtokentargetbyidsecurity.md: + id: bfd20dbe1dbe + last_write_checksum: sha1:4c630a4470c1fa963b3c94b8108395a163050d42 + pristine_git_object: e6500464d78bf0c3aa2c6e6dfd9a829ba4758c3c docs/sdk/models/operations/getrevisionsrequest.md: id: 6a15b2e9cc68 last_write_checksum: sha1:d7649953604d9abad594729ad5bb8193cc54813c @@ -222,10 +376,26 @@ trackedFiles: id: 96ef8b8ebb73 last_write_checksum: sha1:60cac05bb9a7161cd1543ca564a56f8df5b0f4fb pristine_git_object: 8d36f76845b35ba567f85b58c8989c79ff074bd7 + docs/sdk/models/operations/gettrialtargetssecurity.md: + id: 6171767f40a1 + last_write_checksum: sha1:d718dfef91d96114acdf6900bed9a06d9388ed23 + pristine_git_object: 2839b7588970fb554189358cde9ad4a4ca8bf867 + docs/sdk/models/operations/getusersecurity.md: + id: a3c5d9a5dbca + last_write_checksum: sha1:5612c1e44cf518674d8e752b1f8153ed3f78e471 + pristine_git_object: fa9a870ae387e7bc1340c0d60eece6f1f47e727f docs/sdk/models/operations/getworkspaceaccessrequest.md: id: 720fdaa09284 last_write_checksum: sha1:a96fa3cf5051a29f8180dbe4212d838a5d2925b4 pristine_git_object: 0488e4d5a1ea4f4d7533c83c25b442a27fdb2686 + docs/sdk/models/operations/getworkspaceaccesssecurity.md: + id: ba0c531d1d9d + last_write_checksum: sha1:d3dc08c046fb6c1ed6aa68e37c6bca07eaf57ef8 + pristine_git_object: f7d30f3ba0698b7dde3a28f66895c599afcc0aed + docs/sdk/models/operations/getworkspacebycontextsecurity.md: + id: e5b362cf769f + last_write_checksum: sha1:91fc04c2576c639bde77b1b96a93a3aff830e6ef + pristine_git_object: 7cb3624096342121a2907fc223b19006f39596aa docs/sdk/models/operations/getworkspaceeventsbytargetglobals.md: id: 3f3d136342a7 last_write_checksum: sha1:3abcf9bca7ef60c45acc867830412e34f6ea00f1 @@ -234,6 +404,10 @@ trackedFiles: id: 4a008d5001e2 last_write_checksum: sha1:e3b7d0466f1a6b62f96f6f575d6a81073c5a3bee pristine_git_object: d1d48aba0958b852b6b0e92d72fcb8edd87dd284 + docs/sdk/models/operations/getworkspaceeventsbytargetsecurity.md: + id: 99ce840ebdda + last_write_checksum: sha1:8780ef15e36e0724b448d27dc777615fda65906d + pristine_git_object: 9a4396e55f366fcff19d9c31c5a672be1c9a16b0 docs/sdk/models/operations/getworkspacefeatureflagsglobals.md: id: 0696f647c2bd last_write_checksum: sha1:d7dbe1d732ff19875abd7bb522067b18bf603d95 @@ -242,6 +416,10 @@ trackedFiles: id: 41b25bcc159c last_write_checksum: sha1:2f70452144cdd351b35b77f80bbdd4e01c9d3079 pristine_git_object: cce262560e74c02637a1fc3592685285ffbe6f9a + docs/sdk/models/operations/getworkspacefeatureflagssecurity.md: + id: 0acfbdb9d249 + last_write_checksum: sha1:4d6d849474f744342f774c35d15fb6e5db5eae1a + pristine_git_object: 2f2b9df18e77b81c5842bea5d3baa46529ae615f docs/sdk/models/operations/getworkspaceglobals.md: id: 480da2a2727b last_write_checksum: sha1:cd15b7b7f71eb8c7e3a685ba4f56117512d893d8 @@ -250,6 +428,10 @@ trackedFiles: id: e68d535c39ae last_write_checksum: sha1:80db2da09175fae9856f9d76fd9959a15d799dae pristine_git_object: 675c60401b75e50267814883bb79142062fedd8f + docs/sdk/models/operations/getworkspacesecurity.md: + id: 4d24f5c46809 + last_write_checksum: sha1:d61437609caef9651dba813d01a8f482db2797f9 + pristine_git_object: 10719f79e43dfdcd82837dac4541435cc1a13c7f docs/sdk/models/operations/getworkspacesettingsglobals.md: id: ca8cd6880bbc last_write_checksum: sha1:19267c48a7544ef8537214d82a11367adbab8bf7 @@ -258,6 +440,14 @@ trackedFiles: id: 693f15dd6633 last_write_checksum: sha1:5282f525e926e7b3da7203a0fc5a6d66c280f405 pristine_git_object: 0de532d24be8c7dfead76b357a27fcb9a09db66b + docs/sdk/models/operations/getworkspacesettingssecurity.md: + id: 84fb49789461 + last_write_checksum: sha1:564d1b8c8921741a88459660b6c4138cb69cac1a + pristine_git_object: 87cd510044eba8f064ab5fd3dfee180c9186790f + docs/sdk/models/operations/getworkspacessecurity.md: + id: df6bbd3fe2a8 + last_write_checksum: sha1:3ab1a74d2642b2e887503685fbb85b6b89fd9e1d + pristine_git_object: dcf66f3b189d9af1f23293f1cc080dc1dffc75b1 docs/sdk/models/operations/getworkspacetargetsdeprecatedglobals.md: id: ce5a489c59a2 last_write_checksum: sha1:e7828317907c43adea079bca06d15804dfd55f28 @@ -266,10 +456,18 @@ trackedFiles: id: f5e9c5b1b11c last_write_checksum: sha1:f265fb96b2d1defc0c26efad59d1542f4d25c769 pristine_git_object: 2209a798cebfe0374daf7c6ee7d33b32892d75cb + docs/sdk/models/operations/getworkspacetargetsdeprecatedsecurity.md: + id: e17e4e194662 + last_write_checksum: sha1:38cf366c62f132d27a4e4bb29e1a6ab5142e4ab5 + pristine_git_object: 9c654e66ebadec014f4cfcc8117737cb84f3b3d5 docs/sdk/models/operations/getworkspacetargetsrequest.md: id: d02b0f71e2dc last_write_checksum: sha1:f62750f01fd94b7cd242fce813eb4a38cd90d15a pristine_git_object: e5be8e35ad274822e6ee68d27bbaaee361d51a2c + docs/sdk/models/operations/getworkspacetargetssecurity.md: + id: 7b29ba00b9da + last_write_checksum: sha1:aed657f5602d68684efff74ca4cc9bd1966d2f09 + pristine_git_object: e8e03ed7bbb0cce5bc55e9027831e24cf45bb2f4 docs/sdk/models/operations/getworkspacetargetssummaryrequest.md: id: 5c463888ceb3 last_write_checksum: sha1:9b59dae23602941a4b78622e66765667d794fc2e @@ -278,6 +476,10 @@ trackedFiles: id: b77a0d96d04a last_write_checksum: sha1:a5c1becd4cac9d9e3d4fb34491f1583966b7645d pristine_git_object: 360ed63eed7d2f1ce2619e95457c6624d83ea872 + docs/sdk/models/operations/getworkspacetargetssummarysecurity.md: + id: 65ba989aa7f0 + last_write_checksum: sha1:96856bb286cfe63f7d300798f916852d6879bca1 + pristine_git_object: 60015c0eba77e0b8dc31a749c2e578a935c17215 docs/sdk/models/operations/getworkspaceteamglobals.md: id: ab8e0d555263 last_write_checksum: sha1:5cda2c97bacff38e357cc85c007af6b98d2f31f3 @@ -286,6 +488,10 @@ trackedFiles: id: 3ba8b10ebcef last_write_checksum: sha1:325f73bf39f2c9afe89e19331459ea57940dd3a6 pristine_git_object: e45c7ad85ef272c8767190af94f5e264a6a2e7d1 + docs/sdk/models/operations/getworkspaceteamsecurity.md: + id: f481e4fc56f9 + last_write_checksum: sha1:13483e98e46b26d0addeb210a2426208768c2457 + pristine_git_object: 6ca9f1a84f0e5430c569245ae1f7400f51ae9582 docs/sdk/models/operations/getworkspacetokensglobals.md: id: 4973ccbb959c last_write_checksum: sha1:ee4e9f9090fe68c957d78d20c4301057504b9cbc @@ -294,14 +500,46 @@ trackedFiles: id: 0a8008d8bdf9 last_write_checksum: sha1:dea89c8ce9cd00a469f8b636d90352334795297a pristine_git_object: c8de71ed984083dcb5360522ddaf444df19e2fae + docs/sdk/models/operations/getworkspacetokenssecurity.md: + id: 080443b75840 + last_write_checksum: sha1:ce3e29fcb591b7af91cf4395285c156502411fd3 + pristine_git_object: ababe9ac0b1caadd030fcaa966933fe86bebfef7 docs/sdk/models/operations/githubcheckpublishingprsrequest.md: id: 5b0f785870de last_write_checksum: sha1:73847df54038ee8c0c3421242d90fb4f4515e092 pristine_git_object: 7726bad62c94924ebecc23facbdbd98453b5cef2 + docs/sdk/models/operations/githubcheckpublishingprssecurity.md: + id: 59ce8f02b03e + last_write_checksum: sha1:a3a06ee28b3c993416b12ac810b98ad6ba889f06 + pristine_git_object: a288495a097f669761e3e334921d9672074992eb docs/sdk/models/operations/githubcheckpublishingsecretsrequest.md: id: 99c9b48574c4 last_write_checksum: sha1:ba821883e7ddfd10890fcb4a4d8926b532367009 pristine_git_object: 4ebe0de62bc99ac4afb19f8e9e45b5ac2bcf947b + docs/sdk/models/operations/githubcheckpublishingsecretssecurity.md: + id: 6832aaf873e7 + last_write_checksum: sha1:b3e7c91f7a20bad2e59203d84fed739996119838 + pristine_git_object: 86645d352b4a8852437c6f01fd2b8cd84b18f239 + docs/sdk/models/operations/githubconfigurecodesamplessecurity.md: + id: 8cb1fcb1baf2 + last_write_checksum: sha1:8ace841bee1512b37ae5b4a473c64636f536baeb + pristine_git_object: c368d05f1188ddae39518f3dee13ec2cbfd39c4d + docs/sdk/models/operations/githubconfiguremintlifyreposecurity.md: + id: 8424f68942e0 + last_write_checksum: sha1:f5fe008363f75469f37efd051388ed8074d564bc + pristine_git_object: 60716cd89c05c595a55522dbafee3f9dc2c956fe + docs/sdk/models/operations/githubconfiguretargetsecurity.md: + id: d439c292de10 + last_write_checksum: sha1:649183c78a4500a23067166fa32268db76ae05fc + pristine_git_object: 161053ffefa8a137e830d9a30800ecb83cef48b8 + docs/sdk/models/operations/githubstorepublishingsecretssecurity.md: + id: 1e73edaa638a + last_write_checksum: sha1:f8d5dbc8ce392a36b51466f1637267d2b448f955 + pristine_git_object: 2a6e223be76de6724d8820f2c4aae9dbbbaeb448 + docs/sdk/models/operations/githubtriggeractionsecurity.md: + id: 372d55b628fd + last_write_checksum: sha1:30197eca7612cd588ff7717ea41ea3f8551e3d1c + pristine_git_object: 433b3bb5e3d76cbb0e07ce0e98c9d544d9890f16 docs/sdk/models/operations/grantuseraccesstoworkspaceglobals.md: id: 4405ba68a5e5 last_write_checksum: sha1:838597fc58babc2bca9e022daf3b530e9e045b48 @@ -310,6 +548,22 @@ trackedFiles: id: 87a99236820c last_write_checksum: sha1:3adc557a3b93a60a69ad49706031191a13a4aea9 pristine_git_object: 2e53faa4e92e2236486b15458f0de6f1a921a266 + docs/sdk/models/operations/grantuseraccesstoworkspacesecurity.md: + id: f2a58efc6699 + last_write_checksum: sha1:1b5802c56ed3830dec7eb67e886b2bc7b0109068 + pristine_git_object: 990b7163b30085a33ca601c4a32b7590ef243fad + docs/sdk/models/operations/handlecheckoutcallbackrequest.md: + id: 952b887899ac + last_write_checksum: sha1:9dd5faa15761b2af1e597b4644d3d0c2c70e0b32 + pristine_git_object: 491d020715f0e69dea16b675d013c107abe46923 + docs/sdk/models/operations/handlecheckoutcallbackresponse.md: + id: 83bf336d6c34 + last_write_checksum: sha1:29bb11fd3faeac625442985553b20c67cc00d380 + pristine_git_object: 0adf89d42fbd13c8548225b53d1f472e5c10612f + docs/sdk/models/operations/handlestripewebhookrequestbody.md: + id: c937ec521f8d + last_write_checksum: sha1:274075c16f23ec355d1f676d461a1629a6ab69c9 + pristine_git_object: 9a709309363131285d65e3a6a28f7b080b59acd2 docs/sdk/models/operations/ignoresubscriptionnamespacerequest.md: id: 9db4e047336b last_write_checksum: sha1:e20cc03b3284bc7fbae5dfc13355272048175db1 @@ -318,6 +572,10 @@ trackedFiles: id: b380b8168b15 last_write_checksum: sha1:561b6d1d2da9047b96d27b4625108bc8928b6672 pristine_git_object: ae2431c85bd65761bfef9ce6f88e699fd509437d + docs/sdk/models/operations/linkgithubaccesssecurity.md: + id: 6107eb428bd1 + last_write_checksum: sha1:91d4ff91494afa44096722da947a50a8a991ce60 + pristine_git_object: d0265cc7d8044f126c76104b442d8c3be3f20ad6 docs/sdk/models/operations/listremotesourcesrequest.md: id: 0d25e4ec34f2 last_write_checksum: sha1:917d9177d2c6d1c612f367bfaf4557e658eff203 @@ -338,6 +596,14 @@ trackedFiles: id: 19fe013f9bda last_write_checksum: sha1:5071a75a4f31431e295c1c8df5f0da0e56afdd8c pristine_git_object: 848a1286361e39bc969e308b742d29875fc96edf + docs/sdk/models/operations/postworkspaceeventssecurity.md: + id: 6c8b2f304411 + last_write_checksum: sha1:44ab13b3f0e97073d68f760e0b11ad73400d7152 + pristine_git_object: 828cb2de75abbabcd48fb6a23bcb134d31cd8a42 + docs/sdk/models/operations/revertsubscriptioncancellationsecurity.md: + id: 4236e0783883 + last_write_checksum: sha1:d6c95f109d775d2f99d93e738f60eeac3f359882 + pristine_git_object: 7a5763c9534536d666ae457accb2c7303711fa72 docs/sdk/models/operations/revokeuseraccesstoworkspaceglobals.md: id: 389908d74c2d last_write_checksum: sha1:73a2bfd90fe24ee0aa84e7262b8fde3f9bd9451d @@ -346,6 +612,10 @@ trackedFiles: id: 1f755012615c last_write_checksum: sha1:0b657ca34b8824592373c556656a68d83dee2757 pristine_git_object: 2a10fd0b747fa35c696b19098365674081502043 + docs/sdk/models/operations/revokeuseraccesstoworkspacesecurity.md: + id: 7b98257b4350 + last_write_checksum: sha1:9414d4f203fbc0236374f562e4d3a6659376eb25 + pristine_git_object: 631c8afa446d6580d297e4037e7252b001d5e40b docs/sdk/models/operations/schema.md: id: bd08c5af11e5 last_write_checksum: sha1:8c2889bf118e1187f7f0fb80d9e4c1050036fc98 @@ -358,6 +628,10 @@ trackedFiles: id: 64111d716e79 last_write_checksum: sha1:59b8f18d1e3cc0b309d4cb0c50fd2b5cf1fc98ff pristine_git_object: 604b45b82fb8d026e43a86ec761c7b1b1e18efcf + docs/sdk/models/operations/searchworkspaceeventssecurity.md: + id: 8b6b2eaa4081 + last_write_checksum: sha1:e18b036ac38f073b15db85da408b5427f07b3a04 + pristine_git_object: 4aad69c431e25804ac9ae4709ee456e7f327adbf docs/sdk/models/operations/setvisibilityrequest.md: id: "77623914e069" last_write_checksum: sha1:a98e2c2d50ff393baa32afbbf39c27b2b908a1b9 @@ -366,10 +640,22 @@ trackedFiles: id: 08537e95af0e last_write_checksum: sha1:d154c67725a8f620c5feef506855fe1b5721ba11 pristine_git_object: 155f15d0efed0232dbb15ff86b45cc17dba20a35 + docs/sdk/models/operations/setworkspacefeatureflagssecurity.md: + id: e038b4d050f6 + last_write_checksum: sha1:0ef659fa886697941a8c113a5b6f388f76c65e30 + pristine_git_object: f16503421a14e44da035d89ea8fbc70faa5f4d6d + docs/sdk/models/operations/suggestitemssecurity.md: + id: a714f7ea1121 + last_write_checksum: sha1:d75155f1d2a0f621cdcd36efe85d795b5a5c42db + pristine_git_object: cefef3f9eb9d7844c5732d8de78e7b100e230cf2 docs/sdk/models/operations/suggestopenapiregistryrequest.md: id: 323ac53d44ae last_write_checksum: sha1:871ff3c44f7c965c268fd200cbe05f054868691f pristine_git_object: 7954c5431d677f58014529743cddb458697a40d3 + docs/sdk/models/operations/suggestopenapiregistrysecurity.md: + id: ea23b6ac76d1 + last_write_checksum: sha1:6396a723bec55d7241c10497e2bd04cc579371b5 + pristine_git_object: bc9d3252e57883366df12be81ad66371f6287196 docs/sdk/models/operations/suggestopenapirequest.md: id: 7a623947b287 last_write_checksum: sha1:45f6ab1bedd1e73bafec92d6cb693cce2c224605 @@ -378,10 +664,18 @@ trackedFiles: id: 5625ffcf311b last_write_checksum: sha1:6d4cf287266721c731af8cf4838216f00631f53c pristine_git_object: 955c21a33bffc094680a89adc6dea3fe4c954608 + docs/sdk/models/operations/suggestopenapisecurity.md: + id: 24d425d290bc + last_write_checksum: sha1:9bbf8550aacb5cd2954b8e1775cf4545f0d56d2d + pristine_git_object: 382ee2ea2badd27a2a23128b28fd764a9d423d82 docs/sdk/models/operations/suggestrequest.md: id: a60b0394d42f last_write_checksum: sha1:0c5b14fcb5c7d2f7c4d0c8c60a2c4307f62ec806 pristine_git_object: a2026cefca07d4842b20e46447fa334673be6dbf + docs/sdk/models/operations/suggestsecurity.md: + id: 66be4e31c255 + last_write_checksum: sha1:630dbe581ec56f44753f8178c53440c97f331e1a + pristine_git_object: be1772984b25453d2c6aa7cc13f8973527f6c566 docs/sdk/models/operations/updatepublishingtokenexpirationrequest.md: id: deea6ade8086 last_write_checksum: sha1:511c0b0c732f66fc5056d600ef6cc47534eb9183 @@ -390,6 +684,10 @@ trackedFiles: id: 16bfb9b00743 last_write_checksum: sha1:029b21b8893374270ab89991e50c40b476305587 pristine_git_object: 7476af3d8e47b2760c484f54965465b2e81ef5bd + docs/sdk/models/operations/updatepublishingtokenexpirationsecurity.md: + id: f6426e6df92c + last_write_checksum: sha1:1f4918c48865c86d2314406b1a50751342c1eed6 + pristine_git_object: f5e49c490562ccb67445e5d728bf31f67b3bcade docs/sdk/models/operations/updateworkspacedetailsglobals.md: id: fd0422ab098e last_write_checksum: sha1:4861b623897d5b8e521d6d64cf36a8060d0471a5 @@ -398,6 +696,10 @@ trackedFiles: id: 50a822d5e02b last_write_checksum: sha1:67d0e6cac7b56a3e15c37d3253634c60fa52938d pristine_git_object: 06ef603f8e4e3b660475d9f616c3677370f82030 + docs/sdk/models/operations/updateworkspacedetailssecurity.md: + id: 9161b380c83d + last_write_checksum: sha1:f2c8034a3d061c2108599509f102c994c390203b + pristine_git_object: 5f6fa72f66c5f7bd26f5e7862e76b8994402b7e7 docs/sdk/models/operations/updateworkspacesettingsglobals.md: id: c4844d1889a2 last_write_checksum: sha1:724cd44e7baded5e957ee451ff4a3140a7423cef @@ -406,14 +708,30 @@ trackedFiles: id: "464191903353" last_write_checksum: sha1:e13871c659c10c4b0d70496c3c388bc0e17865dd pristine_git_object: 6ea348dda7ab662cbbf040d4f0be0dfe469248eb + docs/sdk/models/operations/updateworkspacesettingssecurity.md: + id: 5fbc62126a98 + last_write_checksum: sha1:f5cd1a22f2d68117907f47a2582e0604ab80a1c9 + pristine_git_object: 2bd98723174402bb6e8ec9ef44e90b56d3f2b20f docs/sdk/models/operations/uploadreportrequestbody.md: id: 3f4a096fbf1c last_write_checksum: sha1:895d6492c48ee0c897bdfdcb5a371b21cd8f7f71 pristine_git_object: f5cdd6c72b96d3900437f7c33f25c68c3bf916cc + docs/sdk/models/operations/uploadreportsecurity.md: + id: 9450de1e484c + last_write_checksum: sha1:fbc07349ae50f6258c2561747c6e907e62ae98ad + pristine_git_object: 6202d7403a14501a8378d7d471582cdccfb417d8 docs/sdk/models/operations/uploadreportuploadedreport.md: id: 12275cd702b4 last_write_checksum: sha1:f4d14de8f4bdfd49888baadddbbb32a952abf0ba pristine_git_object: b751982f408bbfa04eaa2d2899b6cc5957cf924d + docs/sdk/models/operations/upsertbillingemailsecurity.md: + id: 632054393ff1 + last_write_checksum: sha1:c9a1012ff676810ab2b376c5e59f736d18fcaa36 + pristine_git_object: aef2b4717279914d139394317b1a9310203fa732 + docs/sdk/models/operations/validateapikeysecurity.md: + id: 3ca26a0f0eef + last_write_checksum: sha1:b1e1f953e7635a253d9fed3fc0ee62af63467c67 + pristine_git_object: b9328d924bc141a281761e9db4499990cb0b6c1c docs/sdk/models/shared/accessdetails.md: id: 61fc607700f4 last_write_checksum: sha1:19c08e768feb8fe539c037b5a50f0f3ee46d266b @@ -428,8 +746,8 @@ trackedFiles: pristine_git_object: c33aad412853faca4a519ec5a2ec137015cf51d7 docs/sdk/models/shared/accounttype.md: id: 1c016d1deade - last_write_checksum: sha1:9fc69023e038eee465078f043941e66e522df21f - pristine_git_object: c021b6d5834606fcd7091271e78171fa93f6cf7e + last_write_checksum: sha1:ec9f5be154d86faaaf30ff3d3d315a092dfcad53 + pristine_git_object: 14a4da0b1a78ed76a30afbb1330e8fc8f4f4a571 docs/sdk/models/shared/actions.md: id: 7a0e0be999c2 last_write_checksum: sha1:4df57999738e185dd7ee60547a7aa8c12efc7a40 @@ -452,12 +770,44 @@ trackedFiles: pristine_git_object: 3bc7b3feeaddf2ee77cb78cb732f6020c65f454b docs/sdk/models/shared/billingaddon.md: id: 830315d390ab - last_write_checksum: sha1:1eaf3192a1fe6c7465510a11ecd8048627ccbb6a - pristine_git_object: 5f3ccc24c17c14a48f007d7a5e5193bb3e37d4a5 + last_write_checksum: sha1:51b605b89476a1ef6bead830ef5c06d6158dc1f2 + pristine_git_object: f95833a6b19d1c47e36c282b23d4201acce6eed6 + docs/sdk/models/shared/billingemailrequest.md: + id: 8e1b090b1785 + last_write_checksum: sha1:ac22c14f467df901348d3adcea6821dfb4332696 + pristine_git_object: ca4f7fc18648633dadae1f906da1be1a2897d38b + docs/sdk/models/shared/billingemailresponse.md: + id: 444dfcb81bf6 + last_write_checksum: sha1:4f80b5e12abe69ea2afc7704cf17b224a6f87887 + pristine_git_object: bb66c026248b2a20e506ca4d2751686d2eb160fd + docs/sdk/models/shared/billinginterval.md: + id: b289c32ba15e + last_write_checksum: sha1:fddc111df29d12fb1a71c583f27792f679c3afa5 + pristine_git_object: c4faa7eceb7b28e4fda17875d12e56d6a8d6bafb docs/sdk/models/shared/billingoperationsresponse.md: id: c31164bd370e - last_write_checksum: sha1:e3175289b03e1b11bf735c58990c48d9b739ec89 - pristine_git_object: 641d13e4131d569ac411b27b7d0048d9a390a66a + last_write_checksum: sha1:b931df9c2bdf1cabf25b9f6ad0ab44a5668533c3 + pristine_git_object: db19801368020de3e4e68b5ad3ae0f281465d351 + docs/sdk/models/shared/billingstatus.md: + id: 6fbdde8b6939 + last_write_checksum: sha1:dd11efd777544055862294ea94cd2f32d6e04195 + pristine_git_object: 54cac7d57617727e694fda85938d0753d065025f + docs/sdk/models/shared/businesstierpriceresponse.md: + id: 29c2309b1c4a + last_write_checksum: sha1:e63fbff190594c181912bcd5b58df86880e6b89e + pristine_git_object: 5d651054b61004000576060702c2bbbcb8fdc4f1 + docs/sdk/models/shared/businesstierpricesresponse.md: + id: c22e27a7f81e + last_write_checksum: sha1:040887e60c4206a89b0d6ad220a08b2c7fd8cb05 + pristine_git_object: 407c1918a48139ce0bf418c3e7ca64202de772ef + docs/sdk/models/shared/cancelsubscriptionrequest.md: + id: 148ca9dd1ae5 + last_write_checksum: sha1:2aeba5bbc7d81e63ddf280c8d36283f44f0653e1 + pristine_git_object: 0e4100ec872deb061f452db616306f1e960ebd68 + docs/sdk/models/shared/cancelsubscriptionresponse.md: + id: 5fda6cc23cdb + last_write_checksum: sha1:c3d1d79a0e711e228fd8a3c76d6d57e1fec8df45 + pristine_git_object: 178d57dc25623e1dcca025ff58080e960ed1a440 docs/sdk/models/shared/claims.md: id: 0c5587639f78 last_write_checksum: sha1:68565579b16a8f27da413a6407d65ebbb659c385 @@ -478,6 +828,14 @@ trackedFiles: id: 3f13a0cbec09 last_write_checksum: sha1:c0aef7cddad5fecd311de3909dc380019dae9813 pristine_git_object: dcf39824057440637b8e0e4a138422fcb7dfc32f + docs/sdk/models/shared/createcheckoutsessionresponse.md: + id: f5411d581bea + last_write_checksum: sha1:b0d84d2097f5b82c486ab229b14b77cebb8879b2 + pristine_git_object: 38fdcc5fe2c8fb54e6419f2d169ae48ebf9a0f1b + docs/sdk/models/shared/createlanguagecheckoutsessionrequest.md: + id: d9e92e6c2789 + last_write_checksum: sha1:92922bac6b7821acd0792bfac0bf200f4d11ac65 + pristine_git_object: cdfdd2757b8709215658d1bbf37e2bc545e0e5a8 docs/sdk/models/shared/diagnostic.md: id: 7c61a1e664b4 last_write_checksum: sha1:0ef096e653c53e95ff4121dc8e29652df38af9e9 @@ -494,6 +852,10 @@ trackedFiles: id: 86de531de02a last_write_checksum: sha1:c473f2c7dce0ed969e681b8cf9b834b668891d79 pristine_git_object: 239401596acb07fa1207028953f8360e61bc7044 + docs/sdk/models/shared/getlanguagesresponse.md: + id: c8b049e92d14 + last_write_checksum: sha1:54657213dc647ace2a2b55941a2bd20a6cbb1346 + pristine_git_object: cb47d6a087ca88590516a9b94c6deb29ed4ce5d6 docs/sdk/models/shared/getnamespacesresponse.md: id: 1431df28e071 last_write_checksum: sha1:1f518d50963205dcee92ab598053f05b24b48ab2 @@ -554,6 +916,22 @@ trackedFiles: id: 9633944895af last_write_checksum: sha1:23c81d4ec9ad28f27fa12d6ecc0c1c1e35426937 pristine_git_object: b3c6790a00ce7a72f7f7cd0e7059acaabc25dd92 + docs/sdk/models/shared/languageactivationresponse.md: + id: fc20019af087 + last_write_checksum: sha1:0e8866fbc50c4525f512ee0a71468072b29c8ea7 + pristine_git_object: 16b7501d1305541ee64b077c30ce0ae5044384be + docs/sdk/models/shared/languagebillingbreakdown.md: + id: 2db66a9281a2 + last_write_checksum: sha1:53ac45398873eb98d552f4461451aa4adbea9117 + pristine_git_object: 5159677d95ad83e7969156e43f34aaaf36cf70b0 + docs/sdk/models/shared/languagebillingstatus.md: + id: 724ea0343546 + last_write_checksum: sha1:7a9372d5cfc1a758ec79ec98993250b3f62f9565 + pristine_git_object: f2cc7ee42825b0e6ee134e2a73675f63a48d451c + docs/sdk/models/shared/languageresponse.md: + id: 81a990a9c73d + last_write_checksum: sha1:36434a863e22f58ec9db2334f28626d7f6785ed5 + pristine_git_object: b19e2c9db872747f82cda4d5b6b8099d3b02b0d0 docs/sdk/models/shared/level.md: id: b43ff9932624 last_write_checksum: sha1:0f8d80abad0e68e85692d918b2f5265e051487d4 @@ -588,8 +966,8 @@ trackedFiles: pristine_git_object: 46bb338c30a4883096eedbe4344c7fea7634f2ac docs/sdk/models/shared/organization.md: id: 6e71a154fbb3 - last_write_checksum: sha1:fc5cac8b71b17858d8bcec21f211ce64d10add30 - pristine_git_object: ca024cdab06d531d5a2caad3027341e14ee19e89 + last_write_checksum: sha1:38bc27482e7054794e67f9fd7221999d13663eb7 + pristine_git_object: e53a526e9b45768426cdf5bcdd053b438370387e docs/sdk/models/shared/organizationbillingaddonrequest.md: id: e4e9806b620d last_write_checksum: sha1:5b833dfcd9054830b16b1c277d95901a132708d3 @@ -598,6 +976,14 @@ trackedFiles: id: e5da6dee459c last_write_checksum: sha1:9dd3f92df75d836f39352f5b36ac52d6e0f5ce97 pristine_git_object: 1c7d4c956f152a79eac08b27cbc56c9b75e97bf5 + docs/sdk/models/shared/organizationsubscriptionresponse.md: + id: ea7f291a8870 + last_write_checksum: sha1:731e4188e0fe9d437ca243187fb93330008c4b10 + pristine_git_object: 65389fedef2c07128fcadd6a521181602829fe95 + docs/sdk/models/shared/organizationsubscriptionresponsebillinginterval.md: + id: b4f915065a8a + last_write_checksum: sha1:a3e478fc64949e48fbeb29b66a2053d0885667e9 + pristine_git_object: ad1b5e7cbd5a5bf66e24feed27e94a4bdf716154 docs/sdk/models/shared/organizationusage.md: id: a36f068722f8 last_write_checksum: sha1:343495b0ba1d6cece9a4786460eb7465fa57cbd9 @@ -606,6 +992,10 @@ trackedFiles: id: fb8b53dd752f last_write_checksum: sha1:348c6e568403098e1cd29a75bf705914538447c7 pristine_git_object: ebb330b2a2a132fc03e4c5d063f0049126198c63 + docs/sdk/models/shared/pendingcancellationinfo.md: + id: 274673fa365a + last_write_checksum: sha1:557e96d25fe01353ed55b6fc40577846ee04529e + pristine_git_object: 766bf2b2c2cb8ee7eaae30a54adce8d07d08801e docs/sdk/models/shared/preflightrequest.md: id: d9b5cdc11bb8 last_write_checksum: sha1:66fe94a78bb9b830c67b76cedb248f9a4842fec9 @@ -672,8 +1062,8 @@ trackedFiles: pristine_git_object: 2266d2838a9c85ef36349f8e387be2686aa3b6bf docs/sdk/models/shared/security.md: id: 972729c50a07 - last_write_checksum: sha1:c81867db15370f2625a7ba1c9b10f75af4a102f8 - pristine_git_object: 31b7699680b0fb7e0941970a42014861d4be13af + last_write_checksum: sha1:c2e4da81d1c1ba18dd2b77f1b2dd0c974bf42323 + pristine_git_object: c641f756a551b9812ad387a8ce207ea91bfa06ca docs/sdk/models/shared/server.md: id: aa031520c7be last_write_checksum: sha1:b1e3692a83f492a9495d108782cb6d5935df2382 @@ -682,10 +1072,6 @@ trackedFiles: id: 3a358dbd7f2e last_write_checksum: sha1:bfd81ed0aa87929faf30e195039a68411dbbe7a1 pristine_git_object: 7af800adcaca288ce21210b9a06fc2543c519e1f - docs/sdk/models/shared/specbillingbreakdown.md: - id: 9f6820f07207 - last_write_checksum: sha1:ea7d5462073f4a7b01eeb288dee50059ed735a88 - pristine_git_object: 0044975b233973aadad9347cfd07dac4314dfaab docs/sdk/models/shared/ssometadata.md: id: 75df5f2de2e4 last_write_checksum: sha1:ea44602e54f0ea653b05a5f4e783e4c1df726fda @@ -716,8 +1102,8 @@ trackedFiles: pristine_git_object: 9a6fa20bc03597e7f1816a82c9dbc0a1c1b41c93 docs/sdk/models/shared/targetbillingbreakdown.md: id: 815f46c8ad2b - last_write_checksum: sha1:ac2c318ea0ac811b152f50a5b4578bc79af70591 - pristine_git_object: ea49881d22defb6f0f5921e9d378fe24030cb473 + last_write_checksum: sha1:dfbb3dbc0e18bb5008e7d529fbab584b99ac33d3 + pristine_git_object: a3219b79e21900a03dd4db065d6df1971eb74b1a docs/sdk/models/shared/targetresource.md: id: dd622b552de3 last_write_checksum: sha1:8408e8593c4b024d2dd71b181a458ad248abd6cf @@ -734,6 +1120,10 @@ trackedFiles: id: a78b1ebef5df last_write_checksum: sha1:d0fa6d1e2ec06267c1e704a69d0d4468063f9066 pristine_git_object: bc1856eb7a4f70808bb7ba001d4948d2cda397bd + docs/sdk/models/shared/trialtargetsresponse.md: + id: 47db16c2e325 + last_write_checksum: sha1:a41090cb99fdbca6ec947382c89965e491d434f2 + pristine_git_object: 7bf9eab63271f262fe5f6ad44aa2296d330d6132 docs/sdk/models/shared/type.md: id: 04645f7284d8 last_write_checksum: sha1:38f72f5dcf814a6c814aec8e991f6a363bfd675b @@ -768,8 +1158,8 @@ trackedFiles: pristine_git_object: 5acea69c227202f91161b62dfa4975508afe0447 docs/sdk/models/shared/workspacefeatureflag.md: id: cf39e489eef4 - last_write_checksum: sha1:bc47578dfcd31fc512a9e8060809d947fcb15423 - pristine_git_object: d69cf1ab4531245002f03b79777b280a809a6d93 + last_write_checksum: sha1:cef59927f087e18a73a28defbe0f74cf81cf9a26 + pristine_git_object: 2b256ede38adfa997a8d17eae99e09549901e049 docs/sdk/models/shared/workspacefeatureflagrequest.md: id: b349a5aea8c3 last_write_checksum: sha1:68be0ae41e6c740bbe7bbfbced0da6e546cda423 @@ -800,56 +1190,60 @@ trackedFiles: pristine_git_object: 53964cc76770b48a98d525ee62b3e97492e95001 docs/sdks/artifacts/README.md: id: 104ebfe5b00f - last_write_checksum: sha1:17bd0a7c43354d529107b795a4b40e21e375722e - pristine_git_object: 9b84c7e98504ed28216f86072216026ee85969f0 + last_write_checksum: sha1:7d058979bf5d605a87ff195e8f538428b00e7415 + pristine_git_object: 06533ade3c258a99a9478e17521e24204f807401 docs/sdks/auth/README.md: id: e9724f17945f - last_write_checksum: sha1:630143ec3ac114bc755b25847950f71ed8f7efb5 - pristine_git_object: 8b2eb5c9ec24b3b0ae7bfcb4c14c2572ee637961 + last_write_checksum: sha1:c4c04b44c5985e71371f46ace65ee00b2467dd17 + pristine_git_object: ecb9588c7f3fef1e3e8c4e1b4b1bc22d216aecc5 docs/sdks/codesamples/README.md: id: 6476f644738c - last_write_checksum: sha1:162c491d30340ae36b09fbb8d19262d6d701e957 - pristine_git_object: b5e56a583cec124bf1cf27114ec8143a1d838a71 + last_write_checksum: sha1:c6c53722d711fb722d3a9668be122a0758c6146d + pristine_git_object: 49a988c0af468860fb5dfba9a57ee436958680ca docs/sdks/events/README.md: id: cf45a4390b9b - last_write_checksum: sha1:63543317e355b3d62f274e1674c1eb59c40272de - pristine_git_object: a7d4acfb9677a69f8cb6c55a3b50ee89b76cfcb7 + last_write_checksum: sha1:b380e8b9c554b25a05c5143a90caee766cd619ed + pristine_git_object: 5bd22ae245e58476d5c2c101b671c9fe4f254cd9 docs/sdks/github/README.md: id: 52292810cfa2 - last_write_checksum: sha1:b8fb7531b5e1f7f18fb30c2836799395685a9e18 - pristine_git_object: 4fe451d6cc8022f676a891f6b0fac2693847c80f + last_write_checksum: sha1:ba09099e8f105d972c9a95d6029a4dd946ffd88c + pristine_git_object: 4bba9ce8a64607b76bd1c297609f13c91e8649e6 docs/sdks/organizations/README.md: id: 3425667a2db5 - last_write_checksum: sha1:bb384be20f893e9c69723483f37654381a9d299a - pristine_git_object: 384a1c8d8ededf20f5b1b2c0d16db43c220b86b2 + last_write_checksum: sha1:852847c9dd7ab357f35404dc337bcc15e024c6db + pristine_git_object: 93e7f7f7b8117ad972482ea6a5028649a221fabb docs/sdks/publishingtokens/README.md: id: 0bc0579cbd88 - last_write_checksum: sha1:87d412c0e7a516ec6beaf67f9f2187e28ae8127d - pristine_git_object: fa02a9259c59aed71dcfe86b86e895f02e2d6d8f + last_write_checksum: sha1:f048822794029108a432b50a02f7614ff7f9134a + pristine_git_object: 43c3346d968d17927ef981c912a0a1e866219cf9 docs/sdks/reports/README.md: id: 66bfd66f1efc - last_write_checksum: sha1:17798d967d3ee0d7d5aa43ac7f56ebfff553e26f - pristine_git_object: ab6c73f91fc6dab4b4418fe19018077289aebdf3 + last_write_checksum: sha1:34a1440c6cd65aa7c07816728cc588d4e5c4590b + pristine_git_object: 0424313dd5417262cac71b587313e72752496464 docs/sdks/schemastore/README.md: id: 2a061ddd788b - last_write_checksum: sha1:91f0fe3c714f7becfd1ae1310586f650c056b453 - pristine_git_object: 58842a6d1ee3b0645c72a8ac0f927074ab8137ce + last_write_checksum: sha1:c04a10cc5f75938ba2a43bffe74b4245c1cd3cb7 + pristine_git_object: 1d04e69c1b70e762f5cf56ba578943a292ba7217 docs/sdks/shorturls/README.md: id: 4ea82e3754d3 - last_write_checksum: sha1:d133cf318eeebeb46067395caf7fa2a1017931ef - pristine_git_object: b2569d285c20b3563b2dd673301e1bc2f0b46adf + last_write_checksum: sha1:a2f4690f49bd4b788a85f11f43767a67813a328e + pristine_git_object: d06946ad0f00303e4be84e81b54d02b0f801b2e1 docs/sdks/subscriptions/README.md: id: 298b9ab3c3e0 - last_write_checksum: sha1:96f37329302a988d547d3404201a30e4531d5322 - pristine_git_object: 12c299f861204357b23f7cd659f3322ff199e907 + last_write_checksum: sha1:ff2230554f5b3f9b3c12d7be60baf9102faf80d5 + pristine_git_object: a459d9682b46878a1b1de588ece5c75553d70a84 docs/sdks/suggest/README.md: id: 1adc5463594c - last_write_checksum: sha1:823fa7813b30779c39fd73a0e533610c11c3e6d1 - pristine_git_object: 3941fb45bc72ec260e2a32da40fe9cdb6fe29dbd + last_write_checksum: sha1:270f5cf50a07516af91ebb94141c870cde819393 + pristine_git_object: 4e32fb13350069aa90dfefc89f119ae2f5007f4c + docs/sdks/webhooks/README.md: + id: e21b32d786a4 + last_write_checksum: sha1:3fbadb786ce2afc0cef59944f4a3a22426a1b220 + pristine_git_object: 311769e845196034e7d4da8c5e0cb80799abdd3f docs/sdks/workspaces/README.md: id: 1f5b051a6380 - last_write_checksum: sha1:7fe89acdb40bd22a0ad69d10dcb8ce3d6cc99ade - pristine_git_object: 0c3b98ce7111323184ca20fd761a09cb561970af + last_write_checksum: sha1:4dc55c75572d1796d2012d7a22003d5c6b75282e + pristine_git_object: 0ba3a55562a13f30fa578e5f60d293388b4c3957 eslint.config.mjs: id: 461c8d07f6da last_write_checksum: sha1:9398f326377fe47f67af2df6eb6370750c0790b4 @@ -864,336 +1258,388 @@ trackedFiles: pristine_git_object: fbc9789f98f88aa23b0d6225654796b7a9ab8002 examples/artifactsCreateRemoteSource.example.ts: id: 32fead8f597a - last_write_checksum: sha1:1ab3d69f00598facd34da90c625a84745b358d30 - pristine_git_object: ae5210da19f3587fddfee204755f3e0ecf52bb55 + last_write_checksum: sha1:d60dbb5209da68f477e45cab6e650124f5b6e04b + pristine_git_object: aa14b2276e49e68690379fedbe286b782ea59903 examples/package.json: id: c1d7b0ec8e7e last_write_checksum: sha1:39ba3fb16c2d5d106573a6edf974e195706510fd pristine_git_object: 6e1c0f471354440ea3702300fa9c3b0ffc78e1f6 jsr.json: id: 7f6ab7767282 - last_write_checksum: sha1:ac321be1dff8cf8d6bc77130dae23bab71715955 - pristine_git_object: 0887910137494bee33dda91caeb4b125ad0317ef + last_write_checksum: sha1:c72f0e470459fb31e3099f281bb5bea7483dd299 + pristine_git_object: 8c72c9204cb620c3acde3df818356bcf8a1b9c3c package.json: id: 7030d0b2f71b - last_write_checksum: sha1:b18caddd55ee335ce6c917248caba94fc21bcce4 - pristine_git_object: 0577b8c97c2be06f2a9b48df7b80c945654a57a3 + last_write_checksum: sha1:86ff67ef55fc7985633319e9c16bade073b666a0 + pristine_git_object: 758b7ec812a83c59812af5b886f53898a02f4a9b src/core.ts: id: f431fdbcd144 last_write_checksum: sha1:af39f46b8d47a646229e38484dba01e3f624e949 pristine_git_object: 6baaf61480df5ac257201a32126696784eaa6a3c src/funcs/artifactsCreateRemoteSource.ts: id: 0d49d6812d3b - last_write_checksum: sha1:3a6f2c62c8b6665e7c6ca01f75301cba733867aa - pristine_git_object: 3ea333d445df372d3078fdf2c1b8708e06ff3784 + last_write_checksum: sha1:c019df3568ad1eb583c9dcc8571b57387256b9e3 + pristine_git_object: a65d30dfad04fc626f79fd9a9d23234877a45da1 src/funcs/artifactsGetBlob.ts: id: ce1cf417d84b - last_write_checksum: sha1:8690efe54f46fab9709d24425f8b26e2236fbc25 - pristine_git_object: 693048b9876c25cd2392fd3dcc80f3578f471f26 + last_write_checksum: sha1:86fb139fea275a877020777bd197dafb5735bf77 + pristine_git_object: 82f16271972e852ac0690012c4dc38c1659ab94e src/funcs/artifactsGetManifest.ts: id: 60b66a0e243b - last_write_checksum: sha1:b72c410aea9b74866d6c2e1185d20d3a3d4bec39 - pristine_git_object: 88a6c11d1af0ed2969bb210e1aeb92db642f91da + last_write_checksum: sha1:49491c11b5f753a05735e9630b6f9963eb3c6b9f + pristine_git_object: 91d7928f683af8335a18b97d40e34f7983bb55a7 src/funcs/artifactsGetNamespaces.ts: id: 9b60e1cd4a67 - last_write_checksum: sha1:bc1e3f9b884a33b4debc184a1badac4366a9d22e - pristine_git_object: 469e461c8127c23ddb25da926b659dc8a4fa48cd + last_write_checksum: sha1:f08f453e8e0f471edc0b3c1eac967726793e3e1f + pristine_git_object: 3a8c50d4c2e9d6dc13f8e2ab1483871286898607 src/funcs/artifactsGetRevisions.ts: id: b03936dcc4df - last_write_checksum: sha1:f86cf923fcb8c6803e353d901cede779f9950e65 - pristine_git_object: 40b75e2709e9c8b2f67079f8a227c2a695abfdce + last_write_checksum: sha1:ba68c57752ce2c33b5e46dabf89d6b06d3bb46d1 + pristine_git_object: 963ec9f6166fc01d7c2df4f0031e33ae34576669 src/funcs/artifactsGetTags.ts: id: c9f063d78ee3 - last_write_checksum: sha1:ff0856f847a80f4bbacbc42e0ea751519f8917d4 - pristine_git_object: b8aa89a1fd6b79b7c92a0bf31dd94b7fadca47dc + last_write_checksum: sha1:e73dbfc38de28a48559d3d57d40b72f525e30677 + pristine_git_object: a8cbc91c49bc8d2710d73db61992d525e7a29e03 src/funcs/artifactsListRemoteSources.ts: id: ece966e28f99 - last_write_checksum: sha1:af2db112919bb330e3b76ce172e91a77fbca7586 - pristine_git_object: bc057b35ae98207cdbb45a99bd7c3e892f939961 + last_write_checksum: sha1:b4c2c4baf63ae5af3b00648f23fd5330edfe09ec + pristine_git_object: f15b58b5a5adaae9f7c3a3b094435156c6b805b7 src/funcs/artifactsPostTags.ts: id: da54be736260 - last_write_checksum: sha1:5ac7dcc6fe2475b80e13b9259bafe3211bc47403 - pristine_git_object: a65551075aa2196c6ef5891a2b116f766c4876f8 + last_write_checksum: sha1:200f8bab44bd0fd2cfc33442cf41942e797e2099 + pristine_git_object: d7df4f01da63c52e3294e4e5d9353ecf459c5434 src/funcs/artifactsPreflight.ts: id: e2ee0ad1f2a0 - last_write_checksum: sha1:af839ffeedefadb94139044dadc31c909dacbdb5 - pristine_git_object: 41f18dcdb18c6dd351287daf7cc8dd3c324da143 + last_write_checksum: sha1:400ef5df24f3f552d726a009816a7885f6d4a394 + pristine_git_object: 2cb93579e72ed5f8bb083e1d71f7fce579fac930 src/funcs/artifactsSetArchived.ts: id: 400e5f8cbf64 - last_write_checksum: sha1:84678a3e35fb8d6f5ae77ff7262bf74ac81b9078 - pristine_git_object: f5e7548c6cf6e025ddb3bd22ff050f68af9330b8 + last_write_checksum: sha1:1c982ee4ba03127887d4d34327aa01340ec40774 + pristine_git_object: 5999ea42f5522d8d6cb7ea3a55cebff7f645b82b src/funcs/artifactsSetVisibility.ts: id: 4c4697662a96 - last_write_checksum: sha1:4387d7460a5fb660437d0222086a8836bfe137a8 - pristine_git_object: 7a50df66a4d3ef7a3c4468c7d430580997aa46a9 + last_write_checksum: sha1:926e1c77ef9d007ec3d90700bfa2273b1ad82e7c + pristine_git_object: a3364bdc9fca29802de0928ca6e7b3da3b51e82f src/funcs/authGetAccess.ts: id: c9d8aa23a9a9 - last_write_checksum: sha1:b6ec628a3c7c2b70b60f1416b4f1cc4d1df7ebad - pristine_git_object: 04ed3d161add7163813419262eafe235b326e016 + last_write_checksum: sha1:5c2d56954159ebbd79ca87f46e0a55239d308108 + pristine_git_object: 13a9457ce5f5d56531f2bc353baaa67ddfbc7b6f src/funcs/authGetAccessToken.ts: id: fb0a637b6dd1 - last_write_checksum: sha1:63aeb56bfbe6447e4c1d710cdd487e27089f3e8c - pristine_git_object: f91cfca88ad1bb7f10fce17dd25ed4a435239cef + last_write_checksum: sha1:4ad4ed988cbd23fec01f6ca7bd45f5e38efcec6d + pristine_git_object: 8b8740804e6b221f2fc6cbe2ceb6d0cc146e4b19 src/funcs/authGetUser.ts: id: bd37c5a57a31 - last_write_checksum: sha1:89d7ee9a17e8d9b85d17f01576788c4757d52eb9 - pristine_git_object: bc0bd4736e19792df778743a8cf2b14c73066158 + last_write_checksum: sha1:ffb51553f2980ef299ce87d81a4b7ab5f68451b1 + pristine_git_object: 3da07610d73c4cbcbc1297f54adc8916c2317e01 src/funcs/authValidateApiKey.ts: id: 9377e3a4ddc9 - last_write_checksum: sha1:7832c6c5b1c1aba676dce758c2c6d5c037306f6a - pristine_git_object: 7c689d7c0f43596c01d72ba7b7ff8d322305021a + last_write_checksum: sha1:eb9a0878e99dd647892097ff0f0a51859e729280 + pristine_git_object: 05e08c86dabd19f07c70f16aa36e9a101e257f7f src/funcs/codeSamplesGenerateCodeSamplePreview.ts: id: 44aa2ecb6df2 - last_write_checksum: sha1:178dbbdcbf825b3749509bd86bad0f448745eb70 - pristine_git_object: 54ebeaea82a898e164e1f32d69befc7331c4eeb0 + last_write_checksum: sha1:facb3dcfdfcbc72683e9f2cb33040a14ee54b099 + pristine_git_object: 06db65eb85d37a1d49b6760f27221863a409025c src/funcs/codeSamplesGenerateCodeSamplePreviewAsync.ts: id: ba088a5c121f - last_write_checksum: sha1:31bf1d74c229e5a92f2a04fe590dc34d6b4216e8 - pristine_git_object: 697d6e2881f9a4839e8b9e3be28480ec5f4a8331 + last_write_checksum: sha1:71f04eb3b7290feea92ee59d98227e8841ea958c + pristine_git_object: 8f201b80e9bd16de361ea77e2f8513f3ef69420b src/funcs/codeSamplesGet.ts: id: 80a0c24c0858 - last_write_checksum: sha1:b0a28b976427f1b97a43c6e8ad8c0caaea776714 - pristine_git_object: cfa3992cb34df4f5972c82799e1a808eebb4f128 + last_write_checksum: sha1:43ba710abb26f88a61a9a74f35fd78893c10d8ad + pristine_git_object: 474cbf74125ab84c727b4d4daa33f8839ff1bfb0 src/funcs/codeSamplesGetCodeSamplePreviewAsync.ts: id: c80b0f9daa06 - last_write_checksum: sha1:c546b8a714d3340e284ec64b3d91ef92d366df25 - pristine_git_object: 2cf06f72a6291618f0d2edcdd08ae187779ec06a + last_write_checksum: sha1:be2395344ec1ffc100f32530ff5627a9a1b9b853 + pristine_git_object: bf4290b823722c715865a304f9bd1ddfba25cc98 src/funcs/eventsGetEventsByTarget.ts: id: 4f9907d6e112 - last_write_checksum: sha1:7c90ad94b83c04a67726fc5559d813cde8f63791 - pristine_git_object: 8cd8ec206c797e43e5f86dda17f21a78e64327ba + last_write_checksum: sha1:24f46ca7f1856a59d25d0ea8df9402ced0f7d47e + pristine_git_object: 9b3e850cf4432a183f9f517c179699014a002402 src/funcs/eventsGetTargets.ts: id: 172ee8f029de - last_write_checksum: sha1:628ba6b02be89e9978bdfda569ebee4cd9e048c0 - pristine_git_object: b9690f6734b728ed83b4cce8a7c92e0b3dc4b840 + last_write_checksum: sha1:50b8a27a8142e8d91a5cca4adc5744d832460a0d + pristine_git_object: 7fbd8e81f7fdd3e378c99640572c4e18ec25ecdf src/funcs/eventsGetTargetsDeprecated.ts: id: a84f13bfbf33 - last_write_checksum: sha1:c502f4ab80120dc8039488a2d839e57ada3f5057 - pristine_git_object: 316ecfe8a10e6e61702b4499aa031c48b252d00b + last_write_checksum: sha1:95804069512921cfb7aa562ee9b173c1e9ad94fc + pristine_git_object: d2d70a95ebd9d74659d46927240cf23f36a3c4e1 src/funcs/eventsGetTargetsSummary.ts: id: a2e18f289332 - last_write_checksum: sha1:232ee9578195fb91178dce7a8ada16f0293a46c2 - pristine_git_object: adb4d18354fd387ad7f092dfc8b2fac11fa8e55a + last_write_checksum: sha1:9070cc73c2673586461d3c83d1653848d0834149 + pristine_git_object: d98acaf1af09bf72d260a25c76fc183c40cb8ebc src/funcs/eventsPost.ts: id: 572b76b9d8ba - last_write_checksum: sha1:84fe8527c7fae52e290161d06bee8aa2c0a184cf - pristine_git_object: 48b8f07ff9491de97f6b5b10da60847c716d01b0 + last_write_checksum: sha1:003993d3a149ecf31ff086213b1b4358a60ca387 + pristine_git_object: 8d280bad1034750995b51cd792d97c649f040ad8 src/funcs/eventsSearch.ts: id: a36d2c218065 - last_write_checksum: sha1:d15dd2a992c9d6b8cfc73e81e50b8663e4db7dfd - pristine_git_object: 1d199d3bea1b2c56f83200cdda413dea49f8be05 + last_write_checksum: sha1:9f7694f337e5300119ef8cd20b60dc13a2b76924 + pristine_git_object: c469677e68523deb4d71671cf365ce6724c477b1 src/funcs/githubCheckAccess.ts: id: 407abf3d0536 - last_write_checksum: sha1:6b83054442632c1d2f054ae0712561b5676166be - pristine_git_object: 95649f616c15d72834b18d1d802e1b79bdcadaf9 + last_write_checksum: sha1:4a766417f778b660b379779dce3293374167e755 + pristine_git_object: 84133d0434f7e228a92f4985bb4c824aea87acf8 src/funcs/githubCheckPublishingPRs.ts: id: 070f56bbdd73 - last_write_checksum: sha1:2ef896c56b1672ef87a9ed8fcc249ac9a3f3ca87 - pristine_git_object: 264403c97ccc16a42de7abf0836f355639200039 + last_write_checksum: sha1:b44b489f8e717133432cc2eb2134071c8c83b68b + pristine_git_object: 2a148dfe12a466fc50ccd6ba0428e55b7fb251bc src/funcs/githubCheckPublishingSecrets.ts: id: f0f3772ca0f5 - last_write_checksum: sha1:0b8e3630180e518de87fa7886eb3b5685e102cae - pristine_git_object: 45f3baa3b256f56a340cfc1e5619f7bb7c45e428 + last_write_checksum: sha1:2df8f1fbaa8ec3e36816f3fb594d7123064ab6f1 + pristine_git_object: a83de2abbe789be422a38e1e14263cc2e280aeb7 src/funcs/githubConfigureCodeSamples.ts: id: 8c1a7f613bc4 - last_write_checksum: sha1:3c4ff8be5246205e9c4d0371d214393b220ddc79 - pristine_git_object: 8e4ff39d471a15267679c1e69bca0ad3c5bfd99f + last_write_checksum: sha1:50529ca31b6a736cb47acdea45eddafd8701d68a + pristine_git_object: d9d757fe87ef0d2251c416715ceea21ca53b2080 src/funcs/githubConfigureMintlifyRepo.ts: id: f104a9651dc2 - last_write_checksum: sha1:c857cfb8b573f739b0f8dd3ffd90f09066915615 - pristine_git_object: a0ea13b2e3275d88be3e8ca55ce405acc0dfc581 + last_write_checksum: sha1:5d930ff08cd9971ceecf6aedf6e69b0fe19099f2 + pristine_git_object: f2be475991308455c707bb7796290d3669851970 src/funcs/githubConfigureTarget.ts: id: a3f6f822b7fa - last_write_checksum: sha1:9ccf2f30790fc7e3b5a17b3ca08b98afd8e5a6be - pristine_git_object: 3a9033eb8191742feb19216a399125d3028a56e9 + last_write_checksum: sha1:75c3690251fe7aa8d7aa3458f1ac8d1566c73193 + pristine_git_object: 2bbb73a67a73b2f1e2d6ef77a112cda03a311600 src/funcs/githubGetAction.ts: id: 04b2e94ac452 - last_write_checksum: sha1:c22fbe1bb725604000828533f06869cb585581d5 - pristine_git_object: 5efc28ed3cada7eee2f6f7218f70ccbbc6d2e6dd + last_write_checksum: sha1:787a7861863f03fe192a9c7badd437691633d45b + pristine_git_object: 99a241282c7a8aeb525096b9ccf968a8b288cce5 src/funcs/githubGetSetup.ts: id: d979b8ea4d7f - last_write_checksum: sha1:fbaea4857766f06b1e2268cd025f96f8b91367b4 - pristine_git_object: 3618f545d010815a4dc70fe5c4aaf0f6eaa722f6 + last_write_checksum: sha1:9e1b52ec2640962b505b20be11283d14c916576c + pristine_git_object: 85620983ce2e23135273da58827fccf5aa0d9857 src/funcs/githubLinkGithub.ts: id: 2ea20c9c7b0a - last_write_checksum: sha1:fad5c451e7110bff0ac772ec1b7c1b1c985a5bb3 - pristine_git_object: 011a10df1bc12e383da08a6098557ff641369602 + last_write_checksum: sha1:572025d5ee4f7da35597e590151fe5093fe8bc37 + pristine_git_object: 298f89f9d1ce2a2fada10b776f24db885666337b src/funcs/githubStorePublishingSecrets.ts: id: 05ce355d54a0 - last_write_checksum: sha1:52609062c398a4da5e1cf970af99a8f60fa6ddf8 - pristine_git_object: dcdd91f3f65f20bacff0f61218385c9d8a4b4bae + last_write_checksum: sha1:bf4d6af1b525cb753d606ea7b6775d2ba9d856eb + pristine_git_object: 61b28bc4bcb02b7d166ead93517dec02b73b89b4 src/funcs/githubTriggerAction.ts: id: c09837e281c5 - last_write_checksum: sha1:21380b08df466c8700340345ddce5a8d63236ebe - pristine_git_object: 75cb793a4da6786d2d6a12537542a4971acc2c74 + last_write_checksum: sha1:de4756b164497001d4d2d9f9846d434a4e1b692f + pristine_git_object: f5edc13dbf6572ef65a66dc7ceb0449f3d72bf82 + src/funcs/organizationsActivateLanguage.ts: + id: cca55fc33527 + last_write_checksum: sha1:63fdc60ca784a2de293dd6a5bfca538c739369bf + pristine_git_object: 8e05dc5cd7633ec1a3be16389cbded885629ca92 + src/funcs/organizationsCancelSubscription.ts: + id: 766a51adf473 + last_write_checksum: sha1:d9773f1aafabb1de453891426f0f71080c6cfd7d + pristine_git_object: 1cab492081d6850b6d8380df2e74601a98cb0dbe src/funcs/organizationsCreate.ts: id: 5b526e14ee90 - last_write_checksum: sha1:6149fa939428a1845943f712657e423038e1ef36 - pristine_git_object: 4cd10c54b392852cc4d64f88119140fcbe583931 + last_write_checksum: sha1:7fbf6e534637238fd7e826dc37b365f070ba1986 + pristine_git_object: 6894e0cfe8d79968c63a8826453cd407ce7e540b src/funcs/organizationsCreateBillingAddOns.ts: id: b51bfdbe0001 - last_write_checksum: sha1:0f962ae8ca204adb604a112a5e59def426c98aa3 - pristine_git_object: 7291a666bd7ab0d726b2a0985db8f238f06c1590 + last_write_checksum: sha1:6414b1a6efb2572203e37985fe7abec4958aa22d + pristine_git_object: 5d48c3cebead7770d60a8a31d5f59032183cf990 src/funcs/organizationsCreateFreeTrial.ts: id: 713135826a25 - last_write_checksum: sha1:a9ebbc997186f2a042bf4c53fdb99cba78f8e740 - pristine_git_object: 398decf665843db2285827ba09902cab78024cb1 + last_write_checksum: sha1:97678c05626ee81de93cb007358495f16e97bf69 + pristine_git_object: 6e4c57e15fb51d0fc691d30f4f047e2ff700edbf + src/funcs/organizationsCreateLanguageCheckoutSession.ts: + id: 0917eb2e39dc + last_write_checksum: sha1:0fbcc37111908e1c855b6b230876ebf4fafd5803 + pristine_git_object: 388b2b7bc6c45c31f1cf0aeb2e546272914b0557 + src/funcs/organizationsDeactivateLanguage.ts: + id: 97d3734bcdc4 + last_write_checksum: sha1:e0f0d349834a64b6cb7297b4a50ceeb2913f1eb4 + pristine_git_object: 3e9afd67a4a0050861f9ec36fde1b4fc59191c49 src/funcs/organizationsDeleteBillingAddOn.ts: id: 75457b201c8e - last_write_checksum: sha1:91f54c558fa3888ee8e990d0327b58814428d5cb - pristine_git_object: a02bb411699c9279d4b1e7ea9f959c1e9cc99dda + last_write_checksum: sha1:71d301f4706ef2889f29e93289ebb23e85aed9d1 + pristine_git_object: 5dc1cfdd8b202ce03103a3d5a00154f120f3987f src/funcs/organizationsGet.ts: id: e6645a077f2f - last_write_checksum: sha1:ae29cab0cab1c62c6553b69fc2fa0462bf686d23 - pristine_git_object: 83b8c94b7e7b26285f62d3cb8adcb08c16148b56 + last_write_checksum: sha1:3a631b2c9d0dba8702b7726454b61cb5f8058c30 + pristine_git_object: 9ebd7b3631a43c38413d69025aa3ccdd4ee8e604 src/funcs/organizationsGetAll.ts: id: b6721c059db4 - last_write_checksum: sha1:57f819cb0af403c777c1e93d1b2715efe67a38c2 - pristine_git_object: e4761da25cbb034077f52a3debd7bcb9ea60c473 + last_write_checksum: sha1:c03e194f282cf24134d0fc4eee06b45b521a1b3b + pristine_git_object: 7db61dc8e26e39ad05fc983362ae6ef42b11a393 src/funcs/organizationsGetBillingAddOns.ts: id: 7d70f39f50a5 - last_write_checksum: sha1:e13cfa0072c1c0821cadc929cae62d3ee472d440 - pristine_git_object: d90fdf5b4adf6ce0eb618347b91f19a0087fd647 + last_write_checksum: sha1:a71659fc86acba8956ab446724f7c25b6af73737 + pristine_git_object: 8ad6b878379812f27d716cbdb43d3c09ed1fa357 + src/funcs/organizationsGetBillingEmail.ts: + id: 42808844936d + last_write_checksum: sha1:a2efaff57d01dbf9ebab38fcca8700f81773a254 + pristine_git_object: 7f0013dac15959d81d38c9b36267dc353afc153c src/funcs/organizationsGetBillingOperations.ts: id: 41396657f69e - last_write_checksum: sha1:24da2a73e672835f82351fe7105f8aa10a3decf8 - pristine_git_object: d810790bd37d0b5d6fefcfe59d425da746c98733 + last_write_checksum: sha1:0b2b0ef4ebdfc66fac5ff431a7fb15d839b3221f + pristine_git_object: b8ed9524d33aefa5d776742310cb031f2e709183 + src/funcs/organizationsGetBusinessTierPrices.ts: + id: 3f7b8f9af66b + last_write_checksum: sha1:debfc9d7706a2d201c85b8506138682c04895058 + pristine_git_object: 07ed0dec2fdb032137e7e042799e7dc9b1ed906b + src/funcs/organizationsGetLanguages.ts: + id: 207c9168962e + last_write_checksum: sha1:d8351e63252754ad477b1be42f479a69284ecf52 + pristine_git_object: d2f427558195f280bb82dee83fb63621f628d756 + src/funcs/organizationsGetSubscription.ts: + id: 0ec1ec1d3e43 + last_write_checksum: sha1:89fc85dad3d624571e48245cd12ebe4de85f726c + pristine_git_object: cf25000572cf8aa5e4eb0c0d6237b354951d2d62 + src/funcs/organizationsGetTrialTargets.ts: + id: 4e4b9a1ee76f + last_write_checksum: sha1:3cdea2bfd523152837cfeb99520dd9f61e39e91d + pristine_git_object: 75ba7bb75d8966055d98ecdfcd7fdf3c434f875d src/funcs/organizationsGetUsage.ts: id: 8b40de82d9e1 - last_write_checksum: sha1:9efda6bd8d22619aa8b3e11156b5584315b66185 - pristine_git_object: 14a73c3869ef6000d2e32f1fb3082dedbfb8792e + last_write_checksum: sha1:0dee3fbf1ad95f24b433e2568477778e173ff22a + pristine_git_object: da6d86722241cfd638f999bb378cf4d1f73a92b6 + src/funcs/organizationsHandleCheckoutCallback.ts: + id: 90fd0bec6fd1 + last_write_checksum: sha1:907d5d5adc95cbfc17e078f995e6a3e835f3639a + pristine_git_object: f826dd9f1056d5da78cd64886ae3dcaead1d388b + src/funcs/organizationsRevertSubscriptionCancellation.ts: + id: fbb7360f2332 + last_write_checksum: sha1:45de4f0d71bbf5513f831d58f904a2534eab11c2 + pristine_git_object: 042ee691c8020dabed6de9784768829d00a8cda1 + src/funcs/organizationsUpsertBillingEmail.ts: + id: 1566e03bcd2c + last_write_checksum: sha1:457062aa630eae46b6b91b33c74793afad1374e0 + pristine_git_object: d9539a500fcfbdffca93458c59a2760cbdc8acfd src/funcs/publishingTokensCreate.ts: id: e97980305e52 - last_write_checksum: sha1:8c49fb96002a42e1b572d482a5f7a24fbf82e209 - pristine_git_object: e441329aaf394680a72e7d126b59f7238608e622 + last_write_checksum: sha1:d525f0a5d9307fbc769008d373c867378726f161 + pristine_git_object: 327d74e4923501bcd6ecff98b3c6cdae1b80aca0 src/funcs/publishingTokensDelete.ts: id: 5b3b055f86ac - last_write_checksum: sha1:b419cccffed6adbc5bcc4d3fe4db3ebafee14813 - pristine_git_object: 17c0f02e2272808dbc80d2471c9cc4c0c8fc4170 + last_write_checksum: sha1:1642a1c8b6c56ff32914ff5218374495594610da + pristine_git_object: 98de5162d6aaf8b80982d9d84eb067e187d1e155 src/funcs/publishingTokensGet.ts: id: 8890efd5cbe0 - last_write_checksum: sha1:cdc796cbd5726f824395b2beb0a9bd1ee4bb27de - pristine_git_object: d0b908e93ff99c53bf753b61b2259d746746d533 + last_write_checksum: sha1:57bd51393bae378fed3a87708fee6768848d4105 + pristine_git_object: 3b7d29bff3c08680338c6257bf95ab07b4657306 src/funcs/publishingTokensList.ts: id: 0327a3851121 - last_write_checksum: sha1:f88b5f277d3bd7763c995170e4036049c0ae08be - pristine_git_object: 16fadc067802975dd9030db62ffda816bfdffaf6 + last_write_checksum: sha1:f287088c33195f9e31616b12b1f26be934c2d0ef + pristine_git_object: 4de52aeffa932e50003b760327fc1bdbf667dddb src/funcs/publishingTokensResolveMetadata.ts: id: 8ccd95c240a0 - last_write_checksum: sha1:03736a6f37358fb84ae480a296bdc80dde22ed3a - pristine_git_object: 3c9ce956ed797f7f75344061d95323632fb63032 + last_write_checksum: sha1:faeb57760480c2508a531e085de3109736c5326c + pristine_git_object: 7bf6131c32f29aa1262eb969d74236b7d49aa2c3 src/funcs/publishingTokensResolveTarget.ts: id: 5c2b1dd964ab - last_write_checksum: sha1:65289d45c7985eef141d2971a166eb246ad7f1d9 - pristine_git_object: 82e613b43ae503fdef20b2de63d95a7c48ca153c + last_write_checksum: sha1:7a19a1a82dbb6ac3d9b04328bb664a10833d042e + pristine_git_object: 12e4da81a94d9ab5517296d0d75cd3b77c4bd37a src/funcs/publishingTokensUpdate.ts: id: 5483bf682ee9 - last_write_checksum: sha1:ce05e2b46666724fab7ca8b3b86ad6420c0dbc50 - pristine_git_object: 8177ff1a4213d68b60704e2526716d0a58816300 + last_write_checksum: sha1:ce0f37d3df9b650efb8433e6b27e97566fff6d41 + pristine_git_object: 40f4fffbc3bd00de43f8f8a375272a0d890947a0 src/funcs/reportsGetChangesReportSignedUrl.ts: id: 4fa52ec1cc40 - last_write_checksum: sha1:966964075ccac0bc085498a55d02a0ca47c445a2 - pristine_git_object: 62e1b59234f3c3863cbccea3465d4bd6a55e5767 + last_write_checksum: sha1:b304245abb7d598a8ed85022b5180f8f69179ca7 + pristine_git_object: da3395941719460852c9157eaff2ca6f1f09e467 src/funcs/reportsGetLintingReportSignedUrl.ts: id: 2382e88b0c50 - last_write_checksum: sha1:52a73a98f7baedfba161a48b9fb7489ab58984e4 - pristine_git_object: bfd25ce89ecd19e194dcaab3d9244fa3bfcfa4fd + last_write_checksum: sha1:53687bd1dfd15a76000692cf04d5b05701b22c2b + pristine_git_object: 68f1cb8787a42309340104a03d189ff43be8b5eb src/funcs/reportsUploadReport.ts: id: 88a07ec4ef3c - last_write_checksum: sha1:eff3f7f1289f712c56af0c43b92ed26634ce6d99 - pristine_git_object: 7ea11ba18325074a72493c7325dbdf2137d6ed8c + last_write_checksum: sha1:586e01679f9baeb2a77a831e817a21b8d5d98920 + pristine_git_object: c85eb9363e7fb81d8ac86a1af8a0a0584f0de401 src/funcs/schemaStoreCreateSchemaStoreItem.ts: id: d8e01d1b0320 - last_write_checksum: sha1:eba6c04a06b785613d0d1761673809e966b5ff10 - pristine_git_object: 4d0418c962e98a5e3c64b207afa7c13a6aa796d7 + last_write_checksum: sha1:150d8bad852271876c5cbc637758ea4ea7781215 + pristine_git_object: 3a4162acaf867b7157ddc910ec61690f644a295e src/funcs/shortURLsCreate.ts: id: 1ab3d4ae1de0 - last_write_checksum: sha1:0343c13d87ff8af54c9c1e2ab566ab3bf0c6c016 - pristine_git_object: d59cfd2d686fc4c02ff470932673f511404a67cb + last_write_checksum: sha1:4632a83153716d9dea614ec056dd00108138d828 + pristine_git_object: 202f7fa52ad51718efce6b64f41db8edcd2c3426 src/funcs/subscriptionsActivateSubscriptionNamespace.ts: id: a1c5f9ed7303 - last_write_checksum: sha1:124c863ef4804efd7679d4b7953e33e00490ee9e - pristine_git_object: c9b5d1384683c7035a763094230dbeb1f100eb11 + last_write_checksum: sha1:3fd9452d1e46c6028dafe223a4f2acb67ad6053a + pristine_git_object: 8adabee9e5efb893897fd8056c2c7ff3e7400cc1 src/funcs/subscriptionsIgnoreSubscriptionNamespace.ts: id: 9ac242fcfb8b - last_write_checksum: sha1:bf5e12a81e538a03e64820a4aa9e7defc2a49b5a - pristine_git_object: 2a667c1cb3ddf7a0b2a05826a7701c4258196dc4 + last_write_checksum: sha1:d0604af12b205913aba576343098d8c032ba6ee1 + pristine_git_object: 4a24a6ab5c27c1a3b607b8e72f6057b6b072dfb1 src/funcs/suggestSuggest.ts: id: f08de8d97c71 - last_write_checksum: sha1:42288cc4f6d8e7749ca67f5d949f5680b1eca983 - pristine_git_object: cea52d58f27a03b9b8a99498ee5ad327cf33dd31 + last_write_checksum: sha1:ba7148be43a7f97eefdd9e50c20301e10a047b06 + pristine_git_object: 62880ecca3066bfc42e4682795f94138b3cd6d7a src/funcs/suggestSuggestItems.ts: id: 3d0a55a07452 - last_write_checksum: sha1:ac97e353058b545a9a3f857942f5af789e8fdcbd - pristine_git_object: de04fd67765d11b241d52cd20f94cda4eaed407a + last_write_checksum: sha1:09b68635aa5e0402c2e71b2cc90b966488950571 + pristine_git_object: 02c337e55863b4ab467c9e2445ff3a713a10391f src/funcs/suggestSuggestOpenAPI.ts: id: fd8aa5c1d3c5 - last_write_checksum: sha1:c53ececcdb5a7dde94dd40e1eaa60230e919f3ef - pristine_git_object: 96e6edb38aa179837ed756e4e7392de12d9350b0 + last_write_checksum: sha1:38386d85d3b4e627a205f9bdfab97e38fc0e3a96 + pristine_git_object: 1ed90f4eb214a59dede5550153f00d4e39c88505 src/funcs/suggestSuggestOpenAPIRegistry.ts: id: af1084ef9d67 - last_write_checksum: sha1:ad9efc937ffffa58d68b5f58f53b2b050a379d11 - pristine_git_object: 6f69a11e33ba41e5d0f37b5bb20b73f2f29a4eff + last_write_checksum: sha1:3ef514c7fefc34de5a744e865eceee75a3a3fa3f + pristine_git_object: ff13a16336f53f9da5779e9bf9b016e617c3e246 + src/funcs/webhooksHandleStripeWebhook.ts: + id: a379ec66bcb4 + last_write_checksum: sha1:b5f75956f6f0a1e467103f942b2c58dee7e98e80 + pristine_git_object: 06fc7da51a3ac91aa353d420e1d02aa31ed1ada2 src/funcs/workspacesCreate.ts: id: 151342b46246 - last_write_checksum: sha1:038625a04c3b4b55067b38f0c2b3afb567e6512f - pristine_git_object: b333711616a1122728d1c6b168932cc3ea044a11 + last_write_checksum: sha1:05ba027f5e28ad9ed23c3678f8536b14cab132a6 + pristine_git_object: ab130d213d35bacaf5bfde773ea576e443ba4f90 src/funcs/workspacesCreateToken.ts: id: 92c63a331d0b - last_write_checksum: sha1:cab06803a3977361fc2a3ed60dffb82efdfe4edc - pristine_git_object: 611305b7290bec5af5456257ac332ed5f1523340 + last_write_checksum: sha1:b6e930923458f61693557e0d458bee7624590715 + pristine_git_object: 7a6ceb9556a528a3987ae3ea44b2689d8da863b5 src/funcs/workspacesDeleteToken.ts: id: 74626812926e - last_write_checksum: sha1:534af3d7b4b4737204ac9932800a60df27320a2d - pristine_git_object: 193250e2bddf4ef40be43fce9ad2a45d206b55a6 + last_write_checksum: sha1:23c7f7ad13cc60cf1e747d01e5da5b6cd4574e2c + pristine_git_object: 598193d50d16b1f0dea5d43dfb7a1466063630b0 src/funcs/workspacesGet.ts: id: f361d34e5bff - last_write_checksum: sha1:5fb6386249d9d1941fbb04143d16bb1474832df4 - pristine_git_object: 04f5a9bcc6e629db9a2507698c2fdd35e7ee5ec2 + last_write_checksum: sha1:27bd15ad272c5e6dac048793d81c2ada15507d47 + pristine_git_object: 1b1a84a2c9db42351894e20981839448fdbd9f57 src/funcs/workspacesGetAll.ts: id: 6e2b5fd4c6d3 - last_write_checksum: sha1:91e5b6bf5b3807ee6cb0c80a522acf4b95b971c2 - pristine_git_object: 8a721264a9eefd2f443e8018b5365cbc0bfdd431 + last_write_checksum: sha1:78d83ecf451aebcfda943aa9358dfaa94d3b8b05 + pristine_git_object: bd8cccb3d04f986a59affe993ce6db62b5942836 src/funcs/workspacesGetByID.ts: id: 10cf357e3c7b - last_write_checksum: sha1:b298faa0df3d530542f3cbe42d4d7ad2bcbb96fc - pristine_git_object: a96cf07fde39029a244681e34fbb69091fdafeb5 + last_write_checksum: sha1:2fc0ba3bef486c5b6473bcfc212dfc14aadd3181 + pristine_git_object: 6563c104a035e0ecf6e407b9d4f9d9efd1089de2 src/funcs/workspacesGetFeatureFlags.ts: id: c5c5e0c7312c - last_write_checksum: sha1:d8a5b872ef459b3f44edbda0f7d62c189085d3a6 - pristine_git_object: dd4f8b866452798d17ed9d935f18698b958ddb4d + last_write_checksum: sha1:c426d8809355b5c8781ab7f0fbf777fe6b609c01 + pristine_git_object: 143db07585ec2c1166d10ca1e0f0fa53cc349ad1 src/funcs/workspacesGetSettings.ts: id: f44231b39ab6 - last_write_checksum: sha1:4dba5a116db651341941e23b3f7647399d10d421 - pristine_git_object: 5d42259644f17a134a0251add20cfb37a52306bb + last_write_checksum: sha1:a880b58bde5ce4e360a6d5219c4657112b6a418c + pristine_git_object: 4cb2f232c2e26d8b3e2329362b0d9ddec9eeedaf src/funcs/workspacesGetTeam.ts: id: 1d6ba919e750 - last_write_checksum: sha1:a1cd5a1c49df2b70de6adf0e70d4bca5ee8600cd - pristine_git_object: 346c6fe3762821a8fe91a0580a04cf53b9a9bb50 + last_write_checksum: sha1:7c816f15fea739812b7d39fa0fa777d2dc63ec04 + pristine_git_object: 0e9e7b6e884f8ea7f0ce49c31496e2d3ba2beee2 src/funcs/workspacesGetTokens.ts: id: 15418bea9d15 - last_write_checksum: sha1:253b491229116c2f863710e14fed65bc3dde1c7d - pristine_git_object: 49f4b1b806e729e73712d56cc971b54d007fe491 + last_write_checksum: sha1:01330c733a13c42fcc01a9a0b5d1d5d88b237806 + pristine_git_object: 3eaa0917dac4a66e1b3a66b9599683d99bb56bae src/funcs/workspacesGrantAccess.ts: id: 443dc20945e7 - last_write_checksum: sha1:d45d109dbcb75d31a17156151a4c65892bbc556f - pristine_git_object: f96b6aecdb868d4c385a0c517823a09455869bea + last_write_checksum: sha1:58f99416d6d2fd7fb266fa688c437653ef962317 + pristine_git_object: dd52c27ea5b4c531f3037a2678c7d3935d9455c6 src/funcs/workspacesRevokeAccess.ts: id: 7a7f12fedde1 - last_write_checksum: sha1:08af0602615f286adb64e25ad6eb9072ce99c040 - pristine_git_object: c31df085081a9a41e8dd7256cbb666421acce53d + last_write_checksum: sha1:716ec05d1f1ce0b7720c540a0eee4268f780022c + pristine_git_object: 26bf9b5fa78beae21653287bc590846788ba9a25 src/funcs/workspacesSetFeatureFlags.ts: id: 673b1d4ab77c - last_write_checksum: sha1:d68366cb70579de64dd9162fe8e5bc7c1b0ab25e - pristine_git_object: f4a78dd97073c543fd75131c4a99fe879d5a4fe5 + last_write_checksum: sha1:d5ce1c2be04f1ed088b874500cc979bf559cf781 + pristine_git_object: 6cfbbe9abd609696eebe036c2ff7d716eeffefee src/funcs/workspacesUpdate.ts: id: f0404418dd03 - last_write_checksum: sha1:468643e3963fb2cdde430e9f53c6ec4930ef3036 - pristine_git_object: 57eb3a32b88bcfdfacdbe986eb88b4de9dbe3b63 + last_write_checksum: sha1:49cce60e6251a2bb5eeb25035fe3ea46668fad18 + pristine_git_object: 6b1cb7ab3f808c974817c057b8dd8f981a2e63fe src/funcs/workspacesUpdateSettings.ts: id: cf0e3e8741d1 - last_write_checksum: sha1:24d98d705df4b162eba779dcc5bdf208a12e99ce - pristine_git_object: c8f354fea60be5c25083e25a85321c04dab554cb + last_write_checksum: sha1:5e07568565af55683ff5d0ec33e9d4dbbb90414b + pristine_git_object: 5f7727175239acd90e5a9a4f63b212d6750f6f1f src/hooks/hooks.ts: id: a2463fc6f69b last_write_checksum: sha1:9a569ea8f3177ddcdfe6cd903feaf5c2d2c36a9a @@ -1204,8 +1650,8 @@ trackedFiles: pristine_git_object: f60ec7acd76141a71d78008c5a362eb0236d8335 src/hooks/types.ts: id: 2a02d86ec24f - last_write_checksum: sha1:29372122898cc523fa47576f3f6608a28ec6080e - pristine_git_object: 8bfe4fe8137138decea7af0a5ed791bf01201789 + last_write_checksum: sha1:da18f72efc4b8bef7912bc70fc6166b4be2f8a95 + pristine_git_object: 5ffda46a9def49d060911f29656c75d88095bcdd src/index.ts: id: c5fb850250c7 last_write_checksum: sha1:35c9cde3ae14b18b3f893a1afe8b6c44f8760f24 @@ -1216,60 +1662,52 @@ trackedFiles: pristine_git_object: 0aebd8b0a4867e35cb3348fc52921c3c0b4725b7 src/lib/config.ts: id: 320761608fb3 - last_write_checksum: sha1:ac475c9f834d35aab2ce963306e15cf46e6c3a50 - pristine_git_object: f9fc5d93db54de3667282d2a0a196e5fbe6a4f75 - src/lib/dlv.ts: - id: b1988214835a - last_write_checksum: sha1:1dd3e3fbb4550c4bf31f5ef997faff355d6f3250 - pristine_git_object: e81091f5e536f82739f71379b1fddc2d147c49e2 + last_write_checksum: sha1:e0589d9aa057f4ab8cb3884382f3fb28aca72e8d + pristine_git_object: eb4c7dc9534cef86fe5829227f3d0735def34ae7 src/lib/encodings.ts: id: 3bd8ead98afd - last_write_checksum: sha1:d20c131976ab8ac68b22bdde2b7ed84b5b873922 - pristine_git_object: 31cd3733907afbee3641b9ab680ed417247a7d33 + last_write_checksum: sha1:50d9b187dcfc3cca8d3bbd9fe074f865d715d2b0 + pristine_git_object: dcab511b4b4d98f1e4b7dd94866e2b41c478b7f0 src/lib/files.ts: id: e5efa54fcb95 - last_write_checksum: sha1:d0f325f445b8d22e7d73baf052c585ec2dd24841 - pristine_git_object: 0344cd046d033f9e8a55de02f7935c5cec5dc30b + last_write_checksum: sha1:795c14026405d547bfc47012f7ad9666e530fa7f + pristine_git_object: 6ca6b37d35a12448da176ee2517cc036db12c81c src/lib/http.ts: id: 63a80782d37e last_write_checksum: sha1:797cbf16d3c7c4d62d3ba0eedb08617524938457 pristine_git_object: 13cf1fd7894a89f727b8d2db2ad24313a94f68c7 - src/lib/is-plain-object.ts: - id: b9862591096a - last_write_checksum: sha1:df687f25a9590b6fd95d39df41a652ae3fd4e517 - pristine_git_object: 61070d3d7c7e5e95b1ed7e7ea21869eb0767db77 src/lib/logger.ts: id: 7ee7741a02bf last_write_checksum: sha1:0ec9d3a2a34c362746b767e4f9a746c055d57a7b pristine_git_object: d181f2937d4128afbe9b0327e0f81d1fa9c877b7 src/lib/matchers.ts: id: d54b2253b719 - last_write_checksum: sha1:80ff3dfb638ef4b45a55dcb63de0c0e834016829 - pristine_git_object: 41b6095f00172c59b69e9862644563edca5e2fc6 + last_write_checksum: sha1:5925cc961da3dbb353edccc6597fd080a9992486 + pristine_git_object: ffdb0e03aea66f0aff1354755a5f7944f1b04ad8 src/lib/primitives.ts: id: 74859f750b28 - last_write_checksum: sha1:987869fc54790b9c22e9182099103d6aa7c67016 - pristine_git_object: d21f1dc49affa4e6d324bdd60811b470fdfa7eb6 + last_write_checksum: sha1:fe3abb7d6b61596e346873519bcec9b2eaa61467 + pristine_git_object: 8ce65db0f7c0d6b68f5edc3ebf518121e284e954 src/lib/retries.ts: id: b24a69d15639 - last_write_checksum: sha1:f3da74dffcbe2756c69393f8600205aa1dc06e68 - pristine_git_object: e3ce9aba72150fc3c18f3105d39b21aba809377b + last_write_checksum: sha1:42c8f6cc4c875be236230a8c760f4f32d8c1ab68 + pristine_git_object: 21a647e1e9ae64817fcd63b5dd6bb5a51b63d225 src/lib/schemas.ts: id: deb4b531fae1 last_write_checksum: sha1:b8517a14d3043f488f44e3b10ddd6cabdd22242f pristine_git_object: dc2510e330727b01894e4d3954ea92a62c962e5d src/lib/sdks.ts: id: 8a6d91f1218d - last_write_checksum: sha1:18da4753f916af929ae4a2445b13b09c23e1cc6f - pristine_git_object: 126029ae98e4c0ceb16ccfa40f8dd82890dd3193 + last_write_checksum: sha1:a2d6c1cb4d9ebc490a53aeb1887156e670fb3d1d + pristine_git_object: 6c0727f0e34d4c400f64b3eeddf6de539480d533 src/lib/security.ts: id: 0502afa7922e - last_write_checksum: sha1:378a23a9efb1ccee0b592d8d6321f2b5c311d8e0 - pristine_git_object: cf6bf4f1a5f5c609201d02cf4fd5bccf7a51ef90 + last_write_checksum: sha1:323c99545570ba3a87ce0942d1622c0f9ab86402 + pristine_git_object: 28d37df1c82c6ac397b64075b775f8a98eacbacb src/lib/url.ts: id: b0057e24ed76 - last_write_checksum: sha1:d124050c7e755c0cce233b9e029afb584ff65201 - pristine_git_object: f3a8de6c021de59c991707946cd294596cae954d + last_write_checksum: sha1:3bceadd74bf0b31adf13eb06b7531077c3e07d65 + pristine_git_object: 79e7ce660b3732053e3adcbb5a4cdeb51496e8aa src/mcp-server/build.mts: id: f7a2ed2de4d7 last_write_checksum: sha1:1a7a5dc9ace5a5d707bd8d2339f76719e525e7eb @@ -1280,12 +1718,12 @@ trackedFiles: pristine_git_object: b878d8de9f2a0275c3cdbfdcaed48a31092e558a src/mcp-server/cli/start/command.ts: id: b3e53408ccb4 - last_write_checksum: sha1:21adb1e74aa25cffab65be8c0aa9285f0005f365 - pristine_git_object: 4ca9706a5df9a29df1542cc51443d994ccb59a98 + last_write_checksum: sha1:c6a2fbcdc6f803e75112eb97872c9148a54dda4a + pristine_git_object: 86df9c553d40469eb6571cd62c95877a7e2675ac src/mcp-server/cli/start/impl.ts: id: 37494f674015 - last_write_checksum: sha1:ca96f4cc199a35aa69904a6a2662f66e375cfa4e - pristine_git_object: 42cc0b299d87909c0334438a3b97cef4cb82d3e2 + last_write_checksum: sha1:d50a0009d88a03727afab43121c6f2cd2564e367 + pristine_git_object: 906c1618f48e67c6131fc0451508d6b900d00b52 src/mcp-server/console-logger.ts: id: 57aff4ff2e15 last_write_checksum: sha1:66e945860c8318f2a6bb9604a7720a979dacce4b @@ -1296,8 +1734,8 @@ trackedFiles: pristine_git_object: 0955a573c2ce989d63c737410ab8cc28706d9f74 src/mcp-server/mcp-server.ts: id: aabbc4ab07c1 - last_write_checksum: sha1:3e5122d192337d777023a6d3affcf790c9b6c2c9 - pristine_git_object: e045f09adc7b4135b87f2ff6d64eb8113664afa7 + last_write_checksum: sha1:31c937cb55b9e2e49a3139e27f041a46592a5f64 + pristine_git_object: 04a0c696cc18089b27ec93720ef9daa9b5b0cb5d src/mcp-server/prompts.ts: id: 26f3d73cbf31 last_write_checksum: sha1:4eeb8c1d57b989010e0f6638391336a812ef69d3 @@ -1312,12 +1750,12 @@ trackedFiles: pristine_git_object: c25696d4c4f70e081fa5d87ad6891874c509a577 src/mcp-server/server.ts: id: 2784dd48e82a - last_write_checksum: sha1:9c7063389dbc640b0e5de11e7d7213c79432d97e - pristine_git_object: 2e9f67c35ec6a528fd177c14301873144efabeb5 + last_write_checksum: sha1:3e1f02a5ae3e49acc5e4df45b68a2026a5b7f15a + pristine_git_object: 88d478734496833cd6a4a8e5130cf4fbf96a0c2b src/mcp-server/shared.ts: id: 074e80d4be1e - last_write_checksum: sha1:56c73d4429691516e35541825e759a0285747a2b - pristine_git_object: 3e94144d13f0707bc300183ebb4325b367c297dd + last_write_checksum: sha1:d89576cea2bef3856b7fc3e65b868875528be042 + pristine_git_object: bef212f002cac28cb23333a5f291a4ee5ba08521 src/mcp-server/tools.ts: id: 654d5d1f2062 last_write_checksum: sha1:29f6f3c154e11ecd9a08be1e47954fb1cca59cfa @@ -1366,190 +1804,14 @@ trackedFiles: id: 47c91632349a last_write_checksum: sha1:5365187ccceb3faf1f4a95fe1c691d71142f101d pristine_git_object: f495e1c5c2c2747c4ba8d9786855750080af4428 - src/mcp-server/tools/authGetAccess.ts: - id: 3f10baa0395c - last_write_checksum: sha1:299e916277ef5365a1cbdedba2b2487b878a8d08 - pristine_git_object: 07623ccadfd398a899f2c6cae24274b392c93a8c src/mcp-server/tools/authGetAccessToken.ts: id: 0190d086c1f2 last_write_checksum: sha1:7da4d95df5b1148c69c065704b38de23b48c8118 pristine_git_object: 0114d5953d75bf2c21f932e99fcf0a1001d49822 - src/mcp-server/tools/authGetUser.ts: - id: c9d321ceaf70 - last_write_checksum: sha1:43ece5b2e3e7ce258a1240de3d8fbde9451ff7d2 - pristine_git_object: 7f1205dd3dd163393fcaa64d24ab1a0764f61466 - src/mcp-server/tools/authValidateApiKey.ts: - id: dfb73b6a45ec - last_write_checksum: sha1:f9539872c2c74f09327f143528a452f8442dd66a - pristine_git_object: 479fc5af0b9b38e4d506738e2ad5ad7be4b43ae9 - src/mcp-server/tools/codeSamplesGenerateCodeSamplePreview.ts: - id: fcaa5bc76178 - last_write_checksum: sha1:95270e0f2cf5e343a9ae52e5ef64936f218bbf1e - pristine_git_object: 77dda3ed396ab486f4d0e5f9c436a296b6e7bac2 - src/mcp-server/tools/codeSamplesGenerateCodeSamplePreviewAsync.ts: - id: "155259865194" - last_write_checksum: sha1:786760e73561d4e426f674fd088de4ca1dca24d8 - pristine_git_object: 5d5c5f419774551e78e116d693de62322ec9bea2 - src/mcp-server/tools/codeSamplesGet.ts: - id: 7e8be46b2d7f - last_write_checksum: sha1:0ea79a0d57496628d92c23cc080581cbc341dbd3 - pristine_git_object: 9167de7ad909cbd06b158f68a4502a15465c5482 - src/mcp-server/tools/codeSamplesGetCodeSamplePreviewAsync.ts: - id: 16b570d57b5e - last_write_checksum: sha1:aa9eaef0ddc6e18c30cfdc555c38075c958cbb53 - pristine_git_object: ddde7d03cdc2ec8831acd73e42fab307cda48509 - src/mcp-server/tools/eventsGetEventsByTarget.ts: - id: 463585ac65cd - last_write_checksum: sha1:926dbfeeb54dc0cc4d1c517df9aa5ef12ca648c5 - pristine_git_object: c04bcc447ca5f0bb26fd80b150609db79a81839a - src/mcp-server/tools/eventsGetTargets.ts: - id: 451106bc750a - last_write_checksum: sha1:7c22dcf31b2d5a13bca034a1c2debc4472428edb - pristine_git_object: e4a1598258e4bf52b28eee7a0ae5dbb0f4c7abd9 - src/mcp-server/tools/eventsGetTargetsDeprecated.ts: - id: fb4deb347a21 - last_write_checksum: sha1:7c9fc5d814a5197d268da454bc17dad7680a975c - pristine_git_object: 4455a89ecebfe40db5b19453da2a85062e5d80c4 - src/mcp-server/tools/eventsGetTargetsSummary.ts: - id: 340911f63d28 - last_write_checksum: sha1:879d1b07b177ba4e5ae107c6c1856b0b90af1aa4 - pristine_git_object: f6d764cec7f43c93c08abf74e8cabf0f1a4758b1 - src/mcp-server/tools/eventsPost.ts: - id: 9ebad244f329 - last_write_checksum: sha1:3f89f79bca0d034416e95c749ed4caf2d3b0ba2f - pristine_git_object: c902b8bdcb9e421726cb5392ea1519e9400ddfd3 - src/mcp-server/tools/eventsSearch.ts: - id: 0c9178e6439e - last_write_checksum: sha1:b58c02fe989a1ce59b20ab8519dcf4be0e3a54a4 - pristine_git_object: f33a4efee216269c03e042ab55e12a882a53cd6c - src/mcp-server/tools/githubCheckAccess.ts: - id: 6725e649a211 - last_write_checksum: sha1:ae26a7a651fc1b691a427a2465ad678322f8aaa3 - pristine_git_object: f0b7c29156bc27e0210866799603216945387b98 - src/mcp-server/tools/githubCheckPublishingPRs.ts: - id: 2764e5db1850 - last_write_checksum: sha1:60dde940a805672ae98a9d7b0fed134893ca036d - pristine_git_object: 788f5f7488f8ad26cb571c351042467a58b3a482 - src/mcp-server/tools/githubCheckPublishingSecrets.ts: - id: f4bed62ea496 - last_write_checksum: sha1:a89d92be2844a5534b274ef7aafb905cf20bf8b5 - pristine_git_object: 406db7cff088d401c46b55218a995fd4a3a46300 - src/mcp-server/tools/githubConfigureCodeSamples.ts: - id: 32cf9452b522 - last_write_checksum: sha1:7bb0800094135dbd5e26e6341cc66d97bd7e6e11 - pristine_git_object: cc8a5021446ed197ae766cf5c78eb54bd18ae6d9 - src/mcp-server/tools/githubConfigureMintlifyRepo.ts: - id: 9b4eac0df2b6 - last_write_checksum: sha1:c09e90d8857a838e3c24c6d57605f7a6febf3c7a - pristine_git_object: 4ffab72c6d288680944bf2607099d82f4e60a5c7 - src/mcp-server/tools/githubConfigureTarget.ts: - id: 66c64c804fd4 - last_write_checksum: sha1:2d381f3c47172acdb8f09161a1a2b6ad1832114c - pristine_git_object: d2068579a693ab822524d446b968972477c9a231 - src/mcp-server/tools/githubGetAction.ts: - id: 16601222418a - last_write_checksum: sha1:250caf6009512360da5185db05df4afa60af2a81 - pristine_git_object: bca5d81bc1f129947b654be53a51291ad09e5b2d - src/mcp-server/tools/githubGetSetup.ts: - id: 86919b02b029 - last_write_checksum: sha1:c6b7a2e680906004f69b517f2d69744d3520114a - pristine_git_object: 0b84ed310e6b0abef33180c81356fbc9e23b5113 - src/mcp-server/tools/githubLinkGithub.ts: - id: 8c8a0c599fb8 - last_write_checksum: sha1:10e3c8d017461724bc007ca03d3f666327015a8e - pristine_git_object: 016e08b5066cdf16d0199c3c2b96947a785d0d06 - src/mcp-server/tools/githubStorePublishingSecrets.ts: - id: 9e1a4cf0a721 - last_write_checksum: sha1:50a91b8d612ccfc00c11cae2f3fd4dc375c42ce5 - pristine_git_object: 4ed20eed1352c0f7744b9d1e727e70d4f96213ea - src/mcp-server/tools/githubTriggerAction.ts: - id: af557b455e6d - last_write_checksum: sha1:c0ba4cf4b731705478db0b690c4e89540c5ca988 - pristine_git_object: 6652a7203a284d7f2960cbb4fe89351d4b24bc27 - src/mcp-server/tools/organizationsCreate.ts: - id: 9317147a088b - last_write_checksum: sha1:ff41a8461169151948835f3915271040b8bcc00d - pristine_git_object: b3e0163dd993b6bf1bfe220f2d695185df3c6854 - src/mcp-server/tools/organizationsCreateBillingAddOns.ts: - id: 8a87de091f0b - last_write_checksum: sha1:17381c96178f3e51a9f86be0da887b53bbd3f4fd - pristine_git_object: 12919e24f20a5f509e86f758e6cfac963e6beb15 - src/mcp-server/tools/organizationsCreateFreeTrial.ts: - id: 86124c8dfdb8 - last_write_checksum: sha1:0decbeef0ddb74e859f7d47ea086a3953f02debe - pristine_git_object: 7a92d1a380cb773ae79b38448c4d6763dd7a2d6a - src/mcp-server/tools/organizationsDeleteBillingAddOn.ts: - id: 7ab45eb3aa4a - last_write_checksum: sha1:6b9ca4258816637ba571941c490eed8c3a45ef1f - pristine_git_object: bdcc7dc43f2b702d057de36168b70628a36cc33f - src/mcp-server/tools/organizationsGet.ts: - id: 2d748a30a772 - last_write_checksum: sha1:4c63ca1d8b8ca8a21249928da46e6bf6947c071c - pristine_git_object: e4d466a6534cf76b6ef3694082cf0c1b3194edcd - src/mcp-server/tools/organizationsGetAll.ts: - id: 24ede87776a5 - last_write_checksum: sha1:0e7bb01bcf2816e647c0778d29ecf576ffb58635 - pristine_git_object: 1662163ca7aa9f39d2ecab530cc9e15fb6d1c90b - src/mcp-server/tools/organizationsGetBillingAddOns.ts: - id: 2e7d93ade96c - last_write_checksum: sha1:c41036b048170d639d1b296b4fda90d08b2f8734 - pristine_git_object: 0d2c601e8d5a43b8add2fc47f479fcb7d75dc909 - src/mcp-server/tools/organizationsGetBillingOperations.ts: - id: 68bd350f0cea - last_write_checksum: sha1:6dd834e7964f734e1a390ef17fcb514b920df771 - pristine_git_object: ef6a70f98db9225c98399847614e54935ffb09eb - src/mcp-server/tools/organizationsGetUsage.ts: - id: 96eb9258f2f2 - last_write_checksum: sha1:8fe7c6fc0d969a43ca5200f8775f48ec8cd56db5 - pristine_git_object: 92b86f4a0d2115272072c22196772af814773707 - src/mcp-server/tools/publishingTokensCreate.ts: - id: 31a4ce52b2f9 - last_write_checksum: sha1:ae6c7b6b10ab1a7a709685b21c0e88dbb105b831 - pristine_git_object: 27cf1355ea8c3c536d383535ab7a8ea52015793e - src/mcp-server/tools/publishingTokensDelete.ts: - id: 5ecf5078d576 - last_write_checksum: sha1:16fd40ed3364d6de7c1f18e9875ad48dbb0a844d - pristine_git_object: 0af3895ef7b713ad1aba2ecfa5799c917d2f78df - src/mcp-server/tools/publishingTokensGet.ts: - id: 0cd5c062c182 - last_write_checksum: sha1:133c80f223a2f50d5f7773afcaa0e8f4e1d9b887 - pristine_git_object: 334dbb32a4e5c050a80aff83bd92123c9fc76270 - src/mcp-server/tools/publishingTokensList.ts: - id: 1e6fe4a099f2 - last_write_checksum: sha1:e077c3b9529217590bc2cf45bb0723f4a79d0933 - pristine_git_object: e4bdf99113d9467ff9cc2a301c523a5ece8c1b62 - src/mcp-server/tools/publishingTokensResolveMetadata.ts: - id: c427504fa259 - last_write_checksum: sha1:5b32097d26adba355403069c0ed1e963c1c2a82f - pristine_git_object: 07adad52e2d9e8bfb33d878abcf2eb959bcd6720 - src/mcp-server/tools/publishingTokensResolveTarget.ts: - id: 05defd31a16f - last_write_checksum: sha1:6cb83b0dd73d45ac0d6fab15d8e48be8e7bab2d0 - pristine_git_object: b4422e09e42719e8971120962dfbf41bcfc506e7 - src/mcp-server/tools/publishingTokensUpdate.ts: - id: abd78648f230 - last_write_checksum: sha1:1940d0defdf0f9cc6d5293e139e20ed585c00b70 - pristine_git_object: 6aa338c0380861a480d295790bd46f8d356dabbf - src/mcp-server/tools/reportsGetChangesReportSignedUrl.ts: - id: 3071fda689b8 - last_write_checksum: sha1:4d8b3cd05e40250994fae42b614ab6bed7a70f1f - pristine_git_object: 576bb03acb2d2352823216d647132a9cbe28fe90 - src/mcp-server/tools/reportsGetLintingReportSignedUrl.ts: - id: 95febedde336 - last_write_checksum: sha1:f876b882c480941fb940ff0ddeb6418c99984e2d - pristine_git_object: 50b7076998928b5322d16ff0cc1ad8f168e7e252 - src/mcp-server/tools/reportsUploadReport.ts: - id: 2807c7e37fdb - last_write_checksum: sha1:3bf92727a8255c0b21e3b2c314a6c510872c2b92 - pristine_git_object: 4ad94fcc0896e16e52dc68e42811cd2a661dae27 - src/mcp-server/tools/schemaStoreCreateSchemaStoreItem.ts: - id: f1c855039df7 - last_write_checksum: sha1:a585b4e81b6276b1bce249bf61a2cb8878d07098 - pristine_git_object: 504c0a9963af6848c8ce23c6a53360707f646a2e - src/mcp-server/tools/shortURLsCreate.ts: - id: ea449ed58e4c - last_write_checksum: sha1:8215df37fa53aa4a84b621cb41fe177478bf12f4 - pristine_git_object: 083115f5476bf03df2fc110223ae34fc5222ba8c + src/mcp-server/tools/organizationsHandleCheckoutCallback.ts: + id: 08757fd5e59e + last_write_checksum: sha1:6e0cce5076e4360de82266a5c204aa9b3c2cd317 + pristine_git_object: e8fe8c042ca69f839385d19cdc1a289feb2401d7 src/mcp-server/tools/subscriptionsActivateSubscriptionNamespace.ts: id: bcde423d9d25 last_write_checksum: sha1:e436a1f5a52bd9c5c52ba26b9bc4734fca764b99 @@ -1558,82 +1820,10 @@ trackedFiles: id: ff2ef1f7ea85 last_write_checksum: sha1:aada0500ad5ff0a9075c591dcf6a112183e60a3b pristine_git_object: 4b77d2136bc4359de603d1510d215ebf445ff88e - src/mcp-server/tools/suggestSuggest.ts: - id: 925e25ad9dc4 - last_write_checksum: sha1:02467565da1c079537fb08aaf16ce8409851497b - pristine_git_object: 8cb5bac6d19611c95d5f66c61f8f4db268d749b5 - src/mcp-server/tools/suggestSuggestItems.ts: - id: f225a72ab3de - last_write_checksum: sha1:145566f98ea93daa78f6a33d1f3eaf3eefef2c24 - pristine_git_object: b7a1246cf1b98b7948349072ffc1b89cb09d494c - src/mcp-server/tools/suggestSuggestOpenAPI.ts: - id: d0e22be11d0e - last_write_checksum: sha1:f0e102ad4dc9d4ccc9be6b8207d5cfb375b9f80b - pristine_git_object: 619f42942877d505275d9a405165f91c732a5d48 - src/mcp-server/tools/suggestSuggestOpenAPIRegistry.ts: - id: ef9fc35cdde6 - last_write_checksum: sha1:55ec6186787b24bd44acf99f3abe4c06dafe4068 - pristine_git_object: 814130e9493ce549b30046f4db6febc1038b7e4d - src/mcp-server/tools/workspacesCreate.ts: - id: b2b9a1258d77 - last_write_checksum: sha1:c643673eeb4a9aa0cda6c5423367ba0ce9ca5004 - pristine_git_object: f1572b8509449671d5a03c0f2a7cfe2e26b3a14b - src/mcp-server/tools/workspacesCreateToken.ts: - id: 7b5b4961b88d - last_write_checksum: sha1:534604d009dac71e47d7c8b0cba026081df665a2 - pristine_git_object: 388ad1e39d00697a440db15dd8e724336a8e5f43 - src/mcp-server/tools/workspacesDeleteToken.ts: - id: efb4548a4832 - last_write_checksum: sha1:96b62e3ab229d2bff1495fb8f076362f1506efb3 - pristine_git_object: 83f011788898b7cf7d69b45d3b80247c983d9314 - src/mcp-server/tools/workspacesGet.ts: - id: 7a416a8e6162 - last_write_checksum: sha1:d74c629ceb30fde9ab659d076553083639402e48 - pristine_git_object: 4adfc5999e835606888a7086665159f660b73352 - src/mcp-server/tools/workspacesGetAll.ts: - id: 8a4350e26c5b - last_write_checksum: sha1:a197122b5bb385b0ffcb00e3a1ea9dfe7556e6c6 - pristine_git_object: 2059ea4b6843ab6bcac741f6fa17e172d6fb5b0c - src/mcp-server/tools/workspacesGetByID.ts: - id: d2ee3a12dc02 - last_write_checksum: sha1:5ebf88922c304f28e81b799c2e9e5b28f53b3672 - pristine_git_object: c865da3b56b9bc23cc553d07746672d3b2b68ba1 - src/mcp-server/tools/workspacesGetFeatureFlags.ts: - id: 8494b1d77bcb - last_write_checksum: sha1:69efa204fc781b7c78f4cf7802e6d9859280635f - pristine_git_object: 2241ec5cbb49f4c6ea4c968d0f27415e7c5f8d16 - src/mcp-server/tools/workspacesGetSettings.ts: - id: 8b25ab4890b6 - last_write_checksum: sha1:53fa90390baa90d438659f79094ca1a583e84ec0 - pristine_git_object: 2289360f1f4ad3a2d405762d5da3a4a323ca79df - src/mcp-server/tools/workspacesGetTeam.ts: - id: ebc7701efdce - last_write_checksum: sha1:fafd3135a7cf9821762df4e6b75ce788f7c87a9e - pristine_git_object: 8af39925806e35daa45c8adfc80014ca3993135e - src/mcp-server/tools/workspacesGetTokens.ts: - id: 4185913d1f07 - last_write_checksum: sha1:0990bfcc9fe225e1db47c0449181846ed8397909 - pristine_git_object: 125a47a8c13090f2946f05b872da2ec6e1dc21f8 - src/mcp-server/tools/workspacesGrantAccess.ts: - id: 3d9012e10e5d - last_write_checksum: sha1:4a31d5d79a45ebd6e370fac9ae1348b91b7e4850 - pristine_git_object: 4b61487c739a36cbac9111740d6b6b6b04157234 - src/mcp-server/tools/workspacesRevokeAccess.ts: - id: a17d5657c2f8 - last_write_checksum: sha1:3e1b6237a087ac5b3a52d8b415317fcd88510c9e - pristine_git_object: 1f240e4148a9f34f49cfe1ef2ad6230cc5f22d4f - src/mcp-server/tools/workspacesSetFeatureFlags.ts: - id: 8c4a9438f99d - last_write_checksum: sha1:4e77b863e98cad943d3b1baf250a9ea75dba0e70 - pristine_git_object: d6caab32273fbdb86bb3f76c9a0da90c3420712b - src/mcp-server/tools/workspacesUpdate.ts: - id: 7713aafccc77 - last_write_checksum: sha1:863f2d6b559f2deb390c7d0d9b129c0d72d2ca3b - pristine_git_object: 05ddb7501a937075ae8cb0c18d418afb66495cba - src/mcp-server/tools/workspacesUpdateSettings.ts: - id: 11644f97f01d - last_write_checksum: sha1:e3f11312945a8ad787f7b4798d12f006bc36d533 - pristine_git_object: c7023f4730807fae631f62b803999e6c5167d720 + src/mcp-server/tools/webhooksHandleStripeWebhook.ts: + id: 912111b86730 + last_write_checksum: sha1:79647127b63d0edfa319573470dc3173879e852b + pristine_git_object: 354cbeecb0fa9d3b0dd94694862965483a22e6f1 src/react-query/_context.tsx: id: f8dc7b3db733 last_write_checksum: sha1:02175d2976dd87df538965a100ce919c7482b51d @@ -1712,12 +1902,12 @@ trackedFiles: pristine_git_object: 875f5386e784c97eb6e8ee9b54d58d90ca6afd89 src/react-query/authGetAccess.core.ts: id: d5c7df7d5c8c - last_write_checksum: sha1:938115d71c8dbd89be75dc56cb9afa9eb55f16dd - pristine_git_object: 0538932a6b6a1932c93071fa7e88cc793061237f + last_write_checksum: sha1:289540443e1a76f72db26b53f427d7d85bef03c9 + pristine_git_object: fa7df4374b81f278e804b0ac61d6b2b7c3dc1a8d src/react-query/authGetAccess.ts: id: 48712d8593fb - last_write_checksum: sha1:0b7dda7cddcae0877c8fd87212c98404e8af219e - pristine_git_object: c7aad965ba4fee3610087acf7dc8b79ea0c4533f + last_write_checksum: sha1:6146c0826f00ac398593c30c36143a81ef70ead9 + pristine_git_object: 160f5dbe2e15dfd2d320fc6f20edd0159dc63016 src/react-query/authGetAccessToken.core.ts: id: cf9bf1b28a1c last_write_checksum: sha1:79ed8e6ba6c7e4c44f700fe7022e68a4a3171e29 @@ -1728,284 +1918,356 @@ trackedFiles: pristine_git_object: c28e8bd51139063c2e04484b1686fd94d6faf06b src/react-query/authGetUser.core.ts: id: 2639a3095b8b - last_write_checksum: sha1:1a1695e7f86f9012af6483addad7b14841b255a5 - pristine_git_object: b9b489df8de4a7a64799aacd3dba53188358229f + last_write_checksum: sha1:082fcd5789856f1f87091af64e98548aa68cf9be + pristine_git_object: 7c4896e51c6788c6b0180b37879bfadb29b37a94 src/react-query/authGetUser.ts: id: 7723317b03a0 - last_write_checksum: sha1:02b5d3cb85994296b7b7baa380a000516a79f23e - pristine_git_object: 6b64c97f5644c01df0860a548a7cd9749b0a032f + last_write_checksum: sha1:811dba24fc908ba5f3dfb75e09ebf76db8aba540 + pristine_git_object: d0ac363ce45f3843fb65478d2f0b7285f75dce23 src/react-query/authValidateApiKey.core.ts: id: 048ead4e73f7 - last_write_checksum: sha1:e0e6268e8663f715243554c867b7a59f248199cf - pristine_git_object: 1028a0e80e40259fc5b1da8538768b23c9581290 + last_write_checksum: sha1:b64023117c1318c4f6c22a34a10156d961b8ba50 + pristine_git_object: 88ac122ee5e7c862781bd2c9c449b435a31f6320 src/react-query/authValidateApiKey.ts: id: a3c33dba4bd4 - last_write_checksum: sha1:f72cfef1e7e781c08cf31e5cc864611ed5b5b709 - pristine_git_object: 725d22630fd84cc6fd270b2ac5026a78de2c9443 + last_write_checksum: sha1:db27c551410e097481e470e0e2a4a25122881ff6 + pristine_git_object: 3325f2210f360463924a3ec95db384a38cb097ae src/react-query/codeSamplesGenerateCodeSamplePreview.ts: id: 17399efa1669 - last_write_checksum: sha1:105327c034533d7ad5ee67f5c7af156e31632d50 - pristine_git_object: dd1b6d2384981acf85dca1e772b5d383fa4ed662 + last_write_checksum: sha1:8f4d98546ee11db9e306e9bc7df20e8cf57a56ee + pristine_git_object: da0e733afb9715dc850cb6a59fe5e7d69ab597dd src/react-query/codeSamplesGenerateCodeSamplePreviewAsync.ts: id: 28ee1a5ef5b1 - last_write_checksum: sha1:130390f5ef1e703c98eadddfad7e11d452e5413d - pristine_git_object: 124fe3e7c4a7ce98cdda29d2bbf8b2eb1f828d99 + last_write_checksum: sha1:fce6c5f2ed5212fa333377a046f5ab645e42c90e + pristine_git_object: b0c12ccef96a44a0dcada72325acb52365d70994 src/react-query/codeSamplesGet.core.ts: id: f8e61a383bb9 - last_write_checksum: sha1:eff91c88557e9dbaa283052f50f73c1a2a89e45d - pristine_git_object: b46ce1ccbb976c7f58881144b608cd6e3581e195 + last_write_checksum: sha1:dfe118b9029e00b827616255784a6d44f899d4c1 + pristine_git_object: 5578ac7f14baf60bcdd1de04d4843f2a6baa3add src/react-query/codeSamplesGet.ts: id: de475ede1953 - last_write_checksum: sha1:c8d6d538ad2364b20ee96e255aa28c1979b9fb71 - pristine_git_object: 60b0b6bea298177ac4efda68fbf044dc05b361d1 + last_write_checksum: sha1:f9a1e8d4e9a6617066b6b93d8d28de265ab54ef9 + pristine_git_object: ad55f160c187092647937017dbbafd981cbad090 src/react-query/codeSamplesGetCodeSamplePreviewAsync.core.ts: id: 9d18376d52be - last_write_checksum: sha1:d0ee07b6ff4153dd598c60968d17a36bf10aa27c - pristine_git_object: 327f020f9a02f4d02f2cf240e2575545e535b450 + last_write_checksum: sha1:3938c73fb36b7537fe2a0af6dca85517920391de + pristine_git_object: 75aa0999c813f1dc7a904ee490375caf29a22809 src/react-query/codeSamplesGetCodeSamplePreviewAsync.ts: id: 09f411dacc1e - last_write_checksum: sha1:cacf3838921d11bfbed214e2dcd54c2fc484c8df - pristine_git_object: 653475f0645c64fbd82536662cad9b31e0fc9337 + last_write_checksum: sha1:2edd485e522d9b1760112a6183fdb8f4137ce988 + pristine_git_object: a60cd04f8381b744c58196c9fb3a64b5be4f0550 src/react-query/eventsGetEventsByTarget.core.ts: id: a62c5c2d7895 - last_write_checksum: sha1:7d153cb683a69d358988d2af853b88ccb73ef06b - pristine_git_object: 2936a1b06fb5be927b9839d997fcf356b02858e3 + last_write_checksum: sha1:35bb9c6273d3dc92fa90403aad1d974221160e5d + pristine_git_object: d90f29c84d724e20b3d50528ea7f8955bdf82f21 src/react-query/eventsGetEventsByTarget.ts: id: be433a773641 - last_write_checksum: sha1:d4c8fc848be2224f797588658551ce1c8dc86b69 - pristine_git_object: dbbd6fc8a635eaaefd10eb86da7b0dd69ef5600a + last_write_checksum: sha1:20f9fc478dbef74a102bea20fefc2b1651d52543 + pristine_git_object: ef631b4e4383c18382c2a339cfa7fc1d69261c30 src/react-query/eventsGetTargets.core.ts: id: f5fe7380569c - last_write_checksum: sha1:a44effbe78b684a8ee36a4980f1e402f29b9f50c - pristine_git_object: 6feec3ce7ab3e409187dc88d0b801e0ad5f05031 + last_write_checksum: sha1:2b55136a5fcaaf0ce993a7b46bb871c8003dc2b7 + pristine_git_object: 25bc602163f77ef9a07994894ef90a1f7256c3fc src/react-query/eventsGetTargets.ts: id: c102fdb965c7 - last_write_checksum: sha1:28fbe7d29052abfb6b85b7d501a7df4246d469f5 - pristine_git_object: 9aed8570ae55a12dc414a0d8b3a157b421bf802b + last_write_checksum: sha1:bc464c5d8d39155b7b24c05d05d4264cb87e25af + pristine_git_object: 35946c0798a0177549428a4d3058751974b7b313 src/react-query/eventsGetTargetsDeprecated.core.ts: id: 9957fccb6437 - last_write_checksum: sha1:8a017f2b13a2371995e31bf7713325858e74c3a5 - pristine_git_object: 9d7670a0512d7f0e48542428d943c7cb4a3a6668 + last_write_checksum: sha1:bc8b42a059b9ed43abe12b8a8f8e7969aa43cb5a + pristine_git_object: 607a252e0893bb1766eee8396b84c1e84e47dbc6 src/react-query/eventsGetTargetsDeprecated.ts: id: 4115f787de05 - last_write_checksum: sha1:f11a59bf70d6eabb85ea2d679a06f3bc3a95dcd4 - pristine_git_object: 0d8bbbd4b58cae1f63b43fbcce910ecce11de873 + last_write_checksum: sha1:83fff4281d53fd9490f828194695962270f3112a + pristine_git_object: b28ccd1acee5b58cc8ecd13807aaf455d5daf7fa src/react-query/eventsGetTargetsSummary.core.ts: id: 8d9e591dab44 - last_write_checksum: sha1:f018e14b2da66474c1e178ebbdff4e2ba0fb1f1b - pristine_git_object: 056a7a46cf2cdaf1f18a421350c6318ebbe53ccc + last_write_checksum: sha1:4137854091b3254f329b1279188e4668855c9182 + pristine_git_object: 6a68938079285bba6349672c5d70555dd7f44da7 src/react-query/eventsGetTargetsSummary.ts: id: 630958bdfd11 - last_write_checksum: sha1:2b14b12c089f1d3e85767a333c349430da95b130 - pristine_git_object: 5e9cc1a480e9e02b595265b560b98e8c34e9f1d0 + last_write_checksum: sha1:edfffc198cc06bf8605bc1de45d32018a40fd22f + pristine_git_object: 42555a335d18f48a46cf8a4aa9d99488f89446a3 src/react-query/eventsPost.ts: id: ae366eb24213 - last_write_checksum: sha1:a7f11996f679eef457788423eaf3d86219ed3f70 - pristine_git_object: 42ef87c87138a42b7d0b41ad9bf95b2474c56a1f + last_write_checksum: sha1:964371d79b40a95d90ac1e70910ae201cea8c5b0 + pristine_git_object: 97f29b332fed213f495427f3378aeda6910ceb4d src/react-query/eventsSearch.core.ts: id: 44d8c9062438 - last_write_checksum: sha1:75d84b063a74e7acf08464ed34f7050247a7af3f - pristine_git_object: fe3687a62928c550cc4e656e1d6c3e9f0d8382d3 + last_write_checksum: sha1:67515de6876e64b58c5857d2ee4281a1ff977c8f + pristine_git_object: 8b3b61fe939c143c7f111ba56ecd08fdc381ebc1 src/react-query/eventsSearch.ts: id: e1f153e5ba3c - last_write_checksum: sha1:b128211828fad524cdd1fd27d612ddf89da1ab0a - pristine_git_object: 39a05affde9d5976d08a45c73c3044b724aadbbe + last_write_checksum: sha1:e0989d823adc81917d97d146cc6008c2ba7ae73e + pristine_git_object: af496b63e16a4f2904dcdb2e63a1f940937c7098 src/react-query/githubCheckAccess.core.ts: id: cd38a07c105a - last_write_checksum: sha1:ec0c7e89b7127664de3919e19518aba2ccc341cc - pristine_git_object: 9dc4d45bf446534ab17899bca93cb73b437ea002 + last_write_checksum: sha1:a97e5877c188cc116a76bf75602850f8264d464c + pristine_git_object: 34a7a58a86576ff0bd78bfa846fdf949af0300f4 src/react-query/githubCheckAccess.ts: id: 987f30dca7be - last_write_checksum: sha1:39be5726f92cba22496794059f502f65e40d2443 - pristine_git_object: bcbfd6624e7fbc751985644e252c8e80d3952e27 + last_write_checksum: sha1:f184f5c8dd9b1d6f197a0442f858c19f9b0f1ff7 + pristine_git_object: c940e069fe75e74a7c7a4eb4c0176a9b727e55ae src/react-query/githubCheckPublishingPRs.core.ts: id: ef43e5fe58ac - last_write_checksum: sha1:92ed79d74a05099f6358aec78d94905bde753bb0 - pristine_git_object: ba4f75151d1abf8bdea42d14177e8002d9a04f54 + last_write_checksum: sha1:0be69c0059d9f43c94ff156e729660ecb157e55a + pristine_git_object: 05ea56041b1511ac67563761ca47dcf946abeb7d src/react-query/githubCheckPublishingPRs.ts: id: 11eeda08b7c8 - last_write_checksum: sha1:427589f52ae46bfaacebff16ccf191831b3f3651 - pristine_git_object: 54c7a8aeb2e08220f9abef3e791a8278081e1227 + last_write_checksum: sha1:cfb0bf91f37b2e8330624e3f227082cfde1751ec + pristine_git_object: 0371acd7a31543869e92ba8105e409a90fb50c26 src/react-query/githubCheckPublishingSecrets.core.ts: id: 27f642a3366f - last_write_checksum: sha1:3669537d40d45fe0afb8a324f3a0cbe6b7337f4b - pristine_git_object: 872df494aa9ae6898b16cb8ce65a4305dc45e02d + last_write_checksum: sha1:6281fb6a1b2eaef6f77d47e5d55e83658130f163 + pristine_git_object: 307e11939fef109efdfdcfcc7ea51d6b8d67aa04 src/react-query/githubCheckPublishingSecrets.ts: id: 0655d4a5f7ee - last_write_checksum: sha1:b926af97a2b765d9da1166b5ef90bb6b3d56fde6 - pristine_git_object: 3d285b01c904e0a846c0ecdd4423da6c3422db41 + last_write_checksum: sha1:9f431772a21c6f5f7d2856e2802e5c22efd70b55 + pristine_git_object: d492c0ee001be750d9d632ed5cf258e4e16ee278 src/react-query/githubConfigureCodeSamples.ts: id: 18f88af43187 - last_write_checksum: sha1:09a4f9835f2ab9981607a2466c436c24bef3016d - pristine_git_object: 52927eb961376d12b0ab5e6e0c2c899994a3dd0f + last_write_checksum: sha1:08320b37c18171bbd382e105828bb6cf4c958067 + pristine_git_object: e8f807ab8a0bf6d7fc91c0f9390196f949f43f30 src/react-query/githubConfigureMintlifyRepo.ts: id: 6895bf26e935 - last_write_checksum: sha1:75910f32885e9ee8a83cf8cb43924157fe826ae7 - pristine_git_object: e7c5cb8e01c68c1c5a22b3edf5a7b84d14d88c4d + last_write_checksum: sha1:3b565fde737bb66ed161d100a82a07f128ba453b + pristine_git_object: b1ab867d876a30f331163b8a37254763559175aa src/react-query/githubConfigureTarget.ts: id: d6e44a88a555 - last_write_checksum: sha1:5f7a3d6b376924d184ca69df5e85c8d7cc9645f6 - pristine_git_object: f6abdc7ecd9ba5d3b271006138750add0a07c060 + last_write_checksum: sha1:7393ff8db889126b633a2a91d31e2afb894e9136 + pristine_git_object: 7732a8499d6a55e44dd012fa9dde3b816d6d3fef src/react-query/githubGetAction.core.ts: id: 09bca61466a2 - last_write_checksum: sha1:70bce9842263c6f2282438fe797e09a603eb8a3b - pristine_git_object: 68174d34c9fa9edac056b02e9b5d51b83a1a5663 + last_write_checksum: sha1:626b61394c7313352d7f6a5583854cf7979d184e + pristine_git_object: d4dcaf71add50b5cdb5a376a1c0c2e59c54e624d src/react-query/githubGetAction.ts: id: 6c286e799a87 - last_write_checksum: sha1:16b60f8c941f3f3bdf0500446a5e259e4fe7519e - pristine_git_object: f862aeb69a1fad31bb71a39e1ccda368a2a8833f + last_write_checksum: sha1:1023d369d36c1b5723fe02bc089621a733a06a31 + pristine_git_object: c5d173c17ce8d6c0d87265a53818e7ea5bd20248 src/react-query/githubGetSetup.core.ts: id: 3b1070bb4e34 - last_write_checksum: sha1:53149eed63c98a0658bb70e970061666aec17272 - pristine_git_object: 10ffae2d06a0e4ad12448797c002ce2043a279cc + last_write_checksum: sha1:4c33f0d7e9ed90389676c5af069613d1f4808acc + pristine_git_object: 575d07991e36cf9fb05b8bcb913b8b2ae229e687 src/react-query/githubGetSetup.ts: id: 46c3b1aed3fc - last_write_checksum: sha1:ed2a1efec6a871b69224886a5ce90b9b72780c01 - pristine_git_object: f9f8f777d97983013abe932256f0f45d9344f43c + last_write_checksum: sha1:bdb6d2bf03faa6dafe7f1dec21cc621fd997a959 + pristine_git_object: 2aa489cd05295577c84fe1b9a7b818d94ca065fc src/react-query/githubLinkGithub.ts: id: 990ced55fd6f - last_write_checksum: sha1:415e8d74d33d11bc434d3cd69f7c53e9e7a0aab4 - pristine_git_object: 6cdabad39a02adc1bfdc67a301501a398888ba3e + last_write_checksum: sha1:80d5847b8431205986d2a57749e8cf16e5dbf09e + pristine_git_object: 6e98615ac3e976c972f9678d592676d96e8c0ae6 src/react-query/githubStorePublishingSecrets.ts: id: a42c670efd50 - last_write_checksum: sha1:104cb3f27b25b67cdd9c9e4986b219e4afdf4290 - pristine_git_object: eac3730528287b929175d5daa6764f385ca792a8 + last_write_checksum: sha1:d36933c94c8be9c0f799484e92b93dbe36d258be + pristine_git_object: 17af8ec7b12660933de2125951c67311590793c9 src/react-query/githubTriggerAction.ts: id: f8c7d67c9d11 - last_write_checksum: sha1:5480a99da5db2ea93a9296acbba41e79a035f0e0 - pristine_git_object: 137149cec1ba1b013fbc496cce4abae342c14e96 + last_write_checksum: sha1:917b0c409419e9eb2443482a01cde759596722ff + pristine_git_object: fc4348b6c1b39c18a9243d843e3db7ce6e0f2e0d src/react-query/index.ts: id: 9e975471aa65 - last_write_checksum: sha1:b52c076bbb2437ce75a7f1eae7b24c2e5cd2bcc5 - pristine_git_object: 47ebd3dd244a9be2fc2591bacd069eed0a7ca238 + last_write_checksum: sha1:416fec2fbd983dfb464ffe274c2f634c18dcf26b + pristine_git_object: 4a3fc112506f0f32f674aa82c5269f293b862c77 + src/react-query/organizationsActivateLanguage.ts: + id: a294b0cfb0dd + last_write_checksum: sha1:7fa1f454fc7819aafed5a0d920d22c86a6491271 + pristine_git_object: 4baf2cda87385d14cb24da12cf3491d0dcf9e16e + src/react-query/organizationsCancelSubscription.ts: + id: 4cc312894d55 + last_write_checksum: sha1:c585649cd4e2855b29e5f2cc883247b0ef79b882 + pristine_git_object: f4a630c95909c6170a8d36a66563e083c84e4ec6 src/react-query/organizationsCreate.ts: id: a3ab7d5d5d57 - last_write_checksum: sha1:a13bf6dfafecf1aab37a8be41931225eb0955150 - pristine_git_object: f2b80a2f897e9b2c52cfccdc2f190f6b83fc88df + last_write_checksum: sha1:98855c6925a32a1e8d40f628bde1dee8df8de8e2 + pristine_git_object: e5353065154cd18105de1c4a7afa8d1c9a4f4f8b src/react-query/organizationsCreateBillingAddOns.ts: id: 94157ca66d2f - last_write_checksum: sha1:ca8621a5a3166134a8522ce4f35523df9c6e02f2 - pristine_git_object: 3469d617cdc09b0cca3c061e9cd305b9ce4be14b + last_write_checksum: sha1:a63fbb7cac224aadd95e9a5e605c5f482c71b301 + pristine_git_object: 8d5775548dc7eebc8dcff601bdfe128fc4d8428b src/react-query/organizationsCreateFreeTrial.ts: id: c4c5fcdac1a1 - last_write_checksum: sha1:46218f99edce6fb5ff1910a2c548110cb33278a1 - pristine_git_object: 7f2b67c1b5b8fee596f2f02d2bdcc4ad4ec948ec + last_write_checksum: sha1:d0f873996a2e0b1f1623fe29749df38d5205c540 + pristine_git_object: 33c73753fb24ccde80b23e0da69aa151b23c4a6c + src/react-query/organizationsCreateLanguageCheckoutSession.ts: + id: ba3bb72381fa + last_write_checksum: sha1:8867928acd6ae1bd66b748e7592e3aa69ea34ff8 + pristine_git_object: d448326f9f159a3c42cbef6f9717f91b960091c8 + src/react-query/organizationsDeactivateLanguage.ts: + id: a2be528a4795 + last_write_checksum: sha1:bc24accc5bf9f6e8a6dd2e864967efa744b36093 + pristine_git_object: ba213062dc968dd20f105001898a5fc64c68fc5f src/react-query/organizationsDeleteBillingAddOn.ts: id: de611edf6e58 - last_write_checksum: sha1:a6ecef4c3af03eec1b79fdd384bd66e2fce1dc8c - pristine_git_object: a2259e33a0182f0b1aa6d767d704b3469191f8d6 + last_write_checksum: sha1:44d1eefae2b78478f2c2120b3a74e48075135375 + pristine_git_object: d7b0fe05d1d0b068e0f8e4b2839de8953cbb47a5 src/react-query/organizationsGet.core.ts: id: 9e362205c3bc - last_write_checksum: sha1:a74d1daf4ed82cb2a9a02848698d696de3d385d5 - pristine_git_object: 9d54e83d471600615e7d12d7273e5e24c15ed3d8 + last_write_checksum: sha1:9bfea55c25ee4d9e50366e38dfb4104ef260581f + pristine_git_object: c3319f3c19ea160e2f85b6b66488066a7d97886c src/react-query/organizationsGet.ts: id: 52b7f2af1bac - last_write_checksum: sha1:858d6e93fc924fdb5ae35685b88b142a70eb1b73 - pristine_git_object: fef5de406d3b0c740172a097703bbf0cb41ade5b + last_write_checksum: sha1:efb16e1c065b0f79c3f56849ee95e86cc66aa589 + pristine_git_object: 1e4a6b94ebf59bf101d331368f0a4ed5d4dc3127 src/react-query/organizationsGetAll.core.ts: id: af56e2043259 - last_write_checksum: sha1:cfc401c4d61ed6920c3667b8e82e340e398b6f26 - pristine_git_object: 49573a31c5da6fd3440321fb4469a2bf929768ae + last_write_checksum: sha1:45f391884ff5335dc15259442f85bfe5da02e593 + pristine_git_object: e6ce4429ae2e4ea043270ab3664dca67c2583339 src/react-query/organizationsGetAll.ts: id: 642e2a7762c4 - last_write_checksum: sha1:fdd1e7a38b454f0447c40714ee405e62d223be8f - pristine_git_object: 04b753ad46013c4b9696ab200ddbf1da3e09110c + last_write_checksum: sha1:7198e8f75697e1c0c8e3a17b8c42867756d657f2 + pristine_git_object: 958d92c12034900451dea7e94bbace82ae131188 src/react-query/organizationsGetBillingAddOns.core.ts: id: e9329801364f - last_write_checksum: sha1:abf10f7f7f083ec25c62aa4f1a4ecebc5ebb427f - pristine_git_object: 559ea5fc9944b210b3f2a799d8deace5dabc52b1 + last_write_checksum: sha1:fcd58810e765dc68fd9e00b48816c4acd3157688 + pristine_git_object: 27f2a02d53f1a1ef6dc93fc09c8e5cf1d2f27d5d src/react-query/organizationsGetBillingAddOns.ts: id: fd6072c6bdbf - last_write_checksum: sha1:6a48b0a1bcdb5e09311953255477f278498e1170 - pristine_git_object: a649a6ef6d6ba35edec34476e5c9b284f3c99ea0 + last_write_checksum: sha1:893c7a63540fc348f7eb030d72573407368c98f2 + pristine_git_object: b1ffd3ea5d6a2da831127d700803d624cd440fee + src/react-query/organizationsGetBillingEmail.core.ts: + id: 09209c6e3936 + last_write_checksum: sha1:bdc2c35ff0bd8cd754177123adcbdccd993dab51 + pristine_git_object: 1b3d2fc41e0c906db311178c170c8ccf9abbcd11 + src/react-query/organizationsGetBillingEmail.ts: + id: 88476928bbba + last_write_checksum: sha1:e1c5a5b87f7c5cfa2f74f1c09a3bc8b215644b4a + pristine_git_object: 747f39343f4925b2c6772bd6403586ed1deef527 src/react-query/organizationsGetBillingOperations.core.ts: id: 1c724040fd03 - last_write_checksum: sha1:bb143095fc6d07a148e780d19dc90feb148c5927 - pristine_git_object: c49f4949a44bf996eb95f29e9bc535c002940866 + last_write_checksum: sha1:a6a9bd65755fccebfc877dccca343b9511d26461 + pristine_git_object: c0e2718847bd59e07e3b24ad2ef43f09df54fe87 src/react-query/organizationsGetBillingOperations.ts: id: 2bd8107f9644 - last_write_checksum: sha1:f17327730ec4c622ce62ec501df327866b863d81 - pristine_git_object: 8acba4b843c95d2ae117f90e7975b5af757ac42d + last_write_checksum: sha1:1eeaccfdbfee09be961bd7f4ba487bf39d61f5ee + pristine_git_object: 97624e59f81d1d8bb49253c3655fa217211a702e + src/react-query/organizationsGetBusinessTierPrices.core.ts: + id: 12bcdb25ffc8 + last_write_checksum: sha1:d1d9c8a528c92778f7de63131c24bfafcd5621c0 + pristine_git_object: d2486a5920de782a762656363e2ac765762a55cf + src/react-query/organizationsGetBusinessTierPrices.ts: + id: 9285df032416 + last_write_checksum: sha1:eeb237eb0206e75aa499381c7e0a3114d4f0a18e + pristine_git_object: 9fd6cdf4c40c1cf7444690057b377f93307bc0f9 + src/react-query/organizationsGetLanguages.core.ts: + id: ef693594726d + last_write_checksum: sha1:ca15450afa92f1e167fcdcf6929342db6f4b4801 + pristine_git_object: 19d5c4639af3d3b951d29b27742708735ac96cc1 + src/react-query/organizationsGetLanguages.ts: + id: 1cb38a796098 + last_write_checksum: sha1:2ec8732736c43c0bec551367f02837ac75eada64 + pristine_git_object: 9ccb20e3fa063df70de412aa6ba098ec57659856 + src/react-query/organizationsGetSubscription.core.ts: + id: 81329bf4eb62 + last_write_checksum: sha1:d4636c37e57efc398bff99e9ac3d923fc2ccd800 + pristine_git_object: 1a92b84f15c47f1cbe9e1d710c9e11e8b30b2f18 + src/react-query/organizationsGetSubscription.ts: + id: e2052a5a0132 + last_write_checksum: sha1:23e468c4e2f7665bb2854aad76266cf2b979c42b + pristine_git_object: f80d8a074143a6723ae31583a545125694081faa + src/react-query/organizationsGetTrialTargets.core.ts: + id: 459aaf25c07b + last_write_checksum: sha1:3e18ef80946998a2e4d1517f317f9d7eaef1a4b5 + pristine_git_object: 93606247e666ec30bd89934b74e8ed64267cae0b + src/react-query/organizationsGetTrialTargets.ts: + id: 7f708a381617 + last_write_checksum: sha1:0cf4e48dbf3bb58065d5753bdcb840a24e5e8350 + pristine_git_object: 1f01ff9145f53c69ce10034bbc7f78a1f0e4a44d src/react-query/organizationsGetUsage.core.ts: id: 396ab7bd2643 - last_write_checksum: sha1:99e67cd09ee5ec2953b249b2f0eba47f6092c3c8 - pristine_git_object: d6c84a803f39bac36ef3430239a3a7b52b43834d + last_write_checksum: sha1:dbd8e099910c8c330cfd3b00066047083b09d85a + pristine_git_object: f78190cb43dbe62d5a1d1ce296e601496e086d69 src/react-query/organizationsGetUsage.ts: id: b9b4e490986c - last_write_checksum: sha1:7cb1f2325633f2cd7482cdfcd24b9c5004921706 - pristine_git_object: 565a27e82afb5e68a55c36e152a39e3cee805e15 + last_write_checksum: sha1:51b184c84d9eed213f3af8be0b2829af7a05525b + pristine_git_object: bee8f6625643b24abf6f737ad494451cc0fdb511 + src/react-query/organizationsHandleCheckoutCallback.core.ts: + id: 7af7cd3b5158 + last_write_checksum: sha1:53bab06311fd928fd0782a25e757221c2cb761cd + pristine_git_object: c004a28079ddb7f0902ad912663c959e00a02df9 + src/react-query/organizationsHandleCheckoutCallback.ts: + id: a7afe9481a48 + last_write_checksum: sha1:5353c3a0a87b191831e3d5012c018883db5f9be0 + pristine_git_object: ce4c5d70d6425bee1ed2f4358373d84df4a28563 + src/react-query/organizationsRevertSubscriptionCancellation.ts: + id: ae1502e6a53d + last_write_checksum: sha1:a025f7738e761943410506d6ad031e0d08cc9cbb + pristine_git_object: 3bf1f539163200e6cbf20d33128c181c990adc64 + src/react-query/organizationsUpsertBillingEmail.ts: + id: 73ae3871b5c2 + last_write_checksum: sha1:cdee244aa7a2378fee22c108eccd09e03d90a78b + pristine_git_object: f46137f0d189dc60061be5cd31a79963fa678073 src/react-query/publishingTokensCreate.ts: id: 13fa240a5547 - last_write_checksum: sha1:0ba07602590a8f6caa50245de5396694855f3aa0 - pristine_git_object: bf8b7333ea22360a28dfa0c03f598489ead5435a + last_write_checksum: sha1:a5cab698bbc7e9373fe2472084037f49c4cc1c3e + pristine_git_object: 024e59541945c4fe9ea6b5eb563327ee1c794913 src/react-query/publishingTokensDelete.ts: id: 6866aad5ce02 - last_write_checksum: sha1:c6fd0b85b0cb744688e03ec245bf4cc69d5224a8 - pristine_git_object: c188412435283c0231e1d26da771ec193946cd1e + last_write_checksum: sha1:570add3c981aa90440e45aa85d925eb08f79507e + pristine_git_object: 8dcfd761a89bab9055a9832e805de5bb16f513d3 src/react-query/publishingTokensGet.core.ts: id: 4c2342961551 - last_write_checksum: sha1:0b18869b7a43e5e893d49a9f24477c429c1e5b15 - pristine_git_object: bb04ec29ee06321a071ec5286a35c287e6a46091 + last_write_checksum: sha1:07fb4a979fde6faa382cfc544961fea5a77a729b + pristine_git_object: 4d2376cfcc30c34d4838e1cbddfd702f84e703a9 src/react-query/publishingTokensGet.ts: id: 9b5e2116fe10 - last_write_checksum: sha1:fc87e403d46c972b507cca65a842f8d1b113eb85 - pristine_git_object: 895683807567d3ac2c986e15881d8862f8f1f97a + last_write_checksum: sha1:8092388887a2f9eb3a77ff58f48081f1779c81c8 + pristine_git_object: 141273c26c7bf1101d921c3cf987d0c584e254d8 src/react-query/publishingTokensList.core.ts: id: dc439eb5d334 - last_write_checksum: sha1:e859c38707bfc29f24e9279db763a61982ce785e - pristine_git_object: 2ac8a9416be82c2bc4ca1b63bd3c197d99ee6c85 + last_write_checksum: sha1:88e9cb7ea9a1f8b5114335794ef0a3b883024f53 + pristine_git_object: b65b3305bcd22628814a04b7238e9d9603c8a109 src/react-query/publishingTokensList.ts: id: def23bf5f6fc - last_write_checksum: sha1:c872d1d6a944091f93b779fab5ed2092fa4b895c - pristine_git_object: 1bfac536764cffcac9f48d87aa68d982f0521525 + last_write_checksum: sha1:a07fa69e091274ab7186cc8a276010bac11e080a + pristine_git_object: ef211e190dbfb445d29b10c5e84238072ccd1ca1 src/react-query/publishingTokensResolveMetadata.core.ts: id: b83d59bb1b36 - last_write_checksum: sha1:34048fc0a55b531c8302bfa69776d8cd0680e4bc - pristine_git_object: 0e648cb0647ca9cae8b756add145138939ac0e71 + last_write_checksum: sha1:d29dbb136f08253504a8040dd95a6df5bad9c3e8 + pristine_git_object: bca17318fed44b10ab1da0191770b1350ada7468 src/react-query/publishingTokensResolveMetadata.ts: id: 51a2c0019e1e - last_write_checksum: sha1:0e5d620daecaa11a644882d56706a53059a98073 - pristine_git_object: efb8295a3e11091f0dc2fbecf89db7d9b1ea68b1 + last_write_checksum: sha1:bf93485ea68414892ea37fe16ebaa13e1904f329 + pristine_git_object: c0e61f779a6b7d92803171db28ef16164592d618 src/react-query/publishingTokensResolveTarget.core.ts: id: d4e493e5c502 - last_write_checksum: sha1:80b1603bc716df41a5102c0855586050ab1551d6 - pristine_git_object: 405f248dcd026e87f3aadb946948e0a6cdb1f7a0 + last_write_checksum: sha1:c8c1f984866c18635d7ecdf5620d0b5fe4df6ad0 + pristine_git_object: 3b04b94df77b5cb1de163f340cc05993f0ba909c src/react-query/publishingTokensResolveTarget.ts: id: 35519c953411 - last_write_checksum: sha1:3885ab24dd2a01c3044ac9136dbd81763fd9233d - pristine_git_object: 9767b1c028b015627ed42b4da64a56dda87d3ec2 + last_write_checksum: sha1:e66fcdabdd5cc596d2696c32dcd4136bda0e1946 + pristine_git_object: c3257c1c8e99ebac688ce1fb14305bc1713c3e4d src/react-query/publishingTokensUpdate.ts: id: 39c170cf69ab - last_write_checksum: sha1:fd9f331345cdb40b0b5c701885a5d051f99db2b5 - pristine_git_object: 783387afc16749c5916750b86076bf458344fb00 + last_write_checksum: sha1:2de6ef0a9151e9929fccba0adf4e5bc9f15e6a17 + pristine_git_object: b2a1df0fb8c08f8f9c46517abd27ce2d39bf2e07 src/react-query/reportsGetChangesReportSignedUrl.core.ts: id: 74d7980035d5 - last_write_checksum: sha1:f1c21f883b824de9404be8c9394d17bad7c87c9a - pristine_git_object: a4e3e1f65ca94f7875ec62c12217869ee6aa13bc + last_write_checksum: sha1:d0fdd9fc12962abcf3dfad238536ccc580fad44b + pristine_git_object: 97080ce666218eb0200f3a9de50702878f1a0c89 src/react-query/reportsGetChangesReportSignedUrl.ts: id: 737f7b078d83 - last_write_checksum: sha1:f6f852b7aeaabd19d6df0a57f66bc16510ce1b13 - pristine_git_object: 44dc10421ca45176ce867ea9c8f37fec666b807a + last_write_checksum: sha1:7e54015a6e1bd7dc617db98213532200148926cc + pristine_git_object: f385282109cdeb1e35f5e3bd8643a0d531296905 src/react-query/reportsGetLintingReportSignedUrl.core.ts: id: 2bf792fc0cc0 - last_write_checksum: sha1:5a13f7be84e54245b2acf39d650316906cdf4381 - pristine_git_object: 7133fb723df15b6abc01e06f2abca91b5f8ebfd4 + last_write_checksum: sha1:fdb5a7d6112c3abece49df5a8b8d285e22426b95 + pristine_git_object: 027f030dbf63fe0c11e2096c0e69b670671cb6a9 src/react-query/reportsGetLintingReportSignedUrl.ts: id: 5e325f8140c4 - last_write_checksum: sha1:389f22b616a600dd1686bf855284d184af0a076d - pristine_git_object: 49541989b177e20bf4474a506645272503ee9487 + last_write_checksum: sha1:9aca40348c473295bd11dd6dc5bf07e478859e14 + pristine_git_object: 50d95822a3705c02e60bc26ad53345b40a2098ef src/react-query/reportsUploadReport.ts: id: b8e9884c7941 - last_write_checksum: sha1:11cca6bf4090aecbdaf345523956187405ff234b - pristine_git_object: 2150dfd7777902ae115436c3bff5154132704411 + last_write_checksum: sha1:3dbcf5f18b1f245fafa6345fbd47aae252cb2692 + pristine_git_object: 3b858322ac79ad6117feb67f4763f9bec93c5498 src/react-query/schemaStoreCreateSchemaStoreItem.ts: id: 67a64fc20050 - last_write_checksum: sha1:c9f7775603a178d27a561d6ce21b0c4fcb0485dc - pristine_git_object: 9f98f1b2abab0ba889f4eaa875a9938a8998730c + last_write_checksum: sha1:96c792d1198b2460e19f24ab1b2c3f11be46cff8 + pristine_git_object: 505857d7551d03559efeec096bf44c633093d133 src/react-query/shortURLsCreate.ts: id: 32a88683418a - last_write_checksum: sha1:033b1179af405d6947a60bebb27abbea39964c0b - pristine_git_object: 2249030343184d67b000867a289c539840e7237d + last_write_checksum: sha1:b30af5de9820bd82de11a103f167d1557c5a1d94 + pristine_git_object: 9567a345d7391430773e0dd1cba86446afc1ab55 src/react-query/subscriptionsActivateSubscriptionNamespace.ts: id: f8de254a0c83 last_write_checksum: sha1:81da79bede6af1d5d109092eda999ee34ffeac94 @@ -2016,128 +2278,132 @@ trackedFiles: pristine_git_object: ee6077a1d250aa99c724637a24900fa24111f89a src/react-query/suggestSuggest.ts: id: 7aa64a5ad4ad - last_write_checksum: sha1:f9d5d3f78770af5bdbbf11029a9d596293900fe2 - pristine_git_object: 5cf9658badc946459088638e4f2d473010507395 + last_write_checksum: sha1:d9b0dfe59c4d4e3cda239492748387028d5dbbb1 + pristine_git_object: bbd74cb1df18e9a8ebbdc8f8095b29ec85fdeca9 src/react-query/suggestSuggestItems.ts: id: dd754896ae7a - last_write_checksum: sha1:fc726dc66eaa11f259cae6c76ee033d0ee734bb7 - pristine_git_object: 2eee13361f642f8b17166937b634794da6487a80 + last_write_checksum: sha1:568e13fd7563fcf0956dd954f05bb8cffa1ce8a7 + pristine_git_object: f267556d5d5bb25a5fdf87853ea50a756070c951 src/react-query/suggestSuggestOpenAPI.ts: id: 1a8ed04e61d7 - last_write_checksum: sha1:aad9daba31347a82007a756ec4d5d7ff64fbb688 - pristine_git_object: d9f5083a9256430fe18b3931ee5bdae3988d9af7 + last_write_checksum: sha1:fde9123601584a97188b3e3c6825fb5230a3d3aa + pristine_git_object: 8d6b54eaa35b3924b885f45e72defc4e71f1a795 src/react-query/suggestSuggestOpenAPIRegistry.ts: id: "513305922350" - last_write_checksum: sha1:9cdf67b30b7ed6bde540041dfe9b5366d343a017 - pristine_git_object: fa315931e7dc4dda0d34ca4afe67f9116b318d0d + last_write_checksum: sha1:de70b644afcfc4720d451f65e68b40a56270facf + pristine_git_object: f43a973fde416056d446819c999fe7b405097943 + src/react-query/webhooksHandleStripeWebhook.ts: + id: 97e849074626 + last_write_checksum: sha1:1fdf73cb8de5c4ac912095ad6729cd44fa7be215 + pristine_git_object: 2aa6d95345b418902dea20bd6e961f5df5f4617f src/react-query/workspacesCreate.ts: id: 2bee27dd3db8 - last_write_checksum: sha1:9c432dcd767a7dcb506b59bc3c7968bbee90478d - pristine_git_object: 591d9b41fa0a79c3c94200c49d1048daef9e3dee + last_write_checksum: sha1:32159987b9bc928ad4bd6794dccce78c6014f96c + pristine_git_object: 8ab5856e6dcb6ead33a6731ece885548ffa50111 src/react-query/workspacesCreateToken.ts: id: 0badc4e652d1 - last_write_checksum: sha1:c650c99c48c861fd022edb97e8ab48482dde0ab4 - pristine_git_object: a9b473522db0b31d85f1bda264c199877c4635eb + last_write_checksum: sha1:bcb90a3e9313e7ed875fac6733af4123f47ca58d + pristine_git_object: 527e2059dfcbdf282f19f565d89e076573c25c4c src/react-query/workspacesDeleteToken.ts: id: 6847d6a19a0e - last_write_checksum: sha1:15ccd48ba10eb7c21f6fbff75f6dbdb8790db79f - pristine_git_object: a3f0d5da7b8d6f62f66434789c4c52672341d2f9 + last_write_checksum: sha1:9895e1b48e5561f6b3b913c2757cd23c9461ff77 + pristine_git_object: 3a515ac9d56b73f298eec540a8e97c693d8bbb5f src/react-query/workspacesGet.core.ts: id: 8d7393e22f1c - last_write_checksum: sha1:087e65360519c524b213c6982b18dbc488dc6624 - pristine_git_object: d53d8ba5f6c97f6769f3a03c96ab0b1bd8e8fb18 + last_write_checksum: sha1:a3062ad0e713643f6606f8cadf7fdf2711fc9f3e + pristine_git_object: b91e29e43ee61a83838849b4fa842522512dc7be src/react-query/workspacesGet.ts: id: cc5dc9a1112f - last_write_checksum: sha1:9f48fb22b253e65ab5732183cc3cf370d0ec7c52 - pristine_git_object: 89bb54c99f4146eba4006241810779ee2985d4b3 + last_write_checksum: sha1:c1aa0412ac66501387e37e7066e5df15eb3ceeab + pristine_git_object: e74a0d1377203966db9781bdb16a51f23f698bf9 src/react-query/workspacesGetAll.core.ts: id: 571891bd25de - last_write_checksum: sha1:b9c355c248b93ab35f07845f94e1786c7a31311c - pristine_git_object: 07cbcabe248d9966c73874d43153385e9a08a66a + last_write_checksum: sha1:661aa722d871c618275d41ccecbd0a9a9693d181 + pristine_git_object: c12925d94587298353c431a484f602814995f0fa src/react-query/workspacesGetAll.ts: id: e4cf16ea4307 - last_write_checksum: sha1:0ca1ce4921ed1d1f415b292514f017e8327e3b19 - pristine_git_object: 92fa05b8f409800d3c17094358324170e869e104 + last_write_checksum: sha1:40c8030ca1708753c3705902f9379f3b74a66343 + pristine_git_object: aa59dda1f3a2fbcd9b4e93ca1234e2653c8bbfb6 src/react-query/workspacesGetByID.core.ts: id: 4490f6a6c491 - last_write_checksum: sha1:366e152072baccc556da53e9c0738c42398d746d - pristine_git_object: ac77f48cf581055f739d9f112333f0ca100159d3 + last_write_checksum: sha1:cd8778335f62c19916ed958b5866daf8544ef57c + pristine_git_object: 890eb8f208ec329713131bb8cb1d1610f94901f4 src/react-query/workspacesGetByID.ts: id: fb2f6bb094ed - last_write_checksum: sha1:cd4ef647c837b2f01a77ff91f2c00337873a1bb5 - pristine_git_object: abedad1eee4d141c87db64220f4a6057957f4e6e + last_write_checksum: sha1:bbb02276daad9e1f171e288662f5f52c4a42101a + pristine_git_object: ffe7694b258f0d333b79d30b769e9679efecb08b src/react-query/workspacesGetFeatureFlags.core.ts: id: 2a87a43f2179 - last_write_checksum: sha1:b5b4575ff4514405de5b07a455996cb2534781c9 - pristine_git_object: 6143c4165801f26e52b8166d1ea09d55dc3a56fe + last_write_checksum: sha1:b47b454d70f2ff1096e31fe1cfcb06f9b2ce00c8 + pristine_git_object: 8eef0050061f835fe1a92864d017a674e355ef71 src/react-query/workspacesGetFeatureFlags.ts: id: 6550400b30bf - last_write_checksum: sha1:50a31412f31599de41b3d7fb0da048016283461d - pristine_git_object: 8670c08c166708c7deb5cc06d6ba3403194dd508 + last_write_checksum: sha1:c0cf759f512629e5df5e8f2f7277ebf8e917f46e + pristine_git_object: 0cfa726944dbe4183ba2f833b5fbc5b2fda37f67 src/react-query/workspacesGetSettings.core.ts: id: 59e515804029 - last_write_checksum: sha1:470b357c5ecd6a08997eb382ff3917444624a636 - pristine_git_object: 2fe811c645c6d5c4e4c355915a46f85b25c03251 + last_write_checksum: sha1:9452362bccf7be245622097a59c8d33e1ee51ff6 + pristine_git_object: abeb24ea2be536fe01aa9cf2e19519120f3fa342 src/react-query/workspacesGetSettings.ts: id: 3de033c8470b - last_write_checksum: sha1:2754c23b09ba60bdca5635313e78f788488ad82c - pristine_git_object: 2f413ab2172eb61b1d9c467f3ca8d89ec5ec18da + last_write_checksum: sha1:38ecdfa3aa2fab154e2a345ba8b7819c2df57986 + pristine_git_object: 87ba1d4b5dadeebf566e8f47a3393252304136c3 src/react-query/workspacesGetTeam.core.ts: id: 558931644da7 - last_write_checksum: sha1:2ddc4a16b75b2e19775ee8a278af422496d3e19e - pristine_git_object: 7a301cefb4b534fabea4b40ebf6b06940aa72383 + last_write_checksum: sha1:8e5db542caad930a25f7bb791cbe40e02ec8c6d6 + pristine_git_object: b26fc426a7f933a7ac5486432932ebae773f062a src/react-query/workspacesGetTeam.ts: id: 2eaadecb5296 - last_write_checksum: sha1:1c7da42e131df762c2b41e260af4f7c3587a9bb9 - pristine_git_object: 49896f0d5806617f372945feb7777f9949edbb5b + last_write_checksum: sha1:0fb68c57a38775cd10308d20978ab4b10ef7fbc0 + pristine_git_object: 57230ce4fc011ae40b02e622db427d71fa46c6ad src/react-query/workspacesGetTokens.core.ts: id: 99f324a3783a - last_write_checksum: sha1:c6480daa1eb0f482ba91ad65deec9daf2b7e1f57 - pristine_git_object: 52dfd472c775572270d3d65bf420c0d6726766c2 + last_write_checksum: sha1:d206576d80d75a14edf9e110396aae5d9bf119cc + pristine_git_object: 09e76300ab3306ff3a8ba24a34d0c6d339149e59 src/react-query/workspacesGetTokens.ts: id: 4adc5b311a6c - last_write_checksum: sha1:1f8601c77bf19df17d7f531b40ecda233e933472 - pristine_git_object: a408ba8af65b8eda6beac3909cf049e24ceb42a8 + last_write_checksum: sha1:8e02db13dfb36307f9c113f0e0eabbb6698cb41a + pristine_git_object: ee18d6410bad3b71d636705357e6df785c4b2aca src/react-query/workspacesGrantAccess.ts: id: d0c6abc4debc - last_write_checksum: sha1:44f3bfbcc56776ac0239170bfda45c19bae25f54 - pristine_git_object: b3cddcaedf5379bf3a5f050bb66a49afc5c6ffc4 + last_write_checksum: sha1:32d79faa30a6d679ea3b19f91c1811164d9907c5 + pristine_git_object: 193775d5f0f002cb45deca6d4ac5a15d9a6fda59 src/react-query/workspacesRevokeAccess.ts: id: a37f1670e1b4 - last_write_checksum: sha1:f5188fea695bb72bf263cfb5f1e0945e9f0c9598 - pristine_git_object: f3212a5366f823aaf69a69dc728bcbc1f9af36ba + last_write_checksum: sha1:3a2109acc4be228cdfb53164463e06acbfe9ba28 + pristine_git_object: 08ed64b48fcca6bad53b823ca76b0998b6451c04 src/react-query/workspacesSetFeatureFlags.ts: id: 183dd09ded6f - last_write_checksum: sha1:88186917e80d2dd1592f2f873f1d5afc69820df3 - pristine_git_object: 7e5633593e8d4c30352db6f4daca691922b36af9 + last_write_checksum: sha1:2a33c0a66d8a3a097b8873c419d5bb9d9e7958d6 + pristine_git_object: 684f0a8fd8f1842e2340a29f66699f6ae17ca106 src/react-query/workspacesUpdate.ts: id: 882d20382d51 - last_write_checksum: sha1:df795537fad145cd632eb0a2f1a5bd2edb721d77 - pristine_git_object: 94d66f7e6653aed21b7c505302efcdb45feb627c + last_write_checksum: sha1:87cf1004b6bc39895808939e3d07b91e49a7a97c + pristine_git_object: 04e187900d21a8ca4ab11234abe582eb71121a0a src/react-query/workspacesUpdateSettings.ts: id: 3926c99533e1 - last_write_checksum: sha1:1c4293d4da07794f6a450228bdd3484be7ea1d93 - pristine_git_object: ff2d6bd5332d7d81fe8f0b911558ff461fcb5a2e + last_write_checksum: sha1:d2337d0292664f8b82d80a270ce84c355c69a1e1 + pristine_git_object: eb9a256f3a69f296f01668a6c343cad45d1740c4 src/sdk/artifacts.ts: id: ae0f448ff334 last_write_checksum: sha1:a2e29d6354e9fbd4667f277c1a8c164c981d27a2 pristine_git_object: b071474eca1d2335c6cffbd2077452b5d7f16df6 src/sdk/auth.ts: id: b29b1fc6bdf5 - last_write_checksum: sha1:4403c6432f88abdd6370cc49e327cf5bd34b7d91 - pristine_git_object: bb97b1e76a69df66f22f0dafa42505d155ea8ec5 + last_write_checksum: sha1:e168a7d0569c2166819da20ed08414555fc613d1 + pristine_git_object: 849d82aae5a3ea62c147cefcc6ed9451675c0c3b src/sdk/codesamples.ts: id: 756af8583917 - last_write_checksum: sha1:513cfe637cb030555b06334eb596a77c984b6177 - pristine_git_object: 7eefc5fdb5df6103f2ae337b9944b836864404e6 + last_write_checksum: sha1:0fb4170a74b9d5e917ddbfea982151b77c132d59 + pristine_git_object: d107f6b08a1dddb430350356c93c082e7c5bd0c2 src/sdk/events.ts: id: c7d130088b17 - last_write_checksum: sha1:31a3eb8f4dba69489f71e0aed62084cd0c5a39ed - pristine_git_object: 7b71431775cc1c91372de4eaa592bb28552e4ea4 + last_write_checksum: sha1:8f028b8f8c6ed4eca68edf4ff32f86c7a735c29b + pristine_git_object: ba8bad05c593d28c32bf697a4948e24f3031b06f src/sdk/github.ts: id: 65b56d898c85 - last_write_checksum: sha1:dde6c9b1adcce60bbfdc8bf270b6cff82d6dae73 - pristine_git_object: 4ce36e67e860736ae1bee6e6c7bddf6cbf585a5c + last_write_checksum: sha1:1ef1a4cf136be0ab16c135d6e08e4d526af9ed92 + pristine_git_object: 76cad71a08ea6bac772f411e75adcfa9b1697ae2 src/sdk/index.ts: id: a857902a703f last_write_checksum: sha1:ed6d64f2a6135349aa8498b8d8cff9ba85c7fb8f @@ -2170,6 +2436,10 @@ trackedFiles: id: 69352e252358 last_write_checksum: sha1:d76a284c998a6d907cae1e043744c2d83ff62e46 pristine_git_object: f8159111cb843ca300b34a7f752f5db697c16165 + src/sdk/models/operations/activatelanguage.ts: + id: 7671588a1230 + last_write_checksum: sha1:7c16be60848c7da1ed059bfab3c67168142cc050 + pristine_git_object: eb4ff81c50c5f2ec089bc8d75556bbe0a1e530ba src/sdk/models/operations/activatesubscriptionnamespace.ts: id: ea39f4e36d28 last_write_checksum: sha1:bfee172c6af5736d4c235579741827d6c0e753b0 @@ -2178,98 +2448,162 @@ trackedFiles: id: 711b49a62950 last_write_checksum: sha1:5614fcdb49e39783d0990479b60edd2e20fb99e5 pristine_git_object: fd43dfd35c9d949d9b106ad986a79bbf75765bbb + src/sdk/models/operations/cancelsubscription.ts: + id: fd569a210d8d + last_write_checksum: sha1:29f6ba462902e3f02b12ee59fb0e2b48c59bb9d7 + pristine_git_object: cca07c2b035e3b59eecdd96bd595a107340b743f src/sdk/models/operations/checkgithubaccess.ts: id: b3f2511108a1 - last_write_checksum: sha1:91c18b9a15e06c57a4eafac6dd09aeb5e2675de9 - pristine_git_object: 77be2176f22f39356ee0dcd4a27017eb3629a8f1 + last_write_checksum: sha1:bfb92a21e7340e4d43452482f3c747e5b8e1897f + pristine_git_object: 5ae8ab22fd70881fff2f0a5898312431ff984ce8 src/sdk/models/operations/create.ts: id: 298e1b0fbdb3 - last_write_checksum: sha1:98c9ba58b50a71a53699d397a635d215ddbc9136 - pristine_git_object: 03ca94d182d4edbdd5368391b3bd5f1cb95b5239 + last_write_checksum: sha1:9976ba3ff4301d84c3e8b5349503a61896d33fb8 + pristine_git_object: 18e8c7d41087d5cd03fc2d34de2500748da9c32e + src/sdk/models/operations/createbillingaddons.ts: + id: 78b2694d8ec1 + last_write_checksum: sha1:c5424ddca98f1ef577740fdee70f472e79ae123b + pristine_git_object: 8aaa5b930fb610c910af2f4b592c6c462d407964 + src/sdk/models/operations/createfreetrial.ts: + id: 9b37a2922dee + last_write_checksum: sha1:4acd97621d3eda92426b48ea7764c9e765e0c353 + pristine_git_object: d19d703ffaaf812b2d634327c637cb7a88f4e16f + src/sdk/models/operations/createlanguagecheckoutsession.ts: + id: a47cc6287195 + last_write_checksum: sha1:b7ce5ee9437aab0a0cfe075eefcee4271a5b6090 + pristine_git_object: 8ce6084abdd159d588caeb01d5ab0a08953d4e1e + src/sdk/models/operations/createorganization.ts: + id: a9f370b6a530 + last_write_checksum: sha1:56cd745bfd36c3f4d36c2da06bba4f87ae922171 + pristine_git_object: 87681147fd33d619c07794d38ffbab38f304ce65 src/sdk/models/operations/createpublishingtoken.ts: id: 24ef1d4dc428 - last_write_checksum: sha1:a09d3ee63b14023cd77b8a2670a4e4fad805d884 - pristine_git_object: fb928b28ac3760d677ffef9f1160f794f21f031f + last_write_checksum: sha1:a52174b5a031098ce742967576ef6bffa30170e8 + pristine_git_object: 2e0a14c8241e008770cba760be169cdb68b38fa5 src/sdk/models/operations/createschemastoreitem.ts: id: 6b8e994033f9 - last_write_checksum: sha1:3d7c8fd5d89f245bc0c7aab64f632db22e3e72ff - pristine_git_object: 854ed23dff3f17cc47e5930a76e1e2a7c30b51cd + last_write_checksum: sha1:eeb632eee73c050942388327e31d9c6011f32fa0 + pristine_git_object: 3fccc5208539f849efc8b2ec3a9b1d481771deed + src/sdk/models/operations/createworkspace.ts: + id: 3c54d529b8fe + last_write_checksum: sha1:39d1e3aae00b102589c8d6a75ab3458ea4112962 + pristine_git_object: 8c0818585c2ed43038b38ba00978276bf90040b2 src/sdk/models/operations/createworkspacetoken.ts: id: 36d34d9eb4bc - last_write_checksum: sha1:6fe2a6d532f643d0b912d6b45b50cdb9c0635a53 - pristine_git_object: adca5ecca25a238613b5d5b18574d8331d801c3f + last_write_checksum: sha1:ee643863b3a92c51203188028949953d95ea8bc1 + pristine_git_object: 943c8adde53663d84297f5bf73425d1073360377 + src/sdk/models/operations/deactivatelanguage.ts: + id: fae5008bd947 + last_write_checksum: sha1:93b0424dbbb6f176049ba4993211cc1bea6fcaa7 + pristine_git_object: d98e754e9cedb56348fcb2505416c10eacfa774b src/sdk/models/operations/deletebillingaddon.ts: id: d10b0af20e92 - last_write_checksum: sha1:2554e08e783731ca077ce9e503b3be8b1a42fe95 - pristine_git_object: 09da6d5e80332372717aecf4a06fbcc5ba258fee + last_write_checksum: sha1:1e95816762655d03431bf768bffd1221a0805813 + pristine_git_object: e239376623ee0ba2cbdc84192abe9f8bc4520fca src/sdk/models/operations/deletepublishingtoken.ts: id: 7688475c7ab9 - last_write_checksum: sha1:7b2130b2ad5c4211c5b795f13e226a8ed23e9f27 - pristine_git_object: f861d6d9eb9b88ba2667c45f431844a036a0906f + last_write_checksum: sha1:742fd444edb440249a131b92660612c49fbe1c9d + pristine_git_object: 697b6d82b5649482cf77b7be82e6ab952923b8ce src/sdk/models/operations/deleteworkspacetoken.ts: id: db293eb4f224 - last_write_checksum: sha1:cc7821bde8d99e6cf4b166f22aba8bbfdf6566f1 - pristine_git_object: fad839f03d7a23b4b53d9c7a10010684ccf9310f + last_write_checksum: sha1:2c48cb616b01c814087c259638a98bd9f6e77822 + pristine_git_object: b30de47d376a619dc4f09cfae5d3e7999624ae18 + src/sdk/models/operations/generatecodesamplepreview.ts: + id: e3d864983f3a + last_write_checksum: sha1:5eabbb6a46832816bc7c3316099a8abd7a700d84 + pristine_git_object: 05a59e0a0e567efbb9f414bee8ab5b9d298dc48a src/sdk/models/operations/generatecodesamplepreviewasync.ts: id: 3c03415eb4b3 - last_write_checksum: sha1:60d699c57fb4e6fc82da123124fe8f724f6299d1 - pristine_git_object: 41d195cb316ac350537df18aa3b2f422be429768 + last_write_checksum: sha1:f4109d121c9c514e55adfd8b1d9a3afac9440006 + pristine_git_object: 1674413488c86df54c51b02295ee04d1df916834 src/sdk/models/operations/getaccesstoken.ts: id: e33a20e4127c last_write_checksum: sha1:a82e59686d0a76f0492af15abd21ac5581147877 pristine_git_object: d3b35e9a04ce54360460250e184c5351da21a91a + src/sdk/models/operations/getbillingaddons.ts: + id: 1b71bc3aa9fe + last_write_checksum: sha1:8befb90c49e48790a3a6e992a4d4f785fb2b9693 + pristine_git_object: 91629552baefc6ac11d4263133c08852e8f8de15 + src/sdk/models/operations/getbillingemail.ts: + id: 9d6b084fb691 + last_write_checksum: sha1:f3d7dd54d1319743dc2362fce1a18b3fdc591fc6 + pristine_git_object: 23b632ca15c7b19eb028d8bac83476358dc7edba src/sdk/models/operations/getbillingoperations.ts: id: 8f5a753411b3 - last_write_checksum: sha1:f67fc769332c56dda79c18be7a559c000ff577cf - pristine_git_object: fe0f7bb982bbd6629f8239be5d901ec3c763f6b6 + last_write_checksum: sha1:66a4c173215c3b7e7976626ae3ae39d2677cc41e + pristine_git_object: 57e4186a80d5a9fdeef840715007ee744f90e3d9 src/sdk/models/operations/getblob.ts: id: ebcce6522c77 last_write_checksum: sha1:5f0846604f8ad582b3e5c9c5a52659f584b99c76 pristine_git_object: 7d05e2fbef77200df4198c98ae77f5c4869c4201 + src/sdk/models/operations/getbusinesstierprices.ts: + id: 84050207df2c + last_write_checksum: sha1:de77e332fecc098e0308e311e8063fbc9e057eb9 + pristine_git_object: e78ae598d72b1139134313af0f1b79d13d532716 src/sdk/models/operations/getchangesreportsignedurl.ts: id: a7f98e1701a2 - last_write_checksum: sha1:02f0efd13581aab018d0ffe9fd94e955a2b41f5d - pristine_git_object: 6114695c27b7fa0c4d53f2dffed3db9f6d43f2be + last_write_checksum: sha1:021054e2e5c32c3f9caacfa305ed05d4c7027eba + pristine_git_object: 157b7967aa9d57681aa0ee17d416b9b85cccba54 src/sdk/models/operations/getcodesamplepreviewasync.ts: id: 882e419a8689 - last_write_checksum: sha1:87b1058a49471e32c948d6e22d217e5d1bcf8fd9 - pristine_git_object: becb91f7a31b5dff6115bdf08e6ff3fab7b9825a + last_write_checksum: sha1:9be8007fcd446b131bf99b4cc9fc40cc3a3d88d7 + pristine_git_object: ac1e9dc0e239b0877462118e447db5fb2c2918d7 src/sdk/models/operations/getcodesamples.ts: id: bf5b6bfd53e5 - last_write_checksum: sha1:689cac67f5a208ef325489a994ac34c5ab141b1d - pristine_git_object: 5dc3d97dce90abd8d6735facf71e6a0ae5cc42f9 + last_write_checksum: sha1:935f43cbd755662de500c652d1aea85a294ffc29 + pristine_git_object: ff4838395c2bc0db65e949492391b92d0bc6f518 src/sdk/models/operations/getgithubaction.ts: id: 7818cff19ced - last_write_checksum: sha1:e83b96201aa9a0224d6dd395cf103e382f991ce0 - pristine_git_object: 6826e436fbbe7226c41b73968dd47babb1364c8d + last_write_checksum: sha1:e03c07ac997b1b3065bbc42e775e44070f72f0cf + pristine_git_object: 57d10d2148a367daac14087bc06effe0c2134e81 src/sdk/models/operations/getgithubsetupstate.ts: id: 14e0cfcd3da4 - last_write_checksum: sha1:69d74b7eae3396297b3a4e087a54d5a305bd8327 - pristine_git_object: 627dd0017e908971c6d36e0828ec755aca11fc9f + last_write_checksum: sha1:9bbf511fa833761f09c20880e7f6435a9e20863c + pristine_git_object: 87f7ca93320da18cebe8f38297d345d2a0dcac9b + src/sdk/models/operations/getlanguages.ts: + id: aa5209a188eb + last_write_checksum: sha1:713be312ef7b5d7a1b5207247c68c4e5cc3b7433 + pristine_git_object: 4e5c641b5e9500157fb204747177a26d86333dc3 src/sdk/models/operations/getlintingreportsignedurl.ts: id: 4b50813b8ce0 - last_write_checksum: sha1:b569ae21dcac263f8bea31e81a0e0d9f2f038a06 - pristine_git_object: aaa494f69be44671b18c3d186f341c76f1475ef3 + last_write_checksum: sha1:fa011600e0ab84921857d3015e1bf2fc27ea945f + pristine_git_object: 55a61995768d990de9a00ed1c4d7126a9c5cf352 src/sdk/models/operations/getmanifest.ts: id: ffc94b39a447 last_write_checksum: sha1:88eab10cbd36a506b83a0103957229ac33d548d5 pristine_git_object: d0b40e85292b03fec9c243929dfeb65f2343b1b2 src/sdk/models/operations/getorganization.ts: id: fa95c49fb6d3 - last_write_checksum: sha1:8ceeaf379189592e4385ebecfa3ed9d30a995083 - pristine_git_object: 26416c151499aca84feb14d332cadc2f5377e505 + last_write_checksum: sha1:c62174a106a15cf666c6909c5390448a529be7b5 + pristine_git_object: 5720cd515392a2d158fcc7226d714c9749436887 + src/sdk/models/operations/getorganizations.ts: + id: 2c00b86dd1f3 + last_write_checksum: sha1:97df64afd5a723d6678dca3905356bd5baf446c6 + pristine_git_object: 6df044bc8814c911302e5c41a3e44af477175dcf + src/sdk/models/operations/getorganizationsubscription.ts: + id: ba591a7dcdf3 + last_write_checksum: sha1:ccbe7641d70269ac63f79a563054fd726b4ddf74 + pristine_git_object: 0789abdeb2d41bc1446454d273d6a4d274c0d14e + src/sdk/models/operations/getorganizationusage.ts: + id: c4dbc2e7fe76 + last_write_checksum: sha1:555f36739c16c6823c33989951aa101862bb0b5b + pristine_git_object: 7ace5da0007e1aed1aa7189b1ef6c655c2156a65 + src/sdk/models/operations/getpublishingtoken.ts: + id: 21508dbb94d6 + last_write_checksum: sha1:24019333d8a3f2b7dca38ce341b54359c7185460 + pristine_git_object: af9d703af94e2160f0b9a77dc59064ff93f519a5 src/sdk/models/operations/getpublishingtokenbyid.ts: id: "153899795912" - last_write_checksum: sha1:a65c35a0417e56958ea33e39ef5a840a1555b14e - pristine_git_object: 1bd4436423065bf4642274117142d9776f9a8d40 + last_write_checksum: sha1:08679d3b76e144636c46caaeb583611d5cf610f0 + pristine_git_object: 6ef13cc4a44fca07e5094f9974095385280e2189 src/sdk/models/operations/getpublishingtokenpublicmetadata.ts: id: da58b0d02d37 - last_write_checksum: sha1:cb78ff0aac94f0e7fcd6628f414a4e99d569932a - pristine_git_object: 260f31da5ed1b2f16e4bbf4fa8000aedc840a4ca + last_write_checksum: sha1:66485f2040ce264f9844b04b0a38bd44bae4b305 + pristine_git_object: e8388ec2a1227b12c88af3f6d45a94d9ac2799ff src/sdk/models/operations/getpublishingtokentargetbyid.ts: id: 0c965b49a419 - last_write_checksum: sha1:6d894ff70dcd2b4d4867830e691424df01f81cfe - pristine_git_object: de712f0be14269b94ca147207ed3109cb49d0ae2 + last_write_checksum: sha1:0d279a3e95223338b8d8684613bcfa85467d34cf + pristine_git_object: 9772793a4cbc997d891e8c2187163d621996cb9f src/sdk/models/operations/getrevisions.ts: id: 344fba7d03a9 last_write_checksum: sha1:4653a43f86f43d4eca37b44b4f470bf84919962f @@ -2278,70 +2612,114 @@ trackedFiles: id: f9118f600231 last_write_checksum: sha1:523102f7fa5eceff5b695ac1ef867341f4ff6775 pristine_git_object: ec7fe9e81fdb8222dac0aad3be42eb0fcdd4e487 + src/sdk/models/operations/gettrialtargets.ts: + id: 44401c73683f + last_write_checksum: sha1:196ae5260be42874f384cef19a4ca22b564c8beb + pristine_git_object: 71146237ed1432448ad3be965b160d35be419b61 + src/sdk/models/operations/getuser.ts: + id: 148061d199c3 + last_write_checksum: sha1:9a70cecf74bf5dfd1262323df171dcb000d92021 + pristine_git_object: 43d588bf714b4cb4da955322a81ce48aed246f7d src/sdk/models/operations/getworkspace.ts: id: 8152056c7440 - last_write_checksum: sha1:cd10a9c59d1cca528524db64967bb413082db84c - pristine_git_object: 7011e266bb2e221d5e381b5eca562ed01f5f2110 + last_write_checksum: sha1:866bc36ffcef1f7982a409f1a62a726e9114f788 + pristine_git_object: 0336c22cc15ff556c5df6eda433c1e62b22a805d src/sdk/models/operations/getworkspaceaccess.ts: id: a2b8598d8eb8 - last_write_checksum: sha1:fb99a21c00b4f3842834ef0eb92d8016d693955b - pristine_git_object: 40ded3d84320ecbf47836dd23cbe6feaf363feaf + last_write_checksum: sha1:b8ab4328c84bbb8c4103c986b0786c8d463ab521 + pristine_git_object: 972c06d0b7b66a9eb88f1e60cea368e61574476c + src/sdk/models/operations/getworkspacebycontext.ts: + id: 7abb25c76195 + last_write_checksum: sha1:6b78710da9d995eb88df89cb5cf7d9d2a52827e0 + pristine_git_object: f01c9534d83570b0605f5a1d9c6f500432b7b146 src/sdk/models/operations/getworkspaceeventsbytarget.ts: id: ba104444648b - last_write_checksum: sha1:aa4879b0cd53d5a2ff67109d663b43c603ed956e - pristine_git_object: 0dfe407401fe7e26c2090d705f801b58bbabc1d4 + last_write_checksum: sha1:ddbd54d73a7d2814f88d7bf1697f9282c2baab7a + pristine_git_object: e258cf6eef188b9843f76c19b9c1b7fe84759e83 src/sdk/models/operations/getworkspacefeatureflags.ts: id: ff40702f7e26 - last_write_checksum: sha1:9247629575be33691e712fa95282536523510b87 - pristine_git_object: a25a3324cea5cd6ac64e1941f94dedee69fe20e7 + last_write_checksum: sha1:b858becdd1e7e3438cf56f6fe160a973b28d95b8 + pristine_git_object: 69333cbdce32e1647b725a9a452607c0d3e6efd5 + src/sdk/models/operations/getworkspaces.ts: + id: ab66eb283870 + last_write_checksum: sha1:0f95576511bdd5d1b12237397ae4c89d5d2d8065 + pristine_git_object: 2ce6e67b0d9cba756c9859f3b9f71968a8e20ffe src/sdk/models/operations/getworkspacesettings.ts: id: 566a8cbb85f5 - last_write_checksum: sha1:bf07db36ba7c96b9c549af1155a1e73caa4f260d - pristine_git_object: d36817fc787a6ef4e888bb278369e1751a89376a + last_write_checksum: sha1:af5db45773a81a81c769814f9f3709e0afa2ded2 + pristine_git_object: 34bd456b17dc6b556dbfe2691d1ef28bb0fbec56 src/sdk/models/operations/getworkspacetargets.ts: id: 4f9296833341 - last_write_checksum: sha1:4b7541e0cf296a2f25c6494d969dae4bf4613628 - pristine_git_object: 395d7b44919f8adaeabf92c15b7c667e103ae4ca + last_write_checksum: sha1:734195c4cc01a1e9cdca746f16d2961ecc35cad0 + pristine_git_object: 55f4528345580e4382c08d9e533dd768492d316a src/sdk/models/operations/getworkspacetargetsdeprecated.ts: id: 331cdea712ef - last_write_checksum: sha1:8b0a3285587166b4436dc70087840e1385c470a4 - pristine_git_object: 7bbc3e779aa23b14b10ed5508cf430f533939705 + last_write_checksum: sha1:74d6b94258008e3b1505e78ce61dd9688c9fa707 + pristine_git_object: 83c8278e3cd1e24d29b88cefd01ed52b7036b827 src/sdk/models/operations/getworkspacetargetssummary.ts: id: e814f687b3b5 - last_write_checksum: sha1:6e12b7df42735ff7c572a3374ef7a43c798811e8 - pristine_git_object: fd06b8e5081923d636d0702405c5a5fe5ea8b03f + last_write_checksum: sha1:e9f19345ffb6f29715c7da9c13bf80143de5b618 + pristine_git_object: b2c9bdae8a6895c53dc97867aa38f6589bea58ce src/sdk/models/operations/getworkspaceteam.ts: id: 223c34d2bb7f - last_write_checksum: sha1:9ce7e2b5911fe6e48540714031843373a247295b - pristine_git_object: 6fb6f30970373d2c03d561c53a60ab62402bc8d5 + last_write_checksum: sha1:fe309b3553ea66c972e74c424719d9d720a4f710 + pristine_git_object: 02d0b3e907caa041af6ce4870fe616a4a8792666 src/sdk/models/operations/getworkspacetokens.ts: id: 0041f2611d2e - last_write_checksum: sha1:5fed4c70435bdcb9345dfed611624c346e27dd96 - pristine_git_object: 9d2fe485678494ec0ff6de2107a23d0b3abb666a + last_write_checksum: sha1:d8ade79bd6d17f59665f992c758117e5b0bc7f88 + pristine_git_object: 7cc10c27a6c7f607dbcdd1efb4c0fc3a91a674af src/sdk/models/operations/githubcheckpublishingprs.ts: id: e2af8578b98f - last_write_checksum: sha1:ff539e4c14947fa8ec1058c2170c90bc657d9c42 - pristine_git_object: 95bf6a5d3e8ccf00f238760186a92ce054893c8a + last_write_checksum: sha1:57aa9436077c8a4141b81229772e2bd26aeacd06 + pristine_git_object: 3d0502e6080fe712531b10cc7c120ddb38b04e21 src/sdk/models/operations/githubcheckpublishingsecrets.ts: id: d468886f0fab - last_write_checksum: sha1:428946f7cc626cae13b7021960e4d54c6014c945 - pristine_git_object: bd2985fb931622f539df348ca1eac28802baf691 + last_write_checksum: sha1:95962a015f32a67f518951273425257cd7924d07 + pristine_git_object: 3613b20029c6b1d12dce48ef5ac37e787cd02175 + src/sdk/models/operations/githubconfigurecodesamples.ts: + id: b409e51d0347 + last_write_checksum: sha1:f12b9b366446d920b7f098ea3aead06a56c37047 + pristine_git_object: 43a532706ee6ef7645be3293d310186e9a96de3b + src/sdk/models/operations/githubconfiguremintlifyrepo.ts: + id: e61b0531568d + last_write_checksum: sha1:80e711aee7ef36dfa87a37650ee67b63bdfa0cdd + pristine_git_object: 83b8f937791ab46f63fb95222d7830328de756e1 + src/sdk/models/operations/githubconfiguretarget.ts: + id: e275a2e704c7 + last_write_checksum: sha1:62e93048bab5e5271e58bcf6e4a5fa3bd1f98e02 + pristine_git_object: 9d5bf15ed624719ce299025841e16c253e58d028 + src/sdk/models/operations/githubstorepublishingsecrets.ts: + id: e4435eabc26f + last_write_checksum: sha1:2d31b569ef32798f23c24c3d8fcc0565c31895bc + pristine_git_object: 57818de2a34d188d3efdf5b1245fb0b1de1c0a9b + src/sdk/models/operations/githubtriggeraction.ts: + id: c2103c216459 + last_write_checksum: sha1:b7426f7c92a412d18de0c5e412d597bd043d1755 + pristine_git_object: 900e76fa21d37d0d5b74e8a9cd39cea973b45921 src/sdk/models/operations/grantuseraccesstoworkspace.ts: id: f6e94c605f79 - last_write_checksum: sha1:e982318355bd73fec06d20cdb56aa6af028de3c3 - pristine_git_object: 310ae56100bb12ba6ac0f4da11041172945ff455 + last_write_checksum: sha1:c4822cb70341084c485200821893682b6f050426 + pristine_git_object: 26cf22e5de424666ef907d4ca9c00ae707325d6f + src/sdk/models/operations/handlecheckoutcallback.ts: + id: c16cc1a562b0 + last_write_checksum: sha1:83ba196497b184bcefde015cd0860e473da7d9ca + pristine_git_object: 68382b99a5b97cf9967b660eb72a7e210f45e35b + src/sdk/models/operations/handlestripewebhook.ts: + id: f0fc75df81b9 + last_write_checksum: sha1:cc5738c63d4ec2b0874d61a555be6d0bfaf02462 + pristine_git_object: 14996626c11af54d7606d54ab9a1f7708d3ef7f1 src/sdk/models/operations/ignoresubscriptionnamespace.ts: id: a6a469a023b0 last_write_checksum: sha1:6177a66b6c0d26feeb8ee0cc6ea58a8c9532afae pristine_git_object: d16b4ae1dc5e63b3e4746bf5f8e3198727cd2e64 src/sdk/models/operations/index.ts: id: b2864d0519d7 - last_write_checksum: sha1:ff9ff490e968d8c15fa0eaf3ba5b513fd2afbd3c - pristine_git_object: 8dba3c94cfab42c45a3df6c62d860917e5e39b3b + last_write_checksum: sha1:a15555719d3177c0918804381b7a05d877e758d3 + pristine_git_object: 19fcf1877d94665f8d3cc6dd7d96e27d44d055f6 src/sdk/models/operations/linkgithubaccess.ts: id: f285440579f5 - last_write_checksum: sha1:2e976baa7954825fe055437eaf7a21e0ee7d047b - pristine_git_object: 4fd15cdb0237270af36bd73bbaf281d49e175bee + last_write_checksum: sha1:64f399a0f5585cbe0fc94c1e6340c3cecff32007 + pristine_git_object: b6ed86d2a9ca4be0e4a09899cc7c5c324b679615 src/sdk/models/operations/listremotesources.ts: id: 7b730ff55828 last_write_checksum: sha1:cb340be89a89cd6a66e8d5294bda632850eff479 @@ -2352,48 +2730,68 @@ trackedFiles: pristine_git_object: beb6c385f01038d9d794166aa96413ea5a96411a src/sdk/models/operations/postworkspaceevents.ts: id: 443a39c5c4a0 - last_write_checksum: sha1:d2a9a36bd5320491aa882fbe4b6f7f9ca8f13833 - pristine_git_object: 5a5f5263000711605040f6ecf30fdf57c7230f43 + last_write_checksum: sha1:3eab2f660b5c9b639845a199bf305a6504f4051d + pristine_git_object: a91c41281783c93ea87f9fe3baa8f2c573939a4a + src/sdk/models/operations/revertsubscriptioncancellation.ts: + id: d7e79342fd8f + last_write_checksum: sha1:10aecf6ef10f3aa7683057af05804ebf5e43c556 + pristine_git_object: c166af727209642a16da2a125ad18955c47411c8 src/sdk/models/operations/revokeuseraccesstoworkspace.ts: id: 0267c35c5833 - last_write_checksum: sha1:764290e23d8d861fe21e5dacf1778c34d1bf00ae - pristine_git_object: cd76fd0e42726785bf4fb4cdb0b798fa80c82bc3 + last_write_checksum: sha1:f0e886ab849474e2e0fba9283f846d563ced0a78 + pristine_git_object: b45c20cc1ddb031cc06d09295c26291aaca6bbc0 src/sdk/models/operations/searchworkspaceevents.ts: id: 6f8583f7ee4e - last_write_checksum: sha1:2abb63c44e16539f678c3ad3a07e29b7c9734685 - pristine_git_object: 51172e1496adb6adaad1455ca26c8238de5d44d6 + last_write_checksum: sha1:30d669390b29fbef60b3b4831d824a2b041b831b + pristine_git_object: 1454f64463007154e95e02a0f88482c42321644e src/sdk/models/operations/setvisibility.ts: id: 5a3c58ba47d9 last_write_checksum: sha1:7d83b03984dd73bccea06b0ccf4bc39fbd9e0855 pristine_git_object: c10cf55bf793261608cee9e830d12f193e84e282 + src/sdk/models/operations/setworkspacefeatureflags.ts: + id: 9c599018c768 + last_write_checksum: sha1:1c268cd9ee9d2132112e7bb667ec6d7c603d778d + pristine_git_object: 58ab8829cc91eecced3e62b2792dbabcca3b0fa0 src/sdk/models/operations/suggest.ts: id: f148a925809c - last_write_checksum: sha1:15e7233f7f4727c41de9a98a304c75d724b3036c - pristine_git_object: c702be55830b8ed1f8b66b6349c8268ef8c1d493 + last_write_checksum: sha1:aa393f0a086133c04f9bd77225be735e8e930585 + pristine_git_object: 2a652f4b0e0e841afdad99b7d1ea885edd283aa8 + src/sdk/models/operations/suggestitems.ts: + id: 525a0fdd0872 + last_write_checksum: sha1:f71408bdc1d3fadfb4622f740cfa91eaf99a7815 + pristine_git_object: 528264649ad4ded129598930f5302b212d3183b2 src/sdk/models/operations/suggestopenapi.ts: id: 5b1a06fbe337 - last_write_checksum: sha1:2f77e062e83de3dffbc80d8f1fcc01077aaa0e90 - pristine_git_object: a930fbc68d8c0f7a617f53b381fef766547eb89f + last_write_checksum: sha1:1096372700bde59916b273fecc46dc41f265ec3f + pristine_git_object: 1f5179f2432cac7f0436c36d34da2f2ce719d82f src/sdk/models/operations/suggestopenapiregistry.ts: id: 37b33631652b - last_write_checksum: sha1:c7830d4537b1c273235676218d7c584318bbca37 - pristine_git_object: d6a454dc0d5be213dfc44acbc0e45ec4786c9a20 + last_write_checksum: sha1:213ee4250679f97431178b95b3884c35f2d26f54 + pristine_git_object: 5d814ebb1e8c2735be112f6903207ec903b8c50e src/sdk/models/operations/updatepublishingtokenexpiration.ts: id: 35d6c8bd5902 - last_write_checksum: sha1:0d986bc32f982eaddd6c23c0d9eed2dc3393df93 - pristine_git_object: 44a6c79d19624023719b883fa7ecf1fd120f6bde + last_write_checksum: sha1:49a737345bcadd2605df538932f40d14ed3be947 + pristine_git_object: 901d385bf6fe4b3bf67048717d1f3a89e560a6cb src/sdk/models/operations/updateworkspacedetails.ts: id: d2d33758dbe5 - last_write_checksum: sha1:b3215b2962044c2cf5d3a9e963577369d8ee12b6 - pristine_git_object: 625921bcfa1dd64286dbd7114911e43855d0e818 + last_write_checksum: sha1:7a1159d67c4cf5e8c702384ffb2a44929559cd89 + pristine_git_object: 893fa0df7513a36df0691e6561d1dba628097fcd src/sdk/models/operations/updateworkspacesettings.ts: id: 197f419d7387 - last_write_checksum: sha1:6cda69690fb8a94e2ed9ed33d9d2c5bf6345fe80 - pristine_git_object: 0736d5eaacb88dea1d89f9d4e11f1183a5c6c8e9 + last_write_checksum: sha1:3ce1fe442a49614927b9a1af49eae9232a0ed67d + pristine_git_object: 2208a87a9f3dd270e162465417179d039aacdbdc src/sdk/models/operations/uploadreport.ts: id: fb8edf333764 - last_write_checksum: sha1:211b1ca98834bfb2ecb61dba2fb8187eff156f17 - pristine_git_object: 0e638bcb9d35c0de71d7ee45f3150ffb28bfd42d + last_write_checksum: sha1:dc3e058ec5b5b24982430d39b33652394fdd65b4 + pristine_git_object: 273c38c389219d2bb108c71dd3b463dd0d1d8a12 + src/sdk/models/operations/upsertbillingemail.ts: + id: 444e1abdb3ed + last_write_checksum: sha1:7480c2a67dffe8336f14add3dd19306012a9df31 + pristine_git_object: 1c5cf0d212b7867c71581660f9adaa64a1927abd + src/sdk/models/operations/validateapikey.ts: + id: 5c8004670f4d + last_write_checksum: sha1:6a1bbf6b25bd386f3ddc8dbea6b5c99429b67a32 + pristine_git_object: 11bd0daa5e28d50e22b7365bfcd679e6e3f69d2a src/sdk/models/shared/accessdetails.ts: id: da844df18a4a last_write_checksum: sha1:742daafa60d5e321c5c7346f68f1b19f457673be @@ -2422,10 +2820,34 @@ trackedFiles: id: 76a3b3412ba3 last_write_checksum: sha1:21b95f1b38fcaac2537e510436770091e7b5f416 pristine_git_object: a8a405e6896a307aace1fddbeffd5328ff6ef0c9 + src/sdk/models/shared/billingemailrequest.ts: + id: 52d437cbd339 + last_write_checksum: sha1:eb364a827f7a20b9b355952c0e4c2ca2441622dc + pristine_git_object: 5563c3884144e45eb654fa6a632c9336afd676b2 + src/sdk/models/shared/billingemailresponse.ts: + id: c12fca3f62b5 + last_write_checksum: sha1:255513ff30379811fd90de0f963ffb9b6b5a0bcc + pristine_git_object: 1c9e32eb90319cf63ce8568dc3ddafb25f0fe0fb src/sdk/models/shared/billingoperationsresponse.ts: id: 76afb75f4e71 - last_write_checksum: sha1:33ed6a66c8c397a0e2937e53fbb338d8ff116be2 - pristine_git_object: cc350339a61bb3c982b2d2b44956aa0883d52ffd + last_write_checksum: sha1:5ea1194ea5344232ec2db3822317d114ca0c8099 + pristine_git_object: 1dd438b0e51f1db593e82670a28debe52573919c + src/sdk/models/shared/businesstierpriceresponse.ts: + id: 027cc4a731d1 + last_write_checksum: sha1:61e12e609faf543953f3953c4f64378f761bf29d + pristine_git_object: b5cc4a0aa024240cee17e552e855268fecd236b4 + src/sdk/models/shared/businesstierpricesresponse.ts: + id: 086ca36fe77c + last_write_checksum: sha1:e8ece6fc70760f9673d46209bf5ee2b043f0d19e + pristine_git_object: b08aa3b2845269f34ddcc886937dcee55f826927 + src/sdk/models/shared/cancelsubscriptionrequest.ts: + id: c464e4df1237 + last_write_checksum: sha1:65aa000f0c126ae1b481f89d1a489bfa8765a4bf + pristine_git_object: 40a3ba2dcdfd8d3a8c1e8156432eea39028794b2 + src/sdk/models/shared/cancelsubscriptionresponse.ts: + id: 300c6bbf6c7c + last_write_checksum: sha1:5987277fd543f6fd6958379a78a6d8cf768b4ede + pristine_git_object: c42e6a0077cfc620154932c93cd8acebf9f43277 src/sdk/models/shared/clievent.ts: id: 9f3aa03e8dbd last_write_checksum: sha1:af691ab2f06a616f3d3eb16db746d726ef582544 @@ -2438,6 +2860,14 @@ trackedFiles: id: 46d7fd3ca624 last_write_checksum: sha1:343fbd3c3746cf29335cc85070c0626267fa6e78 pristine_git_object: 9a13ab99102a71c11e1fb40bbb647b479c4a01a4 + src/sdk/models/shared/createcheckoutsessionresponse.ts: + id: 47328a8ed8f2 + last_write_checksum: sha1:0abb09a276a75b12d8608003412dcfcb77e9ce27 + pristine_git_object: 59b4add908e358f7342ca966b5c3a8eb1b5dded6 + src/sdk/models/shared/createlanguagecheckoutsessionrequest.ts: + id: b2cc9f47a115 + last_write_checksum: sha1:651caf801ab80bf42f632c7c72d62b4cc4cc4757 + pristine_git_object: e53f93f71e67d948c3938473871a7d923d462f98 src/sdk/models/shared/diagnostic.ts: id: 5cf7140f613d last_write_checksum: sha1:e2172926f54a58ff28b611ad590e9a6d7d622ad8 @@ -2446,6 +2876,10 @@ trackedFiles: id: 06328b87893e last_write_checksum: sha1:4caa04063af925189c041a71ad0fd7a1a68527f1 pristine_git_object: a73f1346e48b4c5df223f71f1fd8f5d870ea7b41 + src/sdk/models/shared/getlanguagesresponse.ts: + id: 6edb87ab7ec3 + last_write_checksum: sha1:e0a743baab23b7f7051ffa85ddd5b4df40bd85f0 + pristine_git_object: f7dd88ebbac77f7b084b132052966abefa6e30cd src/sdk/models/shared/getnamespacesresponse.ts: id: 0234f82c7ead last_write_checksum: sha1:a42c7e51036e9fae2097b08f7803cc3789b9f70d @@ -2504,12 +2938,28 @@ trackedFiles: pristine_git_object: e333ff9caf5366a6883aafdd79be3c58a71fd31e src/sdk/models/shared/index.ts: id: e97e906e3c14 - last_write_checksum: sha1:bc6bf2634ace5e0d364a3fb2637f17b14be77316 - pristine_git_object: e39dc7f5942f43828dbe7b53c0c44b818cab1f7b + last_write_checksum: sha1:5df2064988b59d42f554ca6bc5ffc0c893a6910a + pristine_git_object: b2719ca036b316a5f9d60b1ea51a2ab80ddb1587 src/sdk/models/shared/interactiontype.ts: id: 73a96ec481ea last_write_checksum: sha1:7fc60e60329c6df3a784c2e5158b1d8d1f10cdd2 pristine_git_object: e2ee84caf0d94cb5806200ab26647b8097fcee97 + src/sdk/models/shared/languageactivationresponse.ts: + id: e0ed3b4f99b1 + last_write_checksum: sha1:4352bc0dc9f2b7aacec1474e0f73aeb223f2229f + pristine_git_object: 3870001a0ecba9500144d34b47e2fee998e856b1 + src/sdk/models/shared/languagebillingbreakdown.ts: + id: 8f600e4c3311 + last_write_checksum: sha1:b3307cadafede16502136feef7706d7fc0088978 + pristine_git_object: 08d6fc47a291f38649122a64fb172e4401336bc8 + src/sdk/models/shared/languagebillingstatus.ts: + id: a3ecfa270ce7 + last_write_checksum: sha1:ddc490b7ba7b9aa7860307794d77538cb261c305 + pristine_git_object: cab24189f055c3b0f4be10ac2ffc435285dd7426 + src/sdk/models/shared/languageresponse.ts: + id: 24eb8397ff5a + last_write_checksum: sha1:af00e41b88bcdff90f2a7810ca596198b2d6c6f3 + pristine_git_object: 3df90b73d782df15c8d4f4660d86e844337dd05d src/sdk/models/shared/manifest.ts: id: 2e6fde8e0c66 last_write_checksum: sha1:5eaee0d2640cf4124cc61cd97ba5e9b328a7a40d @@ -2532,8 +2982,8 @@ trackedFiles: pristine_git_object: 1868f97c6619afddded5dc96d792196e3da5b8ae src/sdk/models/shared/organization.ts: id: 81e2e4648ecf - last_write_checksum: sha1:9c7fd5e38a5d97d817b98549a65ae82dca3ba332 - pristine_git_object: 1bec40cf3fa800e49d394f33925eb8fb62e3df92 + last_write_checksum: sha1:342cc3b67d116149ad65715ba4fd997cc0e16d30 + pristine_git_object: 7768f43d2dbc2b9d120a8a184f1b00e174a19f93 src/sdk/models/shared/organizationbillingaddonrequest.ts: id: 68bb3af6e769 last_write_checksum: sha1:f3d555bf024ee183ae1c3fce192052b4f7848f8b @@ -2542,6 +2992,10 @@ trackedFiles: id: 772b5d23b73c last_write_checksum: sha1:5da489c032faa16f4eb2bed68428d1b32f81b0cc pristine_git_object: dd61869cda58f09fc3862d34c19770fb022ae4e4 + src/sdk/models/shared/organizationsubscriptionresponse.ts: + id: c689825b7e79 + last_write_checksum: sha1:fa06d1a869c78be53a1406c95594686be1d374b6 + pristine_git_object: 5f060a3654004a9950a2e698e3550924fe3b9629 src/sdk/models/shared/organizationusage.ts: id: 73ed1e866229 last_write_checksum: sha1:16eda083ae6d782f3b2a2d8aeb52196f16f6398b @@ -2550,6 +3004,10 @@ trackedFiles: id: aaccbc6fac33 last_write_checksum: sha1:00ec87175230f18f3d956ccf24363af890342334 pristine_git_object: 8a2f9b6c7c0dcf2cb8d6e04ced747bcfd4403e26 + src/sdk/models/shared/pendingcancellationinfo.ts: + id: 093d17ebb83b + last_write_checksum: sha1:b3d2e87e360210078b3a64894a56eec363eab747 + pristine_git_object: 7c3b95c4d105f48f56d9648abda039adba9a98aa src/sdk/models/shared/preflightrequest.ts: id: 0ad0190d895b last_write_checksum: sha1:4d64dfae66a35d627313230df8664b0b25fed810 @@ -2596,8 +3054,8 @@ trackedFiles: pristine_git_object: 79e7787b2aee4d0d8a7f44ff4c3e4cee5f5cd2e8 src/sdk/models/shared/security.ts: id: 4a9790ed1c2f - last_write_checksum: sha1:bb73fc48b6ac64bd57ce51d5f80e520ca5cd125f - pristine_git_object: a125cf98a705bd591fb7d07e9a2e425cba475e4d + last_write_checksum: sha1:ebc6b85fc7a403adbdc21174619eb9006ce9d0d8 + pristine_git_object: 2de73cfc42c76098e84cb4ec07b621f1553aa86f src/sdk/models/shared/server.ts: id: 14f9929b2b70 last_write_checksum: sha1:00e71e1557c074ad3ad12c47f43e12797fa2292f @@ -2606,10 +3064,6 @@ trackedFiles: id: 165574dcd202 last_write_checksum: sha1:13c8d7926abfed1cdf9efe77a2adf9f2127424ec pristine_git_object: f06d3e5e7e3b37925acb5e9f8ba1421434b7c1bb - src/sdk/models/shared/specbillingbreakdown.ts: - id: 15642870516b - last_write_checksum: sha1:496617f7a218904b3c54785e44cbb06af860772a - pristine_git_object: 3d6d4f640b32785c628eb20a855f3dda33e3c085 src/sdk/models/shared/ssometadata.ts: id: fc4d784bf790 last_write_checksum: sha1:cd76ff0bcd922dba76e9e297047d7c17e9673d6b @@ -2632,8 +3086,8 @@ trackedFiles: pristine_git_object: ec87b1f26b0d4d39789caf922d5b9a2837d26ce9 src/sdk/models/shared/targetbillingbreakdown.ts: id: 7c2b137c7d1b - last_write_checksum: sha1:0ee231c2e69ce3726e9989fcbd8c128c6042d409 - pristine_git_object: 5a4437cab926c0edc9f9e41fa370833d67eb3426 + last_write_checksum: sha1:8932a4133398f8eb01a28303550505706ad9b9f4 + pristine_git_object: 39e85a631788ae25a8ab4d355b3966b16b110dc4 src/sdk/models/shared/targetsdk.ts: id: fb4d5d3ddb37 last_write_checksum: sha1:f54cf4f1381da108e2311372d0c64fa0deb8582a @@ -2646,6 +3100,10 @@ trackedFiles: id: 752540d01865 last_write_checksum: sha1:9ed2f4e9e94aa7ead82beb8a69a1f26ae23d8bd4 pristine_git_object: b97638a75baaf11e1d7cfcfc8e698b842bab4311 + src/sdk/models/shared/trialtargetsresponse.ts: + id: 3123af00eaf4 + last_write_checksum: sha1:b80c4301c3884e3337d5d1189ec3b7a63d60c788 + pristine_git_object: 86d1d3124ab076fb83b7fb3a8c7be05920bcb7e2 src/sdk/models/shared/usagesnippet.ts: id: a0f3fd408a13 last_write_checksum: sha1:f81df6f438c98e79b8d3e344f72e6d61200b2a57 @@ -2704,40 +3162,40 @@ trackedFiles: pristine_git_object: bd8f16117e32f4afa6436789b56d347e50477de2 src/sdk/organizations.ts: id: 727404ccd4e9 - last_write_checksum: sha1:fe248ae93fdf3aed4b5c4d28e6f30562fbe629be - pristine_git_object: 3f669591f2e488474a2fa526470b3c8d77e9dfa7 + last_write_checksum: sha1:d13e4e40bca8a8686c89054788c6391ad84f9081 + pristine_git_object: 94e55aef1504ed55beac4b89fcc8e211869f64c3 src/sdk/publishingtokens.ts: id: 10e6347c43bb - last_write_checksum: sha1:8dc14a488b811b61b8565dc691147ecc15b280f7 - pristine_git_object: 2bc0d815e8a272c9b49c401b72564b7d1d2bc1d1 + last_write_checksum: sha1:2257da918df2b883a06fbeb5c8df256166fc46ff + pristine_git_object: b48df931033abd600a78dddbf9ee0fe055496f55 src/sdk/reports.ts: id: d7a2b074c686 - last_write_checksum: sha1:e1f14a8807fb61dab0a96a776c621ccba666c198 - pristine_git_object: 774743e49ffa26a623119ef302755ff01e9a5213 + last_write_checksum: sha1:496d3f7696e86dc82971ea86e884472ee728118b + pristine_git_object: d5a2683fd8e88572173af47066159750d951cfc9 src/sdk/schemastore.ts: id: 62233e9b9396 - last_write_checksum: sha1:2b7993a69c0a191149b03ec136a54f48783b8c1c - pristine_git_object: adba067dd69869fb27f404c86bffd10fb4253077 + last_write_checksum: sha1:bae15158bff0b600d841985ca1252dfb4ad2ac5b + pristine_git_object: e3fb102310574a6cc3821f96b1e59d98aad887a3 src/sdk/sdk.ts: id: 784571af2f69 - last_write_checksum: sha1:0106097b00619c1bb02c4b1f1a778f336ed3c469 - pristine_git_object: 3bd74485f81c883f1c404ad01e26dd984fc34eb6 + last_write_checksum: sha1:9736d9fc49eb4d8ac5c92e9c7525981d424521c1 + pristine_git_object: e1a43c88e5475803cee363ed28bba819d1882894 src/sdk/shorturls.ts: id: 9ee25c7325b3 - last_write_checksum: sha1:d09eb401e2141c72c6b86c7e04101e2699c28c0b - pristine_git_object: 974686b34425c01e7a7cdb45a077884dc51ee25d + last_write_checksum: sha1:ee20010f9a8590af4484b1a226ab2c6bcbaa623e + pristine_git_object: f75cfd45eb25e350e4711350cb83415249178c42 src/sdk/subscriptions.ts: id: fb904d08fb20 last_write_checksum: sha1:df1d518ddd15920d006141da07eb10bd6ca7fa73 pristine_git_object: 89c90884ba1c3e287808eaec57a49bea6f8f1a0b src/sdk/suggest.ts: id: 499194259a2f - last_write_checksum: sha1:d2fb46ed5af49f3cc5463e133b500dbd7ff2778d - pristine_git_object: 63cb3d5e8944557fef03376c20c6ac3ac79033f0 + last_write_checksum: sha1:166d7eed0467e371b857f9b638549927169511a5 + pristine_git_object: 04cb2e294cb8a21d7f27c94c6e36663419d0d172 src/sdk/types/async.ts: id: 966026768b05 - last_write_checksum: sha1:3ff07b3feaf390ec1aeb18ff938e139c6c4a9585 - pristine_git_object: 689dba5de50e8769e5f3bb913e3f42a146d15bc1 + last_write_checksum: sha1:675d04bb4b4081dc3482f18de98674f9b446e7b4 + pristine_git_object: 1543b95cf7be9b5a871d7395f259dbd65331dc21 src/sdk/types/blobs.ts: id: 1def31341768 last_write_checksum: sha1:cf45d78916671cb6345a11c97c633c64402bc27c @@ -2774,14 +3232,18 @@ trackedFiles: id: 690d294a1973 last_write_checksum: sha1:d33ac686528492f4cdc0dbf81ed343b4afe020fe pristine_git_object: b7a2a13f3dff50663429df24ae2f55b647ff1084 + src/sdk/webhooks.ts: + id: e879e17d0532 + last_write_checksum: sha1:53d30846da89c27b6dd447850aea183c569fe550 + pristine_git_object: e51148f0024721d6899cdb83a2e9afda0cac2e2c src/sdk/workspaces.ts: id: 72b45379c8d9 - last_write_checksum: sha1:9a26563c9fa7b7aa4bb46ca25c66d67c104d6a33 - pristine_git_object: 14be143dd6338a3c9b6482b4a2aa9791ce926b8c + last_write_checksum: sha1:a3328db53158b4001bad3ce868aaa535f8b07c82 + pristine_git_object: a594d1b649e827af042987a401bfffecc8452ee1 tsconfig.json: id: 61ebb9fd6e8c - last_write_checksum: sha1:c3ec7996536cdb9a54319e7d1eb3b199b733d34c - pristine_git_object: 0ccdbe286a8780e06a469a9eb7e2fb95322fd507 + last_write_checksum: sha1:79dc1550d921fefec69f8632ed3b24dad41ca2f6 + pristine_git_object: 76110f883cac40bb04fb2f376cd69ea8c8d6d215 examples: createRemoteSource: speakeasy-default-create-remote-source: @@ -3469,7 +3931,7 @@ examples: include_operation_ids: false responses: 2XX: - application/json: {"specs": [{"billable_units": 747737, "is_archived": true, "namespace": "", "operation_count": 685755, "target_count": 423347, "targets": [{"gen_lock_id": "", "is_active": false, "target": "", "target_name": ""}]}], "total_billable_units": 170324, "total_unique_operations": 141806} + application/json: {"languages": [{"billable_units": 747737, "language": "", "operation_count": 22739, "target_count": 685755, "targets": []}], "total_billable_units": 170324, "total_unique_operations": 141806} 4XX: application/json: {"message": "", "status_code": 978751} getWorkspaceTargetsSummary: @@ -3482,9 +3944,110 @@ examples: application/json: {"has_more": false, "targets": [{"generate_gen_lock_id": "", "generate_target": "", "id": "", "last_event_created_at": "2024-11-26T21:35:59.076Z"}]} 5XX: application/json: {"message": "", "status_code": 446735} + activateLanguage: + speakeasy-default-activate-language: + parameters: + path: + language: "" + responses: + 2XX: + application/json: {"deactivated": false, "language": "", "success": false} + 4XX: + application/json: {"message": "", "status_code": 327306} + cancelSubscription: + speakeasy-default-cancel-subscription: + requestBody: + application/json: {} + responses: + 2XX: + application/json: {"success": true} + 4XX: + application/json: {"message": "", "status_code": 851094} + createLanguageCheckoutSession: + speakeasy-default-create-language-checkout-session: + requestBody: + application/json: {"cancel_url": "https://bony-toothbrush.com/", "languages": [], "success_url": "https://writhing-complication.net"} + responses: + 2XX: + application/json: {"checkout_url": "https://vivid-intervention.net/", "session_id": ""} + 4XX: + application/json: {"message": "", "status_code": 175727} + deactivateLanguage: + speakeasy-default-deactivate-language: + parameters: + path: + language: "" + responses: + 2XX: + application/json: {"deactivated": false, "language": "", "success": false} + 4XX: + application/json: {"message": "", "status_code": 755897} + getBillingEmail: + speakeasy-default-get-billing-email: + responses: + 2XX: + application/json: {"has_stripe_customer": true} + 4XX: + application/json: {"message": "", "status_code": 187677} + getBusinessTierPrices: + speakeasy-default-get-business-tier-prices: + responses: + 2XX: + application/json: {"annual": {"currency": "Argentine Peso", "interval": "", "price_id": "", "product_name": "", "unit_amount": 658853}, "monthly": {"currency": "Somali Shilling", "interval": "", "price_id": "", "product_name": "", "unit_amount": 892617}} + 4XX: + application/json: {"message": "", "status_code": 396294} + getLanguages: + speakeasy-default-get-languages: + responses: + 2XX: + application/json: {"languages": [{"can_deactivate": false, "deactivated": false, "language": ""}]} + 4XX: + application/json: {"message": "", "status_code": 237493} + getOrganizationSubscription: + speakeasy-default-get-organization-subscription: + responses: + 2XX: + application/json: {"account_type": "", "has_subscription": true} + 4XX: + application/json: {"message": "", "status_code": 93356} + getTrialTargets: + speakeasy-default-get-trial-targets: + responses: + 2XX: + application/json: {"available_trials": null, "used_trials": []} + 4XX: + application/json: {"message": "", "status_code": 865555} + handleCheckoutCallback: + speakeasy-default-handle-checkout-callback: + parameters: + query: + session_id: "" + responses: + 4XX: + application/json: {"message": "", "status_code": 172774} + revertSubscriptionCancellation: + speakeasy-default-revert-subscription-cancellation: + responses: + 2XX: + application/json: {"success": true} + 4XX: + application/json: {"message": "", "status_code": 663870} + upsertBillingEmail: + speakeasy-default-upsert-billing-email: + requestBody: + application/json: {"billing_email": "Graciela.Sauer@hotmail.com"} + responses: + 2XX: + application/json: {"has_stripe_customer": true} + 4XX: + application/json: {"message": "", "status_code": 578866} + handleStripeWebhook: + speakeasy-default-handle-stripe-webhook: + requestBody: + application/json: {} examplesVersion: 1.0.2 generatedTests: {} -releaseNotes: "## Typescript SDK Changes:\n* `speakeasy.organizations.getBillingOperations()`: **Added**\n* `speakeasy.events.getTargetsSummary()`: **Added**\n* `speakeasy.artifacts.getNamespaces()`: `response.items[].latestRevisionMetadata` **Changed**\n* `speakeasy.artifacts.getRevisions()`: `response.items[].contentsMetadata` **Changed**\n* `speakeasy.auth.getAccessToken()`: `response.workspaces[].accountType.enum(oss)` **Added**\n* `speakeasy.auth.validateApiKey()`: `response.accountTypeV2.enum(oss)` **Added**\n* `speakeasy.organizations.create()`: \n * `request.accountType.enum(oss)` **Added**\n * `response.accountType.enum(oss)` **Added**\n* `speakeasy.organizations.get()`: `response.accountType.enum(oss)` **Added**\n* `speakeasy.organizations.getAll()`: `response.[].accountType.enum(oss)` **Added**\n* `speakeasy.workspaces.get()`: `response.organization.accountType.enum(oss)` **Added**\n" +releaseNotes: "## Typescript SDK Changes:\n* `speakeasy.publishingTokens.list()`: `request.security` **Added** (Breaking ⚠️)\n* `speakeasy.organizations.getAll()`: \n * `request.security` **Added** (Breaking ⚠️)\n * `response.[]` **Changed** (Breaking ⚠️)\n* `speakeasy.auth.validateApiKey()`: `request.security` **Added** (Breaking ⚠️)\n* `speakeasy.codeSamples.generateCodeSamplePreview()`: `request.security` **Added** (Breaking ⚠️)\n* `speakeasy.codeSamples.generateCodeSamplePreviewAsync()`: `request.security` **Added** (Breaking ⚠️)\n* `speakeasy.events.search()`: `request.security` **Added** (Breaking ⚠️)\n* `speakeasy.events.post()`: `request.security` **Added** (Breaking ⚠️)\n* `speakeasy.events.getTargetsSummary()`: `request.security` **Added** (Breaking ⚠️)\n* `speakeasy.events.getTargetsDeprecated()`: `request.security` **Added** (Breaking ⚠️)\n* `speakeasy.events.getTargets()`: `request.security` **Added** (Breaking ⚠️)\n* `speakeasy.events.getEventsByTarget()`: `request.security` **Added** (Breaking ⚠️)\n* `speakeasy.workspaces.updateSettings()`: `request.security` **Added** (Breaking ⚠️)\n* `speakeasy.workspaces.update()`: `request.security` **Added** (Breaking ⚠️)\n* `speakeasy.codeSamples.get()`: `request.security` **Added** (Breaking ⚠️)\n* `speakeasy.codeSamples.getCodeSamplePreviewAsync()`: `request.security` **Added** (Breaking ⚠️)\n* `speakeasy.github.checkAccess()`: `request.security` **Added** (Breaking ⚠️)\n* `speakeasy.github.checkPublishingPRs()`: `request.security` **Added** (Breaking ⚠️)\n* `speakeasy.github.checkPublishingSecrets()`: `request.security` **Added** (Breaking ⚠️)\n* `speakeasy.github.configureCodeSamples()`: `request.security` **Added** (Breaking ⚠️)\n* `speakeasy.github.configureMintlifyRepo()`: `request.security` **Added** (Breaking ⚠️)\n* `speakeasy.github.configureTarget()`: `request.security` **Added** (Breaking ⚠️)\n* `speakeasy.github.getAction()`: `request.security` **Added** (Breaking ⚠️)\n* `speakeasy.github.getSetup()`: `request.security` **Added** (Breaking ⚠️)\n* `speakeasy.github.linkGithub()`: `request.security` **Added** (Breaking ⚠️)\n* `speakeasy.github.storePublishingSecrets()`: `request.security` **Added** (Breaking ⚠️)\n* `speakeasy.github.triggerAction()`: `request.security` **Added** (Breaking ⚠️)\n* `speakeasy.organizations.create()`: \n * `request` **Changed** (Breaking ⚠️)\n * `response` **Changed** (Breaking ⚠️)\n* `speakeasy.organizations.createBillingAddOns()`: `request.security` **Added** (Breaking ⚠️)\n* `speakeasy.organizations.createFreeTrial()`: `request.security` **Added** (Breaking ⚠️)\n* `speakeasy.organizations.deleteBillingAddOn()`: `request.security` **Added** (Breaking ⚠️)\n* `speakeasy.organizations.get()`: \n * `request.security` **Added** (Breaking ⚠️)\n * `response` **Changed** (Breaking ⚠️)\n* `speakeasy.publishingTokens.resolveMetadata()`: `request.security` **Added** (Breaking ⚠️)\n* `speakeasy.organizations.getBillingAddOns()`: `request.security` **Added** (Breaking ⚠️)\n* `speakeasy.organizations.getBillingOperations()`: \n * `request` **Changed** (Breaking ⚠️)\n * `response` **Changed** (Breaking ⚠️)\n* `speakeasy.organizations.getUsage()`: `request.security` **Added** (Breaking ⚠️)\n* `speakeasy.publishingTokens.create()`: `request.security` **Added** (Breaking ⚠️)\n* `speakeasy.publishingTokens.delete()`: `request.security` **Added** (Breaking ⚠️)\n* `speakeasy.publishingTokens.get()`: `request.security` **Added** (Breaking ⚠️)\n* `speakeasy.auth.getUser()`: `request.security` **Added** (Breaking ⚠️)\n* `speakeasy.auth.getAccess()`: `request.security` **Added** (Breaking ⚠️)\n* `speakeasy.schemaStore.createSchemaStoreItem()`: `request.security` **Added** (Breaking ⚠️)\n* `speakeasy.publishingTokens.update()`: `request.security` **Added** (Breaking ⚠️)\n* `speakeasy.reports.getChangesReportSignedUrl()`: `request.security` **Added** (Breaking ⚠️)\n* `speakeasy.reports.getLintingReportSignedUrl()`: `request.security` **Added** (Breaking ⚠️)\n* `speakeasy.reports.uploadReport()`: `request.security` **Added** (Breaking ⚠️)\n* `speakeasy.publishingTokens.resolveTarget()`: `request.security` **Added** (Breaking ⚠️)\n* `speakeasy.shortUrLs.create()`: `request.security` **Added** (Breaking ⚠️)\n* `speakeasy.suggest.suggest()`: `request.security` **Added** (Breaking ⚠️)\n* `speakeasy.suggest.suggestItems()`: `request.security` **Added** (Breaking ⚠️)\n* `speakeasy.suggest.suggestOpenApi()`: `request.security` **Added** (Breaking ⚠️)\n* `speakeasy.suggest.suggestOpenApiRegistry()`: `request.security` **Added** (Breaking ⚠️)\n* `speakeasy.workspaces.create()`: `request.security` **Added** (Breaking ⚠️)\n* `speakeasy.workspaces.createToken()`: `request.security` **Added** (Breaking ⚠️)\n* `speakeasy.workspaces.deleteToken()`: `request.security` **Added** (Breaking ⚠️)\n* `speakeasy.workspaces.get()`: \n * `request.security` **Added** (Breaking ⚠️)\n * `response.organization` **Changed** (Breaking ⚠️)\n* `speakeasy.workspaces.getAll()`: `request.security` **Added** (Breaking ⚠️)\n* `speakeasy.workspaces.getById()`: `request.security` **Added** (Breaking ⚠️)\n* `speakeasy.workspaces.getFeatureFlags()`: `request.security` **Added** (Breaking ⚠️)\n* `speakeasy.workspaces.getSettings()`: `request.security` **Added** (Breaking ⚠️)\n* `speakeasy.workspaces.getTeam()`: `request.security` **Added** (Breaking ⚠️)\n* `speakeasy.workspaces.getTokens()`: `request.security` **Added** (Breaking ⚠️)\n* `speakeasy.workspaces.grantAccess()`: `request.security` **Added** (Breaking ⚠️)\n* `speakeasy.workspaces.revokeAccess()`: `request.security` **Added** (Breaking ⚠️)\n* `speakeasy.workspaces.setFeatureFlags()`: `request.security` **Added** (Breaking ⚠️)\n* `speakeasy.organizations.upsertBillingEmail()`: **Added**\n* `speakeasy.organizations.getLanguages()`: **Added**\n* `speakeasy.organizations.getBusinessTierPrices()`: **Added**\n* `speakeasy.organizations.getBillingEmail()`: **Added**\n* `speakeasy.organizations.deactivateLanguage()`: **Added**\n* `speakeasy.organizations.activateLanguage()`: **Added**\n* `speakeasy.organizations.createLanguageCheckoutSession()`: **Added**\n* `speakeasy.organizations.getSubscription()`: **Added**\n* `speakeasy.organizations.getTrialTargets()`: **Added**\n* `speakeasy.organizations.handleCheckoutCallback()`: **Added**\n* `speakeasy.organizations.revertSubscriptionCancellation()`: **Added**\n* `speakeasy.organizations.cancelSubscription()`: **Added**\n* `speakeasy.webhooks.handleStripeWebhook()`: **Added**\n" generatedFiles: - .gitattributes - .npmignore diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 7eb21c24..f2673bc2 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,21 +1,20 @@ -speakeasyVersion: 1.736.1 +speakeasyVersion: 1.786.1 sources: my-source: sourceNamespace: my-source - sourceRevisionDigest: sha256:b2a524854e5ca52cdd7bec6ad83685feaf1fa49010e9da4f990a337908e630e3 - sourceBlobDigest: sha256:d4720c8b89c02fb53a33d4c58b04b0661044bc4a2c02226a328e0d35772defc9 + sourceRevisionDigest: sha256:cb6d81a7240885b8fd1ec1b3337633bd712a766af0495d8b02b49039cb2b91c2 + sourceBlobDigest: sha256:b52b712a4fbc22652fafe9dce91309e0db72fa8c8755b9821e56ec1775681978 tags: - latest - - speakeasy-sdk-regen-1753835013 - 0.4.0 targets: speakeasy-client-sdk-typescript: source: my-source sourceNamespace: my-source - sourceRevisionDigest: sha256:b2a524854e5ca52cdd7bec6ad83685feaf1fa49010e9da4f990a337908e630e3 - sourceBlobDigest: sha256:d4720c8b89c02fb53a33d4c58b04b0661044bc4a2c02226a328e0d35772defc9 + sourceRevisionDigest: sha256:cb6d81a7240885b8fd1ec1b3337633bd712a766af0495d8b02b49039cb2b91c2 + sourceBlobDigest: sha256:b52b712a4fbc22652fafe9dce91309e0db72fa8c8755b9821e56ec1775681978 codeSamplesNamespace: my-source-typescript-code-samples - codeSamplesRevisionDigest: sha256:63ed5704a7f9637a517c123c4e07b4b68c5e10eb327ff226e07d9686087bb6f7 + codeSamplesRevisionDigest: sha256:9b1f30bf17dc47711769e9573866318ef5fb75413def8d1fe92b9c01b3aebe3e workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/FUNCTIONS.md b/FUNCTIONS.md index cb39b669..221b50ef 100644 --- a/FUNCTIONS.md +++ b/FUNCTIONS.md @@ -1,11 +1,11 @@ # Standalone Functions > [!NOTE] -> This section is useful if you are using a bundler and targetting browsers and +> This section is useful if you are using a bundler and targeting browsers and > runtimes where the size of an application affects performance and load times. Every method in this SDK is also available as a standalone function. This -alternative API is suitable when targetting the browser or serverless runtimes +alternative API is suitable when targeting the browser or serverless runtimes and using a bundler to build your application since all unused functionality will be tree-shaken away. This includes code for unused methods, Zod schemas, encoding helpers and response handlers. The result is dramatically smaller @@ -24,11 +24,7 @@ import { artifactsCreateRemoteSource } from "@speakeasy-api/speakeasy-client-sdk // Use `SpeakeasyCore` for best tree-shaking performance. // You can create one instance of it to use across an application. -const speakeasy = new SpeakeasyCore({ - security: { - apiKey: "", - }, -}); +const speakeasy = new SpeakeasyCore(); async function run() { const res = await artifactsCreateRemoteSource(speakeasy); diff --git a/REACT_QUERY.md b/REACT_QUERY.md index 94c79edd..cf875070 100644 --- a/REACT_QUERY.md +++ b/REACT_QUERY.md @@ -22,11 +22,7 @@ import { SpeakeasyCore } from "@speakeasy-api/speakeasy-client-sdk-typescript"; import { SpeakeasyProvider } from "@speakeasy-api/speakeasy-client-sdk-typescript/react-query"; const queryClient = new QueryClient(); -const speakeasy = new SpeakeasyCore({ - security: { - apiKey: "", - }, -}); +const speakeasy = new SpeakeasyCore(); // Retries are handled by the underlying SDK. queryClient.setQueryDefaults(["@speakeasy-api/speakeasy-client-sdk-typescript"], { retry: false }); @@ -233,7 +229,9 @@ infinite scrolling and "load more" user interfaces. import { useEventsGetTargetsSummaryInfinite } from "@speakeasy-api/speakeasy-client-sdk-typescript/react-query/eventsGetTargetsSummary.js"; export function Example() { - const { data, error, status, fetchNextPage, hasNextPage } = useEventsGetTargetsSummaryInfinite({}); + const { data, error, status, fetchNextPage, hasNextPage } = useEventsGetTargetsSummaryInfinite({ + apiKey: "", + }, {}); return (
@@ -267,11 +265,7 @@ import { SpeakeasyProvider } from "@speakeasy-api/speakeasy-client-sdk-typescrip import { useArtifactsGetBlobSuspense } from "@speakeasy-api/speakeasy-client-sdk-typescript/react-query/artifactsGetBlob.js"; const queryClient = new QueryClient(); -const speakeasy = new SpeakeasyCore({ - security: { - apiKey: "", - }, -}); +const speakeasy = new SpeakeasyCore(); export function App() { return ( @@ -330,11 +324,7 @@ import { prefetchArtifactsGetBlob } from "@speakeasy-api/speakeasy-client-sdk-ty export default async function Page() { const queryClient = new QueryClient(); - const speakeasy = new SpeakeasyCore({ - security: { - apiKey: "", - }, - }); + const speakeasy = new SpeakeasyCore(); await prefetchArtifactsGetBlob(queryClient, speakeasy, { organizationSlug: "", diff --git a/README.md b/README.md index cf1a60b5..8a82d41f 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,8 @@ ## Summary -Speakeasy API: The Subscriptions API manages subscriptions for CLI and registry events +Speakeasy API: The Speakeasy API allows teams to manage common operations with their APIs +The Subscriptions API manages subscriptions for CLI and registry events For more information about the API: [The Speakeasy Platform Documentation](/docs) @@ -103,8 +104,6 @@ Add the following server definition to your `claude_desktop_config.json` file: "--", "mcp", "start", "--api-key", "...", - "--bearer", "...", - "--workspace-identifier", "...", "--workspace-id", "..." ] } @@ -129,8 +128,6 @@ Create a `.cursor/mcp.json` file in your project root with the following content "--", "mcp", "start", "--api-key", "...", - "--bearer", "...", - "--workspace-identifier", "...", "--workspace-id", "..." ] } @@ -179,11 +176,7 @@ npx -y --package @speakeasy-api/speakeasy-client-sdk-typescript -- mcp start --h ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; -const speakeasy = new Speakeasy({ - security: { - apiKey: "", - }, -}); +const speakeasy = new Speakeasy(); async function run() { await speakeasy.artifacts.createRemoteSource(); @@ -253,15 +246,27 @@ run(); ### [Organizations](docs/sdks/organizations/README.md) +* [activateLanguage](docs/sdks/organizations/README.md#activatelanguage) - Activate language +* [cancelSubscription](docs/sdks/organizations/README.md#cancelsubscription) - Cancel subscription * [create](docs/sdks/organizations/README.md#create) - Create an organization * [createBillingAddOns](docs/sdks/organizations/README.md#createbillingaddons) - Create billing add ons * [createFreeTrial](docs/sdks/organizations/README.md#createfreetrial) - Create a free trial for an organization +* [createLanguageCheckoutSession](docs/sdks/organizations/README.md#createlanguagecheckoutsession) - Create language checkout session +* [deactivateLanguage](docs/sdks/organizations/README.md#deactivatelanguage) - Deactivate language * [deleteBillingAddOn](docs/sdks/organizations/README.md#deletebillingaddon) - Delete billing add ons * [get](docs/sdks/organizations/README.md#get) - Get organization * [getAll](docs/sdks/organizations/README.md#getall) - Get organizations for a user * [getBillingAddOns](docs/sdks/organizations/README.md#getbillingaddons) - Get billing add ons +* [getBillingEmail](docs/sdks/organizations/README.md#getbillingemail) - Get billing email for an organization * [getBillingOperations](docs/sdks/organizations/README.md#getbillingoperations) - Get billing operations breakdown for an organization +* [getBusinessTierPrices](docs/sdks/organizations/README.md#getbusinesstierprices) - Get business tier prices +* [getLanguages](docs/sdks/organizations/README.md#getlanguages) - Get language billing configurations +* [getSubscription](docs/sdks/organizations/README.md#getsubscription) - Get organization subscription +* [getTrialTargets](docs/sdks/organizations/README.md#gettrialtargets) - Get trial targets * [getUsage](docs/sdks/organizations/README.md#getusage) - Get billing usage summary for a particular organization +* [handleCheckoutCallback](docs/sdks/organizations/README.md#handlecheckoutcallback) - Checkout callback +* [revertSubscriptionCancellation](docs/sdks/organizations/README.md#revertsubscriptioncancellation) - Revert subscription cancellation +* [upsertBillingEmail](docs/sdks/organizations/README.md#upsertbillingemail) - Create or update billing email ### [PublishingTokens](docs/sdks/publishingtokens/README.md) @@ -299,6 +304,10 @@ run(); * [suggestOpenAPI](docs/sdks/suggest/README.md#suggestopenapi) - (DEPRECATED) Generate suggestions for improving an OpenAPI document. * [suggestOpenAPIRegistry](docs/sdks/suggest/README.md#suggestopenapiregistry) - Generate suggestions for improving an OpenAPI document stored in the registry. +### [Webhooks](docs/sdks/webhooks/README.md) + +* [handleStripeWebhook](docs/sdks/webhooks/README.md#handlestripewebhook) - Handle Stripe webhook + ### [Workspaces](docs/sdks/workspaces/README.md) * [create](docs/sdks/workspaces/README.md#create) - Create a workspace @@ -345,11 +354,7 @@ run(); import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; import * as errors from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/errors"; -const speakeasy = new Speakeasy({ - security: { - apiKey: "", - }, -}); +const speakeasy = new Speakeasy(); async function run() { try { @@ -420,9 +425,6 @@ import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; const speakeasy = new Speakeasy({ server: "prod", - security: { - apiKey: "", - }, }); async function run() { @@ -441,9 +443,6 @@ import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; const speakeasy = new Speakeasy({ serverURL: "https://api.prod.speakeasy.com", - security: { - apiKey: "", - }, }); async function run() { @@ -517,22 +516,18 @@ const sdk = new Speakeasy({ httpClient: httpClient }); ### Per-Client Security Schemes -This SDK supports the following security schemes globally: +This SDK supports the following security scheme globally: -| Name | Type | Scheme | -| --------------------- | ------ | ----------- | -| `apiKey` | apiKey | API key | -| `bearer` | http | HTTP Bearer | -| `workspaceIdentifier` | apiKey | API key | +| Name | Type | Scheme | +| -------- | ------ | ------- | +| `apiKey` | apiKey | API key | -You can set the security parameters through the `security` optional parameter when initializing the SDK client instance. The selected scheme will be used by default to authenticate with the API for all operations that support it. For example: +To authenticate with the API the `apiKey` parameter must be set when initializing the SDK client instance. For example: ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; const speakeasy = new Speakeasy({ - security: { - apiKey: "", - }, + apiKey: "", }); async function run() { @@ -541,6 +536,24 @@ async function run() { run(); +``` + +### Per-Operation Security Schemes + +Some operations in this SDK require the security scheme to be specified at the request level. For example: +```typescript +import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; + +const speakeasy = new Speakeasy(); + +async function run() { + const result = await speakeasy.auth.getAccess({}, {}); + + console.log(result); +} + +run(); + ``` @@ -553,11 +566,7 @@ To change the default retry strategy for a single API call, simply provide a ret ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; -const speakeasy = new Speakeasy({ - security: { - apiKey: "", - }, -}); +const speakeasy = new Speakeasy(); async function run() { await speakeasy.artifacts.createRemoteSource(undefined, { @@ -593,9 +602,6 @@ const speakeasy = new Speakeasy({ }, retryConnectionErrors: false, }, - security: { - apiKey: "", - }, }); async function run() { @@ -664,15 +670,27 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md). - [`githubLinkGithub`](docs/sdks/github/README.md#linkgithub) - [`githubStorePublishingSecrets`](docs/sdks/github/README.md#storepublishingsecrets) - [`githubTriggerAction`](docs/sdks/github/README.md#triggeraction) +- [`organizationsActivateLanguage`](docs/sdks/organizations/README.md#activatelanguage) - Activate language +- [`organizationsCancelSubscription`](docs/sdks/organizations/README.md#cancelsubscription) - Cancel subscription - [`organizationsCreate`](docs/sdks/organizations/README.md#create) - Create an organization - [`organizationsCreateBillingAddOns`](docs/sdks/organizations/README.md#createbillingaddons) - Create billing add ons - [`organizationsCreateFreeTrial`](docs/sdks/organizations/README.md#createfreetrial) - Create a free trial for an organization +- [`organizationsCreateLanguageCheckoutSession`](docs/sdks/organizations/README.md#createlanguagecheckoutsession) - Create language checkout session +- [`organizationsDeactivateLanguage`](docs/sdks/organizations/README.md#deactivatelanguage) - Deactivate language - [`organizationsDeleteBillingAddOn`](docs/sdks/organizations/README.md#deletebillingaddon) - Delete billing add ons - [`organizationsGet`](docs/sdks/organizations/README.md#get) - Get organization - [`organizationsGetAll`](docs/sdks/organizations/README.md#getall) - Get organizations for a user - [`organizationsGetBillingAddOns`](docs/sdks/organizations/README.md#getbillingaddons) - Get billing add ons +- [`organizationsGetBillingEmail`](docs/sdks/organizations/README.md#getbillingemail) - Get billing email for an organization - [`organizationsGetBillingOperations`](docs/sdks/organizations/README.md#getbillingoperations) - Get billing operations breakdown for an organization +- [`organizationsGetBusinessTierPrices`](docs/sdks/organizations/README.md#getbusinesstierprices) - Get business tier prices +- [`organizationsGetLanguages`](docs/sdks/organizations/README.md#getlanguages) - Get language billing configurations +- [`organizationsGetSubscription`](docs/sdks/organizations/README.md#getsubscription) - Get organization subscription +- [`organizationsGetTrialTargets`](docs/sdks/organizations/README.md#gettrialtargets) - Get trial targets - [`organizationsGetUsage`](docs/sdks/organizations/README.md#getusage) - Get billing usage summary for a particular organization +- [`organizationsHandleCheckoutCallback`](docs/sdks/organizations/README.md#handlecheckoutcallback) - Checkout callback +- [`organizationsRevertSubscriptionCancellation`](docs/sdks/organizations/README.md#revertsubscriptioncancellation) - Revert subscription cancellation +- [`organizationsUpsertBillingEmail`](docs/sdks/organizations/README.md#upsertbillingemail) - Create or update billing email - [`publishingTokensCreate`](docs/sdks/publishingtokens/README.md#create) - Create a publishing token for a workspace - [`publishingTokensDelete`](docs/sdks/publishingtokens/README.md#delete) - Delete a specific publishing token - [`publishingTokensGet`](docs/sdks/publishingtokens/README.md#get) - Get a specific publishing token @@ -691,6 +709,7 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md). - [`suggestSuggestItems`](docs/sdks/suggest/README.md#suggestitems) - Generate generic suggestions for a list of items. - [`suggestSuggestOpenAPI`](docs/sdks/suggest/README.md#suggestopenapi) - (DEPRECATED) Generate suggestions for improving an OpenAPI document. - [`suggestSuggestOpenAPIRegistry`](docs/sdks/suggest/README.md#suggestopenapiregistry) - Generate suggestions for improving an OpenAPI document stored in the registry. +- [`webhooksHandleStripeWebhook`](docs/sdks/webhooks/README.md#handlestripewebhook) - Handle Stripe webhook - [`workspacesCreate`](docs/sdks/workspaces/README.md#create) - Create a workspace - [`workspacesCreateToken`](docs/sdks/workspaces/README.md#createtoken) - Create a token for a particular workspace - [`workspacesDeleteToken`](docs/sdks/workspaces/README.md#deletetoken) - Delete a token for a particular workspace @@ -768,15 +787,27 @@ To learn about this feature and how to get started, check - [`useGithubLinkGithubMutation`](docs/sdks/github/README.md#linkgithub) - [`useGithubStorePublishingSecretsMutation`](docs/sdks/github/README.md#storepublishingsecrets) - [`useGithubTriggerActionMutation`](docs/sdks/github/README.md#triggeraction) +- [`useOrganizationsActivateLanguageMutation`](docs/sdks/organizations/README.md#activatelanguage) - Activate language +- [`useOrganizationsCancelSubscriptionMutation`](docs/sdks/organizations/README.md#cancelsubscription) - Cancel subscription - [`useOrganizationsCreateBillingAddOnsMutation`](docs/sdks/organizations/README.md#createbillingaddons) - Create billing add ons - [`useOrganizationsCreateFreeTrialMutation`](docs/sdks/organizations/README.md#createfreetrial) - Create a free trial for an organization +- [`useOrganizationsCreateLanguageCheckoutSessionMutation`](docs/sdks/organizations/README.md#createlanguagecheckoutsession) - Create language checkout session - [`useOrganizationsCreateMutation`](docs/sdks/organizations/README.md#create) - Create an organization +- [`useOrganizationsDeactivateLanguageMutation`](docs/sdks/organizations/README.md#deactivatelanguage) - Deactivate language - [`useOrganizationsDeleteBillingAddOnMutation`](docs/sdks/organizations/README.md#deletebillingaddon) - Delete billing add ons - [`useOrganizationsGet`](docs/sdks/organizations/README.md#get) - Get organization - [`useOrganizationsGetAll`](docs/sdks/organizations/README.md#getall) - Get organizations for a user - [`useOrganizationsGetBillingAddOns`](docs/sdks/organizations/README.md#getbillingaddons) - Get billing add ons +- [`useOrganizationsGetBillingEmail`](docs/sdks/organizations/README.md#getbillingemail) - Get billing email for an organization - [`useOrganizationsGetBillingOperations`](docs/sdks/organizations/README.md#getbillingoperations) - Get billing operations breakdown for an organization +- [`useOrganizationsGetBusinessTierPrices`](docs/sdks/organizations/README.md#getbusinesstierprices) - Get business tier prices +- [`useOrganizationsGetLanguages`](docs/sdks/organizations/README.md#getlanguages) - Get language billing configurations +- [`useOrganizationsGetSubscription`](docs/sdks/organizations/README.md#getsubscription) - Get organization subscription +- [`useOrganizationsGetTrialTargets`](docs/sdks/organizations/README.md#gettrialtargets) - Get trial targets - [`useOrganizationsGetUsage`](docs/sdks/organizations/README.md#getusage) - Get billing usage summary for a particular organization +- [`useOrganizationsHandleCheckoutCallback`](docs/sdks/organizations/README.md#handlecheckoutcallback) - Checkout callback +- [`useOrganizationsRevertSubscriptionCancellationMutation`](docs/sdks/organizations/README.md#revertsubscriptioncancellation) - Revert subscription cancellation +- [`useOrganizationsUpsertBillingEmailMutation`](docs/sdks/organizations/README.md#upsertbillingemail) - Create or update billing email - [`usePublishingTokensCreateMutation`](docs/sdks/publishingtokens/README.md#create) - Create a publishing token for a workspace - [`usePublishingTokensDeleteMutation`](docs/sdks/publishingtokens/README.md#delete) - Delete a specific publishing token - [`usePublishingTokensGet`](docs/sdks/publishingtokens/README.md#get) - Get a specific publishing token @@ -795,6 +826,7 @@ To learn about this feature and how to get started, check - [`useSuggestSuggestMutation`](docs/sdks/suggest/README.md#suggest) - Generate suggestions for improving an OpenAPI document. - [`useSuggestSuggestOpenAPIMutation`](docs/sdks/suggest/README.md#suggestopenapi) - (DEPRECATED) Generate suggestions for improving an OpenAPI document. - [`useSuggestSuggestOpenAPIRegistryMutation`](docs/sdks/suggest/README.md#suggestopenapiregistry) - Generate suggestions for improving an OpenAPI document stored in the registry. +- [`useWebhooksHandleStripeWebhookMutation`](docs/sdks/webhooks/README.md#handlestripewebhook) - Handle Stripe webhook - [`useWorkspacesCreateMutation`](docs/sdks/workspaces/README.md#create) - Create a workspace - [`useWorkspacesCreateTokenMutation`](docs/sdks/workspaces/README.md#createtoken) - Create a token for a particular workspace - [`useWorkspacesDeleteTokenMutation`](docs/sdks/workspaces/README.md#deletetoken) - Delete a token for a particular workspace @@ -867,14 +899,12 @@ Here's an example of one such pagination call: ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; -const speakeasy = new Speakeasy({ - security: { - apiKey: "", - }, -}); +const speakeasy = new Speakeasy(); async function run() { - const result = await speakeasy.events.getTargetsSummary({}); + const result = await speakeasy.events.getTargetsSummary({ + apiKey: "", + }, {}); for await (const page of result) { console.log(page); @@ -904,14 +934,12 @@ Certain SDK methods accept files as part of a multi-part request. It is possible import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; import { openAsBlob } from "node:fs"; -const speakeasy = new Speakeasy({ - security: { - apiKey: "", - }, -}); +const speakeasy = new Speakeasy(); async function run() { const result = await speakeasy.codeSamples.generateCodeSamplePreview({ + apiKey: "", + }, { language: "", schemaFile: await openAsBlob("example.file"), }); diff --git a/RELEASES.md b/RELEASES.md index 4cb649a9..9044a799 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1716,4 +1716,14 @@ Based on: ### 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 +- [NPM v5.0.0-rc.5] https://www.npmjs.com/package/@speakeasy-api/speakeasy-client-sdk-typescript/v/5.0.0-rc.5 - . + +## 2026-06-27 00:50:54 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.786.1 (2.913.3) https://github.com/speakeasy-api/speakeasy +### Generated +- [typescript v5.0.0-rc.6] . +### Releases +- [NPM v5.0.0-rc.6] https://www.npmjs.com/package/@speakeasy-api/speakeasy-client-sdk-typescript/v/5.0.0-rc.6 - . \ No newline at end of file diff --git a/USAGE.md b/USAGE.md index a7ec032a..239bbfb4 100644 --- a/USAGE.md +++ b/USAGE.md @@ -2,11 +2,7 @@ ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; -const speakeasy = new Speakeasy({ - security: { - apiKey: "", - }, -}); +const speakeasy = new Speakeasy(); async function run() { await speakeasy.artifacts.createRemoteSource(); diff --git a/docs/sdk/models/operations/activatelanguagerequest.md b/docs/sdk/models/operations/activatelanguagerequest.md new file mode 100644 index 00000000..b98e3f6c --- /dev/null +++ b/docs/sdk/models/operations/activatelanguagerequest.md @@ -0,0 +1,17 @@ +# ActivateLanguageRequest + +## Example Usage + +```typescript +import { ActivateLanguageRequest } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: ActivateLanguageRequest = { + language: "", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | +| `language` | *string* | :heavy_check_mark: | The target language (e.g., typescript, python, go) | \ No newline at end of file diff --git a/docs/sdk/models/operations/activatelanguagesecurity.md b/docs/sdk/models/operations/activatelanguagesecurity.md new file mode 100644 index 00000000..4727434a --- /dev/null +++ b/docs/sdk/models/operations/activatelanguagesecurity.md @@ -0,0 +1,17 @@ +# ActivateLanguageSecurity + +## Example Usage + +```typescript +import { ActivateLanguageSecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: ActivateLanguageSecurity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `apiKey` | *string* | :heavy_minus_sign: | N/A | +| `bearer` | *string* | :heavy_minus_sign: | N/A | +| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/cancelsubscriptionsecurity.md b/docs/sdk/models/operations/cancelsubscriptionsecurity.md new file mode 100644 index 00000000..863e5719 --- /dev/null +++ b/docs/sdk/models/operations/cancelsubscriptionsecurity.md @@ -0,0 +1,17 @@ +# CancelSubscriptionSecurity + +## Example Usage + +```typescript +import { CancelSubscriptionSecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: CancelSubscriptionSecurity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `apiKey` | *string* | :heavy_minus_sign: | N/A | +| `bearer` | *string* | :heavy_minus_sign: | N/A | +| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/checkgithubaccesssecurity.md b/docs/sdk/models/operations/checkgithubaccesssecurity.md new file mode 100644 index 00000000..8a4b4d96 --- /dev/null +++ b/docs/sdk/models/operations/checkgithubaccesssecurity.md @@ -0,0 +1,17 @@ +# CheckGithubAccessSecurity + +## Example Usage + +```typescript +import { CheckGithubAccessSecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: CheckGithubAccessSecurity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `apiKey` | *string* | :heavy_minus_sign: | N/A | +| `bearer` | *string* | :heavy_minus_sign: | N/A | +| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/createbillingaddonssecurity.md b/docs/sdk/models/operations/createbillingaddonssecurity.md new file mode 100644 index 00000000..bb528a50 --- /dev/null +++ b/docs/sdk/models/operations/createbillingaddonssecurity.md @@ -0,0 +1,17 @@ +# CreateBillingAddOnsSecurity + +## Example Usage + +```typescript +import { CreateBillingAddOnsSecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: CreateBillingAddOnsSecurity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `apiKey` | *string* | :heavy_minus_sign: | N/A | +| `bearer` | *string* | :heavy_minus_sign: | N/A | +| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/createfreetrialsecurity.md b/docs/sdk/models/operations/createfreetrialsecurity.md new file mode 100644 index 00000000..9ae8b7e2 --- /dev/null +++ b/docs/sdk/models/operations/createfreetrialsecurity.md @@ -0,0 +1,17 @@ +# CreateFreeTrialSecurity + +## Example Usage + +```typescript +import { CreateFreeTrialSecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: CreateFreeTrialSecurity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `apiKey` | *string* | :heavy_minus_sign: | N/A | +| `bearer` | *string* | :heavy_minus_sign: | N/A | +| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/createlanguagecheckoutsessionsecurity.md b/docs/sdk/models/operations/createlanguagecheckoutsessionsecurity.md new file mode 100644 index 00000000..480f2e9b --- /dev/null +++ b/docs/sdk/models/operations/createlanguagecheckoutsessionsecurity.md @@ -0,0 +1,17 @@ +# CreateLanguageCheckoutSessionSecurity + +## Example Usage + +```typescript +import { CreateLanguageCheckoutSessionSecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: CreateLanguageCheckoutSessionSecurity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `apiKey` | *string* | :heavy_minus_sign: | N/A | +| `bearer` | *string* | :heavy_minus_sign: | N/A | +| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/createorganizationsecurity.md b/docs/sdk/models/operations/createorganizationsecurity.md new file mode 100644 index 00000000..3d59b38b --- /dev/null +++ b/docs/sdk/models/operations/createorganizationsecurity.md @@ -0,0 +1,17 @@ +# CreateOrganizationSecurity + +## Example Usage + +```typescript +import { CreateOrganizationSecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: CreateOrganizationSecurity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `apiKey` | *string* | :heavy_minus_sign: | N/A | +| `bearer` | *string* | :heavy_minus_sign: | N/A | +| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/createpublishingtokensecurity.md b/docs/sdk/models/operations/createpublishingtokensecurity.md new file mode 100644 index 00000000..6c267807 --- /dev/null +++ b/docs/sdk/models/operations/createpublishingtokensecurity.md @@ -0,0 +1,17 @@ +# CreatePublishingTokenSecurity + +## Example Usage + +```typescript +import { CreatePublishingTokenSecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: CreatePublishingTokenSecurity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `apiKey` | *string* | :heavy_minus_sign: | N/A | +| `bearer` | *string* | :heavy_minus_sign: | N/A | +| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/createschemastoreitemsecurity.md b/docs/sdk/models/operations/createschemastoreitemsecurity.md new file mode 100644 index 00000000..7b80ac59 --- /dev/null +++ b/docs/sdk/models/operations/createschemastoreitemsecurity.md @@ -0,0 +1,17 @@ +# CreateSchemaStoreItemSecurity + +## Example Usage + +```typescript +import { CreateSchemaStoreItemSecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: CreateSchemaStoreItemSecurity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `apiKey` | *string* | :heavy_minus_sign: | N/A | +| `bearer` | *string* | :heavy_minus_sign: | N/A | +| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/createsecurity.md b/docs/sdk/models/operations/createsecurity.md new file mode 100644 index 00000000..2bdfc8e7 --- /dev/null +++ b/docs/sdk/models/operations/createsecurity.md @@ -0,0 +1,17 @@ +# CreateSecurity + +## Example Usage + +```typescript +import { CreateSecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: CreateSecurity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `apiKey` | *string* | :heavy_minus_sign: | N/A | +| `bearer` | *string* | :heavy_minus_sign: | N/A | +| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/createworkspacesecurity.md b/docs/sdk/models/operations/createworkspacesecurity.md new file mode 100644 index 00000000..279d95a0 --- /dev/null +++ b/docs/sdk/models/operations/createworkspacesecurity.md @@ -0,0 +1,17 @@ +# CreateWorkspaceSecurity + +## Example Usage + +```typescript +import { CreateWorkspaceSecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: CreateWorkspaceSecurity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `apiKey` | *string* | :heavy_minus_sign: | N/A | +| `bearer` | *string* | :heavy_minus_sign: | N/A | +| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/createworkspacetokensecurity.md b/docs/sdk/models/operations/createworkspacetokensecurity.md new file mode 100644 index 00000000..5c7f4991 --- /dev/null +++ b/docs/sdk/models/operations/createworkspacetokensecurity.md @@ -0,0 +1,17 @@ +# CreateWorkspaceTokenSecurity + +## Example Usage + +```typescript +import { CreateWorkspaceTokenSecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: CreateWorkspaceTokenSecurity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `apiKey` | *string* | :heavy_minus_sign: | N/A | +| `bearer` | *string* | :heavy_minus_sign: | N/A | +| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/deactivatelanguagerequest.md b/docs/sdk/models/operations/deactivatelanguagerequest.md new file mode 100644 index 00000000..4dfced8d --- /dev/null +++ b/docs/sdk/models/operations/deactivatelanguagerequest.md @@ -0,0 +1,17 @@ +# DeactivateLanguageRequest + +## Example Usage + +```typescript +import { DeactivateLanguageRequest } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: DeactivateLanguageRequest = { + language: "", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | +| `language` | *string* | :heavy_check_mark: | The target language (e.g., typescript, python, go) | \ No newline at end of file diff --git a/docs/sdk/models/operations/deactivatelanguagesecurity.md b/docs/sdk/models/operations/deactivatelanguagesecurity.md new file mode 100644 index 00000000..9b294e18 --- /dev/null +++ b/docs/sdk/models/operations/deactivatelanguagesecurity.md @@ -0,0 +1,17 @@ +# DeactivateLanguageSecurity + +## Example Usage + +```typescript +import { DeactivateLanguageSecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: DeactivateLanguageSecurity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `apiKey` | *string* | :heavy_minus_sign: | N/A | +| `bearer` | *string* | :heavy_minus_sign: | N/A | +| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/deletebillingaddonsecurity.md b/docs/sdk/models/operations/deletebillingaddonsecurity.md new file mode 100644 index 00000000..bb33cf5e --- /dev/null +++ b/docs/sdk/models/operations/deletebillingaddonsecurity.md @@ -0,0 +1,17 @@ +# DeleteBillingAddOnSecurity + +## Example Usage + +```typescript +import { DeleteBillingAddOnSecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: DeleteBillingAddOnSecurity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `apiKey` | *string* | :heavy_minus_sign: | N/A | +| `bearer` | *string* | :heavy_minus_sign: | N/A | +| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/deletepublishingtokensecurity.md b/docs/sdk/models/operations/deletepublishingtokensecurity.md new file mode 100644 index 00000000..3a0af320 --- /dev/null +++ b/docs/sdk/models/operations/deletepublishingtokensecurity.md @@ -0,0 +1,17 @@ +# DeletePublishingTokenSecurity + +## Example Usage + +```typescript +import { DeletePublishingTokenSecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: DeletePublishingTokenSecurity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `apiKey` | *string* | :heavy_minus_sign: | N/A | +| `bearer` | *string* | :heavy_minus_sign: | N/A | +| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/deleteworkspacetokensecurity.md b/docs/sdk/models/operations/deleteworkspacetokensecurity.md new file mode 100644 index 00000000..3451a4be --- /dev/null +++ b/docs/sdk/models/operations/deleteworkspacetokensecurity.md @@ -0,0 +1,17 @@ +# DeleteWorkspaceTokenSecurity + +## Example Usage + +```typescript +import { DeleteWorkspaceTokenSecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: DeleteWorkspaceTokenSecurity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `apiKey` | *string* | :heavy_minus_sign: | N/A | +| `bearer` | *string* | :heavy_minus_sign: | N/A | +| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/generatecodesamplepreviewasyncsecurity.md b/docs/sdk/models/operations/generatecodesamplepreviewasyncsecurity.md new file mode 100644 index 00000000..be3f87f5 --- /dev/null +++ b/docs/sdk/models/operations/generatecodesamplepreviewasyncsecurity.md @@ -0,0 +1,17 @@ +# GenerateCodeSamplePreviewAsyncSecurity + +## Example Usage + +```typescript +import { GenerateCodeSamplePreviewAsyncSecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: GenerateCodeSamplePreviewAsyncSecurity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `apiKey` | *string* | :heavy_minus_sign: | N/A | +| `bearer` | *string* | :heavy_minus_sign: | N/A | +| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/generatecodesamplepreviewsecurity.md b/docs/sdk/models/operations/generatecodesamplepreviewsecurity.md new file mode 100644 index 00000000..fafd7911 --- /dev/null +++ b/docs/sdk/models/operations/generatecodesamplepreviewsecurity.md @@ -0,0 +1,17 @@ +# GenerateCodeSamplePreviewSecurity + +## Example Usage + +```typescript +import { GenerateCodeSamplePreviewSecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: GenerateCodeSamplePreviewSecurity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `apiKey` | *string* | :heavy_minus_sign: | N/A | +| `bearer` | *string* | :heavy_minus_sign: | N/A | +| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getbillingaddonssecurity.md b/docs/sdk/models/operations/getbillingaddonssecurity.md new file mode 100644 index 00000000..eecbd04e --- /dev/null +++ b/docs/sdk/models/operations/getbillingaddonssecurity.md @@ -0,0 +1,17 @@ +# GetBillingAddOnsSecurity + +## Example Usage + +```typescript +import { GetBillingAddOnsSecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: GetBillingAddOnsSecurity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `apiKey` | *string* | :heavy_minus_sign: | N/A | +| `bearer` | *string* | :heavy_minus_sign: | N/A | +| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getbillingemailsecurity.md b/docs/sdk/models/operations/getbillingemailsecurity.md new file mode 100644 index 00000000..14b51883 --- /dev/null +++ b/docs/sdk/models/operations/getbillingemailsecurity.md @@ -0,0 +1,17 @@ +# GetBillingEmailSecurity + +## Example Usage + +```typescript +import { GetBillingEmailSecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: GetBillingEmailSecurity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `apiKey` | *string* | :heavy_minus_sign: | N/A | +| `bearer` | *string* | :heavy_minus_sign: | N/A | +| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getbillingoperationsrequest.md b/docs/sdk/models/operations/getbillingoperationsrequest.md deleted file mode 100644 index 6a9aa295..00000000 --- a/docs/sdk/models/operations/getbillingoperationsrequest.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetBillingOperationsRequest - -## Example Usage - -```typescript -import { GetBillingOperationsRequest } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; - -let value: GetBillingOperationsRequest = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | -| `includeOperationIds` | *boolean* | :heavy_minus_sign: | Whether to include operation IDs in the response | \ No newline at end of file diff --git a/docs/sdk/models/operations/getbillingoperationssecurity.md b/docs/sdk/models/operations/getbillingoperationssecurity.md new file mode 100644 index 00000000..6c0bb9ae --- /dev/null +++ b/docs/sdk/models/operations/getbillingoperationssecurity.md @@ -0,0 +1,17 @@ +# GetBillingOperationsSecurity + +## Example Usage + +```typescript +import { GetBillingOperationsSecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: GetBillingOperationsSecurity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `apiKey` | *string* | :heavy_minus_sign: | N/A | +| `bearer` | *string* | :heavy_minus_sign: | N/A | +| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getbusinesstierpricessecurity.md b/docs/sdk/models/operations/getbusinesstierpricessecurity.md new file mode 100644 index 00000000..565c879f --- /dev/null +++ b/docs/sdk/models/operations/getbusinesstierpricessecurity.md @@ -0,0 +1,17 @@ +# GetBusinessTierPricesSecurity + +## Example Usage + +```typescript +import { GetBusinessTierPricesSecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: GetBusinessTierPricesSecurity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `apiKey` | *string* | :heavy_minus_sign: | N/A | +| `bearer` | *string* | :heavy_minus_sign: | N/A | +| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getchangesreportsignedurlsecurity.md b/docs/sdk/models/operations/getchangesreportsignedurlsecurity.md new file mode 100644 index 00000000..6df618d7 --- /dev/null +++ b/docs/sdk/models/operations/getchangesreportsignedurlsecurity.md @@ -0,0 +1,17 @@ +# GetChangesReportSignedUrlSecurity + +## Example Usage + +```typescript +import { GetChangesReportSignedUrlSecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: GetChangesReportSignedUrlSecurity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `apiKey` | *string* | :heavy_minus_sign: | N/A | +| `bearer` | *string* | :heavy_minus_sign: | N/A | +| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getcodesamplepreviewasyncsecurity.md b/docs/sdk/models/operations/getcodesamplepreviewasyncsecurity.md new file mode 100644 index 00000000..5be78197 --- /dev/null +++ b/docs/sdk/models/operations/getcodesamplepreviewasyncsecurity.md @@ -0,0 +1,17 @@ +# GetCodeSamplePreviewAsyncSecurity + +## Example Usage + +```typescript +import { GetCodeSamplePreviewAsyncSecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: GetCodeSamplePreviewAsyncSecurity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `apiKey` | *string* | :heavy_minus_sign: | N/A | +| `bearer` | *string* | :heavy_minus_sign: | N/A | +| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getcodesamplessecurity.md b/docs/sdk/models/operations/getcodesamplessecurity.md new file mode 100644 index 00000000..518b142a --- /dev/null +++ b/docs/sdk/models/operations/getcodesamplessecurity.md @@ -0,0 +1,17 @@ +# GetCodeSamplesSecurity + +## Example Usage + +```typescript +import { GetCodeSamplesSecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: GetCodeSamplesSecurity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `apiKey` | *string* | :heavy_minus_sign: | N/A | +| `bearer` | *string* | :heavy_minus_sign: | N/A | +| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getgithubactionsecurity.md b/docs/sdk/models/operations/getgithubactionsecurity.md new file mode 100644 index 00000000..1c1ca607 --- /dev/null +++ b/docs/sdk/models/operations/getgithubactionsecurity.md @@ -0,0 +1,17 @@ +# GetGitHubActionSecurity + +## Example Usage + +```typescript +import { GetGitHubActionSecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: GetGitHubActionSecurity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `apiKey` | *string* | :heavy_minus_sign: | N/A | +| `bearer` | *string* | :heavy_minus_sign: | N/A | +| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getgithubsetupstatesecurity.md b/docs/sdk/models/operations/getgithubsetupstatesecurity.md new file mode 100644 index 00000000..1c40c9f1 --- /dev/null +++ b/docs/sdk/models/operations/getgithubsetupstatesecurity.md @@ -0,0 +1,17 @@ +# GetGithubSetupStateSecurity + +## Example Usage + +```typescript +import { GetGithubSetupStateSecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: GetGithubSetupStateSecurity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `apiKey` | *string* | :heavy_minus_sign: | N/A | +| `bearer` | *string* | :heavy_minus_sign: | N/A | +| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getlanguagessecurity.md b/docs/sdk/models/operations/getlanguagessecurity.md new file mode 100644 index 00000000..0ca441aa --- /dev/null +++ b/docs/sdk/models/operations/getlanguagessecurity.md @@ -0,0 +1,17 @@ +# GetLanguagesSecurity + +## Example Usage + +```typescript +import { GetLanguagesSecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: GetLanguagesSecurity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `apiKey` | *string* | :heavy_minus_sign: | N/A | +| `bearer` | *string* | :heavy_minus_sign: | N/A | +| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getlintingreportsignedurlsecurity.md b/docs/sdk/models/operations/getlintingreportsignedurlsecurity.md new file mode 100644 index 00000000..1b00a963 --- /dev/null +++ b/docs/sdk/models/operations/getlintingreportsignedurlsecurity.md @@ -0,0 +1,17 @@ +# GetLintingReportSignedUrlSecurity + +## Example Usage + +```typescript +import { GetLintingReportSignedUrlSecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: GetLintingReportSignedUrlSecurity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `apiKey` | *string* | :heavy_minus_sign: | N/A | +| `bearer` | *string* | :heavy_minus_sign: | N/A | +| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getorganizationsecurity.md b/docs/sdk/models/operations/getorganizationsecurity.md new file mode 100644 index 00000000..25a0a7fe --- /dev/null +++ b/docs/sdk/models/operations/getorganizationsecurity.md @@ -0,0 +1,17 @@ +# GetOrganizationSecurity + +## Example Usage + +```typescript +import { GetOrganizationSecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: GetOrganizationSecurity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `apiKey` | *string* | :heavy_minus_sign: | N/A | +| `bearer` | *string* | :heavy_minus_sign: | N/A | +| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getorganizationssecurity.md b/docs/sdk/models/operations/getorganizationssecurity.md new file mode 100644 index 00000000..39992cfb --- /dev/null +++ b/docs/sdk/models/operations/getorganizationssecurity.md @@ -0,0 +1,17 @@ +# GetOrganizationsSecurity + +## Example Usage + +```typescript +import { GetOrganizationsSecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: GetOrganizationsSecurity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `apiKey` | *string* | :heavy_minus_sign: | N/A | +| `bearer` | *string* | :heavy_minus_sign: | N/A | +| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getorganizationsubscriptionsecurity.md b/docs/sdk/models/operations/getorganizationsubscriptionsecurity.md new file mode 100644 index 00000000..e93fab07 --- /dev/null +++ b/docs/sdk/models/operations/getorganizationsubscriptionsecurity.md @@ -0,0 +1,17 @@ +# GetOrganizationSubscriptionSecurity + +## Example Usage + +```typescript +import { GetOrganizationSubscriptionSecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: GetOrganizationSubscriptionSecurity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `apiKey` | *string* | :heavy_minus_sign: | N/A | +| `bearer` | *string* | :heavy_minus_sign: | N/A | +| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getorganizationusagesecurity.md b/docs/sdk/models/operations/getorganizationusagesecurity.md new file mode 100644 index 00000000..33888a2c --- /dev/null +++ b/docs/sdk/models/operations/getorganizationusagesecurity.md @@ -0,0 +1,17 @@ +# GetOrganizationUsageSecurity + +## Example Usage + +```typescript +import { GetOrganizationUsageSecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: GetOrganizationUsageSecurity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `apiKey` | *string* | :heavy_minus_sign: | N/A | +| `bearer` | *string* | :heavy_minus_sign: | N/A | +| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getpublishingtokenbyidsecurity.md b/docs/sdk/models/operations/getpublishingtokenbyidsecurity.md new file mode 100644 index 00000000..fa06d23d --- /dev/null +++ b/docs/sdk/models/operations/getpublishingtokenbyidsecurity.md @@ -0,0 +1,17 @@ +# GetPublishingTokenByIDSecurity + +## Example Usage + +```typescript +import { GetPublishingTokenByIDSecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: GetPublishingTokenByIDSecurity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `apiKey` | *string* | :heavy_minus_sign: | N/A | +| `bearer` | *string* | :heavy_minus_sign: | N/A | +| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getpublishingtokenpublicmetadatasecurity.md b/docs/sdk/models/operations/getpublishingtokenpublicmetadatasecurity.md new file mode 100644 index 00000000..7d1470b7 --- /dev/null +++ b/docs/sdk/models/operations/getpublishingtokenpublicmetadatasecurity.md @@ -0,0 +1,17 @@ +# GetPublishingTokenPublicMetadataSecurity + +## Example Usage + +```typescript +import { GetPublishingTokenPublicMetadataSecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: GetPublishingTokenPublicMetadataSecurity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `apiKey` | *string* | :heavy_minus_sign: | N/A | +| `bearer` | *string* | :heavy_minus_sign: | N/A | +| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getpublishingtokensecurity.md b/docs/sdk/models/operations/getpublishingtokensecurity.md new file mode 100644 index 00000000..e72dc006 --- /dev/null +++ b/docs/sdk/models/operations/getpublishingtokensecurity.md @@ -0,0 +1,17 @@ +# GetPublishingTokenSecurity + +## Example Usage + +```typescript +import { GetPublishingTokenSecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: GetPublishingTokenSecurity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `apiKey` | *string* | :heavy_minus_sign: | N/A | +| `bearer` | *string* | :heavy_minus_sign: | N/A | +| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getpublishingtokentargetbyidsecurity.md b/docs/sdk/models/operations/getpublishingtokentargetbyidsecurity.md new file mode 100644 index 00000000..e6500464 --- /dev/null +++ b/docs/sdk/models/operations/getpublishingtokentargetbyidsecurity.md @@ -0,0 +1,17 @@ +# GetPublishingTokenTargetByIDSecurity + +## Example Usage + +```typescript +import { GetPublishingTokenTargetByIDSecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: GetPublishingTokenTargetByIDSecurity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `apiKey` | *string* | :heavy_minus_sign: | N/A | +| `bearer` | *string* | :heavy_minus_sign: | N/A | +| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/gettrialtargetssecurity.md b/docs/sdk/models/operations/gettrialtargetssecurity.md new file mode 100644 index 00000000..2839b758 --- /dev/null +++ b/docs/sdk/models/operations/gettrialtargetssecurity.md @@ -0,0 +1,17 @@ +# GetTrialTargetsSecurity + +## Example Usage + +```typescript +import { GetTrialTargetsSecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: GetTrialTargetsSecurity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `apiKey` | *string* | :heavy_minus_sign: | N/A | +| `bearer` | *string* | :heavy_minus_sign: | N/A | +| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getusersecurity.md b/docs/sdk/models/operations/getusersecurity.md new file mode 100644 index 00000000..fa9a870a --- /dev/null +++ b/docs/sdk/models/operations/getusersecurity.md @@ -0,0 +1,17 @@ +# GetUserSecurity + +## Example Usage + +```typescript +import { GetUserSecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: GetUserSecurity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `apiKey` | *string* | :heavy_minus_sign: | N/A | +| `bearer` | *string* | :heavy_minus_sign: | N/A | +| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getworkspaceaccesssecurity.md b/docs/sdk/models/operations/getworkspaceaccesssecurity.md new file mode 100644 index 00000000..f7d30f3b --- /dev/null +++ b/docs/sdk/models/operations/getworkspaceaccesssecurity.md @@ -0,0 +1,17 @@ +# GetWorkspaceAccessSecurity + +## Example Usage + +```typescript +import { GetWorkspaceAccessSecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: GetWorkspaceAccessSecurity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `apiKey` | *string* | :heavy_minus_sign: | N/A | +| `bearer` | *string* | :heavy_minus_sign: | N/A | +| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getworkspacebycontextsecurity.md b/docs/sdk/models/operations/getworkspacebycontextsecurity.md new file mode 100644 index 00000000..7cb36240 --- /dev/null +++ b/docs/sdk/models/operations/getworkspacebycontextsecurity.md @@ -0,0 +1,17 @@ +# GetWorkspaceByContextSecurity + +## Example Usage + +```typescript +import { GetWorkspaceByContextSecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: GetWorkspaceByContextSecurity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `apiKey` | *string* | :heavy_minus_sign: | N/A | +| `bearer` | *string* | :heavy_minus_sign: | N/A | +| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getworkspaceeventsbytargetsecurity.md b/docs/sdk/models/operations/getworkspaceeventsbytargetsecurity.md new file mode 100644 index 00000000..9a4396e5 --- /dev/null +++ b/docs/sdk/models/operations/getworkspaceeventsbytargetsecurity.md @@ -0,0 +1,17 @@ +# GetWorkspaceEventsByTargetSecurity + +## Example Usage + +```typescript +import { GetWorkspaceEventsByTargetSecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: GetWorkspaceEventsByTargetSecurity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `apiKey` | *string* | :heavy_minus_sign: | N/A | +| `bearer` | *string* | :heavy_minus_sign: | N/A | +| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getworkspacefeatureflagssecurity.md b/docs/sdk/models/operations/getworkspacefeatureflagssecurity.md new file mode 100644 index 00000000..2f2b9df1 --- /dev/null +++ b/docs/sdk/models/operations/getworkspacefeatureflagssecurity.md @@ -0,0 +1,17 @@ +# GetWorkspaceFeatureFlagsSecurity + +## Example Usage + +```typescript +import { GetWorkspaceFeatureFlagsSecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: GetWorkspaceFeatureFlagsSecurity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `apiKey` | *string* | :heavy_minus_sign: | N/A | +| `bearer` | *string* | :heavy_minus_sign: | N/A | +| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getworkspacesecurity.md b/docs/sdk/models/operations/getworkspacesecurity.md new file mode 100644 index 00000000..10719f79 --- /dev/null +++ b/docs/sdk/models/operations/getworkspacesecurity.md @@ -0,0 +1,17 @@ +# GetWorkspaceSecurity + +## Example Usage + +```typescript +import { GetWorkspaceSecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: GetWorkspaceSecurity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `apiKey` | *string* | :heavy_minus_sign: | N/A | +| `bearer` | *string* | :heavy_minus_sign: | N/A | +| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getworkspacesettingssecurity.md b/docs/sdk/models/operations/getworkspacesettingssecurity.md new file mode 100644 index 00000000..87cd5100 --- /dev/null +++ b/docs/sdk/models/operations/getworkspacesettingssecurity.md @@ -0,0 +1,17 @@ +# GetWorkspaceSettingsSecurity + +## Example Usage + +```typescript +import { GetWorkspaceSettingsSecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: GetWorkspaceSettingsSecurity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `apiKey` | *string* | :heavy_minus_sign: | N/A | +| `bearer` | *string* | :heavy_minus_sign: | N/A | +| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getworkspacessecurity.md b/docs/sdk/models/operations/getworkspacessecurity.md new file mode 100644 index 00000000..dcf66f3b --- /dev/null +++ b/docs/sdk/models/operations/getworkspacessecurity.md @@ -0,0 +1,17 @@ +# GetWorkspacesSecurity + +## Example Usage + +```typescript +import { GetWorkspacesSecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: GetWorkspacesSecurity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `apiKey` | *string* | :heavy_minus_sign: | N/A | +| `bearer` | *string* | :heavy_minus_sign: | N/A | +| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getworkspacetargetsdeprecatedsecurity.md b/docs/sdk/models/operations/getworkspacetargetsdeprecatedsecurity.md new file mode 100644 index 00000000..9c654e66 --- /dev/null +++ b/docs/sdk/models/operations/getworkspacetargetsdeprecatedsecurity.md @@ -0,0 +1,17 @@ +# GetWorkspaceTargetsDeprecatedSecurity + +## Example Usage + +```typescript +import { GetWorkspaceTargetsDeprecatedSecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: GetWorkspaceTargetsDeprecatedSecurity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `apiKey` | *string* | :heavy_minus_sign: | N/A | +| `bearer` | *string* | :heavy_minus_sign: | N/A | +| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getworkspacetargetssecurity.md b/docs/sdk/models/operations/getworkspacetargetssecurity.md new file mode 100644 index 00000000..e8e03ed7 --- /dev/null +++ b/docs/sdk/models/operations/getworkspacetargetssecurity.md @@ -0,0 +1,17 @@ +# GetWorkspaceTargetsSecurity + +## Example Usage + +```typescript +import { GetWorkspaceTargetsSecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: GetWorkspaceTargetsSecurity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `apiKey` | *string* | :heavy_minus_sign: | N/A | +| `bearer` | *string* | :heavy_minus_sign: | N/A | +| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getworkspacetargetssummarysecurity.md b/docs/sdk/models/operations/getworkspacetargetssummarysecurity.md new file mode 100644 index 00000000..60015c0e --- /dev/null +++ b/docs/sdk/models/operations/getworkspacetargetssummarysecurity.md @@ -0,0 +1,17 @@ +# GetWorkspaceTargetsSummarySecurity + +## Example Usage + +```typescript +import { GetWorkspaceTargetsSummarySecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: GetWorkspaceTargetsSummarySecurity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `apiKey` | *string* | :heavy_minus_sign: | N/A | +| `bearer` | *string* | :heavy_minus_sign: | N/A | +| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getworkspaceteamsecurity.md b/docs/sdk/models/operations/getworkspaceteamsecurity.md new file mode 100644 index 00000000..6ca9f1a8 --- /dev/null +++ b/docs/sdk/models/operations/getworkspaceteamsecurity.md @@ -0,0 +1,17 @@ +# GetWorkspaceTeamSecurity + +## Example Usage + +```typescript +import { GetWorkspaceTeamSecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: GetWorkspaceTeamSecurity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `apiKey` | *string* | :heavy_minus_sign: | N/A | +| `bearer` | *string* | :heavy_minus_sign: | N/A | +| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getworkspacetokenssecurity.md b/docs/sdk/models/operations/getworkspacetokenssecurity.md new file mode 100644 index 00000000..ababe9ac --- /dev/null +++ b/docs/sdk/models/operations/getworkspacetokenssecurity.md @@ -0,0 +1,17 @@ +# GetWorkspaceTokensSecurity + +## Example Usage + +```typescript +import { GetWorkspaceTokensSecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: GetWorkspaceTokensSecurity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `apiKey` | *string* | :heavy_minus_sign: | N/A | +| `bearer` | *string* | :heavy_minus_sign: | N/A | +| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/githubcheckpublishingprssecurity.md b/docs/sdk/models/operations/githubcheckpublishingprssecurity.md new file mode 100644 index 00000000..a288495a --- /dev/null +++ b/docs/sdk/models/operations/githubcheckpublishingprssecurity.md @@ -0,0 +1,17 @@ +# GithubCheckPublishingPRsSecurity + +## Example Usage + +```typescript +import { GithubCheckPublishingPRsSecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: GithubCheckPublishingPRsSecurity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `apiKey` | *string* | :heavy_minus_sign: | N/A | +| `bearer` | *string* | :heavy_minus_sign: | N/A | +| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/githubcheckpublishingsecretssecurity.md b/docs/sdk/models/operations/githubcheckpublishingsecretssecurity.md new file mode 100644 index 00000000..86645d35 --- /dev/null +++ b/docs/sdk/models/operations/githubcheckpublishingsecretssecurity.md @@ -0,0 +1,17 @@ +# GithubCheckPublishingSecretsSecurity + +## Example Usage + +```typescript +import { GithubCheckPublishingSecretsSecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: GithubCheckPublishingSecretsSecurity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `apiKey` | *string* | :heavy_minus_sign: | N/A | +| `bearer` | *string* | :heavy_minus_sign: | N/A | +| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/githubconfigurecodesamplessecurity.md b/docs/sdk/models/operations/githubconfigurecodesamplessecurity.md new file mode 100644 index 00000000..c368d05f --- /dev/null +++ b/docs/sdk/models/operations/githubconfigurecodesamplessecurity.md @@ -0,0 +1,17 @@ +# GithubConfigureCodeSamplesSecurity + +## Example Usage + +```typescript +import { GithubConfigureCodeSamplesSecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: GithubConfigureCodeSamplesSecurity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `apiKey` | *string* | :heavy_minus_sign: | N/A | +| `bearer` | *string* | :heavy_minus_sign: | N/A | +| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/githubconfiguremintlifyreposecurity.md b/docs/sdk/models/operations/githubconfiguremintlifyreposecurity.md new file mode 100644 index 00000000..60716cd8 --- /dev/null +++ b/docs/sdk/models/operations/githubconfiguremintlifyreposecurity.md @@ -0,0 +1,17 @@ +# GithubConfigureMintlifyRepoSecurity + +## Example Usage + +```typescript +import { GithubConfigureMintlifyRepoSecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: GithubConfigureMintlifyRepoSecurity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `apiKey` | *string* | :heavy_minus_sign: | N/A | +| `bearer` | *string* | :heavy_minus_sign: | N/A | +| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/githubconfiguretargetsecurity.md b/docs/sdk/models/operations/githubconfiguretargetsecurity.md new file mode 100644 index 00000000..161053ff --- /dev/null +++ b/docs/sdk/models/operations/githubconfiguretargetsecurity.md @@ -0,0 +1,17 @@ +# GithubConfigureTargetSecurity + +## Example Usage + +```typescript +import { GithubConfigureTargetSecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: GithubConfigureTargetSecurity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `apiKey` | *string* | :heavy_minus_sign: | N/A | +| `bearer` | *string* | :heavy_minus_sign: | N/A | +| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/githubstorepublishingsecretssecurity.md b/docs/sdk/models/operations/githubstorepublishingsecretssecurity.md new file mode 100644 index 00000000..2a6e223b --- /dev/null +++ b/docs/sdk/models/operations/githubstorepublishingsecretssecurity.md @@ -0,0 +1,17 @@ +# GithubStorePublishingSecretsSecurity + +## Example Usage + +```typescript +import { GithubStorePublishingSecretsSecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: GithubStorePublishingSecretsSecurity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `apiKey` | *string* | :heavy_minus_sign: | N/A | +| `bearer` | *string* | :heavy_minus_sign: | N/A | +| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/githubtriggeractionsecurity.md b/docs/sdk/models/operations/githubtriggeractionsecurity.md new file mode 100644 index 00000000..433b3bb5 --- /dev/null +++ b/docs/sdk/models/operations/githubtriggeractionsecurity.md @@ -0,0 +1,17 @@ +# GithubTriggerActionSecurity + +## Example Usage + +```typescript +import { GithubTriggerActionSecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: GithubTriggerActionSecurity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `apiKey` | *string* | :heavy_minus_sign: | N/A | +| `bearer` | *string* | :heavy_minus_sign: | N/A | +| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/grantuseraccesstoworkspacesecurity.md b/docs/sdk/models/operations/grantuseraccesstoworkspacesecurity.md new file mode 100644 index 00000000..990b7163 --- /dev/null +++ b/docs/sdk/models/operations/grantuseraccesstoworkspacesecurity.md @@ -0,0 +1,17 @@ +# GrantUserAccessToWorkspaceSecurity + +## Example Usage + +```typescript +import { GrantUserAccessToWorkspaceSecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: GrantUserAccessToWorkspaceSecurity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `apiKey` | *string* | :heavy_minus_sign: | N/A | +| `bearer` | *string* | :heavy_minus_sign: | N/A | +| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/handlecheckoutcallbackrequest.md b/docs/sdk/models/operations/handlecheckoutcallbackrequest.md new file mode 100644 index 00000000..491d0207 --- /dev/null +++ b/docs/sdk/models/operations/handlecheckoutcallbackrequest.md @@ -0,0 +1,17 @@ +# HandleCheckoutCallbackRequest + +## Example Usage + +```typescript +import { HandleCheckoutCallbackRequest } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: HandleCheckoutCallbackRequest = { + sessionId: "", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | +| `sessionId` | *string* | :heavy_check_mark: | The Stripe checkout session ID | \ No newline at end of file diff --git a/docs/sdk/models/operations/handlecheckoutcallbackresponse.md b/docs/sdk/models/operations/handlecheckoutcallbackresponse.md new file mode 100644 index 00000000..0adf89d4 --- /dev/null +++ b/docs/sdk/models/operations/handlecheckoutcallbackresponse.md @@ -0,0 +1,23 @@ +# HandleCheckoutCallbackResponse + +## Example Usage + +```typescript +import { HandleCheckoutCallbackResponse } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: HandleCheckoutCallbackResponse = { + headers: { + "key": [ + "", + "", + "", + ], + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------- | -------------------------- | -------------------------- | -------------------------- | +| `headers` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/handlestripewebhookrequestbody.md b/docs/sdk/models/operations/handlestripewebhookrequestbody.md new file mode 100644 index 00000000..9a709309 --- /dev/null +++ b/docs/sdk/models/operations/handlestripewebhookrequestbody.md @@ -0,0 +1,16 @@ +# HandleStripeWebhookRequestBody + +Stripe webhook event payload + +## Example Usage + +```typescript +import { HandleStripeWebhookRequestBody } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: HandleStripeWebhookRequestBody = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/sdk/models/operations/linkgithubaccesssecurity.md b/docs/sdk/models/operations/linkgithubaccesssecurity.md new file mode 100644 index 00000000..d0265cc7 --- /dev/null +++ b/docs/sdk/models/operations/linkgithubaccesssecurity.md @@ -0,0 +1,17 @@ +# LinkGithubAccessSecurity + +## Example Usage + +```typescript +import { LinkGithubAccessSecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: LinkGithubAccessSecurity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `apiKey` | *string* | :heavy_minus_sign: | N/A | +| `bearer` | *string* | :heavy_minus_sign: | N/A | +| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/postworkspaceeventssecurity.md b/docs/sdk/models/operations/postworkspaceeventssecurity.md new file mode 100644 index 00000000..828cb2de --- /dev/null +++ b/docs/sdk/models/operations/postworkspaceeventssecurity.md @@ -0,0 +1,17 @@ +# PostWorkspaceEventsSecurity + +## Example Usage + +```typescript +import { PostWorkspaceEventsSecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: PostWorkspaceEventsSecurity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `apiKey` | *string* | :heavy_minus_sign: | N/A | +| `bearer` | *string* | :heavy_minus_sign: | N/A | +| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/revertsubscriptioncancellationsecurity.md b/docs/sdk/models/operations/revertsubscriptioncancellationsecurity.md new file mode 100644 index 00000000..7a5763c9 --- /dev/null +++ b/docs/sdk/models/operations/revertsubscriptioncancellationsecurity.md @@ -0,0 +1,17 @@ +# RevertSubscriptionCancellationSecurity + +## Example Usage + +```typescript +import { RevertSubscriptionCancellationSecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: RevertSubscriptionCancellationSecurity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `apiKey` | *string* | :heavy_minus_sign: | N/A | +| `bearer` | *string* | :heavy_minus_sign: | N/A | +| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/revokeuseraccesstoworkspacesecurity.md b/docs/sdk/models/operations/revokeuseraccesstoworkspacesecurity.md new file mode 100644 index 00000000..631c8afa --- /dev/null +++ b/docs/sdk/models/operations/revokeuseraccesstoworkspacesecurity.md @@ -0,0 +1,17 @@ +# RevokeUserAccessToWorkspaceSecurity + +## Example Usage + +```typescript +import { RevokeUserAccessToWorkspaceSecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: RevokeUserAccessToWorkspaceSecurity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `apiKey` | *string* | :heavy_minus_sign: | N/A | +| `bearer` | *string* | :heavy_minus_sign: | N/A | +| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/searchworkspaceeventssecurity.md b/docs/sdk/models/operations/searchworkspaceeventssecurity.md new file mode 100644 index 00000000..4aad69c4 --- /dev/null +++ b/docs/sdk/models/operations/searchworkspaceeventssecurity.md @@ -0,0 +1,17 @@ +# SearchWorkspaceEventsSecurity + +## Example Usage + +```typescript +import { SearchWorkspaceEventsSecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: SearchWorkspaceEventsSecurity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `apiKey` | *string* | :heavy_minus_sign: | N/A | +| `bearer` | *string* | :heavy_minus_sign: | N/A | +| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/setworkspacefeatureflagssecurity.md b/docs/sdk/models/operations/setworkspacefeatureflagssecurity.md new file mode 100644 index 00000000..f1650342 --- /dev/null +++ b/docs/sdk/models/operations/setworkspacefeatureflagssecurity.md @@ -0,0 +1,17 @@ +# SetWorkspaceFeatureFlagsSecurity + +## Example Usage + +```typescript +import { SetWorkspaceFeatureFlagsSecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: SetWorkspaceFeatureFlagsSecurity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `apiKey` | *string* | :heavy_minus_sign: | N/A | +| `bearer` | *string* | :heavy_minus_sign: | N/A | +| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/suggestitemssecurity.md b/docs/sdk/models/operations/suggestitemssecurity.md new file mode 100644 index 00000000..cefef3f9 --- /dev/null +++ b/docs/sdk/models/operations/suggestitemssecurity.md @@ -0,0 +1,17 @@ +# SuggestItemsSecurity + +## Example Usage + +```typescript +import { SuggestItemsSecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: SuggestItemsSecurity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `apiKey` | *string* | :heavy_minus_sign: | N/A | +| `bearer` | *string* | :heavy_minus_sign: | N/A | +| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/suggestopenapiregistrysecurity.md b/docs/sdk/models/operations/suggestopenapiregistrysecurity.md new file mode 100644 index 00000000..bc9d3252 --- /dev/null +++ b/docs/sdk/models/operations/suggestopenapiregistrysecurity.md @@ -0,0 +1,17 @@ +# SuggestOpenAPIRegistrySecurity + +## Example Usage + +```typescript +import { SuggestOpenAPIRegistrySecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: SuggestOpenAPIRegistrySecurity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `apiKey` | *string* | :heavy_minus_sign: | N/A | +| `bearer` | *string* | :heavy_minus_sign: | N/A | +| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/suggestopenapisecurity.md b/docs/sdk/models/operations/suggestopenapisecurity.md new file mode 100644 index 00000000..382ee2ea --- /dev/null +++ b/docs/sdk/models/operations/suggestopenapisecurity.md @@ -0,0 +1,17 @@ +# SuggestOpenAPISecurity + +## Example Usage + +```typescript +import { SuggestOpenAPISecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: SuggestOpenAPISecurity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `apiKey` | *string* | :heavy_minus_sign: | N/A | +| `bearer` | *string* | :heavy_minus_sign: | N/A | +| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/suggestsecurity.md b/docs/sdk/models/operations/suggestsecurity.md new file mode 100644 index 00000000..be177298 --- /dev/null +++ b/docs/sdk/models/operations/suggestsecurity.md @@ -0,0 +1,17 @@ +# SuggestSecurity + +## Example Usage + +```typescript +import { SuggestSecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: SuggestSecurity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `apiKey` | *string* | :heavy_minus_sign: | N/A | +| `bearer` | *string* | :heavy_minus_sign: | N/A | +| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/updatepublishingtokenexpirationsecurity.md b/docs/sdk/models/operations/updatepublishingtokenexpirationsecurity.md new file mode 100644 index 00000000..f5e49c49 --- /dev/null +++ b/docs/sdk/models/operations/updatepublishingtokenexpirationsecurity.md @@ -0,0 +1,17 @@ +# UpdatePublishingTokenExpirationSecurity + +## Example Usage + +```typescript +import { UpdatePublishingTokenExpirationSecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: UpdatePublishingTokenExpirationSecurity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `apiKey` | *string* | :heavy_minus_sign: | N/A | +| `bearer` | *string* | :heavy_minus_sign: | N/A | +| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/updateworkspacedetailssecurity.md b/docs/sdk/models/operations/updateworkspacedetailssecurity.md new file mode 100644 index 00000000..5f6fa72f --- /dev/null +++ b/docs/sdk/models/operations/updateworkspacedetailssecurity.md @@ -0,0 +1,17 @@ +# UpdateWorkspaceDetailsSecurity + +## Example Usage + +```typescript +import { UpdateWorkspaceDetailsSecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: UpdateWorkspaceDetailsSecurity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `apiKey` | *string* | :heavy_minus_sign: | N/A | +| `bearer` | *string* | :heavy_minus_sign: | N/A | +| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/updateworkspacesettingssecurity.md b/docs/sdk/models/operations/updateworkspacesettingssecurity.md new file mode 100644 index 00000000..2bd98723 --- /dev/null +++ b/docs/sdk/models/operations/updateworkspacesettingssecurity.md @@ -0,0 +1,17 @@ +# UpdateWorkspaceSettingsSecurity + +## Example Usage + +```typescript +import { UpdateWorkspaceSettingsSecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: UpdateWorkspaceSettingsSecurity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `apiKey` | *string* | :heavy_minus_sign: | N/A | +| `bearer` | *string* | :heavy_minus_sign: | N/A | +| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/uploadreportsecurity.md b/docs/sdk/models/operations/uploadreportsecurity.md new file mode 100644 index 00000000..6202d740 --- /dev/null +++ b/docs/sdk/models/operations/uploadreportsecurity.md @@ -0,0 +1,17 @@ +# UploadReportSecurity + +## Example Usage + +```typescript +import { UploadReportSecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: UploadReportSecurity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `apiKey` | *string* | :heavy_minus_sign: | N/A | +| `bearer` | *string* | :heavy_minus_sign: | N/A | +| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/upsertbillingemailsecurity.md b/docs/sdk/models/operations/upsertbillingemailsecurity.md new file mode 100644 index 00000000..aef2b471 --- /dev/null +++ b/docs/sdk/models/operations/upsertbillingemailsecurity.md @@ -0,0 +1,17 @@ +# UpsertBillingEmailSecurity + +## Example Usage + +```typescript +import { UpsertBillingEmailSecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: UpsertBillingEmailSecurity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `apiKey` | *string* | :heavy_minus_sign: | N/A | +| `bearer` | *string* | :heavy_minus_sign: | N/A | +| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/validateapikeysecurity.md b/docs/sdk/models/operations/validateapikeysecurity.md new file mode 100644 index 00000000..b9328d92 --- /dev/null +++ b/docs/sdk/models/operations/validateapikeysecurity.md @@ -0,0 +1,17 @@ +# ValidateApiKeySecurity + +## Example Usage + +```typescript +import { ValidateApiKeySecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations"; + +let value: ValidateApiKeySecurity = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `apiKey` | *string* | :heavy_minus_sign: | N/A | +| `bearer` | *string* | :heavy_minus_sign: | N/A | +| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/shared/accounttype.md b/docs/sdk/models/shared/accounttype.md index c021b6d5..14a4da0b 100644 --- a/docs/sdk/models/shared/accounttype.md +++ b/docs/sdk/models/shared/accounttype.md @@ -6,12 +6,12 @@ import { AccountType } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/shared"; let value: AccountType = "enterprise"; + +// Open enum: unrecognized values are captured as Unrecognized ``` ## Values -This is an open enum. Unrecognized values will be captured as the `Unrecognized` branded type. - ```typescript "free" | "scale-up" | "business" | "oss" | "enterprise" | Unrecognized ``` \ No newline at end of file diff --git a/docs/sdk/models/shared/billingaddon.md b/docs/sdk/models/shared/billingaddon.md index 5f3ccc24..f95833a6 100644 --- a/docs/sdk/models/shared/billingaddon.md +++ b/docs/sdk/models/shared/billingaddon.md @@ -6,12 +6,12 @@ import { BillingAddOn } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/shared"; let value: BillingAddOn = "custom_code_regions"; + +// Open enum: unrecognized values are captured as Unrecognized ``` ## Values -This is an open enum. Unrecognized values will be captured as the `Unrecognized` branded type. - ```typescript "webhooks" | "sdk_testing" | "custom_code_regions" | "snippet_ai" | Unrecognized ``` \ No newline at end of file diff --git a/docs/sdk/models/shared/billingemailrequest.md b/docs/sdk/models/shared/billingemailrequest.md new file mode 100644 index 00000000..ca4f7fc1 --- /dev/null +++ b/docs/sdk/models/shared/billingemailrequest.md @@ -0,0 +1,17 @@ +# BillingEmailRequest + +## Example Usage + +```typescript +import { BillingEmailRequest } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/shared"; + +let value: BillingEmailRequest = { + billingEmail: "Bret.Corkery21@hotmail.com", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------- | -------------------------------- | -------------------------------- | -------------------------------- | +| `billingEmail` | *string* | :heavy_check_mark: | The billing email address to set | \ No newline at end of file diff --git a/docs/sdk/models/shared/billingemailresponse.md b/docs/sdk/models/shared/billingemailresponse.md new file mode 100644 index 00000000..bb66c026 --- /dev/null +++ b/docs/sdk/models/shared/billingemailresponse.md @@ -0,0 +1,18 @@ +# BillingEmailResponse + +## Example Usage + +```typescript +import { BillingEmailResponse } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/shared"; + +let value: BillingEmailResponse = { + hasStripeCustomer: true, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | +| `billingEmail` | *string* | :heavy_minus_sign: | The current billing email address (empty if no Stripe customer) | +| `hasStripeCustomer` | *boolean* | :heavy_check_mark: | Whether the organization has a linked Stripe customer | \ No newline at end of file diff --git a/docs/sdk/models/shared/billinginterval.md b/docs/sdk/models/shared/billinginterval.md new file mode 100644 index 00000000..c4faa7ec --- /dev/null +++ b/docs/sdk/models/shared/billinginterval.md @@ -0,0 +1,17 @@ +# BillingInterval + +Billing interval (defaults to month) + +## Example Usage + +```typescript +import { BillingInterval } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/shared"; + +let value: BillingInterval = "year"; +``` + +## Values + +```typescript +"month" | "year" +``` \ No newline at end of file diff --git a/docs/sdk/models/shared/billingoperationsresponse.md b/docs/sdk/models/shared/billingoperationsresponse.md index 641d13e4..db198013 100644 --- a/docs/sdk/models/shared/billingoperationsresponse.md +++ b/docs/sdk/models/shared/billingoperationsresponse.md @@ -8,7 +8,7 @@ Contains the billing operations breakdown for an organization import { BillingOperationsResponse } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/shared"; let value: BillingOperationsResponse = { - specs: [], + languages: [], totalBillableUnits: 293396, totalUniqueOperations: 679464, }; @@ -16,8 +16,8 @@ let value: BillingOperationsResponse = { ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | -| `specs` | [shared.SpecBillingBreakdown](../../../sdk/models/shared/specbillingbreakdown.md)[] | :heavy_check_mark: | Billing breakdown for each spec/namespace | -| `totalBillableUnits` | *number* | :heavy_check_mark: | Total billable units (operations x targets per spec) | -| `totalUniqueOperations` | *number* | :heavy_check_mark: | Total count of unique operations across all specs | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | +| `languages` | [shared.LanguageBillingBreakdown](../../../sdk/models/shared/languagebillingbreakdown.md)[] | :heavy_check_mark: | Billing breakdown for each language | +| `totalBillableUnits` | *number* | :heavy_check_mark: | Total billable units across all generated targets | +| `totalUniqueOperations` | *number* | :heavy_check_mark: | Total count of unique operations across all languages | \ No newline at end of file diff --git a/docs/sdk/models/shared/billingstatus.md b/docs/sdk/models/shared/billingstatus.md new file mode 100644 index 00000000..54cac7d5 --- /dev/null +++ b/docs/sdk/models/shared/billingstatus.md @@ -0,0 +1,17 @@ +# BillingStatus + +The billing status of this target + +## Example Usage + +```typescript +import { BillingStatus } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/shared"; + +let value: BillingStatus = "trialing"; +``` + +## Values + +```typescript +"active" | "trialing" | "delinquent" | "canceled" | "deactivating" +``` \ No newline at end of file diff --git a/docs/sdk/models/shared/businesstierpriceresponse.md b/docs/sdk/models/shared/businesstierpriceresponse.md new file mode 100644 index 00000000..5d651054 --- /dev/null +++ b/docs/sdk/models/shared/businesstierpriceresponse.md @@ -0,0 +1,25 @@ +# BusinessTierPriceResponse + +## Example Usage + +```typescript +import { BusinessTierPriceResponse } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/shared"; + +let value: BusinessTierPriceResponse = { + currency: "Aruban Guilder", + interval: "", + priceId: "", + productName: "", + unitAmount: 360145, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------- | ---------------------------------- | ---------------------------------- | ---------------------------------- | +| `currency` | *string* | :heavy_check_mark: | The currency code (e.g., usd) | +| `interval` | *string* | :heavy_check_mark: | The billing interval (e.g., month) | +| `priceId` | *string* | :heavy_check_mark: | The Stripe price ID | +| `productName` | *string* | :heavy_check_mark: | The product name from Stripe | +| `unitAmount` | *number* | :heavy_check_mark: | The price amount in cents | \ No newline at end of file diff --git a/docs/sdk/models/shared/businesstierpricesresponse.md b/docs/sdk/models/shared/businesstierpricesresponse.md new file mode 100644 index 00000000..407c1918 --- /dev/null +++ b/docs/sdk/models/shared/businesstierpricesresponse.md @@ -0,0 +1,31 @@ +# BusinessTierPricesResponse + +## Example Usage + +```typescript +import { BusinessTierPricesResponse } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/shared"; + +let value: BusinessTierPricesResponse = { + annual: { + currency: "Saint Helena Pound", + interval: "", + priceId: "", + productName: "", + unitAmount: 189152, + }, + monthly: { + currency: "Australian Dollar", + interval: "", + priceId: "", + productName: "", + unitAmount: 596122, + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | +| `annual` | [shared.BusinessTierPriceResponse](../../../sdk/models/shared/businesstierpriceresponse.md) | :heavy_check_mark: | N/A | +| `monthly` | [shared.BusinessTierPriceResponse](../../../sdk/models/shared/businesstierpriceresponse.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/shared/cancelsubscriptionrequest.md b/docs/sdk/models/shared/cancelsubscriptionrequest.md new file mode 100644 index 00000000..0e4100ec --- /dev/null +++ b/docs/sdk/models/shared/cancelsubscriptionrequest.md @@ -0,0 +1,15 @@ +# CancelSubscriptionRequest + +## Example Usage + +```typescript +import { CancelSubscriptionRequest } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/shared"; + +let value: CancelSubscriptionRequest = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | +| `targetToKeep` | *string* | :heavy_minus_sign: | The gen_lock_id of the target to keep after downgrade to free tier. Omit when no active targets remain. | \ No newline at end of file diff --git a/docs/sdk/models/shared/cancelsubscriptionresponse.md b/docs/sdk/models/shared/cancelsubscriptionresponse.md new file mode 100644 index 00000000..178d57dc --- /dev/null +++ b/docs/sdk/models/shared/cancelsubscriptionresponse.md @@ -0,0 +1,20 @@ +# CancelSubscriptionResponse + +## Example Usage + +```typescript +import { CancelSubscriptionResponse } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/shared"; + +let value: CancelSubscriptionResponse = { + success: false, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | +| `effectiveAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | When the cancellation takes effect (from Stripe current_period_end) | +| `message` | *string* | :heavy_minus_sign: | Additional message about the operation | +| `success` | *boolean* | :heavy_check_mark: | Whether the operation was successful | +| `targetToKeep` | *string* | :heavy_minus_sign: | The gen_lock_id of the target to keep | \ No newline at end of file diff --git a/docs/sdk/models/shared/createcheckoutsessionresponse.md b/docs/sdk/models/shared/createcheckoutsessionresponse.md new file mode 100644 index 00000000..38fdcc5f --- /dev/null +++ b/docs/sdk/models/shared/createcheckoutsessionresponse.md @@ -0,0 +1,19 @@ +# CreateCheckoutSessionResponse + +## Example Usage + +```typescript +import { CreateCheckoutSessionResponse } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/shared"; + +let value: CreateCheckoutSessionResponse = { + checkoutUrl: "https://sour-decision.name", + sessionId: "", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | +| `checkoutUrl` | *string* | :heavy_check_mark: | The Stripe checkout URL | +| `sessionId` | *string* | :heavy_check_mark: | The Stripe checkout session ID | \ No newline at end of file diff --git a/docs/sdk/models/shared/createlanguagecheckoutsessionrequest.md b/docs/sdk/models/shared/createlanguagecheckoutsessionrequest.md new file mode 100644 index 00000000..cdfdd275 --- /dev/null +++ b/docs/sdk/models/shared/createlanguagecheckoutsessionrequest.md @@ -0,0 +1,24 @@ +# CreateLanguageCheckoutSessionRequest + +## Example Usage + +```typescript +import { CreateLanguageCheckoutSessionRequest } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/shared"; + +let value: CreateLanguageCheckoutSessionRequest = { + cancelUrl: "https://misguided-fun.com", + languages: [ + "", + ], + successUrl: "https://lawful-colonialism.name", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | +| `billingInterval` | [shared.BillingInterval](../../../sdk/models/shared/billinginterval.md) | :heavy_minus_sign: | Billing interval (defaults to month) | +| `cancelUrl` | *string* | :heavy_check_mark: | URL to redirect to if checkout is canceled | +| `languages` | *string*[] | :heavy_check_mark: | List of languages to activate | +| `successUrl` | *string* | :heavy_check_mark: | URL to redirect to on successful checkout | \ No newline at end of file diff --git a/docs/sdk/models/shared/getlanguagesresponse.md b/docs/sdk/models/shared/getlanguagesresponse.md new file mode 100644 index 00000000..cb47d6a0 --- /dev/null +++ b/docs/sdk/models/shared/getlanguagesresponse.md @@ -0,0 +1,23 @@ +# GetLanguagesResponse + +## Example Usage + +```typescript +import { GetLanguagesResponse } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/shared"; + +let value: GetLanguagesResponse = { + languages: [ + { + canDeactivate: false, + deactivated: true, + language: "", + }, + ], +}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | +| `languages` | [shared.LanguageResponse](../../../sdk/models/shared/languageresponse.md)[] | :heavy_check_mark: | List of language billing configurations | \ No newline at end of file diff --git a/docs/sdk/models/shared/languageactivationresponse.md b/docs/sdk/models/shared/languageactivationresponse.md new file mode 100644 index 00000000..16b7501d --- /dev/null +++ b/docs/sdk/models/shared/languageactivationresponse.md @@ -0,0 +1,24 @@ +# LanguageActivationResponse + +## Example Usage + +```typescript +import { LanguageActivationResponse } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/shared"; + +let value: LanguageActivationResponse = { + deactivated: true, + language: "", + success: false, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | +| `billingStatus` | [shared.LanguageBillingStatus](../../../sdk/models/shared/languagebillingstatus.md) | :heavy_minus_sign: | The billing status of a language | +| `deactivated` | *boolean* | :heavy_check_mark: | Whether the language is deactivated | +| `language` | *string* | :heavy_check_mark: | The target language | +| `message` | *string* | :heavy_minus_sign: | Additional message about the operation | +| `requiresCheckout` | *boolean* | :heavy_minus_sign: | If true, user must complete checkout | +| `success` | *boolean* | :heavy_check_mark: | Whether the operation was successful | \ No newline at end of file diff --git a/docs/sdk/models/shared/specbillingbreakdown.md b/docs/sdk/models/shared/languagebillingbreakdown.md similarity index 56% rename from docs/sdk/models/shared/specbillingbreakdown.md rename to docs/sdk/models/shared/languagebillingbreakdown.md index 0044975b..5159677d 100644 --- a/docs/sdk/models/shared/specbillingbreakdown.md +++ b/docs/sdk/models/shared/languagebillingbreakdown.md @@ -1,19 +1,27 @@ -# SpecBillingBreakdown +# LanguageBillingBreakdown -Contains the billing breakdown for a single spec/namespace +Contains the billing breakdown for a single language ## Example Usage ```typescript -import { SpecBillingBreakdown } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/shared"; +import { LanguageBillingBreakdown } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/shared"; -let value: SpecBillingBreakdown = { - billableUnits: 62018, - isArchived: false, - namespace: "", - operationCount: 337458, - targetCount: 198625, - targets: [], +let value: LanguageBillingBreakdown = { + billableUnits: 653851, + language: "", + operationCount: 213935, + targetCount: 10865, + targets: [ + { + genLockId: "", + isActive: true, + operationCount: 84348, + target: "", + targetName: "", + workspaceSlug: "", + }, + ], }; ``` @@ -21,10 +29,8 @@ let value: SpecBillingBreakdown = { | Field | Type | Required | Description | | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | -| `billableUnits` | *number* | :heavy_check_mark: | Billable units for this spec (operation_count x target_count) | -| `isArchived` | *boolean* | :heavy_check_mark: | Whether the spec/namespace is archived | -| `namespace` | *string* | :heavy_check_mark: | The namespace name for this spec | -| `operationCount` | *number* | :heavy_check_mark: | Number of operations in this spec | -| `operationIds` | *string*[] | :heavy_minus_sign: | List of operation IDs (only included when include_operation_ids is true) | -| `targetCount` | *number* | :heavy_check_mark: | Number of targets using this spec | -| `targets` | [shared.TargetBillingBreakdown](../../../sdk/models/shared/targetbillingbreakdown.md)[] | :heavy_check_mark: | List of targets using this spec | \ No newline at end of file +| `billableUnits` | *number* | :heavy_check_mark: | Total billable units contributed by targets in this language | +| `language` | *string* | :heavy_check_mark: | The generated SDK language | +| `operationCount` | *number* | :heavy_check_mark: | Number of operations from the latest generation event for this language | +| `targetCount` | *number* | :heavy_check_mark: | Number of generated SDK targets for this language | +| `targets` | [shared.TargetBillingBreakdown](../../../sdk/models/shared/targetbillingbreakdown.md)[] | :heavy_check_mark: | List of generated targets for this language | \ No newline at end of file diff --git a/docs/sdk/models/shared/languagebillingstatus.md b/docs/sdk/models/shared/languagebillingstatus.md new file mode 100644 index 00000000..f2cc7ee4 --- /dev/null +++ b/docs/sdk/models/shared/languagebillingstatus.md @@ -0,0 +1,17 @@ +# LanguageBillingStatus + +The billing status of a language + +## Example Usage + +```typescript +import { LanguageBillingStatus } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/shared"; + +let value: LanguageBillingStatus = "delinquent"; +``` + +## Values + +```typescript +"active" | "trialing" | "delinquent" | "canceled" | "deactivating" +``` \ No newline at end of file diff --git a/docs/sdk/models/shared/languageresponse.md b/docs/sdk/models/shared/languageresponse.md new file mode 100644 index 00000000..b19e2c9d --- /dev/null +++ b/docs/sdk/models/shared/languageresponse.md @@ -0,0 +1,23 @@ +# LanguageResponse + +## Example Usage + +```typescript +import { LanguageResponse } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/shared"; + +let value: LanguageResponse = { + canDeactivate: true, + deactivated: false, + language: "", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | +| `billingStatus` | [shared.LanguageBillingStatus](../../../sdk/models/shared/languagebillingstatus.md) | :heavy_minus_sign: | The billing status of a language | +| `canDeactivate` | *boolean* | :heavy_check_mark: | Whether the language can be deactivated (false if within 2-week cooldown) | +| `deactivated` | *boolean* | :heavy_check_mark: | Whether the language is deactivated | +| `language` | *string* | :heavy_check_mark: | The target language (e.g., typescript, python, go) | +| `trialEndsAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | When the trial ends (if applicable) | \ No newline at end of file diff --git a/docs/sdk/models/shared/organization.md b/docs/sdk/models/shared/organization.md index ca024cda..e53a526e 100644 --- a/docs/sdk/models/shared/organization.md +++ b/docs/sdk/models/shared/organization.md @@ -31,6 +31,6 @@ let value: Organization = { | `name` | *string* | :heavy_check_mark: | N/A | | `slug` | *string* | :heavy_check_mark: | N/A | | `ssoActivated` | *boolean* | :heavy_check_mark: | N/A | -| `ssoConnectionId` | *string* | :heavy_minus_sign: | N/A | | `telemetryDisabled` | *boolean* | :heavy_check_mark: | N/A | -| `updatedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | N/A | \ No newline at end of file +| `updatedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | N/A | +| `workosId` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/shared/organizationsubscriptionresponse.md b/docs/sdk/models/shared/organizationsubscriptionresponse.md new file mode 100644 index 00000000..65389fed --- /dev/null +++ b/docs/sdk/models/shared/organizationsubscriptionresponse.md @@ -0,0 +1,31 @@ +# OrganizationSubscriptionResponse + +## Example Usage + +```typescript +import { OrganizationSubscriptionResponse } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/shared"; + +let value: OrganizationSubscriptionResponse = { + accountType: "", + hasSubscription: false, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | +| `accountType` | *string* | :heavy_check_mark: | The organization account type | +| `activeLanguageCount` | *number* | :heavy_minus_sign: | Number of active (paid) languages | +| `billingInterval` | [shared.OrganizationSubscriptionResponseBillingInterval](../../../sdk/models/shared/organizationsubscriptionresponsebillinginterval.md) | :heavy_minus_sign: | The billing interval for the subscription (month or year) | +| `cancelAtPeriodEnd` | *boolean* | :heavy_minus_sign: | Whether the subscription will cancel at period end | +| `currency` | *string* | :heavy_minus_sign: | Currency code (e.g. "usd") | +| `currentPeriodEnd` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | End of the current billing period | +| `currentPeriodStart` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Start of the current billing period | +| `hasSubscription` | *boolean* | :heavy_check_mark: | Whether the organization has an active subscription | +| `pendingCancellation` | [shared.PendingCancellationInfo](../../../sdk/models/shared/pendingcancellationinfo.md) | :heavy_minus_sign: | Information about a pending subscription cancellation | +| `planName` | *string* | :heavy_minus_sign: | The plan name (e.g. "Business" for self-serve) | +| `status` | *string* | :heavy_minus_sign: | The subscription status (active, past_due, canceled, etc.) | +| `stripeSubscriptionId` | *string* | :heavy_minus_sign: | The Stripe subscription ID | +| `trialingLanguageCount` | *number* | :heavy_minus_sign: | Number of languages currently in trial | +| `unitPrice` | *number* | :heavy_minus_sign: | Price per target in cents | \ No newline at end of file diff --git a/docs/sdk/models/shared/organizationsubscriptionresponsebillinginterval.md b/docs/sdk/models/shared/organizationsubscriptionresponsebillinginterval.md new file mode 100644 index 00000000..ad1b5e7c --- /dev/null +++ b/docs/sdk/models/shared/organizationsubscriptionresponsebillinginterval.md @@ -0,0 +1,17 @@ +# OrganizationSubscriptionResponseBillingInterval + +The billing interval for the subscription (month or year) + +## Example Usage + +```typescript +import { OrganizationSubscriptionResponseBillingInterval } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/shared"; + +let value: OrganizationSubscriptionResponseBillingInterval = "year"; +``` + +## Values + +```typescript +"month" | "year" +``` \ No newline at end of file diff --git a/docs/sdk/models/shared/pendingcancellationinfo.md b/docs/sdk/models/shared/pendingcancellationinfo.md new file mode 100644 index 00000000..766bf2b2 --- /dev/null +++ b/docs/sdk/models/shared/pendingcancellationinfo.md @@ -0,0 +1,19 @@ +# PendingCancellationInfo + +Information about a pending subscription cancellation + +## Example Usage + +```typescript +import { PendingCancellationInfo } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/shared"; + +let value: PendingCancellationInfo = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | +| `effectiveAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | When the cancellation takes effect (from Stripe current_period_end) | +| `targetToKeep` | *string* | :heavy_minus_sign: | gen_lock_id of the target that will be kept after downgrade | +| `targetToKeepName` | *string* | :heavy_minus_sign: | Display name of the target to keep | \ No newline at end of file diff --git a/docs/sdk/models/shared/security.md b/docs/sdk/models/shared/security.md index 31b76996..c641f756 100644 --- a/docs/sdk/models/shared/security.md +++ b/docs/sdk/models/shared/security.md @@ -10,8 +10,6 @@ let value: Security = {}; ## Fields -| Field | Type | Required | Description | -| --------------------- | --------------------- | --------------------- | --------------------- | -| `apiKey` | *string* | :heavy_minus_sign: | N/A | -| `bearer` | *string* | :heavy_minus_sign: | N/A | -| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `apiKey` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/shared/targetbillingbreakdown.md b/docs/sdk/models/shared/targetbillingbreakdown.md index ea49881d..a3219b79 100644 --- a/docs/sdk/models/shared/targetbillingbreakdown.md +++ b/docs/sdk/models/shared/targetbillingbreakdown.md @@ -10,8 +10,10 @@ import { TargetBillingBreakdown } from "@speakeasy-api/speakeasy-client-sdk-type let value: TargetBillingBreakdown = { genLockId: "", isActive: true, + operationCount: 604397, target: "", targetName: "", + workspaceSlug: "", }; ``` @@ -19,8 +21,16 @@ let value: TargetBillingBreakdown = { | Field | Type | Required | Description | | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | +| `billingStatus` | [shared.BillingStatus](../../../sdk/models/shared/billingstatus.md) | :heavy_minus_sign: | The billing status of this target | +| `canDeactivate` | *boolean* | :heavy_minus_sign: | Whether this target can be deactivated (subject to 2-week cooldown) | +| `deactivated` | *boolean* | :heavy_minus_sign: | Whether the target has been deactivated by the user | +| `deactivationScheduledAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Timestamp when the target is scheduled to be deactivated (for self-serve business tier) | | `genLockId` | *string* | :heavy_check_mark: | The generation lock ID for this target | | `isActive` | *boolean* | :heavy_check_mark: | Whether the target is active (source namespace is not archived) | | `lastGeneratedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Timestamp of the most recent SDK generation for this target | +| `namespaceName` | *string* | :heavy_minus_sign: | Source spec namespace slug when the generation event is linked to a spec | +| `operationCount` | *number* | :heavy_check_mark: | Number of operations captured on the generation event for this target | | `target` | *string* | :heavy_check_mark: | The target type (e.g., typescript, python) | -| `targetName` | *string* | :heavy_check_mark: | The workflow name of this target | \ No newline at end of file +| `targetName` | *string* | :heavy_check_mark: | The workflow name of this target | +| `trialEndsAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Timestamp when the trial period ends for this target | +| `workspaceSlug` | *string* | :heavy_check_mark: | Slug of the workspace that owns this target | \ No newline at end of file diff --git a/docs/sdk/models/shared/trialtargetsresponse.md b/docs/sdk/models/shared/trialtargetsresponse.md new file mode 100644 index 00000000..7bf9eab6 --- /dev/null +++ b/docs/sdk/models/shared/trialtargetsresponse.md @@ -0,0 +1,22 @@ +# TrialTargetsResponse + +## Example Usage + +```typescript +import { TrialTargetsResponse } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/shared"; + +let value: TrialTargetsResponse = { + availableTrials: null, + usedTrials: [ + "", + "", + ], +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | +| `availableTrials` | *string*[] | :heavy_check_mark: | Languages that can still get a free trial | +| `usedTrials` | *string*[] | :heavy_check_mark: | Languages that have already been trialed | \ No newline at end of file diff --git a/docs/sdk/models/shared/workspacefeatureflag.md b/docs/sdk/models/shared/workspacefeatureflag.md index d69cf1ab..2b256ede 100644 --- a/docs/sdk/models/shared/workspacefeatureflag.md +++ b/docs/sdk/models/shared/workspacefeatureflag.md @@ -8,12 +8,12 @@ enum value workspace feature flag import { WorkspaceFeatureFlag } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/shared"; let value: WorkspaceFeatureFlag = "schema_registry"; + +// Open enum: unrecognized values are captured as Unrecognized ``` ## Values -This is an open enum. Unrecognized values will be captured as the `Unrecognized` branded type. - ```typescript "schema_registry" | "changes_report" | "skip_schema_registry" | "webhooks" | Unrecognized ``` \ No newline at end of file diff --git a/docs/sdks/artifacts/README.md b/docs/sdks/artifacts/README.md index 9b84c7e9..06533ade 100644 --- a/docs/sdks/artifacts/README.md +++ b/docs/sdks/artifacts/README.md @@ -28,11 +28,7 @@ Configure a new remote source ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; -const speakeasy = new Speakeasy({ - security: { - apiKey: "", - }, -}); +const speakeasy = new Speakeasy(); async function run() { await speakeasy.artifacts.createRemoteSource(); @@ -53,11 +49,7 @@ import { artifactsCreateRemoteSource } from "@speakeasy-api/speakeasy-client-sdk // Use `SpeakeasyCore` for best tree-shaking performance. // You can create one instance of it to use across an application. -const speakeasy = new SpeakeasyCore({ - security: { - apiKey: "", - }, -}); +const speakeasy = new SpeakeasyCore(); async function run() { const res = await artifactsCreateRemoteSource(speakeasy); @@ -119,11 +111,7 @@ Get blob for a particular digest ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; -const speakeasy = new Speakeasy({ - security: { - apiKey: "", - }, -}); +const speakeasy = new Speakeasy(); async function run() { const result = await speakeasy.artifacts.getBlob({ @@ -149,11 +137,7 @@ import { artifactsGetBlob } from "@speakeasy-api/speakeasy-client-sdk-typescript // Use `SpeakeasyCore` for best tree-shaking performance. // You can create one instance of it to use across an application. -const speakeasy = new SpeakeasyCore({ - security: { - apiKey: "", - }, -}); +const speakeasy = new SpeakeasyCore(); async function run() { const res = await artifactsGetBlob(speakeasy, { @@ -231,11 +215,7 @@ Get manifest for a particular reference ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; -const speakeasy = new Speakeasy({ - security: { - apiKey: "", - }, -}); +const speakeasy = new Speakeasy(); async function run() { const result = await speakeasy.artifacts.getManifest({ @@ -261,11 +241,7 @@ import { artifactsGetManifest } from "@speakeasy-api/speakeasy-client-sdk-typesc // Use `SpeakeasyCore` for best tree-shaking performance. // You can create one instance of it to use across an application. -const speakeasy = new SpeakeasyCore({ - security: { - apiKey: "", - }, -}); +const speakeasy = new SpeakeasyCore(); async function run() { const res = await artifactsGetManifest(speakeasy, { @@ -343,11 +319,7 @@ Each namespace contains many revisions. ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; -const speakeasy = new Speakeasy({ - security: { - apiKey: "", - }, -}); +const speakeasy = new Speakeasy(); async function run() { const result = await speakeasy.artifacts.getNamespaces(); @@ -368,11 +340,7 @@ import { artifactsGetNamespaces } from "@speakeasy-api/speakeasy-client-sdk-type // Use `SpeakeasyCore` for best tree-shaking performance. // You can create one instance of it to use across an application. -const speakeasy = new SpeakeasyCore({ - security: { - apiKey: "", - }, -}); +const speakeasy = new SpeakeasyCore(); async function run() { const res = await artifactsGetNamespaces(speakeasy); @@ -441,11 +409,7 @@ import { ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; -const speakeasy = new Speakeasy({ - security: { - apiKey: "", - }, -}); +const speakeasy = new Speakeasy(); async function run() { const result = await speakeasy.artifacts.getRevisions({ @@ -468,11 +432,7 @@ import { artifactsGetRevisions } from "@speakeasy-api/speakeasy-client-sdk-types // Use `SpeakeasyCore` for best tree-shaking performance. // You can create one instance of it to use across an application. -const speakeasy = new SpeakeasyCore({ - security: { - apiKey: "", - }, -}); +const speakeasy = new SpeakeasyCore(); async function run() { const res = await artifactsGetRevisions(speakeasy, { @@ -545,11 +505,7 @@ import { ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; -const speakeasy = new Speakeasy({ - security: { - apiKey: "", - }, -}); +const speakeasy = new Speakeasy(); async function run() { const result = await speakeasy.artifacts.getTags({ @@ -572,11 +528,7 @@ import { artifactsGetTags } from "@speakeasy-api/speakeasy-client-sdk-typescript // Use `SpeakeasyCore` for best tree-shaking performance. // You can create one instance of it to use across an application. -const speakeasy = new SpeakeasyCore({ - security: { - apiKey: "", - }, -}); +const speakeasy = new SpeakeasyCore(); async function run() { const res = await artifactsGetTags(speakeasy, { @@ -651,11 +603,7 @@ Get remote sources attached to a particular namespace ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; -const speakeasy = new Speakeasy({ - security: { - apiKey: "", - }, -}); +const speakeasy = new Speakeasy(); async function run() { const result = await speakeasy.artifacts.listRemoteSources({ @@ -678,11 +626,7 @@ import { artifactsListRemoteSources } from "@speakeasy-api/speakeasy-client-sdk- // Use `SpeakeasyCore` for best tree-shaking performance. // You can create one instance of it to use across an application. -const speakeasy = new SpeakeasyCore({ - security: { - apiKey: "", - }, -}); +const speakeasy = new SpeakeasyCore(); async function run() { const res = await artifactsListRemoteSources(speakeasy, { @@ -757,11 +701,7 @@ Add tags to an existing revision ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; -const speakeasy = new Speakeasy({ - security: { - apiKey: "", - }, -}); +const speakeasy = new Speakeasy(); async function run() { await speakeasy.artifacts.postTags({ @@ -784,11 +724,7 @@ import { artifactsPostTags } from "@speakeasy-api/speakeasy-client-sdk-typescrip // Use `SpeakeasyCore` for best tree-shaking performance. // You can create one instance of it to use across an application. -const speakeasy = new SpeakeasyCore({ - security: { - apiKey: "", - }, -}); +const speakeasy = new SpeakeasyCore(); async function run() { const res = await artifactsPostTags(speakeasy, { @@ -852,11 +788,7 @@ Get access token for communicating with OCI distribution endpoints ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; -const speakeasy = new Speakeasy({ - security: { - apiKey: "", - }, -}); +const speakeasy = new Speakeasy(); async function run() { const result = await speakeasy.artifacts.preflight(); @@ -877,11 +809,7 @@ import { artifactsPreflight } from "@speakeasy-api/speakeasy-client-sdk-typescri // Use `SpeakeasyCore` for best tree-shaking performance. // You can create one instance of it to use across an application. -const speakeasy = new SpeakeasyCore({ - security: { - apiKey: "", - }, -}); +const speakeasy = new SpeakeasyCore(); async function run() { const res = await artifactsPreflight(speakeasy); @@ -943,11 +871,7 @@ Set whether a namespace is archived ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; -const speakeasy = new Speakeasy({ - security: { - apiKey: "", - }, -}); +const speakeasy = new Speakeasy(); async function run() { await speakeasy.artifacts.setArchived({ @@ -970,11 +894,7 @@ import { artifactsSetArchived } from "@speakeasy-api/speakeasy-client-sdk-typesc // Use `SpeakeasyCore` for best tree-shaking performance. // You can create one instance of it to use across an application. -const speakeasy = new SpeakeasyCore({ - security: { - apiKey: "", - }, -}); +const speakeasy = new SpeakeasyCore(); async function run() { const res = await artifactsSetArchived(speakeasy, { @@ -1038,11 +958,7 @@ Set visibility of a namespace with an existing metadata entry ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; -const speakeasy = new Speakeasy({ - security: { - apiKey: "", - }, -}); +const speakeasy = new Speakeasy(); async function run() { await speakeasy.artifacts.setVisibility({ @@ -1065,11 +981,7 @@ import { artifactsSetVisibility } from "@speakeasy-api/speakeasy-client-sdk-type // Use `SpeakeasyCore` for best tree-shaking performance. // You can create one instance of it to use across an application. -const speakeasy = new SpeakeasyCore({ - security: { - apiKey: "", - }, -}); +const speakeasy = new SpeakeasyCore(); async function run() { const res = await artifactsSetVisibility(speakeasy, { diff --git a/docs/sdks/auth/README.md b/docs/sdks/auth/README.md index 8b2eb5c9..ecb9588c 100644 --- a/docs/sdks/auth/README.md +++ b/docs/sdks/auth/README.md @@ -21,14 +21,12 @@ Checks if generation is permitted for a particular run of the CLI ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; -const speakeasy = new Speakeasy({ - security: { - apiKey: "", - }, -}); +const speakeasy = new Speakeasy(); async function run() { - const result = await speakeasy.auth.getAccess({}); + const result = await speakeasy.auth.getAccess({ + apiKey: "", + }, {}); console.log(result); } @@ -46,14 +44,12 @@ import { authGetAccess } from "@speakeasy-api/speakeasy-client-sdk-typescript/fu // Use `SpeakeasyCore` for best tree-shaking performance. // You can create one instance of it to use across an application. -const speakeasy = new SpeakeasyCore({ - security: { - apiKey: "", - }, -}); +const speakeasy = new SpeakeasyCore(); async function run() { - const res = await authGetAccess(speakeasy, {}); + const res = await authGetAccess(speakeasy, { + apiKey: "", + }, {}); if (res.ok) { const { value: result } = res; console.log(result); @@ -98,6 +94,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `request` | [operations.GetWorkspaceAccessRequest](../../sdk/models/operations/getworkspaceaccessrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.GetWorkspaceAccessSecurity](../../sdk/models/operations/getworkspaceaccesssecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -220,14 +217,12 @@ Get information about the current user. ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; -const speakeasy = new Speakeasy({ - security: { - apiKey: "", - }, -}); +const speakeasy = new Speakeasy(); async function run() { - const result = await speakeasy.auth.getUser(); + const result = await speakeasy.auth.getUser({ + apiKey: "", + }); console.log(result); } @@ -245,14 +240,12 @@ import { authGetUser } from "@speakeasy-api/speakeasy-client-sdk-typescript/func // Use `SpeakeasyCore` for best tree-shaking performance. // You can create one instance of it to use across an application. -const speakeasy = new SpeakeasyCore({ - security: { - apiKey: "", - }, -}); +const speakeasy = new SpeakeasyCore(); async function run() { - const res = await authGetUser(speakeasy); + const res = await authGetUser(speakeasy, { + apiKey: "", + }); if (res.ok) { const { value: result } = res; console.log(result); @@ -295,6 +288,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `security` | [operations.GetUserSecurity](../../sdk/models/operations/getusersecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -320,14 +314,12 @@ Validate the current api key. ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; -const speakeasy = new Speakeasy({ - security: { - apiKey: "", - }, -}); +const speakeasy = new Speakeasy(); async function run() { - const result = await speakeasy.auth.validateApiKey(); + const result = await speakeasy.auth.validateApiKey({ + apiKey: "", + }); console.log(result); } @@ -345,14 +337,12 @@ import { authValidateApiKey } from "@speakeasy-api/speakeasy-client-sdk-typescri // Use `SpeakeasyCore` for best tree-shaking performance. // You can create one instance of it to use across an application. -const speakeasy = new SpeakeasyCore({ - security: { - apiKey: "", - }, -}); +const speakeasy = new SpeakeasyCore(); async function run() { - const res = await authValidateApiKey(speakeasy); + const res = await authValidateApiKey(speakeasy, { + apiKey: "", + }); if (res.ok) { const { value: result } = res; console.log(result); @@ -395,6 +385,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `security` | [operations.ValidateApiKeySecurity](../../sdk/models/operations/validateapikeysecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | diff --git a/docs/sdks/codesamples/README.md b/docs/sdks/codesamples/README.md index b5e56a58..49a988c0 100644 --- a/docs/sdks/codesamples/README.md +++ b/docs/sdks/codesamples/README.md @@ -22,14 +22,12 @@ This endpoint generates Code Sample previews from a file and configuration param import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; import { openAsBlob } from "node:fs"; -const speakeasy = new Speakeasy({ - security: { - apiKey: "", - }, -}); +const speakeasy = new Speakeasy(); async function run() { const result = await speakeasy.codeSamples.generateCodeSamplePreview({ + apiKey: "", + }, { language: "", schemaFile: await openAsBlob("example.file"), }); @@ -51,14 +49,12 @@ import { openAsBlob } from "node:fs"; // Use `SpeakeasyCore` for best tree-shaking performance. // You can create one instance of it to use across an application. -const speakeasy = new SpeakeasyCore({ - security: { - apiKey: "", - }, -}); +const speakeasy = new SpeakeasyCore(); async function run() { const res = await codeSamplesGenerateCodeSamplePreview(speakeasy, { + apiKey: "", + }, { language: "", schemaFile: await openAsBlob("example.file"), }); @@ -95,6 +91,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `request` | [shared.CodeSampleSchemaInput](../../sdk/models/shared/codesampleschemainput.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.GenerateCodeSamplePreviewSecurity](../../sdk/models/operations/generatecodesamplepreviewsecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -121,14 +118,12 @@ This endpoint generates Code Sample previews from a file and configuration param import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; import { openAsBlob } from "node:fs"; -const speakeasy = new Speakeasy({ - security: { - apiKey: "", - }, -}); +const speakeasy = new Speakeasy(); async function run() { const result = await speakeasy.codeSamples.generateCodeSamplePreviewAsync({ + apiKey: "", + }, { language: "", schemaFile: await openAsBlob("example.file"), }); @@ -150,14 +145,12 @@ import { openAsBlob } from "node:fs"; // Use `SpeakeasyCore` for best tree-shaking performance. // You can create one instance of it to use across an application. -const speakeasy = new SpeakeasyCore({ - security: { - apiKey: "", - }, -}); +const speakeasy = new SpeakeasyCore(); async function run() { const res = await codeSamplesGenerateCodeSamplePreviewAsync(speakeasy, { + apiKey: "", + }, { language: "", schemaFile: await openAsBlob("example.file"), }); @@ -194,6 +187,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `request` | [shared.CodeSampleSchemaInput](../../sdk/models/shared/codesampleschemainput.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.GenerateCodeSamplePreviewAsyncSecurity](../../sdk/models/operations/generatecodesamplepreviewasyncsecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -219,14 +213,12 @@ Retrieve usage snippets from an OpenAPI document stored in the registry. Support ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; -const speakeasy = new Speakeasy({ - security: { - apiKey: "", - }, -}); +const speakeasy = new Speakeasy(); async function run() { const result = await speakeasy.codeSamples.get({ + apiKey: "", + }, { registryUrl: "https://spec.speakeasy.com/my-org/my-workspace/my-source", operationIds: [ "getPets", @@ -259,14 +251,12 @@ import { codeSamplesGet } from "@speakeasy-api/speakeasy-client-sdk-typescript/f // Use `SpeakeasyCore` for best tree-shaking performance. // You can create one instance of it to use across an application. -const speakeasy = new SpeakeasyCore({ - security: { - apiKey: "", - }, -}); +const speakeasy = new SpeakeasyCore(); async function run() { const res = await codeSamplesGet(speakeasy, { + apiKey: "", + }, { registryUrl: "https://spec.speakeasy.com/my-org/my-workspace/my-source", operationIds: [ "getPets", @@ -326,6 +316,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `request` | [operations.GetCodeSamplesRequest](../../sdk/models/operations/getcodesamplesrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.GetCodeSamplesSecurity](../../sdk/models/operations/getcodesamplessecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -351,14 +342,12 @@ Poll for the result of an asynchronous Code Sample preview generation. ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; -const speakeasy = new Speakeasy({ - security: { - apiKey: "", - }, -}); +const speakeasy = new Speakeasy(); async function run() { const result = await speakeasy.codeSamples.getCodeSamplePreviewAsync({ + apiKey: "", + }, { jobID: "", }); @@ -378,14 +367,12 @@ import { codeSamplesGetCodeSamplePreviewAsync } from "@speakeasy-api/speakeasy-c // Use `SpeakeasyCore` for best tree-shaking performance. // You can create one instance of it to use across an application. -const speakeasy = new SpeakeasyCore({ - security: { - apiKey: "", - }, -}); +const speakeasy = new SpeakeasyCore(); async function run() { const res = await codeSamplesGetCodeSamplePreviewAsync(speakeasy, { + apiKey: "", + }, { jobID: "", }); if (res.ok) { @@ -432,6 +419,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `request` | [operations.GetCodeSamplePreviewAsyncRequest](../../sdk/models/operations/getcodesamplepreviewasyncrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.GetCodeSamplePreviewAsyncSecurity](../../sdk/models/operations/getcodesamplepreviewasyncsecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | diff --git a/docs/sdks/events/README.md b/docs/sdks/events/README.md index a7d4acfb..5bd22ae2 100644 --- a/docs/sdks/events/README.md +++ b/docs/sdks/events/README.md @@ -25,13 +25,12 @@ import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; const speakeasy = new Speakeasy({ workspaceId: "", - security: { - apiKey: "", - }, }); async function run() { const result = await speakeasy.events.getEventsByTarget({ + apiKey: "", + }, { targetId: "", }); @@ -53,13 +52,12 @@ import { eventsGetEventsByTarget } from "@speakeasy-api/speakeasy-client-sdk-typ // You can create one instance of it to use across an application. const speakeasy = new SpeakeasyCore({ workspaceId: "", - security: { - apiKey: "", - }, }); async function run() { const res = await eventsGetEventsByTarget(speakeasy, { + apiKey: "", + }, { targetId: "", }); if (res.ok) { @@ -106,6 +104,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `request` | [operations.GetWorkspaceEventsByTargetRequest](../../sdk/models/operations/getworkspaceeventsbytargetrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.GetWorkspaceEventsByTargetSecurity](../../sdk/models/operations/getworkspaceeventsbytargetsecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -131,14 +130,12 @@ Load targets for a particular workspace ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; -const speakeasy = new Speakeasy({ - security: { - apiKey: "", - }, -}); +const speakeasy = new Speakeasy(); async function run() { - const result = await speakeasy.events.getTargets({}); + const result = await speakeasy.events.getTargets({ + apiKey: "", + }, {}); console.log(result); } @@ -156,14 +153,12 @@ import { eventsGetTargets } from "@speakeasy-api/speakeasy-client-sdk-typescript // Use `SpeakeasyCore` for best tree-shaking performance. // You can create one instance of it to use across an application. -const speakeasy = new SpeakeasyCore({ - security: { - apiKey: "", - }, -}); +const speakeasy = new SpeakeasyCore(); async function run() { - const res = await eventsGetTargets(speakeasy, {}); + const res = await eventsGetTargets(speakeasy, { + apiKey: "", + }, {}); if (res.ok) { const { value: result } = res; console.log(result); @@ -208,6 +203,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `request` | [operations.GetWorkspaceTargetsRequest](../../sdk/models/operations/getworkspacetargetsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.GetWorkspaceTargetsSecurity](../../sdk/models/operations/getworkspacetargetssecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -235,13 +231,12 @@ import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; const speakeasy = new Speakeasy({ workspaceId: "", - security: { - apiKey: "", - }, }); async function run() { - const result = await speakeasy.events.getTargetsDeprecated({}); + const result = await speakeasy.events.getTargetsDeprecated({ + apiKey: "", + }, {}); console.log(result); } @@ -261,13 +256,12 @@ import { eventsGetTargetsDeprecated } from "@speakeasy-api/speakeasy-client-sdk- // You can create one instance of it to use across an application. const speakeasy = new SpeakeasyCore({ workspaceId: "", - security: { - apiKey: "", - }, }); async function run() { - const res = await eventsGetTargetsDeprecated(speakeasy, {}); + const res = await eventsGetTargetsDeprecated(speakeasy, { + apiKey: "", + }, {}); if (res.ok) { const { value: result } = res; console.log(result); @@ -312,6 +306,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `request` | [operations.GetWorkspaceTargetsDeprecatedRequest](../../sdk/models/operations/getworkspacetargetsdeprecatedrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.GetWorkspaceTargetsDeprecatedSecurity](../../sdk/models/operations/getworkspacetargetsdeprecatedsecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -337,14 +332,12 @@ Load a lean summary of targets for a workspace with pagination. Returns only ess ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; -const speakeasy = new Speakeasy({ - security: { - apiKey: "", - }, -}); +const speakeasy = new Speakeasy(); async function run() { - const result = await speakeasy.events.getTargetsSummary({}); + const result = await speakeasy.events.getTargetsSummary({ + apiKey: "", + }, {}); for await (const page of result) { console.log(page); @@ -364,14 +357,12 @@ import { eventsGetTargetsSummary } from "@speakeasy-api/speakeasy-client-sdk-typ // Use `SpeakeasyCore` for best tree-shaking performance. // You can create one instance of it to use across an application. -const speakeasy = new SpeakeasyCore({ - security: { - apiKey: "", - }, -}); +const speakeasy = new SpeakeasyCore(); async function run() { - const res = await eventsGetTargetsSummary(speakeasy, {}); + const res = await eventsGetTargetsSummary(speakeasy, { + apiKey: "", + }, {}); if (res.ok) { const { value: result } = res; for await (const page of result) { @@ -421,6 +412,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `request` | [operations.GetWorkspaceTargetsSummaryRequest](../../sdk/models/operations/getworkspacetargetssummaryrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.GetWorkspaceTargetsSummarySecurity](../../sdk/models/operations/getworkspacetargetssummarysecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -448,13 +440,12 @@ import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; const speakeasy = new Speakeasy({ workspaceId: "", - security: { - apiKey: "", - }, }); async function run() { await speakeasy.events.post({ + apiKey: "", + }, { requestBody: [ { createdAt: new Date("2023-02-16T09:12:42.397Z"), @@ -488,13 +479,12 @@ import { eventsPost } from "@speakeasy-api/speakeasy-client-sdk-typescript/funcs // You can create one instance of it to use across an application. const speakeasy = new SpeakeasyCore({ workspaceId: "", - security: { - apiKey: "", - }, }); async function run() { const res = await eventsPost(speakeasy, { + apiKey: "", + }, { requestBody: [ { createdAt: new Date("2023-02-16T09:12:42.397Z"), @@ -542,6 +532,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `request` | [operations.PostWorkspaceEventsRequest](../../sdk/models/operations/postworkspaceeventsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.PostWorkspaceEventsSecurity](../../sdk/models/operations/postworkspaceeventssecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -569,13 +560,12 @@ import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; const speakeasy = new Speakeasy({ workspaceId: "", - security: { - apiKey: "", - }, }); async function run() { - const result = await speakeasy.events.search({}); + const result = await speakeasy.events.search({ + apiKey: "", + }, {}); console.log(result); } @@ -595,13 +585,12 @@ import { eventsSearch } from "@speakeasy-api/speakeasy-client-sdk-typescript/fun // You can create one instance of it to use across an application. const speakeasy = new SpeakeasyCore({ workspaceId: "", - security: { - apiKey: "", - }, }); async function run() { - const res = await eventsSearch(speakeasy, {}); + const res = await eventsSearch(speakeasy, { + apiKey: "", + }, {}); if (res.ok) { const { value: result } = res; console.log(result); @@ -646,6 +635,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `request` | [operations.SearchWorkspaceEventsRequest](../../sdk/models/operations/searchworkspaceeventsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.SearchWorkspaceEventsSecurity](../../sdk/models/operations/searchworkspaceeventssecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | diff --git a/docs/sdks/github/README.md b/docs/sdks/github/README.md index 4fe451d6..4bba9ce8 100644 --- a/docs/sdks/github/README.md +++ b/docs/sdks/github/README.md @@ -26,14 +26,12 @@ REST APIs for managing the github integration ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; -const speakeasy = new Speakeasy({ - security: { - apiKey: "", - }, -}); +const speakeasy = new Speakeasy(); async function run() { await speakeasy.github.checkAccess({ + apiKey: "", + }, { org: "", repo: "", }); @@ -54,14 +52,12 @@ import { githubCheckAccess } from "@speakeasy-api/speakeasy-client-sdk-typescrip // Use `SpeakeasyCore` for best tree-shaking performance. // You can create one instance of it to use across an application. -const speakeasy = new SpeakeasyCore({ - security: { - apiKey: "", - }, -}); +const speakeasy = new SpeakeasyCore(); async function run() { const res = await githubCheckAccess(speakeasy, { + apiKey: "", + }, { org: "", repo: "", }); @@ -109,6 +105,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `request` | [operations.CheckGithubAccessRequest](../../sdk/models/operations/checkgithubaccessrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.CheckGithubAccessSecurity](../../sdk/models/operations/checkgithubaccesssecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -132,14 +129,12 @@ import { ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; -const speakeasy = new Speakeasy({ - security: { - apiKey: "", - }, -}); +const speakeasy = new Speakeasy(); async function run() { const result = await speakeasy.github.checkPublishingPRs({ + apiKey: "", + }, { generateGenLockId: "", org: "", repo: "", @@ -161,14 +156,12 @@ import { githubCheckPublishingPRs } from "@speakeasy-api/speakeasy-client-sdk-ty // Use `SpeakeasyCore` for best tree-shaking performance. // You can create one instance of it to use across an application. -const speakeasy = new SpeakeasyCore({ - security: { - apiKey: "", - }, -}); +const speakeasy = new SpeakeasyCore(); async function run() { const res = await githubCheckPublishingPRs(speakeasy, { + apiKey: "", + }, { generateGenLockId: "", org: "", repo: "", @@ -217,6 +210,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `request` | [operations.GithubCheckPublishingPRsRequest](../../sdk/models/operations/githubcheckpublishingprsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.GithubCheckPublishingPRsSecurity](../../sdk/models/operations/githubcheckpublishingprssecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -240,14 +234,12 @@ import { ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; -const speakeasy = new Speakeasy({ - security: { - apiKey: "", - }, -}); +const speakeasy = new Speakeasy(); async function run() { const result = await speakeasy.github.checkPublishingSecrets({ + apiKey: "", + }, { generateGenLockId: "", }); @@ -267,14 +259,12 @@ import { githubCheckPublishingSecrets } from "@speakeasy-api/speakeasy-client-sd // Use `SpeakeasyCore` for best tree-shaking performance. // You can create one instance of it to use across an application. -const speakeasy = new SpeakeasyCore({ - security: { - apiKey: "", - }, -}); +const speakeasy = new SpeakeasyCore(); async function run() { const res = await githubCheckPublishingSecrets(speakeasy, { + apiKey: "", + }, { generateGenLockId: "", }); if (res.ok) { @@ -321,6 +311,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `request` | [operations.GithubCheckPublishingSecretsRequest](../../sdk/models/operations/githubcheckpublishingsecretsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.GithubCheckPublishingSecretsSecurity](../../sdk/models/operations/githubcheckpublishingsecretssecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -344,14 +335,12 @@ import { ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; -const speakeasy = new Speakeasy({ - security: { - apiKey: "", - }, -}); +const speakeasy = new Speakeasy(); async function run() { const result = await speakeasy.github.configureCodeSamples({ + apiKey: "", + }, { org: "", repo: "", targetName: "", @@ -373,14 +362,12 @@ import { githubConfigureCodeSamples } from "@speakeasy-api/speakeasy-client-sdk- // Use `SpeakeasyCore` for best tree-shaking performance. // You can create one instance of it to use across an application. -const speakeasy = new SpeakeasyCore({ - security: { - apiKey: "", - }, -}); +const speakeasy = new SpeakeasyCore(); async function run() { const res = await githubConfigureCodeSamples(speakeasy, { + apiKey: "", + }, { org: "", repo: "", targetName: "", @@ -418,6 +405,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `request` | [shared.GithubConfigureCodeSamplesRequest](../../sdk/models/shared/githubconfigurecodesamplesrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.GithubConfigureCodeSamplesSecurity](../../sdk/models/operations/githubconfigurecodesamplessecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -441,14 +429,12 @@ import { ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; -const speakeasy = new Speakeasy({ - security: { - apiKey: "", - }, -}); +const speakeasy = new Speakeasy(); async function run() { await speakeasy.github.configureMintlifyRepo({ + apiKey: "", + }, { input: "", org: "", overlays: [ @@ -473,14 +459,12 @@ import { githubConfigureMintlifyRepo } from "@speakeasy-api/speakeasy-client-sdk // Use `SpeakeasyCore` for best tree-shaking performance. // You can create one instance of it to use across an application. -const speakeasy = new SpeakeasyCore({ - security: { - apiKey: "", - }, -}); +const speakeasy = new SpeakeasyCore(); async function run() { const res = await githubConfigureMintlifyRepo(speakeasy, { + apiKey: "", + }, { input: "", org: "", overlays: [ @@ -521,6 +505,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `request` | [shared.GithubConfigureMintlifyRepoRequest](../../sdk/models/shared/githubconfiguremintlifyreporequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.GithubConfigureMintlifyRepoSecurity](../../sdk/models/operations/githubconfiguremintlifyreposecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -544,14 +529,12 @@ import { ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; -const speakeasy = new Speakeasy({ - security: { - apiKey: "", - }, -}); +const speakeasy = new Speakeasy(); async function run() { await speakeasy.github.configureTarget({ + apiKey: "", + }, { org: "", repoName: "", }); @@ -572,14 +555,12 @@ import { githubConfigureTarget } from "@speakeasy-api/speakeasy-client-sdk-types // Use `SpeakeasyCore` for best tree-shaking performance. // You can create one instance of it to use across an application. -const speakeasy = new SpeakeasyCore({ - security: { - apiKey: "", - }, -}); +const speakeasy = new SpeakeasyCore(); async function run() { const res = await githubConfigureTarget(speakeasy, { + apiKey: "", + }, { org: "", repoName: "", }); @@ -616,6 +597,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `request` | [shared.GithubConfigureTargetRequest](../../sdk/models/shared/githubconfiguretargetrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.GithubConfigureTargetSecurity](../../sdk/models/operations/githubconfiguretargetsecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -639,14 +621,12 @@ import { ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; -const speakeasy = new Speakeasy({ - security: { - apiKey: "", - }, -}); +const speakeasy = new Speakeasy(); async function run() { const result = await speakeasy.github.getAction({ + apiKey: "", + }, { org: "", repo: "", }); @@ -667,14 +647,12 @@ import { githubGetAction } from "@speakeasy-api/speakeasy-client-sdk-typescript/ // Use `SpeakeasyCore` for best tree-shaking performance. // You can create one instance of it to use across an application. -const speakeasy = new SpeakeasyCore({ - security: { - apiKey: "", - }, -}); +const speakeasy = new SpeakeasyCore(); async function run() { const res = await githubGetAction(speakeasy, { + apiKey: "", + }, { org: "", repo: "", }); @@ -722,6 +700,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `request` | [operations.GetGitHubActionRequest](../../sdk/models/operations/getgithubactionrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.GetGitHubActionSecurity](../../sdk/models/operations/getgithubactionsecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -745,14 +724,12 @@ import { ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; -const speakeasy = new Speakeasy({ - security: { - apiKey: "", - }, -}); +const speakeasy = new Speakeasy(); async function run() { const result = await speakeasy.github.getSetup({ + apiKey: "", + }, { org: "", repo: "", generateGenLockId: "", @@ -774,14 +751,12 @@ import { githubGetSetup } from "@speakeasy-api/speakeasy-client-sdk-typescript/f // Use `SpeakeasyCore` for best tree-shaking performance. // You can create one instance of it to use across an application. -const speakeasy = new SpeakeasyCore({ - security: { - apiKey: "", - }, -}); +const speakeasy = new SpeakeasyCore(); async function run() { const res = await githubGetSetup(speakeasy, { + apiKey: "", + }, { org: "", repo: "", generateGenLockId: "", @@ -830,6 +805,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `request` | [operations.GetGithubSetupStateRequest](../../sdk/models/operations/getgithubsetupstaterequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.GetGithubSetupStateSecurity](../../sdk/models/operations/getgithubsetupstatesecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -853,14 +829,12 @@ import { ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; -const speakeasy = new Speakeasy({ - security: { - apiKey: "", - }, -}); +const speakeasy = new Speakeasy(); async function run() { - await speakeasy.github.linkGithub({}); + await speakeasy.github.linkGithub({ + apiKey: "", + }, {}); } @@ -878,14 +852,12 @@ import { githubLinkGithub } from "@speakeasy-api/speakeasy-client-sdk-typescript // Use `SpeakeasyCore` for best tree-shaking performance. // You can create one instance of it to use across an application. -const speakeasy = new SpeakeasyCore({ - security: { - apiKey: "", - }, -}); +const speakeasy = new SpeakeasyCore(); async function run() { - const res = await githubLinkGithub(speakeasy, {}); + const res = await githubLinkGithub(speakeasy, { + apiKey: "", + }, {}); if (res.ok) { const { value: result } = res; @@ -919,6 +891,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `request` | [operations.LinkGithubAccessRequest](../../sdk/models/operations/linkgithubaccessrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.LinkGithubAccessSecurity](../../sdk/models/operations/linkgithubaccesssecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -942,14 +915,12 @@ import { ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; -const speakeasy = new Speakeasy({ - security: { - apiKey: "", - }, -}); +const speakeasy = new Speakeasy(); async function run() { await speakeasy.github.storePublishingSecrets({ + apiKey: "", + }, { generateGenLockId: "", }); @@ -969,14 +940,12 @@ import { githubStorePublishingSecrets } from "@speakeasy-api/speakeasy-client-sd // Use `SpeakeasyCore` for best tree-shaking performance. // You can create one instance of it to use across an application. -const speakeasy = new SpeakeasyCore({ - security: { - apiKey: "", - }, -}); +const speakeasy = new SpeakeasyCore(); async function run() { const res = await githubStorePublishingSecrets(speakeasy, { + apiKey: "", + }, { generateGenLockId: "", }); if (res.ok) { @@ -1012,6 +981,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `request` | [shared.GithubStorePublishingSecretsRequest](../../sdk/models/shared/githubstorepublishingsecretsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.GithubStorePublishingSecretsSecurity](../../sdk/models/operations/githubstorepublishingsecretssecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -1035,14 +1005,12 @@ import { ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; -const speakeasy = new Speakeasy({ - security: { - apiKey: "", - }, -}); +const speakeasy = new Speakeasy(); async function run() { await speakeasy.github.triggerAction({ + apiKey: "", + }, { genLockId: "", org: "", repoName: "", @@ -1064,14 +1032,12 @@ import { githubTriggerAction } from "@speakeasy-api/speakeasy-client-sdk-typescr // Use `SpeakeasyCore` for best tree-shaking performance. // You can create one instance of it to use across an application. -const speakeasy = new SpeakeasyCore({ - security: { - apiKey: "", - }, -}); +const speakeasy = new SpeakeasyCore(); async function run() { const res = await githubTriggerAction(speakeasy, { + apiKey: "", + }, { genLockId: "", org: "", repoName: "", @@ -1109,6 +1075,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `request` | [shared.GithubTriggerActionRequest](../../sdk/models/shared/githubtriggeractionrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.GithubTriggerActionSecurity](../../sdk/models/operations/githubtriggeractionsecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | diff --git a/docs/sdks/organizations/README.md b/docs/sdks/organizations/README.md index 384a1c8d..93e7f7f7 100644 --- a/docs/sdks/organizations/README.md +++ b/docs/sdks/organizations/README.md @@ -6,15 +6,210 @@ REST APIs for managing Organizations (speakeasy L1 Tenancy construct) ### Available Operations +* [activateLanguage](#activatelanguage) - Activate language +* [cancelSubscription](#cancelsubscription) - Cancel subscription * [create](#create) - Create an organization * [createBillingAddOns](#createbillingaddons) - Create billing add ons * [createFreeTrial](#createfreetrial) - Create a free trial for an organization +* [createLanguageCheckoutSession](#createlanguagecheckoutsession) - Create language checkout session +* [deactivateLanguage](#deactivatelanguage) - Deactivate language * [deleteBillingAddOn](#deletebillingaddon) - Delete billing add ons * [get](#get) - Get organization * [getAll](#getall) - Get organizations for a user * [getBillingAddOns](#getbillingaddons) - Get billing add ons +* [getBillingEmail](#getbillingemail) - Get billing email for an organization * [getBillingOperations](#getbillingoperations) - Get billing operations breakdown for an organization +* [getBusinessTierPrices](#getbusinesstierprices) - Get business tier prices +* [getLanguages](#getlanguages) - Get language billing configurations +* [getSubscription](#getsubscription) - Get organization subscription +* [getTrialTargets](#gettrialtargets) - Get trial targets * [getUsage](#getusage) - Get billing usage summary for a particular organization +* [handleCheckoutCallback](#handlecheckoutcallback) - Checkout callback +* [revertSubscriptionCancellation](#revertsubscriptioncancellation) - Revert subscription cancellation +* [upsertBillingEmail](#upsertbillingemail) - Create or update billing email + +## activateLanguage + +Activates a language for billing. If the language was previously deactivated, +this will reactivate it. If the language is new, it may require checkout. + +### Example Usage + + +```typescript +import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; + +const speakeasy = new Speakeasy(); + +async function run() { + const result = await speakeasy.organizations.activateLanguage({ + apiKey: "", + }, { + language: "", + }); + + console.log(result); +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { SpeakeasyCore } from "@speakeasy-api/speakeasy-client-sdk-typescript/core.js"; +import { organizationsActivateLanguage } from "@speakeasy-api/speakeasy-client-sdk-typescript/funcs/organizationsActivateLanguage.js"; + +// Use `SpeakeasyCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const speakeasy = new SpeakeasyCore(); + +async function run() { + const res = await organizationsActivateLanguage(speakeasy, { + apiKey: "", + }, { + language: "", + }); + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("organizationsActivateLanguage failed:", res.error); + } +} + +run(); +``` + +### React hooks and utilities + +This method can be used in React components through the following hooks and +associated utilities. + +> Check out [this guide][hook-guide] for information about each of the utilities +> below and how to get started using React hooks. + +[hook-guide]: ../../../REACT_QUERY.md + +```tsx +import { + // Mutation hook for triggering the API call. + useOrganizationsActivateLanguageMutation +} from "@speakeasy-api/speakeasy-client-sdk-typescript/react-query/organizationsActivateLanguage.js"; +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `request` | [operations.ActivateLanguageRequest](../../sdk/models/operations/activatelanguagerequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.ActivateLanguageSecurity](../../sdk/models/operations/activatelanguagesecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | +| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | +| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | + +### Response + +**Promise\<[shared.LanguageActivationResponse](../../sdk/models/shared/languageactivationresponse.md)\>** + +### Errors + +| Error Type | Status Code | Content Type | +| ---------------- | ---------------- | ---------------- | +| errors.ErrorT | 4XX | application/json | +| errors.SDKError | 5XX | \*/\* | + +## cancelSubscription + +Requests cancellation of the organization's self-service business subscription. +The subscription will be cancelled at the end of the current billing period. +Specify a target to keep after downgrade to free tier when active targets remain. + +### Example Usage + + +```typescript +import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; + +const speakeasy = new Speakeasy(); + +async function run() { + const result = await speakeasy.organizations.cancelSubscription({ + apiKey: "", + }, {}); + + console.log(result); +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { SpeakeasyCore } from "@speakeasy-api/speakeasy-client-sdk-typescript/core.js"; +import { organizationsCancelSubscription } from "@speakeasy-api/speakeasy-client-sdk-typescript/funcs/organizationsCancelSubscription.js"; + +// Use `SpeakeasyCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const speakeasy = new SpeakeasyCore(); + +async function run() { + const res = await organizationsCancelSubscription(speakeasy, { + apiKey: "", + }, {}); + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("organizationsCancelSubscription failed:", res.error); + } +} + +run(); +``` + +### React hooks and utilities + +This method can be used in React components through the following hooks and +associated utilities. + +> Check out [this guide][hook-guide] for information about each of the utilities +> below and how to get started using React hooks. + +[hook-guide]: ../../../REACT_QUERY.md + +```tsx +import { + // Mutation hook for triggering the API call. + useOrganizationsCancelSubscriptionMutation +} from "@speakeasy-api/speakeasy-client-sdk-typescript/react-query/organizationsCancelSubscription.js"; +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `request` | [shared.CancelSubscriptionRequest](../../sdk/models/shared/cancelsubscriptionrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.CancelSubscriptionSecurity](../../sdk/models/operations/cancelsubscriptionsecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | +| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | +| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | + +### Response + +**Promise\<[shared.CancelSubscriptionResponse](../../sdk/models/shared/cancelsubscriptionresponse.md)\>** + +### Errors + +| Error Type | Status Code | Content Type | +| ---------------- | ---------------- | ---------------- | +| errors.ErrorT | 4XX | application/json | +| errors.SDKError | 5XX | \*/\* | ## create @@ -26,14 +221,44 @@ Creates an organization ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; -const speakeasy = new Speakeasy({ - security: { - apiKey: "", - }, -}); +const speakeasy = new Speakeasy(); async function run() { const result = await speakeasy.organizations.create({ + apiKey: "", + }, { + accountType: "scale-up", + createdAt: new Date("2025-10-26T09:05:00.560Z"), + id: "", + name: "", + slug: "", + ssoActivated: false, + telemetryDisabled: false, + updatedAt: new Date("2023-12-23T08:00:51.380Z"), + }); + + console.log(result); +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { SpeakeasyCore } from "@speakeasy-api/speakeasy-client-sdk-typescript/core.js"; +import { organizationsCreate } from "@speakeasy-api/speakeasy-client-sdk-typescript/funcs/organizationsCreate.js"; + +// Use `SpeakeasyCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const speakeasy = new SpeakeasyCore(); + +async function run() { + const res = await organizationsCreate(speakeasy, { + apiKey: "", + }, { accountType: "scale-up", createdAt: new Date("2025-10-26T09:05:00.560Z"), id: "", @@ -43,6 +268,931 @@ async function run() { telemetryDisabled: false, updatedAt: new Date("2023-12-23T08:00:51.380Z"), }); + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("organizationsCreate failed:", res.error); + } +} + +run(); +``` + +### React hooks and utilities + +This method can be used in React components through the following hooks and +associated utilities. + +> Check out [this guide][hook-guide] for information about each of the utilities +> below and how to get started using React hooks. + +[hook-guide]: ../../../REACT_QUERY.md + +```tsx +import { + // Mutation hook for triggering the API call. + useOrganizationsCreateMutation +} from "@speakeasy-api/speakeasy-client-sdk-typescript/react-query/organizationsCreate.js"; +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `request` | [shared.Organization](../../sdk/models/shared/organization.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.CreateOrganizationSecurity](../../sdk/models/operations/createorganizationsecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | +| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | +| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | + +### Response + +**Promise\<[shared.Organization](../../sdk/models/shared/organization.md)\>** + +### Errors + +| Error Type | Status Code | Content Type | +| ---------------- | ---------------- | ---------------- | +| errors.ErrorT | 4XX | application/json | +| errors.SDKError | 5XX | \*/\* | + +## createBillingAddOns + +Create billing add ons + +### Example Usage + + +```typescript +import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; + +const speakeasy = new Speakeasy(); + +async function run() { + const result = await speakeasy.organizations.createBillingAddOns({ + apiKey: "", + }, { + addOns: [ + "custom_code_regions", + ], + }); + + console.log(result); +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { SpeakeasyCore } from "@speakeasy-api/speakeasy-client-sdk-typescript/core.js"; +import { organizationsCreateBillingAddOns } from "@speakeasy-api/speakeasy-client-sdk-typescript/funcs/organizationsCreateBillingAddOns.js"; + +// Use `SpeakeasyCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const speakeasy = new SpeakeasyCore(); + +async function run() { + const res = await organizationsCreateBillingAddOns(speakeasy, { + apiKey: "", + }, { + addOns: [ + "custom_code_regions", + ], + }); + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("organizationsCreateBillingAddOns failed:", res.error); + } +} + +run(); +``` + +### React hooks and utilities + +This method can be used in React components through the following hooks and +associated utilities. + +> Check out [this guide][hook-guide] for information about each of the utilities +> below and how to get started using React hooks. + +[hook-guide]: ../../../REACT_QUERY.md + +```tsx +import { + // Mutation hook for triggering the API call. + useOrganizationsCreateBillingAddOnsMutation +} from "@speakeasy-api/speakeasy-client-sdk-typescript/react-query/organizationsCreateBillingAddOns.js"; +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `request` | [shared.OrganizationBillingAddOnRequest](../../sdk/models/shared/organizationbillingaddonrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.CreateBillingAddOnsSecurity](../../sdk/models/operations/createbillingaddonssecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | +| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | +| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | + +### Response + +**Promise\<[shared.OrganizationBillingAddOnResponse](../../sdk/models/shared/organizationbillingaddonresponse.md)\>** + +### Errors + +| Error Type | Status Code | Content Type | +| ---------------- | ---------------- | ---------------- | +| errors.ErrorT | 5XX | application/json | +| errors.SDKError | 4XX | \*/\* | + +## createFreeTrial + +Creates a free trial for an organization + +### Example Usage + + +```typescript +import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; + +const speakeasy = new Speakeasy(); + +async function run() { + await speakeasy.organizations.createFreeTrial({ + apiKey: "", + }); + + +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { SpeakeasyCore } from "@speakeasy-api/speakeasy-client-sdk-typescript/core.js"; +import { organizationsCreateFreeTrial } from "@speakeasy-api/speakeasy-client-sdk-typescript/funcs/organizationsCreateFreeTrial.js"; + +// Use `SpeakeasyCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const speakeasy = new SpeakeasyCore(); + +async function run() { + const res = await organizationsCreateFreeTrial(speakeasy, { + apiKey: "", + }); + if (res.ok) { + const { value: result } = res; + + } else { + console.log("organizationsCreateFreeTrial failed:", res.error); + } +} + +run(); +``` + +### React hooks and utilities + +This method can be used in React components through the following hooks and +associated utilities. + +> Check out [this guide][hook-guide] for information about each of the utilities +> below and how to get started using React hooks. + +[hook-guide]: ../../../REACT_QUERY.md + +```tsx +import { + // Mutation hook for triggering the API call. + useOrganizationsCreateFreeTrialMutation +} from "@speakeasy-api/speakeasy-client-sdk-typescript/react-query/organizationsCreateFreeTrial.js"; +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `security` | [operations.CreateFreeTrialSecurity](../../sdk/models/operations/createfreetrialsecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | +| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | +| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | + +### Response + +**Promise\** + +### Errors + +| Error Type | Status Code | Content Type | +| ---------------- | ---------------- | ---------------- | +| errors.ErrorT | 4XX | application/json | +| errors.SDKError | 5XX | \*/\* | + +## createLanguageCheckoutSession + +Creates a Stripe checkout session for per-language billing. +Used when upgrading to business tier with per-language billing model. + +### Example Usage + + +```typescript +import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; + +const speakeasy = new Speakeasy(); + +async function run() { + const result = await speakeasy.organizations.createLanguageCheckoutSession({ + apiKey: "", + }, { + cancelUrl: "https://bony-toothbrush.com/", + languages: [], + successUrl: "https://writhing-complication.net", + }); + + console.log(result); +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { SpeakeasyCore } from "@speakeasy-api/speakeasy-client-sdk-typescript/core.js"; +import { organizationsCreateLanguageCheckoutSession } from "@speakeasy-api/speakeasy-client-sdk-typescript/funcs/organizationsCreateLanguageCheckoutSession.js"; + +// Use `SpeakeasyCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const speakeasy = new SpeakeasyCore(); + +async function run() { + const res = await organizationsCreateLanguageCheckoutSession(speakeasy, { + apiKey: "", + }, { + cancelUrl: "https://bony-toothbrush.com/", + languages: [], + successUrl: "https://writhing-complication.net", + }); + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("organizationsCreateLanguageCheckoutSession failed:", res.error); + } +} + +run(); +``` + +### React hooks and utilities + +This method can be used in React components through the following hooks and +associated utilities. + +> Check out [this guide][hook-guide] for information about each of the utilities +> below and how to get started using React hooks. + +[hook-guide]: ../../../REACT_QUERY.md + +```tsx +import { + // Mutation hook for triggering the API call. + useOrganizationsCreateLanguageCheckoutSessionMutation +} from "@speakeasy-api/speakeasy-client-sdk-typescript/react-query/organizationsCreateLanguageCheckoutSession.js"; +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `request` | [shared.CreateLanguageCheckoutSessionRequest](../../sdk/models/shared/createlanguagecheckoutsessionrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.CreateLanguageCheckoutSessionSecurity](../../sdk/models/operations/createlanguagecheckoutsessionsecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | +| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | +| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | + +### Response + +**Promise\<[shared.CreateCheckoutSessionResponse](../../sdk/models/shared/createcheckoutsessionresponse.md)\>** + +### Errors + +| Error Type | Status Code | Content Type | +| ---------------- | ---------------- | ---------------- | +| errors.ErrorT | 4XX | application/json | +| errors.SDKError | 5XX | \*/\* | + +## deactivateLanguage + +Deactivates a language. Subject to 2-week cooldown between deactivations. + +### Example Usage + + +```typescript +import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; + +const speakeasy = new Speakeasy(); + +async function run() { + const result = await speakeasy.organizations.deactivateLanguage({ + apiKey: "", + }, { + language: "", + }); + + console.log(result); +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { SpeakeasyCore } from "@speakeasy-api/speakeasy-client-sdk-typescript/core.js"; +import { organizationsDeactivateLanguage } from "@speakeasy-api/speakeasy-client-sdk-typescript/funcs/organizationsDeactivateLanguage.js"; + +// Use `SpeakeasyCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const speakeasy = new SpeakeasyCore(); + +async function run() { + const res = await organizationsDeactivateLanguage(speakeasy, { + apiKey: "", + }, { + language: "", + }); + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("organizationsDeactivateLanguage failed:", res.error); + } +} + +run(); +``` + +### React hooks and utilities + +This method can be used in React components through the following hooks and +associated utilities. + +> Check out [this guide][hook-guide] for information about each of the utilities +> below and how to get started using React hooks. + +[hook-guide]: ../../../REACT_QUERY.md + +```tsx +import { + // Mutation hook for triggering the API call. + useOrganizationsDeactivateLanguageMutation +} from "@speakeasy-api/speakeasy-client-sdk-typescript/react-query/organizationsDeactivateLanguage.js"; +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `request` | [operations.DeactivateLanguageRequest](../../sdk/models/operations/deactivatelanguagerequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.DeactivateLanguageSecurity](../../sdk/models/operations/deactivatelanguagesecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | +| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | +| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | + +### Response + +**Promise\<[shared.LanguageActivationResponse](../../sdk/models/shared/languageactivationresponse.md)\>** + +### Errors + +| Error Type | Status Code | Content Type | +| ---------------- | ---------------- | ---------------- | +| errors.ErrorT | 4XX | application/json | +| errors.SDKError | 5XX | \*/\* | + +## deleteBillingAddOn + +Delete billing add ons + +### Example Usage + + +```typescript +import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; + +const speakeasy = new Speakeasy(); + +async function run() { + await speakeasy.organizations.deleteBillingAddOn({ + apiKey: "", + }, { + addOn: "sdk_testing", + }); + + +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { SpeakeasyCore } from "@speakeasy-api/speakeasy-client-sdk-typescript/core.js"; +import { organizationsDeleteBillingAddOn } from "@speakeasy-api/speakeasy-client-sdk-typescript/funcs/organizationsDeleteBillingAddOn.js"; + +// Use `SpeakeasyCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const speakeasy = new SpeakeasyCore(); + +async function run() { + const res = await organizationsDeleteBillingAddOn(speakeasy, { + apiKey: "", + }, { + addOn: "sdk_testing", + }); + if (res.ok) { + const { value: result } = res; + + } else { + console.log("organizationsDeleteBillingAddOn failed:", res.error); + } +} + +run(); +``` + +### React hooks and utilities + +This method can be used in React components through the following hooks and +associated utilities. + +> Check out [this guide][hook-guide] for information about each of the utilities +> below and how to get started using React hooks. + +[hook-guide]: ../../../REACT_QUERY.md + +```tsx +import { + // Mutation hook for triggering the API call. + useOrganizationsDeleteBillingAddOnMutation +} from "@speakeasy-api/speakeasy-client-sdk-typescript/react-query/organizationsDeleteBillingAddOn.js"; +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `request` | [operations.DeleteBillingAddOnRequest](../../sdk/models/operations/deletebillingaddonrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.DeleteBillingAddOnSecurity](../../sdk/models/operations/deletebillingaddonsecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | +| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | +| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | + +### Response + +**Promise\** + +### Errors + +| Error Type | Status Code | Content Type | +| ---------------- | ---------------- | ---------------- | +| errors.ErrorT | 5XX | application/json | +| errors.SDKError | 4XX | \*/\* | + +## get + +Get information about a particular organization. + +### Example Usage + + +```typescript +import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; + +const speakeasy = new Speakeasy(); + +async function run() { + const result = await speakeasy.organizations.get({ + apiKey: "", + }, { + organizationID: "", + }); + + console.log(result); +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { SpeakeasyCore } from "@speakeasy-api/speakeasy-client-sdk-typescript/core.js"; +import { organizationsGet } from "@speakeasy-api/speakeasy-client-sdk-typescript/funcs/organizationsGet.js"; + +// Use `SpeakeasyCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const speakeasy = new SpeakeasyCore(); + +async function run() { + const res = await organizationsGet(speakeasy, { + apiKey: "", + }, { + organizationID: "", + }); + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("organizationsGet failed:", res.error); + } +} + +run(); +``` + +### React hooks and utilities + +This method can be used in React components through the following hooks and +associated utilities. + +> Check out [this guide][hook-guide] for information about each of the utilities +> below and how to get started using React hooks. + +[hook-guide]: ../../../REACT_QUERY.md + +```tsx +import { + // Query hooks for fetching data. + useOrganizationsGet, + useOrganizationsGetSuspense, + + // Utility for prefetching data during server-side rendering and in React + // Server Components that will be immediately available to client components + // using the hooks. + prefetchOrganizationsGet, + + // Utilities to invalidate the query cache for this query in response to + // mutations and other user actions. + invalidateOrganizationsGet, + invalidateAllOrganizationsGet, +} from "@speakeasy-api/speakeasy-client-sdk-typescript/react-query/organizationsGet.js"; +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `request` | [operations.GetOrganizationRequest](../../sdk/models/operations/getorganizationrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.GetOrganizationSecurity](../../sdk/models/operations/getorganizationsecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | +| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | +| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | + +### Response + +**Promise\<[shared.Organization](../../sdk/models/shared/organization.md)\>** + +### Errors + +| Error Type | Status Code | Content Type | +| ---------------- | ---------------- | ---------------- | +| errors.ErrorT | 4XX | application/json | +| errors.SDKError | 5XX | \*/\* | + +## getAll + +Returns a list of organizations a user has access too + +### Example Usage + + +```typescript +import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; + +const speakeasy = new Speakeasy(); + +async function run() { + const result = await speakeasy.organizations.getAll({ + apiKey: "", + }); + + console.log(result); +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { SpeakeasyCore } from "@speakeasy-api/speakeasy-client-sdk-typescript/core.js"; +import { organizationsGetAll } from "@speakeasy-api/speakeasy-client-sdk-typescript/funcs/organizationsGetAll.js"; + +// Use `SpeakeasyCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const speakeasy = new SpeakeasyCore(); + +async function run() { + const res = await organizationsGetAll(speakeasy, { + apiKey: "", + }); + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("organizationsGetAll failed:", res.error); + } +} + +run(); +``` + +### React hooks and utilities + +This method can be used in React components through the following hooks and +associated utilities. + +> Check out [this guide][hook-guide] for information about each of the utilities +> below and how to get started using React hooks. + +[hook-guide]: ../../../REACT_QUERY.md + +```tsx +import { + // Query hooks for fetching data. + useOrganizationsGetAll, + useOrganizationsGetAllSuspense, + + // Utility for prefetching data during server-side rendering and in React + // Server Components that will be immediately available to client components + // using the hooks. + prefetchOrganizationsGetAll, + + // Utility to invalidate the query cache for this query in response to + // mutations and other user actions. + invalidateAllOrganizationsGetAll, +} from "@speakeasy-api/speakeasy-client-sdk-typescript/react-query/organizationsGetAll.js"; +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `security` | [operations.GetOrganizationsSecurity](../../sdk/models/operations/getorganizationssecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | +| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | +| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | + +### Response + +**Promise\<[shared.Organization[]](../../models/.md)\>** + +### Errors + +| Error Type | Status Code | Content Type | +| ---------------- | ---------------- | ---------------- | +| errors.ErrorT | 4XX | application/json | +| errors.SDKError | 5XX | \*/\* | + +## getBillingAddOns + +Get billing add ons + +### Example Usage + + +```typescript +import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; + +const speakeasy = new Speakeasy(); + +async function run() { + const result = await speakeasy.organizations.getBillingAddOns({ + apiKey: "", + }); + + console.log(result); +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { SpeakeasyCore } from "@speakeasy-api/speakeasy-client-sdk-typescript/core.js"; +import { organizationsGetBillingAddOns } from "@speakeasy-api/speakeasy-client-sdk-typescript/funcs/organizationsGetBillingAddOns.js"; + +// Use `SpeakeasyCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const speakeasy = new SpeakeasyCore(); + +async function run() { + const res = await organizationsGetBillingAddOns(speakeasy, { + apiKey: "", + }); + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("organizationsGetBillingAddOns failed:", res.error); + } +} + +run(); +``` + +### React hooks and utilities + +This method can be used in React components through the following hooks and +associated utilities. + +> Check out [this guide][hook-guide] for information about each of the utilities +> below and how to get started using React hooks. + +[hook-guide]: ../../../REACT_QUERY.md + +```tsx +import { + // Query hooks for fetching data. + useOrganizationsGetBillingAddOns, + useOrganizationsGetBillingAddOnsSuspense, + + // Utility for prefetching data during server-side rendering and in React + // Server Components that will be immediately available to client components + // using the hooks. + prefetchOrganizationsGetBillingAddOns, + + // Utility to invalidate the query cache for this query in response to + // mutations and other user actions. + invalidateAllOrganizationsGetBillingAddOns, +} from "@speakeasy-api/speakeasy-client-sdk-typescript/react-query/organizationsGetBillingAddOns.js"; +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `security` | [operations.GetBillingAddOnsSecurity](../../sdk/models/operations/getbillingaddonssecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | +| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | +| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | + +### Response + +**Promise\<[shared.OrganizationBillingAddOnResponse](../../sdk/models/shared/organizationbillingaddonresponse.md)\>** + +### Errors + +| Error Type | Status Code | Content Type | +| ---------------- | ---------------- | ---------------- | +| errors.ErrorT | 5XX | application/json | +| errors.SDKError | 4XX | \*/\* | + +## getBillingEmail + +Returns the billing email and Stripe customer status for the current organization + +### Example Usage + + +```typescript +import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; + +const speakeasy = new Speakeasy(); + +async function run() { + const result = await speakeasy.organizations.getBillingEmail({ + apiKey: "", + }); + + console.log(result); +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { SpeakeasyCore } from "@speakeasy-api/speakeasy-client-sdk-typescript/core.js"; +import { organizationsGetBillingEmail } from "@speakeasy-api/speakeasy-client-sdk-typescript/funcs/organizationsGetBillingEmail.js"; + +// Use `SpeakeasyCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const speakeasy = new SpeakeasyCore(); + +async function run() { + const res = await organizationsGetBillingEmail(speakeasy, { + apiKey: "", + }); + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("organizationsGetBillingEmail failed:", res.error); + } +} + +run(); +``` + +### React hooks and utilities + +This method can be used in React components through the following hooks and +associated utilities. + +> Check out [this guide][hook-guide] for information about each of the utilities +> below and how to get started using React hooks. + +[hook-guide]: ../../../REACT_QUERY.md + +```tsx +import { + // Query hooks for fetching data. + useOrganizationsGetBillingEmail, + useOrganizationsGetBillingEmailSuspense, + + // Utility for prefetching data during server-side rendering and in React + // Server Components that will be immediately available to client components + // using the hooks. + prefetchOrganizationsGetBillingEmail, + + // Utility to invalidate the query cache for this query in response to + // mutations and other user actions. + invalidateAllOrganizationsGetBillingEmail, +} from "@speakeasy-api/speakeasy-client-sdk-typescript/react-query/organizationsGetBillingEmail.js"; +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `security` | [operations.GetBillingEmailSecurity](../../sdk/models/operations/getbillingemailsecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | +| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | +| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | + +### Response + +**Promise\<[shared.BillingEmailResponse](../../sdk/models/shared/billingemailresponse.md)\>** + +### Errors + +| Error Type | Status Code | Content Type | +| ---------------- | ---------------- | ---------------- | +| errors.ErrorT | 4XX | application/json | +| errors.SDKError | 5XX | \*/\* | + +## getBillingOperations + +Returns a breakdown of billing operations by language and generated SDK target +for an organization. Each language row is sourced from generation events, +and target rows optionally include the source spec namespace when available. + +### Example Usage + + +```typescript +import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; + +const speakeasy = new Speakeasy(); + +async function run() { + const result = await speakeasy.organizations.getBillingOperations({ + apiKey: "", + }); console.log(result); } @@ -56,32 +1206,21 @@ The standalone function version of this method: ```typescript import { SpeakeasyCore } from "@speakeasy-api/speakeasy-client-sdk-typescript/core.js"; -import { organizationsCreate } from "@speakeasy-api/speakeasy-client-sdk-typescript/funcs/organizationsCreate.js"; +import { organizationsGetBillingOperations } from "@speakeasy-api/speakeasy-client-sdk-typescript/funcs/organizationsGetBillingOperations.js"; // Use `SpeakeasyCore` for best tree-shaking performance. // You can create one instance of it to use across an application. -const speakeasy = new SpeakeasyCore({ - security: { - apiKey: "", - }, -}); +const speakeasy = new SpeakeasyCore(); async function run() { - const res = await organizationsCreate(speakeasy, { - accountType: "scale-up", - createdAt: new Date("2025-10-26T09:05:00.560Z"), - id: "", - name: "", - slug: "", - ssoActivated: false, - telemetryDisabled: false, - updatedAt: new Date("2023-12-23T08:00:51.380Z"), + const res = await organizationsGetBillingOperations(speakeasy, { + apiKey: "", }); if (res.ok) { const { value: result } = res; console.log(result); } else { - console.log("organizationsCreate failed:", res.error); + console.log("organizationsGetBillingOperations failed:", res.error); } } @@ -100,23 +1239,33 @@ associated utilities. ```tsx import { - // Mutation hook for triggering the API call. - useOrganizationsCreateMutation -} from "@speakeasy-api/speakeasy-client-sdk-typescript/react-query/organizationsCreate.js"; + // Query hooks for fetching data. + useOrganizationsGetBillingOperations, + useOrganizationsGetBillingOperationsSuspense, + + // Utility for prefetching data during server-side rendering and in React + // Server Components that will be immediately available to client components + // using the hooks. + prefetchOrganizationsGetBillingOperations, + + // Utility to invalidate the query cache for this query in response to + // mutations and other user actions. + invalidateAllOrganizationsGetBillingOperations, +} from "@speakeasy-api/speakeasy-client-sdk-typescript/react-query/organizationsGetBillingOperations.js"; ``` ### Parameters | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [shared.Organization](../../sdk/models/shared/organization.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.GetBillingOperationsSecurity](../../sdk/models/operations/getbillingoperationssecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[shared.Organization](../../sdk/models/shared/organization.md)\>** +**Promise\<[shared.BillingOperationsResponse](../../sdk/models/shared/billingoperationsresponse.md)\>** ### Errors @@ -125,27 +1274,21 @@ import { | errors.ErrorT | 4XX | application/json | | errors.SDKError | 5XX | \*/\* | -## createBillingAddOns +## getBusinessTierPrices -Create billing add ons +Returns both monthly and annual business tier prices from Stripe ### Example Usage - + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; -const speakeasy = new Speakeasy({ - security: { - apiKey: "", - }, -}); +const speakeasy = new Speakeasy(); async function run() { - const result = await speakeasy.organizations.createBillingAddOns({ - addOns: [ - "custom_code_regions", - ], + const result = await speakeasy.organizations.getBusinessTierPrices({ + apiKey: "", }); console.log(result); @@ -160,27 +1303,21 @@ The standalone function version of this method: ```typescript import { SpeakeasyCore } from "@speakeasy-api/speakeasy-client-sdk-typescript/core.js"; -import { organizationsCreateBillingAddOns } from "@speakeasy-api/speakeasy-client-sdk-typescript/funcs/organizationsCreateBillingAddOns.js"; +import { organizationsGetBusinessTierPrices } from "@speakeasy-api/speakeasy-client-sdk-typescript/funcs/organizationsGetBusinessTierPrices.js"; // Use `SpeakeasyCore` for best tree-shaking performance. // You can create one instance of it to use across an application. -const speakeasy = new SpeakeasyCore({ - security: { - apiKey: "", - }, -}); +const speakeasy = new SpeakeasyCore(); async function run() { - const res = await organizationsCreateBillingAddOns(speakeasy, { - addOns: [ - "custom_code_regions", - ], + const res = await organizationsGetBusinessTierPrices(speakeasy, { + apiKey: "", }); if (res.ok) { const { value: result } = res; console.log(result); } else { - console.log("organizationsCreateBillingAddOns failed:", res.error); + console.log("organizationsGetBusinessTierPrices failed:", res.error); } } @@ -199,51 +1336,60 @@ associated utilities. ```tsx import { - // Mutation hook for triggering the API call. - useOrganizationsCreateBillingAddOnsMutation -} from "@speakeasy-api/speakeasy-client-sdk-typescript/react-query/organizationsCreateBillingAddOns.js"; + // Query hooks for fetching data. + useOrganizationsGetBusinessTierPrices, + useOrganizationsGetBusinessTierPricesSuspense, + + // Utility for prefetching data during server-side rendering and in React + // Server Components that will be immediately available to client components + // using the hooks. + prefetchOrganizationsGetBusinessTierPrices, + + // Utility to invalidate the query cache for this query in response to + // mutations and other user actions. + invalidateAllOrganizationsGetBusinessTierPrices, +} from "@speakeasy-api/speakeasy-client-sdk-typescript/react-query/organizationsGetBusinessTierPrices.js"; ``` ### Parameters | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [shared.OrganizationBillingAddOnRequest](../../sdk/models/shared/organizationbillingaddonrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.GetBusinessTierPricesSecurity](../../sdk/models/operations/getbusinesstierpricessecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[shared.OrganizationBillingAddOnResponse](../../sdk/models/shared/organizationbillingaddonresponse.md)\>** +**Promise\<[shared.BusinessTierPricesResponse](../../sdk/models/shared/businesstierpricesresponse.md)\>** ### Errors | Error Type | Status Code | Content Type | | ---------------- | ---------------- | ---------------- | -| errors.ErrorT | 5XX | application/json | -| errors.SDKError | 4XX | \*/\* | +| errors.ErrorT | 4XX | application/json | +| errors.SDKError | 5XX | \*/\* | -## createFreeTrial +## getLanguages -Creates a free trial for an organization +Returns all language billing configurations for the organization. +Only returns languages with self-serve billing configured. ### Example Usage - + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; -const speakeasy = new Speakeasy({ - security: { - apiKey: "", - }, -}); +const speakeasy = new Speakeasy(); async function run() { - await speakeasy.organizations.createFreeTrial(); - + const result = await speakeasy.organizations.getLanguages({ + apiKey: "", + }); + console.log(result); } run(); @@ -255,23 +1401,21 @@ The standalone function version of this method: ```typescript import { SpeakeasyCore } from "@speakeasy-api/speakeasy-client-sdk-typescript/core.js"; -import { organizationsCreateFreeTrial } from "@speakeasy-api/speakeasy-client-sdk-typescript/funcs/organizationsCreateFreeTrial.js"; +import { organizationsGetLanguages } from "@speakeasy-api/speakeasy-client-sdk-typescript/funcs/organizationsGetLanguages.js"; // Use `SpeakeasyCore` for best tree-shaking performance. // You can create one instance of it to use across an application. -const speakeasy = new SpeakeasyCore({ - security: { - apiKey: "", - }, -}); +const speakeasy = new SpeakeasyCore(); async function run() { - const res = await organizationsCreateFreeTrial(speakeasy); + const res = await organizationsGetLanguages(speakeasy, { + apiKey: "", + }); if (res.ok) { const { value: result } = res; - + console.log(result); } else { - console.log("organizationsCreateFreeTrial failed:", res.error); + console.log("organizationsGetLanguages failed:", res.error); } } @@ -290,22 +1434,33 @@ associated utilities. ```tsx import { - // Mutation hook for triggering the API call. - useOrganizationsCreateFreeTrialMutation -} from "@speakeasy-api/speakeasy-client-sdk-typescript/react-query/organizationsCreateFreeTrial.js"; + // Query hooks for fetching data. + useOrganizationsGetLanguages, + useOrganizationsGetLanguagesSuspense, + + // Utility for prefetching data during server-side rendering and in React + // Server Components that will be immediately available to client components + // using the hooks. + prefetchOrganizationsGetLanguages, + + // Utility to invalidate the query cache for this query in response to + // mutations and other user actions. + invalidateAllOrganizationsGetLanguages, +} from "@speakeasy-api/speakeasy-client-sdk-typescript/react-query/organizationsGetLanguages.js"; ``` ### Parameters | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `security` | [operations.GetLanguagesSecurity](../../sdk/models/operations/getlanguagessecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\** +**Promise\<[shared.GetLanguagesResponse](../../sdk/models/shared/getlanguagesresponse.md)\>** ### Errors @@ -314,28 +1469,24 @@ import { | errors.ErrorT | 4XX | application/json | | errors.SDKError | 5XX | \*/\* | -## deleteBillingAddOn +## getSubscription -Delete billing add ons +Returns the subscription status for the current organization ### Example Usage - + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; -const speakeasy = new Speakeasy({ - security: { - apiKey: "", - }, -}); +const speakeasy = new Speakeasy(); async function run() { - await speakeasy.organizations.deleteBillingAddOn({ - addOn: "sdk_testing", + const result = await speakeasy.organizations.getSubscription({ + apiKey: "", }); - + console.log(result); } run(); @@ -347,25 +1498,21 @@ The standalone function version of this method: ```typescript import { SpeakeasyCore } from "@speakeasy-api/speakeasy-client-sdk-typescript/core.js"; -import { organizationsDeleteBillingAddOn } from "@speakeasy-api/speakeasy-client-sdk-typescript/funcs/organizationsDeleteBillingAddOn.js"; +import { organizationsGetSubscription } from "@speakeasy-api/speakeasy-client-sdk-typescript/funcs/organizationsGetSubscription.js"; // Use `SpeakeasyCore` for best tree-shaking performance. // You can create one instance of it to use across an application. -const speakeasy = new SpeakeasyCore({ - security: { - apiKey: "", - }, -}); +const speakeasy = new SpeakeasyCore(); async function run() { - const res = await organizationsDeleteBillingAddOn(speakeasy, { - addOn: "sdk_testing", + const res = await organizationsGetSubscription(speakeasy, { + apiKey: "", }); if (res.ok) { const { value: result } = res; - + console.log(result); } else { - console.log("organizationsDeleteBillingAddOn failed:", res.error); + console.log("organizationsGetSubscription failed:", res.error); } } @@ -384,50 +1531,58 @@ associated utilities. ```tsx import { - // Mutation hook for triggering the API call. - useOrganizationsDeleteBillingAddOnMutation -} from "@speakeasy-api/speakeasy-client-sdk-typescript/react-query/organizationsDeleteBillingAddOn.js"; + // Query hooks for fetching data. + useOrganizationsGetSubscription, + useOrganizationsGetSubscriptionSuspense, + + // Utility for prefetching data during server-side rendering and in React + // Server Components that will be immediately available to client components + // using the hooks. + prefetchOrganizationsGetSubscription, + + // Utility to invalidate the query cache for this query in response to + // mutations and other user actions. + invalidateAllOrganizationsGetSubscription, +} from "@speakeasy-api/speakeasy-client-sdk-typescript/react-query/organizationsGetSubscription.js"; ``` ### Parameters | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.DeleteBillingAddOnRequest](../../sdk/models/operations/deletebillingaddonrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.GetOrganizationSubscriptionSecurity](../../sdk/models/operations/getorganizationsubscriptionsecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\** +**Promise\<[shared.OrganizationSubscriptionResponse](../../sdk/models/shared/organizationsubscriptionresponse.md)\>** ### Errors | Error Type | Status Code | Content Type | | ---------------- | ---------------- | ---------------- | -| errors.ErrorT | 5XX | application/json | -| errors.SDKError | 4XX | \*/\* | +| errors.ErrorT | 4XX | application/json | +| errors.SDKError | 5XX | \*/\* | -## get +## getTrialTargets -Get information about a particular organization. +Returns the list of target languages with available and used trials for the organization. +Available trials are languages that have not yet been trialed. +Used trials are languages that have already been trialed. ### Example Usage - + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; -const speakeasy = new Speakeasy({ - security: { - apiKey: "", - }, -}); +const speakeasy = new Speakeasy(); async function run() { - const result = await speakeasy.organizations.get({ - organizationID: "", + const result = await speakeasy.organizations.getTrialTargets({ + apiKey: "", }); console.log(result); @@ -442,25 +1597,21 @@ The standalone function version of this method: ```typescript import { SpeakeasyCore } from "@speakeasy-api/speakeasy-client-sdk-typescript/core.js"; -import { organizationsGet } from "@speakeasy-api/speakeasy-client-sdk-typescript/funcs/organizationsGet.js"; +import { organizationsGetTrialTargets } from "@speakeasy-api/speakeasy-client-sdk-typescript/funcs/organizationsGetTrialTargets.js"; // Use `SpeakeasyCore` for best tree-shaking performance. // You can create one instance of it to use across an application. -const speakeasy = new SpeakeasyCore({ - security: { - apiKey: "", - }, -}); +const speakeasy = new SpeakeasyCore(); async function run() { - const res = await organizationsGet(speakeasy, { - organizationID: "", + const res = await organizationsGetTrialTargets(speakeasy, { + apiKey: "", }); if (res.ok) { const { value: result } = res; console.log(result); } else { - console.log("organizationsGet failed:", res.error); + console.log("organizationsGetTrialTargets failed:", res.error); } } @@ -480,33 +1631,32 @@ associated utilities. ```tsx import { // Query hooks for fetching data. - useOrganizationsGet, - useOrganizationsGetSuspense, + useOrganizationsGetTrialTargets, + useOrganizationsGetTrialTargetsSuspense, // Utility for prefetching data during server-side rendering and in React // Server Components that will be immediately available to client components // using the hooks. - prefetchOrganizationsGet, + prefetchOrganizationsGetTrialTargets, - // Utilities to invalidate the query cache for this query in response to + // Utility to invalidate the query cache for this query in response to // mutations and other user actions. - invalidateOrganizationsGet, - invalidateAllOrganizationsGet, -} from "@speakeasy-api/speakeasy-client-sdk-typescript/react-query/organizationsGet.js"; + invalidateAllOrganizationsGetTrialTargets, +} from "@speakeasy-api/speakeasy-client-sdk-typescript/react-query/organizationsGetTrialTargets.js"; ``` ### Parameters | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetOrganizationRequest](../../sdk/models/operations/getorganizationrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.GetTrialTargetsSecurity](../../sdk/models/operations/gettrialtargetssecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[shared.Organization](../../sdk/models/shared/organization.md)\>** +**Promise\<[shared.TrialTargetsResponse](../../sdk/models/shared/trialtargetsresponse.md)\>** ### Errors @@ -515,24 +1665,22 @@ import { | errors.ErrorT | 4XX | application/json | | errors.SDKError | 5XX | \*/\* | -## getAll +## getUsage -Returns a list of organizations a user has access too +Returns a billing usage summary by target languages for a particular organization ### Example Usage - + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; -const speakeasy = new Speakeasy({ - security: { - apiKey: "", - }, -}); +const speakeasy = new Speakeasy(); async function run() { - const result = await speakeasy.organizations.getAll(); + const result = await speakeasy.organizations.getUsage({ + apiKey: "", + }); console.log(result); } @@ -546,23 +1694,21 @@ The standalone function version of this method: ```typescript import { SpeakeasyCore } from "@speakeasy-api/speakeasy-client-sdk-typescript/core.js"; -import { organizationsGetAll } from "@speakeasy-api/speakeasy-client-sdk-typescript/funcs/organizationsGetAll.js"; +import { organizationsGetUsage } from "@speakeasy-api/speakeasy-client-sdk-typescript/funcs/organizationsGetUsage.js"; // Use `SpeakeasyCore` for best tree-shaking performance. // You can create one instance of it to use across an application. -const speakeasy = new SpeakeasyCore({ - security: { - apiKey: "", - }, -}); +const speakeasy = new SpeakeasyCore(); async function run() { - const res = await organizationsGetAll(speakeasy); + const res = await organizationsGetUsage(speakeasy, { + apiKey: "", + }); if (res.ok) { const { value: result } = res; console.log(result); } else { - console.log("organizationsGetAll failed:", res.error); + console.log("organizationsGetUsage failed:", res.error); } } @@ -582,31 +1728,32 @@ associated utilities. ```tsx import { // Query hooks for fetching data. - useOrganizationsGetAll, - useOrganizationsGetAllSuspense, + useOrganizationsGetUsage, + useOrganizationsGetUsageSuspense, // Utility for prefetching data during server-side rendering and in React // Server Components that will be immediately available to client components // using the hooks. - prefetchOrganizationsGetAll, + prefetchOrganizationsGetUsage, // Utility to invalidate the query cache for this query in response to // mutations and other user actions. - invalidateAllOrganizationsGetAll, -} from "@speakeasy-api/speakeasy-client-sdk-typescript/react-query/organizationsGetAll.js"; + invalidateAllOrganizationsGetUsage, +} from "@speakeasy-api/speakeasy-client-sdk-typescript/react-query/organizationsGetUsage.js"; ``` ### Parameters | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `security` | [operations.GetOrganizationUsageSecurity](../../sdk/models/operations/getorganizationusagesecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[shared.Organization[]](../../models/.md)\>** +**Promise\<[shared.OrganizationUsageResponse](../../sdk/models/shared/organizationusageresponse.md)\>** ### Errors @@ -615,24 +1762,24 @@ import { | errors.ErrorT | 4XX | application/json | | errors.SDKError | 5XX | \*/\* | -## getBillingAddOns +## handleCheckoutCallback -Get billing add ons +Handles the Stripe checkout success callback. This endpoint is called by Stripe +after a successful checkout, runs reconciliation (idempotent), and redirects +to the original client success URL stored in session metadata. ### Example Usage - + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; -const speakeasy = new Speakeasy({ - security: { - apiKey: "", - }, -}); +const speakeasy = new Speakeasy(); async function run() { - const result = await speakeasy.organizations.getBillingAddOns(); + const result = await speakeasy.organizations.handleCheckoutCallback({ + sessionId: "", + }); console.log(result); } @@ -646,23 +1793,21 @@ The standalone function version of this method: ```typescript import { SpeakeasyCore } from "@speakeasy-api/speakeasy-client-sdk-typescript/core.js"; -import { organizationsGetBillingAddOns } from "@speakeasy-api/speakeasy-client-sdk-typescript/funcs/organizationsGetBillingAddOns.js"; +import { organizationsHandleCheckoutCallback } from "@speakeasy-api/speakeasy-client-sdk-typescript/funcs/organizationsHandleCheckoutCallback.js"; // Use `SpeakeasyCore` for best tree-shaking performance. // You can create one instance of it to use across an application. -const speakeasy = new SpeakeasyCore({ - security: { - apiKey: "", - }, -}); +const speakeasy = new SpeakeasyCore(); async function run() { - const res = await organizationsGetBillingAddOns(speakeasy); + const res = await organizationsHandleCheckoutCallback(speakeasy, { + sessionId: "", + }); if (res.ok) { const { value: result } = res; console.log(result); } else { - console.log("organizationsGetBillingAddOns failed:", res.error); + console.log("organizationsHandleCheckoutCallback failed:", res.error); } } @@ -682,58 +1827,58 @@ associated utilities. ```tsx import { // Query hooks for fetching data. - useOrganizationsGetBillingAddOns, - useOrganizationsGetBillingAddOnsSuspense, + useOrganizationsHandleCheckoutCallback, + useOrganizationsHandleCheckoutCallbackSuspense, // Utility for prefetching data during server-side rendering and in React // Server Components that will be immediately available to client components // using the hooks. - prefetchOrganizationsGetBillingAddOns, + prefetchOrganizationsHandleCheckoutCallback, - // Utility to invalidate the query cache for this query in response to + // Utilities to invalidate the query cache for this query in response to // mutations and other user actions. - invalidateAllOrganizationsGetBillingAddOns, -} from "@speakeasy-api/speakeasy-client-sdk-typescript/react-query/organizationsGetBillingAddOns.js"; + invalidateOrganizationsHandleCheckoutCallback, + invalidateAllOrganizationsHandleCheckoutCallback, +} from "@speakeasy-api/speakeasy-client-sdk-typescript/react-query/organizationsHandleCheckoutCallback.js"; ``` ### Parameters | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `request` | [operations.HandleCheckoutCallbackRequest](../../sdk/models/operations/handlecheckoutcallbackrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[shared.OrganizationBillingAddOnResponse](../../sdk/models/shared/organizationbillingaddonresponse.md)\>** +**Promise\<[operations.HandleCheckoutCallbackResponse](../../sdk/models/operations/handlecheckoutcallbackresponse.md)\>** ### Errors | Error Type | Status Code | Content Type | | ---------------- | ---------------- | ---------------- | -| errors.ErrorT | 5XX | application/json | -| errors.SDKError | 4XX | \*/\* | +| errors.ErrorT | 4XX | application/json | +| errors.SDKError | 5XX | \*/\* | -## getBillingOperations +## revertSubscriptionCancellation -Returns a breakdown of billing operations by spec and target for an organization. -The billing formula is: Total = sum(operationIds per spec x targets per spec) +Reverts a pending subscription cancellation. +The subscription will continue to renew automatically. ### Example Usage - + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; -const speakeasy = new Speakeasy({ - security: { - apiKey: "", - }, -}); +const speakeasy = new Speakeasy(); async function run() { - const result = await speakeasy.organizations.getBillingOperations({}); + const result = await speakeasy.organizations.revertSubscriptionCancellation({ + apiKey: "", + }); console.log(result); } @@ -747,23 +1892,21 @@ The standalone function version of this method: ```typescript import { SpeakeasyCore } from "@speakeasy-api/speakeasy-client-sdk-typescript/core.js"; -import { organizationsGetBillingOperations } from "@speakeasy-api/speakeasy-client-sdk-typescript/funcs/organizationsGetBillingOperations.js"; +import { organizationsRevertSubscriptionCancellation } from "@speakeasy-api/speakeasy-client-sdk-typescript/funcs/organizationsRevertSubscriptionCancellation.js"; // Use `SpeakeasyCore` for best tree-shaking performance. // You can create one instance of it to use across an application. -const speakeasy = new SpeakeasyCore({ - security: { - apiKey: "", - }, -}); +const speakeasy = new SpeakeasyCore(); async function run() { - const res = await organizationsGetBillingOperations(speakeasy, {}); + const res = await organizationsRevertSubscriptionCancellation(speakeasy, { + apiKey: "", + }); if (res.ok) { const { value: result } = res; console.log(result); } else { - console.log("organizationsGetBillingOperations failed:", res.error); + console.log("organizationsRevertSubscriptionCancellation failed:", res.error); } } @@ -782,34 +1925,23 @@ associated utilities. ```tsx import { - // Query hooks for fetching data. - useOrganizationsGetBillingOperations, - useOrganizationsGetBillingOperationsSuspense, - - // Utility for prefetching data during server-side rendering and in React - // Server Components that will be immediately available to client components - // using the hooks. - prefetchOrganizationsGetBillingOperations, - - // Utilities to invalidate the query cache for this query in response to - // mutations and other user actions. - invalidateOrganizationsGetBillingOperations, - invalidateAllOrganizationsGetBillingOperations, -} from "@speakeasy-api/speakeasy-client-sdk-typescript/react-query/organizationsGetBillingOperations.js"; + // Mutation hook for triggering the API call. + useOrganizationsRevertSubscriptionCancellationMutation +} from "@speakeasy-api/speakeasy-client-sdk-typescript/react-query/organizationsRevertSubscriptionCancellation.js"; ``` ### Parameters | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetBillingOperationsRequest](../../sdk/models/operations/getbillingoperationsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.RevertSubscriptionCancellationSecurity](../../sdk/models/operations/revertsubscriptioncancellationsecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[shared.BillingOperationsResponse](../../sdk/models/shared/billingoperationsresponse.md)\>** +**Promise\<[shared.CancelSubscriptionResponse](../../sdk/models/shared/cancelsubscriptionresponse.md)\>** ### Errors @@ -818,24 +1950,24 @@ import { | errors.ErrorT | 4XX | application/json | | errors.SDKError | 5XX | \*/\* | -## getUsage +## upsertBillingEmail -Returns a billing usage summary by target languages for a particular organization +Creates a Stripe customer if one does not exist, or updates the billing email for an existing Stripe customer ### Example Usage - + ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; -const speakeasy = new Speakeasy({ - security: { - apiKey: "", - }, -}); +const speakeasy = new Speakeasy(); async function run() { - const result = await speakeasy.organizations.getUsage(); + const result = await speakeasy.organizations.upsertBillingEmail({ + apiKey: "", + }, { + billingEmail: "Graciela.Sauer@hotmail.com", + }); console.log(result); } @@ -849,23 +1981,23 @@ The standalone function version of this method: ```typescript import { SpeakeasyCore } from "@speakeasy-api/speakeasy-client-sdk-typescript/core.js"; -import { organizationsGetUsage } from "@speakeasy-api/speakeasy-client-sdk-typescript/funcs/organizationsGetUsage.js"; +import { organizationsUpsertBillingEmail } from "@speakeasy-api/speakeasy-client-sdk-typescript/funcs/organizationsUpsertBillingEmail.js"; // Use `SpeakeasyCore` for best tree-shaking performance. // You can create one instance of it to use across an application. -const speakeasy = new SpeakeasyCore({ - security: { - apiKey: "", - }, -}); +const speakeasy = new SpeakeasyCore(); async function run() { - const res = await organizationsGetUsage(speakeasy); + const res = await organizationsUpsertBillingEmail(speakeasy, { + apiKey: "", + }, { + billingEmail: "Graciela.Sauer@hotmail.com", + }); if (res.ok) { const { value: result } = res; console.log(result); } else { - console.log("organizationsGetUsage failed:", res.error); + console.log("organizationsUpsertBillingEmail failed:", res.error); } } @@ -884,32 +2016,24 @@ associated utilities. ```tsx import { - // Query hooks for fetching data. - useOrganizationsGetUsage, - useOrganizationsGetUsageSuspense, - - // Utility for prefetching data during server-side rendering and in React - // Server Components that will be immediately available to client components - // using the hooks. - prefetchOrganizationsGetUsage, - - // Utility to invalidate the query cache for this query in response to - // mutations and other user actions. - invalidateAllOrganizationsGetUsage, -} from "@speakeasy-api/speakeasy-client-sdk-typescript/react-query/organizationsGetUsage.js"; + // Mutation hook for triggering the API call. + useOrganizationsUpsertBillingEmailMutation +} from "@speakeasy-api/speakeasy-client-sdk-typescript/react-query/organizationsUpsertBillingEmail.js"; ``` ### Parameters | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `request` | [shared.BillingEmailRequest](../../sdk/models/shared/billingemailrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.UpsertBillingEmailSecurity](../../sdk/models/operations/upsertbillingemailsecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[shared.OrganizationUsageResponse](../../sdk/models/shared/organizationusageresponse.md)\>** +**Promise\<[shared.BillingEmailResponse](../../sdk/models/shared/billingemailresponse.md)\>** ### Errors diff --git a/docs/sdks/publishingtokens/README.md b/docs/sdks/publishingtokens/README.md index fa02a925..43c3346d 100644 --- a/docs/sdks/publishingtokens/README.md +++ b/docs/sdks/publishingtokens/README.md @@ -22,14 +22,12 @@ Creates a publishing token for the current workspace ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; -const speakeasy = new Speakeasy({ - security: { - apiKey: "", - }, -}); +const speakeasy = new Speakeasy(); async function run() { - const result = await speakeasy.publishingTokens.create(); + const result = await speakeasy.publishingTokens.create({ + apiKey: "", + }); console.log(result); } @@ -47,14 +45,12 @@ import { publishingTokensCreate } from "@speakeasy-api/speakeasy-client-sdk-type // Use `SpeakeasyCore` for best tree-shaking performance. // You can create one instance of it to use across an application. -const speakeasy = new SpeakeasyCore({ - security: { - apiKey: "", - }, -}); +const speakeasy = new SpeakeasyCore(); async function run() { - const res = await publishingTokensCreate(speakeasy); + const res = await publishingTokensCreate(speakeasy, { + apiKey: "", + }); if (res.ok) { const { value: result } = res; console.log(result); @@ -88,6 +84,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `request` | [operations.CreatePublishingTokenRequestBody](../../sdk/models/operations/createpublishingtokenrequestbody.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.CreatePublishingTokenSecurity](../../sdk/models/operations/createpublishingtokensecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -113,14 +110,12 @@ Delete a particular publishing token. ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; -const speakeasy = new Speakeasy({ - security: { - apiKey: "", - }, -}); +const speakeasy = new Speakeasy(); async function run() { await speakeasy.publishingTokens.delete({ + apiKey: "", + }, { tokenID: "", }); @@ -140,14 +135,12 @@ import { publishingTokensDelete } from "@speakeasy-api/speakeasy-client-sdk-type // Use `SpeakeasyCore` for best tree-shaking performance. // You can create one instance of it to use across an application. -const speakeasy = new SpeakeasyCore({ - security: { - apiKey: "", - }, -}); +const speakeasy = new SpeakeasyCore(); async function run() { const res = await publishingTokensDelete(speakeasy, { + apiKey: "", + }, { tokenID: "", }); if (res.ok) { @@ -183,6 +176,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `request` | [operations.DeletePublishingTokenRequest](../../sdk/models/operations/deletepublishingtokenrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.DeletePublishingTokenSecurity](../../sdk/models/operations/deletepublishingtokensecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -208,14 +202,12 @@ Get information about a particular publishing token. ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; -const speakeasy = new Speakeasy({ - security: { - apiKey: "", - }, -}); +const speakeasy = new Speakeasy(); async function run() { const result = await speakeasy.publishingTokens.get({ + apiKey: "", + }, { tokenID: "", }); @@ -235,14 +227,12 @@ import { publishingTokensGet } from "@speakeasy-api/speakeasy-client-sdk-typescr // Use `SpeakeasyCore` for best tree-shaking performance. // You can create one instance of it to use across an application. -const speakeasy = new SpeakeasyCore({ - security: { - apiKey: "", - }, -}); +const speakeasy = new SpeakeasyCore(); async function run() { const res = await publishingTokensGet(speakeasy, { + apiKey: "", + }, { tokenID: "", }); if (res.ok) { @@ -289,6 +279,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `request` | [operations.GetPublishingTokenByIDRequest](../../sdk/models/operations/getpublishingtokenbyidrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.GetPublishingTokenByIDSecurity](../../sdk/models/operations/getpublishingtokenbyidsecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -314,14 +305,12 @@ Returns a publishing token for the current workspace ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; -const speakeasy = new Speakeasy({ - security: { - apiKey: "", - }, -}); +const speakeasy = new Speakeasy(); async function run() { - const result = await speakeasy.publishingTokens.list(); + const result = await speakeasy.publishingTokens.list({ + apiKey: "", + }); console.log(result); } @@ -339,14 +328,12 @@ import { publishingTokensList } from "@speakeasy-api/speakeasy-client-sdk-typesc // Use `SpeakeasyCore` for best tree-shaking performance. // You can create one instance of it to use across an application. -const speakeasy = new SpeakeasyCore({ - security: { - apiKey: "", - }, -}); +const speakeasy = new SpeakeasyCore(); async function run() { - const res = await publishingTokensList(speakeasy); + const res = await publishingTokensList(speakeasy, { + apiKey: "", + }); if (res.ok) { const { value: result } = res; console.log(result); @@ -389,6 +376,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `security` | [operations.GetPublishingTokenSecurity](../../sdk/models/operations/getpublishingtokensecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -414,14 +402,12 @@ Get information about a particular publishing token. ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; -const speakeasy = new Speakeasy({ - security: { - apiKey: "", - }, -}); +const speakeasy = new Speakeasy(); async function run() { const result = await speakeasy.publishingTokens.resolveMetadata({ + apiKey: "", + }, { tokenID: "", }); @@ -441,14 +427,12 @@ import { publishingTokensResolveMetadata } from "@speakeasy-api/speakeasy-client // Use `SpeakeasyCore` for best tree-shaking performance. // You can create one instance of it to use across an application. -const speakeasy = new SpeakeasyCore({ - security: { - apiKey: "", - }, -}); +const speakeasy = new SpeakeasyCore(); async function run() { const res = await publishingTokensResolveMetadata(speakeasy, { + apiKey: "", + }, { tokenID: "", }); if (res.ok) { @@ -495,6 +479,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `request` | [operations.GetPublishingTokenPublicMetadataRequest](../../sdk/models/operations/getpublishingtokenpublicmetadatarequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.GetPublishingTokenPublicMetadataSecurity](../../sdk/models/operations/getpublishingtokenpublicmetadatasecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -520,14 +505,12 @@ Get information about a particular publishing token target. ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; -const speakeasy = new Speakeasy({ - security: { - apiKey: "", - }, -}); +const speakeasy = new Speakeasy(); async function run() { const result = await speakeasy.publishingTokens.resolveTarget({ + apiKey: "", + }, { tokenID: "", }); @@ -547,14 +530,12 @@ import { publishingTokensResolveTarget } from "@speakeasy-api/speakeasy-client-s // Use `SpeakeasyCore` for best tree-shaking performance. // You can create one instance of it to use across an application. -const speakeasy = new SpeakeasyCore({ - security: { - apiKey: "", - }, -}); +const speakeasy = new SpeakeasyCore(); async function run() { const res = await publishingTokensResolveTarget(speakeasy, { + apiKey: "", + }, { tokenID: "", }); if (res.ok) { @@ -601,6 +582,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `request` | [operations.GetPublishingTokenTargetByIDRequest](../../sdk/models/operations/getpublishingtokentargetbyidrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.GetPublishingTokenTargetByIDSecurity](../../sdk/models/operations/getpublishingtokentargetbyidsecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -626,14 +608,12 @@ Updates the validity period of a particular publishing token. ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; -const speakeasy = new Speakeasy({ - security: { - apiKey: "", - }, -}); +const speakeasy = new Speakeasy(); async function run() { await speakeasy.publishingTokens.update({ + apiKey: "", + }, { tokenID: "", }); @@ -653,14 +633,12 @@ import { publishingTokensUpdate } from "@speakeasy-api/speakeasy-client-sdk-type // Use `SpeakeasyCore` for best tree-shaking performance. // You can create one instance of it to use across an application. -const speakeasy = new SpeakeasyCore({ - security: { - apiKey: "", - }, -}); +const speakeasy = new SpeakeasyCore(); async function run() { const res = await publishingTokensUpdate(speakeasy, { + apiKey: "", + }, { tokenID: "", }); if (res.ok) { @@ -696,6 +674,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `request` | [operations.UpdatePublishingTokenExpirationRequest](../../sdk/models/operations/updatepublishingtokenexpirationrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.UpdatePublishingTokenExpirationSecurity](../../sdk/models/operations/updatepublishingtokenexpirationsecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | diff --git a/docs/sdks/reports/README.md b/docs/sdks/reports/README.md index ab6c73f9..0424313d 100644 --- a/docs/sdks/reports/README.md +++ b/docs/sdks/reports/README.md @@ -20,14 +20,12 @@ Get the signed access url for the change reports for a particular document. ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; -const speakeasy = new Speakeasy({ - security: { - apiKey: "", - }, -}); +const speakeasy = new Speakeasy(); async function run() { const result = await speakeasy.reports.getChangesReportSignedUrl({ + apiKey: "", + }, { documentChecksum: "", }); @@ -47,14 +45,12 @@ import { reportsGetChangesReportSignedUrl } from "@speakeasy-api/speakeasy-clien // Use `SpeakeasyCore` for best tree-shaking performance. // You can create one instance of it to use across an application. -const speakeasy = new SpeakeasyCore({ - security: { - apiKey: "", - }, -}); +const speakeasy = new SpeakeasyCore(); async function run() { const res = await reportsGetChangesReportSignedUrl(speakeasy, { + apiKey: "", + }, { documentChecksum: "", }); if (res.ok) { @@ -101,6 +97,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `request` | [operations.GetChangesReportSignedUrlRequest](../../sdk/models/operations/getchangesreportsignedurlrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.GetChangesReportSignedUrlSecurity](../../sdk/models/operations/getchangesreportsignedurlsecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -125,14 +122,12 @@ Get the signed access url for the linting reports for a particular document. ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; -const speakeasy = new Speakeasy({ - security: { - apiKey: "", - }, -}); +const speakeasy = new Speakeasy(); async function run() { const result = await speakeasy.reports.getLintingReportSignedUrl({ + apiKey: "", + }, { documentChecksum: "", }); @@ -152,14 +147,12 @@ import { reportsGetLintingReportSignedUrl } from "@speakeasy-api/speakeasy-clien // Use `SpeakeasyCore` for best tree-shaking performance. // You can create one instance of it to use across an application. -const speakeasy = new SpeakeasyCore({ - security: { - apiKey: "", - }, -}); +const speakeasy = new SpeakeasyCore(); async function run() { const res = await reportsGetLintingReportSignedUrl(speakeasy, { + apiKey: "", + }, { documentChecksum: "", }); if (res.ok) { @@ -206,6 +199,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `request` | [operations.GetLintingReportSignedUrlRequest](../../sdk/models/operations/getlintingreportsignedurlrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.GetLintingReportSignedUrlSecurity](../../sdk/models/operations/getlintingreportsignedurlsecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -231,14 +225,12 @@ Upload a report. import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; import { openAsBlob } from "node:fs"; -const speakeasy = new Speakeasy({ - security: { - apiKey: "", - }, -}); +const speakeasy = new Speakeasy(); async function run() { const result = await speakeasy.reports.uploadReport({ + apiKey: "", + }, { data: {}, file: await openAsBlob("example.file"), }); @@ -260,14 +252,12 @@ import { openAsBlob } from "node:fs"; // Use `SpeakeasyCore` for best tree-shaking performance. // You can create one instance of it to use across an application. -const speakeasy = new SpeakeasyCore({ - security: { - apiKey: "", - }, -}); +const speakeasy = new SpeakeasyCore(); async function run() { const res = await reportsUploadReport(speakeasy, { + apiKey: "", + }, { data: {}, file: await openAsBlob("example.file"), }); @@ -304,6 +294,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `request` | [operations.UploadReportRequestBody](../../sdk/models/operations/uploadreportrequestbody.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.UploadReportSecurity](../../sdk/models/operations/uploadreportsecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | diff --git a/docs/sdks/schemastore/README.md b/docs/sdks/schemastore/README.md index 58842a6d..1d04e69c 100644 --- a/docs/sdks/schemastore/README.md +++ b/docs/sdks/schemastore/README.md @@ -16,14 +16,12 @@ Create a schema in the schema store ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; -const speakeasy = new Speakeasy({ - security: { - apiKey: "", - }, -}); +const speakeasy = new Speakeasy(); async function run() { const result = await speakeasy.schemaStore.createSchemaStoreItem({ + apiKey: "", + }, { format: "yaml", packageName: "", sdkClassname: "", @@ -46,14 +44,12 @@ import { schemaStoreCreateSchemaStoreItem } from "@speakeasy-api/speakeasy-clien // Use `SpeakeasyCore` for best tree-shaking performance. // You can create one instance of it to use across an application. -const speakeasy = new SpeakeasyCore({ - security: { - apiKey: "", - }, -}); +const speakeasy = new SpeakeasyCore(); async function run() { const res = await schemaStoreCreateSchemaStoreItem(speakeasy, { + apiKey: "", + }, { format: "yaml", packageName: "", sdkClassname: "", @@ -92,6 +88,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `request` | [operations.CreateSchemaStoreItemRequestBody](../../sdk/models/operations/createschemastoreitemrequestbody.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.CreateSchemaStoreItemSecurity](../../sdk/models/operations/createschemastoreitemsecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | diff --git a/docs/sdks/shorturls/README.md b/docs/sdks/shorturls/README.md index b2569d28..d06946ad 100644 --- a/docs/sdks/shorturls/README.md +++ b/docs/sdks/shorturls/README.md @@ -18,14 +18,12 @@ Shorten a URL. ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; -const speakeasy = new Speakeasy({ - security: { - apiKey: "", - }, -}); +const speakeasy = new Speakeasy(); async function run() { const result = await speakeasy.shortURLs.create({ + apiKey: "", + }, { url: "https://exalted-heroine.org/", }); @@ -45,14 +43,12 @@ import { shortURLsCreate } from "@speakeasy-api/speakeasy-client-sdk-typescript/ // Use `SpeakeasyCore` for best tree-shaking performance. // You can create one instance of it to use across an application. -const speakeasy = new SpeakeasyCore({ - security: { - apiKey: "", - }, -}); +const speakeasy = new SpeakeasyCore(); async function run() { const res = await shortURLsCreate(speakeasy, { + apiKey: "", + }, { url: "https://exalted-heroine.org/", }); if (res.ok) { @@ -88,6 +84,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `request` | [operations.CreateRequestBody](../../sdk/models/operations/createrequestbody.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.CreateSecurity](../../sdk/models/operations/createsecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | diff --git a/docs/sdks/subscriptions/README.md b/docs/sdks/subscriptions/README.md index 12c299f8..a459d968 100644 --- a/docs/sdks/subscriptions/README.md +++ b/docs/sdks/subscriptions/README.md @@ -19,11 +19,7 @@ Activate an ignored namespace for a subscription ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; -const speakeasy = new Speakeasy({ - security: { - apiKey: "", - }, -}); +const speakeasy = new Speakeasy(); async function run() { await speakeasy.subscriptions.activateSubscriptionNamespace({ @@ -47,11 +43,7 @@ import { subscriptionsActivateSubscriptionNamespace } from "@speakeasy-api/speak // Use `SpeakeasyCore` for best tree-shaking performance. // You can create one instance of it to use across an application. -const speakeasy = new SpeakeasyCore({ - security: { - apiKey: "", - }, -}); +const speakeasy = new SpeakeasyCore(); async function run() { const res = await subscriptionsActivateSubscriptionNamespace(speakeasy, { @@ -116,11 +108,7 @@ Ignored a namespace for a subscription ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; -const speakeasy = new Speakeasy({ - security: { - apiKey: "", - }, -}); +const speakeasy = new Speakeasy(); async function run() { await speakeasy.subscriptions.ignoreSubscriptionNamespace({ @@ -144,11 +132,7 @@ import { subscriptionsIgnoreSubscriptionNamespace } from "@speakeasy-api/speakea // Use `SpeakeasyCore` for best tree-shaking performance. // You can create one instance of it to use across an application. -const speakeasy = new SpeakeasyCore({ - security: { - apiKey: "", - }, -}); +const speakeasy = new SpeakeasyCore(); async function run() { const res = await subscriptionsIgnoreSubscriptionNamespace(speakeasy, { diff --git a/docs/sdks/suggest/README.md b/docs/sdks/suggest/README.md index 3941fb45..4e32fb13 100644 --- a/docs/sdks/suggest/README.md +++ b/docs/sdks/suggest/README.md @@ -21,14 +21,12 @@ Get suggestions from an LLM model for improving an OpenAPI document. ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; -const speakeasy = new Speakeasy({ - security: { - apiKey: "", - }, -}); +const speakeasy = new Speakeasy(); async function run() { const result = await speakeasy.suggest.suggest({ + apiKey: "", + }, { xSessionId: "", suggestRequestBody: { diagnostics: [ @@ -81,14 +79,12 @@ import { suggestSuggest } from "@speakeasy-api/speakeasy-client-sdk-typescript/f // Use `SpeakeasyCore` for best tree-shaking performance. // You can create one instance of it to use across an application. -const speakeasy = new SpeakeasyCore({ - security: { - apiKey: "", - }, -}); +const speakeasy = new SpeakeasyCore(); async function run() { const res = await suggestSuggest(speakeasy, { + apiKey: "", + }, { xSessionId: "", suggestRequestBody: { diagnostics: [ @@ -157,6 +153,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `request` | [operations.SuggestRequest](../../sdk/models/operations/suggestrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.SuggestSecurity](../../sdk/models/operations/suggestsecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -181,14 +178,12 @@ Generate generic suggestions for a list of items. ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; -const speakeasy = new Speakeasy({ - security: { - apiKey: "", - }, -}); +const speakeasy = new Speakeasy(); async function run() { const result = await speakeasy.suggest.suggestItems({ + apiKey: "", + }, { items: [ "", ], @@ -211,14 +206,12 @@ import { suggestSuggestItems } from "@speakeasy-api/speakeasy-client-sdk-typescr // Use `SpeakeasyCore` for best tree-shaking performance. // You can create one instance of it to use across an application. -const speakeasy = new SpeakeasyCore({ - security: { - apiKey: "", - }, -}); +const speakeasy = new SpeakeasyCore(); async function run() { const res = await suggestSuggestItems(speakeasy, { + apiKey: "", + }, { items: [ "", ], @@ -257,6 +250,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `request` | [shared.SuggestItemsRequestBody](../../sdk/models/shared/suggestitemsrequestbody.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.SuggestItemsSecurity](../../sdk/models/operations/suggestitemssecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -282,14 +276,12 @@ Get suggestions from an LLM model for improving an OpenAPI document. import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; import { openAsBlob } from "node:fs"; -const speakeasy = new Speakeasy({ - security: { - apiKey: "", - }, -}); +const speakeasy = new Speakeasy(); async function run() { const result = await speakeasy.suggest.suggestOpenAPI({ + apiKey: "", + }, { xSessionId: "", requestBody: { schema: await openAsBlob("example.file"), @@ -313,14 +305,12 @@ import { openAsBlob } from "node:fs"; // Use `SpeakeasyCore` for best tree-shaking performance. // You can create one instance of it to use across an application. -const speakeasy = new SpeakeasyCore({ - security: { - apiKey: "", - }, -}); +const speakeasy = new SpeakeasyCore(); async function run() { const res = await suggestSuggestOpenAPI(speakeasy, { + apiKey: "", + }, { xSessionId: "", requestBody: { schema: await openAsBlob("example.file"), @@ -359,6 +349,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `request` | [operations.SuggestOpenAPIRequest](../../sdk/models/operations/suggestopenapirequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.SuggestOpenAPISecurity](../../sdk/models/operations/suggestopenapisecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -383,14 +374,12 @@ Get suggestions from an LLM model for improving an OpenAPI document stored in th ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; -const speakeasy = new Speakeasy({ - security: { - apiKey: "", - }, -}); +const speakeasy = new Speakeasy(); async function run() { const result = await speakeasy.suggest.suggestOpenAPIRegistry({ + apiKey: "", + }, { xSessionId: "", namespaceName: "", revisionReference: "", @@ -412,14 +401,12 @@ import { suggestSuggestOpenAPIRegistry } from "@speakeasy-api/speakeasy-client-s // Use `SpeakeasyCore` for best tree-shaking performance. // You can create one instance of it to use across an application. -const speakeasy = new SpeakeasyCore({ - security: { - apiKey: "", - }, -}); +const speakeasy = new SpeakeasyCore(); async function run() { const res = await suggestSuggestOpenAPIRegistry(speakeasy, { + apiKey: "", + }, { xSessionId: "", namespaceName: "", revisionReference: "", @@ -457,6 +444,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `request` | [operations.SuggestOpenAPIRegistryRequest](../../sdk/models/operations/suggestopenapiregistryrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.SuggestOpenAPIRegistrySecurity](../../sdk/models/operations/suggestopenapiregistrysecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | diff --git a/docs/sdks/webhooks/README.md b/docs/sdks/webhooks/README.md new file mode 100644 index 00000000..311769e8 --- /dev/null +++ b/docs/sdks/webhooks/README.md @@ -0,0 +1,92 @@ +# Webhooks + +## Overview + +Webhook endpoints for external service integrations + +### Available Operations + +* [handleStripeWebhook](#handlestripewebhook) - Handle Stripe webhook + +## handleStripeWebhook + +Receives and processes Stripe webhook events for subscription management. +This endpoint is called by Stripe and uses webhook signature verification instead of API authentication. + +### Example Usage + + +```typescript +import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; + +const speakeasy = new Speakeasy(); + +async function run() { + await speakeasy.webhooks.handleStripeWebhook({}); + + +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { SpeakeasyCore } from "@speakeasy-api/speakeasy-client-sdk-typescript/core.js"; +import { webhooksHandleStripeWebhook } from "@speakeasy-api/speakeasy-client-sdk-typescript/funcs/webhooksHandleStripeWebhook.js"; + +// Use `SpeakeasyCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const speakeasy = new SpeakeasyCore(); + +async function run() { + const res = await webhooksHandleStripeWebhook(speakeasy, {}); + if (res.ok) { + const { value: result } = res; + + } else { + console.log("webhooksHandleStripeWebhook failed:", res.error); + } +} + +run(); +``` + +### React hooks and utilities + +This method can be used in React components through the following hooks and +associated utilities. + +> Check out [this guide][hook-guide] for information about each of the utilities +> below and how to get started using React hooks. + +[hook-guide]: ../../../REACT_QUERY.md + +```tsx +import { + // Mutation hook for triggering the API call. + useWebhooksHandleStripeWebhookMutation +} from "@speakeasy-api/speakeasy-client-sdk-typescript/react-query/webhooksHandleStripeWebhook.js"; +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `request` | [operations.HandleStripeWebhookRequestBody](../../sdk/models/operations/handlestripewebhookrequestbody.md) | :heavy_check_mark: | The request object to use for the request. | +| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | +| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | + +### Response + +**Promise\** + +### Errors + +| Error Type | Status Code | Content Type | +| --------------- | --------------- | --------------- | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/workspaces/README.md b/docs/sdks/workspaces/README.md index 0c3b98ce..0ba3a555 100644 --- a/docs/sdks/workspaces/README.md +++ b/docs/sdks/workspaces/README.md @@ -32,14 +32,12 @@ Creates a workspace ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; -const speakeasy = new Speakeasy({ - security: { - apiKey: "", - }, -}); +const speakeasy = new Speakeasy(); async function run() { const result = await speakeasy.workspaces.create({ + apiKey: "", + }, { createdAt: new Date("2023-11-18T13:41:10.525Z"), id: "", name: "", @@ -65,14 +63,12 @@ import { workspacesCreate } from "@speakeasy-api/speakeasy-client-sdk-typescript // Use `SpeakeasyCore` for best tree-shaking performance. // You can create one instance of it to use across an application. -const speakeasy = new SpeakeasyCore({ - security: { - apiKey: "", - }, -}); +const speakeasy = new SpeakeasyCore(); async function run() { const res = await workspacesCreate(speakeasy, { + apiKey: "", + }, { createdAt: new Date("2023-11-18T13:41:10.525Z"), id: "", name: "", @@ -114,6 +110,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `request` | [shared.Workspace](../../sdk/models/shared/workspace.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.CreateWorkspaceSecurity](../../sdk/models/operations/createworkspacesecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -141,13 +138,12 @@ import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; const speakeasy = new Speakeasy({ workspaceId: "", - security: { - apiKey: "", - }, }); async function run() { await speakeasy.workspaces.createToken({ + apiKey: "", + }, { workspaceToken: { alg: "", createdAt: new Date("2024-10-04T10:23:04.522Z"), @@ -176,13 +172,12 @@ import { workspacesCreateToken } from "@speakeasy-api/speakeasy-client-sdk-types // You can create one instance of it to use across an application. const speakeasy = new SpeakeasyCore({ workspaceId: "", - security: { - apiKey: "", - }, }); async function run() { const res = await workspacesCreateToken(speakeasy, { + apiKey: "", + }, { workspaceToken: { alg: "", createdAt: new Date("2024-10-04T10:23:04.522Z"), @@ -225,6 +220,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `request` | [operations.CreateWorkspaceTokenRequest](../../sdk/models/operations/createworkspacetokenrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.CreateWorkspaceTokenSecurity](../../sdk/models/operations/createworkspacetokensecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -252,13 +248,12 @@ import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; const speakeasy = new Speakeasy({ workspaceId: "", - security: { - apiKey: "", - }, }); async function run() { await speakeasy.workspaces.deleteToken({ + apiKey: "", + }, { tokenID: "", }); @@ -280,13 +275,12 @@ import { workspacesDeleteToken } from "@speakeasy-api/speakeasy-client-sdk-types // You can create one instance of it to use across an application. const speakeasy = new SpeakeasyCore({ workspaceId: "", - security: { - apiKey: "", - }, }); async function run() { const res = await workspacesDeleteToken(speakeasy, { + apiKey: "", + }, { tokenID: "", }); if (res.ok) { @@ -322,6 +316,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `request` | [operations.DeleteWorkspaceTokenRequest](../../sdk/models/operations/deleteworkspacetokenrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.DeleteWorkspaceTokenSecurity](../../sdk/models/operations/deleteworkspacetokensecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -347,14 +342,12 @@ Get information about a particular workspace by context. ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; -const speakeasy = new Speakeasy({ - security: { - apiKey: "", - }, -}); +const speakeasy = new Speakeasy(); async function run() { - const result = await speakeasy.workspaces.get(); + const result = await speakeasy.workspaces.get({ + apiKey: "", + }); console.log(result); } @@ -372,14 +365,12 @@ import { workspacesGet } from "@speakeasy-api/speakeasy-client-sdk-typescript/fu // Use `SpeakeasyCore` for best tree-shaking performance. // You can create one instance of it to use across an application. -const speakeasy = new SpeakeasyCore({ - security: { - apiKey: "", - }, -}); +const speakeasy = new SpeakeasyCore(); async function run() { - const res = await workspacesGet(speakeasy); + const res = await workspacesGet(speakeasy, { + apiKey: "", + }); if (res.ok) { const { value: result } = res; console.log(result); @@ -422,6 +413,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `security` | [operations.GetWorkspaceByContextSecurity](../../sdk/models/operations/getworkspacebycontextsecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -447,14 +439,12 @@ Returns a list of workspaces a user has access too ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; -const speakeasy = new Speakeasy({ - security: { - apiKey: "", - }, -}); +const speakeasy = new Speakeasy(); async function run() { - const result = await speakeasy.workspaces.getAll(); + const result = await speakeasy.workspaces.getAll({ + apiKey: "", + }); console.log(result); } @@ -472,14 +462,12 @@ import { workspacesGetAll } from "@speakeasy-api/speakeasy-client-sdk-typescript // Use `SpeakeasyCore` for best tree-shaking performance. // You can create one instance of it to use across an application. -const speakeasy = new SpeakeasyCore({ - security: { - apiKey: "", - }, -}); +const speakeasy = new SpeakeasyCore(); async function run() { - const res = await workspacesGetAll(speakeasy); + const res = await workspacesGetAll(speakeasy, { + apiKey: "", + }); if (res.ok) { const { value: result } = res; console.log(result); @@ -522,6 +510,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `security` | [operations.GetWorkspacesSecurity](../../sdk/models/operations/getworkspacessecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -549,13 +538,12 @@ import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; const speakeasy = new Speakeasy({ workspaceId: "", - security: { - apiKey: "", - }, }); async function run() { - const result = await speakeasy.workspaces.getByID({}); + const result = await speakeasy.workspaces.getByID({ + apiKey: "", + }, {}); console.log(result); } @@ -575,13 +563,12 @@ import { workspacesGetByID } from "@speakeasy-api/speakeasy-client-sdk-typescrip // You can create one instance of it to use across an application. const speakeasy = new SpeakeasyCore({ workspaceId: "", - security: { - apiKey: "", - }, }); async function run() { - const res = await workspacesGetByID(speakeasy, {}); + const res = await workspacesGetByID(speakeasy, { + apiKey: "", + }, {}); if (res.ok) { const { value: result } = res; console.log(result); @@ -626,6 +613,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `request` | [operations.GetWorkspaceRequest](../../sdk/models/operations/getworkspacerequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.GetWorkspaceSecurity](../../sdk/models/operations/getworkspacesecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -653,13 +641,12 @@ import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; const speakeasy = new Speakeasy({ workspaceId: "", - security: { - apiKey: "", - }, }); async function run() { - const result = await speakeasy.workspaces.getFeatureFlags({}); + const result = await speakeasy.workspaces.getFeatureFlags({ + apiKey: "", + }, {}); console.log(result); } @@ -679,13 +666,12 @@ import { workspacesGetFeatureFlags } from "@speakeasy-api/speakeasy-client-sdk-t // You can create one instance of it to use across an application. const speakeasy = new SpeakeasyCore({ workspaceId: "", - security: { - apiKey: "", - }, }); async function run() { - const res = await workspacesGetFeatureFlags(speakeasy, {}); + const res = await workspacesGetFeatureFlags(speakeasy, { + apiKey: "", + }, {}); if (res.ok) { const { value: result } = res; console.log(result); @@ -730,6 +716,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `request` | [operations.GetWorkspaceFeatureFlagsRequest](../../sdk/models/operations/getworkspacefeatureflagsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.GetWorkspaceFeatureFlagsSecurity](../../sdk/models/operations/getworkspacefeatureflagssecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -757,13 +744,12 @@ import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; const speakeasy = new Speakeasy({ workspaceId: "", - security: { - apiKey: "", - }, }); async function run() { - const result = await speakeasy.workspaces.getSettings({}); + const result = await speakeasy.workspaces.getSettings({ + apiKey: "", + }, {}); console.log(result); } @@ -783,13 +769,12 @@ import { workspacesGetSettings } from "@speakeasy-api/speakeasy-client-sdk-types // You can create one instance of it to use across an application. const speakeasy = new SpeakeasyCore({ workspaceId: "", - security: { - apiKey: "", - }, }); async function run() { - const res = await workspacesGetSettings(speakeasy, {}); + const res = await workspacesGetSettings(speakeasy, { + apiKey: "", + }, {}); if (res.ok) { const { value: result } = res; console.log(result); @@ -834,6 +819,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `request` | [operations.GetWorkspaceSettingsRequest](../../sdk/models/operations/getworkspacesettingsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.GetWorkspaceSettingsSecurity](../../sdk/models/operations/getworkspacesettingssecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -861,13 +847,12 @@ import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; const speakeasy = new Speakeasy({ workspaceId: "", - security: { - apiKey: "", - }, }); async function run() { - const result = await speakeasy.workspaces.getTeam({}); + const result = await speakeasy.workspaces.getTeam({ + apiKey: "", + }, {}); console.log(result); } @@ -887,13 +872,12 @@ import { workspacesGetTeam } from "@speakeasy-api/speakeasy-client-sdk-typescrip // You can create one instance of it to use across an application. const speakeasy = new SpeakeasyCore({ workspaceId: "", - security: { - apiKey: "", - }, }); async function run() { - const res = await workspacesGetTeam(speakeasy, {}); + const res = await workspacesGetTeam(speakeasy, { + apiKey: "", + }, {}); if (res.ok) { const { value: result } = res; console.log(result); @@ -938,6 +922,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `request` | [operations.GetWorkspaceTeamRequest](../../sdk/models/operations/getworkspaceteamrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.GetWorkspaceTeamSecurity](../../sdk/models/operations/getworkspaceteamsecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -965,13 +950,12 @@ import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; const speakeasy = new Speakeasy({ workspaceId: "", - security: { - apiKey: "", - }, }); async function run() { - const result = await speakeasy.workspaces.getTokens({}); + const result = await speakeasy.workspaces.getTokens({ + apiKey: "", + }, {}); console.log(result); } @@ -991,13 +975,12 @@ import { workspacesGetTokens } from "@speakeasy-api/speakeasy-client-sdk-typescr // You can create one instance of it to use across an application. const speakeasy = new SpeakeasyCore({ workspaceId: "", - security: { - apiKey: "", - }, }); async function run() { - const res = await workspacesGetTokens(speakeasy, {}); + const res = await workspacesGetTokens(speakeasy, { + apiKey: "", + }, {}); if (res.ok) { const { value: result } = res; console.log(result); @@ -1042,6 +1025,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `request` | [operations.GetWorkspaceTokensRequest](../../sdk/models/operations/getworkspacetokensrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.GetWorkspaceTokensSecurity](../../sdk/models/operations/getworkspacetokenssecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -1069,13 +1053,12 @@ import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; const speakeasy = new Speakeasy({ workspaceId: "", - security: { - apiKey: "", - }, }); async function run() { const result = await speakeasy.workspaces.grantAccess({ + apiKey: "", + }, { email: "Idella24@gmail.com", }); @@ -1097,13 +1080,12 @@ import { workspacesGrantAccess } from "@speakeasy-api/speakeasy-client-sdk-types // You can create one instance of it to use across an application. const speakeasy = new SpeakeasyCore({ workspaceId: "", - security: { - apiKey: "", - }, }); async function run() { const res = await workspacesGrantAccess(speakeasy, { + apiKey: "", + }, { email: "Idella24@gmail.com", }); if (res.ok) { @@ -1139,6 +1121,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `request` | [operations.GrantUserAccessToWorkspaceRequest](../../sdk/models/operations/grantuseraccesstoworkspacerequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.GrantUserAccessToWorkspaceSecurity](../../sdk/models/operations/grantuseraccesstoworkspacesecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -1166,13 +1149,12 @@ import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; const speakeasy = new Speakeasy({ workspaceId: "", - security: { - apiKey: "", - }, }); async function run() { await speakeasy.workspaces.revokeAccess({ + apiKey: "", + }, { userId: "", }); @@ -1194,13 +1176,12 @@ import { workspacesRevokeAccess } from "@speakeasy-api/speakeasy-client-sdk-type // You can create one instance of it to use across an application. const speakeasy = new SpeakeasyCore({ workspaceId: "", - security: { - apiKey: "", - }, }); async function run() { const res = await workspacesRevokeAccess(speakeasy, { + apiKey: "", + }, { userId: "", }); if (res.ok) { @@ -1236,6 +1217,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `request` | [operations.RevokeUserAccessToWorkspaceRequest](../../sdk/models/operations/revokeuseraccesstoworkspacerequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.RevokeUserAccessToWorkspaceSecurity](../../sdk/models/operations/revokeuseraccesstoworkspacesecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -1261,14 +1243,12 @@ Set workspace feature flags ```typescript import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; -const speakeasy = new Speakeasy({ - security: { - apiKey: "", - }, -}); +const speakeasy = new Speakeasy(); async function run() { const result = await speakeasy.workspaces.setFeatureFlags({ + apiKey: "", + }, { featureFlags: [], }); @@ -1288,14 +1268,12 @@ import { workspacesSetFeatureFlags } from "@speakeasy-api/speakeasy-client-sdk-t // Use `SpeakeasyCore` for best tree-shaking performance. // You can create one instance of it to use across an application. -const speakeasy = new SpeakeasyCore({ - security: { - apiKey: "", - }, -}); +const speakeasy = new SpeakeasyCore(); async function run() { const res = await workspacesSetFeatureFlags(speakeasy, { + apiKey: "", + }, { featureFlags: [], }); if (res.ok) { @@ -1331,6 +1309,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `request` | [shared.WorkspaceFeatureFlagRequest](../../sdk/models/shared/workspacefeatureflagrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.SetWorkspaceFeatureFlagsSecurity](../../sdk/models/operations/setworkspacefeatureflagssecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -1358,13 +1337,12 @@ import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; const speakeasy = new Speakeasy({ workspaceId: "", - security: { - apiKey: "", - }, }); async function run() { await speakeasy.workspaces.update({ + apiKey: "", + }, { workspace: { createdAt: new Date("2023-08-02T22:30:24.264Z"), id: "", @@ -1394,13 +1372,12 @@ import { workspacesUpdate } from "@speakeasy-api/speakeasy-client-sdk-typescript // You can create one instance of it to use across an application. const speakeasy = new SpeakeasyCore({ workspaceId: "", - security: { - apiKey: "", - }, }); async function run() { const res = await workspacesUpdate(speakeasy, { + apiKey: "", + }, { workspace: { createdAt: new Date("2023-08-02T22:30:24.264Z"), id: "", @@ -1444,6 +1421,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `request` | [operations.UpdateWorkspaceDetailsRequest](../../sdk/models/operations/updateworkspacedetailsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.UpdateWorkspaceDetailsSecurity](../../sdk/models/operations/updateworkspacedetailssecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | @@ -1471,13 +1449,12 @@ import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; const speakeasy = new Speakeasy({ workspaceId: "", - security: { - apiKey: "", - }, }); async function run() { await speakeasy.workspaces.updateSettings({ + apiKey: "", + }, { workspaceSettings: { createdAt: new Date("2025-03-09T15:48:09.330Z"), updatedAt: new Date("2025-11-24T16:37:53.492Z"), @@ -1504,13 +1481,12 @@ import { workspacesUpdateSettings } from "@speakeasy-api/speakeasy-client-sdk-ty // You can create one instance of it to use across an application. const speakeasy = new SpeakeasyCore({ workspaceId: "", - security: { - apiKey: "", - }, }); async function run() { const res = await workspacesUpdateSettings(speakeasy, { + apiKey: "", + }, { workspaceSettings: { createdAt: new Date("2025-03-09T15:48:09.330Z"), updatedAt: new Date("2025-11-24T16:37:53.492Z"), @@ -1551,6 +1527,7 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `request` | [operations.UpdateWorkspaceSettingsRequest](../../sdk/models/operations/updateworkspacesettingsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.UpdateWorkspaceSettingsSecurity](../../sdk/models/operations/updateworkspacesettingssecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | diff --git a/examples/artifactsCreateRemoteSource.example.ts b/examples/artifactsCreateRemoteSource.example.ts index ae5210da..aa14b227 100644 --- a/examples/artifactsCreateRemoteSource.example.ts +++ b/examples/artifactsCreateRemoteSource.example.ts @@ -13,11 +13,7 @@ dotenv.config(); import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript"; -const speakeasy = new Speakeasy({ - security: { - apiKey: "", - }, -}); +const speakeasy = new Speakeasy(); async function main() { await speakeasy.artifacts.createRemoteSource(); diff --git a/examples/package-lock.json b/examples/package-lock.json index 9c6b2954..42c97d0e 100644 --- a/examples/package-lock.json +++ b/examples/package-lock.json @@ -18,7 +18,7 @@ }, "..": { "name": "@speakeasy-api/speakeasy-client-sdk-typescript", - "version": "5.0.0-rc.5", + "version": "5.0.0-rc.6", "dependencies": { "@modelcontextprotocol/sdk": "^1.26.0", "zod": "^3.25.0 || ^4.0.0" diff --git a/gen.yaml b/gen.yaml index 296675e4..405e46d5 100644 --- a/gen.yaml +++ b/gen.yaml @@ -27,7 +27,7 @@ generation: generateNewTests: false skipResponseBodyAssertions: false typescript: - version: 5.0.0-rc.5 + version: 5.0.0-rc.6 acceptHeaderEnum: true additionalDependencies: dependencies: {} @@ -36,6 +36,7 @@ typescript: additionalPackageJSON: {} additionalScripts: {} alwaysIncludeInboundAndOutbound: false + apiPromiseHelpers: false author: Speakeasy baseErrorName: SpeakeasyError clientServerStatusCodesAsErrors: true @@ -45,7 +46,9 @@ typescript: enableMCPServer: true enableReactQuery: true enumFormat: union + eventStreamClassName: EventStream exportZodModelNamespace: false + fixEnumNameSanitization: false flatAdditionalProperties: false flattenGlobalSecurity: true flatteningOrder: body-first @@ -75,10 +78,14 @@ typescript: packageName: '@speakeasy-api/speakeasy-client-sdk-typescript' preApplyUnionDiscriminators: true preserveModelFieldNames: false + privateIdentifierPrefix: '#' + requestExtras: false responseFormat: flat sseFlatResponse: false templateVersion: v2 unionStrategy: left-to-right usageSDKInitImports: [] useIndexModules: true + useOxlint: false + useTsgo: false zodVersion: v3 diff --git a/jsr.json b/jsr.json index 08879101..8c72c920 100644 --- a/jsr.json +++ b/jsr.json @@ -2,7 +2,7 @@ { "name": "@speakeasy-api/speakeasy-client-sdk-typescript", - "version": "5.0.0-rc.5", + "version": "5.0.0-rc.6", "exports": { ".": "./src/index.ts", "./sdk/models/errors": "./src/sdk/models/errors/index.ts", diff --git a/package-lock.json b/package-lock.json index baadfe22..0aaa88ae 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@speakeasy-api/speakeasy-client-sdk-typescript", - "version": "5.0.0-rc.5", + "version": "5.0.0-rc.6", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@speakeasy-api/speakeasy-client-sdk-typescript", - "version": "5.0.0-rc.5", + "version": "5.0.0-rc.6", "dependencies": { "@modelcontextprotocol/sdk": "^1.26.0", "zod": "^3.25.0 || ^4.0.0" diff --git a/package.json b/package.json index 0577b8c9..758b7ec8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@speakeasy-api/speakeasy-client-sdk-typescript", - "version": "5.0.0-rc.5", + "version": "5.0.0-rc.6", "author": "Speakeasy", "bin": { "mcp": "bin/mcp-server.js" diff --git a/src/funcs/artifactsCreateRemoteSource.ts b/src/funcs/artifactsCreateRemoteSource.ts index 3ea333d4..a65d30df 100644 --- a/src/funcs/artifactsCreateRemoteSource.ts +++ b/src/funcs/artifactsCreateRemoteSource.ts @@ -5,11 +5,11 @@ import * as z from "zod/v3"; import { SpeakeasyCore } from "../core.js"; import { encodeJSON } from "../lib/encodings.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -95,18 +95,15 @@ async function $do( Accept: "application/json", })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); - const context = { options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "createRemoteSource", oAuth2Scopes: null, - resolvedSecurity: requestSecurity, + resolvedSecurity: null, - securitySource: client._options.security, + securitySource: null, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, @@ -114,7 +111,6 @@ async function $do( }; const requestRes = client._createRequest(context, { - security: requestSecurity, method: "POST", baseURL: options?.serverURL, path: path, @@ -130,7 +126,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/funcs/artifactsGetBlob.ts b/src/funcs/artifactsGetBlob.ts index 693048b9..82f16271 100644 --- a/src/funcs/artifactsGetBlob.ts +++ b/src/funcs/artifactsGetBlob.ts @@ -5,11 +5,11 @@ import * as z from "zod/v3"; import { SpeakeasyCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -105,7 +105,6 @@ async function $do( charEncoding: "percent", }), }; - const path = pathToFunc( "/v1/oci/v2/{organization_slug}/{workspace_slug}/{namespace_name}/blobs/{digest}", )(pathParams); @@ -114,18 +113,15 @@ async function $do( Accept: "application/octet-stream", })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); - const context = { options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getBlob", oAuth2Scopes: null, - resolvedSecurity: requestSecurity, + resolvedSecurity: null, - securitySource: client._options.security, + securitySource: null, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, @@ -133,7 +129,6 @@ async function $do( }; const requestRes = client._createRequest(context, { - security: requestSecurity, method: "GET", baseURL: options?.serverURL, path: path, @@ -149,7 +144,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/funcs/artifactsGetManifest.ts b/src/funcs/artifactsGetManifest.ts index 88a6c11d..91d7928f 100644 --- a/src/funcs/artifactsGetManifest.ts +++ b/src/funcs/artifactsGetManifest.ts @@ -4,11 +4,11 @@ import { SpeakeasyCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -106,7 +106,6 @@ async function $do( charEncoding: "percent", }), }; - const path = pathToFunc( "/v1/oci/v2/{organization_slug}/{workspace_slug}/{namespace_name}/manifests/{revision_reference}", )(pathParams); @@ -115,18 +114,15 @@ async function $do( Accept: "application/vnd.oci.image.manifest.v1+json", })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); - const context = { options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getManifest", oAuth2Scopes: null, - resolvedSecurity: requestSecurity, + resolvedSecurity: null, - securitySource: client._options.security, + securitySource: null, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, @@ -134,7 +130,6 @@ async function $do( }; const requestRes = client._createRequest(context, { - security: requestSecurity, method: "GET", baseURL: options?.serverURL, path: path, @@ -150,7 +145,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/funcs/artifactsGetNamespaces.ts b/src/funcs/artifactsGetNamespaces.ts index 469e461c..3a8c50d4 100644 --- a/src/funcs/artifactsGetNamespaces.ts +++ b/src/funcs/artifactsGetNamespaces.ts @@ -3,10 +3,10 @@ */ import { SpeakeasyCore } from "../core.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -75,18 +75,15 @@ async function $do( Accept: "application/json", })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); - const context = { options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getNamespaces", oAuth2Scopes: null, - resolvedSecurity: requestSecurity, + resolvedSecurity: null, - securitySource: client._options.security, + securitySource: null, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, @@ -94,7 +91,6 @@ async function $do( }; const requestRes = client._createRequest(context, { - security: requestSecurity, method: "GET", baseURL: options?.serverURL, path: path, @@ -109,7 +105,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/funcs/artifactsGetRevisions.ts b/src/funcs/artifactsGetRevisions.ts index 40b75e27..963ec9f6 100644 --- a/src/funcs/artifactsGetRevisions.ts +++ b/src/funcs/artifactsGetRevisions.ts @@ -4,11 +4,11 @@ import { SpeakeasyCore } from "../core.js"; import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -89,7 +89,6 @@ async function $do( charEncoding: "percent", }), }; - const path = pathToFunc( "/v1/artifacts/namespaces/{namespace_name}/revisions", )(pathParams); @@ -102,18 +101,15 @@ async function $do( Accept: "application/json", })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); - const context = { options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getRevisions", oAuth2Scopes: null, - resolvedSecurity: requestSecurity, + resolvedSecurity: null, - securitySource: client._options.security, + securitySource: null, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, @@ -121,7 +117,6 @@ async function $do( }; const requestRes = client._createRequest(context, { - security: requestSecurity, method: "GET", baseURL: options?.serverURL, path: path, @@ -138,7 +133,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/funcs/artifactsGetTags.ts b/src/funcs/artifactsGetTags.ts index b8aa89a1..a8cbc91c 100644 --- a/src/funcs/artifactsGetTags.ts +++ b/src/funcs/artifactsGetTags.ts @@ -4,11 +4,11 @@ import { SpeakeasyCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -89,7 +89,6 @@ async function $do( charEncoding: "percent", }), }; - const path = pathToFunc("/v1/artifacts/namespaces/{namespace_name}/tags")( pathParams, ); @@ -98,18 +97,15 @@ async function $do( Accept: "application/json", })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); - const context = { options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getTags", oAuth2Scopes: null, - resolvedSecurity: requestSecurity, + resolvedSecurity: null, - securitySource: client._options.security, + securitySource: null, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, @@ -117,7 +113,6 @@ async function $do( }; const requestRes = client._createRequest(context, { - security: requestSecurity, method: "GET", baseURL: options?.serverURL, path: path, @@ -133,7 +128,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/funcs/artifactsListRemoteSources.ts b/src/funcs/artifactsListRemoteSources.ts index bc057b35..f15b58b5 100644 --- a/src/funcs/artifactsListRemoteSources.ts +++ b/src/funcs/artifactsListRemoteSources.ts @@ -4,11 +4,11 @@ import { SpeakeasyCore } from "../core.js"; import { encodeFormQuery } from "../lib/encodings.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -96,18 +96,15 @@ async function $do( Accept: "application/json", })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); - const context = { options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "listRemoteSources", oAuth2Scopes: null, - resolvedSecurity: requestSecurity, + resolvedSecurity: null, - securitySource: client._options.security, + securitySource: null, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, @@ -115,7 +112,6 @@ async function $do( }; const requestRes = client._createRequest(context, { - security: requestSecurity, method: "GET", baseURL: options?.serverURL, path: path, @@ -132,7 +128,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/funcs/artifactsPostTags.ts b/src/funcs/artifactsPostTags.ts index a6555107..d7df4f01 100644 --- a/src/funcs/artifactsPostTags.ts +++ b/src/funcs/artifactsPostTags.ts @@ -5,11 +5,11 @@ import * as z from "zod/v3"; import { SpeakeasyCore } from "../core.js"; import { encodeJSON, encodeSimple } from "../lib/encodings.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -92,7 +92,6 @@ async function $do( charEncoding: "percent", }), }; - const path = pathToFunc("/v1/artifacts/namespaces/{namespace_name}/tags")( pathParams, ); @@ -102,18 +101,15 @@ async function $do( Accept: "application/json", })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); - const context = { options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "postTags", oAuth2Scopes: null, - resolvedSecurity: requestSecurity, + resolvedSecurity: null, - securitySource: client._options.security, + securitySource: null, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, @@ -121,7 +117,6 @@ async function $do( }; const requestRes = client._createRequest(context, { - security: requestSecurity, method: "POST", baseURL: options?.serverURL, path: path, @@ -137,7 +132,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/funcs/artifactsPreflight.ts b/src/funcs/artifactsPreflight.ts index 41f18dcd..2cb93579 100644 --- a/src/funcs/artifactsPreflight.ts +++ b/src/funcs/artifactsPreflight.ts @@ -4,11 +4,11 @@ import { SpeakeasyCore } from "../core.js"; import { encodeJSON } from "../lib/encodings.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -94,18 +94,15 @@ async function $do( Accept: "application/json", })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); - const context = { options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "preflight", oAuth2Scopes: null, - resolvedSecurity: requestSecurity, + resolvedSecurity: null, - securitySource: client._options.security, + securitySource: null, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, @@ -113,7 +110,6 @@ async function $do( }; const requestRes = client._createRequest(context, { - security: requestSecurity, method: "POST", baseURL: options?.serverURL, path: path, @@ -129,7 +125,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/funcs/artifactsSetArchived.ts b/src/funcs/artifactsSetArchived.ts index f5e7548c..5999ea42 100644 --- a/src/funcs/artifactsSetArchived.ts +++ b/src/funcs/artifactsSetArchived.ts @@ -5,11 +5,11 @@ import * as z from "zod/v3"; import { SpeakeasyCore } from "../core.js"; import { encodeJSON, encodeSimple } from "../lib/encodings.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -92,7 +92,6 @@ async function $do( charEncoding: "percent", }), }; - const path = pathToFunc("/v1/artifacts/namespaces/{namespace_name}/archive")( pathParams, ); @@ -102,18 +101,15 @@ async function $do( Accept: "application/json", })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); - const context = { options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "archiveNamespace", oAuth2Scopes: null, - resolvedSecurity: requestSecurity, + resolvedSecurity: null, - securitySource: client._options.security, + securitySource: null, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, @@ -121,7 +117,6 @@ async function $do( }; const requestRes = client._createRequest(context, { - security: requestSecurity, method: "POST", baseURL: options?.serverURL, path: path, @@ -137,7 +132,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/funcs/artifactsSetVisibility.ts b/src/funcs/artifactsSetVisibility.ts index 7a50df66..a3364bdc 100644 --- a/src/funcs/artifactsSetVisibility.ts +++ b/src/funcs/artifactsSetVisibility.ts @@ -5,11 +5,11 @@ import * as z from "zod/v3"; import { SpeakeasyCore } from "../core.js"; import { encodeJSON, encodeSimple } from "../lib/encodings.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -92,7 +92,6 @@ async function $do( charEncoding: "percent", }), }; - const path = pathToFunc( "/v1/artifacts/namespaces/{namespace_name}/visibility", )(pathParams); @@ -102,18 +101,15 @@ async function $do( Accept: "application/json", })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); - const context = { options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "setVisibility", oAuth2Scopes: null, - resolvedSecurity: requestSecurity, + resolvedSecurity: null, - securitySource: client._options.security, + securitySource: null, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, @@ -121,7 +117,6 @@ async function $do( }; const requestRes = client._createRequest(context, { - security: requestSecurity, method: "POST", baseURL: options?.serverURL, path: path, @@ -137,7 +132,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/funcs/authGetAccess.ts b/src/funcs/authGetAccess.ts index 04ed3d16..13a9457c 100644 --- a/src/funcs/authGetAccess.ts +++ b/src/funcs/authGetAccess.ts @@ -4,11 +4,12 @@ import { SpeakeasyCore } from "../core.js"; import { encodeFormQuery } from "../lib/encodings.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { resolveSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -33,6 +34,7 @@ import { Result } from "../sdk/types/fp.js"; */ export function authGetAccess( client: SpeakeasyCore, + security: operations.GetWorkspaceAccessSecurity, request: operations.GetWorkspaceAccessRequest, options?: RequestOptions, ): APIPromise< @@ -50,6 +52,7 @@ export function authGetAccess( > { return new APIPromise($do( client, + security, request, options, )); @@ -57,6 +60,7 @@ export function authGetAccess( async function $do( client: SpeakeasyCore, + security: operations.GetWorkspaceAccessSecurity, request: operations.GetWorkspaceAccessRequest, options?: RequestOptions, ): Promise< @@ -98,8 +102,29 @@ async function $do( Accept: "application/json", })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); + const requestSecurity = resolveSecurity( + [ + { + fieldName: "x-api-key", + type: "apiKey:header", + value: security?.apiKey, + }, + ], + [ + { + fieldName: "Authorization", + type: "http:bearer", + value: security?.bearer, + }, + ], + [ + { + fieldName: "x-workspace-identifier", + type: "apiKey:header", + value: security?.workspaceIdentifier, + }, + ], + ); const context = { options: client._options, @@ -109,7 +134,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.security, + securitySource: security, retryConfig: options?.retries || client._options.retryConfig || { @@ -144,7 +169,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/funcs/authGetAccessToken.ts b/src/funcs/authGetAccessToken.ts index f91cfca8..8b874080 100644 --- a/src/funcs/authGetAccessToken.ts +++ b/src/funcs/authGetAccessToken.ts @@ -4,6 +4,7 @@ import { SpeakeasyCore } from "../core.js"; import { encodeFormQuery } from "../lib/encodings.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; @@ -127,7 +128,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/funcs/authGetUser.ts b/src/funcs/authGetUser.ts index bc0bd473..3da07610 100644 --- a/src/funcs/authGetUser.ts +++ b/src/funcs/authGetUser.ts @@ -3,10 +3,11 @@ */ import { SpeakeasyCore } from "../core.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { resolveSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -19,6 +20,7 @@ import * as errors from "../sdk/models/errors/index.js"; import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; import { SpeakeasyError } from "../sdk/models/errors/speakeasyerror.js"; +import * as operations from "../sdk/models/operations/index.js"; import * as shared from "../sdk/models/shared/index.js"; import { APICall, APIPromise } from "../sdk/types/async.js"; import { Result } from "../sdk/types/fp.js"; @@ -28,6 +30,7 @@ import { Result } from "../sdk/types/fp.js"; */ export function authGetUser( client: SpeakeasyCore, + security: operations.GetUserSecurity, options?: RequestOptions, ): APIPromise< Result< @@ -45,12 +48,14 @@ export function authGetUser( > { return new APIPromise($do( client, + security, options, )); } async function $do( client: SpeakeasyCore, + security: operations.GetUserSecurity, options?: RequestOptions, ): Promise< [ @@ -75,8 +80,29 @@ async function $do( Accept: "application/json", })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); + const requestSecurity = resolveSecurity( + [ + { + fieldName: "x-api-key", + type: "apiKey:header", + value: security?.apiKey, + }, + ], + [ + { + fieldName: "Authorization", + type: "http:bearer", + value: security?.bearer, + }, + ], + [ + { + fieldName: "x-workspace-identifier", + type: "apiKey:header", + value: security?.workspaceIdentifier, + }, + ], + ); const context = { options: client._options, @@ -86,7 +112,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.security, + securitySource: security, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, @@ -109,7 +135,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/funcs/authValidateApiKey.ts b/src/funcs/authValidateApiKey.ts index 7c689d7c..05e08c86 100644 --- a/src/funcs/authValidateApiKey.ts +++ b/src/funcs/authValidateApiKey.ts @@ -3,10 +3,11 @@ */ import { SpeakeasyCore } from "../core.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { resolveSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -19,6 +20,7 @@ import * as errors from "../sdk/models/errors/index.js"; import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; import { SpeakeasyError } from "../sdk/models/errors/speakeasyerror.js"; +import * as operations from "../sdk/models/operations/index.js"; import * as shared from "../sdk/models/shared/index.js"; import { APICall, APIPromise } from "../sdk/types/async.js"; import { Result } from "../sdk/types/fp.js"; @@ -28,6 +30,7 @@ import { Result } from "../sdk/types/fp.js"; */ export function authValidateApiKey( client: SpeakeasyCore, + security: operations.ValidateApiKeySecurity, options?: RequestOptions, ): APIPromise< Result< @@ -45,12 +48,14 @@ export function authValidateApiKey( > { return new APIPromise($do( client, + security, options, )); } async function $do( client: SpeakeasyCore, + security: operations.ValidateApiKeySecurity, options?: RequestOptions, ): Promise< [ @@ -75,8 +80,29 @@ async function $do( Accept: "application/json", })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); + const requestSecurity = resolveSecurity( + [ + { + fieldName: "x-api-key", + type: "apiKey:header", + value: security?.apiKey, + }, + ], + [ + { + fieldName: "Authorization", + type: "http:bearer", + value: security?.bearer, + }, + ], + [ + { + fieldName: "x-workspace-identifier", + type: "apiKey:header", + value: security?.workspaceIdentifier, + }, + ], + ); const context = { options: client._options, @@ -86,7 +112,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.security, + securitySource: security, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, @@ -109,7 +135,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/funcs/codeSamplesGenerateCodeSamplePreview.ts b/src/funcs/codeSamplesGenerateCodeSamplePreview.ts index 54ebeaea..06db65eb 100644 --- a/src/funcs/codeSamplesGenerateCodeSamplePreview.ts +++ b/src/funcs/codeSamplesGenerateCodeSamplePreview.ts @@ -3,16 +3,18 @@ */ import { SpeakeasyCore } from "../core.js"; -import { appendForm } from "../lib/encodings.js"; +import { appendForm, normalizeBlob } from "../lib/encodings.js"; import { + bytesToBlob, getContentTypeFromFileName, readableStreamToArrayBuffer, } from "../lib/files.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { resolveSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -25,6 +27,7 @@ import * as errors from "../sdk/models/errors/index.js"; import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; import { SpeakeasyError } from "../sdk/models/errors/speakeasyerror.js"; +import * as operations from "../sdk/models/operations/index.js"; import * as shared from "../sdk/models/shared/index.js"; import { APICall, APIPromise } from "../sdk/types/async.js"; import { isBlobLike } from "../sdk/types/blobs.js"; @@ -39,6 +42,7 @@ import { isReadableStream } from "../sdk/types/streams.js"; */ export function codeSamplesGenerateCodeSamplePreview( client: SpeakeasyCore, + security: operations.GenerateCodeSamplePreviewSecurity, request: shared.CodeSampleSchemaInput, options?: RequestOptions, ): APIPromise< @@ -57,6 +61,7 @@ export function codeSamplesGenerateCodeSamplePreview( > { return new APIPromise($do( client, + security, request, options, )); @@ -64,6 +69,7 @@ export function codeSamplesGenerateCodeSamplePreview( async function $do( client: SpeakeasyCore, + security: operations.GenerateCodeSamplePreviewSecurity, request: shared.CodeSampleSchemaInput, options?: RequestOptions, ): Promise< @@ -96,22 +102,29 @@ async function $do( appendForm(body, "language", payload.language); if (isBlobLike(payload.schema_file)) { - appendForm(body, "schema_file", payload.schema_file); + const file = payload.schema_file; + const blob = await normalizeBlob(file); + const name = "name" in file ? (file.name as string) : undefined; + appendForm(body, "schema_file", blob, name); } else if (isReadableStream(payload.schema_file.content)) { const buffer = await readableStreamToArrayBuffer( payload.schema_file.content, ); const contentType = getContentTypeFromFileName(payload.schema_file.fileName) || "application/octet-stream"; - const blob = new Blob([buffer], { type: contentType }); - appendForm(body, "schema_file", blob, payload.schema_file.fileName); + appendForm( + body, + "schema_file", + bytesToBlob(buffer, contentType), + payload.schema_file.fileName, + ); } else { const contentType = getContentTypeFromFileName(payload.schema_file.fileName) || "application/octet-stream"; appendForm( body, "schema_file", - new Blob([payload.schema_file.content], { type: contentType }), + bytesToBlob(payload.schema_file.content, contentType), payload.schema_file.fileName, ); } @@ -131,8 +144,29 @@ async function $do( Accept: "application/json", })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); + const requestSecurity = resolveSecurity( + [ + { + fieldName: "x-api-key", + type: "apiKey:header", + value: security?.apiKey, + }, + ], + [ + { + fieldName: "Authorization", + type: "http:bearer", + value: security?.bearer, + }, + ], + [ + { + fieldName: "x-workspace-identifier", + type: "apiKey:header", + value: security?.workspaceIdentifier, + }, + ], + ); const context = { options: client._options, @@ -142,7 +176,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.security, + securitySource: security, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, @@ -166,7 +200,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/funcs/codeSamplesGenerateCodeSamplePreviewAsync.ts b/src/funcs/codeSamplesGenerateCodeSamplePreviewAsync.ts index 697d6e28..8f201b80 100644 --- a/src/funcs/codeSamplesGenerateCodeSamplePreviewAsync.ts +++ b/src/funcs/codeSamplesGenerateCodeSamplePreviewAsync.ts @@ -3,16 +3,18 @@ */ import { SpeakeasyCore } from "../core.js"; -import { appendForm } from "../lib/encodings.js"; +import { appendForm, normalizeBlob } from "../lib/encodings.js"; import { + bytesToBlob, getContentTypeFromFileName, readableStreamToArrayBuffer, } from "../lib/files.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { resolveSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -40,6 +42,7 @@ import { isReadableStream } from "../sdk/types/streams.js"; */ export function codeSamplesGenerateCodeSamplePreviewAsync( client: SpeakeasyCore, + security: operations.GenerateCodeSamplePreviewAsyncSecurity, request: shared.CodeSampleSchemaInput, options?: RequestOptions, ): APIPromise< @@ -58,6 +61,7 @@ export function codeSamplesGenerateCodeSamplePreviewAsync( > { return new APIPromise($do( client, + security, request, options, )); @@ -65,6 +69,7 @@ export function codeSamplesGenerateCodeSamplePreviewAsync( async function $do( client: SpeakeasyCore, + security: operations.GenerateCodeSamplePreviewAsyncSecurity, request: shared.CodeSampleSchemaInput, options?: RequestOptions, ): Promise< @@ -97,22 +102,29 @@ async function $do( appendForm(body, "language", payload.language); if (isBlobLike(payload.schema_file)) { - appendForm(body, "schema_file", payload.schema_file); + const file = payload.schema_file; + const blob = await normalizeBlob(file); + const name = "name" in file ? (file.name as string) : undefined; + appendForm(body, "schema_file", blob, name); } else if (isReadableStream(payload.schema_file.content)) { const buffer = await readableStreamToArrayBuffer( payload.schema_file.content, ); const contentType = getContentTypeFromFileName(payload.schema_file.fileName) || "application/octet-stream"; - const blob = new Blob([buffer], { type: contentType }); - appendForm(body, "schema_file", blob, payload.schema_file.fileName); + appendForm( + body, + "schema_file", + bytesToBlob(buffer, contentType), + payload.schema_file.fileName, + ); } else { const contentType = getContentTypeFromFileName(payload.schema_file.fileName) || "application/octet-stream"; appendForm( body, "schema_file", - new Blob([payload.schema_file.content], { type: contentType }), + bytesToBlob(payload.schema_file.content, contentType), payload.schema_file.fileName, ); } @@ -132,8 +144,29 @@ async function $do( Accept: "application/json", })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); + const requestSecurity = resolveSecurity( + [ + { + fieldName: "x-api-key", + type: "apiKey:header", + value: security?.apiKey, + }, + ], + [ + { + fieldName: "Authorization", + type: "http:bearer", + value: security?.bearer, + }, + ], + [ + { + fieldName: "x-workspace-identifier", + type: "apiKey:header", + value: security?.workspaceIdentifier, + }, + ], + ); const context = { options: client._options, @@ -143,7 +176,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.security, + securitySource: security, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, @@ -167,7 +200,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/funcs/codeSamplesGet.ts b/src/funcs/codeSamplesGet.ts index cfa3992c..474cbf74 100644 --- a/src/funcs/codeSamplesGet.ts +++ b/src/funcs/codeSamplesGet.ts @@ -4,11 +4,12 @@ import { SpeakeasyCore } from "../core.js"; import { encodeFormQuery } from "../lib/encodings.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { resolveSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -34,6 +35,7 @@ import { Result } from "../sdk/types/fp.js"; */ export function codeSamplesGet( client: SpeakeasyCore, + security: operations.GetCodeSamplesSecurity, request: operations.GetCodeSamplesRequest, options?: RequestOptions, ): APIPromise< @@ -52,6 +54,7 @@ export function codeSamplesGet( > { return new APIPromise($do( client, + security, request, options, )); @@ -59,6 +62,7 @@ export function codeSamplesGet( async function $do( client: SpeakeasyCore, + security: operations.GetCodeSamplesSecurity, request: operations.GetCodeSamplesRequest, options?: RequestOptions, ): Promise< @@ -102,8 +106,29 @@ async function $do( Accept: "application/json", })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); + const requestSecurity = resolveSecurity( + [ + { + fieldName: "x-api-key", + type: "apiKey:header", + value: security?.apiKey, + }, + ], + [ + { + fieldName: "Authorization", + type: "http:bearer", + value: security?.bearer, + }, + ], + [ + { + fieldName: "x-workspace-identifier", + type: "apiKey:header", + value: security?.workspaceIdentifier, + }, + ], + ); const context = { options: client._options, @@ -113,7 +138,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.security, + securitySource: security, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, @@ -138,7 +163,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/funcs/codeSamplesGetCodeSamplePreviewAsync.ts b/src/funcs/codeSamplesGetCodeSamplePreviewAsync.ts index 2cf06f72..bf4290b8 100644 --- a/src/funcs/codeSamplesGetCodeSamplePreviewAsync.ts +++ b/src/funcs/codeSamplesGetCodeSamplePreviewAsync.ts @@ -4,11 +4,12 @@ import { SpeakeasyCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { resolveSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -33,6 +34,7 @@ import { Result } from "../sdk/types/fp.js"; */ export function codeSamplesGetCodeSamplePreviewAsync( client: SpeakeasyCore, + security: operations.GetCodeSamplePreviewAsyncSecurity, request: operations.GetCodeSamplePreviewAsyncRequest, options?: RequestOptions, ): APIPromise< @@ -51,6 +53,7 @@ export function codeSamplesGetCodeSamplePreviewAsync( > { return new APIPromise($do( client, + security, request, options, )); @@ -58,6 +61,7 @@ export function codeSamplesGetCodeSamplePreviewAsync( async function $do( client: SpeakeasyCore, + security: operations.GetCodeSamplePreviewAsyncSecurity, request: operations.GetCodeSamplePreviewAsyncRequest, options?: RequestOptions, ): Promise< @@ -95,15 +99,35 @@ async function $do( charEncoding: "percent", }), }; - const path = pathToFunc("/v1/code_sample/preview/async/{jobID}")(pathParams); const headers = new Headers(compactMap({ Accept: "application/json", })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); + const requestSecurity = resolveSecurity( + [ + { + fieldName: "x-api-key", + type: "apiKey:header", + value: security?.apiKey, + }, + ], + [ + { + fieldName: "Authorization", + type: "http:bearer", + value: security?.bearer, + }, + ], + [ + { + fieldName: "x-workspace-identifier", + type: "apiKey:header", + value: security?.workspaceIdentifier, + }, + ], + ); const context = { options: client._options, @@ -113,7 +137,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.security, + securitySource: security, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, @@ -137,7 +161,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/funcs/eventsGetEventsByTarget.ts b/src/funcs/eventsGetEventsByTarget.ts index 8cd8ec20..9b3e850c 100644 --- a/src/funcs/eventsGetEventsByTarget.ts +++ b/src/funcs/eventsGetEventsByTarget.ts @@ -5,11 +5,12 @@ import * as z from "zod/v3"; import { SpeakeasyCore } from "../core.js"; import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { resolveSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -32,6 +33,7 @@ import { Result } from "../sdk/types/fp.js"; */ export function eventsGetEventsByTarget( client: SpeakeasyCore, + security: operations.GetWorkspaceEventsByTargetSecurity, request: operations.GetWorkspaceEventsByTargetRequest, options?: RequestOptions, ): APIPromise< @@ -50,6 +52,7 @@ export function eventsGetEventsByTarget( > { return new APIPromise($do( client, + security, request, options, )); @@ -57,6 +60,7 @@ export function eventsGetEventsByTarget( async function $do( client: SpeakeasyCore, + security: operations.GetWorkspaceEventsByTargetSecurity, request: operations.GetWorkspaceEventsByTargetRequest, options?: RequestOptions, ): Promise< @@ -99,7 +103,6 @@ async function $do( { explode: false, charEncoding: "percent" }, ), }; - const path = pathToFunc( "/v1/workspace/{workspace_id}/events/targets/{target_id}/events", )(pathParams); @@ -112,8 +115,29 @@ async function $do( Accept: "application/json", })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); + const requestSecurity = resolveSecurity( + [ + { + fieldName: "x-api-key", + type: "apiKey:header", + value: security?.apiKey, + }, + ], + [ + { + fieldName: "Authorization", + type: "http:bearer", + value: security?.bearer, + }, + ], + [ + { + fieldName: "x-workspace-identifier", + type: "apiKey:header", + value: security?.workspaceIdentifier, + }, + ], + ); const context = { options: client._options, @@ -123,7 +147,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.security, + securitySource: security, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, @@ -148,7 +172,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/funcs/eventsGetTargets.ts b/src/funcs/eventsGetTargets.ts index b9690f67..7fbd8e81 100644 --- a/src/funcs/eventsGetTargets.ts +++ b/src/funcs/eventsGetTargets.ts @@ -5,11 +5,12 @@ import * as z from "zod/v3"; import { SpeakeasyCore } from "../core.js"; import { encodeFormQuery } from "../lib/encodings.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { resolveSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -32,6 +33,7 @@ import { Result } from "../sdk/types/fp.js"; */ export function eventsGetTargets( client: SpeakeasyCore, + security: operations.GetWorkspaceTargetsSecurity, request: operations.GetWorkspaceTargetsRequest, options?: RequestOptions, ): APIPromise< @@ -50,6 +52,7 @@ export function eventsGetTargets( > { return new APIPromise($do( client, + security, request, options, )); @@ -57,6 +60,7 @@ export function eventsGetTargets( async function $do( client: SpeakeasyCore, + security: operations.GetWorkspaceTargetsSecurity, request: operations.GetWorkspaceTargetsRequest, options?: RequestOptions, ): Promise< @@ -98,8 +102,29 @@ async function $do( Accept: "application/json", })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); + const requestSecurity = resolveSecurity( + [ + { + fieldName: "x-api-key", + type: "apiKey:header", + value: security?.apiKey, + }, + ], + [ + { + fieldName: "Authorization", + type: "http:bearer", + value: security?.bearer, + }, + ], + [ + { + fieldName: "x-workspace-identifier", + type: "apiKey:header", + value: security?.workspaceIdentifier, + }, + ], + ); const context = { options: client._options, @@ -109,7 +134,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.security, + securitySource: security, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, @@ -134,7 +159,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/funcs/eventsGetTargetsDeprecated.ts b/src/funcs/eventsGetTargetsDeprecated.ts index 316ecfe8..d2d70a95 100644 --- a/src/funcs/eventsGetTargetsDeprecated.ts +++ b/src/funcs/eventsGetTargetsDeprecated.ts @@ -5,11 +5,12 @@ import * as z from "zod/v3"; import { SpeakeasyCore } from "../core.js"; import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { resolveSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -32,6 +33,7 @@ import { Result } from "../sdk/types/fp.js"; */ export function eventsGetTargetsDeprecated( client: SpeakeasyCore, + security: operations.GetWorkspaceTargetsDeprecatedSecurity, request: operations.GetWorkspaceTargetsDeprecatedRequest, options?: RequestOptions, ): APIPromise< @@ -50,6 +52,7 @@ export function eventsGetTargetsDeprecated( > { return new APIPromise($do( client, + security, request, options, )); @@ -57,6 +60,7 @@ export function eventsGetTargetsDeprecated( async function $do( client: SpeakeasyCore, + security: operations.GetWorkspaceTargetsDeprecatedSecurity, request: operations.GetWorkspaceTargetsDeprecatedRequest, options?: RequestOptions, ): Promise< @@ -97,7 +101,6 @@ async function $do( { explode: false, charEncoding: "percent" }, ), }; - const path = pathToFunc("/v1/workspace/{workspace_id}/events/targets")( pathParams, ); @@ -110,8 +113,29 @@ async function $do( Accept: "application/json", })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); + const requestSecurity = resolveSecurity( + [ + { + fieldName: "x-api-key", + type: "apiKey:header", + value: security?.apiKey, + }, + ], + [ + { + fieldName: "Authorization", + type: "http:bearer", + value: security?.bearer, + }, + ], + [ + { + fieldName: "x-workspace-identifier", + type: "apiKey:header", + value: security?.workspaceIdentifier, + }, + ], + ); const context = { options: client._options, @@ -121,7 +145,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.security, + securitySource: security, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, @@ -146,7 +170,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/funcs/eventsGetTargetsSummary.ts b/src/funcs/eventsGetTargetsSummary.ts index adb4d183..d98acaf1 100644 --- a/src/funcs/eventsGetTargetsSummary.ts +++ b/src/funcs/eventsGetTargetsSummary.ts @@ -3,13 +3,13 @@ */ import { SpeakeasyCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; import { encodeFormQuery } from "../lib/encodings.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { resolveSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -37,6 +37,7 @@ import { */ export function eventsGetTargetsSummary( client: SpeakeasyCore, + security: operations.GetWorkspaceTargetsSummarySecurity, request: operations.GetWorkspaceTargetsSummaryRequest, options?: RequestOptions, ): APIPromise< @@ -58,6 +59,7 @@ export function eventsGetTargetsSummary( > { return new APIPromise($do( client, + security, request, options, )); @@ -65,6 +67,7 @@ export function eventsGetTargetsSummary( async function $do( client: SpeakeasyCore, + security: operations.GetWorkspaceTargetsSummarySecurity, request: operations.GetWorkspaceTargetsSummaryRequest, options?: RequestOptions, ): Promise< @@ -111,8 +114,29 @@ async function $do( Accept: "application/json", })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); + const requestSecurity = resolveSecurity( + [ + { + fieldName: "x-api-key", + type: "apiKey:header", + value: security?.apiKey, + }, + ], + [ + { + fieldName: "Authorization", + type: "http:bearer", + value: security?.bearer, + }, + ], + [ + { + fieldName: "x-workspace-identifier", + type: "apiKey:header", + value: security?.workspaceIdentifier, + }, + ], + ); const context = { options: client._options, @@ -122,7 +146,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.security, + securitySource: security, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, @@ -147,7 +171,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); @@ -205,14 +230,15 @@ async function $do( >; "~next"?: { cursor: string }; } => { - const nextCursor = dlv(responseData, "next_cursor"); + const nextCursor = + (responseData as { next_cursor?: unknown | null }).next_cursor; if (typeof nextCursor !== "string") { return { next: () => null }; } if (nextCursor.trim() === "") { return { next: () => null }; } - const results = dlv(responseData, "targets"); + const results = (responseData as { targets: unknown }).targets; if (!Array.isArray(results) || !results.length) { return { next: () => null }; } @@ -220,6 +246,7 @@ async function $do( const nextVal = () => eventsGetTargetsSummary( client, + security, { ...request, cursor: nextCursor, diff --git a/src/funcs/eventsPost.ts b/src/funcs/eventsPost.ts index 48b8f07f..8d280bad 100644 --- a/src/funcs/eventsPost.ts +++ b/src/funcs/eventsPost.ts @@ -5,11 +5,12 @@ import * as z from "zod/v3"; import { SpeakeasyCore } from "../core.js"; import { encodeJSON, encodeSimple } from "../lib/encodings.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { resolveSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -34,6 +35,7 @@ import { Result } from "../sdk/types/fp.js"; */ export function eventsPost( client: SpeakeasyCore, + security: operations.PostWorkspaceEventsSecurity, request: operations.PostWorkspaceEventsRequest, options?: RequestOptions, ): APIPromise< @@ -52,6 +54,7 @@ export function eventsPost( > { return new APIPromise($do( client, + security, request, options, )); @@ -59,6 +62,7 @@ export function eventsPost( async function $do( client: SpeakeasyCore, + security: operations.PostWorkspaceEventsSecurity, request: operations.PostWorkspaceEventsRequest, options?: RequestOptions, ): Promise< @@ -97,7 +101,6 @@ async function $do( { explode: false, charEncoding: "percent" }, ), }; - const path = pathToFunc("/v1/workspace/{workspace_id}/events")(pathParams); const headers = new Headers(compactMap({ @@ -105,8 +108,29 @@ async function $do( Accept: "application/json", })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); + const requestSecurity = resolveSecurity( + [ + { + fieldName: "x-api-key", + type: "apiKey:header", + value: security?.apiKey, + }, + ], + [ + { + fieldName: "Authorization", + type: "http:bearer", + value: security?.bearer, + }, + ], + [ + { + fieldName: "x-workspace-identifier", + type: "apiKey:header", + value: security?.workspaceIdentifier, + }, + ], + ); const context = { options: client._options, @@ -116,7 +140,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.security, + securitySource: security, retryConfig: options?.retries || client._options.retryConfig || { @@ -150,7 +174,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/funcs/eventsSearch.ts b/src/funcs/eventsSearch.ts index 1d199d3b..c469677e 100644 --- a/src/funcs/eventsSearch.ts +++ b/src/funcs/eventsSearch.ts @@ -5,11 +5,12 @@ import * as z from "zod/v3"; import { SpeakeasyCore } from "../core.js"; import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { resolveSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -32,6 +33,7 @@ import { Result } from "../sdk/types/fp.js"; */ export function eventsSearch( client: SpeakeasyCore, + security: operations.SearchWorkspaceEventsSecurity, request: operations.SearchWorkspaceEventsRequest, options?: RequestOptions, ): APIPromise< @@ -50,6 +52,7 @@ export function eventsSearch( > { return new APIPromise($do( client, + security, request, options, )); @@ -57,6 +60,7 @@ export function eventsSearch( async function $do( client: SpeakeasyCore, + security: operations.SearchWorkspaceEventsSecurity, request: operations.SearchWorkspaceEventsRequest, options?: RequestOptions, ): Promise< @@ -95,7 +99,6 @@ async function $do( { explode: false, charEncoding: "percent" }, ), }; - const path = pathToFunc("/v1/workspace/{workspace_id}/events")(pathParams); const query = encodeFormQuery({ @@ -113,8 +116,29 @@ async function $do( Accept: "application/json", })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); + const requestSecurity = resolveSecurity( + [ + { + fieldName: "x-api-key", + type: "apiKey:header", + value: security?.apiKey, + }, + ], + [ + { + fieldName: "Authorization", + type: "http:bearer", + value: security?.bearer, + }, + ], + [ + { + fieldName: "x-workspace-identifier", + type: "apiKey:header", + value: security?.workspaceIdentifier, + }, + ], + ); const context = { options: client._options, @@ -124,7 +148,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.security, + securitySource: security, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, @@ -149,7 +173,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/funcs/githubCheckAccess.ts b/src/funcs/githubCheckAccess.ts index 95649f61..84133d04 100644 --- a/src/funcs/githubCheckAccess.ts +++ b/src/funcs/githubCheckAccess.ts @@ -5,11 +5,12 @@ import * as z from "zod/v3"; import { SpeakeasyCore } from "../core.js"; import { encodeFormQuery } from "../lib/encodings.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { resolveSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -28,6 +29,7 @@ import { Result } from "../sdk/types/fp.js"; export function githubCheckAccess( client: SpeakeasyCore, + security: operations.CheckGithubAccessSecurity, request: operations.CheckGithubAccessRequest, options?: RequestOptions, ): APIPromise< @@ -46,6 +48,7 @@ export function githubCheckAccess( > { return new APIPromise($do( client, + security, request, options, )); @@ -53,6 +56,7 @@ export function githubCheckAccess( async function $do( client: SpeakeasyCore, + security: operations.CheckGithubAccessSecurity, request: operations.CheckGithubAccessRequest, options?: RequestOptions, ): Promise< @@ -94,8 +98,29 @@ async function $do( Accept: "application/json", })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); + const requestSecurity = resolveSecurity( + [ + { + fieldName: "x-api-key", + type: "apiKey:header", + value: security?.apiKey, + }, + ], + [ + { + fieldName: "Authorization", + type: "http:bearer", + value: security?.bearer, + }, + ], + [ + { + fieldName: "x-workspace-identifier", + type: "apiKey:header", + value: security?.workspaceIdentifier, + }, + ], + ); const context = { options: client._options, @@ -105,7 +130,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.security, + securitySource: security, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, @@ -130,7 +155,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/funcs/githubCheckPublishingPRs.ts b/src/funcs/githubCheckPublishingPRs.ts index 264403c9..2a148dfe 100644 --- a/src/funcs/githubCheckPublishingPRs.ts +++ b/src/funcs/githubCheckPublishingPRs.ts @@ -4,11 +4,12 @@ import { SpeakeasyCore } from "../core.js"; import { encodeFormQuery } from "../lib/encodings.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { resolveSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -28,6 +29,7 @@ import { Result } from "../sdk/types/fp.js"; export function githubCheckPublishingPRs( client: SpeakeasyCore, + security: operations.GithubCheckPublishingPRsSecurity, request: operations.GithubCheckPublishingPRsRequest, options?: RequestOptions, ): APIPromise< @@ -46,6 +48,7 @@ export function githubCheckPublishingPRs( > { return new APIPromise($do( client, + security, request, options, )); @@ -53,6 +56,7 @@ export function githubCheckPublishingPRs( async function $do( client: SpeakeasyCore, + security: operations.GithubCheckPublishingPRsSecurity, request: operations.GithubCheckPublishingPRsRequest, options?: RequestOptions, ): Promise< @@ -96,8 +100,29 @@ async function $do( Accept: "application/json", })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); + const requestSecurity = resolveSecurity( + [ + { + fieldName: "x-api-key", + type: "apiKey:header", + value: security?.apiKey, + }, + ], + [ + { + fieldName: "Authorization", + type: "http:bearer", + value: security?.bearer, + }, + ], + [ + { + fieldName: "x-workspace-identifier", + type: "apiKey:header", + value: security?.workspaceIdentifier, + }, + ], + ); const context = { options: client._options, @@ -107,7 +132,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.security, + securitySource: security, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, @@ -132,7 +157,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/funcs/githubCheckPublishingSecrets.ts b/src/funcs/githubCheckPublishingSecrets.ts index 45f3baa3..a83de2ab 100644 --- a/src/funcs/githubCheckPublishingSecrets.ts +++ b/src/funcs/githubCheckPublishingSecrets.ts @@ -4,11 +4,12 @@ import { SpeakeasyCore } from "../core.js"; import { encodeFormQuery } from "../lib/encodings.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { resolveSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -28,6 +29,7 @@ import { Result } from "../sdk/types/fp.js"; export function githubCheckPublishingSecrets( client: SpeakeasyCore, + security: operations.GithubCheckPublishingSecretsSecurity, request: operations.GithubCheckPublishingSecretsRequest, options?: RequestOptions, ): APIPromise< @@ -46,6 +48,7 @@ export function githubCheckPublishingSecrets( > { return new APIPromise($do( client, + security, request, options, )); @@ -53,6 +56,7 @@ export function githubCheckPublishingSecrets( async function $do( client: SpeakeasyCore, + security: operations.GithubCheckPublishingSecretsSecurity, request: operations.GithubCheckPublishingSecretsRequest, options?: RequestOptions, ): Promise< @@ -96,8 +100,29 @@ async function $do( Accept: "application/json", })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); + const requestSecurity = resolveSecurity( + [ + { + fieldName: "x-api-key", + type: "apiKey:header", + value: security?.apiKey, + }, + ], + [ + { + fieldName: "Authorization", + type: "http:bearer", + value: security?.bearer, + }, + ], + [ + { + fieldName: "x-workspace-identifier", + type: "apiKey:header", + value: security?.workspaceIdentifier, + }, + ], + ); const context = { options: client._options, @@ -107,7 +132,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.security, + securitySource: security, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, @@ -132,7 +157,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/funcs/githubConfigureCodeSamples.ts b/src/funcs/githubConfigureCodeSamples.ts index 8e4ff39d..d9d757fe 100644 --- a/src/funcs/githubConfigureCodeSamples.ts +++ b/src/funcs/githubConfigureCodeSamples.ts @@ -4,11 +4,12 @@ import { SpeakeasyCore } from "../core.js"; import { encodeJSON } from "../lib/encodings.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { resolveSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -21,12 +22,14 @@ import * as errors from "../sdk/models/errors/index.js"; import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; import { SpeakeasyError } from "../sdk/models/errors/speakeasyerror.js"; +import * as operations from "../sdk/models/operations/index.js"; import * as shared from "../sdk/models/shared/index.js"; import { APICall, APIPromise } from "../sdk/types/async.js"; import { Result } from "../sdk/types/fp.js"; export function githubConfigureCodeSamples( client: SpeakeasyCore, + security: operations.GithubConfigureCodeSamplesSecurity, request: shared.GithubConfigureCodeSamplesRequest, options?: RequestOptions, ): APIPromise< @@ -45,6 +48,7 @@ export function githubConfigureCodeSamples( > { return new APIPromise($do( client, + security, request, options, )); @@ -52,6 +56,7 @@ export function githubConfigureCodeSamples( async function $do( client: SpeakeasyCore, + security: operations.GithubConfigureCodeSamplesSecurity, request: shared.GithubConfigureCodeSamplesRequest, options?: RequestOptions, ): Promise< @@ -90,8 +95,29 @@ async function $do( Accept: "application/json", })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); + const requestSecurity = resolveSecurity( + [ + { + fieldName: "x-api-key", + type: "apiKey:header", + value: security?.apiKey, + }, + ], + [ + { + fieldName: "Authorization", + type: "http:bearer", + value: security?.bearer, + }, + ], + [ + { + fieldName: "x-workspace-identifier", + type: "apiKey:header", + value: security?.workspaceIdentifier, + }, + ], + ); const context = { options: client._options, @@ -101,7 +127,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.security, + securitySource: security, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, @@ -125,7 +151,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/funcs/githubConfigureMintlifyRepo.ts b/src/funcs/githubConfigureMintlifyRepo.ts index a0ea13b2..f2be4759 100644 --- a/src/funcs/githubConfigureMintlifyRepo.ts +++ b/src/funcs/githubConfigureMintlifyRepo.ts @@ -5,11 +5,12 @@ import * as z from "zod/v3"; import { SpeakeasyCore } from "../core.js"; import { encodeJSON } from "../lib/encodings.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { resolveSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -22,12 +23,14 @@ import * as errors from "../sdk/models/errors/index.js"; import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; import { SpeakeasyError } from "../sdk/models/errors/speakeasyerror.js"; +import * as operations from "../sdk/models/operations/index.js"; import * as shared from "../sdk/models/shared/index.js"; import { APICall, APIPromise } from "../sdk/types/async.js"; import { Result } from "../sdk/types/fp.js"; export function githubConfigureMintlifyRepo( client: SpeakeasyCore, + security: operations.GithubConfigureMintlifyRepoSecurity, request: shared.GithubConfigureMintlifyRepoRequest, options?: RequestOptions, ): APIPromise< @@ -46,6 +49,7 @@ export function githubConfigureMintlifyRepo( > { return new APIPromise($do( client, + security, request, options, )); @@ -53,6 +57,7 @@ export function githubConfigureMintlifyRepo( async function $do( client: SpeakeasyCore, + security: operations.GithubConfigureMintlifyRepoSecurity, request: shared.GithubConfigureMintlifyRepoRequest, options?: RequestOptions, ): Promise< @@ -91,8 +96,29 @@ async function $do( Accept: "application/json", })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); + const requestSecurity = resolveSecurity( + [ + { + fieldName: "x-api-key", + type: "apiKey:header", + value: security?.apiKey, + }, + ], + [ + { + fieldName: "Authorization", + type: "http:bearer", + value: security?.bearer, + }, + ], + [ + { + fieldName: "x-workspace-identifier", + type: "apiKey:header", + value: security?.workspaceIdentifier, + }, + ], + ); const context = { options: client._options, @@ -102,7 +128,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.security, + securitySource: security, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, @@ -126,7 +152,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/funcs/githubConfigureTarget.ts b/src/funcs/githubConfigureTarget.ts index 3a9033eb..2bbb73a6 100644 --- a/src/funcs/githubConfigureTarget.ts +++ b/src/funcs/githubConfigureTarget.ts @@ -5,11 +5,12 @@ import * as z from "zod/v3"; import { SpeakeasyCore } from "../core.js"; import { encodeJSON } from "../lib/encodings.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { resolveSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -22,12 +23,14 @@ import * as errors from "../sdk/models/errors/index.js"; import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; import { SpeakeasyError } from "../sdk/models/errors/speakeasyerror.js"; +import * as operations from "../sdk/models/operations/index.js"; import * as shared from "../sdk/models/shared/index.js"; import { APICall, APIPromise } from "../sdk/types/async.js"; import { Result } from "../sdk/types/fp.js"; export function githubConfigureTarget( client: SpeakeasyCore, + security: operations.GithubConfigureTargetSecurity, request: shared.GithubConfigureTargetRequest, options?: RequestOptions, ): APIPromise< @@ -46,6 +49,7 @@ export function githubConfigureTarget( > { return new APIPromise($do( client, + security, request, options, )); @@ -53,6 +57,7 @@ export function githubConfigureTarget( async function $do( client: SpeakeasyCore, + security: operations.GithubConfigureTargetSecurity, request: shared.GithubConfigureTargetRequest, options?: RequestOptions, ): Promise< @@ -90,8 +95,29 @@ async function $do( Accept: "application/json", })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); + const requestSecurity = resolveSecurity( + [ + { + fieldName: "x-api-key", + type: "apiKey:header", + value: security?.apiKey, + }, + ], + [ + { + fieldName: "Authorization", + type: "http:bearer", + value: security?.bearer, + }, + ], + [ + { + fieldName: "x-workspace-identifier", + type: "apiKey:header", + value: security?.workspaceIdentifier, + }, + ], + ); const context = { options: client._options, @@ -101,7 +127,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.security, + securitySource: security, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, @@ -125,7 +151,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/funcs/githubGetAction.ts b/src/funcs/githubGetAction.ts index 5efc28ed..99a24128 100644 --- a/src/funcs/githubGetAction.ts +++ b/src/funcs/githubGetAction.ts @@ -4,11 +4,12 @@ import { SpeakeasyCore } from "../core.js"; import { encodeFormQuery } from "../lib/encodings.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { resolveSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -28,6 +29,7 @@ import { Result } from "../sdk/types/fp.js"; export function githubGetAction( client: SpeakeasyCore, + security: operations.GetGitHubActionSecurity, request: operations.GetGitHubActionRequest, options?: RequestOptions, ): APIPromise< @@ -46,6 +48,7 @@ export function githubGetAction( > { return new APIPromise($do( client, + security, request, options, )); @@ -53,6 +56,7 @@ export function githubGetAction( async function $do( client: SpeakeasyCore, + security: operations.GetGitHubActionSecurity, request: operations.GetGitHubActionRequest, options?: RequestOptions, ): Promise< @@ -95,8 +99,29 @@ async function $do( Accept: "application/json", })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); + const requestSecurity = resolveSecurity( + [ + { + fieldName: "x-api-key", + type: "apiKey:header", + value: security?.apiKey, + }, + ], + [ + { + fieldName: "Authorization", + type: "http:bearer", + value: security?.bearer, + }, + ], + [ + { + fieldName: "x-workspace-identifier", + type: "apiKey:header", + value: security?.workspaceIdentifier, + }, + ], + ); const context = { options: client._options, @@ -106,7 +131,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.security, + securitySource: security, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, @@ -131,7 +156,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/funcs/githubGetSetup.ts b/src/funcs/githubGetSetup.ts index 3618f545..85620983 100644 --- a/src/funcs/githubGetSetup.ts +++ b/src/funcs/githubGetSetup.ts @@ -4,11 +4,12 @@ import { SpeakeasyCore } from "../core.js"; import { encodeFormQuery } from "../lib/encodings.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { resolveSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -28,6 +29,7 @@ import { Result } from "../sdk/types/fp.js"; export function githubGetSetup( client: SpeakeasyCore, + security: operations.GetGithubSetupStateSecurity, request: operations.GetGithubSetupStateRequest, options?: RequestOptions, ): APIPromise< @@ -46,6 +48,7 @@ export function githubGetSetup( > { return new APIPromise($do( client, + security, request, options, )); @@ -53,6 +56,7 @@ export function githubGetSetup( async function $do( client: SpeakeasyCore, + security: operations.GetGithubSetupStateSecurity, request: operations.GetGithubSetupStateRequest, options?: RequestOptions, ): Promise< @@ -96,8 +100,29 @@ async function $do( Accept: "application/json", })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); + const requestSecurity = resolveSecurity( + [ + { + fieldName: "x-api-key", + type: "apiKey:header", + value: security?.apiKey, + }, + ], + [ + { + fieldName: "Authorization", + type: "http:bearer", + value: security?.bearer, + }, + ], + [ + { + fieldName: "x-workspace-identifier", + type: "apiKey:header", + value: security?.workspaceIdentifier, + }, + ], + ); const context = { options: client._options, @@ -107,7 +132,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.security, + securitySource: security, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, @@ -132,7 +157,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/funcs/githubLinkGithub.ts b/src/funcs/githubLinkGithub.ts index 011a10df..298f89f9 100644 --- a/src/funcs/githubLinkGithub.ts +++ b/src/funcs/githubLinkGithub.ts @@ -5,11 +5,12 @@ import * as z from "zod/v3"; import { SpeakeasyCore } from "../core.js"; import { encodeFormQuery } from "../lib/encodings.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { resolveSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -28,6 +29,7 @@ import { Result } from "../sdk/types/fp.js"; export function githubLinkGithub( client: SpeakeasyCore, + security: operations.LinkGithubAccessSecurity, request: operations.LinkGithubAccessRequest, options?: RequestOptions, ): APIPromise< @@ -46,6 +48,7 @@ export function githubLinkGithub( > { return new APIPromise($do( client, + security, request, options, )); @@ -53,6 +56,7 @@ export function githubLinkGithub( async function $do( client: SpeakeasyCore, + security: operations.LinkGithubAccessSecurity, request: operations.LinkGithubAccessRequest, options?: RequestOptions, ): Promise< @@ -95,8 +99,29 @@ async function $do( Accept: "application/json", })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); + const requestSecurity = resolveSecurity( + [ + { + fieldName: "x-api-key", + type: "apiKey:header", + value: security?.apiKey, + }, + ], + [ + { + fieldName: "Authorization", + type: "http:bearer", + value: security?.bearer, + }, + ], + [ + { + fieldName: "x-workspace-identifier", + type: "apiKey:header", + value: security?.workspaceIdentifier, + }, + ], + ); const context = { options: client._options, @@ -106,7 +131,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.security, + securitySource: security, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, @@ -131,7 +156,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/funcs/githubStorePublishingSecrets.ts b/src/funcs/githubStorePublishingSecrets.ts index dcdd91f3..61b28bc4 100644 --- a/src/funcs/githubStorePublishingSecrets.ts +++ b/src/funcs/githubStorePublishingSecrets.ts @@ -5,11 +5,12 @@ import * as z from "zod/v3"; import { SpeakeasyCore } from "../core.js"; import { encodeJSON } from "../lib/encodings.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { resolveSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -22,12 +23,14 @@ import * as errors from "../sdk/models/errors/index.js"; import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; import { SpeakeasyError } from "../sdk/models/errors/speakeasyerror.js"; +import * as operations from "../sdk/models/operations/index.js"; import * as shared from "../sdk/models/shared/index.js"; import { APICall, APIPromise } from "../sdk/types/async.js"; import { Result } from "../sdk/types/fp.js"; export function githubStorePublishingSecrets( client: SpeakeasyCore, + security: operations.GithubStorePublishingSecretsSecurity, request: shared.GithubStorePublishingSecretsRequest, options?: RequestOptions, ): APIPromise< @@ -46,6 +49,7 @@ export function githubStorePublishingSecrets( > { return new APIPromise($do( client, + security, request, options, )); @@ -53,6 +57,7 @@ export function githubStorePublishingSecrets( async function $do( client: SpeakeasyCore, + security: operations.GithubStorePublishingSecretsSecurity, request: shared.GithubStorePublishingSecretsRequest, options?: RequestOptions, ): Promise< @@ -91,8 +96,29 @@ async function $do( Accept: "application/json", })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); + const requestSecurity = resolveSecurity( + [ + { + fieldName: "x-api-key", + type: "apiKey:header", + value: security?.apiKey, + }, + ], + [ + { + fieldName: "Authorization", + type: "http:bearer", + value: security?.bearer, + }, + ], + [ + { + fieldName: "x-workspace-identifier", + type: "apiKey:header", + value: security?.workspaceIdentifier, + }, + ], + ); const context = { options: client._options, @@ -102,7 +128,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.security, + securitySource: security, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, @@ -126,7 +152,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/funcs/githubTriggerAction.ts b/src/funcs/githubTriggerAction.ts index 75cb793a..f5edc13d 100644 --- a/src/funcs/githubTriggerAction.ts +++ b/src/funcs/githubTriggerAction.ts @@ -5,11 +5,12 @@ import * as z from "zod/v3"; import { SpeakeasyCore } from "../core.js"; import { encodeJSON } from "../lib/encodings.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { resolveSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -22,12 +23,14 @@ import * as errors from "../sdk/models/errors/index.js"; import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; import { SpeakeasyError } from "../sdk/models/errors/speakeasyerror.js"; +import * as operations from "../sdk/models/operations/index.js"; import * as shared from "../sdk/models/shared/index.js"; import { APICall, APIPromise } from "../sdk/types/async.js"; import { Result } from "../sdk/types/fp.js"; export function githubTriggerAction( client: SpeakeasyCore, + security: operations.GithubTriggerActionSecurity, request: shared.GithubTriggerActionRequest, options?: RequestOptions, ): APIPromise< @@ -46,6 +49,7 @@ export function githubTriggerAction( > { return new APIPromise($do( client, + security, request, options, )); @@ -53,6 +57,7 @@ export function githubTriggerAction( async function $do( client: SpeakeasyCore, + security: operations.GithubTriggerActionSecurity, request: shared.GithubTriggerActionRequest, options?: RequestOptions, ): Promise< @@ -90,8 +95,29 @@ async function $do( Accept: "application/json", })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); + const requestSecurity = resolveSecurity( + [ + { + fieldName: "x-api-key", + type: "apiKey:header", + value: security?.apiKey, + }, + ], + [ + { + fieldName: "Authorization", + type: "http:bearer", + value: security?.bearer, + }, + ], + [ + { + fieldName: "x-workspace-identifier", + type: "apiKey:header", + value: security?.workspaceIdentifier, + }, + ], + ); const context = { options: client._options, @@ -101,7 +127,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.security, + securitySource: security, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, @@ -125,7 +151,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/funcs/organizationsActivateLanguage.ts b/src/funcs/organizationsActivateLanguage.ts new file mode 100644 index 00000000..8e05dc5c --- /dev/null +++ b/src/funcs/organizationsActivateLanguage.ts @@ -0,0 +1,202 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { SpeakeasyCore } from "../core.js"; +import { encodeSimple } from "../lib/encodings.js"; +import { matchStatusCode } from "../lib/http.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.js"; +import { safeParse } from "../lib/schemas.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { resolveSecurity } from "../lib/security.js"; +import { pathToFunc } from "../lib/url.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import { SpeakeasyError } from "../sdk/models/errors/speakeasyerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import * as shared from "../sdk/models/shared/index.js"; +import { APICall, APIPromise } from "../sdk/types/async.js"; +import { Result } from "../sdk/types/fp.js"; + +/** + * Activate language + * + * @remarks + * Activates a language for billing. If the language was previously deactivated, + * this will reactivate it. If the language is new, it may require checkout. + */ +export function organizationsActivateLanguage( + client: SpeakeasyCore, + security: operations.ActivateLanguageSecurity, + request: operations.ActivateLanguageRequest, + options?: RequestOptions, +): APIPromise< + Result< + shared.LanguageActivationResponse, + | errors.ErrorT + | SpeakeasyError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + security, + request, + options, + )); +} + +async function $do( + client: SpeakeasyCore, + security: operations.ActivateLanguageSecurity, + request: operations.ActivateLanguageRequest, + options?: RequestOptions, +): Promise< + [ + Result< + shared.LanguageActivationResponse, + | errors.ErrorT + | SpeakeasyError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const parsed = safeParse( + request, + (value) => operations.ActivateLanguageRequest$outboundSchema.parse(value), + "Input validation failed", + ); + if (!parsed.ok) { + return [parsed, { status: "invalid" }]; + } + const payload = parsed.value; + const body = null; + + const pathParams = { + language: encodeSimple("language", payload.language, { + explode: false, + charEncoding: "percent", + }), + }; + const path = pathToFunc("/v1/organization/languages/{language}/activate")( + pathParams, + ); + + const headers = new Headers(compactMap({ + Accept: "application/json", + })); + + const requestSecurity = resolveSecurity( + [ + { + fieldName: "x-api-key", + type: "apiKey:header", + value: security?.apiKey, + }, + ], + [ + { + fieldName: "Authorization", + type: "http:bearer", + value: security?.bearer, + }, + ], + [ + { + fieldName: "x-workspace-identifier", + type: "apiKey:header", + value: security?.workspaceIdentifier, + }, + ], + ); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "activateLanguage", + oAuth2Scopes: null, + + resolvedSecurity: requestSecurity, + + securitySource: security, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + security: requestSecurity, + method: "POST", + baseURL: options?.serverURL, + path: path, + headers: headers, + body: body, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [requestRes, { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const responseFields = { + HttpMeta: { Response: response, Request: req }, + }; + + const [result] = await M.match< + shared.LanguageActivationResponse, + | errors.ErrorT + | SpeakeasyError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.json("2XX", shared.LanguageActivationResponse$inboundSchema), + M.jsonErr("4XX", errors.ErrorT$inboundSchema), + M.fail("5XX"), + )(response, req, { extraFields: responseFields }); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/src/funcs/organizationsCancelSubscription.ts b/src/funcs/organizationsCancelSubscription.ts new file mode 100644 index 00000000..1cab4920 --- /dev/null +++ b/src/funcs/organizationsCancelSubscription.ts @@ -0,0 +1,196 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { SpeakeasyCore } from "../core.js"; +import { encodeJSON } from "../lib/encodings.js"; +import { matchStatusCode } from "../lib/http.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.js"; +import { safeParse } from "../lib/schemas.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { resolveSecurity } from "../lib/security.js"; +import { pathToFunc } from "../lib/url.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import { SpeakeasyError } from "../sdk/models/errors/speakeasyerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import * as shared from "../sdk/models/shared/index.js"; +import { APICall, APIPromise } from "../sdk/types/async.js"; +import { Result } from "../sdk/types/fp.js"; + +/** + * Cancel subscription + * + * @remarks + * Requests cancellation of the organization's self-service business subscription. + * The subscription will be cancelled at the end of the current billing period. + * Specify a target to keep after downgrade to free tier when active targets remain. + */ +export function organizationsCancelSubscription( + client: SpeakeasyCore, + security: operations.CancelSubscriptionSecurity, + request: shared.CancelSubscriptionRequest, + options?: RequestOptions, +): APIPromise< + Result< + shared.CancelSubscriptionResponse, + | errors.ErrorT + | SpeakeasyError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + security, + request, + options, + )); +} + +async function $do( + client: SpeakeasyCore, + security: operations.CancelSubscriptionSecurity, + request: shared.CancelSubscriptionRequest, + options?: RequestOptions, +): Promise< + [ + Result< + shared.CancelSubscriptionResponse, + | errors.ErrorT + | SpeakeasyError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const parsed = safeParse( + request, + (value) => shared.CancelSubscriptionRequest$outboundSchema.parse(value), + "Input validation failed", + ); + if (!parsed.ok) { + return [parsed, { status: "invalid" }]; + } + const payload = parsed.value; + const body = encodeJSON("body", payload, { explode: true }); + + const path = pathToFunc("/v1/organization/billing/subscription/cancel")(); + + const headers = new Headers(compactMap({ + "Content-Type": "application/json", + Accept: "application/json", + })); + + const requestSecurity = resolveSecurity( + [ + { + fieldName: "x-api-key", + type: "apiKey:header", + value: security?.apiKey, + }, + ], + [ + { + fieldName: "Authorization", + type: "http:bearer", + value: security?.bearer, + }, + ], + [ + { + fieldName: "x-workspace-identifier", + type: "apiKey:header", + value: security?.workspaceIdentifier, + }, + ], + ); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "cancelSubscription", + oAuth2Scopes: null, + + resolvedSecurity: requestSecurity, + + securitySource: security, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + security: requestSecurity, + method: "POST", + baseURL: options?.serverURL, + path: path, + headers: headers, + body: body, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [requestRes, { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const responseFields = { + HttpMeta: { Response: response, Request: req }, + }; + + const [result] = await M.match< + shared.CancelSubscriptionResponse, + | errors.ErrorT + | SpeakeasyError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.json("2XX", shared.CancelSubscriptionResponse$inboundSchema), + M.jsonErr("4XX", errors.ErrorT$inboundSchema), + M.fail("5XX"), + )(response, req, { extraFields: responseFields }); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/src/funcs/organizationsCreate.ts b/src/funcs/organizationsCreate.ts index 4cd10c54..6894e0cf 100644 --- a/src/funcs/organizationsCreate.ts +++ b/src/funcs/organizationsCreate.ts @@ -4,11 +4,12 @@ import { SpeakeasyCore } from "../core.js"; import { encodeJSON } from "../lib/encodings.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { resolveSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -21,6 +22,7 @@ import * as errors from "../sdk/models/errors/index.js"; import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; import { SpeakeasyError } from "../sdk/models/errors/speakeasyerror.js"; +import * as operations from "../sdk/models/operations/index.js"; import * as shared from "../sdk/models/shared/index.js"; import { APICall, APIPromise } from "../sdk/types/async.js"; import { Result } from "../sdk/types/fp.js"; @@ -33,6 +35,7 @@ import { Result } from "../sdk/types/fp.js"; */ export function organizationsCreate( client: SpeakeasyCore, + security: operations.CreateOrganizationSecurity, request: shared.Organization, options?: RequestOptions, ): APIPromise< @@ -51,6 +54,7 @@ export function organizationsCreate( > { return new APIPromise($do( client, + security, request, options, )); @@ -58,6 +62,7 @@ export function organizationsCreate( async function $do( client: SpeakeasyCore, + security: operations.CreateOrganizationSecurity, request: shared.Organization, options?: RequestOptions, ): Promise< @@ -95,8 +100,29 @@ async function $do( Accept: "application/json", })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); + const requestSecurity = resolveSecurity( + [ + { + fieldName: "x-api-key", + type: "apiKey:header", + value: security?.apiKey, + }, + ], + [ + { + fieldName: "Authorization", + type: "http:bearer", + value: security?.bearer, + }, + ], + [ + { + fieldName: "x-workspace-identifier", + type: "apiKey:header", + value: security?.workspaceIdentifier, + }, + ], + ); const context = { options: client._options, @@ -106,7 +132,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.security, + securitySource: security, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, @@ -130,7 +156,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/funcs/organizationsCreateBillingAddOns.ts b/src/funcs/organizationsCreateBillingAddOns.ts index 7291a666..5d48c3ce 100644 --- a/src/funcs/organizationsCreateBillingAddOns.ts +++ b/src/funcs/organizationsCreateBillingAddOns.ts @@ -4,11 +4,12 @@ import { SpeakeasyCore } from "../core.js"; import { encodeJSON } from "../lib/encodings.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { resolveSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -21,6 +22,7 @@ import * as errors from "../sdk/models/errors/index.js"; import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; import { SpeakeasyError } from "../sdk/models/errors/speakeasyerror.js"; +import * as operations from "../sdk/models/operations/index.js"; import * as shared from "../sdk/models/shared/index.js"; import { APICall, APIPromise } from "../sdk/types/async.js"; import { Result } from "../sdk/types/fp.js"; @@ -30,6 +32,7 @@ import { Result } from "../sdk/types/fp.js"; */ export function organizationsCreateBillingAddOns( client: SpeakeasyCore, + security: operations.CreateBillingAddOnsSecurity, request: shared.OrganizationBillingAddOnRequest, options?: RequestOptions, ): APIPromise< @@ -48,6 +51,7 @@ export function organizationsCreateBillingAddOns( > { return new APIPromise($do( client, + security, request, options, )); @@ -55,6 +59,7 @@ export function organizationsCreateBillingAddOns( async function $do( client: SpeakeasyCore, + security: operations.CreateBillingAddOnsSecurity, request: shared.OrganizationBillingAddOnRequest, options?: RequestOptions, ): Promise< @@ -93,8 +98,29 @@ async function $do( Accept: "application/json", })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); + const requestSecurity = resolveSecurity( + [ + { + fieldName: "x-api-key", + type: "apiKey:header", + value: security?.apiKey, + }, + ], + [ + { + fieldName: "Authorization", + type: "http:bearer", + value: security?.bearer, + }, + ], + [ + { + fieldName: "x-workspace-identifier", + type: "apiKey:header", + value: security?.workspaceIdentifier, + }, + ], + ); const context = { options: client._options, @@ -104,7 +130,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.security, + securitySource: security, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, @@ -128,7 +154,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/funcs/organizationsCreateFreeTrial.ts b/src/funcs/organizationsCreateFreeTrial.ts index 398decf6..6e4c57e1 100644 --- a/src/funcs/organizationsCreateFreeTrial.ts +++ b/src/funcs/organizationsCreateFreeTrial.ts @@ -4,10 +4,11 @@ import * as z from "zod/v3"; import { SpeakeasyCore } from "../core.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { resolveSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -20,6 +21,7 @@ import * as errors from "../sdk/models/errors/index.js"; import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; import { SpeakeasyError } from "../sdk/models/errors/speakeasyerror.js"; +import * as operations from "../sdk/models/operations/index.js"; import { APICall, APIPromise } from "../sdk/types/async.js"; import { Result } from "../sdk/types/fp.js"; @@ -31,6 +33,7 @@ import { Result } from "../sdk/types/fp.js"; */ export function organizationsCreateFreeTrial( client: SpeakeasyCore, + security: operations.CreateFreeTrialSecurity, options?: RequestOptions, ): APIPromise< Result< @@ -48,12 +51,14 @@ export function organizationsCreateFreeTrial( > { return new APIPromise($do( client, + security, options, )); } async function $do( client: SpeakeasyCore, + security: operations.CreateFreeTrialSecurity, options?: RequestOptions, ): Promise< [ @@ -78,8 +83,29 @@ async function $do( Accept: "application/json", })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); + const requestSecurity = resolveSecurity( + [ + { + fieldName: "x-api-key", + type: "apiKey:header", + value: security?.apiKey, + }, + ], + [ + { + fieldName: "Authorization", + type: "http:bearer", + value: security?.bearer, + }, + ], + [ + { + fieldName: "x-workspace-identifier", + type: "apiKey:header", + value: security?.workspaceIdentifier, + }, + ], + ); const context = { options: client._options, @@ -89,7 +115,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.security, + securitySource: security, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, @@ -112,7 +138,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/funcs/organizationsCreateLanguageCheckoutSession.ts b/src/funcs/organizationsCreateLanguageCheckoutSession.ts new file mode 100644 index 00000000..388b2b7b --- /dev/null +++ b/src/funcs/organizationsCreateLanguageCheckoutSession.ts @@ -0,0 +1,198 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { SpeakeasyCore } from "../core.js"; +import { encodeJSON } from "../lib/encodings.js"; +import { matchStatusCode } from "../lib/http.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.js"; +import { safeParse } from "../lib/schemas.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { resolveSecurity } from "../lib/security.js"; +import { pathToFunc } from "../lib/url.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import { SpeakeasyError } from "../sdk/models/errors/speakeasyerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import * as shared from "../sdk/models/shared/index.js"; +import { APICall, APIPromise } from "../sdk/types/async.js"; +import { Result } from "../sdk/types/fp.js"; + +/** + * Create language checkout session + * + * @remarks + * Creates a Stripe checkout session for per-language billing. + * Used when upgrading to business tier with per-language billing model. + */ +export function organizationsCreateLanguageCheckoutSession( + client: SpeakeasyCore, + security: operations.CreateLanguageCheckoutSessionSecurity, + request: shared.CreateLanguageCheckoutSessionRequest, + options?: RequestOptions, +): APIPromise< + Result< + shared.CreateCheckoutSessionResponse, + | errors.ErrorT + | SpeakeasyError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + security, + request, + options, + )); +} + +async function $do( + client: SpeakeasyCore, + security: operations.CreateLanguageCheckoutSessionSecurity, + request: shared.CreateLanguageCheckoutSessionRequest, + options?: RequestOptions, +): Promise< + [ + Result< + shared.CreateCheckoutSessionResponse, + | errors.ErrorT + | SpeakeasyError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const parsed = safeParse( + request, + (value) => + shared.CreateLanguageCheckoutSessionRequest$outboundSchema.parse(value), + "Input validation failed", + ); + if (!parsed.ok) { + return [parsed, { status: "invalid" }]; + } + const payload = parsed.value; + const body = encodeJSON("body", payload, { explode: true }); + + const path = pathToFunc( + "/v1/organization/billing/create_language_checkout_session", + )(); + + const headers = new Headers(compactMap({ + "Content-Type": "application/json", + Accept: "application/json", + })); + + const requestSecurity = resolveSecurity( + [ + { + fieldName: "x-api-key", + type: "apiKey:header", + value: security?.apiKey, + }, + ], + [ + { + fieldName: "Authorization", + type: "http:bearer", + value: security?.bearer, + }, + ], + [ + { + fieldName: "x-workspace-identifier", + type: "apiKey:header", + value: security?.workspaceIdentifier, + }, + ], + ); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "createLanguageCheckoutSession", + oAuth2Scopes: null, + + resolvedSecurity: requestSecurity, + + securitySource: security, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + security: requestSecurity, + method: "POST", + baseURL: options?.serverURL, + path: path, + headers: headers, + body: body, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [requestRes, { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const responseFields = { + HttpMeta: { Response: response, Request: req }, + }; + + const [result] = await M.match< + shared.CreateCheckoutSessionResponse, + | errors.ErrorT + | SpeakeasyError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.json("2XX", shared.CreateCheckoutSessionResponse$inboundSchema), + M.jsonErr("4XX", errors.ErrorT$inboundSchema), + M.fail("5XX"), + )(response, req, { extraFields: responseFields }); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/src/funcs/organizationsDeactivateLanguage.ts b/src/funcs/organizationsDeactivateLanguage.ts new file mode 100644 index 00000000..3e9afd67 --- /dev/null +++ b/src/funcs/organizationsDeactivateLanguage.ts @@ -0,0 +1,201 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { SpeakeasyCore } from "../core.js"; +import { encodeSimple } from "../lib/encodings.js"; +import { matchStatusCode } from "../lib/http.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.js"; +import { safeParse } from "../lib/schemas.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { resolveSecurity } from "../lib/security.js"; +import { pathToFunc } from "../lib/url.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import { SpeakeasyError } from "../sdk/models/errors/speakeasyerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import * as shared from "../sdk/models/shared/index.js"; +import { APICall, APIPromise } from "../sdk/types/async.js"; +import { Result } from "../sdk/types/fp.js"; + +/** + * Deactivate language + * + * @remarks + * Deactivates a language. Subject to 2-week cooldown between deactivations. + */ +export function organizationsDeactivateLanguage( + client: SpeakeasyCore, + security: operations.DeactivateLanguageSecurity, + request: operations.DeactivateLanguageRequest, + options?: RequestOptions, +): APIPromise< + Result< + shared.LanguageActivationResponse, + | errors.ErrorT + | SpeakeasyError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + security, + request, + options, + )); +} + +async function $do( + client: SpeakeasyCore, + security: operations.DeactivateLanguageSecurity, + request: operations.DeactivateLanguageRequest, + options?: RequestOptions, +): Promise< + [ + Result< + shared.LanguageActivationResponse, + | errors.ErrorT + | SpeakeasyError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const parsed = safeParse( + request, + (value) => operations.DeactivateLanguageRequest$outboundSchema.parse(value), + "Input validation failed", + ); + if (!parsed.ok) { + return [parsed, { status: "invalid" }]; + } + const payload = parsed.value; + const body = null; + + const pathParams = { + language: encodeSimple("language", payload.language, { + explode: false, + charEncoding: "percent", + }), + }; + const path = pathToFunc("/v1/organization/languages/{language}/deactivate")( + pathParams, + ); + + const headers = new Headers(compactMap({ + Accept: "application/json", + })); + + const requestSecurity = resolveSecurity( + [ + { + fieldName: "x-api-key", + type: "apiKey:header", + value: security?.apiKey, + }, + ], + [ + { + fieldName: "Authorization", + type: "http:bearer", + value: security?.bearer, + }, + ], + [ + { + fieldName: "x-workspace-identifier", + type: "apiKey:header", + value: security?.workspaceIdentifier, + }, + ], + ); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "deactivateLanguage", + oAuth2Scopes: null, + + resolvedSecurity: requestSecurity, + + securitySource: security, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + security: requestSecurity, + method: "POST", + baseURL: options?.serverURL, + path: path, + headers: headers, + body: body, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [requestRes, { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const responseFields = { + HttpMeta: { Response: response, Request: req }, + }; + + const [result] = await M.match< + shared.LanguageActivationResponse, + | errors.ErrorT + | SpeakeasyError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.json("2XX", shared.LanguageActivationResponse$inboundSchema), + M.jsonErr("4XX", errors.ErrorT$inboundSchema), + M.fail("5XX"), + )(response, req, { extraFields: responseFields }); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/src/funcs/organizationsDeleteBillingAddOn.ts b/src/funcs/organizationsDeleteBillingAddOn.ts index a02bb411..5dc1cfdd 100644 --- a/src/funcs/organizationsDeleteBillingAddOn.ts +++ b/src/funcs/organizationsDeleteBillingAddOn.ts @@ -5,11 +5,12 @@ import * as z from "zod/v3"; import { SpeakeasyCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { resolveSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -31,6 +32,7 @@ import { Result } from "../sdk/types/fp.js"; */ export function organizationsDeleteBillingAddOn( client: SpeakeasyCore, + security: operations.DeleteBillingAddOnSecurity, request: operations.DeleteBillingAddOnRequest, options?: RequestOptions, ): APIPromise< @@ -49,6 +51,7 @@ export function organizationsDeleteBillingAddOn( > { return new APIPromise($do( client, + security, request, options, )); @@ -56,6 +59,7 @@ export function organizationsDeleteBillingAddOn( async function $do( client: SpeakeasyCore, + security: operations.DeleteBillingAddOnSecurity, request: operations.DeleteBillingAddOnRequest, options?: RequestOptions, ): Promise< @@ -92,15 +96,35 @@ async function $do( charEncoding: "percent", }), }; - const path = pathToFunc("/v1/organization/add_ons/{add_on}")(pathParams); const headers = new Headers(compactMap({ Accept: "application/json", })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); + const requestSecurity = resolveSecurity( + [ + { + fieldName: "x-api-key", + type: "apiKey:header", + value: security?.apiKey, + }, + ], + [ + { + fieldName: "Authorization", + type: "http:bearer", + value: security?.bearer, + }, + ], + [ + { + fieldName: "x-workspace-identifier", + type: "apiKey:header", + value: security?.workspaceIdentifier, + }, + ], + ); const context = { options: client._options, @@ -110,7 +134,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.security, + securitySource: security, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, @@ -134,7 +158,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/funcs/organizationsGet.ts b/src/funcs/organizationsGet.ts index 83b8c94b..9ebd7b36 100644 --- a/src/funcs/organizationsGet.ts +++ b/src/funcs/organizationsGet.ts @@ -4,11 +4,12 @@ import { SpeakeasyCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { resolveSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -34,6 +35,7 @@ import { Result } from "../sdk/types/fp.js"; */ export function organizationsGet( client: SpeakeasyCore, + security: operations.GetOrganizationSecurity, request: operations.GetOrganizationRequest, options?: RequestOptions, ): APIPromise< @@ -52,6 +54,7 @@ export function organizationsGet( > { return new APIPromise($do( client, + security, request, options, )); @@ -59,6 +62,7 @@ export function organizationsGet( async function $do( client: SpeakeasyCore, + security: operations.GetOrganizationSecurity, request: operations.GetOrganizationRequest, options?: RequestOptions, ): Promise< @@ -95,15 +99,35 @@ async function $do( charEncoding: "percent", }), }; - const path = pathToFunc("/v1/organization/{organizationID}")(pathParams); const headers = new Headers(compactMap({ Accept: "application/json", })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); + const requestSecurity = resolveSecurity( + [ + { + fieldName: "x-api-key", + type: "apiKey:header", + value: security?.apiKey, + }, + ], + [ + { + fieldName: "Authorization", + type: "http:bearer", + value: security?.bearer, + }, + ], + [ + { + fieldName: "x-workspace-identifier", + type: "apiKey:header", + value: security?.workspaceIdentifier, + }, + ], + ); const context = { options: client._options, @@ -113,7 +137,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.security, + securitySource: security, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, @@ -137,7 +161,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/funcs/organizationsGetAll.ts b/src/funcs/organizationsGetAll.ts index e4761da2..7db61dc8 100644 --- a/src/funcs/organizationsGetAll.ts +++ b/src/funcs/organizationsGetAll.ts @@ -4,10 +4,11 @@ import * as z from "zod/v3"; import { SpeakeasyCore } from "../core.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { resolveSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -20,6 +21,7 @@ import * as errors from "../sdk/models/errors/index.js"; import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; import { SpeakeasyError } from "../sdk/models/errors/speakeasyerror.js"; +import * as operations from "../sdk/models/operations/index.js"; import * as shared from "../sdk/models/shared/index.js"; import { APICall, APIPromise } from "../sdk/types/async.js"; import { Result } from "../sdk/types/fp.js"; @@ -32,6 +34,7 @@ import { Result } from "../sdk/types/fp.js"; */ export function organizationsGetAll( client: SpeakeasyCore, + security: operations.GetOrganizationsSecurity, options?: RequestOptions, ): APIPromise< Result< @@ -49,12 +52,14 @@ export function organizationsGetAll( > { return new APIPromise($do( client, + security, options, )); } async function $do( client: SpeakeasyCore, + security: operations.GetOrganizationsSecurity, options?: RequestOptions, ): Promise< [ @@ -79,8 +84,29 @@ async function $do( Accept: "application/json", })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); + const requestSecurity = resolveSecurity( + [ + { + fieldName: "x-api-key", + type: "apiKey:header", + value: security?.apiKey, + }, + ], + [ + { + fieldName: "Authorization", + type: "http:bearer", + value: security?.bearer, + }, + ], + [ + { + fieldName: "x-workspace-identifier", + type: "apiKey:header", + value: security?.workspaceIdentifier, + }, + ], + ); const context = { options: client._options, @@ -90,7 +116,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.security, + securitySource: security, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, @@ -113,7 +139,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/funcs/organizationsGetBillingAddOns.ts b/src/funcs/organizationsGetBillingAddOns.ts index d90fdf5b..8ad6b878 100644 --- a/src/funcs/organizationsGetBillingAddOns.ts +++ b/src/funcs/organizationsGetBillingAddOns.ts @@ -3,10 +3,11 @@ */ import { SpeakeasyCore } from "../core.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { resolveSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -19,6 +20,7 @@ import * as errors from "../sdk/models/errors/index.js"; import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; import { SpeakeasyError } from "../sdk/models/errors/speakeasyerror.js"; +import * as operations from "../sdk/models/operations/index.js"; import * as shared from "../sdk/models/shared/index.js"; import { APICall, APIPromise } from "../sdk/types/async.js"; import { Result } from "../sdk/types/fp.js"; @@ -28,6 +30,7 @@ import { Result } from "../sdk/types/fp.js"; */ export function organizationsGetBillingAddOns( client: SpeakeasyCore, + security: operations.GetBillingAddOnsSecurity, options?: RequestOptions, ): APIPromise< Result< @@ -45,12 +48,14 @@ export function organizationsGetBillingAddOns( > { return new APIPromise($do( client, + security, options, )); } async function $do( client: SpeakeasyCore, + security: operations.GetBillingAddOnsSecurity, options?: RequestOptions, ): Promise< [ @@ -75,8 +80,29 @@ async function $do( Accept: "application/json", })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); + const requestSecurity = resolveSecurity( + [ + { + fieldName: "x-api-key", + type: "apiKey:header", + value: security?.apiKey, + }, + ], + [ + { + fieldName: "Authorization", + type: "http:bearer", + value: security?.bearer, + }, + ], + [ + { + fieldName: "x-workspace-identifier", + type: "apiKey:header", + value: security?.workspaceIdentifier, + }, + ], + ); const context = { options: client._options, @@ -86,7 +112,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.security, + securitySource: security, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, @@ -109,7 +135,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/funcs/organizationsGetBillingEmail.ts b/src/funcs/organizationsGetBillingEmail.ts new file mode 100644 index 00000000..7f0013da --- /dev/null +++ b/src/funcs/organizationsGetBillingEmail.ts @@ -0,0 +1,176 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { SpeakeasyCore } from "../core.js"; +import { matchStatusCode } from "../lib/http.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { resolveSecurity } from "../lib/security.js"; +import { pathToFunc } from "../lib/url.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import { SpeakeasyError } from "../sdk/models/errors/speakeasyerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import * as shared from "../sdk/models/shared/index.js"; +import { APICall, APIPromise } from "../sdk/types/async.js"; +import { Result } from "../sdk/types/fp.js"; + +/** + * Get billing email for an organization + * + * @remarks + * Returns the billing email and Stripe customer status for the current organization + */ +export function organizationsGetBillingEmail( + client: SpeakeasyCore, + security: operations.GetBillingEmailSecurity, + options?: RequestOptions, +): APIPromise< + Result< + shared.BillingEmailResponse, + | errors.ErrorT + | SpeakeasyError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + security, + options, + )); +} + +async function $do( + client: SpeakeasyCore, + security: operations.GetBillingEmailSecurity, + options?: RequestOptions, +): Promise< + [ + Result< + shared.BillingEmailResponse, + | errors.ErrorT + | SpeakeasyError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const path = pathToFunc("/v1/organization/billing_email")(); + + const headers = new Headers(compactMap({ + Accept: "application/json", + })); + + const requestSecurity = resolveSecurity( + [ + { + fieldName: "x-api-key", + type: "apiKey:header", + value: security?.apiKey, + }, + ], + [ + { + fieldName: "Authorization", + type: "http:bearer", + value: security?.bearer, + }, + ], + [ + { + fieldName: "x-workspace-identifier", + type: "apiKey:header", + value: security?.workspaceIdentifier, + }, + ], + ); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "getBillingEmail", + oAuth2Scopes: null, + + resolvedSecurity: requestSecurity, + + securitySource: security, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + security: requestSecurity, + method: "GET", + baseURL: options?.serverURL, + path: path, + headers: headers, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [requestRes, { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const responseFields = { + HttpMeta: { Response: response, Request: req }, + }; + + const [result] = await M.match< + shared.BillingEmailResponse, + | errors.ErrorT + | SpeakeasyError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.json("2XX", shared.BillingEmailResponse$inboundSchema), + M.jsonErr("4XX", errors.ErrorT$inboundSchema), + M.fail("5XX"), + )(response, req, { extraFields: responseFields }); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/src/funcs/organizationsGetBillingOperations.ts b/src/funcs/organizationsGetBillingOperations.ts index d810790b..b8ed9524 100644 --- a/src/funcs/organizationsGetBillingOperations.ts +++ b/src/funcs/organizationsGetBillingOperations.ts @@ -3,12 +3,11 @@ */ import { SpeakeasyCore } from "../core.js"; -import { encodeFormQuery } from "../lib/encodings.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; -import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { resolveSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -30,12 +29,13 @@ import { Result } from "../sdk/types/fp.js"; * Get billing operations breakdown for an organization * * @remarks - * Returns a breakdown of billing operations by spec and target for an organization. - * The billing formula is: Total = sum(operationIds per spec x targets per spec) + * Returns a breakdown of billing operations by language and generated SDK target + * for an organization. Each language row is sourced from generation events, + * and target rows optionally include the source spec namespace when available. */ export function organizationsGetBillingOperations( client: SpeakeasyCore, - request: operations.GetBillingOperationsRequest, + security: operations.GetBillingOperationsSecurity, options?: RequestOptions, ): APIPromise< Result< @@ -53,14 +53,14 @@ export function organizationsGetBillingOperations( > { return new APIPromise($do( client, - request, + security, options, )); } async function $do( client: SpeakeasyCore, - request: operations.GetBillingOperationsRequest, + security: operations.GetBillingOperationsSecurity, options?: RequestOptions, ): Promise< [ @@ -79,30 +79,35 @@ async function $do( APICall, ] > { - const parsed = safeParse( - request, - (value) => - operations.GetBillingOperationsRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [parsed, { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - const path = pathToFunc("/v1/organization/billing_operations")(); - const query = encodeFormQuery({ - "include_operation_ids": payload.include_operation_ids, - }); - const headers = new Headers(compactMap({ Accept: "application/json", })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); + const requestSecurity = resolveSecurity( + [ + { + fieldName: "x-api-key", + type: "apiKey:header", + value: security?.apiKey, + }, + ], + [ + { + fieldName: "Authorization", + type: "http:bearer", + value: security?.bearer, + }, + ], + [ + { + fieldName: "x-workspace-identifier", + type: "apiKey:header", + value: security?.workspaceIdentifier, + }, + ], + ); const context = { options: client._options, @@ -112,7 +117,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.security, + securitySource: security, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, @@ -125,8 +130,6 @@ async function $do( baseURL: options?.serverURL, path: path, headers: headers, - query: query, - body: body, userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); @@ -137,7 +140,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/funcs/organizationsGetBusinessTierPrices.ts b/src/funcs/organizationsGetBusinessTierPrices.ts new file mode 100644 index 00000000..07ed0dec --- /dev/null +++ b/src/funcs/organizationsGetBusinessTierPrices.ts @@ -0,0 +1,176 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { SpeakeasyCore } from "../core.js"; +import { matchStatusCode } from "../lib/http.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { resolveSecurity } from "../lib/security.js"; +import { pathToFunc } from "../lib/url.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import { SpeakeasyError } from "../sdk/models/errors/speakeasyerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import * as shared from "../sdk/models/shared/index.js"; +import { APICall, APIPromise } from "../sdk/types/async.js"; +import { Result } from "../sdk/types/fp.js"; + +/** + * Get business tier prices + * + * @remarks + * Returns both monthly and annual business tier prices from Stripe + */ +export function organizationsGetBusinessTierPrices( + client: SpeakeasyCore, + security: operations.GetBusinessTierPricesSecurity, + options?: RequestOptions, +): APIPromise< + Result< + shared.BusinessTierPricesResponse, + | errors.ErrorT + | SpeakeasyError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + security, + options, + )); +} + +async function $do( + client: SpeakeasyCore, + security: operations.GetBusinessTierPricesSecurity, + options?: RequestOptions, +): Promise< + [ + Result< + shared.BusinessTierPricesResponse, + | errors.ErrorT + | SpeakeasyError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const path = pathToFunc("/v1/organization/billing/business_tier_prices")(); + + const headers = new Headers(compactMap({ + Accept: "application/json", + })); + + const requestSecurity = resolveSecurity( + [ + { + fieldName: "x-api-key", + type: "apiKey:header", + value: security?.apiKey, + }, + ], + [ + { + fieldName: "Authorization", + type: "http:bearer", + value: security?.bearer, + }, + ], + [ + { + fieldName: "x-workspace-identifier", + type: "apiKey:header", + value: security?.workspaceIdentifier, + }, + ], + ); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "getBusinessTierPrices", + oAuth2Scopes: null, + + resolvedSecurity: requestSecurity, + + securitySource: security, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + security: requestSecurity, + method: "GET", + baseURL: options?.serverURL, + path: path, + headers: headers, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [requestRes, { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const responseFields = { + HttpMeta: { Response: response, Request: req }, + }; + + const [result] = await M.match< + shared.BusinessTierPricesResponse, + | errors.ErrorT + | SpeakeasyError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.json("2XX", shared.BusinessTierPricesResponse$inboundSchema), + M.jsonErr("4XX", errors.ErrorT$inboundSchema), + M.fail("5XX"), + )(response, req, { extraFields: responseFields }); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/src/funcs/organizationsGetLanguages.ts b/src/funcs/organizationsGetLanguages.ts new file mode 100644 index 00000000..d2f42755 --- /dev/null +++ b/src/funcs/organizationsGetLanguages.ts @@ -0,0 +1,177 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { SpeakeasyCore } from "../core.js"; +import { matchStatusCode } from "../lib/http.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { resolveSecurity } from "../lib/security.js"; +import { pathToFunc } from "../lib/url.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import { SpeakeasyError } from "../sdk/models/errors/speakeasyerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import * as shared from "../sdk/models/shared/index.js"; +import { APICall, APIPromise } from "../sdk/types/async.js"; +import { Result } from "../sdk/types/fp.js"; + +/** + * Get language billing configurations + * + * @remarks + * Returns all language billing configurations for the organization. + * Only returns languages with self-serve billing configured. + */ +export function organizationsGetLanguages( + client: SpeakeasyCore, + security: operations.GetLanguagesSecurity, + options?: RequestOptions, +): APIPromise< + Result< + shared.GetLanguagesResponse, + | errors.ErrorT + | SpeakeasyError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + security, + options, + )); +} + +async function $do( + client: SpeakeasyCore, + security: operations.GetLanguagesSecurity, + options?: RequestOptions, +): Promise< + [ + Result< + shared.GetLanguagesResponse, + | errors.ErrorT + | SpeakeasyError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const path = pathToFunc("/v1/organization/languages")(); + + const headers = new Headers(compactMap({ + Accept: "application/json", + })); + + const requestSecurity = resolveSecurity( + [ + { + fieldName: "x-api-key", + type: "apiKey:header", + value: security?.apiKey, + }, + ], + [ + { + fieldName: "Authorization", + type: "http:bearer", + value: security?.bearer, + }, + ], + [ + { + fieldName: "x-workspace-identifier", + type: "apiKey:header", + value: security?.workspaceIdentifier, + }, + ], + ); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "getLanguages", + oAuth2Scopes: null, + + resolvedSecurity: requestSecurity, + + securitySource: security, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + security: requestSecurity, + method: "GET", + baseURL: options?.serverURL, + path: path, + headers: headers, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [requestRes, { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const responseFields = { + HttpMeta: { Response: response, Request: req }, + }; + + const [result] = await M.match< + shared.GetLanguagesResponse, + | errors.ErrorT + | SpeakeasyError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.json("2XX", shared.GetLanguagesResponse$inboundSchema), + M.jsonErr("4XX", errors.ErrorT$inboundSchema), + M.fail("5XX"), + )(response, req, { extraFields: responseFields }); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/src/funcs/organizationsGetSubscription.ts b/src/funcs/organizationsGetSubscription.ts new file mode 100644 index 00000000..cf250005 --- /dev/null +++ b/src/funcs/organizationsGetSubscription.ts @@ -0,0 +1,176 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { SpeakeasyCore } from "../core.js"; +import { matchStatusCode } from "../lib/http.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { resolveSecurity } from "../lib/security.js"; +import { pathToFunc } from "../lib/url.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import { SpeakeasyError } from "../sdk/models/errors/speakeasyerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import * as shared from "../sdk/models/shared/index.js"; +import { APICall, APIPromise } from "../sdk/types/async.js"; +import { Result } from "../sdk/types/fp.js"; + +/** + * Get organization subscription + * + * @remarks + * Returns the subscription status for the current organization + */ +export function organizationsGetSubscription( + client: SpeakeasyCore, + security: operations.GetOrganizationSubscriptionSecurity, + options?: RequestOptions, +): APIPromise< + Result< + shared.OrganizationSubscriptionResponse, + | errors.ErrorT + | SpeakeasyError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + security, + options, + )); +} + +async function $do( + client: SpeakeasyCore, + security: operations.GetOrganizationSubscriptionSecurity, + options?: RequestOptions, +): Promise< + [ + Result< + shared.OrganizationSubscriptionResponse, + | errors.ErrorT + | SpeakeasyError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const path = pathToFunc("/v1/organization/billing/subscription")(); + + const headers = new Headers(compactMap({ + Accept: "application/json", + })); + + const requestSecurity = resolveSecurity( + [ + { + fieldName: "x-api-key", + type: "apiKey:header", + value: security?.apiKey, + }, + ], + [ + { + fieldName: "Authorization", + type: "http:bearer", + value: security?.bearer, + }, + ], + [ + { + fieldName: "x-workspace-identifier", + type: "apiKey:header", + value: security?.workspaceIdentifier, + }, + ], + ); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "getOrganizationSubscription", + oAuth2Scopes: null, + + resolvedSecurity: requestSecurity, + + securitySource: security, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + security: requestSecurity, + method: "GET", + baseURL: options?.serverURL, + path: path, + headers: headers, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [requestRes, { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const responseFields = { + HttpMeta: { Response: response, Request: req }, + }; + + const [result] = await M.match< + shared.OrganizationSubscriptionResponse, + | errors.ErrorT + | SpeakeasyError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.json("2XX", shared.OrganizationSubscriptionResponse$inboundSchema), + M.jsonErr("4XX", errors.ErrorT$inboundSchema), + M.fail("5XX"), + )(response, req, { extraFields: responseFields }); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/src/funcs/organizationsGetTrialTargets.ts b/src/funcs/organizationsGetTrialTargets.ts new file mode 100644 index 00000000..75ba7bb7 --- /dev/null +++ b/src/funcs/organizationsGetTrialTargets.ts @@ -0,0 +1,178 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { SpeakeasyCore } from "../core.js"; +import { matchStatusCode } from "../lib/http.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { resolveSecurity } from "../lib/security.js"; +import { pathToFunc } from "../lib/url.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import { SpeakeasyError } from "../sdk/models/errors/speakeasyerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import * as shared from "../sdk/models/shared/index.js"; +import { APICall, APIPromise } from "../sdk/types/async.js"; +import { Result } from "../sdk/types/fp.js"; + +/** + * Get trial targets + * + * @remarks + * Returns the list of target languages with available and used trials for the organization. + * Available trials are languages that have not yet been trialed. + * Used trials are languages that have already been trialed. + */ +export function organizationsGetTrialTargets( + client: SpeakeasyCore, + security: operations.GetTrialTargetsSecurity, + options?: RequestOptions, +): APIPromise< + Result< + shared.TrialTargetsResponse, + | errors.ErrorT + | SpeakeasyError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + security, + options, + )); +} + +async function $do( + client: SpeakeasyCore, + security: operations.GetTrialTargetsSecurity, + options?: RequestOptions, +): Promise< + [ + Result< + shared.TrialTargetsResponse, + | errors.ErrorT + | SpeakeasyError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const path = pathToFunc("/v1/organization/billing/trial_targets")(); + + const headers = new Headers(compactMap({ + Accept: "application/json", + })); + + const requestSecurity = resolveSecurity( + [ + { + fieldName: "x-api-key", + type: "apiKey:header", + value: security?.apiKey, + }, + ], + [ + { + fieldName: "Authorization", + type: "http:bearer", + value: security?.bearer, + }, + ], + [ + { + fieldName: "x-workspace-identifier", + type: "apiKey:header", + value: security?.workspaceIdentifier, + }, + ], + ); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "getTrialTargets", + oAuth2Scopes: null, + + resolvedSecurity: requestSecurity, + + securitySource: security, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + security: requestSecurity, + method: "GET", + baseURL: options?.serverURL, + path: path, + headers: headers, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [requestRes, { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const responseFields = { + HttpMeta: { Response: response, Request: req }, + }; + + const [result] = await M.match< + shared.TrialTargetsResponse, + | errors.ErrorT + | SpeakeasyError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.json("2XX", shared.TrialTargetsResponse$inboundSchema), + M.jsonErr("4XX", errors.ErrorT$inboundSchema), + M.fail("5XX"), + )(response, req, { extraFields: responseFields }); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/src/funcs/organizationsGetUsage.ts b/src/funcs/organizationsGetUsage.ts index 14a73c38..da6d8672 100644 --- a/src/funcs/organizationsGetUsage.ts +++ b/src/funcs/organizationsGetUsage.ts @@ -3,10 +3,11 @@ */ import { SpeakeasyCore } from "../core.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { resolveSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -19,6 +20,7 @@ import * as errors from "../sdk/models/errors/index.js"; import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; import { SpeakeasyError } from "../sdk/models/errors/speakeasyerror.js"; +import * as operations from "../sdk/models/operations/index.js"; import * as shared from "../sdk/models/shared/index.js"; import { APICall, APIPromise } from "../sdk/types/async.js"; import { Result } from "../sdk/types/fp.js"; @@ -31,6 +33,7 @@ import { Result } from "../sdk/types/fp.js"; */ export function organizationsGetUsage( client: SpeakeasyCore, + security: operations.GetOrganizationUsageSecurity, options?: RequestOptions, ): APIPromise< Result< @@ -48,12 +51,14 @@ export function organizationsGetUsage( > { return new APIPromise($do( client, + security, options, )); } async function $do( client: SpeakeasyCore, + security: operations.GetOrganizationUsageSecurity, options?: RequestOptions, ): Promise< [ @@ -78,8 +83,29 @@ async function $do( Accept: "application/json", })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); + const requestSecurity = resolveSecurity( + [ + { + fieldName: "x-api-key", + type: "apiKey:header", + value: security?.apiKey, + }, + ], + [ + { + fieldName: "Authorization", + type: "http:bearer", + value: security?.bearer, + }, + ], + [ + { + fieldName: "x-workspace-identifier", + type: "apiKey:header", + value: security?.workspaceIdentifier, + }, + ], + ); const context = { options: client._options, @@ -89,7 +115,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.security, + securitySource: security, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, @@ -112,7 +138,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/funcs/organizationsHandleCheckoutCallback.ts b/src/funcs/organizationsHandleCheckoutCallback.ts new file mode 100644 index 00000000..f826dd9f --- /dev/null +++ b/src/funcs/organizationsHandleCheckoutCallback.ts @@ -0,0 +1,175 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { SpeakeasyCore } from "../core.js"; +import { encodeFormQuery } from "../lib/encodings.js"; +import { matchStatusCode } from "../lib/http.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.js"; +import { safeParse } from "../lib/schemas.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { pathToFunc } from "../lib/url.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import { SpeakeasyError } from "../sdk/models/errors/speakeasyerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { APICall, APIPromise } from "../sdk/types/async.js"; +import { Result } from "../sdk/types/fp.js"; + +/** + * Checkout callback + * + * @remarks + * Handles the Stripe checkout success callback. This endpoint is called by Stripe + * after a successful checkout, runs reconciliation (idempotent), and redirects + * to the original client success URL stored in session metadata. + */ +export function organizationsHandleCheckoutCallback( + client: SpeakeasyCore, + request: operations.HandleCheckoutCallbackRequest, + options?: RequestOptions, +): APIPromise< + Result< + operations.HandleCheckoutCallbackResponse | undefined, + | errors.ErrorT + | SpeakeasyError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + request, + options, + )); +} + +async function $do( + client: SpeakeasyCore, + request: operations.HandleCheckoutCallbackRequest, + options?: RequestOptions, +): Promise< + [ + Result< + operations.HandleCheckoutCallbackResponse | undefined, + | errors.ErrorT + | SpeakeasyError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const parsed = safeParse( + request, + (value) => + operations.HandleCheckoutCallbackRequest$outboundSchema.parse(value), + "Input validation failed", + ); + if (!parsed.ok) { + return [parsed, { status: "invalid" }]; + } + const payload = parsed.value; + const body = null; + + const path = pathToFunc("/v1/billing/checkout/callback")(); + + const query = encodeFormQuery({ + "session_id": payload.session_id, + }); + + const headers = new Headers(compactMap({ + Accept: "application/json", + })); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "handleCheckoutCallback", + oAuth2Scopes: null, + + resolvedSecurity: null, + + securitySource: null, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + method: "GET", + baseURL: options?.serverURL, + path: path, + headers: headers, + query: query, + body: body, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [requestRes, { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const responseFields = { + HttpMeta: { Response: response, Request: req }, + }; + + const [result] = await M.match< + operations.HandleCheckoutCallbackResponse | undefined, + | errors.ErrorT + | SpeakeasyError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.nil( + 303, + operations.HandleCheckoutCallbackResponse$inboundSchema.optional(), + { hdrs: true }, + ), + M.jsonErr("4XX", errors.ErrorT$inboundSchema), + M.fail("5XX"), + )(response, req, { extraFields: responseFields }); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/src/funcs/organizationsRevertSubscriptionCancellation.ts b/src/funcs/organizationsRevertSubscriptionCancellation.ts new file mode 100644 index 00000000..042ee691 --- /dev/null +++ b/src/funcs/organizationsRevertSubscriptionCancellation.ts @@ -0,0 +1,179 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { SpeakeasyCore } from "../core.js"; +import { matchStatusCode } from "../lib/http.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { resolveSecurity } from "../lib/security.js"; +import { pathToFunc } from "../lib/url.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import { SpeakeasyError } from "../sdk/models/errors/speakeasyerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import * as shared from "../sdk/models/shared/index.js"; +import { APICall, APIPromise } from "../sdk/types/async.js"; +import { Result } from "../sdk/types/fp.js"; + +/** + * Revert subscription cancellation + * + * @remarks + * Reverts a pending subscription cancellation. + * The subscription will continue to renew automatically. + */ +export function organizationsRevertSubscriptionCancellation( + client: SpeakeasyCore, + security: operations.RevertSubscriptionCancellationSecurity, + options?: RequestOptions, +): APIPromise< + Result< + shared.CancelSubscriptionResponse, + | errors.ErrorT + | SpeakeasyError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + security, + options, + )); +} + +async function $do( + client: SpeakeasyCore, + security: operations.RevertSubscriptionCancellationSecurity, + options?: RequestOptions, +): Promise< + [ + Result< + shared.CancelSubscriptionResponse, + | errors.ErrorT + | SpeakeasyError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const path = pathToFunc( + "/v1/organization/billing/subscription/cancel/revert", + )(); + + const headers = new Headers(compactMap({ + Accept: "application/json", + })); + + const requestSecurity = resolveSecurity( + [ + { + fieldName: "x-api-key", + type: "apiKey:header", + value: security?.apiKey, + }, + ], + [ + { + fieldName: "Authorization", + type: "http:bearer", + value: security?.bearer, + }, + ], + [ + { + fieldName: "x-workspace-identifier", + type: "apiKey:header", + value: security?.workspaceIdentifier, + }, + ], + ); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "revertSubscriptionCancellation", + oAuth2Scopes: null, + + resolvedSecurity: requestSecurity, + + securitySource: security, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + security: requestSecurity, + method: "POST", + baseURL: options?.serverURL, + path: path, + headers: headers, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [requestRes, { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const responseFields = { + HttpMeta: { Response: response, Request: req }, + }; + + const [result] = await M.match< + shared.CancelSubscriptionResponse, + | errors.ErrorT + | SpeakeasyError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.json("2XX", shared.CancelSubscriptionResponse$inboundSchema), + M.jsonErr("4XX", errors.ErrorT$inboundSchema), + M.fail("5XX"), + )(response, req, { extraFields: responseFields }); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/src/funcs/organizationsUpsertBillingEmail.ts b/src/funcs/organizationsUpsertBillingEmail.ts new file mode 100644 index 00000000..d9539a50 --- /dev/null +++ b/src/funcs/organizationsUpsertBillingEmail.ts @@ -0,0 +1,194 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { SpeakeasyCore } from "../core.js"; +import { encodeJSON } from "../lib/encodings.js"; +import { matchStatusCode } from "../lib/http.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.js"; +import { safeParse } from "../lib/schemas.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { resolveSecurity } from "../lib/security.js"; +import { pathToFunc } from "../lib/url.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import { SpeakeasyError } from "../sdk/models/errors/speakeasyerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import * as shared from "../sdk/models/shared/index.js"; +import { APICall, APIPromise } from "../sdk/types/async.js"; +import { Result } from "../sdk/types/fp.js"; + +/** + * Create or update billing email + * + * @remarks + * Creates a Stripe customer if one does not exist, or updates the billing email for an existing Stripe customer + */ +export function organizationsUpsertBillingEmail( + client: SpeakeasyCore, + security: operations.UpsertBillingEmailSecurity, + request: shared.BillingEmailRequest, + options?: RequestOptions, +): APIPromise< + Result< + shared.BillingEmailResponse, + | errors.ErrorT + | SpeakeasyError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + security, + request, + options, + )); +} + +async function $do( + client: SpeakeasyCore, + security: operations.UpsertBillingEmailSecurity, + request: shared.BillingEmailRequest, + options?: RequestOptions, +): Promise< + [ + Result< + shared.BillingEmailResponse, + | errors.ErrorT + | SpeakeasyError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const parsed = safeParse( + request, + (value) => shared.BillingEmailRequest$outboundSchema.parse(value), + "Input validation failed", + ); + if (!parsed.ok) { + return [parsed, { status: "invalid" }]; + } + const payload = parsed.value; + const body = encodeJSON("body", payload, { explode: true }); + + const path = pathToFunc("/v1/organization/billing_email")(); + + const headers = new Headers(compactMap({ + "Content-Type": "application/json", + Accept: "application/json", + })); + + const requestSecurity = resolveSecurity( + [ + { + fieldName: "x-api-key", + type: "apiKey:header", + value: security?.apiKey, + }, + ], + [ + { + fieldName: "Authorization", + type: "http:bearer", + value: security?.bearer, + }, + ], + [ + { + fieldName: "x-workspace-identifier", + type: "apiKey:header", + value: security?.workspaceIdentifier, + }, + ], + ); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "upsertBillingEmail", + oAuth2Scopes: null, + + resolvedSecurity: requestSecurity, + + securitySource: security, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + security: requestSecurity, + method: "POST", + baseURL: options?.serverURL, + path: path, + headers: headers, + body: body, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [requestRes, { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const responseFields = { + HttpMeta: { Response: response, Request: req }, + }; + + const [result] = await M.match< + shared.BillingEmailResponse, + | errors.ErrorT + | SpeakeasyError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.json("2XX", shared.BillingEmailResponse$inboundSchema), + M.jsonErr("4XX", errors.ErrorT$inboundSchema), + M.fail("5XX"), + )(response, req, { extraFields: responseFields }); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/src/funcs/publishingTokensCreate.ts b/src/funcs/publishingTokensCreate.ts index e441329a..327d74e4 100644 --- a/src/funcs/publishingTokensCreate.ts +++ b/src/funcs/publishingTokensCreate.ts @@ -4,11 +4,12 @@ import { SpeakeasyCore } from "../core.js"; import { encodeJSON } from "../lib/encodings.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { resolveSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -34,6 +35,7 @@ import { Result } from "../sdk/types/fp.js"; */ export function publishingTokensCreate( client: SpeakeasyCore, + security: operations.CreatePublishingTokenSecurity, request?: operations.CreatePublishingTokenRequestBody | undefined, options?: RequestOptions, ): APIPromise< @@ -52,6 +54,7 @@ export function publishingTokensCreate( > { return new APIPromise($do( client, + security, request, options, )); @@ -59,6 +62,7 @@ export function publishingTokensCreate( async function $do( client: SpeakeasyCore, + security: operations.CreatePublishingTokenSecurity, request?: operations.CreatePublishingTokenRequestBody | undefined, options?: RequestOptions, ): Promise< @@ -100,8 +104,29 @@ async function $do( Accept: "application/json", })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); + const requestSecurity = resolveSecurity( + [ + { + fieldName: "x-api-key", + type: "apiKey:header", + value: security?.apiKey, + }, + ], + [ + { + fieldName: "Authorization", + type: "http:bearer", + value: security?.bearer, + }, + ], + [ + { + fieldName: "x-workspace-identifier", + type: "apiKey:header", + value: security?.workspaceIdentifier, + }, + ], + ); const context = { options: client._options, @@ -111,7 +136,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.security, + securitySource: security, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, @@ -135,7 +160,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/funcs/publishingTokensDelete.ts b/src/funcs/publishingTokensDelete.ts index 17c0f02e..98de5162 100644 --- a/src/funcs/publishingTokensDelete.ts +++ b/src/funcs/publishingTokensDelete.ts @@ -5,11 +5,12 @@ import * as z from "zod/v3"; import { SpeakeasyCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { resolveSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -34,6 +35,7 @@ import { Result } from "../sdk/types/fp.js"; */ export function publishingTokensDelete( client: SpeakeasyCore, + security: operations.DeletePublishingTokenSecurity, request: operations.DeletePublishingTokenRequest, options?: RequestOptions, ): APIPromise< @@ -52,6 +54,7 @@ export function publishingTokensDelete( > { return new APIPromise($do( client, + security, request, options, )); @@ -59,6 +62,7 @@ export function publishingTokensDelete( async function $do( client: SpeakeasyCore, + security: operations.DeletePublishingTokenSecurity, request: operations.DeletePublishingTokenRequest, options?: RequestOptions, ): Promise< @@ -96,15 +100,35 @@ async function $do( charEncoding: "percent", }), }; - const path = pathToFunc("/v1/publishing-tokens/{tokenID}")(pathParams); const headers = new Headers(compactMap({ Accept: "application/json", })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); + const requestSecurity = resolveSecurity( + [ + { + fieldName: "x-api-key", + type: "apiKey:header", + value: security?.apiKey, + }, + ], + [ + { + fieldName: "Authorization", + type: "http:bearer", + value: security?.bearer, + }, + ], + [ + { + fieldName: "x-workspace-identifier", + type: "apiKey:header", + value: security?.workspaceIdentifier, + }, + ], + ); const context = { options: client._options, @@ -114,7 +138,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.security, + securitySource: security, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, @@ -138,7 +162,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/funcs/publishingTokensGet.ts b/src/funcs/publishingTokensGet.ts index d0b908e9..3b7d29bf 100644 --- a/src/funcs/publishingTokensGet.ts +++ b/src/funcs/publishingTokensGet.ts @@ -4,11 +4,12 @@ import { SpeakeasyCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { resolveSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -34,6 +35,7 @@ import { Result } from "../sdk/types/fp.js"; */ export function publishingTokensGet( client: SpeakeasyCore, + security: operations.GetPublishingTokenByIDSecurity, request: operations.GetPublishingTokenByIDRequest, options?: RequestOptions, ): APIPromise< @@ -52,6 +54,7 @@ export function publishingTokensGet( > { return new APIPromise($do( client, + security, request, options, )); @@ -59,6 +62,7 @@ export function publishingTokensGet( async function $do( client: SpeakeasyCore, + security: operations.GetPublishingTokenByIDSecurity, request: operations.GetPublishingTokenByIDRequest, options?: RequestOptions, ): Promise< @@ -96,15 +100,35 @@ async function $do( charEncoding: "percent", }), }; - const path = pathToFunc("/v1/publishing-tokens/{tokenID}")(pathParams); const headers = new Headers(compactMap({ Accept: "application/json", })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); + const requestSecurity = resolveSecurity( + [ + { + fieldName: "x-api-key", + type: "apiKey:header", + value: security?.apiKey, + }, + ], + [ + { + fieldName: "Authorization", + type: "http:bearer", + value: security?.bearer, + }, + ], + [ + { + fieldName: "x-workspace-identifier", + type: "apiKey:header", + value: security?.workspaceIdentifier, + }, + ], + ); const context = { options: client._options, @@ -114,7 +138,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.security, + securitySource: security, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, @@ -138,7 +162,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/funcs/publishingTokensList.ts b/src/funcs/publishingTokensList.ts index 16fadc06..4de52aef 100644 --- a/src/funcs/publishingTokensList.ts +++ b/src/funcs/publishingTokensList.ts @@ -4,10 +4,11 @@ import * as z from "zod/v3"; import { SpeakeasyCore } from "../core.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { resolveSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -20,6 +21,7 @@ import * as errors from "../sdk/models/errors/index.js"; import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; import { SpeakeasyError } from "../sdk/models/errors/speakeasyerror.js"; +import * as operations from "../sdk/models/operations/index.js"; import * as shared from "../sdk/models/shared/index.js"; import { APICall, APIPromise } from "../sdk/types/async.js"; import { Result } from "../sdk/types/fp.js"; @@ -32,6 +34,7 @@ import { Result } from "../sdk/types/fp.js"; */ export function publishingTokensList( client: SpeakeasyCore, + security: operations.GetPublishingTokenSecurity, options?: RequestOptions, ): APIPromise< Result< @@ -49,12 +52,14 @@ export function publishingTokensList( > { return new APIPromise($do( client, + security, options, )); } async function $do( client: SpeakeasyCore, + security: operations.GetPublishingTokenSecurity, options?: RequestOptions, ): Promise< [ @@ -79,8 +84,29 @@ async function $do( Accept: "application/json", })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); + const requestSecurity = resolveSecurity( + [ + { + fieldName: "x-api-key", + type: "apiKey:header", + value: security?.apiKey, + }, + ], + [ + { + fieldName: "Authorization", + type: "http:bearer", + value: security?.bearer, + }, + ], + [ + { + fieldName: "x-workspace-identifier", + type: "apiKey:header", + value: security?.workspaceIdentifier, + }, + ], + ); const context = { options: client._options, @@ -90,7 +116,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.security, + securitySource: security, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, @@ -113,7 +139,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/funcs/publishingTokensResolveMetadata.ts b/src/funcs/publishingTokensResolveMetadata.ts index 3c9ce956..7bf6131c 100644 --- a/src/funcs/publishingTokensResolveMetadata.ts +++ b/src/funcs/publishingTokensResolveMetadata.ts @@ -4,11 +4,12 @@ import { SpeakeasyCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { resolveSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -33,6 +34,7 @@ import { Result } from "../sdk/types/fp.js"; */ export function publishingTokensResolveMetadata( client: SpeakeasyCore, + security: operations.GetPublishingTokenPublicMetadataSecurity, request: operations.GetPublishingTokenPublicMetadataRequest, options?: RequestOptions, ): APIPromise< @@ -51,6 +53,7 @@ export function publishingTokensResolveMetadata( > { return new APIPromise($do( client, + security, request, options, )); @@ -58,6 +61,7 @@ export function publishingTokensResolveMetadata( async function $do( client: SpeakeasyCore, + security: operations.GetPublishingTokenPublicMetadataSecurity, request: operations.GetPublishingTokenPublicMetadataRequest, options?: RequestOptions, ): Promise< @@ -97,7 +101,6 @@ async function $do( charEncoding: "percent", }), }; - const path = pathToFunc("/v1/publishing-tokens/{tokenID}/metadata")( pathParams, ); @@ -106,8 +109,29 @@ async function $do( Accept: "application/json", })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); + const requestSecurity = resolveSecurity( + [ + { + fieldName: "x-api-key", + type: "apiKey:header", + value: security?.apiKey, + }, + ], + [ + { + fieldName: "Authorization", + type: "http:bearer", + value: security?.bearer, + }, + ], + [ + { + fieldName: "x-workspace-identifier", + type: "apiKey:header", + value: security?.workspaceIdentifier, + }, + ], + ); const context = { options: client._options, @@ -117,7 +141,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.security, + securitySource: security, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, @@ -141,7 +165,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/funcs/publishingTokensResolveTarget.ts b/src/funcs/publishingTokensResolveTarget.ts index 82e613b4..12e4da81 100644 --- a/src/funcs/publishingTokensResolveTarget.ts +++ b/src/funcs/publishingTokensResolveTarget.ts @@ -5,11 +5,12 @@ import * as z from "zod/v3"; import { SpeakeasyCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { resolveSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -34,6 +35,7 @@ import { Result } from "../sdk/types/fp.js"; */ export function publishingTokensResolveTarget( client: SpeakeasyCore, + security: operations.GetPublishingTokenTargetByIDSecurity, request: operations.GetPublishingTokenTargetByIDRequest, options?: RequestOptions, ): APIPromise< @@ -52,6 +54,7 @@ export function publishingTokensResolveTarget( > { return new APIPromise($do( client, + security, request, options, )); @@ -59,6 +62,7 @@ export function publishingTokensResolveTarget( async function $do( client: SpeakeasyCore, + security: operations.GetPublishingTokenTargetByIDSecurity, request: operations.GetPublishingTokenTargetByIDRequest, options?: RequestOptions, ): Promise< @@ -98,15 +102,35 @@ async function $do( charEncoding: "percent", }), }; - const path = pathToFunc("/v1/publishing-tokens/{tokenID}/target")(pathParams); const headers = new Headers(compactMap({ Accept: "text/plain", })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); + const requestSecurity = resolveSecurity( + [ + { + fieldName: "x-api-key", + type: "apiKey:header", + value: security?.apiKey, + }, + ], + [ + { + fieldName: "Authorization", + type: "http:bearer", + value: security?.bearer, + }, + ], + [ + { + fieldName: "x-workspace-identifier", + type: "apiKey:header", + value: security?.workspaceIdentifier, + }, + ], + ); const context = { options: client._options, @@ -116,7 +140,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.security, + securitySource: security, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, @@ -140,7 +164,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/funcs/publishingTokensUpdate.ts b/src/funcs/publishingTokensUpdate.ts index 8177ff1a..40f4fffb 100644 --- a/src/funcs/publishingTokensUpdate.ts +++ b/src/funcs/publishingTokensUpdate.ts @@ -5,11 +5,12 @@ import * as z from "zod/v3"; import { SpeakeasyCore } from "../core.js"; import { encodeJSON, encodeSimple } from "../lib/encodings.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { resolveSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -34,6 +35,7 @@ import { Result } from "../sdk/types/fp.js"; */ export function publishingTokensUpdate( client: SpeakeasyCore, + security: operations.UpdatePublishingTokenExpirationSecurity, request: operations.UpdatePublishingTokenExpirationRequest, options?: RequestOptions, ): APIPromise< @@ -52,6 +54,7 @@ export function publishingTokensUpdate( > { return new APIPromise($do( client, + security, request, options, )); @@ -59,6 +62,7 @@ export function publishingTokensUpdate( async function $do( client: SpeakeasyCore, + security: operations.UpdatePublishingTokenExpirationSecurity, request: operations.UpdatePublishingTokenExpirationRequest, options?: RequestOptions, ): Promise< @@ -98,7 +102,6 @@ async function $do( charEncoding: "percent", }), }; - const path = pathToFunc("/v1/publishing-tokens/{tokenID}")(pathParams); const headers = new Headers(compactMap({ @@ -106,8 +109,29 @@ async function $do( Accept: "application/json", })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); + const requestSecurity = resolveSecurity( + [ + { + fieldName: "x-api-key", + type: "apiKey:header", + value: security?.apiKey, + }, + ], + [ + { + fieldName: "Authorization", + type: "http:bearer", + value: security?.bearer, + }, + ], + [ + { + fieldName: "x-workspace-identifier", + type: "apiKey:header", + value: security?.workspaceIdentifier, + }, + ], + ); const context = { options: client._options, @@ -117,7 +141,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.security, + securitySource: security, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, @@ -141,7 +165,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/funcs/reportsGetChangesReportSignedUrl.ts b/src/funcs/reportsGetChangesReportSignedUrl.ts index 62e1b592..da339594 100644 --- a/src/funcs/reportsGetChangesReportSignedUrl.ts +++ b/src/funcs/reportsGetChangesReportSignedUrl.ts @@ -4,11 +4,12 @@ import { SpeakeasyCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { resolveSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -29,6 +30,7 @@ import { Result } from "../sdk/types/fp.js"; */ export function reportsGetChangesReportSignedUrl( client: SpeakeasyCore, + security: operations.GetChangesReportSignedUrlSecurity, request: operations.GetChangesReportSignedUrlRequest, options?: RequestOptions, ): APIPromise< @@ -46,6 +48,7 @@ export function reportsGetChangesReportSignedUrl( > { return new APIPromise($do( client, + security, request, options, )); @@ -53,6 +56,7 @@ export function reportsGetChangesReportSignedUrl( async function $do( client: SpeakeasyCore, + security: operations.GetChangesReportSignedUrlSecurity, request: operations.GetChangesReportSignedUrlRequest, options?: RequestOptions, ): Promise< @@ -90,15 +94,35 @@ async function $do( { explode: false, charEncoding: "percent" }, ), }; - const path = pathToFunc("/v1/reports/changes/{documentChecksum}")(pathParams); const headers = new Headers(compactMap({ Accept: "application/json", })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); + const requestSecurity = resolveSecurity( + [ + { + fieldName: "x-api-key", + type: "apiKey:header", + value: security?.apiKey, + }, + ], + [ + { + fieldName: "Authorization", + type: "http:bearer", + value: security?.bearer, + }, + ], + [ + { + fieldName: "x-workspace-identifier", + type: "apiKey:header", + value: security?.workspaceIdentifier, + }, + ], + ); const context = { options: client._options, @@ -108,7 +132,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.security, + securitySource: security, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, @@ -132,7 +156,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/funcs/reportsGetLintingReportSignedUrl.ts b/src/funcs/reportsGetLintingReportSignedUrl.ts index bfd25ce8..68f1cb87 100644 --- a/src/funcs/reportsGetLintingReportSignedUrl.ts +++ b/src/funcs/reportsGetLintingReportSignedUrl.ts @@ -4,11 +4,12 @@ import { SpeakeasyCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { resolveSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -29,6 +30,7 @@ import { Result } from "../sdk/types/fp.js"; */ export function reportsGetLintingReportSignedUrl( client: SpeakeasyCore, + security: operations.GetLintingReportSignedUrlSecurity, request: operations.GetLintingReportSignedUrlRequest, options?: RequestOptions, ): APIPromise< @@ -46,6 +48,7 @@ export function reportsGetLintingReportSignedUrl( > { return new APIPromise($do( client, + security, request, options, )); @@ -53,6 +56,7 @@ export function reportsGetLintingReportSignedUrl( async function $do( client: SpeakeasyCore, + security: operations.GetLintingReportSignedUrlSecurity, request: operations.GetLintingReportSignedUrlRequest, options?: RequestOptions, ): Promise< @@ -90,15 +94,35 @@ async function $do( { explode: false, charEncoding: "percent" }, ), }; - const path = pathToFunc("/v1/reports/linting/{documentChecksum}")(pathParams); const headers = new Headers(compactMap({ Accept: "application/json", })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); + const requestSecurity = resolveSecurity( + [ + { + fieldName: "x-api-key", + type: "apiKey:header", + value: security?.apiKey, + }, + ], + [ + { + fieldName: "Authorization", + type: "http:bearer", + value: security?.bearer, + }, + ], + [ + { + fieldName: "x-workspace-identifier", + type: "apiKey:header", + value: security?.workspaceIdentifier, + }, + ], + ); const context = { options: client._options, @@ -108,7 +132,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.security, + securitySource: security, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, @@ -132,7 +156,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/funcs/reportsUploadReport.ts b/src/funcs/reportsUploadReport.ts index 7ea11ba1..c85eb936 100644 --- a/src/funcs/reportsUploadReport.ts +++ b/src/funcs/reportsUploadReport.ts @@ -3,16 +3,18 @@ */ import { SpeakeasyCore } from "../core.js"; -import { appendForm, encodeJSON } from "../lib/encodings.js"; +import { appendForm, encodeJSON, normalizeBlob } from "../lib/encodings.js"; import { + bytesToBlob, getContentTypeFromFileName, readableStreamToArrayBuffer, } from "../lib/files.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { resolveSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -35,6 +37,7 @@ import { isReadableStream } from "../sdk/types/streams.js"; */ export function reportsUploadReport( client: SpeakeasyCore, + security: operations.UploadReportSecurity, request: operations.UploadReportRequestBody, options?: RequestOptions, ): APIPromise< @@ -52,6 +55,7 @@ export function reportsUploadReport( > { return new APIPromise($do( client, + security, request, options, )); @@ -59,6 +63,7 @@ export function reportsUploadReport( async function $do( client: SpeakeasyCore, + security: operations.UploadReportSecurity, request: operations.UploadReportRequestBody, options?: RequestOptions, ): Promise< @@ -90,20 +95,27 @@ async function $do( appendForm(body, "data", encodeJSON("data", payload.data, { explode: true })); if (isBlobLike(payload.file)) { - appendForm(body, "file", payload.file); + const file = payload.file; + const blob = await normalizeBlob(file); + const name = "name" in file ? (file.name as string) : undefined; + appendForm(body, "file", blob, name); } else if (isReadableStream(payload.file.content)) { const buffer = await readableStreamToArrayBuffer(payload.file.content); const contentType = getContentTypeFromFileName(payload.file.fileName) || "application/octet-stream"; - const blob = new Blob([buffer], { type: contentType }); - appendForm(body, "file", blob, payload.file.fileName); + appendForm( + body, + "file", + bytesToBlob(buffer, contentType), + payload.file.fileName, + ); } else { const contentType = getContentTypeFromFileName(payload.file.fileName) || "application/octet-stream"; appendForm( body, "file", - new Blob([payload.file.content], { type: contentType }), + bytesToBlob(payload.file.content, contentType), payload.file.fileName, ); } @@ -114,8 +126,29 @@ async function $do( Accept: "application/json", })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); + const requestSecurity = resolveSecurity( + [ + { + fieldName: "x-api-key", + type: "apiKey:header", + value: security?.apiKey, + }, + ], + [ + { + fieldName: "Authorization", + type: "http:bearer", + value: security?.bearer, + }, + ], + [ + { + fieldName: "x-workspace-identifier", + type: "apiKey:header", + value: security?.workspaceIdentifier, + }, + ], + ); const context = { options: client._options, @@ -125,7 +158,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.security, + securitySource: security, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, @@ -149,7 +182,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/funcs/schemaStoreCreateSchemaStoreItem.ts b/src/funcs/schemaStoreCreateSchemaStoreItem.ts index 4d0418c9..3a4162ac 100644 --- a/src/funcs/schemaStoreCreateSchemaStoreItem.ts +++ b/src/funcs/schemaStoreCreateSchemaStoreItem.ts @@ -4,11 +4,12 @@ import { SpeakeasyCore } from "../core.js"; import { encodeJSON } from "../lib/encodings.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { resolveSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -31,6 +32,7 @@ import { Result } from "../sdk/types/fp.js"; */ export function schemaStoreCreateSchemaStoreItem( client: SpeakeasyCore, + security: operations.CreateSchemaStoreItemSecurity, request: operations.CreateSchemaStoreItemRequestBody, options?: RequestOptions, ): APIPromise< @@ -49,6 +51,7 @@ export function schemaStoreCreateSchemaStoreItem( > { return new APIPromise($do( client, + security, request, options, )); @@ -56,6 +59,7 @@ export function schemaStoreCreateSchemaStoreItem( async function $do( client: SpeakeasyCore, + security: operations.CreateSchemaStoreItemSecurity, request: operations.CreateSchemaStoreItemRequestBody, options?: RequestOptions, ): Promise< @@ -94,8 +98,29 @@ async function $do( Accept: "application/json", })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); + const requestSecurity = resolveSecurity( + [ + { + fieldName: "x-api-key", + type: "apiKey:header", + value: security?.apiKey, + }, + ], + [ + { + fieldName: "Authorization", + type: "http:bearer", + value: security?.bearer, + }, + ], + [ + { + fieldName: "x-workspace-identifier", + type: "apiKey:header", + value: security?.workspaceIdentifier, + }, + ], + ); const context = { options: client._options, @@ -105,7 +130,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.security, + securitySource: security, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, @@ -129,7 +154,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/funcs/shortURLsCreate.ts b/src/funcs/shortURLsCreate.ts index d59cfd2d..202f7fa5 100644 --- a/src/funcs/shortURLsCreate.ts +++ b/src/funcs/shortURLsCreate.ts @@ -4,11 +4,12 @@ import { SpeakeasyCore } from "../core.js"; import { encodeJSON } from "../lib/encodings.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { resolveSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -30,6 +31,7 @@ import { Result } from "../sdk/types/fp.js"; */ export function shortURLsCreate( client: SpeakeasyCore, + security: operations.CreateSecurity, request: operations.CreateRequestBody, options?: RequestOptions, ): APIPromise< @@ -47,6 +49,7 @@ export function shortURLsCreate( > { return new APIPromise($do( client, + security, request, options, )); @@ -54,6 +57,7 @@ export function shortURLsCreate( async function $do( client: SpeakeasyCore, + security: operations.CreateSecurity, request: operations.CreateRequestBody, options?: RequestOptions, ): Promise< @@ -90,8 +94,29 @@ async function $do( Accept: "application/json", })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); + const requestSecurity = resolveSecurity( + [ + { + fieldName: "x-api-key", + type: "apiKey:header", + value: security?.apiKey, + }, + ], + [ + { + fieldName: "Authorization", + type: "http:bearer", + value: security?.bearer, + }, + ], + [ + { + fieldName: "x-workspace-identifier", + type: "apiKey:header", + value: security?.workspaceIdentifier, + }, + ], + ); const context = { options: client._options, @@ -101,7 +126,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.security, + securitySource: security, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, @@ -125,7 +150,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/funcs/subscriptionsActivateSubscriptionNamespace.ts b/src/funcs/subscriptionsActivateSubscriptionNamespace.ts index c9b5d138..8adabee9 100644 --- a/src/funcs/subscriptionsActivateSubscriptionNamespace.ts +++ b/src/funcs/subscriptionsActivateSubscriptionNamespace.ts @@ -5,11 +5,11 @@ import * as z from "zod/v3"; import { SpeakeasyCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -99,7 +99,6 @@ async function $do( charEncoding: "percent", }), }; - const path = pathToFunc( "/v1/subscriptions/{subscriptionID}/{namespaceName}/activate", )(pathParams); @@ -108,18 +107,15 @@ async function $do( Accept: "application/json", })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); - const context = { options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "activateSubscriptionNamespace", oAuth2Scopes: null, - resolvedSecurity: requestSecurity, + resolvedSecurity: null, - securitySource: client._options.security, + securitySource: null, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, @@ -127,7 +123,6 @@ async function $do( }; const requestRes = client._createRequest(context, { - security: requestSecurity, method: "POST", baseURL: options?.serverURL, path: path, @@ -143,7 +138,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/funcs/subscriptionsIgnoreSubscriptionNamespace.ts b/src/funcs/subscriptionsIgnoreSubscriptionNamespace.ts index 2a667c1c..4a24a6ab 100644 --- a/src/funcs/subscriptionsIgnoreSubscriptionNamespace.ts +++ b/src/funcs/subscriptionsIgnoreSubscriptionNamespace.ts @@ -5,11 +5,11 @@ import * as z from "zod/v3"; import { SpeakeasyCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -97,7 +97,6 @@ async function $do( charEncoding: "percent", }), }; - const path = pathToFunc( "/v1/subscriptions/{subscriptionID}/{namespaceName}/ignore", )(pathParams); @@ -106,18 +105,15 @@ async function $do( Accept: "application/json", })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); - const context = { options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "ignoreSubscriptionNamespace", oAuth2Scopes: null, - resolvedSecurity: requestSecurity, + resolvedSecurity: null, - securitySource: client._options.security, + securitySource: null, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, @@ -125,7 +121,6 @@ async function $do( }; const requestRes = client._createRequest(context, { - security: requestSecurity, method: "POST", baseURL: options?.serverURL, path: path, @@ -141,7 +136,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/funcs/suggestSuggest.ts b/src/funcs/suggestSuggest.ts index cea52d58..62880ecc 100644 --- a/src/funcs/suggestSuggest.ts +++ b/src/funcs/suggestSuggest.ts @@ -5,11 +5,12 @@ import * as z from "zod/v3"; import { SpeakeasyCore } from "../core.js"; import { encodeJSON, encodeSimple } from "../lib/encodings.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { resolveSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -33,6 +34,7 @@ import { Result } from "../sdk/types/fp.js"; */ export function suggestSuggest( client: SpeakeasyCore, + security: operations.SuggestSecurity, request: operations.SuggestRequest, options?: RequestOptions, ): APIPromise< @@ -50,6 +52,7 @@ export function suggestSuggest( > { return new APIPromise($do( client, + security, request, options, )); @@ -57,6 +60,7 @@ export function suggestSuggest( async function $do( client: SpeakeasyCore, + security: operations.SuggestSecurity, request: operations.SuggestRequest, options?: RequestOptions, ): Promise< @@ -99,8 +103,29 @@ async function $do( }), })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); + const requestSecurity = resolveSecurity( + [ + { + fieldName: "x-api-key", + type: "apiKey:header", + value: security?.apiKey, + }, + ], + [ + { + fieldName: "Authorization", + type: "http:bearer", + value: security?.bearer, + }, + ], + [ + { + fieldName: "x-workspace-identifier", + type: "apiKey:header", + value: security?.workspaceIdentifier, + }, + ], + ); const context = { options: client._options, @@ -110,7 +135,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.security, + securitySource: security, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, @@ -134,7 +159,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/funcs/suggestSuggestItems.ts b/src/funcs/suggestSuggestItems.ts index de04fd67..02c337e5 100644 --- a/src/funcs/suggestSuggestItems.ts +++ b/src/funcs/suggestSuggestItems.ts @@ -5,11 +5,12 @@ import * as z from "zod/v3"; import { SpeakeasyCore } from "../core.js"; import { encodeJSON } from "../lib/encodings.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { resolveSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -21,6 +22,7 @@ import { import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; import { SpeakeasyError } from "../sdk/models/errors/speakeasyerror.js"; +import * as operations from "../sdk/models/operations/index.js"; import * as shared from "../sdk/models/shared/index.js"; import { APICall, APIPromise } from "../sdk/types/async.js"; import { Result } from "../sdk/types/fp.js"; @@ -30,6 +32,7 @@ import { Result } from "../sdk/types/fp.js"; */ export function suggestSuggestItems( client: SpeakeasyCore, + security: operations.SuggestItemsSecurity, request: shared.SuggestItemsRequestBody, options?: RequestOptions, ): APIPromise< @@ -47,6 +50,7 @@ export function suggestSuggestItems( > { return new APIPromise($do( client, + security, request, options, )); @@ -54,6 +58,7 @@ export function suggestSuggestItems( async function $do( client: SpeakeasyCore, + security: operations.SuggestItemsSecurity, request: shared.SuggestItemsRequestBody, options?: RequestOptions, ): Promise< @@ -90,8 +95,29 @@ async function $do( Accept: "application/json", })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); + const requestSecurity = resolveSecurity( + [ + { + fieldName: "x-api-key", + type: "apiKey:header", + value: security?.apiKey, + }, + ], + [ + { + fieldName: "Authorization", + type: "http:bearer", + value: security?.bearer, + }, + ], + [ + { + fieldName: "x-workspace-identifier", + type: "apiKey:header", + value: security?.workspaceIdentifier, + }, + ], + ); const context = { options: client._options, @@ -101,7 +127,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.security, + securitySource: security, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, @@ -125,7 +151,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/funcs/suggestSuggestOpenAPI.ts b/src/funcs/suggestSuggestOpenAPI.ts index 96e6edb3..1ed90f4e 100644 --- a/src/funcs/suggestSuggestOpenAPI.ts +++ b/src/funcs/suggestSuggestOpenAPI.ts @@ -4,16 +4,23 @@ import * as z from "zod/v3"; import { SpeakeasyCore } from "../core.js"; -import { appendForm, encodeJSON, encodeSimple } from "../lib/encodings.js"; import { + appendForm, + encodeJSON, + encodeSimple, + normalizeBlob, +} from "../lib/encodings.js"; +import { + bytesToBlob, getContentTypeFromFileName, readableStreamToArrayBuffer, } from "../lib/files.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { resolveSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -39,6 +46,7 @@ import { isReadableStream } from "../sdk/types/streams.js"; */ export function suggestSuggestOpenAPI( client: SpeakeasyCore, + security: operations.SuggestOpenAPISecurity, request: operations.SuggestOpenAPIRequest, options?: RequestOptions, ): APIPromise< @@ -56,6 +64,7 @@ export function suggestSuggestOpenAPI( > { return new APIPromise($do( client, + security, request, options, )); @@ -63,6 +72,7 @@ export function suggestSuggestOpenAPI( async function $do( client: SpeakeasyCore, + security: operations.SuggestOpenAPISecurity, request: operations.SuggestOpenAPIRequest, options?: RequestOptions, ): Promise< @@ -93,7 +103,10 @@ async function $do( const body = new FormData(); if (isBlobLike(payload.RequestBody.schema)) { - appendForm(body, "schema", payload.RequestBody.schema); + const file = payload.RequestBody.schema; + const blob = await normalizeBlob(file); + const name = "name" in file ? (file.name as string) : undefined; + appendForm(body, "schema", blob, name); } else if (isReadableStream(payload.RequestBody.schema.content)) { const buffer = await readableStreamToArrayBuffer( payload.RequestBody.schema.content, @@ -101,8 +114,12 @@ async function $do( const contentType = getContentTypeFromFileName(payload.RequestBody.schema.fileName) || "application/octet-stream"; - const blob = new Blob([buffer], { type: contentType }); - appendForm(body, "schema", blob, payload.RequestBody.schema.fileName); + appendForm( + body, + "schema", + bytesToBlob(buffer, contentType), + payload.RequestBody.schema.fileName, + ); } else { const contentType = getContentTypeFromFileName(payload.RequestBody.schema.fileName) @@ -110,7 +127,7 @@ async function $do( appendForm( body, "schema", - new Blob([payload.RequestBody.schema.content], { type: contentType }), + bytesToBlob(payload.RequestBody.schema.content, contentType), payload.RequestBody.schema.fileName, ); } @@ -132,8 +149,29 @@ async function $do( }), })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); + const requestSecurity = resolveSecurity( + [ + { + fieldName: "x-api-key", + type: "apiKey:header", + value: security?.apiKey, + }, + ], + [ + { + fieldName: "Authorization", + type: "http:bearer", + value: security?.bearer, + }, + ], + [ + { + fieldName: "x-workspace-identifier", + type: "apiKey:header", + value: security?.workspaceIdentifier, + }, + ], + ); const context = { options: client._options, @@ -143,7 +181,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.security, + securitySource: security, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, @@ -167,7 +205,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/funcs/suggestSuggestOpenAPIRegistry.ts b/src/funcs/suggestSuggestOpenAPIRegistry.ts index 6f69a11e..ff13a163 100644 --- a/src/funcs/suggestSuggestOpenAPIRegistry.ts +++ b/src/funcs/suggestSuggestOpenAPIRegistry.ts @@ -5,11 +5,12 @@ import * as z from "zod/v3"; import { SpeakeasyCore } from "../core.js"; import { encodeJSON, encodeSimple } from "../lib/encodings.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { resolveSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -33,6 +34,7 @@ import { Result } from "../sdk/types/fp.js"; */ export function suggestSuggestOpenAPIRegistry( client: SpeakeasyCore, + security: operations.SuggestOpenAPIRegistrySecurity, request: operations.SuggestOpenAPIRegistryRequest, options?: RequestOptions, ): APIPromise< @@ -50,6 +52,7 @@ export function suggestSuggestOpenAPIRegistry( > { return new APIPromise($do( client, + security, request, options, )); @@ -57,6 +60,7 @@ export function suggestSuggestOpenAPIRegistry( async function $do( client: SpeakeasyCore, + security: operations.SuggestOpenAPIRegistrySecurity, request: operations.SuggestOpenAPIRegistryRequest, options?: RequestOptions, ): Promise< @@ -100,7 +104,6 @@ async function $do( { explode: false, charEncoding: "percent" }, ), }; - const path = pathToFunc( "/v1/suggest/openapi/{namespace_name}/{revision_reference}", )(pathParams); @@ -114,8 +117,29 @@ async function $do( }), })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); + const requestSecurity = resolveSecurity( + [ + { + fieldName: "x-api-key", + type: "apiKey:header", + value: security?.apiKey, + }, + ], + [ + { + fieldName: "Authorization", + type: "http:bearer", + value: security?.bearer, + }, + ], + [ + { + fieldName: "x-workspace-identifier", + type: "apiKey:header", + value: security?.workspaceIdentifier, + }, + ], + ); const context = { options: client._options, @@ -125,7 +149,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.security, + securitySource: security, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, @@ -149,7 +173,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/funcs/webhooksHandleStripeWebhook.ts b/src/funcs/webhooksHandleStripeWebhook.ts new file mode 100644 index 00000000..06fc7da5 --- /dev/null +++ b/src/funcs/webhooksHandleStripeWebhook.ts @@ -0,0 +1,144 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { SpeakeasyCore } from "../core.js"; +import { matchStatusCode } from "../lib/http.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { pathToFunc } from "../lib/url.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../sdk/models/errors/httpclienterrors.js"; +import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import { SpeakeasyError } from "../sdk/models/errors/speakeasyerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { APICall, APIPromise } from "../sdk/types/async.js"; +import { Result } from "../sdk/types/fp.js"; + +/** + * Handle Stripe webhook + * + * @remarks + * Receives and processes Stripe webhook events for subscription management. + * This endpoint is called by Stripe and uses webhook signature verification instead of API authentication. + */ +export function webhooksHandleStripeWebhook( + client: SpeakeasyCore, + _request: operations.HandleStripeWebhookRequestBody, + options?: RequestOptions, +): APIPromise< + Result< + void, + | SpeakeasyError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + _request, + options, + )); +} + +async function $do( + client: SpeakeasyCore, + _request: operations.HandleStripeWebhookRequestBody, + options?: RequestOptions, +): Promise< + [ + Result< + void, + | SpeakeasyError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const path = pathToFunc("/v1/webhooks/stripe")(); + + const headers = new Headers(compactMap({ + "Content-Type": "application/json", + Accept: "*/*", + })); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "handleStripeWebhook", + oAuth2Scopes: null, + + resolvedSecurity: null, + + securitySource: null, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + method: "POST", + baseURL: options?.serverURL, + path: path, + headers: headers, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [requestRes, { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const [result] = await M.match< + void, + | SpeakeasyError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.nil(200, z.void()), + M.fail([400, "4XX"]), + M.fail([500, "5XX"]), + )(response, req); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/src/funcs/workspacesCreate.ts b/src/funcs/workspacesCreate.ts index b3337116..ab130d21 100644 --- a/src/funcs/workspacesCreate.ts +++ b/src/funcs/workspacesCreate.ts @@ -4,11 +4,12 @@ import { SpeakeasyCore } from "../core.js"; import { encodeJSON } from "../lib/encodings.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { resolveSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -21,6 +22,7 @@ import * as errors from "../sdk/models/errors/index.js"; import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; import { SpeakeasyError } from "../sdk/models/errors/speakeasyerror.js"; +import * as operations from "../sdk/models/operations/index.js"; import * as shared from "../sdk/models/shared/index.js"; import { APICall, APIPromise } from "../sdk/types/async.js"; import { Result } from "../sdk/types/fp.js"; @@ -33,6 +35,7 @@ import { Result } from "../sdk/types/fp.js"; */ export function workspacesCreate( client: SpeakeasyCore, + security: operations.CreateWorkspaceSecurity, request: shared.Workspace, options?: RequestOptions, ): APIPromise< @@ -51,6 +54,7 @@ export function workspacesCreate( > { return new APIPromise($do( client, + security, request, options, )); @@ -58,6 +62,7 @@ export function workspacesCreate( async function $do( client: SpeakeasyCore, + security: operations.CreateWorkspaceSecurity, request: shared.Workspace, options?: RequestOptions, ): Promise< @@ -95,8 +100,29 @@ async function $do( Accept: "application/json", })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); + const requestSecurity = resolveSecurity( + [ + { + fieldName: "x-api-key", + type: "apiKey:header", + value: security?.apiKey, + }, + ], + [ + { + fieldName: "Authorization", + type: "http:bearer", + value: security?.bearer, + }, + ], + [ + { + fieldName: "x-workspace-identifier", + type: "apiKey:header", + value: security?.workspaceIdentifier, + }, + ], + ); const context = { options: client._options, @@ -106,7 +132,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.security, + securitySource: security, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, @@ -130,7 +156,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/funcs/workspacesCreateToken.ts b/src/funcs/workspacesCreateToken.ts index 611305b7..7a6ceb95 100644 --- a/src/funcs/workspacesCreateToken.ts +++ b/src/funcs/workspacesCreateToken.ts @@ -5,11 +5,12 @@ import * as z from "zod/v3"; import { SpeakeasyCore } from "../core.js"; import { encodeJSON, encodeSimple } from "../lib/encodings.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { resolveSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -31,6 +32,7 @@ import { Result } from "../sdk/types/fp.js"; */ export function workspacesCreateToken( client: SpeakeasyCore, + security: operations.CreateWorkspaceTokenSecurity, request: operations.CreateWorkspaceTokenRequest, options?: RequestOptions, ): APIPromise< @@ -49,6 +51,7 @@ export function workspacesCreateToken( > { return new APIPromise($do( client, + security, request, options, )); @@ -56,6 +59,7 @@ export function workspacesCreateToken( async function $do( client: SpeakeasyCore, + security: operations.CreateWorkspaceTokenSecurity, request: operations.CreateWorkspaceTokenRequest, options?: RequestOptions, ): Promise< @@ -94,7 +98,6 @@ async function $do( { explode: false, charEncoding: "percent" }, ), }; - const path = pathToFunc("/v1/workspace/{workspace_id}/tokens")(pathParams); const headers = new Headers(compactMap({ @@ -102,8 +105,29 @@ async function $do( Accept: "application/json", })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); + const requestSecurity = resolveSecurity( + [ + { + fieldName: "x-api-key", + type: "apiKey:header", + value: security?.apiKey, + }, + ], + [ + { + fieldName: "Authorization", + type: "http:bearer", + value: security?.bearer, + }, + ], + [ + { + fieldName: "x-workspace-identifier", + type: "apiKey:header", + value: security?.workspaceIdentifier, + }, + ], + ); const context = { options: client._options, @@ -113,7 +137,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.security, + securitySource: security, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, @@ -137,7 +161,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/funcs/workspacesDeleteToken.ts b/src/funcs/workspacesDeleteToken.ts index 193250e2..598193d5 100644 --- a/src/funcs/workspacesDeleteToken.ts +++ b/src/funcs/workspacesDeleteToken.ts @@ -5,11 +5,12 @@ import * as z from "zod/v3"; import { SpeakeasyCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { resolveSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -31,6 +32,7 @@ import { Result } from "../sdk/types/fp.js"; */ export function workspacesDeleteToken( client: SpeakeasyCore, + security: operations.DeleteWorkspaceTokenSecurity, request: operations.DeleteWorkspaceTokenRequest, options?: RequestOptions, ): APIPromise< @@ -49,6 +51,7 @@ export function workspacesDeleteToken( > { return new APIPromise($do( client, + security, request, options, )); @@ -56,6 +59,7 @@ export function workspacesDeleteToken( async function $do( client: SpeakeasyCore, + security: operations.DeleteWorkspaceTokenSecurity, request: operations.DeleteWorkspaceTokenRequest, options?: RequestOptions, ): Promise< @@ -98,7 +102,6 @@ async function $do( { explode: false, charEncoding: "percent" }, ), }; - const path = pathToFunc("/v1/workspace/{workspace_id}/tokens/{tokenID}")( pathParams, ); @@ -107,8 +110,29 @@ async function $do( Accept: "application/json", })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); + const requestSecurity = resolveSecurity( + [ + { + fieldName: "x-api-key", + type: "apiKey:header", + value: security?.apiKey, + }, + ], + [ + { + fieldName: "Authorization", + type: "http:bearer", + value: security?.bearer, + }, + ], + [ + { + fieldName: "x-workspace-identifier", + type: "apiKey:header", + value: security?.workspaceIdentifier, + }, + ], + ); const context = { options: client._options, @@ -118,7 +142,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.security, + securitySource: security, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, @@ -142,7 +166,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/funcs/workspacesGet.ts b/src/funcs/workspacesGet.ts index 04f5a9bc..1b1a84a2 100644 --- a/src/funcs/workspacesGet.ts +++ b/src/funcs/workspacesGet.ts @@ -3,10 +3,11 @@ */ import { SpeakeasyCore } from "../core.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { resolveSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -19,6 +20,7 @@ import * as errors from "../sdk/models/errors/index.js"; import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; import { SpeakeasyError } from "../sdk/models/errors/speakeasyerror.js"; +import * as operations from "../sdk/models/operations/index.js"; import * as shared from "../sdk/models/shared/index.js"; import { APICall, APIPromise } from "../sdk/types/async.js"; import { Result } from "../sdk/types/fp.js"; @@ -31,6 +33,7 @@ import { Result } from "../sdk/types/fp.js"; */ export function workspacesGet( client: SpeakeasyCore, + security: operations.GetWorkspaceByContextSecurity, options?: RequestOptions, ): APIPromise< Result< @@ -48,12 +51,14 @@ export function workspacesGet( > { return new APIPromise($do( client, + security, options, )); } async function $do( client: SpeakeasyCore, + security: operations.GetWorkspaceByContextSecurity, options?: RequestOptions, ): Promise< [ @@ -78,8 +83,29 @@ async function $do( Accept: "application/json", })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); + const requestSecurity = resolveSecurity( + [ + { + fieldName: "x-api-key", + type: "apiKey:header", + value: security?.apiKey, + }, + ], + [ + { + fieldName: "Authorization", + type: "http:bearer", + value: security?.bearer, + }, + ], + [ + { + fieldName: "x-workspace-identifier", + type: "apiKey:header", + value: security?.workspaceIdentifier, + }, + ], + ); const context = { options: client._options, @@ -89,7 +115,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.security, + securitySource: security, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, @@ -112,7 +138,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/funcs/workspacesGetAll.ts b/src/funcs/workspacesGetAll.ts index 8a721264..bd8cccb3 100644 --- a/src/funcs/workspacesGetAll.ts +++ b/src/funcs/workspacesGetAll.ts @@ -4,10 +4,11 @@ import * as z from "zod/v3"; import { SpeakeasyCore } from "../core.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { resolveSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -20,6 +21,7 @@ import * as errors from "../sdk/models/errors/index.js"; import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; import { SpeakeasyError } from "../sdk/models/errors/speakeasyerror.js"; +import * as operations from "../sdk/models/operations/index.js"; import * as shared from "../sdk/models/shared/index.js"; import { APICall, APIPromise } from "../sdk/types/async.js"; import { Result } from "../sdk/types/fp.js"; @@ -32,6 +34,7 @@ import { Result } from "../sdk/types/fp.js"; */ export function workspacesGetAll( client: SpeakeasyCore, + security: operations.GetWorkspacesSecurity, options?: RequestOptions, ): APIPromise< Result< @@ -49,12 +52,14 @@ export function workspacesGetAll( > { return new APIPromise($do( client, + security, options, )); } async function $do( client: SpeakeasyCore, + security: operations.GetWorkspacesSecurity, options?: RequestOptions, ): Promise< [ @@ -79,8 +84,29 @@ async function $do( Accept: "application/json", })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); + const requestSecurity = resolveSecurity( + [ + { + fieldName: "x-api-key", + type: "apiKey:header", + value: security?.apiKey, + }, + ], + [ + { + fieldName: "Authorization", + type: "http:bearer", + value: security?.bearer, + }, + ], + [ + { + fieldName: "x-workspace-identifier", + type: "apiKey:header", + value: security?.workspaceIdentifier, + }, + ], + ); const context = { options: client._options, @@ -90,7 +116,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.security, + securitySource: security, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, @@ -113,7 +139,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/funcs/workspacesGetByID.ts b/src/funcs/workspacesGetByID.ts index a96cf07f..6563c104 100644 --- a/src/funcs/workspacesGetByID.ts +++ b/src/funcs/workspacesGetByID.ts @@ -4,11 +4,12 @@ import { SpeakeasyCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { resolveSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -34,6 +35,7 @@ import { Result } from "../sdk/types/fp.js"; */ export function workspacesGetByID( client: SpeakeasyCore, + security: operations.GetWorkspaceSecurity, request: operations.GetWorkspaceRequest, options?: RequestOptions, ): APIPromise< @@ -52,6 +54,7 @@ export function workspacesGetByID( > { return new APIPromise($do( client, + security, request, options, )); @@ -59,6 +62,7 @@ export function workspacesGetByID( async function $do( client: SpeakeasyCore, + security: operations.GetWorkspaceSecurity, request: operations.GetWorkspaceRequest, options?: RequestOptions, ): Promise< @@ -96,15 +100,35 @@ async function $do( { explode: false, charEncoding: "percent" }, ), }; - const path = pathToFunc("/v1/workspace/{workspace_id}")(pathParams); const headers = new Headers(compactMap({ Accept: "application/json", })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); + const requestSecurity = resolveSecurity( + [ + { + fieldName: "x-api-key", + type: "apiKey:header", + value: security?.apiKey, + }, + ], + [ + { + fieldName: "Authorization", + type: "http:bearer", + value: security?.bearer, + }, + ], + [ + { + fieldName: "x-workspace-identifier", + type: "apiKey:header", + value: security?.workspaceIdentifier, + }, + ], + ); const context = { options: client._options, @@ -114,7 +138,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.security, + securitySource: security, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, @@ -138,7 +162,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/funcs/workspacesGetFeatureFlags.ts b/src/funcs/workspacesGetFeatureFlags.ts index dd4f8b86..143db075 100644 --- a/src/funcs/workspacesGetFeatureFlags.ts +++ b/src/funcs/workspacesGetFeatureFlags.ts @@ -4,11 +4,12 @@ import { SpeakeasyCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { resolveSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -31,6 +32,7 @@ import { Result } from "../sdk/types/fp.js"; */ export function workspacesGetFeatureFlags( client: SpeakeasyCore, + security: operations.GetWorkspaceFeatureFlagsSecurity, request: operations.GetWorkspaceFeatureFlagsRequest, options?: RequestOptions, ): APIPromise< @@ -49,6 +51,7 @@ export function workspacesGetFeatureFlags( > { return new APIPromise($do( client, + security, request, options, )); @@ -56,6 +59,7 @@ export function workspacesGetFeatureFlags( async function $do( client: SpeakeasyCore, + security: operations.GetWorkspaceFeatureFlagsSecurity, request: operations.GetWorkspaceFeatureFlagsRequest, options?: RequestOptions, ): Promise< @@ -94,7 +98,6 @@ async function $do( { explode: false, charEncoding: "percent" }, ), }; - const path = pathToFunc("/v1/workspace/{workspace_id}/feature_flags")( pathParams, ); @@ -103,8 +106,29 @@ async function $do( Accept: "application/json", })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); + const requestSecurity = resolveSecurity( + [ + { + fieldName: "x-api-key", + type: "apiKey:header", + value: security?.apiKey, + }, + ], + [ + { + fieldName: "Authorization", + type: "http:bearer", + value: security?.bearer, + }, + ], + [ + { + fieldName: "x-workspace-identifier", + type: "apiKey:header", + value: security?.workspaceIdentifier, + }, + ], + ); const context = { options: client._options, @@ -114,7 +138,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.security, + securitySource: security, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, @@ -138,7 +162,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/funcs/workspacesGetSettings.ts b/src/funcs/workspacesGetSettings.ts index 5d422596..4cb2f232 100644 --- a/src/funcs/workspacesGetSettings.ts +++ b/src/funcs/workspacesGetSettings.ts @@ -4,11 +4,12 @@ import { SpeakeasyCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { resolveSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -34,6 +35,7 @@ import { Result } from "../sdk/types/fp.js"; */ export function workspacesGetSettings( client: SpeakeasyCore, + security: operations.GetWorkspaceSettingsSecurity, request: operations.GetWorkspaceSettingsRequest, options?: RequestOptions, ): APIPromise< @@ -52,6 +54,7 @@ export function workspacesGetSettings( > { return new APIPromise($do( client, + security, request, options, )); @@ -59,6 +62,7 @@ export function workspacesGetSettings( async function $do( client: SpeakeasyCore, + security: operations.GetWorkspaceSettingsSecurity, request: operations.GetWorkspaceSettingsRequest, options?: RequestOptions, ): Promise< @@ -97,15 +101,35 @@ async function $do( { explode: false, charEncoding: "percent" }, ), }; - const path = pathToFunc("/v1/workspace/{workspace_id}/settings")(pathParams); const headers = new Headers(compactMap({ Accept: "application/json", })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); + const requestSecurity = resolveSecurity( + [ + { + fieldName: "x-api-key", + type: "apiKey:header", + value: security?.apiKey, + }, + ], + [ + { + fieldName: "Authorization", + type: "http:bearer", + value: security?.bearer, + }, + ], + [ + { + fieldName: "x-workspace-identifier", + type: "apiKey:header", + value: security?.workspaceIdentifier, + }, + ], + ); const context = { options: client._options, @@ -115,7 +139,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.security, + securitySource: security, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, @@ -139,7 +163,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/funcs/workspacesGetTeam.ts b/src/funcs/workspacesGetTeam.ts index 346c6fe3..0e9e7b6e 100644 --- a/src/funcs/workspacesGetTeam.ts +++ b/src/funcs/workspacesGetTeam.ts @@ -4,11 +4,12 @@ import { SpeakeasyCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { resolveSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -31,6 +32,7 @@ import { Result } from "../sdk/types/fp.js"; */ export function workspacesGetTeam( client: SpeakeasyCore, + security: operations.GetWorkspaceTeamSecurity, request: operations.GetWorkspaceTeamRequest, options?: RequestOptions, ): APIPromise< @@ -49,6 +51,7 @@ export function workspacesGetTeam( > { return new APIPromise($do( client, + security, request, options, )); @@ -56,6 +59,7 @@ export function workspacesGetTeam( async function $do( client: SpeakeasyCore, + security: operations.GetWorkspaceTeamSecurity, request: operations.GetWorkspaceTeamRequest, options?: RequestOptions, ): Promise< @@ -93,15 +97,35 @@ async function $do( { explode: false, charEncoding: "percent" }, ), }; - const path = pathToFunc("/v1/workspace/{workspace_id}/team")(pathParams); const headers = new Headers(compactMap({ Accept: "application/json", })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); + const requestSecurity = resolveSecurity( + [ + { + fieldName: "x-api-key", + type: "apiKey:header", + value: security?.apiKey, + }, + ], + [ + { + fieldName: "Authorization", + type: "http:bearer", + value: security?.bearer, + }, + ], + [ + { + fieldName: "x-workspace-identifier", + type: "apiKey:header", + value: security?.workspaceIdentifier, + }, + ], + ); const context = { options: client._options, @@ -111,7 +135,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.security, + securitySource: security, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, @@ -135,7 +159,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/funcs/workspacesGetTokens.ts b/src/funcs/workspacesGetTokens.ts index 49f4b1b8..3eaa0917 100644 --- a/src/funcs/workspacesGetTokens.ts +++ b/src/funcs/workspacesGetTokens.ts @@ -5,11 +5,12 @@ import * as z from "zod/v3"; import { SpeakeasyCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { resolveSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -32,6 +33,7 @@ import { Result } from "../sdk/types/fp.js"; */ export function workspacesGetTokens( client: SpeakeasyCore, + security: operations.GetWorkspaceTokensSecurity, request: operations.GetWorkspaceTokensRequest, options?: RequestOptions, ): APIPromise< @@ -50,6 +52,7 @@ export function workspacesGetTokens( > { return new APIPromise($do( client, + security, request, options, )); @@ -57,6 +60,7 @@ export function workspacesGetTokens( async function $do( client: SpeakeasyCore, + security: operations.GetWorkspaceTokensSecurity, request: operations.GetWorkspaceTokensRequest, options?: RequestOptions, ): Promise< @@ -94,15 +98,35 @@ async function $do( { explode: false, charEncoding: "percent" }, ), }; - const path = pathToFunc("/v1/workspace/{workspace_id}/tokens")(pathParams); const headers = new Headers(compactMap({ Accept: "application/json", })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); + const requestSecurity = resolveSecurity( + [ + { + fieldName: "x-api-key", + type: "apiKey:header", + value: security?.apiKey, + }, + ], + [ + { + fieldName: "Authorization", + type: "http:bearer", + value: security?.bearer, + }, + ], + [ + { + fieldName: "x-workspace-identifier", + type: "apiKey:header", + value: security?.workspaceIdentifier, + }, + ], + ); const context = { options: client._options, @@ -112,7 +136,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.security, + securitySource: security, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, @@ -136,7 +160,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/funcs/workspacesGrantAccess.ts b/src/funcs/workspacesGrantAccess.ts index f96b6aec..dd52c27e 100644 --- a/src/funcs/workspacesGrantAccess.ts +++ b/src/funcs/workspacesGrantAccess.ts @@ -4,11 +4,12 @@ import { SpeakeasyCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { resolveSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -31,6 +32,7 @@ import { Result } from "../sdk/types/fp.js"; */ export function workspacesGrantAccess( client: SpeakeasyCore, + security: operations.GrantUserAccessToWorkspaceSecurity, request: operations.GrantUserAccessToWorkspaceRequest, options?: RequestOptions, ): APIPromise< @@ -49,6 +51,7 @@ export function workspacesGrantAccess( > { return new APIPromise($do( client, + security, request, options, )); @@ -56,6 +59,7 @@ export function workspacesGrantAccess( async function $do( client: SpeakeasyCore, + security: operations.GrantUserAccessToWorkspaceSecurity, request: operations.GrantUserAccessToWorkspaceRequest, options?: RequestOptions, ): Promise< @@ -98,7 +102,6 @@ async function $do( { explode: false, charEncoding: "percent" }, ), }; - const path = pathToFunc("/v1/workspace/{workspace_id}/team/email/{email}")( pathParams, ); @@ -107,8 +110,29 @@ async function $do( Accept: "application/json", })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); + const requestSecurity = resolveSecurity( + [ + { + fieldName: "x-api-key", + type: "apiKey:header", + value: security?.apiKey, + }, + ], + [ + { + fieldName: "Authorization", + type: "http:bearer", + value: security?.bearer, + }, + ], + [ + { + fieldName: "x-workspace-identifier", + type: "apiKey:header", + value: security?.workspaceIdentifier, + }, + ], + ); const context = { options: client._options, @@ -118,7 +142,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.security, + securitySource: security, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, @@ -142,7 +166,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/funcs/workspacesRevokeAccess.ts b/src/funcs/workspacesRevokeAccess.ts index c31df085..26bf9b5f 100644 --- a/src/funcs/workspacesRevokeAccess.ts +++ b/src/funcs/workspacesRevokeAccess.ts @@ -5,11 +5,12 @@ import * as z from "zod/v3"; import { SpeakeasyCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { resolveSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -31,6 +32,7 @@ import { Result } from "../sdk/types/fp.js"; */ export function workspacesRevokeAccess( client: SpeakeasyCore, + security: operations.RevokeUserAccessToWorkspaceSecurity, request: operations.RevokeUserAccessToWorkspaceRequest, options?: RequestOptions, ): APIPromise< @@ -49,6 +51,7 @@ export function workspacesRevokeAccess( > { return new APIPromise($do( client, + security, request, options, )); @@ -56,6 +59,7 @@ export function workspacesRevokeAccess( async function $do( client: SpeakeasyCore, + security: operations.RevokeUserAccessToWorkspaceSecurity, request: operations.RevokeUserAccessToWorkspaceRequest, options?: RequestOptions, ): Promise< @@ -98,7 +102,6 @@ async function $do( { explode: false, charEncoding: "percent" }, ), }; - const path = pathToFunc("/v1/workspace/{workspace_id}/team/{userId}")( pathParams, ); @@ -107,8 +110,29 @@ async function $do( Accept: "application/json", })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); + const requestSecurity = resolveSecurity( + [ + { + fieldName: "x-api-key", + type: "apiKey:header", + value: security?.apiKey, + }, + ], + [ + { + fieldName: "Authorization", + type: "http:bearer", + value: security?.bearer, + }, + ], + [ + { + fieldName: "x-workspace-identifier", + type: "apiKey:header", + value: security?.workspaceIdentifier, + }, + ], + ); const context = { options: client._options, @@ -118,7 +142,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.security, + securitySource: security, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, @@ -142,7 +166,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/funcs/workspacesSetFeatureFlags.ts b/src/funcs/workspacesSetFeatureFlags.ts index f4a78dd9..6cfbbe9a 100644 --- a/src/funcs/workspacesSetFeatureFlags.ts +++ b/src/funcs/workspacesSetFeatureFlags.ts @@ -4,11 +4,12 @@ import { SpeakeasyCore } from "../core.js"; import { encodeJSON } from "../lib/encodings.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { resolveSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -21,6 +22,7 @@ import * as errors from "../sdk/models/errors/index.js"; import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; import { SpeakeasyError } from "../sdk/models/errors/speakeasyerror.js"; +import * as operations from "../sdk/models/operations/index.js"; import * as shared from "../sdk/models/shared/index.js"; import { APICall, APIPromise } from "../sdk/types/async.js"; import { Result } from "../sdk/types/fp.js"; @@ -30,6 +32,7 @@ import { Result } from "../sdk/types/fp.js"; */ export function workspacesSetFeatureFlags( client: SpeakeasyCore, + security: operations.SetWorkspaceFeatureFlagsSecurity, request: shared.WorkspaceFeatureFlagRequest, options?: RequestOptions, ): APIPromise< @@ -48,6 +51,7 @@ export function workspacesSetFeatureFlags( > { return new APIPromise($do( client, + security, request, options, )); @@ -55,6 +59,7 @@ export function workspacesSetFeatureFlags( async function $do( client: SpeakeasyCore, + security: operations.SetWorkspaceFeatureFlagsSecurity, request: shared.WorkspaceFeatureFlagRequest, options?: RequestOptions, ): Promise< @@ -92,8 +97,29 @@ async function $do( Accept: "application/json", })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); + const requestSecurity = resolveSecurity( + [ + { + fieldName: "x-api-key", + type: "apiKey:header", + value: security?.apiKey, + }, + ], + [ + { + fieldName: "Authorization", + type: "http:bearer", + value: security?.bearer, + }, + ], + [ + { + fieldName: "x-workspace-identifier", + type: "apiKey:header", + value: security?.workspaceIdentifier, + }, + ], + ); const context = { options: client._options, @@ -103,7 +129,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.security, + securitySource: security, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, @@ -127,7 +153,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/funcs/workspacesUpdate.ts b/src/funcs/workspacesUpdate.ts index 57eb3a32..6b1cb7ab 100644 --- a/src/funcs/workspacesUpdate.ts +++ b/src/funcs/workspacesUpdate.ts @@ -5,11 +5,12 @@ import * as z from "zod/v3"; import { SpeakeasyCore } from "../core.js"; import { encodeJSON, encodeSimple } from "../lib/encodings.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { resolveSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -34,6 +35,7 @@ import { Result } from "../sdk/types/fp.js"; */ export function workspacesUpdate( client: SpeakeasyCore, + security: operations.UpdateWorkspaceDetailsSecurity, request: operations.UpdateWorkspaceDetailsRequest, options?: RequestOptions, ): APIPromise< @@ -52,6 +54,7 @@ export function workspacesUpdate( > { return new APIPromise($do( client, + security, request, options, )); @@ -59,6 +62,7 @@ export function workspacesUpdate( async function $do( client: SpeakeasyCore, + security: operations.UpdateWorkspaceDetailsSecurity, request: operations.UpdateWorkspaceDetailsRequest, options?: RequestOptions, ): Promise< @@ -97,7 +101,6 @@ async function $do( { explode: false, charEncoding: "percent" }, ), }; - const path = pathToFunc("/v1/workspace/{workspace_id}/details")(pathParams); const headers = new Headers(compactMap({ @@ -105,8 +108,29 @@ async function $do( Accept: "application/json", })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); + const requestSecurity = resolveSecurity( + [ + { + fieldName: "x-api-key", + type: "apiKey:header", + value: security?.apiKey, + }, + ], + [ + { + fieldName: "Authorization", + type: "http:bearer", + value: security?.bearer, + }, + ], + [ + { + fieldName: "x-workspace-identifier", + type: "apiKey:header", + value: security?.workspaceIdentifier, + }, + ], + ); const context = { options: client._options, @@ -116,7 +140,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.security, + securitySource: security, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, @@ -140,7 +164,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/funcs/workspacesUpdateSettings.ts b/src/funcs/workspacesUpdateSettings.ts index c8f354fe..5f772717 100644 --- a/src/funcs/workspacesUpdateSettings.ts +++ b/src/funcs/workspacesUpdateSettings.ts @@ -5,11 +5,12 @@ import * as z from "zod/v3"; import { SpeakeasyCore } from "../core.js"; import { encodeJSON, encodeSimple } from "../lib/encodings.js"; +import { matchStatusCode } from "../lib/http.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { resolveSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { ConnectionError, @@ -34,6 +35,7 @@ import { Result } from "../sdk/types/fp.js"; */ export function workspacesUpdateSettings( client: SpeakeasyCore, + security: operations.UpdateWorkspaceSettingsSecurity, request: operations.UpdateWorkspaceSettingsRequest, options?: RequestOptions, ): APIPromise< @@ -52,6 +54,7 @@ export function workspacesUpdateSettings( > { return new APIPromise($do( client, + security, request, options, )); @@ -59,6 +62,7 @@ export function workspacesUpdateSettings( async function $do( client: SpeakeasyCore, + security: operations.UpdateWorkspaceSettingsSecurity, request: operations.UpdateWorkspaceSettingsRequest, options?: RequestOptions, ): Promise< @@ -97,7 +101,6 @@ async function $do( { explode: false, charEncoding: "percent" }, ), }; - const path = pathToFunc("/v1/workspace/{workspace_id}/settings")(pathParams); const headers = new Headers(compactMap({ @@ -105,8 +108,29 @@ async function $do( Accept: "application/json", })); - const securityInput = await extractSecurity(client._options.security); - const requestSecurity = resolveGlobalSecurity(securityInput); + const requestSecurity = resolveSecurity( + [ + { + fieldName: "x-api-key", + type: "apiKey:header", + value: security?.apiKey, + }, + ], + [ + { + fieldName: "Authorization", + type: "http:bearer", + value: security?.bearer, + }, + ], + [ + { + fieldName: "x-workspace-identifier", + type: "apiKey:header", + value: security?.workspaceIdentifier, + }, + ], + ); const context = { options: client._options, @@ -116,7 +140,7 @@ async function $do( resolvedSecurity: requestSecurity, - securitySource: client._options.security, + securitySource: security, retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" }, @@ -140,7 +164,8 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["4XX", "5XX"], + isErrorStatusCode: (statusCode: number) => + matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]), retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); diff --git a/src/hooks/types.ts b/src/hooks/types.ts index 8bfe4fe8..5ffda46a 100644 --- a/src/hooks/types.ts +++ b/src/hooks/types.ts @@ -15,6 +15,7 @@ export type HookContext = { retryConfig: RetryConfig; resolvedSecurity: SecurityState | null; options: SDKOptions; + timeoutMs?: number; }; export type Awaitable = T | Promise; diff --git a/src/lib/config.ts b/src/lib/config.ts index f9fc5d93..eb4c7dc9 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -2,7 +2,6 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as shared from "../sdk/models/shared/index.js"; import { HTTPClient } from "./http.js"; import { Logger } from "./logger.js"; import { RetryConfig } from "./retries.js"; @@ -17,10 +16,7 @@ export const ServerList = { } as const; export type SDKOptions = { - /** - * The security details required to authenticate the SDK - */ - security?: shared.Security | (() => Promise) | undefined; + apiKey?: string | (() => Promise) | undefined; /** * Allows setting the workspaceId parameter for all supported operations @@ -65,8 +61,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null { export const SDK_METADATA = { language: "typescript", openapiDocVersion: "0.4.0", - sdkVersion: "5.0.0-rc.5", - genVersion: "2.845.15", + sdkVersion: "5.0.0-rc.6", + genVersion: "2.913.3", userAgent: - "speakeasy-sdk/typescript 5.0.0-rc.5 2.845.15 0.4.0 @speakeasy-api/speakeasy-client-sdk-typescript", + "speakeasy-sdk/typescript 5.0.0-rc.6 2.913.3 0.4.0 @speakeasy-api/speakeasy-client-sdk-typescript", } as const; diff --git a/src/lib/dlv.ts b/src/lib/dlv.ts deleted file mode 100644 index e81091f5..00000000 --- a/src/lib/dlv.ts +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -/* -MIT License - -Copyright (c) 2024 Jason Miller (http://jasonformat.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -*/ - -/** - * @param obj The object to walk - * @param key The key path to walk the object with - * @param def A default value to return if the result is undefined - * - * @example - * dlv(obj, "a.b.c.d") - * @example - * dlv(object, ["a", "b", "c", "d"]) - * @example - * dlv(object, "foo.bar.baz", "Hello, default value!") - */ -export function dlv( - obj: any, - key: string | string[], - def?: T, - p?: number, - undef?: never, -): T | undefined { - key = Array.isArray(key) ? key : key.split("."); - for (p = 0; p < key.length; p++) { - const k = key[p]; - obj = k != null && obj ? obj[k] : undef; - } - return obj === undef ? def : obj; -} diff --git a/src/lib/encodings.ts b/src/lib/encodings.ts index 31cd3733..dcab511b 100644 --- a/src/lib/encodings.ts +++ b/src/lib/encodings.ts @@ -3,7 +3,7 @@ */ import { bytesToBase64 } from "./base64.js"; -import { isPlainObject } from "./is-plain-object.js"; +import { isPlainObject } from "./primitives.js"; export class EncodingError extends Error { constructor(message: string) { @@ -479,6 +479,23 @@ export const encodeSpaceDelimitedQuery = queryEncoder(encodeSpaceDelimited); export const encodePipeDelimitedQuery = queryEncoder(encodePipeDelimited); export const encodeDeepObjectQuery = queryEncoder(encodeDeepObject); +function isBlobLike(val: unknown): val is Blob { + if (val instanceof Blob) { + return true; + } + + if (typeof val !== "object" || val == null || !(Symbol.toStringTag in val)) { + return false; + } + + const tag = val[Symbol.toStringTag]; + if (tag !== "Blob" && tag !== "File") { + return false; + } + + return "stream" in val && typeof val.stream === "function"; +} + export function appendForm( fd: FormData, key: string, @@ -487,11 +504,22 @@ export function appendForm( ): void { if (value == null) { return; - } else if (value instanceof Blob && fileName) { - fd.append(key, value, fileName); - } else if (value instanceof Blob) { - fd.append(key, value); + } else if (isBlobLike(value)) { + if (fileName) { + fd.append(key, value as Blob, fileName); + } else { + fd.append(key, value as Blob); + } } else { fd.append(key, String(value)); } } + +export async function normalizeBlob( + value: Pick, +): Promise { + if (value instanceof Blob) { + return value; + } + return new Blob([await value.arrayBuffer()], { type: value.type }); +} diff --git a/src/lib/files.ts b/src/lib/files.ts index 0344cd04..6ca6b37d 100644 --- a/src/lib/files.ts +++ b/src/lib/files.ts @@ -80,3 +80,25 @@ export function getContentTypeFromFileName(fileName: string): string | null { return mimeTypes[ext] || null; } + +/** + * Creates a Blob from file content with the given MIME type. + * + * Node.js Buffers are Uint8Array subclasses that may share a pooled + * ArrayBuffer (byteOffset > 0, byteLength < buffer.byteLength). Passing + * such a Buffer directly to `new Blob([buf])` can include the entire + * underlying pool on some runtimes, producing a Blob with extra bytes + * that corrupts multipart uploads. + * + * Copying into a standalone Uint8Array ensures the Blob receives only the + * intended bytes regardless of runtime behaviour. + */ +export function bytesToBlob( + content: Uint8Array | ArrayBuffer | Blob | string, + contentType: string, +): Blob { + if (content instanceof Uint8Array) { + return new Blob([new Uint8Array(content)], { type: contentType }); + } + return new Blob([content as BlobPart], { type: contentType }); +} diff --git a/src/lib/is-plain-object.ts b/src/lib/is-plain-object.ts deleted file mode 100644 index 61070d3d..00000000 --- a/src/lib/is-plain-object.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -/* -MIT License - -Copyright (c) Sindre Sorhus (https://sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -*/ - -// Taken from https://github.com/sindresorhus/is-plain-obj/blob/97f38e8836f86a642cce98fc6ab3058bc36df181/index.js - -export function isPlainObject(value: unknown): value is object { - if (typeof value !== "object" || value === null) { - return false; - } - - const prototype = Object.getPrototypeOf(value); - return ( - (prototype === null || - prototype === Object.prototype || - Object.getPrototypeOf(prototype) === null) && - !(Symbol.toStringTag in value) && - !(Symbol.iterator in value) - ); -} diff --git a/src/lib/matchers.ts b/src/lib/matchers.ts index 41b6095f..ffdb0e03 100644 --- a/src/lib/matchers.ts +++ b/src/lib/matchers.ts @@ -6,7 +6,7 @@ import { ResponseValidationError } from "../sdk/models/errors/responsevalidation import { SDKError } from "../sdk/models/errors/sdkerror.js"; import { ERR, OK, Result } from "../sdk/types/fp.js"; import { matchResponse, matchStatusCode, StatusCodePredicate } from "./http.js"; -import { isPlainObject } from "./is-plain-object.js"; +import { isPlainObject } from "./primitives.js"; export type Encoding = | "jsonl" @@ -248,8 +248,9 @@ export function match( raw = body; break; default: - encoding satisfies never; - throw new Error(`Unsupported response type: ${encoding}`); + throw new Error( + `Unsupported response type: ${encoding satisfies never}`, + ); } if (matcher.enc === "fail") { diff --git a/src/lib/primitives.ts b/src/lib/primitives.ts index d21f1dc4..8ce65db0 100644 --- a/src/lib/primitives.ts +++ b/src/lib/primitives.ts @@ -148,3 +148,19 @@ export function allRequired>( return v as ReturnType>; } + +export function isPlainObject( + value: unknown, +): value is Record { + if (value === null || typeof value !== "object") return false; + if (Object.prototype.toString.call(value) !== "[object Object]") return false; + const proto = Object.getPrototypeOf(value); + if (proto === null || proto === Object.prototype) return true; + // cross-realm plain objects (vm contexts, iframes) inherit from a + // different realm's Object.prototype, which itself has a null prototype + try { + return Object.getPrototypeOf(proto) === null; + } catch { + return false; + } +} diff --git a/src/lib/retries.ts b/src/lib/retries.ts index e3ce9aba..21a647e1 100644 --- a/src/lib/retries.ts +++ b/src/lib/retries.ts @@ -194,6 +194,14 @@ async function retryBackoff( } function retryIntervalFromResponse(res: Response): number { + const retryAfterMsVal = res.headers.get("retry-after-ms"); + if (retryAfterMsVal) { + const parsedMs = Number(retryAfterMsVal); + if (Number.isFinite(parsedMs) && parsedMs >= 0) { + return parsedMs; + } + } + const retryVal = res.headers.get("retry-after") || ""; if (!retryVal) { return 0; diff --git a/src/lib/sdks.ts b/src/lib/sdks.ts index 126029ae..6c0727f0 100644 --- a/src/lib/sdks.ts +++ b/src/lib/sdks.ts @@ -21,9 +21,9 @@ import { isConnectionError, isTimeoutError, matchContentType, - matchStatusCode, } from "./http.js"; import { Logger } from "./logger.js"; +import { combineSignals } from "./primitives.js"; import { retry, RetryConfig } from "./retries.js"; import { SecurityState } from "./security.js"; @@ -124,30 +124,60 @@ export class ClientSDK { if (!base) { return ERR(new InvalidRequestError("No base URL provided for operation")); } - const reqURL = new URL(base); - const inputURL = new URL(path, reqURL); - + const baseURL = new URL(base); + let reqURL: URL; if (path) { - reqURL.pathname += reqURL.pathname.endsWith("/") ? "" : "/"; - reqURL.pathname += inputURL.pathname.replace(/^\/+/, ""); + baseURL.pathname = baseURL.pathname.replace(/\/+$/, "") + "/"; + reqURL = new URL(path, baseURL); + if (!reqURL.search && baseURL.search) { + reqURL.search = baseURL.search; + } + } else { + reqURL = baseURL; } + reqURL.hash = ""; - let finalQuery = query || ""; - - const secQuery: string[] = []; - for (const [k, v] of Object.entries(security?.queryParams || {})) { - const q = encodeForm(k, v, { charEncoding: "percent" }); - if (typeof q !== "undefined") { - secQuery.push(q); + // Appends already-encoded query pairs to a query string, replacing any + // existing pairs with the same key so later sources take precedence. + const mergeQuery = (current: string, additions: string): string => { + if (!additions) { + return current; } - } - if (secQuery.length) { - finalQuery += `&${secQuery.join("&")}`; - } + const additionKeys = new Set( + additions + .split("&") + .filter((pair) => pair !== "") + .map((pair) => pair.split("=")[0] ?? ""), + ); + const kept = current.split("&").filter((pair) => { + return pair !== "" && !additionKeys.has(pair.split("=")[0] ?? ""); + }); + return [...kept, additions].join("&"); + }; + + const encodeQueryRecord = (record: Record): string => { + return Object.entries(record) + .map(([k, v]) => { + if (v == null) { + return undefined; + } + const value = v; + return encodeForm(k, value, { + explode: Array.isArray(value), + charEncoding: "percent", + }); + }) + .filter((pair): pair is string => typeof pair !== "undefined") + .join("&"); + }; + + const finalQuery = [ + query || "", + encodeQueryRecord(security?.queryParams || {}), + ].reduce(mergeQuery, reqURL.search.slice(1)); if (finalQuery) { - const q = finalQuery.startsWith("&") ? finalQuery.slice(1) : finalQuery; - reqURL.search = `?${q}`; + reqURL.search = `?${finalQuery}`; } const headers = new Headers(opHeaders); @@ -193,9 +223,8 @@ export class ClientSDK { ...options?.fetchOptions, ...options, }; - if (!fetchOptions?.signal && conf.timeoutMs && conf.timeoutMs > 0) { - const timeoutSignal = AbortSignal.timeout(conf.timeoutMs); - fetchOptions.signal = timeoutSignal; + if (!fetchOptions?.signal && conf.timeoutMs != null && conf.timeoutMs > 0) { + context.timeoutMs = conf.timeoutMs; } if (conf.body instanceof ReadableStream) { @@ -228,7 +257,7 @@ export class ClientSDK { request: Request, options: { context: HookContext; - errorCodes: number | string | (number | string)[]; + isErrorStatusCode: (statusCode: number) => boolean; retryConfig: RetryConfig; retryCodes: string[]; }, @@ -241,11 +270,20 @@ export class ClientSDK { | UnexpectedClientError > > { - const { context, errorCodes } = options; + const { context, isErrorStatusCode } = options; + const timeoutMs = context.timeoutMs; return retry( async () => { - const req = await this.#hooks.beforeRequest(context, request.clone()); + const cloned = request.clone(); + let attempt = cloned; + if (timeoutMs != null && timeoutMs > 0) { + const timeoutSignal = AbortSignal.timeout(timeoutMs); + const combined = combineSignals(cloned.signal, timeoutSignal) + ?? timeoutSignal; + attempt = new Request(cloned, { signal: combined }); + } + const req = await this.#hooks.beforeRequest(context, attempt); await logRequest(this.#logger, req).catch((e) => this.#logger?.log("Failed to log request:", e) ); @@ -253,7 +291,7 @@ export class ClientSDK { let response = await this.#httpClient.request(req); try { - if (matchStatusCode(response, errorCodes)) { + if (isErrorStatusCode(response.status)) { const result = await this.#hooks.afterError( context, response, @@ -377,8 +415,6 @@ async function logResponse( break; case matchContentType(res, "application/jsonl") || jsonlLikeContentTypeRE.test(ct): - logger.log(await res.clone().text()); - break; case matchContentType(res, "text/event-stream"): logger.log(`<${contentType}>`); break; diff --git a/src/lib/security.ts b/src/lib/security.ts index cf6bf4f1..28d37df1 100644 --- a/src/lib/security.ts +++ b/src/lib/security.ts @@ -197,8 +197,7 @@ export function resolveSecurity( applyBearer(state, spec); break; default: - spec satisfies never; - throw SecurityError.unrecognizedType(type); + throw SecurityError.unrecognizedType((spec satisfies never, type)); } }); @@ -240,8 +239,9 @@ function applyBearer( export function resolveGlobalSecurity( security: Partial | null | undefined, + allowedFields?: number[], ): SecurityState | null { - return resolveSecurity( + let inputs: SecurityInput[][] = [ [ { fieldName: "x-api-key", @@ -249,21 +249,18 @@ export function resolveGlobalSecurity( value: security?.apiKey, }, ], - [ - { - fieldName: "Authorization", - type: "http:bearer", - value: security?.bearer, - }, - ], - [ - { - fieldName: "x-workspace-identifier", - type: "apiKey:header", - value: security?.workspaceIdentifier, - }, - ], - ); + ]; + + if (allowedFields) { + inputs = allowedFields.map((i) => { + if (i < 0 || i >= inputs.length) { + throw new RangeError(`invalid allowedFields index ${i}`); + } + return inputs[i]!; + }); + } + + return resolveSecurity(...inputs); } export async function extractSecurity< diff --git a/src/lib/url.ts b/src/lib/url.ts index f3a8de6c..79e7ce66 100644 --- a/src/lib/url.ts +++ b/src/lib/url.ts @@ -13,21 +13,23 @@ export function pathToFunc( const paramRE = /\{([a-zA-Z0-9_][a-zA-Z0-9_-]*?)\}/g; return function buildURLPath(params: Record = {}): string { - return pathPattern.replace(paramRE, function (_, placeholder) { - if (!hasOwn.call(params, placeholder)) { - throw new Error(`Parameter '${placeholder}' is required`); - } + return pathPattern + .replace(paramRE, function (_, placeholder) { + if (!hasOwn.call(params, placeholder)) { + throw new Error(`Parameter '${placeholder}' is required`); + } - const value = params[placeholder]; - if (typeof value !== "string" && typeof value !== "number") { - throw new Error( - `Parameter '${placeholder}' must be a string or number`, - ); - } + const value = params[placeholder]; + if (typeof value !== "string" && typeof value !== "number") { + throw new Error( + `Parameter '${placeholder}' must be a string or number`, + ); + } - return options?.charEncoding === "percent" - ? encodeURIComponent(`${value}`) - : `${value}`; - }); + return options?.charEncoding === "percent" + ? encodeURIComponent(`${value}`) + : `${value}`; + }) + .replace(/^\/+/, ""); }; } diff --git a/src/mcp-server/cli/start/command.ts b/src/mcp-server/cli/start/command.ts index 4ca9706a..86df9c55 100644 --- a/src/mcp-server/cli/start/command.ts +++ b/src/mcp-server/cli/start/command.ts @@ -44,22 +44,6 @@ export const startCommand = buildCommand({ return z.string().parse(value); }, }, - bearer: { - kind: "parsed", - brief: "Sets the bearer auth field for the API", - optional: true, - parse: (value) => { - return z.string().parse(value); - }, - }, - "workspace-identifier": { - kind: "parsed", - brief: "Sets the workspaceIdentifier auth field for the API", - optional: true, - parse: (value) => { - return z.string().parse(value); - }, - }, "workspace-id": { kind: "parsed", brief: diff --git a/src/mcp-server/cli/start/impl.ts b/src/mcp-server/cli/start/impl.ts index 42cc0b29..906c1618 100644 --- a/src/mcp-server/cli/start/impl.ts +++ b/src/mcp-server/cli/start/impl.ts @@ -18,8 +18,6 @@ interface StartCommandFlags { readonly port: number; readonly tool?: string[]; readonly "api-key"?: string | undefined; - readonly bearer?: string | undefined; - readonly "workspace-identifier"?: string | undefined; readonly "workspace-id"?: SDKOptions["workspaceId"] | undefined; readonly "server-url"?: string; readonly server?: SDKOptions["server"]; @@ -50,11 +48,8 @@ async function startStdio(flags: StartCommandFlags) { const server = createMCPServer({ logger, allowedTools: flags.tool, - security: { - apiKey: flags["api-key"] ?? "", - bearer: flags.bearer ?? "", - workspaceIdentifier: flags["workspace-identifier"] ?? "", - }, + apiKey: flags["api-key"] ?? "", + workspaceId: flags["workspace-id"], serverURL: flags["server-url"], server: flags.server, @@ -75,11 +70,8 @@ async function startSSE(flags: StartCommandFlags) { const mcpServer = createMCPServer({ logger, allowedTools: flags.tool, - security: { - apiKey: flags["api-key"] ?? "", - bearer: flags.bearer ?? "", - workspaceIdentifier: flags["workspace-identifier"] ?? "", - }, + apiKey: flags["api-key"] ?? "", + workspaceId: flags["workspace-id"], serverURL: flags["server-url"], server: flags.server, diff --git a/src/mcp-server/mcp-server.ts b/src/mcp-server/mcp-server.ts index e045f09a..04a0c696 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.5", + currentVersion: "5.0.0-rc.6", }, }); diff --git a/src/mcp-server/server.ts b/src/mcp-server/server.ts index 2e9f67c3..88d47873 100644 --- a/src/mcp-server/server.ts +++ b/src/mcp-server/server.ts @@ -24,90 +24,28 @@ import { tool$artifactsPostTags } from "./tools/artifactsPostTags.js"; import { tool$artifactsPreflight } from "./tools/artifactsPreflight.js"; import { tool$artifactsSetArchived } from "./tools/artifactsSetArchived.js"; import { tool$artifactsSetVisibility } from "./tools/artifactsSetVisibility.js"; -import { tool$authGetAccess } from "./tools/authGetAccess.js"; import { tool$authGetAccessToken } from "./tools/authGetAccessToken.js"; -import { tool$authGetUser } from "./tools/authGetUser.js"; -import { tool$authValidateApiKey } from "./tools/authValidateApiKey.js"; -import { tool$codeSamplesGenerateCodeSamplePreview } from "./tools/codeSamplesGenerateCodeSamplePreview.js"; -import { tool$codeSamplesGenerateCodeSamplePreviewAsync } from "./tools/codeSamplesGenerateCodeSamplePreviewAsync.js"; -import { tool$codeSamplesGet } from "./tools/codeSamplesGet.js"; -import { tool$codeSamplesGetCodeSamplePreviewAsync } from "./tools/codeSamplesGetCodeSamplePreviewAsync.js"; -import { tool$eventsGetEventsByTarget } from "./tools/eventsGetEventsByTarget.js"; -import { tool$eventsGetTargets } from "./tools/eventsGetTargets.js"; -import { tool$eventsGetTargetsDeprecated } from "./tools/eventsGetTargetsDeprecated.js"; -import { tool$eventsGetTargetsSummary } from "./tools/eventsGetTargetsSummary.js"; -import { tool$eventsPost } from "./tools/eventsPost.js"; -import { tool$eventsSearch } from "./tools/eventsSearch.js"; -import { tool$githubCheckAccess } from "./tools/githubCheckAccess.js"; -import { tool$githubCheckPublishingPRs } from "./tools/githubCheckPublishingPRs.js"; -import { tool$githubCheckPublishingSecrets } from "./tools/githubCheckPublishingSecrets.js"; -import { tool$githubConfigureCodeSamples } from "./tools/githubConfigureCodeSamples.js"; -import { tool$githubConfigureMintlifyRepo } from "./tools/githubConfigureMintlifyRepo.js"; -import { tool$githubConfigureTarget } from "./tools/githubConfigureTarget.js"; -import { tool$githubGetAction } from "./tools/githubGetAction.js"; -import { tool$githubGetSetup } from "./tools/githubGetSetup.js"; -import { tool$githubLinkGithub } from "./tools/githubLinkGithub.js"; -import { tool$githubStorePublishingSecrets } from "./tools/githubStorePublishingSecrets.js"; -import { tool$githubTriggerAction } from "./tools/githubTriggerAction.js"; -import { tool$organizationsCreate } from "./tools/organizationsCreate.js"; -import { tool$organizationsCreateBillingAddOns } from "./tools/organizationsCreateBillingAddOns.js"; -import { tool$organizationsCreateFreeTrial } from "./tools/organizationsCreateFreeTrial.js"; -import { tool$organizationsDeleteBillingAddOn } from "./tools/organizationsDeleteBillingAddOn.js"; -import { tool$organizationsGet } from "./tools/organizationsGet.js"; -import { tool$organizationsGetAll } from "./tools/organizationsGetAll.js"; -import { tool$organizationsGetBillingAddOns } from "./tools/organizationsGetBillingAddOns.js"; -import { tool$organizationsGetBillingOperations } from "./tools/organizationsGetBillingOperations.js"; -import { tool$organizationsGetUsage } from "./tools/organizationsGetUsage.js"; -import { tool$publishingTokensCreate } from "./tools/publishingTokensCreate.js"; -import { tool$publishingTokensDelete } from "./tools/publishingTokensDelete.js"; -import { tool$publishingTokensGet } from "./tools/publishingTokensGet.js"; -import { tool$publishingTokensList } from "./tools/publishingTokensList.js"; -import { tool$publishingTokensResolveMetadata } from "./tools/publishingTokensResolveMetadata.js"; -import { tool$publishingTokensResolveTarget } from "./tools/publishingTokensResolveTarget.js"; -import { tool$publishingTokensUpdate } from "./tools/publishingTokensUpdate.js"; -import { tool$reportsGetChangesReportSignedUrl } from "./tools/reportsGetChangesReportSignedUrl.js"; -import { tool$reportsGetLintingReportSignedUrl } from "./tools/reportsGetLintingReportSignedUrl.js"; -import { tool$reportsUploadReport } from "./tools/reportsUploadReport.js"; -import { tool$schemaStoreCreateSchemaStoreItem } from "./tools/schemaStoreCreateSchemaStoreItem.js"; -import { tool$shortURLsCreate } from "./tools/shortURLsCreate.js"; +import { tool$organizationsHandleCheckoutCallback } from "./tools/organizationsHandleCheckoutCallback.js"; import { tool$subscriptionsActivateSubscriptionNamespace } from "./tools/subscriptionsActivateSubscriptionNamespace.js"; import { tool$subscriptionsIgnoreSubscriptionNamespace } from "./tools/subscriptionsIgnoreSubscriptionNamespace.js"; -import { tool$suggestSuggest } from "./tools/suggestSuggest.js"; -import { tool$suggestSuggestItems } from "./tools/suggestSuggestItems.js"; -import { tool$suggestSuggestOpenAPI } from "./tools/suggestSuggestOpenAPI.js"; -import { tool$suggestSuggestOpenAPIRegistry } from "./tools/suggestSuggestOpenAPIRegistry.js"; -import { tool$workspacesCreate } from "./tools/workspacesCreate.js"; -import { tool$workspacesCreateToken } from "./tools/workspacesCreateToken.js"; -import { tool$workspacesDeleteToken } from "./tools/workspacesDeleteToken.js"; -import { tool$workspacesGet } from "./tools/workspacesGet.js"; -import { tool$workspacesGetAll } from "./tools/workspacesGetAll.js"; -import { tool$workspacesGetByID } from "./tools/workspacesGetByID.js"; -import { tool$workspacesGetFeatureFlags } from "./tools/workspacesGetFeatureFlags.js"; -import { tool$workspacesGetSettings } from "./tools/workspacesGetSettings.js"; -import { tool$workspacesGetTeam } from "./tools/workspacesGetTeam.js"; -import { tool$workspacesGetTokens } from "./tools/workspacesGetTokens.js"; -import { tool$workspacesGrantAccess } from "./tools/workspacesGrantAccess.js"; -import { tool$workspacesRevokeAccess } from "./tools/workspacesRevokeAccess.js"; -import { tool$workspacesSetFeatureFlags } from "./tools/workspacesSetFeatureFlags.js"; -import { tool$workspacesUpdate } from "./tools/workspacesUpdate.js"; -import { tool$workspacesUpdateSettings } from "./tools/workspacesUpdateSettings.js"; +import { tool$webhooksHandleStripeWebhook } from "./tools/webhooksHandleStripeWebhook.js"; export function createMCPServer(deps: { logger: ConsoleLogger; allowedTools?: string[] | undefined; scopes?: MCPScope[] | undefined; serverURL?: string | undefined; - security?: SDKOptions["security"] | undefined; + apiKey?: SDKOptions["apiKey"] | undefined; workspaceId?: SDKOptions["workspaceId"] | undefined; server?: SDKOptions["server"] | undefined; }) { const server = new McpServer({ name: "Speakeasy", - version: "5.0.0-rc.5", + version: "5.0.0-rc.6", }); const client = new SpeakeasyCore({ - security: deps.security, + apiKey: deps.apiKey, workspaceId: deps.workspaceId, serverURL: deps.serverURL, server: deps.server, @@ -145,73 +83,11 @@ export function createMCPServer(deps: { tool(tool$artifactsPreflight); tool(tool$artifactsSetArchived); tool(tool$artifactsSetVisibility); - tool(tool$authGetAccess); tool(tool$authGetAccessToken); - tool(tool$authGetUser); - tool(tool$authValidateApiKey); - tool(tool$codeSamplesGenerateCodeSamplePreview); - tool(tool$codeSamplesGenerateCodeSamplePreviewAsync); - tool(tool$codeSamplesGet); - tool(tool$codeSamplesGetCodeSamplePreviewAsync); - tool(tool$githubCheckAccess); - tool(tool$githubCheckPublishingPRs); - tool(tool$githubCheckPublishingSecrets); - tool(tool$githubConfigureCodeSamples); - tool(tool$githubConfigureMintlifyRepo); - tool(tool$githubConfigureTarget); - tool(tool$githubGetAction); - tool(tool$githubGetSetup); - tool(tool$githubLinkGithub); - tool(tool$githubStorePublishingSecrets); - tool(tool$githubTriggerAction); - tool(tool$organizationsCreate); - tool(tool$organizationsCreateBillingAddOns); - tool(tool$organizationsCreateFreeTrial); - tool(tool$organizationsDeleteBillingAddOn); - tool(tool$organizationsGet); - tool(tool$organizationsGetAll); - tool(tool$organizationsGetBillingAddOns); - tool(tool$organizationsGetBillingOperations); - tool(tool$organizationsGetUsage); - tool(tool$publishingTokensCreate); - tool(tool$publishingTokensDelete); - tool(tool$publishingTokensGet); - tool(tool$publishingTokensList); - tool(tool$publishingTokensResolveMetadata); - tool(tool$publishingTokensResolveTarget); - tool(tool$publishingTokensUpdate); - tool(tool$reportsGetChangesReportSignedUrl); - tool(tool$reportsGetLintingReportSignedUrl); - tool(tool$reportsUploadReport); - tool(tool$schemaStoreCreateSchemaStoreItem); - tool(tool$shortURLsCreate); + tool(tool$organizationsHandleCheckoutCallback); tool(tool$subscriptionsActivateSubscriptionNamespace); tool(tool$subscriptionsIgnoreSubscriptionNamespace); - tool(tool$suggestSuggest); - tool(tool$suggestSuggestItems); - tool(tool$suggestSuggestOpenAPI); - tool(tool$suggestSuggestOpenAPIRegistry); - tool(tool$workspacesCreate); - tool(tool$workspacesCreateToken); - tool(tool$workspacesDeleteToken); - tool(tool$workspacesGet); - tool(tool$workspacesGetAll); - tool(tool$workspacesGetByID); - tool(tool$workspacesGetFeatureFlags); - tool(tool$workspacesGetSettings); - tool(tool$workspacesGetTeam); - tool(tool$workspacesGetTokens); - tool(tool$workspacesGrantAccess); - tool(tool$workspacesRevokeAccess); - tool(tool$workspacesSetFeatureFlags); - tool(tool$workspacesUpdate); - tool(tool$workspacesUpdateSettings); - tool(tool$eventsGetEventsByTarget); - tool(tool$eventsGetTargets); - tool(tool$eventsGetTargetsDeprecated); - tool(tool$eventsGetTargetsSummary); - tool(tool$eventsPost); - tool(tool$eventsSearch); + tool(tool$webhooksHandleStripeWebhook); return server; } diff --git a/src/mcp-server/shared.ts b/src/mcp-server/shared.ts index 3e94144d..bef212f0 100644 --- a/src/mcp-server/shared.ts +++ b/src/mcp-server/shared.ts @@ -16,12 +16,12 @@ export async function consumeStream( stream: ReadableStream, ): Promise { const reader = stream.getReader(); - const chunks: Uint8Array[] = []; + const chunks: ArrayBuffer[] = []; try { while (true) { const { done, value } = await reader.read(); - if (value != null) chunks.push(value); + if (value != null) chunks.push(new Uint8Array(value).buffer); if (done) break; } } finally { diff --git a/src/mcp-server/tools/authGetAccess.ts b/src/mcp-server/tools/authGetAccess.ts deleted file mode 100644 index 07623cca..00000000 --- a/src/mcp-server/tools/authGetAccess.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { authGetAccess } from "../../funcs/authGetAccess.js"; -import * as operations from "../../sdk/models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.GetWorkspaceAccessRequest$inboundSchema, -}; - -export const tool$authGetAccess: ToolDefinition = { - name: "auth-get-access", - description: `Get access allowances for a particular workspace - -Checks if generation is permitted for a particular run of the CLI`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await authGetAccess( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/src/mcp-server/tools/authGetUser.ts b/src/mcp-server/tools/authGetUser.ts deleted file mode 100644 index 7f1205dd..00000000 --- a/src/mcp-server/tools/authGetUser.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { authGetUser } from "../../funcs/authGetUser.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -export const tool$authGetUser: ToolDefinition = { - name: "auth-get-user", - description: `Get information about the current user.`, - tool: async (client, ctx) => { - const [result, apiCall] = await authGetUser( - client, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/src/mcp-server/tools/authValidateApiKey.ts b/src/mcp-server/tools/authValidateApiKey.ts deleted file mode 100644 index 479fc5af..00000000 --- a/src/mcp-server/tools/authValidateApiKey.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { authValidateApiKey } from "../../funcs/authValidateApiKey.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -export const tool$authValidateApiKey: ToolDefinition = { - name: "auth-validate-api-key", - description: `Validate the current api key.`, - tool: async (client, ctx) => { - const [result, apiCall] = await authValidateApiKey( - client, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/src/mcp-server/tools/codeSamplesGenerateCodeSamplePreview.ts b/src/mcp-server/tools/codeSamplesGenerateCodeSamplePreview.ts deleted file mode 100644 index 77dda3ed..00000000 --- a/src/mcp-server/tools/codeSamplesGenerateCodeSamplePreview.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { codeSamplesGenerateCodeSamplePreview } from "../../funcs/codeSamplesGenerateCodeSamplePreview.js"; -import * as shared from "../../sdk/models/shared/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: shared.CodeSampleSchemaInput$inboundSchema, -}; - -export const tool$codeSamplesGenerateCodeSamplePreview: ToolDefinition< - typeof args -> = { - name: "code-samples-generate-code-sample-preview", - description: - `Generate Code Sample previews from a file and configuration parameters. - -This endpoint generates Code Sample previews from a file and configuration parameters.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await codeSamplesGenerateCodeSamplePreview( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/src/mcp-server/tools/codeSamplesGenerateCodeSamplePreviewAsync.ts b/src/mcp-server/tools/codeSamplesGenerateCodeSamplePreviewAsync.ts deleted file mode 100644 index 5d5c5f41..00000000 --- a/src/mcp-server/tools/codeSamplesGenerateCodeSamplePreviewAsync.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { codeSamplesGenerateCodeSamplePreviewAsync } from "../../funcs/codeSamplesGenerateCodeSamplePreviewAsync.js"; -import * as shared from "../../sdk/models/shared/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: shared.CodeSampleSchemaInput$inboundSchema, -}; - -export const tool$codeSamplesGenerateCodeSamplePreviewAsync: ToolDefinition< - typeof args -> = { - name: "code-samples-generate-code-sample-preview-async", - description: - `Initiate asynchronous Code Sample preview generation from a file and configuration parameters, receiving an async JobID response for polling. - -This endpoint generates Code Sample previews from a file and configuration parameters, receiving an async JobID response for polling.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await codeSamplesGenerateCodeSamplePreviewAsync( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/src/mcp-server/tools/codeSamplesGet.ts b/src/mcp-server/tools/codeSamplesGet.ts deleted file mode 100644 index 9167de7a..00000000 --- a/src/mcp-server/tools/codeSamplesGet.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { codeSamplesGet } from "../../funcs/codeSamplesGet.js"; -import * as operations from "../../sdk/models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.GetCodeSamplesRequest$inboundSchema, -}; - -export const tool$codeSamplesGet: ToolDefinition = { - name: "code-samples-get", - description: `Retrieve usage snippets - -Retrieve usage snippets from an OpenAPI document stored in the registry. Supports filtering by language and operation ID.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await codeSamplesGet( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/src/mcp-server/tools/codeSamplesGetCodeSamplePreviewAsync.ts b/src/mcp-server/tools/codeSamplesGetCodeSamplePreviewAsync.ts deleted file mode 100644 index ddde7d03..00000000 --- a/src/mcp-server/tools/codeSamplesGetCodeSamplePreviewAsync.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { codeSamplesGetCodeSamplePreviewAsync } from "../../funcs/codeSamplesGetCodeSamplePreviewAsync.js"; -import * as operations from "../../sdk/models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.GetCodeSamplePreviewAsyncRequest$inboundSchema, -}; - -export const tool$codeSamplesGetCodeSamplePreviewAsync: ToolDefinition< - typeof args -> = { - name: "code-samples-get-code-sample-preview-async", - description: - `Poll for the result of an asynchronous Code Sample preview generation. - -Poll for the result of an asynchronous Code Sample preview generation.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await codeSamplesGetCodeSamplePreviewAsync( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/src/mcp-server/tools/eventsGetEventsByTarget.ts b/src/mcp-server/tools/eventsGetEventsByTarget.ts deleted file mode 100644 index c04bcc44..00000000 --- a/src/mcp-server/tools/eventsGetEventsByTarget.ts +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { eventsGetEventsByTarget } from "../../funcs/eventsGetEventsByTarget.js"; -import * as operations from "../../sdk/models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.GetWorkspaceEventsByTargetRequest$inboundSchema, -}; - -export const tool$eventsGetEventsByTarget: ToolDefinition = { - name: "events-get-events-by-target", - description: `Load recent events for a particular workspace`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await eventsGetEventsByTarget( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/src/mcp-server/tools/eventsGetTargets.ts b/src/mcp-server/tools/eventsGetTargets.ts deleted file mode 100644 index e4a15982..00000000 --- a/src/mcp-server/tools/eventsGetTargets.ts +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { eventsGetTargets } from "../../funcs/eventsGetTargets.js"; -import * as operations from "../../sdk/models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.GetWorkspaceTargetsRequest$inboundSchema, -}; - -export const tool$eventsGetTargets: ToolDefinition = { - name: "events-get-targets", - description: `Load targets for a particular workspace`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await eventsGetTargets( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/src/mcp-server/tools/eventsGetTargetsDeprecated.ts b/src/mcp-server/tools/eventsGetTargetsDeprecated.ts deleted file mode 100644 index 4455a89e..00000000 --- a/src/mcp-server/tools/eventsGetTargetsDeprecated.ts +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { eventsGetTargetsDeprecated } from "../../funcs/eventsGetTargetsDeprecated.js"; -import * as operations from "../../sdk/models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.GetWorkspaceTargetsDeprecatedRequest$inboundSchema, -}; - -export const tool$eventsGetTargetsDeprecated: ToolDefinition = { - name: "events-get-targets-deprecated", - description: `Load targets for a particular workspace`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await eventsGetTargetsDeprecated( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/src/mcp-server/tools/eventsGetTargetsSummary.ts b/src/mcp-server/tools/eventsGetTargetsSummary.ts deleted file mode 100644 index f6d764ce..00000000 --- a/src/mcp-server/tools/eventsGetTargetsSummary.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { eventsGetTargetsSummary } from "../../funcs/eventsGetTargetsSummary.js"; -import * as operations from "../../sdk/models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.GetWorkspaceTargetsSummaryRequest$inboundSchema, -}; - -export const tool$eventsGetTargetsSummary: ToolDefinition = { - name: "events-get-targets-summary", - description: - `Load a lean summary of targets for a workspace with pagination. Returns only essential fields needed by the dashboard UI.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await eventsGetTargetsSummary( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value.result; - - return formatResult(value, apiCall); - }, -}; diff --git a/src/mcp-server/tools/eventsPost.ts b/src/mcp-server/tools/eventsPost.ts deleted file mode 100644 index c902b8bd..00000000 --- a/src/mcp-server/tools/eventsPost.ts +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { eventsPost } from "../../funcs/eventsPost.js"; -import * as operations from "../../sdk/models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.PostWorkspaceEventsRequest$inboundSchema, -}; - -export const tool$eventsPost: ToolDefinition = { - name: "events-post", - description: `Post events for a specific workspace - -Sends an array of events to be stored for a particular workspace.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await eventsPost( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - return formatResult(void 0, apiCall); - }, -}; diff --git a/src/mcp-server/tools/eventsSearch.ts b/src/mcp-server/tools/eventsSearch.ts deleted file mode 100644 index f33a4efe..00000000 --- a/src/mcp-server/tools/eventsSearch.ts +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { eventsSearch } from "../../funcs/eventsSearch.js"; -import * as operations from "../../sdk/models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.SearchWorkspaceEventsRequest$inboundSchema, -}; - -export const tool$eventsSearch: ToolDefinition = { - name: "events-search", - description: `Search events for a particular workspace by any field`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await eventsSearch( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/src/mcp-server/tools/githubCheckAccess.ts b/src/mcp-server/tools/githubCheckAccess.ts deleted file mode 100644 index f0b7c291..00000000 --- a/src/mcp-server/tools/githubCheckAccess.ts +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { githubCheckAccess } from "../../funcs/githubCheckAccess.js"; -import * as operations from "../../sdk/models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.CheckGithubAccessRequest$inboundSchema, -}; - -export const tool$githubCheckAccess: ToolDefinition = { - name: "github-check-access", - description: ``, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await githubCheckAccess( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - return formatResult(void 0, apiCall); - }, -}; diff --git a/src/mcp-server/tools/githubCheckPublishingPRs.ts b/src/mcp-server/tools/githubCheckPublishingPRs.ts deleted file mode 100644 index 788f5f74..00000000 --- a/src/mcp-server/tools/githubCheckPublishingPRs.ts +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { githubCheckPublishingPRs } from "../../funcs/githubCheckPublishingPRs.js"; -import * as operations from "../../sdk/models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.GithubCheckPublishingPRsRequest$inboundSchema, -}; - -export const tool$githubCheckPublishingPRs: ToolDefinition = { - name: "github-check-publishing-P-rs", - description: ``, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await githubCheckPublishingPRs( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/src/mcp-server/tools/githubCheckPublishingSecrets.ts b/src/mcp-server/tools/githubCheckPublishingSecrets.ts deleted file mode 100644 index 406db7cf..00000000 --- a/src/mcp-server/tools/githubCheckPublishingSecrets.ts +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { githubCheckPublishingSecrets } from "../../funcs/githubCheckPublishingSecrets.js"; -import * as operations from "../../sdk/models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.GithubCheckPublishingSecretsRequest$inboundSchema, -}; - -export const tool$githubCheckPublishingSecrets: ToolDefinition = { - name: "github-check-publishing-secrets", - description: ``, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await githubCheckPublishingSecrets( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/src/mcp-server/tools/githubConfigureCodeSamples.ts b/src/mcp-server/tools/githubConfigureCodeSamples.ts deleted file mode 100644 index cc8a5021..00000000 --- a/src/mcp-server/tools/githubConfigureCodeSamples.ts +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { githubConfigureCodeSamples } from "../../funcs/githubConfigureCodeSamples.js"; -import * as shared from "../../sdk/models/shared/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: shared.GithubConfigureCodeSamplesRequest$inboundSchema, -}; - -export const tool$githubConfigureCodeSamples: ToolDefinition = { - name: "github-configure-code-samples", - description: ``, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await githubConfigureCodeSamples( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/src/mcp-server/tools/githubConfigureMintlifyRepo.ts b/src/mcp-server/tools/githubConfigureMintlifyRepo.ts deleted file mode 100644 index 4ffab72c..00000000 --- a/src/mcp-server/tools/githubConfigureMintlifyRepo.ts +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { githubConfigureMintlifyRepo } from "../../funcs/githubConfigureMintlifyRepo.js"; -import * as shared from "../../sdk/models/shared/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: shared.GithubConfigureMintlifyRepoRequest$inboundSchema, -}; - -export const tool$githubConfigureMintlifyRepo: ToolDefinition = { - name: "github-configure-mintlify-repo", - description: ``, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await githubConfigureMintlifyRepo( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - return formatResult(void 0, apiCall); - }, -}; diff --git a/src/mcp-server/tools/githubConfigureTarget.ts b/src/mcp-server/tools/githubConfigureTarget.ts deleted file mode 100644 index d2068579..00000000 --- a/src/mcp-server/tools/githubConfigureTarget.ts +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { githubConfigureTarget } from "../../funcs/githubConfigureTarget.js"; -import * as shared from "../../sdk/models/shared/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: shared.GithubConfigureTargetRequest$inboundSchema, -}; - -export const tool$githubConfigureTarget: ToolDefinition = { - name: "github-configure-target", - description: ``, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await githubConfigureTarget( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - return formatResult(void 0, apiCall); - }, -}; diff --git a/src/mcp-server/tools/githubGetAction.ts b/src/mcp-server/tools/githubGetAction.ts deleted file mode 100644 index bca5d81b..00000000 --- a/src/mcp-server/tools/githubGetAction.ts +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { githubGetAction } from "../../funcs/githubGetAction.js"; -import * as operations from "../../sdk/models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.GetGitHubActionRequest$inboundSchema, -}; - -export const tool$githubGetAction: ToolDefinition = { - name: "github-get-action", - description: ``, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await githubGetAction( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/src/mcp-server/tools/githubGetSetup.ts b/src/mcp-server/tools/githubGetSetup.ts deleted file mode 100644 index 0b84ed31..00000000 --- a/src/mcp-server/tools/githubGetSetup.ts +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { githubGetSetup } from "../../funcs/githubGetSetup.js"; -import * as operations from "../../sdk/models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.GetGithubSetupStateRequest$inboundSchema, -}; - -export const tool$githubGetSetup: ToolDefinition = { - name: "github-get-setup", - description: ``, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await githubGetSetup( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/src/mcp-server/tools/githubLinkGithub.ts b/src/mcp-server/tools/githubLinkGithub.ts deleted file mode 100644 index 016e08b5..00000000 --- a/src/mcp-server/tools/githubLinkGithub.ts +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { githubLinkGithub } from "../../funcs/githubLinkGithub.js"; -import * as operations from "../../sdk/models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.LinkGithubAccessRequest$inboundSchema, -}; - -export const tool$githubLinkGithub: ToolDefinition = { - name: "github-link-github", - description: ``, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await githubLinkGithub( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - return formatResult(void 0, apiCall); - }, -}; diff --git a/src/mcp-server/tools/githubStorePublishingSecrets.ts b/src/mcp-server/tools/githubStorePublishingSecrets.ts deleted file mode 100644 index 4ed20eed..00000000 --- a/src/mcp-server/tools/githubStorePublishingSecrets.ts +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { githubStorePublishingSecrets } from "../../funcs/githubStorePublishingSecrets.js"; -import * as shared from "../../sdk/models/shared/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: shared.GithubStorePublishingSecretsRequest$inboundSchema, -}; - -export const tool$githubStorePublishingSecrets: ToolDefinition = { - name: "github-store-publishing-secrets", - description: ``, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await githubStorePublishingSecrets( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - return formatResult(void 0, apiCall); - }, -}; diff --git a/src/mcp-server/tools/githubTriggerAction.ts b/src/mcp-server/tools/githubTriggerAction.ts deleted file mode 100644 index 6652a720..00000000 --- a/src/mcp-server/tools/githubTriggerAction.ts +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { githubTriggerAction } from "../../funcs/githubTriggerAction.js"; -import * as shared from "../../sdk/models/shared/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: shared.GithubTriggerActionRequest$inboundSchema, -}; - -export const tool$githubTriggerAction: ToolDefinition = { - name: "github-trigger-action", - description: ``, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await githubTriggerAction( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - return formatResult(void 0, apiCall); - }, -}; diff --git a/src/mcp-server/tools/organizationsCreate.ts b/src/mcp-server/tools/organizationsCreate.ts deleted file mode 100644 index b3e0163d..00000000 --- a/src/mcp-server/tools/organizationsCreate.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { organizationsCreate } from "../../funcs/organizationsCreate.js"; -import * as shared from "../../sdk/models/shared/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: shared.Organization$inboundSchema, -}; - -export const tool$organizationsCreate: ToolDefinition = { - name: "organizations-create", - description: `Create an organization - -Creates an organization`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await organizationsCreate( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/src/mcp-server/tools/organizationsCreateBillingAddOns.ts b/src/mcp-server/tools/organizationsCreateBillingAddOns.ts deleted file mode 100644 index 12919e24..00000000 --- a/src/mcp-server/tools/organizationsCreateBillingAddOns.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { organizationsCreateBillingAddOns } from "../../funcs/organizationsCreateBillingAddOns.js"; -import * as shared from "../../sdk/models/shared/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: shared.OrganizationBillingAddOnRequest$inboundSchema, -}; - -export const tool$organizationsCreateBillingAddOns: ToolDefinition< - typeof args -> = { - name: "organizations-create-billing-add-ons", - description: `Create billing add ons`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await organizationsCreateBillingAddOns( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/src/mcp-server/tools/organizationsCreateFreeTrial.ts b/src/mcp-server/tools/organizationsCreateFreeTrial.ts deleted file mode 100644 index 7a92d1a3..00000000 --- a/src/mcp-server/tools/organizationsCreateFreeTrial.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { organizationsCreateFreeTrial } from "../../funcs/organizationsCreateFreeTrial.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -export const tool$organizationsCreateFreeTrial: ToolDefinition = { - name: "organizations-create-free-trial", - description: `Create a free trial for an organization - -Creates a free trial for an organization`, - tool: async (client, ctx) => { - const [result, apiCall] = await organizationsCreateFreeTrial( - client, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - return formatResult(void 0, apiCall); - }, -}; diff --git a/src/mcp-server/tools/organizationsDeleteBillingAddOn.ts b/src/mcp-server/tools/organizationsDeleteBillingAddOn.ts deleted file mode 100644 index bdcc7dc4..00000000 --- a/src/mcp-server/tools/organizationsDeleteBillingAddOn.ts +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { organizationsDeleteBillingAddOn } from "../../funcs/organizationsDeleteBillingAddOn.js"; -import * as operations from "../../sdk/models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.DeleteBillingAddOnRequest$inboundSchema, -}; - -export const tool$organizationsDeleteBillingAddOn: ToolDefinition = - { - name: "organizations-delete-billing-add-on", - description: `Delete billing add ons`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await organizationsDeleteBillingAddOn( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - return formatResult(void 0, apiCall); - }, - }; diff --git a/src/mcp-server/tools/organizationsGet.ts b/src/mcp-server/tools/organizationsGet.ts deleted file mode 100644 index e4d466a6..00000000 --- a/src/mcp-server/tools/organizationsGet.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { organizationsGet } from "../../funcs/organizationsGet.js"; -import * as operations from "../../sdk/models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.GetOrganizationRequest$inboundSchema, -}; - -export const tool$organizationsGet: ToolDefinition = { - name: "organizations-get", - description: `Get organization - -Get information about a particular organization.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await organizationsGet( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/src/mcp-server/tools/organizationsGetAll.ts b/src/mcp-server/tools/organizationsGetAll.ts deleted file mode 100644 index 1662163c..00000000 --- a/src/mcp-server/tools/organizationsGetAll.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { organizationsGetAll } from "../../funcs/organizationsGetAll.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -export const tool$organizationsGetAll: ToolDefinition = { - name: "organizations-get-all", - description: `Get organizations for a user - -Returns a list of organizations a user has access too`, - tool: async (client, ctx) => { - const [result, apiCall] = await organizationsGetAll( - client, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/src/mcp-server/tools/organizationsGetBillingAddOns.ts b/src/mcp-server/tools/organizationsGetBillingAddOns.ts deleted file mode 100644 index 0d2c601e..00000000 --- a/src/mcp-server/tools/organizationsGetBillingAddOns.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { organizationsGetBillingAddOns } from "../../funcs/organizationsGetBillingAddOns.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -export const tool$organizationsGetBillingAddOns: ToolDefinition = { - name: "organizations-get-billing-add-ons", - description: `Get billing add ons`, - tool: async (client, ctx) => { - const [result, apiCall] = await organizationsGetBillingAddOns( - client, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/src/mcp-server/tools/organizationsGetBillingOperations.ts b/src/mcp-server/tools/organizationsGetBillingOperations.ts deleted file mode 100644 index ef6a70f9..00000000 --- a/src/mcp-server/tools/organizationsGetBillingOperations.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { organizationsGetBillingOperations } from "../../funcs/organizationsGetBillingOperations.js"; -import * as operations from "../../sdk/models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.GetBillingOperationsRequest$inboundSchema, -}; - -export const tool$organizationsGetBillingOperations: ToolDefinition< - typeof args -> = { - name: "organizations-get-billing-operations", - description: `Get billing operations breakdown for an organization - -Returns a breakdown of billing operations by spec and target for an organization. -The billing formula is: Total = sum(operationIds per spec x targets per spec)`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await organizationsGetBillingOperations( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/src/mcp-server/tools/organizationsGetUsage.ts b/src/mcp-server/tools/organizationsGetUsage.ts deleted file mode 100644 index 92b86f4a..00000000 --- a/src/mcp-server/tools/organizationsGetUsage.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { organizationsGetUsage } from "../../funcs/organizationsGetUsage.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -export const tool$organizationsGetUsage: ToolDefinition = { - name: "organizations-get-usage", - description: `Get billing usage summary for a particular organization - -Returns a billing usage summary by target languages for a particular organization`, - tool: async (client, ctx) => { - const [result, apiCall] = await organizationsGetUsage( - client, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/src/mcp-server/tools/organizationsHandleCheckoutCallback.ts b/src/mcp-server/tools/organizationsHandleCheckoutCallback.ts new file mode 100644 index 00000000..e8fe8c04 --- /dev/null +++ b/src/mcp-server/tools/organizationsHandleCheckoutCallback.ts @@ -0,0 +1,39 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { organizationsHandleCheckoutCallback } from "../../funcs/organizationsHandleCheckoutCallback.js"; +import * as operations from "../../sdk/models/operations/index.js"; +import { formatResult, ToolDefinition } from "../tools.js"; + +const args = { + request: operations.HandleCheckoutCallbackRequest$inboundSchema, +}; + +export const tool$organizationsHandleCheckoutCallback: ToolDefinition< + typeof args +> = { + name: "organizations-handle-checkout-callback", + description: `Checkout callback + +Handles the Stripe checkout success callback. This endpoint is called by Stripe +after a successful checkout, runs reconciliation (idempotent), and redirects +to the original client success URL stored in session metadata.`, + args, + tool: async (client, args, ctx) => { + const [result, apiCall] = await organizationsHandleCheckoutCallback( + client, + args.request, + { fetchOptions: { signal: ctx.signal } }, + ).$inspect(); + + if (!result.ok) { + return { + content: [{ type: "text", text: result.error.message }], + isError: true, + }; + } + + return formatResult(void 0, apiCall); + }, +}; diff --git a/src/mcp-server/tools/publishingTokensCreate.ts b/src/mcp-server/tools/publishingTokensCreate.ts deleted file mode 100644 index 27cf1355..00000000 --- a/src/mcp-server/tools/publishingTokensCreate.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { publishingTokensCreate } from "../../funcs/publishingTokensCreate.js"; -import * as operations from "../../sdk/models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.CreatePublishingTokenRequestBody$inboundSchema.optional(), -}; - -export const tool$publishingTokensCreate: ToolDefinition = { - name: "publishing-tokens-create", - description: `Create a publishing token for a workspace - -Creates a publishing token for the current workspace`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await publishingTokensCreate( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/src/mcp-server/tools/publishingTokensDelete.ts b/src/mcp-server/tools/publishingTokensDelete.ts deleted file mode 100644 index 0af3895e..00000000 --- a/src/mcp-server/tools/publishingTokensDelete.ts +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { publishingTokensDelete } from "../../funcs/publishingTokensDelete.js"; -import * as operations from "../../sdk/models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.DeletePublishingTokenRequest$inboundSchema, -}; - -export const tool$publishingTokensDelete: ToolDefinition = { - name: "publishing-tokens-delete", - description: `Delete a specific publishing token - -Delete a particular publishing token.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await publishingTokensDelete( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - return formatResult(void 0, apiCall); - }, -}; diff --git a/src/mcp-server/tools/publishingTokensGet.ts b/src/mcp-server/tools/publishingTokensGet.ts deleted file mode 100644 index 334dbb32..00000000 --- a/src/mcp-server/tools/publishingTokensGet.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { publishingTokensGet } from "../../funcs/publishingTokensGet.js"; -import * as operations from "../../sdk/models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.GetPublishingTokenByIDRequest$inboundSchema, -}; - -export const tool$publishingTokensGet: ToolDefinition = { - name: "publishing-tokens-get", - description: `Get a specific publishing token - -Get information about a particular publishing token.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await publishingTokensGet( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/src/mcp-server/tools/publishingTokensList.ts b/src/mcp-server/tools/publishingTokensList.ts deleted file mode 100644 index e4bdf991..00000000 --- a/src/mcp-server/tools/publishingTokensList.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { publishingTokensList } from "../../funcs/publishingTokensList.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -export const tool$publishingTokensList: ToolDefinition = { - name: "publishing-tokens-list", - description: `Get publishing tokens for a workspace - -Returns a publishing token for the current workspace`, - tool: async (client, ctx) => { - const [result, apiCall] = await publishingTokensList( - client, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/src/mcp-server/tools/publishingTokensResolveMetadata.ts b/src/mcp-server/tools/publishingTokensResolveMetadata.ts deleted file mode 100644 index 07adad52..00000000 --- a/src/mcp-server/tools/publishingTokensResolveMetadata.ts +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { publishingTokensResolveMetadata } from "../../funcs/publishingTokensResolveMetadata.js"; -import * as operations from "../../sdk/models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.GetPublishingTokenPublicMetadataRequest$inboundSchema, -}; - -export const tool$publishingTokensResolveMetadata: ToolDefinition = - { - name: "publishing-tokens-resolve-metadata", - description: `Get metadata about the token - -Get information about a particular publishing token.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await publishingTokensResolveMetadata( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, - }; diff --git a/src/mcp-server/tools/publishingTokensResolveTarget.ts b/src/mcp-server/tools/publishingTokensResolveTarget.ts deleted file mode 100644 index b4422e09..00000000 --- a/src/mcp-server/tools/publishingTokensResolveTarget.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { publishingTokensResolveTarget } from "../../funcs/publishingTokensResolveTarget.js"; -import * as operations from "../../sdk/models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.GetPublishingTokenTargetByIDRequest$inboundSchema, -}; - -export const tool$publishingTokensResolveTarget: ToolDefinition = { - name: "publishing-tokens-resolve-target", - description: `Get a specific publishing token target - -Get information about a particular publishing token target.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await publishingTokensResolveTarget( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/src/mcp-server/tools/publishingTokensUpdate.ts b/src/mcp-server/tools/publishingTokensUpdate.ts deleted file mode 100644 index 6aa338c0..00000000 --- a/src/mcp-server/tools/publishingTokensUpdate.ts +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { publishingTokensUpdate } from "../../funcs/publishingTokensUpdate.js"; -import * as operations from "../../sdk/models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.UpdatePublishingTokenExpirationRequest$inboundSchema, -}; - -export const tool$publishingTokensUpdate: ToolDefinition = { - name: "publishing-tokens-update", - description: `Updates the validitity period of a publishing token - -Updates the validity period of a particular publishing token.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await publishingTokensUpdate( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - return formatResult(void 0, apiCall); - }, -}; diff --git a/src/mcp-server/tools/reportsGetChangesReportSignedUrl.ts b/src/mcp-server/tools/reportsGetChangesReportSignedUrl.ts deleted file mode 100644 index 576bb03a..00000000 --- a/src/mcp-server/tools/reportsGetChangesReportSignedUrl.ts +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { reportsGetChangesReportSignedUrl } from "../../funcs/reportsGetChangesReportSignedUrl.js"; -import * as operations from "../../sdk/models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.GetChangesReportSignedUrlRequest$inboundSchema, -}; - -export const tool$reportsGetChangesReportSignedUrl: ToolDefinition< - typeof args -> = { - name: "reports-get-changes-report-signed-url", - description: - `Get the signed access url for the change reports for a particular document.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await reportsGetChangesReportSignedUrl( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/src/mcp-server/tools/reportsGetLintingReportSignedUrl.ts b/src/mcp-server/tools/reportsGetLintingReportSignedUrl.ts deleted file mode 100644 index 50b70769..00000000 --- a/src/mcp-server/tools/reportsGetLintingReportSignedUrl.ts +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { reportsGetLintingReportSignedUrl } from "../../funcs/reportsGetLintingReportSignedUrl.js"; -import * as operations from "../../sdk/models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.GetLintingReportSignedUrlRequest$inboundSchema, -}; - -export const tool$reportsGetLintingReportSignedUrl: ToolDefinition< - typeof args -> = { - name: "reports-get-linting-report-signed-url", - description: - `Get the signed access url for the linting reports for a particular document.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await reportsGetLintingReportSignedUrl( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/src/mcp-server/tools/reportsUploadReport.ts b/src/mcp-server/tools/reportsUploadReport.ts deleted file mode 100644 index 4ad94fcc..00000000 --- a/src/mcp-server/tools/reportsUploadReport.ts +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { reportsUploadReport } from "../../funcs/reportsUploadReport.js"; -import * as operations from "../../sdk/models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.UploadReportRequestBody$inboundSchema, -}; - -export const tool$reportsUploadReport: ToolDefinition = { - name: "reports-upload-report", - description: `Upload a report.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await reportsUploadReport( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/src/mcp-server/tools/schemaStoreCreateSchemaStoreItem.ts b/src/mcp-server/tools/schemaStoreCreateSchemaStoreItem.ts deleted file mode 100644 index 504c0a99..00000000 --- a/src/mcp-server/tools/schemaStoreCreateSchemaStoreItem.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { schemaStoreCreateSchemaStoreItem } from "../../funcs/schemaStoreCreateSchemaStoreItem.js"; -import * as operations from "../../sdk/models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.CreateSchemaStoreItemRequestBody$inboundSchema, -}; - -export const tool$schemaStoreCreateSchemaStoreItem: ToolDefinition< - typeof args -> = { - name: "schema-store-create-schema-store-item", - description: `Create a schema in the schema store`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await schemaStoreCreateSchemaStoreItem( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/src/mcp-server/tools/shortURLsCreate.ts b/src/mcp-server/tools/shortURLsCreate.ts deleted file mode 100644 index 083115f5..00000000 --- a/src/mcp-server/tools/shortURLsCreate.ts +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { shortURLsCreate } from "../../funcs/shortURLsCreate.js"; -import * as operations from "../../sdk/models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.CreateRequestBody$inboundSchema, -}; - -export const tool$shortURLsCreate: ToolDefinition = { - name: "short-UR-ls-create", - description: `Shorten a URL.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await shortURLsCreate( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/src/mcp-server/tools/suggestSuggest.ts b/src/mcp-server/tools/suggestSuggest.ts deleted file mode 100644 index 8cb5bac6..00000000 --- a/src/mcp-server/tools/suggestSuggest.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { suggestSuggest } from "../../funcs/suggestSuggest.js"; -import * as operations from "../../sdk/models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.SuggestRequest$inboundSchema, -}; - -export const tool$suggestSuggest: ToolDefinition = { - name: "suggest-suggest", - description: `Generate suggestions for improving an OpenAPI document. - -Get suggestions from an LLM model for improving an OpenAPI document.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await suggestSuggest( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/src/mcp-server/tools/suggestSuggestItems.ts b/src/mcp-server/tools/suggestSuggestItems.ts deleted file mode 100644 index b7a1246c..00000000 --- a/src/mcp-server/tools/suggestSuggestItems.ts +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { suggestSuggestItems } from "../../funcs/suggestSuggestItems.js"; -import * as shared from "../../sdk/models/shared/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: shared.SuggestItemsRequestBody$inboundSchema, -}; - -export const tool$suggestSuggestItems: ToolDefinition = { - name: "suggest-suggest-items", - description: `Generate generic suggestions for a list of items.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await suggestSuggestItems( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/src/mcp-server/tools/suggestSuggestOpenAPI.ts b/src/mcp-server/tools/suggestSuggestOpenAPI.ts deleted file mode 100644 index 619f4294..00000000 --- a/src/mcp-server/tools/suggestSuggestOpenAPI.ts +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { suggestSuggestOpenAPI } from "../../funcs/suggestSuggestOpenAPI.js"; -import * as operations from "../../sdk/models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.SuggestOpenAPIRequest$inboundSchema, -}; - -export const tool$suggestSuggestOpenAPI: ToolDefinition = { - name: "suggest-suggest-open-API", - description: - `(DEPRECATED) Generate suggestions for improving an OpenAPI document. - -Get suggestions from an LLM model for improving an OpenAPI document.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await suggestSuggestOpenAPI( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/src/mcp-server/tools/suggestSuggestOpenAPIRegistry.ts b/src/mcp-server/tools/suggestSuggestOpenAPIRegistry.ts deleted file mode 100644 index 814130e9..00000000 --- a/src/mcp-server/tools/suggestSuggestOpenAPIRegistry.ts +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { suggestSuggestOpenAPIRegistry } from "../../funcs/suggestSuggestOpenAPIRegistry.js"; -import * as operations from "../../sdk/models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.SuggestOpenAPIRegistryRequest$inboundSchema, -}; - -export const tool$suggestSuggestOpenAPIRegistry: ToolDefinition = { - name: "suggest-suggest-open-API-registry", - description: - `Generate suggestions for improving an OpenAPI document stored in the registry. - -Get suggestions from an LLM model for improving an OpenAPI document stored in the registry.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await suggestSuggestOpenAPIRegistry( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/src/mcp-server/tools/workspacesUpdateSettings.ts b/src/mcp-server/tools/webhooksHandleStripeWebhook.ts similarity index 50% rename from src/mcp-server/tools/workspacesUpdateSettings.ts rename to src/mcp-server/tools/webhooksHandleStripeWebhook.ts index c7023f47..354cbeec 100644 --- a/src/mcp-server/tools/workspacesUpdateSettings.ts +++ b/src/mcp-server/tools/webhooksHandleStripeWebhook.ts @@ -2,22 +2,23 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { workspacesUpdateSettings } from "../../funcs/workspacesUpdateSettings.js"; +import { webhooksHandleStripeWebhook } from "../../funcs/webhooksHandleStripeWebhook.js"; import * as operations from "../../sdk/models/operations/index.js"; import { formatResult, ToolDefinition } from "../tools.js"; const args = { - request: operations.UpdateWorkspaceSettingsRequest$inboundSchema, + request: operations.HandleStripeWebhookRequestBody$inboundSchema, }; -export const tool$workspacesUpdateSettings: ToolDefinition = { - name: "workspaces-update-settings", - description: `Update workspace settings +export const tool$webhooksHandleStripeWebhook: ToolDefinition = { + name: "webhooks-handle-stripe-webhook", + description: `Handle Stripe webhook -Update settings about a particular workspace.`, +Receives and processes Stripe webhook events for subscription management. +This endpoint is called by Stripe and uses webhook signature verification instead of API authentication.`, args, tool: async (client, args, ctx) => { - const [result, apiCall] = await workspacesUpdateSettings( + const [result, apiCall] = await webhooksHandleStripeWebhook( client, args.request, { fetchOptions: { signal: ctx.signal } }, diff --git a/src/mcp-server/tools/workspacesCreate.ts b/src/mcp-server/tools/workspacesCreate.ts deleted file mode 100644 index f1572b85..00000000 --- a/src/mcp-server/tools/workspacesCreate.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { workspacesCreate } from "../../funcs/workspacesCreate.js"; -import * as shared from "../../sdk/models/shared/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: shared.Workspace$inboundSchema, -}; - -export const tool$workspacesCreate: ToolDefinition = { - name: "workspaces-create", - description: `Create a workspace - -Creates a workspace`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await workspacesCreate( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/src/mcp-server/tools/workspacesCreateToken.ts b/src/mcp-server/tools/workspacesCreateToken.ts deleted file mode 100644 index 388ad1e3..00000000 --- a/src/mcp-server/tools/workspacesCreateToken.ts +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { workspacesCreateToken } from "../../funcs/workspacesCreateToken.js"; -import * as operations from "../../sdk/models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.CreateWorkspaceTokenRequest$inboundSchema, -}; - -export const tool$workspacesCreateToken: ToolDefinition = { - name: "workspaces-create-token", - description: `Create a token for a particular workspace`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await workspacesCreateToken( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - return formatResult(void 0, apiCall); - }, -}; diff --git a/src/mcp-server/tools/workspacesDeleteToken.ts b/src/mcp-server/tools/workspacesDeleteToken.ts deleted file mode 100644 index 83f01178..00000000 --- a/src/mcp-server/tools/workspacesDeleteToken.ts +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { workspacesDeleteToken } from "../../funcs/workspacesDeleteToken.js"; -import * as operations from "../../sdk/models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.DeleteWorkspaceTokenRequest$inboundSchema, -}; - -export const tool$workspacesDeleteToken: ToolDefinition = { - name: "workspaces-delete-token", - description: `Delete a token for a particular workspace`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await workspacesDeleteToken( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - return formatResult(void 0, apiCall); - }, -}; diff --git a/src/mcp-server/tools/workspacesGet.ts b/src/mcp-server/tools/workspacesGet.ts deleted file mode 100644 index 4adfc599..00000000 --- a/src/mcp-server/tools/workspacesGet.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { workspacesGet } from "../../funcs/workspacesGet.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -export const tool$workspacesGet: ToolDefinition = { - name: "workspaces-get", - description: `Get workspace by context - -Get information about a particular workspace by context.`, - tool: async (client, ctx) => { - const [result, apiCall] = await workspacesGet( - client, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/src/mcp-server/tools/workspacesGetAll.ts b/src/mcp-server/tools/workspacesGetAll.ts deleted file mode 100644 index 2059ea4b..00000000 --- a/src/mcp-server/tools/workspacesGetAll.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { workspacesGetAll } from "../../funcs/workspacesGetAll.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -export const tool$workspacesGetAll: ToolDefinition = { - name: "workspaces-get-all", - description: `Get workspaces for a user - -Returns a list of workspaces a user has access too`, - tool: async (client, ctx) => { - const [result, apiCall] = await workspacesGetAll( - client, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/src/mcp-server/tools/workspacesGetByID.ts b/src/mcp-server/tools/workspacesGetByID.ts deleted file mode 100644 index c865da3b..00000000 --- a/src/mcp-server/tools/workspacesGetByID.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { workspacesGetByID } from "../../funcs/workspacesGetByID.js"; -import * as operations from "../../sdk/models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.GetWorkspaceRequest$inboundSchema, -}; - -export const tool$workspacesGetByID: ToolDefinition = { - name: "workspaces-get-by-ID", - description: `Get workspace - -Get information about a particular workspace.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await workspacesGetByID( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/src/mcp-server/tools/workspacesGetFeatureFlags.ts b/src/mcp-server/tools/workspacesGetFeatureFlags.ts deleted file mode 100644 index 2241ec5c..00000000 --- a/src/mcp-server/tools/workspacesGetFeatureFlags.ts +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { workspacesGetFeatureFlags } from "../../funcs/workspacesGetFeatureFlags.js"; -import * as operations from "../../sdk/models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.GetWorkspaceFeatureFlagsRequest$inboundSchema, -}; - -export const tool$workspacesGetFeatureFlags: ToolDefinition = { - name: "workspaces-get-feature-flags", - description: `Get workspace feature flags`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await workspacesGetFeatureFlags( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/src/mcp-server/tools/workspacesGetSettings.ts b/src/mcp-server/tools/workspacesGetSettings.ts deleted file mode 100644 index 2289360f..00000000 --- a/src/mcp-server/tools/workspacesGetSettings.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { workspacesGetSettings } from "../../funcs/workspacesGetSettings.js"; -import * as operations from "../../sdk/models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.GetWorkspaceSettingsRequest$inboundSchema, -}; - -export const tool$workspacesGetSettings: ToolDefinition = { - name: "workspaces-get-settings", - description: `Get workspace settings - -Get settings about a particular workspace.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await workspacesGetSettings( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/src/mcp-server/tools/workspacesGetTeam.ts b/src/mcp-server/tools/workspacesGetTeam.ts deleted file mode 100644 index 8af39925..00000000 --- a/src/mcp-server/tools/workspacesGetTeam.ts +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { workspacesGetTeam } from "../../funcs/workspacesGetTeam.js"; -import * as operations from "../../sdk/models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.GetWorkspaceTeamRequest$inboundSchema, -}; - -export const tool$workspacesGetTeam: ToolDefinition = { - name: "workspaces-get-team", - description: `Get team members for a particular workspace`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await workspacesGetTeam( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/src/mcp-server/tools/workspacesGetTokens.ts b/src/mcp-server/tools/workspacesGetTokens.ts deleted file mode 100644 index 125a47a8..00000000 --- a/src/mcp-server/tools/workspacesGetTokens.ts +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { workspacesGetTokens } from "../../funcs/workspacesGetTokens.js"; -import * as operations from "../../sdk/models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.GetWorkspaceTokensRequest$inboundSchema, -}; - -export const tool$workspacesGetTokens: ToolDefinition = { - name: "workspaces-get-tokens", - description: `Get tokens for a particular workspace`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await workspacesGetTokens( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/src/mcp-server/tools/workspacesGrantAccess.ts b/src/mcp-server/tools/workspacesGrantAccess.ts deleted file mode 100644 index 4b61487c..00000000 --- a/src/mcp-server/tools/workspacesGrantAccess.ts +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { workspacesGrantAccess } from "../../funcs/workspacesGrantAccess.js"; -import * as operations from "../../sdk/models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.GrantUserAccessToWorkspaceRequest$inboundSchema, -}; - -export const tool$workspacesGrantAccess: ToolDefinition = { - name: "workspaces-grant-access", - description: `Grant a user access to a particular workspace`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await workspacesGrantAccess( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/src/mcp-server/tools/workspacesRevokeAccess.ts b/src/mcp-server/tools/workspacesRevokeAccess.ts deleted file mode 100644 index 1f240e41..00000000 --- a/src/mcp-server/tools/workspacesRevokeAccess.ts +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { workspacesRevokeAccess } from "../../funcs/workspacesRevokeAccess.js"; -import * as operations from "../../sdk/models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.RevokeUserAccessToWorkspaceRequest$inboundSchema, -}; - -export const tool$workspacesRevokeAccess: ToolDefinition = { - name: "workspaces-revoke-access", - description: `Revoke a user's access to a particular workspace`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await workspacesRevokeAccess( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - return formatResult(void 0, apiCall); - }, -}; diff --git a/src/mcp-server/tools/workspacesSetFeatureFlags.ts b/src/mcp-server/tools/workspacesSetFeatureFlags.ts deleted file mode 100644 index d6caab32..00000000 --- a/src/mcp-server/tools/workspacesSetFeatureFlags.ts +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { workspacesSetFeatureFlags } from "../../funcs/workspacesSetFeatureFlags.js"; -import * as shared from "../../sdk/models/shared/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: shared.WorkspaceFeatureFlagRequest$inboundSchema, -}; - -export const tool$workspacesSetFeatureFlags: ToolDefinition = { - name: "workspaces-set-feature-flags", - description: `Set workspace feature flags`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await workspacesSetFeatureFlags( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/src/mcp-server/tools/workspacesUpdate.ts b/src/mcp-server/tools/workspacesUpdate.ts deleted file mode 100644 index 05ddb750..00000000 --- a/src/mcp-server/tools/workspacesUpdate.ts +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { workspacesUpdate } from "../../funcs/workspacesUpdate.js"; -import * as operations from "../../sdk/models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.UpdateWorkspaceDetailsRequest$inboundSchema, -}; - -export const tool$workspacesUpdate: ToolDefinition = { - name: "workspaces-update", - description: `Update workspace details - -Update information about a particular workspace.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await workspacesUpdate( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - return formatResult(void 0, apiCall); - }, -}; diff --git a/src/react-query/authGetAccess.core.ts b/src/react-query/authGetAccess.core.ts index 0538932a..fa7df437 100644 --- a/src/react-query/authGetAccess.core.ts +++ b/src/react-query/authGetAccess.core.ts @@ -19,12 +19,14 @@ export type AuthGetAccessQueryData = shared.AccessDetails; export function prefetchAuthGetAccess( queryClient: QueryClient, client$: SpeakeasyCore, + security: operations.GetWorkspaceAccessSecurity, request: operations.GetWorkspaceAccessRequest, options?: RequestOptions, ): Promise { return queryClient.prefetchQuery({ ...buildAuthGetAccessQuery( client$, + security, request, options, ), @@ -33,6 +35,7 @@ export function prefetchAuthGetAccess( export function buildAuthGetAccessQuery( client$: SpeakeasyCore, + security: operations.GetWorkspaceAccessSecurity, request: operations.GetWorkspaceAccessRequest, options?: RequestOptions, ): { @@ -61,6 +64,7 @@ export function buildAuthGetAccessQuery( return unwrapAsync(authGetAccess( client$, + security, request, mergedOptions, )); diff --git a/src/react-query/authGetAccess.ts b/src/react-query/authGetAccess.ts index c7aad965..160f5dbe 100644 --- a/src/react-query/authGetAccess.ts +++ b/src/react-query/authGetAccess.ts @@ -57,6 +57,7 @@ export type AuthGetAccessQueryError = * Checks if generation is permitted for a particular run of the CLI */ export function useAuthGetAccess( + security: operations.GetWorkspaceAccessSecurity, request: operations.GetWorkspaceAccessRequest, options?: QueryHookOptions, ): UseQueryResult { @@ -64,6 +65,7 @@ export function useAuthGetAccess( return useQuery({ ...buildAuthGetAccessQuery( client, + security, request, options, ), @@ -78,6 +80,7 @@ export function useAuthGetAccess( * Checks if generation is permitted for a particular run of the CLI */ export function useAuthGetAccessSuspense( + security: operations.GetWorkspaceAccessSecurity, request: operations.GetWorkspaceAccessRequest, options?: SuspenseQueryHookOptions< AuthGetAccessQueryData, @@ -88,6 +91,7 @@ export function useAuthGetAccessSuspense( return useSuspenseQuery({ ...buildAuthGetAccessQuery( client, + security, request, options, ), diff --git a/src/react-query/authGetUser.core.ts b/src/react-query/authGetUser.core.ts index b9b489df..7c4896e5 100644 --- a/src/react-query/authGetUser.core.ts +++ b/src/react-query/authGetUser.core.ts @@ -11,6 +11,7 @@ import { SpeakeasyCore } from "../core.js"; import { authGetUser } from "../funcs/authGetUser.js"; import { combineSignals } from "../lib/primitives.js"; import { RequestOptions } from "../lib/sdks.js"; +import * as operations from "../sdk/models/operations/index.js"; import * as shared from "../sdk/models/shared/index.js"; import { unwrapAsync } from "../sdk/types/fp.js"; export type AuthGetUserQueryData = shared.User; @@ -18,11 +19,13 @@ export type AuthGetUserQueryData = shared.User; export function prefetchAuthGetUser( queryClient: QueryClient, client$: SpeakeasyCore, + security: operations.GetUserSecurity, options?: RequestOptions, ): Promise { return queryClient.prefetchQuery({ ...buildAuthGetUserQuery( client$, + security, options, ), }); @@ -30,6 +33,7 @@ export function prefetchAuthGetUser( export function buildAuthGetUserQuery( client$: SpeakeasyCore, + security: operations.GetUserSecurity, options?: RequestOptions, ): { queryKey: QueryKey; @@ -53,6 +57,7 @@ export function buildAuthGetUserQuery( return unwrapAsync(authGetUser( client$, + security, mergedOptions, )); }, diff --git a/src/react-query/authGetUser.ts b/src/react-query/authGetUser.ts index 6b64c97f..d0ac363c 100644 --- a/src/react-query/authGetUser.ts +++ b/src/react-query/authGetUser.ts @@ -21,6 +21,7 @@ import * as errors from "../sdk/models/errors/index.js"; import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; import { SpeakeasyError } from "../sdk/models/errors/speakeasyerror.js"; +import * as operations from "../sdk/models/operations/index.js"; import { useSpeakeasyContext } from "./_context.js"; import { QueryHookOptions, SuspenseQueryHookOptions } from "./_types.js"; import { @@ -51,12 +52,14 @@ export type AuthGetUserQueryError = * Get information about the current user. */ export function useAuthGetUser( + security: operations.GetUserSecurity, options?: QueryHookOptions, ): UseQueryResult { const client = useSpeakeasyContext(); return useQuery({ ...buildAuthGetUserQuery( client, + security, options, ), ...options, @@ -67,6 +70,7 @@ export function useAuthGetUser( * Get information about the current user. */ export function useAuthGetUserSuspense( + security: operations.GetUserSecurity, options?: SuspenseQueryHookOptions< AuthGetUserQueryData, AuthGetUserQueryError @@ -76,6 +80,7 @@ export function useAuthGetUserSuspense( return useSuspenseQuery({ ...buildAuthGetUserQuery( client, + security, options, ), ...options, diff --git a/src/react-query/authValidateApiKey.core.ts b/src/react-query/authValidateApiKey.core.ts index 1028a0e8..88ac122e 100644 --- a/src/react-query/authValidateApiKey.core.ts +++ b/src/react-query/authValidateApiKey.core.ts @@ -11,6 +11,7 @@ import { SpeakeasyCore } from "../core.js"; import { authValidateApiKey } from "../funcs/authValidateApiKey.js"; import { combineSignals } from "../lib/primitives.js"; import { RequestOptions } from "../lib/sdks.js"; +import * as operations from "../sdk/models/operations/index.js"; import * as shared from "../sdk/models/shared/index.js"; import { unwrapAsync } from "../sdk/types/fp.js"; export type AuthValidateApiKeyQueryData = shared.ApiKeyDetails; @@ -18,11 +19,13 @@ export type AuthValidateApiKeyQueryData = shared.ApiKeyDetails; export function prefetchAuthValidateApiKey( queryClient: QueryClient, client$: SpeakeasyCore, + security: operations.ValidateApiKeySecurity, options?: RequestOptions, ): Promise { return queryClient.prefetchQuery({ ...buildAuthValidateApiKeyQuery( client$, + security, options, ), }); @@ -30,6 +33,7 @@ export function prefetchAuthValidateApiKey( export function buildAuthValidateApiKeyQuery( client$: SpeakeasyCore, + security: operations.ValidateApiKeySecurity, options?: RequestOptions, ): { queryKey: QueryKey; @@ -55,6 +59,7 @@ export function buildAuthValidateApiKeyQuery( return unwrapAsync(authValidateApiKey( client$, + security, mergedOptions, )); }, diff --git a/src/react-query/authValidateApiKey.ts b/src/react-query/authValidateApiKey.ts index 725d2263..3325f221 100644 --- a/src/react-query/authValidateApiKey.ts +++ b/src/react-query/authValidateApiKey.ts @@ -21,6 +21,7 @@ import * as errors from "../sdk/models/errors/index.js"; import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; import { SpeakeasyError } from "../sdk/models/errors/speakeasyerror.js"; +import * as operations from "../sdk/models/operations/index.js"; import { useSpeakeasyContext } from "./_context.js"; import { QueryHookOptions, SuspenseQueryHookOptions } from "./_types.js"; import { @@ -51,6 +52,7 @@ export type AuthValidateApiKeyQueryError = * Validate the current api key. */ export function useAuthValidateApiKey( + security: operations.ValidateApiKeySecurity, options?: QueryHookOptions< AuthValidateApiKeyQueryData, AuthValidateApiKeyQueryError @@ -60,6 +62,7 @@ export function useAuthValidateApiKey( return useQuery({ ...buildAuthValidateApiKeyQuery( client, + security, options, ), ...options, @@ -70,6 +73,7 @@ export function useAuthValidateApiKey( * Validate the current api key. */ export function useAuthValidateApiKeySuspense( + security: operations.ValidateApiKeySecurity, options?: SuspenseQueryHookOptions< AuthValidateApiKeyQueryData, AuthValidateApiKeyQueryError @@ -82,6 +86,7 @@ export function useAuthValidateApiKeySuspense( return useSuspenseQuery({ ...buildAuthValidateApiKeyQuery( client, + security, options, ), ...options, diff --git a/src/react-query/codeSamplesGenerateCodeSamplePreview.ts b/src/react-query/codeSamplesGenerateCodeSamplePreview.ts index dd1b6d23..da0e733a 100644 --- a/src/react-query/codeSamplesGenerateCodeSamplePreview.ts +++ b/src/react-query/codeSamplesGenerateCodeSamplePreview.ts @@ -22,12 +22,14 @@ import * as errors from "../sdk/models/errors/index.js"; import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; import { SpeakeasyError } from "../sdk/models/errors/speakeasyerror.js"; +import * as operations from "../sdk/models/operations/index.js"; import * as shared from "../sdk/models/shared/index.js"; import { unwrapAsync } from "../sdk/types/fp.js"; import { useSpeakeasyContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type CodeSamplesGenerateCodeSamplePreviewMutationVariables = { + security: operations.GenerateCodeSamplePreviewSecurity; request: shared.CodeSampleSchemaInput; options?: RequestOptions; }; @@ -90,6 +92,7 @@ export function buildCodeSamplesGenerateCodeSamplePreviewMutation( return { mutationKey: mutationKeyCodeSamplesGenerateCodeSamplePreview(), mutationFn: function codeSamplesGenerateCodeSamplePreviewMutationFn({ + security, request, options, }): Promise { @@ -107,6 +110,7 @@ export function buildCodeSamplesGenerateCodeSamplePreviewMutation( }; return unwrapAsync(codeSamplesGenerateCodeSamplePreview( client$, + security, request, mergedOptions, )); diff --git a/src/react-query/codeSamplesGenerateCodeSamplePreviewAsync.ts b/src/react-query/codeSamplesGenerateCodeSamplePreviewAsync.ts index 124fe3e7..b0c12cce 100644 --- a/src/react-query/codeSamplesGenerateCodeSamplePreviewAsync.ts +++ b/src/react-query/codeSamplesGenerateCodeSamplePreviewAsync.ts @@ -29,6 +29,7 @@ import { useSpeakeasyContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type CodeSamplesGenerateCodeSamplePreviewAsyncMutationVariables = { + security: operations.GenerateCodeSamplePreviewAsyncSecurity; request: shared.CodeSampleSchemaInput; options?: RequestOptions; }; @@ -91,6 +92,7 @@ export function buildCodeSamplesGenerateCodeSamplePreviewAsyncMutation( return { mutationKey: mutationKeyCodeSamplesGenerateCodeSamplePreviewAsync(), mutationFn: function codeSamplesGenerateCodeSamplePreviewAsyncMutationFn({ + security, request, options, }): Promise { @@ -108,6 +110,7 @@ export function buildCodeSamplesGenerateCodeSamplePreviewAsyncMutation( }; return unwrapAsync(codeSamplesGenerateCodeSamplePreviewAsync( client$, + security, request, mergedOptions, )); diff --git a/src/react-query/codeSamplesGet.core.ts b/src/react-query/codeSamplesGet.core.ts index b46ce1cc..5578ac7f 100644 --- a/src/react-query/codeSamplesGet.core.ts +++ b/src/react-query/codeSamplesGet.core.ts @@ -19,12 +19,14 @@ export type CodeSamplesGetQueryData = shared.UsageSnippets; export function prefetchCodeSamplesGet( queryClient: QueryClient, client$: SpeakeasyCore, + security: operations.GetCodeSamplesSecurity, request: operations.GetCodeSamplesRequest, options?: RequestOptions, ): Promise { return queryClient.prefetchQuery({ ...buildCodeSamplesGetQuery( client$, + security, request, options, ), @@ -33,6 +35,7 @@ export function prefetchCodeSamplesGet( export function buildCodeSamplesGetQuery( client$: SpeakeasyCore, + security: operations.GetCodeSamplesSecurity, request: operations.GetCodeSamplesRequest, options?: RequestOptions, ): { @@ -62,6 +65,7 @@ export function buildCodeSamplesGetQuery( return unwrapAsync(codeSamplesGet( client$, + security, request, mergedOptions, )); diff --git a/src/react-query/codeSamplesGet.ts b/src/react-query/codeSamplesGet.ts index 60b0b6be..ad55f160 100644 --- a/src/react-query/codeSamplesGet.ts +++ b/src/react-query/codeSamplesGet.ts @@ -59,6 +59,7 @@ export type CodeSamplesGetQueryError = * Retrieve usage snippets from an OpenAPI document stored in the registry. Supports filtering by language and operation ID. */ export function useCodeSamplesGet( + security: operations.GetCodeSamplesSecurity, request: operations.GetCodeSamplesRequest, options?: QueryHookOptions, ): UseQueryResult { @@ -66,6 +67,7 @@ export function useCodeSamplesGet( return useQuery({ ...buildCodeSamplesGetQuery( client, + security, request, options, ), @@ -80,6 +82,7 @@ export function useCodeSamplesGet( * Retrieve usage snippets from an OpenAPI document stored in the registry. Supports filtering by language and operation ID. */ export function useCodeSamplesGetSuspense( + security: operations.GetCodeSamplesSecurity, request: operations.GetCodeSamplesRequest, options?: SuspenseQueryHookOptions< CodeSamplesGetQueryData, @@ -90,6 +93,7 @@ export function useCodeSamplesGetSuspense( return useSuspenseQuery({ ...buildCodeSamplesGetQuery( client, + security, request, options, ), diff --git a/src/react-query/codeSamplesGetCodeSamplePreviewAsync.core.ts b/src/react-query/codeSamplesGetCodeSamplePreviewAsync.core.ts index 327f020f..75aa0999 100644 --- a/src/react-query/codeSamplesGetCodeSamplePreviewAsync.core.ts +++ b/src/react-query/codeSamplesGetCodeSamplePreviewAsync.core.ts @@ -19,12 +19,14 @@ export type CodeSamplesGetCodeSamplePreviewAsyncQueryData = export function prefetchCodeSamplesGetCodeSamplePreviewAsync( queryClient: QueryClient, client$: SpeakeasyCore, + security: operations.GetCodeSamplePreviewAsyncSecurity, request: operations.GetCodeSamplePreviewAsyncRequest, options?: RequestOptions, ): Promise { return queryClient.prefetchQuery({ ...buildCodeSamplesGetCodeSamplePreviewAsyncQuery( client$, + security, request, options, ), @@ -33,6 +35,7 @@ export function prefetchCodeSamplesGetCodeSamplePreviewAsync( export function buildCodeSamplesGetCodeSamplePreviewAsyncQuery( client$: SpeakeasyCore, + security: operations.GetCodeSamplePreviewAsyncSecurity, request: operations.GetCodeSamplePreviewAsyncRequest, options?: RequestOptions, ): { @@ -59,6 +62,7 @@ export function buildCodeSamplesGetCodeSamplePreviewAsyncQuery( return unwrapAsync(codeSamplesGetCodeSamplePreviewAsync( client$, + security, request, mergedOptions, )); diff --git a/src/react-query/codeSamplesGetCodeSamplePreviewAsync.ts b/src/react-query/codeSamplesGetCodeSamplePreviewAsync.ts index 653475f0..a60cd04f 100644 --- a/src/react-query/codeSamplesGetCodeSamplePreviewAsync.ts +++ b/src/react-query/codeSamplesGetCodeSamplePreviewAsync.ts @@ -59,6 +59,7 @@ export type CodeSamplesGetCodeSamplePreviewAsyncQueryError = * Poll for the result of an asynchronous Code Sample preview generation. */ export function useCodeSamplesGetCodeSamplePreviewAsync( + security: operations.GetCodeSamplePreviewAsyncSecurity, request: operations.GetCodeSamplePreviewAsyncRequest, options?: QueryHookOptions< CodeSamplesGetCodeSamplePreviewAsyncQueryData, @@ -72,6 +73,7 @@ export function useCodeSamplesGetCodeSamplePreviewAsync( return useQuery({ ...buildCodeSamplesGetCodeSamplePreviewAsyncQuery( client, + security, request, options, ), @@ -86,6 +88,7 @@ export function useCodeSamplesGetCodeSamplePreviewAsync( * Poll for the result of an asynchronous Code Sample preview generation. */ export function useCodeSamplesGetCodeSamplePreviewAsyncSuspense( + security: operations.GetCodeSamplePreviewAsyncSecurity, request: operations.GetCodeSamplePreviewAsyncRequest, options?: SuspenseQueryHookOptions< CodeSamplesGetCodeSamplePreviewAsyncQueryData, @@ -99,6 +102,7 @@ export function useCodeSamplesGetCodeSamplePreviewAsyncSuspense( return useSuspenseQuery({ ...buildCodeSamplesGetCodeSamplePreviewAsyncQuery( client, + security, request, options, ), diff --git a/src/react-query/eventsGetEventsByTarget.core.ts b/src/react-query/eventsGetEventsByTarget.core.ts index 2936a1b0..d90f29c8 100644 --- a/src/react-query/eventsGetEventsByTarget.core.ts +++ b/src/react-query/eventsGetEventsByTarget.core.ts @@ -19,12 +19,14 @@ export type EventsGetEventsByTargetQueryData = Array; export function prefetchEventsGetEventsByTarget( queryClient: QueryClient, client$: SpeakeasyCore, + security: operations.GetWorkspaceEventsByTargetSecurity, request: operations.GetWorkspaceEventsByTargetRequest, options?: RequestOptions, ): Promise { return queryClient.prefetchQuery({ ...buildEventsGetEventsByTargetQuery( client$, + security, request, options, ), @@ -33,6 +35,7 @@ export function prefetchEventsGetEventsByTarget( export function buildEventsGetEventsByTargetQuery( client$: SpeakeasyCore, + security: operations.GetWorkspaceEventsByTargetSecurity, request: operations.GetWorkspaceEventsByTargetRequest, options?: RequestOptions, ): { @@ -63,6 +66,7 @@ export function buildEventsGetEventsByTargetQuery( return unwrapAsync(eventsGetEventsByTarget( client$, + security, request, mergedOptions, )); diff --git a/src/react-query/eventsGetEventsByTarget.ts b/src/react-query/eventsGetEventsByTarget.ts index dbbd6fc8..ef631b4e 100644 --- a/src/react-query/eventsGetEventsByTarget.ts +++ b/src/react-query/eventsGetEventsByTarget.ts @@ -56,6 +56,7 @@ export type EventsGetEventsByTargetQueryError = * Load recent events for a particular workspace */ export function useEventsGetEventsByTarget( + security: operations.GetWorkspaceEventsByTargetSecurity, request: operations.GetWorkspaceEventsByTargetRequest, options?: QueryHookOptions< EventsGetEventsByTargetQueryData, @@ -69,6 +70,7 @@ export function useEventsGetEventsByTarget( return useQuery({ ...buildEventsGetEventsByTargetQuery( client, + security, request, options, ), @@ -80,6 +82,7 @@ export function useEventsGetEventsByTarget( * Load recent events for a particular workspace */ export function useEventsGetEventsByTargetSuspense( + security: operations.GetWorkspaceEventsByTargetSecurity, request: operations.GetWorkspaceEventsByTargetRequest, options?: SuspenseQueryHookOptions< EventsGetEventsByTargetQueryData, @@ -93,6 +96,7 @@ export function useEventsGetEventsByTargetSuspense( return useSuspenseQuery({ ...buildEventsGetEventsByTargetQuery( client, + security, request, options, ), diff --git a/src/react-query/eventsGetTargets.core.ts b/src/react-query/eventsGetTargets.core.ts index 6feec3ce..25bc6021 100644 --- a/src/react-query/eventsGetTargets.core.ts +++ b/src/react-query/eventsGetTargets.core.ts @@ -19,12 +19,14 @@ export type EventsGetTargetsQueryData = Array; export function prefetchEventsGetTargets( queryClient: QueryClient, client$: SpeakeasyCore, + security: operations.GetWorkspaceTargetsSecurity, request: operations.GetWorkspaceTargetsRequest, options?: RequestOptions, ): Promise { return queryClient.prefetchQuery({ ...buildEventsGetTargetsQuery( client$, + security, request, options, ), @@ -33,6 +35,7 @@ export function prefetchEventsGetTargets( export function buildEventsGetTargetsQuery( client$: SpeakeasyCore, + security: operations.GetWorkspaceTargetsSecurity, request: operations.GetWorkspaceTargetsRequest, options?: RequestOptions, ): { @@ -61,6 +64,7 @@ export function buildEventsGetTargetsQuery( return unwrapAsync(eventsGetTargets( client$, + security, request, mergedOptions, )); diff --git a/src/react-query/eventsGetTargets.ts b/src/react-query/eventsGetTargets.ts index 9aed8570..35946c07 100644 --- a/src/react-query/eventsGetTargets.ts +++ b/src/react-query/eventsGetTargets.ts @@ -56,6 +56,7 @@ export type EventsGetTargetsQueryError = * Load targets for a particular workspace */ export function useEventsGetTargets( + security: operations.GetWorkspaceTargetsSecurity, request: operations.GetWorkspaceTargetsRequest, options?: QueryHookOptions< EventsGetTargetsQueryData, @@ -66,6 +67,7 @@ export function useEventsGetTargets( return useQuery({ ...buildEventsGetTargetsQuery( client, + security, request, options, ), @@ -77,6 +79,7 @@ export function useEventsGetTargets( * Load targets for a particular workspace */ export function useEventsGetTargetsSuspense( + security: operations.GetWorkspaceTargetsSecurity, request: operations.GetWorkspaceTargetsRequest, options?: SuspenseQueryHookOptions< EventsGetTargetsQueryData, @@ -90,6 +93,7 @@ export function useEventsGetTargetsSuspense( return useSuspenseQuery({ ...buildEventsGetTargetsQuery( client, + security, request, options, ), diff --git a/src/react-query/eventsGetTargetsDeprecated.core.ts b/src/react-query/eventsGetTargetsDeprecated.core.ts index 9d7670a0..607a252e 100644 --- a/src/react-query/eventsGetTargetsDeprecated.core.ts +++ b/src/react-query/eventsGetTargetsDeprecated.core.ts @@ -19,12 +19,14 @@ export type EventsGetTargetsDeprecatedQueryData = Array; export function prefetchEventsGetTargetsDeprecated( queryClient: QueryClient, client$: SpeakeasyCore, + security: operations.GetWorkspaceTargetsDeprecatedSecurity, request: operations.GetWorkspaceTargetsDeprecatedRequest, options?: RequestOptions, ): Promise { return queryClient.prefetchQuery({ ...buildEventsGetTargetsDeprecatedQuery( client$, + security, request, options, ), @@ -33,6 +35,7 @@ export function prefetchEventsGetTargetsDeprecated( export function buildEventsGetTargetsDeprecatedQuery( client$: SpeakeasyCore, + security: operations.GetWorkspaceTargetsDeprecatedSecurity, request: operations.GetWorkspaceTargetsDeprecatedRequest, options?: RequestOptions, ): { @@ -61,6 +64,7 @@ export function buildEventsGetTargetsDeprecatedQuery( return unwrapAsync(eventsGetTargetsDeprecated( client$, + security, request, mergedOptions, )); diff --git a/src/react-query/eventsGetTargetsDeprecated.ts b/src/react-query/eventsGetTargetsDeprecated.ts index 0d8bbbd4..b28ccd1a 100644 --- a/src/react-query/eventsGetTargetsDeprecated.ts +++ b/src/react-query/eventsGetTargetsDeprecated.ts @@ -56,6 +56,7 @@ export type EventsGetTargetsDeprecatedQueryError = * Load targets for a particular workspace */ export function useEventsGetTargetsDeprecated( + security: operations.GetWorkspaceTargetsDeprecatedSecurity, request: operations.GetWorkspaceTargetsDeprecatedRequest, options?: QueryHookOptions< EventsGetTargetsDeprecatedQueryData, @@ -69,6 +70,7 @@ export function useEventsGetTargetsDeprecated( return useQuery({ ...buildEventsGetTargetsDeprecatedQuery( client, + security, request, options, ), @@ -80,6 +82,7 @@ export function useEventsGetTargetsDeprecated( * Load targets for a particular workspace */ export function useEventsGetTargetsDeprecatedSuspense( + security: operations.GetWorkspaceTargetsDeprecatedSecurity, request: operations.GetWorkspaceTargetsDeprecatedRequest, options?: SuspenseQueryHookOptions< EventsGetTargetsDeprecatedQueryData, @@ -93,6 +96,7 @@ export function useEventsGetTargetsDeprecatedSuspense( return useSuspenseQuery({ ...buildEventsGetTargetsDeprecatedQuery( client, + security, request, options, ), diff --git a/src/react-query/eventsGetTargetsSummary.core.ts b/src/react-query/eventsGetTargetsSummary.core.ts index 056a7a46..6a689380 100644 --- a/src/react-query/eventsGetTargetsSummary.core.ts +++ b/src/react-query/eventsGetTargetsSummary.core.ts @@ -31,12 +31,14 @@ export type EventsGetTargetsSummaryPageParams = PageIterator< export function prefetchEventsGetTargetsSummary( queryClient: QueryClient, client$: SpeakeasyCore, + security: operations.GetWorkspaceTargetsSummarySecurity, request: operations.GetWorkspaceTargetsSummaryRequest, options?: RequestOptions, ): Promise { return queryClient.prefetchQuery({ ...buildEventsGetTargetsSummaryQuery( client$, + security, request, options, ), @@ -46,12 +48,14 @@ export function prefetchEventsGetTargetsSummary( export function prefetchEventsGetTargetsSummaryInfinite( queryClient: QueryClient, client$: SpeakeasyCore, + security: operations.GetWorkspaceTargetsSummarySecurity, request: operations.GetWorkspaceTargetsSummaryRequest, options?: RequestOptions, ): Promise { return queryClient.prefetchInfiniteQuery({ ...buildEventsGetTargetsSummaryInfiniteQuery( client$, + security, request, options, ), @@ -64,6 +68,7 @@ export function prefetchEventsGetTargetsSummaryInfinite( export function buildEventsGetTargetsSummaryQuery( client$: SpeakeasyCore, + security: operations.GetWorkspaceTargetsSummarySecurity, request: operations.GetWorkspaceTargetsSummaryRequest, options?: RequestOptions, ): { @@ -94,6 +99,7 @@ export function buildEventsGetTargetsSummaryQuery( return unwrapAsync(eventsGetTargetsSummary( client$, + security, request, mergedOptions, )); @@ -103,6 +109,7 @@ export function buildEventsGetTargetsSummaryQuery( export function buildEventsGetTargetsSummaryInfiniteQuery( client$: SpeakeasyCore, + security: operations.GetWorkspaceTargetsSummarySecurity, request: operations.GetWorkspaceTargetsSummaryRequest, options?: RequestOptions, ): { @@ -129,6 +136,7 @@ export function buildEventsGetTargetsSummaryInfiniteQuery( if (!ctx.pageParam) { const pageResult = await unwrapResultIterator(eventsGetTargetsSummary( client$, + security, request, mergedOptions, )); @@ -136,6 +144,7 @@ export function buildEventsGetTargetsSummaryInfiniteQuery( } const pageResult = await unwrapResultIterator(eventsGetTargetsSummary( client$, + security, { ...request, cursor: ctx.pageParam.cursor, diff --git a/src/react-query/eventsGetTargetsSummary.ts b/src/react-query/eventsGetTargetsSummary.ts index 5e9cc1a4..42555a33 100644 --- a/src/react-query/eventsGetTargetsSummary.ts +++ b/src/react-query/eventsGetTargetsSummary.ts @@ -74,6 +74,7 @@ export type EventsGetTargetsSummaryQueryError = * Load a lean summary of targets for a workspace with pagination. Returns only essential fields needed by the dashboard UI. */ export function useEventsGetTargetsSummary( + security: operations.GetWorkspaceTargetsSummarySecurity, request: operations.GetWorkspaceTargetsSummaryRequest, options?: QueryHookOptions< EventsGetTargetsSummaryQueryData, @@ -87,6 +88,7 @@ export function useEventsGetTargetsSummary( return useQuery({ ...buildEventsGetTargetsSummaryQuery( client, + security, request, options, ), @@ -98,6 +100,7 @@ export function useEventsGetTargetsSummary( * Load a lean summary of targets for a workspace with pagination. Returns only essential fields needed by the dashboard UI. */ export function useEventsGetTargetsSummarySuspense( + security: operations.GetWorkspaceTargetsSummarySecurity, request: operations.GetWorkspaceTargetsSummaryRequest, options?: SuspenseQueryHookOptions< EventsGetTargetsSummaryQueryData, @@ -111,6 +114,7 @@ export function useEventsGetTargetsSummarySuspense( return useSuspenseQuery({ ...buildEventsGetTargetsSummaryQuery( client, + security, request, options, ), @@ -122,6 +126,7 @@ export function useEventsGetTargetsSummarySuspense( * Load a lean summary of targets for a workspace with pagination. Returns only essential fields needed by the dashboard UI. */ export function useEventsGetTargetsSummaryInfinite( + security: operations.GetWorkspaceTargetsSummarySecurity, request: operations.GetWorkspaceTargetsSummaryRequest, options?: InfiniteQueryHookOptions< EventsGetTargetsSummaryInfiniteQueryData, @@ -147,6 +152,7 @@ export function useEventsGetTargetsSummaryInfinite( >({ ...buildEventsGetTargetsSummaryInfiniteQuery( client, + security, request, options, ), @@ -160,6 +166,7 @@ export function useEventsGetTargetsSummaryInfinite( * Load a lean summary of targets for a workspace with pagination. Returns only essential fields needed by the dashboard UI. */ export function useEventsGetTargetsSummaryInfiniteSuspense( + security: operations.GetWorkspaceTargetsSummarySecurity, request: operations.GetWorkspaceTargetsSummaryRequest, options?: SuspenseInfiniteQueryHookOptions< EventsGetTargetsSummaryInfiniteQueryData, @@ -185,6 +192,7 @@ export function useEventsGetTargetsSummaryInfiniteSuspense( >({ ...buildEventsGetTargetsSummaryInfiniteQuery( client, + security, request, options, ), diff --git a/src/react-query/eventsPost.ts b/src/react-query/eventsPost.ts index 42ef87c8..97f29b33 100644 --- a/src/react-query/eventsPost.ts +++ b/src/react-query/eventsPost.ts @@ -28,6 +28,7 @@ import { useSpeakeasyContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type EventsPostMutationVariables = { + security: operations.PostWorkspaceEventsSecurity; request: operations.PostWorkspaceEventsRequest; options?: RequestOptions; }; @@ -85,6 +86,7 @@ export function buildEventsPostMutation( return { mutationKey: mutationKeyEventsPost(), mutationFn: function eventsPostMutationFn({ + security, request, options, }): Promise { @@ -102,6 +104,7 @@ export function buildEventsPostMutation( }; return unwrapAsync(eventsPost( client$, + security, request, mergedOptions, )); diff --git a/src/react-query/eventsSearch.core.ts b/src/react-query/eventsSearch.core.ts index fe3687a6..8b3b61fe 100644 --- a/src/react-query/eventsSearch.core.ts +++ b/src/react-query/eventsSearch.core.ts @@ -19,12 +19,14 @@ export type EventsSearchQueryData = Array; export function prefetchEventsSearch( queryClient: QueryClient, client$: SpeakeasyCore, + security: operations.SearchWorkspaceEventsSecurity, request: operations.SearchWorkspaceEventsRequest, options?: RequestOptions, ): Promise { return queryClient.prefetchQuery({ ...buildEventsSearchQuery( client$, + security, request, options, ), @@ -33,6 +35,7 @@ export function prefetchEventsSearch( export function buildEventsSearchQuery( client$: SpeakeasyCore, + security: operations.SearchWorkspaceEventsSecurity, request: operations.SearchWorkspaceEventsRequest, options?: RequestOptions, ): { @@ -66,6 +69,7 @@ export function buildEventsSearchQuery( return unwrapAsync(eventsSearch( client$, + security, request, mergedOptions, )); diff --git a/src/react-query/eventsSearch.ts b/src/react-query/eventsSearch.ts index 39a05aff..af496b63 100644 --- a/src/react-query/eventsSearch.ts +++ b/src/react-query/eventsSearch.ts @@ -57,6 +57,7 @@ export type EventsSearchQueryError = * Search events for a particular workspace by any field */ export function useEventsSearch( + security: operations.SearchWorkspaceEventsSecurity, request: operations.SearchWorkspaceEventsRequest, options?: QueryHookOptions, ): UseQueryResult { @@ -64,6 +65,7 @@ export function useEventsSearch( return useQuery({ ...buildEventsSearchQuery( client, + security, request, options, ), @@ -75,6 +77,7 @@ export function useEventsSearch( * Search events for a particular workspace by any field */ export function useEventsSearchSuspense( + security: operations.SearchWorkspaceEventsSecurity, request: operations.SearchWorkspaceEventsRequest, options?: SuspenseQueryHookOptions< EventsSearchQueryData, @@ -85,6 +88,7 @@ export function useEventsSearchSuspense( return useSuspenseQuery({ ...buildEventsSearchQuery( client, + security, request, options, ), diff --git a/src/react-query/githubCheckAccess.core.ts b/src/react-query/githubCheckAccess.core.ts index 9dc4d45b..34a7a58a 100644 --- a/src/react-query/githubCheckAccess.core.ts +++ b/src/react-query/githubCheckAccess.core.ts @@ -18,12 +18,14 @@ export type GithubCheckAccessQueryData = void; export function prefetchGithubCheckAccess( queryClient: QueryClient, client$: SpeakeasyCore, + security: operations.CheckGithubAccessSecurity, request: operations.CheckGithubAccessRequest, options?: RequestOptions, ): Promise { return queryClient.prefetchQuery({ ...buildGithubCheckAccessQuery( client$, + security, request, options, ), @@ -32,6 +34,7 @@ export function prefetchGithubCheckAccess( export function buildGithubCheckAccessQuery( client$: SpeakeasyCore, + security: operations.CheckGithubAccessSecurity, request: operations.CheckGithubAccessRequest, options?: RequestOptions, ): { @@ -61,6 +64,7 @@ export function buildGithubCheckAccessQuery( return unwrapAsync(githubCheckAccess( client$, + security, request, mergedOptions, )); diff --git a/src/react-query/githubCheckAccess.ts b/src/react-query/githubCheckAccess.ts index bcbfd662..c940e069 100644 --- a/src/react-query/githubCheckAccess.ts +++ b/src/react-query/githubCheckAccess.ts @@ -53,6 +53,7 @@ export type GithubCheckAccessQueryError = | SDKValidationError; export function useGithubCheckAccess( + security: operations.CheckGithubAccessSecurity, request: operations.CheckGithubAccessRequest, options?: QueryHookOptions< GithubCheckAccessQueryData, @@ -63,6 +64,7 @@ export function useGithubCheckAccess( return useQuery({ ...buildGithubCheckAccessQuery( client, + security, request, options, ), @@ -71,6 +73,7 @@ export function useGithubCheckAccess( } export function useGithubCheckAccessSuspense( + security: operations.CheckGithubAccessSecurity, request: operations.CheckGithubAccessRequest, options?: SuspenseQueryHookOptions< GithubCheckAccessQueryData, @@ -84,6 +87,7 @@ export function useGithubCheckAccessSuspense( return useSuspenseQuery({ ...buildGithubCheckAccessQuery( client, + security, request, options, ), diff --git a/src/react-query/githubCheckPublishingPRs.core.ts b/src/react-query/githubCheckPublishingPRs.core.ts index ba4f7515..05ea5604 100644 --- a/src/react-query/githubCheckPublishingPRs.core.ts +++ b/src/react-query/githubCheckPublishingPRs.core.ts @@ -20,12 +20,14 @@ export type GithubCheckPublishingPRsQueryData = export function prefetchGithubCheckPublishingPRs( queryClient: QueryClient, client$: SpeakeasyCore, + security: operations.GithubCheckPublishingPRsSecurity, request: operations.GithubCheckPublishingPRsRequest, options?: RequestOptions, ): Promise { return queryClient.prefetchQuery({ ...buildGithubCheckPublishingPRsQuery( client$, + security, request, options, ), @@ -34,6 +36,7 @@ export function prefetchGithubCheckPublishingPRs( export function buildGithubCheckPublishingPRsQuery( client$: SpeakeasyCore, + security: operations.GithubCheckPublishingPRsSecurity, request: operations.GithubCheckPublishingPRsRequest, options?: RequestOptions, ): { @@ -64,6 +67,7 @@ export function buildGithubCheckPublishingPRsQuery( return unwrapAsync(githubCheckPublishingPRs( client$, + security, request, mergedOptions, )); diff --git a/src/react-query/githubCheckPublishingPRs.ts b/src/react-query/githubCheckPublishingPRs.ts index 54c7a8ae..0371acd7 100644 --- a/src/react-query/githubCheckPublishingPRs.ts +++ b/src/react-query/githubCheckPublishingPRs.ts @@ -53,6 +53,7 @@ export type GithubCheckPublishingPRsQueryError = | SDKValidationError; export function useGithubCheckPublishingPRs( + security: operations.GithubCheckPublishingPRsSecurity, request: operations.GithubCheckPublishingPRsRequest, options?: QueryHookOptions< GithubCheckPublishingPRsQueryData, @@ -66,6 +67,7 @@ export function useGithubCheckPublishingPRs( return useQuery({ ...buildGithubCheckPublishingPRsQuery( client, + security, request, options, ), @@ -74,6 +76,7 @@ export function useGithubCheckPublishingPRs( } export function useGithubCheckPublishingPRsSuspense( + security: operations.GithubCheckPublishingPRsSecurity, request: operations.GithubCheckPublishingPRsRequest, options?: SuspenseQueryHookOptions< GithubCheckPublishingPRsQueryData, @@ -87,6 +90,7 @@ export function useGithubCheckPublishingPRsSuspense( return useSuspenseQuery({ ...buildGithubCheckPublishingPRsQuery( client, + security, request, options, ), diff --git a/src/react-query/githubCheckPublishingSecrets.core.ts b/src/react-query/githubCheckPublishingSecrets.core.ts index 872df494..307e1193 100644 --- a/src/react-query/githubCheckPublishingSecrets.core.ts +++ b/src/react-query/githubCheckPublishingSecrets.core.ts @@ -20,12 +20,14 @@ export type GithubCheckPublishingSecretsQueryData = export function prefetchGithubCheckPublishingSecrets( queryClient: QueryClient, client$: SpeakeasyCore, + security: operations.GithubCheckPublishingSecretsSecurity, request: operations.GithubCheckPublishingSecretsRequest, options?: RequestOptions, ): Promise { return queryClient.prefetchQuery({ ...buildGithubCheckPublishingSecretsQuery( client$, + security, request, options, ), @@ -34,6 +36,7 @@ export function prefetchGithubCheckPublishingSecrets( export function buildGithubCheckPublishingSecretsQuery( client$: SpeakeasyCore, + security: operations.GithubCheckPublishingSecretsSecurity, request: operations.GithubCheckPublishingSecretsRequest, options?: RequestOptions, ): { @@ -62,6 +65,7 @@ export function buildGithubCheckPublishingSecretsQuery( return unwrapAsync(githubCheckPublishingSecrets( client$, + security, request, mergedOptions, )); diff --git a/src/react-query/githubCheckPublishingSecrets.ts b/src/react-query/githubCheckPublishingSecrets.ts index 3d285b01..d492c0ee 100644 --- a/src/react-query/githubCheckPublishingSecrets.ts +++ b/src/react-query/githubCheckPublishingSecrets.ts @@ -53,6 +53,7 @@ export type GithubCheckPublishingSecretsQueryError = | SDKValidationError; export function useGithubCheckPublishingSecrets( + security: operations.GithubCheckPublishingSecretsSecurity, request: operations.GithubCheckPublishingSecretsRequest, options?: QueryHookOptions< GithubCheckPublishingSecretsQueryData, @@ -66,6 +67,7 @@ export function useGithubCheckPublishingSecrets( return useQuery({ ...buildGithubCheckPublishingSecretsQuery( client, + security, request, options, ), @@ -74,6 +76,7 @@ export function useGithubCheckPublishingSecrets( } export function useGithubCheckPublishingSecretsSuspense( + security: operations.GithubCheckPublishingSecretsSecurity, request: operations.GithubCheckPublishingSecretsRequest, options?: SuspenseQueryHookOptions< GithubCheckPublishingSecretsQueryData, @@ -87,6 +90,7 @@ export function useGithubCheckPublishingSecretsSuspense( return useSuspenseQuery({ ...buildGithubCheckPublishingSecretsQuery( client, + security, request, options, ), diff --git a/src/react-query/githubConfigureCodeSamples.ts b/src/react-query/githubConfigureCodeSamples.ts index 52927eb9..e8f807ab 100644 --- a/src/react-query/githubConfigureCodeSamples.ts +++ b/src/react-query/githubConfigureCodeSamples.ts @@ -22,12 +22,14 @@ import * as errors from "../sdk/models/errors/index.js"; import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; import { SpeakeasyError } from "../sdk/models/errors/speakeasyerror.js"; +import * as operations from "../sdk/models/operations/index.js"; import * as shared from "../sdk/models/shared/index.js"; import { unwrapAsync } from "../sdk/types/fp.js"; import { useSpeakeasyContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type GithubConfigureCodeSamplesMutationVariables = { + security: operations.GithubConfigureCodeSamplesSecurity; request: shared.GithubConfigureCodeSamplesRequest; options?: RequestOptions; }; @@ -84,6 +86,7 @@ export function buildGithubConfigureCodeSamplesMutation( return { mutationKey: mutationKeyGithubConfigureCodeSamples(), mutationFn: function githubConfigureCodeSamplesMutationFn({ + security, request, options, }): Promise { @@ -101,6 +104,7 @@ export function buildGithubConfigureCodeSamplesMutation( }; return unwrapAsync(githubConfigureCodeSamples( client$, + security, request, mergedOptions, )); diff --git a/src/react-query/githubConfigureMintlifyRepo.ts b/src/react-query/githubConfigureMintlifyRepo.ts index e7c5cb8e..b1ab867d 100644 --- a/src/react-query/githubConfigureMintlifyRepo.ts +++ b/src/react-query/githubConfigureMintlifyRepo.ts @@ -22,12 +22,14 @@ import * as errors from "../sdk/models/errors/index.js"; import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; import { SpeakeasyError } from "../sdk/models/errors/speakeasyerror.js"; +import * as operations from "../sdk/models/operations/index.js"; import * as shared from "../sdk/models/shared/index.js"; import { unwrapAsync } from "../sdk/types/fp.js"; import { useSpeakeasyContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type GithubConfigureMintlifyRepoMutationVariables = { + security: operations.GithubConfigureMintlifyRepoSecurity; request: shared.GithubConfigureMintlifyRepoRequest; options?: RequestOptions; }; @@ -83,6 +85,7 @@ export function buildGithubConfigureMintlifyRepoMutation( return { mutationKey: mutationKeyGithubConfigureMintlifyRepo(), mutationFn: function githubConfigureMintlifyRepoMutationFn({ + security, request, options, }): Promise { @@ -100,6 +103,7 @@ export function buildGithubConfigureMintlifyRepoMutation( }; return unwrapAsync(githubConfigureMintlifyRepo( client$, + security, request, mergedOptions, )); diff --git a/src/react-query/githubConfigureTarget.ts b/src/react-query/githubConfigureTarget.ts index f6abdc7e..7732a849 100644 --- a/src/react-query/githubConfigureTarget.ts +++ b/src/react-query/githubConfigureTarget.ts @@ -22,12 +22,14 @@ import * as errors from "../sdk/models/errors/index.js"; import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; import { SpeakeasyError } from "../sdk/models/errors/speakeasyerror.js"; +import * as operations from "../sdk/models/operations/index.js"; import * as shared from "../sdk/models/shared/index.js"; import { unwrapAsync } from "../sdk/types/fp.js"; import { useSpeakeasyContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type GithubConfigureTargetMutationVariables = { + security: operations.GithubConfigureTargetSecurity; request: shared.GithubConfigureTargetRequest; options?: RequestOptions; }; @@ -83,6 +85,7 @@ export function buildGithubConfigureTargetMutation( return { mutationKey: mutationKeyGithubConfigureTarget(), mutationFn: function githubConfigureTargetMutationFn({ + security, request, options, }): Promise { @@ -100,6 +103,7 @@ export function buildGithubConfigureTargetMutation( }; return unwrapAsync(githubConfigureTarget( client$, + security, request, mergedOptions, )); diff --git a/src/react-query/githubGetAction.core.ts b/src/react-query/githubGetAction.core.ts index 68174d34..d4dcaf71 100644 --- a/src/react-query/githubGetAction.core.ts +++ b/src/react-query/githubGetAction.core.ts @@ -19,12 +19,14 @@ export type GithubGetActionQueryData = shared.GithubGetActionResponse; export function prefetchGithubGetAction( queryClient: QueryClient, client$: SpeakeasyCore, + security: operations.GetGitHubActionSecurity, request: operations.GetGitHubActionRequest, options?: RequestOptions, ): Promise { return queryClient.prefetchQuery({ ...buildGithubGetActionQuery( client$, + security, request, options, ), @@ -33,6 +35,7 @@ export function prefetchGithubGetAction( export function buildGithubGetActionQuery( client$: SpeakeasyCore, + security: operations.GetGitHubActionSecurity, request: operations.GetGitHubActionRequest, options?: RequestOptions, ): { @@ -61,6 +64,7 @@ export function buildGithubGetActionQuery( return unwrapAsync(githubGetAction( client$, + security, request, mergedOptions, )); diff --git a/src/react-query/githubGetAction.ts b/src/react-query/githubGetAction.ts index f862aeb6..c5d173c1 100644 --- a/src/react-query/githubGetAction.ts +++ b/src/react-query/githubGetAction.ts @@ -53,6 +53,7 @@ export type GithubGetActionQueryError = | SDKValidationError; export function useGithubGetAction( + security: operations.GetGitHubActionSecurity, request: operations.GetGitHubActionRequest, options?: QueryHookOptions< GithubGetActionQueryData, @@ -63,6 +64,7 @@ export function useGithubGetAction( return useQuery({ ...buildGithubGetActionQuery( client, + security, request, options, ), @@ -71,6 +73,7 @@ export function useGithubGetAction( } export function useGithubGetActionSuspense( + security: operations.GetGitHubActionSecurity, request: operations.GetGitHubActionRequest, options?: SuspenseQueryHookOptions< GithubGetActionQueryData, @@ -81,6 +84,7 @@ export function useGithubGetActionSuspense( return useSuspenseQuery({ ...buildGithubGetActionQuery( client, + security, request, options, ), diff --git a/src/react-query/githubGetSetup.core.ts b/src/react-query/githubGetSetup.core.ts index 10ffae2d..575d0799 100644 --- a/src/react-query/githubGetSetup.core.ts +++ b/src/react-query/githubGetSetup.core.ts @@ -19,12 +19,14 @@ export type GithubGetSetupQueryData = shared.GithubSetupStateResponse; export function prefetchGithubGetSetup( queryClient: QueryClient, client$: SpeakeasyCore, + security: operations.GetGithubSetupStateSecurity, request: operations.GetGithubSetupStateRequest, options?: RequestOptions, ): Promise { return queryClient.prefetchQuery({ ...buildGithubGetSetupQuery( client$, + security, request, options, ), @@ -33,6 +35,7 @@ export function prefetchGithubGetSetup( export function buildGithubGetSetupQuery( client$: SpeakeasyCore, + security: operations.GetGithubSetupStateSecurity, request: operations.GetGithubSetupStateRequest, options?: RequestOptions, ): { @@ -61,6 +64,7 @@ export function buildGithubGetSetupQuery( return unwrapAsync(githubGetSetup( client$, + security, request, mergedOptions, )); diff --git a/src/react-query/githubGetSetup.ts b/src/react-query/githubGetSetup.ts index f9f8f777..2aa489cd 100644 --- a/src/react-query/githubGetSetup.ts +++ b/src/react-query/githubGetSetup.ts @@ -53,6 +53,7 @@ export type GithubGetSetupQueryError = | SDKValidationError; export function useGithubGetSetup( + security: operations.GetGithubSetupStateSecurity, request: operations.GetGithubSetupStateRequest, options?: QueryHookOptions, ): UseQueryResult { @@ -60,6 +61,7 @@ export function useGithubGetSetup( return useQuery({ ...buildGithubGetSetupQuery( client, + security, request, options, ), @@ -68,6 +70,7 @@ export function useGithubGetSetup( } export function useGithubGetSetupSuspense( + security: operations.GetGithubSetupStateSecurity, request: operations.GetGithubSetupStateRequest, options?: SuspenseQueryHookOptions< GithubGetSetupQueryData, @@ -78,6 +81,7 @@ export function useGithubGetSetupSuspense( return useSuspenseQuery({ ...buildGithubGetSetupQuery( client, + security, request, options, ), diff --git a/src/react-query/githubLinkGithub.ts b/src/react-query/githubLinkGithub.ts index 6cdabad3..6e98615a 100644 --- a/src/react-query/githubLinkGithub.ts +++ b/src/react-query/githubLinkGithub.ts @@ -28,6 +28,7 @@ import { useSpeakeasyContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type GithubLinkGithubMutationVariables = { + security: operations.LinkGithubAccessSecurity; request: operations.LinkGithubAccessRequest; options?: RequestOptions; }; @@ -83,6 +84,7 @@ export function buildGithubLinkGithubMutation( return { mutationKey: mutationKeyGithubLinkGithub(), mutationFn: function githubLinkGithubMutationFn({ + security, request, options, }): Promise { @@ -100,6 +102,7 @@ export function buildGithubLinkGithubMutation( }; return unwrapAsync(githubLinkGithub( client$, + security, request, mergedOptions, )); diff --git a/src/react-query/githubStorePublishingSecrets.ts b/src/react-query/githubStorePublishingSecrets.ts index eac37305..17af8ec7 100644 --- a/src/react-query/githubStorePublishingSecrets.ts +++ b/src/react-query/githubStorePublishingSecrets.ts @@ -22,12 +22,14 @@ import * as errors from "../sdk/models/errors/index.js"; import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; import { SpeakeasyError } from "../sdk/models/errors/speakeasyerror.js"; +import * as operations from "../sdk/models/operations/index.js"; import * as shared from "../sdk/models/shared/index.js"; import { unwrapAsync } from "../sdk/types/fp.js"; import { useSpeakeasyContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type GithubStorePublishingSecretsMutationVariables = { + security: operations.GithubStorePublishingSecretsSecurity; request: shared.GithubStorePublishingSecretsRequest; options?: RequestOptions; }; @@ -83,6 +85,7 @@ export function buildGithubStorePublishingSecretsMutation( return { mutationKey: mutationKeyGithubStorePublishingSecrets(), mutationFn: function githubStorePublishingSecretsMutationFn({ + security, request, options, }): Promise { @@ -100,6 +103,7 @@ export function buildGithubStorePublishingSecretsMutation( }; return unwrapAsync(githubStorePublishingSecrets( client$, + security, request, mergedOptions, )); diff --git a/src/react-query/githubTriggerAction.ts b/src/react-query/githubTriggerAction.ts index 137149ce..fc4348b6 100644 --- a/src/react-query/githubTriggerAction.ts +++ b/src/react-query/githubTriggerAction.ts @@ -22,12 +22,14 @@ import * as errors from "../sdk/models/errors/index.js"; import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; import { SpeakeasyError } from "../sdk/models/errors/speakeasyerror.js"; +import * as operations from "../sdk/models/operations/index.js"; import * as shared from "../sdk/models/shared/index.js"; import { unwrapAsync } from "../sdk/types/fp.js"; import { useSpeakeasyContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type GithubTriggerActionMutationVariables = { + security: operations.GithubTriggerActionSecurity; request: shared.GithubTriggerActionRequest; options?: RequestOptions; }; @@ -83,6 +85,7 @@ export function buildGithubTriggerActionMutation( return { mutationKey: mutationKeyGithubTriggerAction(), mutationFn: function githubTriggerActionMutationFn({ + security, request, options, }): Promise { @@ -100,6 +103,7 @@ export function buildGithubTriggerActionMutation( }; return unwrapAsync(githubTriggerAction( client$, + security, request, mergedOptions, )); diff --git a/src/react-query/index.ts b/src/react-query/index.ts index 47ebd3dd..4a3fc112 100644 --- a/src/react-query/index.ts +++ b/src/react-query/index.ts @@ -41,15 +41,27 @@ export * from "./githubGetSetup.js"; export * from "./githubLinkGithub.js"; export * from "./githubStorePublishingSecrets.js"; export * from "./githubTriggerAction.js"; +export * from "./organizationsActivateLanguage.js"; +export * from "./organizationsCancelSubscription.js"; export * from "./organizationsCreate.js"; export * from "./organizationsCreateBillingAddOns.js"; export * from "./organizationsCreateFreeTrial.js"; +export * from "./organizationsCreateLanguageCheckoutSession.js"; +export * from "./organizationsDeactivateLanguage.js"; export * from "./organizationsDeleteBillingAddOn.js"; export * from "./organizationsGet.js"; export * from "./organizationsGetAll.js"; export * from "./organizationsGetBillingAddOns.js"; +export * from "./organizationsGetBillingEmail.js"; export * from "./organizationsGetBillingOperations.js"; +export * from "./organizationsGetBusinessTierPrices.js"; +export * from "./organizationsGetLanguages.js"; +export * from "./organizationsGetSubscription.js"; +export * from "./organizationsGetTrialTargets.js"; export * from "./organizationsGetUsage.js"; +export * from "./organizationsHandleCheckoutCallback.js"; +export * from "./organizationsRevertSubscriptionCancellation.js"; +export * from "./organizationsUpsertBillingEmail.js"; export * from "./publishingTokensCreate.js"; export * from "./publishingTokensDelete.js"; export * from "./publishingTokensGet.js"; @@ -68,6 +80,7 @@ export * from "./suggestSuggest.js"; export * from "./suggestSuggestItems.js"; export * from "./suggestSuggestOpenAPI.js"; export * from "./suggestSuggestOpenAPIRegistry.js"; +export * from "./webhooksHandleStripeWebhook.js"; export * from "./workspacesCreate.js"; export * from "./workspacesCreateToken.js"; export * from "./workspacesDeleteToken.js"; diff --git a/src/react-query/organizationsActivateLanguage.ts b/src/react-query/organizationsActivateLanguage.ts new file mode 100644 index 00000000..4baf2cda --- /dev/null +++ b/src/react-query/organizationsActivateLanguage.ts @@ -0,0 +1,120 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { + MutationKey, + useMutation, + UseMutationResult, +} from "@tanstack/react-query"; +import { SpeakeasyCore } from "../core.js"; +import { organizationsActivateLanguage } from "../funcs/organizationsActivateLanguage.js"; +import { combineSignals } from "../lib/primitives.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import { SpeakeasyError } from "../sdk/models/errors/speakeasyerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import * as shared from "../sdk/models/shared/index.js"; +import { unwrapAsync } from "../sdk/types/fp.js"; +import { useSpeakeasyContext } from "./_context.js"; +import { MutationHookOptions } from "./_types.js"; + +export type OrganizationsActivateLanguageMutationVariables = { + security: operations.ActivateLanguageSecurity; + request: operations.ActivateLanguageRequest; + options?: RequestOptions; +}; + +export type OrganizationsActivateLanguageMutationData = + shared.LanguageActivationResponse; + +export type OrganizationsActivateLanguageMutationError = + | errors.ErrorT + | SpeakeasyError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError; + +/** + * Activate language + * + * @remarks + * Activates a language for billing. If the language was previously deactivated, + * this will reactivate it. If the language is new, it may require checkout. + */ +export function useOrganizationsActivateLanguageMutation( + options?: MutationHookOptions< + OrganizationsActivateLanguageMutationData, + OrganizationsActivateLanguageMutationError, + OrganizationsActivateLanguageMutationVariables + >, +): UseMutationResult< + OrganizationsActivateLanguageMutationData, + OrganizationsActivateLanguageMutationError, + OrganizationsActivateLanguageMutationVariables +> { + const client = useSpeakeasyContext(); + return useMutation({ + ...buildOrganizationsActivateLanguageMutation(client, options), + ...options, + }); +} + +export function mutationKeyOrganizationsActivateLanguage(): MutationKey { + return [ + "@speakeasy-api/speakeasy-client-sdk-typescript", + "Organizations", + "activateLanguage", + ]; +} + +export function buildOrganizationsActivateLanguageMutation( + client$: SpeakeasyCore, + hookOptions?: RequestOptions, +): { + mutationKey: MutationKey; + mutationFn: ( + variables: OrganizationsActivateLanguageMutationVariables, + ) => Promise; +} { + return { + mutationKey: mutationKeyOrganizationsActivateLanguage(), + mutationFn: function organizationsActivateLanguageMutationFn({ + security, + request, + options, + }): Promise { + const mergedOptions = { + ...hookOptions, + ...options, + fetchOptions: { + ...hookOptions?.fetchOptions, + ...options?.fetchOptions, + signal: combineSignals( + hookOptions?.fetchOptions?.signal, + options?.fetchOptions?.signal, + ), + }, + }; + return unwrapAsync(organizationsActivateLanguage( + client$, + security, + request, + mergedOptions, + )); + }, + }; +} diff --git a/src/react-query/organizationsCancelSubscription.ts b/src/react-query/organizationsCancelSubscription.ts new file mode 100644 index 00000000..f4a630c9 --- /dev/null +++ b/src/react-query/organizationsCancelSubscription.ts @@ -0,0 +1,121 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { + MutationKey, + useMutation, + UseMutationResult, +} from "@tanstack/react-query"; +import { SpeakeasyCore } from "../core.js"; +import { organizationsCancelSubscription } from "../funcs/organizationsCancelSubscription.js"; +import { combineSignals } from "../lib/primitives.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import { SpeakeasyError } from "../sdk/models/errors/speakeasyerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import * as shared from "../sdk/models/shared/index.js"; +import { unwrapAsync } from "../sdk/types/fp.js"; +import { useSpeakeasyContext } from "./_context.js"; +import { MutationHookOptions } from "./_types.js"; + +export type OrganizationsCancelSubscriptionMutationVariables = { + security: operations.CancelSubscriptionSecurity; + request: shared.CancelSubscriptionRequest; + options?: RequestOptions; +}; + +export type OrganizationsCancelSubscriptionMutationData = + shared.CancelSubscriptionResponse; + +export type OrganizationsCancelSubscriptionMutationError = + | errors.ErrorT + | SpeakeasyError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError; + +/** + * Cancel subscription + * + * @remarks + * Requests cancellation of the organization's self-service business subscription. + * The subscription will be cancelled at the end of the current billing period. + * Specify a target to keep after downgrade to free tier when active targets remain. + */ +export function useOrganizationsCancelSubscriptionMutation( + options?: MutationHookOptions< + OrganizationsCancelSubscriptionMutationData, + OrganizationsCancelSubscriptionMutationError, + OrganizationsCancelSubscriptionMutationVariables + >, +): UseMutationResult< + OrganizationsCancelSubscriptionMutationData, + OrganizationsCancelSubscriptionMutationError, + OrganizationsCancelSubscriptionMutationVariables +> { + const client = useSpeakeasyContext(); + return useMutation({ + ...buildOrganizationsCancelSubscriptionMutation(client, options), + ...options, + }); +} + +export function mutationKeyOrganizationsCancelSubscription(): MutationKey { + return [ + "@speakeasy-api/speakeasy-client-sdk-typescript", + "Organizations", + "cancelSubscription", + ]; +} + +export function buildOrganizationsCancelSubscriptionMutation( + client$: SpeakeasyCore, + hookOptions?: RequestOptions, +): { + mutationKey: MutationKey; + mutationFn: ( + variables: OrganizationsCancelSubscriptionMutationVariables, + ) => Promise; +} { + return { + mutationKey: mutationKeyOrganizationsCancelSubscription(), + mutationFn: function organizationsCancelSubscriptionMutationFn({ + security, + request, + options, + }): Promise { + const mergedOptions = { + ...hookOptions, + ...options, + fetchOptions: { + ...hookOptions?.fetchOptions, + ...options?.fetchOptions, + signal: combineSignals( + hookOptions?.fetchOptions?.signal, + options?.fetchOptions?.signal, + ), + }, + }; + return unwrapAsync(organizationsCancelSubscription( + client$, + security, + request, + mergedOptions, + )); + }, + }; +} diff --git a/src/react-query/organizationsCreate.ts b/src/react-query/organizationsCreate.ts index f2b80a2f..e5353065 100644 --- a/src/react-query/organizationsCreate.ts +++ b/src/react-query/organizationsCreate.ts @@ -22,12 +22,14 @@ import * as errors from "../sdk/models/errors/index.js"; import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; import { SpeakeasyError } from "../sdk/models/errors/speakeasyerror.js"; +import * as operations from "../sdk/models/operations/index.js"; import * as shared from "../sdk/models/shared/index.js"; import { unwrapAsync } from "../sdk/types/fp.js"; import { useSpeakeasyContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type OrganizationsCreateMutationVariables = { + security: operations.CreateOrganizationSecurity; request: shared.Organization; options?: RequestOptions; }; @@ -89,6 +91,7 @@ export function buildOrganizationsCreateMutation( return { mutationKey: mutationKeyOrganizationsCreate(), mutationFn: function organizationsCreateMutationFn({ + security, request, options, }): Promise { @@ -106,6 +109,7 @@ export function buildOrganizationsCreateMutation( }; return unwrapAsync(organizationsCreate( client$, + security, request, mergedOptions, )); diff --git a/src/react-query/organizationsCreateBillingAddOns.ts b/src/react-query/organizationsCreateBillingAddOns.ts index 3469d617..8d577554 100644 --- a/src/react-query/organizationsCreateBillingAddOns.ts +++ b/src/react-query/organizationsCreateBillingAddOns.ts @@ -22,12 +22,14 @@ import * as errors from "../sdk/models/errors/index.js"; import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; import { SpeakeasyError } from "../sdk/models/errors/speakeasyerror.js"; +import * as operations from "../sdk/models/operations/index.js"; import * as shared from "../sdk/models/shared/index.js"; import { unwrapAsync } from "../sdk/types/fp.js"; import { useSpeakeasyContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type OrganizationsCreateBillingAddOnsMutationVariables = { + security: operations.CreateBillingAddOnsSecurity; request: shared.OrganizationBillingAddOnRequest; options?: RequestOptions; }; @@ -87,6 +89,7 @@ export function buildOrganizationsCreateBillingAddOnsMutation( return { mutationKey: mutationKeyOrganizationsCreateBillingAddOns(), mutationFn: function organizationsCreateBillingAddOnsMutationFn({ + security, request, options, }): Promise { @@ -104,6 +107,7 @@ export function buildOrganizationsCreateBillingAddOnsMutation( }; return unwrapAsync(organizationsCreateBillingAddOns( client$, + security, request, mergedOptions, )); diff --git a/src/react-query/organizationsCreateFreeTrial.ts b/src/react-query/organizationsCreateFreeTrial.ts index 7f2b67c1..33c73753 100644 --- a/src/react-query/organizationsCreateFreeTrial.ts +++ b/src/react-query/organizationsCreateFreeTrial.ts @@ -22,11 +22,13 @@ import * as errors from "../sdk/models/errors/index.js"; import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; import { SpeakeasyError } from "../sdk/models/errors/speakeasyerror.js"; +import * as operations from "../sdk/models/operations/index.js"; import { unwrapAsync } from "../sdk/types/fp.js"; import { useSpeakeasyContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type OrganizationsCreateFreeTrialMutationVariables = { + security: operations.CreateFreeTrialSecurity; options?: RequestOptions; }; @@ -87,6 +89,7 @@ export function buildOrganizationsCreateFreeTrialMutation( return { mutationKey: mutationKeyOrganizationsCreateFreeTrial(), mutationFn: function organizationsCreateFreeTrialMutationFn({ + security, options, }): Promise { const mergedOptions = { @@ -103,6 +106,7 @@ export function buildOrganizationsCreateFreeTrialMutation( }; return unwrapAsync(organizationsCreateFreeTrial( client$, + security, mergedOptions, )); }, diff --git a/src/react-query/organizationsCreateLanguageCheckoutSession.ts b/src/react-query/organizationsCreateLanguageCheckoutSession.ts new file mode 100644 index 00000000..d448326f --- /dev/null +++ b/src/react-query/organizationsCreateLanguageCheckoutSession.ts @@ -0,0 +1,120 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { + MutationKey, + useMutation, + UseMutationResult, +} from "@tanstack/react-query"; +import { SpeakeasyCore } from "../core.js"; +import { organizationsCreateLanguageCheckoutSession } from "../funcs/organizationsCreateLanguageCheckoutSession.js"; +import { combineSignals } from "../lib/primitives.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import { SpeakeasyError } from "../sdk/models/errors/speakeasyerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import * as shared from "../sdk/models/shared/index.js"; +import { unwrapAsync } from "../sdk/types/fp.js"; +import { useSpeakeasyContext } from "./_context.js"; +import { MutationHookOptions } from "./_types.js"; + +export type OrganizationsCreateLanguageCheckoutSessionMutationVariables = { + security: operations.CreateLanguageCheckoutSessionSecurity; + request: shared.CreateLanguageCheckoutSessionRequest; + options?: RequestOptions; +}; + +export type OrganizationsCreateLanguageCheckoutSessionMutationData = + shared.CreateCheckoutSessionResponse; + +export type OrganizationsCreateLanguageCheckoutSessionMutationError = + | errors.ErrorT + | SpeakeasyError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError; + +/** + * Create language checkout session + * + * @remarks + * Creates a Stripe checkout session for per-language billing. + * Used when upgrading to business tier with per-language billing model. + */ +export function useOrganizationsCreateLanguageCheckoutSessionMutation( + options?: MutationHookOptions< + OrganizationsCreateLanguageCheckoutSessionMutationData, + OrganizationsCreateLanguageCheckoutSessionMutationError, + OrganizationsCreateLanguageCheckoutSessionMutationVariables + >, +): UseMutationResult< + OrganizationsCreateLanguageCheckoutSessionMutationData, + OrganizationsCreateLanguageCheckoutSessionMutationError, + OrganizationsCreateLanguageCheckoutSessionMutationVariables +> { + const client = useSpeakeasyContext(); + return useMutation({ + ...buildOrganizationsCreateLanguageCheckoutSessionMutation(client, options), + ...options, + }); +} + +export function mutationKeyOrganizationsCreateLanguageCheckoutSession(): MutationKey { + return [ + "@speakeasy-api/speakeasy-client-sdk-typescript", + "Organizations", + "createLanguageCheckoutSession", + ]; +} + +export function buildOrganizationsCreateLanguageCheckoutSessionMutation( + client$: SpeakeasyCore, + hookOptions?: RequestOptions, +): { + mutationKey: MutationKey; + mutationFn: ( + variables: OrganizationsCreateLanguageCheckoutSessionMutationVariables, + ) => Promise; +} { + return { + mutationKey: mutationKeyOrganizationsCreateLanguageCheckoutSession(), + mutationFn: function organizationsCreateLanguageCheckoutSessionMutationFn({ + security, + request, + options, + }): Promise { + const mergedOptions = { + ...hookOptions, + ...options, + fetchOptions: { + ...hookOptions?.fetchOptions, + ...options?.fetchOptions, + signal: combineSignals( + hookOptions?.fetchOptions?.signal, + options?.fetchOptions?.signal, + ), + }, + }; + return unwrapAsync(organizationsCreateLanguageCheckoutSession( + client$, + security, + request, + mergedOptions, + )); + }, + }; +} diff --git a/src/react-query/organizationsDeactivateLanguage.ts b/src/react-query/organizationsDeactivateLanguage.ts new file mode 100644 index 00000000..ba213062 --- /dev/null +++ b/src/react-query/organizationsDeactivateLanguage.ts @@ -0,0 +1,119 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { + MutationKey, + useMutation, + UseMutationResult, +} from "@tanstack/react-query"; +import { SpeakeasyCore } from "../core.js"; +import { organizationsDeactivateLanguage } from "../funcs/organizationsDeactivateLanguage.js"; +import { combineSignals } from "../lib/primitives.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import { SpeakeasyError } from "../sdk/models/errors/speakeasyerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import * as shared from "../sdk/models/shared/index.js"; +import { unwrapAsync } from "../sdk/types/fp.js"; +import { useSpeakeasyContext } from "./_context.js"; +import { MutationHookOptions } from "./_types.js"; + +export type OrganizationsDeactivateLanguageMutationVariables = { + security: operations.DeactivateLanguageSecurity; + request: operations.DeactivateLanguageRequest; + options?: RequestOptions; +}; + +export type OrganizationsDeactivateLanguageMutationData = + shared.LanguageActivationResponse; + +export type OrganizationsDeactivateLanguageMutationError = + | errors.ErrorT + | SpeakeasyError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError; + +/** + * Deactivate language + * + * @remarks + * Deactivates a language. Subject to 2-week cooldown between deactivations. + */ +export function useOrganizationsDeactivateLanguageMutation( + options?: MutationHookOptions< + OrganizationsDeactivateLanguageMutationData, + OrganizationsDeactivateLanguageMutationError, + OrganizationsDeactivateLanguageMutationVariables + >, +): UseMutationResult< + OrganizationsDeactivateLanguageMutationData, + OrganizationsDeactivateLanguageMutationError, + OrganizationsDeactivateLanguageMutationVariables +> { + const client = useSpeakeasyContext(); + return useMutation({ + ...buildOrganizationsDeactivateLanguageMutation(client, options), + ...options, + }); +} + +export function mutationKeyOrganizationsDeactivateLanguage(): MutationKey { + return [ + "@speakeasy-api/speakeasy-client-sdk-typescript", + "Organizations", + "deactivateLanguage", + ]; +} + +export function buildOrganizationsDeactivateLanguageMutation( + client$: SpeakeasyCore, + hookOptions?: RequestOptions, +): { + mutationKey: MutationKey; + mutationFn: ( + variables: OrganizationsDeactivateLanguageMutationVariables, + ) => Promise; +} { + return { + mutationKey: mutationKeyOrganizationsDeactivateLanguage(), + mutationFn: function organizationsDeactivateLanguageMutationFn({ + security, + request, + options, + }): Promise { + const mergedOptions = { + ...hookOptions, + ...options, + fetchOptions: { + ...hookOptions?.fetchOptions, + ...options?.fetchOptions, + signal: combineSignals( + hookOptions?.fetchOptions?.signal, + options?.fetchOptions?.signal, + ), + }, + }; + return unwrapAsync(organizationsDeactivateLanguage( + client$, + security, + request, + mergedOptions, + )); + }, + }; +} diff --git a/src/react-query/organizationsDeleteBillingAddOn.ts b/src/react-query/organizationsDeleteBillingAddOn.ts index a2259e33..d7b0fe05 100644 --- a/src/react-query/organizationsDeleteBillingAddOn.ts +++ b/src/react-query/organizationsDeleteBillingAddOn.ts @@ -28,6 +28,7 @@ import { useSpeakeasyContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type OrganizationsDeleteBillingAddOnMutationVariables = { + security: operations.DeleteBillingAddOnSecurity; request: operations.DeleteBillingAddOnRequest; options?: RequestOptions; }; @@ -86,6 +87,7 @@ export function buildOrganizationsDeleteBillingAddOnMutation( return { mutationKey: mutationKeyOrganizationsDeleteBillingAddOn(), mutationFn: function organizationsDeleteBillingAddOnMutationFn({ + security, request, options, }): Promise { @@ -103,6 +105,7 @@ export function buildOrganizationsDeleteBillingAddOnMutation( }; return unwrapAsync(organizationsDeleteBillingAddOn( client$, + security, request, mergedOptions, )); diff --git a/src/react-query/organizationsGet.core.ts b/src/react-query/organizationsGet.core.ts index 9d54e83d..c3319f3c 100644 --- a/src/react-query/organizationsGet.core.ts +++ b/src/react-query/organizationsGet.core.ts @@ -19,12 +19,14 @@ export type OrganizationsGetQueryData = shared.Organization; export function prefetchOrganizationsGet( queryClient: QueryClient, client$: SpeakeasyCore, + security: operations.GetOrganizationSecurity, request: operations.GetOrganizationRequest, options?: RequestOptions, ): Promise { return queryClient.prefetchQuery({ ...buildOrganizationsGetQuery( client$, + security, request, options, ), @@ -33,6 +35,7 @@ export function prefetchOrganizationsGet( export function buildOrganizationsGetQuery( client$: SpeakeasyCore, + security: operations.GetOrganizationSecurity, request: operations.GetOrganizationRequest, options?: RequestOptions, ): { @@ -59,6 +62,7 @@ export function buildOrganizationsGetQuery( return unwrapAsync(organizationsGet( client$, + security, request, mergedOptions, )); diff --git a/src/react-query/organizationsGet.ts b/src/react-query/organizationsGet.ts index fef5de40..1e4a6b94 100644 --- a/src/react-query/organizationsGet.ts +++ b/src/react-query/organizationsGet.ts @@ -59,6 +59,7 @@ export type OrganizationsGetQueryError = * Get information about a particular organization. */ export function useOrganizationsGet( + security: operations.GetOrganizationSecurity, request: operations.GetOrganizationRequest, options?: QueryHookOptions< OrganizationsGetQueryData, @@ -69,6 +70,7 @@ export function useOrganizationsGet( return useQuery({ ...buildOrganizationsGetQuery( client, + security, request, options, ), @@ -83,6 +85,7 @@ export function useOrganizationsGet( * Get information about a particular organization. */ export function useOrganizationsGetSuspense( + security: operations.GetOrganizationSecurity, request: operations.GetOrganizationRequest, options?: SuspenseQueryHookOptions< OrganizationsGetQueryData, @@ -96,6 +99,7 @@ export function useOrganizationsGetSuspense( return useSuspenseQuery({ ...buildOrganizationsGetQuery( client, + security, request, options, ), diff --git a/src/react-query/organizationsGetAll.core.ts b/src/react-query/organizationsGetAll.core.ts index 49573a31..e6ce4429 100644 --- a/src/react-query/organizationsGetAll.core.ts +++ b/src/react-query/organizationsGetAll.core.ts @@ -11,6 +11,7 @@ import { SpeakeasyCore } from "../core.js"; import { organizationsGetAll } from "../funcs/organizationsGetAll.js"; import { combineSignals } from "../lib/primitives.js"; import { RequestOptions } from "../lib/sdks.js"; +import * as operations from "../sdk/models/operations/index.js"; import * as shared from "../sdk/models/shared/index.js"; import { unwrapAsync } from "../sdk/types/fp.js"; export type OrganizationsGetAllQueryData = Array; @@ -18,11 +19,13 @@ export type OrganizationsGetAllQueryData = Array; export function prefetchOrganizationsGetAll( queryClient: QueryClient, client$: SpeakeasyCore, + security: operations.GetOrganizationsSecurity, options?: RequestOptions, ): Promise { return queryClient.prefetchQuery({ ...buildOrganizationsGetAllQuery( client$, + security, options, ), }); @@ -30,6 +33,7 @@ export function prefetchOrganizationsGetAll( export function buildOrganizationsGetAllQuery( client$: SpeakeasyCore, + security: operations.GetOrganizationsSecurity, options?: RequestOptions, ): { queryKey: QueryKey; @@ -55,6 +59,7 @@ export function buildOrganizationsGetAllQuery( return unwrapAsync(organizationsGetAll( client$, + security, mergedOptions, )); }, diff --git a/src/react-query/organizationsGetAll.ts b/src/react-query/organizationsGetAll.ts index 04b753ad..958d92c1 100644 --- a/src/react-query/organizationsGetAll.ts +++ b/src/react-query/organizationsGetAll.ts @@ -21,6 +21,7 @@ import * as errors from "../sdk/models/errors/index.js"; import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; import { SpeakeasyError } from "../sdk/models/errors/speakeasyerror.js"; +import * as operations from "../sdk/models/operations/index.js"; import { useSpeakeasyContext } from "./_context.js"; import { QueryHookOptions, SuspenseQueryHookOptions } from "./_types.js"; import { @@ -54,6 +55,7 @@ export type OrganizationsGetAllQueryError = * Returns a list of organizations a user has access too */ export function useOrganizationsGetAll( + security: operations.GetOrganizationsSecurity, options?: QueryHookOptions< OrganizationsGetAllQueryData, OrganizationsGetAllQueryError @@ -63,6 +65,7 @@ export function useOrganizationsGetAll( return useQuery({ ...buildOrganizationsGetAllQuery( client, + security, options, ), ...options, @@ -76,6 +79,7 @@ export function useOrganizationsGetAll( * Returns a list of organizations a user has access too */ export function useOrganizationsGetAllSuspense( + security: operations.GetOrganizationsSecurity, options?: SuspenseQueryHookOptions< OrganizationsGetAllQueryData, OrganizationsGetAllQueryError @@ -88,6 +92,7 @@ export function useOrganizationsGetAllSuspense( return useSuspenseQuery({ ...buildOrganizationsGetAllQuery( client, + security, options, ), ...options, diff --git a/src/react-query/organizationsGetBillingAddOns.core.ts b/src/react-query/organizationsGetBillingAddOns.core.ts index 559ea5fc..27f2a02d 100644 --- a/src/react-query/organizationsGetBillingAddOns.core.ts +++ b/src/react-query/organizationsGetBillingAddOns.core.ts @@ -11,6 +11,7 @@ import { SpeakeasyCore } from "../core.js"; import { organizationsGetBillingAddOns } from "../funcs/organizationsGetBillingAddOns.js"; import { combineSignals } from "../lib/primitives.js"; import { RequestOptions } from "../lib/sdks.js"; +import * as operations from "../sdk/models/operations/index.js"; import * as shared from "../sdk/models/shared/index.js"; import { unwrapAsync } from "../sdk/types/fp.js"; export type OrganizationsGetBillingAddOnsQueryData = @@ -19,11 +20,13 @@ export type OrganizationsGetBillingAddOnsQueryData = export function prefetchOrganizationsGetBillingAddOns( queryClient: QueryClient, client$: SpeakeasyCore, + security: operations.GetBillingAddOnsSecurity, options?: RequestOptions, ): Promise { return queryClient.prefetchQuery({ ...buildOrganizationsGetBillingAddOnsQuery( client$, + security, options, ), }); @@ -31,6 +34,7 @@ export function prefetchOrganizationsGetBillingAddOns( export function buildOrganizationsGetBillingAddOnsQuery( client$: SpeakeasyCore, + security: operations.GetBillingAddOnsSecurity, options?: RequestOptions, ): { queryKey: QueryKey; @@ -56,6 +60,7 @@ export function buildOrganizationsGetBillingAddOnsQuery( return unwrapAsync(organizationsGetBillingAddOns( client$, + security, mergedOptions, )); }, diff --git a/src/react-query/organizationsGetBillingAddOns.ts b/src/react-query/organizationsGetBillingAddOns.ts index a649a6ef..b1ffd3ea 100644 --- a/src/react-query/organizationsGetBillingAddOns.ts +++ b/src/react-query/organizationsGetBillingAddOns.ts @@ -21,6 +21,7 @@ import * as errors from "../sdk/models/errors/index.js"; import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; import { SpeakeasyError } from "../sdk/models/errors/speakeasyerror.js"; +import * as operations from "../sdk/models/operations/index.js"; import { useSpeakeasyContext } from "./_context.js"; import { QueryHookOptions, SuspenseQueryHookOptions } from "./_types.js"; import { @@ -51,6 +52,7 @@ export type OrganizationsGetBillingAddOnsQueryError = * Get billing add ons */ export function useOrganizationsGetBillingAddOns( + security: operations.GetBillingAddOnsSecurity, options?: QueryHookOptions< OrganizationsGetBillingAddOnsQueryData, OrganizationsGetBillingAddOnsQueryError @@ -63,6 +65,7 @@ export function useOrganizationsGetBillingAddOns( return useQuery({ ...buildOrganizationsGetBillingAddOnsQuery( client, + security, options, ), ...options, @@ -73,6 +76,7 @@ export function useOrganizationsGetBillingAddOns( * Get billing add ons */ export function useOrganizationsGetBillingAddOnsSuspense( + security: operations.GetBillingAddOnsSecurity, options?: SuspenseQueryHookOptions< OrganizationsGetBillingAddOnsQueryData, OrganizationsGetBillingAddOnsQueryError @@ -85,6 +89,7 @@ export function useOrganizationsGetBillingAddOnsSuspense( return useSuspenseQuery({ ...buildOrganizationsGetBillingAddOnsQuery( client, + security, options, ), ...options, diff --git a/src/react-query/organizationsGetBillingEmail.core.ts b/src/react-query/organizationsGetBillingEmail.core.ts new file mode 100644 index 00000000..1b3d2fc4 --- /dev/null +++ b/src/react-query/organizationsGetBillingEmail.core.ts @@ -0,0 +1,75 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { + QueryClient, + QueryFunctionContext, + QueryKey, +} from "@tanstack/react-query"; +import { SpeakeasyCore } from "../core.js"; +import { organizationsGetBillingEmail } from "../funcs/organizationsGetBillingEmail.js"; +import { combineSignals } from "../lib/primitives.js"; +import { RequestOptions } from "../lib/sdks.js"; +import * as operations from "../sdk/models/operations/index.js"; +import * as shared from "../sdk/models/shared/index.js"; +import { unwrapAsync } from "../sdk/types/fp.js"; +export type OrganizationsGetBillingEmailQueryData = shared.BillingEmailResponse; + +export function prefetchOrganizationsGetBillingEmail( + queryClient: QueryClient, + client$: SpeakeasyCore, + security: operations.GetBillingEmailSecurity, + options?: RequestOptions, +): Promise { + return queryClient.prefetchQuery({ + ...buildOrganizationsGetBillingEmailQuery( + client$, + security, + options, + ), + }); +} + +export function buildOrganizationsGetBillingEmailQuery( + client$: SpeakeasyCore, + security: operations.GetBillingEmailSecurity, + options?: RequestOptions, +): { + queryKey: QueryKey; + queryFn: ( + context: QueryFunctionContext, + ) => Promise; +} { + return { + queryKey: queryKeyOrganizationsGetBillingEmail(), + queryFn: async function organizationsGetBillingEmailQueryFn( + ctx, + ): Promise { + const sig = combineSignals( + ctx.signal, + options?.signal, + options?.fetchOptions?.signal, + ); + const mergedOptions = { + ...options?.fetchOptions, + ...options, + signal: sig, + }; + + return unwrapAsync(organizationsGetBillingEmail( + client$, + security, + mergedOptions, + )); + }, + }; +} + +export function queryKeyOrganizationsGetBillingEmail(): QueryKey { + return [ + "@speakeasy-api/speakeasy-client-sdk-typescript", + "Organizations", + "getBillingEmail", + ]; +} diff --git a/src/react-query/organizationsGetBillingEmail.ts b/src/react-query/organizationsGetBillingEmail.ts new file mode 100644 index 00000000..747f3934 --- /dev/null +++ b/src/react-query/organizationsGetBillingEmail.ts @@ -0,0 +1,126 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { + InvalidateQueryFilters, + QueryClient, + useQuery, + UseQueryResult, + useSuspenseQuery, + UseSuspenseQueryResult, +} from "@tanstack/react-query"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import { SpeakeasyError } from "../sdk/models/errors/speakeasyerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { useSpeakeasyContext } from "./_context.js"; +import { QueryHookOptions, SuspenseQueryHookOptions } from "./_types.js"; +import { + buildOrganizationsGetBillingEmailQuery, + OrganizationsGetBillingEmailQueryData, + prefetchOrganizationsGetBillingEmail, + queryKeyOrganizationsGetBillingEmail, +} from "./organizationsGetBillingEmail.core.js"; +export { + buildOrganizationsGetBillingEmailQuery, + type OrganizationsGetBillingEmailQueryData, + prefetchOrganizationsGetBillingEmail, + queryKeyOrganizationsGetBillingEmail, +}; + +export type OrganizationsGetBillingEmailQueryError = + | errors.ErrorT + | SpeakeasyError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError; + +/** + * Get billing email for an organization + * + * @remarks + * Returns the billing email and Stripe customer status for the current organization + */ +export function useOrganizationsGetBillingEmail( + security: operations.GetBillingEmailSecurity, + options?: QueryHookOptions< + OrganizationsGetBillingEmailQueryData, + OrganizationsGetBillingEmailQueryError + >, +): UseQueryResult< + OrganizationsGetBillingEmailQueryData, + OrganizationsGetBillingEmailQueryError +> { + const client = useSpeakeasyContext(); + return useQuery({ + ...buildOrganizationsGetBillingEmailQuery( + client, + security, + options, + ), + ...options, + }); +} + +/** + * Get billing email for an organization + * + * @remarks + * Returns the billing email and Stripe customer status for the current organization + */ +export function useOrganizationsGetBillingEmailSuspense( + security: operations.GetBillingEmailSecurity, + options?: SuspenseQueryHookOptions< + OrganizationsGetBillingEmailQueryData, + OrganizationsGetBillingEmailQueryError + >, +): UseSuspenseQueryResult< + OrganizationsGetBillingEmailQueryData, + OrganizationsGetBillingEmailQueryError +> { + const client = useSpeakeasyContext(); + return useSuspenseQuery({ + ...buildOrganizationsGetBillingEmailQuery( + client, + security, + options, + ), + ...options, + }); +} + +export function setOrganizationsGetBillingEmailData( + client: QueryClient, + data: OrganizationsGetBillingEmailQueryData, +): OrganizationsGetBillingEmailQueryData | undefined { + const key = queryKeyOrganizationsGetBillingEmail(); + + return client.setQueryData(key, data); +} + +export function invalidateAllOrganizationsGetBillingEmail( + client: QueryClient, + filters?: Omit, +): Promise { + return client.invalidateQueries({ + ...filters, + queryKey: [ + "@speakeasy-api/speakeasy-client-sdk-typescript", + "Organizations", + "getBillingEmail", + ], + }); +} diff --git a/src/react-query/organizationsGetBillingOperations.core.ts b/src/react-query/organizationsGetBillingOperations.core.ts index c49f4949..c0e27188 100644 --- a/src/react-query/organizationsGetBillingOperations.core.ts +++ b/src/react-query/organizationsGetBillingOperations.core.ts @@ -20,13 +20,13 @@ export type OrganizationsGetBillingOperationsQueryData = export function prefetchOrganizationsGetBillingOperations( queryClient: QueryClient, client$: SpeakeasyCore, - request: operations.GetBillingOperationsRequest, + security: operations.GetBillingOperationsSecurity, options?: RequestOptions, ): Promise { return queryClient.prefetchQuery({ ...buildOrganizationsGetBillingOperationsQuery( client$, - request, + security, options, ), }); @@ -34,7 +34,7 @@ export function prefetchOrganizationsGetBillingOperations( export function buildOrganizationsGetBillingOperationsQuery( client$: SpeakeasyCore, - request: operations.GetBillingOperationsRequest, + security: operations.GetBillingOperationsSecurity, options?: RequestOptions, ): { queryKey: QueryKey; @@ -43,9 +43,7 @@ export function buildOrganizationsGetBillingOperationsQuery( ) => Promise; } { return { - queryKey: queryKeyOrganizationsGetBillingOperations({ - includeOperationIds: request.includeOperationIds, - }), + queryKey: queryKeyOrganizationsGetBillingOperations(), queryFn: async function organizationsGetBillingOperationsQueryFn( ctx, ): Promise { @@ -62,20 +60,17 @@ export function buildOrganizationsGetBillingOperationsQuery( return unwrapAsync(organizationsGetBillingOperations( client$, - request, + security, mergedOptions, )); }, }; } -export function queryKeyOrganizationsGetBillingOperations( - parameters: { includeOperationIds?: boolean | undefined }, -): QueryKey { +export function queryKeyOrganizationsGetBillingOperations(): QueryKey { return [ "@speakeasy-api/speakeasy-client-sdk-typescript", "Organizations", "getBillingOperations", - parameters, ]; } diff --git a/src/react-query/organizationsGetBillingOperations.ts b/src/react-query/organizationsGetBillingOperations.ts index 8acba4b8..97624e59 100644 --- a/src/react-query/organizationsGetBillingOperations.ts +++ b/src/react-query/organizationsGetBillingOperations.ts @@ -23,11 +23,7 @@ import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; import { SpeakeasyError } from "../sdk/models/errors/speakeasyerror.js"; import * as operations from "../sdk/models/operations/index.js"; import { useSpeakeasyContext } from "./_context.js"; -import { - QueryHookOptions, - SuspenseQueryHookOptions, - TupleToPrefixes, -} from "./_types.js"; +import { QueryHookOptions, SuspenseQueryHookOptions } from "./_types.js"; import { buildOrganizationsGetBillingOperationsQuery, OrganizationsGetBillingOperationsQueryData, @@ -56,11 +52,12 @@ export type OrganizationsGetBillingOperationsQueryError = * Get billing operations breakdown for an organization * * @remarks - * Returns a breakdown of billing operations by spec and target for an organization. - * The billing formula is: Total = sum(operationIds per spec x targets per spec) + * Returns a breakdown of billing operations by language and generated SDK target + * for an organization. Each language row is sourced from generation events, + * and target rows optionally include the source spec namespace when available. */ export function useOrganizationsGetBillingOperations( - request: operations.GetBillingOperationsRequest, + security: operations.GetBillingOperationsSecurity, options?: QueryHookOptions< OrganizationsGetBillingOperationsQueryData, OrganizationsGetBillingOperationsQueryError @@ -73,7 +70,7 @@ export function useOrganizationsGetBillingOperations( return useQuery({ ...buildOrganizationsGetBillingOperationsQuery( client, - request, + security, options, ), ...options, @@ -84,11 +81,12 @@ export function useOrganizationsGetBillingOperations( * Get billing operations breakdown for an organization * * @remarks - * Returns a breakdown of billing operations by spec and target for an organization. - * The billing formula is: Total = sum(operationIds per spec x targets per spec) + * Returns a breakdown of billing operations by language and generated SDK target + * for an organization. Each language row is sourced from generation events, + * and target rows optionally include the source spec namespace when available. */ export function useOrganizationsGetBillingOperationsSuspense( - request: operations.GetBillingOperationsRequest, + security: operations.GetBillingOperationsSecurity, options?: SuspenseQueryHookOptions< OrganizationsGetBillingOperationsQueryData, OrganizationsGetBillingOperationsQueryError @@ -101,7 +99,7 @@ export function useOrganizationsGetBillingOperationsSuspense( return useSuspenseQuery({ ...buildOrganizationsGetBillingOperationsQuery( client, - request, + security, options, ), ...options, @@ -110,10 +108,9 @@ export function useOrganizationsGetBillingOperationsSuspense( export function setOrganizationsGetBillingOperationsData( client: QueryClient, - queryKeyBase: [parameters: { includeOperationIds?: boolean | undefined }], data: OrganizationsGetBillingOperationsQueryData, ): OrganizationsGetBillingOperationsQueryData | undefined { - const key = queryKeyOrganizationsGetBillingOperations(...queryKeyBase); + const key = queryKeyOrganizationsGetBillingOperations(); return client.setQueryData( key, @@ -121,24 +118,6 @@ export function setOrganizationsGetBillingOperationsData( ); } -export function invalidateOrganizationsGetBillingOperations( - client: QueryClient, - queryKeyBase: TupleToPrefixes< - [parameters: { includeOperationIds?: boolean | undefined }] - >, - filters?: Omit, -): Promise { - return client.invalidateQueries({ - ...filters, - queryKey: [ - "@speakeasy-api/speakeasy-client-sdk-typescript", - "Organizations", - "getBillingOperations", - ...queryKeyBase, - ], - }); -} - export function invalidateAllOrganizationsGetBillingOperations( client: QueryClient, filters?: Omit, diff --git a/src/react-query/organizationsGetBusinessTierPrices.core.ts b/src/react-query/organizationsGetBusinessTierPrices.core.ts new file mode 100644 index 00000000..d2486a59 --- /dev/null +++ b/src/react-query/organizationsGetBusinessTierPrices.core.ts @@ -0,0 +1,76 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { + QueryClient, + QueryFunctionContext, + QueryKey, +} from "@tanstack/react-query"; +import { SpeakeasyCore } from "../core.js"; +import { organizationsGetBusinessTierPrices } from "../funcs/organizationsGetBusinessTierPrices.js"; +import { combineSignals } from "../lib/primitives.js"; +import { RequestOptions } from "../lib/sdks.js"; +import * as operations from "../sdk/models/operations/index.js"; +import * as shared from "../sdk/models/shared/index.js"; +import { unwrapAsync } from "../sdk/types/fp.js"; +export type OrganizationsGetBusinessTierPricesQueryData = + shared.BusinessTierPricesResponse; + +export function prefetchOrganizationsGetBusinessTierPrices( + queryClient: QueryClient, + client$: SpeakeasyCore, + security: operations.GetBusinessTierPricesSecurity, + options?: RequestOptions, +): Promise { + return queryClient.prefetchQuery({ + ...buildOrganizationsGetBusinessTierPricesQuery( + client$, + security, + options, + ), + }); +} + +export function buildOrganizationsGetBusinessTierPricesQuery( + client$: SpeakeasyCore, + security: operations.GetBusinessTierPricesSecurity, + options?: RequestOptions, +): { + queryKey: QueryKey; + queryFn: ( + context: QueryFunctionContext, + ) => Promise; +} { + return { + queryKey: queryKeyOrganizationsGetBusinessTierPrices(), + queryFn: async function organizationsGetBusinessTierPricesQueryFn( + ctx, + ): Promise { + const sig = combineSignals( + ctx.signal, + options?.signal, + options?.fetchOptions?.signal, + ); + const mergedOptions = { + ...options?.fetchOptions, + ...options, + signal: sig, + }; + + return unwrapAsync(organizationsGetBusinessTierPrices( + client$, + security, + mergedOptions, + )); + }, + }; +} + +export function queryKeyOrganizationsGetBusinessTierPrices(): QueryKey { + return [ + "@speakeasy-api/speakeasy-client-sdk-typescript", + "Organizations", + "getBusinessTierPrices", + ]; +} diff --git a/src/react-query/organizationsGetBusinessTierPrices.ts b/src/react-query/organizationsGetBusinessTierPrices.ts new file mode 100644 index 00000000..9fd6cdf4 --- /dev/null +++ b/src/react-query/organizationsGetBusinessTierPrices.ts @@ -0,0 +1,129 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { + InvalidateQueryFilters, + QueryClient, + useQuery, + UseQueryResult, + useSuspenseQuery, + UseSuspenseQueryResult, +} from "@tanstack/react-query"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import { SpeakeasyError } from "../sdk/models/errors/speakeasyerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { useSpeakeasyContext } from "./_context.js"; +import { QueryHookOptions, SuspenseQueryHookOptions } from "./_types.js"; +import { + buildOrganizationsGetBusinessTierPricesQuery, + OrganizationsGetBusinessTierPricesQueryData, + prefetchOrganizationsGetBusinessTierPrices, + queryKeyOrganizationsGetBusinessTierPrices, +} from "./organizationsGetBusinessTierPrices.core.js"; +export { + buildOrganizationsGetBusinessTierPricesQuery, + type OrganizationsGetBusinessTierPricesQueryData, + prefetchOrganizationsGetBusinessTierPrices, + queryKeyOrganizationsGetBusinessTierPrices, +}; + +export type OrganizationsGetBusinessTierPricesQueryError = + | errors.ErrorT + | SpeakeasyError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError; + +/** + * Get business tier prices + * + * @remarks + * Returns both monthly and annual business tier prices from Stripe + */ +export function useOrganizationsGetBusinessTierPrices( + security: operations.GetBusinessTierPricesSecurity, + options?: QueryHookOptions< + OrganizationsGetBusinessTierPricesQueryData, + OrganizationsGetBusinessTierPricesQueryError + >, +): UseQueryResult< + OrganizationsGetBusinessTierPricesQueryData, + OrganizationsGetBusinessTierPricesQueryError +> { + const client = useSpeakeasyContext(); + return useQuery({ + ...buildOrganizationsGetBusinessTierPricesQuery( + client, + security, + options, + ), + ...options, + }); +} + +/** + * Get business tier prices + * + * @remarks + * Returns both monthly and annual business tier prices from Stripe + */ +export function useOrganizationsGetBusinessTierPricesSuspense( + security: operations.GetBusinessTierPricesSecurity, + options?: SuspenseQueryHookOptions< + OrganizationsGetBusinessTierPricesQueryData, + OrganizationsGetBusinessTierPricesQueryError + >, +): UseSuspenseQueryResult< + OrganizationsGetBusinessTierPricesQueryData, + OrganizationsGetBusinessTierPricesQueryError +> { + const client = useSpeakeasyContext(); + return useSuspenseQuery({ + ...buildOrganizationsGetBusinessTierPricesQuery( + client, + security, + options, + ), + ...options, + }); +} + +export function setOrganizationsGetBusinessTierPricesData( + client: QueryClient, + data: OrganizationsGetBusinessTierPricesQueryData, +): OrganizationsGetBusinessTierPricesQueryData | undefined { + const key = queryKeyOrganizationsGetBusinessTierPrices(); + + return client.setQueryData( + key, + data, + ); +} + +export function invalidateAllOrganizationsGetBusinessTierPrices( + client: QueryClient, + filters?: Omit, +): Promise { + return client.invalidateQueries({ + ...filters, + queryKey: [ + "@speakeasy-api/speakeasy-client-sdk-typescript", + "Organizations", + "getBusinessTierPrices", + ], + }); +} diff --git a/src/react-query/organizationsGetLanguages.core.ts b/src/react-query/organizationsGetLanguages.core.ts new file mode 100644 index 00000000..19d5c463 --- /dev/null +++ b/src/react-query/organizationsGetLanguages.core.ts @@ -0,0 +1,75 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { + QueryClient, + QueryFunctionContext, + QueryKey, +} from "@tanstack/react-query"; +import { SpeakeasyCore } from "../core.js"; +import { organizationsGetLanguages } from "../funcs/organizationsGetLanguages.js"; +import { combineSignals } from "../lib/primitives.js"; +import { RequestOptions } from "../lib/sdks.js"; +import * as operations from "../sdk/models/operations/index.js"; +import * as shared from "../sdk/models/shared/index.js"; +import { unwrapAsync } from "../sdk/types/fp.js"; +export type OrganizationsGetLanguagesQueryData = shared.GetLanguagesResponse; + +export function prefetchOrganizationsGetLanguages( + queryClient: QueryClient, + client$: SpeakeasyCore, + security: operations.GetLanguagesSecurity, + options?: RequestOptions, +): Promise { + return queryClient.prefetchQuery({ + ...buildOrganizationsGetLanguagesQuery( + client$, + security, + options, + ), + }); +} + +export function buildOrganizationsGetLanguagesQuery( + client$: SpeakeasyCore, + security: operations.GetLanguagesSecurity, + options?: RequestOptions, +): { + queryKey: QueryKey; + queryFn: ( + context: QueryFunctionContext, + ) => Promise; +} { + return { + queryKey: queryKeyOrganizationsGetLanguages(), + queryFn: async function organizationsGetLanguagesQueryFn( + ctx, + ): Promise { + const sig = combineSignals( + ctx.signal, + options?.signal, + options?.fetchOptions?.signal, + ); + const mergedOptions = { + ...options?.fetchOptions, + ...options, + signal: sig, + }; + + return unwrapAsync(organizationsGetLanguages( + client$, + security, + mergedOptions, + )); + }, + }; +} + +export function queryKeyOrganizationsGetLanguages(): QueryKey { + return [ + "@speakeasy-api/speakeasy-client-sdk-typescript", + "Organizations", + "getLanguages", + ]; +} diff --git a/src/react-query/organizationsGetLanguages.ts b/src/react-query/organizationsGetLanguages.ts new file mode 100644 index 00000000..9ccb20e3 --- /dev/null +++ b/src/react-query/organizationsGetLanguages.ts @@ -0,0 +1,128 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { + InvalidateQueryFilters, + QueryClient, + useQuery, + UseQueryResult, + useSuspenseQuery, + UseSuspenseQueryResult, +} from "@tanstack/react-query"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import { SpeakeasyError } from "../sdk/models/errors/speakeasyerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { useSpeakeasyContext } from "./_context.js"; +import { QueryHookOptions, SuspenseQueryHookOptions } from "./_types.js"; +import { + buildOrganizationsGetLanguagesQuery, + OrganizationsGetLanguagesQueryData, + prefetchOrganizationsGetLanguages, + queryKeyOrganizationsGetLanguages, +} from "./organizationsGetLanguages.core.js"; +export { + buildOrganizationsGetLanguagesQuery, + type OrganizationsGetLanguagesQueryData, + prefetchOrganizationsGetLanguages, + queryKeyOrganizationsGetLanguages, +}; + +export type OrganizationsGetLanguagesQueryError = + | errors.ErrorT + | SpeakeasyError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError; + +/** + * Get language billing configurations + * + * @remarks + * Returns all language billing configurations for the organization. + * Only returns languages with self-serve billing configured. + */ +export function useOrganizationsGetLanguages( + security: operations.GetLanguagesSecurity, + options?: QueryHookOptions< + OrganizationsGetLanguagesQueryData, + OrganizationsGetLanguagesQueryError + >, +): UseQueryResult< + OrganizationsGetLanguagesQueryData, + OrganizationsGetLanguagesQueryError +> { + const client = useSpeakeasyContext(); + return useQuery({ + ...buildOrganizationsGetLanguagesQuery( + client, + security, + options, + ), + ...options, + }); +} + +/** + * Get language billing configurations + * + * @remarks + * Returns all language billing configurations for the organization. + * Only returns languages with self-serve billing configured. + */ +export function useOrganizationsGetLanguagesSuspense( + security: operations.GetLanguagesSecurity, + options?: SuspenseQueryHookOptions< + OrganizationsGetLanguagesQueryData, + OrganizationsGetLanguagesQueryError + >, +): UseSuspenseQueryResult< + OrganizationsGetLanguagesQueryData, + OrganizationsGetLanguagesQueryError +> { + const client = useSpeakeasyContext(); + return useSuspenseQuery({ + ...buildOrganizationsGetLanguagesQuery( + client, + security, + options, + ), + ...options, + }); +} + +export function setOrganizationsGetLanguagesData( + client: QueryClient, + data: OrganizationsGetLanguagesQueryData, +): OrganizationsGetLanguagesQueryData | undefined { + const key = queryKeyOrganizationsGetLanguages(); + + return client.setQueryData(key, data); +} + +export function invalidateAllOrganizationsGetLanguages( + client: QueryClient, + filters?: Omit, +): Promise { + return client.invalidateQueries({ + ...filters, + queryKey: [ + "@speakeasy-api/speakeasy-client-sdk-typescript", + "Organizations", + "getLanguages", + ], + }); +} diff --git a/src/react-query/organizationsGetSubscription.core.ts b/src/react-query/organizationsGetSubscription.core.ts new file mode 100644 index 00000000..1a92b84f --- /dev/null +++ b/src/react-query/organizationsGetSubscription.core.ts @@ -0,0 +1,76 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { + QueryClient, + QueryFunctionContext, + QueryKey, +} from "@tanstack/react-query"; +import { SpeakeasyCore } from "../core.js"; +import { organizationsGetSubscription } from "../funcs/organizationsGetSubscription.js"; +import { combineSignals } from "../lib/primitives.js"; +import { RequestOptions } from "../lib/sdks.js"; +import * as operations from "../sdk/models/operations/index.js"; +import * as shared from "../sdk/models/shared/index.js"; +import { unwrapAsync } from "../sdk/types/fp.js"; +export type OrganizationsGetSubscriptionQueryData = + shared.OrganizationSubscriptionResponse; + +export function prefetchOrganizationsGetSubscription( + queryClient: QueryClient, + client$: SpeakeasyCore, + security: operations.GetOrganizationSubscriptionSecurity, + options?: RequestOptions, +): Promise { + return queryClient.prefetchQuery({ + ...buildOrganizationsGetSubscriptionQuery( + client$, + security, + options, + ), + }); +} + +export function buildOrganizationsGetSubscriptionQuery( + client$: SpeakeasyCore, + security: operations.GetOrganizationSubscriptionSecurity, + options?: RequestOptions, +): { + queryKey: QueryKey; + queryFn: ( + context: QueryFunctionContext, + ) => Promise; +} { + return { + queryKey: queryKeyOrganizationsGetSubscription(), + queryFn: async function organizationsGetSubscriptionQueryFn( + ctx, + ): Promise { + const sig = combineSignals( + ctx.signal, + options?.signal, + options?.fetchOptions?.signal, + ); + const mergedOptions = { + ...options?.fetchOptions, + ...options, + signal: sig, + }; + + return unwrapAsync(organizationsGetSubscription( + client$, + security, + mergedOptions, + )); + }, + }; +} + +export function queryKeyOrganizationsGetSubscription(): QueryKey { + return [ + "@speakeasy-api/speakeasy-client-sdk-typescript", + "Organizations", + "getSubscription", + ]; +} diff --git a/src/react-query/organizationsGetSubscription.ts b/src/react-query/organizationsGetSubscription.ts new file mode 100644 index 00000000..f80d8a07 --- /dev/null +++ b/src/react-query/organizationsGetSubscription.ts @@ -0,0 +1,126 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { + InvalidateQueryFilters, + QueryClient, + useQuery, + UseQueryResult, + useSuspenseQuery, + UseSuspenseQueryResult, +} from "@tanstack/react-query"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import { SpeakeasyError } from "../sdk/models/errors/speakeasyerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { useSpeakeasyContext } from "./_context.js"; +import { QueryHookOptions, SuspenseQueryHookOptions } from "./_types.js"; +import { + buildOrganizationsGetSubscriptionQuery, + OrganizationsGetSubscriptionQueryData, + prefetchOrganizationsGetSubscription, + queryKeyOrganizationsGetSubscription, +} from "./organizationsGetSubscription.core.js"; +export { + buildOrganizationsGetSubscriptionQuery, + type OrganizationsGetSubscriptionQueryData, + prefetchOrganizationsGetSubscription, + queryKeyOrganizationsGetSubscription, +}; + +export type OrganizationsGetSubscriptionQueryError = + | errors.ErrorT + | SpeakeasyError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError; + +/** + * Get organization subscription + * + * @remarks + * Returns the subscription status for the current organization + */ +export function useOrganizationsGetSubscription( + security: operations.GetOrganizationSubscriptionSecurity, + options?: QueryHookOptions< + OrganizationsGetSubscriptionQueryData, + OrganizationsGetSubscriptionQueryError + >, +): UseQueryResult< + OrganizationsGetSubscriptionQueryData, + OrganizationsGetSubscriptionQueryError +> { + const client = useSpeakeasyContext(); + return useQuery({ + ...buildOrganizationsGetSubscriptionQuery( + client, + security, + options, + ), + ...options, + }); +} + +/** + * Get organization subscription + * + * @remarks + * Returns the subscription status for the current organization + */ +export function useOrganizationsGetSubscriptionSuspense( + security: operations.GetOrganizationSubscriptionSecurity, + options?: SuspenseQueryHookOptions< + OrganizationsGetSubscriptionQueryData, + OrganizationsGetSubscriptionQueryError + >, +): UseSuspenseQueryResult< + OrganizationsGetSubscriptionQueryData, + OrganizationsGetSubscriptionQueryError +> { + const client = useSpeakeasyContext(); + return useSuspenseQuery({ + ...buildOrganizationsGetSubscriptionQuery( + client, + security, + options, + ), + ...options, + }); +} + +export function setOrganizationsGetSubscriptionData( + client: QueryClient, + data: OrganizationsGetSubscriptionQueryData, +): OrganizationsGetSubscriptionQueryData | undefined { + const key = queryKeyOrganizationsGetSubscription(); + + return client.setQueryData(key, data); +} + +export function invalidateAllOrganizationsGetSubscription( + client: QueryClient, + filters?: Omit, +): Promise { + return client.invalidateQueries({ + ...filters, + queryKey: [ + "@speakeasy-api/speakeasy-client-sdk-typescript", + "Organizations", + "getSubscription", + ], + }); +} diff --git a/src/react-query/organizationsGetTrialTargets.core.ts b/src/react-query/organizationsGetTrialTargets.core.ts new file mode 100644 index 00000000..93606247 --- /dev/null +++ b/src/react-query/organizationsGetTrialTargets.core.ts @@ -0,0 +1,75 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { + QueryClient, + QueryFunctionContext, + QueryKey, +} from "@tanstack/react-query"; +import { SpeakeasyCore } from "../core.js"; +import { organizationsGetTrialTargets } from "../funcs/organizationsGetTrialTargets.js"; +import { combineSignals } from "../lib/primitives.js"; +import { RequestOptions } from "../lib/sdks.js"; +import * as operations from "../sdk/models/operations/index.js"; +import * as shared from "../sdk/models/shared/index.js"; +import { unwrapAsync } from "../sdk/types/fp.js"; +export type OrganizationsGetTrialTargetsQueryData = shared.TrialTargetsResponse; + +export function prefetchOrganizationsGetTrialTargets( + queryClient: QueryClient, + client$: SpeakeasyCore, + security: operations.GetTrialTargetsSecurity, + options?: RequestOptions, +): Promise { + return queryClient.prefetchQuery({ + ...buildOrganizationsGetTrialTargetsQuery( + client$, + security, + options, + ), + }); +} + +export function buildOrganizationsGetTrialTargetsQuery( + client$: SpeakeasyCore, + security: operations.GetTrialTargetsSecurity, + options?: RequestOptions, +): { + queryKey: QueryKey; + queryFn: ( + context: QueryFunctionContext, + ) => Promise; +} { + return { + queryKey: queryKeyOrganizationsGetTrialTargets(), + queryFn: async function organizationsGetTrialTargetsQueryFn( + ctx, + ): Promise { + const sig = combineSignals( + ctx.signal, + options?.signal, + options?.fetchOptions?.signal, + ); + const mergedOptions = { + ...options?.fetchOptions, + ...options, + signal: sig, + }; + + return unwrapAsync(organizationsGetTrialTargets( + client$, + security, + mergedOptions, + )); + }, + }; +} + +export function queryKeyOrganizationsGetTrialTargets(): QueryKey { + return [ + "@speakeasy-api/speakeasy-client-sdk-typescript", + "Organizations", + "getTrialTargets", + ]; +} diff --git a/src/react-query/organizationsGetTrialTargets.ts b/src/react-query/organizationsGetTrialTargets.ts new file mode 100644 index 00000000..1f01ff91 --- /dev/null +++ b/src/react-query/organizationsGetTrialTargets.ts @@ -0,0 +1,130 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { + InvalidateQueryFilters, + QueryClient, + useQuery, + UseQueryResult, + useSuspenseQuery, + UseSuspenseQueryResult, +} from "@tanstack/react-query"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import { SpeakeasyError } from "../sdk/models/errors/speakeasyerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { useSpeakeasyContext } from "./_context.js"; +import { QueryHookOptions, SuspenseQueryHookOptions } from "./_types.js"; +import { + buildOrganizationsGetTrialTargetsQuery, + OrganizationsGetTrialTargetsQueryData, + prefetchOrganizationsGetTrialTargets, + queryKeyOrganizationsGetTrialTargets, +} from "./organizationsGetTrialTargets.core.js"; +export { + buildOrganizationsGetTrialTargetsQuery, + type OrganizationsGetTrialTargetsQueryData, + prefetchOrganizationsGetTrialTargets, + queryKeyOrganizationsGetTrialTargets, +}; + +export type OrganizationsGetTrialTargetsQueryError = + | errors.ErrorT + | SpeakeasyError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError; + +/** + * Get trial targets + * + * @remarks + * Returns the list of target languages with available and used trials for the organization. + * Available trials are languages that have not yet been trialed. + * Used trials are languages that have already been trialed. + */ +export function useOrganizationsGetTrialTargets( + security: operations.GetTrialTargetsSecurity, + options?: QueryHookOptions< + OrganizationsGetTrialTargetsQueryData, + OrganizationsGetTrialTargetsQueryError + >, +): UseQueryResult< + OrganizationsGetTrialTargetsQueryData, + OrganizationsGetTrialTargetsQueryError +> { + const client = useSpeakeasyContext(); + return useQuery({ + ...buildOrganizationsGetTrialTargetsQuery( + client, + security, + options, + ), + ...options, + }); +} + +/** + * Get trial targets + * + * @remarks + * Returns the list of target languages with available and used trials for the organization. + * Available trials are languages that have not yet been trialed. + * Used trials are languages that have already been trialed. + */ +export function useOrganizationsGetTrialTargetsSuspense( + security: operations.GetTrialTargetsSecurity, + options?: SuspenseQueryHookOptions< + OrganizationsGetTrialTargetsQueryData, + OrganizationsGetTrialTargetsQueryError + >, +): UseSuspenseQueryResult< + OrganizationsGetTrialTargetsQueryData, + OrganizationsGetTrialTargetsQueryError +> { + const client = useSpeakeasyContext(); + return useSuspenseQuery({ + ...buildOrganizationsGetTrialTargetsQuery( + client, + security, + options, + ), + ...options, + }); +} + +export function setOrganizationsGetTrialTargetsData( + client: QueryClient, + data: OrganizationsGetTrialTargetsQueryData, +): OrganizationsGetTrialTargetsQueryData | undefined { + const key = queryKeyOrganizationsGetTrialTargets(); + + return client.setQueryData(key, data); +} + +export function invalidateAllOrganizationsGetTrialTargets( + client: QueryClient, + filters?: Omit, +): Promise { + return client.invalidateQueries({ + ...filters, + queryKey: [ + "@speakeasy-api/speakeasy-client-sdk-typescript", + "Organizations", + "getTrialTargets", + ], + }); +} diff --git a/src/react-query/organizationsGetUsage.core.ts b/src/react-query/organizationsGetUsage.core.ts index d6c84a80..f78190cb 100644 --- a/src/react-query/organizationsGetUsage.core.ts +++ b/src/react-query/organizationsGetUsage.core.ts @@ -11,6 +11,7 @@ import { SpeakeasyCore } from "../core.js"; import { organizationsGetUsage } from "../funcs/organizationsGetUsage.js"; import { combineSignals } from "../lib/primitives.js"; import { RequestOptions } from "../lib/sdks.js"; +import * as operations from "../sdk/models/operations/index.js"; import * as shared from "../sdk/models/shared/index.js"; import { unwrapAsync } from "../sdk/types/fp.js"; export type OrganizationsGetUsageQueryData = shared.OrganizationUsageResponse; @@ -18,11 +19,13 @@ export type OrganizationsGetUsageQueryData = shared.OrganizationUsageResponse; export function prefetchOrganizationsGetUsage( queryClient: QueryClient, client$: SpeakeasyCore, + security: operations.GetOrganizationUsageSecurity, options?: RequestOptions, ): Promise { return queryClient.prefetchQuery({ ...buildOrganizationsGetUsageQuery( client$, + security, options, ), }); @@ -30,6 +33,7 @@ export function prefetchOrganizationsGetUsage( export function buildOrganizationsGetUsageQuery( client$: SpeakeasyCore, + security: operations.GetOrganizationUsageSecurity, options?: RequestOptions, ): { queryKey: QueryKey; @@ -55,6 +59,7 @@ export function buildOrganizationsGetUsageQuery( return unwrapAsync(organizationsGetUsage( client$, + security, mergedOptions, )); }, diff --git a/src/react-query/organizationsGetUsage.ts b/src/react-query/organizationsGetUsage.ts index 565a27e8..bee8f662 100644 --- a/src/react-query/organizationsGetUsage.ts +++ b/src/react-query/organizationsGetUsage.ts @@ -21,6 +21,7 @@ import * as errors from "../sdk/models/errors/index.js"; import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; import { SpeakeasyError } from "../sdk/models/errors/speakeasyerror.js"; +import * as operations from "../sdk/models/operations/index.js"; import { useSpeakeasyContext } from "./_context.js"; import { QueryHookOptions, SuspenseQueryHookOptions } from "./_types.js"; import { @@ -54,6 +55,7 @@ export type OrganizationsGetUsageQueryError = * Returns a billing usage summary by target languages for a particular organization */ export function useOrganizationsGetUsage( + security: operations.GetOrganizationUsageSecurity, options?: QueryHookOptions< OrganizationsGetUsageQueryData, OrganizationsGetUsageQueryError @@ -66,6 +68,7 @@ export function useOrganizationsGetUsage( return useQuery({ ...buildOrganizationsGetUsageQuery( client, + security, options, ), ...options, @@ -79,6 +82,7 @@ export function useOrganizationsGetUsage( * Returns a billing usage summary by target languages for a particular organization */ export function useOrganizationsGetUsageSuspense( + security: operations.GetOrganizationUsageSecurity, options?: SuspenseQueryHookOptions< OrganizationsGetUsageQueryData, OrganizationsGetUsageQueryError @@ -91,6 +95,7 @@ export function useOrganizationsGetUsageSuspense( return useSuspenseQuery({ ...buildOrganizationsGetUsageQuery( client, + security, options, ), ...options, diff --git a/src/react-query/organizationsHandleCheckoutCallback.core.ts b/src/react-query/organizationsHandleCheckoutCallback.core.ts new file mode 100644 index 00000000..c004a280 --- /dev/null +++ b/src/react-query/organizationsHandleCheckoutCallback.core.ts @@ -0,0 +1,81 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { + QueryClient, + QueryFunctionContext, + QueryKey, +} from "@tanstack/react-query"; +import { SpeakeasyCore } from "../core.js"; +import { organizationsHandleCheckoutCallback } from "../funcs/organizationsHandleCheckoutCallback.js"; +import { combineSignals } from "../lib/primitives.js"; +import { RequestOptions } from "../lib/sdks.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { unwrapAsync } from "../sdk/types/fp.js"; +export type OrganizationsHandleCheckoutCallbackQueryData = + | operations.HandleCheckoutCallbackResponse + | undefined; + +export function prefetchOrganizationsHandleCheckoutCallback( + queryClient: QueryClient, + client$: SpeakeasyCore, + request: operations.HandleCheckoutCallbackRequest, + options?: RequestOptions, +): Promise { + return queryClient.prefetchQuery({ + ...buildOrganizationsHandleCheckoutCallbackQuery( + client$, + request, + options, + ), + }); +} + +export function buildOrganizationsHandleCheckoutCallbackQuery( + client$: SpeakeasyCore, + request: operations.HandleCheckoutCallbackRequest, + options?: RequestOptions, +): { + queryKey: QueryKey; + queryFn: ( + context: QueryFunctionContext, + ) => Promise; +} { + return { + queryKey: queryKeyOrganizationsHandleCheckoutCallback({ + sessionId: request.sessionId, + }), + queryFn: async function organizationsHandleCheckoutCallbackQueryFn( + ctx, + ): Promise { + const sig = combineSignals( + ctx.signal, + options?.signal, + options?.fetchOptions?.signal, + ); + const mergedOptions = { + ...options?.fetchOptions, + ...options, + signal: sig, + }; + + return unwrapAsync(organizationsHandleCheckoutCallback( + client$, + request, + mergedOptions, + )); + }, + }; +} + +export function queryKeyOrganizationsHandleCheckoutCallback( + parameters: { sessionId: string }, +): QueryKey { + return [ + "@speakeasy-api/speakeasy-client-sdk-typescript", + "Organizations", + "handleCheckoutCallback", + parameters, + ]; +} diff --git a/src/react-query/organizationsHandleCheckoutCallback.ts b/src/react-query/organizationsHandleCheckoutCallback.ts new file mode 100644 index 00000000..ce4c5d70 --- /dev/null +++ b/src/react-query/organizationsHandleCheckoutCallback.ts @@ -0,0 +1,154 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { + InvalidateQueryFilters, + QueryClient, + useQuery, + UseQueryResult, + useSuspenseQuery, + UseSuspenseQueryResult, +} from "@tanstack/react-query"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import { SpeakeasyError } from "../sdk/models/errors/speakeasyerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { useSpeakeasyContext } from "./_context.js"; +import { + QueryHookOptions, + SuspenseQueryHookOptions, + TupleToPrefixes, +} from "./_types.js"; +import { + buildOrganizationsHandleCheckoutCallbackQuery, + OrganizationsHandleCheckoutCallbackQueryData, + prefetchOrganizationsHandleCheckoutCallback, + queryKeyOrganizationsHandleCheckoutCallback, +} from "./organizationsHandleCheckoutCallback.core.js"; +export { + buildOrganizationsHandleCheckoutCallbackQuery, + type OrganizationsHandleCheckoutCallbackQueryData, + prefetchOrganizationsHandleCheckoutCallback, + queryKeyOrganizationsHandleCheckoutCallback, +}; + +export type OrganizationsHandleCheckoutCallbackQueryError = + | errors.ErrorT + | SpeakeasyError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError; + +/** + * Checkout callback + * + * @remarks + * Handles the Stripe checkout success callback. This endpoint is called by Stripe + * after a successful checkout, runs reconciliation (idempotent), and redirects + * to the original client success URL stored in session metadata. + */ +export function useOrganizationsHandleCheckoutCallback( + request: operations.HandleCheckoutCallbackRequest, + options?: QueryHookOptions< + OrganizationsHandleCheckoutCallbackQueryData, + OrganizationsHandleCheckoutCallbackQueryError + >, +): UseQueryResult< + OrganizationsHandleCheckoutCallbackQueryData, + OrganizationsHandleCheckoutCallbackQueryError +> { + const client = useSpeakeasyContext(); + return useQuery({ + ...buildOrganizationsHandleCheckoutCallbackQuery( + client, + request, + options, + ), + ...options, + }); +} + +/** + * Checkout callback + * + * @remarks + * Handles the Stripe checkout success callback. This endpoint is called by Stripe + * after a successful checkout, runs reconciliation (idempotent), and redirects + * to the original client success URL stored in session metadata. + */ +export function useOrganizationsHandleCheckoutCallbackSuspense( + request: operations.HandleCheckoutCallbackRequest, + options?: SuspenseQueryHookOptions< + OrganizationsHandleCheckoutCallbackQueryData, + OrganizationsHandleCheckoutCallbackQueryError + >, +): UseSuspenseQueryResult< + OrganizationsHandleCheckoutCallbackQueryData, + OrganizationsHandleCheckoutCallbackQueryError +> { + const client = useSpeakeasyContext(); + return useSuspenseQuery({ + ...buildOrganizationsHandleCheckoutCallbackQuery( + client, + request, + options, + ), + ...options, + }); +} + +export function setOrganizationsHandleCheckoutCallbackData( + client: QueryClient, + queryKeyBase: [parameters: { sessionId: string }], + data: OrganizationsHandleCheckoutCallbackQueryData, +): OrganizationsHandleCheckoutCallbackQueryData | undefined { + const key = queryKeyOrganizationsHandleCheckoutCallback(...queryKeyBase); + + return client.setQueryData( + key, + data, + ); +} + +export function invalidateOrganizationsHandleCheckoutCallback( + client: QueryClient, + queryKeyBase: TupleToPrefixes<[parameters: { sessionId: string }]>, + filters?: Omit, +): Promise { + return client.invalidateQueries({ + ...filters, + queryKey: [ + "@speakeasy-api/speakeasy-client-sdk-typescript", + "Organizations", + "handleCheckoutCallback", + ...queryKeyBase, + ], + }); +} + +export function invalidateAllOrganizationsHandleCheckoutCallback( + client: QueryClient, + filters?: Omit, +): Promise { + return client.invalidateQueries({ + ...filters, + queryKey: [ + "@speakeasy-api/speakeasy-client-sdk-typescript", + "Organizations", + "handleCheckoutCallback", + ], + }); +} diff --git a/src/react-query/organizationsRevertSubscriptionCancellation.ts b/src/react-query/organizationsRevertSubscriptionCancellation.ts new file mode 100644 index 00000000..3bf1f539 --- /dev/null +++ b/src/react-query/organizationsRevertSubscriptionCancellation.ts @@ -0,0 +1,120 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { + MutationKey, + useMutation, + UseMutationResult, +} from "@tanstack/react-query"; +import { SpeakeasyCore } from "../core.js"; +import { organizationsRevertSubscriptionCancellation } from "../funcs/organizationsRevertSubscriptionCancellation.js"; +import { combineSignals } from "../lib/primitives.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import { SpeakeasyError } from "../sdk/models/errors/speakeasyerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import * as shared from "../sdk/models/shared/index.js"; +import { unwrapAsync } from "../sdk/types/fp.js"; +import { useSpeakeasyContext } from "./_context.js"; +import { MutationHookOptions } from "./_types.js"; + +export type OrganizationsRevertSubscriptionCancellationMutationVariables = { + security: operations.RevertSubscriptionCancellationSecurity; + options?: RequestOptions; +}; + +export type OrganizationsRevertSubscriptionCancellationMutationData = + shared.CancelSubscriptionResponse; + +export type OrganizationsRevertSubscriptionCancellationMutationError = + | errors.ErrorT + | SpeakeasyError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError; + +/** + * Revert subscription cancellation + * + * @remarks + * Reverts a pending subscription cancellation. + * The subscription will continue to renew automatically. + */ +export function useOrganizationsRevertSubscriptionCancellationMutation( + options?: MutationHookOptions< + OrganizationsRevertSubscriptionCancellationMutationData, + OrganizationsRevertSubscriptionCancellationMutationError, + OrganizationsRevertSubscriptionCancellationMutationVariables + >, +): UseMutationResult< + OrganizationsRevertSubscriptionCancellationMutationData, + OrganizationsRevertSubscriptionCancellationMutationError, + OrganizationsRevertSubscriptionCancellationMutationVariables +> { + const client = useSpeakeasyContext(); + return useMutation({ + ...buildOrganizationsRevertSubscriptionCancellationMutation( + client, + options, + ), + ...options, + }); +} + +export function mutationKeyOrganizationsRevertSubscriptionCancellation(): MutationKey { + return [ + "@speakeasy-api/speakeasy-client-sdk-typescript", + "Organizations", + "revertSubscriptionCancellation", + ]; +} + +export function buildOrganizationsRevertSubscriptionCancellationMutation( + client$: SpeakeasyCore, + hookOptions?: RequestOptions, +): { + mutationKey: MutationKey; + mutationFn: ( + variables: OrganizationsRevertSubscriptionCancellationMutationVariables, + ) => Promise; +} { + return { + mutationKey: mutationKeyOrganizationsRevertSubscriptionCancellation(), + mutationFn: function organizationsRevertSubscriptionCancellationMutationFn({ + security, + options, + }): Promise { + const mergedOptions = { + ...hookOptions, + ...options, + fetchOptions: { + ...hookOptions?.fetchOptions, + ...options?.fetchOptions, + signal: combineSignals( + hookOptions?.fetchOptions?.signal, + options?.fetchOptions?.signal, + ), + }, + }; + return unwrapAsync(organizationsRevertSubscriptionCancellation( + client$, + security, + mergedOptions, + )); + }, + }; +} diff --git a/src/react-query/organizationsUpsertBillingEmail.ts b/src/react-query/organizationsUpsertBillingEmail.ts new file mode 100644 index 00000000..f46137f0 --- /dev/null +++ b/src/react-query/organizationsUpsertBillingEmail.ts @@ -0,0 +1,119 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { + MutationKey, + useMutation, + UseMutationResult, +} from "@tanstack/react-query"; +import { SpeakeasyCore } from "../core.js"; +import { organizationsUpsertBillingEmail } from "../funcs/organizationsUpsertBillingEmail.js"; +import { combineSignals } from "../lib/primitives.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../sdk/models/errors/httpclienterrors.js"; +import * as errors from "../sdk/models/errors/index.js"; +import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import { SpeakeasyError } from "../sdk/models/errors/speakeasyerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import * as shared from "../sdk/models/shared/index.js"; +import { unwrapAsync } from "../sdk/types/fp.js"; +import { useSpeakeasyContext } from "./_context.js"; +import { MutationHookOptions } from "./_types.js"; + +export type OrganizationsUpsertBillingEmailMutationVariables = { + security: operations.UpsertBillingEmailSecurity; + request: shared.BillingEmailRequest; + options?: RequestOptions; +}; + +export type OrganizationsUpsertBillingEmailMutationData = + shared.BillingEmailResponse; + +export type OrganizationsUpsertBillingEmailMutationError = + | errors.ErrorT + | SpeakeasyError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError; + +/** + * Create or update billing email + * + * @remarks + * Creates a Stripe customer if one does not exist, or updates the billing email for an existing Stripe customer + */ +export function useOrganizationsUpsertBillingEmailMutation( + options?: MutationHookOptions< + OrganizationsUpsertBillingEmailMutationData, + OrganizationsUpsertBillingEmailMutationError, + OrganizationsUpsertBillingEmailMutationVariables + >, +): UseMutationResult< + OrganizationsUpsertBillingEmailMutationData, + OrganizationsUpsertBillingEmailMutationError, + OrganizationsUpsertBillingEmailMutationVariables +> { + const client = useSpeakeasyContext(); + return useMutation({ + ...buildOrganizationsUpsertBillingEmailMutation(client, options), + ...options, + }); +} + +export function mutationKeyOrganizationsUpsertBillingEmail(): MutationKey { + return [ + "@speakeasy-api/speakeasy-client-sdk-typescript", + "Organizations", + "upsertBillingEmail", + ]; +} + +export function buildOrganizationsUpsertBillingEmailMutation( + client$: SpeakeasyCore, + hookOptions?: RequestOptions, +): { + mutationKey: MutationKey; + mutationFn: ( + variables: OrganizationsUpsertBillingEmailMutationVariables, + ) => Promise; +} { + return { + mutationKey: mutationKeyOrganizationsUpsertBillingEmail(), + mutationFn: function organizationsUpsertBillingEmailMutationFn({ + security, + request, + options, + }): Promise { + const mergedOptions = { + ...hookOptions, + ...options, + fetchOptions: { + ...hookOptions?.fetchOptions, + ...options?.fetchOptions, + signal: combineSignals( + hookOptions?.fetchOptions?.signal, + options?.fetchOptions?.signal, + ), + }, + }; + return unwrapAsync(organizationsUpsertBillingEmail( + client$, + security, + request, + mergedOptions, + )); + }, + }; +} diff --git a/src/react-query/publishingTokensCreate.ts b/src/react-query/publishingTokensCreate.ts index bf8b7333..024e5954 100644 --- a/src/react-query/publishingTokensCreate.ts +++ b/src/react-query/publishingTokensCreate.ts @@ -29,6 +29,7 @@ import { useSpeakeasyContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type PublishingTokensCreateMutationVariables = { + security: operations.CreatePublishingTokenSecurity; request?: operations.CreatePublishingTokenRequestBody | undefined; options?: RequestOptions; }; @@ -90,6 +91,7 @@ export function buildPublishingTokensCreateMutation( return { mutationKey: mutationKeyPublishingTokensCreate(), mutationFn: function publishingTokensCreateMutationFn({ + security, request, options, }): Promise { @@ -107,6 +109,7 @@ export function buildPublishingTokensCreateMutation( }; return unwrapAsync(publishingTokensCreate( client$, + security, request, mergedOptions, )); diff --git a/src/react-query/publishingTokensDelete.ts b/src/react-query/publishingTokensDelete.ts index c1884124..8dcfd761 100644 --- a/src/react-query/publishingTokensDelete.ts +++ b/src/react-query/publishingTokensDelete.ts @@ -28,6 +28,7 @@ import { useSpeakeasyContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type PublishingTokensDeleteMutationVariables = { + security: operations.DeletePublishingTokenSecurity; request: operations.DeletePublishingTokenRequest; options?: RequestOptions; }; @@ -89,6 +90,7 @@ export function buildPublishingTokensDeleteMutation( return { mutationKey: mutationKeyPublishingTokensDelete(), mutationFn: function publishingTokensDeleteMutationFn({ + security, request, options, }): Promise { @@ -106,6 +108,7 @@ export function buildPublishingTokensDeleteMutation( }; return unwrapAsync(publishingTokensDelete( client$, + security, request, mergedOptions, )); diff --git a/src/react-query/publishingTokensGet.core.ts b/src/react-query/publishingTokensGet.core.ts index bb04ec29..4d2376cf 100644 --- a/src/react-query/publishingTokensGet.core.ts +++ b/src/react-query/publishingTokensGet.core.ts @@ -19,12 +19,14 @@ export type PublishingTokensGetQueryData = shared.PublishingToken; export function prefetchPublishingTokensGet( queryClient: QueryClient, client$: SpeakeasyCore, + security: operations.GetPublishingTokenByIDSecurity, request: operations.GetPublishingTokenByIDRequest, options?: RequestOptions, ): Promise { return queryClient.prefetchQuery({ ...buildPublishingTokensGetQuery( client$, + security, request, options, ), @@ -33,6 +35,7 @@ export function prefetchPublishingTokensGet( export function buildPublishingTokensGetQuery( client$: SpeakeasyCore, + security: operations.GetPublishingTokenByIDSecurity, request: operations.GetPublishingTokenByIDRequest, options?: RequestOptions, ): { @@ -59,6 +62,7 @@ export function buildPublishingTokensGetQuery( return unwrapAsync(publishingTokensGet( client$, + security, request, mergedOptions, )); diff --git a/src/react-query/publishingTokensGet.ts b/src/react-query/publishingTokensGet.ts index 89568380..141273c2 100644 --- a/src/react-query/publishingTokensGet.ts +++ b/src/react-query/publishingTokensGet.ts @@ -59,6 +59,7 @@ export type PublishingTokensGetQueryError = * Get information about a particular publishing token. */ export function usePublishingTokensGet( + security: operations.GetPublishingTokenByIDSecurity, request: operations.GetPublishingTokenByIDRequest, options?: QueryHookOptions< PublishingTokensGetQueryData, @@ -69,6 +70,7 @@ export function usePublishingTokensGet( return useQuery({ ...buildPublishingTokensGetQuery( client, + security, request, options, ), @@ -83,6 +85,7 @@ export function usePublishingTokensGet( * Get information about a particular publishing token. */ export function usePublishingTokensGetSuspense( + security: operations.GetPublishingTokenByIDSecurity, request: operations.GetPublishingTokenByIDRequest, options?: SuspenseQueryHookOptions< PublishingTokensGetQueryData, @@ -96,6 +99,7 @@ export function usePublishingTokensGetSuspense( return useSuspenseQuery({ ...buildPublishingTokensGetQuery( client, + security, request, options, ), diff --git a/src/react-query/publishingTokensList.core.ts b/src/react-query/publishingTokensList.core.ts index 2ac8a941..b65b3305 100644 --- a/src/react-query/publishingTokensList.core.ts +++ b/src/react-query/publishingTokensList.core.ts @@ -11,6 +11,7 @@ import { SpeakeasyCore } from "../core.js"; import { publishingTokensList } from "../funcs/publishingTokensList.js"; import { combineSignals } from "../lib/primitives.js"; import { RequestOptions } from "../lib/sdks.js"; +import * as operations from "../sdk/models/operations/index.js"; import * as shared from "../sdk/models/shared/index.js"; import { unwrapAsync } from "../sdk/types/fp.js"; export type PublishingTokensListQueryData = Array; @@ -18,11 +19,13 @@ export type PublishingTokensListQueryData = Array; export function prefetchPublishingTokensList( queryClient: QueryClient, client$: SpeakeasyCore, + security: operations.GetPublishingTokenSecurity, options?: RequestOptions, ): Promise { return queryClient.prefetchQuery({ ...buildPublishingTokensListQuery( client$, + security, options, ), }); @@ -30,6 +33,7 @@ export function prefetchPublishingTokensList( export function buildPublishingTokensListQuery( client$: SpeakeasyCore, + security: operations.GetPublishingTokenSecurity, options?: RequestOptions, ): { queryKey: QueryKey; @@ -55,6 +59,7 @@ export function buildPublishingTokensListQuery( return unwrapAsync(publishingTokensList( client$, + security, mergedOptions, )); }, diff --git a/src/react-query/publishingTokensList.ts b/src/react-query/publishingTokensList.ts index 1bfac536..ef211e19 100644 --- a/src/react-query/publishingTokensList.ts +++ b/src/react-query/publishingTokensList.ts @@ -21,6 +21,7 @@ import * as errors from "../sdk/models/errors/index.js"; import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; import { SpeakeasyError } from "../sdk/models/errors/speakeasyerror.js"; +import * as operations from "../sdk/models/operations/index.js"; import { useSpeakeasyContext } from "./_context.js"; import { QueryHookOptions, SuspenseQueryHookOptions } from "./_types.js"; import { @@ -54,6 +55,7 @@ export type PublishingTokensListQueryError = * Returns a publishing token for the current workspace */ export function usePublishingTokensList( + security: operations.GetPublishingTokenSecurity, options?: QueryHookOptions< PublishingTokensListQueryData, PublishingTokensListQueryError @@ -66,6 +68,7 @@ export function usePublishingTokensList( return useQuery({ ...buildPublishingTokensListQuery( client, + security, options, ), ...options, @@ -79,6 +82,7 @@ export function usePublishingTokensList( * Returns a publishing token for the current workspace */ export function usePublishingTokensListSuspense( + security: operations.GetPublishingTokenSecurity, options?: SuspenseQueryHookOptions< PublishingTokensListQueryData, PublishingTokensListQueryError @@ -91,6 +95,7 @@ export function usePublishingTokensListSuspense( return useSuspenseQuery({ ...buildPublishingTokensListQuery( client, + security, options, ), ...options, diff --git a/src/react-query/publishingTokensResolveMetadata.core.ts b/src/react-query/publishingTokensResolveMetadata.core.ts index 0e648cb0..bca17318 100644 --- a/src/react-query/publishingTokensResolveMetadata.core.ts +++ b/src/react-query/publishingTokensResolveMetadata.core.ts @@ -19,12 +19,14 @@ export type PublishingTokensResolveMetadataQueryData = export function prefetchPublishingTokensResolveMetadata( queryClient: QueryClient, client$: SpeakeasyCore, + security: operations.GetPublishingTokenPublicMetadataSecurity, request: operations.GetPublishingTokenPublicMetadataRequest, options?: RequestOptions, ): Promise { return queryClient.prefetchQuery({ ...buildPublishingTokensResolveMetadataQuery( client$, + security, request, options, ), @@ -33,6 +35,7 @@ export function prefetchPublishingTokensResolveMetadata( export function buildPublishingTokensResolveMetadataQuery( client$: SpeakeasyCore, + security: operations.GetPublishingTokenPublicMetadataSecurity, request: operations.GetPublishingTokenPublicMetadataRequest, options?: RequestOptions, ): { @@ -59,6 +62,7 @@ export function buildPublishingTokensResolveMetadataQuery( return unwrapAsync(publishingTokensResolveMetadata( client$, + security, request, mergedOptions, )); diff --git a/src/react-query/publishingTokensResolveMetadata.ts b/src/react-query/publishingTokensResolveMetadata.ts index efb8295a..c0e61f77 100644 --- a/src/react-query/publishingTokensResolveMetadata.ts +++ b/src/react-query/publishingTokensResolveMetadata.ts @@ -59,6 +59,7 @@ export type PublishingTokensResolveMetadataQueryError = * Get information about a particular publishing token. */ export function usePublishingTokensResolveMetadata( + security: operations.GetPublishingTokenPublicMetadataSecurity, request: operations.GetPublishingTokenPublicMetadataRequest, options?: QueryHookOptions< PublishingTokensResolveMetadataQueryData, @@ -72,6 +73,7 @@ export function usePublishingTokensResolveMetadata( return useQuery({ ...buildPublishingTokensResolveMetadataQuery( client, + security, request, options, ), @@ -86,6 +88,7 @@ export function usePublishingTokensResolveMetadata( * Get information about a particular publishing token. */ export function usePublishingTokensResolveMetadataSuspense( + security: operations.GetPublishingTokenPublicMetadataSecurity, request: operations.GetPublishingTokenPublicMetadataRequest, options?: SuspenseQueryHookOptions< PublishingTokensResolveMetadataQueryData, @@ -99,6 +102,7 @@ export function usePublishingTokensResolveMetadataSuspense( return useSuspenseQuery({ ...buildPublishingTokensResolveMetadataQuery( client, + security, request, options, ), diff --git a/src/react-query/publishingTokensResolveTarget.core.ts b/src/react-query/publishingTokensResolveTarget.core.ts index 405f248d..3b04b94d 100644 --- a/src/react-query/publishingTokensResolveTarget.core.ts +++ b/src/react-query/publishingTokensResolveTarget.core.ts @@ -18,12 +18,14 @@ export type PublishingTokensResolveTargetQueryData = string; export function prefetchPublishingTokensResolveTarget( queryClient: QueryClient, client$: SpeakeasyCore, + security: operations.GetPublishingTokenTargetByIDSecurity, request: operations.GetPublishingTokenTargetByIDRequest, options?: RequestOptions, ): Promise { return queryClient.prefetchQuery({ ...buildPublishingTokensResolveTargetQuery( client$, + security, request, options, ), @@ -32,6 +34,7 @@ export function prefetchPublishingTokensResolveTarget( export function buildPublishingTokensResolveTargetQuery( client$: SpeakeasyCore, + security: operations.GetPublishingTokenTargetByIDSecurity, request: operations.GetPublishingTokenTargetByIDRequest, options?: RequestOptions, ): { @@ -58,6 +61,7 @@ export function buildPublishingTokensResolveTargetQuery( return unwrapAsync(publishingTokensResolveTarget( client$, + security, request, mergedOptions, )); diff --git a/src/react-query/publishingTokensResolveTarget.ts b/src/react-query/publishingTokensResolveTarget.ts index 9767b1c0..c3257c1c 100644 --- a/src/react-query/publishingTokensResolveTarget.ts +++ b/src/react-query/publishingTokensResolveTarget.ts @@ -59,6 +59,7 @@ export type PublishingTokensResolveTargetQueryError = * Get information about a particular publishing token target. */ export function usePublishingTokensResolveTarget( + security: operations.GetPublishingTokenTargetByIDSecurity, request: operations.GetPublishingTokenTargetByIDRequest, options?: QueryHookOptions< PublishingTokensResolveTargetQueryData, @@ -72,6 +73,7 @@ export function usePublishingTokensResolveTarget( return useQuery({ ...buildPublishingTokensResolveTargetQuery( client, + security, request, options, ), @@ -86,6 +88,7 @@ export function usePublishingTokensResolveTarget( * Get information about a particular publishing token target. */ export function usePublishingTokensResolveTargetSuspense( + security: operations.GetPublishingTokenTargetByIDSecurity, request: operations.GetPublishingTokenTargetByIDRequest, options?: SuspenseQueryHookOptions< PublishingTokensResolveTargetQueryData, @@ -99,6 +102,7 @@ export function usePublishingTokensResolveTargetSuspense( return useSuspenseQuery({ ...buildPublishingTokensResolveTargetQuery( client, + security, request, options, ), diff --git a/src/react-query/publishingTokensUpdate.ts b/src/react-query/publishingTokensUpdate.ts index 783387af..b2a1df0f 100644 --- a/src/react-query/publishingTokensUpdate.ts +++ b/src/react-query/publishingTokensUpdate.ts @@ -28,6 +28,7 @@ import { useSpeakeasyContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type PublishingTokensUpdateMutationVariables = { + security: operations.UpdatePublishingTokenExpirationSecurity; request: operations.UpdatePublishingTokenExpirationRequest; options?: RequestOptions; }; @@ -89,6 +90,7 @@ export function buildPublishingTokensUpdateMutation( return { mutationKey: mutationKeyPublishingTokensUpdate(), mutationFn: function publishingTokensUpdateMutationFn({ + security, request, options, }): Promise { @@ -106,6 +108,7 @@ export function buildPublishingTokensUpdateMutation( }; return unwrapAsync(publishingTokensUpdate( client$, + security, request, mergedOptions, )); diff --git a/src/react-query/reportsGetChangesReportSignedUrl.core.ts b/src/react-query/reportsGetChangesReportSignedUrl.core.ts index a4e3e1f6..97080ce6 100644 --- a/src/react-query/reportsGetChangesReportSignedUrl.core.ts +++ b/src/react-query/reportsGetChangesReportSignedUrl.core.ts @@ -19,12 +19,14 @@ export type ReportsGetChangesReportSignedUrlQueryData = export function prefetchReportsGetChangesReportSignedUrl( queryClient: QueryClient, client$: SpeakeasyCore, + security: operations.GetChangesReportSignedUrlSecurity, request: operations.GetChangesReportSignedUrlRequest, options?: RequestOptions, ): Promise { return queryClient.prefetchQuery({ ...buildReportsGetChangesReportSignedUrlQuery( client$, + security, request, options, ), @@ -33,6 +35,7 @@ export function prefetchReportsGetChangesReportSignedUrl( export function buildReportsGetChangesReportSignedUrlQuery( client$: SpeakeasyCore, + security: operations.GetChangesReportSignedUrlSecurity, request: operations.GetChangesReportSignedUrlRequest, options?: RequestOptions, ): { @@ -61,6 +64,7 @@ export function buildReportsGetChangesReportSignedUrlQuery( return unwrapAsync(reportsGetChangesReportSignedUrl( client$, + security, request, mergedOptions, )); diff --git a/src/react-query/reportsGetChangesReportSignedUrl.ts b/src/react-query/reportsGetChangesReportSignedUrl.ts index 44dc1042..f3852821 100644 --- a/src/react-query/reportsGetChangesReportSignedUrl.ts +++ b/src/react-query/reportsGetChangesReportSignedUrl.ts @@ -54,6 +54,7 @@ export type ReportsGetChangesReportSignedUrlQueryError = * Get the signed access url for the change reports for a particular document. */ export function useReportsGetChangesReportSignedUrl( + security: operations.GetChangesReportSignedUrlSecurity, request: operations.GetChangesReportSignedUrlRequest, options?: QueryHookOptions< ReportsGetChangesReportSignedUrlQueryData, @@ -67,6 +68,7 @@ export function useReportsGetChangesReportSignedUrl( return useQuery({ ...buildReportsGetChangesReportSignedUrlQuery( client, + security, request, options, ), @@ -78,6 +80,7 @@ export function useReportsGetChangesReportSignedUrl( * Get the signed access url for the change reports for a particular document. */ export function useReportsGetChangesReportSignedUrlSuspense( + security: operations.GetChangesReportSignedUrlSecurity, request: operations.GetChangesReportSignedUrlRequest, options?: SuspenseQueryHookOptions< ReportsGetChangesReportSignedUrlQueryData, @@ -91,6 +94,7 @@ export function useReportsGetChangesReportSignedUrlSuspense( return useSuspenseQuery({ ...buildReportsGetChangesReportSignedUrlQuery( client, + security, request, options, ), diff --git a/src/react-query/reportsGetLintingReportSignedUrl.core.ts b/src/react-query/reportsGetLintingReportSignedUrl.core.ts index 7133fb72..027f030d 100644 --- a/src/react-query/reportsGetLintingReportSignedUrl.core.ts +++ b/src/react-query/reportsGetLintingReportSignedUrl.core.ts @@ -19,12 +19,14 @@ export type ReportsGetLintingReportSignedUrlQueryData = export function prefetchReportsGetLintingReportSignedUrl( queryClient: QueryClient, client$: SpeakeasyCore, + security: operations.GetLintingReportSignedUrlSecurity, request: operations.GetLintingReportSignedUrlRequest, options?: RequestOptions, ): Promise { return queryClient.prefetchQuery({ ...buildReportsGetLintingReportSignedUrlQuery( client$, + security, request, options, ), @@ -33,6 +35,7 @@ export function prefetchReportsGetLintingReportSignedUrl( export function buildReportsGetLintingReportSignedUrlQuery( client$: SpeakeasyCore, + security: operations.GetLintingReportSignedUrlSecurity, request: operations.GetLintingReportSignedUrlRequest, options?: RequestOptions, ): { @@ -61,6 +64,7 @@ export function buildReportsGetLintingReportSignedUrlQuery( return unwrapAsync(reportsGetLintingReportSignedUrl( client$, + security, request, mergedOptions, )); diff --git a/src/react-query/reportsGetLintingReportSignedUrl.ts b/src/react-query/reportsGetLintingReportSignedUrl.ts index 49541989..50d95822 100644 --- a/src/react-query/reportsGetLintingReportSignedUrl.ts +++ b/src/react-query/reportsGetLintingReportSignedUrl.ts @@ -54,6 +54,7 @@ export type ReportsGetLintingReportSignedUrlQueryError = * Get the signed access url for the linting reports for a particular document. */ export function useReportsGetLintingReportSignedUrl( + security: operations.GetLintingReportSignedUrlSecurity, request: operations.GetLintingReportSignedUrlRequest, options?: QueryHookOptions< ReportsGetLintingReportSignedUrlQueryData, @@ -67,6 +68,7 @@ export function useReportsGetLintingReportSignedUrl( return useQuery({ ...buildReportsGetLintingReportSignedUrlQuery( client, + security, request, options, ), @@ -78,6 +80,7 @@ export function useReportsGetLintingReportSignedUrl( * Get the signed access url for the linting reports for a particular document. */ export function useReportsGetLintingReportSignedUrlSuspense( + security: operations.GetLintingReportSignedUrlSecurity, request: operations.GetLintingReportSignedUrlRequest, options?: SuspenseQueryHookOptions< ReportsGetLintingReportSignedUrlQueryData, @@ -91,6 +94,7 @@ export function useReportsGetLintingReportSignedUrlSuspense( return useSuspenseQuery({ ...buildReportsGetLintingReportSignedUrlQuery( client, + security, request, options, ), diff --git a/src/react-query/reportsUploadReport.ts b/src/react-query/reportsUploadReport.ts index 2150dfd7..3b858322 100644 --- a/src/react-query/reportsUploadReport.ts +++ b/src/react-query/reportsUploadReport.ts @@ -27,6 +27,7 @@ import { useSpeakeasyContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type ReportsUploadReportMutationVariables = { + security: operations.UploadReportSecurity; request: operations.UploadReportRequestBody; options?: RequestOptions; }; @@ -85,6 +86,7 @@ export function buildReportsUploadReportMutation( return { mutationKey: mutationKeyReportsUploadReport(), mutationFn: function reportsUploadReportMutationFn({ + security, request, options, }): Promise { @@ -102,6 +104,7 @@ export function buildReportsUploadReportMutation( }; return unwrapAsync(reportsUploadReport( client$, + security, request, mergedOptions, )); diff --git a/src/react-query/schemaStoreCreateSchemaStoreItem.ts b/src/react-query/schemaStoreCreateSchemaStoreItem.ts index 9f98f1b2..505857d7 100644 --- a/src/react-query/schemaStoreCreateSchemaStoreItem.ts +++ b/src/react-query/schemaStoreCreateSchemaStoreItem.ts @@ -29,6 +29,7 @@ import { useSpeakeasyContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type SchemaStoreCreateSchemaStoreItemMutationVariables = { + security: operations.CreateSchemaStoreItemSecurity; request: operations.CreateSchemaStoreItemRequestBody; options?: RequestOptions; }; @@ -88,6 +89,7 @@ export function buildSchemaStoreCreateSchemaStoreItemMutation( return { mutationKey: mutationKeySchemaStoreCreateSchemaStoreItem(), mutationFn: function schemaStoreCreateSchemaStoreItemMutationFn({ + security, request, options, }): Promise { @@ -105,6 +107,7 @@ export function buildSchemaStoreCreateSchemaStoreItemMutation( }; return unwrapAsync(schemaStoreCreateSchemaStoreItem( client$, + security, request, mergedOptions, )); diff --git a/src/react-query/shortURLsCreate.ts b/src/react-query/shortURLsCreate.ts index 22490303..9567a345 100644 --- a/src/react-query/shortURLsCreate.ts +++ b/src/react-query/shortURLsCreate.ts @@ -28,6 +28,7 @@ import { useSpeakeasyContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type ShortURLsCreateMutationVariables = { + security: operations.CreateSecurity; request: operations.CreateRequestBody; options?: RequestOptions; }; @@ -85,6 +86,7 @@ export function buildShortURLsCreateMutation( return { mutationKey: mutationKeyShortURLsCreate(), mutationFn: function shortURLsCreateMutationFn({ + security, request, options, }): Promise { @@ -102,6 +104,7 @@ export function buildShortURLsCreateMutation( }; return unwrapAsync(shortURLsCreate( client$, + security, request, mergedOptions, )); diff --git a/src/react-query/suggestSuggest.ts b/src/react-query/suggestSuggest.ts index 5cf9658b..bbd74cb1 100644 --- a/src/react-query/suggestSuggest.ts +++ b/src/react-query/suggestSuggest.ts @@ -27,6 +27,7 @@ import { useSpeakeasyContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type SuggestSuggestMutationVariables = { + security: operations.SuggestSecurity; request: operations.SuggestRequest; options?: RequestOptions; }; @@ -87,6 +88,7 @@ export function buildSuggestSuggestMutation( return { mutationKey: mutationKeySuggestSuggest(), mutationFn: function suggestSuggestMutationFn({ + security, request, options, }): Promise { @@ -104,6 +106,7 @@ export function buildSuggestSuggestMutation( }; return unwrapAsync(suggestSuggest( client$, + security, request, mergedOptions, )); diff --git a/src/react-query/suggestSuggestItems.ts b/src/react-query/suggestSuggestItems.ts index 2eee1336..f267556d 100644 --- a/src/react-query/suggestSuggestItems.ts +++ b/src/react-query/suggestSuggestItems.ts @@ -21,12 +21,14 @@ import { import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; import { SpeakeasyError } from "../sdk/models/errors/speakeasyerror.js"; +import * as operations from "../sdk/models/operations/index.js"; import * as shared from "../sdk/models/shared/index.js"; import { unwrapAsync } from "../sdk/types/fp.js"; import { useSpeakeasyContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type SuggestSuggestItemsMutationVariables = { + security: operations.SuggestItemsSecurity; request: shared.SuggestItemsRequestBody; options?: RequestOptions; }; @@ -84,6 +86,7 @@ export function buildSuggestSuggestItemsMutation( return { mutationKey: mutationKeySuggestSuggestItems(), mutationFn: function suggestSuggestItemsMutationFn({ + security, request, options, }): Promise { @@ -101,6 +104,7 @@ export function buildSuggestSuggestItemsMutation( }; return unwrapAsync(suggestSuggestItems( client$, + security, request, mergedOptions, )); diff --git a/src/react-query/suggestSuggestOpenAPI.ts b/src/react-query/suggestSuggestOpenAPI.ts index d9f5083a..8d6b54ea 100644 --- a/src/react-query/suggestSuggestOpenAPI.ts +++ b/src/react-query/suggestSuggestOpenAPI.ts @@ -27,6 +27,7 @@ import { useSpeakeasyContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type SuggestSuggestOpenAPIMutationVariables = { + security: operations.SuggestOpenAPISecurity; request: operations.SuggestOpenAPIRequest; options?: RequestOptions; }; @@ -87,6 +88,7 @@ export function buildSuggestSuggestOpenAPIMutation( return { mutationKey: mutationKeySuggestSuggestOpenAPI(), mutationFn: function suggestSuggestOpenAPIMutationFn({ + security, request, options, }): Promise { @@ -104,6 +106,7 @@ export function buildSuggestSuggestOpenAPIMutation( }; return unwrapAsync(suggestSuggestOpenAPI( client$, + security, request, mergedOptions, )); diff --git a/src/react-query/suggestSuggestOpenAPIRegistry.ts b/src/react-query/suggestSuggestOpenAPIRegistry.ts index fa315931..f43a973f 100644 --- a/src/react-query/suggestSuggestOpenAPIRegistry.ts +++ b/src/react-query/suggestSuggestOpenAPIRegistry.ts @@ -27,6 +27,7 @@ import { useSpeakeasyContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type SuggestSuggestOpenAPIRegistryMutationVariables = { + security: operations.SuggestOpenAPIRegistrySecurity; request: operations.SuggestOpenAPIRegistryRequest; options?: RequestOptions; }; @@ -89,6 +90,7 @@ export function buildSuggestSuggestOpenAPIRegistryMutation( return { mutationKey: mutationKeySuggestSuggestOpenAPIRegistry(), mutationFn: function suggestSuggestOpenAPIRegistryMutationFn({ + security, request, options, }): Promise { @@ -106,6 +108,7 @@ export function buildSuggestSuggestOpenAPIRegistryMutation( }; return unwrapAsync(suggestSuggestOpenAPIRegistry( client$, + security, request, mergedOptions, )); diff --git a/src/react-query/webhooksHandleStripeWebhook.ts b/src/react-query/webhooksHandleStripeWebhook.ts new file mode 100644 index 00000000..2aa6d953 --- /dev/null +++ b/src/react-query/webhooksHandleStripeWebhook.ts @@ -0,0 +1,113 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { + MutationKey, + useMutation, + UseMutationResult, +} from "@tanstack/react-query"; +import { SpeakeasyCore } from "../core.js"; +import { webhooksHandleStripeWebhook } from "../funcs/webhooksHandleStripeWebhook.js"; +import { combineSignals } from "../lib/primitives.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../sdk/models/errors/httpclienterrors.js"; +import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; +import { SpeakeasyError } from "../sdk/models/errors/speakeasyerror.js"; +import * as operations from "../sdk/models/operations/index.js"; +import { unwrapAsync } from "../sdk/types/fp.js"; +import { useSpeakeasyContext } from "./_context.js"; +import { MutationHookOptions } from "./_types.js"; + +export type WebhooksHandleStripeWebhookMutationVariables = { + request: operations.HandleStripeWebhookRequestBody; + options?: RequestOptions; +}; + +export type WebhooksHandleStripeWebhookMutationData = void; + +export type WebhooksHandleStripeWebhookMutationError = + | SpeakeasyError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError; + +/** + * Handle Stripe webhook + * + * @remarks + * Receives and processes Stripe webhook events for subscription management. + * This endpoint is called by Stripe and uses webhook signature verification instead of API authentication. + */ +export function useWebhooksHandleStripeWebhookMutation( + options?: MutationHookOptions< + WebhooksHandleStripeWebhookMutationData, + WebhooksHandleStripeWebhookMutationError, + WebhooksHandleStripeWebhookMutationVariables + >, +): UseMutationResult< + WebhooksHandleStripeWebhookMutationData, + WebhooksHandleStripeWebhookMutationError, + WebhooksHandleStripeWebhookMutationVariables +> { + const client = useSpeakeasyContext(); + return useMutation({ + ...buildWebhooksHandleStripeWebhookMutation(client, options), + ...options, + }); +} + +export function mutationKeyWebhooksHandleStripeWebhook(): MutationKey { + return [ + "@speakeasy-api/speakeasy-client-sdk-typescript", + "Webhooks", + "handleStripeWebhook", + ]; +} + +export function buildWebhooksHandleStripeWebhookMutation( + client$: SpeakeasyCore, + hookOptions?: RequestOptions, +): { + mutationKey: MutationKey; + mutationFn: ( + variables: WebhooksHandleStripeWebhookMutationVariables, + ) => Promise; +} { + return { + mutationKey: mutationKeyWebhooksHandleStripeWebhook(), + mutationFn: function webhooksHandleStripeWebhookMutationFn({ + request, + options, + }): Promise { + const mergedOptions = { + ...hookOptions, + ...options, + fetchOptions: { + ...hookOptions?.fetchOptions, + ...options?.fetchOptions, + signal: combineSignals( + hookOptions?.fetchOptions?.signal, + options?.fetchOptions?.signal, + ), + }, + }; + return unwrapAsync(webhooksHandleStripeWebhook( + client$, + request, + mergedOptions, + )); + }, + }; +} diff --git a/src/react-query/workspacesCreate.ts b/src/react-query/workspacesCreate.ts index 591d9b41..8ab5856e 100644 --- a/src/react-query/workspacesCreate.ts +++ b/src/react-query/workspacesCreate.ts @@ -22,12 +22,14 @@ import * as errors from "../sdk/models/errors/index.js"; import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; import { SpeakeasyError } from "../sdk/models/errors/speakeasyerror.js"; +import * as operations from "../sdk/models/operations/index.js"; import * as shared from "../sdk/models/shared/index.js"; import { unwrapAsync } from "../sdk/types/fp.js"; import { useSpeakeasyContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type WorkspacesCreateMutationVariables = { + security: operations.CreateWorkspaceSecurity; request: shared.Workspace; options?: RequestOptions; }; @@ -89,6 +91,7 @@ export function buildWorkspacesCreateMutation( return { mutationKey: mutationKeyWorkspacesCreate(), mutationFn: function workspacesCreateMutationFn({ + security, request, options, }): Promise { @@ -106,6 +109,7 @@ export function buildWorkspacesCreateMutation( }; return unwrapAsync(workspacesCreate( client$, + security, request, mergedOptions, )); diff --git a/src/react-query/workspacesCreateToken.ts b/src/react-query/workspacesCreateToken.ts index a9b47352..527e2059 100644 --- a/src/react-query/workspacesCreateToken.ts +++ b/src/react-query/workspacesCreateToken.ts @@ -28,6 +28,7 @@ import { useSpeakeasyContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type WorkspacesCreateTokenMutationVariables = { + security: operations.CreateWorkspaceTokenSecurity; request: operations.CreateWorkspaceTokenRequest; options?: RequestOptions; }; @@ -86,6 +87,7 @@ export function buildWorkspacesCreateTokenMutation( return { mutationKey: mutationKeyWorkspacesCreateToken(), mutationFn: function workspacesCreateTokenMutationFn({ + security, request, options, }): Promise { @@ -103,6 +105,7 @@ export function buildWorkspacesCreateTokenMutation( }; return unwrapAsync(workspacesCreateToken( client$, + security, request, mergedOptions, )); diff --git a/src/react-query/workspacesDeleteToken.ts b/src/react-query/workspacesDeleteToken.ts index a3f0d5da..3a515ac9 100644 --- a/src/react-query/workspacesDeleteToken.ts +++ b/src/react-query/workspacesDeleteToken.ts @@ -28,6 +28,7 @@ import { useSpeakeasyContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type WorkspacesDeleteTokenMutationVariables = { + security: operations.DeleteWorkspaceTokenSecurity; request: operations.DeleteWorkspaceTokenRequest; options?: RequestOptions; }; @@ -86,6 +87,7 @@ export function buildWorkspacesDeleteTokenMutation( return { mutationKey: mutationKeyWorkspacesDeleteToken(), mutationFn: function workspacesDeleteTokenMutationFn({ + security, request, options, }): Promise { @@ -103,6 +105,7 @@ export function buildWorkspacesDeleteTokenMutation( }; return unwrapAsync(workspacesDeleteToken( client$, + security, request, mergedOptions, )); diff --git a/src/react-query/workspacesGet.core.ts b/src/react-query/workspacesGet.core.ts index d53d8ba5..b91e29e4 100644 --- a/src/react-query/workspacesGet.core.ts +++ b/src/react-query/workspacesGet.core.ts @@ -11,6 +11,7 @@ import { SpeakeasyCore } from "../core.js"; import { workspacesGet } from "../funcs/workspacesGet.js"; import { combineSignals } from "../lib/primitives.js"; import { RequestOptions } from "../lib/sdks.js"; +import * as operations from "../sdk/models/operations/index.js"; import * as shared from "../sdk/models/shared/index.js"; import { unwrapAsync } from "../sdk/types/fp.js"; export type WorkspacesGetQueryData = shared.WorkspaceAndOrganization; @@ -18,11 +19,13 @@ export type WorkspacesGetQueryData = shared.WorkspaceAndOrganization; export function prefetchWorkspacesGet( queryClient: QueryClient, client$: SpeakeasyCore, + security: operations.GetWorkspaceByContextSecurity, options?: RequestOptions, ): Promise { return queryClient.prefetchQuery({ ...buildWorkspacesGetQuery( client$, + security, options, ), }); @@ -30,6 +33,7 @@ export function prefetchWorkspacesGet( export function buildWorkspacesGetQuery( client$: SpeakeasyCore, + security: operations.GetWorkspaceByContextSecurity, options?: RequestOptions, ): { queryKey: QueryKey; @@ -53,6 +57,7 @@ export function buildWorkspacesGetQuery( return unwrapAsync(workspacesGet( client$, + security, mergedOptions, )); }, diff --git a/src/react-query/workspacesGet.ts b/src/react-query/workspacesGet.ts index 89bb54c9..e74a0d13 100644 --- a/src/react-query/workspacesGet.ts +++ b/src/react-query/workspacesGet.ts @@ -21,6 +21,7 @@ import * as errors from "../sdk/models/errors/index.js"; import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; import { SpeakeasyError } from "../sdk/models/errors/speakeasyerror.js"; +import * as operations from "../sdk/models/operations/index.js"; import { useSpeakeasyContext } from "./_context.js"; import { QueryHookOptions, SuspenseQueryHookOptions } from "./_types.js"; import { @@ -54,12 +55,14 @@ export type WorkspacesGetQueryError = * Get information about a particular workspace by context. */ export function useWorkspacesGet( + security: operations.GetWorkspaceByContextSecurity, options?: QueryHookOptions, ): UseQueryResult { const client = useSpeakeasyContext(); return useQuery({ ...buildWorkspacesGetQuery( client, + security, options, ), ...options, @@ -73,6 +76,7 @@ export function useWorkspacesGet( * Get information about a particular workspace by context. */ export function useWorkspacesGetSuspense( + security: operations.GetWorkspaceByContextSecurity, options?: SuspenseQueryHookOptions< WorkspacesGetQueryData, WorkspacesGetQueryError @@ -82,6 +86,7 @@ export function useWorkspacesGetSuspense( return useSuspenseQuery({ ...buildWorkspacesGetQuery( client, + security, options, ), ...options, diff --git a/src/react-query/workspacesGetAll.core.ts b/src/react-query/workspacesGetAll.core.ts index 07cbcabe..c12925d9 100644 --- a/src/react-query/workspacesGetAll.core.ts +++ b/src/react-query/workspacesGetAll.core.ts @@ -11,6 +11,7 @@ import { SpeakeasyCore } from "../core.js"; import { workspacesGetAll } from "../funcs/workspacesGetAll.js"; import { combineSignals } from "../lib/primitives.js"; import { RequestOptions } from "../lib/sdks.js"; +import * as operations from "../sdk/models/operations/index.js"; import * as shared from "../sdk/models/shared/index.js"; import { unwrapAsync } from "../sdk/types/fp.js"; export type WorkspacesGetAllQueryData = Array; @@ -18,11 +19,13 @@ export type WorkspacesGetAllQueryData = Array; export function prefetchWorkspacesGetAll( queryClient: QueryClient, client$: SpeakeasyCore, + security: operations.GetWorkspacesSecurity, options?: RequestOptions, ): Promise { return queryClient.prefetchQuery({ ...buildWorkspacesGetAllQuery( client$, + security, options, ), }); @@ -30,6 +33,7 @@ export function prefetchWorkspacesGetAll( export function buildWorkspacesGetAllQuery( client$: SpeakeasyCore, + security: operations.GetWorkspacesSecurity, options?: RequestOptions, ): { queryKey: QueryKey; @@ -55,6 +59,7 @@ export function buildWorkspacesGetAllQuery( return unwrapAsync(workspacesGetAll( client$, + security, mergedOptions, )); }, diff --git a/src/react-query/workspacesGetAll.ts b/src/react-query/workspacesGetAll.ts index 92fa05b8..aa59dda1 100644 --- a/src/react-query/workspacesGetAll.ts +++ b/src/react-query/workspacesGetAll.ts @@ -21,6 +21,7 @@ import * as errors from "../sdk/models/errors/index.js"; import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; import { SpeakeasyError } from "../sdk/models/errors/speakeasyerror.js"; +import * as operations from "../sdk/models/operations/index.js"; import { useSpeakeasyContext } from "./_context.js"; import { QueryHookOptions, SuspenseQueryHookOptions } from "./_types.js"; import { @@ -54,6 +55,7 @@ export type WorkspacesGetAllQueryError = * Returns a list of workspaces a user has access too */ export function useWorkspacesGetAll( + security: operations.GetWorkspacesSecurity, options?: QueryHookOptions< WorkspacesGetAllQueryData, WorkspacesGetAllQueryError @@ -63,6 +65,7 @@ export function useWorkspacesGetAll( return useQuery({ ...buildWorkspacesGetAllQuery( client, + security, options, ), ...options, @@ -76,6 +79,7 @@ export function useWorkspacesGetAll( * Returns a list of workspaces a user has access too */ export function useWorkspacesGetAllSuspense( + security: operations.GetWorkspacesSecurity, options?: SuspenseQueryHookOptions< WorkspacesGetAllQueryData, WorkspacesGetAllQueryError @@ -88,6 +92,7 @@ export function useWorkspacesGetAllSuspense( return useSuspenseQuery({ ...buildWorkspacesGetAllQuery( client, + security, options, ), ...options, diff --git a/src/react-query/workspacesGetByID.core.ts b/src/react-query/workspacesGetByID.core.ts index ac77f48c..890eb8f2 100644 --- a/src/react-query/workspacesGetByID.core.ts +++ b/src/react-query/workspacesGetByID.core.ts @@ -19,12 +19,14 @@ export type WorkspacesGetByIDQueryData = shared.Workspace; export function prefetchWorkspacesGetByID( queryClient: QueryClient, client$: SpeakeasyCore, + security: operations.GetWorkspaceSecurity, request: operations.GetWorkspaceRequest, options?: RequestOptions, ): Promise { return queryClient.prefetchQuery({ ...buildWorkspacesGetByIDQuery( client$, + security, request, options, ), @@ -33,6 +35,7 @@ export function prefetchWorkspacesGetByID( export function buildWorkspacesGetByIDQuery( client$: SpeakeasyCore, + security: operations.GetWorkspaceSecurity, request: operations.GetWorkspaceRequest, options?: RequestOptions, ): { @@ -59,6 +62,7 @@ export function buildWorkspacesGetByIDQuery( return unwrapAsync(workspacesGetByID( client$, + security, request, mergedOptions, )); diff --git a/src/react-query/workspacesGetByID.ts b/src/react-query/workspacesGetByID.ts index abedad1e..ffe7694b 100644 --- a/src/react-query/workspacesGetByID.ts +++ b/src/react-query/workspacesGetByID.ts @@ -59,6 +59,7 @@ export type WorkspacesGetByIDQueryError = * Get information about a particular workspace. */ export function useWorkspacesGetByID( + security: operations.GetWorkspaceSecurity, request: operations.GetWorkspaceRequest, options?: QueryHookOptions< WorkspacesGetByIDQueryData, @@ -69,6 +70,7 @@ export function useWorkspacesGetByID( return useQuery({ ...buildWorkspacesGetByIDQuery( client, + security, request, options, ), @@ -83,6 +85,7 @@ export function useWorkspacesGetByID( * Get information about a particular workspace. */ export function useWorkspacesGetByIDSuspense( + security: operations.GetWorkspaceSecurity, request: operations.GetWorkspaceRequest, options?: SuspenseQueryHookOptions< WorkspacesGetByIDQueryData, @@ -96,6 +99,7 @@ export function useWorkspacesGetByIDSuspense( return useSuspenseQuery({ ...buildWorkspacesGetByIDQuery( client, + security, request, options, ), diff --git a/src/react-query/workspacesGetFeatureFlags.core.ts b/src/react-query/workspacesGetFeatureFlags.core.ts index 6143c416..8eef0050 100644 --- a/src/react-query/workspacesGetFeatureFlags.core.ts +++ b/src/react-query/workspacesGetFeatureFlags.core.ts @@ -20,12 +20,14 @@ export type WorkspacesGetFeatureFlagsQueryData = export function prefetchWorkspacesGetFeatureFlags( queryClient: QueryClient, client$: SpeakeasyCore, + security: operations.GetWorkspaceFeatureFlagsSecurity, request: operations.GetWorkspaceFeatureFlagsRequest, options?: RequestOptions, ): Promise { return queryClient.prefetchQuery({ ...buildWorkspacesGetFeatureFlagsQuery( client$, + security, request, options, ), @@ -34,6 +36,7 @@ export function prefetchWorkspacesGetFeatureFlags( export function buildWorkspacesGetFeatureFlagsQuery( client$: SpeakeasyCore, + security: operations.GetWorkspaceFeatureFlagsSecurity, request: operations.GetWorkspaceFeatureFlagsRequest, options?: RequestOptions, ): { @@ -60,6 +63,7 @@ export function buildWorkspacesGetFeatureFlagsQuery( return unwrapAsync(workspacesGetFeatureFlags( client$, + security, request, mergedOptions, )); diff --git a/src/react-query/workspacesGetFeatureFlags.ts b/src/react-query/workspacesGetFeatureFlags.ts index 8670c08c..0cfa7269 100644 --- a/src/react-query/workspacesGetFeatureFlags.ts +++ b/src/react-query/workspacesGetFeatureFlags.ts @@ -56,6 +56,7 @@ export type WorkspacesGetFeatureFlagsQueryError = * Get workspace feature flags */ export function useWorkspacesGetFeatureFlags( + security: operations.GetWorkspaceFeatureFlagsSecurity, request: operations.GetWorkspaceFeatureFlagsRequest, options?: QueryHookOptions< WorkspacesGetFeatureFlagsQueryData, @@ -69,6 +70,7 @@ export function useWorkspacesGetFeatureFlags( return useQuery({ ...buildWorkspacesGetFeatureFlagsQuery( client, + security, request, options, ), @@ -80,6 +82,7 @@ export function useWorkspacesGetFeatureFlags( * Get workspace feature flags */ export function useWorkspacesGetFeatureFlagsSuspense( + security: operations.GetWorkspaceFeatureFlagsSecurity, request: operations.GetWorkspaceFeatureFlagsRequest, options?: SuspenseQueryHookOptions< WorkspacesGetFeatureFlagsQueryData, @@ -93,6 +96,7 @@ export function useWorkspacesGetFeatureFlagsSuspense( return useSuspenseQuery({ ...buildWorkspacesGetFeatureFlagsQuery( client, + security, request, options, ), diff --git a/src/react-query/workspacesGetSettings.core.ts b/src/react-query/workspacesGetSettings.core.ts index 2fe811c6..abeb24ea 100644 --- a/src/react-query/workspacesGetSettings.core.ts +++ b/src/react-query/workspacesGetSettings.core.ts @@ -19,12 +19,14 @@ export type WorkspacesGetSettingsQueryData = shared.WorkspaceSettings; export function prefetchWorkspacesGetSettings( queryClient: QueryClient, client$: SpeakeasyCore, + security: operations.GetWorkspaceSettingsSecurity, request: operations.GetWorkspaceSettingsRequest, options?: RequestOptions, ): Promise { return queryClient.prefetchQuery({ ...buildWorkspacesGetSettingsQuery( client$, + security, request, options, ), @@ -33,6 +35,7 @@ export function prefetchWorkspacesGetSettings( export function buildWorkspacesGetSettingsQuery( client$: SpeakeasyCore, + security: operations.GetWorkspaceSettingsSecurity, request: operations.GetWorkspaceSettingsRequest, options?: RequestOptions, ): { @@ -59,6 +62,7 @@ export function buildWorkspacesGetSettingsQuery( return unwrapAsync(workspacesGetSettings( client$, + security, request, mergedOptions, )); diff --git a/src/react-query/workspacesGetSettings.ts b/src/react-query/workspacesGetSettings.ts index 2f413ab2..87ba1d4b 100644 --- a/src/react-query/workspacesGetSettings.ts +++ b/src/react-query/workspacesGetSettings.ts @@ -59,6 +59,7 @@ export type WorkspacesGetSettingsQueryError = * Get settings about a particular workspace. */ export function useWorkspacesGetSettings( + security: operations.GetWorkspaceSettingsSecurity, request: operations.GetWorkspaceSettingsRequest, options?: QueryHookOptions< WorkspacesGetSettingsQueryData, @@ -72,6 +73,7 @@ export function useWorkspacesGetSettings( return useQuery({ ...buildWorkspacesGetSettingsQuery( client, + security, request, options, ), @@ -86,6 +88,7 @@ export function useWorkspacesGetSettings( * Get settings about a particular workspace. */ export function useWorkspacesGetSettingsSuspense( + security: operations.GetWorkspaceSettingsSecurity, request: operations.GetWorkspaceSettingsRequest, options?: SuspenseQueryHookOptions< WorkspacesGetSettingsQueryData, @@ -99,6 +102,7 @@ export function useWorkspacesGetSettingsSuspense( return useSuspenseQuery({ ...buildWorkspacesGetSettingsQuery( client, + security, request, options, ), diff --git a/src/react-query/workspacesGetTeam.core.ts b/src/react-query/workspacesGetTeam.core.ts index 7a301cef..b26fc426 100644 --- a/src/react-query/workspacesGetTeam.core.ts +++ b/src/react-query/workspacesGetTeam.core.ts @@ -19,12 +19,14 @@ export type WorkspacesGetTeamQueryData = shared.WorkspaceTeamResponse; export function prefetchWorkspacesGetTeam( queryClient: QueryClient, client$: SpeakeasyCore, + security: operations.GetWorkspaceTeamSecurity, request: operations.GetWorkspaceTeamRequest, options?: RequestOptions, ): Promise { return queryClient.prefetchQuery({ ...buildWorkspacesGetTeamQuery( client$, + security, request, options, ), @@ -33,6 +35,7 @@ export function prefetchWorkspacesGetTeam( export function buildWorkspacesGetTeamQuery( client$: SpeakeasyCore, + security: operations.GetWorkspaceTeamSecurity, request: operations.GetWorkspaceTeamRequest, options?: RequestOptions, ): { @@ -59,6 +62,7 @@ export function buildWorkspacesGetTeamQuery( return unwrapAsync(workspacesGetTeam( client$, + security, request, mergedOptions, )); diff --git a/src/react-query/workspacesGetTeam.ts b/src/react-query/workspacesGetTeam.ts index 49896f0d..57230ce4 100644 --- a/src/react-query/workspacesGetTeam.ts +++ b/src/react-query/workspacesGetTeam.ts @@ -56,6 +56,7 @@ export type WorkspacesGetTeamQueryError = * Get team members for a particular workspace */ export function useWorkspacesGetTeam( + security: operations.GetWorkspaceTeamSecurity, request: operations.GetWorkspaceTeamRequest, options?: QueryHookOptions< WorkspacesGetTeamQueryData, @@ -66,6 +67,7 @@ export function useWorkspacesGetTeam( return useQuery({ ...buildWorkspacesGetTeamQuery( client, + security, request, options, ), @@ -77,6 +79,7 @@ export function useWorkspacesGetTeam( * Get team members for a particular workspace */ export function useWorkspacesGetTeamSuspense( + security: operations.GetWorkspaceTeamSecurity, request: operations.GetWorkspaceTeamRequest, options?: SuspenseQueryHookOptions< WorkspacesGetTeamQueryData, @@ -90,6 +93,7 @@ export function useWorkspacesGetTeamSuspense( return useSuspenseQuery({ ...buildWorkspacesGetTeamQuery( client, + security, request, options, ), diff --git a/src/react-query/workspacesGetTokens.core.ts b/src/react-query/workspacesGetTokens.core.ts index 52dfd472..09e76300 100644 --- a/src/react-query/workspacesGetTokens.core.ts +++ b/src/react-query/workspacesGetTokens.core.ts @@ -19,12 +19,14 @@ export type WorkspacesGetTokensQueryData = Array; export function prefetchWorkspacesGetTokens( queryClient: QueryClient, client$: SpeakeasyCore, + security: operations.GetWorkspaceTokensSecurity, request: operations.GetWorkspaceTokensRequest, options?: RequestOptions, ): Promise { return queryClient.prefetchQuery({ ...buildWorkspacesGetTokensQuery( client$, + security, request, options, ), @@ -33,6 +35,7 @@ export function prefetchWorkspacesGetTokens( export function buildWorkspacesGetTokensQuery( client$: SpeakeasyCore, + security: operations.GetWorkspaceTokensSecurity, request: operations.GetWorkspaceTokensRequest, options?: RequestOptions, ): { @@ -59,6 +62,7 @@ export function buildWorkspacesGetTokensQuery( return unwrapAsync(workspacesGetTokens( client$, + security, request, mergedOptions, )); diff --git a/src/react-query/workspacesGetTokens.ts b/src/react-query/workspacesGetTokens.ts index a408ba8a..ee18d641 100644 --- a/src/react-query/workspacesGetTokens.ts +++ b/src/react-query/workspacesGetTokens.ts @@ -56,6 +56,7 @@ export type WorkspacesGetTokensQueryError = * Get tokens for a particular workspace */ export function useWorkspacesGetTokens( + security: operations.GetWorkspaceTokensSecurity, request: operations.GetWorkspaceTokensRequest, options?: QueryHookOptions< WorkspacesGetTokensQueryData, @@ -66,6 +67,7 @@ export function useWorkspacesGetTokens( return useQuery({ ...buildWorkspacesGetTokensQuery( client, + security, request, options, ), @@ -77,6 +79,7 @@ export function useWorkspacesGetTokens( * Get tokens for a particular workspace */ export function useWorkspacesGetTokensSuspense( + security: operations.GetWorkspaceTokensSecurity, request: operations.GetWorkspaceTokensRequest, options?: SuspenseQueryHookOptions< WorkspacesGetTokensQueryData, @@ -90,6 +93,7 @@ export function useWorkspacesGetTokensSuspense( return useSuspenseQuery({ ...buildWorkspacesGetTokensQuery( client, + security, request, options, ), diff --git a/src/react-query/workspacesGrantAccess.ts b/src/react-query/workspacesGrantAccess.ts index b3cddcae..193775d5 100644 --- a/src/react-query/workspacesGrantAccess.ts +++ b/src/react-query/workspacesGrantAccess.ts @@ -29,6 +29,7 @@ import { useSpeakeasyContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type WorkspacesGrantAccessMutationVariables = { + security: operations.GrantUserAccessToWorkspaceSecurity; request: operations.GrantUserAccessToWorkspaceRequest; options?: RequestOptions; }; @@ -87,6 +88,7 @@ export function buildWorkspacesGrantAccessMutation( return { mutationKey: mutationKeyWorkspacesGrantAccess(), mutationFn: function workspacesGrantAccessMutationFn({ + security, request, options, }): Promise { @@ -104,6 +106,7 @@ export function buildWorkspacesGrantAccessMutation( }; return unwrapAsync(workspacesGrantAccess( client$, + security, request, mergedOptions, )); diff --git a/src/react-query/workspacesRevokeAccess.ts b/src/react-query/workspacesRevokeAccess.ts index f3212a53..08ed64b4 100644 --- a/src/react-query/workspacesRevokeAccess.ts +++ b/src/react-query/workspacesRevokeAccess.ts @@ -28,6 +28,7 @@ import { useSpeakeasyContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type WorkspacesRevokeAccessMutationVariables = { + security: operations.RevokeUserAccessToWorkspaceSecurity; request: operations.RevokeUserAccessToWorkspaceRequest; options?: RequestOptions; }; @@ -86,6 +87,7 @@ export function buildWorkspacesRevokeAccessMutation( return { mutationKey: mutationKeyWorkspacesRevokeAccess(), mutationFn: function workspacesRevokeAccessMutationFn({ + security, request, options, }): Promise { @@ -103,6 +105,7 @@ export function buildWorkspacesRevokeAccessMutation( }; return unwrapAsync(workspacesRevokeAccess( client$, + security, request, mergedOptions, )); diff --git a/src/react-query/workspacesSetFeatureFlags.ts b/src/react-query/workspacesSetFeatureFlags.ts index 7e563359..684f0a8f 100644 --- a/src/react-query/workspacesSetFeatureFlags.ts +++ b/src/react-query/workspacesSetFeatureFlags.ts @@ -22,12 +22,14 @@ import * as errors from "../sdk/models/errors/index.js"; import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js"; import { SpeakeasyError } from "../sdk/models/errors/speakeasyerror.js"; +import * as operations from "../sdk/models/operations/index.js"; import * as shared from "../sdk/models/shared/index.js"; import { unwrapAsync } from "../sdk/types/fp.js"; import { useSpeakeasyContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type WorkspacesSetFeatureFlagsMutationVariables = { + security: operations.SetWorkspaceFeatureFlagsSecurity; request: shared.WorkspaceFeatureFlagRequest; options?: RequestOptions; }; @@ -87,6 +89,7 @@ export function buildWorkspacesSetFeatureFlagsMutation( return { mutationKey: mutationKeyWorkspacesSetFeatureFlags(), mutationFn: function workspacesSetFeatureFlagsMutationFn({ + security, request, options, }): Promise { @@ -104,6 +107,7 @@ export function buildWorkspacesSetFeatureFlagsMutation( }; return unwrapAsync(workspacesSetFeatureFlags( client$, + security, request, mergedOptions, )); diff --git a/src/react-query/workspacesUpdate.ts b/src/react-query/workspacesUpdate.ts index 94d66f7e..04e18790 100644 --- a/src/react-query/workspacesUpdate.ts +++ b/src/react-query/workspacesUpdate.ts @@ -28,6 +28,7 @@ import { useSpeakeasyContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type WorkspacesUpdateMutationVariables = { + security: operations.UpdateWorkspaceDetailsSecurity; request: operations.UpdateWorkspaceDetailsRequest; options?: RequestOptions; }; @@ -89,6 +90,7 @@ export function buildWorkspacesUpdateMutation( return { mutationKey: mutationKeyWorkspacesUpdate(), mutationFn: function workspacesUpdateMutationFn({ + security, request, options, }): Promise { @@ -106,6 +108,7 @@ export function buildWorkspacesUpdateMutation( }; return unwrapAsync(workspacesUpdate( client$, + security, request, mergedOptions, )); diff --git a/src/react-query/workspacesUpdateSettings.ts b/src/react-query/workspacesUpdateSettings.ts index ff2d6bd5..eb9a256f 100644 --- a/src/react-query/workspacesUpdateSettings.ts +++ b/src/react-query/workspacesUpdateSettings.ts @@ -28,6 +28,7 @@ import { useSpeakeasyContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type WorkspacesUpdateSettingsMutationVariables = { + security: operations.UpdateWorkspaceSettingsSecurity; request: operations.UpdateWorkspaceSettingsRequest; options?: RequestOptions; }; @@ -89,6 +90,7 @@ export function buildWorkspacesUpdateSettingsMutation( return { mutationKey: mutationKeyWorkspacesUpdateSettings(), mutationFn: function workspacesUpdateSettingsMutationFn({ + security, request, options, }): Promise { @@ -106,6 +108,7 @@ export function buildWorkspacesUpdateSettingsMutation( }; return unwrapAsync(workspacesUpdateSettings( client$, + security, request, mergedOptions, )); diff --git a/src/sdk/auth.ts b/src/sdk/auth.ts index bb97b1e7..849d82aa 100644 --- a/src/sdk/auth.ts +++ b/src/sdk/auth.ts @@ -19,11 +19,13 @@ export class Auth extends ClientSDK { * Checks if generation is permitted for a particular run of the CLI */ async getAccess( + security: operations.GetWorkspaceAccessSecurity, request: operations.GetWorkspaceAccessRequest, options?: RequestOptions, ): Promise { return unwrapAsync(authGetAccess( this, + security, request, options, )); @@ -47,10 +49,12 @@ export class Auth extends ClientSDK { * Get information about the current user. */ async getUser( + security: operations.GetUserSecurity, options?: RequestOptions, ): Promise { return unwrapAsync(authGetUser( this, + security, options, )); } @@ -59,10 +63,12 @@ export class Auth extends ClientSDK { * Validate the current api key. */ async validateApiKey( + security: operations.ValidateApiKeySecurity, options?: RequestOptions, ): Promise { return unwrapAsync(authValidateApiKey( this, + security, options, )); } diff --git a/src/sdk/codesamples.ts b/src/sdk/codesamples.ts index 7eefc5fd..d107f6b0 100644 --- a/src/sdk/codesamples.ts +++ b/src/sdk/codesamples.ts @@ -19,11 +19,13 @@ export class CodeSamples extends ClientSDK { * This endpoint generates Code Sample previews from a file and configuration parameters. */ async generateCodeSamplePreview( + security: operations.GenerateCodeSamplePreviewSecurity, request: shared.CodeSampleSchemaInput, options?: RequestOptions, ): Promise { return unwrapAsync(codeSamplesGenerateCodeSamplePreview( this, + security, request, options, )); @@ -36,11 +38,13 @@ export class CodeSamples extends ClientSDK { * This endpoint generates Code Sample previews from a file and configuration parameters, receiving an async JobID response for polling. */ async generateCodeSamplePreviewAsync( + security: operations.GenerateCodeSamplePreviewAsyncSecurity, request: shared.CodeSampleSchemaInput, options?: RequestOptions, ): Promise { return unwrapAsync(codeSamplesGenerateCodeSamplePreviewAsync( this, + security, request, options, )); @@ -53,11 +57,13 @@ export class CodeSamples extends ClientSDK { * Retrieve usage snippets from an OpenAPI document stored in the registry. Supports filtering by language and operation ID. */ async get( + security: operations.GetCodeSamplesSecurity, request: operations.GetCodeSamplesRequest, options?: RequestOptions, ): Promise { return unwrapAsync(codeSamplesGet( this, + security, request, options, )); @@ -70,11 +76,13 @@ export class CodeSamples extends ClientSDK { * Poll for the result of an asynchronous Code Sample preview generation. */ async getCodeSamplePreviewAsync( + security: operations.GetCodeSamplePreviewAsyncSecurity, request: operations.GetCodeSamplePreviewAsyncRequest, options?: RequestOptions, ): Promise { return unwrapAsync(codeSamplesGetCodeSamplePreviewAsync( this, + security, request, options, )); diff --git a/src/sdk/events.ts b/src/sdk/events.ts index 7b714317..ba8bad05 100644 --- a/src/sdk/events.ts +++ b/src/sdk/events.ts @@ -19,11 +19,13 @@ export class Events extends ClientSDK { * Load recent events for a particular workspace */ async getEventsByTarget( + security: operations.GetWorkspaceEventsByTargetSecurity, request: operations.GetWorkspaceEventsByTargetRequest, options?: RequestOptions, ): Promise> { return unwrapAsync(eventsGetEventsByTarget( this, + security, request, options, )); @@ -33,11 +35,13 @@ export class Events extends ClientSDK { * Load targets for a particular workspace */ async getTargets( + security: operations.GetWorkspaceTargetsSecurity, request: operations.GetWorkspaceTargetsRequest, options?: RequestOptions, ): Promise> { return unwrapAsync(eventsGetTargets( this, + security, request, options, )); @@ -47,11 +51,13 @@ export class Events extends ClientSDK { * Load targets for a particular workspace */ async getTargetsDeprecated( + security: operations.GetWorkspaceTargetsDeprecatedSecurity, request: operations.GetWorkspaceTargetsDeprecatedRequest, options?: RequestOptions, ): Promise> { return unwrapAsync(eventsGetTargetsDeprecated( this, + security, request, options, )); @@ -61,6 +67,7 @@ export class Events extends ClientSDK { * Load a lean summary of targets for a workspace with pagination. Returns only essential fields needed by the dashboard UI. */ async getTargetsSummary( + security: operations.GetWorkspaceTargetsSummarySecurity, request: operations.GetWorkspaceTargetsSummaryRequest, options?: RequestOptions, ): Promise< @@ -71,6 +78,7 @@ export class Events extends ClientSDK { > { return unwrapResultIterator(eventsGetTargetsSummary( this, + security, request, options, )); @@ -83,11 +91,13 @@ export class Events extends ClientSDK { * Sends an array of events to be stored for a particular workspace. */ async post( + security: operations.PostWorkspaceEventsSecurity, request: operations.PostWorkspaceEventsRequest, options?: RequestOptions, ): Promise { return unwrapAsync(eventsPost( this, + security, request, options, )); @@ -97,11 +107,13 @@ export class Events extends ClientSDK { * Search events for a particular workspace by any field */ async search( + security: operations.SearchWorkspaceEventsSecurity, request: operations.SearchWorkspaceEventsRequest, options?: RequestOptions, ): Promise> { return unwrapAsync(eventsSearch( this, + security, request, options, )); diff --git a/src/sdk/github.ts b/src/sdk/github.ts index 4ce36e67..76cad71a 100644 --- a/src/sdk/github.ts +++ b/src/sdk/github.ts @@ -20,121 +20,143 @@ import { unwrapAsync } from "./types/fp.js"; export class Github extends ClientSDK { async checkAccess( + security: operations.CheckGithubAccessSecurity, request: operations.CheckGithubAccessRequest, options?: RequestOptions, ): Promise { return unwrapAsync(githubCheckAccess( this, + security, request, options, )); } async checkPublishingPRs( + security: operations.GithubCheckPublishingPRsSecurity, request: operations.GithubCheckPublishingPRsRequest, options?: RequestOptions, ): Promise { return unwrapAsync(githubCheckPublishingPRs( this, + security, request, options, )); } async checkPublishingSecrets( + security: operations.GithubCheckPublishingSecretsSecurity, request: operations.GithubCheckPublishingSecretsRequest, options?: RequestOptions, ): Promise { return unwrapAsync(githubCheckPublishingSecrets( this, + security, request, options, )); } async configureCodeSamples( + security: operations.GithubConfigureCodeSamplesSecurity, request: shared.GithubConfigureCodeSamplesRequest, options?: RequestOptions, ): Promise { return unwrapAsync(githubConfigureCodeSamples( this, + security, request, options, )); } async configureMintlifyRepo( + security: operations.GithubConfigureMintlifyRepoSecurity, request: shared.GithubConfigureMintlifyRepoRequest, options?: RequestOptions, ): Promise { return unwrapAsync(githubConfigureMintlifyRepo( this, + security, request, options, )); } async configureTarget( + security: operations.GithubConfigureTargetSecurity, request: shared.GithubConfigureTargetRequest, options?: RequestOptions, ): Promise { return unwrapAsync(githubConfigureTarget( this, + security, request, options, )); } async getAction( + security: operations.GetGitHubActionSecurity, request: operations.GetGitHubActionRequest, options?: RequestOptions, ): Promise { return unwrapAsync(githubGetAction( this, + security, request, options, )); } async getSetup( + security: operations.GetGithubSetupStateSecurity, request: operations.GetGithubSetupStateRequest, options?: RequestOptions, ): Promise { return unwrapAsync(githubGetSetup( this, + security, request, options, )); } async linkGithub( + security: operations.LinkGithubAccessSecurity, request: operations.LinkGithubAccessRequest, options?: RequestOptions, ): Promise { return unwrapAsync(githubLinkGithub( this, + security, request, options, )); } async storePublishingSecrets( + security: operations.GithubStorePublishingSecretsSecurity, request: shared.GithubStorePublishingSecretsRequest, options?: RequestOptions, ): Promise { return unwrapAsync(githubStorePublishingSecrets( this, + security, request, options, )); } async triggerAction( + security: operations.GithubTriggerActionSecurity, request: shared.GithubTriggerActionRequest, options?: RequestOptions, ): Promise { return unwrapAsync(githubTriggerAction( this, + security, request, options, )); diff --git a/src/sdk/models/operations/activatelanguage.ts b/src/sdk/models/operations/activatelanguage.ts new file mode 100644 index 00000000..eb4ff81c --- /dev/null +++ b/src/sdk/models/operations/activatelanguage.ts @@ -0,0 +1,118 @@ +/* + * 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"; + +export type ActivateLanguageSecurity = { + apiKey?: string | undefined; + bearer?: string | undefined; + workspaceIdentifier?: string | undefined; +}; + +export type ActivateLanguageRequest = { + /** + * The target language (e.g., typescript, python, go) + */ + language: string; +}; + +/** @internal */ +export const ActivateLanguageSecurity$inboundSchema: z.ZodType< + ActivateLanguageSecurity, + z.ZodTypeDef, + unknown +> = z.object({ + APIKey: z.string().optional(), + Bearer: z.string().optional(), + WorkspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "APIKey": "apiKey", + "Bearer": "bearer", + "WorkspaceIdentifier": "workspaceIdentifier", + }); +}); +/** @internal */ +export type ActivateLanguageSecurity$Outbound = { + APIKey?: string | undefined; + Bearer?: string | undefined; + WorkspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const ActivateLanguageSecurity$outboundSchema: z.ZodType< + ActivateLanguageSecurity$Outbound, + z.ZodTypeDef, + ActivateLanguageSecurity +> = z.object({ + apiKey: z.string().optional(), + bearer: z.string().optional(), + workspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + apiKey: "APIKey", + bearer: "Bearer", + workspaceIdentifier: "WorkspaceIdentifier", + }); +}); + +export function activateLanguageSecurityToJSON( + activateLanguageSecurity: ActivateLanguageSecurity, +): string { + return JSON.stringify( + ActivateLanguageSecurity$outboundSchema.parse(activateLanguageSecurity), + ); +} +export function activateLanguageSecurityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ActivateLanguageSecurity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ActivateLanguageSecurity' from JSON`, + ); +} + +/** @internal */ +export const ActivateLanguageRequest$inboundSchema: z.ZodType< + ActivateLanguageRequest, + z.ZodTypeDef, + unknown +> = z.object({ + language: z.string(), +}); +/** @internal */ +export type ActivateLanguageRequest$Outbound = { + language: string; +}; + +/** @internal */ +export const ActivateLanguageRequest$outboundSchema: z.ZodType< + ActivateLanguageRequest$Outbound, + z.ZodTypeDef, + ActivateLanguageRequest +> = z.object({ + language: z.string(), +}); + +export function activateLanguageRequestToJSON( + activateLanguageRequest: ActivateLanguageRequest, +): string { + return JSON.stringify( + ActivateLanguageRequest$outboundSchema.parse(activateLanguageRequest), + ); +} +export function activateLanguageRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ActivateLanguageRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ActivateLanguageRequest' from JSON`, + ); +} diff --git a/src/sdk/models/operations/cancelsubscription.ts b/src/sdk/models/operations/cancelsubscription.ts new file mode 100644 index 00000000..cca07c2b --- /dev/null +++ b/src/sdk/models/operations/cancelsubscription.ts @@ -0,0 +1,72 @@ +/* + * 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"; + +export type CancelSubscriptionSecurity = { + apiKey?: string | undefined; + bearer?: string | undefined; + workspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const CancelSubscriptionSecurity$inboundSchema: z.ZodType< + CancelSubscriptionSecurity, + z.ZodTypeDef, + unknown +> = z.object({ + APIKey: z.string().optional(), + Bearer: z.string().optional(), + WorkspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "APIKey": "apiKey", + "Bearer": "bearer", + "WorkspaceIdentifier": "workspaceIdentifier", + }); +}); +/** @internal */ +export type CancelSubscriptionSecurity$Outbound = { + APIKey?: string | undefined; + Bearer?: string | undefined; + WorkspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const CancelSubscriptionSecurity$outboundSchema: z.ZodType< + CancelSubscriptionSecurity$Outbound, + z.ZodTypeDef, + CancelSubscriptionSecurity +> = z.object({ + apiKey: z.string().optional(), + bearer: z.string().optional(), + workspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + apiKey: "APIKey", + bearer: "Bearer", + workspaceIdentifier: "WorkspaceIdentifier", + }); +}); + +export function cancelSubscriptionSecurityToJSON( + cancelSubscriptionSecurity: CancelSubscriptionSecurity, +): string { + return JSON.stringify( + CancelSubscriptionSecurity$outboundSchema.parse(cancelSubscriptionSecurity), + ); +} +export function cancelSubscriptionSecurityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => CancelSubscriptionSecurity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CancelSubscriptionSecurity' from JSON`, + ); +} diff --git a/src/sdk/models/operations/checkgithubaccess.ts b/src/sdk/models/operations/checkgithubaccess.ts index 77be2176..5ae8ab22 100644 --- a/src/sdk/models/operations/checkgithubaccess.ts +++ b/src/sdk/models/operations/checkgithubaccess.ts @@ -3,15 +3,79 @@ */ 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"; +export type CheckGithubAccessSecurity = { + apiKey?: string | undefined; + bearer?: string | undefined; + workspaceIdentifier?: string | undefined; +}; + export type CheckGithubAccessRequest = { org: string; repo: string; }; +/** @internal */ +export const CheckGithubAccessSecurity$inboundSchema: z.ZodType< + CheckGithubAccessSecurity, + z.ZodTypeDef, + unknown +> = z.object({ + APIKey: z.string().optional(), + Bearer: z.string().optional(), + WorkspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "APIKey": "apiKey", + "Bearer": "bearer", + "WorkspaceIdentifier": "workspaceIdentifier", + }); +}); +/** @internal */ +export type CheckGithubAccessSecurity$Outbound = { + APIKey?: string | undefined; + Bearer?: string | undefined; + WorkspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const CheckGithubAccessSecurity$outboundSchema: z.ZodType< + CheckGithubAccessSecurity$Outbound, + z.ZodTypeDef, + CheckGithubAccessSecurity +> = z.object({ + apiKey: z.string().optional(), + bearer: z.string().optional(), + workspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + apiKey: "APIKey", + bearer: "Bearer", + workspaceIdentifier: "WorkspaceIdentifier", + }); +}); + +export function checkGithubAccessSecurityToJSON( + checkGithubAccessSecurity: CheckGithubAccessSecurity, +): string { + return JSON.stringify( + CheckGithubAccessSecurity$outboundSchema.parse(checkGithubAccessSecurity), + ); +} +export function checkGithubAccessSecurityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => CheckGithubAccessSecurity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CheckGithubAccessSecurity' from JSON`, + ); +} + /** @internal */ export const CheckGithubAccessRequest$inboundSchema: z.ZodType< CheckGithubAccessRequest, diff --git a/src/sdk/models/operations/create.ts b/src/sdk/models/operations/create.ts index 03ca94d1..18e8c7d4 100644 --- a/src/sdk/models/operations/create.ts +++ b/src/sdk/models/operations/create.ts @@ -3,10 +3,17 @@ */ 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"; +export type CreateSecurity = { + apiKey?: string | undefined; + bearer?: string | undefined; + workspaceIdentifier?: string | undefined; +}; + export type CreateRequestBody = { /** * URL to shorten @@ -14,6 +21,59 @@ export type CreateRequestBody = { url: string; }; +/** @internal */ +export const CreateSecurity$inboundSchema: z.ZodType< + CreateSecurity, + z.ZodTypeDef, + unknown +> = z.object({ + APIKey: z.string().optional(), + Bearer: z.string().optional(), + WorkspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "APIKey": "apiKey", + "Bearer": "bearer", + "WorkspaceIdentifier": "workspaceIdentifier", + }); +}); +/** @internal */ +export type CreateSecurity$Outbound = { + APIKey?: string | undefined; + Bearer?: string | undefined; + WorkspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const CreateSecurity$outboundSchema: z.ZodType< + CreateSecurity$Outbound, + z.ZodTypeDef, + CreateSecurity +> = z.object({ + apiKey: z.string().optional(), + bearer: z.string().optional(), + workspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + apiKey: "APIKey", + bearer: "Bearer", + workspaceIdentifier: "WorkspaceIdentifier", + }); +}); + +export function createSecurityToJSON(createSecurity: CreateSecurity): string { + return JSON.stringify(CreateSecurity$outboundSchema.parse(createSecurity)); +} +export function createSecurityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => CreateSecurity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CreateSecurity' from JSON`, + ); +} + /** @internal */ export const CreateRequestBody$inboundSchema: z.ZodType< CreateRequestBody, diff --git a/src/sdk/models/operations/createbillingaddons.ts b/src/sdk/models/operations/createbillingaddons.ts new file mode 100644 index 00000000..8aaa5b93 --- /dev/null +++ b/src/sdk/models/operations/createbillingaddons.ts @@ -0,0 +1,74 @@ +/* + * 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"; + +export type CreateBillingAddOnsSecurity = { + apiKey?: string | undefined; + bearer?: string | undefined; + workspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const CreateBillingAddOnsSecurity$inboundSchema: z.ZodType< + CreateBillingAddOnsSecurity, + z.ZodTypeDef, + unknown +> = z.object({ + APIKey: z.string().optional(), + Bearer: z.string().optional(), + WorkspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "APIKey": "apiKey", + "Bearer": "bearer", + "WorkspaceIdentifier": "workspaceIdentifier", + }); +}); +/** @internal */ +export type CreateBillingAddOnsSecurity$Outbound = { + APIKey?: string | undefined; + Bearer?: string | undefined; + WorkspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const CreateBillingAddOnsSecurity$outboundSchema: z.ZodType< + CreateBillingAddOnsSecurity$Outbound, + z.ZodTypeDef, + CreateBillingAddOnsSecurity +> = z.object({ + apiKey: z.string().optional(), + bearer: z.string().optional(), + workspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + apiKey: "APIKey", + bearer: "Bearer", + workspaceIdentifier: "WorkspaceIdentifier", + }); +}); + +export function createBillingAddOnsSecurityToJSON( + createBillingAddOnsSecurity: CreateBillingAddOnsSecurity, +): string { + return JSON.stringify( + CreateBillingAddOnsSecurity$outboundSchema.parse( + createBillingAddOnsSecurity, + ), + ); +} +export function createBillingAddOnsSecurityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => CreateBillingAddOnsSecurity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CreateBillingAddOnsSecurity' from JSON`, + ); +} diff --git a/src/sdk/models/operations/createfreetrial.ts b/src/sdk/models/operations/createfreetrial.ts new file mode 100644 index 00000000..d19d703f --- /dev/null +++ b/src/sdk/models/operations/createfreetrial.ts @@ -0,0 +1,72 @@ +/* + * 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"; + +export type CreateFreeTrialSecurity = { + apiKey?: string | undefined; + bearer?: string | undefined; + workspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const CreateFreeTrialSecurity$inboundSchema: z.ZodType< + CreateFreeTrialSecurity, + z.ZodTypeDef, + unknown +> = z.object({ + APIKey: z.string().optional(), + Bearer: z.string().optional(), + WorkspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "APIKey": "apiKey", + "Bearer": "bearer", + "WorkspaceIdentifier": "workspaceIdentifier", + }); +}); +/** @internal */ +export type CreateFreeTrialSecurity$Outbound = { + APIKey?: string | undefined; + Bearer?: string | undefined; + WorkspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const CreateFreeTrialSecurity$outboundSchema: z.ZodType< + CreateFreeTrialSecurity$Outbound, + z.ZodTypeDef, + CreateFreeTrialSecurity +> = z.object({ + apiKey: z.string().optional(), + bearer: z.string().optional(), + workspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + apiKey: "APIKey", + bearer: "Bearer", + workspaceIdentifier: "WorkspaceIdentifier", + }); +}); + +export function createFreeTrialSecurityToJSON( + createFreeTrialSecurity: CreateFreeTrialSecurity, +): string { + return JSON.stringify( + CreateFreeTrialSecurity$outboundSchema.parse(createFreeTrialSecurity), + ); +} +export function createFreeTrialSecurityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => CreateFreeTrialSecurity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CreateFreeTrialSecurity' from JSON`, + ); +} diff --git a/src/sdk/models/operations/createlanguagecheckoutsession.ts b/src/sdk/models/operations/createlanguagecheckoutsession.ts new file mode 100644 index 00000000..8ce6084a --- /dev/null +++ b/src/sdk/models/operations/createlanguagecheckoutsession.ts @@ -0,0 +1,75 @@ +/* + * 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"; + +export type CreateLanguageCheckoutSessionSecurity = { + apiKey?: string | undefined; + bearer?: string | undefined; + workspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const CreateLanguageCheckoutSessionSecurity$inboundSchema: z.ZodType< + CreateLanguageCheckoutSessionSecurity, + z.ZodTypeDef, + unknown +> = z.object({ + APIKey: z.string().optional(), + Bearer: z.string().optional(), + WorkspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "APIKey": "apiKey", + "Bearer": "bearer", + "WorkspaceIdentifier": "workspaceIdentifier", + }); +}); +/** @internal */ +export type CreateLanguageCheckoutSessionSecurity$Outbound = { + APIKey?: string | undefined; + Bearer?: string | undefined; + WorkspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const CreateLanguageCheckoutSessionSecurity$outboundSchema: z.ZodType< + CreateLanguageCheckoutSessionSecurity$Outbound, + z.ZodTypeDef, + CreateLanguageCheckoutSessionSecurity +> = z.object({ + apiKey: z.string().optional(), + bearer: z.string().optional(), + workspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + apiKey: "APIKey", + bearer: "Bearer", + workspaceIdentifier: "WorkspaceIdentifier", + }); +}); + +export function createLanguageCheckoutSessionSecurityToJSON( + createLanguageCheckoutSessionSecurity: CreateLanguageCheckoutSessionSecurity, +): string { + return JSON.stringify( + CreateLanguageCheckoutSessionSecurity$outboundSchema.parse( + createLanguageCheckoutSessionSecurity, + ), + ); +} +export function createLanguageCheckoutSessionSecurityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + CreateLanguageCheckoutSessionSecurity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CreateLanguageCheckoutSessionSecurity' from JSON`, + ); +} diff --git a/src/sdk/models/operations/createorganization.ts b/src/sdk/models/operations/createorganization.ts new file mode 100644 index 00000000..87681147 --- /dev/null +++ b/src/sdk/models/operations/createorganization.ts @@ -0,0 +1,72 @@ +/* + * 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"; + +export type CreateOrganizationSecurity = { + apiKey?: string | undefined; + bearer?: string | undefined; + workspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const CreateOrganizationSecurity$inboundSchema: z.ZodType< + CreateOrganizationSecurity, + z.ZodTypeDef, + unknown +> = z.object({ + APIKey: z.string().optional(), + Bearer: z.string().optional(), + WorkspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "APIKey": "apiKey", + "Bearer": "bearer", + "WorkspaceIdentifier": "workspaceIdentifier", + }); +}); +/** @internal */ +export type CreateOrganizationSecurity$Outbound = { + APIKey?: string | undefined; + Bearer?: string | undefined; + WorkspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const CreateOrganizationSecurity$outboundSchema: z.ZodType< + CreateOrganizationSecurity$Outbound, + z.ZodTypeDef, + CreateOrganizationSecurity +> = z.object({ + apiKey: z.string().optional(), + bearer: z.string().optional(), + workspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + apiKey: "APIKey", + bearer: "Bearer", + workspaceIdentifier: "WorkspaceIdentifier", + }); +}); + +export function createOrganizationSecurityToJSON( + createOrganizationSecurity: CreateOrganizationSecurity, +): string { + return JSON.stringify( + CreateOrganizationSecurity$outboundSchema.parse(createOrganizationSecurity), + ); +} +export function createOrganizationSecurityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => CreateOrganizationSecurity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CreateOrganizationSecurity' from JSON`, + ); +} diff --git a/src/sdk/models/operations/createpublishingtoken.ts b/src/sdk/models/operations/createpublishingtoken.ts index fb928b28..2e0a14c8 100644 --- a/src/sdk/models/operations/createpublishingtoken.ts +++ b/src/sdk/models/operations/createpublishingtoken.ts @@ -8,6 +8,12 @@ import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +export type CreatePublishingTokenSecurity = { + apiKey?: string | undefined; + bearer?: string | undefined; + workspaceIdentifier?: string | undefined; +}; + /** * The publishing token to create */ @@ -18,6 +24,65 @@ export type CreatePublishingTokenRequestBody = { validUntil: Date; }; +/** @internal */ +export const CreatePublishingTokenSecurity$inboundSchema: z.ZodType< + CreatePublishingTokenSecurity, + z.ZodTypeDef, + unknown +> = z.object({ + APIKey: z.string().optional(), + Bearer: z.string().optional(), + WorkspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "APIKey": "apiKey", + "Bearer": "bearer", + "WorkspaceIdentifier": "workspaceIdentifier", + }); +}); +/** @internal */ +export type CreatePublishingTokenSecurity$Outbound = { + APIKey?: string | undefined; + Bearer?: string | undefined; + WorkspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const CreatePublishingTokenSecurity$outboundSchema: z.ZodType< + CreatePublishingTokenSecurity$Outbound, + z.ZodTypeDef, + CreatePublishingTokenSecurity +> = z.object({ + apiKey: z.string().optional(), + bearer: z.string().optional(), + workspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + apiKey: "APIKey", + bearer: "Bearer", + workspaceIdentifier: "WorkspaceIdentifier", + }); +}); + +export function createPublishingTokenSecurityToJSON( + createPublishingTokenSecurity: CreatePublishingTokenSecurity, +): string { + return JSON.stringify( + CreatePublishingTokenSecurity$outboundSchema.parse( + createPublishingTokenSecurity, + ), + ); +} +export function createPublishingTokenSecurityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => CreatePublishingTokenSecurity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CreatePublishingTokenSecurity' from JSON`, + ); +} + /** @internal */ export const CreatePublishingTokenRequestBody$inboundSchema: z.ZodType< CreatePublishingTokenRequestBody, diff --git a/src/sdk/models/operations/createschemastoreitem.ts b/src/sdk/models/operations/createschemastoreitem.ts index 854ed23d..3fccc520 100644 --- a/src/sdk/models/operations/createschemastoreitem.ts +++ b/src/sdk/models/operations/createschemastoreitem.ts @@ -3,11 +3,18 @@ */ 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"; +export type CreateSchemaStoreItemSecurity = { + apiKey?: string | undefined; + bearer?: string | undefined; + workspaceIdentifier?: string | undefined; +}; + /** * The format of the OpenAPI specification. */ @@ -39,6 +46,65 @@ export type CreateSchemaStoreItemRequestBody = { spec: string; }; +/** @internal */ +export const CreateSchemaStoreItemSecurity$inboundSchema: z.ZodType< + CreateSchemaStoreItemSecurity, + z.ZodTypeDef, + unknown +> = z.object({ + APIKey: z.string().optional(), + Bearer: z.string().optional(), + WorkspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "APIKey": "apiKey", + "Bearer": "bearer", + "WorkspaceIdentifier": "workspaceIdentifier", + }); +}); +/** @internal */ +export type CreateSchemaStoreItemSecurity$Outbound = { + APIKey?: string | undefined; + Bearer?: string | undefined; + WorkspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const CreateSchemaStoreItemSecurity$outboundSchema: z.ZodType< + CreateSchemaStoreItemSecurity$Outbound, + z.ZodTypeDef, + CreateSchemaStoreItemSecurity +> = z.object({ + apiKey: z.string().optional(), + bearer: z.string().optional(), + workspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + apiKey: "APIKey", + bearer: "Bearer", + workspaceIdentifier: "WorkspaceIdentifier", + }); +}); + +export function createSchemaStoreItemSecurityToJSON( + createSchemaStoreItemSecurity: CreateSchemaStoreItemSecurity, +): string { + return JSON.stringify( + CreateSchemaStoreItemSecurity$outboundSchema.parse( + createSchemaStoreItemSecurity, + ), + ); +} +export function createSchemaStoreItemSecurityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => CreateSchemaStoreItemSecurity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CreateSchemaStoreItemSecurity' from JSON`, + ); +} + /** @internal */ export const Format$inboundSchema: z.ZodNativeEnum = z .nativeEnum(Format); diff --git a/src/sdk/models/operations/createworkspace.ts b/src/sdk/models/operations/createworkspace.ts new file mode 100644 index 00000000..8c081858 --- /dev/null +++ b/src/sdk/models/operations/createworkspace.ts @@ -0,0 +1,72 @@ +/* + * 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"; + +export type CreateWorkspaceSecurity = { + apiKey?: string | undefined; + bearer?: string | undefined; + workspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const CreateWorkspaceSecurity$inboundSchema: z.ZodType< + CreateWorkspaceSecurity, + z.ZodTypeDef, + unknown +> = z.object({ + APIKey: z.string().optional(), + Bearer: z.string().optional(), + WorkspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "APIKey": "apiKey", + "Bearer": "bearer", + "WorkspaceIdentifier": "workspaceIdentifier", + }); +}); +/** @internal */ +export type CreateWorkspaceSecurity$Outbound = { + APIKey?: string | undefined; + Bearer?: string | undefined; + WorkspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const CreateWorkspaceSecurity$outboundSchema: z.ZodType< + CreateWorkspaceSecurity$Outbound, + z.ZodTypeDef, + CreateWorkspaceSecurity +> = z.object({ + apiKey: z.string().optional(), + bearer: z.string().optional(), + workspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + apiKey: "APIKey", + bearer: "Bearer", + workspaceIdentifier: "WorkspaceIdentifier", + }); +}); + +export function createWorkspaceSecurityToJSON( + createWorkspaceSecurity: CreateWorkspaceSecurity, +): string { + return JSON.stringify( + CreateWorkspaceSecurity$outboundSchema.parse(createWorkspaceSecurity), + ); +} +export function createWorkspaceSecurityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => CreateWorkspaceSecurity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CreateWorkspaceSecurity' from JSON`, + ); +} diff --git a/src/sdk/models/operations/createworkspacetoken.ts b/src/sdk/models/operations/createworkspacetoken.ts index adca5ecc..943c8add 100644 --- a/src/sdk/models/operations/createworkspacetoken.ts +++ b/src/sdk/models/operations/createworkspacetoken.ts @@ -13,6 +13,12 @@ export type CreateWorkspaceTokenGlobals = { workspaceId?: string | undefined; }; +export type CreateWorkspaceTokenSecurity = { + apiKey?: string | undefined; + bearer?: string | undefined; + workspaceIdentifier?: string | undefined; +}; + export type CreateWorkspaceTokenRequest = { /** * Unique identifier of the workspace. @@ -70,6 +76,65 @@ export function createWorkspaceTokenGlobalsFromJSON( ); } +/** @internal */ +export const CreateWorkspaceTokenSecurity$inboundSchema: z.ZodType< + CreateWorkspaceTokenSecurity, + z.ZodTypeDef, + unknown +> = z.object({ + APIKey: z.string().optional(), + Bearer: z.string().optional(), + WorkspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "APIKey": "apiKey", + "Bearer": "bearer", + "WorkspaceIdentifier": "workspaceIdentifier", + }); +}); +/** @internal */ +export type CreateWorkspaceTokenSecurity$Outbound = { + APIKey?: string | undefined; + Bearer?: string | undefined; + WorkspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const CreateWorkspaceTokenSecurity$outboundSchema: z.ZodType< + CreateWorkspaceTokenSecurity$Outbound, + z.ZodTypeDef, + CreateWorkspaceTokenSecurity +> = z.object({ + apiKey: z.string().optional(), + bearer: z.string().optional(), + workspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + apiKey: "APIKey", + bearer: "Bearer", + workspaceIdentifier: "WorkspaceIdentifier", + }); +}); + +export function createWorkspaceTokenSecurityToJSON( + createWorkspaceTokenSecurity: CreateWorkspaceTokenSecurity, +): string { + return JSON.stringify( + CreateWorkspaceTokenSecurity$outboundSchema.parse( + createWorkspaceTokenSecurity, + ), + ); +} +export function createWorkspaceTokenSecurityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => CreateWorkspaceTokenSecurity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CreateWorkspaceTokenSecurity' from JSON`, + ); +} + /** @internal */ export const CreateWorkspaceTokenRequest$inboundSchema: z.ZodType< CreateWorkspaceTokenRequest, diff --git a/src/sdk/models/operations/deactivatelanguage.ts b/src/sdk/models/operations/deactivatelanguage.ts new file mode 100644 index 00000000..d98e754e --- /dev/null +++ b/src/sdk/models/operations/deactivatelanguage.ts @@ -0,0 +1,118 @@ +/* + * 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"; + +export type DeactivateLanguageSecurity = { + apiKey?: string | undefined; + bearer?: string | undefined; + workspaceIdentifier?: string | undefined; +}; + +export type DeactivateLanguageRequest = { + /** + * The target language (e.g., typescript, python, go) + */ + language: string; +}; + +/** @internal */ +export const DeactivateLanguageSecurity$inboundSchema: z.ZodType< + DeactivateLanguageSecurity, + z.ZodTypeDef, + unknown +> = z.object({ + APIKey: z.string().optional(), + Bearer: z.string().optional(), + WorkspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "APIKey": "apiKey", + "Bearer": "bearer", + "WorkspaceIdentifier": "workspaceIdentifier", + }); +}); +/** @internal */ +export type DeactivateLanguageSecurity$Outbound = { + APIKey?: string | undefined; + Bearer?: string | undefined; + WorkspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const DeactivateLanguageSecurity$outboundSchema: z.ZodType< + DeactivateLanguageSecurity$Outbound, + z.ZodTypeDef, + DeactivateLanguageSecurity +> = z.object({ + apiKey: z.string().optional(), + bearer: z.string().optional(), + workspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + apiKey: "APIKey", + bearer: "Bearer", + workspaceIdentifier: "WorkspaceIdentifier", + }); +}); + +export function deactivateLanguageSecurityToJSON( + deactivateLanguageSecurity: DeactivateLanguageSecurity, +): string { + return JSON.stringify( + DeactivateLanguageSecurity$outboundSchema.parse(deactivateLanguageSecurity), + ); +} +export function deactivateLanguageSecurityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => DeactivateLanguageSecurity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'DeactivateLanguageSecurity' from JSON`, + ); +} + +/** @internal */ +export const DeactivateLanguageRequest$inboundSchema: z.ZodType< + DeactivateLanguageRequest, + z.ZodTypeDef, + unknown +> = z.object({ + language: z.string(), +}); +/** @internal */ +export type DeactivateLanguageRequest$Outbound = { + language: string; +}; + +/** @internal */ +export const DeactivateLanguageRequest$outboundSchema: z.ZodType< + DeactivateLanguageRequest$Outbound, + z.ZodTypeDef, + DeactivateLanguageRequest +> = z.object({ + language: z.string(), +}); + +export function deactivateLanguageRequestToJSON( + deactivateLanguageRequest: DeactivateLanguageRequest, +): string { + return JSON.stringify( + DeactivateLanguageRequest$outboundSchema.parse(deactivateLanguageRequest), + ); +} +export function deactivateLanguageRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => DeactivateLanguageRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'DeactivateLanguageRequest' from JSON`, + ); +} diff --git a/src/sdk/models/operations/deletebillingaddon.ts b/src/sdk/models/operations/deletebillingaddon.ts index 09da6d5e..e2393766 100644 --- a/src/sdk/models/operations/deletebillingaddon.ts +++ b/src/sdk/models/operations/deletebillingaddon.ts @@ -9,6 +9,12 @@ import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; +export type DeleteBillingAddOnSecurity = { + apiKey?: string | undefined; + bearer?: string | undefined; + workspaceIdentifier?: string | undefined; +}; + export type DeleteBillingAddOnRequest = { /** * The specific add-on to delete. @@ -16,6 +22,63 @@ export type DeleteBillingAddOnRequest = { addOn: shared.BillingAddOn; }; +/** @internal */ +export const DeleteBillingAddOnSecurity$inboundSchema: z.ZodType< + DeleteBillingAddOnSecurity, + z.ZodTypeDef, + unknown +> = z.object({ + APIKey: z.string().optional(), + Bearer: z.string().optional(), + WorkspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "APIKey": "apiKey", + "Bearer": "bearer", + "WorkspaceIdentifier": "workspaceIdentifier", + }); +}); +/** @internal */ +export type DeleteBillingAddOnSecurity$Outbound = { + APIKey?: string | undefined; + Bearer?: string | undefined; + WorkspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const DeleteBillingAddOnSecurity$outboundSchema: z.ZodType< + DeleteBillingAddOnSecurity$Outbound, + z.ZodTypeDef, + DeleteBillingAddOnSecurity +> = z.object({ + apiKey: z.string().optional(), + bearer: z.string().optional(), + workspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + apiKey: "APIKey", + bearer: "Bearer", + workspaceIdentifier: "WorkspaceIdentifier", + }); +}); + +export function deleteBillingAddOnSecurityToJSON( + deleteBillingAddOnSecurity: DeleteBillingAddOnSecurity, +): string { + return JSON.stringify( + DeleteBillingAddOnSecurity$outboundSchema.parse(deleteBillingAddOnSecurity), + ); +} +export function deleteBillingAddOnSecurityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => DeleteBillingAddOnSecurity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'DeleteBillingAddOnSecurity' from JSON`, + ); +} + /** @internal */ export const DeleteBillingAddOnRequest$inboundSchema: z.ZodType< DeleteBillingAddOnRequest, diff --git a/src/sdk/models/operations/deletepublishingtoken.ts b/src/sdk/models/operations/deletepublishingtoken.ts index f861d6d9..697b6d82 100644 --- a/src/sdk/models/operations/deletepublishingtoken.ts +++ b/src/sdk/models/operations/deletepublishingtoken.ts @@ -3,10 +3,17 @@ */ 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"; +export type DeletePublishingTokenSecurity = { + apiKey?: string | undefined; + bearer?: string | undefined; + workspaceIdentifier?: string | undefined; +}; + export type DeletePublishingTokenRequest = { /** * Unique identifier of the publishing token. @@ -14,6 +21,65 @@ export type DeletePublishingTokenRequest = { tokenID: string; }; +/** @internal */ +export const DeletePublishingTokenSecurity$inboundSchema: z.ZodType< + DeletePublishingTokenSecurity, + z.ZodTypeDef, + unknown +> = z.object({ + APIKey: z.string().optional(), + Bearer: z.string().optional(), + WorkspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "APIKey": "apiKey", + "Bearer": "bearer", + "WorkspaceIdentifier": "workspaceIdentifier", + }); +}); +/** @internal */ +export type DeletePublishingTokenSecurity$Outbound = { + APIKey?: string | undefined; + Bearer?: string | undefined; + WorkspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const DeletePublishingTokenSecurity$outboundSchema: z.ZodType< + DeletePublishingTokenSecurity$Outbound, + z.ZodTypeDef, + DeletePublishingTokenSecurity +> = z.object({ + apiKey: z.string().optional(), + bearer: z.string().optional(), + workspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + apiKey: "APIKey", + bearer: "Bearer", + workspaceIdentifier: "WorkspaceIdentifier", + }); +}); + +export function deletePublishingTokenSecurityToJSON( + deletePublishingTokenSecurity: DeletePublishingTokenSecurity, +): string { + return JSON.stringify( + DeletePublishingTokenSecurity$outboundSchema.parse( + deletePublishingTokenSecurity, + ), + ); +} +export function deletePublishingTokenSecurityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => DeletePublishingTokenSecurity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'DeletePublishingTokenSecurity' from JSON`, + ); +} + /** @internal */ export const DeletePublishingTokenRequest$inboundSchema: z.ZodType< DeletePublishingTokenRequest, diff --git a/src/sdk/models/operations/deleteworkspacetoken.ts b/src/sdk/models/operations/deleteworkspacetoken.ts index fad839f0..b30de47d 100644 --- a/src/sdk/models/operations/deleteworkspacetoken.ts +++ b/src/sdk/models/operations/deleteworkspacetoken.ts @@ -12,6 +12,12 @@ export type DeleteWorkspaceTokenGlobals = { workspaceId?: string | undefined; }; +export type DeleteWorkspaceTokenSecurity = { + apiKey?: string | undefined; + bearer?: string | undefined; + workspaceIdentifier?: string | undefined; +}; + export type DeleteWorkspaceTokenRequest = { /** * Unique identifier of the workspace. @@ -72,6 +78,65 @@ export function deleteWorkspaceTokenGlobalsFromJSON( ); } +/** @internal */ +export const DeleteWorkspaceTokenSecurity$inboundSchema: z.ZodType< + DeleteWorkspaceTokenSecurity, + z.ZodTypeDef, + unknown +> = z.object({ + APIKey: z.string().optional(), + Bearer: z.string().optional(), + WorkspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "APIKey": "apiKey", + "Bearer": "bearer", + "WorkspaceIdentifier": "workspaceIdentifier", + }); +}); +/** @internal */ +export type DeleteWorkspaceTokenSecurity$Outbound = { + APIKey?: string | undefined; + Bearer?: string | undefined; + WorkspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const DeleteWorkspaceTokenSecurity$outboundSchema: z.ZodType< + DeleteWorkspaceTokenSecurity$Outbound, + z.ZodTypeDef, + DeleteWorkspaceTokenSecurity +> = z.object({ + apiKey: z.string().optional(), + bearer: z.string().optional(), + workspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + apiKey: "APIKey", + bearer: "Bearer", + workspaceIdentifier: "WorkspaceIdentifier", + }); +}); + +export function deleteWorkspaceTokenSecurityToJSON( + deleteWorkspaceTokenSecurity: DeleteWorkspaceTokenSecurity, +): string { + return JSON.stringify( + DeleteWorkspaceTokenSecurity$outboundSchema.parse( + deleteWorkspaceTokenSecurity, + ), + ); +} +export function deleteWorkspaceTokenSecurityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => DeleteWorkspaceTokenSecurity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'DeleteWorkspaceTokenSecurity' from JSON`, + ); +} + /** @internal */ export const DeleteWorkspaceTokenRequest$inboundSchema: z.ZodType< DeleteWorkspaceTokenRequest, diff --git a/src/sdk/models/operations/generatecodesamplepreview.ts b/src/sdk/models/operations/generatecodesamplepreview.ts new file mode 100644 index 00000000..05a59e0a --- /dev/null +++ b/src/sdk/models/operations/generatecodesamplepreview.ts @@ -0,0 +1,74 @@ +/* + * 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"; + +export type GenerateCodeSamplePreviewSecurity = { + apiKey?: string | undefined; + bearer?: string | undefined; + workspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const GenerateCodeSamplePreviewSecurity$inboundSchema: z.ZodType< + GenerateCodeSamplePreviewSecurity, + z.ZodTypeDef, + unknown +> = z.object({ + APIKey: z.string().optional(), + Bearer: z.string().optional(), + WorkspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "APIKey": "apiKey", + "Bearer": "bearer", + "WorkspaceIdentifier": "workspaceIdentifier", + }); +}); +/** @internal */ +export type GenerateCodeSamplePreviewSecurity$Outbound = { + APIKey?: string | undefined; + Bearer?: string | undefined; + WorkspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const GenerateCodeSamplePreviewSecurity$outboundSchema: z.ZodType< + GenerateCodeSamplePreviewSecurity$Outbound, + z.ZodTypeDef, + GenerateCodeSamplePreviewSecurity +> = z.object({ + apiKey: z.string().optional(), + bearer: z.string().optional(), + workspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + apiKey: "APIKey", + bearer: "Bearer", + workspaceIdentifier: "WorkspaceIdentifier", + }); +}); + +export function generateCodeSamplePreviewSecurityToJSON( + generateCodeSamplePreviewSecurity: GenerateCodeSamplePreviewSecurity, +): string { + return JSON.stringify( + GenerateCodeSamplePreviewSecurity$outboundSchema.parse( + generateCodeSamplePreviewSecurity, + ), + ); +} +export function generateCodeSamplePreviewSecurityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => GenerateCodeSamplePreviewSecurity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GenerateCodeSamplePreviewSecurity' from JSON`, + ); +} diff --git a/src/sdk/models/operations/generatecodesamplepreviewasync.ts b/src/sdk/models/operations/generatecodesamplepreviewasync.ts index 41d195cb..16744134 100644 --- a/src/sdk/models/operations/generatecodesamplepreviewasync.ts +++ b/src/sdk/models/operations/generatecodesamplepreviewasync.ts @@ -9,6 +9,12 @@ import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; +export type GenerateCodeSamplePreviewAsyncSecurity = { + apiKey?: string | undefined; + bearer?: string | undefined; + workspaceIdentifier?: string | undefined; +}; + /** * Job accepted, returns a job ID to poll for status and result */ @@ -23,6 +29,67 @@ export type GenerateCodeSamplePreviewAsyncResponseBody = { status: shared.CodeSamplesJobStatus; }; +/** @internal */ +export const GenerateCodeSamplePreviewAsyncSecurity$inboundSchema: z.ZodType< + GenerateCodeSamplePreviewAsyncSecurity, + z.ZodTypeDef, + unknown +> = z.object({ + APIKey: z.string().optional(), + Bearer: z.string().optional(), + WorkspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "APIKey": "apiKey", + "Bearer": "bearer", + "WorkspaceIdentifier": "workspaceIdentifier", + }); +}); +/** @internal */ +export type GenerateCodeSamplePreviewAsyncSecurity$Outbound = { + APIKey?: string | undefined; + Bearer?: string | undefined; + WorkspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const GenerateCodeSamplePreviewAsyncSecurity$outboundSchema: z.ZodType< + GenerateCodeSamplePreviewAsyncSecurity$Outbound, + z.ZodTypeDef, + GenerateCodeSamplePreviewAsyncSecurity +> = z.object({ + apiKey: z.string().optional(), + bearer: z.string().optional(), + workspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + apiKey: "APIKey", + bearer: "Bearer", + workspaceIdentifier: "WorkspaceIdentifier", + }); +}); + +export function generateCodeSamplePreviewAsyncSecurityToJSON( + generateCodeSamplePreviewAsyncSecurity: + GenerateCodeSamplePreviewAsyncSecurity, +): string { + return JSON.stringify( + GenerateCodeSamplePreviewAsyncSecurity$outboundSchema.parse( + generateCodeSamplePreviewAsyncSecurity, + ), + ); +} +export function generateCodeSamplePreviewAsyncSecurityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + GenerateCodeSamplePreviewAsyncSecurity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GenerateCodeSamplePreviewAsyncSecurity' from JSON`, + ); +} + /** @internal */ export const GenerateCodeSamplePreviewAsyncResponseBody$inboundSchema: z.ZodType = diff --git a/src/sdk/models/operations/getbillingaddons.ts b/src/sdk/models/operations/getbillingaddons.ts new file mode 100644 index 00000000..91629552 --- /dev/null +++ b/src/sdk/models/operations/getbillingaddons.ts @@ -0,0 +1,72 @@ +/* + * 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"; + +export type GetBillingAddOnsSecurity = { + apiKey?: string | undefined; + bearer?: string | undefined; + workspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const GetBillingAddOnsSecurity$inboundSchema: z.ZodType< + GetBillingAddOnsSecurity, + z.ZodTypeDef, + unknown +> = z.object({ + APIKey: z.string().optional(), + Bearer: z.string().optional(), + WorkspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "APIKey": "apiKey", + "Bearer": "bearer", + "WorkspaceIdentifier": "workspaceIdentifier", + }); +}); +/** @internal */ +export type GetBillingAddOnsSecurity$Outbound = { + APIKey?: string | undefined; + Bearer?: string | undefined; + WorkspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const GetBillingAddOnsSecurity$outboundSchema: z.ZodType< + GetBillingAddOnsSecurity$Outbound, + z.ZodTypeDef, + GetBillingAddOnsSecurity +> = z.object({ + apiKey: z.string().optional(), + bearer: z.string().optional(), + workspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + apiKey: "APIKey", + bearer: "Bearer", + workspaceIdentifier: "WorkspaceIdentifier", + }); +}); + +export function getBillingAddOnsSecurityToJSON( + getBillingAddOnsSecurity: GetBillingAddOnsSecurity, +): string { + return JSON.stringify( + GetBillingAddOnsSecurity$outboundSchema.parse(getBillingAddOnsSecurity), + ); +} +export function getBillingAddOnsSecurityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => GetBillingAddOnsSecurity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GetBillingAddOnsSecurity' from JSON`, + ); +} diff --git a/src/sdk/models/operations/getbillingemail.ts b/src/sdk/models/operations/getbillingemail.ts new file mode 100644 index 00000000..23b632ca --- /dev/null +++ b/src/sdk/models/operations/getbillingemail.ts @@ -0,0 +1,72 @@ +/* + * 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"; + +export type GetBillingEmailSecurity = { + apiKey?: string | undefined; + bearer?: string | undefined; + workspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const GetBillingEmailSecurity$inboundSchema: z.ZodType< + GetBillingEmailSecurity, + z.ZodTypeDef, + unknown +> = z.object({ + APIKey: z.string().optional(), + Bearer: z.string().optional(), + WorkspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "APIKey": "apiKey", + "Bearer": "bearer", + "WorkspaceIdentifier": "workspaceIdentifier", + }); +}); +/** @internal */ +export type GetBillingEmailSecurity$Outbound = { + APIKey?: string | undefined; + Bearer?: string | undefined; + WorkspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const GetBillingEmailSecurity$outboundSchema: z.ZodType< + GetBillingEmailSecurity$Outbound, + z.ZodTypeDef, + GetBillingEmailSecurity +> = z.object({ + apiKey: z.string().optional(), + bearer: z.string().optional(), + workspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + apiKey: "APIKey", + bearer: "Bearer", + workspaceIdentifier: "WorkspaceIdentifier", + }); +}); + +export function getBillingEmailSecurityToJSON( + getBillingEmailSecurity: GetBillingEmailSecurity, +): string { + return JSON.stringify( + GetBillingEmailSecurity$outboundSchema.parse(getBillingEmailSecurity), + ); +} +export function getBillingEmailSecurityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => GetBillingEmailSecurity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GetBillingEmailSecurity' from JSON`, + ); +} diff --git a/src/sdk/models/operations/getbillingoperations.ts b/src/sdk/models/operations/getbillingoperations.ts index fe0f7bb9..57e4186a 100644 --- a/src/sdk/models/operations/getbillingoperations.ts +++ b/src/sdk/models/operations/getbillingoperations.ts @@ -8,58 +8,67 @@ import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -export type GetBillingOperationsRequest = { - /** - * Whether to include operation IDs in the response - */ - includeOperationIds?: boolean | undefined; +export type GetBillingOperationsSecurity = { + apiKey?: string | undefined; + bearer?: string | undefined; + workspaceIdentifier?: string | undefined; }; /** @internal */ -export const GetBillingOperationsRequest$inboundSchema: z.ZodType< - GetBillingOperationsRequest, +export const GetBillingOperationsSecurity$inboundSchema: z.ZodType< + GetBillingOperationsSecurity, z.ZodTypeDef, unknown > = z.object({ - include_operation_ids: z.boolean().default(false), + APIKey: z.string().optional(), + Bearer: z.string().optional(), + WorkspaceIdentifier: z.string().optional(), }).transform((v) => { return remap$(v, { - "include_operation_ids": "includeOperationIds", + "APIKey": "apiKey", + "Bearer": "bearer", + "WorkspaceIdentifier": "workspaceIdentifier", }); }); /** @internal */ -export type GetBillingOperationsRequest$Outbound = { - include_operation_ids: boolean; +export type GetBillingOperationsSecurity$Outbound = { + APIKey?: string | undefined; + Bearer?: string | undefined; + WorkspaceIdentifier?: string | undefined; }; /** @internal */ -export const GetBillingOperationsRequest$outboundSchema: z.ZodType< - GetBillingOperationsRequest$Outbound, +export const GetBillingOperationsSecurity$outboundSchema: z.ZodType< + GetBillingOperationsSecurity$Outbound, z.ZodTypeDef, - GetBillingOperationsRequest + GetBillingOperationsSecurity > = z.object({ - includeOperationIds: z.boolean().default(false), + apiKey: z.string().optional(), + bearer: z.string().optional(), + workspaceIdentifier: z.string().optional(), }).transform((v) => { return remap$(v, { - includeOperationIds: "include_operation_ids", + apiKey: "APIKey", + bearer: "Bearer", + workspaceIdentifier: "WorkspaceIdentifier", }); }); -export function getBillingOperationsRequestToJSON( - getBillingOperationsRequest: GetBillingOperationsRequest, +export function getBillingOperationsSecurityToJSON( + getBillingOperationsSecurity: GetBillingOperationsSecurity, ): string { return JSON.stringify( - GetBillingOperationsRequest$outboundSchema.parse( - getBillingOperationsRequest, + GetBillingOperationsSecurity$outboundSchema.parse( + getBillingOperationsSecurity, ), ); } -export function getBillingOperationsRequestFromJSON( +export function getBillingOperationsSecurityFromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( jsonString, - (x) => GetBillingOperationsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetBillingOperationsRequest' from JSON`, + (x) => GetBillingOperationsSecurity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GetBillingOperationsSecurity' from JSON`, ); } diff --git a/src/sdk/models/operations/getbusinesstierprices.ts b/src/sdk/models/operations/getbusinesstierprices.ts new file mode 100644 index 00000000..e78ae598 --- /dev/null +++ b/src/sdk/models/operations/getbusinesstierprices.ts @@ -0,0 +1,74 @@ +/* + * 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"; + +export type GetBusinessTierPricesSecurity = { + apiKey?: string | undefined; + bearer?: string | undefined; + workspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const GetBusinessTierPricesSecurity$inboundSchema: z.ZodType< + GetBusinessTierPricesSecurity, + z.ZodTypeDef, + unknown +> = z.object({ + APIKey: z.string().optional(), + Bearer: z.string().optional(), + WorkspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "APIKey": "apiKey", + "Bearer": "bearer", + "WorkspaceIdentifier": "workspaceIdentifier", + }); +}); +/** @internal */ +export type GetBusinessTierPricesSecurity$Outbound = { + APIKey?: string | undefined; + Bearer?: string | undefined; + WorkspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const GetBusinessTierPricesSecurity$outboundSchema: z.ZodType< + GetBusinessTierPricesSecurity$Outbound, + z.ZodTypeDef, + GetBusinessTierPricesSecurity +> = z.object({ + apiKey: z.string().optional(), + bearer: z.string().optional(), + workspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + apiKey: "APIKey", + bearer: "Bearer", + workspaceIdentifier: "WorkspaceIdentifier", + }); +}); + +export function getBusinessTierPricesSecurityToJSON( + getBusinessTierPricesSecurity: GetBusinessTierPricesSecurity, +): string { + return JSON.stringify( + GetBusinessTierPricesSecurity$outboundSchema.parse( + getBusinessTierPricesSecurity, + ), + ); +} +export function getBusinessTierPricesSecurityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => GetBusinessTierPricesSecurity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GetBusinessTierPricesSecurity' from JSON`, + ); +} diff --git a/src/sdk/models/operations/getchangesreportsignedurl.ts b/src/sdk/models/operations/getchangesreportsignedurl.ts index 6114695c..157b7967 100644 --- a/src/sdk/models/operations/getchangesreportsignedurl.ts +++ b/src/sdk/models/operations/getchangesreportsignedurl.ts @@ -3,10 +3,17 @@ */ 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"; +export type GetChangesReportSignedUrlSecurity = { + apiKey?: string | undefined; + bearer?: string | undefined; + workspaceIdentifier?: string | undefined; +}; + export type GetChangesReportSignedUrlRequest = { /** * The checksum of the document to retrieve the signed access url for. @@ -21,6 +28,65 @@ export type GetChangesReportSignedUrlSignedAccess = { url: string; }; +/** @internal */ +export const GetChangesReportSignedUrlSecurity$inboundSchema: z.ZodType< + GetChangesReportSignedUrlSecurity, + z.ZodTypeDef, + unknown +> = z.object({ + APIKey: z.string().optional(), + Bearer: z.string().optional(), + WorkspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "APIKey": "apiKey", + "Bearer": "bearer", + "WorkspaceIdentifier": "workspaceIdentifier", + }); +}); +/** @internal */ +export type GetChangesReportSignedUrlSecurity$Outbound = { + APIKey?: string | undefined; + Bearer?: string | undefined; + WorkspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const GetChangesReportSignedUrlSecurity$outboundSchema: z.ZodType< + GetChangesReportSignedUrlSecurity$Outbound, + z.ZodTypeDef, + GetChangesReportSignedUrlSecurity +> = z.object({ + apiKey: z.string().optional(), + bearer: z.string().optional(), + workspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + apiKey: "APIKey", + bearer: "Bearer", + workspaceIdentifier: "WorkspaceIdentifier", + }); +}); + +export function getChangesReportSignedUrlSecurityToJSON( + getChangesReportSignedUrlSecurity: GetChangesReportSignedUrlSecurity, +): string { + return JSON.stringify( + GetChangesReportSignedUrlSecurity$outboundSchema.parse( + getChangesReportSignedUrlSecurity, + ), + ); +} +export function getChangesReportSignedUrlSecurityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => GetChangesReportSignedUrlSecurity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GetChangesReportSignedUrlSecurity' from JSON`, + ); +} + /** @internal */ export const GetChangesReportSignedUrlRequest$inboundSchema: z.ZodType< GetChangesReportSignedUrlRequest, diff --git a/src/sdk/models/operations/getcodesamplepreviewasync.ts b/src/sdk/models/operations/getcodesamplepreviewasync.ts index becb91f7..ac1e9dc0 100644 --- a/src/sdk/models/operations/getcodesamplepreviewasync.ts +++ b/src/sdk/models/operations/getcodesamplepreviewasync.ts @@ -3,11 +3,18 @@ */ 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"; import * as shared from "../shared/index.js"; +export type GetCodeSamplePreviewAsyncSecurity = { + apiKey?: string | undefined; + bearer?: string | undefined; + workspaceIdentifier?: string | undefined; +}; + export type GetCodeSamplePreviewAsyncRequest = { /** * The ID of the job to check the status and retrieve results @@ -29,6 +36,65 @@ export type GetCodeSamplePreviewAsyncResponse = | shared.UsageSnippets | GetCodeSamplePreviewAsyncResponseBody; +/** @internal */ +export const GetCodeSamplePreviewAsyncSecurity$inboundSchema: z.ZodType< + GetCodeSamplePreviewAsyncSecurity, + z.ZodTypeDef, + unknown +> = z.object({ + APIKey: z.string().optional(), + Bearer: z.string().optional(), + WorkspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "APIKey": "apiKey", + "Bearer": "bearer", + "WorkspaceIdentifier": "workspaceIdentifier", + }); +}); +/** @internal */ +export type GetCodeSamplePreviewAsyncSecurity$Outbound = { + APIKey?: string | undefined; + Bearer?: string | undefined; + WorkspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const GetCodeSamplePreviewAsyncSecurity$outboundSchema: z.ZodType< + GetCodeSamplePreviewAsyncSecurity$Outbound, + z.ZodTypeDef, + GetCodeSamplePreviewAsyncSecurity +> = z.object({ + apiKey: z.string().optional(), + bearer: z.string().optional(), + workspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + apiKey: "APIKey", + bearer: "Bearer", + workspaceIdentifier: "WorkspaceIdentifier", + }); +}); + +export function getCodeSamplePreviewAsyncSecurityToJSON( + getCodeSamplePreviewAsyncSecurity: GetCodeSamplePreviewAsyncSecurity, +): string { + return JSON.stringify( + GetCodeSamplePreviewAsyncSecurity$outboundSchema.parse( + getCodeSamplePreviewAsyncSecurity, + ), + ); +} +export function getCodeSamplePreviewAsyncSecurityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => GetCodeSamplePreviewAsyncSecurity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GetCodeSamplePreviewAsyncSecurity' from JSON`, + ); +} + /** @internal */ export const GetCodeSamplePreviewAsyncRequest$inboundSchema: z.ZodType< GetCodeSamplePreviewAsyncRequest, diff --git a/src/sdk/models/operations/getcodesamples.ts b/src/sdk/models/operations/getcodesamples.ts index 5dc3d97d..ff483839 100644 --- a/src/sdk/models/operations/getcodesamples.ts +++ b/src/sdk/models/operations/getcodesamples.ts @@ -9,6 +9,12 @@ import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; +export type GetCodeSamplesSecurity = { + apiKey?: string | undefined; + bearer?: string | undefined; + workspaceIdentifier?: string | undefined; +}; + export type MethodPaths = { method: shared.HttpMethod; path: string; @@ -33,6 +39,63 @@ export type GetCodeSamplesRequest = { languages?: Array | undefined; }; +/** @internal */ +export const GetCodeSamplesSecurity$inboundSchema: z.ZodType< + GetCodeSamplesSecurity, + z.ZodTypeDef, + unknown +> = z.object({ + APIKey: z.string().optional(), + Bearer: z.string().optional(), + WorkspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "APIKey": "apiKey", + "Bearer": "bearer", + "WorkspaceIdentifier": "workspaceIdentifier", + }); +}); +/** @internal */ +export type GetCodeSamplesSecurity$Outbound = { + APIKey?: string | undefined; + Bearer?: string | undefined; + WorkspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const GetCodeSamplesSecurity$outboundSchema: z.ZodType< + GetCodeSamplesSecurity$Outbound, + z.ZodTypeDef, + GetCodeSamplesSecurity +> = z.object({ + apiKey: z.string().optional(), + bearer: z.string().optional(), + workspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + apiKey: "APIKey", + bearer: "Bearer", + workspaceIdentifier: "WorkspaceIdentifier", + }); +}); + +export function getCodeSamplesSecurityToJSON( + getCodeSamplesSecurity: GetCodeSamplesSecurity, +): string { + return JSON.stringify( + GetCodeSamplesSecurity$outboundSchema.parse(getCodeSamplesSecurity), + ); +} +export function getCodeSamplesSecurityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => GetCodeSamplesSecurity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GetCodeSamplesSecurity' from JSON`, + ); +} + /** @internal */ export const MethodPaths$inboundSchema: z.ZodType< MethodPaths, diff --git a/src/sdk/models/operations/getgithubaction.ts b/src/sdk/models/operations/getgithubaction.ts index 6826e436..57d10d21 100644 --- a/src/sdk/models/operations/getgithubaction.ts +++ b/src/sdk/models/operations/getgithubaction.ts @@ -3,10 +3,17 @@ */ 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"; +export type GetGitHubActionSecurity = { + apiKey?: string | undefined; + bearer?: string | undefined; + workspaceIdentifier?: string | undefined; +}; + export type GetGitHubActionRequest = { /** * The targetName of the workflow target. @@ -16,6 +23,63 @@ export type GetGitHubActionRequest = { repo: string; }; +/** @internal */ +export const GetGitHubActionSecurity$inboundSchema: z.ZodType< + GetGitHubActionSecurity, + z.ZodTypeDef, + unknown +> = z.object({ + APIKey: z.string().optional(), + Bearer: z.string().optional(), + WorkspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "APIKey": "apiKey", + "Bearer": "bearer", + "WorkspaceIdentifier": "workspaceIdentifier", + }); +}); +/** @internal */ +export type GetGitHubActionSecurity$Outbound = { + APIKey?: string | undefined; + Bearer?: string | undefined; + WorkspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const GetGitHubActionSecurity$outboundSchema: z.ZodType< + GetGitHubActionSecurity$Outbound, + z.ZodTypeDef, + GetGitHubActionSecurity +> = z.object({ + apiKey: z.string().optional(), + bearer: z.string().optional(), + workspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + apiKey: "APIKey", + bearer: "Bearer", + workspaceIdentifier: "WorkspaceIdentifier", + }); +}); + +export function getGitHubActionSecurityToJSON( + getGitHubActionSecurity: GetGitHubActionSecurity, +): string { + return JSON.stringify( + GetGitHubActionSecurity$outboundSchema.parse(getGitHubActionSecurity), + ); +} +export function getGitHubActionSecurityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => GetGitHubActionSecurity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GetGitHubActionSecurity' from JSON`, + ); +} + /** @internal */ export const GetGitHubActionRequest$inboundSchema: z.ZodType< GetGitHubActionRequest, diff --git a/src/sdk/models/operations/getgithubsetupstate.ts b/src/sdk/models/operations/getgithubsetupstate.ts index 627dd001..87f7ca93 100644 --- a/src/sdk/models/operations/getgithubsetupstate.ts +++ b/src/sdk/models/operations/getgithubsetupstate.ts @@ -8,12 +8,77 @@ import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +export type GetGithubSetupStateSecurity = { + apiKey?: string | undefined; + bearer?: string | undefined; + workspaceIdentifier?: string | undefined; +}; + export type GetGithubSetupStateRequest = { org: string; repo: string; generateGenLockId: string; }; +/** @internal */ +export const GetGithubSetupStateSecurity$inboundSchema: z.ZodType< + GetGithubSetupStateSecurity, + z.ZodTypeDef, + unknown +> = z.object({ + APIKey: z.string().optional(), + Bearer: z.string().optional(), + WorkspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "APIKey": "apiKey", + "Bearer": "bearer", + "WorkspaceIdentifier": "workspaceIdentifier", + }); +}); +/** @internal */ +export type GetGithubSetupStateSecurity$Outbound = { + APIKey?: string | undefined; + Bearer?: string | undefined; + WorkspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const GetGithubSetupStateSecurity$outboundSchema: z.ZodType< + GetGithubSetupStateSecurity$Outbound, + z.ZodTypeDef, + GetGithubSetupStateSecurity +> = z.object({ + apiKey: z.string().optional(), + bearer: z.string().optional(), + workspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + apiKey: "APIKey", + bearer: "Bearer", + workspaceIdentifier: "WorkspaceIdentifier", + }); +}); + +export function getGithubSetupStateSecurityToJSON( + getGithubSetupStateSecurity: GetGithubSetupStateSecurity, +): string { + return JSON.stringify( + GetGithubSetupStateSecurity$outboundSchema.parse( + getGithubSetupStateSecurity, + ), + ); +} +export function getGithubSetupStateSecurityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => GetGithubSetupStateSecurity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GetGithubSetupStateSecurity' from JSON`, + ); +} + /** @internal */ export const GetGithubSetupStateRequest$inboundSchema: z.ZodType< GetGithubSetupStateRequest, diff --git a/src/sdk/models/operations/getlanguages.ts b/src/sdk/models/operations/getlanguages.ts new file mode 100644 index 00000000..4e5c641b --- /dev/null +++ b/src/sdk/models/operations/getlanguages.ts @@ -0,0 +1,72 @@ +/* + * 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"; + +export type GetLanguagesSecurity = { + apiKey?: string | undefined; + bearer?: string | undefined; + workspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const GetLanguagesSecurity$inboundSchema: z.ZodType< + GetLanguagesSecurity, + z.ZodTypeDef, + unknown +> = z.object({ + APIKey: z.string().optional(), + Bearer: z.string().optional(), + WorkspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "APIKey": "apiKey", + "Bearer": "bearer", + "WorkspaceIdentifier": "workspaceIdentifier", + }); +}); +/** @internal */ +export type GetLanguagesSecurity$Outbound = { + APIKey?: string | undefined; + Bearer?: string | undefined; + WorkspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const GetLanguagesSecurity$outboundSchema: z.ZodType< + GetLanguagesSecurity$Outbound, + z.ZodTypeDef, + GetLanguagesSecurity +> = z.object({ + apiKey: z.string().optional(), + bearer: z.string().optional(), + workspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + apiKey: "APIKey", + bearer: "Bearer", + workspaceIdentifier: "WorkspaceIdentifier", + }); +}); + +export function getLanguagesSecurityToJSON( + getLanguagesSecurity: GetLanguagesSecurity, +): string { + return JSON.stringify( + GetLanguagesSecurity$outboundSchema.parse(getLanguagesSecurity), + ); +} +export function getLanguagesSecurityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => GetLanguagesSecurity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GetLanguagesSecurity' from JSON`, + ); +} diff --git a/src/sdk/models/operations/getlintingreportsignedurl.ts b/src/sdk/models/operations/getlintingreportsignedurl.ts index aaa494f6..55a61995 100644 --- a/src/sdk/models/operations/getlintingreportsignedurl.ts +++ b/src/sdk/models/operations/getlintingreportsignedurl.ts @@ -3,10 +3,17 @@ */ 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"; +export type GetLintingReportSignedUrlSecurity = { + apiKey?: string | undefined; + bearer?: string | undefined; + workspaceIdentifier?: string | undefined; +}; + export type GetLintingReportSignedUrlRequest = { /** * The checksum of the document to retrieve the signed access url for. @@ -21,6 +28,65 @@ export type GetLintingReportSignedUrlSignedAccess = { url: string; }; +/** @internal */ +export const GetLintingReportSignedUrlSecurity$inboundSchema: z.ZodType< + GetLintingReportSignedUrlSecurity, + z.ZodTypeDef, + unknown +> = z.object({ + APIKey: z.string().optional(), + Bearer: z.string().optional(), + WorkspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "APIKey": "apiKey", + "Bearer": "bearer", + "WorkspaceIdentifier": "workspaceIdentifier", + }); +}); +/** @internal */ +export type GetLintingReportSignedUrlSecurity$Outbound = { + APIKey?: string | undefined; + Bearer?: string | undefined; + WorkspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const GetLintingReportSignedUrlSecurity$outboundSchema: z.ZodType< + GetLintingReportSignedUrlSecurity$Outbound, + z.ZodTypeDef, + GetLintingReportSignedUrlSecurity +> = z.object({ + apiKey: z.string().optional(), + bearer: z.string().optional(), + workspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + apiKey: "APIKey", + bearer: "Bearer", + workspaceIdentifier: "WorkspaceIdentifier", + }); +}); + +export function getLintingReportSignedUrlSecurityToJSON( + getLintingReportSignedUrlSecurity: GetLintingReportSignedUrlSecurity, +): string { + return JSON.stringify( + GetLintingReportSignedUrlSecurity$outboundSchema.parse( + getLintingReportSignedUrlSecurity, + ), + ); +} +export function getLintingReportSignedUrlSecurityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => GetLintingReportSignedUrlSecurity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GetLintingReportSignedUrlSecurity' from JSON`, + ); +} + /** @internal */ export const GetLintingReportSignedUrlRequest$inboundSchema: z.ZodType< GetLintingReportSignedUrlRequest, diff --git a/src/sdk/models/operations/getorganization.ts b/src/sdk/models/operations/getorganization.ts index 26416c15..5720cd51 100644 --- a/src/sdk/models/operations/getorganization.ts +++ b/src/sdk/models/operations/getorganization.ts @@ -3,10 +3,17 @@ */ 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"; +export type GetOrganizationSecurity = { + apiKey?: string | undefined; + bearer?: string | undefined; + workspaceIdentifier?: string | undefined; +}; + export type GetOrganizationRequest = { /** * Unique identifier of the organization. @@ -14,6 +21,63 @@ export type GetOrganizationRequest = { organizationID: string; }; +/** @internal */ +export const GetOrganizationSecurity$inboundSchema: z.ZodType< + GetOrganizationSecurity, + z.ZodTypeDef, + unknown +> = z.object({ + APIKey: z.string().optional(), + Bearer: z.string().optional(), + WorkspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "APIKey": "apiKey", + "Bearer": "bearer", + "WorkspaceIdentifier": "workspaceIdentifier", + }); +}); +/** @internal */ +export type GetOrganizationSecurity$Outbound = { + APIKey?: string | undefined; + Bearer?: string | undefined; + WorkspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const GetOrganizationSecurity$outboundSchema: z.ZodType< + GetOrganizationSecurity$Outbound, + z.ZodTypeDef, + GetOrganizationSecurity +> = z.object({ + apiKey: z.string().optional(), + bearer: z.string().optional(), + workspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + apiKey: "APIKey", + bearer: "Bearer", + workspaceIdentifier: "WorkspaceIdentifier", + }); +}); + +export function getOrganizationSecurityToJSON( + getOrganizationSecurity: GetOrganizationSecurity, +): string { + return JSON.stringify( + GetOrganizationSecurity$outboundSchema.parse(getOrganizationSecurity), + ); +} +export function getOrganizationSecurityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => GetOrganizationSecurity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GetOrganizationSecurity' from JSON`, + ); +} + /** @internal */ export const GetOrganizationRequest$inboundSchema: z.ZodType< GetOrganizationRequest, diff --git a/src/sdk/models/operations/getorganizations.ts b/src/sdk/models/operations/getorganizations.ts new file mode 100644 index 00000000..6df044bc --- /dev/null +++ b/src/sdk/models/operations/getorganizations.ts @@ -0,0 +1,72 @@ +/* + * 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"; + +export type GetOrganizationsSecurity = { + apiKey?: string | undefined; + bearer?: string | undefined; + workspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const GetOrganizationsSecurity$inboundSchema: z.ZodType< + GetOrganizationsSecurity, + z.ZodTypeDef, + unknown +> = z.object({ + APIKey: z.string().optional(), + Bearer: z.string().optional(), + WorkspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "APIKey": "apiKey", + "Bearer": "bearer", + "WorkspaceIdentifier": "workspaceIdentifier", + }); +}); +/** @internal */ +export type GetOrganizationsSecurity$Outbound = { + APIKey?: string | undefined; + Bearer?: string | undefined; + WorkspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const GetOrganizationsSecurity$outboundSchema: z.ZodType< + GetOrganizationsSecurity$Outbound, + z.ZodTypeDef, + GetOrganizationsSecurity +> = z.object({ + apiKey: z.string().optional(), + bearer: z.string().optional(), + workspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + apiKey: "APIKey", + bearer: "Bearer", + workspaceIdentifier: "WorkspaceIdentifier", + }); +}); + +export function getOrganizationsSecurityToJSON( + getOrganizationsSecurity: GetOrganizationsSecurity, +): string { + return JSON.stringify( + GetOrganizationsSecurity$outboundSchema.parse(getOrganizationsSecurity), + ); +} +export function getOrganizationsSecurityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => GetOrganizationsSecurity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GetOrganizationsSecurity' from JSON`, + ); +} diff --git a/src/sdk/models/operations/getorganizationsubscription.ts b/src/sdk/models/operations/getorganizationsubscription.ts new file mode 100644 index 00000000..0789abde --- /dev/null +++ b/src/sdk/models/operations/getorganizationsubscription.ts @@ -0,0 +1,75 @@ +/* + * 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"; + +export type GetOrganizationSubscriptionSecurity = { + apiKey?: string | undefined; + bearer?: string | undefined; + workspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const GetOrganizationSubscriptionSecurity$inboundSchema: z.ZodType< + GetOrganizationSubscriptionSecurity, + z.ZodTypeDef, + unknown +> = z.object({ + APIKey: z.string().optional(), + Bearer: z.string().optional(), + WorkspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "APIKey": "apiKey", + "Bearer": "bearer", + "WorkspaceIdentifier": "workspaceIdentifier", + }); +}); +/** @internal */ +export type GetOrganizationSubscriptionSecurity$Outbound = { + APIKey?: string | undefined; + Bearer?: string | undefined; + WorkspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const GetOrganizationSubscriptionSecurity$outboundSchema: z.ZodType< + GetOrganizationSubscriptionSecurity$Outbound, + z.ZodTypeDef, + GetOrganizationSubscriptionSecurity +> = z.object({ + apiKey: z.string().optional(), + bearer: z.string().optional(), + workspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + apiKey: "APIKey", + bearer: "Bearer", + workspaceIdentifier: "WorkspaceIdentifier", + }); +}); + +export function getOrganizationSubscriptionSecurityToJSON( + getOrganizationSubscriptionSecurity: GetOrganizationSubscriptionSecurity, +): string { + return JSON.stringify( + GetOrganizationSubscriptionSecurity$outboundSchema.parse( + getOrganizationSubscriptionSecurity, + ), + ); +} +export function getOrganizationSubscriptionSecurityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + GetOrganizationSubscriptionSecurity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GetOrganizationSubscriptionSecurity' from JSON`, + ); +} diff --git a/src/sdk/models/operations/getorganizationusage.ts b/src/sdk/models/operations/getorganizationusage.ts new file mode 100644 index 00000000..7ace5da0 --- /dev/null +++ b/src/sdk/models/operations/getorganizationusage.ts @@ -0,0 +1,74 @@ +/* + * 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"; + +export type GetOrganizationUsageSecurity = { + apiKey?: string | undefined; + bearer?: string | undefined; + workspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const GetOrganizationUsageSecurity$inboundSchema: z.ZodType< + GetOrganizationUsageSecurity, + z.ZodTypeDef, + unknown +> = z.object({ + APIKey: z.string().optional(), + Bearer: z.string().optional(), + WorkspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "APIKey": "apiKey", + "Bearer": "bearer", + "WorkspaceIdentifier": "workspaceIdentifier", + }); +}); +/** @internal */ +export type GetOrganizationUsageSecurity$Outbound = { + APIKey?: string | undefined; + Bearer?: string | undefined; + WorkspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const GetOrganizationUsageSecurity$outboundSchema: z.ZodType< + GetOrganizationUsageSecurity$Outbound, + z.ZodTypeDef, + GetOrganizationUsageSecurity +> = z.object({ + apiKey: z.string().optional(), + bearer: z.string().optional(), + workspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + apiKey: "APIKey", + bearer: "Bearer", + workspaceIdentifier: "WorkspaceIdentifier", + }); +}); + +export function getOrganizationUsageSecurityToJSON( + getOrganizationUsageSecurity: GetOrganizationUsageSecurity, +): string { + return JSON.stringify( + GetOrganizationUsageSecurity$outboundSchema.parse( + getOrganizationUsageSecurity, + ), + ); +} +export function getOrganizationUsageSecurityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => GetOrganizationUsageSecurity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GetOrganizationUsageSecurity' from JSON`, + ); +} diff --git a/src/sdk/models/operations/getpublishingtoken.ts b/src/sdk/models/operations/getpublishingtoken.ts new file mode 100644 index 00000000..af9d703a --- /dev/null +++ b/src/sdk/models/operations/getpublishingtoken.ts @@ -0,0 +1,72 @@ +/* + * 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"; + +export type GetPublishingTokenSecurity = { + apiKey?: string | undefined; + bearer?: string | undefined; + workspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const GetPublishingTokenSecurity$inboundSchema: z.ZodType< + GetPublishingTokenSecurity, + z.ZodTypeDef, + unknown +> = z.object({ + APIKey: z.string().optional(), + Bearer: z.string().optional(), + WorkspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "APIKey": "apiKey", + "Bearer": "bearer", + "WorkspaceIdentifier": "workspaceIdentifier", + }); +}); +/** @internal */ +export type GetPublishingTokenSecurity$Outbound = { + APIKey?: string | undefined; + Bearer?: string | undefined; + WorkspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const GetPublishingTokenSecurity$outboundSchema: z.ZodType< + GetPublishingTokenSecurity$Outbound, + z.ZodTypeDef, + GetPublishingTokenSecurity +> = z.object({ + apiKey: z.string().optional(), + bearer: z.string().optional(), + workspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + apiKey: "APIKey", + bearer: "Bearer", + workspaceIdentifier: "WorkspaceIdentifier", + }); +}); + +export function getPublishingTokenSecurityToJSON( + getPublishingTokenSecurity: GetPublishingTokenSecurity, +): string { + return JSON.stringify( + GetPublishingTokenSecurity$outboundSchema.parse(getPublishingTokenSecurity), + ); +} +export function getPublishingTokenSecurityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => GetPublishingTokenSecurity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GetPublishingTokenSecurity' from JSON`, + ); +} diff --git a/src/sdk/models/operations/getpublishingtokenbyid.ts b/src/sdk/models/operations/getpublishingtokenbyid.ts index 1bd44364..6ef13cc4 100644 --- a/src/sdk/models/operations/getpublishingtokenbyid.ts +++ b/src/sdk/models/operations/getpublishingtokenbyid.ts @@ -3,10 +3,17 @@ */ 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"; +export type GetPublishingTokenByIDSecurity = { + apiKey?: string | undefined; + bearer?: string | undefined; + workspaceIdentifier?: string | undefined; +}; + export type GetPublishingTokenByIDRequest = { /** * Unique identifier of the publishing token. @@ -14,6 +21,65 @@ export type GetPublishingTokenByIDRequest = { tokenID: string; }; +/** @internal */ +export const GetPublishingTokenByIDSecurity$inboundSchema: z.ZodType< + GetPublishingTokenByIDSecurity, + z.ZodTypeDef, + unknown +> = z.object({ + APIKey: z.string().optional(), + Bearer: z.string().optional(), + WorkspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "APIKey": "apiKey", + "Bearer": "bearer", + "WorkspaceIdentifier": "workspaceIdentifier", + }); +}); +/** @internal */ +export type GetPublishingTokenByIDSecurity$Outbound = { + APIKey?: string | undefined; + Bearer?: string | undefined; + WorkspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const GetPublishingTokenByIDSecurity$outboundSchema: z.ZodType< + GetPublishingTokenByIDSecurity$Outbound, + z.ZodTypeDef, + GetPublishingTokenByIDSecurity +> = z.object({ + apiKey: z.string().optional(), + bearer: z.string().optional(), + workspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + apiKey: "APIKey", + bearer: "Bearer", + workspaceIdentifier: "WorkspaceIdentifier", + }); +}); + +export function getPublishingTokenByIDSecurityToJSON( + getPublishingTokenByIDSecurity: GetPublishingTokenByIDSecurity, +): string { + return JSON.stringify( + GetPublishingTokenByIDSecurity$outboundSchema.parse( + getPublishingTokenByIDSecurity, + ), + ); +} +export function getPublishingTokenByIDSecurityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => GetPublishingTokenByIDSecurity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GetPublishingTokenByIDSecurity' from JSON`, + ); +} + /** @internal */ export const GetPublishingTokenByIDRequest$inboundSchema: z.ZodType< GetPublishingTokenByIDRequest, diff --git a/src/sdk/models/operations/getpublishingtokenpublicmetadata.ts b/src/sdk/models/operations/getpublishingtokenpublicmetadata.ts index 260f31da..e8388ec2 100644 --- a/src/sdk/models/operations/getpublishingtokenpublicmetadata.ts +++ b/src/sdk/models/operations/getpublishingtokenpublicmetadata.ts @@ -8,6 +8,12 @@ import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +export type GetPublishingTokenPublicMetadataSecurity = { + apiKey?: string | undefined; + bearer?: string | undefined; + workspaceIdentifier?: string | undefined; +}; + export type GetPublishingTokenPublicMetadataRequest = { /** * Unique identifier of the publishing token. @@ -26,6 +32,72 @@ export type GetPublishingTokenPublicMetadataResponseBody = { workspaceId?: string | undefined; }; +/** @internal */ +export const GetPublishingTokenPublicMetadataSecurity$inboundSchema: z.ZodType< + GetPublishingTokenPublicMetadataSecurity, + z.ZodTypeDef, + unknown +> = z.object({ + APIKey: z.string().optional(), + Bearer: z.string().optional(), + WorkspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "APIKey": "apiKey", + "Bearer": "bearer", + "WorkspaceIdentifier": "workspaceIdentifier", + }); +}); +/** @internal */ +export type GetPublishingTokenPublicMetadataSecurity$Outbound = { + APIKey?: string | undefined; + Bearer?: string | undefined; + WorkspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const GetPublishingTokenPublicMetadataSecurity$outboundSchema: z.ZodType< + GetPublishingTokenPublicMetadataSecurity$Outbound, + z.ZodTypeDef, + GetPublishingTokenPublicMetadataSecurity +> = z.object({ + apiKey: z.string().optional(), + bearer: z.string().optional(), + workspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + apiKey: "APIKey", + bearer: "Bearer", + workspaceIdentifier: "WorkspaceIdentifier", + }); +}); + +export function getPublishingTokenPublicMetadataSecurityToJSON( + getPublishingTokenPublicMetadataSecurity: + GetPublishingTokenPublicMetadataSecurity, +): string { + return JSON.stringify( + GetPublishingTokenPublicMetadataSecurity$outboundSchema.parse( + getPublishingTokenPublicMetadataSecurity, + ), + ); +} +export function getPublishingTokenPublicMetadataSecurityFromJSON( + jsonString: string, +): SafeParseResult< + GetPublishingTokenPublicMetadataSecurity, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + GetPublishingTokenPublicMetadataSecurity$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'GetPublishingTokenPublicMetadataSecurity' from JSON`, + ); +} + /** @internal */ export const GetPublishingTokenPublicMetadataRequest$inboundSchema: z.ZodType< GetPublishingTokenPublicMetadataRequest, diff --git a/src/sdk/models/operations/getpublishingtokentargetbyid.ts b/src/sdk/models/operations/getpublishingtokentargetbyid.ts index de712f0b..9772793a 100644 --- a/src/sdk/models/operations/getpublishingtokentargetbyid.ts +++ b/src/sdk/models/operations/getpublishingtokentargetbyid.ts @@ -3,10 +3,17 @@ */ 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"; +export type GetPublishingTokenTargetByIDSecurity = { + apiKey?: string | undefined; + bearer?: string | undefined; + workspaceIdentifier?: string | undefined; +}; + export type GetPublishingTokenTargetByIDRequest = { /** * Unique identifier of the publishing token. @@ -14,6 +21,66 @@ export type GetPublishingTokenTargetByIDRequest = { tokenID: string; }; +/** @internal */ +export const GetPublishingTokenTargetByIDSecurity$inboundSchema: z.ZodType< + GetPublishingTokenTargetByIDSecurity, + z.ZodTypeDef, + unknown +> = z.object({ + APIKey: z.string().optional(), + Bearer: z.string().optional(), + WorkspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "APIKey": "apiKey", + "Bearer": "bearer", + "WorkspaceIdentifier": "workspaceIdentifier", + }); +}); +/** @internal */ +export type GetPublishingTokenTargetByIDSecurity$Outbound = { + APIKey?: string | undefined; + Bearer?: string | undefined; + WorkspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const GetPublishingTokenTargetByIDSecurity$outboundSchema: z.ZodType< + GetPublishingTokenTargetByIDSecurity$Outbound, + z.ZodTypeDef, + GetPublishingTokenTargetByIDSecurity +> = z.object({ + apiKey: z.string().optional(), + bearer: z.string().optional(), + workspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + apiKey: "APIKey", + bearer: "Bearer", + workspaceIdentifier: "WorkspaceIdentifier", + }); +}); + +export function getPublishingTokenTargetByIDSecurityToJSON( + getPublishingTokenTargetByIDSecurity: GetPublishingTokenTargetByIDSecurity, +): string { + return JSON.stringify( + GetPublishingTokenTargetByIDSecurity$outboundSchema.parse( + getPublishingTokenTargetByIDSecurity, + ), + ); +} +export function getPublishingTokenTargetByIDSecurityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + GetPublishingTokenTargetByIDSecurity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GetPublishingTokenTargetByIDSecurity' from JSON`, + ); +} + /** @internal */ export const GetPublishingTokenTargetByIDRequest$inboundSchema: z.ZodType< GetPublishingTokenTargetByIDRequest, diff --git a/src/sdk/models/operations/gettrialtargets.ts b/src/sdk/models/operations/gettrialtargets.ts new file mode 100644 index 00000000..71146237 --- /dev/null +++ b/src/sdk/models/operations/gettrialtargets.ts @@ -0,0 +1,72 @@ +/* + * 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"; + +export type GetTrialTargetsSecurity = { + apiKey?: string | undefined; + bearer?: string | undefined; + workspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const GetTrialTargetsSecurity$inboundSchema: z.ZodType< + GetTrialTargetsSecurity, + z.ZodTypeDef, + unknown +> = z.object({ + APIKey: z.string().optional(), + Bearer: z.string().optional(), + WorkspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "APIKey": "apiKey", + "Bearer": "bearer", + "WorkspaceIdentifier": "workspaceIdentifier", + }); +}); +/** @internal */ +export type GetTrialTargetsSecurity$Outbound = { + APIKey?: string | undefined; + Bearer?: string | undefined; + WorkspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const GetTrialTargetsSecurity$outboundSchema: z.ZodType< + GetTrialTargetsSecurity$Outbound, + z.ZodTypeDef, + GetTrialTargetsSecurity +> = z.object({ + apiKey: z.string().optional(), + bearer: z.string().optional(), + workspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + apiKey: "APIKey", + bearer: "Bearer", + workspaceIdentifier: "WorkspaceIdentifier", + }); +}); + +export function getTrialTargetsSecurityToJSON( + getTrialTargetsSecurity: GetTrialTargetsSecurity, +): string { + return JSON.stringify( + GetTrialTargetsSecurity$outboundSchema.parse(getTrialTargetsSecurity), + ); +} +export function getTrialTargetsSecurityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => GetTrialTargetsSecurity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GetTrialTargetsSecurity' from JSON`, + ); +} diff --git a/src/sdk/models/operations/getuser.ts b/src/sdk/models/operations/getuser.ts new file mode 100644 index 00000000..43d588bf --- /dev/null +++ b/src/sdk/models/operations/getuser.ts @@ -0,0 +1,70 @@ +/* + * 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"; + +export type GetUserSecurity = { + apiKey?: string | undefined; + bearer?: string | undefined; + workspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const GetUserSecurity$inboundSchema: z.ZodType< + GetUserSecurity, + z.ZodTypeDef, + unknown +> = z.object({ + APIKey: z.string().optional(), + Bearer: z.string().optional(), + WorkspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "APIKey": "apiKey", + "Bearer": "bearer", + "WorkspaceIdentifier": "workspaceIdentifier", + }); +}); +/** @internal */ +export type GetUserSecurity$Outbound = { + APIKey?: string | undefined; + Bearer?: string | undefined; + WorkspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const GetUserSecurity$outboundSchema: z.ZodType< + GetUserSecurity$Outbound, + z.ZodTypeDef, + GetUserSecurity +> = z.object({ + apiKey: z.string().optional(), + bearer: z.string().optional(), + workspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + apiKey: "APIKey", + bearer: "Bearer", + workspaceIdentifier: "WorkspaceIdentifier", + }); +}); + +export function getUserSecurityToJSON( + getUserSecurity: GetUserSecurity, +): string { + return JSON.stringify(GetUserSecurity$outboundSchema.parse(getUserSecurity)); +} +export function getUserSecurityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => GetUserSecurity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GetUserSecurity' from JSON`, + ); +} diff --git a/src/sdk/models/operations/getworkspace.ts b/src/sdk/models/operations/getworkspace.ts index 7011e266..0336c22c 100644 --- a/src/sdk/models/operations/getworkspace.ts +++ b/src/sdk/models/operations/getworkspace.ts @@ -12,6 +12,12 @@ export type GetWorkspaceGlobals = { workspaceId?: string | undefined; }; +export type GetWorkspaceSecurity = { + apiKey?: string | undefined; + bearer?: string | undefined; + workspaceIdentifier?: string | undefined; +}; + export type GetWorkspaceRequest = { /** * Unique identifier of the workspace. @@ -66,6 +72,63 @@ export function getWorkspaceGlobalsFromJSON( ); } +/** @internal */ +export const GetWorkspaceSecurity$inboundSchema: z.ZodType< + GetWorkspaceSecurity, + z.ZodTypeDef, + unknown +> = z.object({ + APIKey: z.string().optional(), + Bearer: z.string().optional(), + WorkspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "APIKey": "apiKey", + "Bearer": "bearer", + "WorkspaceIdentifier": "workspaceIdentifier", + }); +}); +/** @internal */ +export type GetWorkspaceSecurity$Outbound = { + APIKey?: string | undefined; + Bearer?: string | undefined; + WorkspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const GetWorkspaceSecurity$outboundSchema: z.ZodType< + GetWorkspaceSecurity$Outbound, + z.ZodTypeDef, + GetWorkspaceSecurity +> = z.object({ + apiKey: z.string().optional(), + bearer: z.string().optional(), + workspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + apiKey: "APIKey", + bearer: "Bearer", + workspaceIdentifier: "WorkspaceIdentifier", + }); +}); + +export function getWorkspaceSecurityToJSON( + getWorkspaceSecurity: GetWorkspaceSecurity, +): string { + return JSON.stringify( + GetWorkspaceSecurity$outboundSchema.parse(getWorkspaceSecurity), + ); +} +export function getWorkspaceSecurityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => GetWorkspaceSecurity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GetWorkspaceSecurity' from JSON`, + ); +} + /** @internal */ export const GetWorkspaceRequest$inboundSchema: z.ZodType< GetWorkspaceRequest, diff --git a/src/sdk/models/operations/getworkspaceaccess.ts b/src/sdk/models/operations/getworkspaceaccess.ts index 40ded3d8..972c06d0 100644 --- a/src/sdk/models/operations/getworkspaceaccess.ts +++ b/src/sdk/models/operations/getworkspaceaccess.ts @@ -3,10 +3,17 @@ */ 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"; +export type GetWorkspaceAccessSecurity = { + apiKey?: string | undefined; + bearer?: string | undefined; + workspaceIdentifier?: string | undefined; +}; + export type GetWorkspaceAccessRequest = { /** * Unique identifier of the generation target. @@ -22,6 +29,63 @@ export type GetWorkspaceAccessRequest = { passive?: boolean | undefined; }; +/** @internal */ +export const GetWorkspaceAccessSecurity$inboundSchema: z.ZodType< + GetWorkspaceAccessSecurity, + z.ZodTypeDef, + unknown +> = z.object({ + APIKey: z.string().optional(), + Bearer: z.string().optional(), + WorkspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "APIKey": "apiKey", + "Bearer": "bearer", + "WorkspaceIdentifier": "workspaceIdentifier", + }); +}); +/** @internal */ +export type GetWorkspaceAccessSecurity$Outbound = { + APIKey?: string | undefined; + Bearer?: string | undefined; + WorkspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const GetWorkspaceAccessSecurity$outboundSchema: z.ZodType< + GetWorkspaceAccessSecurity$Outbound, + z.ZodTypeDef, + GetWorkspaceAccessSecurity +> = z.object({ + apiKey: z.string().optional(), + bearer: z.string().optional(), + workspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + apiKey: "APIKey", + bearer: "Bearer", + workspaceIdentifier: "WorkspaceIdentifier", + }); +}); + +export function getWorkspaceAccessSecurityToJSON( + getWorkspaceAccessSecurity: GetWorkspaceAccessSecurity, +): string { + return JSON.stringify( + GetWorkspaceAccessSecurity$outboundSchema.parse(getWorkspaceAccessSecurity), + ); +} +export function getWorkspaceAccessSecurityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => GetWorkspaceAccessSecurity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GetWorkspaceAccessSecurity' from JSON`, + ); +} + /** @internal */ export const GetWorkspaceAccessRequest$inboundSchema: z.ZodType< GetWorkspaceAccessRequest, diff --git a/src/sdk/models/operations/getworkspacebycontext.ts b/src/sdk/models/operations/getworkspacebycontext.ts new file mode 100644 index 00000000..f01c9534 --- /dev/null +++ b/src/sdk/models/operations/getworkspacebycontext.ts @@ -0,0 +1,74 @@ +/* + * 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"; + +export type GetWorkspaceByContextSecurity = { + apiKey?: string | undefined; + bearer?: string | undefined; + workspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const GetWorkspaceByContextSecurity$inboundSchema: z.ZodType< + GetWorkspaceByContextSecurity, + z.ZodTypeDef, + unknown +> = z.object({ + APIKey: z.string().optional(), + Bearer: z.string().optional(), + WorkspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "APIKey": "apiKey", + "Bearer": "bearer", + "WorkspaceIdentifier": "workspaceIdentifier", + }); +}); +/** @internal */ +export type GetWorkspaceByContextSecurity$Outbound = { + APIKey?: string | undefined; + Bearer?: string | undefined; + WorkspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const GetWorkspaceByContextSecurity$outboundSchema: z.ZodType< + GetWorkspaceByContextSecurity$Outbound, + z.ZodTypeDef, + GetWorkspaceByContextSecurity +> = z.object({ + apiKey: z.string().optional(), + bearer: z.string().optional(), + workspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + apiKey: "APIKey", + bearer: "Bearer", + workspaceIdentifier: "WorkspaceIdentifier", + }); +}); + +export function getWorkspaceByContextSecurityToJSON( + getWorkspaceByContextSecurity: GetWorkspaceByContextSecurity, +): string { + return JSON.stringify( + GetWorkspaceByContextSecurity$outboundSchema.parse( + getWorkspaceByContextSecurity, + ), + ); +} +export function getWorkspaceByContextSecurityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => GetWorkspaceByContextSecurity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GetWorkspaceByContextSecurity' from JSON`, + ); +} diff --git a/src/sdk/models/operations/getworkspaceeventsbytarget.ts b/src/sdk/models/operations/getworkspaceeventsbytarget.ts index 0dfe4074..e258cf6e 100644 --- a/src/sdk/models/operations/getworkspaceeventsbytarget.ts +++ b/src/sdk/models/operations/getworkspaceeventsbytarget.ts @@ -12,6 +12,12 @@ export type GetWorkspaceEventsByTargetGlobals = { workspaceId?: string | undefined; }; +export type GetWorkspaceEventsByTargetSecurity = { + apiKey?: string | undefined; + bearer?: string | undefined; + workspaceIdentifier?: string | undefined; +}; + export type GetWorkspaceEventsByTargetRequest = { /** * Unique identifier of the workspace. @@ -76,6 +82,66 @@ export function getWorkspaceEventsByTargetGlobalsFromJSON( ); } +/** @internal */ +export const GetWorkspaceEventsByTargetSecurity$inboundSchema: z.ZodType< + GetWorkspaceEventsByTargetSecurity, + z.ZodTypeDef, + unknown +> = z.object({ + APIKey: z.string().optional(), + Bearer: z.string().optional(), + WorkspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "APIKey": "apiKey", + "Bearer": "bearer", + "WorkspaceIdentifier": "workspaceIdentifier", + }); +}); +/** @internal */ +export type GetWorkspaceEventsByTargetSecurity$Outbound = { + APIKey?: string | undefined; + Bearer?: string | undefined; + WorkspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const GetWorkspaceEventsByTargetSecurity$outboundSchema: z.ZodType< + GetWorkspaceEventsByTargetSecurity$Outbound, + z.ZodTypeDef, + GetWorkspaceEventsByTargetSecurity +> = z.object({ + apiKey: z.string().optional(), + bearer: z.string().optional(), + workspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + apiKey: "APIKey", + bearer: "Bearer", + workspaceIdentifier: "WorkspaceIdentifier", + }); +}); + +export function getWorkspaceEventsByTargetSecurityToJSON( + getWorkspaceEventsByTargetSecurity: GetWorkspaceEventsByTargetSecurity, +): string { + return JSON.stringify( + GetWorkspaceEventsByTargetSecurity$outboundSchema.parse( + getWorkspaceEventsByTargetSecurity, + ), + ); +} +export function getWorkspaceEventsByTargetSecurityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + GetWorkspaceEventsByTargetSecurity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GetWorkspaceEventsByTargetSecurity' from JSON`, + ); +} + /** @internal */ export const GetWorkspaceEventsByTargetRequest$inboundSchema: z.ZodType< GetWorkspaceEventsByTargetRequest, diff --git a/src/sdk/models/operations/getworkspacefeatureflags.ts b/src/sdk/models/operations/getworkspacefeatureflags.ts index a25a3324..69333cbd 100644 --- a/src/sdk/models/operations/getworkspacefeatureflags.ts +++ b/src/sdk/models/operations/getworkspacefeatureflags.ts @@ -12,6 +12,12 @@ export type GetWorkspaceFeatureFlagsGlobals = { workspaceId?: string | undefined; }; +export type GetWorkspaceFeatureFlagsSecurity = { + apiKey?: string | undefined; + bearer?: string | undefined; + workspaceIdentifier?: string | undefined; +}; + export type GetWorkspaceFeatureFlagsRequest = { /** * Unique identifier of the workspace. @@ -68,6 +74,65 @@ export function getWorkspaceFeatureFlagsGlobalsFromJSON( ); } +/** @internal */ +export const GetWorkspaceFeatureFlagsSecurity$inboundSchema: z.ZodType< + GetWorkspaceFeatureFlagsSecurity, + z.ZodTypeDef, + unknown +> = z.object({ + APIKey: z.string().optional(), + Bearer: z.string().optional(), + WorkspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "APIKey": "apiKey", + "Bearer": "bearer", + "WorkspaceIdentifier": "workspaceIdentifier", + }); +}); +/** @internal */ +export type GetWorkspaceFeatureFlagsSecurity$Outbound = { + APIKey?: string | undefined; + Bearer?: string | undefined; + WorkspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const GetWorkspaceFeatureFlagsSecurity$outboundSchema: z.ZodType< + GetWorkspaceFeatureFlagsSecurity$Outbound, + z.ZodTypeDef, + GetWorkspaceFeatureFlagsSecurity +> = z.object({ + apiKey: z.string().optional(), + bearer: z.string().optional(), + workspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + apiKey: "APIKey", + bearer: "Bearer", + workspaceIdentifier: "WorkspaceIdentifier", + }); +}); + +export function getWorkspaceFeatureFlagsSecurityToJSON( + getWorkspaceFeatureFlagsSecurity: GetWorkspaceFeatureFlagsSecurity, +): string { + return JSON.stringify( + GetWorkspaceFeatureFlagsSecurity$outboundSchema.parse( + getWorkspaceFeatureFlagsSecurity, + ), + ); +} +export function getWorkspaceFeatureFlagsSecurityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => GetWorkspaceFeatureFlagsSecurity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GetWorkspaceFeatureFlagsSecurity' from JSON`, + ); +} + /** @internal */ export const GetWorkspaceFeatureFlagsRequest$inboundSchema: z.ZodType< GetWorkspaceFeatureFlagsRequest, diff --git a/src/sdk/models/operations/getworkspaces.ts b/src/sdk/models/operations/getworkspaces.ts new file mode 100644 index 00000000..2ce6e67b --- /dev/null +++ b/src/sdk/models/operations/getworkspaces.ts @@ -0,0 +1,72 @@ +/* + * 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"; + +export type GetWorkspacesSecurity = { + apiKey?: string | undefined; + bearer?: string | undefined; + workspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const GetWorkspacesSecurity$inboundSchema: z.ZodType< + GetWorkspacesSecurity, + z.ZodTypeDef, + unknown +> = z.object({ + APIKey: z.string().optional(), + Bearer: z.string().optional(), + WorkspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "APIKey": "apiKey", + "Bearer": "bearer", + "WorkspaceIdentifier": "workspaceIdentifier", + }); +}); +/** @internal */ +export type GetWorkspacesSecurity$Outbound = { + APIKey?: string | undefined; + Bearer?: string | undefined; + WorkspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const GetWorkspacesSecurity$outboundSchema: z.ZodType< + GetWorkspacesSecurity$Outbound, + z.ZodTypeDef, + GetWorkspacesSecurity +> = z.object({ + apiKey: z.string().optional(), + bearer: z.string().optional(), + workspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + apiKey: "APIKey", + bearer: "Bearer", + workspaceIdentifier: "WorkspaceIdentifier", + }); +}); + +export function getWorkspacesSecurityToJSON( + getWorkspacesSecurity: GetWorkspacesSecurity, +): string { + return JSON.stringify( + GetWorkspacesSecurity$outboundSchema.parse(getWorkspacesSecurity), + ); +} +export function getWorkspacesSecurityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => GetWorkspacesSecurity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GetWorkspacesSecurity' from JSON`, + ); +} diff --git a/src/sdk/models/operations/getworkspacesettings.ts b/src/sdk/models/operations/getworkspacesettings.ts index d36817fc..34bd456b 100644 --- a/src/sdk/models/operations/getworkspacesettings.ts +++ b/src/sdk/models/operations/getworkspacesettings.ts @@ -12,6 +12,12 @@ export type GetWorkspaceSettingsGlobals = { workspaceId?: string | undefined; }; +export type GetWorkspaceSettingsSecurity = { + apiKey?: string | undefined; + bearer?: string | undefined; + workspaceIdentifier?: string | undefined; +}; + export type GetWorkspaceSettingsRequest = { /** * Unique identifier of the workspace. @@ -68,6 +74,65 @@ export function getWorkspaceSettingsGlobalsFromJSON( ); } +/** @internal */ +export const GetWorkspaceSettingsSecurity$inboundSchema: z.ZodType< + GetWorkspaceSettingsSecurity, + z.ZodTypeDef, + unknown +> = z.object({ + APIKey: z.string().optional(), + Bearer: z.string().optional(), + WorkspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "APIKey": "apiKey", + "Bearer": "bearer", + "WorkspaceIdentifier": "workspaceIdentifier", + }); +}); +/** @internal */ +export type GetWorkspaceSettingsSecurity$Outbound = { + APIKey?: string | undefined; + Bearer?: string | undefined; + WorkspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const GetWorkspaceSettingsSecurity$outboundSchema: z.ZodType< + GetWorkspaceSettingsSecurity$Outbound, + z.ZodTypeDef, + GetWorkspaceSettingsSecurity +> = z.object({ + apiKey: z.string().optional(), + bearer: z.string().optional(), + workspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + apiKey: "APIKey", + bearer: "Bearer", + workspaceIdentifier: "WorkspaceIdentifier", + }); +}); + +export function getWorkspaceSettingsSecurityToJSON( + getWorkspaceSettingsSecurity: GetWorkspaceSettingsSecurity, +): string { + return JSON.stringify( + GetWorkspaceSettingsSecurity$outboundSchema.parse( + getWorkspaceSettingsSecurity, + ), + ); +} +export function getWorkspaceSettingsSecurityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => GetWorkspaceSettingsSecurity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GetWorkspaceSettingsSecurity' from JSON`, + ); +} + /** @internal */ export const GetWorkspaceSettingsRequest$inboundSchema: z.ZodType< GetWorkspaceSettingsRequest, diff --git a/src/sdk/models/operations/getworkspacetargets.ts b/src/sdk/models/operations/getworkspacetargets.ts index 395d7b44..55f45283 100644 --- a/src/sdk/models/operations/getworkspacetargets.ts +++ b/src/sdk/models/operations/getworkspacetargets.ts @@ -8,6 +8,12 @@ import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +export type GetWorkspaceTargetsSecurity = { + apiKey?: string | undefined; + bearer?: string | undefined; + workspaceIdentifier?: string | undefined; +}; + export type GetWorkspaceTargetsRequest = { /** * Filter to only return targets with events created after this timestamp @@ -15,6 +21,65 @@ export type GetWorkspaceTargetsRequest = { afterLastEventCreatedAt?: Date | undefined; }; +/** @internal */ +export const GetWorkspaceTargetsSecurity$inboundSchema: z.ZodType< + GetWorkspaceTargetsSecurity, + z.ZodTypeDef, + unknown +> = z.object({ + APIKey: z.string().optional(), + Bearer: z.string().optional(), + WorkspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "APIKey": "apiKey", + "Bearer": "bearer", + "WorkspaceIdentifier": "workspaceIdentifier", + }); +}); +/** @internal */ +export type GetWorkspaceTargetsSecurity$Outbound = { + APIKey?: string | undefined; + Bearer?: string | undefined; + WorkspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const GetWorkspaceTargetsSecurity$outboundSchema: z.ZodType< + GetWorkspaceTargetsSecurity$Outbound, + z.ZodTypeDef, + GetWorkspaceTargetsSecurity +> = z.object({ + apiKey: z.string().optional(), + bearer: z.string().optional(), + workspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + apiKey: "APIKey", + bearer: "Bearer", + workspaceIdentifier: "WorkspaceIdentifier", + }); +}); + +export function getWorkspaceTargetsSecurityToJSON( + getWorkspaceTargetsSecurity: GetWorkspaceTargetsSecurity, +): string { + return JSON.stringify( + GetWorkspaceTargetsSecurity$outboundSchema.parse( + getWorkspaceTargetsSecurity, + ), + ); +} +export function getWorkspaceTargetsSecurityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => GetWorkspaceTargetsSecurity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GetWorkspaceTargetsSecurity' from JSON`, + ); +} + /** @internal */ export const GetWorkspaceTargetsRequest$inboundSchema: z.ZodType< GetWorkspaceTargetsRequest, diff --git a/src/sdk/models/operations/getworkspacetargetsdeprecated.ts b/src/sdk/models/operations/getworkspacetargetsdeprecated.ts index 7bbc3e77..83c8278e 100644 --- a/src/sdk/models/operations/getworkspacetargetsdeprecated.ts +++ b/src/sdk/models/operations/getworkspacetargetsdeprecated.ts @@ -12,6 +12,12 @@ export type GetWorkspaceTargetsDeprecatedGlobals = { workspaceId?: string | undefined; }; +export type GetWorkspaceTargetsDeprecatedSecurity = { + apiKey?: string | undefined; + bearer?: string | undefined; + workspaceIdentifier?: string | undefined; +}; + export type GetWorkspaceTargetsDeprecatedRequest = { /** * Unique identifier of the workspace. @@ -73,6 +79,66 @@ export function getWorkspaceTargetsDeprecatedGlobalsFromJSON( ); } +/** @internal */ +export const GetWorkspaceTargetsDeprecatedSecurity$inboundSchema: z.ZodType< + GetWorkspaceTargetsDeprecatedSecurity, + z.ZodTypeDef, + unknown +> = z.object({ + APIKey: z.string().optional(), + Bearer: z.string().optional(), + WorkspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "APIKey": "apiKey", + "Bearer": "bearer", + "WorkspaceIdentifier": "workspaceIdentifier", + }); +}); +/** @internal */ +export type GetWorkspaceTargetsDeprecatedSecurity$Outbound = { + APIKey?: string | undefined; + Bearer?: string | undefined; + WorkspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const GetWorkspaceTargetsDeprecatedSecurity$outboundSchema: z.ZodType< + GetWorkspaceTargetsDeprecatedSecurity$Outbound, + z.ZodTypeDef, + GetWorkspaceTargetsDeprecatedSecurity +> = z.object({ + apiKey: z.string().optional(), + bearer: z.string().optional(), + workspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + apiKey: "APIKey", + bearer: "Bearer", + workspaceIdentifier: "WorkspaceIdentifier", + }); +}); + +export function getWorkspaceTargetsDeprecatedSecurityToJSON( + getWorkspaceTargetsDeprecatedSecurity: GetWorkspaceTargetsDeprecatedSecurity, +): string { + return JSON.stringify( + GetWorkspaceTargetsDeprecatedSecurity$outboundSchema.parse( + getWorkspaceTargetsDeprecatedSecurity, + ), + ); +} +export function getWorkspaceTargetsDeprecatedSecurityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + GetWorkspaceTargetsDeprecatedSecurity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GetWorkspaceTargetsDeprecatedSecurity' from JSON`, + ); +} + /** @internal */ export const GetWorkspaceTargetsDeprecatedRequest$inboundSchema: z.ZodType< GetWorkspaceTargetsDeprecatedRequest, diff --git a/src/sdk/models/operations/getworkspacetargetssummary.ts b/src/sdk/models/operations/getworkspacetargetssummary.ts index fd06b8e5..b2c9bdae 100644 --- a/src/sdk/models/operations/getworkspacetargetssummary.ts +++ b/src/sdk/models/operations/getworkspacetargetssummary.ts @@ -9,6 +9,12 @@ import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; +export type GetWorkspaceTargetsSummarySecurity = { + apiKey?: string | undefined; + bearer?: string | undefined; + workspaceIdentifier?: string | undefined; +}; + export type GetWorkspaceTargetsSummaryRequest = { /** * Filter to only return targets with events created after this timestamp @@ -28,6 +34,66 @@ export type GetWorkspaceTargetsSummaryResponse = { result: shared.TargetsSummaryPage; }; +/** @internal */ +export const GetWorkspaceTargetsSummarySecurity$inboundSchema: z.ZodType< + GetWorkspaceTargetsSummarySecurity, + z.ZodTypeDef, + unknown +> = z.object({ + APIKey: z.string().optional(), + Bearer: z.string().optional(), + WorkspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "APIKey": "apiKey", + "Bearer": "bearer", + "WorkspaceIdentifier": "workspaceIdentifier", + }); +}); +/** @internal */ +export type GetWorkspaceTargetsSummarySecurity$Outbound = { + APIKey?: string | undefined; + Bearer?: string | undefined; + WorkspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const GetWorkspaceTargetsSummarySecurity$outboundSchema: z.ZodType< + GetWorkspaceTargetsSummarySecurity$Outbound, + z.ZodTypeDef, + GetWorkspaceTargetsSummarySecurity +> = z.object({ + apiKey: z.string().optional(), + bearer: z.string().optional(), + workspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + apiKey: "APIKey", + bearer: "Bearer", + workspaceIdentifier: "WorkspaceIdentifier", + }); +}); + +export function getWorkspaceTargetsSummarySecurityToJSON( + getWorkspaceTargetsSummarySecurity: GetWorkspaceTargetsSummarySecurity, +): string { + return JSON.stringify( + GetWorkspaceTargetsSummarySecurity$outboundSchema.parse( + getWorkspaceTargetsSummarySecurity, + ), + ); +} +export function getWorkspaceTargetsSummarySecurityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + GetWorkspaceTargetsSummarySecurity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GetWorkspaceTargetsSummarySecurity' from JSON`, + ); +} + /** @internal */ export const GetWorkspaceTargetsSummaryRequest$inboundSchema: z.ZodType< GetWorkspaceTargetsSummaryRequest, diff --git a/src/sdk/models/operations/getworkspaceteam.ts b/src/sdk/models/operations/getworkspaceteam.ts index 6fb6f309..02d0b3e9 100644 --- a/src/sdk/models/operations/getworkspaceteam.ts +++ b/src/sdk/models/operations/getworkspaceteam.ts @@ -12,6 +12,12 @@ export type GetWorkspaceTeamGlobals = { workspaceId?: string | undefined; }; +export type GetWorkspaceTeamSecurity = { + apiKey?: string | undefined; + bearer?: string | undefined; + workspaceIdentifier?: string | undefined; +}; + export type GetWorkspaceTeamRequest = { /** * Unique identifier of the workspace. @@ -66,6 +72,63 @@ export function getWorkspaceTeamGlobalsFromJSON( ); } +/** @internal */ +export const GetWorkspaceTeamSecurity$inboundSchema: z.ZodType< + GetWorkspaceTeamSecurity, + z.ZodTypeDef, + unknown +> = z.object({ + APIKey: z.string().optional(), + Bearer: z.string().optional(), + WorkspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "APIKey": "apiKey", + "Bearer": "bearer", + "WorkspaceIdentifier": "workspaceIdentifier", + }); +}); +/** @internal */ +export type GetWorkspaceTeamSecurity$Outbound = { + APIKey?: string | undefined; + Bearer?: string | undefined; + WorkspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const GetWorkspaceTeamSecurity$outboundSchema: z.ZodType< + GetWorkspaceTeamSecurity$Outbound, + z.ZodTypeDef, + GetWorkspaceTeamSecurity +> = z.object({ + apiKey: z.string().optional(), + bearer: z.string().optional(), + workspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + apiKey: "APIKey", + bearer: "Bearer", + workspaceIdentifier: "WorkspaceIdentifier", + }); +}); + +export function getWorkspaceTeamSecurityToJSON( + getWorkspaceTeamSecurity: GetWorkspaceTeamSecurity, +): string { + return JSON.stringify( + GetWorkspaceTeamSecurity$outboundSchema.parse(getWorkspaceTeamSecurity), + ); +} +export function getWorkspaceTeamSecurityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => GetWorkspaceTeamSecurity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GetWorkspaceTeamSecurity' from JSON`, + ); +} + /** @internal */ export const GetWorkspaceTeamRequest$inboundSchema: z.ZodType< GetWorkspaceTeamRequest, diff --git a/src/sdk/models/operations/getworkspacetokens.ts b/src/sdk/models/operations/getworkspacetokens.ts index 9d2fe485..7cc10c27 100644 --- a/src/sdk/models/operations/getworkspacetokens.ts +++ b/src/sdk/models/operations/getworkspacetokens.ts @@ -12,6 +12,12 @@ export type GetWorkspaceTokensGlobals = { workspaceId?: string | undefined; }; +export type GetWorkspaceTokensSecurity = { + apiKey?: string | undefined; + bearer?: string | undefined; + workspaceIdentifier?: string | undefined; +}; + export type GetWorkspaceTokensRequest = { /** * Unique identifier of the workspace. @@ -66,6 +72,63 @@ export function getWorkspaceTokensGlobalsFromJSON( ); } +/** @internal */ +export const GetWorkspaceTokensSecurity$inboundSchema: z.ZodType< + GetWorkspaceTokensSecurity, + z.ZodTypeDef, + unknown +> = z.object({ + APIKey: z.string().optional(), + Bearer: z.string().optional(), + WorkspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "APIKey": "apiKey", + "Bearer": "bearer", + "WorkspaceIdentifier": "workspaceIdentifier", + }); +}); +/** @internal */ +export type GetWorkspaceTokensSecurity$Outbound = { + APIKey?: string | undefined; + Bearer?: string | undefined; + WorkspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const GetWorkspaceTokensSecurity$outboundSchema: z.ZodType< + GetWorkspaceTokensSecurity$Outbound, + z.ZodTypeDef, + GetWorkspaceTokensSecurity +> = z.object({ + apiKey: z.string().optional(), + bearer: z.string().optional(), + workspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + apiKey: "APIKey", + bearer: "Bearer", + workspaceIdentifier: "WorkspaceIdentifier", + }); +}); + +export function getWorkspaceTokensSecurityToJSON( + getWorkspaceTokensSecurity: GetWorkspaceTokensSecurity, +): string { + return JSON.stringify( + GetWorkspaceTokensSecurity$outboundSchema.parse(getWorkspaceTokensSecurity), + ); +} +export function getWorkspaceTokensSecurityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => GetWorkspaceTokensSecurity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GetWorkspaceTokensSecurity' from JSON`, + ); +} + /** @internal */ export const GetWorkspaceTokensRequest$inboundSchema: z.ZodType< GetWorkspaceTokensRequest, diff --git a/src/sdk/models/operations/githubcheckpublishingprs.ts b/src/sdk/models/operations/githubcheckpublishingprs.ts index 95bf6a5d..3d0502e6 100644 --- a/src/sdk/models/operations/githubcheckpublishingprs.ts +++ b/src/sdk/models/operations/githubcheckpublishingprs.ts @@ -8,12 +8,77 @@ import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +export type GithubCheckPublishingPRsSecurity = { + apiKey?: string | undefined; + bearer?: string | undefined; + workspaceIdentifier?: string | undefined; +}; + export type GithubCheckPublishingPRsRequest = { generateGenLockId: string; org: string; repo: string; }; +/** @internal */ +export const GithubCheckPublishingPRsSecurity$inboundSchema: z.ZodType< + GithubCheckPublishingPRsSecurity, + z.ZodTypeDef, + unknown +> = z.object({ + APIKey: z.string().optional(), + Bearer: z.string().optional(), + WorkspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "APIKey": "apiKey", + "Bearer": "bearer", + "WorkspaceIdentifier": "workspaceIdentifier", + }); +}); +/** @internal */ +export type GithubCheckPublishingPRsSecurity$Outbound = { + APIKey?: string | undefined; + Bearer?: string | undefined; + WorkspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const GithubCheckPublishingPRsSecurity$outboundSchema: z.ZodType< + GithubCheckPublishingPRsSecurity$Outbound, + z.ZodTypeDef, + GithubCheckPublishingPRsSecurity +> = z.object({ + apiKey: z.string().optional(), + bearer: z.string().optional(), + workspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + apiKey: "APIKey", + bearer: "Bearer", + workspaceIdentifier: "WorkspaceIdentifier", + }); +}); + +export function githubCheckPublishingPRsSecurityToJSON( + githubCheckPublishingPRsSecurity: GithubCheckPublishingPRsSecurity, +): string { + return JSON.stringify( + GithubCheckPublishingPRsSecurity$outboundSchema.parse( + githubCheckPublishingPRsSecurity, + ), + ); +} +export function githubCheckPublishingPRsSecurityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => GithubCheckPublishingPRsSecurity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GithubCheckPublishingPRsSecurity' from JSON`, + ); +} + /** @internal */ export const GithubCheckPublishingPRsRequest$inboundSchema: z.ZodType< GithubCheckPublishingPRsRequest, diff --git a/src/sdk/models/operations/githubcheckpublishingsecrets.ts b/src/sdk/models/operations/githubcheckpublishingsecrets.ts index bd2985fb..3613b200 100644 --- a/src/sdk/models/operations/githubcheckpublishingsecrets.ts +++ b/src/sdk/models/operations/githubcheckpublishingsecrets.ts @@ -8,10 +8,76 @@ import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +export type GithubCheckPublishingSecretsSecurity = { + apiKey?: string | undefined; + bearer?: string | undefined; + workspaceIdentifier?: string | undefined; +}; + export type GithubCheckPublishingSecretsRequest = { generateGenLockId: string; }; +/** @internal */ +export const GithubCheckPublishingSecretsSecurity$inboundSchema: z.ZodType< + GithubCheckPublishingSecretsSecurity, + z.ZodTypeDef, + unknown +> = z.object({ + APIKey: z.string().optional(), + Bearer: z.string().optional(), + WorkspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "APIKey": "apiKey", + "Bearer": "bearer", + "WorkspaceIdentifier": "workspaceIdentifier", + }); +}); +/** @internal */ +export type GithubCheckPublishingSecretsSecurity$Outbound = { + APIKey?: string | undefined; + Bearer?: string | undefined; + WorkspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const GithubCheckPublishingSecretsSecurity$outboundSchema: z.ZodType< + GithubCheckPublishingSecretsSecurity$Outbound, + z.ZodTypeDef, + GithubCheckPublishingSecretsSecurity +> = z.object({ + apiKey: z.string().optional(), + bearer: z.string().optional(), + workspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + apiKey: "APIKey", + bearer: "Bearer", + workspaceIdentifier: "WorkspaceIdentifier", + }); +}); + +export function githubCheckPublishingSecretsSecurityToJSON( + githubCheckPublishingSecretsSecurity: GithubCheckPublishingSecretsSecurity, +): string { + return JSON.stringify( + GithubCheckPublishingSecretsSecurity$outboundSchema.parse( + githubCheckPublishingSecretsSecurity, + ), + ); +} +export function githubCheckPublishingSecretsSecurityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + GithubCheckPublishingSecretsSecurity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GithubCheckPublishingSecretsSecurity' from JSON`, + ); +} + /** @internal */ export const GithubCheckPublishingSecretsRequest$inboundSchema: z.ZodType< GithubCheckPublishingSecretsRequest, diff --git a/src/sdk/models/operations/githubconfigurecodesamples.ts b/src/sdk/models/operations/githubconfigurecodesamples.ts new file mode 100644 index 00000000..43a53270 --- /dev/null +++ b/src/sdk/models/operations/githubconfigurecodesamples.ts @@ -0,0 +1,75 @@ +/* + * 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"; + +export type GithubConfigureCodeSamplesSecurity = { + apiKey?: string | undefined; + bearer?: string | undefined; + workspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const GithubConfigureCodeSamplesSecurity$inboundSchema: z.ZodType< + GithubConfigureCodeSamplesSecurity, + z.ZodTypeDef, + unknown +> = z.object({ + APIKey: z.string().optional(), + Bearer: z.string().optional(), + WorkspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "APIKey": "apiKey", + "Bearer": "bearer", + "WorkspaceIdentifier": "workspaceIdentifier", + }); +}); +/** @internal */ +export type GithubConfigureCodeSamplesSecurity$Outbound = { + APIKey?: string | undefined; + Bearer?: string | undefined; + WorkspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const GithubConfigureCodeSamplesSecurity$outboundSchema: z.ZodType< + GithubConfigureCodeSamplesSecurity$Outbound, + z.ZodTypeDef, + GithubConfigureCodeSamplesSecurity +> = z.object({ + apiKey: z.string().optional(), + bearer: z.string().optional(), + workspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + apiKey: "APIKey", + bearer: "Bearer", + workspaceIdentifier: "WorkspaceIdentifier", + }); +}); + +export function githubConfigureCodeSamplesSecurityToJSON( + githubConfigureCodeSamplesSecurity: GithubConfigureCodeSamplesSecurity, +): string { + return JSON.stringify( + GithubConfigureCodeSamplesSecurity$outboundSchema.parse( + githubConfigureCodeSamplesSecurity, + ), + ); +} +export function githubConfigureCodeSamplesSecurityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + GithubConfigureCodeSamplesSecurity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GithubConfigureCodeSamplesSecurity' from JSON`, + ); +} diff --git a/src/sdk/models/operations/githubconfiguremintlifyrepo.ts b/src/sdk/models/operations/githubconfiguremintlifyrepo.ts new file mode 100644 index 00000000..83b8f937 --- /dev/null +++ b/src/sdk/models/operations/githubconfiguremintlifyrepo.ts @@ -0,0 +1,75 @@ +/* + * 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"; + +export type GithubConfigureMintlifyRepoSecurity = { + apiKey?: string | undefined; + bearer?: string | undefined; + workspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const GithubConfigureMintlifyRepoSecurity$inboundSchema: z.ZodType< + GithubConfigureMintlifyRepoSecurity, + z.ZodTypeDef, + unknown +> = z.object({ + APIKey: z.string().optional(), + Bearer: z.string().optional(), + WorkspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "APIKey": "apiKey", + "Bearer": "bearer", + "WorkspaceIdentifier": "workspaceIdentifier", + }); +}); +/** @internal */ +export type GithubConfigureMintlifyRepoSecurity$Outbound = { + APIKey?: string | undefined; + Bearer?: string | undefined; + WorkspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const GithubConfigureMintlifyRepoSecurity$outboundSchema: z.ZodType< + GithubConfigureMintlifyRepoSecurity$Outbound, + z.ZodTypeDef, + GithubConfigureMintlifyRepoSecurity +> = z.object({ + apiKey: z.string().optional(), + bearer: z.string().optional(), + workspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + apiKey: "APIKey", + bearer: "Bearer", + workspaceIdentifier: "WorkspaceIdentifier", + }); +}); + +export function githubConfigureMintlifyRepoSecurityToJSON( + githubConfigureMintlifyRepoSecurity: GithubConfigureMintlifyRepoSecurity, +): string { + return JSON.stringify( + GithubConfigureMintlifyRepoSecurity$outboundSchema.parse( + githubConfigureMintlifyRepoSecurity, + ), + ); +} +export function githubConfigureMintlifyRepoSecurityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + GithubConfigureMintlifyRepoSecurity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GithubConfigureMintlifyRepoSecurity' from JSON`, + ); +} diff --git a/src/sdk/models/operations/githubconfiguretarget.ts b/src/sdk/models/operations/githubconfiguretarget.ts new file mode 100644 index 00000000..9d5bf15e --- /dev/null +++ b/src/sdk/models/operations/githubconfiguretarget.ts @@ -0,0 +1,74 @@ +/* + * 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"; + +export type GithubConfigureTargetSecurity = { + apiKey?: string | undefined; + bearer?: string | undefined; + workspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const GithubConfigureTargetSecurity$inboundSchema: z.ZodType< + GithubConfigureTargetSecurity, + z.ZodTypeDef, + unknown +> = z.object({ + APIKey: z.string().optional(), + Bearer: z.string().optional(), + WorkspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "APIKey": "apiKey", + "Bearer": "bearer", + "WorkspaceIdentifier": "workspaceIdentifier", + }); +}); +/** @internal */ +export type GithubConfigureTargetSecurity$Outbound = { + APIKey?: string | undefined; + Bearer?: string | undefined; + WorkspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const GithubConfigureTargetSecurity$outboundSchema: z.ZodType< + GithubConfigureTargetSecurity$Outbound, + z.ZodTypeDef, + GithubConfigureTargetSecurity +> = z.object({ + apiKey: z.string().optional(), + bearer: z.string().optional(), + workspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + apiKey: "APIKey", + bearer: "Bearer", + workspaceIdentifier: "WorkspaceIdentifier", + }); +}); + +export function githubConfigureTargetSecurityToJSON( + githubConfigureTargetSecurity: GithubConfigureTargetSecurity, +): string { + return JSON.stringify( + GithubConfigureTargetSecurity$outboundSchema.parse( + githubConfigureTargetSecurity, + ), + ); +} +export function githubConfigureTargetSecurityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => GithubConfigureTargetSecurity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GithubConfigureTargetSecurity' from JSON`, + ); +} diff --git a/src/sdk/models/operations/githubstorepublishingsecrets.ts b/src/sdk/models/operations/githubstorepublishingsecrets.ts new file mode 100644 index 00000000..57818de2 --- /dev/null +++ b/src/sdk/models/operations/githubstorepublishingsecrets.ts @@ -0,0 +1,75 @@ +/* + * 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"; + +export type GithubStorePublishingSecretsSecurity = { + apiKey?: string | undefined; + bearer?: string | undefined; + workspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const GithubStorePublishingSecretsSecurity$inboundSchema: z.ZodType< + GithubStorePublishingSecretsSecurity, + z.ZodTypeDef, + unknown +> = z.object({ + APIKey: z.string().optional(), + Bearer: z.string().optional(), + WorkspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "APIKey": "apiKey", + "Bearer": "bearer", + "WorkspaceIdentifier": "workspaceIdentifier", + }); +}); +/** @internal */ +export type GithubStorePublishingSecretsSecurity$Outbound = { + APIKey?: string | undefined; + Bearer?: string | undefined; + WorkspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const GithubStorePublishingSecretsSecurity$outboundSchema: z.ZodType< + GithubStorePublishingSecretsSecurity$Outbound, + z.ZodTypeDef, + GithubStorePublishingSecretsSecurity +> = z.object({ + apiKey: z.string().optional(), + bearer: z.string().optional(), + workspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + apiKey: "APIKey", + bearer: "Bearer", + workspaceIdentifier: "WorkspaceIdentifier", + }); +}); + +export function githubStorePublishingSecretsSecurityToJSON( + githubStorePublishingSecretsSecurity: GithubStorePublishingSecretsSecurity, +): string { + return JSON.stringify( + GithubStorePublishingSecretsSecurity$outboundSchema.parse( + githubStorePublishingSecretsSecurity, + ), + ); +} +export function githubStorePublishingSecretsSecurityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + GithubStorePublishingSecretsSecurity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GithubStorePublishingSecretsSecurity' from JSON`, + ); +} diff --git a/src/sdk/models/operations/githubtriggeraction.ts b/src/sdk/models/operations/githubtriggeraction.ts new file mode 100644 index 00000000..900e76fa --- /dev/null +++ b/src/sdk/models/operations/githubtriggeraction.ts @@ -0,0 +1,74 @@ +/* + * 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"; + +export type GithubTriggerActionSecurity = { + apiKey?: string | undefined; + bearer?: string | undefined; + workspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const GithubTriggerActionSecurity$inboundSchema: z.ZodType< + GithubTriggerActionSecurity, + z.ZodTypeDef, + unknown +> = z.object({ + APIKey: z.string().optional(), + Bearer: z.string().optional(), + WorkspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "APIKey": "apiKey", + "Bearer": "bearer", + "WorkspaceIdentifier": "workspaceIdentifier", + }); +}); +/** @internal */ +export type GithubTriggerActionSecurity$Outbound = { + APIKey?: string | undefined; + Bearer?: string | undefined; + WorkspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const GithubTriggerActionSecurity$outboundSchema: z.ZodType< + GithubTriggerActionSecurity$Outbound, + z.ZodTypeDef, + GithubTriggerActionSecurity +> = z.object({ + apiKey: z.string().optional(), + bearer: z.string().optional(), + workspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + apiKey: "APIKey", + bearer: "Bearer", + workspaceIdentifier: "WorkspaceIdentifier", + }); +}); + +export function githubTriggerActionSecurityToJSON( + githubTriggerActionSecurity: GithubTriggerActionSecurity, +): string { + return JSON.stringify( + GithubTriggerActionSecurity$outboundSchema.parse( + githubTriggerActionSecurity, + ), + ); +} +export function githubTriggerActionSecurityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => GithubTriggerActionSecurity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GithubTriggerActionSecurity' from JSON`, + ); +} diff --git a/src/sdk/models/operations/grantuseraccesstoworkspace.ts b/src/sdk/models/operations/grantuseraccesstoworkspace.ts index 310ae561..26cf22e5 100644 --- a/src/sdk/models/operations/grantuseraccesstoworkspace.ts +++ b/src/sdk/models/operations/grantuseraccesstoworkspace.ts @@ -12,6 +12,12 @@ export type GrantUserAccessToWorkspaceGlobals = { workspaceId?: string | undefined; }; +export type GrantUserAccessToWorkspaceSecurity = { + apiKey?: string | undefined; + bearer?: string | undefined; + workspaceIdentifier?: string | undefined; +}; + export type GrantUserAccessToWorkspaceRequest = { /** * Unique identifier of the workspace. @@ -72,6 +78,66 @@ export function grantUserAccessToWorkspaceGlobalsFromJSON( ); } +/** @internal */ +export const GrantUserAccessToWorkspaceSecurity$inboundSchema: z.ZodType< + GrantUserAccessToWorkspaceSecurity, + z.ZodTypeDef, + unknown +> = z.object({ + APIKey: z.string().optional(), + Bearer: z.string().optional(), + WorkspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "APIKey": "apiKey", + "Bearer": "bearer", + "WorkspaceIdentifier": "workspaceIdentifier", + }); +}); +/** @internal */ +export type GrantUserAccessToWorkspaceSecurity$Outbound = { + APIKey?: string | undefined; + Bearer?: string | undefined; + WorkspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const GrantUserAccessToWorkspaceSecurity$outboundSchema: z.ZodType< + GrantUserAccessToWorkspaceSecurity$Outbound, + z.ZodTypeDef, + GrantUserAccessToWorkspaceSecurity +> = z.object({ + apiKey: z.string().optional(), + bearer: z.string().optional(), + workspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + apiKey: "APIKey", + bearer: "Bearer", + workspaceIdentifier: "WorkspaceIdentifier", + }); +}); + +export function grantUserAccessToWorkspaceSecurityToJSON( + grantUserAccessToWorkspaceSecurity: GrantUserAccessToWorkspaceSecurity, +): string { + return JSON.stringify( + GrantUserAccessToWorkspaceSecurity$outboundSchema.parse( + grantUserAccessToWorkspaceSecurity, + ), + ); +} +export function grantUserAccessToWorkspaceSecurityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + GrantUserAccessToWorkspaceSecurity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GrantUserAccessToWorkspaceSecurity' from JSON`, + ); +} + /** @internal */ export const GrantUserAccessToWorkspaceRequest$inboundSchema: z.ZodType< GrantUserAccessToWorkspaceRequest, diff --git a/src/sdk/models/operations/handlecheckoutcallback.ts b/src/sdk/models/operations/handlecheckoutcallback.ts new file mode 100644 index 00000000..68382b99 --- /dev/null +++ b/src/sdk/models/operations/handlecheckoutcallback.ts @@ -0,0 +1,118 @@ +/* + * 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"; + +export type HandleCheckoutCallbackRequest = { + /** + * The Stripe checkout session ID + */ + sessionId: string; +}; + +export type HandleCheckoutCallbackResponse = { + headers: { [k: string]: Array }; +}; + +/** @internal */ +export const HandleCheckoutCallbackRequest$inboundSchema: z.ZodType< + HandleCheckoutCallbackRequest, + z.ZodTypeDef, + unknown +> = z.object({ + session_id: z.string(), +}).transform((v) => { + return remap$(v, { + "session_id": "sessionId", + }); +}); +/** @internal */ +export type HandleCheckoutCallbackRequest$Outbound = { + session_id: string; +}; + +/** @internal */ +export const HandleCheckoutCallbackRequest$outboundSchema: z.ZodType< + HandleCheckoutCallbackRequest$Outbound, + z.ZodTypeDef, + HandleCheckoutCallbackRequest +> = z.object({ + sessionId: z.string(), +}).transform((v) => { + return remap$(v, { + sessionId: "session_id", + }); +}); + +export function handleCheckoutCallbackRequestToJSON( + handleCheckoutCallbackRequest: HandleCheckoutCallbackRequest, +): string { + return JSON.stringify( + HandleCheckoutCallbackRequest$outboundSchema.parse( + handleCheckoutCallbackRequest, + ), + ); +} +export function handleCheckoutCallbackRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => HandleCheckoutCallbackRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'HandleCheckoutCallbackRequest' from JSON`, + ); +} + +/** @internal */ +export const HandleCheckoutCallbackResponse$inboundSchema: z.ZodType< + HandleCheckoutCallbackResponse, + z.ZodTypeDef, + unknown +> = z.object({ + Headers: z.record(z.array(z.string())).default({}), +}).transform((v) => { + return remap$(v, { + "Headers": "headers", + }); +}); +/** @internal */ +export type HandleCheckoutCallbackResponse$Outbound = { + Headers: { [k: string]: Array }; +}; + +/** @internal */ +export const HandleCheckoutCallbackResponse$outboundSchema: z.ZodType< + HandleCheckoutCallbackResponse$Outbound, + z.ZodTypeDef, + HandleCheckoutCallbackResponse +> = z.object({ + headers: z.record(z.array(z.string())), +}).transform((v) => { + return remap$(v, { + headers: "Headers", + }); +}); + +export function handleCheckoutCallbackResponseToJSON( + handleCheckoutCallbackResponse: HandleCheckoutCallbackResponse, +): string { + return JSON.stringify( + HandleCheckoutCallbackResponse$outboundSchema.parse( + handleCheckoutCallbackResponse, + ), + ); +} +export function handleCheckoutCallbackResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => HandleCheckoutCallbackResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'HandleCheckoutCallbackResponse' from JSON`, + ); +} diff --git a/src/sdk/models/operations/handlestripewebhook.ts b/src/sdk/models/operations/handlestripewebhook.ts new file mode 100644 index 00000000..14996626 --- /dev/null +++ b/src/sdk/models/operations/handlestripewebhook.ts @@ -0,0 +1,48 @@ +/* + * 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"; + +/** + * Stripe webhook event payload + */ +export type HandleStripeWebhookRequestBody = {}; + +/** @internal */ +export const HandleStripeWebhookRequestBody$inboundSchema: z.ZodType< + HandleStripeWebhookRequestBody, + z.ZodTypeDef, + unknown +> = z.object({}); +/** @internal */ +export type HandleStripeWebhookRequestBody$Outbound = {}; + +/** @internal */ +export const HandleStripeWebhookRequestBody$outboundSchema: z.ZodType< + HandleStripeWebhookRequestBody$Outbound, + z.ZodTypeDef, + HandleStripeWebhookRequestBody +> = z.object({}); + +export function handleStripeWebhookRequestBodyToJSON( + handleStripeWebhookRequestBody: HandleStripeWebhookRequestBody, +): string { + return JSON.stringify( + HandleStripeWebhookRequestBody$outboundSchema.parse( + handleStripeWebhookRequestBody, + ), + ); +} +export function handleStripeWebhookRequestBodyFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => HandleStripeWebhookRequestBody$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'HandleStripeWebhookRequestBody' from JSON`, + ); +} diff --git a/src/sdk/models/operations/index.ts b/src/sdk/models/operations/index.ts index 8dba3c94..19fcf187 100644 --- a/src/sdk/models/operations/index.ts +++ b/src/sdk/models/operations/index.ts @@ -2,37 +2,58 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +export * from "./activatelanguage.js"; export * from "./activatesubscriptionnamespace.js"; export * from "./archivenamespace.js"; +export * from "./cancelsubscription.js"; export * from "./checkgithubaccess.js"; export * from "./create.js"; +export * from "./createbillingaddons.js"; +export * from "./createfreetrial.js"; +export * from "./createlanguagecheckoutsession.js"; +export * from "./createorganization.js"; export * from "./createpublishingtoken.js"; export * from "./createschemastoreitem.js"; +export * from "./createworkspace.js"; export * from "./createworkspacetoken.js"; +export * from "./deactivatelanguage.js"; export * from "./deletebillingaddon.js"; export * from "./deletepublishingtoken.js"; export * from "./deleteworkspacetoken.js"; +export * from "./generatecodesamplepreview.js"; export * from "./generatecodesamplepreviewasync.js"; export * from "./getaccesstoken.js"; +export * from "./getbillingaddons.js"; +export * from "./getbillingemail.js"; export * from "./getbillingoperations.js"; export * from "./getblob.js"; +export * from "./getbusinesstierprices.js"; export * from "./getchangesreportsignedurl.js"; export * from "./getcodesamplepreviewasync.js"; export * from "./getcodesamples.js"; export * from "./getgithubaction.js"; export * from "./getgithubsetupstate.js"; +export * from "./getlanguages.js"; export * from "./getlintingreportsignedurl.js"; export * from "./getmanifest.js"; export * from "./getorganization.js"; +export * from "./getorganizations.js"; +export * from "./getorganizationsubscription.js"; +export * from "./getorganizationusage.js"; +export * from "./getpublishingtoken.js"; export * from "./getpublishingtokenbyid.js"; export * from "./getpublishingtokenpublicmetadata.js"; export * from "./getpublishingtokentargetbyid.js"; export * from "./getrevisions.js"; export * from "./gettags.js"; +export * from "./gettrialtargets.js"; +export * from "./getuser.js"; export * from "./getworkspace.js"; export * from "./getworkspaceaccess.js"; +export * from "./getworkspacebycontext.js"; export * from "./getworkspaceeventsbytarget.js"; export * from "./getworkspacefeatureflags.js"; +export * from "./getworkspaces.js"; export * from "./getworkspacesettings.js"; export * from "./getworkspacetargets.js"; export * from "./getworkspacetargetsdeprecated.js"; @@ -41,19 +62,31 @@ export * from "./getworkspaceteam.js"; export * from "./getworkspacetokens.js"; export * from "./githubcheckpublishingprs.js"; export * from "./githubcheckpublishingsecrets.js"; +export * from "./githubconfigurecodesamples.js"; +export * from "./githubconfiguremintlifyrepo.js"; +export * from "./githubconfiguretarget.js"; +export * from "./githubstorepublishingsecrets.js"; +export * from "./githubtriggeraction.js"; export * from "./grantuseraccesstoworkspace.js"; +export * from "./handlecheckoutcallback.js"; +export * from "./handlestripewebhook.js"; export * from "./ignoresubscriptionnamespace.js"; export * from "./linkgithubaccess.js"; export * from "./listremotesources.js"; export * from "./posttags.js"; export * from "./postworkspaceevents.js"; +export * from "./revertsubscriptioncancellation.js"; export * from "./revokeuseraccesstoworkspace.js"; export * from "./searchworkspaceevents.js"; export * from "./setvisibility.js"; +export * from "./setworkspacefeatureflags.js"; export * from "./suggest.js"; +export * from "./suggestitems.js"; export * from "./suggestopenapi.js"; export * from "./suggestopenapiregistry.js"; export * from "./updatepublishingtokenexpiration.js"; export * from "./updateworkspacedetails.js"; export * from "./updateworkspacesettings.js"; export * from "./uploadreport.js"; +export * from "./upsertbillingemail.js"; +export * from "./validateapikey.js"; diff --git a/src/sdk/models/operations/linkgithubaccess.ts b/src/sdk/models/operations/linkgithubaccess.ts index 4fd15cdb..b6ed86d2 100644 --- a/src/sdk/models/operations/linkgithubaccess.ts +++ b/src/sdk/models/operations/linkgithubaccess.ts @@ -8,12 +8,75 @@ import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +export type LinkGithubAccessSecurity = { + apiKey?: string | undefined; + bearer?: string | undefined; + workspaceIdentifier?: string | undefined; +}; + export type LinkGithubAccessRequest = { installationId?: string | undefined; githubOrg?: string | undefined; githubOidcToken?: string | undefined; }; +/** @internal */ +export const LinkGithubAccessSecurity$inboundSchema: z.ZodType< + LinkGithubAccessSecurity, + z.ZodTypeDef, + unknown +> = z.object({ + APIKey: z.string().optional(), + Bearer: z.string().optional(), + WorkspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "APIKey": "apiKey", + "Bearer": "bearer", + "WorkspaceIdentifier": "workspaceIdentifier", + }); +}); +/** @internal */ +export type LinkGithubAccessSecurity$Outbound = { + APIKey?: string | undefined; + Bearer?: string | undefined; + WorkspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const LinkGithubAccessSecurity$outboundSchema: z.ZodType< + LinkGithubAccessSecurity$Outbound, + z.ZodTypeDef, + LinkGithubAccessSecurity +> = z.object({ + apiKey: z.string().optional(), + bearer: z.string().optional(), + workspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + apiKey: "APIKey", + bearer: "Bearer", + workspaceIdentifier: "WorkspaceIdentifier", + }); +}); + +export function linkGithubAccessSecurityToJSON( + linkGithubAccessSecurity: LinkGithubAccessSecurity, +): string { + return JSON.stringify( + LinkGithubAccessSecurity$outboundSchema.parse(linkGithubAccessSecurity), + ); +} +export function linkGithubAccessSecurityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => LinkGithubAccessSecurity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'LinkGithubAccessSecurity' from JSON`, + ); +} + /** @internal */ export const LinkGithubAccessRequest$inboundSchema: z.ZodType< LinkGithubAccessRequest, diff --git a/src/sdk/models/operations/postworkspaceevents.ts b/src/sdk/models/operations/postworkspaceevents.ts index 5a5f5263..a91c4128 100644 --- a/src/sdk/models/operations/postworkspaceevents.ts +++ b/src/sdk/models/operations/postworkspaceevents.ts @@ -13,6 +13,12 @@ export type PostWorkspaceEventsGlobals = { workspaceId?: string | undefined; }; +export type PostWorkspaceEventsSecurity = { + apiKey?: string | undefined; + bearer?: string | undefined; + workspaceIdentifier?: string | undefined; +}; + export type PostWorkspaceEventsRequest = { /** * Unique identifier of the workspace. @@ -68,6 +74,65 @@ export function postWorkspaceEventsGlobalsFromJSON( ); } +/** @internal */ +export const PostWorkspaceEventsSecurity$inboundSchema: z.ZodType< + PostWorkspaceEventsSecurity, + z.ZodTypeDef, + unknown +> = z.object({ + APIKey: z.string().optional(), + Bearer: z.string().optional(), + WorkspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "APIKey": "apiKey", + "Bearer": "bearer", + "WorkspaceIdentifier": "workspaceIdentifier", + }); +}); +/** @internal */ +export type PostWorkspaceEventsSecurity$Outbound = { + APIKey?: string | undefined; + Bearer?: string | undefined; + WorkspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const PostWorkspaceEventsSecurity$outboundSchema: z.ZodType< + PostWorkspaceEventsSecurity$Outbound, + z.ZodTypeDef, + PostWorkspaceEventsSecurity +> = z.object({ + apiKey: z.string().optional(), + bearer: z.string().optional(), + workspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + apiKey: "APIKey", + bearer: "Bearer", + workspaceIdentifier: "WorkspaceIdentifier", + }); +}); + +export function postWorkspaceEventsSecurityToJSON( + postWorkspaceEventsSecurity: PostWorkspaceEventsSecurity, +): string { + return JSON.stringify( + PostWorkspaceEventsSecurity$outboundSchema.parse( + postWorkspaceEventsSecurity, + ), + ); +} +export function postWorkspaceEventsSecurityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => PostWorkspaceEventsSecurity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'PostWorkspaceEventsSecurity' from JSON`, + ); +} + /** @internal */ export const PostWorkspaceEventsRequest$inboundSchema: z.ZodType< PostWorkspaceEventsRequest, diff --git a/src/sdk/models/operations/revertsubscriptioncancellation.ts b/src/sdk/models/operations/revertsubscriptioncancellation.ts new file mode 100644 index 00000000..c166af72 --- /dev/null +++ b/src/sdk/models/operations/revertsubscriptioncancellation.ts @@ -0,0 +1,76 @@ +/* + * 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"; + +export type RevertSubscriptionCancellationSecurity = { + apiKey?: string | undefined; + bearer?: string | undefined; + workspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const RevertSubscriptionCancellationSecurity$inboundSchema: z.ZodType< + RevertSubscriptionCancellationSecurity, + z.ZodTypeDef, + unknown +> = z.object({ + APIKey: z.string().optional(), + Bearer: z.string().optional(), + WorkspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "APIKey": "apiKey", + "Bearer": "bearer", + "WorkspaceIdentifier": "workspaceIdentifier", + }); +}); +/** @internal */ +export type RevertSubscriptionCancellationSecurity$Outbound = { + APIKey?: string | undefined; + Bearer?: string | undefined; + WorkspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const RevertSubscriptionCancellationSecurity$outboundSchema: z.ZodType< + RevertSubscriptionCancellationSecurity$Outbound, + z.ZodTypeDef, + RevertSubscriptionCancellationSecurity +> = z.object({ + apiKey: z.string().optional(), + bearer: z.string().optional(), + workspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + apiKey: "APIKey", + bearer: "Bearer", + workspaceIdentifier: "WorkspaceIdentifier", + }); +}); + +export function revertSubscriptionCancellationSecurityToJSON( + revertSubscriptionCancellationSecurity: + RevertSubscriptionCancellationSecurity, +): string { + return JSON.stringify( + RevertSubscriptionCancellationSecurity$outboundSchema.parse( + revertSubscriptionCancellationSecurity, + ), + ); +} +export function revertSubscriptionCancellationSecurityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + RevertSubscriptionCancellationSecurity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'RevertSubscriptionCancellationSecurity' from JSON`, + ); +} diff --git a/src/sdk/models/operations/revokeuseraccesstoworkspace.ts b/src/sdk/models/operations/revokeuseraccesstoworkspace.ts index cd76fd0e..b45c20cc 100644 --- a/src/sdk/models/operations/revokeuseraccesstoworkspace.ts +++ b/src/sdk/models/operations/revokeuseraccesstoworkspace.ts @@ -12,6 +12,12 @@ export type RevokeUserAccessToWorkspaceGlobals = { workspaceId?: string | undefined; }; +export type RevokeUserAccessToWorkspaceSecurity = { + apiKey?: string | undefined; + bearer?: string | undefined; + workspaceIdentifier?: string | undefined; +}; + export type RevokeUserAccessToWorkspaceRequest = { /** * Unique identifier of the workspace. @@ -73,6 +79,66 @@ export function revokeUserAccessToWorkspaceGlobalsFromJSON( ); } +/** @internal */ +export const RevokeUserAccessToWorkspaceSecurity$inboundSchema: z.ZodType< + RevokeUserAccessToWorkspaceSecurity, + z.ZodTypeDef, + unknown +> = z.object({ + APIKey: z.string().optional(), + Bearer: z.string().optional(), + WorkspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "APIKey": "apiKey", + "Bearer": "bearer", + "WorkspaceIdentifier": "workspaceIdentifier", + }); +}); +/** @internal */ +export type RevokeUserAccessToWorkspaceSecurity$Outbound = { + APIKey?: string | undefined; + Bearer?: string | undefined; + WorkspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const RevokeUserAccessToWorkspaceSecurity$outboundSchema: z.ZodType< + RevokeUserAccessToWorkspaceSecurity$Outbound, + z.ZodTypeDef, + RevokeUserAccessToWorkspaceSecurity +> = z.object({ + apiKey: z.string().optional(), + bearer: z.string().optional(), + workspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + apiKey: "APIKey", + bearer: "Bearer", + workspaceIdentifier: "WorkspaceIdentifier", + }); +}); + +export function revokeUserAccessToWorkspaceSecurityToJSON( + revokeUserAccessToWorkspaceSecurity: RevokeUserAccessToWorkspaceSecurity, +): string { + return JSON.stringify( + RevokeUserAccessToWorkspaceSecurity$outboundSchema.parse( + revokeUserAccessToWorkspaceSecurity, + ), + ); +} +export function revokeUserAccessToWorkspaceSecurityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + RevokeUserAccessToWorkspaceSecurity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'RevokeUserAccessToWorkspaceSecurity' from JSON`, + ); +} + /** @internal */ export const RevokeUserAccessToWorkspaceRequest$inboundSchema: z.ZodType< RevokeUserAccessToWorkspaceRequest, diff --git a/src/sdk/models/operations/searchworkspaceevents.ts b/src/sdk/models/operations/searchworkspaceevents.ts index 51172e14..1454f644 100644 --- a/src/sdk/models/operations/searchworkspaceevents.ts +++ b/src/sdk/models/operations/searchworkspaceevents.ts @@ -13,6 +13,12 @@ export type SearchWorkspaceEventsGlobals = { workspaceId?: string | undefined; }; +export type SearchWorkspaceEventsSecurity = { + apiKey?: string | undefined; + bearer?: string | undefined; + workspaceIdentifier?: string | undefined; +}; + export type SearchWorkspaceEventsRequest = { /** * Unique identifier of the workspace. @@ -101,6 +107,65 @@ export function searchWorkspaceEventsGlobalsFromJSON( ); } +/** @internal */ +export const SearchWorkspaceEventsSecurity$inboundSchema: z.ZodType< + SearchWorkspaceEventsSecurity, + z.ZodTypeDef, + unknown +> = z.object({ + APIKey: z.string().optional(), + Bearer: z.string().optional(), + WorkspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "APIKey": "apiKey", + "Bearer": "bearer", + "WorkspaceIdentifier": "workspaceIdentifier", + }); +}); +/** @internal */ +export type SearchWorkspaceEventsSecurity$Outbound = { + APIKey?: string | undefined; + Bearer?: string | undefined; + WorkspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const SearchWorkspaceEventsSecurity$outboundSchema: z.ZodType< + SearchWorkspaceEventsSecurity$Outbound, + z.ZodTypeDef, + SearchWorkspaceEventsSecurity +> = z.object({ + apiKey: z.string().optional(), + bearer: z.string().optional(), + workspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + apiKey: "APIKey", + bearer: "Bearer", + workspaceIdentifier: "WorkspaceIdentifier", + }); +}); + +export function searchWorkspaceEventsSecurityToJSON( + searchWorkspaceEventsSecurity: SearchWorkspaceEventsSecurity, +): string { + return JSON.stringify( + SearchWorkspaceEventsSecurity$outboundSchema.parse( + searchWorkspaceEventsSecurity, + ), + ); +} +export function searchWorkspaceEventsSecurityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => SearchWorkspaceEventsSecurity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'SearchWorkspaceEventsSecurity' from JSON`, + ); +} + /** @internal */ export const SearchWorkspaceEventsRequest$inboundSchema: z.ZodType< SearchWorkspaceEventsRequest, diff --git a/src/sdk/models/operations/setworkspacefeatureflags.ts b/src/sdk/models/operations/setworkspacefeatureflags.ts new file mode 100644 index 00000000..58ab8829 --- /dev/null +++ b/src/sdk/models/operations/setworkspacefeatureflags.ts @@ -0,0 +1,74 @@ +/* + * 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"; + +export type SetWorkspaceFeatureFlagsSecurity = { + apiKey?: string | undefined; + bearer?: string | undefined; + workspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const SetWorkspaceFeatureFlagsSecurity$inboundSchema: z.ZodType< + SetWorkspaceFeatureFlagsSecurity, + z.ZodTypeDef, + unknown +> = z.object({ + APIKey: z.string().optional(), + Bearer: z.string().optional(), + WorkspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "APIKey": "apiKey", + "Bearer": "bearer", + "WorkspaceIdentifier": "workspaceIdentifier", + }); +}); +/** @internal */ +export type SetWorkspaceFeatureFlagsSecurity$Outbound = { + APIKey?: string | undefined; + Bearer?: string | undefined; + WorkspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const SetWorkspaceFeatureFlagsSecurity$outboundSchema: z.ZodType< + SetWorkspaceFeatureFlagsSecurity$Outbound, + z.ZodTypeDef, + SetWorkspaceFeatureFlagsSecurity +> = z.object({ + apiKey: z.string().optional(), + bearer: z.string().optional(), + workspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + apiKey: "APIKey", + bearer: "Bearer", + workspaceIdentifier: "WorkspaceIdentifier", + }); +}); + +export function setWorkspaceFeatureFlagsSecurityToJSON( + setWorkspaceFeatureFlagsSecurity: SetWorkspaceFeatureFlagsSecurity, +): string { + return JSON.stringify( + SetWorkspaceFeatureFlagsSecurity$outboundSchema.parse( + setWorkspaceFeatureFlagsSecurity, + ), + ); +} +export function setWorkspaceFeatureFlagsSecurityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => SetWorkspaceFeatureFlagsSecurity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'SetWorkspaceFeatureFlagsSecurity' from JSON`, + ); +} diff --git a/src/sdk/models/operations/suggest.ts b/src/sdk/models/operations/suggest.ts index c702be55..2a652f4b 100644 --- a/src/sdk/models/operations/suggest.ts +++ b/src/sdk/models/operations/suggest.ts @@ -9,6 +9,12 @@ import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; +export type SuggestSecurity = { + apiKey?: string | undefined; + bearer?: string | undefined; + workspaceIdentifier?: string | undefined; +}; + export type SuggestRequest = { xSessionId: string; /** @@ -17,6 +23,61 @@ export type SuggestRequest = { suggestRequestBody: shared.SuggestRequestBody; }; +/** @internal */ +export const SuggestSecurity$inboundSchema: z.ZodType< + SuggestSecurity, + z.ZodTypeDef, + unknown +> = z.object({ + APIKey: z.string().optional(), + Bearer: z.string().optional(), + WorkspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "APIKey": "apiKey", + "Bearer": "bearer", + "WorkspaceIdentifier": "workspaceIdentifier", + }); +}); +/** @internal */ +export type SuggestSecurity$Outbound = { + APIKey?: string | undefined; + Bearer?: string | undefined; + WorkspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const SuggestSecurity$outboundSchema: z.ZodType< + SuggestSecurity$Outbound, + z.ZodTypeDef, + SuggestSecurity +> = z.object({ + apiKey: z.string().optional(), + bearer: z.string().optional(), + workspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + apiKey: "APIKey", + bearer: "Bearer", + workspaceIdentifier: "WorkspaceIdentifier", + }); +}); + +export function suggestSecurityToJSON( + suggestSecurity: SuggestSecurity, +): string { + return JSON.stringify(SuggestSecurity$outboundSchema.parse(suggestSecurity)); +} +export function suggestSecurityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => SuggestSecurity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'SuggestSecurity' from JSON`, + ); +} + /** @internal */ export const SuggestRequest$inboundSchema: z.ZodType< SuggestRequest, diff --git a/src/sdk/models/operations/suggestitems.ts b/src/sdk/models/operations/suggestitems.ts new file mode 100644 index 00000000..52826464 --- /dev/null +++ b/src/sdk/models/operations/suggestitems.ts @@ -0,0 +1,72 @@ +/* + * 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"; + +export type SuggestItemsSecurity = { + apiKey?: string | undefined; + bearer?: string | undefined; + workspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const SuggestItemsSecurity$inboundSchema: z.ZodType< + SuggestItemsSecurity, + z.ZodTypeDef, + unknown +> = z.object({ + APIKey: z.string().optional(), + Bearer: z.string().optional(), + WorkspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "APIKey": "apiKey", + "Bearer": "bearer", + "WorkspaceIdentifier": "workspaceIdentifier", + }); +}); +/** @internal */ +export type SuggestItemsSecurity$Outbound = { + APIKey?: string | undefined; + Bearer?: string | undefined; + WorkspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const SuggestItemsSecurity$outboundSchema: z.ZodType< + SuggestItemsSecurity$Outbound, + z.ZodTypeDef, + SuggestItemsSecurity +> = z.object({ + apiKey: z.string().optional(), + bearer: z.string().optional(), + workspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + apiKey: "APIKey", + bearer: "Bearer", + workspaceIdentifier: "WorkspaceIdentifier", + }); +}); + +export function suggestItemsSecurityToJSON( + suggestItemsSecurity: SuggestItemsSecurity, +): string { + return JSON.stringify( + SuggestItemsSecurity$outboundSchema.parse(suggestItemsSecurity), + ); +} +export function suggestItemsSecurityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => SuggestItemsSecurity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'SuggestItemsSecurity' from JSON`, + ); +} diff --git a/src/sdk/models/operations/suggestopenapi.ts b/src/sdk/models/operations/suggestopenapi.ts index a930fbc6..1f5179f2 100644 --- a/src/sdk/models/operations/suggestopenapi.ts +++ b/src/sdk/models/operations/suggestopenapi.ts @@ -10,6 +10,12 @@ import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; +export type SuggestOpenAPISecurity = { + apiKey?: string | undefined; + bearer?: string | undefined; + workspaceIdentifier?: string | undefined; +}; + export type Schema = { content: ReadableStream | Blob | ArrayBuffer | Uint8Array; fileName: string; @@ -31,6 +37,63 @@ export type SuggestOpenAPIRequest = { requestBody: SuggestOpenAPIRequestBody; }; +/** @internal */ +export const SuggestOpenAPISecurity$inboundSchema: z.ZodType< + SuggestOpenAPISecurity, + z.ZodTypeDef, + unknown +> = z.object({ + APIKey: z.string().optional(), + Bearer: z.string().optional(), + WorkspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "APIKey": "apiKey", + "Bearer": "bearer", + "WorkspaceIdentifier": "workspaceIdentifier", + }); +}); +/** @internal */ +export type SuggestOpenAPISecurity$Outbound = { + APIKey?: string | undefined; + Bearer?: string | undefined; + WorkspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const SuggestOpenAPISecurity$outboundSchema: z.ZodType< + SuggestOpenAPISecurity$Outbound, + z.ZodTypeDef, + SuggestOpenAPISecurity +> = z.object({ + apiKey: z.string().optional(), + bearer: z.string().optional(), + workspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + apiKey: "APIKey", + bearer: "Bearer", + workspaceIdentifier: "WorkspaceIdentifier", + }); +}); + +export function suggestOpenAPISecurityToJSON( + suggestOpenAPISecurity: SuggestOpenAPISecurity, +): string { + return JSON.stringify( + SuggestOpenAPISecurity$outboundSchema.parse(suggestOpenAPISecurity), + ); +} +export function suggestOpenAPISecurityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => SuggestOpenAPISecurity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'SuggestOpenAPISecurity' from JSON`, + ); +} + /** @internal */ export const Schema$inboundSchema: z.ZodType = z .object({ diff --git a/src/sdk/models/operations/suggestopenapiregistry.ts b/src/sdk/models/operations/suggestopenapiregistry.ts index d6a454dc..5d814ebb 100644 --- a/src/sdk/models/operations/suggestopenapiregistry.ts +++ b/src/sdk/models/operations/suggestopenapiregistry.ts @@ -9,6 +9,12 @@ import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; +export type SuggestOpenAPIRegistrySecurity = { + apiKey?: string | undefined; + bearer?: string | undefined; + workspaceIdentifier?: string | undefined; +}; + export type SuggestOpenAPIRegistryRequest = { xSessionId: string; namespaceName: string; @@ -22,6 +28,65 @@ export type SuggestOpenAPIRegistryRequest = { suggestRequestBody?: shared.SuggestRequestBody | undefined; }; +/** @internal */ +export const SuggestOpenAPIRegistrySecurity$inboundSchema: z.ZodType< + SuggestOpenAPIRegistrySecurity, + z.ZodTypeDef, + unknown +> = z.object({ + APIKey: z.string().optional(), + Bearer: z.string().optional(), + WorkspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "APIKey": "apiKey", + "Bearer": "bearer", + "WorkspaceIdentifier": "workspaceIdentifier", + }); +}); +/** @internal */ +export type SuggestOpenAPIRegistrySecurity$Outbound = { + APIKey?: string | undefined; + Bearer?: string | undefined; + WorkspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const SuggestOpenAPIRegistrySecurity$outboundSchema: z.ZodType< + SuggestOpenAPIRegistrySecurity$Outbound, + z.ZodTypeDef, + SuggestOpenAPIRegistrySecurity +> = z.object({ + apiKey: z.string().optional(), + bearer: z.string().optional(), + workspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + apiKey: "APIKey", + bearer: "Bearer", + workspaceIdentifier: "WorkspaceIdentifier", + }); +}); + +export function suggestOpenAPIRegistrySecurityToJSON( + suggestOpenAPIRegistrySecurity: SuggestOpenAPIRegistrySecurity, +): string { + return JSON.stringify( + SuggestOpenAPIRegistrySecurity$outboundSchema.parse( + suggestOpenAPIRegistrySecurity, + ), + ); +} +export function suggestOpenAPIRegistrySecurityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => SuggestOpenAPIRegistrySecurity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'SuggestOpenAPIRegistrySecurity' from JSON`, + ); +} + /** @internal */ export const SuggestOpenAPIRegistryRequest$inboundSchema: z.ZodType< SuggestOpenAPIRegistryRequest, diff --git a/src/sdk/models/operations/updatepublishingtokenexpiration.ts b/src/sdk/models/operations/updatepublishingtokenexpiration.ts index 44a6c79d..901d385b 100644 --- a/src/sdk/models/operations/updatepublishingtokenexpiration.ts +++ b/src/sdk/models/operations/updatepublishingtokenexpiration.ts @@ -8,6 +8,12 @@ import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +export type UpdatePublishingTokenExpirationSecurity = { + apiKey?: string | undefined; + bearer?: string | undefined; + workspaceIdentifier?: string | undefined; +}; + /** * The publishing token to update */ @@ -33,6 +39,72 @@ export type UpdatePublishingTokenExpirationRequest = { requestBody?: UpdatePublishingTokenExpirationRequestBody | undefined; }; +/** @internal */ +export const UpdatePublishingTokenExpirationSecurity$inboundSchema: z.ZodType< + UpdatePublishingTokenExpirationSecurity, + z.ZodTypeDef, + unknown +> = z.object({ + APIKey: z.string().optional(), + Bearer: z.string().optional(), + WorkspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "APIKey": "apiKey", + "Bearer": "bearer", + "WorkspaceIdentifier": "workspaceIdentifier", + }); +}); +/** @internal */ +export type UpdatePublishingTokenExpirationSecurity$Outbound = { + APIKey?: string | undefined; + Bearer?: string | undefined; + WorkspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const UpdatePublishingTokenExpirationSecurity$outboundSchema: z.ZodType< + UpdatePublishingTokenExpirationSecurity$Outbound, + z.ZodTypeDef, + UpdatePublishingTokenExpirationSecurity +> = z.object({ + apiKey: z.string().optional(), + bearer: z.string().optional(), + workspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + apiKey: "APIKey", + bearer: "Bearer", + workspaceIdentifier: "WorkspaceIdentifier", + }); +}); + +export function updatePublishingTokenExpirationSecurityToJSON( + updatePublishingTokenExpirationSecurity: + UpdatePublishingTokenExpirationSecurity, +): string { + return JSON.stringify( + UpdatePublishingTokenExpirationSecurity$outboundSchema.parse( + updatePublishingTokenExpirationSecurity, + ), + ); +} +export function updatePublishingTokenExpirationSecurityFromJSON( + jsonString: string, +): SafeParseResult< + UpdatePublishingTokenExpirationSecurity, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + UpdatePublishingTokenExpirationSecurity$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'UpdatePublishingTokenExpirationSecurity' from JSON`, + ); +} + /** @internal */ export const UpdatePublishingTokenExpirationRequestBody$inboundSchema: z.ZodType = diff --git a/src/sdk/models/operations/updateworkspacedetails.ts b/src/sdk/models/operations/updateworkspacedetails.ts index 625921bc..893fa0df 100644 --- a/src/sdk/models/operations/updateworkspacedetails.ts +++ b/src/sdk/models/operations/updateworkspacedetails.ts @@ -13,6 +13,12 @@ export type UpdateWorkspaceDetailsGlobals = { workspaceId?: string | undefined; }; +export type UpdateWorkspaceDetailsSecurity = { + apiKey?: string | undefined; + bearer?: string | undefined; + workspaceIdentifier?: string | undefined; +}; + export type UpdateWorkspaceDetailsRequest = { /** * Unique identifier of the workspace. @@ -73,6 +79,65 @@ export function updateWorkspaceDetailsGlobalsFromJSON( ); } +/** @internal */ +export const UpdateWorkspaceDetailsSecurity$inboundSchema: z.ZodType< + UpdateWorkspaceDetailsSecurity, + z.ZodTypeDef, + unknown +> = z.object({ + APIKey: z.string().optional(), + Bearer: z.string().optional(), + WorkspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "APIKey": "apiKey", + "Bearer": "bearer", + "WorkspaceIdentifier": "workspaceIdentifier", + }); +}); +/** @internal */ +export type UpdateWorkspaceDetailsSecurity$Outbound = { + APIKey?: string | undefined; + Bearer?: string | undefined; + WorkspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const UpdateWorkspaceDetailsSecurity$outboundSchema: z.ZodType< + UpdateWorkspaceDetailsSecurity$Outbound, + z.ZodTypeDef, + UpdateWorkspaceDetailsSecurity +> = z.object({ + apiKey: z.string().optional(), + bearer: z.string().optional(), + workspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + apiKey: "APIKey", + bearer: "Bearer", + workspaceIdentifier: "WorkspaceIdentifier", + }); +}); + +export function updateWorkspaceDetailsSecurityToJSON( + updateWorkspaceDetailsSecurity: UpdateWorkspaceDetailsSecurity, +): string { + return JSON.stringify( + UpdateWorkspaceDetailsSecurity$outboundSchema.parse( + updateWorkspaceDetailsSecurity, + ), + ); +} +export function updateWorkspaceDetailsSecurityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UpdateWorkspaceDetailsSecurity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UpdateWorkspaceDetailsSecurity' from JSON`, + ); +} + /** @internal */ export const UpdateWorkspaceDetailsRequest$inboundSchema: z.ZodType< UpdateWorkspaceDetailsRequest, diff --git a/src/sdk/models/operations/updateworkspacesettings.ts b/src/sdk/models/operations/updateworkspacesettings.ts index 0736d5ea..2208a87a 100644 --- a/src/sdk/models/operations/updateworkspacesettings.ts +++ b/src/sdk/models/operations/updateworkspacesettings.ts @@ -13,6 +13,12 @@ export type UpdateWorkspaceSettingsGlobals = { workspaceId?: string | undefined; }; +export type UpdateWorkspaceSettingsSecurity = { + apiKey?: string | undefined; + bearer?: string | undefined; + workspaceIdentifier?: string | undefined; +}; + export type UpdateWorkspaceSettingsRequest = { /** * Unique identifier of the workspace. @@ -73,6 +79,65 @@ export function updateWorkspaceSettingsGlobalsFromJSON( ); } +/** @internal */ +export const UpdateWorkspaceSettingsSecurity$inboundSchema: z.ZodType< + UpdateWorkspaceSettingsSecurity, + z.ZodTypeDef, + unknown +> = z.object({ + APIKey: z.string().optional(), + Bearer: z.string().optional(), + WorkspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "APIKey": "apiKey", + "Bearer": "bearer", + "WorkspaceIdentifier": "workspaceIdentifier", + }); +}); +/** @internal */ +export type UpdateWorkspaceSettingsSecurity$Outbound = { + APIKey?: string | undefined; + Bearer?: string | undefined; + WorkspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const UpdateWorkspaceSettingsSecurity$outboundSchema: z.ZodType< + UpdateWorkspaceSettingsSecurity$Outbound, + z.ZodTypeDef, + UpdateWorkspaceSettingsSecurity +> = z.object({ + apiKey: z.string().optional(), + bearer: z.string().optional(), + workspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + apiKey: "APIKey", + bearer: "Bearer", + workspaceIdentifier: "WorkspaceIdentifier", + }); +}); + +export function updateWorkspaceSettingsSecurityToJSON( + updateWorkspaceSettingsSecurity: UpdateWorkspaceSettingsSecurity, +): string { + return JSON.stringify( + UpdateWorkspaceSettingsSecurity$outboundSchema.parse( + updateWorkspaceSettingsSecurity, + ), + ); +} +export function updateWorkspaceSettingsSecurityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UpdateWorkspaceSettingsSecurity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UpdateWorkspaceSettingsSecurity' from JSON`, + ); +} + /** @internal */ export const UpdateWorkspaceSettingsRequest$inboundSchema: z.ZodType< UpdateWorkspaceSettingsRequest, diff --git a/src/sdk/models/operations/uploadreport.ts b/src/sdk/models/operations/uploadreport.ts index 0e638bcb..273c38c3 100644 --- a/src/sdk/models/operations/uploadreport.ts +++ b/src/sdk/models/operations/uploadreport.ts @@ -3,12 +3,19 @@ */ 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"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as shared from "../shared/index.js"; +export type UploadReportSecurity = { + apiKey?: string | undefined; + bearer?: string | undefined; + workspaceIdentifier?: string | undefined; +}; + export type FileT = { content: ReadableStream | Blob | ArrayBuffer | Uint8Array; fileName: string; @@ -29,6 +36,63 @@ export type UploadReportUploadedReport = { url: string; }; +/** @internal */ +export const UploadReportSecurity$inboundSchema: z.ZodType< + UploadReportSecurity, + z.ZodTypeDef, + unknown +> = z.object({ + APIKey: z.string().optional(), + Bearer: z.string().optional(), + WorkspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "APIKey": "apiKey", + "Bearer": "bearer", + "WorkspaceIdentifier": "workspaceIdentifier", + }); +}); +/** @internal */ +export type UploadReportSecurity$Outbound = { + APIKey?: string | undefined; + Bearer?: string | undefined; + WorkspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const UploadReportSecurity$outboundSchema: z.ZodType< + UploadReportSecurity$Outbound, + z.ZodTypeDef, + UploadReportSecurity +> = z.object({ + apiKey: z.string().optional(), + bearer: z.string().optional(), + workspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + apiKey: "APIKey", + bearer: "Bearer", + workspaceIdentifier: "WorkspaceIdentifier", + }); +}); + +export function uploadReportSecurityToJSON( + uploadReportSecurity: UploadReportSecurity, +): string { + return JSON.stringify( + UploadReportSecurity$outboundSchema.parse(uploadReportSecurity), + ); +} +export function uploadReportSecurityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UploadReportSecurity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UploadReportSecurity' from JSON`, + ); +} + /** @internal */ export const FileT$inboundSchema: z.ZodType = z .object({ diff --git a/src/sdk/models/operations/upsertbillingemail.ts b/src/sdk/models/operations/upsertbillingemail.ts new file mode 100644 index 00000000..1c5cf0d2 --- /dev/null +++ b/src/sdk/models/operations/upsertbillingemail.ts @@ -0,0 +1,72 @@ +/* + * 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"; + +export type UpsertBillingEmailSecurity = { + apiKey?: string | undefined; + bearer?: string | undefined; + workspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const UpsertBillingEmailSecurity$inboundSchema: z.ZodType< + UpsertBillingEmailSecurity, + z.ZodTypeDef, + unknown +> = z.object({ + APIKey: z.string().optional(), + Bearer: z.string().optional(), + WorkspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "APIKey": "apiKey", + "Bearer": "bearer", + "WorkspaceIdentifier": "workspaceIdentifier", + }); +}); +/** @internal */ +export type UpsertBillingEmailSecurity$Outbound = { + APIKey?: string | undefined; + Bearer?: string | undefined; + WorkspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const UpsertBillingEmailSecurity$outboundSchema: z.ZodType< + UpsertBillingEmailSecurity$Outbound, + z.ZodTypeDef, + UpsertBillingEmailSecurity +> = z.object({ + apiKey: z.string().optional(), + bearer: z.string().optional(), + workspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + apiKey: "APIKey", + bearer: "Bearer", + workspaceIdentifier: "WorkspaceIdentifier", + }); +}); + +export function upsertBillingEmailSecurityToJSON( + upsertBillingEmailSecurity: UpsertBillingEmailSecurity, +): string { + return JSON.stringify( + UpsertBillingEmailSecurity$outboundSchema.parse(upsertBillingEmailSecurity), + ); +} +export function upsertBillingEmailSecurityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UpsertBillingEmailSecurity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UpsertBillingEmailSecurity' from JSON`, + ); +} diff --git a/src/sdk/models/operations/validateapikey.ts b/src/sdk/models/operations/validateapikey.ts new file mode 100644 index 00000000..11bd0daa --- /dev/null +++ b/src/sdk/models/operations/validateapikey.ts @@ -0,0 +1,72 @@ +/* + * 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"; + +export type ValidateApiKeySecurity = { + apiKey?: string | undefined; + bearer?: string | undefined; + workspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const ValidateApiKeySecurity$inboundSchema: z.ZodType< + ValidateApiKeySecurity, + z.ZodTypeDef, + unknown +> = z.object({ + APIKey: z.string().optional(), + Bearer: z.string().optional(), + WorkspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "APIKey": "apiKey", + "Bearer": "bearer", + "WorkspaceIdentifier": "workspaceIdentifier", + }); +}); +/** @internal */ +export type ValidateApiKeySecurity$Outbound = { + APIKey?: string | undefined; + Bearer?: string | undefined; + WorkspaceIdentifier?: string | undefined; +}; + +/** @internal */ +export const ValidateApiKeySecurity$outboundSchema: z.ZodType< + ValidateApiKeySecurity$Outbound, + z.ZodTypeDef, + ValidateApiKeySecurity +> = z.object({ + apiKey: z.string().optional(), + bearer: z.string().optional(), + workspaceIdentifier: z.string().optional(), +}).transform((v) => { + return remap$(v, { + apiKey: "APIKey", + bearer: "Bearer", + workspaceIdentifier: "WorkspaceIdentifier", + }); +}); + +export function validateApiKeySecurityToJSON( + validateApiKeySecurity: ValidateApiKeySecurity, +): string { + return JSON.stringify( + ValidateApiKeySecurity$outboundSchema.parse(validateApiKeySecurity), + ); +} +export function validateApiKeySecurityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ValidateApiKeySecurity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ValidateApiKeySecurity' from JSON`, + ); +} diff --git a/src/sdk/models/shared/billingemailrequest.ts b/src/sdk/models/shared/billingemailrequest.ts new file mode 100644 index 00000000..5563c388 --- /dev/null +++ b/src/sdk/models/shared/billingemailrequest.ts @@ -0,0 +1,63 @@ +/* + * 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"; + +export type BillingEmailRequest = { + /** + * The billing email address to set + */ + billingEmail: string; +}; + +/** @internal */ +export const BillingEmailRequest$inboundSchema: z.ZodType< + BillingEmailRequest, + z.ZodTypeDef, + unknown +> = z.object({ + billing_email: z.string(), +}).transform((v) => { + return remap$(v, { + "billing_email": "billingEmail", + }); +}); +/** @internal */ +export type BillingEmailRequest$Outbound = { + billing_email: string; +}; + +/** @internal */ +export const BillingEmailRequest$outboundSchema: z.ZodType< + BillingEmailRequest$Outbound, + z.ZodTypeDef, + BillingEmailRequest +> = z.object({ + billingEmail: z.string(), +}).transform((v) => { + return remap$(v, { + billingEmail: "billing_email", + }); +}); + +export function billingEmailRequestToJSON( + billingEmailRequest: BillingEmailRequest, +): string { + return JSON.stringify( + BillingEmailRequest$outboundSchema.parse(billingEmailRequest), + ); +} +export function billingEmailRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => BillingEmailRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'BillingEmailRequest' from JSON`, + ); +} diff --git a/src/sdk/models/shared/billingemailresponse.ts b/src/sdk/models/shared/billingemailresponse.ts new file mode 100644 index 00000000..1c9e32eb --- /dev/null +++ b/src/sdk/models/shared/billingemailresponse.ts @@ -0,0 +1,72 @@ +/* + * 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"; + +export type BillingEmailResponse = { + /** + * The current billing email address (empty if no Stripe customer) + */ + billingEmail?: string | undefined; + /** + * Whether the organization has a linked Stripe customer + */ + hasStripeCustomer: boolean; +}; + +/** @internal */ +export const BillingEmailResponse$inboundSchema: z.ZodType< + BillingEmailResponse, + z.ZodTypeDef, + unknown +> = z.object({ + billing_email: z.string().optional(), + has_stripe_customer: z.boolean(), +}).transform((v) => { + return remap$(v, { + "billing_email": "billingEmail", + "has_stripe_customer": "hasStripeCustomer", + }); +}); +/** @internal */ +export type BillingEmailResponse$Outbound = { + billing_email?: string | undefined; + has_stripe_customer: boolean; +}; + +/** @internal */ +export const BillingEmailResponse$outboundSchema: z.ZodType< + BillingEmailResponse$Outbound, + z.ZodTypeDef, + BillingEmailResponse +> = z.object({ + billingEmail: z.string().optional(), + hasStripeCustomer: z.boolean(), +}).transform((v) => { + return remap$(v, { + billingEmail: "billing_email", + hasStripeCustomer: "has_stripe_customer", + }); +}); + +export function billingEmailResponseToJSON( + billingEmailResponse: BillingEmailResponse, +): string { + return JSON.stringify( + BillingEmailResponse$outboundSchema.parse(billingEmailResponse), + ); +} +export function billingEmailResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => BillingEmailResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'BillingEmailResponse' from JSON`, + ); +} diff --git a/src/sdk/models/shared/billingoperationsresponse.ts b/src/sdk/models/shared/billingoperationsresponse.ts index cc350339..1dd438b0 100644 --- a/src/sdk/models/shared/billingoperationsresponse.ts +++ b/src/sdk/models/shared/billingoperationsresponse.ts @@ -8,26 +8,26 @@ import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { - SpecBillingBreakdown, - SpecBillingBreakdown$inboundSchema, - SpecBillingBreakdown$Outbound, - SpecBillingBreakdown$outboundSchema, -} from "./specbillingbreakdown.js"; + LanguageBillingBreakdown, + LanguageBillingBreakdown$inboundSchema, + LanguageBillingBreakdown$Outbound, + LanguageBillingBreakdown$outboundSchema, +} from "./languagebillingbreakdown.js"; /** * Contains the billing operations breakdown for an organization */ export type BillingOperationsResponse = { /** - * Billing breakdown for each spec/namespace + * Billing breakdown for each language */ - specs: Array; + languages: Array; /** - * Total billable units (operations x targets per spec) + * Total billable units across all generated targets */ totalBillableUnits: number; /** - * Total count of unique operations across all specs + * Total count of unique operations across all languages */ totalUniqueOperations: number; }; @@ -38,7 +38,7 @@ export const BillingOperationsResponse$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - specs: z.array(SpecBillingBreakdown$inboundSchema), + languages: z.array(LanguageBillingBreakdown$inboundSchema), total_billable_units: z.number().int(), total_unique_operations: z.number().int(), }).transform((v) => { @@ -49,7 +49,7 @@ export const BillingOperationsResponse$inboundSchema: z.ZodType< }); /** @internal */ export type BillingOperationsResponse$Outbound = { - specs: Array; + languages: Array; total_billable_units: number; total_unique_operations: number; }; @@ -60,7 +60,7 @@ export const BillingOperationsResponse$outboundSchema: z.ZodType< z.ZodTypeDef, BillingOperationsResponse > = z.object({ - specs: z.array(SpecBillingBreakdown$outboundSchema), + languages: z.array(LanguageBillingBreakdown$outboundSchema), totalBillableUnits: z.number().int(), totalUniqueOperations: z.number().int(), }).transform((v) => { diff --git a/src/sdk/models/shared/businesstierpriceresponse.ts b/src/sdk/models/shared/businesstierpriceresponse.ts new file mode 100644 index 00000000..b5cc4a0a --- /dev/null +++ b/src/sdk/models/shared/businesstierpriceresponse.ts @@ -0,0 +1,95 @@ +/* + * 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"; + +export type BusinessTierPriceResponse = { + /** + * The currency code (e.g., usd) + */ + currency: string; + /** + * The billing interval (e.g., month) + */ + interval: string; + /** + * The Stripe price ID + */ + priceId: string; + /** + * The product name from Stripe + */ + productName: string; + /** + * The price amount in cents + */ + unitAmount: number; +}; + +/** @internal */ +export const BusinessTierPriceResponse$inboundSchema: z.ZodType< + BusinessTierPriceResponse, + z.ZodTypeDef, + unknown +> = z.object({ + currency: z.string(), + interval: z.string(), + price_id: z.string(), + product_name: z.string(), + unit_amount: z.number().int(), +}).transform((v) => { + return remap$(v, { + "price_id": "priceId", + "product_name": "productName", + "unit_amount": "unitAmount", + }); +}); +/** @internal */ +export type BusinessTierPriceResponse$Outbound = { + currency: string; + interval: string; + price_id: string; + product_name: string; + unit_amount: number; +}; + +/** @internal */ +export const BusinessTierPriceResponse$outboundSchema: z.ZodType< + BusinessTierPriceResponse$Outbound, + z.ZodTypeDef, + BusinessTierPriceResponse +> = z.object({ + currency: z.string(), + interval: z.string(), + priceId: z.string(), + productName: z.string(), + unitAmount: z.number().int(), +}).transform((v) => { + return remap$(v, { + priceId: "price_id", + productName: "product_name", + unitAmount: "unit_amount", + }); +}); + +export function businessTierPriceResponseToJSON( + businessTierPriceResponse: BusinessTierPriceResponse, +): string { + return JSON.stringify( + BusinessTierPriceResponse$outboundSchema.parse(businessTierPriceResponse), + ); +} +export function businessTierPriceResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => BusinessTierPriceResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'BusinessTierPriceResponse' from JSON`, + ); +} diff --git a/src/sdk/models/shared/businesstierpricesresponse.ts b/src/sdk/models/shared/businesstierpricesresponse.ts new file mode 100644 index 00000000..b08aa3b2 --- /dev/null +++ b/src/sdk/models/shared/businesstierpricesresponse.ts @@ -0,0 +1,61 @@ +/* + * 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"; +import { + BusinessTierPriceResponse, + BusinessTierPriceResponse$inboundSchema, + BusinessTierPriceResponse$Outbound, + BusinessTierPriceResponse$outboundSchema, +} from "./businesstierpriceresponse.js"; + +export type BusinessTierPricesResponse = { + annual: BusinessTierPriceResponse; + monthly: BusinessTierPriceResponse; +}; + +/** @internal */ +export const BusinessTierPricesResponse$inboundSchema: z.ZodType< + BusinessTierPricesResponse, + z.ZodTypeDef, + unknown +> = z.object({ + annual: BusinessTierPriceResponse$inboundSchema, + monthly: BusinessTierPriceResponse$inboundSchema, +}); +/** @internal */ +export type BusinessTierPricesResponse$Outbound = { + annual: BusinessTierPriceResponse$Outbound; + monthly: BusinessTierPriceResponse$Outbound; +}; + +/** @internal */ +export const BusinessTierPricesResponse$outboundSchema: z.ZodType< + BusinessTierPricesResponse$Outbound, + z.ZodTypeDef, + BusinessTierPricesResponse +> = z.object({ + annual: BusinessTierPriceResponse$outboundSchema, + monthly: BusinessTierPriceResponse$outboundSchema, +}); + +export function businessTierPricesResponseToJSON( + businessTierPricesResponse: BusinessTierPricesResponse, +): string { + return JSON.stringify( + BusinessTierPricesResponse$outboundSchema.parse(businessTierPricesResponse), + ); +} +export function businessTierPricesResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => BusinessTierPricesResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'BusinessTierPricesResponse' from JSON`, + ); +} diff --git a/src/sdk/models/shared/cancelsubscriptionrequest.ts b/src/sdk/models/shared/cancelsubscriptionrequest.ts new file mode 100644 index 00000000..40a3ba2d --- /dev/null +++ b/src/sdk/models/shared/cancelsubscriptionrequest.ts @@ -0,0 +1,63 @@ +/* + * 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"; + +export type CancelSubscriptionRequest = { + /** + * The gen_lock_id of the target to keep after downgrade to free tier. Omit when no active targets remain. + */ + targetToKeep?: string | undefined; +}; + +/** @internal */ +export const CancelSubscriptionRequest$inboundSchema: z.ZodType< + CancelSubscriptionRequest, + z.ZodTypeDef, + unknown +> = z.object({ + target_to_keep: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "target_to_keep": "targetToKeep", + }); +}); +/** @internal */ +export type CancelSubscriptionRequest$Outbound = { + target_to_keep?: string | undefined; +}; + +/** @internal */ +export const CancelSubscriptionRequest$outboundSchema: z.ZodType< + CancelSubscriptionRequest$Outbound, + z.ZodTypeDef, + CancelSubscriptionRequest +> = z.object({ + targetToKeep: z.string().optional(), +}).transform((v) => { + return remap$(v, { + targetToKeep: "target_to_keep", + }); +}); + +export function cancelSubscriptionRequestToJSON( + cancelSubscriptionRequest: CancelSubscriptionRequest, +): string { + return JSON.stringify( + CancelSubscriptionRequest$outboundSchema.parse(cancelSubscriptionRequest), + ); +} +export function cancelSubscriptionRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => CancelSubscriptionRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CancelSubscriptionRequest' from JSON`, + ); +} diff --git a/src/sdk/models/shared/cancelsubscriptionresponse.ts b/src/sdk/models/shared/cancelsubscriptionresponse.ts new file mode 100644 index 00000000..c42e6a00 --- /dev/null +++ b/src/sdk/models/shared/cancelsubscriptionresponse.ts @@ -0,0 +1,88 @@ +/* + * 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"; + +export type CancelSubscriptionResponse = { + /** + * When the cancellation takes effect (from Stripe current_period_end) + */ + effectiveAt?: Date | undefined; + /** + * Additional message about the operation + */ + message?: string | undefined; + /** + * Whether the operation was successful + */ + success: boolean; + /** + * The gen_lock_id of the target to keep + */ + targetToKeep?: string | undefined; +}; + +/** @internal */ +export const CancelSubscriptionResponse$inboundSchema: z.ZodType< + CancelSubscriptionResponse, + z.ZodTypeDef, + unknown +> = z.object({ + effective_at: z.string().datetime({ offset: true }).transform(v => + new Date(v) + ).optional(), + message: z.string().optional(), + success: z.boolean(), + target_to_keep: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "effective_at": "effectiveAt", + "target_to_keep": "targetToKeep", + }); +}); +/** @internal */ +export type CancelSubscriptionResponse$Outbound = { + effective_at?: string | undefined; + message?: string | undefined; + success: boolean; + target_to_keep?: string | undefined; +}; + +/** @internal */ +export const CancelSubscriptionResponse$outboundSchema: z.ZodType< + CancelSubscriptionResponse$Outbound, + z.ZodTypeDef, + CancelSubscriptionResponse +> = z.object({ + effectiveAt: z.date().transform(v => v.toISOString()).optional(), + message: z.string().optional(), + success: z.boolean(), + targetToKeep: z.string().optional(), +}).transform((v) => { + return remap$(v, { + effectiveAt: "effective_at", + targetToKeep: "target_to_keep", + }); +}); + +export function cancelSubscriptionResponseToJSON( + cancelSubscriptionResponse: CancelSubscriptionResponse, +): string { + return JSON.stringify( + CancelSubscriptionResponse$outboundSchema.parse(cancelSubscriptionResponse), + ); +} +export function cancelSubscriptionResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => CancelSubscriptionResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CancelSubscriptionResponse' from JSON`, + ); +} diff --git a/src/sdk/models/shared/createcheckoutsessionresponse.ts b/src/sdk/models/shared/createcheckoutsessionresponse.ts new file mode 100644 index 00000000..59b4add9 --- /dev/null +++ b/src/sdk/models/shared/createcheckoutsessionresponse.ts @@ -0,0 +1,74 @@ +/* + * 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"; + +export type CreateCheckoutSessionResponse = { + /** + * The Stripe checkout URL + */ + checkoutUrl: string; + /** + * The Stripe checkout session ID + */ + sessionId: string; +}; + +/** @internal */ +export const CreateCheckoutSessionResponse$inboundSchema: z.ZodType< + CreateCheckoutSessionResponse, + z.ZodTypeDef, + unknown +> = z.object({ + checkout_url: z.string(), + session_id: z.string(), +}).transform((v) => { + return remap$(v, { + "checkout_url": "checkoutUrl", + "session_id": "sessionId", + }); +}); +/** @internal */ +export type CreateCheckoutSessionResponse$Outbound = { + checkout_url: string; + session_id: string; +}; + +/** @internal */ +export const CreateCheckoutSessionResponse$outboundSchema: z.ZodType< + CreateCheckoutSessionResponse$Outbound, + z.ZodTypeDef, + CreateCheckoutSessionResponse +> = z.object({ + checkoutUrl: z.string(), + sessionId: z.string(), +}).transform((v) => { + return remap$(v, { + checkoutUrl: "checkout_url", + sessionId: "session_id", + }); +}); + +export function createCheckoutSessionResponseToJSON( + createCheckoutSessionResponse: CreateCheckoutSessionResponse, +): string { + return JSON.stringify( + CreateCheckoutSessionResponse$outboundSchema.parse( + createCheckoutSessionResponse, + ), + ); +} +export function createCheckoutSessionResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => CreateCheckoutSessionResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CreateCheckoutSessionResponse' from JSON`, + ); +} diff --git a/src/sdk/models/shared/createlanguagecheckoutsessionrequest.ts b/src/sdk/models/shared/createlanguagecheckoutsessionrequest.ts new file mode 100644 index 00000000..e53f93f7 --- /dev/null +++ b/src/sdk/models/shared/createlanguagecheckoutsessionrequest.ts @@ -0,0 +1,113 @@ +/* + * 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 { ClosedEnum } from "../../types/enums.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; + +/** + * Billing interval (defaults to month) + */ +export const BillingInterval = { + Month: "month", + Year: "year", +} as const; +/** + * Billing interval (defaults to month) + */ +export type BillingInterval = ClosedEnum; + +export type CreateLanguageCheckoutSessionRequest = { + /** + * Billing interval (defaults to month) + */ + billingInterval?: BillingInterval | undefined; + /** + * URL to redirect to if checkout is canceled + */ + cancelUrl: string; + /** + * List of languages to activate + */ + languages: Array; + /** + * URL to redirect to on successful checkout + */ + successUrl: string; +}; + +/** @internal */ +export const BillingInterval$inboundSchema: z.ZodNativeEnum< + typeof BillingInterval +> = z.nativeEnum(BillingInterval); +/** @internal */ +export const BillingInterval$outboundSchema: z.ZodNativeEnum< + typeof BillingInterval +> = BillingInterval$inboundSchema; + +/** @internal */ +export const CreateLanguageCheckoutSessionRequest$inboundSchema: z.ZodType< + CreateLanguageCheckoutSessionRequest, + z.ZodTypeDef, + unknown +> = z.object({ + billing_interval: BillingInterval$inboundSchema.optional(), + cancel_url: z.string(), + languages: z.array(z.string()), + success_url: z.string(), +}).transform((v) => { + return remap$(v, { + "billing_interval": "billingInterval", + "cancel_url": "cancelUrl", + "success_url": "successUrl", + }); +}); +/** @internal */ +export type CreateLanguageCheckoutSessionRequest$Outbound = { + billing_interval?: string | undefined; + cancel_url: string; + languages: Array; + success_url: string; +}; + +/** @internal */ +export const CreateLanguageCheckoutSessionRequest$outboundSchema: z.ZodType< + CreateLanguageCheckoutSessionRequest$Outbound, + z.ZodTypeDef, + CreateLanguageCheckoutSessionRequest +> = z.object({ + billingInterval: BillingInterval$outboundSchema.optional(), + cancelUrl: z.string(), + languages: z.array(z.string()), + successUrl: z.string(), +}).transform((v) => { + return remap$(v, { + billingInterval: "billing_interval", + cancelUrl: "cancel_url", + successUrl: "success_url", + }); +}); + +export function createLanguageCheckoutSessionRequestToJSON( + createLanguageCheckoutSessionRequest: CreateLanguageCheckoutSessionRequest, +): string { + return JSON.stringify( + CreateLanguageCheckoutSessionRequest$outboundSchema.parse( + createLanguageCheckoutSessionRequest, + ), + ); +} +export function createLanguageCheckoutSessionRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + CreateLanguageCheckoutSessionRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CreateLanguageCheckoutSessionRequest' from JSON`, + ); +} diff --git a/src/sdk/models/shared/getlanguagesresponse.ts b/src/sdk/models/shared/getlanguagesresponse.ts new file mode 100644 index 00000000..f7dd88eb --- /dev/null +++ b/src/sdk/models/shared/getlanguagesresponse.ts @@ -0,0 +1,60 @@ +/* + * 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"; +import { + LanguageResponse, + LanguageResponse$inboundSchema, + LanguageResponse$Outbound, + LanguageResponse$outboundSchema, +} from "./languageresponse.js"; + +export type GetLanguagesResponse = { + /** + * List of language billing configurations + */ + languages: Array; +}; + +/** @internal */ +export const GetLanguagesResponse$inboundSchema: z.ZodType< + GetLanguagesResponse, + z.ZodTypeDef, + unknown +> = z.object({ + languages: z.array(LanguageResponse$inboundSchema), +}); +/** @internal */ +export type GetLanguagesResponse$Outbound = { + languages: Array; +}; + +/** @internal */ +export const GetLanguagesResponse$outboundSchema: z.ZodType< + GetLanguagesResponse$Outbound, + z.ZodTypeDef, + GetLanguagesResponse +> = z.object({ + languages: z.array(LanguageResponse$outboundSchema), +}); + +export function getLanguagesResponseToJSON( + getLanguagesResponse: GetLanguagesResponse, +): string { + return JSON.stringify( + GetLanguagesResponse$outboundSchema.parse(getLanguagesResponse), + ); +} +export function getLanguagesResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => GetLanguagesResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GetLanguagesResponse' from JSON`, + ); +} diff --git a/src/sdk/models/shared/index.ts b/src/sdk/models/shared/index.ts index e39dc7f5..b2719ca0 100644 --- a/src/sdk/models/shared/index.ts +++ b/src/sdk/models/shared/index.ts @@ -9,12 +9,21 @@ export * from "./addtags.js"; export * from "./annotations.js"; export * from "./apikeydetails.js"; export * from "./billingaddon.js"; +export * from "./billingemailrequest.js"; +export * from "./billingemailresponse.js"; export * from "./billingoperationsresponse.js"; +export * from "./businesstierpriceresponse.js"; +export * from "./businesstierpricesresponse.js"; +export * from "./cancelsubscriptionrequest.js"; +export * from "./cancelsubscriptionresponse.js"; export * from "./clievent.js"; export * from "./codesampleschemainput.js"; export * from "./codesamplesjobstatus.js"; +export * from "./createcheckoutsessionresponse.js"; +export * from "./createlanguagecheckoutsessionrequest.js"; export * from "./diagnostic.js"; export * from "./featureflag.js"; +export * from "./getlanguagesresponse.js"; export * from "./getnamespacesresponse.js"; export * from "./getrevisionsresponse.js"; export * from "./gettagsresponse.js"; @@ -30,6 +39,10 @@ export * from "./githubstorepublishingsecretsrequest.js"; export * from "./githubtriggeractionrequest.js"; export * from "./httpmethod.js"; export * from "./interactiontype.js"; +export * from "./languageactivationresponse.js"; +export * from "./languagebillingbreakdown.js"; +export * from "./languagebillingstatus.js"; +export * from "./languageresponse.js"; export * from "./manifest.js"; export * from "./namespace.js"; export * from "./oasinfo.js"; @@ -38,8 +51,10 @@ export * from "./oassummary.js"; export * from "./organization.js"; export * from "./organizationbillingaddonrequest.js"; export * from "./organizationbillingaddonresponse.js"; +export * from "./organizationsubscriptionresponse.js"; export * from "./organizationusage.js"; export * from "./organizationusageresponse.js"; +export * from "./pendingcancellationinfo.js"; export * from "./preflightrequest.js"; export * from "./preflighttoken.js"; export * from "./publishingtoken.js"; @@ -54,7 +69,6 @@ export * from "./schemastoreitem.js"; export * from "./security.js"; export * from "./server.js"; export * from "./shorturl.js"; -export * from "./specbillingbreakdown.js"; export * from "./ssometadata.js"; export * from "./suggestitemsrequestbody.js"; export * from "./suggestoptsold.js"; @@ -64,6 +78,7 @@ export * from "./targetbillingbreakdown.js"; export * from "./targetsdk.js"; export * from "./targetsdksummary.js"; export * from "./targetssummarypage.js"; +export * from "./trialtargetsresponse.js"; export * from "./usagesnippet.js"; export * from "./usagesnippets.js"; export * from "./user.js"; diff --git a/src/sdk/models/shared/languageactivationresponse.ts b/src/sdk/models/shared/languageactivationresponse.ts new file mode 100644 index 00000000..3870001a --- /dev/null +++ b/src/sdk/models/shared/languageactivationresponse.ts @@ -0,0 +1,105 @@ +/* + * 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"; +import { + LanguageBillingStatus, + LanguageBillingStatus$inboundSchema, + LanguageBillingStatus$outboundSchema, +} from "./languagebillingstatus.js"; + +export type LanguageActivationResponse = { + /** + * The billing status of a language + */ + billingStatus?: LanguageBillingStatus | undefined; + /** + * Whether the language is deactivated + */ + deactivated: boolean; + /** + * The target language + */ + language: string; + /** + * Additional message about the operation + */ + message?: string | undefined; + /** + * If true, user must complete checkout + */ + requiresCheckout?: boolean | undefined; + /** + * Whether the operation was successful + */ + success: boolean; +}; + +/** @internal */ +export const LanguageActivationResponse$inboundSchema: z.ZodType< + LanguageActivationResponse, + z.ZodTypeDef, + unknown +> = z.object({ + billing_status: LanguageBillingStatus$inboundSchema.optional(), + deactivated: z.boolean(), + language: z.string(), + message: z.string().optional(), + requires_checkout: z.boolean().optional(), + success: z.boolean(), +}).transform((v) => { + return remap$(v, { + "billing_status": "billingStatus", + "requires_checkout": "requiresCheckout", + }); +}); +/** @internal */ +export type LanguageActivationResponse$Outbound = { + billing_status?: string | undefined; + deactivated: boolean; + language: string; + message?: string | undefined; + requires_checkout?: boolean | undefined; + success: boolean; +}; + +/** @internal */ +export const LanguageActivationResponse$outboundSchema: z.ZodType< + LanguageActivationResponse$Outbound, + z.ZodTypeDef, + LanguageActivationResponse +> = z.object({ + billingStatus: LanguageBillingStatus$outboundSchema.optional(), + deactivated: z.boolean(), + language: z.string(), + message: z.string().optional(), + requiresCheckout: z.boolean().optional(), + success: z.boolean(), +}).transform((v) => { + return remap$(v, { + billingStatus: "billing_status", + requiresCheckout: "requires_checkout", + }); +}); + +export function languageActivationResponseToJSON( + languageActivationResponse: LanguageActivationResponse, +): string { + return JSON.stringify( + LanguageActivationResponse$outboundSchema.parse(languageActivationResponse), + ); +} +export function languageActivationResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => LanguageActivationResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'LanguageActivationResponse' from JSON`, + ); +} diff --git a/src/sdk/models/shared/specbillingbreakdown.ts b/src/sdk/models/shared/languagebillingbreakdown.ts similarity index 52% rename from src/sdk/models/shared/specbillingbreakdown.ts rename to src/sdk/models/shared/languagebillingbreakdown.ts index 3d6d4f64..08d6fc47 100644 --- a/src/sdk/models/shared/specbillingbreakdown.ts +++ b/src/sdk/models/shared/languagebillingbreakdown.ts @@ -15,108 +15,90 @@ import { } from "./targetbillingbreakdown.js"; /** - * Contains the billing breakdown for a single spec/namespace + * Contains the billing breakdown for a single language */ -export type SpecBillingBreakdown = { +export type LanguageBillingBreakdown = { /** - * Billable units for this spec (operation_count x target_count) + * Total billable units contributed by targets in this language */ billableUnits: number; /** - * Whether the spec/namespace is archived + * The generated SDK language */ - isArchived: boolean; + language: string; /** - * The namespace name for this spec - */ - namespace: string; - /** - * Number of operations in this spec + * Number of operations from the latest generation event for this language */ operationCount: number; /** - * List of operation IDs (only included when include_operation_ids is true) - */ - operationIds?: Array | undefined; - /** - * Number of targets using this spec + * Number of generated SDK targets for this language */ targetCount: number; /** - * List of targets using this spec + * List of generated targets for this language */ targets: Array; }; /** @internal */ -export const SpecBillingBreakdown$inboundSchema: z.ZodType< - SpecBillingBreakdown, +export const LanguageBillingBreakdown$inboundSchema: z.ZodType< + LanguageBillingBreakdown, z.ZodTypeDef, unknown > = z.object({ billable_units: z.number().int(), - is_archived: z.boolean(), - namespace: z.string(), + language: z.string(), operation_count: z.number().int(), - operation_ids: z.array(z.string()).optional(), target_count: z.number().int(), targets: z.array(TargetBillingBreakdown$inboundSchema), }).transform((v) => { return remap$(v, { "billable_units": "billableUnits", - "is_archived": "isArchived", "operation_count": "operationCount", - "operation_ids": "operationIds", "target_count": "targetCount", }); }); /** @internal */ -export type SpecBillingBreakdown$Outbound = { +export type LanguageBillingBreakdown$Outbound = { billable_units: number; - is_archived: boolean; - namespace: string; + language: string; operation_count: number; - operation_ids?: Array | undefined; target_count: number; targets: Array; }; /** @internal */ -export const SpecBillingBreakdown$outboundSchema: z.ZodType< - SpecBillingBreakdown$Outbound, +export const LanguageBillingBreakdown$outboundSchema: z.ZodType< + LanguageBillingBreakdown$Outbound, z.ZodTypeDef, - SpecBillingBreakdown + LanguageBillingBreakdown > = z.object({ billableUnits: z.number().int(), - isArchived: z.boolean(), - namespace: z.string(), + language: z.string(), operationCount: z.number().int(), - operationIds: z.array(z.string()).optional(), targetCount: z.number().int(), targets: z.array(TargetBillingBreakdown$outboundSchema), }).transform((v) => { return remap$(v, { billableUnits: "billable_units", - isArchived: "is_archived", operationCount: "operation_count", - operationIds: "operation_ids", targetCount: "target_count", }); }); -export function specBillingBreakdownToJSON( - specBillingBreakdown: SpecBillingBreakdown, +export function languageBillingBreakdownToJSON( + languageBillingBreakdown: LanguageBillingBreakdown, ): string { return JSON.stringify( - SpecBillingBreakdown$outboundSchema.parse(specBillingBreakdown), + LanguageBillingBreakdown$outboundSchema.parse(languageBillingBreakdown), ); } -export function specBillingBreakdownFromJSON( +export function languageBillingBreakdownFromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( jsonString, - (x) => SpecBillingBreakdown$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SpecBillingBreakdown' from JSON`, + (x) => LanguageBillingBreakdown$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'LanguageBillingBreakdown' from JSON`, ); } diff --git a/src/sdk/models/shared/languagebillingstatus.ts b/src/sdk/models/shared/languagebillingstatus.ts new file mode 100644 index 00000000..cab24189 --- /dev/null +++ b/src/sdk/models/shared/languagebillingstatus.ts @@ -0,0 +1,30 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { ClosedEnum } from "../../types/enums.js"; + +/** + * The billing status of a language + */ +export const LanguageBillingStatus = { + Active: "active", + Trialing: "trialing", + Delinquent: "delinquent", + Canceled: "canceled", + Deactivating: "deactivating", +} as const; +/** + * The billing status of a language + */ +export type LanguageBillingStatus = ClosedEnum; + +/** @internal */ +export const LanguageBillingStatus$inboundSchema: z.ZodNativeEnum< + typeof LanguageBillingStatus +> = z.nativeEnum(LanguageBillingStatus); +/** @internal */ +export const LanguageBillingStatus$outboundSchema: z.ZodNativeEnum< + typeof LanguageBillingStatus +> = LanguageBillingStatus$inboundSchema; diff --git a/src/sdk/models/shared/languageresponse.ts b/src/sdk/models/shared/languageresponse.ts new file mode 100644 index 00000000..3df90b73 --- /dev/null +++ b/src/sdk/models/shared/languageresponse.ts @@ -0,0 +1,102 @@ +/* + * 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"; +import { + LanguageBillingStatus, + LanguageBillingStatus$inboundSchema, + LanguageBillingStatus$outboundSchema, +} from "./languagebillingstatus.js"; + +export type LanguageResponse = { + /** + * The billing status of a language + */ + billingStatus?: LanguageBillingStatus | undefined; + /** + * Whether the language can be deactivated (false if within 2-week cooldown) + */ + canDeactivate: boolean; + /** + * Whether the language is deactivated + */ + deactivated: boolean; + /** + * The target language (e.g., typescript, python, go) + */ + language: string; + /** + * When the trial ends (if applicable) + */ + trialEndsAt?: Date | undefined; +}; + +/** @internal */ +export const LanguageResponse$inboundSchema: z.ZodType< + LanguageResponse, + z.ZodTypeDef, + unknown +> = z.object({ + billing_status: LanguageBillingStatus$inboundSchema.optional(), + can_deactivate: z.boolean(), + deactivated: z.boolean(), + language: z.string(), + trial_ends_at: z.string().datetime({ offset: true }).transform(v => + new Date(v) + ).optional(), +}).transform((v) => { + return remap$(v, { + "billing_status": "billingStatus", + "can_deactivate": "canDeactivate", + "trial_ends_at": "trialEndsAt", + }); +}); +/** @internal */ +export type LanguageResponse$Outbound = { + billing_status?: string | undefined; + can_deactivate: boolean; + deactivated: boolean; + language: string; + trial_ends_at?: string | undefined; +}; + +/** @internal */ +export const LanguageResponse$outboundSchema: z.ZodType< + LanguageResponse$Outbound, + z.ZodTypeDef, + LanguageResponse +> = z.object({ + billingStatus: LanguageBillingStatus$outboundSchema.optional(), + canDeactivate: z.boolean(), + deactivated: z.boolean(), + language: z.string(), + trialEndsAt: z.date().transform(v => v.toISOString()).optional(), +}).transform((v) => { + return remap$(v, { + billingStatus: "billing_status", + canDeactivate: "can_deactivate", + trialEndsAt: "trial_ends_at", + }); +}); + +export function languageResponseToJSON( + languageResponse: LanguageResponse, +): string { + return JSON.stringify( + LanguageResponse$outboundSchema.parse(languageResponse), + ); +} +export function languageResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => LanguageResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'LanguageResponse' from JSON`, + ); +} diff --git a/src/sdk/models/shared/organization.ts b/src/sdk/models/shared/organization.ts index 1bec40cf..7768f43d 100644 --- a/src/sdk/models/shared/organization.ts +++ b/src/sdk/models/shared/organization.ts @@ -25,9 +25,9 @@ export type Organization = { name: string; slug: string; ssoActivated: boolean; - ssoConnectionId?: string | null | undefined; telemetryDisabled: boolean; updatedAt: Date; + workosId?: string | null | undefined; }; /** @internal */ @@ -46,18 +46,18 @@ export const Organization$inboundSchema: z.ZodType< name: z.string(), slug: z.string(), sso_activated: z.boolean(), - sso_connection_id: z.nullable(z.string()).optional(), telemetry_disabled: z.boolean(), updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v)), + workos_id: z.nullable(z.string()).optional(), }).transform((v) => { return remap$(v, { "account_type": "accountType", "created_at": "createdAt", "free_trial_expiry": "freeTrialExpiry", "sso_activated": "ssoActivated", - "sso_connection_id": "ssoConnectionId", "telemetry_disabled": "telemetryDisabled", "updated_at": "updatedAt", + "workos_id": "workosId", }); }); /** @internal */ @@ -70,9 +70,9 @@ export type Organization$Outbound = { name: string; slug: string; sso_activated: boolean; - sso_connection_id?: string | null | undefined; telemetry_disabled: boolean; updated_at: string; + workos_id?: string | null | undefined; }; /** @internal */ @@ -90,18 +90,18 @@ export const Organization$outboundSchema: z.ZodType< name: z.string(), slug: z.string(), ssoActivated: z.boolean(), - ssoConnectionId: z.nullable(z.string()).optional(), telemetryDisabled: z.boolean(), updatedAt: z.date().transform(v => v.toISOString()), + workosId: z.nullable(z.string()).optional(), }).transform((v) => { return remap$(v, { accountType: "account_type", createdAt: "created_at", freeTrialExpiry: "free_trial_expiry", ssoActivated: "sso_activated", - ssoConnectionId: "sso_connection_id", telemetryDisabled: "telemetry_disabled", updatedAt: "updated_at", + workosId: "workos_id", }); }); diff --git a/src/sdk/models/shared/organizationsubscriptionresponse.ts b/src/sdk/models/shared/organizationsubscriptionresponse.ts new file mode 100644 index 00000000..5f060a36 --- /dev/null +++ b/src/sdk/models/shared/organizationsubscriptionresponse.ts @@ -0,0 +1,214 @@ +/* + * 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 { ClosedEnum } from "../../types/enums.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import { + PendingCancellationInfo, + PendingCancellationInfo$inboundSchema, + PendingCancellationInfo$Outbound, + PendingCancellationInfo$outboundSchema, +} from "./pendingcancellationinfo.js"; + +/** + * The billing interval for the subscription (month or year) + */ +export const OrganizationSubscriptionResponseBillingInterval = { + Month: "month", + Year: "year", +} as const; +/** + * The billing interval for the subscription (month or year) + */ +export type OrganizationSubscriptionResponseBillingInterval = ClosedEnum< + typeof OrganizationSubscriptionResponseBillingInterval +>; + +export type OrganizationSubscriptionResponse = { + /** + * The organization account type + */ + accountType: string; + /** + * Number of active (paid) languages + */ + activeLanguageCount?: number | undefined; + /** + * The billing interval for the subscription (month or year) + */ + billingInterval?: OrganizationSubscriptionResponseBillingInterval | undefined; + /** + * Whether the subscription will cancel at period end + */ + cancelAtPeriodEnd?: boolean | undefined; + /** + * Currency code (e.g. "usd") + */ + currency?: string | undefined; + /** + * End of the current billing period + */ + currentPeriodEnd?: Date | undefined; + /** + * Start of the current billing period + */ + currentPeriodStart?: Date | undefined; + /** + * Whether the organization has an active subscription + */ + hasSubscription: boolean; + /** + * Information about a pending subscription cancellation + */ + pendingCancellation?: PendingCancellationInfo | undefined; + /** + * The plan name (e.g. "Business" for self-serve) + */ + planName?: string | undefined; + /** + * The subscription status (active, past_due, canceled, etc.) + */ + status?: string | undefined; + /** + * The Stripe subscription ID + */ + stripeSubscriptionId?: string | undefined; + /** + * Number of languages currently in trial + */ + trialingLanguageCount?: number | undefined; + /** + * Price per target in cents + */ + unitPrice?: number | undefined; +}; + +/** @internal */ +export const OrganizationSubscriptionResponseBillingInterval$inboundSchema: + z.ZodNativeEnum = z + .nativeEnum(OrganizationSubscriptionResponseBillingInterval); +/** @internal */ +export const OrganizationSubscriptionResponseBillingInterval$outboundSchema: + z.ZodNativeEnum = + OrganizationSubscriptionResponseBillingInterval$inboundSchema; + +/** @internal */ +export const OrganizationSubscriptionResponse$inboundSchema: z.ZodType< + OrganizationSubscriptionResponse, + z.ZodTypeDef, + unknown +> = z.object({ + account_type: z.string(), + active_language_count: z.number().int().optional(), + billing_interval: + OrganizationSubscriptionResponseBillingInterval$inboundSchema.optional(), + cancel_at_period_end: z.boolean().optional(), + currency: z.string().optional(), + current_period_end: z.string().datetime({ offset: true }).transform(v => + new Date(v) + ).optional(), + current_period_start: z.string().datetime({ offset: true }).transform(v => + new Date(v) + ).optional(), + has_subscription: z.boolean(), + pending_cancellation: PendingCancellationInfo$inboundSchema.optional(), + plan_name: z.string().optional(), + status: z.string().optional(), + stripe_subscription_id: z.string().optional(), + trialing_language_count: z.number().int().optional(), + unit_price: z.number().int().optional(), +}).transform((v) => { + return remap$(v, { + "account_type": "accountType", + "active_language_count": "activeLanguageCount", + "billing_interval": "billingInterval", + "cancel_at_period_end": "cancelAtPeriodEnd", + "current_period_end": "currentPeriodEnd", + "current_period_start": "currentPeriodStart", + "has_subscription": "hasSubscription", + "pending_cancellation": "pendingCancellation", + "plan_name": "planName", + "stripe_subscription_id": "stripeSubscriptionId", + "trialing_language_count": "trialingLanguageCount", + "unit_price": "unitPrice", + }); +}); +/** @internal */ +export type OrganizationSubscriptionResponse$Outbound = { + account_type: string; + active_language_count?: number | undefined; + billing_interval?: string | undefined; + cancel_at_period_end?: boolean | undefined; + currency?: string | undefined; + current_period_end?: string | undefined; + current_period_start?: string | undefined; + has_subscription: boolean; + pending_cancellation?: PendingCancellationInfo$Outbound | undefined; + plan_name?: string | undefined; + status?: string | undefined; + stripe_subscription_id?: string | undefined; + trialing_language_count?: number | undefined; + unit_price?: number | undefined; +}; + +/** @internal */ +export const OrganizationSubscriptionResponse$outboundSchema: z.ZodType< + OrganizationSubscriptionResponse$Outbound, + z.ZodTypeDef, + OrganizationSubscriptionResponse +> = z.object({ + accountType: z.string(), + activeLanguageCount: z.number().int().optional(), + billingInterval: + OrganizationSubscriptionResponseBillingInterval$outboundSchema.optional(), + cancelAtPeriodEnd: z.boolean().optional(), + currency: z.string().optional(), + currentPeriodEnd: z.date().transform(v => v.toISOString()).optional(), + currentPeriodStart: z.date().transform(v => v.toISOString()).optional(), + hasSubscription: z.boolean(), + pendingCancellation: PendingCancellationInfo$outboundSchema.optional(), + planName: z.string().optional(), + status: z.string().optional(), + stripeSubscriptionId: z.string().optional(), + trialingLanguageCount: z.number().int().optional(), + unitPrice: z.number().int().optional(), +}).transform((v) => { + return remap$(v, { + accountType: "account_type", + activeLanguageCount: "active_language_count", + billingInterval: "billing_interval", + cancelAtPeriodEnd: "cancel_at_period_end", + currentPeriodEnd: "current_period_end", + currentPeriodStart: "current_period_start", + hasSubscription: "has_subscription", + pendingCancellation: "pending_cancellation", + planName: "plan_name", + stripeSubscriptionId: "stripe_subscription_id", + trialingLanguageCount: "trialing_language_count", + unitPrice: "unit_price", + }); +}); + +export function organizationSubscriptionResponseToJSON( + organizationSubscriptionResponse: OrganizationSubscriptionResponse, +): string { + return JSON.stringify( + OrganizationSubscriptionResponse$outboundSchema.parse( + organizationSubscriptionResponse, + ), + ); +} +export function organizationSubscriptionResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => OrganizationSubscriptionResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'OrganizationSubscriptionResponse' from JSON`, + ); +} diff --git a/src/sdk/models/shared/pendingcancellationinfo.ts b/src/sdk/models/shared/pendingcancellationinfo.ts new file mode 100644 index 00000000..7c3b95c4 --- /dev/null +++ b/src/sdk/models/shared/pendingcancellationinfo.ts @@ -0,0 +1,86 @@ +/* + * 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"; + +/** + * Information about a pending subscription cancellation + */ +export type PendingCancellationInfo = { + /** + * When the cancellation takes effect (from Stripe current_period_end) + */ + effectiveAt?: Date | undefined; + /** + * gen_lock_id of the target that will be kept after downgrade + */ + targetToKeep?: string | undefined; + /** + * Display name of the target to keep + */ + targetToKeepName?: string | undefined; +}; + +/** @internal */ +export const PendingCancellationInfo$inboundSchema: z.ZodType< + PendingCancellationInfo, + z.ZodTypeDef, + unknown +> = z.object({ + effective_at: z.string().datetime({ offset: true }).transform(v => + new Date(v) + ).optional(), + target_to_keep: z.string().optional(), + target_to_keep_name: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "effective_at": "effectiveAt", + "target_to_keep": "targetToKeep", + "target_to_keep_name": "targetToKeepName", + }); +}); +/** @internal */ +export type PendingCancellationInfo$Outbound = { + effective_at?: string | undefined; + target_to_keep?: string | undefined; + target_to_keep_name?: string | undefined; +}; + +/** @internal */ +export const PendingCancellationInfo$outboundSchema: z.ZodType< + PendingCancellationInfo$Outbound, + z.ZodTypeDef, + PendingCancellationInfo +> = z.object({ + effectiveAt: z.date().transform(v => v.toISOString()).optional(), + targetToKeep: z.string().optional(), + targetToKeepName: z.string().optional(), +}).transform((v) => { + return remap$(v, { + effectiveAt: "effective_at", + targetToKeep: "target_to_keep", + targetToKeepName: "target_to_keep_name", + }); +}); + +export function pendingCancellationInfoToJSON( + pendingCancellationInfo: PendingCancellationInfo, +): string { + return JSON.stringify( + PendingCancellationInfo$outboundSchema.parse(pendingCancellationInfo), + ); +} +export function pendingCancellationInfoFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => PendingCancellationInfo$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'PendingCancellationInfo' from JSON`, + ); +} diff --git a/src/sdk/models/shared/security.ts b/src/sdk/models/shared/security.ts index a125cf98..2de73cfc 100644 --- a/src/sdk/models/shared/security.ts +++ b/src/sdk/models/shared/security.ts @@ -10,8 +10,6 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type Security = { apiKey?: string | undefined; - bearer?: string | undefined; - workspaceIdentifier?: string | undefined; }; /** @internal */ @@ -21,20 +19,14 @@ export const Security$inboundSchema: z.ZodType< unknown > = z.object({ APIKey: z.string().optional(), - Bearer: z.string().optional(), - WorkspaceIdentifier: z.string().optional(), }).transform((v) => { return remap$(v, { "APIKey": "apiKey", - "Bearer": "bearer", - "WorkspaceIdentifier": "workspaceIdentifier", }); }); /** @internal */ export type Security$Outbound = { APIKey?: string | undefined; - Bearer?: string | undefined; - WorkspaceIdentifier?: string | undefined; }; /** @internal */ @@ -44,13 +36,9 @@ export const Security$outboundSchema: z.ZodType< Security > = z.object({ apiKey: z.string().optional(), - bearer: z.string().optional(), - workspaceIdentifier: z.string().optional(), }).transform((v) => { return remap$(v, { apiKey: "APIKey", - bearer: "Bearer", - workspaceIdentifier: "WorkspaceIdentifier", }); }); diff --git a/src/sdk/models/shared/targetbillingbreakdown.ts b/src/sdk/models/shared/targetbillingbreakdown.ts index 5a4437ca..39e85a63 100644 --- a/src/sdk/models/shared/targetbillingbreakdown.ts +++ b/src/sdk/models/shared/targetbillingbreakdown.ts @@ -5,13 +5,45 @@ 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"; +/** + * The billing status of this target + */ +export const BillingStatus = { + Active: "active", + Trialing: "trialing", + Delinquent: "delinquent", + Canceled: "canceled", + Deactivating: "deactivating", +} as const; +/** + * The billing status of this target + */ +export type BillingStatus = ClosedEnum; + /** * Contains the billing breakdown for a single target */ export type TargetBillingBreakdown = { + /** + * The billing status of this target + */ + billingStatus?: BillingStatus | undefined; + /** + * Whether this target can be deactivated (subject to 2-week cooldown) + */ + canDeactivate?: boolean | undefined; + /** + * Whether the target has been deactivated by the user + */ + deactivated?: boolean | undefined; + /** + * Timestamp when the target is scheduled to be deactivated (for self-serve business tier) + */ + deactivationScheduledAt?: Date | undefined; /** * The generation lock ID for this target */ @@ -24,6 +56,14 @@ export type TargetBillingBreakdown = { * Timestamp of the most recent SDK generation for this target */ lastGeneratedAt?: Date | undefined; + /** + * Source spec namespace slug when the generation event is linked to a spec + */ + namespaceName?: string | undefined; + /** + * Number of operations captured on the generation event for this target + */ + operationCount: number; /** * The target type (e.g., typescript, python) */ @@ -32,36 +72,80 @@ export type TargetBillingBreakdown = { * The workflow name of this target */ targetName: string; + /** + * Timestamp when the trial period ends for this target + */ + trialEndsAt?: Date | undefined; + /** + * Slug of the workspace that owns this target + */ + workspaceSlug: string; }; +/** @internal */ +export const BillingStatus$inboundSchema: z.ZodNativeEnum< + typeof BillingStatus +> = z.nativeEnum(BillingStatus); +/** @internal */ +export const BillingStatus$outboundSchema: z.ZodNativeEnum< + typeof BillingStatus +> = BillingStatus$inboundSchema; + /** @internal */ export const TargetBillingBreakdown$inboundSchema: z.ZodType< TargetBillingBreakdown, z.ZodTypeDef, unknown > = z.object({ + billing_status: BillingStatus$inboundSchema.optional(), + can_deactivate: z.boolean().optional(), + deactivated: z.boolean().optional(), + deactivation_scheduled_at: z.string().datetime({ offset: true }).transform( + v => new Date(v) + ).optional(), gen_lock_id: z.string(), is_active: z.boolean(), last_generated_at: z.string().datetime({ offset: true }).transform(v => new Date(v) ).optional(), + namespace_name: z.string().optional(), + operation_count: z.number().int(), target: z.string(), target_name: z.string(), + trial_ends_at: z.string().datetime({ offset: true }).transform(v => + new Date(v) + ).optional(), + workspace_slug: z.string(), }).transform((v) => { return remap$(v, { + "billing_status": "billingStatus", + "can_deactivate": "canDeactivate", + "deactivation_scheduled_at": "deactivationScheduledAt", "gen_lock_id": "genLockId", "is_active": "isActive", "last_generated_at": "lastGeneratedAt", + "namespace_name": "namespaceName", + "operation_count": "operationCount", "target_name": "targetName", + "trial_ends_at": "trialEndsAt", + "workspace_slug": "workspaceSlug", }); }); /** @internal */ export type TargetBillingBreakdown$Outbound = { + billing_status?: string | undefined; + can_deactivate?: boolean | undefined; + deactivated?: boolean | undefined; + deactivation_scheduled_at?: string | undefined; gen_lock_id: string; is_active: boolean; last_generated_at?: string | undefined; + namespace_name?: string | undefined; + operation_count: number; target: string; target_name: string; + trial_ends_at?: string | undefined; + workspace_slug: string; }; /** @internal */ @@ -70,17 +154,32 @@ export const TargetBillingBreakdown$outboundSchema: z.ZodType< z.ZodTypeDef, TargetBillingBreakdown > = z.object({ + billingStatus: BillingStatus$outboundSchema.optional(), + canDeactivate: z.boolean().optional(), + deactivated: z.boolean().optional(), + deactivationScheduledAt: z.date().transform(v => v.toISOString()).optional(), genLockId: z.string(), isActive: z.boolean(), lastGeneratedAt: z.date().transform(v => v.toISOString()).optional(), + namespaceName: z.string().optional(), + operationCount: z.number().int(), target: z.string(), targetName: z.string(), + trialEndsAt: z.date().transform(v => v.toISOString()).optional(), + workspaceSlug: z.string(), }).transform((v) => { return remap$(v, { + billingStatus: "billing_status", + canDeactivate: "can_deactivate", + deactivationScheduledAt: "deactivation_scheduled_at", genLockId: "gen_lock_id", isActive: "is_active", lastGeneratedAt: "last_generated_at", + namespaceName: "namespace_name", + operationCount: "operation_count", targetName: "target_name", + trialEndsAt: "trial_ends_at", + workspaceSlug: "workspace_slug", }); }); diff --git a/src/sdk/models/shared/trialtargetsresponse.ts b/src/sdk/models/shared/trialtargetsresponse.ts new file mode 100644 index 00000000..86d1d312 --- /dev/null +++ b/src/sdk/models/shared/trialtargetsresponse.ts @@ -0,0 +1,72 @@ +/* + * 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"; + +export type TrialTargetsResponse = { + /** + * Languages that can still get a free trial + */ + availableTrials: Array | null; + /** + * Languages that have already been trialed + */ + usedTrials: Array | null; +}; + +/** @internal */ +export const TrialTargetsResponse$inboundSchema: z.ZodType< + TrialTargetsResponse, + z.ZodTypeDef, + unknown +> = z.object({ + available_trials: z.nullable(z.array(z.string())), + used_trials: z.nullable(z.array(z.string())), +}).transform((v) => { + return remap$(v, { + "available_trials": "availableTrials", + "used_trials": "usedTrials", + }); +}); +/** @internal */ +export type TrialTargetsResponse$Outbound = { + available_trials: Array | null; + used_trials: Array | null; +}; + +/** @internal */ +export const TrialTargetsResponse$outboundSchema: z.ZodType< + TrialTargetsResponse$Outbound, + z.ZodTypeDef, + TrialTargetsResponse +> = z.object({ + availableTrials: z.nullable(z.array(z.string())), + usedTrials: z.nullable(z.array(z.string())), +}).transform((v) => { + return remap$(v, { + availableTrials: "available_trials", + usedTrials: "used_trials", + }); +}); + +export function trialTargetsResponseToJSON( + trialTargetsResponse: TrialTargetsResponse, +): string { + return JSON.stringify( + TrialTargetsResponse$outboundSchema.parse(trialTargetsResponse), + ); +} +export function trialTargetsResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => TrialTargetsResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'TrialTargetsResponse' from JSON`, + ); +} diff --git a/src/sdk/organizations.ts b/src/sdk/organizations.ts index 3f669591..94e55aef 100644 --- a/src/sdk/organizations.ts +++ b/src/sdk/organizations.ts @@ -2,21 +2,74 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { organizationsActivateLanguage } from "../funcs/organizationsActivateLanguage.js"; +import { organizationsCancelSubscription } from "../funcs/organizationsCancelSubscription.js"; import { organizationsCreate } from "../funcs/organizationsCreate.js"; import { organizationsCreateBillingAddOns } from "../funcs/organizationsCreateBillingAddOns.js"; import { organizationsCreateFreeTrial } from "../funcs/organizationsCreateFreeTrial.js"; +import { organizationsCreateLanguageCheckoutSession } from "../funcs/organizationsCreateLanguageCheckoutSession.js"; +import { organizationsDeactivateLanguage } from "../funcs/organizationsDeactivateLanguage.js"; import { organizationsDeleteBillingAddOn } from "../funcs/organizationsDeleteBillingAddOn.js"; import { organizationsGet } from "../funcs/organizationsGet.js"; import { organizationsGetAll } from "../funcs/organizationsGetAll.js"; import { organizationsGetBillingAddOns } from "../funcs/organizationsGetBillingAddOns.js"; +import { organizationsGetBillingEmail } from "../funcs/organizationsGetBillingEmail.js"; import { organizationsGetBillingOperations } from "../funcs/organizationsGetBillingOperations.js"; +import { organizationsGetBusinessTierPrices } from "../funcs/organizationsGetBusinessTierPrices.js"; +import { organizationsGetLanguages } from "../funcs/organizationsGetLanguages.js"; +import { organizationsGetSubscription } from "../funcs/organizationsGetSubscription.js"; +import { organizationsGetTrialTargets } from "../funcs/organizationsGetTrialTargets.js"; import { organizationsGetUsage } from "../funcs/organizationsGetUsage.js"; +import { organizationsHandleCheckoutCallback } from "../funcs/organizationsHandleCheckoutCallback.js"; +import { organizationsRevertSubscriptionCancellation } from "../funcs/organizationsRevertSubscriptionCancellation.js"; +import { organizationsUpsertBillingEmail } from "../funcs/organizationsUpsertBillingEmail.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as operations from "./models/operations/index.js"; import * as shared from "./models/shared/index.js"; import { unwrapAsync } from "./types/fp.js"; export class Organizations extends ClientSDK { + /** + * Activate language + * + * @remarks + * Activates a language for billing. If the language was previously deactivated, + * this will reactivate it. If the language is new, it may require checkout. + */ + async activateLanguage( + security: operations.ActivateLanguageSecurity, + request: operations.ActivateLanguageRequest, + options?: RequestOptions, + ): Promise { + return unwrapAsync(organizationsActivateLanguage( + this, + security, + request, + options, + )); + } + + /** + * Cancel subscription + * + * @remarks + * Requests cancellation of the organization's self-service business subscription. + * The subscription will be cancelled at the end of the current billing period. + * Specify a target to keep after downgrade to free tier when active targets remain. + */ + async cancelSubscription( + security: operations.CancelSubscriptionSecurity, + request: shared.CancelSubscriptionRequest, + options?: RequestOptions, + ): Promise { + return unwrapAsync(organizationsCancelSubscription( + this, + security, + request, + options, + )); + } + /** * Create an organization * @@ -24,11 +77,13 @@ export class Organizations extends ClientSDK { * Creates an organization */ async create( + security: operations.CreateOrganizationSecurity, request: shared.Organization, options?: RequestOptions, ): Promise { return unwrapAsync(organizationsCreate( this, + security, request, options, )); @@ -38,11 +93,13 @@ export class Organizations extends ClientSDK { * Create billing add ons */ async createBillingAddOns( + security: operations.CreateBillingAddOnsSecurity, request: shared.OrganizationBillingAddOnRequest, options?: RequestOptions, ): Promise { return unwrapAsync(organizationsCreateBillingAddOns( this, + security, request, options, )); @@ -55,10 +112,51 @@ export class Organizations extends ClientSDK { * Creates a free trial for an organization */ async createFreeTrial( + security: operations.CreateFreeTrialSecurity, options?: RequestOptions, ): Promise { return unwrapAsync(organizationsCreateFreeTrial( this, + security, + options, + )); + } + + /** + * Create language checkout session + * + * @remarks + * Creates a Stripe checkout session for per-language billing. + * Used when upgrading to business tier with per-language billing model. + */ + async createLanguageCheckoutSession( + security: operations.CreateLanguageCheckoutSessionSecurity, + request: shared.CreateLanguageCheckoutSessionRequest, + options?: RequestOptions, + ): Promise { + return unwrapAsync(organizationsCreateLanguageCheckoutSession( + this, + security, + request, + options, + )); + } + + /** + * Deactivate language + * + * @remarks + * Deactivates a language. Subject to 2-week cooldown between deactivations. + */ + async deactivateLanguage( + security: operations.DeactivateLanguageSecurity, + request: operations.DeactivateLanguageRequest, + options?: RequestOptions, + ): Promise { + return unwrapAsync(organizationsDeactivateLanguage( + this, + security, + request, options, )); } @@ -67,11 +165,13 @@ export class Organizations extends ClientSDK { * Delete billing add ons */ async deleteBillingAddOn( + security: operations.DeleteBillingAddOnSecurity, request: operations.DeleteBillingAddOnRequest, options?: RequestOptions, ): Promise { return unwrapAsync(organizationsDeleteBillingAddOn( this, + security, request, options, )); @@ -84,11 +184,13 @@ export class Organizations extends ClientSDK { * Get information about a particular organization. */ async get( + security: operations.GetOrganizationSecurity, request: operations.GetOrganizationRequest, options?: RequestOptions, ): Promise { return unwrapAsync(organizationsGet( this, + security, request, options, )); @@ -101,10 +203,12 @@ export class Organizations extends ClientSDK { * Returns a list of organizations a user has access too */ async getAll( + security: operations.GetOrganizationsSecurity, options?: RequestOptions, ): Promise> { return unwrapAsync(organizationsGetAll( this, + security, options, )); } @@ -113,10 +217,29 @@ export class Organizations extends ClientSDK { * Get billing add ons */ async getBillingAddOns( + security: operations.GetBillingAddOnsSecurity, options?: RequestOptions, ): Promise { return unwrapAsync(organizationsGetBillingAddOns( this, + security, + options, + )); + } + + /** + * Get billing email for an organization + * + * @remarks + * Returns the billing email and Stripe customer status for the current organization + */ + async getBillingEmail( + security: operations.GetBillingEmailSecurity, + options?: RequestOptions, + ): Promise { + return unwrapAsync(organizationsGetBillingEmail( + this, + security, options, )); } @@ -125,16 +248,88 @@ export class Organizations extends ClientSDK { * Get billing operations breakdown for an organization * * @remarks - * Returns a breakdown of billing operations by spec and target for an organization. - * The billing formula is: Total = sum(operationIds per spec x targets per spec) + * Returns a breakdown of billing operations by language and generated SDK target + * for an organization. Each language row is sourced from generation events, + * and target rows optionally include the source spec namespace when available. */ async getBillingOperations( - request: operations.GetBillingOperationsRequest, + security: operations.GetBillingOperationsSecurity, options?: RequestOptions, ): Promise { return unwrapAsync(organizationsGetBillingOperations( this, - request, + security, + options, + )); + } + + /** + * Get business tier prices + * + * @remarks + * Returns both monthly and annual business tier prices from Stripe + */ + async getBusinessTierPrices( + security: operations.GetBusinessTierPricesSecurity, + options?: RequestOptions, + ): Promise { + return unwrapAsync(organizationsGetBusinessTierPrices( + this, + security, + options, + )); + } + + /** + * Get language billing configurations + * + * @remarks + * Returns all language billing configurations for the organization. + * Only returns languages with self-serve billing configured. + */ + async getLanguages( + security: operations.GetLanguagesSecurity, + options?: RequestOptions, + ): Promise { + return unwrapAsync(organizationsGetLanguages( + this, + security, + options, + )); + } + + /** + * Get organization subscription + * + * @remarks + * Returns the subscription status for the current organization + */ + async getSubscription( + security: operations.GetOrganizationSubscriptionSecurity, + options?: RequestOptions, + ): Promise { + return unwrapAsync(organizationsGetSubscription( + this, + security, + options, + )); + } + + /** + * Get trial targets + * + * @remarks + * Returns the list of target languages with available and used trials for the organization. + * Available trials are languages that have not yet been trialed. + * Used trials are languages that have already been trialed. + */ + async getTrialTargets( + security: operations.GetTrialTargetsSecurity, + options?: RequestOptions, + ): Promise { + return unwrapAsync(organizationsGetTrialTargets( + this, + security, options, )); } @@ -146,10 +341,68 @@ export class Organizations extends ClientSDK { * Returns a billing usage summary by target languages for a particular organization */ async getUsage( + security: operations.GetOrganizationUsageSecurity, options?: RequestOptions, ): Promise { return unwrapAsync(organizationsGetUsage( this, + security, + options, + )); + } + + /** + * Checkout callback + * + * @remarks + * Handles the Stripe checkout success callback. This endpoint is called by Stripe + * after a successful checkout, runs reconciliation (idempotent), and redirects + * to the original client success URL stored in session metadata. + */ + async handleCheckoutCallback( + request: operations.HandleCheckoutCallbackRequest, + options?: RequestOptions, + ): Promise { + return unwrapAsync(organizationsHandleCheckoutCallback( + this, + request, + options, + )); + } + + /** + * Revert subscription cancellation + * + * @remarks + * Reverts a pending subscription cancellation. + * The subscription will continue to renew automatically. + */ + async revertSubscriptionCancellation( + security: operations.RevertSubscriptionCancellationSecurity, + options?: RequestOptions, + ): Promise { + return unwrapAsync(organizationsRevertSubscriptionCancellation( + this, + security, + options, + )); + } + + /** + * Create or update billing email + * + * @remarks + * Creates a Stripe customer if one does not exist, or updates the billing email for an existing Stripe customer + */ + async upsertBillingEmail( + security: operations.UpsertBillingEmailSecurity, + request: shared.BillingEmailRequest, + options?: RequestOptions, + ): Promise { + return unwrapAsync(organizationsUpsertBillingEmail( + this, + security, + request, options, )); } diff --git a/src/sdk/publishingtokens.ts b/src/sdk/publishingtokens.ts index 2bc0d815..b48df931 100644 --- a/src/sdk/publishingtokens.ts +++ b/src/sdk/publishingtokens.ts @@ -22,11 +22,13 @@ export class PublishingTokens extends ClientSDK { * Creates a publishing token for the current workspace */ async create( + security: operations.CreatePublishingTokenSecurity, request?: operations.CreatePublishingTokenRequestBody | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(publishingTokensCreate( this, + security, request, options, )); @@ -39,11 +41,13 @@ export class PublishingTokens extends ClientSDK { * Delete a particular publishing token. */ async delete( + security: operations.DeletePublishingTokenSecurity, request: operations.DeletePublishingTokenRequest, options?: RequestOptions, ): Promise { return unwrapAsync(publishingTokensDelete( this, + security, request, options, )); @@ -56,11 +60,13 @@ export class PublishingTokens extends ClientSDK { * Get information about a particular publishing token. */ async get( + security: operations.GetPublishingTokenByIDSecurity, request: operations.GetPublishingTokenByIDRequest, options?: RequestOptions, ): Promise { return unwrapAsync(publishingTokensGet( this, + security, request, options, )); @@ -73,10 +79,12 @@ export class PublishingTokens extends ClientSDK { * Returns a publishing token for the current workspace */ async list( + security: operations.GetPublishingTokenSecurity, options?: RequestOptions, ): Promise> { return unwrapAsync(publishingTokensList( this, + security, options, )); } @@ -88,11 +96,13 @@ export class PublishingTokens extends ClientSDK { * Get information about a particular publishing token. */ async resolveMetadata( + security: operations.GetPublishingTokenPublicMetadataSecurity, request: operations.GetPublishingTokenPublicMetadataRequest, options?: RequestOptions, ): Promise { return unwrapAsync(publishingTokensResolveMetadata( this, + security, request, options, )); @@ -105,11 +115,13 @@ export class PublishingTokens extends ClientSDK { * Get information about a particular publishing token target. */ async resolveTarget( + security: operations.GetPublishingTokenTargetByIDSecurity, request: operations.GetPublishingTokenTargetByIDRequest, options?: RequestOptions, ): Promise { return unwrapAsync(publishingTokensResolveTarget( this, + security, request, options, )); @@ -122,11 +134,13 @@ export class PublishingTokens extends ClientSDK { * Updates the validity period of a particular publishing token. */ async update( + security: operations.UpdatePublishingTokenExpirationSecurity, request: operations.UpdatePublishingTokenExpirationRequest, options?: RequestOptions, ): Promise { return unwrapAsync(publishingTokensUpdate( this, + security, request, options, )); diff --git a/src/sdk/reports.ts b/src/sdk/reports.ts index 774743e4..d5a2683f 100644 --- a/src/sdk/reports.ts +++ b/src/sdk/reports.ts @@ -14,11 +14,13 @@ export class Reports extends ClientSDK { * Get the signed access url for the change reports for a particular document. */ async getChangesReportSignedUrl( + security: operations.GetChangesReportSignedUrlSecurity, request: operations.GetChangesReportSignedUrlRequest, options?: RequestOptions, ): Promise { return unwrapAsync(reportsGetChangesReportSignedUrl( this, + security, request, options, )); @@ -28,11 +30,13 @@ export class Reports extends ClientSDK { * Get the signed access url for the linting reports for a particular document. */ async getLintingReportSignedUrl( + security: operations.GetLintingReportSignedUrlSecurity, request: operations.GetLintingReportSignedUrlRequest, options?: RequestOptions, ): Promise { return unwrapAsync(reportsGetLintingReportSignedUrl( this, + security, request, options, )); @@ -42,11 +46,13 @@ export class Reports extends ClientSDK { * Upload a report. */ async uploadReport( + security: operations.UploadReportSecurity, request: operations.UploadReportRequestBody, options?: RequestOptions, ): Promise { return unwrapAsync(reportsUploadReport( this, + security, request, options, )); diff --git a/src/sdk/schemastore.ts b/src/sdk/schemastore.ts index adba067d..e3fb1023 100644 --- a/src/sdk/schemastore.ts +++ b/src/sdk/schemastore.ts @@ -13,11 +13,13 @@ export class SchemaStore extends ClientSDK { * Create a schema in the schema store */ async createSchemaStoreItem( + security: operations.CreateSchemaStoreItemSecurity, request: operations.CreateSchemaStoreItemRequestBody, options?: RequestOptions, ): Promise { return unwrapAsync(schemaStoreCreateSchemaStoreItem( this, + security, request, options, )); diff --git a/src/sdk/sdk.ts b/src/sdk/sdk.ts index 3bd74485..e1a43c88 100644 --- a/src/sdk/sdk.ts +++ b/src/sdk/sdk.ts @@ -15,6 +15,7 @@ import { SchemaStore } from "./schemastore.js"; import { ShortURLs } from "./shorturls.js"; import { Subscriptions } from "./subscriptions.js"; import { Suggest } from "./suggest.js"; +import { Webhooks } from "./webhooks.js"; import { Workspaces } from "./workspaces.js"; export class Speakeasy extends ClientSDK { @@ -28,6 +29,11 @@ export class Speakeasy extends ClientSDK { return (this._auth ??= new Auth(this._options)); } + private _organizations?: Organizations; + get organizations(): Organizations { + return (this._organizations ??= new Organizations(this._options)); + } + private _codeSamples?: CodeSamples; get codeSamples(): CodeSamples { return (this._codeSamples ??= new CodeSamples(this._options)); @@ -38,11 +44,6 @@ export class Speakeasy extends ClientSDK { return (this._github ??= new Github(this._options)); } - private _organizations?: Organizations; - get organizations(): Organizations { - return (this._organizations ??= new Organizations(this._options)); - } - private _publishingTokens?: PublishingTokens; get publishingTokens(): PublishingTokens { return (this._publishingTokens ??= new PublishingTokens(this._options)); @@ -73,6 +74,11 @@ export class Speakeasy extends ClientSDK { return (this._suggest ??= new Suggest(this._options)); } + private _webhooks?: Webhooks; + get webhooks(): Webhooks { + return (this._webhooks ??= new Webhooks(this._options)); + } + private _workspaces?: Workspaces; get workspaces(): Workspaces { return (this._workspaces ??= new Workspaces(this._options)); diff --git a/src/sdk/shorturls.ts b/src/sdk/shorturls.ts index 974686b3..f75cfd45 100644 --- a/src/sdk/shorturls.ts +++ b/src/sdk/shorturls.ts @@ -13,11 +13,13 @@ export class ShortURLs extends ClientSDK { * Shorten a URL. */ async create( + security: operations.CreateSecurity, request: operations.CreateRequestBody, options?: RequestOptions, ): Promise { return unwrapAsync(shortURLsCreate( this, + security, request, options, )); diff --git a/src/sdk/suggest.ts b/src/sdk/suggest.ts index 63cb3d5e..04cb2e29 100644 --- a/src/sdk/suggest.ts +++ b/src/sdk/suggest.ts @@ -19,11 +19,13 @@ export class Suggest extends ClientSDK { * Get suggestions from an LLM model for improving an OpenAPI document. */ async suggest( + security: operations.SuggestSecurity, request: operations.SuggestRequest, options?: RequestOptions, ): Promise> { return unwrapAsync(suggestSuggest( this, + security, request, options, )); @@ -33,11 +35,13 @@ export class Suggest extends ClientSDK { * Generate generic suggestions for a list of items. */ async suggestItems( + security: operations.SuggestItemsSecurity, request: shared.SuggestItemsRequestBody, options?: RequestOptions, ): Promise> { return unwrapAsync(suggestSuggestItems( this, + security, request, options, )); @@ -50,11 +54,13 @@ export class Suggest extends ClientSDK { * Get suggestions from an LLM model for improving an OpenAPI document. */ async suggestOpenAPI( + security: operations.SuggestOpenAPISecurity, request: operations.SuggestOpenAPIRequest, options?: RequestOptions, ): Promise> { return unwrapAsync(suggestSuggestOpenAPI( this, + security, request, options, )); @@ -67,11 +73,13 @@ export class Suggest extends ClientSDK { * Get suggestions from an LLM model for improving an OpenAPI document stored in the registry. */ async suggestOpenAPIRegistry( + security: operations.SuggestOpenAPIRegistrySecurity, request: operations.SuggestOpenAPIRegistryRequest, options?: RequestOptions, ): Promise> { return unwrapAsync(suggestSuggestOpenAPIRegistry( this, + security, request, options, )); diff --git a/src/sdk/types/async.ts b/src/sdk/types/async.ts index 689dba5d..1543b95c 100644 --- a/src/sdk/types/async.ts +++ b/src/sdk/types/async.ts @@ -21,16 +21,17 @@ export type APICall = export class APIPromise implements Promise { readonly #promise: Promise<[T, APICall]>; - readonly #unwrapped: Promise; + #unwrapped: Promise | null; readonly [Symbol.toStringTag] = "APIPromise"; constructor(p: [T, APICall] | Promise<[T, APICall]>) { this.#promise = p instanceof Promise ? p : Promise.resolve(p); - this.#unwrapped = - p instanceof Promise - ? this.#promise.then(([value]) => value) - : Promise.resolve(p[0]); + this.#unwrapped = p instanceof Promise ? null : Promise.resolve(p[0]); + } + + #getUnwrapped(): Promise { + return (this.#unwrapped ??= this.#promise.then(([value]) => value)); } then( @@ -55,11 +56,11 @@ export class APIPromise implements Promise { | null | undefined, ): Promise { - return this.#unwrapped.catch(onrejected); + return this.#getUnwrapped().catch(onrejected); } finally(onfinally?: (() => void) | null | undefined): Promise { - return this.#unwrapped.finally(onfinally); + return this.#getUnwrapped().finally(onfinally); } $inspect(): Promise<[T, APICall]> { diff --git a/src/sdk/webhooks.ts b/src/sdk/webhooks.ts new file mode 100644 index 00000000..e51148f0 --- /dev/null +++ b/src/sdk/webhooks.ts @@ -0,0 +1,28 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { webhooksHandleStripeWebhook } from "../funcs/webhooksHandleStripeWebhook.js"; +import { ClientSDK, RequestOptions } from "../lib/sdks.js"; +import * as operations from "./models/operations/index.js"; +import { unwrapAsync } from "./types/fp.js"; + +export class Webhooks extends ClientSDK { + /** + * Handle Stripe webhook + * + * @remarks + * Receives and processes Stripe webhook events for subscription management. + * This endpoint is called by Stripe and uses webhook signature verification instead of API authentication. + */ + async handleStripeWebhook( + request: operations.HandleStripeWebhookRequestBody, + options?: RequestOptions, + ): Promise { + return unwrapAsync(webhooksHandleStripeWebhook( + this, + request, + options, + )); + } +} diff --git a/src/sdk/workspaces.ts b/src/sdk/workspaces.ts index 14be143d..a594d1b6 100644 --- a/src/sdk/workspaces.ts +++ b/src/sdk/workspaces.ts @@ -30,11 +30,13 @@ export class Workspaces extends ClientSDK { * Creates a workspace */ async create( + security: operations.CreateWorkspaceSecurity, request: shared.Workspace, options?: RequestOptions, ): Promise { return unwrapAsync(workspacesCreate( this, + security, request, options, )); @@ -44,11 +46,13 @@ export class Workspaces extends ClientSDK { * Create a token for a particular workspace */ async createToken( + security: operations.CreateWorkspaceTokenSecurity, request: operations.CreateWorkspaceTokenRequest, options?: RequestOptions, ): Promise { return unwrapAsync(workspacesCreateToken( this, + security, request, options, )); @@ -58,11 +62,13 @@ export class Workspaces extends ClientSDK { * Delete a token for a particular workspace */ async deleteToken( + security: operations.DeleteWorkspaceTokenSecurity, request: operations.DeleteWorkspaceTokenRequest, options?: RequestOptions, ): Promise { return unwrapAsync(workspacesDeleteToken( this, + security, request, options, )); @@ -75,10 +81,12 @@ export class Workspaces extends ClientSDK { * Get information about a particular workspace by context. */ async get( + security: operations.GetWorkspaceByContextSecurity, options?: RequestOptions, ): Promise { return unwrapAsync(workspacesGet( this, + security, options, )); } @@ -90,10 +98,12 @@ export class Workspaces extends ClientSDK { * Returns a list of workspaces a user has access too */ async getAll( + security: operations.GetWorkspacesSecurity, options?: RequestOptions, ): Promise> { return unwrapAsync(workspacesGetAll( this, + security, options, )); } @@ -105,11 +115,13 @@ export class Workspaces extends ClientSDK { * Get information about a particular workspace. */ async getByID( + security: operations.GetWorkspaceSecurity, request: operations.GetWorkspaceRequest, options?: RequestOptions, ): Promise { return unwrapAsync(workspacesGetByID( this, + security, request, options, )); @@ -119,11 +131,13 @@ export class Workspaces extends ClientSDK { * Get workspace feature flags */ async getFeatureFlags( + security: operations.GetWorkspaceFeatureFlagsSecurity, request: operations.GetWorkspaceFeatureFlagsRequest, options?: RequestOptions, ): Promise { return unwrapAsync(workspacesGetFeatureFlags( this, + security, request, options, )); @@ -136,11 +150,13 @@ export class Workspaces extends ClientSDK { * Get settings about a particular workspace. */ async getSettings( + security: operations.GetWorkspaceSettingsSecurity, request: operations.GetWorkspaceSettingsRequest, options?: RequestOptions, ): Promise { return unwrapAsync(workspacesGetSettings( this, + security, request, options, )); @@ -150,11 +166,13 @@ export class Workspaces extends ClientSDK { * Get team members for a particular workspace */ async getTeam( + security: operations.GetWorkspaceTeamSecurity, request: operations.GetWorkspaceTeamRequest, options?: RequestOptions, ): Promise { return unwrapAsync(workspacesGetTeam( this, + security, request, options, )); @@ -164,11 +182,13 @@ export class Workspaces extends ClientSDK { * Get tokens for a particular workspace */ async getTokens( + security: operations.GetWorkspaceTokensSecurity, request: operations.GetWorkspaceTokensRequest, options?: RequestOptions, ): Promise> { return unwrapAsync(workspacesGetTokens( this, + security, request, options, )); @@ -178,11 +198,13 @@ export class Workspaces extends ClientSDK { * Grant a user access to a particular workspace */ async grantAccess( + security: operations.GrantUserAccessToWorkspaceSecurity, request: operations.GrantUserAccessToWorkspaceRequest, options?: RequestOptions, ): Promise { return unwrapAsync(workspacesGrantAccess( this, + security, request, options, )); @@ -192,11 +214,13 @@ export class Workspaces extends ClientSDK { * Revoke a user's access to a particular workspace */ async revokeAccess( + security: operations.RevokeUserAccessToWorkspaceSecurity, request: operations.RevokeUserAccessToWorkspaceRequest, options?: RequestOptions, ): Promise { return unwrapAsync(workspacesRevokeAccess( this, + security, request, options, )); @@ -206,11 +230,13 @@ export class Workspaces extends ClientSDK { * Set workspace feature flags */ async setFeatureFlags( + security: operations.SetWorkspaceFeatureFlagsSecurity, request: shared.WorkspaceFeatureFlagRequest, options?: RequestOptions, ): Promise { return unwrapAsync(workspacesSetFeatureFlags( this, + security, request, options, )); @@ -223,11 +249,13 @@ export class Workspaces extends ClientSDK { * Update information about a particular workspace. */ async update( + security: operations.UpdateWorkspaceDetailsSecurity, request: operations.UpdateWorkspaceDetailsRequest, options?: RequestOptions, ): Promise { return unwrapAsync(workspacesUpdate( this, + security, request, options, )); @@ -240,11 +268,13 @@ export class Workspaces extends ClientSDK { * Update settings about a particular workspace. */ async updateSettings( + security: operations.UpdateWorkspaceSettingsSecurity, request: operations.UpdateWorkspaceSettingsRequest, options?: RequestOptions, ): Promise { return unwrapAsync(workspacesUpdateSettings( this, + security, request, options, )); diff --git a/tsconfig.json b/tsconfig.json index 0ccdbe28..76110f88 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -13,6 +13,7 @@ "declaration": true, "declarationMap": true, "sourceMap": true, + "rootDir": "src", "outDir": ".", @@ -36,5 +37,5 @@ "forceConsistentCasingInFileNames": true }, "include": ["src"], - "exclude": ["node_modules"] + "exclude": ["node_modules", "src/__tests__"] } From 9e585683d958160d7872a11445d4a331ab9f0232 Mon Sep 17 00:00:00 2001 From: "speakeasy-github[bot]" <128539517+speakeasy-github[bot]@users.noreply.github.com> Date: Sat, 27 Jun 2026 00:52:29 +0000 Subject: [PATCH 2/2] empty commit to trigger [run-tests] workflow