@corti/sdk 2.0.0-templates → 2.0.0-templates.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/BaseClient.d.ts +2 -2
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/Client.d.ts +12 -12
- package/dist/cjs/Client.js +22 -22
- package/dist/cjs/api/resources/{newSectionVersions → alphaSectionVersions}/client/Client.d.ts +19 -19
- package/dist/cjs/api/resources/{newSectionVersions → alphaSectionVersions}/client/Client.js +14 -14
- package/dist/cjs/api/resources/{newSections → alphaSections}/client/Client.d.ts +20 -20
- package/dist/cjs/api/resources/{newSections → alphaSections}/client/Client.js +15 -15
- package/dist/cjs/api/resources/{newSections/client/requests/ListNewSectionsRequest.d.ts → alphaSections/client/requests/ListAlphaSectionsRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/{newSections → alphaSections}/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/alphaTemplateVersions/client/Client.d.ts +81 -0
- package/dist/cjs/api/resources/{newTemplateVersions → alphaTemplateVersions}/client/Client.js +163 -72
- package/dist/cjs/api/resources/alphaTemplateVersions/client/requests/CreateTemplateVersionRequest.d.ts +14 -0
- package/dist/cjs/api/resources/alphaTemplateVersions/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/alphaTemplateVersions/types/CreateTemplateVersionRequestGeneration.d.ts +5 -0
- package/dist/cjs/api/resources/alphaTemplateVersions/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/alphaTemplateVersions/types/index.js +17 -0
- package/dist/cjs/api/resources/alphaTemplates/client/Client.d.ts +76 -0
- package/dist/cjs/api/resources/{newTemplates → alphaTemplates}/client/Client.js +100 -51
- package/dist/cjs/api/resources/alphaTemplates/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/alphaTemplates/client/index.js +17 -0
- package/dist/cjs/api/resources/{newTemplates/client/requests/ListNewTemplatesRequest.d.ts → alphaTemplates/client/requests/ListAlphaTemplatesRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/alphaTemplates/client/requests/ListAlphaTemplatesRequest.js +3 -0
- package/dist/cjs/api/resources/alphaTemplates/client/requests/UpdateTemplateRequest.d.ts +10 -0
- package/dist/cjs/api/resources/alphaTemplates/client/requests/UpdateTemplateRequest.js +3 -0
- package/dist/cjs/api/resources/alphaTemplates/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/alphaTemplates/types/CreateTemplateRequestGeneration.js +3 -0
- package/dist/cjs/api/resources/index.d.ts +9 -7
- package/dist/cjs/api/resources/index.js +10 -8
- package/dist/cjs/serialization/resources/{newSectionVersions → alphaSectionVersions}/client/list.d.ts +1 -1
- package/dist/cjs/serialization/resources/{newSections → alphaSections}/client/list.d.ts +1 -1
- package/dist/cjs/serialization/resources/alphaTemplateVersions/client/list.d.ts +8 -0
- package/dist/cjs/serialization/resources/alphaTemplateVersions/client/list.js +40 -0
- package/dist/cjs/serialization/resources/alphaTemplateVersions/client/requests/CreateTemplateVersionRequest.d.ts +10 -0
- package/dist/cjs/serialization/resources/alphaTemplateVersions/client/requests/CreateTemplateVersionRequest.js +42 -0
- package/dist/cjs/serialization/resources/alphaTemplateVersions/client/requests/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/alphaTemplateVersions/client/requests/index.js +5 -0
- package/dist/cjs/serialization/resources/alphaTemplateVersions/index.d.ts +2 -0
- package/dist/cjs/serialization/resources/alphaTemplateVersions/index.js +18 -0
- package/dist/cjs/serialization/resources/alphaTemplateVersions/types/CreateTemplateVersionRequestGeneration.d.ts +12 -0
- package/dist/cjs/serialization/resources/alphaTemplateVersions/types/CreateTemplateVersionRequestGeneration.js +44 -0
- package/dist/cjs/serialization/resources/alphaTemplateVersions/types/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/alphaTemplateVersions/types/index.js +17 -0
- package/dist/cjs/serialization/resources/alphaTemplates/client/index.d.ts +2 -0
- package/dist/cjs/serialization/resources/alphaTemplates/client/index.js +41 -0
- package/dist/cjs/serialization/resources/{newTemplates → alphaTemplates}/client/list.d.ts +1 -1
- package/dist/cjs/serialization/resources/alphaTemplates/client/requests/UpdateTemplateRequest.d.ts +12 -0
- package/dist/cjs/serialization/resources/alphaTemplates/client/requests/UpdateTemplateRequest.js +44 -0
- package/dist/cjs/serialization/resources/{newTemplates → alphaTemplates}/client/requests/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/{newTemplates → alphaTemplates}/client/requests/index.js +3 -1
- package/dist/cjs/serialization/resources/alphaTemplates/index.d.ts +2 -0
- package/dist/cjs/serialization/resources/alphaTemplates/index.js +18 -0
- package/dist/cjs/serialization/resources/index.d.ts +9 -6
- package/dist/cjs/serialization/resources/index.js +10 -7
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.d.mts +2 -2
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/Client.d.mts +12 -12
- package/dist/esm/Client.mjs +12 -12
- package/dist/esm/api/resources/{newSectionVersions → alphaSectionVersions}/client/Client.d.mts +19 -19
- package/dist/esm/api/resources/{newSectionVersions → alphaSectionVersions}/client/Client.mjs +12 -12
- package/dist/esm/api/resources/{newSections → alphaSections}/client/Client.d.mts +20 -20
- package/dist/esm/api/resources/{newSections → alphaSections}/client/Client.mjs +13 -13
- package/dist/esm/api/resources/{newSections/client/requests/ListNewSectionsRequest.d.mts → alphaSections/client/requests/ListAlphaSectionsRequest.d.mts} +1 -1
- package/dist/esm/api/resources/{newSections → alphaSections}/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/alphaTemplateVersions/client/Client.d.mts +81 -0
- package/dist/esm/api/resources/{newTemplateVersions → alphaTemplateVersions}/client/Client.mjs +161 -70
- package/dist/esm/api/resources/alphaTemplateVersions/client/requests/CreateTemplateVersionRequest.d.mts +14 -0
- package/dist/esm/api/resources/alphaTemplateVersions/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/alphaTemplateVersions/types/CreateTemplateVersionRequestGeneration.d.mts +5 -0
- package/dist/esm/api/resources/alphaTemplateVersions/types/index.d.mts +1 -0
- package/dist/esm/api/resources/alphaTemplateVersions/types/index.mjs +1 -0
- package/dist/esm/api/resources/alphaTemplates/client/Client.d.mts +76 -0
- package/dist/esm/api/resources/{newTemplates → alphaTemplates}/client/Client.mjs +98 -49
- package/dist/esm/api/resources/alphaTemplates/client/index.d.mts +1 -0
- package/dist/esm/api/resources/alphaTemplates/client/index.mjs +1 -0
- package/dist/esm/api/resources/{newTemplates/client/requests/ListNewTemplatesRequest.d.mts → alphaTemplates/client/requests/ListAlphaTemplatesRequest.d.mts} +1 -1
- package/dist/esm/api/resources/alphaTemplates/client/requests/ListAlphaTemplatesRequest.mjs +2 -0
- package/dist/esm/api/resources/alphaTemplates/client/requests/UpdateTemplateRequest.d.mts +10 -0
- package/dist/esm/api/resources/alphaTemplates/client/requests/UpdateTemplateRequest.mjs +2 -0
- package/dist/esm/api/resources/alphaTemplates/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/alphaTemplates/types/CreateTemplateRequestGeneration.mjs +2 -0
- package/dist/esm/api/resources/index.d.mts +9 -7
- package/dist/esm/api/resources/index.mjs +9 -7
- package/dist/esm/serialization/resources/{newSectionVersions → alphaSectionVersions}/client/list.d.mts +1 -1
- package/dist/esm/serialization/resources/{newSections → alphaSections}/client/list.d.mts +1 -1
- package/dist/esm/serialization/resources/alphaTemplateVersions/client/list.d.mts +8 -0
- package/dist/esm/serialization/resources/alphaTemplateVersions/client/list.mjs +4 -0
- package/dist/esm/serialization/resources/alphaTemplateVersions/client/requests/CreateTemplateVersionRequest.d.mts +10 -0
- package/dist/esm/serialization/resources/alphaTemplateVersions/client/requests/CreateTemplateVersionRequest.mjs +6 -0
- package/dist/esm/serialization/resources/alphaTemplateVersions/client/requests/index.d.mts +1 -0
- package/dist/esm/serialization/resources/alphaTemplateVersions/client/requests/index.mjs +1 -0
- package/dist/esm/serialization/resources/alphaTemplateVersions/index.d.mts +2 -0
- package/dist/esm/serialization/resources/alphaTemplateVersions/index.mjs +2 -0
- package/dist/esm/serialization/resources/alphaTemplateVersions/types/CreateTemplateVersionRequestGeneration.d.mts +12 -0
- package/dist/esm/serialization/resources/alphaTemplateVersions/types/CreateTemplateVersionRequestGeneration.mjs +8 -0
- package/dist/esm/serialization/resources/alphaTemplateVersions/types/index.d.mts +1 -0
- package/dist/esm/serialization/resources/alphaTemplateVersions/types/index.mjs +1 -0
- package/dist/esm/serialization/resources/alphaTemplates/client/index.d.mts +2 -0
- package/dist/esm/serialization/resources/alphaTemplates/client/index.mjs +2 -0
- package/dist/esm/serialization/resources/{newTemplates → alphaTemplates}/client/list.d.mts +1 -1
- package/dist/esm/serialization/resources/alphaTemplates/client/requests/UpdateTemplateRequest.d.mts +12 -0
- package/dist/esm/serialization/resources/alphaTemplates/client/requests/UpdateTemplateRequest.mjs +8 -0
- package/dist/esm/serialization/resources/{newTemplates → alphaTemplates}/client/requests/index.d.mts +1 -0
- package/dist/esm/serialization/resources/{newTemplates → alphaTemplates}/client/requests/index.mjs +1 -0
- package/dist/esm/serialization/resources/alphaTemplates/index.d.mts +2 -0
- package/dist/esm/serialization/resources/alphaTemplates/index.mjs +2 -0
- package/dist/esm/serialization/resources/index.d.mts +9 -6
- package/dist/esm/serialization/resources/index.mjs +9 -6
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +2 -4
- package/dist/cjs/api/resources/newTemplateVersions/client/Client.d.ts +0 -60
- package/dist/cjs/api/resources/newTemplateVersions/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/newTemplates/client/Client.d.ts +0 -68
- package/dist/cjs/api/resources/newTemplates/client/requests/index.d.ts +0 -2
- package/dist/cjs/serialization/resources/newSections/index.d.ts +0 -1
- package/dist/cjs/serialization/resources/newSections/index.js +0 -17
- package/dist/esm/api/resources/newTemplateVersions/client/Client.d.mts +0 -60
- package/dist/esm/api/resources/newTemplateVersions/client/index.d.mts +0 -1
- package/dist/esm/api/resources/newTemplates/client/Client.d.mts +0 -68
- package/dist/esm/api/resources/newTemplates/client/requests/index.d.mts +0 -2
- package/dist/esm/serialization/resources/newSections/index.d.mts +0 -1
- package/dist/esm/serialization/resources/newSections/index.mjs +0 -1
- /package/dist/cjs/api/resources/{newSectionVersions → alphaSectionVersions}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{newSectionVersions → alphaSectionVersions}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{newSectionVersions → alphaSectionVersions}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{newSectionVersions → alphaSectionVersions}/index.js +0 -0
- /package/dist/cjs/api/resources/{newSections → alphaSections}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{newSections → alphaSections}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{newSections → alphaSections}/client/requests/CreateSectionRequest.d.ts +0 -0
- /package/dist/cjs/api/resources/{newSections → alphaSections}/client/requests/CreateSectionRequest.js +0 -0
- /package/dist/cjs/api/resources/{newSections/client/requests/ListNewSectionsRequest.js → alphaSections/client/requests/ListAlphaSectionsRequest.js} +0 -0
- /package/dist/cjs/api/resources/{newSections → alphaSections}/client/requests/UpdateSectionRequest.d.ts +0 -0
- /package/dist/cjs/api/resources/{newSections → alphaSections}/client/requests/UpdateSectionRequest.js +0 -0
- /package/dist/cjs/api/resources/{newSections → alphaSections}/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/{newSections → alphaSections}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{newSections → alphaSections}/index.js +0 -0
- /package/dist/cjs/api/resources/{newTemplates → alphaTemplateVersions}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{newTemplates → alphaTemplateVersions}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{newTemplates/client/requests/CreateTemplateRequest.js → alphaTemplateVersions/client/requests/CreateTemplateVersionRequest.js} +0 -0
- /package/dist/cjs/api/resources/{newTemplateVersions/client → alphaTemplateVersions/client/requests}/index.js +0 -0
- /package/dist/cjs/api/resources/{newTemplates → alphaTemplateVersions}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{newTemplates → alphaTemplateVersions}/index.js +0 -0
- /package/dist/cjs/api/resources/{newTemplates/client/requests/ListNewTemplatesRequest.js → alphaTemplateVersions/types/CreateTemplateVersionRequestGeneration.js} +0 -0
- /package/dist/cjs/api/resources/{newTemplates → alphaTemplates}/client/requests/CreateTemplateRequest.d.ts +0 -0
- /package/dist/cjs/api/resources/{newTemplates/types/CreateTemplateRequestGeneration.js → alphaTemplates/client/requests/CreateTemplateRequest.js} +0 -0
- /package/dist/cjs/api/resources/{newTemplates → alphaTemplates}/client/requests/index.js +0 -0
- /package/dist/cjs/{serialization/resources/newTemplates → api/resources/alphaTemplates}/index.d.ts +0 -0
- /package/dist/cjs/{serialization/resources/newTemplates → api/resources/alphaTemplates}/index.js +0 -0
- /package/dist/cjs/api/resources/{newTemplates → alphaTemplates}/types/CreateTemplateRequestGeneration.d.ts +0 -0
- /package/dist/cjs/api/resources/{newTemplates → alphaTemplates}/types/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{newTemplates → alphaTemplates}/types/index.js +0 -0
- /package/dist/cjs/serialization/resources/{newSectionVersions → alphaSectionVersions}/client/index.d.ts +0 -0
- /package/dist/cjs/serialization/resources/{newSectionVersions → alphaSectionVersions}/client/index.js +0 -0
- /package/dist/cjs/serialization/resources/{newSectionVersions → alphaSectionVersions}/client/list.js +0 -0
- /package/dist/cjs/{api/resources/newTemplateVersions → serialization/resources/alphaSectionVersions}/index.d.ts +0 -0
- /package/dist/cjs/{api/resources/newTemplateVersions → serialization/resources/alphaSectionVersions}/index.js +0 -0
- /package/dist/cjs/serialization/resources/{newSections → alphaSections}/client/index.d.ts +0 -0
- /package/dist/cjs/serialization/resources/{newSections → alphaSections}/client/index.js +0 -0
- /package/dist/cjs/serialization/resources/{newSections → alphaSections}/client/list.js +0 -0
- /package/dist/cjs/serialization/resources/{newSections → alphaSections}/client/requests/CreateSectionRequest.d.ts +0 -0
- /package/dist/cjs/serialization/resources/{newSections → alphaSections}/client/requests/CreateSectionRequest.js +0 -0
- /package/dist/cjs/serialization/resources/{newSections → alphaSections}/client/requests/UpdateSectionRequest.d.ts +0 -0
- /package/dist/cjs/serialization/resources/{newSections → alphaSections}/client/requests/UpdateSectionRequest.js +0 -0
- /package/dist/cjs/serialization/resources/{newSections → alphaSections}/client/requests/index.d.ts +0 -0
- /package/dist/cjs/serialization/resources/{newSections → alphaSections}/client/requests/index.js +0 -0
- /package/dist/cjs/serialization/resources/{newSectionVersions → alphaSections}/index.d.ts +0 -0
- /package/dist/cjs/serialization/resources/{newSectionVersions → alphaSections}/index.js +0 -0
- /package/dist/cjs/serialization/resources/{newTemplates → alphaTemplateVersions}/client/index.d.ts +0 -0
- /package/dist/cjs/serialization/resources/{newTemplates → alphaTemplateVersions}/client/index.js +0 -0
- /package/dist/cjs/serialization/resources/{newTemplates → alphaTemplates}/client/list.js +0 -0
- /package/dist/cjs/serialization/resources/{newTemplates → alphaTemplates}/client/requests/CreateTemplateRequest.d.ts +0 -0
- /package/dist/cjs/serialization/resources/{newTemplates → alphaTemplates}/client/requests/CreateTemplateRequest.js +0 -0
- /package/dist/cjs/serialization/resources/{newTemplates → alphaTemplates}/types/CreateTemplateRequestGeneration.d.ts +0 -0
- /package/dist/cjs/serialization/resources/{newTemplates → alphaTemplates}/types/CreateTemplateRequestGeneration.js +0 -0
- /package/dist/cjs/serialization/resources/{newTemplates → alphaTemplates}/types/index.d.ts +0 -0
- /package/dist/cjs/serialization/resources/{newTemplates → alphaTemplates}/types/index.js +0 -0
- /package/dist/esm/api/resources/{newSectionVersions → alphaSectionVersions}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{newSectionVersions → alphaSectionVersions}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{newSectionVersions → alphaSectionVersions}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{newSectionVersions → alphaSectionVersions}/index.mjs +0 -0
- /package/dist/esm/api/resources/{newSections → alphaSections}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{newSections → alphaSections}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{newSections → alphaSections}/client/requests/CreateSectionRequest.d.mts +0 -0
- /package/dist/esm/api/resources/{newSections → alphaSections}/client/requests/CreateSectionRequest.mjs +0 -0
- /package/dist/esm/api/resources/{newSections/client/requests/ListNewSectionsRequest.mjs → alphaSections/client/requests/ListAlphaSectionsRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{newSections → alphaSections}/client/requests/UpdateSectionRequest.d.mts +0 -0
- /package/dist/esm/api/resources/{newSections → alphaSections}/client/requests/UpdateSectionRequest.mjs +0 -0
- /package/dist/esm/api/resources/{newSections → alphaSections}/client/requests/index.mjs +0 -0
- /package/dist/esm/api/resources/{newSections → alphaSections}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{newSections → alphaSections}/index.mjs +0 -0
- /package/dist/esm/api/resources/{newTemplates → alphaTemplateVersions}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{newTemplates → alphaTemplateVersions}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{newTemplates/client/requests/CreateTemplateRequest.mjs → alphaTemplateVersions/client/requests/CreateTemplateVersionRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{newTemplateVersions/client → alphaTemplateVersions/client/requests}/index.mjs +0 -0
- /package/dist/esm/api/resources/{newTemplates → alphaTemplateVersions}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{newTemplates → alphaTemplateVersions}/index.mjs +0 -0
- /package/dist/esm/api/resources/{newTemplates/client/requests/ListNewTemplatesRequest.mjs → alphaTemplateVersions/types/CreateTemplateVersionRequestGeneration.mjs} +0 -0
- /package/dist/esm/api/resources/{newTemplates → alphaTemplates}/client/requests/CreateTemplateRequest.d.mts +0 -0
- /package/dist/esm/api/resources/{newTemplates/types/CreateTemplateRequestGeneration.mjs → alphaTemplates/client/requests/CreateTemplateRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{newTemplates → alphaTemplates}/client/requests/index.mjs +0 -0
- /package/dist/esm/{serialization/resources/newTemplates → api/resources/alphaTemplates}/index.d.mts +0 -0
- /package/dist/esm/{serialization/resources/newTemplates → api/resources/alphaTemplates}/index.mjs +0 -0
- /package/dist/esm/api/resources/{newTemplates → alphaTemplates}/types/CreateTemplateRequestGeneration.d.mts +0 -0
- /package/dist/esm/api/resources/{newTemplates → alphaTemplates}/types/index.d.mts +0 -0
- /package/dist/esm/api/resources/{newTemplates → alphaTemplates}/types/index.mjs +0 -0
- /package/dist/esm/serialization/resources/{newSectionVersions → alphaSectionVersions}/client/index.d.mts +0 -0
- /package/dist/esm/serialization/resources/{newSectionVersions → alphaSectionVersions}/client/index.mjs +0 -0
- /package/dist/esm/serialization/resources/{newSectionVersions → alphaSectionVersions}/client/list.mjs +0 -0
- /package/dist/esm/{api/resources/newTemplateVersions → serialization/resources/alphaSectionVersions}/index.d.mts +0 -0
- /package/dist/esm/{api/resources/newTemplateVersions → serialization/resources/alphaSectionVersions}/index.mjs +0 -0
- /package/dist/esm/serialization/resources/{newSections → alphaSections}/client/index.d.mts +0 -0
- /package/dist/esm/serialization/resources/{newSections → alphaSections}/client/index.mjs +0 -0
- /package/dist/esm/serialization/resources/{newSections → alphaSections}/client/list.mjs +0 -0
- /package/dist/esm/serialization/resources/{newSections → alphaSections}/client/requests/CreateSectionRequest.d.mts +0 -0
- /package/dist/esm/serialization/resources/{newSections → alphaSections}/client/requests/CreateSectionRequest.mjs +0 -0
- /package/dist/esm/serialization/resources/{newSections → alphaSections}/client/requests/UpdateSectionRequest.d.mts +0 -0
- /package/dist/esm/serialization/resources/{newSections → alphaSections}/client/requests/UpdateSectionRequest.mjs +0 -0
- /package/dist/esm/serialization/resources/{newSections → alphaSections}/client/requests/index.d.mts +0 -0
- /package/dist/esm/serialization/resources/{newSections → alphaSections}/client/requests/index.mjs +0 -0
- /package/dist/esm/serialization/resources/{newSectionVersions → alphaSections}/index.d.mts +0 -0
- /package/dist/esm/serialization/resources/{newSectionVersions → alphaSections}/index.mjs +0 -0
- /package/dist/esm/serialization/resources/{newTemplates → alphaTemplateVersions}/client/index.d.mts +0 -0
- /package/dist/esm/serialization/resources/{newTemplates → alphaTemplateVersions}/client/index.mjs +0 -0
- /package/dist/esm/serialization/resources/{newTemplates → alphaTemplates}/client/list.mjs +0 -0
- /package/dist/esm/serialization/resources/{newTemplates → alphaTemplates}/client/requests/CreateTemplateRequest.d.mts +0 -0
- /package/dist/esm/serialization/resources/{newTemplates → alphaTemplates}/client/requests/CreateTemplateRequest.mjs +0 -0
- /package/dist/esm/serialization/resources/{newTemplates → alphaTemplates}/types/CreateTemplateRequestGeneration.d.mts +0 -0
- /package/dist/esm/serialization/resources/{newTemplates → alphaTemplates}/types/CreateTemplateRequestGeneration.mjs +0 -0
- /package/dist/esm/serialization/resources/{newTemplates → alphaTemplates}/types/index.d.mts +0 -0
- /package/dist/esm/serialization/resources/{newTemplates → alphaTemplates}/types/index.mjs +0 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type * as Corti from "../../../../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* generation: {
|
|
6
|
+
* instructions: {
|
|
7
|
+
* prompt: "prompt"
|
|
8
|
+
* }
|
|
9
|
+
* }
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
12
|
+
export interface CreateTemplateVersionRequest {
|
|
13
|
+
generation: Corti.CreateTemplateVersionRequestGeneration;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { CreateTemplateVersionRequest } from "./CreateTemplateVersionRequest.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./CreateTemplateVersionRequestGeneration.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./CreateTemplateVersionRequestGeneration.mjs";
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.mjs";
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs";
|
|
3
|
+
import * as core from "../../../../core/index.mjs";
|
|
4
|
+
import * as Corti from "../../../index.mjs";
|
|
5
|
+
export declare namespace AlphaTemplatesClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare class AlphaTemplatesClient {
|
|
11
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<AlphaTemplatesClient.Options>;
|
|
12
|
+
constructor(options: AlphaTemplatesClient.Options);
|
|
13
|
+
/**
|
|
14
|
+
* @param {Corti.ListAlphaTemplatesRequest} request
|
|
15
|
+
* @param {AlphaTemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* await client.alphaTemplates.list()
|
|
19
|
+
*/
|
|
20
|
+
list(request?: Corti.ListAlphaTemplatesRequest, requestOptions?: AlphaTemplatesClient.RequestOptions): core.HttpResponsePromise<Corti.Template[]>;
|
|
21
|
+
private __list;
|
|
22
|
+
/**
|
|
23
|
+
* @param {Corti.CreateTemplateRequest} request
|
|
24
|
+
* @param {AlphaTemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
25
|
+
*
|
|
26
|
+
* @throws {@link Corti.BadRequestError}
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* await client.alphaTemplates.create({
|
|
30
|
+
* name: "name",
|
|
31
|
+
* language: "language",
|
|
32
|
+
* generation: {
|
|
33
|
+
* instructions: {
|
|
34
|
+
* prompt: "prompt"
|
|
35
|
+
* }
|
|
36
|
+
* }
|
|
37
|
+
* })
|
|
38
|
+
*/
|
|
39
|
+
create(request: Corti.CreateTemplateRequest, requestOptions?: AlphaTemplatesClient.RequestOptions): core.HttpResponsePromise<Corti.Template>;
|
|
40
|
+
private __create;
|
|
41
|
+
/**
|
|
42
|
+
* @param {string} templateID
|
|
43
|
+
* @param {AlphaTemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
44
|
+
*
|
|
45
|
+
* @throws {@link Corti.NotFoundError}
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* await client.alphaTemplates.get("templateID")
|
|
49
|
+
*/
|
|
50
|
+
get(templateID: string, requestOptions?: AlphaTemplatesClient.RequestOptions): core.HttpResponsePromise<Corti.Template>;
|
|
51
|
+
private __get;
|
|
52
|
+
/**
|
|
53
|
+
* @param {string} templateID
|
|
54
|
+
* @param {AlphaTemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
55
|
+
*
|
|
56
|
+
* @throws {@link Corti.NotFoundError}
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* await client.alphaTemplates.delete("templateID")
|
|
60
|
+
*/
|
|
61
|
+
delete(templateID: string, requestOptions?: AlphaTemplatesClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
62
|
+
private __delete;
|
|
63
|
+
/**
|
|
64
|
+
* @param {string} templateID
|
|
65
|
+
* @param {Corti.UpdateTemplateRequest} request
|
|
66
|
+
* @param {AlphaTemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
67
|
+
*
|
|
68
|
+
* @throws {@link Corti.BadRequestError}
|
|
69
|
+
* @throws {@link Corti.NotFoundError}
|
|
70
|
+
*
|
|
71
|
+
* @example
|
|
72
|
+
* await client.alphaTemplates.update("templateID")
|
|
73
|
+
*/
|
|
74
|
+
update(templateID: string, request?: Corti.UpdateTemplateRequest, requestOptions?: AlphaTemplatesClient.RequestOptions): core.HttpResponsePromise<Corti.Template>;
|
|
75
|
+
private __update;
|
|
76
|
+
}
|
|
@@ -15,16 +15,16 @@ import { handleNonStatusCodeError } from "../../../../errors/handleNonStatusCode
|
|
|
15
15
|
import * as errors from "../../../../errors/index.mjs";
|
|
16
16
|
import * as serializers from "../../../../serialization/index.mjs";
|
|
17
17
|
import * as Corti from "../../../index.mjs";
|
|
18
|
-
export class
|
|
18
|
+
export class AlphaTemplatesClient {
|
|
19
19
|
constructor(options) {
|
|
20
20
|
this._options = normalizeClientOptionsWithAuth(options);
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
* @param {Corti.
|
|
24
|
-
* @param {
|
|
23
|
+
* @param {Corti.ListAlphaTemplatesRequest} request
|
|
24
|
+
* @param {AlphaTemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
25
25
|
*
|
|
26
26
|
* @example
|
|
27
|
-
* await client.
|
|
27
|
+
* await client.alphaTemplates.list()
|
|
28
28
|
*/
|
|
29
29
|
list(request = {}, requestOptions) {
|
|
30
30
|
return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions));
|
|
@@ -53,7 +53,7 @@ export class NewTemplatesClient {
|
|
|
53
53
|
});
|
|
54
54
|
if (_response.ok) {
|
|
55
55
|
return {
|
|
56
|
-
data: serializers.
|
|
56
|
+
data: serializers.alphaTemplates.list.Response.parseOrThrow(_response.body, {
|
|
57
57
|
unrecognizedObjectKeys: "passthrough",
|
|
58
58
|
allowUnrecognizedUnionMembers: true,
|
|
59
59
|
allowUnrecognizedEnumValues: true,
|
|
@@ -75,12 +75,12 @@ export class NewTemplatesClient {
|
|
|
75
75
|
}
|
|
76
76
|
/**
|
|
77
77
|
* @param {Corti.CreateTemplateRequest} request
|
|
78
|
-
* @param {
|
|
78
|
+
* @param {AlphaTemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
79
79
|
*
|
|
80
80
|
* @throws {@link Corti.BadRequestError}
|
|
81
81
|
*
|
|
82
82
|
* @example
|
|
83
|
-
* await client.
|
|
83
|
+
* await client.alphaTemplates.create({
|
|
84
84
|
* name: "name",
|
|
85
85
|
* language: "language",
|
|
86
86
|
* generation: {
|
|
@@ -143,22 +143,24 @@ export class NewTemplatesClient {
|
|
|
143
143
|
});
|
|
144
144
|
}
|
|
145
145
|
/**
|
|
146
|
-
* @param {string}
|
|
147
|
-
* @param {
|
|
146
|
+
* @param {string} templateID
|
|
147
|
+
* @param {AlphaTemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
148
|
+
*
|
|
149
|
+
* @throws {@link Corti.NotFoundError}
|
|
148
150
|
*
|
|
149
151
|
* @example
|
|
150
|
-
* await client.
|
|
152
|
+
* await client.alphaTemplates.get("templateID")
|
|
151
153
|
*/
|
|
152
|
-
get(
|
|
153
|
-
return core.HttpResponsePromise.fromPromise(this.__get(
|
|
154
|
+
get(templateID, requestOptions) {
|
|
155
|
+
return core.HttpResponsePromise.fromPromise(this.__get(templateID, requestOptions));
|
|
154
156
|
}
|
|
155
|
-
__get(
|
|
157
|
+
__get(templateID, requestOptions) {
|
|
156
158
|
return __awaiter(this, void 0, void 0, function* () {
|
|
157
159
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
158
160
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
159
161
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "Tenant-Name": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.tenantName) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.tenantName }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
160
162
|
const _response = yield core.fetcher({
|
|
161
|
-
url: core.url.join((_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment)).base, `alpha/templates/${core.url.encodePathParam(
|
|
163
|
+
url: core.url.join((_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment)).base, `alpha/templates/${core.url.encodePathParam(templateID)}`),
|
|
162
164
|
method: "GET",
|
|
163
165
|
headers: _headers,
|
|
164
166
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -169,35 +171,51 @@ export class NewTemplatesClient {
|
|
|
169
171
|
logging: this._options.logging,
|
|
170
172
|
});
|
|
171
173
|
if (_response.ok) {
|
|
172
|
-
return {
|
|
174
|
+
return {
|
|
175
|
+
data: serializers.Template.parseOrThrow(_response.body, {
|
|
176
|
+
unrecognizedObjectKeys: "passthrough",
|
|
177
|
+
allowUnrecognizedUnionMembers: true,
|
|
178
|
+
allowUnrecognizedEnumValues: true,
|
|
179
|
+
skipValidation: true,
|
|
180
|
+
breadcrumbsPrefix: ["response"],
|
|
181
|
+
}),
|
|
182
|
+
rawResponse: _response.rawResponse,
|
|
183
|
+
};
|
|
173
184
|
}
|
|
174
185
|
if (_response.error.reason === "status-code") {
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
186
|
+
switch (_response.error.statusCode) {
|
|
187
|
+
case 404:
|
|
188
|
+
throw new Corti.NotFoundError(_response.error.body, _response.rawResponse);
|
|
189
|
+
default:
|
|
190
|
+
throw new errors.CortiError({
|
|
191
|
+
statusCode: _response.error.statusCode,
|
|
192
|
+
body: _response.error.body,
|
|
193
|
+
rawResponse: _response.rawResponse,
|
|
194
|
+
});
|
|
195
|
+
}
|
|
180
196
|
}
|
|
181
|
-
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/alpha/templates/{
|
|
197
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/alpha/templates/{templateID}");
|
|
182
198
|
});
|
|
183
199
|
}
|
|
184
200
|
/**
|
|
185
|
-
* @param {string}
|
|
186
|
-
* @param {
|
|
201
|
+
* @param {string} templateID
|
|
202
|
+
* @param {AlphaTemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
203
|
+
*
|
|
204
|
+
* @throws {@link Corti.NotFoundError}
|
|
187
205
|
*
|
|
188
206
|
* @example
|
|
189
|
-
* await client.
|
|
207
|
+
* await client.alphaTemplates.delete("templateID")
|
|
190
208
|
*/
|
|
191
|
-
delete(
|
|
192
|
-
return core.HttpResponsePromise.fromPromise(this.__delete(
|
|
209
|
+
delete(templateID, requestOptions) {
|
|
210
|
+
return core.HttpResponsePromise.fromPromise(this.__delete(templateID, requestOptions));
|
|
193
211
|
}
|
|
194
|
-
__delete(
|
|
212
|
+
__delete(templateID, requestOptions) {
|
|
195
213
|
return __awaiter(this, void 0, void 0, function* () {
|
|
196
214
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
197
215
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
198
216
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "Tenant-Name": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.tenantName) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.tenantName }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
199
217
|
const _response = yield core.fetcher({
|
|
200
|
-
url: core.url.join((_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment)).base, `alpha/templates/${core.url.encodePathParam(
|
|
218
|
+
url: core.url.join((_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment)).base, `alpha/templates/${core.url.encodePathParam(templateID)}`),
|
|
201
219
|
method: "DELETE",
|
|
202
220
|
headers: _headers,
|
|
203
221
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -211,35 +229,50 @@ export class NewTemplatesClient {
|
|
|
211
229
|
return { data: undefined, rawResponse: _response.rawResponse };
|
|
212
230
|
}
|
|
213
231
|
if (_response.error.reason === "status-code") {
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
232
|
+
switch (_response.error.statusCode) {
|
|
233
|
+
case 404:
|
|
234
|
+
throw new Corti.NotFoundError(_response.error.body, _response.rawResponse);
|
|
235
|
+
default:
|
|
236
|
+
throw new errors.CortiError({
|
|
237
|
+
statusCode: _response.error.statusCode,
|
|
238
|
+
body: _response.error.body,
|
|
239
|
+
rawResponse: _response.rawResponse,
|
|
240
|
+
});
|
|
241
|
+
}
|
|
219
242
|
}
|
|
220
|
-
return handleNonStatusCodeError(_response.error, _response.rawResponse, "DELETE", "/alpha/templates/{
|
|
243
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "DELETE", "/alpha/templates/{templateID}");
|
|
221
244
|
});
|
|
222
245
|
}
|
|
223
246
|
/**
|
|
224
|
-
* @param {string}
|
|
225
|
-
* @param {
|
|
247
|
+
* @param {string} templateID
|
|
248
|
+
* @param {Corti.UpdateTemplateRequest} request
|
|
249
|
+
* @param {AlphaTemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
250
|
+
*
|
|
251
|
+
* @throws {@link Corti.BadRequestError}
|
|
252
|
+
* @throws {@link Corti.NotFoundError}
|
|
226
253
|
*
|
|
227
254
|
* @example
|
|
228
|
-
* await client.
|
|
255
|
+
* await client.alphaTemplates.update("templateID")
|
|
229
256
|
*/
|
|
230
|
-
update(
|
|
231
|
-
return core.HttpResponsePromise.fromPromise(this.__update(
|
|
257
|
+
update(templateID, request = {}, requestOptions) {
|
|
258
|
+
return core.HttpResponsePromise.fromPromise(this.__update(templateID, request, requestOptions));
|
|
232
259
|
}
|
|
233
|
-
__update(
|
|
234
|
-
return __awaiter(this,
|
|
260
|
+
__update(templateID_1) {
|
|
261
|
+
return __awaiter(this, arguments, void 0, function* (templateID, request = {}, requestOptions) {
|
|
235
262
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
236
263
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
237
264
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "Tenant-Name": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.tenantName) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.tenantName }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
238
265
|
const _response = yield core.fetcher({
|
|
239
|
-
url: core.url.join((_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment)).base, `alpha/templates/${core.url.encodePathParam(
|
|
266
|
+
url: core.url.join((_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment)).base, `alpha/templates/${core.url.encodePathParam(templateID)}`),
|
|
240
267
|
method: "PATCH",
|
|
241
268
|
headers: _headers,
|
|
269
|
+
contentType: "application/json",
|
|
242
270
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
271
|
+
requestType: "json",
|
|
272
|
+
body: serializers.UpdateTemplateRequest.jsonOrThrow(request, {
|
|
273
|
+
unrecognizedObjectKeys: "strip",
|
|
274
|
+
omitUndefined: true,
|
|
275
|
+
}),
|
|
243
276
|
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
244
277
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
245
278
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -247,16 +280,32 @@ export class NewTemplatesClient {
|
|
|
247
280
|
logging: this._options.logging,
|
|
248
281
|
});
|
|
249
282
|
if (_response.ok) {
|
|
250
|
-
return {
|
|
283
|
+
return {
|
|
284
|
+
data: serializers.Template.parseOrThrow(_response.body, {
|
|
285
|
+
unrecognizedObjectKeys: "passthrough",
|
|
286
|
+
allowUnrecognizedUnionMembers: true,
|
|
287
|
+
allowUnrecognizedEnumValues: true,
|
|
288
|
+
skipValidation: true,
|
|
289
|
+
breadcrumbsPrefix: ["response"],
|
|
290
|
+
}),
|
|
291
|
+
rawResponse: _response.rawResponse,
|
|
292
|
+
};
|
|
251
293
|
}
|
|
252
294
|
if (_response.error.reason === "status-code") {
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
295
|
+
switch (_response.error.statusCode) {
|
|
296
|
+
case 400:
|
|
297
|
+
throw new Corti.BadRequestError(_response.error.body, _response.rawResponse);
|
|
298
|
+
case 404:
|
|
299
|
+
throw new Corti.NotFoundError(_response.error.body, _response.rawResponse);
|
|
300
|
+
default:
|
|
301
|
+
throw new errors.CortiError({
|
|
302
|
+
statusCode: _response.error.statusCode,
|
|
303
|
+
body: _response.error.body,
|
|
304
|
+
rawResponse: _response.rawResponse,
|
|
305
|
+
});
|
|
306
|
+
}
|
|
258
307
|
}
|
|
259
|
-
return handleNonStatusCodeError(_response.error, _response.rawResponse, "PATCH", "/alpha/templates/{
|
|
308
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "PATCH", "/alpha/templates/{templateID}");
|
|
260
309
|
});
|
|
261
310
|
}
|
|
262
311
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests/index.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests/index.mjs";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @example
|
|
3
3
|
* {}
|
|
4
4
|
*/
|
|
5
|
-
export interface
|
|
5
|
+
export interface ListAlphaTemplatesRequest {
|
|
6
6
|
/** Filter templates by language (BCP 47 tag). Repeatable. */
|
|
7
7
|
lang?: string | string[];
|
|
8
8
|
/** Filter templates by label. Repeatable; matches templates that have any of the given labels. */
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
export * from "./agents/client/requests/index.mjs";
|
|
2
2
|
export * as agents from "./agents/index.mjs";
|
|
3
3
|
export * from "./agents/types/index.mjs";
|
|
4
|
+
export * from "./alphaSections/client/requests/index.mjs";
|
|
5
|
+
export * as alphaSections from "./alphaSections/index.mjs";
|
|
6
|
+
export * as alphaSectionVersions from "./alphaSectionVersions/index.mjs";
|
|
7
|
+
export * from "./alphaTemplates/client/requests/index.mjs";
|
|
8
|
+
export * as alphaTemplates from "./alphaTemplates/index.mjs";
|
|
9
|
+
export * from "./alphaTemplates/types/index.mjs";
|
|
10
|
+
export * from "./alphaTemplateVersions/client/requests/index.mjs";
|
|
11
|
+
export * as alphaTemplateVersions from "./alphaTemplateVersions/index.mjs";
|
|
12
|
+
export * from "./alphaTemplateVersions/types/index.mjs";
|
|
4
13
|
export * as auth from "./auth/index.mjs";
|
|
5
14
|
export * from "./auth/types/index.mjs";
|
|
6
15
|
export * from "./codes/client/requests/index.mjs";
|
|
@@ -12,13 +21,6 @@ export * as facts from "./facts/index.mjs";
|
|
|
12
21
|
export * from "./interactions/client/requests/index.mjs";
|
|
13
22
|
export * as interactions from "./interactions/index.mjs";
|
|
14
23
|
export * from "./interactions/types/index.mjs";
|
|
15
|
-
export * from "./newSections/client/requests/index.mjs";
|
|
16
|
-
export * as newSections from "./newSections/index.mjs";
|
|
17
|
-
export * as newSectionVersions from "./newSectionVersions/index.mjs";
|
|
18
|
-
export * from "./newTemplates/client/requests/index.mjs";
|
|
19
|
-
export * as newTemplates from "./newTemplates/index.mjs";
|
|
20
|
-
export * from "./newTemplates/types/index.mjs";
|
|
21
|
-
export * as newTemplateVersions from "./newTemplateVersions/index.mjs";
|
|
22
24
|
export * as recordings from "./recordings/index.mjs";
|
|
23
25
|
export * as stream from "./stream/index.mjs";
|
|
24
26
|
export * from "./templates/client/requests/index.mjs";
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
export * from "./agents/client/requests/index.mjs";
|
|
2
2
|
export * as agents from "./agents/index.mjs";
|
|
3
3
|
export * from "./agents/types/index.mjs";
|
|
4
|
+
export * from "./alphaSections/client/requests/index.mjs";
|
|
5
|
+
export * as alphaSections from "./alphaSections/index.mjs";
|
|
6
|
+
export * as alphaSectionVersions from "./alphaSectionVersions/index.mjs";
|
|
7
|
+
export * from "./alphaTemplates/client/requests/index.mjs";
|
|
8
|
+
export * as alphaTemplates from "./alphaTemplates/index.mjs";
|
|
9
|
+
export * from "./alphaTemplates/types/index.mjs";
|
|
10
|
+
export * from "./alphaTemplateVersions/client/requests/index.mjs";
|
|
11
|
+
export * as alphaTemplateVersions from "./alphaTemplateVersions/index.mjs";
|
|
12
|
+
export * from "./alphaTemplateVersions/types/index.mjs";
|
|
4
13
|
export * as auth from "./auth/index.mjs";
|
|
5
14
|
export * from "./auth/types/index.mjs";
|
|
6
15
|
export * from "./codes/client/requests/index.mjs";
|
|
@@ -12,13 +21,6 @@ export * as facts from "./facts/index.mjs";
|
|
|
12
21
|
export * from "./interactions/client/requests/index.mjs";
|
|
13
22
|
export * as interactions from "./interactions/index.mjs";
|
|
14
23
|
export * from "./interactions/types/index.mjs";
|
|
15
|
-
export * from "./newSections/client/requests/index.mjs";
|
|
16
|
-
export * as newSections from "./newSections/index.mjs";
|
|
17
|
-
export * as newSectionVersions from "./newSectionVersions/index.mjs";
|
|
18
|
-
export * from "./newTemplates/client/requests/index.mjs";
|
|
19
|
-
export * as newTemplates from "./newTemplates/index.mjs";
|
|
20
|
-
export * from "./newTemplates/types/index.mjs";
|
|
21
|
-
export * as newTemplateVersions from "./newTemplateVersions/index.mjs";
|
|
22
24
|
export * as recordings from "./recordings/index.mjs";
|
|
23
25
|
export * as stream from "./stream/index.mjs";
|
|
24
26
|
export * from "./templates/client/requests/index.mjs";
|
|
@@ -2,7 +2,7 @@ import type * as Corti from "../../../../api/index.mjs";
|
|
|
2
2
|
import * as core from "../../../../core/index.mjs";
|
|
3
3
|
import type * as serializers from "../../../index.mjs";
|
|
4
4
|
import { SectionVersion } from "../../../types/SectionVersion.mjs";
|
|
5
|
-
export declare const Response: core.serialization.Schema<serializers.
|
|
5
|
+
export declare const Response: core.serialization.Schema<serializers.alphaSectionVersions.list.Response.Raw, Corti.SectionVersion[]>;
|
|
6
6
|
export declare namespace Response {
|
|
7
7
|
type Raw = SectionVersion.Raw[];
|
|
8
8
|
}
|
|
@@ -2,7 +2,7 @@ import type * as Corti from "../../../../api/index.mjs";
|
|
|
2
2
|
import * as core from "../../../../core/index.mjs";
|
|
3
3
|
import type * as serializers from "../../../index.mjs";
|
|
4
4
|
import { Section } from "../../../types/Section.mjs";
|
|
5
|
-
export declare const Response: core.serialization.Schema<serializers.
|
|
5
|
+
export declare const Response: core.serialization.Schema<serializers.alphaSections.list.Response.Raw, Corti.Section[]>;
|
|
6
6
|
export declare namespace Response {
|
|
7
7
|
type Raw = Section.Raw[];
|
|
8
8
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type * as Corti from "../../../../api/index.mjs";
|
|
2
|
+
import * as core from "../../../../core/index.mjs";
|
|
3
|
+
import type * as serializers from "../../../index.mjs";
|
|
4
|
+
import { TemplateVersion } from "../../../types/TemplateVersion.mjs";
|
|
5
|
+
export declare const Response: core.serialization.Schema<serializers.alphaTemplateVersions.list.Response.Raw, Corti.TemplateVersion[]>;
|
|
6
|
+
export declare namespace Response {
|
|
7
|
+
type Raw = TemplateVersion.Raw[];
|
|
8
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as Corti from "../../../../../api/index.mjs";
|
|
2
|
+
import * as core from "../../../../../core/index.mjs";
|
|
3
|
+
import type * as serializers from "../../../../index.mjs";
|
|
4
|
+
import { CreateTemplateVersionRequestGeneration } from "../../types/CreateTemplateVersionRequestGeneration.mjs";
|
|
5
|
+
export declare const CreateTemplateVersionRequest: core.serialization.Schema<serializers.CreateTemplateVersionRequest.Raw, Corti.CreateTemplateVersionRequest>;
|
|
6
|
+
export declare namespace CreateTemplateVersionRequest {
|
|
7
|
+
interface Raw {
|
|
8
|
+
generation: CreateTemplateVersionRequestGeneration.Raw;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
import * as core from "../../../../../core/index.mjs";
|
|
3
|
+
import { CreateTemplateVersionRequestGeneration } from "../../types/CreateTemplateVersionRequestGeneration.mjs";
|
|
4
|
+
export const CreateTemplateVersionRequest = core.serialization.object({
|
|
5
|
+
generation: CreateTemplateVersionRequestGeneration,
|
|
6
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CreateTemplateVersionRequest } from "./CreateTemplateVersionRequest.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CreateTemplateVersionRequest } from "./CreateTemplateVersionRequest.mjs";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type * as Corti from "../../../../api/index.mjs";
|
|
2
|
+
import * as core from "../../../../core/index.mjs";
|
|
3
|
+
import type * as serializers from "../../../index.mjs";
|
|
4
|
+
import { TemplateInstructions } from "../../../types/TemplateInstructions.mjs";
|
|
5
|
+
import { TemplateVersionSectionRequest } from "../../../types/TemplateVersionSectionRequest.mjs";
|
|
6
|
+
export declare const CreateTemplateVersionRequestGeneration: core.serialization.ObjectSchema<serializers.CreateTemplateVersionRequestGeneration.Raw, Corti.CreateTemplateVersionRequestGeneration>;
|
|
7
|
+
export declare namespace CreateTemplateVersionRequestGeneration {
|
|
8
|
+
interface Raw {
|
|
9
|
+
instructions: TemplateInstructions.Raw;
|
|
10
|
+
sections?: TemplateVersionSectionRequest.Raw[] | null;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
import * as core from "../../../../core/index.mjs";
|
|
3
|
+
import { TemplateInstructions } from "../../../types/TemplateInstructions.mjs";
|
|
4
|
+
import { TemplateVersionSectionRequest } from "../../../types/TemplateVersionSectionRequest.mjs";
|
|
5
|
+
export const CreateTemplateVersionRequestGeneration = core.serialization.object({
|
|
6
|
+
instructions: TemplateInstructions,
|
|
7
|
+
sections: core.serialization.list(TemplateVersionSectionRequest).optional(),
|
|
8
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./CreateTemplateVersionRequestGeneration.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./CreateTemplateVersionRequestGeneration.mjs";
|
|
@@ -2,7 +2,7 @@ import type * as Corti from "../../../../api/index.mjs";
|
|
|
2
2
|
import * as core from "../../../../core/index.mjs";
|
|
3
3
|
import type * as serializers from "../../../index.mjs";
|
|
4
4
|
import { Template } from "../../../types/Template.mjs";
|
|
5
|
-
export declare const Response: core.serialization.Schema<serializers.
|
|
5
|
+
export declare const Response: core.serialization.Schema<serializers.alphaTemplates.list.Response.Raw, Corti.Template[]>;
|
|
6
6
|
export declare namespace Response {
|
|
7
7
|
type Raw = Template.Raw[];
|
|
8
8
|
}
|
package/dist/esm/serialization/resources/alphaTemplates/client/requests/UpdateTemplateRequest.d.mts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type * as Corti from "../../../../../api/index.mjs";
|
|
2
|
+
import * as core from "../../../../../core/index.mjs";
|
|
3
|
+
import type * as serializers from "../../../../index.mjs";
|
|
4
|
+
export declare const UpdateTemplateRequest: core.serialization.Schema<serializers.UpdateTemplateRequest.Raw, Corti.UpdateTemplateRequest>;
|
|
5
|
+
export declare namespace UpdateTemplateRequest {
|
|
6
|
+
interface Raw {
|
|
7
|
+
name?: string | null;
|
|
8
|
+
description?: string | null;
|
|
9
|
+
language?: string | null;
|
|
10
|
+
labels?: string[] | null;
|
|
11
|
+
}
|
|
12
|
+
}
|
package/dist/esm/serialization/resources/alphaTemplates/client/requests/UpdateTemplateRequest.mjs
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
import * as core from "../../../../../core/index.mjs";
|
|
3
|
+
export const UpdateTemplateRequest = core.serialization.object({
|
|
4
|
+
name: core.serialization.string().optional(),
|
|
5
|
+
description: core.serialization.string().optional(),
|
|
6
|
+
language: core.serialization.string().optional(),
|
|
7
|
+
labels: core.serialization.list(core.serialization.string()).optional(),
|
|
8
|
+
});
|