@corti/sdk 1.2.0-rc → 1.2.0-templates-beta.1
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 +42 -0
- package/dist/cjs/Client.js +221 -8
- package/dist/cjs/api/resources/index.d.ts +5 -0
- package/dist/cjs/api/resources/index.js +6 -1
- package/dist/cjs/api/resources/sectionVersions/client/Client.d.ts +81 -0
- package/dist/cjs/api/resources/sectionVersions/client/Client.js +346 -0
- package/dist/cjs/api/resources/sectionVersions/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/sectionVersions/client/index.js +2 -0
- package/dist/cjs/api/resources/sectionVersions/index.d.ts +1 -0
- package/dist/cjs/api/resources/sectionVersions/index.js +17 -0
- package/dist/cjs/api/resources/sections/client/Client.d.ts +48 -0
- package/dist/cjs/api/resources/sections/client/Client.js +225 -0
- package/dist/cjs/api/resources/sections/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/sections/client/index.js +17 -0
- package/dist/cjs/api/resources/sections/client/requests/UpdateSectionRequest.d.ts +10 -0
- package/dist/cjs/api/resources/sections/client/requests/UpdateSectionRequest.js +3 -0
- package/dist/cjs/api/resources/sections/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/sections/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/sections/index.d.ts +1 -0
- package/dist/cjs/api/resources/sections/index.js +17 -0
- package/dist/cjs/api/resources/templateVersions/client/Client.d.ts +75 -0
- package/dist/cjs/api/resources/templateVersions/client/Client.js +340 -0
- package/dist/cjs/api/resources/templateVersions/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/templateVersions/client/index.js +17 -0
- package/dist/cjs/api/resources/templateVersions/client/requests/CreateTemplateVersionRequest.d.ts +9 -0
- package/dist/cjs/api/resources/templateVersions/client/requests/CreateTemplateVersionRequest.js +3 -0
- package/dist/cjs/api/resources/templateVersions/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/templateVersions/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/templateVersions/index.d.ts +1 -0
- package/dist/cjs/api/resources/templateVersions/index.js +17 -0
- package/dist/cjs/api/resources/templates/client/Client.d.ts +35 -0
- package/dist/cjs/api/resources/templates/client/Client.js +166 -0
- package/dist/cjs/api/resources/templates/client/requests/UpdateTemplateRequest.d.ts +10 -0
- package/dist/cjs/api/resources/templates/client/requests/UpdateTemplateRequest.js +3 -0
- package/dist/cjs/api/resources/templates/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/types/BoolNode.d.ts +7 -0
- package/dist/cjs/api/types/BoolNode.js +3 -0
- package/dist/cjs/api/types/CreateSectionVersionRequest.d.ts +7 -0
- package/dist/cjs/api/types/CreateSectionVersionRequest.js +3 -0
- package/dist/cjs/api/types/DictNode.d.ts +12 -0
- package/dist/cjs/api/types/DictNode.js +3 -0
- package/dist/cjs/api/types/FieldDefinition.d.ts +8 -0
- package/dist/cjs/api/types/FieldDefinition.js +3 -0
- package/dist/cjs/api/types/FloatNode.d.ts +13 -0
- package/dist/cjs/api/types/FloatNode.js +3 -0
- package/dist/cjs/api/types/IntegerNode.d.ts +13 -0
- package/dist/cjs/api/types/IntegerNode.js +3 -0
- package/dist/cjs/api/types/ListNode.d.ts +13 -0
- package/dist/cjs/api/types/ListNode.js +3 -0
- package/dist/cjs/api/types/OutputSchema.d.ts +2 -0
- package/dist/cjs/api/types/OutputSchema.js +3 -0
- package/dist/cjs/api/types/Section.d.ts +13 -0
- package/dist/cjs/api/types/Section.js +3 -0
- package/dist/cjs/api/types/SectionInstructions.d.ts +6 -0
- package/dist/cjs/api/types/SectionInstructions.js +3 -0
- package/dist/cjs/api/types/SectionVersion.d.ts +11 -0
- package/dist/cjs/api/types/SectionVersion.js +3 -0
- package/dist/cjs/api/types/StatusResponse.d.ts +3 -0
- package/dist/cjs/api/types/StatusResponse.js +3 -0
- package/dist/cjs/api/types/StreamConfigRetentionPolicy.d.ts +6 -0
- package/dist/cjs/api/types/StreamConfigRetentionPolicy.js +9 -0
- package/dist/cjs/api/types/StreamConfigStatusMessage.d.ts +2 -0
- package/dist/cjs/api/types/StringNode.d.ts +11 -0
- package/dist/cjs/api/types/StringNode.js +3 -0
- package/dist/cjs/api/types/Template.d.ts +13 -0
- package/dist/cjs/api/types/Template.js +3 -0
- package/dist/cjs/api/types/TemplateInstructions.d.ts +4 -0
- package/dist/cjs/api/types/TemplateInstructions.js +3 -0
- package/dist/cjs/api/types/TemplateVersion.d.ts +8 -0
- package/dist/cjs/api/types/TemplateVersion.js +3 -0
- package/dist/cjs/api/types/TemplateVersionSectionRequest.d.ts +7 -0
- package/dist/cjs/api/types/TemplateVersionSectionRequest.js +3 -0
- package/dist/cjs/api/types/TranscribeConfig.d.ts +2 -0
- package/dist/cjs/api/types/TranscribeConfigStatusMessage.d.ts +4 -2
- package/dist/cjs/api/types/index.d.ts +19 -0
- package/dist/cjs/api/types/index.js +19 -0
- package/dist/cjs/custom/CortiClient.js +2 -2
- package/dist/cjs/custom/auth/CortiAuth.js +2 -2
- package/dist/cjs/custom/stream/CustomStream.js +2 -2
- package/dist/cjs/custom/transcribe/CustomTranscribe.js +3 -3
- package/dist/cjs/serialization/resources/index.d.ts +7 -0
- package/dist/cjs/serialization/resources/index.js +8 -1
- package/dist/cjs/serialization/resources/sectionVersions/client/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/sectionVersions/client/index.js +37 -0
- package/dist/cjs/serialization/resources/sectionVersions/client/list.d.ts +8 -0
- package/dist/cjs/serialization/resources/sectionVersions/client/list.js +40 -0
- package/dist/cjs/serialization/resources/sectionVersions/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/sectionVersions/index.js +17 -0
- package/dist/cjs/serialization/resources/sections/client/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/sections/client/index.js +17 -0
- package/dist/cjs/serialization/resources/sections/client/requests/UpdateSectionRequest.d.ts +12 -0
- package/dist/cjs/serialization/resources/sections/client/requests/UpdateSectionRequest.js +44 -0
- package/dist/cjs/serialization/resources/sections/client/requests/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/sections/client/requests/index.js +5 -0
- package/dist/cjs/serialization/resources/sections/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/sections/index.js +17 -0
- package/dist/cjs/serialization/resources/templateVersions/client/index.d.ts +2 -0
- package/dist/cjs/serialization/resources/templateVersions/client/index.js +41 -0
- package/dist/cjs/serialization/resources/templateVersions/client/list.d.ts +8 -0
- package/dist/cjs/serialization/resources/templateVersions/client/list.js +40 -0
- package/dist/cjs/serialization/resources/templateVersions/client/requests/CreateTemplateVersionRequest.d.ts +12 -0
- package/dist/cjs/serialization/resources/templateVersions/client/requests/CreateTemplateVersionRequest.js +44 -0
- package/dist/cjs/serialization/resources/templateVersions/client/requests/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/templateVersions/client/requests/index.js +5 -0
- package/dist/cjs/serialization/resources/templateVersions/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/templateVersions/index.js +17 -0
- package/dist/cjs/serialization/resources/templates/client/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/templates/client/index.js +17 -0
- package/dist/cjs/serialization/resources/templates/client/requests/UpdateTemplateRequest.d.ts +12 -0
- package/dist/cjs/serialization/resources/templates/client/requests/UpdateTemplateRequest.js +44 -0
- package/dist/cjs/serialization/resources/templates/client/requests/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/templates/client/requests/index.js +5 -0
- package/dist/cjs/serialization/resources/templates/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/templates/index.js +17 -0
- package/dist/cjs/serialization/types/BoolNode.d.ts +11 -0
- package/dist/cjs/serialization/types/BoolNode.js +43 -0
- package/dist/cjs/serialization/types/CreateSectionVersionRequest.d.ts +12 -0
- package/dist/cjs/serialization/types/CreateSectionVersionRequest.js +45 -0
- package/dist/cjs/serialization/types/DictNode.d.ts +13 -0
- package/dist/cjs/serialization/types/DictNode.js +46 -0
- package/dist/cjs/serialization/types/FieldDefinition.d.ts +11 -0
- package/dist/cjs/serialization/types/FieldDefinition.js +44 -0
- package/dist/cjs/serialization/types/FloatNode.d.ts +14 -0
- package/dist/cjs/serialization/types/FloatNode.js +46 -0
- package/dist/cjs/serialization/types/IntegerNode.d.ts +14 -0
- package/dist/cjs/serialization/types/IntegerNode.js +46 -0
- package/dist/cjs/serialization/types/ListNode.d.ts +14 -0
- package/dist/cjs/serialization/types/ListNode.js +47 -0
- package/dist/cjs/serialization/types/OutputSchema.d.ts +11 -0
- package/dist/cjs/serialization/types/OutputSchema.js +51 -0
- package/dist/cjs/serialization/types/Section.d.ts +18 -0
- package/dist/cjs/serialization/types/Section.js +50 -0
- package/dist/cjs/serialization/types/SectionInstructions.d.ts +10 -0
- package/dist/cjs/serialization/types/SectionInstructions.js +42 -0
- package/dist/cjs/serialization/types/SectionVersion.d.ts +14 -0
- package/dist/cjs/serialization/types/SectionVersion.js +47 -0
- package/dist/cjs/serialization/types/StatusResponse.d.ts +9 -0
- package/dist/cjs/serialization/types/StatusResponse.js +41 -0
- package/dist/cjs/serialization/types/StreamConfigRetentionPolicy.d.ts +7 -0
- package/dist/cjs/serialization/types/StreamConfigRetentionPolicy.js +39 -0
- package/dist/cjs/serialization/types/StreamConfigStatusMessage.d.ts +2 -0
- package/dist/cjs/serialization/types/StreamConfigStatusMessage.js +2 -0
- package/dist/cjs/serialization/types/StringNode.d.ts +13 -0
- package/dist/cjs/serialization/types/StringNode.js +45 -0
- package/dist/cjs/serialization/types/Template.d.ts +19 -0
- package/dist/cjs/serialization/types/Template.js +51 -0
- package/dist/cjs/serialization/types/TemplateInstructions.d.ts +9 -0
- package/dist/cjs/serialization/types/TemplateInstructions.js +41 -0
- package/dist/cjs/serialization/types/TemplateVersion.d.ts +14 -0
- package/dist/cjs/serialization/types/TemplateVersion.js +46 -0
- package/dist/cjs/serialization/types/TemplateVersionSectionRequest.d.ts +11 -0
- package/dist/cjs/serialization/types/TemplateVersionSectionRequest.js +43 -0
- package/dist/cjs/serialization/types/TranscribeConfig.d.ts +1 -0
- package/dist/cjs/serialization/types/TranscribeConfig.js +1 -0
- package/dist/cjs/serialization/types/TranscribeConfigStatusMessage.d.ts +3 -1
- package/dist/cjs/serialization/types/TranscribeConfigStatusMessage.js +3 -1
- package/dist/cjs/serialization/types/index.d.ts +19 -0
- package/dist/cjs/serialization/types/index.js +19 -0
- 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 +42 -0
- package/dist/esm/Client.mjs +180 -0
- package/dist/esm/api/resources/index.d.mts +5 -0
- package/dist/esm/api/resources/index.mjs +5 -0
- package/dist/esm/api/resources/sectionVersions/client/Client.d.mts +81 -0
- package/dist/esm/api/resources/sectionVersions/client/Client.mjs +309 -0
- package/dist/esm/api/resources/sectionVersions/client/index.d.mts +1 -0
- package/dist/esm/api/resources/sectionVersions/client/index.mjs +1 -0
- package/dist/esm/api/resources/sectionVersions/index.d.mts +1 -0
- package/dist/esm/api/resources/sectionVersions/index.mjs +1 -0
- package/dist/esm/api/resources/sections/client/Client.d.mts +48 -0
- package/dist/esm/api/resources/sections/client/Client.mjs +188 -0
- package/dist/esm/api/resources/sections/client/index.d.mts +1 -0
- package/dist/esm/api/resources/sections/client/index.mjs +1 -0
- package/dist/esm/api/resources/sections/client/requests/UpdateSectionRequest.d.mts +10 -0
- package/dist/esm/api/resources/sections/client/requests/UpdateSectionRequest.mjs +2 -0
- package/dist/esm/api/resources/sections/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/sections/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/sections/index.d.mts +1 -0
- package/dist/esm/api/resources/sections/index.mjs +1 -0
- package/dist/esm/api/resources/templateVersions/client/Client.d.mts +75 -0
- package/dist/esm/api/resources/templateVersions/client/Client.mjs +303 -0
- package/dist/esm/api/resources/templateVersions/client/index.d.mts +1 -0
- package/dist/esm/api/resources/templateVersions/client/index.mjs +1 -0
- package/dist/esm/api/resources/templateVersions/client/requests/CreateTemplateVersionRequest.d.mts +9 -0
- package/dist/esm/api/resources/templateVersions/client/requests/CreateTemplateVersionRequest.mjs +2 -0
- package/dist/esm/api/resources/templateVersions/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/templateVersions/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/templateVersions/index.d.mts +1 -0
- package/dist/esm/api/resources/templateVersions/index.mjs +1 -0
- package/dist/esm/api/resources/templates/client/Client.d.mts +35 -0
- package/dist/esm/api/resources/templates/client/Client.mjs +166 -0
- package/dist/esm/api/resources/templates/client/requests/UpdateTemplateRequest.d.mts +10 -0
- package/dist/esm/api/resources/templates/client/requests/UpdateTemplateRequest.mjs +2 -0
- package/dist/esm/api/resources/templates/client/requests/index.d.mts +1 -0
- package/dist/esm/api/types/BoolNode.d.mts +7 -0
- package/dist/esm/api/types/BoolNode.mjs +2 -0
- package/dist/esm/api/types/CreateSectionVersionRequest.d.mts +7 -0
- package/dist/esm/api/types/CreateSectionVersionRequest.mjs +2 -0
- package/dist/esm/api/types/DictNode.d.mts +12 -0
- package/dist/esm/api/types/DictNode.mjs +2 -0
- package/dist/esm/api/types/FieldDefinition.d.mts +8 -0
- package/dist/esm/api/types/FieldDefinition.mjs +2 -0
- package/dist/esm/api/types/FloatNode.d.mts +13 -0
- package/dist/esm/api/types/FloatNode.mjs +2 -0
- package/dist/esm/api/types/IntegerNode.d.mts +13 -0
- package/dist/esm/api/types/IntegerNode.mjs +2 -0
- package/dist/esm/api/types/ListNode.d.mts +13 -0
- package/dist/esm/api/types/ListNode.mjs +2 -0
- package/dist/esm/api/types/OutputSchema.d.mts +2 -0
- package/dist/esm/api/types/OutputSchema.mjs +2 -0
- package/dist/esm/api/types/Section.d.mts +13 -0
- package/dist/esm/api/types/Section.mjs +2 -0
- package/dist/esm/api/types/SectionInstructions.d.mts +6 -0
- package/dist/esm/api/types/SectionInstructions.mjs +2 -0
- package/dist/esm/api/types/SectionVersion.d.mts +11 -0
- package/dist/esm/api/types/SectionVersion.mjs +2 -0
- package/dist/esm/api/types/StatusResponse.d.mts +3 -0
- package/dist/esm/api/types/StatusResponse.mjs +2 -0
- package/dist/esm/api/types/StreamConfigRetentionPolicy.d.mts +6 -0
- package/dist/esm/api/types/StreamConfigRetentionPolicy.mjs +6 -0
- package/dist/esm/api/types/StreamConfigStatusMessage.d.mts +2 -0
- package/dist/esm/api/types/StringNode.d.mts +11 -0
- package/dist/esm/api/types/StringNode.mjs +2 -0
- package/dist/esm/api/types/Template.d.mts +13 -0
- package/dist/esm/api/types/Template.mjs +2 -0
- package/dist/esm/api/types/TemplateInstructions.d.mts +4 -0
- package/dist/esm/api/types/TemplateInstructions.mjs +2 -0
- package/dist/esm/api/types/TemplateVersion.d.mts +8 -0
- package/dist/esm/api/types/TemplateVersion.mjs +2 -0
- package/dist/esm/api/types/TemplateVersionSectionRequest.d.mts +7 -0
- package/dist/esm/api/types/TemplateVersionSectionRequest.mjs +2 -0
- package/dist/esm/api/types/TranscribeConfig.d.mts +2 -0
- package/dist/esm/api/types/TranscribeConfigStatusMessage.d.mts +4 -2
- package/dist/esm/api/types/index.d.mts +19 -0
- package/dist/esm/api/types/index.mjs +19 -0
- package/dist/esm/custom/CortiClient.mjs +2 -2
- package/dist/esm/custom/auth/CortiAuth.mjs +2 -2
- package/dist/esm/custom/stream/CustomStream.mjs +2 -2
- package/dist/esm/custom/transcribe/CustomTranscribe.mjs +3 -3
- package/dist/esm/serialization/resources/index.d.mts +7 -0
- package/dist/esm/serialization/resources/index.mjs +7 -0
- package/dist/esm/serialization/resources/sectionVersions/client/index.d.mts +1 -0
- package/dist/esm/serialization/resources/sectionVersions/client/index.mjs +1 -0
- package/dist/esm/serialization/resources/sectionVersions/client/list.d.mts +8 -0
- package/dist/esm/serialization/resources/sectionVersions/client/list.mjs +4 -0
- package/dist/esm/serialization/resources/sectionVersions/index.d.mts +1 -0
- package/dist/esm/serialization/resources/sectionVersions/index.mjs +1 -0
- package/dist/esm/serialization/resources/sections/client/index.d.mts +1 -0
- package/dist/esm/serialization/resources/sections/client/index.mjs +1 -0
- package/dist/esm/serialization/resources/sections/client/requests/UpdateSectionRequest.d.mts +12 -0
- package/dist/esm/serialization/resources/sections/client/requests/UpdateSectionRequest.mjs +8 -0
- package/dist/esm/serialization/resources/sections/client/requests/index.d.mts +1 -0
- package/dist/esm/serialization/resources/sections/client/requests/index.mjs +1 -0
- package/dist/esm/serialization/resources/sections/index.d.mts +1 -0
- package/dist/esm/serialization/resources/sections/index.mjs +1 -0
- package/dist/esm/serialization/resources/templateVersions/client/index.d.mts +2 -0
- package/dist/esm/serialization/resources/templateVersions/client/index.mjs +2 -0
- package/dist/esm/serialization/resources/templateVersions/client/list.d.mts +8 -0
- package/dist/esm/serialization/resources/templateVersions/client/list.mjs +4 -0
- package/dist/esm/serialization/resources/templateVersions/client/requests/CreateTemplateVersionRequest.d.mts +12 -0
- package/dist/esm/serialization/resources/templateVersions/client/requests/CreateTemplateVersionRequest.mjs +8 -0
- package/dist/esm/serialization/resources/templateVersions/client/requests/index.d.mts +1 -0
- package/dist/esm/serialization/resources/templateVersions/client/requests/index.mjs +1 -0
- package/dist/esm/serialization/resources/templateVersions/index.d.mts +1 -0
- package/dist/esm/serialization/resources/templateVersions/index.mjs +1 -0
- package/dist/esm/serialization/resources/templates/client/index.d.mts +1 -0
- package/dist/esm/serialization/resources/templates/client/index.mjs +1 -0
- package/dist/esm/serialization/resources/templates/client/requests/UpdateTemplateRequest.d.mts +12 -0
- package/dist/esm/serialization/resources/templates/client/requests/UpdateTemplateRequest.mjs +8 -0
- package/dist/esm/serialization/resources/templates/client/requests/index.d.mts +1 -0
- package/dist/esm/serialization/resources/templates/client/requests/index.mjs +1 -0
- package/dist/esm/serialization/resources/templates/index.d.mts +1 -0
- package/dist/esm/serialization/resources/templates/index.mjs +1 -0
- package/dist/esm/serialization/types/BoolNode.d.mts +11 -0
- package/dist/esm/serialization/types/BoolNode.mjs +7 -0
- package/dist/esm/serialization/types/CreateSectionVersionRequest.d.mts +12 -0
- package/dist/esm/serialization/types/CreateSectionVersionRequest.mjs +9 -0
- package/dist/esm/serialization/types/DictNode.d.mts +13 -0
- package/dist/esm/serialization/types/DictNode.mjs +10 -0
- package/dist/esm/serialization/types/FieldDefinition.d.mts +11 -0
- package/dist/esm/serialization/types/FieldDefinition.mjs +8 -0
- package/dist/esm/serialization/types/FloatNode.d.mts +14 -0
- package/dist/esm/serialization/types/FloatNode.mjs +10 -0
- package/dist/esm/serialization/types/IntegerNode.d.mts +14 -0
- package/dist/esm/serialization/types/IntegerNode.mjs +10 -0
- package/dist/esm/serialization/types/ListNode.d.mts +14 -0
- package/dist/esm/serialization/types/ListNode.mjs +11 -0
- package/dist/esm/serialization/types/OutputSchema.d.mts +11 -0
- package/dist/esm/serialization/types/OutputSchema.mjs +15 -0
- package/dist/esm/serialization/types/Section.d.mts +18 -0
- package/dist/esm/serialization/types/Section.mjs +14 -0
- package/dist/esm/serialization/types/SectionInstructions.d.mts +10 -0
- package/dist/esm/serialization/types/SectionInstructions.mjs +6 -0
- package/dist/esm/serialization/types/SectionVersion.d.mts +14 -0
- package/dist/esm/serialization/types/SectionVersion.mjs +11 -0
- package/dist/esm/serialization/types/StatusResponse.d.mts +9 -0
- package/dist/esm/serialization/types/StatusResponse.mjs +5 -0
- package/dist/esm/serialization/types/StreamConfigRetentionPolicy.d.mts +7 -0
- package/dist/esm/serialization/types/StreamConfigRetentionPolicy.mjs +3 -0
- package/dist/esm/serialization/types/StreamConfigStatusMessage.d.mts +2 -0
- package/dist/esm/serialization/types/StreamConfigStatusMessage.mjs +2 -0
- package/dist/esm/serialization/types/StringNode.d.mts +13 -0
- package/dist/esm/serialization/types/StringNode.mjs +9 -0
- package/dist/esm/serialization/types/Template.d.mts +19 -0
- package/dist/esm/serialization/types/Template.mjs +15 -0
- package/dist/esm/serialization/types/TemplateInstructions.d.mts +9 -0
- package/dist/esm/serialization/types/TemplateInstructions.mjs +5 -0
- package/dist/esm/serialization/types/TemplateVersion.d.mts +14 -0
- package/dist/esm/serialization/types/TemplateVersion.mjs +10 -0
- package/dist/esm/serialization/types/TemplateVersionSectionRequest.d.mts +11 -0
- package/dist/esm/serialization/types/TemplateVersionSectionRequest.mjs +7 -0
- package/dist/esm/serialization/types/TranscribeConfig.d.mts +1 -0
- package/dist/esm/serialization/types/TranscribeConfig.mjs +1 -0
- package/dist/esm/serialization/types/TranscribeConfigStatusMessage.d.mts +3 -1
- package/dist/esm/serialization/types/TranscribeConfigStatusMessage.mjs +3 -1
- package/dist/esm/serialization/types/index.d.mts +19 -0
- package/dist/esm/serialization/types/index.mjs +19 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
package/dist/cjs/BaseClient.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export type BaseClientOptions = {
|
|
|
6
6
|
/** Specify a custom URL to connect the client to. */
|
|
7
7
|
baseUrl?: core.Supplier<string>;
|
|
8
8
|
/** Override the Tenant-Name header */
|
|
9
|
-
tenantName
|
|
9
|
+
tenantName?: core.Supplier<string | undefined>;
|
|
10
10
|
/** Additional headers to include in requests. */
|
|
11
11
|
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
12
12
|
/** The default maximum time to wait for a response in seconds. */
|
|
@@ -26,7 +26,7 @@ export interface BaseRequestOptions {
|
|
|
26
26
|
/** A hook to abort the request. */
|
|
27
27
|
abortSignal?: AbortSignal;
|
|
28
28
|
/** Override the Tenant-Name header */
|
|
29
|
-
tenantName?: string;
|
|
29
|
+
tenantName?: string | undefined;
|
|
30
30
|
/** Additional query string parameters to include in the request. */
|
|
31
31
|
queryParams?: Record<string, unknown>;
|
|
32
32
|
/** Additional headers to include in the request. */
|
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
|
|
|
43
43
|
const headers = (0, headers_js_1.mergeHeaders)({
|
|
44
44
|
"X-Fern-Language": "JavaScript",
|
|
45
45
|
"X-Fern-SDK-Name": "@corti/sdk",
|
|
46
|
-
"X-Fern-SDK-Version": "1.2.0-
|
|
47
|
-
"User-Agent": "@corti/sdk/1.2.0-
|
|
46
|
+
"X-Fern-SDK-Version": "1.2.0-templates-beta.1",
|
|
47
|
+
"User-Agent": "@corti/sdk/1.2.0-templates-beta.1",
|
|
48
48
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
49
49
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
50
50
|
"Tenant-Name": options === null || options === void 0 ? void 0 : options.tenantName,
|
package/dist/cjs/Client.d.ts
CHANGED
|
@@ -5,12 +5,16 @@ import { DocumentsClient } from "./api/resources/documents/client/Client.js";
|
|
|
5
5
|
import { FactsClient } from "./api/resources/facts/client/Client.js";
|
|
6
6
|
import { InteractionsClient } from "./api/resources/interactions/client/Client.js";
|
|
7
7
|
import { RecordingsClient } from "./api/resources/recordings/client/Client.js";
|
|
8
|
+
import { SectionsClient } from "./api/resources/sections/client/Client.js";
|
|
9
|
+
import { SectionVersionsClient } from "./api/resources/sectionVersions/client/Client.js";
|
|
8
10
|
import { StreamClient } from "./api/resources/stream/client/Client.js";
|
|
9
11
|
import { TemplatesClient } from "./api/resources/templates/client/Client.js";
|
|
12
|
+
import { TemplateVersionsClient } from "./api/resources/templateVersions/client/Client.js";
|
|
10
13
|
import { TranscribeClient } from "./api/resources/transcribe/client/Client.js";
|
|
11
14
|
import { TranscriptsClient } from "./api/resources/transcripts/client/Client.js";
|
|
12
15
|
import type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.js";
|
|
13
16
|
import { type NormalizedClientOptionsWithAuth } from "./BaseClient.js";
|
|
17
|
+
import * as core from "./core/index.js";
|
|
14
18
|
export declare namespace CortiClient {
|
|
15
19
|
type Options = BaseClientOptions;
|
|
16
20
|
interface RequestOptions extends BaseRequestOptions {
|
|
@@ -26,6 +30,9 @@ export declare class CortiClient {
|
|
|
26
30
|
protected _documents: DocumentsClient | undefined;
|
|
27
31
|
protected _templates: TemplatesClient | undefined;
|
|
28
32
|
protected _codes: CodesClient | undefined;
|
|
33
|
+
protected _templateVersions: TemplateVersionsClient | undefined;
|
|
34
|
+
protected _sections: SectionsClient | undefined;
|
|
35
|
+
protected _sectionVersions: SectionVersionsClient | undefined;
|
|
29
36
|
protected _agents: AgentsClient | undefined;
|
|
30
37
|
protected _stream: StreamClient | undefined;
|
|
31
38
|
protected _transcribe: TranscribeClient | undefined;
|
|
@@ -38,7 +45,42 @@ export declare class CortiClient {
|
|
|
38
45
|
get documents(): DocumentsClient;
|
|
39
46
|
get templates(): TemplatesClient;
|
|
40
47
|
get codes(): CodesClient;
|
|
48
|
+
get templateVersions(): TemplateVersionsClient;
|
|
49
|
+
get sections(): SectionsClient;
|
|
50
|
+
get sectionVersions(): SectionVersionsClient;
|
|
41
51
|
get agents(): AgentsClient;
|
|
42
52
|
get stream(): StreamClient;
|
|
43
53
|
get transcribe(): TranscribeClient;
|
|
54
|
+
/**
|
|
55
|
+
* @param {CortiClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* await client.getNewTemplates()
|
|
59
|
+
*/
|
|
60
|
+
getNewTemplates(requestOptions?: CortiClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
61
|
+
private __getNewTemplates;
|
|
62
|
+
/**
|
|
63
|
+
* @param {CortiClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* await client.postNewTemplates()
|
|
67
|
+
*/
|
|
68
|
+
postNewTemplates(requestOptions?: CortiClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
69
|
+
private __postNewTemplates;
|
|
70
|
+
/**
|
|
71
|
+
* @param {CortiClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
72
|
+
*
|
|
73
|
+
* @example
|
|
74
|
+
* await client.getNewSections()
|
|
75
|
+
*/
|
|
76
|
+
getNewSections(requestOptions?: CortiClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
77
|
+
private __getNewSections;
|
|
78
|
+
/**
|
|
79
|
+
* @param {CortiClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
80
|
+
*
|
|
81
|
+
* @example
|
|
82
|
+
* await client.postNewSections()
|
|
83
|
+
*/
|
|
84
|
+
postNewSections(requestOptions?: CortiClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
85
|
+
private __postNewSections;
|
|
44
86
|
}
|
package/dist/cjs/Client.js
CHANGED
|
@@ -1,5 +1,47 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
37
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
38
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
39
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
40
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
41
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
42
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
43
|
+
});
|
|
44
|
+
};
|
|
3
45
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
46
|
exports.CortiClient = void 0;
|
|
5
47
|
const Client_js_1 = require("./api/resources/agents/client/Client.js");
|
|
@@ -9,11 +51,18 @@ const Client_js_4 = require("./api/resources/documents/client/Client.js");
|
|
|
9
51
|
const Client_js_5 = require("./api/resources/facts/client/Client.js");
|
|
10
52
|
const Client_js_6 = require("./api/resources/interactions/client/Client.js");
|
|
11
53
|
const Client_js_7 = require("./api/resources/recordings/client/Client.js");
|
|
12
|
-
const Client_js_8 = require("./api/resources/
|
|
13
|
-
const Client_js_9 = require("./api/resources/
|
|
14
|
-
const Client_js_10 = require("./api/resources/
|
|
15
|
-
const Client_js_11 = require("./api/resources/
|
|
54
|
+
const Client_js_8 = require("./api/resources/sections/client/Client.js");
|
|
55
|
+
const Client_js_9 = require("./api/resources/sectionVersions/client/Client.js");
|
|
56
|
+
const Client_js_10 = require("./api/resources/stream/client/Client.js");
|
|
57
|
+
const Client_js_11 = require("./api/resources/templates/client/Client.js");
|
|
58
|
+
const Client_js_12 = require("./api/resources/templateVersions/client/Client.js");
|
|
59
|
+
const Client_js_13 = require("./api/resources/transcribe/client/Client.js");
|
|
60
|
+
const Client_js_14 = require("./api/resources/transcripts/client/Client.js");
|
|
16
61
|
const BaseClient_js_1 = require("./BaseClient.js");
|
|
62
|
+
const headers_js_1 = require("./core/headers.js");
|
|
63
|
+
const core = __importStar(require("./core/index.js"));
|
|
64
|
+
const handleNonStatusCodeError_js_1 = require("./errors/handleNonStatusCodeError.js");
|
|
65
|
+
const errors = __importStar(require("./errors/index.js"));
|
|
17
66
|
class CortiClient {
|
|
18
67
|
constructor(options) {
|
|
19
68
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
@@ -32,7 +81,7 @@ class CortiClient {
|
|
|
32
81
|
}
|
|
33
82
|
get transcripts() {
|
|
34
83
|
var _a;
|
|
35
|
-
return ((_a = this._transcripts) !== null && _a !== void 0 ? _a : (this._transcripts = new
|
|
84
|
+
return ((_a = this._transcripts) !== null && _a !== void 0 ? _a : (this._transcripts = new Client_js_14.TranscriptsClient(this._options)));
|
|
36
85
|
}
|
|
37
86
|
get facts() {
|
|
38
87
|
var _a;
|
|
@@ -44,23 +93,187 @@ class CortiClient {
|
|
|
44
93
|
}
|
|
45
94
|
get templates() {
|
|
46
95
|
var _a;
|
|
47
|
-
return ((_a = this._templates) !== null && _a !== void 0 ? _a : (this._templates = new
|
|
96
|
+
return ((_a = this._templates) !== null && _a !== void 0 ? _a : (this._templates = new Client_js_11.TemplatesClient(this._options)));
|
|
48
97
|
}
|
|
49
98
|
get codes() {
|
|
50
99
|
var _a;
|
|
51
100
|
return ((_a = this._codes) !== null && _a !== void 0 ? _a : (this._codes = new Client_js_3.CodesClient(this._options)));
|
|
52
101
|
}
|
|
102
|
+
get templateVersions() {
|
|
103
|
+
var _a;
|
|
104
|
+
return ((_a = this._templateVersions) !== null && _a !== void 0 ? _a : (this._templateVersions = new Client_js_12.TemplateVersionsClient(this._options)));
|
|
105
|
+
}
|
|
106
|
+
get sections() {
|
|
107
|
+
var _a;
|
|
108
|
+
return ((_a = this._sections) !== null && _a !== void 0 ? _a : (this._sections = new Client_js_8.SectionsClient(this._options)));
|
|
109
|
+
}
|
|
110
|
+
get sectionVersions() {
|
|
111
|
+
var _a;
|
|
112
|
+
return ((_a = this._sectionVersions) !== null && _a !== void 0 ? _a : (this._sectionVersions = new Client_js_9.SectionVersionsClient(this._options)));
|
|
113
|
+
}
|
|
53
114
|
get agents() {
|
|
54
115
|
var _a;
|
|
55
116
|
return ((_a = this._agents) !== null && _a !== void 0 ? _a : (this._agents = new Client_js_1.AgentsClient(this._options)));
|
|
56
117
|
}
|
|
57
118
|
get stream() {
|
|
58
119
|
var _a;
|
|
59
|
-
return ((_a = this._stream) !== null && _a !== void 0 ? _a : (this._stream = new
|
|
120
|
+
return ((_a = this._stream) !== null && _a !== void 0 ? _a : (this._stream = new Client_js_10.StreamClient(this._options)));
|
|
60
121
|
}
|
|
61
122
|
get transcribe() {
|
|
62
123
|
var _a;
|
|
63
|
-
return ((_a = this._transcribe) !== null && _a !== void 0 ? _a : (this._transcribe = new
|
|
124
|
+
return ((_a = this._transcribe) !== null && _a !== void 0 ? _a : (this._transcribe = new Client_js_13.TranscribeClient(this._options)));
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* @param {CortiClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
128
|
+
*
|
|
129
|
+
* @example
|
|
130
|
+
* await client.getNewTemplates()
|
|
131
|
+
*/
|
|
132
|
+
getNewTemplates(requestOptions) {
|
|
133
|
+
return core.HttpResponsePromise.fromPromise(this.__getNewTemplates(requestOptions));
|
|
134
|
+
}
|
|
135
|
+
__getNewTemplates(requestOptions) {
|
|
136
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
137
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
138
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
139
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.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);
|
|
140
|
+
const _response = yield core.fetcher({
|
|
141
|
+
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, "new/templates/"),
|
|
142
|
+
method: "GET",
|
|
143
|
+
headers: _headers,
|
|
144
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
145
|
+
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,
|
|
146
|
+
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,
|
|
147
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
148
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
149
|
+
logging: this._options.logging,
|
|
150
|
+
});
|
|
151
|
+
if (_response.ok) {
|
|
152
|
+
return { data: undefined, rawResponse: _response.rawResponse };
|
|
153
|
+
}
|
|
154
|
+
if (_response.error.reason === "status-code") {
|
|
155
|
+
throw new errors.CortiError({
|
|
156
|
+
statusCode: _response.error.statusCode,
|
|
157
|
+
body: _response.error.body,
|
|
158
|
+
rawResponse: _response.rawResponse,
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/new/templates/");
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* @param {CortiClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
166
|
+
*
|
|
167
|
+
* @example
|
|
168
|
+
* await client.postNewTemplates()
|
|
169
|
+
*/
|
|
170
|
+
postNewTemplates(requestOptions) {
|
|
171
|
+
return core.HttpResponsePromise.fromPromise(this.__postNewTemplates(requestOptions));
|
|
172
|
+
}
|
|
173
|
+
__postNewTemplates(requestOptions) {
|
|
174
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
175
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
176
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
177
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.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);
|
|
178
|
+
const _response = yield core.fetcher({
|
|
179
|
+
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, "new/templates/"),
|
|
180
|
+
method: "POST",
|
|
181
|
+
headers: _headers,
|
|
182
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
183
|
+
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,
|
|
184
|
+
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,
|
|
185
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
186
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
187
|
+
logging: this._options.logging,
|
|
188
|
+
});
|
|
189
|
+
if (_response.ok) {
|
|
190
|
+
return { data: undefined, rawResponse: _response.rawResponse };
|
|
191
|
+
}
|
|
192
|
+
if (_response.error.reason === "status-code") {
|
|
193
|
+
throw new errors.CortiError({
|
|
194
|
+
statusCode: _response.error.statusCode,
|
|
195
|
+
body: _response.error.body,
|
|
196
|
+
rawResponse: _response.rawResponse,
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/new/templates/");
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* @param {CortiClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
204
|
+
*
|
|
205
|
+
* @example
|
|
206
|
+
* await client.getNewSections()
|
|
207
|
+
*/
|
|
208
|
+
getNewSections(requestOptions) {
|
|
209
|
+
return core.HttpResponsePromise.fromPromise(this.__getNewSections(requestOptions));
|
|
210
|
+
}
|
|
211
|
+
__getNewSections(requestOptions) {
|
|
212
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
213
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
214
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
215
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.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);
|
|
216
|
+
const _response = yield core.fetcher({
|
|
217
|
+
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, "new/sections/"),
|
|
218
|
+
method: "GET",
|
|
219
|
+
headers: _headers,
|
|
220
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
221
|
+
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,
|
|
222
|
+
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,
|
|
223
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
224
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
225
|
+
logging: this._options.logging,
|
|
226
|
+
});
|
|
227
|
+
if (_response.ok) {
|
|
228
|
+
return { data: undefined, rawResponse: _response.rawResponse };
|
|
229
|
+
}
|
|
230
|
+
if (_response.error.reason === "status-code") {
|
|
231
|
+
throw new errors.CortiError({
|
|
232
|
+
statusCode: _response.error.statusCode,
|
|
233
|
+
body: _response.error.body,
|
|
234
|
+
rawResponse: _response.rawResponse,
|
|
235
|
+
});
|
|
236
|
+
}
|
|
237
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/new/sections/");
|
|
238
|
+
});
|
|
239
|
+
}
|
|
240
|
+
/**
|
|
241
|
+
* @param {CortiClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
242
|
+
*
|
|
243
|
+
* @example
|
|
244
|
+
* await client.postNewSections()
|
|
245
|
+
*/
|
|
246
|
+
postNewSections(requestOptions) {
|
|
247
|
+
return core.HttpResponsePromise.fromPromise(this.__postNewSections(requestOptions));
|
|
248
|
+
}
|
|
249
|
+
__postNewSections(requestOptions) {
|
|
250
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
251
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
252
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
253
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.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);
|
|
254
|
+
const _response = yield core.fetcher({
|
|
255
|
+
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, "new/sections/"),
|
|
256
|
+
method: "POST",
|
|
257
|
+
headers: _headers,
|
|
258
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
259
|
+
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,
|
|
260
|
+
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,
|
|
261
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
262
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
263
|
+
logging: this._options.logging,
|
|
264
|
+
});
|
|
265
|
+
if (_response.ok) {
|
|
266
|
+
return { data: undefined, rawResponse: _response.rawResponse };
|
|
267
|
+
}
|
|
268
|
+
if (_response.error.reason === "status-code") {
|
|
269
|
+
throw new errors.CortiError({
|
|
270
|
+
statusCode: _response.error.statusCode,
|
|
271
|
+
body: _response.error.body,
|
|
272
|
+
rawResponse: _response.rawResponse,
|
|
273
|
+
});
|
|
274
|
+
}
|
|
275
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/new/sections/");
|
|
276
|
+
});
|
|
64
277
|
}
|
|
65
278
|
}
|
|
66
279
|
exports.CortiClient = CortiClient;
|
|
@@ -13,9 +13,14 @@ export * from "./interactions/client/requests/index.js";
|
|
|
13
13
|
export * as interactions from "./interactions/index.js";
|
|
14
14
|
export * from "./interactions/types/index.js";
|
|
15
15
|
export * as recordings from "./recordings/index.js";
|
|
16
|
+
export * from "./sections/client/requests/index.js";
|
|
17
|
+
export * as sections from "./sections/index.js";
|
|
18
|
+
export * as sectionVersions from "./sectionVersions/index.js";
|
|
16
19
|
export * as stream from "./stream/index.js";
|
|
17
20
|
export * from "./templates/client/requests/index.js";
|
|
18
21
|
export * as templates from "./templates/index.js";
|
|
22
|
+
export * from "./templateVersions/client/requests/index.js";
|
|
23
|
+
export * as templateVersions from "./templateVersions/index.js";
|
|
19
24
|
export * as transcribe from "./transcribe/index.js";
|
|
20
25
|
export * from "./transcripts/client/requests/index.js";
|
|
21
26
|
export * as transcripts from "./transcripts/index.js";
|
|
@@ -36,7 +36,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.transcripts = exports.transcribe = exports.templates = exports.stream = exports.recordings = exports.interactions = exports.facts = exports.documents = exports.codes = exports.auth = exports.agents = void 0;
|
|
39
|
+
exports.transcripts = exports.transcribe = exports.templateVersions = exports.templates = exports.stream = exports.sectionVersions = exports.sections = exports.recordings = exports.interactions = exports.facts = exports.documents = exports.codes = exports.auth = exports.agents = void 0;
|
|
40
40
|
__exportStar(require("./agents/client/requests/index.js"), exports);
|
|
41
41
|
exports.agents = __importStar(require("./agents/index.js"));
|
|
42
42
|
__exportStar(require("./agents/types/index.js"), exports);
|
|
@@ -52,9 +52,14 @@ __exportStar(require("./interactions/client/requests/index.js"), exports);
|
|
|
52
52
|
exports.interactions = __importStar(require("./interactions/index.js"));
|
|
53
53
|
__exportStar(require("./interactions/types/index.js"), exports);
|
|
54
54
|
exports.recordings = __importStar(require("./recordings/index.js"));
|
|
55
|
+
__exportStar(require("./sections/client/requests/index.js"), exports);
|
|
56
|
+
exports.sections = __importStar(require("./sections/index.js"));
|
|
57
|
+
exports.sectionVersions = __importStar(require("./sectionVersions/index.js"));
|
|
55
58
|
exports.stream = __importStar(require("./stream/index.js"));
|
|
56
59
|
__exportStar(require("./templates/client/requests/index.js"), exports);
|
|
57
60
|
exports.templates = __importStar(require("./templates/index.js"));
|
|
61
|
+
__exportStar(require("./templateVersions/client/requests/index.js"), exports);
|
|
62
|
+
exports.templateVersions = __importStar(require("./templateVersions/index.js"));
|
|
58
63
|
exports.transcribe = __importStar(require("./transcribe/index.js"));
|
|
59
64
|
__exportStar(require("./transcripts/client/requests/index.js"), exports);
|
|
60
65
|
exports.transcripts = __importStar(require("./transcripts/index.js"));
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
|
|
3
|
+
import * as core from "../../../../core/index.js";
|
|
4
|
+
import * as Corti from "../../../index.js";
|
|
5
|
+
export declare namespace SectionVersionsClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare class SectionVersionsClient {
|
|
11
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<SectionVersionsClient.Options>;
|
|
12
|
+
constructor(options: SectionVersionsClient.Options);
|
|
13
|
+
/**
|
|
14
|
+
* @param {string} sectionID
|
|
15
|
+
* @param {SectionVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
16
|
+
*
|
|
17
|
+
* @throws {@link Corti.NotFoundError}
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* await client.sectionVersions.list("sectionID")
|
|
21
|
+
*/
|
|
22
|
+
list(sectionID: string, requestOptions?: SectionVersionsClient.RequestOptions): core.HttpResponsePromise<Corti.SectionVersion[]>;
|
|
23
|
+
private __list;
|
|
24
|
+
/**
|
|
25
|
+
* @param {string} sectionID
|
|
26
|
+
* @param {Corti.CreateSectionVersionRequest} request
|
|
27
|
+
* @param {SectionVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
28
|
+
*
|
|
29
|
+
* @throws {@link Corti.BadRequestError}
|
|
30
|
+
* @throws {@link Corti.NotFoundError}
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* await client.sectionVersions.create("sectionID", {
|
|
34
|
+
* title: "title",
|
|
35
|
+
* instructions: {
|
|
36
|
+
* contentPrompt: "contentPrompt",
|
|
37
|
+
* writingStylePrompt: "writingStylePrompt"
|
|
38
|
+
* }
|
|
39
|
+
* })
|
|
40
|
+
*/
|
|
41
|
+
create(sectionID: string, request: Corti.CreateSectionVersionRequest, requestOptions?: SectionVersionsClient.RequestOptions): core.HttpResponsePromise<Corti.SectionVersion>;
|
|
42
|
+
private __create;
|
|
43
|
+
/**
|
|
44
|
+
* @param {string} sectionID
|
|
45
|
+
* @param {string} versionID
|
|
46
|
+
* @param {SectionVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
47
|
+
*
|
|
48
|
+
* @throws {@link Corti.NotFoundError}
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* await client.sectionVersions.get("sectionID", "versionID")
|
|
52
|
+
*/
|
|
53
|
+
get(sectionID: string, versionID: string, requestOptions?: SectionVersionsClient.RequestOptions): core.HttpResponsePromise<Corti.SectionVersion>;
|
|
54
|
+
private __get;
|
|
55
|
+
/**
|
|
56
|
+
* @param {string} sectionID
|
|
57
|
+
* @param {string} versionID
|
|
58
|
+
* @param {SectionVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
59
|
+
*
|
|
60
|
+
* @throws {@link Corti.NotFoundError}
|
|
61
|
+
*
|
|
62
|
+
* @example
|
|
63
|
+
* await client.sectionVersions.delete("sectionID", "versionID")
|
|
64
|
+
*/
|
|
65
|
+
delete(sectionID: string, versionID: string, requestOptions?: SectionVersionsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
66
|
+
private __delete;
|
|
67
|
+
/**
|
|
68
|
+
* Sets this version as the published version of the section.
|
|
69
|
+
*
|
|
70
|
+
* @param {string} sectionID
|
|
71
|
+
* @param {string} versionID
|
|
72
|
+
* @param {SectionVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link Corti.NotFoundError}
|
|
75
|
+
*
|
|
76
|
+
* @example
|
|
77
|
+
* await client.sectionVersions.publish("sectionID", "versionID")
|
|
78
|
+
*/
|
|
79
|
+
publish(sectionID: string, versionID: string, requestOptions?: SectionVersionsClient.RequestOptions): core.HttpResponsePromise<Corti.StatusResponse>;
|
|
80
|
+
private __publish;
|
|
81
|
+
}
|