From 66240acc78f71ec67fc2d80859e960343a32ce5c Mon Sep 17 00:00:00 2001 From: scalarbot Date: Fri, 1 May 2026 18:05:30 +0000 Subject: [PATCH] feat: scalar-typescript-sdk@0.1.5 --- README.md | 20 ++--- docs/models/components/httpmetadata.md | 16 ++++ .../addapidocumentaccessgroupresponse.md | 16 ++++ .../addrulesetaccessgroupresponse.md | 16 ++++ .../addschemaaccessgroupresponse.md | 16 ++++ .../operations/createapidocumentresponse.md | 16 ++++ .../createapidocumentversionresponse.md | 16 ++++ docs/models/operations/createguideresponse.md | 16 ++++ .../operations/createloginportalresponse.md | 16 ++++ .../operations/createrulesetresponse.md | 16 ++++ .../models/operations/createschemaresponse.md | 16 ++++ .../operations/createschemaversionresponse.md | 16 ++++ docs/models/operations/createthemeresponse.md | 16 ++++ .../operations/deleteapidocumentresponse.md | 16 ++++ .../deleteapidocumentversionresponse.md | 16 ++++ .../operations/deleteloginportalresponse.md | 16 ++++ .../operations/deleterulesetresponse.md | 16 ++++ .../models/operations/deleteschemaresponse.md | 16 ++++ .../operations/deleteschemaversionresponse.md | 16 ++++ docs/models/operations/deletethemeresponse.md | 16 ++++ .../exchangepersonaltokenresponse.md | 16 ++++ .../getapidocumentversionmetadataresponse.md | 16 ++++ .../getapidocumentversionresponse.md | 16 ++++ .../operations/getcurrentuserresponse.md | 16 ++++ .../operations/getloginportalresponse.md | 16 ++++ .../operations/getrulesetdocumentresponse.md | 16 ++++ .../operations/getschemaversionresponse.md | 16 ++++ docs/models/operations/getthemeresponse.md | 16 ++++ .../operations/listallapidocumentsresponse.md | 16 ++++ .../operations/listapidocumentsresponse.md | 16 ++++ docs/models/operations/listguidesresponse.md | 16 ++++ .../operations/listloginportalsresponse.md | 16 ++++ .../operations/listnamespacesresponse.md | 16 ++++ .../models/operations/listrulesetsresponse.md | 16 ++++ docs/models/operations/listschemasresponse.md | 16 ++++ docs/models/operations/listteamsresponse.md | 16 ++++ docs/models/operations/listthemesresponse.md | 16 ++++ .../models/operations/publishguideresponse.md | 16 ++++ .../removeapidocumentaccessgroupresponse.md | 16 ++++ .../removerulesetaccessgroupresponse.md | 16 ++++ .../removeschemaaccessgroupresponse.md | 16 ++++ .../replacethemedocumentresponse.md | 16 ++++ .../operations/updateapidocumentresponse.md | 16 ++++ .../updateapidocumentversionresponse.md | 16 ++++ .../operations/updateloginportalresponse.md | 16 ++++ .../operations/updaterulesetresponse.md | 16 ++++ .../models/operations/updateschemaresponse.md | 16 ++++ docs/models/operations/updatethemeresponse.md | 16 ++++ docs/sdks/authentication/README.md | 4 +- docs/sdks/loginportals/README.md | 10 +-- docs/sdks/namespaces/README.md | 2 +- docs/sdks/registry/README.md | 24 ++--- docs/sdks/rules/README.md | 14 +-- docs/sdks/scalardocs/README.md | 6 +- docs/sdks/schemas/README.md | 18 ++-- docs/sdks/teams/README.md | 2 +- docs/sdks/themes/README.md | 12 +-- jsr.json | 2 +- package.json | 2 +- .../authenticationExchangePersonalToken.ts | 10 ++- src/funcs/authenticationGetCurrentUser.ts | 12 +-- src/funcs/loginPortalsCreateLoginPortal.ts | 11 +-- src/funcs/loginPortalsDeleteLoginPortal.ts | 11 +-- src/funcs/loginPortalsGetLoginPortal.ts | 10 ++- src/funcs/loginPortalsListLoginPortals.ts | 13 +-- src/funcs/loginPortalsUpdateLoginPortal.ts | 11 +-- src/funcs/namespacesListNamespaces.ts | 12 +-- .../registryAddApiDocumentAccessGroup.ts | 11 +-- src/funcs/registryCreateApiDocument.ts | 10 ++- src/funcs/registryCreateApiDocumentVersion.ts | 11 +-- src/funcs/registryDeleteApiDocument.ts | 11 +-- src/funcs/registryDeleteApiDocumentVersion.ts | 11 +-- src/funcs/registryGetApiDocumentVersion.ts | 11 +-- .../registryGetApiDocumentVersionMetadata.ts | 13 +-- src/funcs/registryListAllApiDocuments.ts | 13 +-- src/funcs/registryListApiDocuments.ts | 12 +-- .../registryRemoveApiDocumentAccessGroup.ts | 11 +-- src/funcs/registryUpdateApiDocument.ts | 11 +-- src/funcs/registryUpdateApiDocumentVersion.ts | 10 ++- src/funcs/rulesAddRulesetAccessGroup.ts | 11 +-- src/funcs/rulesCreateRuleset.ts | 9 +- src/funcs/rulesDeleteRuleset.ts | 9 +- src/funcs/rulesGetRulesetDocument.ts | 11 +-- src/funcs/rulesListRulesets.ts | 12 +-- src/funcs/rulesRemoveRulesetAccessGroup.ts | 11 +-- src/funcs/rulesUpdateRuleset.ts | 9 +- src/funcs/scalarDocsCreateGuide.ts | 10 ++- src/funcs/scalarDocsListGuides.ts | 13 +-- src/funcs/scalarDocsPublishGuide.ts | 10 ++- src/funcs/schemasAddSchemaAccessGroup.ts | 11 +-- src/funcs/schemasCreateSchema.ts | 9 +- src/funcs/schemasCreateSchemaVersion.ts | 11 +-- src/funcs/schemasDeleteSchema.ts | 9 +- src/funcs/schemasDeleteSchemaVersion.ts | 11 +-- src/funcs/schemasGetSchemaVersion.ts | 11 +-- src/funcs/schemasListSchemas.ts | 12 +-- src/funcs/schemasRemoveSchemaAccessGroup.ts | 11 +-- src/funcs/schemasUpdateSchema.ts | 9 +- src/funcs/teamsListTeams.ts | 11 ++- src/funcs/themesCreateTheme.ts | 9 +- src/funcs/themesDeleteTheme.ts | 9 +- src/funcs/themesGetTheme.ts | 9 +- src/funcs/themesListThemes.ts | 11 ++- src/funcs/themesReplaceThemeDocument.ts | 11 +-- src/funcs/themesUpdateTheme.ts | 9 +- src/lib/config.ts | 6 +- src/lib/matchers.ts | 7 +- src/models/components/httpmetadata.ts | 87 +++++++++++++++++++ src/models/components/index.ts | 1 + src/models/errors/scalarerror.ts | 22 ++--- .../operations/addapidocumentaccessgroup.ts | 76 ++++++++++++++++ .../operations/addrulesetaccessgroup.ts | 75 ++++++++++++++++ src/models/operations/addschemaaccessgroup.ts | 75 ++++++++++++++++ src/models/operations/createapidocument.ts | 74 ++++++++++++++++ .../operations/createapidocumentversion.ts | 78 +++++++++++++++++ src/models/operations/createguide.ts | 75 ++++++++++++++++ src/models/operations/createloginportal.ts | 74 ++++++++++++++++ src/models/operations/createruleset.ts | 74 ++++++++++++++++ src/models/operations/createschema.ts | 74 ++++++++++++++++ src/models/operations/createschemaversion.ts | 76 ++++++++++++++++ src/models/operations/createtheme.ts | 75 ++++++++++++++++ src/models/operations/deleteapidocument.ts | 75 ++++++++++++++++ .../operations/deleteapidocumentversion.ts | 77 ++++++++++++++++ src/models/operations/deleteloginportal.ts | 75 ++++++++++++++++ src/models/operations/deleteruleset.ts | 75 ++++++++++++++++ src/models/operations/deleteschema.ts | 75 ++++++++++++++++ src/models/operations/deleteschemaversion.ts | 77 ++++++++++++++++ src/models/operations/deletetheme.ts | 75 ++++++++++++++++ .../operations/exchangepersonaltoken.ts | 79 +++++++++++++++++ .../operations/getapidocumentversion.ts | 77 ++++++++++++++++ .../getapidocumentversionmetadata.ts | 82 +++++++++++++++++ src/models/operations/getcurrentuser.ts | 83 ++++++++++++++++++ src/models/operations/getloginportal.ts | 74 ++++++++++++++++ src/models/operations/getrulesetdocument.ts | 75 ++++++++++++++++ src/models/operations/getschemaversion.ts | 75 ++++++++++++++++ src/models/operations/gettheme.ts | 75 ++++++++++++++++ src/models/operations/index.ts | 7 ++ src/models/operations/listallapidocuments.ts | 87 +++++++++++++++++++ src/models/operations/listapidocuments.ts | 77 ++++++++++++++++ src/models/operations/listguides.ts | 85 ++++++++++++++++++ src/models/operations/listloginportals.ts | 85 ++++++++++++++++++ src/models/operations/listnamespaces.ts | 83 ++++++++++++++++++ src/models/operations/listrulesets.ts | 75 ++++++++++++++++ src/models/operations/listschemas.ts | 75 ++++++++++++++++ src/models/operations/listteams.ts | 83 ++++++++++++++++++ src/models/operations/listthemes.ts | 83 ++++++++++++++++++ src/models/operations/publishguide.ts | 75 ++++++++++++++++ .../removeapidocumentaccessgroup.ts | 78 +++++++++++++++++ .../operations/removerulesetaccessgroup.ts | 75 ++++++++++++++++ .../operations/removeschemaaccessgroup.ts | 75 ++++++++++++++++ src/models/operations/replacethemedocument.ts | 76 ++++++++++++++++ src/models/operations/updateapidocument.ts | 74 ++++++++++++++++ .../operations/updateapidocumentversion.ts | 78 +++++++++++++++++ src/models/operations/updateloginportal.ts | 74 ++++++++++++++++ src/models/operations/updateruleset.ts | 74 ++++++++++++++++ src/models/operations/updateschema.ts | 74 ++++++++++++++++ src/models/operations/updatetheme.ts | 74 ++++++++++++++++ src/sdk/authentication.ts | 5 +- src/sdk/loginportals.ts | 11 ++- src/sdk/namespaces.ts | 3 +- src/sdk/registry.ts | 25 +++--- src/sdk/rules.ts | 15 ++-- src/sdk/scalardocs.ts | 7 +- src/sdk/schemas.ts | 19 ++-- src/sdk/teams.ts | 4 +- src/sdk/themes.ts | 13 ++- 166 files changed, 4760 insertions(+), 368 deletions(-) create mode 100644 docs/models/components/httpmetadata.md create mode 100644 docs/models/operations/addapidocumentaccessgroupresponse.md create mode 100644 docs/models/operations/addrulesetaccessgroupresponse.md create mode 100644 docs/models/operations/addschemaaccessgroupresponse.md create mode 100644 docs/models/operations/createapidocumentresponse.md create mode 100644 docs/models/operations/createapidocumentversionresponse.md create mode 100644 docs/models/operations/createguideresponse.md create mode 100644 docs/models/operations/createloginportalresponse.md create mode 100644 docs/models/operations/createrulesetresponse.md create mode 100644 docs/models/operations/createschemaresponse.md create mode 100644 docs/models/operations/createschemaversionresponse.md create mode 100644 docs/models/operations/createthemeresponse.md create mode 100644 docs/models/operations/deleteapidocumentresponse.md create mode 100644 docs/models/operations/deleteapidocumentversionresponse.md create mode 100644 docs/models/operations/deleteloginportalresponse.md create mode 100644 docs/models/operations/deleterulesetresponse.md create mode 100644 docs/models/operations/deleteschemaresponse.md create mode 100644 docs/models/operations/deleteschemaversionresponse.md create mode 100644 docs/models/operations/deletethemeresponse.md create mode 100644 docs/models/operations/exchangepersonaltokenresponse.md create mode 100644 docs/models/operations/getapidocumentversionmetadataresponse.md create mode 100644 docs/models/operations/getapidocumentversionresponse.md create mode 100644 docs/models/operations/getcurrentuserresponse.md create mode 100644 docs/models/operations/getloginportalresponse.md create mode 100644 docs/models/operations/getrulesetdocumentresponse.md create mode 100644 docs/models/operations/getschemaversionresponse.md create mode 100644 docs/models/operations/getthemeresponse.md create mode 100644 docs/models/operations/listallapidocumentsresponse.md create mode 100644 docs/models/operations/listapidocumentsresponse.md create mode 100644 docs/models/operations/listguidesresponse.md create mode 100644 docs/models/operations/listloginportalsresponse.md create mode 100644 docs/models/operations/listnamespacesresponse.md create mode 100644 docs/models/operations/listrulesetsresponse.md create mode 100644 docs/models/operations/listschemasresponse.md create mode 100644 docs/models/operations/listteamsresponse.md create mode 100644 docs/models/operations/listthemesresponse.md create mode 100644 docs/models/operations/publishguideresponse.md create mode 100644 docs/models/operations/removeapidocumentaccessgroupresponse.md create mode 100644 docs/models/operations/removerulesetaccessgroupresponse.md create mode 100644 docs/models/operations/removeschemaaccessgroupresponse.md create mode 100644 docs/models/operations/replacethemedocumentresponse.md create mode 100644 docs/models/operations/updateapidocumentresponse.md create mode 100644 docs/models/operations/updateapidocumentversionresponse.md create mode 100644 docs/models/operations/updateloginportalresponse.md create mode 100644 docs/models/operations/updaterulesetresponse.md create mode 100644 docs/models/operations/updateschemaresponse.md create mode 100644 docs/models/operations/updatethemeresponse.md create mode 100644 src/models/components/httpmetadata.ts create mode 100644 src/models/operations/getcurrentuser.ts create mode 100644 src/models/operations/listallapidocuments.ts create mode 100644 src/models/operations/listguides.ts create mode 100644 src/models/operations/listloginportals.ts create mode 100644 src/models/operations/listnamespaces.ts create mode 100644 src/models/operations/listteams.ts create mode 100644 src/models/operations/listthemes.ts diff --git a/README.md b/README.md index 24be2b0..5d8dd7f 100644 --- a/README.md +++ b/README.md @@ -416,14 +416,12 @@ run(); [`ScalarError`](./src/models/errors/scalarerror.ts) is the base class for all HTTP error responses. It has the following properties: -| Property | Type | Description | -| ------------------- | ---------- | --------------------------------------------------------------------------------------- | -| `error.message` | `string` | Error message | -| `error.statusCode` | `number` | HTTP response status code eg `404` | -| `error.headers` | `Headers` | HTTP response headers | -| `error.body` | `string` | HTTP body. Can be empty string if no body is returned. | -| `error.rawResponse` | `Response` | Raw HTTP response | -| `error.data$` | | Optional. Some errors may contain structured data. [See Error Classes](#error-classes). | +| Property | Type | Description | +| ------------------------- | ---------- | --------------------------------------------------------------------------------------- | +| `error.message` | `string` | Error message | +| `error.httpMeta.response` | `Response` | HTTP response. Access to headers and more. | +| `error.httpMeta.request` | `Request` | HTTP request. Access to headers and more. | +| `error.data$` | | Optional. Some errors may contain structured data. [See Error Classes](#error-classes). | ### Example ```typescript @@ -443,9 +441,9 @@ async function run() { // The base class for HTTP error responses if (error instanceof errors.ScalarError) { console.log(error.message); - console.log(error.statusCode); - console.log(error.body); - console.log(error.headers); + console.log(error.httpMeta.response.status); + console.log(error.httpMeta.response.headers); + console.log(error.httpMeta.request); // Depending on the method different errors may be thrown if (error instanceof errors.FourHundred) { diff --git a/docs/models/components/httpmetadata.md b/docs/models/components/httpmetadata.md new file mode 100644 index 0000000..9d6e531 --- /dev/null +++ b/docs/models/components/httpmetadata.md @@ -0,0 +1,16 @@ +# HTTPMetadata + +## Example Usage + +```typescript +import { HTTPMetadata } from "@scalar/sdk/models/components"; + +let value: HTTPMetadata = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `response` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `request` | *Request* | :heavy_check_mark: | Raw HTTP request; suitable for debugging | \ No newline at end of file diff --git a/docs/models/operations/addapidocumentaccessgroupresponse.md b/docs/models/operations/addapidocumentaccessgroupresponse.md new file mode 100644 index 0000000..c7045b1 --- /dev/null +++ b/docs/models/operations/addapidocumentaccessgroupresponse.md @@ -0,0 +1,16 @@ +# AddApiDocumentAccessGroupResponse + +## Example Usage + +```typescript +import { AddApiDocumentAccessGroupResponse } from "@scalar/sdk/models/operations"; + +let value: AddApiDocumentAccessGroupResponse = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | +| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | +| `any` | *any* | :heavy_minus_sign: | Default Response | \ No newline at end of file diff --git a/docs/models/operations/addrulesetaccessgroupresponse.md b/docs/models/operations/addrulesetaccessgroupresponse.md new file mode 100644 index 0000000..e05f3db --- /dev/null +++ b/docs/models/operations/addrulesetaccessgroupresponse.md @@ -0,0 +1,16 @@ +# AddRulesetAccessGroupResponse + +## Example Usage + +```typescript +import { AddRulesetAccessGroupResponse } from "@scalar/sdk/models/operations"; + +let value: AddRulesetAccessGroupResponse = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | +| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | +| `any` | *any* | :heavy_minus_sign: | Default Response | \ No newline at end of file diff --git a/docs/models/operations/addschemaaccessgroupresponse.md b/docs/models/operations/addschemaaccessgroupresponse.md new file mode 100644 index 0000000..efb9012 --- /dev/null +++ b/docs/models/operations/addschemaaccessgroupresponse.md @@ -0,0 +1,16 @@ +# AddSchemaAccessGroupResponse + +## Example Usage + +```typescript +import { AddSchemaAccessGroupResponse } from "@scalar/sdk/models/operations"; + +let value: AddSchemaAccessGroupResponse = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | +| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | +| `any` | *any* | :heavy_minus_sign: | Default Response | \ No newline at end of file diff --git a/docs/models/operations/createapidocumentresponse.md b/docs/models/operations/createapidocumentresponse.md new file mode 100644 index 0000000..6e7f873 --- /dev/null +++ b/docs/models/operations/createapidocumentresponse.md @@ -0,0 +1,16 @@ +# CreateApiDocumentResponse + +## Example Usage + +```typescript +import { CreateApiDocumentResponse } from "@scalar/sdk/models/operations"; + +let value: CreateApiDocumentResponse = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | +| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | +| `object` | [operations.CreateApiDocumentResponseBody](../../models/operations/createapidocumentresponsebody.md) | :heavy_minus_sign: | Default Response | \ No newline at end of file diff --git a/docs/models/operations/createapidocumentversionresponse.md b/docs/models/operations/createapidocumentversionresponse.md new file mode 100644 index 0000000..60cb393 --- /dev/null +++ b/docs/models/operations/createapidocumentversionresponse.md @@ -0,0 +1,16 @@ +# CreateApiDocumentVersionResponse + +## Example Usage + +```typescript +import { CreateApiDocumentVersionResponse } from "@scalar/sdk/models/operations"; + +let value: CreateApiDocumentVersionResponse = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | +| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | +| `managedDocVersion` | [components.ManagedDocVersion](../../models/components/manageddocversion.md) | :heavy_minus_sign: | Default Response | \ No newline at end of file diff --git a/docs/models/operations/createguideresponse.md b/docs/models/operations/createguideresponse.md new file mode 100644 index 0000000..11995ad --- /dev/null +++ b/docs/models/operations/createguideresponse.md @@ -0,0 +1,16 @@ +# CreateGuideResponse + +## Example Usage + +```typescript +import { CreateGuideResponse } from "@scalar/sdk/models/operations"; + +let value: CreateGuideResponse = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | +| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | +| `object` | [operations.CreateGuideResponseBody](../../models/operations/createguideresponsebody.md) | :heavy_minus_sign: | Default Response | \ No newline at end of file diff --git a/docs/models/operations/createloginportalresponse.md b/docs/models/operations/createloginportalresponse.md new file mode 100644 index 0000000..e32e259 --- /dev/null +++ b/docs/models/operations/createloginportalresponse.md @@ -0,0 +1,16 @@ +# CreateLoginPortalResponse + +## Example Usage + +```typescript +import { CreateLoginPortalResponse } from "@scalar/sdk/models/operations"; + +let value: CreateLoginPortalResponse = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | +| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | +| `uid` | [components.Uid](../../models/components/uid.md) | :heavy_minus_sign: | Default Response | \ No newline at end of file diff --git a/docs/models/operations/createrulesetresponse.md b/docs/models/operations/createrulesetresponse.md new file mode 100644 index 0000000..80d9b64 --- /dev/null +++ b/docs/models/operations/createrulesetresponse.md @@ -0,0 +1,16 @@ +# CreateRulesetResponse + +## Example Usage + +```typescript +import { CreateRulesetResponse } from "@scalar/sdk/models/operations"; + +let value: CreateRulesetResponse = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | +| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | +| `uid` | [components.Uid](../../models/components/uid.md) | :heavy_minus_sign: | Default Response | \ No newline at end of file diff --git a/docs/models/operations/createschemaresponse.md b/docs/models/operations/createschemaresponse.md new file mode 100644 index 0000000..1f3dce6 --- /dev/null +++ b/docs/models/operations/createschemaresponse.md @@ -0,0 +1,16 @@ +# CreateSchemaResponse + +## Example Usage + +```typescript +import { CreateSchemaResponse } from "@scalar/sdk/models/operations"; + +let value: CreateSchemaResponse = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | +| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | +| `uid` | [components.Uid](../../models/components/uid.md) | :heavy_minus_sign: | Default Response | \ No newline at end of file diff --git a/docs/models/operations/createschemaversionresponse.md b/docs/models/operations/createschemaversionresponse.md new file mode 100644 index 0000000..2025bfd --- /dev/null +++ b/docs/models/operations/createschemaversionresponse.md @@ -0,0 +1,16 @@ +# CreateSchemaVersionResponse + +## Example Usage + +```typescript +import { CreateSchemaVersionResponse } from "@scalar/sdk/models/operations"; + +let value: CreateSchemaVersionResponse = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | +| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | +| `uid` | [components.Uid](../../models/components/uid.md) | :heavy_minus_sign: | Default Response | \ No newline at end of file diff --git a/docs/models/operations/createthemeresponse.md b/docs/models/operations/createthemeresponse.md new file mode 100644 index 0000000..a0d18d0 --- /dev/null +++ b/docs/models/operations/createthemeresponse.md @@ -0,0 +1,16 @@ +# CreateThemeResponse + +## Example Usage + +```typescript +import { CreateThemeResponse } from "@scalar/sdk/models/operations"; + +let value: CreateThemeResponse = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | +| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | +| `uid` | [components.Uid](../../models/components/uid.md) | :heavy_minus_sign: | Default Response | \ No newline at end of file diff --git a/docs/models/operations/deleteapidocumentresponse.md b/docs/models/operations/deleteapidocumentresponse.md new file mode 100644 index 0000000..0fa00c1 --- /dev/null +++ b/docs/models/operations/deleteapidocumentresponse.md @@ -0,0 +1,16 @@ +# DeleteApiDocumentResponse + +## Example Usage + +```typescript +import { DeleteApiDocumentResponse } from "@scalar/sdk/models/operations"; + +let value: DeleteApiDocumentResponse = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | +| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | +| `any` | *any* | :heavy_minus_sign: | Default Response | \ No newline at end of file diff --git a/docs/models/operations/deleteapidocumentversionresponse.md b/docs/models/operations/deleteapidocumentversionresponse.md new file mode 100644 index 0000000..7686bd6 --- /dev/null +++ b/docs/models/operations/deleteapidocumentversionresponse.md @@ -0,0 +1,16 @@ +# DeleteApiDocumentVersionResponse + +## Example Usage + +```typescript +import { DeleteApiDocumentVersionResponse } from "@scalar/sdk/models/operations"; + +let value: DeleteApiDocumentVersionResponse = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | +| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | +| `any` | *any* | :heavy_minus_sign: | Default Response | \ No newline at end of file diff --git a/docs/models/operations/deleteloginportalresponse.md b/docs/models/operations/deleteloginportalresponse.md new file mode 100644 index 0000000..24db50c --- /dev/null +++ b/docs/models/operations/deleteloginportalresponse.md @@ -0,0 +1,16 @@ +# DeleteLoginPortalResponse + +## Example Usage + +```typescript +import { DeleteLoginPortalResponse } from "@scalar/sdk/models/operations"; + +let value: DeleteLoginPortalResponse = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | +| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | +| `any` | *any* | :heavy_minus_sign: | Default Response | \ No newline at end of file diff --git a/docs/models/operations/deleterulesetresponse.md b/docs/models/operations/deleterulesetresponse.md new file mode 100644 index 0000000..939d2f5 --- /dev/null +++ b/docs/models/operations/deleterulesetresponse.md @@ -0,0 +1,16 @@ +# DeleteRulesetResponse + +## Example Usage + +```typescript +import { DeleteRulesetResponse } from "@scalar/sdk/models/operations"; + +let value: DeleteRulesetResponse = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | +| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | +| `any` | *any* | :heavy_minus_sign: | Default Response | \ No newline at end of file diff --git a/docs/models/operations/deleteschemaresponse.md b/docs/models/operations/deleteschemaresponse.md new file mode 100644 index 0000000..0e2cd27 --- /dev/null +++ b/docs/models/operations/deleteschemaresponse.md @@ -0,0 +1,16 @@ +# DeleteSchemaResponse + +## Example Usage + +```typescript +import { DeleteSchemaResponse } from "@scalar/sdk/models/operations"; + +let value: DeleteSchemaResponse = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | +| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | +| `any` | *any* | :heavy_minus_sign: | Default Response | \ No newline at end of file diff --git a/docs/models/operations/deleteschemaversionresponse.md b/docs/models/operations/deleteschemaversionresponse.md new file mode 100644 index 0000000..a52003d --- /dev/null +++ b/docs/models/operations/deleteschemaversionresponse.md @@ -0,0 +1,16 @@ +# DeleteSchemaVersionResponse + +## Example Usage + +```typescript +import { DeleteSchemaVersionResponse } from "@scalar/sdk/models/operations"; + +let value: DeleteSchemaVersionResponse = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | +| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | +| `any` | *any* | :heavy_minus_sign: | Default Response | \ No newline at end of file diff --git a/docs/models/operations/deletethemeresponse.md b/docs/models/operations/deletethemeresponse.md new file mode 100644 index 0000000..09d3329 --- /dev/null +++ b/docs/models/operations/deletethemeresponse.md @@ -0,0 +1,16 @@ +# DeleteThemeResponse + +## Example Usage + +```typescript +import { DeleteThemeResponse } from "@scalar/sdk/models/operations"; + +let value: DeleteThemeResponse = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | +| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | +| `any` | *any* | :heavy_minus_sign: | Default Response | \ No newline at end of file diff --git a/docs/models/operations/exchangepersonaltokenresponse.md b/docs/models/operations/exchangepersonaltokenresponse.md new file mode 100644 index 0000000..136f59e --- /dev/null +++ b/docs/models/operations/exchangepersonaltokenresponse.md @@ -0,0 +1,16 @@ +# ExchangePersonalTokenResponse + +## Example Usage + +```typescript +import { ExchangePersonalTokenResponse } from "@scalar/sdk/models/operations"; + +let value: ExchangePersonalTokenResponse = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | +| `object` | [operations.ExchangePersonalTokenResponseBody](../../models/operations/exchangepersonaltokenresponsebody.md) | :heavy_minus_sign: | Default Response | \ No newline at end of file diff --git a/docs/models/operations/getapidocumentversionmetadataresponse.md b/docs/models/operations/getapidocumentversionmetadataresponse.md new file mode 100644 index 0000000..2ef884e --- /dev/null +++ b/docs/models/operations/getapidocumentversionmetadataresponse.md @@ -0,0 +1,16 @@ +# GetApiDocumentVersionMetadataResponse + +## Example Usage + +```typescript +import { GetApiDocumentVersionMetadataResponse } from "@scalar/sdk/models/operations"; + +let value: GetApiDocumentVersionMetadataResponse = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | +| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | +| `managedDocVersion` | [components.ManagedDocVersion](../../models/components/manageddocversion.md) | :heavy_minus_sign: | Default Response | \ No newline at end of file diff --git a/docs/models/operations/getapidocumentversionresponse.md b/docs/models/operations/getapidocumentversionresponse.md new file mode 100644 index 0000000..6c8cf8b --- /dev/null +++ b/docs/models/operations/getapidocumentversionresponse.md @@ -0,0 +1,16 @@ +# GetApiDocumentVersionResponse + +## Example Usage + +```typescript +import { GetApiDocumentVersionResponse } from "@scalar/sdk/models/operations"; + +let value: GetApiDocumentVersionResponse = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | +| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | +| `res` | *string* | :heavy_minus_sign: | Default Response | \ No newline at end of file diff --git a/docs/models/operations/getcurrentuserresponse.md b/docs/models/operations/getcurrentuserresponse.md new file mode 100644 index 0000000..8de000c --- /dev/null +++ b/docs/models/operations/getcurrentuserresponse.md @@ -0,0 +1,16 @@ +# GetCurrentUserResponse + +## Example Usage + +```typescript +import { GetCurrentUserResponse } from "@scalar/sdk/models/operations"; + +let value: GetCurrentUserResponse = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | +| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | +| `user` | [components.User](../../models/components/user.md) | :heavy_minus_sign: | Default Response | \ No newline at end of file diff --git a/docs/models/operations/getloginportalresponse.md b/docs/models/operations/getloginportalresponse.md new file mode 100644 index 0000000..a5701fb --- /dev/null +++ b/docs/models/operations/getloginportalresponse.md @@ -0,0 +1,16 @@ +# GetLoginPortalResponse + +## Example Usage + +```typescript +import { GetLoginPortalResponse } from "@scalar/sdk/models/operations"; + +let value: GetLoginPortalResponse = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | +| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | +| `object` | [operations.GetLoginPortalResponseBody](../../models/operations/getloginportalresponsebody.md) | :heavy_minus_sign: | Default Response | \ No newline at end of file diff --git a/docs/models/operations/getrulesetdocumentresponse.md b/docs/models/operations/getrulesetdocumentresponse.md new file mode 100644 index 0000000..d0e0359 --- /dev/null +++ b/docs/models/operations/getrulesetdocumentresponse.md @@ -0,0 +1,16 @@ +# GetRulesetDocumentResponse + +## Example Usage + +```typescript +import { GetRulesetDocumentResponse } from "@scalar/sdk/models/operations"; + +let value: GetRulesetDocumentResponse = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | +| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | +| `res` | *string* | :heavy_minus_sign: | Default Response | \ No newline at end of file diff --git a/docs/models/operations/getschemaversionresponse.md b/docs/models/operations/getschemaversionresponse.md new file mode 100644 index 0000000..188ab22 --- /dev/null +++ b/docs/models/operations/getschemaversionresponse.md @@ -0,0 +1,16 @@ +# GetSchemaVersionResponse + +## Example Usage + +```typescript +import { GetSchemaVersionResponse } from "@scalar/sdk/models/operations"; + +let value: GetSchemaVersionResponse = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | +| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | +| `res` | *string* | :heavy_minus_sign: | Default Response | \ No newline at end of file diff --git a/docs/models/operations/getthemeresponse.md b/docs/models/operations/getthemeresponse.md new file mode 100644 index 0000000..b7d965b --- /dev/null +++ b/docs/models/operations/getthemeresponse.md @@ -0,0 +1,16 @@ +# GetThemeResponse + +## Example Usage + +```typescript +import { GetThemeResponse } from "@scalar/sdk/models/operations"; + +let value: GetThemeResponse = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | +| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | +| `res` | *string* | :heavy_minus_sign: | Default Response | \ No newline at end of file diff --git a/docs/models/operations/listallapidocumentsresponse.md b/docs/models/operations/listallapidocumentsresponse.md new file mode 100644 index 0000000..4483da9 --- /dev/null +++ b/docs/models/operations/listallapidocumentsresponse.md @@ -0,0 +1,16 @@ +# ListAllApiDocumentsResponse + +## Example Usage + +```typescript +import { ListAllApiDocumentsResponse } from "@scalar/sdk/models/operations"; + +let value: ListAllApiDocumentsResponse = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | +| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | +| `apiDocuments` | [components.ApiDocument](../../models/components/apidocument.md)[] | :heavy_minus_sign: | Default Response | \ No newline at end of file diff --git a/docs/models/operations/listapidocumentsresponse.md b/docs/models/operations/listapidocumentsresponse.md new file mode 100644 index 0000000..429a6c6 --- /dev/null +++ b/docs/models/operations/listapidocumentsresponse.md @@ -0,0 +1,16 @@ +# ListApiDocumentsResponse + +## Example Usage + +```typescript +import { ListApiDocumentsResponse } from "@scalar/sdk/models/operations"; + +let value: ListApiDocumentsResponse = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | +| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | +| `apiDocuments` | [components.ApiDocument](../../models/components/apidocument.md)[] | :heavy_minus_sign: | Default Response | \ No newline at end of file diff --git a/docs/models/operations/listguidesresponse.md b/docs/models/operations/listguidesresponse.md new file mode 100644 index 0000000..d37eeab --- /dev/null +++ b/docs/models/operations/listguidesresponse.md @@ -0,0 +1,16 @@ +# ListGuidesResponse + +## Example Usage + +```typescript +import { ListGuidesResponse } from "@scalar/sdk/models/operations"; + +let value: ListGuidesResponse = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | +| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | +| `githubProjects` | [components.GithubProject](../../models/components/githubproject.md)[] | :heavy_minus_sign: | Default Response | \ No newline at end of file diff --git a/docs/models/operations/listloginportalsresponse.md b/docs/models/operations/listloginportalsresponse.md new file mode 100644 index 0000000..27b1f19 --- /dev/null +++ b/docs/models/operations/listloginportalsresponse.md @@ -0,0 +1,16 @@ +# ListLoginPortalsResponse + +## Example Usage + +```typescript +import { ListLoginPortalsResponse } from "@scalar/sdk/models/operations"; + +let value: ListLoginPortalsResponse = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | +| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | +| `loginPortals` | [components.LoginPortal](../../models/components/loginportal.md)[] | :heavy_minus_sign: | Default Response | \ No newline at end of file diff --git a/docs/models/operations/listnamespacesresponse.md b/docs/models/operations/listnamespacesresponse.md new file mode 100644 index 0000000..0ef9e8f --- /dev/null +++ b/docs/models/operations/listnamespacesresponse.md @@ -0,0 +1,16 @@ +# ListNamespacesResponse + +## Example Usage + +```typescript +import { ListNamespacesResponse } from "@scalar/sdk/models/operations"; + +let value: ListNamespacesResponse = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | +| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | +| `strings` | *string*[] | :heavy_minus_sign: | Default Response | \ No newline at end of file diff --git a/docs/models/operations/listrulesetsresponse.md b/docs/models/operations/listrulesetsresponse.md new file mode 100644 index 0000000..2b9b655 --- /dev/null +++ b/docs/models/operations/listrulesetsresponse.md @@ -0,0 +1,16 @@ +# ListRulesetsResponse + +## Example Usage + +```typescript +import { ListRulesetsResponse } from "@scalar/sdk/models/operations"; + +let value: ListRulesetsResponse = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | +| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | +| `rules` | [components.Rule](../../models/components/rule.md)[] | :heavy_minus_sign: | Default Response | \ No newline at end of file diff --git a/docs/models/operations/listschemasresponse.md b/docs/models/operations/listschemasresponse.md new file mode 100644 index 0000000..afda15a --- /dev/null +++ b/docs/models/operations/listschemasresponse.md @@ -0,0 +1,16 @@ +# ListSchemasResponse + +## Example Usage + +```typescript +import { ListSchemasResponse } from "@scalar/sdk/models/operations"; + +let value: ListSchemasResponse = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | +| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | +| `schemata` | [components.Schema](../../models/components/schema.md)[] | :heavy_minus_sign: | Default Response | \ No newline at end of file diff --git a/docs/models/operations/listteamsresponse.md b/docs/models/operations/listteamsresponse.md new file mode 100644 index 0000000..c587bab --- /dev/null +++ b/docs/models/operations/listteamsresponse.md @@ -0,0 +1,16 @@ +# ListTeamsResponse + +## Example Usage + +```typescript +import { ListTeamsResponse } from "@scalar/sdk/models/operations"; + +let value: ListTeamsResponse = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | +| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | +| `teams` | [components.Team](../../models/components/team.md)[] | :heavy_minus_sign: | Default Response | \ No newline at end of file diff --git a/docs/models/operations/listthemesresponse.md b/docs/models/operations/listthemesresponse.md new file mode 100644 index 0000000..b4fa340 --- /dev/null +++ b/docs/models/operations/listthemesresponse.md @@ -0,0 +1,16 @@ +# ListThemesResponse + +## Example Usage + +```typescript +import { ListThemesResponse } from "@scalar/sdk/models/operations"; + +let value: ListThemesResponse = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | +| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | +| `themes` | [components.Theme](../../models/components/theme.md)[] | :heavy_minus_sign: | Default Response | \ No newline at end of file diff --git a/docs/models/operations/publishguideresponse.md b/docs/models/operations/publishguideresponse.md new file mode 100644 index 0000000..15741ed --- /dev/null +++ b/docs/models/operations/publishguideresponse.md @@ -0,0 +1,16 @@ +# PublishGuideResponse + +## Example Usage + +```typescript +import { PublishGuideResponse } from "@scalar/sdk/models/operations"; + +let value: PublishGuideResponse = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | +| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | +| `object` | [operations.PublishGuideResponseBody](../../models/operations/publishguideresponsebody.md) | :heavy_minus_sign: | Default Response | \ No newline at end of file diff --git a/docs/models/operations/removeapidocumentaccessgroupresponse.md b/docs/models/operations/removeapidocumentaccessgroupresponse.md new file mode 100644 index 0000000..32cc836 --- /dev/null +++ b/docs/models/operations/removeapidocumentaccessgroupresponse.md @@ -0,0 +1,16 @@ +# RemoveApiDocumentAccessGroupResponse + +## Example Usage + +```typescript +import { RemoveApiDocumentAccessGroupResponse } from "@scalar/sdk/models/operations"; + +let value: RemoveApiDocumentAccessGroupResponse = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | +| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | +| `any` | *any* | :heavy_minus_sign: | Default Response | \ No newline at end of file diff --git a/docs/models/operations/removerulesetaccessgroupresponse.md b/docs/models/operations/removerulesetaccessgroupresponse.md new file mode 100644 index 0000000..70c13b4 --- /dev/null +++ b/docs/models/operations/removerulesetaccessgroupresponse.md @@ -0,0 +1,16 @@ +# RemoveRulesetAccessGroupResponse + +## Example Usage + +```typescript +import { RemoveRulesetAccessGroupResponse } from "@scalar/sdk/models/operations"; + +let value: RemoveRulesetAccessGroupResponse = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | +| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | +| `any` | *any* | :heavy_minus_sign: | Default Response | \ No newline at end of file diff --git a/docs/models/operations/removeschemaaccessgroupresponse.md b/docs/models/operations/removeschemaaccessgroupresponse.md new file mode 100644 index 0000000..b8b89b3 --- /dev/null +++ b/docs/models/operations/removeschemaaccessgroupresponse.md @@ -0,0 +1,16 @@ +# RemoveSchemaAccessGroupResponse + +## Example Usage + +```typescript +import { RemoveSchemaAccessGroupResponse } from "@scalar/sdk/models/operations"; + +let value: RemoveSchemaAccessGroupResponse = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | +| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | +| `any` | *any* | :heavy_minus_sign: | Default Response | \ No newline at end of file diff --git a/docs/models/operations/replacethemedocumentresponse.md b/docs/models/operations/replacethemedocumentresponse.md new file mode 100644 index 0000000..34b9c0b --- /dev/null +++ b/docs/models/operations/replacethemedocumentresponse.md @@ -0,0 +1,16 @@ +# ReplaceThemeDocumentResponse + +## Example Usage + +```typescript +import { ReplaceThemeDocumentResponse } from "@scalar/sdk/models/operations"; + +let value: ReplaceThemeDocumentResponse = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | +| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | +| `any` | *any* | :heavy_minus_sign: | Default Response | \ No newline at end of file diff --git a/docs/models/operations/updateapidocumentresponse.md b/docs/models/operations/updateapidocumentresponse.md new file mode 100644 index 0000000..ad9eae3 --- /dev/null +++ b/docs/models/operations/updateapidocumentresponse.md @@ -0,0 +1,16 @@ +# UpdateApiDocumentResponse + +## Example Usage + +```typescript +import { UpdateApiDocumentResponse } from "@scalar/sdk/models/operations"; + +let value: UpdateApiDocumentResponse = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | +| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | +| `any` | *any* | :heavy_minus_sign: | Default Response | \ No newline at end of file diff --git a/docs/models/operations/updateapidocumentversionresponse.md b/docs/models/operations/updateapidocumentversionresponse.md new file mode 100644 index 0000000..af57e9c --- /dev/null +++ b/docs/models/operations/updateapidocumentversionresponse.md @@ -0,0 +1,16 @@ +# UpdateApiDocumentVersionResponse + +## Example Usage + +```typescript +import { UpdateApiDocumentVersionResponse } from "@scalar/sdk/models/operations"; + +let value: UpdateApiDocumentVersionResponse = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | +| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | +| `object` | [operations.UpdateApiDocumentVersionResponseBody](../../models/operations/updateapidocumentversionresponsebody.md) | :heavy_minus_sign: | Default Response | \ No newline at end of file diff --git a/docs/models/operations/updateloginportalresponse.md b/docs/models/operations/updateloginportalresponse.md new file mode 100644 index 0000000..c8d8fdf --- /dev/null +++ b/docs/models/operations/updateloginportalresponse.md @@ -0,0 +1,16 @@ +# UpdateLoginPortalResponse + +## Example Usage + +```typescript +import { UpdateLoginPortalResponse } from "@scalar/sdk/models/operations"; + +let value: UpdateLoginPortalResponse = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | +| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | +| `any` | *any* | :heavy_minus_sign: | Default Response | \ No newline at end of file diff --git a/docs/models/operations/updaterulesetresponse.md b/docs/models/operations/updaterulesetresponse.md new file mode 100644 index 0000000..504763c --- /dev/null +++ b/docs/models/operations/updaterulesetresponse.md @@ -0,0 +1,16 @@ +# UpdateRulesetResponse + +## Example Usage + +```typescript +import { UpdateRulesetResponse } from "@scalar/sdk/models/operations"; + +let value: UpdateRulesetResponse = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | +| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | +| `any` | *any* | :heavy_minus_sign: | Default Response | \ No newline at end of file diff --git a/docs/models/operations/updateschemaresponse.md b/docs/models/operations/updateschemaresponse.md new file mode 100644 index 0000000..5830a54 --- /dev/null +++ b/docs/models/operations/updateschemaresponse.md @@ -0,0 +1,16 @@ +# UpdateSchemaResponse + +## Example Usage + +```typescript +import { UpdateSchemaResponse } from "@scalar/sdk/models/operations"; + +let value: UpdateSchemaResponse = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | +| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | +| `any` | *any* | :heavy_minus_sign: | Default Response | \ No newline at end of file diff --git a/docs/models/operations/updatethemeresponse.md b/docs/models/operations/updatethemeresponse.md new file mode 100644 index 0000000..12539ec --- /dev/null +++ b/docs/models/operations/updatethemeresponse.md @@ -0,0 +1,16 @@ +# UpdateThemeResponse + +## Example Usage + +```typescript +import { UpdateThemeResponse } from "@scalar/sdk/models/operations"; + +let value: UpdateThemeResponse = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | +| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | +| `any` | *any* | :heavy_minus_sign: | Default Response | \ No newline at end of file diff --git a/docs/sdks/authentication/README.md b/docs/sdks/authentication/README.md index 08ba768..04982ea 100644 --- a/docs/sdks/authentication/README.md +++ b/docs/sdks/authentication/README.md @@ -70,7 +70,7 @@ run(); ### Response -**Promise\<[operations.ExchangePersonalTokenResponseBody](../../models/operations/exchangepersonaltokenresponsebody.md)\>** +**Promise\<[operations.ExchangePersonalTokenResponse](../../models/operations/exchangepersonaltokenresponse.md)\>** ### Errors @@ -143,7 +143,7 @@ run(); ### Response -**Promise\<[components.User](../../models/components/user.md)\>** +**Promise\<[operations.GetCurrentUserResponse](../../models/operations/getcurrentuserresponse.md)\>** ### Errors diff --git a/docs/sdks/loginportals/README.md b/docs/sdks/loginportals/README.md index 1b67cdd..0e2e145 100644 --- a/docs/sdks/loginportals/README.md +++ b/docs/sdks/loginportals/README.md @@ -77,7 +77,7 @@ run(); ### Response -**Promise\<[operations.GetLoginPortalResponseBody](../../models/operations/getloginportalresponsebody.md)\>** +**Promise\<[operations.GetLoginPortalResponse](../../models/operations/getloginportalresponse.md)\>** ### Errors @@ -157,7 +157,7 @@ run(); ### Response -**Promise\<[any](../../models/.md)\>** +**Promise\<[operations.UpdateLoginPortalResponse](../../models/operations/updateloginportalresponse.md)\>** ### Errors @@ -235,7 +235,7 @@ run(); ### Response -**Promise\<[any](../../models/.md)\>** +**Promise\<[operations.DeleteLoginPortalResponse](../../models/operations/deleteloginportalresponse.md)\>** ### Errors @@ -319,7 +319,7 @@ run(); ### Response -**Promise\<[components.Uid](../../models/components/uid.md)\>** +**Promise\<[operations.CreateLoginPortalResponse](../../models/operations/createloginportalresponse.md)\>** ### Errors @@ -392,7 +392,7 @@ run(); ### Response -**Promise\<[components.LoginPortal[]](../../models/.md)\>** +**Promise\<[operations.ListLoginPortalsResponse](../../models/operations/listloginportalsresponse.md)\>** ### Errors diff --git a/docs/sdks/namespaces/README.md b/docs/sdks/namespaces/README.md index f8433c5..75ea182 100644 --- a/docs/sdks/namespaces/README.md +++ b/docs/sdks/namespaces/README.md @@ -68,7 +68,7 @@ run(); ### Response -**Promise\<[string[]](../../models/.md)\>** +**Promise\<[operations.ListNamespacesResponse](../../models/operations/listnamespacesresponse.md)\>** ### Errors diff --git a/docs/sdks/registry/README.md b/docs/sdks/registry/README.md index b3f8b8e..175c5e4 100644 --- a/docs/sdks/registry/README.md +++ b/docs/sdks/registry/README.md @@ -79,7 +79,7 @@ run(); ### Response -**Promise\<[components.ApiDocument[]](../../models/.md)\>** +**Promise\<[operations.ListAllApiDocumentsResponse](../../models/operations/listallapidocumentsresponse.md)\>** ### Errors @@ -157,7 +157,7 @@ run(); ### Response -**Promise\<[components.ApiDocument[]](../../models/.md)\>** +**Promise\<[operations.ListApiDocumentsResponse](../../models/operations/listapidocumentsresponse.md)\>** ### Errors @@ -247,7 +247,7 @@ run(); ### Response -**Promise\<[operations.CreateApiDocumentResponseBody](../../models/operations/createapidocumentresponsebody.md)\>** +**Promise\<[operations.CreateApiDocumentResponse](../../models/operations/createapidocumentresponse.md)\>** ### Errors @@ -329,7 +329,7 @@ run(); ### Response -**Promise\<[any](../../models/.md)\>** +**Promise\<[operations.UpdateApiDocumentResponse](../../models/operations/updateapidocumentresponse.md)\>** ### Errors @@ -409,7 +409,7 @@ run(); ### Response -**Promise\<[any](../../models/.md)\>** +**Promise\<[operations.DeleteApiDocumentResponse](../../models/operations/deleteapidocumentresponse.md)\>** ### Errors @@ -491,7 +491,7 @@ run(); ### Response -**Promise\<[string](../../models/.md)\>** +**Promise\<[operations.GetApiDocumentVersionResponse](../../models/operations/getapidocumentversionresponse.md)\>** ### Errors @@ -579,7 +579,7 @@ run(); ### Response -**Promise\<[operations.UpdateApiDocumentVersionResponseBody](../../models/operations/updateapidocumentversionresponsebody.md)\>** +**Promise\<[operations.UpdateApiDocumentVersionResponse](../../models/operations/updateapidocumentversionresponse.md)\>** ### Errors @@ -661,7 +661,7 @@ run(); ### Response -**Promise\<[any](../../models/.md)\>** +**Promise\<[operations.DeleteApiDocumentVersionResponse](../../models/operations/deleteapidocumentversionresponse.md)\>** ### Errors @@ -743,7 +743,7 @@ run(); ### Response -**Promise\<[components.ManagedDocVersion](../../models/components/manageddocversion.md)\>** +**Promise\<[operations.GetApiDocumentVersionMetadataResponse](../../models/operations/getapidocumentversionmetadataresponse.md)\>** ### Errors @@ -831,7 +831,7 @@ run(); ### Response -**Promise\<[components.ManagedDocVersion](../../models/components/manageddocversion.md)\>** +**Promise\<[operations.CreateApiDocumentVersionResponse](../../models/operations/createapidocumentversionresponse.md)\>** ### Errors @@ -917,7 +917,7 @@ run(); ### Response -**Promise\<[any](../../models/.md)\>** +**Promise\<[operations.AddApiDocumentAccessGroupResponse](../../models/operations/addapidocumentaccessgroupresponse.md)\>** ### Errors @@ -1003,7 +1003,7 @@ run(); ### Response -**Promise\<[any](../../models/.md)\>** +**Promise\<[operations.RemoveApiDocumentAccessGroupResponse](../../models/operations/removeapidocumentaccessgroupresponse.md)\>** ### Errors diff --git a/docs/sdks/rules/README.md b/docs/sdks/rules/README.md index ed9e08e..f073fe2 100644 --- a/docs/sdks/rules/README.md +++ b/docs/sdks/rules/README.md @@ -79,7 +79,7 @@ run(); ### Response -**Promise\<[components.Rule[]](../../models/.md)\>** +**Promise\<[operations.ListRulesetsResponse](../../models/operations/listrulesetsresponse.md)\>** ### Errors @@ -167,7 +167,7 @@ run(); ### Response -**Promise\<[components.Uid](../../models/components/uid.md)\>** +**Promise\<[operations.CreateRulesetResponse](../../models/operations/createrulesetresponse.md)\>** ### Errors @@ -249,7 +249,7 @@ run(); ### Response -**Promise\<[any](../../models/.md)\>** +**Promise\<[operations.UpdateRulesetResponse](../../models/operations/updaterulesetresponse.md)\>** ### Errors @@ -329,7 +329,7 @@ run(); ### Response -**Promise\<[any](../../models/.md)\>** +**Promise\<[operations.DeleteRulesetResponse](../../models/operations/deleterulesetresponse.md)\>** ### Errors @@ -409,7 +409,7 @@ run(); ### Response -**Promise\<[string](../../models/.md)\>** +**Promise\<[operations.GetRulesetDocumentResponse](../../models/operations/getrulesetdocumentresponse.md)\>** ### Errors @@ -495,7 +495,7 @@ run(); ### Response -**Promise\<[any](../../models/.md)\>** +**Promise\<[operations.AddRulesetAccessGroupResponse](../../models/operations/addrulesetaccessgroupresponse.md)\>** ### Errors @@ -581,7 +581,7 @@ run(); ### Response -**Promise\<[any](../../models/.md)\>** +**Promise\<[operations.RemoveRulesetAccessGroupResponse](../../models/operations/removerulesetaccessgroupresponse.md)\>** ### Errors diff --git a/docs/sdks/scalardocs/README.md b/docs/sdks/scalardocs/README.md index 5f07d41..9960070 100644 --- a/docs/sdks/scalardocs/README.md +++ b/docs/sdks/scalardocs/README.md @@ -70,7 +70,7 @@ run(); ### Response -**Promise\<[components.GithubProject[]](../../models/.md)\>** +**Promise\<[operations.ListGuidesResponse](../../models/operations/listguidesresponse.md)\>** ### Errors @@ -156,7 +156,7 @@ run(); ### Response -**Promise\<[operations.CreateGuideResponseBody](../../models/operations/createguideresponsebody.md)\>** +**Promise\<[operations.CreateGuideResponse](../../models/operations/createguideresponse.md)\>** ### Errors @@ -234,7 +234,7 @@ run(); ### Response -**Promise\<[operations.PublishGuideResponseBody](../../models/operations/publishguideresponsebody.md)\>** +**Promise\<[operations.PublishGuideResponse](../../models/operations/publishguideresponse.md)\>** ### Errors diff --git a/docs/sdks/schemas/README.md b/docs/sdks/schemas/README.md index 0760d9f..5a2bedd 100644 --- a/docs/sdks/schemas/README.md +++ b/docs/sdks/schemas/README.md @@ -81,7 +81,7 @@ run(); ### Response -**Promise\<[components.Schema[]](../../models/.md)\>** +**Promise\<[operations.ListSchemasResponse](../../models/operations/listschemasresponse.md)\>** ### Errors @@ -171,7 +171,7 @@ run(); ### Response -**Promise\<[components.Uid](../../models/components/uid.md)\>** +**Promise\<[operations.CreateSchemaResponse](../../models/operations/createschemaresponse.md)\>** ### Errors @@ -253,7 +253,7 @@ run(); ### Response -**Promise\<[any](../../models/.md)\>** +**Promise\<[operations.UpdateSchemaResponse](../../models/operations/updateschemaresponse.md)\>** ### Errors @@ -333,7 +333,7 @@ run(); ### Response -**Promise\<[any](../../models/.md)\>** +**Promise\<[operations.DeleteSchemaResponse](../../models/operations/deleteschemaresponse.md)\>** ### Errors @@ -415,7 +415,7 @@ run(); ### Response -**Promise\<[string](../../models/.md)\>** +**Promise\<[operations.GetSchemaVersionResponse](../../models/operations/getschemaversionresponse.md)\>** ### Errors @@ -497,7 +497,7 @@ run(); ### Response -**Promise\<[any](../../models/.md)\>** +**Promise\<[operations.DeleteSchemaVersionResponse](../../models/operations/deleteschemaversionresponse.md)\>** ### Errors @@ -585,7 +585,7 @@ run(); ### Response -**Promise\<[components.Uid](../../models/components/uid.md)\>** +**Promise\<[operations.CreateSchemaVersionResponse](../../models/operations/createschemaversionresponse.md)\>** ### Errors @@ -671,7 +671,7 @@ run(); ### Response -**Promise\<[any](../../models/.md)\>** +**Promise\<[operations.AddSchemaAccessGroupResponse](../../models/operations/addschemaaccessgroupresponse.md)\>** ### Errors @@ -757,7 +757,7 @@ run(); ### Response -**Promise\<[any](../../models/.md)\>** +**Promise\<[operations.RemoveSchemaAccessGroupResponse](../../models/operations/removeschemaaccessgroupresponse.md)\>** ### Errors diff --git a/docs/sdks/teams/README.md b/docs/sdks/teams/README.md index a4654ee..1059a54 100644 --- a/docs/sdks/teams/README.md +++ b/docs/sdks/teams/README.md @@ -68,7 +68,7 @@ run(); ### Response -**Promise\<[components.Team[]](../../models/.md)\>** +**Promise\<[operations.ListTeamsResponse](../../models/operations/listteamsresponse.md)\>** ### Errors diff --git a/docs/sdks/themes/README.md b/docs/sdks/themes/README.md index a106ab0..db14853 100644 --- a/docs/sdks/themes/README.md +++ b/docs/sdks/themes/README.md @@ -73,7 +73,7 @@ run(); ### Response -**Promise\<[components.Theme[]](../../models/.md)\>** +**Promise\<[operations.ListThemesResponse](../../models/operations/listthemesresponse.md)\>** ### Errors @@ -155,7 +155,7 @@ run(); ### Response -**Promise\<[components.Uid](../../models/components/uid.md)\>** +**Promise\<[operations.CreateThemeResponse](../../models/operations/createthemeresponse.md)\>** ### Errors @@ -235,7 +235,7 @@ run(); ### Response -**Promise\<[any](../../models/.md)\>** +**Promise\<[operations.UpdateThemeResponse](../../models/operations/updatethemeresponse.md)\>** ### Errors @@ -319,7 +319,7 @@ run(); ### Response -**Promise\<[any](../../models/.md)\>** +**Promise\<[operations.ReplaceThemeDocumentResponse](../../models/operations/replacethemedocumentresponse.md)\>** ### Errors @@ -397,7 +397,7 @@ run(); ### Response -**Promise\<[any](../../models/.md)\>** +**Promise\<[operations.DeleteThemeResponse](../../models/operations/deletethemeresponse.md)\>** ### Errors @@ -475,7 +475,7 @@ run(); ### Response -**Promise\<[string](../../models/.md)\>** +**Promise\<[operations.GetThemeResponse](../../models/operations/getthemeresponse.md)\>** ### Errors diff --git a/jsr.json b/jsr.json index 14a166a..0e77af9 100644 --- a/jsr.json +++ b/jsr.json @@ -2,7 +2,7 @@ { "name": "@scalar/sdk", - "version": "0.1.4", + "version": "0.1.5", "exports": { ".": "./src/index.ts", "./models/errors": "./src/models/errors/index.ts", diff --git a/package.json b/package.json index c9ad3e7..ca6eb3e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@scalar/sdk", - "version": "0.1.4", + "version": "0.1.5", "author": "Scalar", "type": "module", "tshy": { diff --git a/src/funcs/authenticationExchangePersonalToken.ts b/src/funcs/authenticationExchangePersonalToken.ts index ddb1ad0..ffeae34 100644 --- a/src/funcs/authenticationExchangePersonalToken.ts +++ b/src/funcs/authenticationExchangePersonalToken.ts @@ -36,7 +36,7 @@ export function authenticationExchangePersonalToken( options?: RequestOptions, ): APIPromise< Result< - operations.ExchangePersonalTokenResponseBody, + operations.ExchangePersonalTokenResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -67,7 +67,7 @@ async function $do( ): Promise< [ Result< - operations.ExchangePersonalTokenResponseBody, + operations.ExchangePersonalTokenResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -150,7 +150,7 @@ async function $do( }; const [result] = await M.match< - operations.ExchangePersonalTokenResponseBody, + operations.ExchangePersonalTokenResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -166,7 +166,9 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.ExchangePersonalTokenResponseBody$inboundSchema), + M.json(200, operations.ExchangePersonalTokenResponse$inboundSchema, { + key: "object", + }), M.jsonErr(400, errors.FourHundred$inboundSchema), M.jsonErr(401, errors.FourHundredAndOne$inboundSchema), M.jsonErr(403, errors.FourHundredAndThree$inboundSchema), diff --git a/src/funcs/authenticationGetCurrentUser.ts b/src/funcs/authenticationGetCurrentUser.ts index 8c2b43b..f5b773e 100644 --- a/src/funcs/authenticationGetCurrentUser.ts +++ b/src/funcs/authenticationGetCurrentUser.ts @@ -8,7 +8,6 @@ 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 * as components from "../models/components/index.js"; import { ConnectionError, InvalidRequestError, @@ -20,6 +19,7 @@ import * as errors from "../models/errors/index.js"; import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { ScalarError } from "../models/errors/scalarerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; @@ -34,7 +34,7 @@ export function authenticationGetCurrentUser( options?: RequestOptions, ): APIPromise< Result< - components.User, + operations.GetCurrentUserResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -63,7 +63,7 @@ async function $do( ): Promise< [ Result< - components.User, + operations.GetCurrentUserResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -137,7 +137,7 @@ async function $do( }; const [result] = await M.match< - components.User, + operations.GetCurrentUserResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -153,7 +153,9 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, components.User$inboundSchema), + M.json(200, operations.GetCurrentUserResponse$inboundSchema, { + key: "user", + }), M.jsonErr(400, errors.FourHundred$inboundSchema), M.jsonErr(401, errors.FourHundredAndOne$inboundSchema), M.jsonErr(403, errors.FourHundredAndThree$inboundSchema), diff --git a/src/funcs/loginPortalsCreateLoginPortal.ts b/src/funcs/loginPortalsCreateLoginPortal.ts index 2136f8a..ea3c504 100644 --- a/src/funcs/loginPortalsCreateLoginPortal.ts +++ b/src/funcs/loginPortalsCreateLoginPortal.ts @@ -10,7 +10,6 @@ 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 * as components from "../models/components/index.js"; import { ConnectionError, InvalidRequestError, @@ -38,7 +37,7 @@ export function loginPortalsCreateLoginPortal( options?: RequestOptions, ): APIPromise< Result< - components.Uid, + operations.CreateLoginPortalResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -69,7 +68,7 @@ async function $do( ): Promise< [ Result< - components.Uid, + operations.CreateLoginPortalResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -157,7 +156,7 @@ async function $do( }; const [result] = await M.match< - components.Uid, + operations.CreateLoginPortalResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -173,7 +172,9 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, components.Uid$inboundSchema), + M.json(200, operations.CreateLoginPortalResponse$inboundSchema, { + key: "uid", + }), M.jsonErr(400, errors.FourHundred$inboundSchema), M.jsonErr(401, errors.FourHundredAndOne$inboundSchema), M.jsonErr(403, errors.FourHundredAndThree$inboundSchema), diff --git a/src/funcs/loginPortalsDeleteLoginPortal.ts b/src/funcs/loginPortalsDeleteLoginPortal.ts index 7d444c7..f7e4afb 100644 --- a/src/funcs/loginPortalsDeleteLoginPortal.ts +++ b/src/funcs/loginPortalsDeleteLoginPortal.ts @@ -2,7 +2,6 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; import { ScalarCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -38,7 +37,7 @@ export function loginPortalsDeleteLoginPortal( options?: RequestOptions, ): APIPromise< Result< - any, + operations.DeleteLoginPortalResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -69,7 +68,7 @@ async function $do( ): Promise< [ Result< - any, + operations.DeleteLoginPortalResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -162,7 +161,7 @@ async function $do( }; const [result] = await M.match< - any, + operations.DeleteLoginPortalResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -178,7 +177,9 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, z.any()), + M.json(200, operations.DeleteLoginPortalResponse$inboundSchema, { + key: "any", + }), M.jsonErr(400, errors.FourHundred$inboundSchema), M.jsonErr(401, errors.FourHundredAndOne$inboundSchema), M.jsonErr(403, errors.FourHundredAndThree$inboundSchema), diff --git a/src/funcs/loginPortalsGetLoginPortal.ts b/src/funcs/loginPortalsGetLoginPortal.ts index f963085..40329cc 100644 --- a/src/funcs/loginPortalsGetLoginPortal.ts +++ b/src/funcs/loginPortalsGetLoginPortal.ts @@ -37,7 +37,7 @@ export function loginPortalsGetLoginPortal( options?: RequestOptions, ): APIPromise< Result< - operations.GetLoginPortalResponseBody, + operations.GetLoginPortalResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -68,7 +68,7 @@ async function $do( ): Promise< [ Result< - operations.GetLoginPortalResponseBody, + operations.GetLoginPortalResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -161,7 +161,7 @@ async function $do( }; const [result] = await M.match< - operations.GetLoginPortalResponseBody, + operations.GetLoginPortalResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -177,7 +177,9 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.GetLoginPortalResponseBody$inboundSchema), + M.json(200, operations.GetLoginPortalResponse$inboundSchema, { + key: "object", + }), M.jsonErr(400, errors.FourHundred$inboundSchema), M.jsonErr(401, errors.FourHundredAndOne$inboundSchema), M.jsonErr(403, errors.FourHundredAndThree$inboundSchema), diff --git a/src/funcs/loginPortalsListLoginPortals.ts b/src/funcs/loginPortalsListLoginPortals.ts index dbbd04d..e04eab1 100644 --- a/src/funcs/loginPortalsListLoginPortals.ts +++ b/src/funcs/loginPortalsListLoginPortals.ts @@ -2,14 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; import { ScalarCore } from "../core.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 * as components from "../models/components/index.js"; import { ConnectionError, InvalidRequestError, @@ -21,6 +19,7 @@ import * as errors from "../models/errors/index.js"; import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { ScalarError } from "../models/errors/scalarerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; @@ -35,7 +34,7 @@ export function loginPortalsListLoginPortals( options?: RequestOptions, ): APIPromise< Result< - Array, + operations.ListLoginPortalsResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -64,7 +63,7 @@ async function $do( ): Promise< [ Result< - Array, + operations.ListLoginPortalsResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -138,7 +137,7 @@ async function $do( }; const [result] = await M.match< - Array, + operations.ListLoginPortalsResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -154,7 +153,9 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, z.array(components.LoginPortal$inboundSchema)), + M.json(200, operations.ListLoginPortalsResponse$inboundSchema, { + key: "login-portals", + }), M.jsonErr(400, errors.FourHundred$inboundSchema), M.jsonErr(401, errors.FourHundredAndOne$inboundSchema), M.jsonErr(403, errors.FourHundredAndThree$inboundSchema), diff --git a/src/funcs/loginPortalsUpdateLoginPortal.ts b/src/funcs/loginPortalsUpdateLoginPortal.ts index d2a08d8..45036ac 100644 --- a/src/funcs/loginPortalsUpdateLoginPortal.ts +++ b/src/funcs/loginPortalsUpdateLoginPortal.ts @@ -2,7 +2,6 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; import { ScalarCore } from "../core.js"; import { encodeJSON, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -38,7 +37,7 @@ export function loginPortalsUpdateLoginPortal( options?: RequestOptions, ): APIPromise< Result< - any, + operations.UpdateLoginPortalResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -69,7 +68,7 @@ async function $do( ): Promise< [ Result< - any, + operations.UpdateLoginPortalResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -163,7 +162,7 @@ async function $do( }; const [result] = await M.match< - any, + operations.UpdateLoginPortalResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -179,7 +178,9 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, z.any()), + M.json(200, operations.UpdateLoginPortalResponse$inboundSchema, { + key: "any", + }), M.jsonErr(400, errors.FourHundred$inboundSchema), M.jsonErr(401, errors.FourHundredAndOne$inboundSchema), M.jsonErr(403, errors.FourHundredAndThree$inboundSchema), diff --git a/src/funcs/namespacesListNamespaces.ts b/src/funcs/namespacesListNamespaces.ts index 1dd2a87..8fd757a 100644 --- a/src/funcs/namespacesListNamespaces.ts +++ b/src/funcs/namespacesListNamespaces.ts @@ -2,7 +2,6 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; import { ScalarCore } from "../core.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; @@ -20,6 +19,7 @@ import * as errors from "../models/errors/index.js"; import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { ScalarError } from "../models/errors/scalarerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; @@ -34,7 +34,7 @@ export function namespacesListNamespaces( options?: RequestOptions, ): APIPromise< Result< - Array, + operations.ListNamespacesResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -63,7 +63,7 @@ async function $do( ): Promise< [ Result< - Array, + operations.ListNamespacesResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -137,7 +137,7 @@ async function $do( }; const [result] = await M.match< - Array, + operations.ListNamespacesResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -153,7 +153,9 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, z.array(z.string())), + M.json(200, operations.ListNamespacesResponse$inboundSchema, { + key: "strings", + }), M.jsonErr(400, errors.FourHundred$inboundSchema), M.jsonErr(401, errors.FourHundredAndOne$inboundSchema), M.jsonErr(403, errors.FourHundredAndThree$inboundSchema), diff --git a/src/funcs/registryAddApiDocumentAccessGroup.ts b/src/funcs/registryAddApiDocumentAccessGroup.ts index c041338..d19fa33 100644 --- a/src/funcs/registryAddApiDocumentAccessGroup.ts +++ b/src/funcs/registryAddApiDocumentAccessGroup.ts @@ -2,7 +2,6 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; import { ScalarCore } from "../core.js"; import { encodeJSON, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -38,7 +37,7 @@ export function registryAddApiDocumentAccessGroup( options?: RequestOptions, ): APIPromise< Result< - any, + operations.AddApiDocumentAccessGroupResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -69,7 +68,7 @@ async function $do( ): Promise< [ Result< - any, + operations.AddApiDocumentAccessGroupResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -170,7 +169,7 @@ async function $do( }; const [result] = await M.match< - any, + operations.AddApiDocumentAccessGroupResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -186,7 +185,9 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, z.any()), + M.json(200, operations.AddApiDocumentAccessGroupResponse$inboundSchema, { + key: "any", + }), M.jsonErr(400, errors.FourHundred$inboundSchema), M.jsonErr(401, errors.FourHundredAndOne$inboundSchema), M.jsonErr(403, errors.FourHundredAndThree$inboundSchema), diff --git a/src/funcs/registryCreateApiDocument.ts b/src/funcs/registryCreateApiDocument.ts index a135c1b..6b918bf 100644 --- a/src/funcs/registryCreateApiDocument.ts +++ b/src/funcs/registryCreateApiDocument.ts @@ -37,7 +37,7 @@ export function registryCreateApiDocument( options?: RequestOptions, ): APIPromise< Result< - operations.CreateApiDocumentResponseBody, + operations.CreateApiDocumentResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -68,7 +68,7 @@ async function $do( ): Promise< [ Result< - operations.CreateApiDocumentResponseBody, + operations.CreateApiDocumentResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -162,7 +162,7 @@ async function $do( }; const [result] = await M.match< - operations.CreateApiDocumentResponseBody, + operations.CreateApiDocumentResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -178,7 +178,9 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.CreateApiDocumentResponseBody$inboundSchema), + M.json(200, operations.CreateApiDocumentResponse$inboundSchema, { + key: "object", + }), M.jsonErr(400, errors.FourHundred$inboundSchema), M.jsonErr(401, errors.FourHundredAndOne$inboundSchema), M.jsonErr(403, errors.FourHundredAndThree$inboundSchema), diff --git a/src/funcs/registryCreateApiDocumentVersion.ts b/src/funcs/registryCreateApiDocumentVersion.ts index fd1118a..4c76409 100644 --- a/src/funcs/registryCreateApiDocumentVersion.ts +++ b/src/funcs/registryCreateApiDocumentVersion.ts @@ -10,7 +10,6 @@ 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 * as components from "../models/components/index.js"; import { ConnectionError, InvalidRequestError, @@ -38,7 +37,7 @@ export function registryCreateApiDocumentVersion( options?: RequestOptions, ): APIPromise< Result< - components.ManagedDocVersion, + operations.CreateApiDocumentVersionResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -69,7 +68,7 @@ async function $do( ): Promise< [ Result< - components.ManagedDocVersion, + operations.CreateApiDocumentVersionResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -168,7 +167,7 @@ async function $do( }; const [result] = await M.match< - components.ManagedDocVersion, + operations.CreateApiDocumentVersionResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -184,7 +183,9 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, components.ManagedDocVersion$inboundSchema), + M.json(200, operations.CreateApiDocumentVersionResponse$inboundSchema, { + key: "managed-doc-version", + }), M.jsonErr(400, errors.FourHundred$inboundSchema), M.jsonErr(401, errors.FourHundredAndOne$inboundSchema), M.jsonErr(403, errors.FourHundredAndThree$inboundSchema), diff --git a/src/funcs/registryDeleteApiDocument.ts b/src/funcs/registryDeleteApiDocument.ts index 406bf24..474fba6 100644 --- a/src/funcs/registryDeleteApiDocument.ts +++ b/src/funcs/registryDeleteApiDocument.ts @@ -2,7 +2,6 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; import { ScalarCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -38,7 +37,7 @@ export function registryDeleteApiDocument( options?: RequestOptions, ): APIPromise< Result< - any, + operations.DeleteApiDocumentResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -69,7 +68,7 @@ async function $do( ): Promise< [ Result< - any, + operations.DeleteApiDocumentResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -166,7 +165,7 @@ async function $do( }; const [result] = await M.match< - any, + operations.DeleteApiDocumentResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -182,7 +181,9 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, z.any()), + M.json(200, operations.DeleteApiDocumentResponse$inboundSchema, { + key: "any", + }), M.jsonErr(400, errors.FourHundred$inboundSchema), M.jsonErr(401, errors.FourHundredAndOne$inboundSchema), M.jsonErr(403, errors.FourHundredAndThree$inboundSchema), diff --git a/src/funcs/registryDeleteApiDocumentVersion.ts b/src/funcs/registryDeleteApiDocumentVersion.ts index a6c53d5..42c1eae 100644 --- a/src/funcs/registryDeleteApiDocumentVersion.ts +++ b/src/funcs/registryDeleteApiDocumentVersion.ts @@ -2,7 +2,6 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; import { ScalarCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -38,7 +37,7 @@ export function registryDeleteApiDocumentVersion( options?: RequestOptions, ): APIPromise< Result< - any, + operations.DeleteApiDocumentVersionResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -69,7 +68,7 @@ async function $do( ): Promise< [ Result< - any, + operations.DeleteApiDocumentVersionResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -173,7 +172,7 @@ async function $do( }; const [result] = await M.match< - any, + operations.DeleteApiDocumentVersionResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -189,7 +188,9 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, z.any()), + M.json(200, operations.DeleteApiDocumentVersionResponse$inboundSchema, { + key: "any", + }), M.jsonErr(400, errors.FourHundred$inboundSchema), M.jsonErr(401, errors.FourHundredAndOne$inboundSchema), M.jsonErr(403, errors.FourHundredAndThree$inboundSchema), diff --git a/src/funcs/registryGetApiDocumentVersion.ts b/src/funcs/registryGetApiDocumentVersion.ts index 381053a..c121cb7 100644 --- a/src/funcs/registryGetApiDocumentVersion.ts +++ b/src/funcs/registryGetApiDocumentVersion.ts @@ -2,7 +2,6 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; import { ScalarCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -38,7 +37,7 @@ export function registryGetApiDocumentVersion( options?: RequestOptions, ): APIPromise< Result< - string, + operations.GetApiDocumentVersionResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -69,7 +68,7 @@ async function $do( ): Promise< [ Result< - string, + operations.GetApiDocumentVersionResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -173,7 +172,7 @@ async function $do( }; const [result] = await M.match< - string, + operations.GetApiDocumentVersionResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -189,7 +188,9 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.text(200, z.string()), + M.text(200, operations.GetApiDocumentVersionResponse$inboundSchema, { + key: "res", + }), M.jsonErr(400, errors.FourHundred$inboundSchema), M.jsonErr(401, errors.FourHundredAndOne$inboundSchema), M.jsonErr(403, errors.FourHundredAndThree$inboundSchema), diff --git a/src/funcs/registryGetApiDocumentVersionMetadata.ts b/src/funcs/registryGetApiDocumentVersionMetadata.ts index 69569a4..863f3b9 100644 --- a/src/funcs/registryGetApiDocumentVersionMetadata.ts +++ b/src/funcs/registryGetApiDocumentVersionMetadata.ts @@ -10,7 +10,6 @@ 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 * as components from "../models/components/index.js"; import { ConnectionError, InvalidRequestError, @@ -38,7 +37,7 @@ export function registryGetApiDocumentVersionMetadata( options?: RequestOptions, ): APIPromise< Result< - components.ManagedDocVersion, + operations.GetApiDocumentVersionMetadataResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -69,7 +68,7 @@ async function $do( ): Promise< [ Result< - components.ManagedDocVersion, + operations.GetApiDocumentVersionMetadataResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -175,7 +174,7 @@ async function $do( }; const [result] = await M.match< - components.ManagedDocVersion, + operations.GetApiDocumentVersionMetadataResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -191,7 +190,11 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, components.ManagedDocVersion$inboundSchema), + M.json( + 200, + operations.GetApiDocumentVersionMetadataResponse$inboundSchema, + { key: "managed-doc-version" }, + ), M.jsonErr(400, errors.FourHundred$inboundSchema), M.jsonErr(401, errors.FourHundredAndOne$inboundSchema), M.jsonErr(403, errors.FourHundredAndThree$inboundSchema), diff --git a/src/funcs/registryListAllApiDocuments.ts b/src/funcs/registryListAllApiDocuments.ts index 217276e..dad95f5 100644 --- a/src/funcs/registryListAllApiDocuments.ts +++ b/src/funcs/registryListAllApiDocuments.ts @@ -2,14 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; import { ScalarCore } from "../core.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 * as components from "../models/components/index.js"; import { ConnectionError, InvalidRequestError, @@ -21,6 +19,7 @@ import * as errors from "../models/errors/index.js"; import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { ScalarError } from "../models/errors/scalarerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; @@ -35,7 +34,7 @@ export function registryListAllApiDocuments( options?: RequestOptions, ): APIPromise< Result< - Array, + operations.ListAllApiDocumentsResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -64,7 +63,7 @@ async function $do( ): Promise< [ Result< - Array, + operations.ListAllApiDocumentsResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -138,7 +137,7 @@ async function $do( }; const [result] = await M.match< - Array, + operations.ListAllApiDocumentsResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -154,7 +153,9 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, z.array(components.ApiDocument$inboundSchema)), + M.json(200, operations.ListAllApiDocumentsResponse$inboundSchema, { + key: "api-documents", + }), M.jsonErr(400, errors.FourHundred$inboundSchema), M.jsonErr(401, errors.FourHundredAndOne$inboundSchema), M.jsonErr(403, errors.FourHundredAndThree$inboundSchema), diff --git a/src/funcs/registryListApiDocuments.ts b/src/funcs/registryListApiDocuments.ts index 3a57b48..8613a1b 100644 --- a/src/funcs/registryListApiDocuments.ts +++ b/src/funcs/registryListApiDocuments.ts @@ -2,7 +2,6 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; import { ScalarCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -11,7 +10,6 @@ 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 * as components from "../models/components/index.js"; import { ConnectionError, InvalidRequestError, @@ -39,7 +37,7 @@ export function registryListApiDocuments( options?: RequestOptions, ): APIPromise< Result< - Array, + operations.ListApiDocumentsResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -70,7 +68,7 @@ async function $do( ): Promise< [ Result< - Array, + operations.ListApiDocumentsResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -163,7 +161,7 @@ async function $do( }; const [result] = await M.match< - Array, + operations.ListApiDocumentsResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -179,7 +177,9 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, z.array(components.ApiDocument$inboundSchema)), + M.json(200, operations.ListApiDocumentsResponse$inboundSchema, { + key: "api-documents", + }), M.jsonErr(400, errors.FourHundred$inboundSchema), M.jsonErr(401, errors.FourHundredAndOne$inboundSchema), M.jsonErr(403, errors.FourHundredAndThree$inboundSchema), diff --git a/src/funcs/registryRemoveApiDocumentAccessGroup.ts b/src/funcs/registryRemoveApiDocumentAccessGroup.ts index e292faa..4cb06d5 100644 --- a/src/funcs/registryRemoveApiDocumentAccessGroup.ts +++ b/src/funcs/registryRemoveApiDocumentAccessGroup.ts @@ -2,7 +2,6 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; import { ScalarCore } from "../core.js"; import { encodeJSON, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -38,7 +37,7 @@ export function registryRemoveApiDocumentAccessGroup( options?: RequestOptions, ): APIPromise< Result< - any, + operations.RemoveApiDocumentAccessGroupResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -69,7 +68,7 @@ async function $do( ): Promise< [ Result< - any, + operations.RemoveApiDocumentAccessGroupResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -172,7 +171,7 @@ async function $do( }; const [result] = await M.match< - any, + operations.RemoveApiDocumentAccessGroupResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -188,7 +187,9 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, z.any()), + M.json(200, operations.RemoveApiDocumentAccessGroupResponse$inboundSchema, { + key: "any", + }), M.jsonErr(400, errors.FourHundred$inboundSchema), M.jsonErr(401, errors.FourHundredAndOne$inboundSchema), M.jsonErr(403, errors.FourHundredAndThree$inboundSchema), diff --git a/src/funcs/registryUpdateApiDocument.ts b/src/funcs/registryUpdateApiDocument.ts index c8447f9..1b591c8 100644 --- a/src/funcs/registryUpdateApiDocument.ts +++ b/src/funcs/registryUpdateApiDocument.ts @@ -2,7 +2,6 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; import { ScalarCore } from "../core.js"; import { encodeJSON, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -38,7 +37,7 @@ export function registryUpdateApiDocument( options?: RequestOptions, ): APIPromise< Result< - any, + operations.UpdateApiDocumentResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -69,7 +68,7 @@ async function $do( ): Promise< [ Result< - any, + operations.UpdateApiDocumentResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -167,7 +166,7 @@ async function $do( }; const [result] = await M.match< - any, + operations.UpdateApiDocumentResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -183,7 +182,9 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, z.any()), + M.json(200, operations.UpdateApiDocumentResponse$inboundSchema, { + key: "any", + }), M.jsonErr(400, errors.FourHundred$inboundSchema), M.jsonErr(401, errors.FourHundredAndOne$inboundSchema), M.jsonErr(403, errors.FourHundredAndThree$inboundSchema), diff --git a/src/funcs/registryUpdateApiDocumentVersion.ts b/src/funcs/registryUpdateApiDocumentVersion.ts index 5efc062..58e1c76 100644 --- a/src/funcs/registryUpdateApiDocumentVersion.ts +++ b/src/funcs/registryUpdateApiDocumentVersion.ts @@ -37,7 +37,7 @@ export function registryUpdateApiDocumentVersion( options?: RequestOptions, ): APIPromise< Result< - operations.UpdateApiDocumentVersionResponseBody, + operations.UpdateApiDocumentVersionResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -68,7 +68,7 @@ async function $do( ): Promise< [ Result< - operations.UpdateApiDocumentVersionResponseBody, + operations.UpdateApiDocumentVersionResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -173,7 +173,7 @@ async function $do( }; const [result] = await M.match< - operations.UpdateApiDocumentVersionResponseBody, + operations.UpdateApiDocumentVersionResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -189,7 +189,9 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.UpdateApiDocumentVersionResponseBody$inboundSchema), + M.json(200, operations.UpdateApiDocumentVersionResponse$inboundSchema, { + key: "object", + }), M.jsonErr(400, errors.FourHundred$inboundSchema), M.jsonErr(401, errors.FourHundredAndOne$inboundSchema), M.jsonErr(403, errors.FourHundredAndThree$inboundSchema), diff --git a/src/funcs/rulesAddRulesetAccessGroup.ts b/src/funcs/rulesAddRulesetAccessGroup.ts index ff19061..a4c0388 100644 --- a/src/funcs/rulesAddRulesetAccessGroup.ts +++ b/src/funcs/rulesAddRulesetAccessGroup.ts @@ -2,7 +2,6 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; import { ScalarCore } from "../core.js"; import { encodeJSON, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -38,7 +37,7 @@ export function rulesAddRulesetAccessGroup( options?: RequestOptions, ): APIPromise< Result< - any, + operations.AddRulesetAccessGroupResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -69,7 +68,7 @@ async function $do( ): Promise< [ Result< - any, + operations.AddRulesetAccessGroupResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -170,7 +169,7 @@ async function $do( }; const [result] = await M.match< - any, + operations.AddRulesetAccessGroupResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -186,7 +185,9 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, z.any()), + M.json(200, operations.AddRulesetAccessGroupResponse$inboundSchema, { + key: "any", + }), M.jsonErr(400, errors.FourHundred$inboundSchema), M.jsonErr(401, errors.FourHundredAndOne$inboundSchema), M.jsonErr(403, errors.FourHundredAndThree$inboundSchema), diff --git a/src/funcs/rulesCreateRuleset.ts b/src/funcs/rulesCreateRuleset.ts index 3e6f876..e066497 100644 --- a/src/funcs/rulesCreateRuleset.ts +++ b/src/funcs/rulesCreateRuleset.ts @@ -10,7 +10,6 @@ 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 * as components from "../models/components/index.js"; import { ConnectionError, InvalidRequestError, @@ -38,7 +37,7 @@ export function rulesCreateRuleset( options?: RequestOptions, ): APIPromise< Result< - components.Uid, + operations.CreateRulesetResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -69,7 +68,7 @@ async function $do( ): Promise< [ Result< - components.Uid, + operations.CreateRulesetResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -163,7 +162,7 @@ async function $do( }; const [result] = await M.match< - components.Uid, + operations.CreateRulesetResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -179,7 +178,7 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, components.Uid$inboundSchema), + M.json(200, operations.CreateRulesetResponse$inboundSchema, { key: "uid" }), M.jsonErr(400, errors.FourHundred$inboundSchema), M.jsonErr(401, errors.FourHundredAndOne$inboundSchema), M.jsonErr(403, errors.FourHundredAndThree$inboundSchema), diff --git a/src/funcs/rulesDeleteRuleset.ts b/src/funcs/rulesDeleteRuleset.ts index 6abdea8..e551a27 100644 --- a/src/funcs/rulesDeleteRuleset.ts +++ b/src/funcs/rulesDeleteRuleset.ts @@ -2,7 +2,6 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; import { ScalarCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -38,7 +37,7 @@ export function rulesDeleteRuleset( options?: RequestOptions, ): APIPromise< Result< - any, + operations.DeleteRulesetResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -69,7 +68,7 @@ async function $do( ): Promise< [ Result< - any, + operations.DeleteRulesetResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -166,7 +165,7 @@ async function $do( }; const [result] = await M.match< - any, + operations.DeleteRulesetResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -182,7 +181,7 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, z.any()), + M.json(200, operations.DeleteRulesetResponse$inboundSchema, { key: "any" }), M.jsonErr(400, errors.FourHundred$inboundSchema), M.jsonErr(401, errors.FourHundredAndOne$inboundSchema), M.jsonErr(403, errors.FourHundredAndThree$inboundSchema), diff --git a/src/funcs/rulesGetRulesetDocument.ts b/src/funcs/rulesGetRulesetDocument.ts index e999198..e470234 100644 --- a/src/funcs/rulesGetRulesetDocument.ts +++ b/src/funcs/rulesGetRulesetDocument.ts @@ -2,7 +2,6 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; import { ScalarCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -38,7 +37,7 @@ export function rulesGetRulesetDocument( options?: RequestOptions, ): APIPromise< Result< - string, + operations.GetRulesetDocumentResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -69,7 +68,7 @@ async function $do( ): Promise< [ Result< - string, + operations.GetRulesetDocumentResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -166,7 +165,7 @@ async function $do( }; const [result] = await M.match< - string, + operations.GetRulesetDocumentResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -182,7 +181,9 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.text(200, z.string()), + M.text(200, operations.GetRulesetDocumentResponse$inboundSchema, { + key: "res", + }), M.jsonErr(400, errors.FourHundred$inboundSchema), M.jsonErr(401, errors.FourHundredAndOne$inboundSchema), M.jsonErr(403, errors.FourHundredAndThree$inboundSchema), diff --git a/src/funcs/rulesListRulesets.ts b/src/funcs/rulesListRulesets.ts index 1ad63cd..5564b45 100644 --- a/src/funcs/rulesListRulesets.ts +++ b/src/funcs/rulesListRulesets.ts @@ -2,7 +2,6 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; import { ScalarCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -11,7 +10,6 @@ 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 * as components from "../models/components/index.js"; import { ConnectionError, InvalidRequestError, @@ -39,7 +37,7 @@ export function rulesListRulesets( options?: RequestOptions, ): APIPromise< Result< - Array, + operations.ListRulesetsResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -70,7 +68,7 @@ async function $do( ): Promise< [ Result< - Array, + operations.ListRulesetsResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -163,7 +161,7 @@ async function $do( }; const [result] = await M.match< - Array, + operations.ListRulesetsResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -179,7 +177,9 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, z.array(components.Rule$inboundSchema)), + M.json(200, operations.ListRulesetsResponse$inboundSchema, { + key: "rules", + }), M.jsonErr(400, errors.FourHundred$inboundSchema), M.jsonErr(401, errors.FourHundredAndOne$inboundSchema), M.jsonErr(403, errors.FourHundredAndThree$inboundSchema), diff --git a/src/funcs/rulesRemoveRulesetAccessGroup.ts b/src/funcs/rulesRemoveRulesetAccessGroup.ts index 50fba19..cc14ddb 100644 --- a/src/funcs/rulesRemoveRulesetAccessGroup.ts +++ b/src/funcs/rulesRemoveRulesetAccessGroup.ts @@ -2,7 +2,6 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; import { ScalarCore } from "../core.js"; import { encodeJSON, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -38,7 +37,7 @@ export function rulesRemoveRulesetAccessGroup( options?: RequestOptions, ): APIPromise< Result< - any, + operations.RemoveRulesetAccessGroupResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -69,7 +68,7 @@ async function $do( ): Promise< [ Result< - any, + operations.RemoveRulesetAccessGroupResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -170,7 +169,7 @@ async function $do( }; const [result] = await M.match< - any, + operations.RemoveRulesetAccessGroupResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -186,7 +185,9 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, z.any()), + M.json(200, operations.RemoveRulesetAccessGroupResponse$inboundSchema, { + key: "any", + }), M.jsonErr(400, errors.FourHundred$inboundSchema), M.jsonErr(401, errors.FourHundredAndOne$inboundSchema), M.jsonErr(403, errors.FourHundredAndThree$inboundSchema), diff --git a/src/funcs/rulesUpdateRuleset.ts b/src/funcs/rulesUpdateRuleset.ts index a1de8d2..381cad9 100644 --- a/src/funcs/rulesUpdateRuleset.ts +++ b/src/funcs/rulesUpdateRuleset.ts @@ -2,7 +2,6 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; import { ScalarCore } from "../core.js"; import { encodeJSON, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -38,7 +37,7 @@ export function rulesUpdateRuleset( options?: RequestOptions, ): APIPromise< Result< - any, + operations.UpdateRulesetResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -69,7 +68,7 @@ async function $do( ): Promise< [ Result< - any, + operations.UpdateRulesetResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -167,7 +166,7 @@ async function $do( }; const [result] = await M.match< - any, + operations.UpdateRulesetResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -183,7 +182,7 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, z.any()), + M.json(200, operations.UpdateRulesetResponse$inboundSchema, { key: "any" }), M.jsonErr(400, errors.FourHundred$inboundSchema), M.jsonErr(401, errors.FourHundredAndOne$inboundSchema), M.jsonErr(403, errors.FourHundredAndThree$inboundSchema), diff --git a/src/funcs/scalarDocsCreateGuide.ts b/src/funcs/scalarDocsCreateGuide.ts index a614a4c..b0cd796 100644 --- a/src/funcs/scalarDocsCreateGuide.ts +++ b/src/funcs/scalarDocsCreateGuide.ts @@ -37,7 +37,7 @@ export function scalarDocsCreateGuide( options?: RequestOptions, ): APIPromise< Result< - operations.CreateGuideResponseBody, + operations.CreateGuideResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -68,7 +68,7 @@ async function $do( ): Promise< [ Result< - operations.CreateGuideResponseBody, + operations.CreateGuideResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -155,7 +155,7 @@ async function $do( }; const [result] = await M.match< - operations.CreateGuideResponseBody, + operations.CreateGuideResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -171,7 +171,9 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.CreateGuideResponseBody$inboundSchema), + M.json(200, operations.CreateGuideResponse$inboundSchema, { + key: "object", + }), M.jsonErr(400, errors.FourHundred$inboundSchema), M.jsonErr(401, errors.FourHundredAndOne$inboundSchema), M.jsonErr(403, errors.FourHundredAndThree$inboundSchema), diff --git a/src/funcs/scalarDocsListGuides.ts b/src/funcs/scalarDocsListGuides.ts index d0321a5..b1170e4 100644 --- a/src/funcs/scalarDocsListGuides.ts +++ b/src/funcs/scalarDocsListGuides.ts @@ -2,14 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; import { ScalarCore } from "../core.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 * as components from "../models/components/index.js"; import { ConnectionError, InvalidRequestError, @@ -21,6 +19,7 @@ import * as errors from "../models/errors/index.js"; import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { ScalarError } from "../models/errors/scalarerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; @@ -35,7 +34,7 @@ export function scalarDocsListGuides( options?: RequestOptions, ): APIPromise< Result< - Array, + operations.ListGuidesResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -64,7 +63,7 @@ async function $do( ): Promise< [ Result< - Array, + operations.ListGuidesResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -138,7 +137,7 @@ async function $do( }; const [result] = await M.match< - Array, + operations.ListGuidesResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -154,7 +153,9 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, z.array(components.GithubProject$inboundSchema)), + M.json(200, operations.ListGuidesResponse$inboundSchema, { + key: "github-projects", + }), M.jsonErr(400, errors.FourHundred$inboundSchema), M.jsonErr(401, errors.FourHundredAndOne$inboundSchema), M.jsonErr(403, errors.FourHundredAndThree$inboundSchema), diff --git a/src/funcs/scalarDocsPublishGuide.ts b/src/funcs/scalarDocsPublishGuide.ts index d7dedf2..bfa9c0f 100644 --- a/src/funcs/scalarDocsPublishGuide.ts +++ b/src/funcs/scalarDocsPublishGuide.ts @@ -37,7 +37,7 @@ export function scalarDocsPublishGuide( options?: RequestOptions, ): APIPromise< Result< - operations.PublishGuideResponseBody, + operations.PublishGuideResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -68,7 +68,7 @@ async function $do( ): Promise< [ Result< - operations.PublishGuideResponseBody, + operations.PublishGuideResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -161,7 +161,7 @@ async function $do( }; const [result] = await M.match< - operations.PublishGuideResponseBody, + operations.PublishGuideResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -177,7 +177,9 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.PublishGuideResponseBody$inboundSchema), + M.json(200, operations.PublishGuideResponse$inboundSchema, { + key: "object", + }), M.jsonErr(400, errors.FourHundred$inboundSchema), M.jsonErr(401, errors.FourHundredAndOne$inboundSchema), M.jsonErr(403, errors.FourHundredAndThree$inboundSchema), diff --git a/src/funcs/schemasAddSchemaAccessGroup.ts b/src/funcs/schemasAddSchemaAccessGroup.ts index 663d8d8..a1a2bda 100644 --- a/src/funcs/schemasAddSchemaAccessGroup.ts +++ b/src/funcs/schemasAddSchemaAccessGroup.ts @@ -2,7 +2,6 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; import { ScalarCore } from "../core.js"; import { encodeJSON, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -38,7 +37,7 @@ export function schemasAddSchemaAccessGroup( options?: RequestOptions, ): APIPromise< Result< - any, + operations.AddSchemaAccessGroupResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -69,7 +68,7 @@ async function $do( ): Promise< [ Result< - any, + operations.AddSchemaAccessGroupResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -170,7 +169,7 @@ async function $do( }; const [result] = await M.match< - any, + operations.AddSchemaAccessGroupResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -186,7 +185,9 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, z.any()), + M.json(200, operations.AddSchemaAccessGroupResponse$inboundSchema, { + key: "any", + }), M.jsonErr(400, errors.FourHundred$inboundSchema), M.jsonErr(401, errors.FourHundredAndOne$inboundSchema), M.jsonErr(403, errors.FourHundredAndThree$inboundSchema), diff --git a/src/funcs/schemasCreateSchema.ts b/src/funcs/schemasCreateSchema.ts index 3075fa0..65e9f09 100644 --- a/src/funcs/schemasCreateSchema.ts +++ b/src/funcs/schemasCreateSchema.ts @@ -10,7 +10,6 @@ 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 * as components from "../models/components/index.js"; import { ConnectionError, InvalidRequestError, @@ -38,7 +37,7 @@ export function schemasCreateSchema( options?: RequestOptions, ): APIPromise< Result< - components.Uid, + operations.CreateSchemaResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -69,7 +68,7 @@ async function $do( ): Promise< [ Result< - components.Uid, + operations.CreateSchemaResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -163,7 +162,7 @@ async function $do( }; const [result] = await M.match< - components.Uid, + operations.CreateSchemaResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -179,7 +178,7 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, components.Uid$inboundSchema), + M.json(200, operations.CreateSchemaResponse$inboundSchema, { key: "uid" }), M.jsonErr(400, errors.FourHundred$inboundSchema), M.jsonErr(401, errors.FourHundredAndOne$inboundSchema), M.jsonErr(403, errors.FourHundredAndThree$inboundSchema), diff --git a/src/funcs/schemasCreateSchemaVersion.ts b/src/funcs/schemasCreateSchemaVersion.ts index 4e601e9..ed74613 100644 --- a/src/funcs/schemasCreateSchemaVersion.ts +++ b/src/funcs/schemasCreateSchemaVersion.ts @@ -10,7 +10,6 @@ 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 * as components from "../models/components/index.js"; import { ConnectionError, InvalidRequestError, @@ -38,7 +37,7 @@ export function schemasCreateSchemaVersion( options?: RequestOptions, ): APIPromise< Result< - components.Uid, + operations.CreateSchemaVersionResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -69,7 +68,7 @@ async function $do( ): Promise< [ Result< - components.Uid, + operations.CreateSchemaVersionResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -168,7 +167,7 @@ async function $do( }; const [result] = await M.match< - components.Uid, + operations.CreateSchemaVersionResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -184,7 +183,9 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, components.Uid$inboundSchema), + M.json(200, operations.CreateSchemaVersionResponse$inboundSchema, { + key: "uid", + }), M.jsonErr(400, errors.FourHundred$inboundSchema), M.jsonErr(401, errors.FourHundredAndOne$inboundSchema), M.jsonErr(403, errors.FourHundredAndThree$inboundSchema), diff --git a/src/funcs/schemasDeleteSchema.ts b/src/funcs/schemasDeleteSchema.ts index b24324e..724c24e 100644 --- a/src/funcs/schemasDeleteSchema.ts +++ b/src/funcs/schemasDeleteSchema.ts @@ -2,7 +2,6 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; import { ScalarCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -38,7 +37,7 @@ export function schemasDeleteSchema( options?: RequestOptions, ): APIPromise< Result< - any, + operations.DeleteSchemaResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -69,7 +68,7 @@ async function $do( ): Promise< [ Result< - any, + operations.DeleteSchemaResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -166,7 +165,7 @@ async function $do( }; const [result] = await M.match< - any, + operations.DeleteSchemaResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -182,7 +181,7 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, z.any()), + M.json(200, operations.DeleteSchemaResponse$inboundSchema, { key: "any" }), M.jsonErr(400, errors.FourHundred$inboundSchema), M.jsonErr(401, errors.FourHundredAndOne$inboundSchema), M.jsonErr(403, errors.FourHundredAndThree$inboundSchema), diff --git a/src/funcs/schemasDeleteSchemaVersion.ts b/src/funcs/schemasDeleteSchemaVersion.ts index bfae928..5f2fc71 100644 --- a/src/funcs/schemasDeleteSchemaVersion.ts +++ b/src/funcs/schemasDeleteSchemaVersion.ts @@ -2,7 +2,6 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; import { ScalarCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -38,7 +37,7 @@ export function schemasDeleteSchemaVersion( options?: RequestOptions, ): APIPromise< Result< - any, + operations.DeleteSchemaVersionResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -69,7 +68,7 @@ async function $do( ): Promise< [ Result< - any, + operations.DeleteSchemaVersionResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -173,7 +172,7 @@ async function $do( }; const [result] = await M.match< - any, + operations.DeleteSchemaVersionResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -189,7 +188,9 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, z.any()), + M.json(200, operations.DeleteSchemaVersionResponse$inboundSchema, { + key: "any", + }), M.jsonErr(400, errors.FourHundred$inboundSchema), M.jsonErr(401, errors.FourHundredAndOne$inboundSchema), M.jsonErr(403, errors.FourHundredAndThree$inboundSchema), diff --git a/src/funcs/schemasGetSchemaVersion.ts b/src/funcs/schemasGetSchemaVersion.ts index d1562b6..439a823 100644 --- a/src/funcs/schemasGetSchemaVersion.ts +++ b/src/funcs/schemasGetSchemaVersion.ts @@ -2,7 +2,6 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; import { ScalarCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -38,7 +37,7 @@ export function schemasGetSchemaVersion( options?: RequestOptions, ): APIPromise< Result< - string, + operations.GetSchemaVersionResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -69,7 +68,7 @@ async function $do( ): Promise< [ Result< - string, + operations.GetSchemaVersionResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -172,7 +171,7 @@ async function $do( }; const [result] = await M.match< - string, + operations.GetSchemaVersionResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -188,7 +187,9 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.text(200, z.string()), + M.text(200, operations.GetSchemaVersionResponse$inboundSchema, { + key: "res", + }), M.jsonErr(400, errors.FourHundred$inboundSchema), M.jsonErr(401, errors.FourHundredAndOne$inboundSchema), M.jsonErr(403, errors.FourHundredAndThree$inboundSchema), diff --git a/src/funcs/schemasListSchemas.ts b/src/funcs/schemasListSchemas.ts index 2920da3..0d5e898 100644 --- a/src/funcs/schemasListSchemas.ts +++ b/src/funcs/schemasListSchemas.ts @@ -2,7 +2,6 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; import { ScalarCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -11,7 +10,6 @@ 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 * as components from "../models/components/index.js"; import { ConnectionError, InvalidRequestError, @@ -39,7 +37,7 @@ export function schemasListSchemas( options?: RequestOptions, ): APIPromise< Result< - Array, + operations.ListSchemasResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -70,7 +68,7 @@ async function $do( ): Promise< [ Result< - Array, + operations.ListSchemasResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -163,7 +161,7 @@ async function $do( }; const [result] = await M.match< - Array, + operations.ListSchemasResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -179,7 +177,9 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, z.array(components.Schema$inboundSchema)), + M.json(200, operations.ListSchemasResponse$inboundSchema, { + key: "schemata", + }), M.jsonErr(400, errors.FourHundred$inboundSchema), M.jsonErr(401, errors.FourHundredAndOne$inboundSchema), M.jsonErr(403, errors.FourHundredAndThree$inboundSchema), diff --git a/src/funcs/schemasRemoveSchemaAccessGroup.ts b/src/funcs/schemasRemoveSchemaAccessGroup.ts index 3c626dc..ad92b07 100644 --- a/src/funcs/schemasRemoveSchemaAccessGroup.ts +++ b/src/funcs/schemasRemoveSchemaAccessGroup.ts @@ -2,7 +2,6 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; import { ScalarCore } from "../core.js"; import { encodeJSON, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -38,7 +37,7 @@ export function schemasRemoveSchemaAccessGroup( options?: RequestOptions, ): APIPromise< Result< - any, + operations.RemoveSchemaAccessGroupResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -69,7 +68,7 @@ async function $do( ): Promise< [ Result< - any, + operations.RemoveSchemaAccessGroupResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -170,7 +169,7 @@ async function $do( }; const [result] = await M.match< - any, + operations.RemoveSchemaAccessGroupResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -186,7 +185,9 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, z.any()), + M.json(200, operations.RemoveSchemaAccessGroupResponse$inboundSchema, { + key: "any", + }), M.jsonErr(400, errors.FourHundred$inboundSchema), M.jsonErr(401, errors.FourHundredAndOne$inboundSchema), M.jsonErr(403, errors.FourHundredAndThree$inboundSchema), diff --git a/src/funcs/schemasUpdateSchema.ts b/src/funcs/schemasUpdateSchema.ts index 3653638..8311959 100644 --- a/src/funcs/schemasUpdateSchema.ts +++ b/src/funcs/schemasUpdateSchema.ts @@ -2,7 +2,6 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; import { ScalarCore } from "../core.js"; import { encodeJSON, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -38,7 +37,7 @@ export function schemasUpdateSchema( options?: RequestOptions, ): APIPromise< Result< - any, + operations.UpdateSchemaResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -69,7 +68,7 @@ async function $do( ): Promise< [ Result< - any, + operations.UpdateSchemaResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -167,7 +166,7 @@ async function $do( }; const [result] = await M.match< - any, + operations.UpdateSchemaResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -183,7 +182,7 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, z.any()), + M.json(200, operations.UpdateSchemaResponse$inboundSchema, { key: "any" }), M.jsonErr(400, errors.FourHundred$inboundSchema), M.jsonErr(401, errors.FourHundredAndOne$inboundSchema), M.jsonErr(403, errors.FourHundredAndThree$inboundSchema), diff --git a/src/funcs/teamsListTeams.ts b/src/funcs/teamsListTeams.ts index b7275eb..564bf6d 100644 --- a/src/funcs/teamsListTeams.ts +++ b/src/funcs/teamsListTeams.ts @@ -2,14 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; import { ScalarCore } from "../core.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 * as components from "../models/components/index.js"; import { ConnectionError, InvalidRequestError, @@ -21,6 +19,7 @@ import * as errors from "../models/errors/index.js"; import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { ScalarError } from "../models/errors/scalarerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; @@ -35,7 +34,7 @@ export function teamsListTeams( options?: RequestOptions, ): APIPromise< Result< - Array, + operations.ListTeamsResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -64,7 +63,7 @@ async function $do( ): Promise< [ Result< - Array, + operations.ListTeamsResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -138,7 +137,7 @@ async function $do( }; const [result] = await M.match< - Array, + operations.ListTeamsResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -154,7 +153,7 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, z.array(components.Team$inboundSchema)), + M.json(200, operations.ListTeamsResponse$inboundSchema, { key: "teams" }), M.jsonErr(400, errors.FourHundred$inboundSchema), M.jsonErr(401, errors.FourHundredAndOne$inboundSchema), M.jsonErr(403, errors.FourHundredAndThree$inboundSchema), diff --git a/src/funcs/themesCreateTheme.ts b/src/funcs/themesCreateTheme.ts index 8224a7a..06a2be4 100644 --- a/src/funcs/themesCreateTheme.ts +++ b/src/funcs/themesCreateTheme.ts @@ -10,7 +10,6 @@ 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 * as components from "../models/components/index.js"; import { ConnectionError, InvalidRequestError, @@ -38,7 +37,7 @@ export function themesCreateTheme( options?: RequestOptions, ): APIPromise< Result< - components.Uid, + operations.CreateThemeResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -69,7 +68,7 @@ async function $do( ): Promise< [ Result< - components.Uid, + operations.CreateThemeResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -156,7 +155,7 @@ async function $do( }; const [result] = await M.match< - components.Uid, + operations.CreateThemeResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -172,7 +171,7 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, components.Uid$inboundSchema), + M.json(200, operations.CreateThemeResponse$inboundSchema, { key: "uid" }), M.jsonErr(400, errors.FourHundred$inboundSchema), M.jsonErr(401, errors.FourHundredAndOne$inboundSchema), M.jsonErr(403, errors.FourHundredAndThree$inboundSchema), diff --git a/src/funcs/themesDeleteTheme.ts b/src/funcs/themesDeleteTheme.ts index 14aaad1..4339ff3 100644 --- a/src/funcs/themesDeleteTheme.ts +++ b/src/funcs/themesDeleteTheme.ts @@ -2,7 +2,6 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; import { ScalarCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -38,7 +37,7 @@ export function themesDeleteTheme( options?: RequestOptions, ): APIPromise< Result< - any, + operations.DeleteThemeResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -69,7 +68,7 @@ async function $do( ): Promise< [ Result< - any, + operations.DeleteThemeResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -162,7 +161,7 @@ async function $do( }; const [result] = await M.match< - any, + operations.DeleteThemeResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -178,7 +177,7 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, z.any()), + M.json(200, operations.DeleteThemeResponse$inboundSchema, { key: "any" }), M.jsonErr(400, errors.FourHundred$inboundSchema), M.jsonErr(401, errors.FourHundredAndOne$inboundSchema), M.jsonErr(403, errors.FourHundredAndThree$inboundSchema), diff --git a/src/funcs/themesGetTheme.ts b/src/funcs/themesGetTheme.ts index 5d98913..53ae358 100644 --- a/src/funcs/themesGetTheme.ts +++ b/src/funcs/themesGetTheme.ts @@ -2,7 +2,6 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; import { ScalarCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -38,7 +37,7 @@ export function themesGetTheme( options?: RequestOptions, ): APIPromise< Result< - string, + operations.GetThemeResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -69,7 +68,7 @@ async function $do( ): Promise< [ Result< - string, + operations.GetThemeResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -162,7 +161,7 @@ async function $do( }; const [result] = await M.match< - string, + operations.GetThemeResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -178,7 +177,7 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.text(200, z.string()), + M.text(200, operations.GetThemeResponse$inboundSchema, { key: "res" }), M.jsonErr(400, errors.FourHundred$inboundSchema), M.jsonErr(401, errors.FourHundredAndOne$inboundSchema), M.jsonErr(403, errors.FourHundredAndThree$inboundSchema), diff --git a/src/funcs/themesListThemes.ts b/src/funcs/themesListThemes.ts index 9698df2..befc9ca 100644 --- a/src/funcs/themesListThemes.ts +++ b/src/funcs/themesListThemes.ts @@ -2,14 +2,12 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; import { ScalarCore } from "../core.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 * as components from "../models/components/index.js"; import { ConnectionError, InvalidRequestError, @@ -21,6 +19,7 @@ import * as errors from "../models/errors/index.js"; import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { ScalarError } from "../models/errors/scalarerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; @@ -35,7 +34,7 @@ export function themesListThemes( options?: RequestOptions, ): APIPromise< Result< - Array, + operations.ListThemesResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -64,7 +63,7 @@ async function $do( ): Promise< [ Result< - Array, + operations.ListThemesResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -138,7 +137,7 @@ async function $do( }; const [result] = await M.match< - Array, + operations.ListThemesResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -154,7 +153,7 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, z.array(components.Theme$inboundSchema)), + M.json(200, operations.ListThemesResponse$inboundSchema, { key: "themes" }), M.jsonErr(400, errors.FourHundred$inboundSchema), M.jsonErr(401, errors.FourHundredAndOne$inboundSchema), M.jsonErr(403, errors.FourHundredAndThree$inboundSchema), diff --git a/src/funcs/themesReplaceThemeDocument.ts b/src/funcs/themesReplaceThemeDocument.ts index 22174f1..b1f30d0 100644 --- a/src/funcs/themesReplaceThemeDocument.ts +++ b/src/funcs/themesReplaceThemeDocument.ts @@ -2,7 +2,6 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; import { ScalarCore } from "../core.js"; import { encodeJSON, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -38,7 +37,7 @@ export function themesReplaceThemeDocument( options?: RequestOptions, ): APIPromise< Result< - any, + operations.ReplaceThemeDocumentResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -69,7 +68,7 @@ async function $do( ): Promise< [ Result< - any, + operations.ReplaceThemeDocumentResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -164,7 +163,7 @@ async function $do( }; const [result] = await M.match< - any, + operations.ReplaceThemeDocumentResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -180,7 +179,9 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, z.any()), + M.json(200, operations.ReplaceThemeDocumentResponse$inboundSchema, { + key: "any", + }), M.jsonErr(400, errors.FourHundred$inboundSchema), M.jsonErr(401, errors.FourHundredAndOne$inboundSchema), M.jsonErr(403, errors.FourHundredAndThree$inboundSchema), diff --git a/src/funcs/themesUpdateTheme.ts b/src/funcs/themesUpdateTheme.ts index c61a445..d3d5244 100644 --- a/src/funcs/themesUpdateTheme.ts +++ b/src/funcs/themesUpdateTheme.ts @@ -2,7 +2,6 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; import { ScalarCore } from "../core.js"; import { encodeJSON, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -38,7 +37,7 @@ export function themesUpdateTheme( options?: RequestOptions, ): APIPromise< Result< - any, + operations.UpdateThemeResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -69,7 +68,7 @@ async function $do( ): Promise< [ Result< - any, + operations.UpdateThemeResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -163,7 +162,7 @@ async function $do( }; const [result] = await M.match< - any, + operations.UpdateThemeResponse, | errors.FourHundred | errors.FourHundredAndOne | errors.FourHundredAndThree @@ -179,7 +178,7 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, z.any()), + M.json(200, operations.UpdateThemeResponse$inboundSchema, { key: "any" }), M.jsonErr(400, errors.FourHundred$inboundSchema), M.jsonErr(401, errors.FourHundredAndOne$inboundSchema), M.jsonErr(403, errors.FourHundredAndThree$inboundSchema), diff --git a/src/lib/config.ts b/src/lib/config.ts index d7ec666..e499ab1 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -57,8 +57,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null { export const SDK_METADATA = { language: "typescript", - openapiDocVersion: "0.1.4", - sdkVersion: "0.1.4", + openapiDocVersion: "0.1.5", + sdkVersion: "0.1.5", genVersion: "2.634.2", - userAgent: "speakeasy-sdk/typescript 0.1.4 2.634.2 0.1.4 @scalar/sdk", + userAgent: "speakeasy-sdk/typescript 0.1.5 2.634.2 0.1.5 @scalar/sdk", } as const; diff --git a/src/lib/matchers.ts b/src/lib/matchers.ts index 77d4108..f7392e5 100644 --- a/src/lib/matchers.ts +++ b/src/lib/matchers.ts @@ -245,7 +245,7 @@ export function match( break; case "fail": body = await response.text(); - raw = body; + raw = undefined; break; default: encoding satisfies never; @@ -277,14 +277,11 @@ export function match( ...(matcher.hdrs ? { Headers: unpackHeaders(response.headers) } : null), [resultKey]: raw, }; - } else if (matcher.hdrs) { + } else { data = { ...options?.extraFields, ...(matcher.hdrs ? { Headers: unpackHeaders(response.headers) } : null), - ...(isPlainObject(raw) ? raw : null), }; - } else { - data = raw; } if ("err" in matcher) { diff --git a/src/models/components/httpmetadata.ts b/src/models/components/httpmetadata.ts new file mode 100644 index 0000000..014bfb3 --- /dev/null +++ b/src/models/components/httpmetadata.ts @@ -0,0 +1,87 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod"; +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 HTTPMetadata = { + /** + * Raw HTTP response; suitable for custom response parsing + */ + response: Response; + /** + * Raw HTTP request; suitable for debugging + */ + request: Request; +}; + +/** @internal */ +export const HTTPMetadata$inboundSchema: z.ZodType< + HTTPMetadata, + z.ZodTypeDef, + unknown +> = z.object({ + Response: z.instanceof(Response), + Request: z.instanceof(Request), +}).transform((v) => { + return remap$(v, { + "Response": "response", + "Request": "request", + }); +}); + +/** @internal */ +export type HTTPMetadata$Outbound = { + Response: never; + Request: never; +}; + +/** @internal */ +export const HTTPMetadata$outboundSchema: z.ZodType< + HTTPMetadata$Outbound, + z.ZodTypeDef, + HTTPMetadata +> = z.object({ + response: z.instanceof(Response).transform(() => { + throw new Error("Response cannot be serialized"); + }), + request: z.instanceof(Request).transform(() => { + throw new Error("Response cannot be serialized"); + }), +}).transform((v) => { + return remap$(v, { + response: "Response", + request: "Request", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace HTTPMetadata$ { + /** @deprecated use `HTTPMetadata$inboundSchema` instead. */ + export const inboundSchema = HTTPMetadata$inboundSchema; + /** @deprecated use `HTTPMetadata$outboundSchema` instead. */ + export const outboundSchema = HTTPMetadata$outboundSchema; + /** @deprecated use `HTTPMetadata$Outbound` instead. */ + export type Outbound = HTTPMetadata$Outbound; +} + +export function httpMetadataToJSON(httpMetadata: HTTPMetadata): string { + return JSON.stringify(HTTPMetadata$outboundSchema.parse(httpMetadata)); +} + +export function httpMetadataFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => HTTPMetadata$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'HTTPMetadata' from JSON`, + ); +} diff --git a/src/models/components/index.ts b/src/models/components/index.ts index fdb6014..37552d0 100644 --- a/src/models/components/index.ts +++ b/src/models/components/index.ts @@ -7,6 +7,7 @@ export * from "./activedeployment.js"; export * from "./apidocument.js"; export * from "./githubproject.js"; export * from "./githubprojectrepository.js"; +export * from "./httpmetadata.js"; export * from "./loginportal.js"; export * from "./loginportalemail.js"; export * from "./loginportalpage.js"; diff --git a/src/models/errors/scalarerror.ts b/src/models/errors/scalarerror.ts index 08912fd..78c9ebf 100644 --- a/src/models/errors/scalarerror.ts +++ b/src/models/errors/scalarerror.ts @@ -4,16 +4,12 @@ /** The base class for all HTTP error responses */ export class ScalarError extends Error { - /** HTTP status code */ - public readonly statusCode: number; - /** HTTP body */ - public readonly body: string; - /** HTTP headers */ - public readonly headers: Headers; - /** HTTP content type */ - public readonly contentType: string; - /** Raw response */ - public readonly rawResponse: Response; + /** HTTP meta data */ + public readonly httpMeta: { + response: Response; + request: Request; + body: string; + }; constructor( message: string, @@ -24,11 +20,7 @@ export class ScalarError extends Error { }, ) { super(message); - this.statusCode = httpMeta.response.status; - this.body = httpMeta.body; - this.headers = httpMeta.response.headers; - this.contentType = httpMeta.response.headers.get("content-type") || ""; - this.rawResponse = httpMeta.response; + this.httpMeta = httpMeta; this.name = "ScalarError"; } diff --git a/src/models/operations/addapidocumentaccessgroup.ts b/src/models/operations/addapidocumentaccessgroup.ts index cdb9f7b..fd8e813 100644 --- a/src/models/operations/addapidocumentaccessgroup.ts +++ b/src/models/operations/addapidocumentaccessgroup.ts @@ -15,6 +15,14 @@ export type AddApiDocumentAccessGroupRequest = { accessGroup: components.AccessGroup; }; +export type AddApiDocumentAccessGroupResponse = { + httpMeta: components.HTTPMetadata; + /** + * Default Response + */ + any?: any | null | undefined; +}; + /** @internal */ export const AddApiDocumentAccessGroupRequest$inboundSchema: z.ZodType< AddApiDocumentAccessGroupRequest, @@ -84,3 +92,71 @@ export function addApiDocumentAccessGroupRequestFromJSON( `Failed to parse 'AddApiDocumentAccessGroupRequest' from JSON`, ); } + +/** @internal */ +export const AddApiDocumentAccessGroupResponse$inboundSchema: z.ZodType< + AddApiDocumentAccessGroupResponse, + z.ZodTypeDef, + unknown +> = z.object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + any: z.nullable(z.any()).optional(), +}).transform((v) => { + return remap$(v, { + "HttpMeta": "httpMeta", + }); +}); + +/** @internal */ +export type AddApiDocumentAccessGroupResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + any?: any | null | undefined; +}; + +/** @internal */ +export const AddApiDocumentAccessGroupResponse$outboundSchema: z.ZodType< + AddApiDocumentAccessGroupResponse$Outbound, + z.ZodTypeDef, + AddApiDocumentAccessGroupResponse +> = z.object({ + httpMeta: components.HTTPMetadata$outboundSchema, + any: z.nullable(z.any()).optional(), +}).transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace AddApiDocumentAccessGroupResponse$ { + /** @deprecated use `AddApiDocumentAccessGroupResponse$inboundSchema` instead. */ + export const inboundSchema = AddApiDocumentAccessGroupResponse$inboundSchema; + /** @deprecated use `AddApiDocumentAccessGroupResponse$outboundSchema` instead. */ + export const outboundSchema = + AddApiDocumentAccessGroupResponse$outboundSchema; + /** @deprecated use `AddApiDocumentAccessGroupResponse$Outbound` instead. */ + export type Outbound = AddApiDocumentAccessGroupResponse$Outbound; +} + +export function addApiDocumentAccessGroupResponseToJSON( + addApiDocumentAccessGroupResponse: AddApiDocumentAccessGroupResponse, +): string { + return JSON.stringify( + AddApiDocumentAccessGroupResponse$outboundSchema.parse( + addApiDocumentAccessGroupResponse, + ), + ); +} + +export function addApiDocumentAccessGroupResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => AddApiDocumentAccessGroupResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'AddApiDocumentAccessGroupResponse' from JSON`, + ); +} diff --git a/src/models/operations/addrulesetaccessgroup.ts b/src/models/operations/addrulesetaccessgroup.ts index 77d8536..a2f50c3 100644 --- a/src/models/operations/addrulesetaccessgroup.ts +++ b/src/models/operations/addrulesetaccessgroup.ts @@ -15,6 +15,14 @@ export type AddRulesetAccessGroupRequest = { accessGroup: components.AccessGroup; }; +export type AddRulesetAccessGroupResponse = { + httpMeta: components.HTTPMetadata; + /** + * Default Response + */ + any?: any | null | undefined; +}; + /** @internal */ export const AddRulesetAccessGroupRequest$inboundSchema: z.ZodType< AddRulesetAccessGroupRequest, @@ -84,3 +92,70 @@ export function addRulesetAccessGroupRequestFromJSON( `Failed to parse 'AddRulesetAccessGroupRequest' from JSON`, ); } + +/** @internal */ +export const AddRulesetAccessGroupResponse$inboundSchema: z.ZodType< + AddRulesetAccessGroupResponse, + z.ZodTypeDef, + unknown +> = z.object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + any: z.nullable(z.any()).optional(), +}).transform((v) => { + return remap$(v, { + "HttpMeta": "httpMeta", + }); +}); + +/** @internal */ +export type AddRulesetAccessGroupResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + any?: any | null | undefined; +}; + +/** @internal */ +export const AddRulesetAccessGroupResponse$outboundSchema: z.ZodType< + AddRulesetAccessGroupResponse$Outbound, + z.ZodTypeDef, + AddRulesetAccessGroupResponse +> = z.object({ + httpMeta: components.HTTPMetadata$outboundSchema, + any: z.nullable(z.any()).optional(), +}).transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace AddRulesetAccessGroupResponse$ { + /** @deprecated use `AddRulesetAccessGroupResponse$inboundSchema` instead. */ + export const inboundSchema = AddRulesetAccessGroupResponse$inboundSchema; + /** @deprecated use `AddRulesetAccessGroupResponse$outboundSchema` instead. */ + export const outboundSchema = AddRulesetAccessGroupResponse$outboundSchema; + /** @deprecated use `AddRulesetAccessGroupResponse$Outbound` instead. */ + export type Outbound = AddRulesetAccessGroupResponse$Outbound; +} + +export function addRulesetAccessGroupResponseToJSON( + addRulesetAccessGroupResponse: AddRulesetAccessGroupResponse, +): string { + return JSON.stringify( + AddRulesetAccessGroupResponse$outboundSchema.parse( + addRulesetAccessGroupResponse, + ), + ); +} + +export function addRulesetAccessGroupResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => AddRulesetAccessGroupResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'AddRulesetAccessGroupResponse' from JSON`, + ); +} diff --git a/src/models/operations/addschemaaccessgroup.ts b/src/models/operations/addschemaaccessgroup.ts index 9feab1e..c920583 100644 --- a/src/models/operations/addschemaaccessgroup.ts +++ b/src/models/operations/addschemaaccessgroup.ts @@ -15,6 +15,14 @@ export type AddSchemaAccessGroupRequest = { accessGroup: components.AccessGroup; }; +export type AddSchemaAccessGroupResponse = { + httpMeta: components.HTTPMetadata; + /** + * Default Response + */ + any?: any | null | undefined; +}; + /** @internal */ export const AddSchemaAccessGroupRequest$inboundSchema: z.ZodType< AddSchemaAccessGroupRequest, @@ -84,3 +92,70 @@ export function addSchemaAccessGroupRequestFromJSON( `Failed to parse 'AddSchemaAccessGroupRequest' from JSON`, ); } + +/** @internal */ +export const AddSchemaAccessGroupResponse$inboundSchema: z.ZodType< + AddSchemaAccessGroupResponse, + z.ZodTypeDef, + unknown +> = z.object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + any: z.nullable(z.any()).optional(), +}).transform((v) => { + return remap$(v, { + "HttpMeta": "httpMeta", + }); +}); + +/** @internal */ +export type AddSchemaAccessGroupResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + any?: any | null | undefined; +}; + +/** @internal */ +export const AddSchemaAccessGroupResponse$outboundSchema: z.ZodType< + AddSchemaAccessGroupResponse$Outbound, + z.ZodTypeDef, + AddSchemaAccessGroupResponse +> = z.object({ + httpMeta: components.HTTPMetadata$outboundSchema, + any: z.nullable(z.any()).optional(), +}).transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace AddSchemaAccessGroupResponse$ { + /** @deprecated use `AddSchemaAccessGroupResponse$inboundSchema` instead. */ + export const inboundSchema = AddSchemaAccessGroupResponse$inboundSchema; + /** @deprecated use `AddSchemaAccessGroupResponse$outboundSchema` instead. */ + export const outboundSchema = AddSchemaAccessGroupResponse$outboundSchema; + /** @deprecated use `AddSchemaAccessGroupResponse$Outbound` instead. */ + export type Outbound = AddSchemaAccessGroupResponse$Outbound; +} + +export function addSchemaAccessGroupResponseToJSON( + addSchemaAccessGroupResponse: AddSchemaAccessGroupResponse, +): string { + return JSON.stringify( + AddSchemaAccessGroupResponse$outboundSchema.parse( + addSchemaAccessGroupResponse, + ), + ); +} + +export function addSchemaAccessGroupResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => AddSchemaAccessGroupResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'AddSchemaAccessGroupResponse' from JSON`, + ); +} diff --git a/src/models/operations/createapidocument.ts b/src/models/operations/createapidocument.ts index 7d11325..d2e7c1c 100644 --- a/src/models/operations/createapidocument.ts +++ b/src/models/operations/createapidocument.ts @@ -6,6 +6,7 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type CreateApiDocumentRequestBody = { @@ -35,6 +36,14 @@ export type CreateApiDocumentResponseBody = { versionSha: string; }; +export type CreateApiDocumentResponse = { + httpMeta: components.HTTPMetadata; + /** + * Default Response + */ + object?: CreateApiDocumentResponseBody | undefined; +}; + /** @internal */ export const CreateApiDocumentRequestBody$inboundSchema: z.ZodType< CreateApiDocumentRequestBody, @@ -244,3 +253,68 @@ export function createApiDocumentResponseBodyFromJSON( `Failed to parse 'CreateApiDocumentResponseBody' from JSON`, ); } + +/** @internal */ +export const CreateApiDocumentResponse$inboundSchema: z.ZodType< + CreateApiDocumentResponse, + z.ZodTypeDef, + unknown +> = z.object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => CreateApiDocumentResponseBody$inboundSchema).optional(), +}).transform((v) => { + return remap$(v, { + "HttpMeta": "httpMeta", + }); +}); + +/** @internal */ +export type CreateApiDocumentResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: CreateApiDocumentResponseBody$Outbound | undefined; +}; + +/** @internal */ +export const CreateApiDocumentResponse$outboundSchema: z.ZodType< + CreateApiDocumentResponse$Outbound, + z.ZodTypeDef, + CreateApiDocumentResponse +> = z.object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => CreateApiDocumentResponseBody$outboundSchema).optional(), +}).transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateApiDocumentResponse$ { + /** @deprecated use `CreateApiDocumentResponse$inboundSchema` instead. */ + export const inboundSchema = CreateApiDocumentResponse$inboundSchema; + /** @deprecated use `CreateApiDocumentResponse$outboundSchema` instead. */ + export const outboundSchema = CreateApiDocumentResponse$outboundSchema; + /** @deprecated use `CreateApiDocumentResponse$Outbound` instead. */ + export type Outbound = CreateApiDocumentResponse$Outbound; +} + +export function createApiDocumentResponseToJSON( + createApiDocumentResponse: CreateApiDocumentResponse, +): string { + return JSON.stringify( + CreateApiDocumentResponse$outboundSchema.parse(createApiDocumentResponse), + ); +} + +export function createApiDocumentResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => CreateApiDocumentResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CreateApiDocumentResponse' from JSON`, + ); +} diff --git a/src/models/operations/createapidocumentversion.ts b/src/models/operations/createapidocumentversion.ts index 2c8eacb..78e2757 100644 --- a/src/models/operations/createapidocumentversion.ts +++ b/src/models/operations/createapidocumentversion.ts @@ -6,6 +6,7 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type CreateApiDocumentVersionRequestBody = { @@ -21,6 +22,14 @@ export type CreateApiDocumentVersionRequest = { requestBody: CreateApiDocumentVersionRequestBody; }; +export type CreateApiDocumentVersionResponse = { + httpMeta: components.HTTPMetadata; + /** + * Default Response + */ + managedDocVersion?: components.ManagedDocVersion | undefined; +}; + /** @internal */ export const CreateApiDocumentVersionRequestBody$inboundSchema: z.ZodType< CreateApiDocumentVersionRequestBody, @@ -158,3 +167,72 @@ export function createApiDocumentVersionRequestFromJSON( `Failed to parse 'CreateApiDocumentVersionRequest' from JSON`, ); } + +/** @internal */ +export const CreateApiDocumentVersionResponse$inboundSchema: z.ZodType< + CreateApiDocumentVersionResponse, + z.ZodTypeDef, + unknown +> = z.object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + "managed-doc-version": components.ManagedDocVersion$inboundSchema.optional(), +}).transform((v) => { + return remap$(v, { + "HttpMeta": "httpMeta", + "managed-doc-version": "managedDocVersion", + }); +}); + +/** @internal */ +export type CreateApiDocumentVersionResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + "managed-doc-version"?: components.ManagedDocVersion$Outbound | undefined; +}; + +/** @internal */ +export const CreateApiDocumentVersionResponse$outboundSchema: z.ZodType< + CreateApiDocumentVersionResponse$Outbound, + z.ZodTypeDef, + CreateApiDocumentVersionResponse +> = z.object({ + httpMeta: components.HTTPMetadata$outboundSchema, + managedDocVersion: components.ManagedDocVersion$outboundSchema.optional(), +}).transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + managedDocVersion: "managed-doc-version", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateApiDocumentVersionResponse$ { + /** @deprecated use `CreateApiDocumentVersionResponse$inboundSchema` instead. */ + export const inboundSchema = CreateApiDocumentVersionResponse$inboundSchema; + /** @deprecated use `CreateApiDocumentVersionResponse$outboundSchema` instead. */ + export const outboundSchema = CreateApiDocumentVersionResponse$outboundSchema; + /** @deprecated use `CreateApiDocumentVersionResponse$Outbound` instead. */ + export type Outbound = CreateApiDocumentVersionResponse$Outbound; +} + +export function createApiDocumentVersionResponseToJSON( + createApiDocumentVersionResponse: CreateApiDocumentVersionResponse, +): string { + return JSON.stringify( + CreateApiDocumentVersionResponse$outboundSchema.parse( + createApiDocumentVersionResponse, + ), + ); +} + +export function createApiDocumentVersionResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => CreateApiDocumentVersionResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CreateApiDocumentVersionResponse' from JSON`, + ); +} diff --git a/src/models/operations/createguide.ts b/src/models/operations/createguide.ts index 8638a0f..61afe08 100644 --- a/src/models/operations/createguide.ts +++ b/src/models/operations/createguide.ts @@ -3,8 +3,10 @@ */ import * as z from "zod"; +import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type CreateGuideRequestBody = { @@ -23,6 +25,14 @@ export type CreateGuideResponseBody = { slug: string; }; +export type CreateGuideResponse = { + httpMeta: components.HTTPMetadata; + /** + * Default Response + */ + object?: CreateGuideResponseBody | undefined; +}; + /** @internal */ export const CreateGuideRequestBody$inboundSchema: z.ZodType< CreateGuideRequestBody, @@ -145,3 +155,68 @@ export function createGuideResponseBodyFromJSON( `Failed to parse 'CreateGuideResponseBody' from JSON`, ); } + +/** @internal */ +export const CreateGuideResponse$inboundSchema: z.ZodType< + CreateGuideResponse, + z.ZodTypeDef, + unknown +> = z.object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => CreateGuideResponseBody$inboundSchema).optional(), +}).transform((v) => { + return remap$(v, { + "HttpMeta": "httpMeta", + }); +}); + +/** @internal */ +export type CreateGuideResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: CreateGuideResponseBody$Outbound | undefined; +}; + +/** @internal */ +export const CreateGuideResponse$outboundSchema: z.ZodType< + CreateGuideResponse$Outbound, + z.ZodTypeDef, + CreateGuideResponse +> = z.object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => CreateGuideResponseBody$outboundSchema).optional(), +}).transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateGuideResponse$ { + /** @deprecated use `CreateGuideResponse$inboundSchema` instead. */ + export const inboundSchema = CreateGuideResponse$inboundSchema; + /** @deprecated use `CreateGuideResponse$outboundSchema` instead. */ + export const outboundSchema = CreateGuideResponse$outboundSchema; + /** @deprecated use `CreateGuideResponse$Outbound` instead. */ + export type Outbound = CreateGuideResponse$Outbound; +} + +export function createGuideResponseToJSON( + createGuideResponse: CreateGuideResponse, +): string { + return JSON.stringify( + CreateGuideResponse$outboundSchema.parse(createGuideResponse), + ); +} + +export function createGuideResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => CreateGuideResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CreateGuideResponse' from JSON`, + ); +} diff --git a/src/models/operations/createloginportal.ts b/src/models/operations/createloginportal.ts index b1ec40f..e1a0b93 100644 --- a/src/models/operations/createloginportal.ts +++ b/src/models/operations/createloginportal.ts @@ -3,6 +3,7 @@ */ import * as z from "zod"; +import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; @@ -15,6 +16,14 @@ export type CreateLoginPortalRequestBody = { page: components.LoginPortalPage; }; +export type CreateLoginPortalResponse = { + httpMeta: components.HTTPMetadata; + /** + * Default Response + */ + uid?: components.Uid | undefined; +}; + /** @internal */ export const CreateLoginPortalRequestBody$inboundSchema: z.ZodType< CreateLoginPortalRequestBody, @@ -79,3 +88,68 @@ export function createLoginPortalRequestBodyFromJSON( `Failed to parse 'CreateLoginPortalRequestBody' from JSON`, ); } + +/** @internal */ +export const CreateLoginPortalResponse$inboundSchema: z.ZodType< + CreateLoginPortalResponse, + z.ZodTypeDef, + unknown +> = z.object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + uid: components.Uid$inboundSchema.optional(), +}).transform((v) => { + return remap$(v, { + "HttpMeta": "httpMeta", + }); +}); + +/** @internal */ +export type CreateLoginPortalResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + uid?: components.Uid$Outbound | undefined; +}; + +/** @internal */ +export const CreateLoginPortalResponse$outboundSchema: z.ZodType< + CreateLoginPortalResponse$Outbound, + z.ZodTypeDef, + CreateLoginPortalResponse +> = z.object({ + httpMeta: components.HTTPMetadata$outboundSchema, + uid: components.Uid$outboundSchema.optional(), +}).transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateLoginPortalResponse$ { + /** @deprecated use `CreateLoginPortalResponse$inboundSchema` instead. */ + export const inboundSchema = CreateLoginPortalResponse$inboundSchema; + /** @deprecated use `CreateLoginPortalResponse$outboundSchema` instead. */ + export const outboundSchema = CreateLoginPortalResponse$outboundSchema; + /** @deprecated use `CreateLoginPortalResponse$Outbound` instead. */ + export type Outbound = CreateLoginPortalResponse$Outbound; +} + +export function createLoginPortalResponseToJSON( + createLoginPortalResponse: CreateLoginPortalResponse, +): string { + return JSON.stringify( + CreateLoginPortalResponse$outboundSchema.parse(createLoginPortalResponse), + ); +} + +export function createLoginPortalResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => CreateLoginPortalResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CreateLoginPortalResponse' from JSON`, + ); +} diff --git a/src/models/operations/createruleset.ts b/src/models/operations/createruleset.ts index 0f68071..7243663 100644 --- a/src/models/operations/createruleset.ts +++ b/src/models/operations/createruleset.ts @@ -6,6 +6,7 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type CreateRulesetRequestBody = { @@ -21,6 +22,14 @@ export type CreateRulesetRequest = { requestBody: CreateRulesetRequestBody; }; +export type CreateRulesetResponse = { + httpMeta: components.HTTPMetadata; + /** + * Default Response + */ + uid?: components.Uid | undefined; +}; + /** @internal */ export const CreateRulesetRequestBody$inboundSchema: z.ZodType< CreateRulesetRequestBody, @@ -151,3 +160,68 @@ export function createRulesetRequestFromJSON( `Failed to parse 'CreateRulesetRequest' from JSON`, ); } + +/** @internal */ +export const CreateRulesetResponse$inboundSchema: z.ZodType< + CreateRulesetResponse, + z.ZodTypeDef, + unknown +> = z.object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + uid: components.Uid$inboundSchema.optional(), +}).transform((v) => { + return remap$(v, { + "HttpMeta": "httpMeta", + }); +}); + +/** @internal */ +export type CreateRulesetResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + uid?: components.Uid$Outbound | undefined; +}; + +/** @internal */ +export const CreateRulesetResponse$outboundSchema: z.ZodType< + CreateRulesetResponse$Outbound, + z.ZodTypeDef, + CreateRulesetResponse +> = z.object({ + httpMeta: components.HTTPMetadata$outboundSchema, + uid: components.Uid$outboundSchema.optional(), +}).transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateRulesetResponse$ { + /** @deprecated use `CreateRulesetResponse$inboundSchema` instead. */ + export const inboundSchema = CreateRulesetResponse$inboundSchema; + /** @deprecated use `CreateRulesetResponse$outboundSchema` instead. */ + export const outboundSchema = CreateRulesetResponse$outboundSchema; + /** @deprecated use `CreateRulesetResponse$Outbound` instead. */ + export type Outbound = CreateRulesetResponse$Outbound; +} + +export function createRulesetResponseToJSON( + createRulesetResponse: CreateRulesetResponse, +): string { + return JSON.stringify( + CreateRulesetResponse$outboundSchema.parse(createRulesetResponse), + ); +} + +export function createRulesetResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => CreateRulesetResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CreateRulesetResponse' from JSON`, + ); +} diff --git a/src/models/operations/createschema.ts b/src/models/operations/createschema.ts index 039f52c..1a79159 100644 --- a/src/models/operations/createschema.ts +++ b/src/models/operations/createschema.ts @@ -6,6 +6,7 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type CreateSchemaRequestBody = { @@ -22,6 +23,14 @@ export type CreateSchemaRequest = { requestBody: CreateSchemaRequestBody; }; +export type CreateSchemaResponse = { + httpMeta: components.HTTPMetadata; + /** + * Default Response + */ + uid?: components.Uid | undefined; +}; + /** @internal */ export const CreateSchemaRequestBody$inboundSchema: z.ZodType< CreateSchemaRequestBody, @@ -155,3 +164,68 @@ export function createSchemaRequestFromJSON( `Failed to parse 'CreateSchemaRequest' from JSON`, ); } + +/** @internal */ +export const CreateSchemaResponse$inboundSchema: z.ZodType< + CreateSchemaResponse, + z.ZodTypeDef, + unknown +> = z.object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + uid: components.Uid$inboundSchema.optional(), +}).transform((v) => { + return remap$(v, { + "HttpMeta": "httpMeta", + }); +}); + +/** @internal */ +export type CreateSchemaResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + uid?: components.Uid$Outbound | undefined; +}; + +/** @internal */ +export const CreateSchemaResponse$outboundSchema: z.ZodType< + CreateSchemaResponse$Outbound, + z.ZodTypeDef, + CreateSchemaResponse +> = z.object({ + httpMeta: components.HTTPMetadata$outboundSchema, + uid: components.Uid$outboundSchema.optional(), +}).transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateSchemaResponse$ { + /** @deprecated use `CreateSchemaResponse$inboundSchema` instead. */ + export const inboundSchema = CreateSchemaResponse$inboundSchema; + /** @deprecated use `CreateSchemaResponse$outboundSchema` instead. */ + export const outboundSchema = CreateSchemaResponse$outboundSchema; + /** @deprecated use `CreateSchemaResponse$Outbound` instead. */ + export type Outbound = CreateSchemaResponse$Outbound; +} + +export function createSchemaResponseToJSON( + createSchemaResponse: CreateSchemaResponse, +): string { + return JSON.stringify( + CreateSchemaResponse$outboundSchema.parse(createSchemaResponse), + ); +} + +export function createSchemaResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => CreateSchemaResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CreateSchemaResponse' from JSON`, + ); +} diff --git a/src/models/operations/createschemaversion.ts b/src/models/operations/createschemaversion.ts index ae4c386..b4df998 100644 --- a/src/models/operations/createschemaversion.ts +++ b/src/models/operations/createschemaversion.ts @@ -6,6 +6,7 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type CreateSchemaVersionRequestBody = { @@ -19,6 +20,14 @@ export type CreateSchemaVersionRequest = { requestBody: CreateSchemaVersionRequestBody; }; +export type CreateSchemaVersionResponse = { + httpMeta: components.HTTPMetadata; + /** + * Default Response + */ + uid?: components.Uid | undefined; +}; + /** @internal */ export const CreateSchemaVersionRequestBody$inboundSchema: z.ZodType< CreateSchemaVersionRequestBody, @@ -145,3 +154,70 @@ export function createSchemaVersionRequestFromJSON( `Failed to parse 'CreateSchemaVersionRequest' from JSON`, ); } + +/** @internal */ +export const CreateSchemaVersionResponse$inboundSchema: z.ZodType< + CreateSchemaVersionResponse, + z.ZodTypeDef, + unknown +> = z.object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + uid: components.Uid$inboundSchema.optional(), +}).transform((v) => { + return remap$(v, { + "HttpMeta": "httpMeta", + }); +}); + +/** @internal */ +export type CreateSchemaVersionResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + uid?: components.Uid$Outbound | undefined; +}; + +/** @internal */ +export const CreateSchemaVersionResponse$outboundSchema: z.ZodType< + CreateSchemaVersionResponse$Outbound, + z.ZodTypeDef, + CreateSchemaVersionResponse +> = z.object({ + httpMeta: components.HTTPMetadata$outboundSchema, + uid: components.Uid$outboundSchema.optional(), +}).transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateSchemaVersionResponse$ { + /** @deprecated use `CreateSchemaVersionResponse$inboundSchema` instead. */ + export const inboundSchema = CreateSchemaVersionResponse$inboundSchema; + /** @deprecated use `CreateSchemaVersionResponse$outboundSchema` instead. */ + export const outboundSchema = CreateSchemaVersionResponse$outboundSchema; + /** @deprecated use `CreateSchemaVersionResponse$Outbound` instead. */ + export type Outbound = CreateSchemaVersionResponse$Outbound; +} + +export function createSchemaVersionResponseToJSON( + createSchemaVersionResponse: CreateSchemaVersionResponse, +): string { + return JSON.stringify( + CreateSchemaVersionResponse$outboundSchema.parse( + createSchemaVersionResponse, + ), + ); +} + +export function createSchemaVersionResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => CreateSchemaVersionResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CreateSchemaVersionResponse' from JSON`, + ); +} diff --git a/src/models/operations/createtheme.ts b/src/models/operations/createtheme.ts index e89438a..26afe77 100644 --- a/src/models/operations/createtheme.ts +++ b/src/models/operations/createtheme.ts @@ -3,8 +3,10 @@ */ import * as z from "zod"; +import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type CreateThemeRequestBody = { @@ -14,6 +16,14 @@ export type CreateThemeRequestBody = { document: string; }; +export type CreateThemeResponse = { + httpMeta: components.HTTPMetadata; + /** + * Default Response + */ + uid?: components.Uid | undefined; +}; + /** @internal */ export const CreateThemeRequestBody$inboundSchema: z.ZodType< CreateThemeRequestBody, @@ -76,3 +86,68 @@ export function createThemeRequestBodyFromJSON( `Failed to parse 'CreateThemeRequestBody' from JSON`, ); } + +/** @internal */ +export const CreateThemeResponse$inboundSchema: z.ZodType< + CreateThemeResponse, + z.ZodTypeDef, + unknown +> = z.object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + uid: components.Uid$inboundSchema.optional(), +}).transform((v) => { + return remap$(v, { + "HttpMeta": "httpMeta", + }); +}); + +/** @internal */ +export type CreateThemeResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + uid?: components.Uid$Outbound | undefined; +}; + +/** @internal */ +export const CreateThemeResponse$outboundSchema: z.ZodType< + CreateThemeResponse$Outbound, + z.ZodTypeDef, + CreateThemeResponse +> = z.object({ + httpMeta: components.HTTPMetadata$outboundSchema, + uid: components.Uid$outboundSchema.optional(), +}).transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateThemeResponse$ { + /** @deprecated use `CreateThemeResponse$inboundSchema` instead. */ + export const inboundSchema = CreateThemeResponse$inboundSchema; + /** @deprecated use `CreateThemeResponse$outboundSchema` instead. */ + export const outboundSchema = CreateThemeResponse$outboundSchema; + /** @deprecated use `CreateThemeResponse$Outbound` instead. */ + export type Outbound = CreateThemeResponse$Outbound; +} + +export function createThemeResponseToJSON( + createThemeResponse: CreateThemeResponse, +): string { + return JSON.stringify( + CreateThemeResponse$outboundSchema.parse(createThemeResponse), + ); +} + +export function createThemeResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => CreateThemeResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CreateThemeResponse' from JSON`, + ); +} diff --git a/src/models/operations/deleteapidocument.ts b/src/models/operations/deleteapidocument.ts index 2a64cf4..1a872c7 100644 --- a/src/models/operations/deleteapidocument.ts +++ b/src/models/operations/deleteapidocument.ts @@ -3,8 +3,10 @@ */ import * as z from "zod"; +import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type DeleteApiDocumentRequest = { @@ -12,6 +14,14 @@ export type DeleteApiDocumentRequest = { slug: string; }; +export type DeleteApiDocumentResponse = { + httpMeta: components.HTTPMetadata; + /** + * Default Response + */ + any?: any | null | undefined; +}; + /** @internal */ export const DeleteApiDocumentRequest$inboundSchema: z.ZodType< DeleteApiDocumentRequest, @@ -68,3 +78,68 @@ export function deleteApiDocumentRequestFromJSON( `Failed to parse 'DeleteApiDocumentRequest' from JSON`, ); } + +/** @internal */ +export const DeleteApiDocumentResponse$inboundSchema: z.ZodType< + DeleteApiDocumentResponse, + z.ZodTypeDef, + unknown +> = z.object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + any: z.nullable(z.any()).optional(), +}).transform((v) => { + return remap$(v, { + "HttpMeta": "httpMeta", + }); +}); + +/** @internal */ +export type DeleteApiDocumentResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + any?: any | null | undefined; +}; + +/** @internal */ +export const DeleteApiDocumentResponse$outboundSchema: z.ZodType< + DeleteApiDocumentResponse$Outbound, + z.ZodTypeDef, + DeleteApiDocumentResponse +> = z.object({ + httpMeta: components.HTTPMetadata$outboundSchema, + any: z.nullable(z.any()).optional(), +}).transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace DeleteApiDocumentResponse$ { + /** @deprecated use `DeleteApiDocumentResponse$inboundSchema` instead. */ + export const inboundSchema = DeleteApiDocumentResponse$inboundSchema; + /** @deprecated use `DeleteApiDocumentResponse$outboundSchema` instead. */ + export const outboundSchema = DeleteApiDocumentResponse$outboundSchema; + /** @deprecated use `DeleteApiDocumentResponse$Outbound` instead. */ + export type Outbound = DeleteApiDocumentResponse$Outbound; +} + +export function deleteApiDocumentResponseToJSON( + deleteApiDocumentResponse: DeleteApiDocumentResponse, +): string { + return JSON.stringify( + DeleteApiDocumentResponse$outboundSchema.parse(deleteApiDocumentResponse), + ); +} + +export function deleteApiDocumentResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => DeleteApiDocumentResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'DeleteApiDocumentResponse' from JSON`, + ); +} diff --git a/src/models/operations/deleteapidocumentversion.ts b/src/models/operations/deleteapidocumentversion.ts index 689a716..e7a67ad 100644 --- a/src/models/operations/deleteapidocumentversion.ts +++ b/src/models/operations/deleteapidocumentversion.ts @@ -3,8 +3,10 @@ */ import * as z from "zod"; +import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type DeleteApiDocumentVersionRequest = { @@ -13,6 +15,14 @@ export type DeleteApiDocumentVersionRequest = { semver: string; }; +export type DeleteApiDocumentVersionResponse = { + httpMeta: components.HTTPMetadata; + /** + * Default Response + */ + any?: any | null | undefined; +}; + /** @internal */ export const DeleteApiDocumentVersionRequest$inboundSchema: z.ZodType< DeleteApiDocumentVersionRequest, @@ -74,3 +84,70 @@ export function deleteApiDocumentVersionRequestFromJSON( `Failed to parse 'DeleteApiDocumentVersionRequest' from JSON`, ); } + +/** @internal */ +export const DeleteApiDocumentVersionResponse$inboundSchema: z.ZodType< + DeleteApiDocumentVersionResponse, + z.ZodTypeDef, + unknown +> = z.object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + any: z.nullable(z.any()).optional(), +}).transform((v) => { + return remap$(v, { + "HttpMeta": "httpMeta", + }); +}); + +/** @internal */ +export type DeleteApiDocumentVersionResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + any?: any | null | undefined; +}; + +/** @internal */ +export const DeleteApiDocumentVersionResponse$outboundSchema: z.ZodType< + DeleteApiDocumentVersionResponse$Outbound, + z.ZodTypeDef, + DeleteApiDocumentVersionResponse +> = z.object({ + httpMeta: components.HTTPMetadata$outboundSchema, + any: z.nullable(z.any()).optional(), +}).transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace DeleteApiDocumentVersionResponse$ { + /** @deprecated use `DeleteApiDocumentVersionResponse$inboundSchema` instead. */ + export const inboundSchema = DeleteApiDocumentVersionResponse$inboundSchema; + /** @deprecated use `DeleteApiDocumentVersionResponse$outboundSchema` instead. */ + export const outboundSchema = DeleteApiDocumentVersionResponse$outboundSchema; + /** @deprecated use `DeleteApiDocumentVersionResponse$Outbound` instead. */ + export type Outbound = DeleteApiDocumentVersionResponse$Outbound; +} + +export function deleteApiDocumentVersionResponseToJSON( + deleteApiDocumentVersionResponse: DeleteApiDocumentVersionResponse, +): string { + return JSON.stringify( + DeleteApiDocumentVersionResponse$outboundSchema.parse( + deleteApiDocumentVersionResponse, + ), + ); +} + +export function deleteApiDocumentVersionResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => DeleteApiDocumentVersionResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'DeleteApiDocumentVersionResponse' from JSON`, + ); +} diff --git a/src/models/operations/deleteloginportal.ts b/src/models/operations/deleteloginportal.ts index ecd6308..166c7e1 100644 --- a/src/models/operations/deleteloginportal.ts +++ b/src/models/operations/deleteloginportal.ts @@ -3,14 +3,24 @@ */ import * as z from "zod"; +import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type DeleteLoginPortalRequest = { slug: string; }; +export type DeleteLoginPortalResponse = { + httpMeta: components.HTTPMetadata; + /** + * Default Response + */ + any?: any | null | undefined; +}; + /** @internal */ export const DeleteLoginPortalRequest$inboundSchema: z.ZodType< DeleteLoginPortalRequest, @@ -64,3 +74,68 @@ export function deleteLoginPortalRequestFromJSON( `Failed to parse 'DeleteLoginPortalRequest' from JSON`, ); } + +/** @internal */ +export const DeleteLoginPortalResponse$inboundSchema: z.ZodType< + DeleteLoginPortalResponse, + z.ZodTypeDef, + unknown +> = z.object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + any: z.nullable(z.any()).optional(), +}).transform((v) => { + return remap$(v, { + "HttpMeta": "httpMeta", + }); +}); + +/** @internal */ +export type DeleteLoginPortalResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + any?: any | null | undefined; +}; + +/** @internal */ +export const DeleteLoginPortalResponse$outboundSchema: z.ZodType< + DeleteLoginPortalResponse$Outbound, + z.ZodTypeDef, + DeleteLoginPortalResponse +> = z.object({ + httpMeta: components.HTTPMetadata$outboundSchema, + any: z.nullable(z.any()).optional(), +}).transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace DeleteLoginPortalResponse$ { + /** @deprecated use `DeleteLoginPortalResponse$inboundSchema` instead. */ + export const inboundSchema = DeleteLoginPortalResponse$inboundSchema; + /** @deprecated use `DeleteLoginPortalResponse$outboundSchema` instead. */ + export const outboundSchema = DeleteLoginPortalResponse$outboundSchema; + /** @deprecated use `DeleteLoginPortalResponse$Outbound` instead. */ + export type Outbound = DeleteLoginPortalResponse$Outbound; +} + +export function deleteLoginPortalResponseToJSON( + deleteLoginPortalResponse: DeleteLoginPortalResponse, +): string { + return JSON.stringify( + DeleteLoginPortalResponse$outboundSchema.parse(deleteLoginPortalResponse), + ); +} + +export function deleteLoginPortalResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => DeleteLoginPortalResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'DeleteLoginPortalResponse' from JSON`, + ); +} diff --git a/src/models/operations/deleteruleset.ts b/src/models/operations/deleteruleset.ts index d86c6a5..d3551fe 100644 --- a/src/models/operations/deleteruleset.ts +++ b/src/models/operations/deleteruleset.ts @@ -3,8 +3,10 @@ */ import * as z from "zod"; +import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type DeleteRulesetRequest = { @@ -12,6 +14,14 @@ export type DeleteRulesetRequest = { slug: string; }; +export type DeleteRulesetResponse = { + httpMeta: components.HTTPMetadata; + /** + * Default Response + */ + any?: any | null | undefined; +}; + /** @internal */ export const DeleteRulesetRequest$inboundSchema: z.ZodType< DeleteRulesetRequest, @@ -68,3 +78,68 @@ export function deleteRulesetRequestFromJSON( `Failed to parse 'DeleteRulesetRequest' from JSON`, ); } + +/** @internal */ +export const DeleteRulesetResponse$inboundSchema: z.ZodType< + DeleteRulesetResponse, + z.ZodTypeDef, + unknown +> = z.object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + any: z.nullable(z.any()).optional(), +}).transform((v) => { + return remap$(v, { + "HttpMeta": "httpMeta", + }); +}); + +/** @internal */ +export type DeleteRulesetResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + any?: any | null | undefined; +}; + +/** @internal */ +export const DeleteRulesetResponse$outboundSchema: z.ZodType< + DeleteRulesetResponse$Outbound, + z.ZodTypeDef, + DeleteRulesetResponse +> = z.object({ + httpMeta: components.HTTPMetadata$outboundSchema, + any: z.nullable(z.any()).optional(), +}).transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace DeleteRulesetResponse$ { + /** @deprecated use `DeleteRulesetResponse$inboundSchema` instead. */ + export const inboundSchema = DeleteRulesetResponse$inboundSchema; + /** @deprecated use `DeleteRulesetResponse$outboundSchema` instead. */ + export const outboundSchema = DeleteRulesetResponse$outboundSchema; + /** @deprecated use `DeleteRulesetResponse$Outbound` instead. */ + export type Outbound = DeleteRulesetResponse$Outbound; +} + +export function deleteRulesetResponseToJSON( + deleteRulesetResponse: DeleteRulesetResponse, +): string { + return JSON.stringify( + DeleteRulesetResponse$outboundSchema.parse(deleteRulesetResponse), + ); +} + +export function deleteRulesetResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => DeleteRulesetResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'DeleteRulesetResponse' from JSON`, + ); +} diff --git a/src/models/operations/deleteschema.ts b/src/models/operations/deleteschema.ts index 33b5539..5bf4b1d 100644 --- a/src/models/operations/deleteschema.ts +++ b/src/models/operations/deleteschema.ts @@ -3,8 +3,10 @@ */ import * as z from "zod"; +import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type DeleteSchemaRequest = { @@ -12,6 +14,14 @@ export type DeleteSchemaRequest = { slug: string; }; +export type DeleteSchemaResponse = { + httpMeta: components.HTTPMetadata; + /** + * Default Response + */ + any?: any | null | undefined; +}; + /** @internal */ export const DeleteSchemaRequest$inboundSchema: z.ZodType< DeleteSchemaRequest, @@ -68,3 +78,68 @@ export function deleteSchemaRequestFromJSON( `Failed to parse 'DeleteSchemaRequest' from JSON`, ); } + +/** @internal */ +export const DeleteSchemaResponse$inboundSchema: z.ZodType< + DeleteSchemaResponse, + z.ZodTypeDef, + unknown +> = z.object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + any: z.nullable(z.any()).optional(), +}).transform((v) => { + return remap$(v, { + "HttpMeta": "httpMeta", + }); +}); + +/** @internal */ +export type DeleteSchemaResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + any?: any | null | undefined; +}; + +/** @internal */ +export const DeleteSchemaResponse$outboundSchema: z.ZodType< + DeleteSchemaResponse$Outbound, + z.ZodTypeDef, + DeleteSchemaResponse +> = z.object({ + httpMeta: components.HTTPMetadata$outboundSchema, + any: z.nullable(z.any()).optional(), +}).transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace DeleteSchemaResponse$ { + /** @deprecated use `DeleteSchemaResponse$inboundSchema` instead. */ + export const inboundSchema = DeleteSchemaResponse$inboundSchema; + /** @deprecated use `DeleteSchemaResponse$outboundSchema` instead. */ + export const outboundSchema = DeleteSchemaResponse$outboundSchema; + /** @deprecated use `DeleteSchemaResponse$Outbound` instead. */ + export type Outbound = DeleteSchemaResponse$Outbound; +} + +export function deleteSchemaResponseToJSON( + deleteSchemaResponse: DeleteSchemaResponse, +): string { + return JSON.stringify( + DeleteSchemaResponse$outboundSchema.parse(deleteSchemaResponse), + ); +} + +export function deleteSchemaResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => DeleteSchemaResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'DeleteSchemaResponse' from JSON`, + ); +} diff --git a/src/models/operations/deleteschemaversion.ts b/src/models/operations/deleteschemaversion.ts index 7639c50..3204d73 100644 --- a/src/models/operations/deleteschemaversion.ts +++ b/src/models/operations/deleteschemaversion.ts @@ -3,8 +3,10 @@ */ import * as z from "zod"; +import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type DeleteSchemaVersionRequest = { @@ -13,6 +15,14 @@ export type DeleteSchemaVersionRequest = { semver: string; }; +export type DeleteSchemaVersionResponse = { + httpMeta: components.HTTPMetadata; + /** + * Default Response + */ + any?: any | null | undefined; +}; + /** @internal */ export const DeleteSchemaVersionRequest$inboundSchema: z.ZodType< DeleteSchemaVersionRequest, @@ -72,3 +82,70 @@ export function deleteSchemaVersionRequestFromJSON( `Failed to parse 'DeleteSchemaVersionRequest' from JSON`, ); } + +/** @internal */ +export const DeleteSchemaVersionResponse$inboundSchema: z.ZodType< + DeleteSchemaVersionResponse, + z.ZodTypeDef, + unknown +> = z.object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + any: z.nullable(z.any()).optional(), +}).transform((v) => { + return remap$(v, { + "HttpMeta": "httpMeta", + }); +}); + +/** @internal */ +export type DeleteSchemaVersionResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + any?: any | null | undefined; +}; + +/** @internal */ +export const DeleteSchemaVersionResponse$outboundSchema: z.ZodType< + DeleteSchemaVersionResponse$Outbound, + z.ZodTypeDef, + DeleteSchemaVersionResponse +> = z.object({ + httpMeta: components.HTTPMetadata$outboundSchema, + any: z.nullable(z.any()).optional(), +}).transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace DeleteSchemaVersionResponse$ { + /** @deprecated use `DeleteSchemaVersionResponse$inboundSchema` instead. */ + export const inboundSchema = DeleteSchemaVersionResponse$inboundSchema; + /** @deprecated use `DeleteSchemaVersionResponse$outboundSchema` instead. */ + export const outboundSchema = DeleteSchemaVersionResponse$outboundSchema; + /** @deprecated use `DeleteSchemaVersionResponse$Outbound` instead. */ + export type Outbound = DeleteSchemaVersionResponse$Outbound; +} + +export function deleteSchemaVersionResponseToJSON( + deleteSchemaVersionResponse: DeleteSchemaVersionResponse, +): string { + return JSON.stringify( + DeleteSchemaVersionResponse$outboundSchema.parse( + deleteSchemaVersionResponse, + ), + ); +} + +export function deleteSchemaVersionResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => DeleteSchemaVersionResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'DeleteSchemaVersionResponse' from JSON`, + ); +} diff --git a/src/models/operations/deletetheme.ts b/src/models/operations/deletetheme.ts index a14563e..a0ba3a1 100644 --- a/src/models/operations/deletetheme.ts +++ b/src/models/operations/deletetheme.ts @@ -3,14 +3,24 @@ */ import * as z from "zod"; +import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type DeleteThemeRequest = { slug: string; }; +export type DeleteThemeResponse = { + httpMeta: components.HTTPMetadata; + /** + * Default Response + */ + any?: any | null | undefined; +}; + /** @internal */ export const DeleteThemeRequest$inboundSchema: z.ZodType< DeleteThemeRequest, @@ -64,3 +74,68 @@ export function deleteThemeRequestFromJSON( `Failed to parse 'DeleteThemeRequest' from JSON`, ); } + +/** @internal */ +export const DeleteThemeResponse$inboundSchema: z.ZodType< + DeleteThemeResponse, + z.ZodTypeDef, + unknown +> = z.object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + any: z.nullable(z.any()).optional(), +}).transform((v) => { + return remap$(v, { + "HttpMeta": "httpMeta", + }); +}); + +/** @internal */ +export type DeleteThemeResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + any?: any | null | undefined; +}; + +/** @internal */ +export const DeleteThemeResponse$outboundSchema: z.ZodType< + DeleteThemeResponse$Outbound, + z.ZodTypeDef, + DeleteThemeResponse +> = z.object({ + httpMeta: components.HTTPMetadata$outboundSchema, + any: z.nullable(z.any()).optional(), +}).transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace DeleteThemeResponse$ { + /** @deprecated use `DeleteThemeResponse$inboundSchema` instead. */ + export const inboundSchema = DeleteThemeResponse$inboundSchema; + /** @deprecated use `DeleteThemeResponse$outboundSchema` instead. */ + export const outboundSchema = DeleteThemeResponse$outboundSchema; + /** @deprecated use `DeleteThemeResponse$Outbound` instead. */ + export type Outbound = DeleteThemeResponse$Outbound; +} + +export function deleteThemeResponseToJSON( + deleteThemeResponse: DeleteThemeResponse, +): string { + return JSON.stringify( + DeleteThemeResponse$outboundSchema.parse(deleteThemeResponse), + ); +} + +export function deleteThemeResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => DeleteThemeResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'DeleteThemeResponse' from JSON`, + ); +} diff --git a/src/models/operations/exchangepersonaltoken.ts b/src/models/operations/exchangepersonaltoken.ts index 83b6ab9..ce978f8 100644 --- a/src/models/operations/exchangepersonaltoken.ts +++ b/src/models/operations/exchangepersonaltoken.ts @@ -3,8 +3,10 @@ */ import * as z from "zod"; +import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ExchangePersonalTokenRequestBody = { @@ -18,6 +20,14 @@ export type ExchangePersonalTokenResponseBody = { accessToken: string; }; +export type ExchangePersonalTokenResponse = { + httpMeta: components.HTTPMetadata; + /** + * Default Response + */ + object?: ExchangePersonalTokenResponseBody | undefined; +}; + /** @internal */ export const ExchangePersonalTokenRequestBody$inboundSchema: z.ZodType< ExchangePersonalTokenRequestBody, @@ -130,3 +140,72 @@ export function exchangePersonalTokenResponseBodyFromJSON( `Failed to parse 'ExchangePersonalTokenResponseBody' from JSON`, ); } + +/** @internal */ +export const ExchangePersonalTokenResponse$inboundSchema: z.ZodType< + ExchangePersonalTokenResponse, + z.ZodTypeDef, + unknown +> = z.object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => ExchangePersonalTokenResponseBody$inboundSchema) + .optional(), +}).transform((v) => { + return remap$(v, { + "HttpMeta": "httpMeta", + }); +}); + +/** @internal */ +export type ExchangePersonalTokenResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: ExchangePersonalTokenResponseBody$Outbound | undefined; +}; + +/** @internal */ +export const ExchangePersonalTokenResponse$outboundSchema: z.ZodType< + ExchangePersonalTokenResponse$Outbound, + z.ZodTypeDef, + ExchangePersonalTokenResponse +> = z.object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => ExchangePersonalTokenResponseBody$outboundSchema) + .optional(), +}).transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ExchangePersonalTokenResponse$ { + /** @deprecated use `ExchangePersonalTokenResponse$inboundSchema` instead. */ + export const inboundSchema = ExchangePersonalTokenResponse$inboundSchema; + /** @deprecated use `ExchangePersonalTokenResponse$outboundSchema` instead. */ + export const outboundSchema = ExchangePersonalTokenResponse$outboundSchema; + /** @deprecated use `ExchangePersonalTokenResponse$Outbound` instead. */ + export type Outbound = ExchangePersonalTokenResponse$Outbound; +} + +export function exchangePersonalTokenResponseToJSON( + exchangePersonalTokenResponse: ExchangePersonalTokenResponse, +): string { + return JSON.stringify( + ExchangePersonalTokenResponse$outboundSchema.parse( + exchangePersonalTokenResponse, + ), + ); +} + +export function exchangePersonalTokenResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ExchangePersonalTokenResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ExchangePersonalTokenResponse' from JSON`, + ); +} diff --git a/src/models/operations/getapidocumentversion.ts b/src/models/operations/getapidocumentversion.ts index e780d8d..05722ae 100644 --- a/src/models/operations/getapidocumentversion.ts +++ b/src/models/operations/getapidocumentversion.ts @@ -3,8 +3,10 @@ */ import * as z from "zod"; +import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type GetApiDocumentVersionRequest = { @@ -13,6 +15,14 @@ export type GetApiDocumentVersionRequest = { semver: string; }; +export type GetApiDocumentVersionResponse = { + httpMeta: components.HTTPMetadata; + /** + * Default Response + */ + res?: string | undefined; +}; + /** @internal */ export const GetApiDocumentVersionRequest$inboundSchema: z.ZodType< GetApiDocumentVersionRequest, @@ -74,3 +84,70 @@ export function getApiDocumentVersionRequestFromJSON( `Failed to parse 'GetApiDocumentVersionRequest' from JSON`, ); } + +/** @internal */ +export const GetApiDocumentVersionResponse$inboundSchema: z.ZodType< + GetApiDocumentVersionResponse, + z.ZodTypeDef, + unknown +> = z.object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + res: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "HttpMeta": "httpMeta", + }); +}); + +/** @internal */ +export type GetApiDocumentVersionResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + res?: string | undefined; +}; + +/** @internal */ +export const GetApiDocumentVersionResponse$outboundSchema: z.ZodType< + GetApiDocumentVersionResponse$Outbound, + z.ZodTypeDef, + GetApiDocumentVersionResponse +> = z.object({ + httpMeta: components.HTTPMetadata$outboundSchema, + res: z.string().optional(), +}).transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetApiDocumentVersionResponse$ { + /** @deprecated use `GetApiDocumentVersionResponse$inboundSchema` instead. */ + export const inboundSchema = GetApiDocumentVersionResponse$inboundSchema; + /** @deprecated use `GetApiDocumentVersionResponse$outboundSchema` instead. */ + export const outboundSchema = GetApiDocumentVersionResponse$outboundSchema; + /** @deprecated use `GetApiDocumentVersionResponse$Outbound` instead. */ + export type Outbound = GetApiDocumentVersionResponse$Outbound; +} + +export function getApiDocumentVersionResponseToJSON( + getApiDocumentVersionResponse: GetApiDocumentVersionResponse, +): string { + return JSON.stringify( + GetApiDocumentVersionResponse$outboundSchema.parse( + getApiDocumentVersionResponse, + ), + ); +} + +export function getApiDocumentVersionResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => GetApiDocumentVersionResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GetApiDocumentVersionResponse' from JSON`, + ); +} diff --git a/src/models/operations/getapidocumentversionmetadata.ts b/src/models/operations/getapidocumentversionmetadata.ts index 6e375bf..4807933 100644 --- a/src/models/operations/getapidocumentversionmetadata.ts +++ b/src/models/operations/getapidocumentversionmetadata.ts @@ -3,8 +3,10 @@ */ import * as z from "zod"; +import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type GetApiDocumentVersionMetadataRequest = { @@ -13,6 +15,14 @@ export type GetApiDocumentVersionMetadataRequest = { semver: string; }; +export type GetApiDocumentVersionMetadataResponse = { + httpMeta: components.HTTPMetadata; + /** + * Default Response + */ + managedDocVersion?: components.ManagedDocVersion | undefined; +}; + /** @internal */ export const GetApiDocumentVersionMetadataRequest$inboundSchema: z.ZodType< GetApiDocumentVersionMetadataRequest, @@ -77,3 +87,75 @@ export function getApiDocumentVersionMetadataRequestFromJSON( `Failed to parse 'GetApiDocumentVersionMetadataRequest' from JSON`, ); } + +/** @internal */ +export const GetApiDocumentVersionMetadataResponse$inboundSchema: z.ZodType< + GetApiDocumentVersionMetadataResponse, + z.ZodTypeDef, + unknown +> = z.object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + "managed-doc-version": components.ManagedDocVersion$inboundSchema.optional(), +}).transform((v) => { + return remap$(v, { + "HttpMeta": "httpMeta", + "managed-doc-version": "managedDocVersion", + }); +}); + +/** @internal */ +export type GetApiDocumentVersionMetadataResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + "managed-doc-version"?: components.ManagedDocVersion$Outbound | undefined; +}; + +/** @internal */ +export const GetApiDocumentVersionMetadataResponse$outboundSchema: z.ZodType< + GetApiDocumentVersionMetadataResponse$Outbound, + z.ZodTypeDef, + GetApiDocumentVersionMetadataResponse +> = z.object({ + httpMeta: components.HTTPMetadata$outboundSchema, + managedDocVersion: components.ManagedDocVersion$outboundSchema.optional(), +}).transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + managedDocVersion: "managed-doc-version", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetApiDocumentVersionMetadataResponse$ { + /** @deprecated use `GetApiDocumentVersionMetadataResponse$inboundSchema` instead. */ + export const inboundSchema = + GetApiDocumentVersionMetadataResponse$inboundSchema; + /** @deprecated use `GetApiDocumentVersionMetadataResponse$outboundSchema` instead. */ + export const outboundSchema = + GetApiDocumentVersionMetadataResponse$outboundSchema; + /** @deprecated use `GetApiDocumentVersionMetadataResponse$Outbound` instead. */ + export type Outbound = GetApiDocumentVersionMetadataResponse$Outbound; +} + +export function getApiDocumentVersionMetadataResponseToJSON( + getApiDocumentVersionMetadataResponse: GetApiDocumentVersionMetadataResponse, +): string { + return JSON.stringify( + GetApiDocumentVersionMetadataResponse$outboundSchema.parse( + getApiDocumentVersionMetadataResponse, + ), + ); +} + +export function getApiDocumentVersionMetadataResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + GetApiDocumentVersionMetadataResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GetApiDocumentVersionMetadataResponse' from JSON`, + ); +} diff --git a/src/models/operations/getcurrentuser.ts b/src/models/operations/getcurrentuser.ts new file mode 100644 index 0000000..3034c32 --- /dev/null +++ b/src/models/operations/getcurrentuser.ts @@ -0,0 +1,83 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; + +export type GetCurrentUserResponse = { + httpMeta: components.HTTPMetadata; + /** + * Default Response + */ + user?: components.User | undefined; +}; + +/** @internal */ +export const GetCurrentUserResponse$inboundSchema: z.ZodType< + GetCurrentUserResponse, + z.ZodTypeDef, + unknown +> = z.object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + user: components.User$inboundSchema.optional(), +}).transform((v) => { + return remap$(v, { + "HttpMeta": "httpMeta", + }); +}); + +/** @internal */ +export type GetCurrentUserResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + user?: components.User$Outbound | undefined; +}; + +/** @internal */ +export const GetCurrentUserResponse$outboundSchema: z.ZodType< + GetCurrentUserResponse$Outbound, + z.ZodTypeDef, + GetCurrentUserResponse +> = z.object({ + httpMeta: components.HTTPMetadata$outboundSchema, + user: components.User$outboundSchema.optional(), +}).transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetCurrentUserResponse$ { + /** @deprecated use `GetCurrentUserResponse$inboundSchema` instead. */ + export const inboundSchema = GetCurrentUserResponse$inboundSchema; + /** @deprecated use `GetCurrentUserResponse$outboundSchema` instead. */ + export const outboundSchema = GetCurrentUserResponse$outboundSchema; + /** @deprecated use `GetCurrentUserResponse$Outbound` instead. */ + export type Outbound = GetCurrentUserResponse$Outbound; +} + +export function getCurrentUserResponseToJSON( + getCurrentUserResponse: GetCurrentUserResponse, +): string { + return JSON.stringify( + GetCurrentUserResponse$outboundSchema.parse(getCurrentUserResponse), + ); +} + +export function getCurrentUserResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => GetCurrentUserResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GetCurrentUserResponse' from JSON`, + ); +} diff --git a/src/models/operations/getloginportal.ts b/src/models/operations/getloginportal.ts index d681d8e..bbc4fcf 100644 --- a/src/models/operations/getloginportal.ts +++ b/src/models/operations/getloginportal.ts @@ -3,6 +3,7 @@ */ import * as z from "zod"; +import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; @@ -23,6 +24,14 @@ export type GetLoginPortalResponseBody = { page: components.LoginPortalPage; }; +export type GetLoginPortalResponse = { + httpMeta: components.HTTPMetadata; + /** + * Default Response + */ + object?: GetLoginPortalResponseBody | undefined; +}; + /** @internal */ export const GetLoginPortalRequest$inboundSchema: z.ZodType< GetLoginPortalRequest, @@ -142,3 +151,68 @@ export function getLoginPortalResponseBodyFromJSON( `Failed to parse 'GetLoginPortalResponseBody' from JSON`, ); } + +/** @internal */ +export const GetLoginPortalResponse$inboundSchema: z.ZodType< + GetLoginPortalResponse, + z.ZodTypeDef, + unknown +> = z.object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => GetLoginPortalResponseBody$inboundSchema).optional(), +}).transform((v) => { + return remap$(v, { + "HttpMeta": "httpMeta", + }); +}); + +/** @internal */ +export type GetLoginPortalResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: GetLoginPortalResponseBody$Outbound | undefined; +}; + +/** @internal */ +export const GetLoginPortalResponse$outboundSchema: z.ZodType< + GetLoginPortalResponse$Outbound, + z.ZodTypeDef, + GetLoginPortalResponse +> = z.object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => GetLoginPortalResponseBody$outboundSchema).optional(), +}).transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetLoginPortalResponse$ { + /** @deprecated use `GetLoginPortalResponse$inboundSchema` instead. */ + export const inboundSchema = GetLoginPortalResponse$inboundSchema; + /** @deprecated use `GetLoginPortalResponse$outboundSchema` instead. */ + export const outboundSchema = GetLoginPortalResponse$outboundSchema; + /** @deprecated use `GetLoginPortalResponse$Outbound` instead. */ + export type Outbound = GetLoginPortalResponse$Outbound; +} + +export function getLoginPortalResponseToJSON( + getLoginPortalResponse: GetLoginPortalResponse, +): string { + return JSON.stringify( + GetLoginPortalResponse$outboundSchema.parse(getLoginPortalResponse), + ); +} + +export function getLoginPortalResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => GetLoginPortalResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GetLoginPortalResponse' from JSON`, + ); +} diff --git a/src/models/operations/getrulesetdocument.ts b/src/models/operations/getrulesetdocument.ts index c888f18..9aa6984 100644 --- a/src/models/operations/getrulesetdocument.ts +++ b/src/models/operations/getrulesetdocument.ts @@ -3,8 +3,10 @@ */ import * as z from "zod"; +import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type GetRulesetDocumentRequest = { @@ -12,6 +14,14 @@ export type GetRulesetDocumentRequest = { slug: string; }; +export type GetRulesetDocumentResponse = { + httpMeta: components.HTTPMetadata; + /** + * Default Response + */ + res?: string | undefined; +}; + /** @internal */ export const GetRulesetDocumentRequest$inboundSchema: z.ZodType< GetRulesetDocumentRequest, @@ -68,3 +78,68 @@ export function getRulesetDocumentRequestFromJSON( `Failed to parse 'GetRulesetDocumentRequest' from JSON`, ); } + +/** @internal */ +export const GetRulesetDocumentResponse$inboundSchema: z.ZodType< + GetRulesetDocumentResponse, + z.ZodTypeDef, + unknown +> = z.object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + res: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "HttpMeta": "httpMeta", + }); +}); + +/** @internal */ +export type GetRulesetDocumentResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + res?: string | undefined; +}; + +/** @internal */ +export const GetRulesetDocumentResponse$outboundSchema: z.ZodType< + GetRulesetDocumentResponse$Outbound, + z.ZodTypeDef, + GetRulesetDocumentResponse +> = z.object({ + httpMeta: components.HTTPMetadata$outboundSchema, + res: z.string().optional(), +}).transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetRulesetDocumentResponse$ { + /** @deprecated use `GetRulesetDocumentResponse$inboundSchema` instead. */ + export const inboundSchema = GetRulesetDocumentResponse$inboundSchema; + /** @deprecated use `GetRulesetDocumentResponse$outboundSchema` instead. */ + export const outboundSchema = GetRulesetDocumentResponse$outboundSchema; + /** @deprecated use `GetRulesetDocumentResponse$Outbound` instead. */ + export type Outbound = GetRulesetDocumentResponse$Outbound; +} + +export function getRulesetDocumentResponseToJSON( + getRulesetDocumentResponse: GetRulesetDocumentResponse, +): string { + return JSON.stringify( + GetRulesetDocumentResponse$outboundSchema.parse(getRulesetDocumentResponse), + ); +} + +export function getRulesetDocumentResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => GetRulesetDocumentResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GetRulesetDocumentResponse' from JSON`, + ); +} diff --git a/src/models/operations/getschemaversion.ts b/src/models/operations/getschemaversion.ts index 4984cc4..1cacc17 100644 --- a/src/models/operations/getschemaversion.ts +++ b/src/models/operations/getschemaversion.ts @@ -3,8 +3,10 @@ */ import * as z from "zod"; +import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type GetSchemaVersionRequest = { @@ -13,6 +15,14 @@ export type GetSchemaVersionRequest = { semver: string; }; +export type GetSchemaVersionResponse = { + httpMeta: components.HTTPMetadata; + /** + * Default Response + */ + res?: string | undefined; +}; + /** @internal */ export const GetSchemaVersionRequest$inboundSchema: z.ZodType< GetSchemaVersionRequest, @@ -72,3 +82,68 @@ export function getSchemaVersionRequestFromJSON( `Failed to parse 'GetSchemaVersionRequest' from JSON`, ); } + +/** @internal */ +export const GetSchemaVersionResponse$inboundSchema: z.ZodType< + GetSchemaVersionResponse, + z.ZodTypeDef, + unknown +> = z.object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + res: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "HttpMeta": "httpMeta", + }); +}); + +/** @internal */ +export type GetSchemaVersionResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + res?: string | undefined; +}; + +/** @internal */ +export const GetSchemaVersionResponse$outboundSchema: z.ZodType< + GetSchemaVersionResponse$Outbound, + z.ZodTypeDef, + GetSchemaVersionResponse +> = z.object({ + httpMeta: components.HTTPMetadata$outboundSchema, + res: z.string().optional(), +}).transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetSchemaVersionResponse$ { + /** @deprecated use `GetSchemaVersionResponse$inboundSchema` instead. */ + export const inboundSchema = GetSchemaVersionResponse$inboundSchema; + /** @deprecated use `GetSchemaVersionResponse$outboundSchema` instead. */ + export const outboundSchema = GetSchemaVersionResponse$outboundSchema; + /** @deprecated use `GetSchemaVersionResponse$Outbound` instead. */ + export type Outbound = GetSchemaVersionResponse$Outbound; +} + +export function getSchemaVersionResponseToJSON( + getSchemaVersionResponse: GetSchemaVersionResponse, +): string { + return JSON.stringify( + GetSchemaVersionResponse$outboundSchema.parse(getSchemaVersionResponse), + ); +} + +export function getSchemaVersionResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => GetSchemaVersionResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GetSchemaVersionResponse' from JSON`, + ); +} diff --git a/src/models/operations/gettheme.ts b/src/models/operations/gettheme.ts index c41849a..8a83f39 100644 --- a/src/models/operations/gettheme.ts +++ b/src/models/operations/gettheme.ts @@ -3,14 +3,24 @@ */ import * as z from "zod"; +import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type GetThemeRequest = { slug: string; }; +export type GetThemeResponse = { + httpMeta: components.HTTPMetadata; + /** + * Default Response + */ + res?: string | undefined; +}; + /** @internal */ export const GetThemeRequest$inboundSchema: z.ZodType< GetThemeRequest, @@ -62,3 +72,68 @@ export function getThemeRequestFromJSON( `Failed to parse 'GetThemeRequest' from JSON`, ); } + +/** @internal */ +export const GetThemeResponse$inboundSchema: z.ZodType< + GetThemeResponse, + z.ZodTypeDef, + unknown +> = z.object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + res: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "HttpMeta": "httpMeta", + }); +}); + +/** @internal */ +export type GetThemeResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + res?: string | undefined; +}; + +/** @internal */ +export const GetThemeResponse$outboundSchema: z.ZodType< + GetThemeResponse$Outbound, + z.ZodTypeDef, + GetThemeResponse +> = z.object({ + httpMeta: components.HTTPMetadata$outboundSchema, + res: z.string().optional(), +}).transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetThemeResponse$ { + /** @deprecated use `GetThemeResponse$inboundSchema` instead. */ + export const inboundSchema = GetThemeResponse$inboundSchema; + /** @deprecated use `GetThemeResponse$outboundSchema` instead. */ + export const outboundSchema = GetThemeResponse$outboundSchema; + /** @deprecated use `GetThemeResponse$Outbound` instead. */ + export type Outbound = GetThemeResponse$Outbound; +} + +export function getThemeResponseToJSON( + getThemeResponse: GetThemeResponse, +): string { + return JSON.stringify( + GetThemeResponse$outboundSchema.parse(getThemeResponse), + ); +} + +export function getThemeResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => GetThemeResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GetThemeResponse' from JSON`, + ); +} diff --git a/src/models/operations/index.ts b/src/models/operations/index.ts index 4185708..4e038ff 100644 --- a/src/models/operations/index.ts +++ b/src/models/operations/index.ts @@ -23,13 +23,20 @@ export * from "./deletetheme.js"; export * from "./exchangepersonaltoken.js"; export * from "./getapidocumentversion.js"; export * from "./getapidocumentversionmetadata.js"; +export * from "./getcurrentuser.js"; export * from "./getloginportal.js"; export * from "./getrulesetdocument.js"; export * from "./getschemaversion.js"; export * from "./gettheme.js"; +export * from "./listallapidocuments.js"; export * from "./listapidocuments.js"; +export * from "./listguides.js"; +export * from "./listloginportals.js"; +export * from "./listnamespaces.js"; export * from "./listrulesets.js"; export * from "./listschemas.js"; +export * from "./listteams.js"; +export * from "./listthemes.js"; export * from "./publishguide.js"; export * from "./removeapidocumentaccessgroup.js"; export * from "./removerulesetaccessgroup.js"; diff --git a/src/models/operations/listallapidocuments.ts b/src/models/operations/listallapidocuments.ts new file mode 100644 index 0000000..c0a2cc7 --- /dev/null +++ b/src/models/operations/listallapidocuments.ts @@ -0,0 +1,87 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; + +export type ListAllApiDocumentsResponse = { + httpMeta: components.HTTPMetadata; + /** + * Default Response + */ + apiDocuments?: Array | undefined; +}; + +/** @internal */ +export const ListAllApiDocumentsResponse$inboundSchema: z.ZodType< + ListAllApiDocumentsResponse, + z.ZodTypeDef, + unknown +> = z.object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + "api-documents": z.array(components.ApiDocument$inboundSchema).optional(), +}).transform((v) => { + return remap$(v, { + "HttpMeta": "httpMeta", + "api-documents": "apiDocuments", + }); +}); + +/** @internal */ +export type ListAllApiDocumentsResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + "api-documents"?: Array | undefined; +}; + +/** @internal */ +export const ListAllApiDocumentsResponse$outboundSchema: z.ZodType< + ListAllApiDocumentsResponse$Outbound, + z.ZodTypeDef, + ListAllApiDocumentsResponse +> = z.object({ + httpMeta: components.HTTPMetadata$outboundSchema, + apiDocuments: z.array(components.ApiDocument$outboundSchema).optional(), +}).transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + apiDocuments: "api-documents", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListAllApiDocumentsResponse$ { + /** @deprecated use `ListAllApiDocumentsResponse$inboundSchema` instead. */ + export const inboundSchema = ListAllApiDocumentsResponse$inboundSchema; + /** @deprecated use `ListAllApiDocumentsResponse$outboundSchema` instead. */ + export const outboundSchema = ListAllApiDocumentsResponse$outboundSchema; + /** @deprecated use `ListAllApiDocumentsResponse$Outbound` instead. */ + export type Outbound = ListAllApiDocumentsResponse$Outbound; +} + +export function listAllApiDocumentsResponseToJSON( + listAllApiDocumentsResponse: ListAllApiDocumentsResponse, +): string { + return JSON.stringify( + ListAllApiDocumentsResponse$outboundSchema.parse( + listAllApiDocumentsResponse, + ), + ); +} + +export function listAllApiDocumentsResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListAllApiDocumentsResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListAllApiDocumentsResponse' from JSON`, + ); +} diff --git a/src/models/operations/listapidocuments.ts b/src/models/operations/listapidocuments.ts index f8acd7b..70bea5d 100644 --- a/src/models/operations/listapidocuments.ts +++ b/src/models/operations/listapidocuments.ts @@ -3,14 +3,24 @@ */ import * as z from "zod"; +import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ListApiDocumentsRequest = { namespace: string; }; +export type ListApiDocumentsResponse = { + httpMeta: components.HTTPMetadata; + /** + * Default Response + */ + apiDocuments?: Array | undefined; +}; + /** @internal */ export const ListApiDocumentsRequest$inboundSchema: z.ZodType< ListApiDocumentsRequest, @@ -64,3 +74,70 @@ export function listApiDocumentsRequestFromJSON( `Failed to parse 'ListApiDocumentsRequest' from JSON`, ); } + +/** @internal */ +export const ListApiDocumentsResponse$inboundSchema: z.ZodType< + ListApiDocumentsResponse, + z.ZodTypeDef, + unknown +> = z.object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + "api-documents": z.array(components.ApiDocument$inboundSchema).optional(), +}).transform((v) => { + return remap$(v, { + "HttpMeta": "httpMeta", + "api-documents": "apiDocuments", + }); +}); + +/** @internal */ +export type ListApiDocumentsResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + "api-documents"?: Array | undefined; +}; + +/** @internal */ +export const ListApiDocumentsResponse$outboundSchema: z.ZodType< + ListApiDocumentsResponse$Outbound, + z.ZodTypeDef, + ListApiDocumentsResponse +> = z.object({ + httpMeta: components.HTTPMetadata$outboundSchema, + apiDocuments: z.array(components.ApiDocument$outboundSchema).optional(), +}).transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + apiDocuments: "api-documents", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListApiDocumentsResponse$ { + /** @deprecated use `ListApiDocumentsResponse$inboundSchema` instead. */ + export const inboundSchema = ListApiDocumentsResponse$inboundSchema; + /** @deprecated use `ListApiDocumentsResponse$outboundSchema` instead. */ + export const outboundSchema = ListApiDocumentsResponse$outboundSchema; + /** @deprecated use `ListApiDocumentsResponse$Outbound` instead. */ + export type Outbound = ListApiDocumentsResponse$Outbound; +} + +export function listApiDocumentsResponseToJSON( + listApiDocumentsResponse: ListApiDocumentsResponse, +): string { + return JSON.stringify( + ListApiDocumentsResponse$outboundSchema.parse(listApiDocumentsResponse), + ); +} + +export function listApiDocumentsResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListApiDocumentsResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListApiDocumentsResponse' from JSON`, + ); +} diff --git a/src/models/operations/listguides.ts b/src/models/operations/listguides.ts new file mode 100644 index 0000000..a09fcb8 --- /dev/null +++ b/src/models/operations/listguides.ts @@ -0,0 +1,85 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; + +export type ListGuidesResponse = { + httpMeta: components.HTTPMetadata; + /** + * Default Response + */ + githubProjects?: Array | undefined; +}; + +/** @internal */ +export const ListGuidesResponse$inboundSchema: z.ZodType< + ListGuidesResponse, + z.ZodTypeDef, + unknown +> = z.object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + "github-projects": z.array(components.GithubProject$inboundSchema).optional(), +}).transform((v) => { + return remap$(v, { + "HttpMeta": "httpMeta", + "github-projects": "githubProjects", + }); +}); + +/** @internal */ +export type ListGuidesResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + "github-projects"?: Array | undefined; +}; + +/** @internal */ +export const ListGuidesResponse$outboundSchema: z.ZodType< + ListGuidesResponse$Outbound, + z.ZodTypeDef, + ListGuidesResponse +> = z.object({ + httpMeta: components.HTTPMetadata$outboundSchema, + githubProjects: z.array(components.GithubProject$outboundSchema).optional(), +}).transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + githubProjects: "github-projects", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListGuidesResponse$ { + /** @deprecated use `ListGuidesResponse$inboundSchema` instead. */ + export const inboundSchema = ListGuidesResponse$inboundSchema; + /** @deprecated use `ListGuidesResponse$outboundSchema` instead. */ + export const outboundSchema = ListGuidesResponse$outboundSchema; + /** @deprecated use `ListGuidesResponse$Outbound` instead. */ + export type Outbound = ListGuidesResponse$Outbound; +} + +export function listGuidesResponseToJSON( + listGuidesResponse: ListGuidesResponse, +): string { + return JSON.stringify( + ListGuidesResponse$outboundSchema.parse(listGuidesResponse), + ); +} + +export function listGuidesResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListGuidesResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListGuidesResponse' from JSON`, + ); +} diff --git a/src/models/operations/listloginportals.ts b/src/models/operations/listloginportals.ts new file mode 100644 index 0000000..e3ad38c --- /dev/null +++ b/src/models/operations/listloginportals.ts @@ -0,0 +1,85 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; + +export type ListLoginPortalsResponse = { + httpMeta: components.HTTPMetadata; + /** + * Default Response + */ + loginPortals?: Array | undefined; +}; + +/** @internal */ +export const ListLoginPortalsResponse$inboundSchema: z.ZodType< + ListLoginPortalsResponse, + z.ZodTypeDef, + unknown +> = z.object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + "login-portals": z.array(components.LoginPortal$inboundSchema).optional(), +}).transform((v) => { + return remap$(v, { + "HttpMeta": "httpMeta", + "login-portals": "loginPortals", + }); +}); + +/** @internal */ +export type ListLoginPortalsResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + "login-portals"?: Array | undefined; +}; + +/** @internal */ +export const ListLoginPortalsResponse$outboundSchema: z.ZodType< + ListLoginPortalsResponse$Outbound, + z.ZodTypeDef, + ListLoginPortalsResponse +> = z.object({ + httpMeta: components.HTTPMetadata$outboundSchema, + loginPortals: z.array(components.LoginPortal$outboundSchema).optional(), +}).transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + loginPortals: "login-portals", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListLoginPortalsResponse$ { + /** @deprecated use `ListLoginPortalsResponse$inboundSchema` instead. */ + export const inboundSchema = ListLoginPortalsResponse$inboundSchema; + /** @deprecated use `ListLoginPortalsResponse$outboundSchema` instead. */ + export const outboundSchema = ListLoginPortalsResponse$outboundSchema; + /** @deprecated use `ListLoginPortalsResponse$Outbound` instead. */ + export type Outbound = ListLoginPortalsResponse$Outbound; +} + +export function listLoginPortalsResponseToJSON( + listLoginPortalsResponse: ListLoginPortalsResponse, +): string { + return JSON.stringify( + ListLoginPortalsResponse$outboundSchema.parse(listLoginPortalsResponse), + ); +} + +export function listLoginPortalsResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListLoginPortalsResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListLoginPortalsResponse' from JSON`, + ); +} diff --git a/src/models/operations/listnamespaces.ts b/src/models/operations/listnamespaces.ts new file mode 100644 index 0000000..8ec7a5c --- /dev/null +++ b/src/models/operations/listnamespaces.ts @@ -0,0 +1,83 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; + +export type ListNamespacesResponse = { + httpMeta: components.HTTPMetadata; + /** + * Default Response + */ + strings?: Array | undefined; +}; + +/** @internal */ +export const ListNamespacesResponse$inboundSchema: z.ZodType< + ListNamespacesResponse, + z.ZodTypeDef, + unknown +> = z.object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + strings: z.array(z.string()).optional(), +}).transform((v) => { + return remap$(v, { + "HttpMeta": "httpMeta", + }); +}); + +/** @internal */ +export type ListNamespacesResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + strings?: Array | undefined; +}; + +/** @internal */ +export const ListNamespacesResponse$outboundSchema: z.ZodType< + ListNamespacesResponse$Outbound, + z.ZodTypeDef, + ListNamespacesResponse +> = z.object({ + httpMeta: components.HTTPMetadata$outboundSchema, + strings: z.array(z.string()).optional(), +}).transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListNamespacesResponse$ { + /** @deprecated use `ListNamespacesResponse$inboundSchema` instead. */ + export const inboundSchema = ListNamespacesResponse$inboundSchema; + /** @deprecated use `ListNamespacesResponse$outboundSchema` instead. */ + export const outboundSchema = ListNamespacesResponse$outboundSchema; + /** @deprecated use `ListNamespacesResponse$Outbound` instead. */ + export type Outbound = ListNamespacesResponse$Outbound; +} + +export function listNamespacesResponseToJSON( + listNamespacesResponse: ListNamespacesResponse, +): string { + return JSON.stringify( + ListNamespacesResponse$outboundSchema.parse(listNamespacesResponse), + ); +} + +export function listNamespacesResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListNamespacesResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListNamespacesResponse' from JSON`, + ); +} diff --git a/src/models/operations/listrulesets.ts b/src/models/operations/listrulesets.ts index 174d71f..a3e6709 100644 --- a/src/models/operations/listrulesets.ts +++ b/src/models/operations/listrulesets.ts @@ -3,14 +3,24 @@ */ import * as z from "zod"; +import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ListRulesetsRequest = { namespace: string; }; +export type ListRulesetsResponse = { + httpMeta: components.HTTPMetadata; + /** + * Default Response + */ + rules?: Array | undefined; +}; + /** @internal */ export const ListRulesetsRequest$inboundSchema: z.ZodType< ListRulesetsRequest, @@ -64,3 +74,68 @@ export function listRulesetsRequestFromJSON( `Failed to parse 'ListRulesetsRequest' from JSON`, ); } + +/** @internal */ +export const ListRulesetsResponse$inboundSchema: z.ZodType< + ListRulesetsResponse, + z.ZodTypeDef, + unknown +> = z.object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + rules: z.array(components.Rule$inboundSchema).optional(), +}).transform((v) => { + return remap$(v, { + "HttpMeta": "httpMeta", + }); +}); + +/** @internal */ +export type ListRulesetsResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + rules?: Array | undefined; +}; + +/** @internal */ +export const ListRulesetsResponse$outboundSchema: z.ZodType< + ListRulesetsResponse$Outbound, + z.ZodTypeDef, + ListRulesetsResponse +> = z.object({ + httpMeta: components.HTTPMetadata$outboundSchema, + rules: z.array(components.Rule$outboundSchema).optional(), +}).transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListRulesetsResponse$ { + /** @deprecated use `ListRulesetsResponse$inboundSchema` instead. */ + export const inboundSchema = ListRulesetsResponse$inboundSchema; + /** @deprecated use `ListRulesetsResponse$outboundSchema` instead. */ + export const outboundSchema = ListRulesetsResponse$outboundSchema; + /** @deprecated use `ListRulesetsResponse$Outbound` instead. */ + export type Outbound = ListRulesetsResponse$Outbound; +} + +export function listRulesetsResponseToJSON( + listRulesetsResponse: ListRulesetsResponse, +): string { + return JSON.stringify( + ListRulesetsResponse$outboundSchema.parse(listRulesetsResponse), + ); +} + +export function listRulesetsResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListRulesetsResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListRulesetsResponse' from JSON`, + ); +} diff --git a/src/models/operations/listschemas.ts b/src/models/operations/listschemas.ts index ac0fb15..c0346c4 100644 --- a/src/models/operations/listschemas.ts +++ b/src/models/operations/listschemas.ts @@ -3,14 +3,24 @@ */ import * as z from "zod"; +import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ListSchemasRequest = { namespace: string; }; +export type ListSchemasResponse = { + httpMeta: components.HTTPMetadata; + /** + * Default Response + */ + schemata?: Array | undefined; +}; + /** @internal */ export const ListSchemasRequest$inboundSchema: z.ZodType< ListSchemasRequest, @@ -64,3 +74,68 @@ export function listSchemasRequestFromJSON( `Failed to parse 'ListSchemasRequest' from JSON`, ); } + +/** @internal */ +export const ListSchemasResponse$inboundSchema: z.ZodType< + ListSchemasResponse, + z.ZodTypeDef, + unknown +> = z.object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + schemata: z.array(components.Schema$inboundSchema).optional(), +}).transform((v) => { + return remap$(v, { + "HttpMeta": "httpMeta", + }); +}); + +/** @internal */ +export type ListSchemasResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + schemata?: Array | undefined; +}; + +/** @internal */ +export const ListSchemasResponse$outboundSchema: z.ZodType< + ListSchemasResponse$Outbound, + z.ZodTypeDef, + ListSchemasResponse +> = z.object({ + httpMeta: components.HTTPMetadata$outboundSchema, + schemata: z.array(components.Schema$outboundSchema).optional(), +}).transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListSchemasResponse$ { + /** @deprecated use `ListSchemasResponse$inboundSchema` instead. */ + export const inboundSchema = ListSchemasResponse$inboundSchema; + /** @deprecated use `ListSchemasResponse$outboundSchema` instead. */ + export const outboundSchema = ListSchemasResponse$outboundSchema; + /** @deprecated use `ListSchemasResponse$Outbound` instead. */ + export type Outbound = ListSchemasResponse$Outbound; +} + +export function listSchemasResponseToJSON( + listSchemasResponse: ListSchemasResponse, +): string { + return JSON.stringify( + ListSchemasResponse$outboundSchema.parse(listSchemasResponse), + ); +} + +export function listSchemasResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListSchemasResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListSchemasResponse' from JSON`, + ); +} diff --git a/src/models/operations/listteams.ts b/src/models/operations/listteams.ts new file mode 100644 index 0000000..9ab86ce --- /dev/null +++ b/src/models/operations/listteams.ts @@ -0,0 +1,83 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; + +export type ListTeamsResponse = { + httpMeta: components.HTTPMetadata; + /** + * Default Response + */ + teams?: Array | undefined; +}; + +/** @internal */ +export const ListTeamsResponse$inboundSchema: z.ZodType< + ListTeamsResponse, + z.ZodTypeDef, + unknown +> = z.object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + teams: z.array(components.Team$inboundSchema).optional(), +}).transform((v) => { + return remap$(v, { + "HttpMeta": "httpMeta", + }); +}); + +/** @internal */ +export type ListTeamsResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + teams?: Array | undefined; +}; + +/** @internal */ +export const ListTeamsResponse$outboundSchema: z.ZodType< + ListTeamsResponse$Outbound, + z.ZodTypeDef, + ListTeamsResponse +> = z.object({ + httpMeta: components.HTTPMetadata$outboundSchema, + teams: z.array(components.Team$outboundSchema).optional(), +}).transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListTeamsResponse$ { + /** @deprecated use `ListTeamsResponse$inboundSchema` instead. */ + export const inboundSchema = ListTeamsResponse$inboundSchema; + /** @deprecated use `ListTeamsResponse$outboundSchema` instead. */ + export const outboundSchema = ListTeamsResponse$outboundSchema; + /** @deprecated use `ListTeamsResponse$Outbound` instead. */ + export type Outbound = ListTeamsResponse$Outbound; +} + +export function listTeamsResponseToJSON( + listTeamsResponse: ListTeamsResponse, +): string { + return JSON.stringify( + ListTeamsResponse$outboundSchema.parse(listTeamsResponse), + ); +} + +export function listTeamsResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListTeamsResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListTeamsResponse' from JSON`, + ); +} diff --git a/src/models/operations/listthemes.ts b/src/models/operations/listthemes.ts new file mode 100644 index 0000000..88497bb --- /dev/null +++ b/src/models/operations/listthemes.ts @@ -0,0 +1,83 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; + +export type ListThemesResponse = { + httpMeta: components.HTTPMetadata; + /** + * Default Response + */ + themes?: Array | undefined; +}; + +/** @internal */ +export const ListThemesResponse$inboundSchema: z.ZodType< + ListThemesResponse, + z.ZodTypeDef, + unknown +> = z.object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + themes: z.array(components.Theme$inboundSchema).optional(), +}).transform((v) => { + return remap$(v, { + "HttpMeta": "httpMeta", + }); +}); + +/** @internal */ +export type ListThemesResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + themes?: Array | undefined; +}; + +/** @internal */ +export const ListThemesResponse$outboundSchema: z.ZodType< + ListThemesResponse$Outbound, + z.ZodTypeDef, + ListThemesResponse +> = z.object({ + httpMeta: components.HTTPMetadata$outboundSchema, + themes: z.array(components.Theme$outboundSchema).optional(), +}).transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ListThemesResponse$ { + /** @deprecated use `ListThemesResponse$inboundSchema` instead. */ + export const inboundSchema = ListThemesResponse$inboundSchema; + /** @deprecated use `ListThemesResponse$outboundSchema` instead. */ + export const outboundSchema = ListThemesResponse$outboundSchema; + /** @deprecated use `ListThemesResponse$Outbound` instead. */ + export type Outbound = ListThemesResponse$Outbound; +} + +export function listThemesResponseToJSON( + listThemesResponse: ListThemesResponse, +): string { + return JSON.stringify( + ListThemesResponse$outboundSchema.parse(listThemesResponse), + ); +} + +export function listThemesResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListThemesResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListThemesResponse' from JSON`, + ); +} diff --git a/src/models/operations/publishguide.ts b/src/models/operations/publishguide.ts index 70263d8..c2e3405 100644 --- a/src/models/operations/publishguide.ts +++ b/src/models/operations/publishguide.ts @@ -3,8 +3,10 @@ */ import * as z from "zod"; +import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type PublishGuideRequest = { @@ -18,6 +20,14 @@ export type PublishGuideResponseBody = { publishUid: string; }; +export type PublishGuideResponse = { + httpMeta: components.HTTPMetadata; + /** + * Default Response + */ + object?: PublishGuideResponseBody | undefined; +}; + /** @internal */ export const PublishGuideRequest$inboundSchema: z.ZodType< PublishGuideRequest, @@ -125,3 +135,68 @@ export function publishGuideResponseBodyFromJSON( `Failed to parse 'PublishGuideResponseBody' from JSON`, ); } + +/** @internal */ +export const PublishGuideResponse$inboundSchema: z.ZodType< + PublishGuideResponse, + z.ZodTypeDef, + unknown +> = z.object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => PublishGuideResponseBody$inboundSchema).optional(), +}).transform((v) => { + return remap$(v, { + "HttpMeta": "httpMeta", + }); +}); + +/** @internal */ +export type PublishGuideResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: PublishGuideResponseBody$Outbound | undefined; +}; + +/** @internal */ +export const PublishGuideResponse$outboundSchema: z.ZodType< + PublishGuideResponse$Outbound, + z.ZodTypeDef, + PublishGuideResponse +> = z.object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => PublishGuideResponseBody$outboundSchema).optional(), +}).transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace PublishGuideResponse$ { + /** @deprecated use `PublishGuideResponse$inboundSchema` instead. */ + export const inboundSchema = PublishGuideResponse$inboundSchema; + /** @deprecated use `PublishGuideResponse$outboundSchema` instead. */ + export const outboundSchema = PublishGuideResponse$outboundSchema; + /** @deprecated use `PublishGuideResponse$Outbound` instead. */ + export type Outbound = PublishGuideResponse$Outbound; +} + +export function publishGuideResponseToJSON( + publishGuideResponse: PublishGuideResponse, +): string { + return JSON.stringify( + PublishGuideResponse$outboundSchema.parse(publishGuideResponse), + ); +} + +export function publishGuideResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => PublishGuideResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'PublishGuideResponse' from JSON`, + ); +} diff --git a/src/models/operations/removeapidocumentaccessgroup.ts b/src/models/operations/removeapidocumentaccessgroup.ts index ecc416c..b68f044 100644 --- a/src/models/operations/removeapidocumentaccessgroup.ts +++ b/src/models/operations/removeapidocumentaccessgroup.ts @@ -15,6 +15,14 @@ export type RemoveApiDocumentAccessGroupRequest = { accessGroup: components.AccessGroup; }; +export type RemoveApiDocumentAccessGroupResponse = { + httpMeta: components.HTTPMetadata; + /** + * Default Response + */ + any?: any | null | undefined; +}; + /** @internal */ export const RemoveApiDocumentAccessGroupRequest$inboundSchema: z.ZodType< RemoveApiDocumentAccessGroupRequest, @@ -87,3 +95,73 @@ export function removeApiDocumentAccessGroupRequestFromJSON( `Failed to parse 'RemoveApiDocumentAccessGroupRequest' from JSON`, ); } + +/** @internal */ +export const RemoveApiDocumentAccessGroupResponse$inboundSchema: z.ZodType< + RemoveApiDocumentAccessGroupResponse, + z.ZodTypeDef, + unknown +> = z.object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + any: z.nullable(z.any()).optional(), +}).transform((v) => { + return remap$(v, { + "HttpMeta": "httpMeta", + }); +}); + +/** @internal */ +export type RemoveApiDocumentAccessGroupResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + any?: any | null | undefined; +}; + +/** @internal */ +export const RemoveApiDocumentAccessGroupResponse$outboundSchema: z.ZodType< + RemoveApiDocumentAccessGroupResponse$Outbound, + z.ZodTypeDef, + RemoveApiDocumentAccessGroupResponse +> = z.object({ + httpMeta: components.HTTPMetadata$outboundSchema, + any: z.nullable(z.any()).optional(), +}).transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RemoveApiDocumentAccessGroupResponse$ { + /** @deprecated use `RemoveApiDocumentAccessGroupResponse$inboundSchema` instead. */ + export const inboundSchema = + RemoveApiDocumentAccessGroupResponse$inboundSchema; + /** @deprecated use `RemoveApiDocumentAccessGroupResponse$outboundSchema` instead. */ + export const outboundSchema = + RemoveApiDocumentAccessGroupResponse$outboundSchema; + /** @deprecated use `RemoveApiDocumentAccessGroupResponse$Outbound` instead. */ + export type Outbound = RemoveApiDocumentAccessGroupResponse$Outbound; +} + +export function removeApiDocumentAccessGroupResponseToJSON( + removeApiDocumentAccessGroupResponse: RemoveApiDocumentAccessGroupResponse, +): string { + return JSON.stringify( + RemoveApiDocumentAccessGroupResponse$outboundSchema.parse( + removeApiDocumentAccessGroupResponse, + ), + ); +} + +export function removeApiDocumentAccessGroupResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + RemoveApiDocumentAccessGroupResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'RemoveApiDocumentAccessGroupResponse' from JSON`, + ); +} diff --git a/src/models/operations/removerulesetaccessgroup.ts b/src/models/operations/removerulesetaccessgroup.ts index 6dadc87..85a22c5 100644 --- a/src/models/operations/removerulesetaccessgroup.ts +++ b/src/models/operations/removerulesetaccessgroup.ts @@ -15,6 +15,14 @@ export type RemoveRulesetAccessGroupRequest = { accessGroup: components.AccessGroup; }; +export type RemoveRulesetAccessGroupResponse = { + httpMeta: components.HTTPMetadata; + /** + * Default Response + */ + any?: any | null | undefined; +}; + /** @internal */ export const RemoveRulesetAccessGroupRequest$inboundSchema: z.ZodType< RemoveRulesetAccessGroupRequest, @@ -84,3 +92,70 @@ export function removeRulesetAccessGroupRequestFromJSON( `Failed to parse 'RemoveRulesetAccessGroupRequest' from JSON`, ); } + +/** @internal */ +export const RemoveRulesetAccessGroupResponse$inboundSchema: z.ZodType< + RemoveRulesetAccessGroupResponse, + z.ZodTypeDef, + unknown +> = z.object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + any: z.nullable(z.any()).optional(), +}).transform((v) => { + return remap$(v, { + "HttpMeta": "httpMeta", + }); +}); + +/** @internal */ +export type RemoveRulesetAccessGroupResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + any?: any | null | undefined; +}; + +/** @internal */ +export const RemoveRulesetAccessGroupResponse$outboundSchema: z.ZodType< + RemoveRulesetAccessGroupResponse$Outbound, + z.ZodTypeDef, + RemoveRulesetAccessGroupResponse +> = z.object({ + httpMeta: components.HTTPMetadata$outboundSchema, + any: z.nullable(z.any()).optional(), +}).transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RemoveRulesetAccessGroupResponse$ { + /** @deprecated use `RemoveRulesetAccessGroupResponse$inboundSchema` instead. */ + export const inboundSchema = RemoveRulesetAccessGroupResponse$inboundSchema; + /** @deprecated use `RemoveRulesetAccessGroupResponse$outboundSchema` instead. */ + export const outboundSchema = RemoveRulesetAccessGroupResponse$outboundSchema; + /** @deprecated use `RemoveRulesetAccessGroupResponse$Outbound` instead. */ + export type Outbound = RemoveRulesetAccessGroupResponse$Outbound; +} + +export function removeRulesetAccessGroupResponseToJSON( + removeRulesetAccessGroupResponse: RemoveRulesetAccessGroupResponse, +): string { + return JSON.stringify( + RemoveRulesetAccessGroupResponse$outboundSchema.parse( + removeRulesetAccessGroupResponse, + ), + ); +} + +export function removeRulesetAccessGroupResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => RemoveRulesetAccessGroupResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'RemoveRulesetAccessGroupResponse' from JSON`, + ); +} diff --git a/src/models/operations/removeschemaaccessgroup.ts b/src/models/operations/removeschemaaccessgroup.ts index 2c85239..8f82bc3 100644 --- a/src/models/operations/removeschemaaccessgroup.ts +++ b/src/models/operations/removeschemaaccessgroup.ts @@ -15,6 +15,14 @@ export type RemoveSchemaAccessGroupRequest = { accessGroup: components.AccessGroup; }; +export type RemoveSchemaAccessGroupResponse = { + httpMeta: components.HTTPMetadata; + /** + * Default Response + */ + any?: any | null | undefined; +}; + /** @internal */ export const RemoveSchemaAccessGroupRequest$inboundSchema: z.ZodType< RemoveSchemaAccessGroupRequest, @@ -84,3 +92,70 @@ export function removeSchemaAccessGroupRequestFromJSON( `Failed to parse 'RemoveSchemaAccessGroupRequest' from JSON`, ); } + +/** @internal */ +export const RemoveSchemaAccessGroupResponse$inboundSchema: z.ZodType< + RemoveSchemaAccessGroupResponse, + z.ZodTypeDef, + unknown +> = z.object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + any: z.nullable(z.any()).optional(), +}).transform((v) => { + return remap$(v, { + "HttpMeta": "httpMeta", + }); +}); + +/** @internal */ +export type RemoveSchemaAccessGroupResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + any?: any | null | undefined; +}; + +/** @internal */ +export const RemoveSchemaAccessGroupResponse$outboundSchema: z.ZodType< + RemoveSchemaAccessGroupResponse$Outbound, + z.ZodTypeDef, + RemoveSchemaAccessGroupResponse +> = z.object({ + httpMeta: components.HTTPMetadata$outboundSchema, + any: z.nullable(z.any()).optional(), +}).transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RemoveSchemaAccessGroupResponse$ { + /** @deprecated use `RemoveSchemaAccessGroupResponse$inboundSchema` instead. */ + export const inboundSchema = RemoveSchemaAccessGroupResponse$inboundSchema; + /** @deprecated use `RemoveSchemaAccessGroupResponse$outboundSchema` instead. */ + export const outboundSchema = RemoveSchemaAccessGroupResponse$outboundSchema; + /** @deprecated use `RemoveSchemaAccessGroupResponse$Outbound` instead. */ + export type Outbound = RemoveSchemaAccessGroupResponse$Outbound; +} + +export function removeSchemaAccessGroupResponseToJSON( + removeSchemaAccessGroupResponse: RemoveSchemaAccessGroupResponse, +): string { + return JSON.stringify( + RemoveSchemaAccessGroupResponse$outboundSchema.parse( + removeSchemaAccessGroupResponse, + ), + ); +} + +export function removeSchemaAccessGroupResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => RemoveSchemaAccessGroupResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'RemoveSchemaAccessGroupResponse' from JSON`, + ); +} diff --git a/src/models/operations/replacethemedocument.ts b/src/models/operations/replacethemedocument.ts index c7cdf9e..86b88c9 100644 --- a/src/models/operations/replacethemedocument.ts +++ b/src/models/operations/replacethemedocument.ts @@ -6,6 +6,7 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ReplaceThemeDocumentRequestBody = { @@ -17,6 +18,14 @@ export type ReplaceThemeDocumentRequest = { requestBody: ReplaceThemeDocumentRequestBody; }; +export type ReplaceThemeDocumentResponse = { + httpMeta: components.HTTPMetadata; + /** + * Default Response + */ + any?: any | null | undefined; +}; + /** @internal */ export const ReplaceThemeDocumentRequestBody$inboundSchema: z.ZodType< ReplaceThemeDocumentRequestBody, @@ -139,3 +148,70 @@ export function replaceThemeDocumentRequestFromJSON( `Failed to parse 'ReplaceThemeDocumentRequest' from JSON`, ); } + +/** @internal */ +export const ReplaceThemeDocumentResponse$inboundSchema: z.ZodType< + ReplaceThemeDocumentResponse, + z.ZodTypeDef, + unknown +> = z.object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + any: z.nullable(z.any()).optional(), +}).transform((v) => { + return remap$(v, { + "HttpMeta": "httpMeta", + }); +}); + +/** @internal */ +export type ReplaceThemeDocumentResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + any?: any | null | undefined; +}; + +/** @internal */ +export const ReplaceThemeDocumentResponse$outboundSchema: z.ZodType< + ReplaceThemeDocumentResponse$Outbound, + z.ZodTypeDef, + ReplaceThemeDocumentResponse +> = z.object({ + httpMeta: components.HTTPMetadata$outboundSchema, + any: z.nullable(z.any()).optional(), +}).transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ReplaceThemeDocumentResponse$ { + /** @deprecated use `ReplaceThemeDocumentResponse$inboundSchema` instead. */ + export const inboundSchema = ReplaceThemeDocumentResponse$inboundSchema; + /** @deprecated use `ReplaceThemeDocumentResponse$outboundSchema` instead. */ + export const outboundSchema = ReplaceThemeDocumentResponse$outboundSchema; + /** @deprecated use `ReplaceThemeDocumentResponse$Outbound` instead. */ + export type Outbound = ReplaceThemeDocumentResponse$Outbound; +} + +export function replaceThemeDocumentResponseToJSON( + replaceThemeDocumentResponse: ReplaceThemeDocumentResponse, +): string { + return JSON.stringify( + ReplaceThemeDocumentResponse$outboundSchema.parse( + replaceThemeDocumentResponse, + ), + ); +} + +export function replaceThemeDocumentResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ReplaceThemeDocumentResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ReplaceThemeDocumentResponse' from JSON`, + ); +} diff --git a/src/models/operations/updateapidocument.ts b/src/models/operations/updateapidocument.ts index d492e6c..5ea5d4b 100644 --- a/src/models/operations/updateapidocument.ts +++ b/src/models/operations/updateapidocument.ts @@ -6,6 +6,7 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type UpdateApiDocumentRequestBody = { @@ -21,6 +22,14 @@ export type UpdateApiDocumentRequest = { requestBody: UpdateApiDocumentRequestBody; }; +export type UpdateApiDocumentResponse = { + httpMeta: components.HTTPMetadata; + /** + * Default Response + */ + any?: any | null | undefined; +}; + /** @internal */ export const UpdateApiDocumentRequestBody$inboundSchema: z.ZodType< UpdateApiDocumentRequestBody, @@ -153,3 +162,68 @@ export function updateApiDocumentRequestFromJSON( `Failed to parse 'UpdateApiDocumentRequest' from JSON`, ); } + +/** @internal */ +export const UpdateApiDocumentResponse$inboundSchema: z.ZodType< + UpdateApiDocumentResponse, + z.ZodTypeDef, + unknown +> = z.object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + any: z.nullable(z.any()).optional(), +}).transform((v) => { + return remap$(v, { + "HttpMeta": "httpMeta", + }); +}); + +/** @internal */ +export type UpdateApiDocumentResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + any?: any | null | undefined; +}; + +/** @internal */ +export const UpdateApiDocumentResponse$outboundSchema: z.ZodType< + UpdateApiDocumentResponse$Outbound, + z.ZodTypeDef, + UpdateApiDocumentResponse +> = z.object({ + httpMeta: components.HTTPMetadata$outboundSchema, + any: z.nullable(z.any()).optional(), +}).transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace UpdateApiDocumentResponse$ { + /** @deprecated use `UpdateApiDocumentResponse$inboundSchema` instead. */ + export const inboundSchema = UpdateApiDocumentResponse$inboundSchema; + /** @deprecated use `UpdateApiDocumentResponse$outboundSchema` instead. */ + export const outboundSchema = UpdateApiDocumentResponse$outboundSchema; + /** @deprecated use `UpdateApiDocumentResponse$Outbound` instead. */ + export type Outbound = UpdateApiDocumentResponse$Outbound; +} + +export function updateApiDocumentResponseToJSON( + updateApiDocumentResponse: UpdateApiDocumentResponse, +): string { + return JSON.stringify( + UpdateApiDocumentResponse$outboundSchema.parse(updateApiDocumentResponse), + ); +} + +export function updateApiDocumentResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UpdateApiDocumentResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UpdateApiDocumentResponse' from JSON`, + ); +} diff --git a/src/models/operations/updateapidocumentversion.ts b/src/models/operations/updateapidocumentversion.ts index 1bdffe7..c3ce3a3 100644 --- a/src/models/operations/updateapidocumentversion.ts +++ b/src/models/operations/updateapidocumentversion.ts @@ -6,6 +6,7 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type UpdateApiDocumentVersionRequestBody = { @@ -29,6 +30,14 @@ export type UpdateApiDocumentVersionResponseBody = { versionSha: string; }; +export type UpdateApiDocumentVersionResponse = { + httpMeta: components.HTTPMetadata; + /** + * Default Response + */ + object?: UpdateApiDocumentVersionResponseBody | undefined; +}; + /** @internal */ export const UpdateApiDocumentVersionRequestBody$inboundSchema: z.ZodType< UpdateApiDocumentVersionRequestBody, @@ -228,3 +237,72 @@ export function updateApiDocumentVersionResponseBodyFromJSON( `Failed to parse 'UpdateApiDocumentVersionResponseBody' from JSON`, ); } + +/** @internal */ +export const UpdateApiDocumentVersionResponse$inboundSchema: z.ZodType< + UpdateApiDocumentVersionResponse, + z.ZodTypeDef, + unknown +> = z.object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + object: z.lazy(() => UpdateApiDocumentVersionResponseBody$inboundSchema) + .optional(), +}).transform((v) => { + return remap$(v, { + "HttpMeta": "httpMeta", + }); +}); + +/** @internal */ +export type UpdateApiDocumentVersionResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + object?: UpdateApiDocumentVersionResponseBody$Outbound | undefined; +}; + +/** @internal */ +export const UpdateApiDocumentVersionResponse$outboundSchema: z.ZodType< + UpdateApiDocumentVersionResponse$Outbound, + z.ZodTypeDef, + UpdateApiDocumentVersionResponse +> = z.object({ + httpMeta: components.HTTPMetadata$outboundSchema, + object: z.lazy(() => UpdateApiDocumentVersionResponseBody$outboundSchema) + .optional(), +}).transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace UpdateApiDocumentVersionResponse$ { + /** @deprecated use `UpdateApiDocumentVersionResponse$inboundSchema` instead. */ + export const inboundSchema = UpdateApiDocumentVersionResponse$inboundSchema; + /** @deprecated use `UpdateApiDocumentVersionResponse$outboundSchema` instead. */ + export const outboundSchema = UpdateApiDocumentVersionResponse$outboundSchema; + /** @deprecated use `UpdateApiDocumentVersionResponse$Outbound` instead. */ + export type Outbound = UpdateApiDocumentVersionResponse$Outbound; +} + +export function updateApiDocumentVersionResponseToJSON( + updateApiDocumentVersionResponse: UpdateApiDocumentVersionResponse, +): string { + return JSON.stringify( + UpdateApiDocumentVersionResponse$outboundSchema.parse( + updateApiDocumentVersionResponse, + ), + ); +} + +export function updateApiDocumentVersionResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UpdateApiDocumentVersionResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UpdateApiDocumentVersionResponse' from JSON`, + ); +} diff --git a/src/models/operations/updateloginportal.ts b/src/models/operations/updateloginportal.ts index a60ee7e..92f9e99 100644 --- a/src/models/operations/updateloginportal.ts +++ b/src/models/operations/updateloginportal.ts @@ -6,6 +6,7 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type UpdateLoginPortalRequestBody = { @@ -17,6 +18,14 @@ export type UpdateLoginPortalRequest = { requestBody: UpdateLoginPortalRequestBody; }; +export type UpdateLoginPortalResponse = { + httpMeta: components.HTTPMetadata; + /** + * Default Response + */ + any?: any | null | undefined; +}; + /** @internal */ export const UpdateLoginPortalRequestBody$inboundSchema: z.ZodType< UpdateLoginPortalRequestBody, @@ -137,3 +146,68 @@ export function updateLoginPortalRequestFromJSON( `Failed to parse 'UpdateLoginPortalRequest' from JSON`, ); } + +/** @internal */ +export const UpdateLoginPortalResponse$inboundSchema: z.ZodType< + UpdateLoginPortalResponse, + z.ZodTypeDef, + unknown +> = z.object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + any: z.nullable(z.any()).optional(), +}).transform((v) => { + return remap$(v, { + "HttpMeta": "httpMeta", + }); +}); + +/** @internal */ +export type UpdateLoginPortalResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + any?: any | null | undefined; +}; + +/** @internal */ +export const UpdateLoginPortalResponse$outboundSchema: z.ZodType< + UpdateLoginPortalResponse$Outbound, + z.ZodTypeDef, + UpdateLoginPortalResponse +> = z.object({ + httpMeta: components.HTTPMetadata$outboundSchema, + any: z.nullable(z.any()).optional(), +}).transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace UpdateLoginPortalResponse$ { + /** @deprecated use `UpdateLoginPortalResponse$inboundSchema` instead. */ + export const inboundSchema = UpdateLoginPortalResponse$inboundSchema; + /** @deprecated use `UpdateLoginPortalResponse$outboundSchema` instead. */ + export const outboundSchema = UpdateLoginPortalResponse$outboundSchema; + /** @deprecated use `UpdateLoginPortalResponse$Outbound` instead. */ + export type Outbound = UpdateLoginPortalResponse$Outbound; +} + +export function updateLoginPortalResponseToJSON( + updateLoginPortalResponse: UpdateLoginPortalResponse, +): string { + return JSON.stringify( + UpdateLoginPortalResponse$outboundSchema.parse(updateLoginPortalResponse), + ); +} + +export function updateLoginPortalResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UpdateLoginPortalResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UpdateLoginPortalResponse' from JSON`, + ); +} diff --git a/src/models/operations/updateruleset.ts b/src/models/operations/updateruleset.ts index a273a88..cca700e 100644 --- a/src/models/operations/updateruleset.ts +++ b/src/models/operations/updateruleset.ts @@ -6,6 +6,7 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type UpdateRulesetRequestBody = { @@ -22,6 +23,14 @@ export type UpdateRulesetRequest = { requestBody: UpdateRulesetRequestBody; }; +export type UpdateRulesetResponse = { + httpMeta: components.HTTPMetadata; + /** + * Default Response + */ + any?: any | null | undefined; +}; + /** @internal */ export const UpdateRulesetRequestBody$inboundSchema: z.ZodType< UpdateRulesetRequestBody, @@ -155,3 +164,68 @@ export function updateRulesetRequestFromJSON( `Failed to parse 'UpdateRulesetRequest' from JSON`, ); } + +/** @internal */ +export const UpdateRulesetResponse$inboundSchema: z.ZodType< + UpdateRulesetResponse, + z.ZodTypeDef, + unknown +> = z.object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + any: z.nullable(z.any()).optional(), +}).transform((v) => { + return remap$(v, { + "HttpMeta": "httpMeta", + }); +}); + +/** @internal */ +export type UpdateRulesetResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + any?: any | null | undefined; +}; + +/** @internal */ +export const UpdateRulesetResponse$outboundSchema: z.ZodType< + UpdateRulesetResponse$Outbound, + z.ZodTypeDef, + UpdateRulesetResponse +> = z.object({ + httpMeta: components.HTTPMetadata$outboundSchema, + any: z.nullable(z.any()).optional(), +}).transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace UpdateRulesetResponse$ { + /** @deprecated use `UpdateRulesetResponse$inboundSchema` instead. */ + export const inboundSchema = UpdateRulesetResponse$inboundSchema; + /** @deprecated use `UpdateRulesetResponse$outboundSchema` instead. */ + export const outboundSchema = UpdateRulesetResponse$outboundSchema; + /** @deprecated use `UpdateRulesetResponse$Outbound` instead. */ + export type Outbound = UpdateRulesetResponse$Outbound; +} + +export function updateRulesetResponseToJSON( + updateRulesetResponse: UpdateRulesetResponse, +): string { + return JSON.stringify( + UpdateRulesetResponse$outboundSchema.parse(updateRulesetResponse), + ); +} + +export function updateRulesetResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UpdateRulesetResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UpdateRulesetResponse' from JSON`, + ); +} diff --git a/src/models/operations/updateschema.ts b/src/models/operations/updateschema.ts index d5e1965..9e7ab80 100644 --- a/src/models/operations/updateschema.ts +++ b/src/models/operations/updateschema.ts @@ -6,6 +6,7 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type UpdateSchemaRequestBody = { @@ -20,6 +21,14 @@ export type UpdateSchemaRequest = { requestBody: UpdateSchemaRequestBody; }; +export type UpdateSchemaResponse = { + httpMeta: components.HTTPMetadata; + /** + * Default Response + */ + any?: any | null | undefined; +}; + /** @internal */ export const UpdateSchemaRequestBody$inboundSchema: z.ZodType< UpdateSchemaRequestBody, @@ -147,3 +156,68 @@ export function updateSchemaRequestFromJSON( `Failed to parse 'UpdateSchemaRequest' from JSON`, ); } + +/** @internal */ +export const UpdateSchemaResponse$inboundSchema: z.ZodType< + UpdateSchemaResponse, + z.ZodTypeDef, + unknown +> = z.object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + any: z.nullable(z.any()).optional(), +}).transform((v) => { + return remap$(v, { + "HttpMeta": "httpMeta", + }); +}); + +/** @internal */ +export type UpdateSchemaResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + any?: any | null | undefined; +}; + +/** @internal */ +export const UpdateSchemaResponse$outboundSchema: z.ZodType< + UpdateSchemaResponse$Outbound, + z.ZodTypeDef, + UpdateSchemaResponse +> = z.object({ + httpMeta: components.HTTPMetadata$outboundSchema, + any: z.nullable(z.any()).optional(), +}).transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace UpdateSchemaResponse$ { + /** @deprecated use `UpdateSchemaResponse$inboundSchema` instead. */ + export const inboundSchema = UpdateSchemaResponse$inboundSchema; + /** @deprecated use `UpdateSchemaResponse$outboundSchema` instead. */ + export const outboundSchema = UpdateSchemaResponse$outboundSchema; + /** @deprecated use `UpdateSchemaResponse$Outbound` instead. */ + export type Outbound = UpdateSchemaResponse$Outbound; +} + +export function updateSchemaResponseToJSON( + updateSchemaResponse: UpdateSchemaResponse, +): string { + return JSON.stringify( + UpdateSchemaResponse$outboundSchema.parse(updateSchemaResponse), + ); +} + +export function updateSchemaResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UpdateSchemaResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UpdateSchemaResponse' from JSON`, + ); +} diff --git a/src/models/operations/updatetheme.ts b/src/models/operations/updatetheme.ts index c13a1dc..50aca87 100644 --- a/src/models/operations/updatetheme.ts +++ b/src/models/operations/updatetheme.ts @@ -6,6 +6,7 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type UpdateThemeRequestBody = { @@ -18,6 +19,14 @@ export type UpdateThemeRequest = { requestBody: UpdateThemeRequestBody; }; +export type UpdateThemeResponse = { + httpMeta: components.HTTPMetadata; + /** + * Default Response + */ + any?: any | null | undefined; +}; + /** @internal */ export const UpdateThemeRequestBody$inboundSchema: z.ZodType< UpdateThemeRequestBody, @@ -139,3 +148,68 @@ export function updateThemeRequestFromJSON( `Failed to parse 'UpdateThemeRequest' from JSON`, ); } + +/** @internal */ +export const UpdateThemeResponse$inboundSchema: z.ZodType< + UpdateThemeResponse, + z.ZodTypeDef, + unknown +> = z.object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + any: z.nullable(z.any()).optional(), +}).transform((v) => { + return remap$(v, { + "HttpMeta": "httpMeta", + }); +}); + +/** @internal */ +export type UpdateThemeResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + any?: any | null | undefined; +}; + +/** @internal */ +export const UpdateThemeResponse$outboundSchema: z.ZodType< + UpdateThemeResponse$Outbound, + z.ZodTypeDef, + UpdateThemeResponse +> = z.object({ + httpMeta: components.HTTPMetadata$outboundSchema, + any: z.nullable(z.any()).optional(), +}).transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace UpdateThemeResponse$ { + /** @deprecated use `UpdateThemeResponse$inboundSchema` instead. */ + export const inboundSchema = UpdateThemeResponse$inboundSchema; + /** @deprecated use `UpdateThemeResponse$outboundSchema` instead. */ + export const outboundSchema = UpdateThemeResponse$outboundSchema; + /** @deprecated use `UpdateThemeResponse$Outbound` instead. */ + export type Outbound = UpdateThemeResponse$Outbound; +} + +export function updateThemeResponseToJSON( + updateThemeResponse: UpdateThemeResponse, +): string { + return JSON.stringify( + UpdateThemeResponse$outboundSchema.parse(updateThemeResponse), + ); +} + +export function updateThemeResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UpdateThemeResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UpdateThemeResponse' from JSON`, + ); +} diff --git a/src/sdk/authentication.ts b/src/sdk/authentication.ts index 359aea1..0fac97f 100644 --- a/src/sdk/authentication.ts +++ b/src/sdk/authentication.ts @@ -5,7 +5,6 @@ import { authenticationExchangePersonalToken } from "../funcs/authenticationExchangePersonalToken.js"; import { authenticationGetCurrentUser } from "../funcs/authenticationGetCurrentUser.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as components from "../models/components/index.js"; import * as operations from "../models/operations/index.js"; import { unwrapAsync } from "../types/fp.js"; @@ -19,7 +18,7 @@ export class Authentication extends ClientSDK { async exchangePersonalToken( request: operations.ExchangePersonalTokenRequestBody, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(authenticationExchangePersonalToken( this, request, @@ -35,7 +34,7 @@ export class Authentication extends ClientSDK { */ async getCurrentUser( options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(authenticationGetCurrentUser( this, options, diff --git a/src/sdk/loginportals.ts b/src/sdk/loginportals.ts index af40316..4ae96e3 100644 --- a/src/sdk/loginportals.ts +++ b/src/sdk/loginportals.ts @@ -8,7 +8,6 @@ import { loginPortalsGetLoginPortal } from "../funcs/loginPortalsGetLoginPortal. import { loginPortalsListLoginPortals } from "../funcs/loginPortalsListLoginPortals.js"; import { loginPortalsUpdateLoginPortal } from "../funcs/loginPortalsUpdateLoginPortal.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as components from "../models/components/index.js"; import * as operations from "../models/operations/index.js"; import { unwrapAsync } from "../types/fp.js"; @@ -22,7 +21,7 @@ export class LoginPortals extends ClientSDK { async getLoginPortal( request: operations.GetLoginPortalRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(loginPortalsGetLoginPortal( this, request, @@ -39,7 +38,7 @@ export class LoginPortals extends ClientSDK { async updateLoginPortal( request: operations.UpdateLoginPortalRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(loginPortalsUpdateLoginPortal( this, request, @@ -56,7 +55,7 @@ export class LoginPortals extends ClientSDK { async deleteLoginPortal( request: operations.DeleteLoginPortalRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(loginPortalsDeleteLoginPortal( this, request, @@ -73,7 +72,7 @@ export class LoginPortals extends ClientSDK { async createLoginPortal( request: operations.CreateLoginPortalRequestBody, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(loginPortalsCreateLoginPortal( this, request, @@ -89,7 +88,7 @@ export class LoginPortals extends ClientSDK { */ async listLoginPortals( options?: RequestOptions, - ): Promise> { + ): Promise { return unwrapAsync(loginPortalsListLoginPortals( this, options, diff --git a/src/sdk/namespaces.ts b/src/sdk/namespaces.ts index 0efaa5c..61d6217 100644 --- a/src/sdk/namespaces.ts +++ b/src/sdk/namespaces.ts @@ -4,6 +4,7 @@ import { namespacesListNamespaces } from "../funcs/namespacesListNamespaces.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; +import * as operations from "../models/operations/index.js"; import { unwrapAsync } from "../types/fp.js"; export class Namespaces extends ClientSDK { @@ -15,7 +16,7 @@ export class Namespaces extends ClientSDK { */ async listNamespaces( options?: RequestOptions, - ): Promise> { + ): Promise { return unwrapAsync(namespacesListNamespaces( this, options, diff --git a/src/sdk/registry.ts b/src/sdk/registry.ts index 6ceba98..1ec2cc9 100644 --- a/src/sdk/registry.ts +++ b/src/sdk/registry.ts @@ -15,7 +15,6 @@ import { registryRemoveApiDocumentAccessGroup } from "../funcs/registryRemoveApi import { registryUpdateApiDocument } from "../funcs/registryUpdateApiDocument.js"; import { registryUpdateApiDocumentVersion } from "../funcs/registryUpdateApiDocumentVersion.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as components from "../models/components/index.js"; import * as operations from "../models/operations/index.js"; import { unwrapAsync } from "../types/fp.js"; @@ -28,7 +27,7 @@ export class Registry extends ClientSDK { */ async listAllApiDocuments( options?: RequestOptions, - ): Promise> { + ): Promise { return unwrapAsync(registryListAllApiDocuments( this, options, @@ -44,7 +43,7 @@ export class Registry extends ClientSDK { async listApiDocuments( request: operations.ListApiDocumentsRequest, options?: RequestOptions, - ): Promise> { + ): Promise { return unwrapAsync(registryListApiDocuments( this, request, @@ -61,7 +60,7 @@ export class Registry extends ClientSDK { async createApiDocument( request: operations.CreateApiDocumentRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(registryCreateApiDocument( this, request, @@ -78,7 +77,7 @@ export class Registry extends ClientSDK { async updateApiDocument( request: operations.UpdateApiDocumentRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(registryUpdateApiDocument( this, request, @@ -95,7 +94,7 @@ export class Registry extends ClientSDK { async deleteApiDocument( request: operations.DeleteApiDocumentRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(registryDeleteApiDocument( this, request, @@ -112,7 +111,7 @@ export class Registry extends ClientSDK { async getApiDocumentVersion( request: operations.GetApiDocumentVersionRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(registryGetApiDocumentVersion( this, request, @@ -129,7 +128,7 @@ export class Registry extends ClientSDK { async updateApiDocumentVersion( request: operations.UpdateApiDocumentVersionRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(registryUpdateApiDocumentVersion( this, request, @@ -146,7 +145,7 @@ export class Registry extends ClientSDK { async deleteApiDocumentVersion( request: operations.DeleteApiDocumentVersionRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(registryDeleteApiDocumentVersion( this, request, @@ -163,7 +162,7 @@ export class Registry extends ClientSDK { async getApiDocumentVersionMetadata( request: operations.GetApiDocumentVersionMetadataRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(registryGetApiDocumentVersionMetadata( this, request, @@ -180,7 +179,7 @@ export class Registry extends ClientSDK { async createApiDocumentVersion( request: operations.CreateApiDocumentVersionRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(registryCreateApiDocumentVersion( this, request, @@ -197,7 +196,7 @@ export class Registry extends ClientSDK { async addApiDocumentAccessGroup( request: operations.AddApiDocumentAccessGroupRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(registryAddApiDocumentAccessGroup( this, request, @@ -214,7 +213,7 @@ export class Registry extends ClientSDK { async removeApiDocumentAccessGroup( request: operations.RemoveApiDocumentAccessGroupRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(registryRemoveApiDocumentAccessGroup( this, request, diff --git a/src/sdk/rules.ts b/src/sdk/rules.ts index b5b779c..5a5bee4 100644 --- a/src/sdk/rules.ts +++ b/src/sdk/rules.ts @@ -10,7 +10,6 @@ import { rulesListRulesets } from "../funcs/rulesListRulesets.js"; import { rulesRemoveRulesetAccessGroup } from "../funcs/rulesRemoveRulesetAccessGroup.js"; import { rulesUpdateRuleset } from "../funcs/rulesUpdateRuleset.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as components from "../models/components/index.js"; import * as operations from "../models/operations/index.js"; import { unwrapAsync } from "../types/fp.js"; @@ -24,7 +23,7 @@ export class Rules extends ClientSDK { async listRulesets( request: operations.ListRulesetsRequest, options?: RequestOptions, - ): Promise> { + ): Promise { return unwrapAsync(rulesListRulesets( this, request, @@ -41,7 +40,7 @@ export class Rules extends ClientSDK { async createRuleset( request: operations.CreateRulesetRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(rulesCreateRuleset( this, request, @@ -58,7 +57,7 @@ export class Rules extends ClientSDK { async updateRuleset( request: operations.UpdateRulesetRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(rulesUpdateRuleset( this, request, @@ -75,7 +74,7 @@ export class Rules extends ClientSDK { async deleteRuleset( request: operations.DeleteRulesetRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(rulesDeleteRuleset( this, request, @@ -92,7 +91,7 @@ export class Rules extends ClientSDK { async getRulesetDocument( request: operations.GetRulesetDocumentRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(rulesGetRulesetDocument( this, request, @@ -109,7 +108,7 @@ export class Rules extends ClientSDK { async addRulesetAccessGroup( request: operations.AddRulesetAccessGroupRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(rulesAddRulesetAccessGroup( this, request, @@ -126,7 +125,7 @@ export class Rules extends ClientSDK { async removeRulesetAccessGroup( request: operations.RemoveRulesetAccessGroupRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(rulesRemoveRulesetAccessGroup( this, request, diff --git a/src/sdk/scalardocs.ts b/src/sdk/scalardocs.ts index 1026348..905d22a 100644 --- a/src/sdk/scalardocs.ts +++ b/src/sdk/scalardocs.ts @@ -6,7 +6,6 @@ import { scalarDocsCreateGuide } from "../funcs/scalarDocsCreateGuide.js"; import { scalarDocsListGuides } from "../funcs/scalarDocsListGuides.js"; import { scalarDocsPublishGuide } from "../funcs/scalarDocsPublishGuide.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as components from "../models/components/index.js"; import * as operations from "../models/operations/index.js"; import { unwrapAsync } from "../types/fp.js"; @@ -19,7 +18,7 @@ export class ScalarDocs extends ClientSDK { */ async listGuides( options?: RequestOptions, - ): Promise> { + ): Promise { return unwrapAsync(scalarDocsListGuides( this, options, @@ -35,7 +34,7 @@ export class ScalarDocs extends ClientSDK { async createGuide( request: operations.CreateGuideRequestBody, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(scalarDocsCreateGuide( this, request, @@ -52,7 +51,7 @@ export class ScalarDocs extends ClientSDK { async publishGuide( request: operations.PublishGuideRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(scalarDocsPublishGuide( this, request, diff --git a/src/sdk/schemas.ts b/src/sdk/schemas.ts index 5e8e7b3..e180381 100644 --- a/src/sdk/schemas.ts +++ b/src/sdk/schemas.ts @@ -12,7 +12,6 @@ import { schemasListSchemas } from "../funcs/schemasListSchemas.js"; import { schemasRemoveSchemaAccessGroup } from "../funcs/schemasRemoveSchemaAccessGroup.js"; import { schemasUpdateSchema } from "../funcs/schemasUpdateSchema.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as components from "../models/components/index.js"; import * as operations from "../models/operations/index.js"; import { unwrapAsync } from "../types/fp.js"; @@ -26,7 +25,7 @@ export class Schemas extends ClientSDK { async listSchemas( request: operations.ListSchemasRequest, options?: RequestOptions, - ): Promise> { + ): Promise { return unwrapAsync(schemasListSchemas( this, request, @@ -43,7 +42,7 @@ export class Schemas extends ClientSDK { async createSchema( request: operations.CreateSchemaRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(schemasCreateSchema( this, request, @@ -60,7 +59,7 @@ export class Schemas extends ClientSDK { async updateSchema( request: operations.UpdateSchemaRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(schemasUpdateSchema( this, request, @@ -77,7 +76,7 @@ export class Schemas extends ClientSDK { async deleteSchema( request: operations.DeleteSchemaRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(schemasDeleteSchema( this, request, @@ -94,7 +93,7 @@ export class Schemas extends ClientSDK { async getSchemaVersion( request: operations.GetSchemaVersionRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(schemasGetSchemaVersion( this, request, @@ -111,7 +110,7 @@ export class Schemas extends ClientSDK { async deleteSchemaVersion( request: operations.DeleteSchemaVersionRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(schemasDeleteSchemaVersion( this, request, @@ -128,7 +127,7 @@ export class Schemas extends ClientSDK { async createSchemaVersion( request: operations.CreateSchemaVersionRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(schemasCreateSchemaVersion( this, request, @@ -145,7 +144,7 @@ export class Schemas extends ClientSDK { async addSchemaAccessGroup( request: operations.AddSchemaAccessGroupRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(schemasAddSchemaAccessGroup( this, request, @@ -162,7 +161,7 @@ export class Schemas extends ClientSDK { async removeSchemaAccessGroup( request: operations.RemoveSchemaAccessGroupRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(schemasRemoveSchemaAccessGroup( this, request, diff --git a/src/sdk/teams.ts b/src/sdk/teams.ts index 6c963cc..de51e8b 100644 --- a/src/sdk/teams.ts +++ b/src/sdk/teams.ts @@ -4,7 +4,7 @@ import { teamsListTeams } from "../funcs/teamsListTeams.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as components from "../models/components/index.js"; +import * as operations from "../models/operations/index.js"; import { unwrapAsync } from "../types/fp.js"; export class Teams extends ClientSDK { @@ -16,7 +16,7 @@ export class Teams extends ClientSDK { */ async listTeams( options?: RequestOptions, - ): Promise> { + ): Promise { return unwrapAsync(teamsListTeams( this, options, diff --git a/src/sdk/themes.ts b/src/sdk/themes.ts index bc3e705..a1062da 100644 --- a/src/sdk/themes.ts +++ b/src/sdk/themes.ts @@ -9,7 +9,6 @@ import { themesListThemes } from "../funcs/themesListThemes.js"; import { themesReplaceThemeDocument } from "../funcs/themesReplaceThemeDocument.js"; import { themesUpdateTheme } from "../funcs/themesUpdateTheme.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as components from "../models/components/index.js"; import * as operations from "../models/operations/index.js"; import { unwrapAsync } from "../types/fp.js"; @@ -22,7 +21,7 @@ export class Themes extends ClientSDK { */ async listThemes( options?: RequestOptions, - ): Promise> { + ): Promise { return unwrapAsync(themesListThemes( this, options, @@ -38,7 +37,7 @@ export class Themes extends ClientSDK { async createTheme( request: operations.CreateThemeRequestBody, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(themesCreateTheme( this, request, @@ -55,7 +54,7 @@ export class Themes extends ClientSDK { async updateTheme( request: operations.UpdateThemeRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(themesUpdateTheme( this, request, @@ -72,7 +71,7 @@ export class Themes extends ClientSDK { async replaceThemeDocument( request: operations.ReplaceThemeDocumentRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(themesReplaceThemeDocument( this, request, @@ -89,7 +88,7 @@ export class Themes extends ClientSDK { async deleteTheme( request: operations.DeleteThemeRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(themesDeleteTheme( this, request, @@ -106,7 +105,7 @@ export class Themes extends ClientSDK { async getTheme( request: operations.GetThemeRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(themesGetTheme( this, request,