@corti/sdk 2.0.0-templates.7 → 2.0.0-templates.8
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.js +2 -2
- package/dist/cjs/Client.d.ts +0 -15
- package/dist/cjs/Client.js +20 -45
- package/dist/cjs/api/resources/documents/client/Client.d.ts +41 -0
- package/dist/cjs/api/resources/documents/client/Client.js +111 -0
- package/dist/cjs/api/resources/documents/client/requests/GenerateDocumentsRequest.d.ts +17 -0
- package/dist/cjs/api/resources/documents/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/documents/index.d.ts +2 -0
- package/dist/cjs/api/resources/documents/index.js +2 -0
- package/dist/cjs/api/resources/documents/resources/index.d.ts +4 -0
- package/dist/cjs/api/resources/documents/resources/index.js +43 -0
- package/dist/cjs/api/resources/documents/resources/sections/client/Client.d.ts +84 -0
- package/dist/cjs/api/resources/{alphaSections → documents/resources/sections}/client/Client.js +44 -36
- package/dist/cjs/api/resources/documents/resources/sections/client/requests/ListSectionsRequest.d.ts +16 -0
- package/dist/cjs/api/resources/documents/resources/sections/client/requests/UpdateSectionRequest.d.ts +13 -0
- package/dist/cjs/api/resources/documents/resources/sections/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/documents/resources/sections/index.d.ts +2 -0
- package/dist/cjs/api/resources/{alphaSections → documents/resources/sections}/index.js +1 -0
- package/dist/cjs/api/resources/documents/resources/sections/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/documents/resources/sections/resources/index.js +41 -0
- package/dist/cjs/api/resources/documents/resources/sections/resources/versions/client/Client.d.ts +87 -0
- package/dist/cjs/api/resources/{alphaSectionVersions → documents/resources/sections/resources/versions}/client/Client.js +43 -39
- package/dist/cjs/api/resources/documents/resources/sections/resources/versions/client/requests/CreateSectionVersionRequest.d.ts +18 -0
- package/dist/cjs/api/resources/documents/resources/sections/resources/versions/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/documents/resources/templates/client/Client.d.ts +80 -0
- package/dist/cjs/api/resources/{alphaTemplates → documents/resources/templates}/client/Client.js +44 -36
- package/dist/cjs/api/resources/documents/resources/templates/client/requests/ListTemplatesRequest.d.ts +16 -0
- package/dist/cjs/api/resources/documents/resources/templates/client/requests/UpdateTemplateRequest.d.ts +13 -0
- package/dist/cjs/api/resources/documents/resources/templates/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/documents/resources/templates/index.d.ts +2 -0
- package/dist/cjs/api/resources/documents/resources/templates/index.js +18 -0
- package/dist/cjs/api/resources/documents/resources/templates/resources/index.d.ts +3 -0
- package/dist/cjs/api/resources/documents/resources/templates/resources/index.js +42 -0
- package/dist/cjs/api/resources/documents/resources/templates/resources/versions/client/Client.d.ts +83 -0
- package/dist/cjs/api/resources/{alphaTemplateVersions → documents/resources/templates/resources/versions}/client/Client.js +35 -33
- package/dist/cjs/api/resources/documents/resources/templates/resources/versions/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/documents/resources/templates/resources/versions/client/index.js +17 -0
- package/dist/cjs/api/resources/{alphaTemplateVersions → documents/resources/templates/resources/versions}/client/requests/CreateTemplateVersionRequest.d.ts +2 -2
- package/dist/cjs/api/resources/{alphaTemplateVersions → documents/resources/templates/resources/versions}/types/CreateTemplateVersionRequestGeneration.d.ts +1 -1
- package/dist/cjs/api/resources/documents/types/GenerateDocumentsRequestXCortiRetentionPolicy.d.ts +4 -0
- package/dist/cjs/api/resources/documents/types/GenerateDocumentsRequestXCortiRetentionPolicy.js +7 -0
- package/dist/cjs/api/resources/documents/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/documents/types/index.js +17 -0
- package/dist/cjs/api/resources/facts/client/requests/FactsExtractRequest.d.ts +1 -1
- package/dist/cjs/api/resources/index.d.ts +1 -9
- package/dist/cjs/api/resources/index.js +2 -10
- package/dist/cjs/api/resources/stream/client/Socket.d.ts +1 -1
- package/dist/cjs/api/resources/templates/client/Client.d.ts +4 -4
- package/dist/cjs/api/resources/templates/client/Client.js +2 -2
- package/dist/{esm/api/resources/templates/client/requests/TemplatesListRequest.d.mts → cjs/api/resources/templates/client/requests/ListTemplatesRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/templates/client/requests/{TemplatesSectionListRequest.d.ts → SectionListTemplatesRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/templates/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/transcribe/client/Socket.d.ts +1 -1
- package/dist/cjs/api/resources/transcripts/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/transcripts/client/Client.js +1 -1
- package/dist/cjs/api/resources/transcripts/client/requests/TranscriptsCreateRequest.d.ts +1 -1
- package/dist/cjs/api/types/CreateEphemeralDocumentResponse.d.ts +8 -0
- package/dist/cjs/api/types/CreateSectionBase.d.ts +8 -3
- package/dist/cjs/api/types/CreateSectionFromInheritanceRequest.d.ts +1 -1
- package/dist/cjs/api/types/CreateTemplateBase.d.ts +10 -3
- package/dist/cjs/api/types/CreateTemplateFromInheritanceRequest.d.ts +2 -2
- package/dist/cjs/api/types/DocumentationEvidence.d.ts +6 -0
- package/dist/cjs/api/types/DocumentsCreateRequestWithTemplate.d.ts +1 -1
- package/dist/cjs/api/types/DocumentsCreateRequestWithTemplateKey.d.ts +1 -1
- package/dist/cjs/api/types/DocumentsGetResponse.d.ts +1 -1
- package/dist/cjs/api/types/EphemeralDocument.d.ts +12 -0
- package/dist/cjs/api/types/EphemeralDocument.js +3 -0
- package/dist/cjs/api/types/GuidedAssemblyRequest.d.ts +0 -2
- package/dist/cjs/api/types/GuidedDocumentBase.d.ts +12 -0
- package/dist/cjs/api/types/GuidedDocumentBase.js +3 -0
- package/dist/cjs/api/types/GuidedDocumentByAssembly.d.ts +1 -5
- package/dist/cjs/api/types/GuidedDocumentByDynamic.d.ts +1 -5
- package/dist/cjs/api/types/GuidedDocumentByTemplateRef.d.ts +1 -5
- package/dist/cjs/api/types/GuidedDynamicRequest.d.ts +0 -2
- package/dist/cjs/api/types/GuidedSectionOverride.d.ts +1 -5
- package/dist/cjs/api/types/Label.d.ts +4 -0
- package/dist/cjs/api/types/Label.js +3 -0
- package/dist/cjs/api/types/Section.d.ts +9 -3
- package/dist/cjs/api/types/SectionInstructionsOverride.d.ts +2 -0
- package/dist/cjs/api/types/SectionOverrides.d.ts +2 -2
- package/dist/cjs/api/types/SectionSource.d.ts +6 -0
- package/dist/cjs/api/types/SectionSource.js +9 -0
- package/dist/cjs/api/types/StatusResponse.d.ts +2 -0
- package/dist/cjs/api/types/StreamAudioEventData.d.ts +9 -0
- package/dist/cjs/api/types/StreamAudioEventData.js +3 -0
- package/dist/cjs/api/types/StreamAudioEventDataEvent.d.ts +8 -0
- package/dist/cjs/api/types/StreamAudioEventDataEvent.js +11 -0
- package/dist/cjs/api/types/StreamAudioEventMessage.d.ts +5 -0
- package/dist/cjs/api/types/StreamAudioEventMessage.js +3 -0
- package/dist/cjs/api/types/StreamAudioEventsConfig.d.ts +4 -0
- package/dist/cjs/api/types/StreamAudioEventsConfig.js +3 -0
- package/dist/cjs/api/types/StreamConfig.d.ts +1 -0
- package/dist/cjs/api/types/StreamConfigMode.d.ts +2 -0
- package/dist/cjs/api/types/StreamConfigModeFactGenerationInterval.d.ts +6 -0
- package/dist/cjs/api/types/StreamConfigModeFactGenerationInterval.js +9 -0
- package/dist/cjs/api/types/Template.d.ts +11 -3
- package/dist/cjs/api/types/TemplateGeneration.d.ts +1 -1
- package/dist/cjs/api/types/TemplateSource.d.ts +6 -0
- package/dist/cjs/api/types/TemplateSource.js +9 -0
- package/dist/cjs/api/types/TranscribeAudioEventData.d.ts +9 -0
- package/dist/cjs/api/types/TranscribeAudioEventData.js +3 -0
- package/dist/cjs/api/types/TranscribeAudioEventDataEvent.d.ts +8 -0
- package/dist/cjs/api/types/TranscribeAudioEventDataEvent.js +11 -0
- package/dist/cjs/api/types/TranscribeAudioEventMessage.d.ts +5 -0
- package/dist/cjs/api/types/TranscribeAudioEventMessage.js +3 -0
- package/dist/cjs/api/types/TranscribeAudioEventsConfig.d.ts +4 -0
- package/dist/cjs/api/types/TranscribeAudioEventsConfig.js +3 -0
- package/dist/cjs/api/types/TranscribeConfig.d.ts +1 -0
- package/dist/cjs/api/types/index.d.ts +16 -4
- package/dist/cjs/api/types/index.js +16 -4
- 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/documents/index.d.ts +2 -0
- package/dist/cjs/serialization/resources/documents/index.js +2 -0
- package/dist/cjs/serialization/resources/documents/resources/index.d.ts +4 -0
- package/dist/cjs/serialization/resources/documents/resources/index.js +43 -0
- package/dist/cjs/serialization/resources/documents/resources/sections/client/list.d.ts +8 -0
- package/dist/cjs/serialization/resources/{alphaSections → documents/resources/sections}/client/list.js +2 -2
- package/dist/cjs/serialization/resources/documents/resources/sections/client/requests/UpdateSectionRequest.d.ts +15 -0
- package/dist/cjs/serialization/resources/{alphaSections → documents/resources/sections}/client/requests/UpdateSectionRequest.js +6 -3
- package/dist/cjs/serialization/resources/documents/resources/sections/index.d.ts +2 -0
- package/dist/cjs/serialization/resources/documents/resources/sections/index.js +18 -0
- package/dist/cjs/serialization/resources/documents/resources/sections/resources/index.d.ts +2 -0
- package/dist/cjs/serialization/resources/documents/resources/sections/resources/index.js +41 -0
- package/dist/cjs/serialization/resources/documents/resources/sections/resources/versions/client/list.d.ts +8 -0
- package/dist/cjs/serialization/resources/{alphaSectionVersions → documents/resources/sections/resources/versions}/client/list.js +2 -2
- package/dist/cjs/serialization/resources/documents/resources/sections/resources/versions/client/requests/CreateSectionVersionRequest.d.ts +10 -0
- package/dist/cjs/serialization/resources/documents/resources/sections/resources/versions/client/requests/CreateSectionVersionRequest.js +42 -0
- package/dist/cjs/serialization/resources/documents/resources/sections/resources/versions/client/requests/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/documents/resources/sections/resources/versions/client/requests/index.js +5 -0
- package/dist/cjs/serialization/resources/documents/resources/templates/client/list.d.ts +8 -0
- package/dist/cjs/serialization/resources/{alphaTemplates → documents/resources/templates}/client/list.js +2 -2
- package/dist/cjs/serialization/resources/documents/resources/templates/client/requests/UpdateTemplateRequest.d.ts +15 -0
- package/dist/cjs/serialization/resources/{alphaTemplates → documents/resources/templates}/client/requests/UpdateTemplateRequest.js +6 -3
- package/dist/cjs/serialization/resources/documents/resources/templates/index.d.ts +2 -0
- package/dist/cjs/serialization/resources/documents/resources/templates/index.js +18 -0
- package/dist/cjs/serialization/resources/documents/resources/templates/resources/index.d.ts +3 -0
- package/dist/cjs/serialization/resources/documents/resources/templates/resources/index.js +42 -0
- package/dist/cjs/serialization/resources/documents/resources/templates/resources/versions/client/index.d.ts +2 -0
- package/dist/cjs/serialization/resources/documents/resources/templates/resources/versions/client/index.js +41 -0
- package/dist/cjs/serialization/resources/documents/resources/templates/resources/versions/client/list.d.ts +8 -0
- package/dist/cjs/serialization/resources/{alphaTemplateVersions → documents/resources/templates/resources/versions}/client/list.js +2 -2
- package/dist/cjs/serialization/resources/documents/resources/templates/resources/versions/client/requests/CreateTemplateVersionRequest.d.ts +10 -0
- package/dist/cjs/serialization/resources/{alphaTemplateVersions → documents/resources/templates/resources/versions}/client/requests/CreateTemplateVersionRequest.js +1 -1
- package/dist/cjs/serialization/resources/documents/resources/templates/resources/versions/types/CreateTemplateVersionRequestGeneration.d.ts +12 -0
- package/dist/cjs/serialization/resources/{alphaTemplateVersions → documents/resources/templates/resources/versions}/types/CreateTemplateVersionRequestGeneration.js +3 -3
- package/dist/cjs/serialization/resources/documents/types/GenerateDocumentsRequestXCortiRetentionPolicy.d.ts +7 -0
- package/dist/cjs/serialization/resources/documents/types/GenerateDocumentsRequestXCortiRetentionPolicy.js +39 -0
- package/dist/cjs/serialization/resources/documents/types/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/documents/types/index.js +17 -0
- package/dist/cjs/serialization/resources/index.d.ts +1 -8
- package/dist/cjs/serialization/resources/index.js +2 -9
- package/dist/cjs/serialization/resources/stream/client/socket/StreamSocketResponse.d.ts +3 -2
- package/dist/cjs/serialization/resources/stream/client/socket/StreamSocketResponse.js +2 -0
- package/dist/cjs/serialization/resources/transcribe/client/socket/TranscribeSocketResponse.d.ts +3 -2
- package/dist/cjs/serialization/resources/transcribe/client/socket/TranscribeSocketResponse.js +2 -0
- package/dist/cjs/serialization/types/CreateEphemeralDocumentResponse.d.ts +12 -0
- package/dist/cjs/serialization/types/CreateEphemeralDocumentResponse.js +44 -0
- package/dist/cjs/serialization/types/CreateSectionBase.d.ts +5 -2
- package/dist/cjs/serialization/types/CreateSectionBase.js +5 -2
- package/dist/cjs/serialization/types/CreateSectionFromInheritanceRequest.d.ts +1 -1
- package/dist/cjs/serialization/types/CreateSectionFromInheritanceRequest.js +1 -1
- package/dist/cjs/serialization/types/CreateTemplateBase.d.ts +6 -2
- package/dist/cjs/serialization/types/CreateTemplateBase.js +6 -2
- package/dist/cjs/serialization/types/CreateTemplateFromInheritanceRequest.d.ts +1 -1
- package/dist/cjs/serialization/types/CreateTemplateFromInheritanceRequest.js +1 -1
- package/dist/cjs/serialization/types/DocumentationEvidence.d.ts +12 -0
- package/dist/cjs/serialization/types/{GuidedDocumentResponse.js → DocumentationEvidence.js} +6 -6
- package/dist/cjs/serialization/types/EphemeralDocument.d.ts +14 -0
- package/dist/cjs/serialization/types/{GuidedGenerationResult.js → EphemeralDocument.js} +7 -5
- package/dist/cjs/serialization/types/GuidedAssemblyRequest.d.ts +0 -1
- package/dist/cjs/serialization/types/GuidedAssemblyRequest.js +0 -1
- package/dist/cjs/serialization/types/GuidedDocumentBase.d.ts +12 -0
- package/dist/cjs/serialization/types/GuidedDocumentBase.js +44 -0
- package/dist/cjs/serialization/types/GuidedDocumentByAssembly.d.ts +2 -4
- package/dist/cjs/serialization/types/GuidedDocumentByAssembly.js +5 -5
- package/dist/cjs/serialization/types/GuidedDocumentByDynamic.d.ts +2 -4
- package/dist/cjs/serialization/types/GuidedDocumentByDynamic.js +5 -5
- package/dist/cjs/serialization/types/GuidedDocumentByTemplateRef.d.ts +2 -4
- package/dist/cjs/serialization/types/GuidedDocumentByTemplateRef.js +5 -5
- package/dist/cjs/serialization/types/GuidedDynamicRequest.d.ts +0 -1
- package/dist/cjs/serialization/types/GuidedDynamicRequest.js +0 -1
- package/dist/cjs/serialization/types/GuidedSectionOverride.d.ts +3 -5
- package/dist/cjs/serialization/types/GuidedSectionOverride.js +2 -5
- package/dist/cjs/serialization/types/Label.d.ts +10 -0
- package/dist/cjs/serialization/types/{GuidedGenerationResultUsageTokenCount.js → Label.js} +4 -4
- package/dist/cjs/serialization/types/Section.d.ts +7 -2
- package/dist/cjs/serialization/types/Section.js +7 -2
- package/dist/cjs/serialization/types/SectionInstructionsOverride.d.ts +1 -0
- package/dist/cjs/serialization/types/SectionInstructionsOverride.js +1 -0
- package/dist/cjs/serialization/types/SectionOverrides.d.ts +1 -1
- package/dist/cjs/serialization/types/SectionOverrides.js +1 -1
- package/dist/cjs/serialization/types/SectionSource.d.ts +7 -0
- package/dist/cjs/serialization/{resources/alphaSectionVersions/client/index.js → types/SectionSource.js} +4 -2
- package/dist/cjs/serialization/types/StatusResponse.d.ts +2 -0
- package/dist/cjs/serialization/types/StatusResponse.js +2 -0
- package/dist/cjs/serialization/types/StreamAudioEventData.d.ts +12 -0
- package/dist/cjs/serialization/types/StreamAudioEventData.js +44 -0
- package/dist/cjs/serialization/types/StreamAudioEventDataEvent.d.ts +7 -0
- package/dist/cjs/serialization/types/StreamAudioEventDataEvent.js +44 -0
- package/dist/cjs/serialization/types/StreamAudioEventMessage.d.ts +11 -0
- package/dist/cjs/serialization/types/StreamAudioEventMessage.js +43 -0
- package/dist/cjs/serialization/types/StreamAudioEventsConfig.d.ts +9 -0
- package/dist/cjs/serialization/types/StreamAudioEventsConfig.js +41 -0
- package/dist/cjs/serialization/types/StreamConfig.d.ts +2 -0
- package/dist/cjs/serialization/types/StreamConfig.js +2 -0
- package/dist/cjs/serialization/types/StreamConfigMode.d.ts +2 -0
- package/dist/cjs/serialization/types/StreamConfigMode.js +2 -0
- package/dist/cjs/serialization/types/StreamConfigModeFactGenerationInterval.d.ts +7 -0
- package/dist/cjs/serialization/types/StreamConfigModeFactGenerationInterval.js +39 -0
- package/dist/cjs/serialization/types/Template.d.ts +8 -2
- package/dist/cjs/serialization/types/Template.js +8 -2
- package/dist/cjs/serialization/types/TemplateSource.d.ts +7 -0
- package/dist/cjs/serialization/types/TemplateSource.js +39 -0
- package/dist/cjs/serialization/types/TranscribeAudioEventData.d.ts +12 -0
- package/dist/cjs/serialization/types/TranscribeAudioEventData.js +44 -0
- package/dist/cjs/serialization/types/TranscribeAudioEventDataEvent.d.ts +7 -0
- package/dist/cjs/serialization/types/TranscribeAudioEventDataEvent.js +44 -0
- package/dist/cjs/serialization/types/TranscribeAudioEventMessage.d.ts +11 -0
- package/dist/cjs/serialization/types/{GuidedGenerationResultUsage.js → TranscribeAudioEventMessage.js} +5 -4
- package/dist/cjs/serialization/types/TranscribeAudioEventsConfig.d.ts +9 -0
- package/dist/cjs/serialization/types/TranscribeAudioEventsConfig.js +41 -0
- package/dist/cjs/serialization/types/TranscribeConfig.d.ts +2 -0
- package/dist/cjs/serialization/types/TranscribeConfig.js +2 -0
- package/dist/cjs/serialization/types/index.d.ts +16 -4
- package/dist/cjs/serialization/types/index.js +16 -4
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/Client.d.mts +0 -15
- package/dist/esm/Client.mjs +0 -25
- package/dist/esm/api/resources/documents/client/Client.d.mts +41 -0
- package/dist/esm/api/resources/documents/client/Client.mjs +111 -0
- package/dist/esm/api/resources/documents/client/requests/GenerateDocumentsRequest.d.mts +17 -0
- package/dist/esm/api/resources/documents/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/documents/index.d.mts +2 -0
- package/dist/esm/api/resources/documents/index.mjs +2 -0
- package/dist/esm/api/resources/documents/resources/index.d.mts +4 -0
- package/dist/esm/api/resources/documents/resources/index.mjs +4 -0
- package/dist/esm/api/resources/documents/resources/sections/client/Client.d.mts +84 -0
- package/dist/esm/api/resources/{alphaSections → documents/resources/sections}/client/Client.mjs +42 -34
- package/dist/esm/api/resources/documents/resources/sections/client/requests/ListSectionsRequest.d.mts +16 -0
- package/dist/esm/api/resources/documents/resources/sections/client/requests/UpdateSectionRequest.d.mts +13 -0
- package/dist/esm/api/resources/documents/resources/sections/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/documents/resources/sections/index.d.mts +2 -0
- package/dist/esm/api/resources/documents/resources/sections/index.mjs +2 -0
- package/dist/esm/api/resources/documents/resources/sections/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/documents/resources/sections/resources/index.mjs +2 -0
- package/dist/esm/api/resources/documents/resources/sections/resources/versions/client/Client.d.mts +87 -0
- package/dist/esm/api/resources/{alphaSectionVersions → documents/resources/sections/resources/versions}/client/Client.mjs +41 -37
- package/dist/esm/api/resources/documents/resources/sections/resources/versions/client/requests/CreateSectionVersionRequest.d.mts +18 -0
- package/dist/esm/api/resources/documents/resources/sections/resources/versions/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/documents/resources/templates/client/Client.d.mts +80 -0
- package/dist/esm/api/resources/{alphaTemplates → documents/resources/templates}/client/Client.mjs +42 -34
- package/dist/esm/api/resources/documents/resources/templates/client/requests/ListTemplatesRequest.d.mts +16 -0
- package/dist/esm/api/resources/documents/resources/templates/client/requests/UpdateTemplateRequest.d.mts +13 -0
- package/dist/esm/api/resources/documents/resources/templates/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/documents/resources/templates/index.d.mts +2 -0
- package/dist/esm/api/resources/documents/resources/templates/index.mjs +2 -0
- package/dist/esm/api/resources/documents/resources/templates/resources/index.d.mts +3 -0
- package/dist/esm/api/resources/documents/resources/templates/resources/index.mjs +3 -0
- package/dist/esm/api/resources/documents/resources/templates/resources/versions/client/Client.d.mts +83 -0
- package/dist/esm/api/resources/{alphaTemplateVersions → documents/resources/templates/resources/versions}/client/Client.mjs +33 -31
- package/dist/esm/api/resources/documents/resources/templates/resources/versions/client/index.d.mts +1 -0
- package/dist/esm/api/resources/documents/resources/templates/resources/versions/client/index.mjs +1 -0
- package/dist/esm/api/resources/{alphaTemplateVersions → documents/resources/templates/resources/versions}/client/requests/CreateTemplateVersionRequest.d.mts +2 -2
- package/dist/esm/api/resources/{alphaTemplateVersions → documents/resources/templates/resources/versions}/types/CreateTemplateVersionRequestGeneration.d.mts +1 -1
- package/dist/esm/api/resources/documents/types/GenerateDocumentsRequestXCortiRetentionPolicy.d.mts +4 -0
- package/dist/esm/api/resources/documents/types/GenerateDocumentsRequestXCortiRetentionPolicy.mjs +4 -0
- package/dist/esm/api/resources/documents/types/index.d.mts +1 -0
- package/dist/esm/api/resources/documents/types/index.mjs +1 -0
- package/dist/esm/api/resources/facts/client/requests/FactsExtractRequest.d.mts +1 -1
- package/dist/esm/api/resources/index.d.mts +1 -9
- package/dist/esm/api/resources/index.mjs +1 -9
- package/dist/esm/api/resources/stream/client/Socket.d.mts +1 -1
- package/dist/esm/api/resources/templates/client/Client.d.mts +4 -4
- package/dist/esm/api/resources/templates/client/Client.mjs +2 -2
- package/dist/{cjs/api/resources/templates/client/requests/TemplatesListRequest.d.ts → esm/api/resources/templates/client/requests/ListTemplatesRequest.d.mts} +1 -1
- package/dist/esm/api/resources/templates/client/requests/{TemplatesSectionListRequest.d.mts → SectionListTemplatesRequest.d.mts} +1 -1
- package/dist/esm/api/resources/templates/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/transcribe/client/Socket.d.mts +1 -1
- package/dist/esm/api/resources/transcripts/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/transcripts/client/Client.mjs +1 -1
- package/dist/esm/api/resources/transcripts/client/requests/TranscriptsCreateRequest.d.mts +1 -1
- package/dist/esm/api/types/CreateEphemeralDocumentResponse.d.mts +8 -0
- package/dist/esm/api/types/CreateSectionBase.d.mts +8 -3
- package/dist/esm/api/types/CreateSectionFromInheritanceRequest.d.mts +1 -1
- package/dist/esm/api/types/CreateTemplateBase.d.mts +10 -3
- package/dist/esm/api/types/CreateTemplateFromInheritanceRequest.d.mts +2 -2
- package/dist/esm/api/types/DocumentationEvidence.d.mts +6 -0
- package/dist/esm/api/types/DocumentsCreateRequestWithTemplate.d.mts +1 -1
- package/dist/esm/api/types/DocumentsCreateRequestWithTemplateKey.d.mts +1 -1
- package/dist/esm/api/types/DocumentsGetResponse.d.mts +1 -1
- package/dist/esm/api/types/EphemeralDocument.d.mts +12 -0
- package/dist/esm/api/types/EphemeralDocument.mjs +2 -0
- package/dist/esm/api/types/GuidedAssemblyRequest.d.mts +0 -2
- package/dist/esm/api/types/GuidedDocumentBase.d.mts +12 -0
- package/dist/esm/api/types/GuidedDocumentBase.mjs +2 -0
- package/dist/esm/api/types/GuidedDocumentByAssembly.d.mts +1 -5
- package/dist/esm/api/types/GuidedDocumentByDynamic.d.mts +1 -5
- package/dist/esm/api/types/GuidedDocumentByTemplateRef.d.mts +1 -5
- package/dist/esm/api/types/GuidedDynamicRequest.d.mts +0 -2
- package/dist/esm/api/types/GuidedSectionOverride.d.mts +1 -5
- package/dist/esm/api/types/Label.d.mts +4 -0
- package/dist/esm/api/types/Label.mjs +2 -0
- package/dist/esm/api/types/Section.d.mts +9 -3
- package/dist/esm/api/types/SectionInstructionsOverride.d.mts +2 -0
- package/dist/esm/api/types/SectionOverrides.d.mts +2 -2
- package/dist/esm/api/types/SectionSource.d.mts +6 -0
- package/dist/esm/api/types/SectionSource.mjs +6 -0
- package/dist/esm/api/types/StatusResponse.d.mts +2 -0
- package/dist/esm/api/types/StreamAudioEventData.d.mts +9 -0
- package/dist/esm/api/types/StreamAudioEventData.mjs +2 -0
- package/dist/esm/api/types/StreamAudioEventDataEvent.d.mts +8 -0
- package/dist/esm/api/types/StreamAudioEventDataEvent.mjs +8 -0
- package/dist/esm/api/types/StreamAudioEventMessage.d.mts +5 -0
- package/dist/esm/api/types/StreamAudioEventMessage.mjs +2 -0
- package/dist/esm/api/types/StreamAudioEventsConfig.d.mts +4 -0
- package/dist/esm/api/types/StreamAudioEventsConfig.mjs +2 -0
- package/dist/esm/api/types/StreamConfig.d.mts +1 -0
- package/dist/esm/api/types/StreamConfigMode.d.mts +2 -0
- package/dist/esm/api/types/StreamConfigModeFactGenerationInterval.d.mts +6 -0
- package/dist/esm/api/types/StreamConfigModeFactGenerationInterval.mjs +6 -0
- package/dist/esm/api/types/Template.d.mts +11 -3
- package/dist/esm/api/types/TemplateGeneration.d.mts +1 -1
- package/dist/esm/api/types/TemplateSource.d.mts +6 -0
- package/dist/esm/api/types/TemplateSource.mjs +6 -0
- package/dist/esm/api/types/TranscribeAudioEventData.d.mts +9 -0
- package/dist/esm/api/types/TranscribeAudioEventData.mjs +2 -0
- package/dist/esm/api/types/TranscribeAudioEventDataEvent.d.mts +8 -0
- package/dist/esm/api/types/TranscribeAudioEventDataEvent.mjs +8 -0
- package/dist/esm/api/types/TranscribeAudioEventMessage.d.mts +5 -0
- package/dist/esm/api/types/TranscribeAudioEventMessage.mjs +2 -0
- package/dist/esm/api/types/TranscribeAudioEventsConfig.d.mts +4 -0
- package/dist/esm/api/types/TranscribeAudioEventsConfig.mjs +2 -0
- package/dist/esm/api/types/TranscribeConfig.d.mts +1 -0
- package/dist/esm/api/types/index.d.mts +16 -4
- package/dist/esm/api/types/index.mjs +16 -4
- 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/documents/index.d.mts +2 -0
- package/dist/esm/serialization/resources/documents/index.mjs +2 -0
- package/dist/esm/serialization/resources/documents/resources/index.d.mts +4 -0
- package/dist/esm/serialization/resources/documents/resources/index.mjs +4 -0
- package/dist/esm/serialization/resources/documents/resources/sections/client/list.d.mts +8 -0
- package/dist/esm/serialization/resources/documents/resources/sections/client/list.mjs +4 -0
- package/dist/esm/serialization/resources/documents/resources/sections/client/requests/UpdateSectionRequest.d.mts +15 -0
- package/dist/esm/serialization/resources/documents/resources/sections/client/requests/UpdateSectionRequest.mjs +11 -0
- package/dist/esm/serialization/resources/documents/resources/sections/index.d.mts +2 -0
- package/dist/esm/serialization/resources/documents/resources/sections/index.mjs +2 -0
- package/dist/esm/serialization/resources/documents/resources/sections/resources/index.d.mts +2 -0
- package/dist/esm/serialization/resources/documents/resources/sections/resources/index.mjs +2 -0
- package/dist/esm/serialization/resources/documents/resources/sections/resources/versions/client/list.d.mts +8 -0
- package/dist/esm/serialization/resources/documents/resources/sections/resources/versions/client/list.mjs +4 -0
- package/dist/esm/serialization/resources/documents/resources/sections/resources/versions/client/requests/CreateSectionVersionRequest.d.mts +10 -0
- package/dist/esm/serialization/resources/documents/resources/sections/resources/versions/client/requests/CreateSectionVersionRequest.mjs +6 -0
- package/dist/esm/serialization/resources/documents/resources/sections/resources/versions/client/requests/index.d.mts +1 -0
- package/dist/esm/serialization/resources/documents/resources/sections/resources/versions/client/requests/index.mjs +1 -0
- package/dist/esm/serialization/resources/documents/resources/templates/client/list.d.mts +8 -0
- package/dist/esm/serialization/resources/{alphaTemplates → documents/resources/templates}/client/list.mjs +2 -2
- package/dist/esm/serialization/resources/documents/resources/templates/client/requests/UpdateTemplateRequest.d.mts +15 -0
- package/dist/esm/serialization/resources/documents/resources/templates/client/requests/UpdateTemplateRequest.mjs +11 -0
- package/dist/esm/serialization/resources/documents/resources/templates/index.d.mts +2 -0
- package/dist/esm/serialization/resources/documents/resources/templates/index.mjs +2 -0
- package/dist/esm/serialization/resources/documents/resources/templates/resources/index.d.mts +3 -0
- package/dist/esm/serialization/resources/documents/resources/templates/resources/index.mjs +3 -0
- package/dist/esm/serialization/resources/documents/resources/templates/resources/versions/client/index.d.mts +2 -0
- package/dist/esm/serialization/resources/documents/resources/templates/resources/versions/client/index.mjs +2 -0
- package/dist/esm/serialization/resources/documents/resources/templates/resources/versions/client/list.d.mts +8 -0
- package/dist/esm/serialization/resources/documents/resources/templates/resources/versions/client/list.mjs +4 -0
- package/dist/esm/serialization/resources/documents/resources/templates/resources/versions/client/requests/CreateTemplateVersionRequest.d.mts +10 -0
- package/dist/esm/serialization/resources/{alphaTemplateVersions → documents/resources/templates/resources/versions}/client/requests/CreateTemplateVersionRequest.mjs +1 -1
- package/dist/esm/serialization/resources/documents/resources/templates/resources/versions/types/CreateTemplateVersionRequestGeneration.d.mts +12 -0
- package/dist/esm/serialization/resources/{alphaTemplateVersions → documents/resources/templates/resources/versions}/types/CreateTemplateVersionRequestGeneration.mjs +3 -3
- package/dist/esm/serialization/resources/documents/types/GenerateDocumentsRequestXCortiRetentionPolicy.d.mts +7 -0
- package/dist/esm/serialization/resources/{alphaSections/client/list.mjs → documents/types/GenerateDocumentsRequestXCortiRetentionPolicy.mjs} +1 -2
- package/dist/esm/serialization/resources/documents/types/index.d.mts +1 -0
- package/dist/esm/serialization/resources/documents/types/index.mjs +1 -0
- package/dist/esm/serialization/resources/index.d.mts +1 -8
- package/dist/esm/serialization/resources/index.mjs +1 -8
- package/dist/esm/serialization/resources/stream/client/socket/StreamSocketResponse.d.mts +3 -2
- package/dist/esm/serialization/resources/stream/client/socket/StreamSocketResponse.mjs +2 -0
- package/dist/esm/serialization/resources/transcribe/client/socket/TranscribeSocketResponse.d.mts +3 -2
- package/dist/esm/serialization/resources/transcribe/client/socket/TranscribeSocketResponse.mjs +2 -0
- package/dist/esm/serialization/types/CreateEphemeralDocumentResponse.d.mts +12 -0
- package/dist/esm/serialization/types/CreateEphemeralDocumentResponse.mjs +8 -0
- package/dist/esm/serialization/types/CreateSectionBase.d.mts +5 -2
- package/dist/esm/serialization/types/CreateSectionBase.mjs +5 -2
- package/dist/esm/serialization/types/CreateSectionFromInheritanceRequest.d.mts +1 -1
- package/dist/esm/serialization/types/CreateSectionFromInheritanceRequest.mjs +1 -1
- package/dist/esm/serialization/types/CreateTemplateBase.d.mts +6 -2
- package/dist/esm/serialization/types/CreateTemplateBase.mjs +6 -2
- package/dist/esm/serialization/types/CreateTemplateFromInheritanceRequest.d.mts +1 -1
- package/dist/esm/serialization/types/CreateTemplateFromInheritanceRequest.mjs +1 -1
- package/dist/esm/serialization/types/DocumentationEvidence.d.mts +12 -0
- package/dist/esm/serialization/types/DocumentationEvidence.mjs +8 -0
- package/dist/esm/serialization/types/EphemeralDocument.d.mts +14 -0
- package/dist/esm/serialization/types/{GuidedGenerationResult.mjs → EphemeralDocument.mjs} +6 -4
- package/dist/esm/serialization/types/GuidedAssemblyRequest.d.mts +0 -1
- package/dist/esm/serialization/types/GuidedAssemblyRequest.mjs +0 -1
- package/dist/esm/serialization/types/GuidedDocumentBase.d.mts +12 -0
- package/dist/esm/serialization/types/GuidedDocumentBase.mjs +8 -0
- package/dist/esm/serialization/types/GuidedDocumentByAssembly.d.mts +2 -4
- package/dist/esm/serialization/types/GuidedDocumentByAssembly.mjs +5 -5
- package/dist/esm/serialization/types/GuidedDocumentByDynamic.d.mts +2 -4
- package/dist/esm/serialization/types/GuidedDocumentByDynamic.mjs +5 -5
- package/dist/esm/serialization/types/GuidedDocumentByTemplateRef.d.mts +2 -4
- package/dist/esm/serialization/types/GuidedDocumentByTemplateRef.mjs +5 -5
- package/dist/esm/serialization/types/GuidedDynamicRequest.d.mts +0 -1
- package/dist/esm/serialization/types/GuidedDynamicRequest.mjs +0 -1
- package/dist/esm/serialization/types/GuidedSectionOverride.d.mts +3 -5
- package/dist/esm/serialization/types/GuidedSectionOverride.mjs +2 -5
- package/dist/esm/serialization/types/Label.d.mts +10 -0
- package/dist/esm/serialization/types/Label.mjs +6 -0
- package/dist/esm/serialization/types/Section.d.mts +7 -2
- package/dist/esm/serialization/types/Section.mjs +7 -2
- package/dist/esm/serialization/types/SectionInstructionsOverride.d.mts +1 -0
- package/dist/esm/serialization/types/SectionInstructionsOverride.mjs +1 -0
- package/dist/esm/serialization/types/SectionOverrides.d.mts +1 -1
- package/dist/esm/serialization/types/SectionOverrides.mjs +1 -1
- package/dist/esm/serialization/types/SectionSource.d.mts +7 -0
- package/dist/esm/serialization/types/SectionSource.mjs +3 -0
- package/dist/esm/serialization/types/StatusResponse.d.mts +2 -0
- package/dist/esm/serialization/types/StatusResponse.mjs +2 -0
- package/dist/esm/serialization/types/StreamAudioEventData.d.mts +12 -0
- package/dist/esm/serialization/types/StreamAudioEventData.mjs +8 -0
- package/dist/esm/serialization/types/StreamAudioEventDataEvent.d.mts +7 -0
- package/dist/esm/serialization/types/StreamAudioEventDataEvent.mjs +8 -0
- package/dist/esm/serialization/types/StreamAudioEventMessage.d.mts +11 -0
- package/dist/esm/serialization/types/StreamAudioEventMessage.mjs +7 -0
- package/dist/esm/serialization/types/StreamAudioEventsConfig.d.mts +9 -0
- package/dist/esm/serialization/types/StreamAudioEventsConfig.mjs +5 -0
- package/dist/esm/serialization/types/StreamConfig.d.mts +2 -0
- package/dist/esm/serialization/types/StreamConfig.mjs +2 -0
- package/dist/esm/serialization/types/StreamConfigMode.d.mts +2 -0
- package/dist/esm/serialization/types/StreamConfigMode.mjs +2 -0
- package/dist/esm/serialization/types/StreamConfigModeFactGenerationInterval.d.mts +7 -0
- package/dist/esm/serialization/types/StreamConfigModeFactGenerationInterval.mjs +3 -0
- package/dist/esm/serialization/types/Template.d.mts +8 -2
- package/dist/esm/serialization/types/Template.mjs +8 -2
- package/dist/esm/serialization/types/TemplateSource.d.mts +7 -0
- package/dist/esm/serialization/types/TemplateSource.mjs +3 -0
- package/dist/esm/serialization/types/TranscribeAudioEventData.d.mts +12 -0
- package/dist/esm/serialization/types/TranscribeAudioEventData.mjs +8 -0
- package/dist/esm/serialization/types/TranscribeAudioEventDataEvent.d.mts +7 -0
- package/dist/esm/serialization/types/TranscribeAudioEventDataEvent.mjs +8 -0
- package/dist/esm/serialization/types/TranscribeAudioEventMessage.d.mts +11 -0
- package/dist/esm/serialization/types/TranscribeAudioEventMessage.mjs +7 -0
- package/dist/esm/serialization/types/TranscribeAudioEventsConfig.d.mts +9 -0
- package/dist/esm/serialization/types/TranscribeAudioEventsConfig.mjs +5 -0
- package/dist/esm/serialization/types/TranscribeConfig.d.mts +2 -0
- package/dist/esm/serialization/types/TranscribeConfig.mjs +2 -0
- package/dist/esm/serialization/types/index.d.mts +16 -4
- package/dist/esm/serialization/types/index.mjs +16 -4
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/dist/cjs/api/resources/alphaDocuments/client/Client.d.ts +0 -35
- package/dist/cjs/api/resources/alphaDocuments/client/Client.js +0 -143
- package/dist/cjs/api/resources/alphaDocuments/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/alphaSectionVersions/client/Client.d.ts +0 -83
- package/dist/cjs/api/resources/alphaSectionVersions/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/alphaSections/client/Client.d.ts +0 -80
- package/dist/cjs/api/resources/alphaSections/client/requests/ListAlphaSectionsRequest.d.ts +0 -12
- package/dist/cjs/api/resources/alphaSections/client/requests/UpdateSectionRequest.d.ts +0 -10
- package/dist/cjs/api/resources/alphaSections/client/requests/index.d.ts +0 -2
- package/dist/cjs/api/resources/alphaSections/index.d.ts +0 -1
- package/dist/cjs/api/resources/alphaTemplateVersions/client/Client.d.ts +0 -81
- package/dist/cjs/api/resources/alphaTemplates/client/Client.d.ts +0 -76
- package/dist/cjs/api/resources/alphaTemplates/client/requests/ListAlphaTemplatesRequest.d.ts +0 -12
- package/dist/cjs/api/resources/alphaTemplates/client/requests/UpdateTemplateRequest.d.ts +0 -10
- package/dist/cjs/api/resources/alphaTemplates/client/requests/index.d.ts +0 -2
- package/dist/cjs/api/resources/alphaTemplates/client/requests/index.js +0 -2
- package/dist/cjs/api/resources/alphaTemplates/index.d.ts +0 -1
- package/dist/cjs/api/resources/alphaTemplates/index.js +0 -17
- package/dist/cjs/api/types/GuidedDocumentResponse.d.ts +0 -8
- package/dist/cjs/api/types/GuidedGenerationResult.d.ts +0 -11
- package/dist/cjs/api/types/GuidedGenerationResultUsage.d.ts +0 -4
- package/dist/cjs/api/types/GuidedGenerationResultUsageTokenCount.d.ts +0 -4
- package/dist/cjs/serialization/resources/alphaSectionVersions/client/index.d.ts +0 -1
- package/dist/cjs/serialization/resources/alphaSectionVersions/client/list.d.ts +0 -8
- package/dist/cjs/serialization/resources/alphaSectionVersions/index.d.ts +0 -1
- package/dist/cjs/serialization/resources/alphaSectionVersions/index.js +0 -17
- package/dist/cjs/serialization/resources/alphaSections/client/list.d.ts +0 -8
- package/dist/cjs/serialization/resources/alphaSections/client/requests/UpdateSectionRequest.d.ts +0 -12
- package/dist/cjs/serialization/resources/alphaSections/index.d.ts +0 -1
- package/dist/cjs/serialization/resources/alphaSections/index.js +0 -17
- package/dist/cjs/serialization/resources/alphaTemplateVersions/client/list.d.ts +0 -8
- package/dist/cjs/serialization/resources/alphaTemplateVersions/client/requests/CreateTemplateVersionRequest.d.ts +0 -10
- package/dist/cjs/serialization/resources/alphaTemplateVersions/types/CreateTemplateVersionRequestGeneration.d.ts +0 -12
- package/dist/cjs/serialization/resources/alphaTemplates/client/list.d.ts +0 -8
- package/dist/cjs/serialization/resources/alphaTemplates/client/requests/UpdateTemplateRequest.d.ts +0 -12
- package/dist/cjs/serialization/resources/alphaTemplates/index.d.ts +0 -1
- package/dist/cjs/serialization/resources/alphaTemplates/index.js +0 -17
- package/dist/cjs/serialization/types/GuidedDocumentResponse.d.ts +0 -12
- package/dist/cjs/serialization/types/GuidedGenerationResult.d.ts +0 -12
- package/dist/cjs/serialization/types/GuidedGenerationResultUsage.d.ts +0 -10
- package/dist/cjs/serialization/types/GuidedGenerationResultUsageTokenCount.d.ts +0 -10
- package/dist/esm/api/resources/alphaDocuments/client/Client.d.mts +0 -35
- package/dist/esm/api/resources/alphaDocuments/client/Client.mjs +0 -106
- package/dist/esm/api/resources/alphaDocuments/client/index.d.mts +0 -1
- package/dist/esm/api/resources/alphaSectionVersions/client/Client.d.mts +0 -83
- package/dist/esm/api/resources/alphaSectionVersions/client/index.d.mts +0 -1
- package/dist/esm/api/resources/alphaSections/client/Client.d.mts +0 -80
- package/dist/esm/api/resources/alphaSections/client/requests/ListAlphaSectionsRequest.d.mts +0 -12
- package/dist/esm/api/resources/alphaSections/client/requests/UpdateSectionRequest.d.mts +0 -10
- package/dist/esm/api/resources/alphaSections/client/requests/index.d.mts +0 -2
- package/dist/esm/api/resources/alphaSections/index.d.mts +0 -1
- package/dist/esm/api/resources/alphaSections/index.mjs +0 -1
- package/dist/esm/api/resources/alphaTemplateVersions/client/Client.d.mts +0 -81
- package/dist/esm/api/resources/alphaTemplates/client/Client.d.mts +0 -76
- package/dist/esm/api/resources/alphaTemplates/client/requests/ListAlphaTemplatesRequest.d.mts +0 -12
- package/dist/esm/api/resources/alphaTemplates/client/requests/UpdateTemplateRequest.d.mts +0 -10
- package/dist/esm/api/resources/alphaTemplates/client/requests/index.d.mts +0 -2
- package/dist/esm/api/resources/alphaTemplates/client/requests/index.mjs +0 -1
- package/dist/esm/api/resources/alphaTemplates/index.d.mts +0 -1
- package/dist/esm/api/resources/alphaTemplates/index.mjs +0 -1
- package/dist/esm/api/types/GuidedDocumentResponse.d.mts +0 -8
- package/dist/esm/api/types/GuidedGenerationResult.d.mts +0 -11
- package/dist/esm/api/types/GuidedGenerationResultUsage.d.mts +0 -4
- package/dist/esm/api/types/GuidedGenerationResultUsageTokenCount.d.mts +0 -4
- package/dist/esm/serialization/resources/alphaSectionVersions/client/index.d.mts +0 -1
- package/dist/esm/serialization/resources/alphaSectionVersions/client/index.mjs +0 -1
- package/dist/esm/serialization/resources/alphaSectionVersions/client/list.d.mts +0 -8
- package/dist/esm/serialization/resources/alphaSectionVersions/client/list.mjs +0 -4
- package/dist/esm/serialization/resources/alphaSectionVersions/index.d.mts +0 -1
- package/dist/esm/serialization/resources/alphaSectionVersions/index.mjs +0 -1
- package/dist/esm/serialization/resources/alphaSections/client/list.d.mts +0 -8
- package/dist/esm/serialization/resources/alphaSections/client/requests/UpdateSectionRequest.d.mts +0 -12
- package/dist/esm/serialization/resources/alphaSections/client/requests/UpdateSectionRequest.mjs +0 -8
- package/dist/esm/serialization/resources/alphaSections/index.d.mts +0 -1
- package/dist/esm/serialization/resources/alphaSections/index.mjs +0 -1
- package/dist/esm/serialization/resources/alphaTemplateVersions/client/list.d.mts +0 -8
- package/dist/esm/serialization/resources/alphaTemplateVersions/client/list.mjs +0 -4
- package/dist/esm/serialization/resources/alphaTemplateVersions/client/requests/CreateTemplateVersionRequest.d.mts +0 -10
- package/dist/esm/serialization/resources/alphaTemplateVersions/types/CreateTemplateVersionRequestGeneration.d.mts +0 -12
- package/dist/esm/serialization/resources/alphaTemplates/client/list.d.mts +0 -8
- package/dist/esm/serialization/resources/alphaTemplates/client/requests/UpdateTemplateRequest.d.mts +0 -12
- package/dist/esm/serialization/resources/alphaTemplates/client/requests/UpdateTemplateRequest.mjs +0 -8
- package/dist/esm/serialization/resources/alphaTemplates/index.d.mts +0 -1
- package/dist/esm/serialization/resources/alphaTemplates/index.mjs +0 -1
- package/dist/esm/serialization/types/GuidedDocumentResponse.d.mts +0 -12
- package/dist/esm/serialization/types/GuidedDocumentResponse.mjs +0 -8
- package/dist/esm/serialization/types/GuidedGenerationResult.d.mts +0 -12
- package/dist/esm/serialization/types/GuidedGenerationResultUsage.d.mts +0 -10
- package/dist/esm/serialization/types/GuidedGenerationResultUsage.mjs +0 -6
- package/dist/esm/serialization/types/GuidedGenerationResultUsageTokenCount.d.mts +0 -10
- package/dist/esm/serialization/types/GuidedGenerationResultUsageTokenCount.mjs +0 -6
- /package/dist/cjs/api/resources/{alphaSections/client/requests/ListAlphaSectionsRequest.js → documents/client/requests/GenerateDocumentsRequest.js} +0 -0
- /package/dist/cjs/api/resources/{alphaSections → documents/resources/sections}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{alphaSections → documents/resources/sections}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{alphaSections/client/requests/UpdateSectionRequest.js → documents/resources/sections/client/requests/ListSectionsRequest.js} +0 -0
- /package/dist/cjs/api/resources/{alphaTemplateVersions/client/requests/CreateTemplateVersionRequest.js → documents/resources/sections/client/requests/UpdateSectionRequest.js} +0 -0
- /package/dist/cjs/api/resources/{alphaDocuments/client → documents/resources/sections/client/requests}/index.js +0 -0
- /package/dist/cjs/api/resources/{alphaTemplateVersions → documents/resources/sections/resources/versions}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{alphaTemplateVersions → documents/resources/sections/resources/versions}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{alphaTemplateVersions/types/CreateTemplateVersionRequestGeneration.js → documents/resources/sections/resources/versions/client/requests/CreateSectionVersionRequest.js} +0 -0
- /package/dist/cjs/api/resources/{alphaSectionVersions/client → documents/resources/sections/resources/versions/client/requests}/index.js +0 -0
- /package/dist/cjs/api/resources/{alphaDocuments → documents/resources/sections/resources/versions}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{alphaDocuments → documents/resources/sections/resources/versions}/index.js +0 -0
- /package/dist/cjs/api/resources/{alphaTemplates → documents/resources/templates}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{alphaTemplates → documents/resources/templates}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{alphaTemplates/client/requests/ListAlphaTemplatesRequest.js → documents/resources/templates/client/requests/ListTemplatesRequest.js} +0 -0
- /package/dist/cjs/api/resources/{alphaTemplates → documents/resources/templates}/client/requests/UpdateTemplateRequest.js +0 -0
- /package/dist/cjs/api/resources/{alphaSections → documents/resources/templates}/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/{templates/client/requests/TemplatesListRequest.js → documents/resources/templates/resources/versions/client/requests/CreateTemplateVersionRequest.js} +0 -0
- /package/dist/cjs/api/resources/{alphaTemplateVersions → documents/resources/templates/resources/versions}/client/requests/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{alphaTemplateVersions → documents/resources/templates/resources/versions}/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/{alphaTemplateVersions → documents/resources/templates/resources/versions}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{alphaTemplateVersions → documents/resources/templates/resources/versions}/index.js +0 -0
- /package/dist/cjs/api/resources/{templates/client/requests/TemplatesSectionListRequest.js → documents/resources/templates/resources/versions/types/CreateTemplateVersionRequestGeneration.js} +0 -0
- /package/dist/cjs/api/resources/{alphaTemplateVersions → documents/resources/templates/resources/versions}/types/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{alphaTemplateVersions → documents/resources/templates/resources/versions}/types/index.js +0 -0
- /package/dist/cjs/api/{types/GuidedDocumentResponse.js → resources/templates/client/requests/ListTemplatesRequest.js} +0 -0
- /package/dist/cjs/api/{types/GuidedGenerationResult.js → resources/templates/client/requests/SectionListTemplatesRequest.js} +0 -0
- /package/dist/cjs/api/types/{GuidedGenerationResultUsage.js → CreateEphemeralDocumentResponse.js} +0 -0
- /package/dist/cjs/api/types/{GuidedGenerationResultUsageTokenCount.js → DocumentationEvidence.js} +0 -0
- /package/dist/cjs/serialization/resources/{alphaSections → documents/resources/sections}/client/index.d.ts +0 -0
- /package/dist/cjs/serialization/resources/{alphaSections → documents/resources/sections}/client/index.js +0 -0
- /package/dist/cjs/serialization/resources/{alphaSections → documents/resources/sections}/client/requests/index.d.ts +0 -0
- /package/dist/cjs/serialization/resources/{alphaSections → documents/resources/sections}/client/requests/index.js +0 -0
- /package/dist/cjs/serialization/resources/{alphaTemplateVersions → documents/resources/sections/resources/versions}/client/index.d.ts +0 -0
- /package/dist/cjs/serialization/resources/{alphaTemplateVersions → documents/resources/sections/resources/versions}/client/index.js +0 -0
- /package/dist/cjs/{api/resources/alphaSectionVersions → serialization/resources/documents/resources/sections/resources/versions}/index.d.ts +0 -0
- /package/dist/cjs/{api/resources/alphaSectionVersions → serialization/resources/documents/resources/sections/resources/versions}/index.js +0 -0
- /package/dist/cjs/serialization/resources/{alphaTemplates → documents/resources/templates}/client/index.d.ts +0 -0
- /package/dist/cjs/serialization/resources/{alphaTemplates → documents/resources/templates}/client/index.js +0 -0
- /package/dist/cjs/serialization/resources/{alphaTemplates → documents/resources/templates}/client/requests/index.d.ts +0 -0
- /package/dist/cjs/serialization/resources/{alphaTemplates → documents/resources/templates}/client/requests/index.js +0 -0
- /package/dist/cjs/serialization/resources/{alphaTemplateVersions → documents/resources/templates/resources/versions}/client/requests/index.d.ts +0 -0
- /package/dist/cjs/serialization/resources/{alphaTemplateVersions → documents/resources/templates/resources/versions}/client/requests/index.js +0 -0
- /package/dist/cjs/serialization/resources/{alphaTemplateVersions → documents/resources/templates/resources/versions}/index.d.ts +0 -0
- /package/dist/cjs/serialization/resources/{alphaTemplateVersions → documents/resources/templates/resources/versions}/index.js +0 -0
- /package/dist/cjs/serialization/resources/{alphaTemplateVersions → documents/resources/templates/resources/versions}/types/index.d.ts +0 -0
- /package/dist/cjs/serialization/resources/{alphaTemplateVersions → documents/resources/templates/resources/versions}/types/index.js +0 -0
- /package/dist/esm/api/resources/{alphaSections/client/requests/ListAlphaSectionsRequest.mjs → documents/client/requests/GenerateDocumentsRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{alphaSections → documents/resources/sections}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{alphaSections → documents/resources/sections}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{alphaSections/client/requests/UpdateSectionRequest.mjs → documents/resources/sections/client/requests/ListSectionsRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{alphaTemplateVersions/client/requests/CreateTemplateVersionRequest.mjs → documents/resources/sections/client/requests/UpdateSectionRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{alphaDocuments/client → documents/resources/sections/client/requests}/index.mjs +0 -0
- /package/dist/esm/api/resources/{alphaTemplateVersions → documents/resources/sections/resources/versions}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{alphaTemplateVersions → documents/resources/sections/resources/versions}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{alphaTemplateVersions/types/CreateTemplateVersionRequestGeneration.mjs → documents/resources/sections/resources/versions/client/requests/CreateSectionVersionRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{alphaSectionVersions/client → documents/resources/sections/resources/versions/client/requests}/index.mjs +0 -0
- /package/dist/esm/api/resources/{alphaDocuments → documents/resources/sections/resources/versions}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{alphaDocuments → documents/resources/sections/resources/versions}/index.mjs +0 -0
- /package/dist/esm/api/resources/{alphaTemplates → documents/resources/templates}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{alphaTemplates → documents/resources/templates}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{alphaTemplates/client/requests/ListAlphaTemplatesRequest.mjs → documents/resources/templates/client/requests/ListTemplatesRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{alphaTemplates → documents/resources/templates}/client/requests/UpdateTemplateRequest.mjs +0 -0
- /package/dist/esm/api/resources/{alphaSections → documents/resources/templates}/client/requests/index.mjs +0 -0
- /package/dist/esm/api/resources/{templates/client/requests/TemplatesListRequest.mjs → documents/resources/templates/resources/versions/client/requests/CreateTemplateVersionRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{alphaTemplateVersions → documents/resources/templates/resources/versions}/client/requests/index.d.mts +0 -0
- /package/dist/esm/api/resources/{alphaTemplateVersions → documents/resources/templates/resources/versions}/client/requests/index.mjs +0 -0
- /package/dist/esm/api/resources/{alphaTemplateVersions → documents/resources/templates/resources/versions}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{alphaTemplateVersions → documents/resources/templates/resources/versions}/index.mjs +0 -0
- /package/dist/esm/api/resources/{templates/client/requests/TemplatesSectionListRequest.mjs → documents/resources/templates/resources/versions/types/CreateTemplateVersionRequestGeneration.mjs} +0 -0
- /package/dist/esm/api/resources/{alphaTemplateVersions → documents/resources/templates/resources/versions}/types/index.d.mts +0 -0
- /package/dist/esm/api/resources/{alphaTemplateVersions → documents/resources/templates/resources/versions}/types/index.mjs +0 -0
- /package/dist/esm/api/{types/GuidedDocumentResponse.mjs → resources/templates/client/requests/ListTemplatesRequest.mjs} +0 -0
- /package/dist/esm/api/{types/GuidedGenerationResult.mjs → resources/templates/client/requests/SectionListTemplatesRequest.mjs} +0 -0
- /package/dist/esm/api/types/{GuidedGenerationResultUsage.mjs → CreateEphemeralDocumentResponse.mjs} +0 -0
- /package/dist/esm/api/types/{GuidedGenerationResultUsageTokenCount.mjs → DocumentationEvidence.mjs} +0 -0
- /package/dist/esm/serialization/resources/{alphaSections → documents/resources/sections}/client/index.d.mts +0 -0
- /package/dist/esm/serialization/resources/{alphaSections → documents/resources/sections}/client/index.mjs +0 -0
- /package/dist/esm/serialization/resources/{alphaSections → documents/resources/sections}/client/requests/index.d.mts +0 -0
- /package/dist/esm/serialization/resources/{alphaSections → documents/resources/sections}/client/requests/index.mjs +0 -0
- /package/dist/esm/serialization/resources/{alphaTemplateVersions → documents/resources/sections/resources/versions}/client/index.d.mts +0 -0
- /package/dist/esm/serialization/resources/{alphaTemplateVersions → documents/resources/sections/resources/versions}/client/index.mjs +0 -0
- /package/dist/esm/{api/resources/alphaSectionVersions → serialization/resources/documents/resources/sections/resources/versions}/index.d.mts +0 -0
- /package/dist/esm/{api/resources/alphaSectionVersions → serialization/resources/documents/resources/sections/resources/versions}/index.mjs +0 -0
- /package/dist/esm/serialization/resources/{alphaTemplates → documents/resources/templates}/client/index.d.mts +0 -0
- /package/dist/esm/serialization/resources/{alphaTemplates → documents/resources/templates}/client/index.mjs +0 -0
- /package/dist/esm/serialization/resources/{alphaTemplates → documents/resources/templates}/client/requests/index.d.mts +0 -0
- /package/dist/esm/serialization/resources/{alphaTemplates → documents/resources/templates}/client/requests/index.mjs +0 -0
- /package/dist/esm/serialization/resources/{alphaTemplateVersions → documents/resources/templates/resources/versions}/client/requests/index.d.mts +0 -0
- /package/dist/esm/serialization/resources/{alphaTemplateVersions → documents/resources/templates/resources/versions}/client/requests/index.mjs +0 -0
- /package/dist/esm/serialization/resources/{alphaTemplateVersions → documents/resources/templates/resources/versions}/index.d.mts +0 -0
- /package/dist/esm/serialization/resources/{alphaTemplateVersions → documents/resources/templates/resources/versions}/index.mjs +0 -0
- /package/dist/esm/serialization/resources/{alphaTemplateVersions → documents/resources/templates/resources/versions}/types/index.d.mts +0 -0
- /package/dist/esm/serialization/resources/{alphaTemplateVersions → documents/resources/templates/resources/versions}/types/index.mjs +0 -0
package/dist/esm/api/resources/documents/resources/templates/resources/versions/client/Client.d.mts
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
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 VersionsClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare class VersionsClient {
|
|
11
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<VersionsClient.Options>;
|
|
12
|
+
constructor(options: VersionsClient.Options);
|
|
13
|
+
/**
|
|
14
|
+
* @param {string} templateID
|
|
15
|
+
* @param {VersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
16
|
+
*
|
|
17
|
+
* @throws {@link Corti.NotFoundError}
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* await client.documents.templates.versions.list("templateID")
|
|
21
|
+
*/
|
|
22
|
+
list(templateID: string, requestOptions?: VersionsClient.RequestOptions): core.HttpResponsePromise<Corti.TemplateVersion[]>;
|
|
23
|
+
private __list;
|
|
24
|
+
/**
|
|
25
|
+
* @param {string} templateID
|
|
26
|
+
* @param {Corti.documents.templates.CreateTemplateVersionRequest} request
|
|
27
|
+
* @param {VersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
28
|
+
*
|
|
29
|
+
* @throws {@link Corti.BadRequestError}
|
|
30
|
+
* @throws {@link Corti.NotFoundError}
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* await client.documents.templates.versions.create("templateID", {
|
|
34
|
+
* generation: {
|
|
35
|
+
* instructions: {
|
|
36
|
+
* prompt: "prompt"
|
|
37
|
+
* }
|
|
38
|
+
* }
|
|
39
|
+
* })
|
|
40
|
+
*/
|
|
41
|
+
create(templateID: string, request: Corti.documents.templates.CreateTemplateVersionRequest, requestOptions?: VersionsClient.RequestOptions): core.HttpResponsePromise<Corti.TemplateVersion>;
|
|
42
|
+
private __create;
|
|
43
|
+
/**
|
|
44
|
+
* @param {string} templateID
|
|
45
|
+
* @param {string} versionID
|
|
46
|
+
* @param {VersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
47
|
+
*
|
|
48
|
+
* @throws {@link Corti.NotFoundError}
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* await client.documents.templates.versions.get("templateID", "versionID")
|
|
52
|
+
*/
|
|
53
|
+
get(templateID: string, versionID: string, requestOptions?: VersionsClient.RequestOptions): core.HttpResponsePromise<Corti.TemplateVersion>;
|
|
54
|
+
private __get;
|
|
55
|
+
/**
|
|
56
|
+
* A published version cannot be deleted. When deleting a last remaining version of a template, simply create a new version again if needed.
|
|
57
|
+
*
|
|
58
|
+
* @param {string} templateID
|
|
59
|
+
* @param {string} versionID
|
|
60
|
+
* @param {VersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link Corti.NotFoundError}
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* await client.documents.templates.versions.delete("templateID", "versionID")
|
|
66
|
+
*/
|
|
67
|
+
delete(templateID: string, versionID: string, requestOptions?: VersionsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
68
|
+
private __delete;
|
|
69
|
+
/**
|
|
70
|
+
* Sets this version as the published version of the template.
|
|
71
|
+
*
|
|
72
|
+
* @param {string} templateID
|
|
73
|
+
* @param {string} versionID
|
|
74
|
+
* @param {VersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link Corti.NotFoundError}
|
|
77
|
+
*
|
|
78
|
+
* @example
|
|
79
|
+
* await client.documents.templates.versions.publish("templateID", "versionID")
|
|
80
|
+
*/
|
|
81
|
+
publish(templateID: string, versionID: string, requestOptions?: VersionsClient.RequestOptions): core.HttpResponsePromise<Corti.StatusResponse>;
|
|
82
|
+
private __publish;
|
|
83
|
+
}
|
|
@@ -8,25 +8,25 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
|
-
import { normalizeClientOptionsWithAuth } from "
|
|
12
|
-
import { mergeHeaders, mergeOnlyDefinedHeaders } from "
|
|
13
|
-
import * as core from "
|
|
14
|
-
import { handleNonStatusCodeError } from "
|
|
15
|
-
import * as errors from "
|
|
16
|
-
import * as serializers from "
|
|
17
|
-
import * as Corti from "
|
|
18
|
-
export class
|
|
11
|
+
import { normalizeClientOptionsWithAuth, } from "../../../../../../../../BaseClient.mjs";
|
|
12
|
+
import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../../../../../core/headers.mjs";
|
|
13
|
+
import * as core from "../../../../../../../../core/index.mjs";
|
|
14
|
+
import { handleNonStatusCodeError } from "../../../../../../../../errors/handleNonStatusCodeError.mjs";
|
|
15
|
+
import * as errors from "../../../../../../../../errors/index.mjs";
|
|
16
|
+
import * as serializers from "../../../../../../../../serialization/index.mjs";
|
|
17
|
+
import * as Corti from "../../../../../../../index.mjs";
|
|
18
|
+
export class VersionsClient {
|
|
19
19
|
constructor(options) {
|
|
20
20
|
this._options = normalizeClientOptionsWithAuth(options);
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
23
|
* @param {string} templateID
|
|
24
|
-
* @param {
|
|
24
|
+
* @param {VersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
25
25
|
*
|
|
26
26
|
* @throws {@link Corti.NotFoundError}
|
|
27
27
|
*
|
|
28
28
|
* @example
|
|
29
|
-
* await client.
|
|
29
|
+
* await client.documents.templates.versions.list("templateID")
|
|
30
30
|
*/
|
|
31
31
|
list(templateID, requestOptions) {
|
|
32
32
|
return core.HttpResponsePromise.fromPromise(this.__list(templateID, requestOptions));
|
|
@@ -37,7 +37,7 @@ export class AlphaTemplateVersionsClient {
|
|
|
37
37
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
38
38
|
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);
|
|
39
39
|
const _response = yield core.fetcher({
|
|
40
|
-
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, `
|
|
40
|
+
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, `documents/templates/${core.url.encodePathParam(templateID)}/versions/`),
|
|
41
41
|
method: "GET",
|
|
42
42
|
headers: _headers,
|
|
43
43
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -49,7 +49,7 @@ export class AlphaTemplateVersionsClient {
|
|
|
49
49
|
});
|
|
50
50
|
if (_response.ok) {
|
|
51
51
|
return {
|
|
52
|
-
data: serializers.
|
|
52
|
+
data: serializers.documents.templates.versions.list.Response.parseOrThrow(_response.body, {
|
|
53
53
|
unrecognizedObjectKeys: "passthrough",
|
|
54
54
|
allowUnrecognizedUnionMembers: true,
|
|
55
55
|
allowUnrecognizedEnumValues: true,
|
|
@@ -71,19 +71,19 @@ export class AlphaTemplateVersionsClient {
|
|
|
71
71
|
});
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
-
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/
|
|
74
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/documents/templates/{templateID}/versions/");
|
|
75
75
|
});
|
|
76
76
|
}
|
|
77
77
|
/**
|
|
78
78
|
* @param {string} templateID
|
|
79
|
-
* @param {Corti.CreateTemplateVersionRequest} request
|
|
80
|
-
* @param {
|
|
79
|
+
* @param {Corti.documents.templates.CreateTemplateVersionRequest} request
|
|
80
|
+
* @param {VersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
81
81
|
*
|
|
82
82
|
* @throws {@link Corti.BadRequestError}
|
|
83
83
|
* @throws {@link Corti.NotFoundError}
|
|
84
84
|
*
|
|
85
85
|
* @example
|
|
86
|
-
* await client.
|
|
86
|
+
* await client.documents.templates.versions.create("templateID", {
|
|
87
87
|
* generation: {
|
|
88
88
|
* instructions: {
|
|
89
89
|
* prompt: "prompt"
|
|
@@ -100,13 +100,13 @@ export class AlphaTemplateVersionsClient {
|
|
|
100
100
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
101
101
|
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);
|
|
102
102
|
const _response = yield core.fetcher({
|
|
103
|
-
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, `
|
|
103
|
+
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, `documents/templates/${core.url.encodePathParam(templateID)}/versions/`),
|
|
104
104
|
method: "POST",
|
|
105
105
|
headers: _headers,
|
|
106
106
|
contentType: "application/json",
|
|
107
107
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
108
108
|
requestType: "json",
|
|
109
|
-
body: serializers.CreateTemplateVersionRequest.jsonOrThrow(request, {
|
|
109
|
+
body: serializers.documents.templates.CreateTemplateVersionRequest.jsonOrThrow(request, {
|
|
110
110
|
unrecognizedObjectKeys: "strip",
|
|
111
111
|
omitUndefined: true,
|
|
112
112
|
}),
|
|
@@ -142,18 +142,18 @@ export class AlphaTemplateVersionsClient {
|
|
|
142
142
|
});
|
|
143
143
|
}
|
|
144
144
|
}
|
|
145
|
-
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/
|
|
145
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/documents/templates/{templateID}/versions/");
|
|
146
146
|
});
|
|
147
147
|
}
|
|
148
148
|
/**
|
|
149
149
|
* @param {string} templateID
|
|
150
150
|
* @param {string} versionID
|
|
151
|
-
* @param {
|
|
151
|
+
* @param {VersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
152
152
|
*
|
|
153
153
|
* @throws {@link Corti.NotFoundError}
|
|
154
154
|
*
|
|
155
155
|
* @example
|
|
156
|
-
* await client.
|
|
156
|
+
* await client.documents.templates.versions.get("templateID", "versionID")
|
|
157
157
|
*/
|
|
158
158
|
get(templateID, versionID, requestOptions) {
|
|
159
159
|
return core.HttpResponsePromise.fromPromise(this.__get(templateID, versionID, requestOptions));
|
|
@@ -164,7 +164,7 @@ export class AlphaTemplateVersionsClient {
|
|
|
164
164
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
165
165
|
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);
|
|
166
166
|
const _response = yield core.fetcher({
|
|
167
|
-
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, `
|
|
167
|
+
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, `documents/templates/${core.url.encodePathParam(templateID)}/versions/${core.url.encodePathParam(versionID)}`),
|
|
168
168
|
method: "GET",
|
|
169
169
|
headers: _headers,
|
|
170
170
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -198,18 +198,20 @@ export class AlphaTemplateVersionsClient {
|
|
|
198
198
|
});
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
|
-
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/
|
|
201
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/documents/templates/{templateID}/versions/{versionID}");
|
|
202
202
|
});
|
|
203
203
|
}
|
|
204
204
|
/**
|
|
205
|
+
* A published version cannot be deleted. When deleting a last remaining version of a template, simply create a new version again if needed.
|
|
206
|
+
*
|
|
205
207
|
* @param {string} templateID
|
|
206
208
|
* @param {string} versionID
|
|
207
|
-
* @param {
|
|
209
|
+
* @param {VersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
208
210
|
*
|
|
209
211
|
* @throws {@link Corti.NotFoundError}
|
|
210
212
|
*
|
|
211
213
|
* @example
|
|
212
|
-
* await client.
|
|
214
|
+
* await client.documents.templates.versions.delete("templateID", "versionID")
|
|
213
215
|
*/
|
|
214
216
|
delete(templateID, versionID, requestOptions) {
|
|
215
217
|
return core.HttpResponsePromise.fromPromise(this.__delete(templateID, versionID, requestOptions));
|
|
@@ -220,7 +222,7 @@ export class AlphaTemplateVersionsClient {
|
|
|
220
222
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
221
223
|
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);
|
|
222
224
|
const _response = yield core.fetcher({
|
|
223
|
-
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, `
|
|
225
|
+
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, `documents/templates/${core.url.encodePathParam(templateID)}/versions/${core.url.encodePathParam(versionID)}`),
|
|
224
226
|
method: "DELETE",
|
|
225
227
|
headers: _headers,
|
|
226
228
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -245,7 +247,7 @@ export class AlphaTemplateVersionsClient {
|
|
|
245
247
|
});
|
|
246
248
|
}
|
|
247
249
|
}
|
|
248
|
-
return handleNonStatusCodeError(_response.error, _response.rawResponse, "DELETE", "/
|
|
250
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "DELETE", "/documents/templates/{templateID}/versions/{versionID}");
|
|
249
251
|
});
|
|
250
252
|
}
|
|
251
253
|
/**
|
|
@@ -253,12 +255,12 @@ export class AlphaTemplateVersionsClient {
|
|
|
253
255
|
*
|
|
254
256
|
* @param {string} templateID
|
|
255
257
|
* @param {string} versionID
|
|
256
|
-
* @param {
|
|
258
|
+
* @param {VersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
257
259
|
*
|
|
258
260
|
* @throws {@link Corti.NotFoundError}
|
|
259
261
|
*
|
|
260
262
|
* @example
|
|
261
|
-
* await client.
|
|
263
|
+
* await client.documents.templates.versions.publish("templateID", "versionID")
|
|
262
264
|
*/
|
|
263
265
|
publish(templateID, versionID, requestOptions) {
|
|
264
266
|
return core.HttpResponsePromise.fromPromise(this.__publish(templateID, versionID, requestOptions));
|
|
@@ -269,7 +271,7 @@ export class AlphaTemplateVersionsClient {
|
|
|
269
271
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
270
272
|
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);
|
|
271
273
|
const _response = yield core.fetcher({
|
|
272
|
-
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, `
|
|
274
|
+
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, `documents/templates/${core.url.encodePathParam(templateID)}/versions/${core.url.encodePathParam(versionID)}/publish`),
|
|
273
275
|
method: "POST",
|
|
274
276
|
headers: _headers,
|
|
275
277
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -303,7 +305,7 @@ export class AlphaTemplateVersionsClient {
|
|
|
303
305
|
});
|
|
304
306
|
}
|
|
305
307
|
}
|
|
306
|
-
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/
|
|
308
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/documents/templates/{templateID}/versions/{versionID}/publish");
|
|
307
309
|
});
|
|
308
310
|
}
|
|
309
311
|
}
|
package/dist/esm/api/resources/documents/resources/templates/resources/versions/client/index.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests/index.mjs";
|
package/dist/esm/api/resources/documents/resources/templates/resources/versions/client/index.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests/index.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type * as Corti from "
|
|
1
|
+
import type * as Corti from "../../../../../../../../index.mjs";
|
|
2
2
|
/**
|
|
3
3
|
* @example
|
|
4
4
|
* {
|
|
@@ -10,5 +10,5 @@ import type * as Corti from "../../../../index.mjs";
|
|
|
10
10
|
* }
|
|
11
11
|
*/
|
|
12
12
|
export interface CreateTemplateVersionRequest {
|
|
13
|
-
generation: Corti.CreateTemplateVersionRequestGeneration;
|
|
13
|
+
generation: Corti.documents.templates.CreateTemplateVersionRequestGeneration;
|
|
14
14
|
}
|
package/dist/esm/api/resources/documents/types/GenerateDocumentsRequestXCortiRetentionPolicy.d.mts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const GenerateDocumentsRequestXCortiRetentionPolicy: {
|
|
2
|
+
readonly None: "none";
|
|
3
|
+
};
|
|
4
|
+
export type GenerateDocumentsRequestXCortiRetentionPolicy = (typeof GenerateDocumentsRequestXCortiRetentionPolicy)[keyof typeof GenerateDocumentsRequestXCortiRetentionPolicy];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./GenerateDocumentsRequestXCortiRetentionPolicy.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./GenerateDocumentsRequestXCortiRetentionPolicy.mjs";
|
|
@@ -11,6 +11,6 @@ import type * as Corti from "../../../../index.mjs";
|
|
|
11
11
|
*/
|
|
12
12
|
export interface FactsExtractRequest {
|
|
13
13
|
context: Corti.CommonTextContext[];
|
|
14
|
-
/** The desired output language code for extracted facts. Check [languages page](/
|
|
14
|
+
/** The desired output language code for extracted facts. Check [languages page](/stt/languages) for more. */
|
|
15
15
|
outputLanguage: string;
|
|
16
16
|
}
|
|
@@ -1,21 +1,13 @@
|
|
|
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 * as alphaDocuments from "./alphaDocuments/index.mjs";
|
|
5
|
-
export * from "./alphaSections/client/requests/index.mjs";
|
|
6
|
-
export * as alphaSections from "./alphaSections/index.mjs";
|
|
7
|
-
export * as alphaSectionVersions from "./alphaSectionVersions/index.mjs";
|
|
8
|
-
export * from "./alphaTemplates/client/requests/index.mjs";
|
|
9
|
-
export * as alphaTemplates from "./alphaTemplates/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";
|
|
13
4
|
export * as auth from "./auth/index.mjs";
|
|
14
5
|
export * from "./auth/types/index.mjs";
|
|
15
6
|
export * from "./codes/client/requests/index.mjs";
|
|
16
7
|
export * as codes from "./codes/index.mjs";
|
|
17
8
|
export * from "./documents/client/requests/index.mjs";
|
|
18
9
|
export * as documents from "./documents/index.mjs";
|
|
10
|
+
export * from "./documents/types/index.mjs";
|
|
19
11
|
export * from "./facts/client/requests/index.mjs";
|
|
20
12
|
export * as facts from "./facts/index.mjs";
|
|
21
13
|
export * from "./interactions/client/requests/index.mjs";
|
|
@@ -1,21 +1,13 @@
|
|
|
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 * as alphaDocuments from "./alphaDocuments/index.mjs";
|
|
5
|
-
export * from "./alphaSections/client/requests/index.mjs";
|
|
6
|
-
export * as alphaSections from "./alphaSections/index.mjs";
|
|
7
|
-
export * as alphaSectionVersions from "./alphaSectionVersions/index.mjs";
|
|
8
|
-
export * from "./alphaTemplates/client/requests/index.mjs";
|
|
9
|
-
export * as alphaTemplates from "./alphaTemplates/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";
|
|
13
4
|
export * as auth from "./auth/index.mjs";
|
|
14
5
|
export * from "./auth/types/index.mjs";
|
|
15
6
|
export * from "./codes/client/requests/index.mjs";
|
|
16
7
|
export * as codes from "./codes/index.mjs";
|
|
17
8
|
export * from "./documents/client/requests/index.mjs";
|
|
18
9
|
export * as documents from "./documents/index.mjs";
|
|
10
|
+
export * from "./documents/types/index.mjs";
|
|
19
11
|
export * from "./facts/client/requests/index.mjs";
|
|
20
12
|
export * as facts from "./facts/index.mjs";
|
|
21
13
|
export * from "./interactions/client/requests/index.mjs";
|
|
@@ -4,7 +4,7 @@ export declare namespace StreamSocket {
|
|
|
4
4
|
interface Args {
|
|
5
5
|
socket: core.ReconnectingWebSocket;
|
|
6
6
|
}
|
|
7
|
-
type Response = Corti.StreamTranscriptMessage | Corti.StreamFactsMessage | Corti.StreamFlushedMessage | Corti.StreamDeltaUsageMessage | Corti.StreamEndedMessage | Corti.StreamUsageMessage | Corti.StreamErrorMessage | Corti.StreamConfigStatusMessage;
|
|
7
|
+
type Response = Corti.StreamTranscriptMessage | Corti.StreamFactsMessage | Corti.StreamFlushedMessage | Corti.StreamDeltaUsageMessage | Corti.StreamEndedMessage | Corti.StreamUsageMessage | Corti.StreamErrorMessage | Corti.StreamConfigStatusMessage | Corti.StreamAudioEventMessage;
|
|
8
8
|
type EventHandlers = {
|
|
9
9
|
open?: () => void;
|
|
10
10
|
message?: (message: Response) => void;
|
|
@@ -13,7 +13,7 @@ export declare class TemplatesClient {
|
|
|
13
13
|
/**
|
|
14
14
|
* Retrieves a list of template sections with optional filters for organization and language.
|
|
15
15
|
*
|
|
16
|
-
* @param {Corti.
|
|
16
|
+
* @param {Corti.SectionListTemplatesRequest} request
|
|
17
17
|
* @param {TemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
18
18
|
*
|
|
19
19
|
* @throws {@link Corti.UnauthorizedError}
|
|
@@ -22,12 +22,12 @@ export declare class TemplatesClient {
|
|
|
22
22
|
* @example
|
|
23
23
|
* await client.templates.sectionList()
|
|
24
24
|
*/
|
|
25
|
-
sectionList(request?: Corti.
|
|
25
|
+
sectionList(request?: Corti.SectionListTemplatesRequest, requestOptions?: TemplatesClient.RequestOptions): core.HttpResponsePromise<Corti.TemplatesSectionListResponse>;
|
|
26
26
|
private __sectionList;
|
|
27
27
|
/**
|
|
28
28
|
* Retrieves a list of templates with optional filters for organization, language, and status.
|
|
29
29
|
*
|
|
30
|
-
* @param {Corti.
|
|
30
|
+
* @param {Corti.ListTemplatesRequest} request
|
|
31
31
|
* @param {TemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
32
32
|
*
|
|
33
33
|
* @throws {@link Corti.UnauthorizedError}
|
|
@@ -36,7 +36,7 @@ export declare class TemplatesClient {
|
|
|
36
36
|
* @example
|
|
37
37
|
* await client.templates.list()
|
|
38
38
|
*/
|
|
39
|
-
list(request?: Corti.
|
|
39
|
+
list(request?: Corti.ListTemplatesRequest, requestOptions?: TemplatesClient.RequestOptions): core.HttpResponsePromise<Corti.TemplatesListResponse>;
|
|
40
40
|
private __list;
|
|
41
41
|
/**
|
|
42
42
|
* Retrieves template by key.
|
|
@@ -22,7 +22,7 @@ export class TemplatesClient {
|
|
|
22
22
|
/**
|
|
23
23
|
* Retrieves a list of template sections with optional filters for organization and language.
|
|
24
24
|
*
|
|
25
|
-
* @param {Corti.
|
|
25
|
+
* @param {Corti.SectionListTemplatesRequest} request
|
|
26
26
|
* @param {TemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
27
27
|
*
|
|
28
28
|
* @throws {@link Corti.UnauthorizedError}
|
|
@@ -93,7 +93,7 @@ export class TemplatesClient {
|
|
|
93
93
|
/**
|
|
94
94
|
* Retrieves a list of templates with optional filters for organization, language, and status.
|
|
95
95
|
*
|
|
96
|
-
* @param {Corti.
|
|
96
|
+
* @param {Corti.ListTemplatesRequest} request
|
|
97
97
|
* @param {TemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
98
98
|
*
|
|
99
99
|
* @throws {@link Corti.UnauthorizedError}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type {
|
|
2
|
-
export type {
|
|
1
|
+
export type { ListTemplatesRequest } from "./ListTemplatesRequest.mjs";
|
|
2
|
+
export type { SectionListTemplatesRequest } from "./SectionListTemplatesRequest.mjs";
|
|
@@ -4,7 +4,7 @@ export declare namespace TranscribeSocket {
|
|
|
4
4
|
interface Args {
|
|
5
5
|
socket: core.ReconnectingWebSocket;
|
|
6
6
|
}
|
|
7
|
-
type Response = Corti.TranscribeUsageMessage | Corti.TranscribeFlushedMessage | Corti.TranscribeDeltaUsageMessage | Corti.TranscribeEndedMessage | Corti.TranscribeErrorMessage | Corti.TranscribeTranscriptMessage | Corti.TranscribeCommandMessage | Corti.TranscribeConfigStatusMessage;
|
|
7
|
+
type Response = Corti.TranscribeUsageMessage | Corti.TranscribeFlushedMessage | Corti.TranscribeDeltaUsageMessage | Corti.TranscribeEndedMessage | Corti.TranscribeErrorMessage | Corti.TranscribeTranscriptMessage | Corti.TranscribeCommandMessage | Corti.TranscribeConfigStatusMessage | Corti.TranscribeAudioEventMessage;
|
|
8
8
|
type EventHandlers = {
|
|
9
9
|
open?: () => void;
|
|
10
10
|
message?: (message: Response) => void;
|
|
@@ -29,7 +29,7 @@ export declare class TranscriptsClient {
|
|
|
29
29
|
list(id: Corti.Uuid, request?: Corti.TranscriptsListRequest, requestOptions?: TranscriptsClient.RequestOptions): core.HttpResponsePromise<Corti.TranscriptsListResponse>;
|
|
30
30
|
private __list;
|
|
31
31
|
/**
|
|
32
|
-
* Create a transcript from an audio file
|
|
32
|
+
* Create a transcript from an audio file uploaded to the interaction via `/recordings` endpoint.<br/><Note>Each interaction may have more than one audio file and transcript associated with it. Audio files up to 60 min in total duration, or 150 MB in total size, may be used.<br/><br/>Requests will process synchronously for 25 seconds before timeout, upon which processing will continue asynchronously. In the latter scenario, a partial or empty transcript with `status=processing` will be returned with a location header that can be used to retrieve the completed transcript.<br/><br/>The client can poll the `/transcripts` endpoint (`GET /interactions/{id}/transcripts/{transcriptId}/status`) for transcript status monitoring:<br/>- `200 OK` with status `processing`, `completed`, or `failed`<br/>- `404 Not Found` if the `interactionId` or `transcriptId` are invalid<br/><br/>The completed transcript can be retrieved via the Get Transcript request (`GET /interactions/{id}/transcripts/{transcriptId}/`).</Note>
|
|
33
33
|
*
|
|
34
34
|
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
|
|
35
35
|
* @param {Corti.TranscriptsCreateRequest} request
|
|
@@ -106,7 +106,7 @@ export class TranscriptsClient {
|
|
|
106
106
|
});
|
|
107
107
|
}
|
|
108
108
|
/**
|
|
109
|
-
* Create a transcript from an audio file
|
|
109
|
+
* Create a transcript from an audio file uploaded to the interaction via `/recordings` endpoint.<br/><Note>Each interaction may have more than one audio file and transcript associated with it. Audio files up to 60 min in total duration, or 150 MB in total size, may be used.<br/><br/>Requests will process synchronously for 25 seconds before timeout, upon which processing will continue asynchronously. In the latter scenario, a partial or empty transcript with `status=processing` will be returned with a location header that can be used to retrieve the completed transcript.<br/><br/>The client can poll the `/transcripts` endpoint (`GET /interactions/{id}/transcripts/{transcriptId}/status`) for transcript status monitoring:<br/>- `200 OK` with status `processing`, `completed`, or `failed`<br/>- `404 Not Found` if the `interactionId` or `transcriptId` are invalid<br/><br/>The completed transcript can be retrieved via the Get Transcript request (`GET /interactions/{id}/transcripts/{transcriptId}/`).</Note>
|
|
110
110
|
*
|
|
111
111
|
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
|
|
112
112
|
* @param {Corti.TranscriptsCreateRequest} request
|
|
@@ -9,7 +9,7 @@ import type * as Corti from "../../../../index.mjs";
|
|
|
9
9
|
export interface TranscriptsCreateRequest {
|
|
10
10
|
/** The unique identifier for the recording. */
|
|
11
11
|
recordingId: Corti.Uuid;
|
|
12
|
-
/** The primary spoken language of the recording. Check https://docs.corti.ai/
|
|
12
|
+
/** The primary spoken language of the recording. Check https://docs.corti.ai/stt/languages for more. */
|
|
13
13
|
primaryLanguage: string;
|
|
14
14
|
/** Indicates whether spoken dictation commands should be converted to punctuation (e.g., 'comma' → ','). */
|
|
15
15
|
isDictation?: boolean;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type * as Corti from "../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* Response when a document is generated but not saved (retention policy `none`).
|
|
4
|
+
*/
|
|
5
|
+
export interface CreateEphemeralDocumentResponse {
|
|
6
|
+
document: Corti.EphemeralDocument;
|
|
7
|
+
usageInfo: Corti.CommonUsageInfo;
|
|
8
|
+
}
|
|
@@ -1,12 +1,17 @@
|
|
|
1
|
+
import type * as Corti from "../index.mjs";
|
|
1
2
|
export interface CreateSectionBase {
|
|
2
3
|
/** A human-readable identifier for this section. Not passed to the LLM. */
|
|
3
4
|
name: string;
|
|
4
|
-
/** The intended language for outputs as BCP 47 tag. Does not strictly have to match outputLanguage in POST /documents request. */
|
|
5
|
-
language: string;
|
|
6
5
|
/** A description for this section. Not passed to the LLM. */
|
|
7
6
|
description?: string;
|
|
7
|
+
/** BCP 47 language subtags this section has been tweaked for. */
|
|
8
|
+
languages?: string[];
|
|
9
|
+
/** ISO 3166-1 alpha-3 country codes this section has been tweaked for. */
|
|
10
|
+
regions?: string[];
|
|
11
|
+
/** Clinical specialties this section has been tweaked for. */
|
|
12
|
+
specialties?: string[];
|
|
8
13
|
/** Labels work as query param filter in the LIST /sections endpoint. */
|
|
9
|
-
labels?:
|
|
14
|
+
labels?: Corti.Label[];
|
|
10
15
|
/** Defaults to true when omitted. Set this to false if you do not want the section to automatically show up in LIST /sections. */
|
|
11
16
|
publish?: boolean;
|
|
12
17
|
}
|
|
@@ -5,5 +5,5 @@ import type * as Corti from "../index.mjs";
|
|
|
5
5
|
export interface CreateSectionFromInheritanceRequest extends Corti.CreateSectionBase {
|
|
6
6
|
/** Reference to the section to inherit generation configuration from. Inherits from the published version of the referenced section. */
|
|
7
7
|
inheritFromId: string;
|
|
8
|
-
generation
|
|
8
|
+
generation?: Corti.SectionGenerationPartial;
|
|
9
9
|
}
|
|
@@ -1,12 +1,19 @@
|
|
|
1
|
+
import type * as Corti from "../index.mjs";
|
|
1
2
|
export interface CreateTemplateBase {
|
|
2
3
|
/** The name of this template. Not passed to the LLM. */
|
|
3
4
|
name: string;
|
|
4
5
|
/** A description for this template. Not passed to the LLM. */
|
|
5
6
|
description?: string;
|
|
6
|
-
/**
|
|
7
|
-
|
|
7
|
+
/** BCP 47 language subtags this template has been tweaked for (e.g. `["fr", "de"]`). */
|
|
8
|
+
languages?: string[];
|
|
9
|
+
/** ISO 3166-1 alpha-3 country codes this template has been tweaked for (e.g. `["BEL"]`). */
|
|
10
|
+
regions?: string[];
|
|
11
|
+
/** Clinical specialties this template has been tweaked for. */
|
|
12
|
+
specialties?: string[];
|
|
8
13
|
/** Labels work as query param filter in the LIST /templates endpoint. */
|
|
9
|
-
labels?:
|
|
14
|
+
labels?: Corti.Label[];
|
|
10
15
|
/** Defaults to true when omitted. Set this to false if you do not want the template to automatically show up in LIST templates. */
|
|
11
16
|
publish?: boolean;
|
|
17
|
+
/** Access policies to apply to the template on creation. */
|
|
18
|
+
policies?: unknown[];
|
|
12
19
|
}
|
|
@@ -3,8 +3,8 @@ import type * as Corti from "../index.mjs";
|
|
|
3
3
|
* Creates a template that inherits from another template. Any fields omitted in `generation` are inherited from the referenced template's published version; any fields provided override the inherited values.
|
|
4
4
|
*/
|
|
5
5
|
export interface CreateTemplateFromInheritanceRequest extends Corti.CreateTemplateBase {
|
|
6
|
-
/** Reference to the template to inherit
|
|
6
|
+
/** Reference to the template to inherit instructions and sections from. Inherits from the published version of the referenced template. */
|
|
7
7
|
inheritFromId: string;
|
|
8
8
|
/** Partial overrides applied on top of the inherited template. All inner fields are optional. Any field omitted is inherited from the referenced template. */
|
|
9
|
-
generation
|
|
9
|
+
generation?: Corti.CreateTemplateFromInheritanceRequestGeneration;
|
|
10
10
|
}
|