@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
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
import * as core from "../../core/index.mjs";
|
|
3
|
+
import { Label } from "./Label.mjs";
|
|
4
|
+
import { TemplateSource } from "./TemplateSource.mjs";
|
|
3
5
|
import { TemplateVersion } from "./TemplateVersion.mjs";
|
|
4
6
|
export const Template = core.serialization.object({
|
|
5
7
|
id: core.serialization.string(),
|
|
6
8
|
inheritedFromId: core.serialization.string().optionalNullable(),
|
|
7
9
|
autoGenerated: core.serialization.boolean().optional(),
|
|
10
|
+
source: TemplateSource.optional(),
|
|
8
11
|
name: core.serialization.string(),
|
|
9
12
|
description: core.serialization.string().optional(),
|
|
10
|
-
|
|
11
|
-
|
|
13
|
+
languages: core.serialization.list(core.serialization.string()),
|
|
14
|
+
regions: core.serialization.list(core.serialization.string()),
|
|
15
|
+
specialties: core.serialization.list(core.serialization.string()),
|
|
16
|
+
labels: core.serialization.list(Label),
|
|
17
|
+
policies: core.serialization.list(core.serialization.unknown()).optional(),
|
|
12
18
|
publishedVersion: TemplateVersion.optional(),
|
|
13
19
|
createdAt: core.serialization.date(),
|
|
14
20
|
updatedAt: core.serialization.date(),
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as Corti from "../../api/index.mjs";
|
|
2
|
+
import * as core from "../../core/index.mjs";
|
|
3
|
+
import type * as serializers from "../index.mjs";
|
|
4
|
+
export declare const TemplateSource: core.serialization.Schema<serializers.TemplateSource.Raw, Corti.TemplateSource>;
|
|
5
|
+
export declare namespace TemplateSource {
|
|
6
|
+
type Raw = "user" | "corti";
|
|
7
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type * as Corti from "../../api/index.mjs";
|
|
2
|
+
import * as core from "../../core/index.mjs";
|
|
3
|
+
import type * as serializers from "../index.mjs";
|
|
4
|
+
import { TranscribeAudioEventDataEvent } from "./TranscribeAudioEventDataEvent.mjs";
|
|
5
|
+
export declare const TranscribeAudioEventData: core.serialization.ObjectSchema<serializers.TranscribeAudioEventData.Raw, Corti.TranscribeAudioEventData>;
|
|
6
|
+
export declare namespace TranscribeAudioEventData {
|
|
7
|
+
interface Raw {
|
|
8
|
+
event: TranscribeAudioEventDataEvent.Raw;
|
|
9
|
+
channel: number;
|
|
10
|
+
startTimeMs: number;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
import * as core from "../../core/index.mjs";
|
|
3
|
+
import { TranscribeAudioEventDataEvent } from "./TranscribeAudioEventDataEvent.mjs";
|
|
4
|
+
export const TranscribeAudioEventData = core.serialization.object({
|
|
5
|
+
event: TranscribeAudioEventDataEvent,
|
|
6
|
+
channel: core.serialization.number(),
|
|
7
|
+
startTimeMs: core.serialization.number(),
|
|
8
|
+
});
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as Corti from "../../api/index.mjs";
|
|
2
|
+
import * as core from "../../core/index.mjs";
|
|
3
|
+
import type * as serializers from "../index.mjs";
|
|
4
|
+
export declare const TranscribeAudioEventDataEvent: core.serialization.Schema<serializers.TranscribeAudioEventDataEvent.Raw, Corti.TranscribeAudioEventDataEvent>;
|
|
5
|
+
export declare namespace TranscribeAudioEventDataEvent {
|
|
6
|
+
type Raw = "speechQualityIssueDetected" | "speechQualityIssueRecovered" | "longSilenceDetected" | "longSilenceRecovered";
|
|
7
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
import * as core from "../../core/index.mjs";
|
|
3
|
+
export const TranscribeAudioEventDataEvent = core.serialization.enum_([
|
|
4
|
+
"speechQualityIssueDetected",
|
|
5
|
+
"speechQualityIssueRecovered",
|
|
6
|
+
"longSilenceDetected",
|
|
7
|
+
"longSilenceRecovered",
|
|
8
|
+
]);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as Corti from "../../api/index.mjs";
|
|
2
|
+
import * as core from "../../core/index.mjs";
|
|
3
|
+
import type * as serializers from "../index.mjs";
|
|
4
|
+
import { TranscribeAudioEventData } from "./TranscribeAudioEventData.mjs";
|
|
5
|
+
export declare const TranscribeAudioEventMessage: core.serialization.ObjectSchema<serializers.TranscribeAudioEventMessage.Raw, Corti.TranscribeAudioEventMessage>;
|
|
6
|
+
export declare namespace TranscribeAudioEventMessage {
|
|
7
|
+
interface Raw {
|
|
8
|
+
type: "audioEvent";
|
|
9
|
+
data: TranscribeAudioEventData.Raw;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
import * as core from "../../core/index.mjs";
|
|
3
|
+
import { TranscribeAudioEventData } from "./TranscribeAudioEventData.mjs";
|
|
4
|
+
export const TranscribeAudioEventMessage = core.serialization.object({
|
|
5
|
+
type: core.serialization.stringLiteral("audioEvent"),
|
|
6
|
+
data: TranscribeAudioEventData,
|
|
7
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as Corti from "../../api/index.mjs";
|
|
2
|
+
import * as core from "../../core/index.mjs";
|
|
3
|
+
import type * as serializers from "../index.mjs";
|
|
4
|
+
export declare const TranscribeAudioEventsConfig: core.serialization.ObjectSchema<serializers.TranscribeAudioEventsConfig.Raw, Corti.TranscribeAudioEventsConfig>;
|
|
5
|
+
export declare namespace TranscribeAudioEventsConfig {
|
|
6
|
+
interface Raw {
|
|
7
|
+
enabled?: boolean | null;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type * as Corti from "../../api/index.mjs";
|
|
2
2
|
import * as core from "../../core/index.mjs";
|
|
3
3
|
import type * as serializers from "../index.mjs";
|
|
4
|
+
import { TranscribeAudioEventsConfig } from "./TranscribeAudioEventsConfig.mjs";
|
|
4
5
|
import { TranscribeCommand } from "./TranscribeCommand.mjs";
|
|
5
6
|
import { TranscribeFormatting } from "./TranscribeFormatting.mjs";
|
|
6
7
|
import { TranscribeSupportedLanguage } from "./TranscribeSupportedLanguage.mjs";
|
|
@@ -13,6 +14,7 @@ export declare namespace TranscribeConfig {
|
|
|
13
14
|
automaticPunctuation?: boolean | null;
|
|
14
15
|
commands?: TranscribeCommand.Raw[] | null;
|
|
15
16
|
formatting?: TranscribeFormatting.Raw | null;
|
|
17
|
+
audioEvents?: TranscribeAudioEventsConfig.Raw | null;
|
|
16
18
|
audioFormat?: string | null;
|
|
17
19
|
}
|
|
18
20
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
import * as core from "../../core/index.mjs";
|
|
3
|
+
import { TranscribeAudioEventsConfig } from "./TranscribeAudioEventsConfig.mjs";
|
|
3
4
|
import { TranscribeCommand } from "./TranscribeCommand.mjs";
|
|
4
5
|
import { TranscribeFormatting } from "./TranscribeFormatting.mjs";
|
|
5
6
|
import { TranscribeSupportedLanguage } from "./TranscribeSupportedLanguage.mjs";
|
|
@@ -10,5 +11,6 @@ export const TranscribeConfig = core.serialization.object({
|
|
|
10
11
|
automaticPunctuation: core.serialization.boolean().optional(),
|
|
11
12
|
commands: core.serialization.list(TranscribeCommand).optional(),
|
|
12
13
|
formatting: TranscribeFormatting.optional(),
|
|
14
|
+
audioEvents: TranscribeAudioEventsConfig.optional(),
|
|
13
15
|
audioFormat: core.serialization.string().optional(),
|
|
14
16
|
});
|
|
@@ -79,6 +79,7 @@ export * from "./CommonUsageInfo.mjs";
|
|
|
79
79
|
export * from "./ContextFacts.mjs";
|
|
80
80
|
export * from "./ContextText.mjs";
|
|
81
81
|
export * from "./ContextTranscript.mjs";
|
|
82
|
+
export * from "./CreateEphemeralDocumentResponse.mjs";
|
|
82
83
|
export * from "./CreateSectionBase.mjs";
|
|
83
84
|
export * from "./CreateSectionFromInheritanceRequest.mjs";
|
|
84
85
|
export * from "./CreateSectionFromScratchRequest.mjs";
|
|
@@ -89,6 +90,7 @@ export * from "./CreateTemplateFromInheritanceRequestGeneration.mjs";
|
|
|
89
90
|
export * from "./CreateTemplateFromScratchRequest.mjs";
|
|
90
91
|
export * from "./CreateTemplateFromScratchRequestGeneration.mjs";
|
|
91
92
|
export * from "./CreateTemplateRequest.mjs";
|
|
93
|
+
export * from "./DocumentationEvidence.mjs";
|
|
92
94
|
export * from "./DocumentsContext.mjs";
|
|
93
95
|
export * from "./DocumentsContextWithFacts.mjs";
|
|
94
96
|
export * from "./DocumentsContextWithFactsType.mjs";
|
|
@@ -107,6 +109,7 @@ export * from "./DocumentsSectionOverride.mjs";
|
|
|
107
109
|
export * from "./DocumentsTemplate.mjs";
|
|
108
110
|
export * from "./DocumentsTemplateWithSectionKeys.mjs";
|
|
109
111
|
export * from "./DocumentsTemplateWithSections.mjs";
|
|
112
|
+
export * from "./EphemeralDocument.mjs";
|
|
110
113
|
export * from "./ErrorResponse.mjs";
|
|
111
114
|
export * from "./FactsBatchUpdateInput.mjs";
|
|
112
115
|
export * from "./FactsBatchUpdateItem.mjs";
|
|
@@ -127,21 +130,18 @@ export * from "./FactsUpdateResponse.mjs";
|
|
|
127
130
|
export * from "./FieldDefinition.mjs";
|
|
128
131
|
export * from "./GuidedAssemblyRequest.mjs";
|
|
129
132
|
export * from "./GuidedAssemblySectionRef.mjs";
|
|
133
|
+
export * from "./GuidedDocumentBase.mjs";
|
|
130
134
|
export * from "./GuidedDocumentByAssembly.mjs";
|
|
131
135
|
export * from "./GuidedDocumentByDynamic.mjs";
|
|
132
136
|
export * from "./GuidedDocumentByTemplateRef.mjs";
|
|
133
137
|
export * from "./GuidedDocumentContext.mjs";
|
|
134
138
|
export * from "./GuidedDocumentFactMinimal.mjs";
|
|
135
139
|
export * from "./GuidedDocumentRequest.mjs";
|
|
136
|
-
export * from "./GuidedDocumentResponse.mjs";
|
|
137
140
|
export * from "./GuidedDocumentTranscriptMetadataMinimal.mjs";
|
|
138
141
|
export * from "./GuidedDocumentTranscriptMinimal.mjs";
|
|
139
142
|
export * from "./GuidedDocumentTranscriptSegmentMinimal.mjs";
|
|
140
143
|
export * from "./GuidedDynamicInline.mjs";
|
|
141
144
|
export * from "./GuidedDynamicRequest.mjs";
|
|
142
|
-
export * from "./GuidedGenerationResult.mjs";
|
|
143
|
-
export * from "./GuidedGenerationResultUsage.mjs";
|
|
144
|
-
export * from "./GuidedGenerationResultUsageTokenCount.mjs";
|
|
145
145
|
export * from "./GuidedSectionOverride.mjs";
|
|
146
146
|
export * from "./GuidedTemplateOverrides.mjs";
|
|
147
147
|
export * from "./GuidedTemplateRef.mjs";
|
|
@@ -156,6 +156,7 @@ export * from "./InteractionsGenderEnum.mjs";
|
|
|
156
156
|
export * from "./InteractionsGetResponse.mjs";
|
|
157
157
|
export * from "./InteractionsListResponse.mjs";
|
|
158
158
|
export * from "./InteractionsPatient.mjs";
|
|
159
|
+
export * from "./Label.mjs";
|
|
159
160
|
export * from "./NumberNode.mjs";
|
|
160
161
|
export * from "./OAuthTokenRequest.mjs";
|
|
161
162
|
export * from "./ObjectNode.mjs";
|
|
@@ -169,11 +170,17 @@ export * from "./SectionInstructions.mjs";
|
|
|
169
170
|
export * from "./SectionInstructionsOverride.mjs";
|
|
170
171
|
export * from "./SectionInstructionsPartial.mjs";
|
|
171
172
|
export * from "./SectionOverrides.mjs";
|
|
173
|
+
export * from "./SectionSource.mjs";
|
|
172
174
|
export * from "./SectionVersion.mjs";
|
|
173
175
|
export * from "./StatusResponse.mjs";
|
|
176
|
+
export * from "./StreamAudioEventData.mjs";
|
|
177
|
+
export * from "./StreamAudioEventDataEvent.mjs";
|
|
178
|
+
export * from "./StreamAudioEventMessage.mjs";
|
|
179
|
+
export * from "./StreamAudioEventsConfig.mjs";
|
|
174
180
|
export * from "./StreamConfig.mjs";
|
|
175
181
|
export * from "./StreamConfigMessage.mjs";
|
|
176
182
|
export * from "./StreamConfigMode.mjs";
|
|
183
|
+
export * from "./StreamConfigModeFactGenerationInterval.mjs";
|
|
177
184
|
export * from "./StreamConfigModeType.mjs";
|
|
178
185
|
export * from "./StreamConfigParticipant.mjs";
|
|
179
186
|
export * from "./StreamConfigParticipantRole.mjs";
|
|
@@ -201,6 +208,7 @@ export * from "./Template.mjs";
|
|
|
201
208
|
export * from "./TemplateGeneration.mjs";
|
|
202
209
|
export * from "./TemplateInstructions.mjs";
|
|
203
210
|
export * from "./TemplateInstructionsPartial.mjs";
|
|
211
|
+
export * from "./TemplateSource.mjs";
|
|
204
212
|
export * from "./TemplatesDocumentationModeEnum.mjs";
|
|
205
213
|
export * from "./TemplatesFormatRule.mjs";
|
|
206
214
|
export * from "./TemplatesItem.mjs";
|
|
@@ -213,6 +221,10 @@ export * from "./TemplatesTranslation.mjs";
|
|
|
213
221
|
export * from "./TemplatesWritingStyle.mjs";
|
|
214
222
|
export * from "./TemplateVersion.mjs";
|
|
215
223
|
export * from "./TemplateVersionSectionRequest.mjs";
|
|
224
|
+
export * from "./TranscribeAudioEventData.mjs";
|
|
225
|
+
export * from "./TranscribeAudioEventDataEvent.mjs";
|
|
226
|
+
export * from "./TranscribeAudioEventMessage.mjs";
|
|
227
|
+
export * from "./TranscribeAudioEventsConfig.mjs";
|
|
216
228
|
export * from "./TranscribeCommand.mjs";
|
|
217
229
|
export * from "./TranscribeCommandData.mjs";
|
|
218
230
|
export * from "./TranscribeCommandMessage.mjs";
|
|
@@ -79,6 +79,7 @@ export * from "./CommonUsageInfo.mjs";
|
|
|
79
79
|
export * from "./ContextFacts.mjs";
|
|
80
80
|
export * from "./ContextText.mjs";
|
|
81
81
|
export * from "./ContextTranscript.mjs";
|
|
82
|
+
export * from "./CreateEphemeralDocumentResponse.mjs";
|
|
82
83
|
export * from "./CreateSectionBase.mjs";
|
|
83
84
|
export * from "./CreateSectionFromInheritanceRequest.mjs";
|
|
84
85
|
export * from "./CreateSectionFromScratchRequest.mjs";
|
|
@@ -89,6 +90,7 @@ export * from "./CreateTemplateFromInheritanceRequestGeneration.mjs";
|
|
|
89
90
|
export * from "./CreateTemplateFromScratchRequest.mjs";
|
|
90
91
|
export * from "./CreateTemplateFromScratchRequestGeneration.mjs";
|
|
91
92
|
export * from "./CreateTemplateRequest.mjs";
|
|
93
|
+
export * from "./DocumentationEvidence.mjs";
|
|
92
94
|
export * from "./DocumentsContext.mjs";
|
|
93
95
|
export * from "./DocumentsContextWithFacts.mjs";
|
|
94
96
|
export * from "./DocumentsContextWithFactsType.mjs";
|
|
@@ -107,6 +109,7 @@ export * from "./DocumentsSectionOverride.mjs";
|
|
|
107
109
|
export * from "./DocumentsTemplate.mjs";
|
|
108
110
|
export * from "./DocumentsTemplateWithSectionKeys.mjs";
|
|
109
111
|
export * from "./DocumentsTemplateWithSections.mjs";
|
|
112
|
+
export * from "./EphemeralDocument.mjs";
|
|
110
113
|
export * from "./ErrorResponse.mjs";
|
|
111
114
|
export * from "./FactsBatchUpdateInput.mjs";
|
|
112
115
|
export * from "./FactsBatchUpdateItem.mjs";
|
|
@@ -127,21 +130,18 @@ export * from "./FactsUpdateResponse.mjs";
|
|
|
127
130
|
export * from "./FieldDefinition.mjs";
|
|
128
131
|
export * from "./GuidedAssemblyRequest.mjs";
|
|
129
132
|
export * from "./GuidedAssemblySectionRef.mjs";
|
|
133
|
+
export * from "./GuidedDocumentBase.mjs";
|
|
130
134
|
export * from "./GuidedDocumentByAssembly.mjs";
|
|
131
135
|
export * from "./GuidedDocumentByDynamic.mjs";
|
|
132
136
|
export * from "./GuidedDocumentByTemplateRef.mjs";
|
|
133
137
|
export * from "./GuidedDocumentContext.mjs";
|
|
134
138
|
export * from "./GuidedDocumentFactMinimal.mjs";
|
|
135
139
|
export * from "./GuidedDocumentRequest.mjs";
|
|
136
|
-
export * from "./GuidedDocumentResponse.mjs";
|
|
137
140
|
export * from "./GuidedDocumentTranscriptMetadataMinimal.mjs";
|
|
138
141
|
export * from "./GuidedDocumentTranscriptMinimal.mjs";
|
|
139
142
|
export * from "./GuidedDocumentTranscriptSegmentMinimal.mjs";
|
|
140
143
|
export * from "./GuidedDynamicInline.mjs";
|
|
141
144
|
export * from "./GuidedDynamicRequest.mjs";
|
|
142
|
-
export * from "./GuidedGenerationResult.mjs";
|
|
143
|
-
export * from "./GuidedGenerationResultUsage.mjs";
|
|
144
|
-
export * from "./GuidedGenerationResultUsageTokenCount.mjs";
|
|
145
145
|
export * from "./GuidedSectionOverride.mjs";
|
|
146
146
|
export * from "./GuidedTemplateOverrides.mjs";
|
|
147
147
|
export * from "./GuidedTemplateRef.mjs";
|
|
@@ -156,6 +156,7 @@ export * from "./InteractionsGenderEnum.mjs";
|
|
|
156
156
|
export * from "./InteractionsGetResponse.mjs";
|
|
157
157
|
export * from "./InteractionsListResponse.mjs";
|
|
158
158
|
export * from "./InteractionsPatient.mjs";
|
|
159
|
+
export * from "./Label.mjs";
|
|
159
160
|
export * from "./NumberNode.mjs";
|
|
160
161
|
export * from "./OAuthTokenRequest.mjs";
|
|
161
162
|
export * from "./ObjectNode.mjs";
|
|
@@ -169,11 +170,17 @@ export * from "./SectionInstructions.mjs";
|
|
|
169
170
|
export * from "./SectionInstructionsOverride.mjs";
|
|
170
171
|
export * from "./SectionInstructionsPartial.mjs";
|
|
171
172
|
export * from "./SectionOverrides.mjs";
|
|
173
|
+
export * from "./SectionSource.mjs";
|
|
172
174
|
export * from "./SectionVersion.mjs";
|
|
173
175
|
export * from "./StatusResponse.mjs";
|
|
176
|
+
export * from "./StreamAudioEventData.mjs";
|
|
177
|
+
export * from "./StreamAudioEventDataEvent.mjs";
|
|
178
|
+
export * from "./StreamAudioEventMessage.mjs";
|
|
179
|
+
export * from "./StreamAudioEventsConfig.mjs";
|
|
174
180
|
export * from "./StreamConfig.mjs";
|
|
175
181
|
export * from "./StreamConfigMessage.mjs";
|
|
176
182
|
export * from "./StreamConfigMode.mjs";
|
|
183
|
+
export * from "./StreamConfigModeFactGenerationInterval.mjs";
|
|
177
184
|
export * from "./StreamConfigModeType.mjs";
|
|
178
185
|
export * from "./StreamConfigParticipant.mjs";
|
|
179
186
|
export * from "./StreamConfigParticipantRole.mjs";
|
|
@@ -201,6 +208,7 @@ export * from "./Template.mjs";
|
|
|
201
208
|
export * from "./TemplateGeneration.mjs";
|
|
202
209
|
export * from "./TemplateInstructions.mjs";
|
|
203
210
|
export * from "./TemplateInstructionsPartial.mjs";
|
|
211
|
+
export * from "./TemplateSource.mjs";
|
|
204
212
|
export * from "./TemplatesDocumentationModeEnum.mjs";
|
|
205
213
|
export * from "./TemplatesFormatRule.mjs";
|
|
206
214
|
export * from "./TemplatesItem.mjs";
|
|
@@ -213,6 +221,10 @@ export * from "./TemplatesTranslation.mjs";
|
|
|
213
221
|
export * from "./TemplatesWritingStyle.mjs";
|
|
214
222
|
export * from "./TemplateVersion.mjs";
|
|
215
223
|
export * from "./TemplateVersionSectionRequest.mjs";
|
|
224
|
+
export * from "./TranscribeAudioEventData.mjs";
|
|
225
|
+
export * from "./TranscribeAudioEventDataEvent.mjs";
|
|
226
|
+
export * from "./TranscribeAudioEventMessage.mjs";
|
|
227
|
+
export * from "./TranscribeAudioEventsConfig.mjs";
|
|
216
228
|
export * from "./TranscribeCommand.mjs";
|
|
217
229
|
export * from "./TranscribeCommandData.mjs";
|
|
218
230
|
export * from "./TranscribeCommandMessage.mjs";
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.0.0-templates.
|
|
1
|
+
export declare const SDK_VERSION = "2.0.0-templates.8";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "2.0.0-templates.
|
|
1
|
+
export const SDK_VERSION = "2.0.0-templates.8";
|
package/package.json
CHANGED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
|
|
2
|
-
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
|
|
3
|
-
import * as core from "../../../../core/index.js";
|
|
4
|
-
import * as Corti from "../../../index.js";
|
|
5
|
-
export declare namespace AlphaDocumentsClient {
|
|
6
|
-
type Options = BaseClientOptions;
|
|
7
|
-
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
export declare class AlphaDocumentsClient {
|
|
11
|
-
protected readonly _options: NormalizedClientOptionsWithAuth<AlphaDocumentsClient.Options>;
|
|
12
|
-
constructor(options: AlphaDocumentsClient.Options);
|
|
13
|
-
/**
|
|
14
|
-
* Generates a structured document using one of four template-supply paths: a stored template reference (optionally with runtime overrides), an ad-hoc assembly of stored sections, or a fully inline dynamic template. Exactly one of `templateRef`, `assemblyTemplate`, or `dynamicTemplate` must be provided.
|
|
15
|
-
*
|
|
16
|
-
* With the exception of the plain `templateRef` path (no overrides), every call persists a new auto-generated template aggregate that snapshots the resolved content. The snapshot is drift-proof: subsequent edits to base templates or sections do not affect previously generated documents.
|
|
17
|
-
*
|
|
18
|
-
* @param {Corti.GuidedDocumentRequest} request
|
|
19
|
-
* @param {AlphaDocumentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
20
|
-
*
|
|
21
|
-
* @throws {@link Corti.BadRequestError}
|
|
22
|
-
* @throws {@link Corti.NotFoundError}
|
|
23
|
-
* @throws {@link Corti.UnprocessableEntityError}
|
|
24
|
-
* @throws {@link Corti.BadGatewayError}
|
|
25
|
-
*
|
|
26
|
-
* @example
|
|
27
|
-
* await client.alphaDocuments.generate({
|
|
28
|
-
* templateRef: {
|
|
29
|
-
* templateId: "templateId"
|
|
30
|
-
* }
|
|
31
|
-
* })
|
|
32
|
-
*/
|
|
33
|
-
generate(request: Corti.GuidedDocumentRequest, requestOptions?: AlphaDocumentsClient.RequestOptions): core.HttpResponsePromise<Corti.GuidedDocumentResponse>;
|
|
34
|
-
private __generate;
|
|
35
|
-
}
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
-
if (k2 === undefined) k2 = k;
|
|
5
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
-
}
|
|
9
|
-
Object.defineProperty(o, k2, desc);
|
|
10
|
-
}) : (function(o, m, k, k2) {
|
|
11
|
-
if (k2 === undefined) k2 = k;
|
|
12
|
-
o[k2] = m[k];
|
|
13
|
-
}));
|
|
14
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
-
}) : function(o, v) {
|
|
17
|
-
o["default"] = v;
|
|
18
|
-
});
|
|
19
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
-
var ownKeys = function(o) {
|
|
21
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
-
var ar = [];
|
|
23
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
-
return ar;
|
|
25
|
-
};
|
|
26
|
-
return ownKeys(o);
|
|
27
|
-
};
|
|
28
|
-
return function (mod) {
|
|
29
|
-
if (mod && mod.__esModule) return mod;
|
|
30
|
-
var result = {};
|
|
31
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
-
__setModuleDefault(result, mod);
|
|
33
|
-
return result;
|
|
34
|
-
};
|
|
35
|
-
})();
|
|
36
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
37
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
38
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
39
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
40
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
41
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
42
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
43
|
-
});
|
|
44
|
-
};
|
|
45
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
|
-
exports.AlphaDocumentsClient = void 0;
|
|
47
|
-
const BaseClient_js_1 = require("../../../../BaseClient.js");
|
|
48
|
-
const headers_js_1 = require("../../../../core/headers.js");
|
|
49
|
-
const core = __importStar(require("../../../../core/index.js"));
|
|
50
|
-
const handleNonStatusCodeError_js_1 = require("../../../../errors/handleNonStatusCodeError.js");
|
|
51
|
-
const errors = __importStar(require("../../../../errors/index.js"));
|
|
52
|
-
const serializers = __importStar(require("../../../../serialization/index.js"));
|
|
53
|
-
const Corti = __importStar(require("../../../index.js"));
|
|
54
|
-
class AlphaDocumentsClient {
|
|
55
|
-
constructor(options) {
|
|
56
|
-
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Generates a structured document using one of four template-supply paths: a stored template reference (optionally with runtime overrides), an ad-hoc assembly of stored sections, or a fully inline dynamic template. Exactly one of `templateRef`, `assemblyTemplate`, or `dynamicTemplate` must be provided.
|
|
60
|
-
*
|
|
61
|
-
* With the exception of the plain `templateRef` path (no overrides), every call persists a new auto-generated template aggregate that snapshots the resolved content. The snapshot is drift-proof: subsequent edits to base templates or sections do not affect previously generated documents.
|
|
62
|
-
*
|
|
63
|
-
* @param {Corti.GuidedDocumentRequest} request
|
|
64
|
-
* @param {AlphaDocumentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
65
|
-
*
|
|
66
|
-
* @throws {@link Corti.BadRequestError}
|
|
67
|
-
* @throws {@link Corti.NotFoundError}
|
|
68
|
-
* @throws {@link Corti.UnprocessableEntityError}
|
|
69
|
-
* @throws {@link Corti.BadGatewayError}
|
|
70
|
-
*
|
|
71
|
-
* @example
|
|
72
|
-
* await client.alphaDocuments.generate({
|
|
73
|
-
* templateRef: {
|
|
74
|
-
* templateId: "templateId"
|
|
75
|
-
* }
|
|
76
|
-
* })
|
|
77
|
-
*/
|
|
78
|
-
generate(request, requestOptions) {
|
|
79
|
-
return core.HttpResponsePromise.fromPromise(this.__generate(request, requestOptions));
|
|
80
|
-
}
|
|
81
|
-
__generate(request, requestOptions) {
|
|
82
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
83
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
84
|
-
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
85
|
-
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "Tenant-Name": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.tenantName) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.tenantName }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
86
|
-
const _response = yield core.fetcher({
|
|
87
|
-
url: core.url.join((_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment)).base, "alpha/documents"),
|
|
88
|
-
method: "POST",
|
|
89
|
-
headers: _headers,
|
|
90
|
-
contentType: "application/json",
|
|
91
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
92
|
-
requestType: "json",
|
|
93
|
-
body: serializers.GuidedDocumentRequest.jsonOrThrow(request, {
|
|
94
|
-
unrecognizedObjectKeys: "strip",
|
|
95
|
-
omitUndefined: true,
|
|
96
|
-
}),
|
|
97
|
-
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
98
|
-
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
99
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
100
|
-
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
101
|
-
logging: this._options.logging,
|
|
102
|
-
});
|
|
103
|
-
if (_response.ok) {
|
|
104
|
-
return {
|
|
105
|
-
data: serializers.GuidedDocumentResponse.parseOrThrow(_response.body, {
|
|
106
|
-
unrecognizedObjectKeys: "passthrough",
|
|
107
|
-
allowUnrecognizedUnionMembers: true,
|
|
108
|
-
allowUnrecognizedEnumValues: true,
|
|
109
|
-
skipValidation: true,
|
|
110
|
-
breadcrumbsPrefix: ["response"],
|
|
111
|
-
}),
|
|
112
|
-
rawResponse: _response.rawResponse,
|
|
113
|
-
};
|
|
114
|
-
}
|
|
115
|
-
if (_response.error.reason === "status-code") {
|
|
116
|
-
switch (_response.error.statusCode) {
|
|
117
|
-
case 400:
|
|
118
|
-
throw new Corti.BadRequestError(_response.error.body, _response.rawResponse);
|
|
119
|
-
case 404:
|
|
120
|
-
throw new Corti.NotFoundError(_response.error.body, _response.rawResponse);
|
|
121
|
-
case 422:
|
|
122
|
-
throw new Corti.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
123
|
-
case 502:
|
|
124
|
-
throw new Corti.BadGatewayError(serializers.ErrorResponse.parseOrThrow(_response.error.body, {
|
|
125
|
-
unrecognizedObjectKeys: "passthrough",
|
|
126
|
-
allowUnrecognizedUnionMembers: true,
|
|
127
|
-
allowUnrecognizedEnumValues: true,
|
|
128
|
-
skipValidation: true,
|
|
129
|
-
breadcrumbsPrefix: ["response"],
|
|
130
|
-
}), _response.rawResponse);
|
|
131
|
-
default:
|
|
132
|
-
throw new errors.CortiError({
|
|
133
|
-
statusCode: _response.error.statusCode,
|
|
134
|
-
body: _response.error.body,
|
|
135
|
-
rawResponse: _response.rawResponse,
|
|
136
|
-
});
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/alpha/documents");
|
|
140
|
-
});
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
exports.AlphaDocumentsClient = AlphaDocumentsClient;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
|
|
2
|
-
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
|
|
3
|
-
import * as core from "../../../../core/index.js";
|
|
4
|
-
import * as Corti from "../../../index.js";
|
|
5
|
-
export declare namespace AlphaSectionVersionsClient {
|
|
6
|
-
type Options = BaseClientOptions;
|
|
7
|
-
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
export declare class AlphaSectionVersionsClient {
|
|
11
|
-
protected readonly _options: NormalizedClientOptionsWithAuth<AlphaSectionVersionsClient.Options>;
|
|
12
|
-
constructor(options: AlphaSectionVersionsClient.Options);
|
|
13
|
-
/**
|
|
14
|
-
* @param {string} sectionID
|
|
15
|
-
* @param {AlphaSectionVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
16
|
-
*
|
|
17
|
-
* @throws {@link Corti.NotFoundError}
|
|
18
|
-
*
|
|
19
|
-
* @example
|
|
20
|
-
* await client.alphaSectionVersions.list("sectionID")
|
|
21
|
-
*/
|
|
22
|
-
list(sectionID: string, requestOptions?: AlphaSectionVersionsClient.RequestOptions): core.HttpResponsePromise<Corti.SectionVersion[]>;
|
|
23
|
-
private __list;
|
|
24
|
-
/**
|
|
25
|
-
* @param {string} sectionID
|
|
26
|
-
* @param {Corti.SectionGeneration} request
|
|
27
|
-
* @param {AlphaSectionVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
28
|
-
*
|
|
29
|
-
* @throws {@link Corti.BadRequestError}
|
|
30
|
-
* @throws {@link Corti.NotFoundError}
|
|
31
|
-
*
|
|
32
|
-
* @example
|
|
33
|
-
* await client.alphaSectionVersions.create("sectionID", {
|
|
34
|
-
* heading: "heading",
|
|
35
|
-
* instructions: {
|
|
36
|
-
* contentPrompt: "contentPrompt"
|
|
37
|
-
* },
|
|
38
|
-
* outputSchema: {
|
|
39
|
-
* type: "string"
|
|
40
|
-
* }
|
|
41
|
-
* })
|
|
42
|
-
*/
|
|
43
|
-
create(sectionID: string, request: Corti.SectionGeneration, requestOptions?: AlphaSectionVersionsClient.RequestOptions): core.HttpResponsePromise<Corti.SectionVersion>;
|
|
44
|
-
private __create;
|
|
45
|
-
/**
|
|
46
|
-
* @param {string} sectionID
|
|
47
|
-
* @param {string} versionID
|
|
48
|
-
* @param {AlphaSectionVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
49
|
-
*
|
|
50
|
-
* @throws {@link Corti.NotFoundError}
|
|
51
|
-
*
|
|
52
|
-
* @example
|
|
53
|
-
* await client.alphaSectionVersions.get("sectionID", "versionID")
|
|
54
|
-
*/
|
|
55
|
-
get(sectionID: string, versionID: string, requestOptions?: AlphaSectionVersionsClient.RequestOptions): core.HttpResponsePromise<Corti.SectionVersion>;
|
|
56
|
-
private __get;
|
|
57
|
-
/**
|
|
58
|
-
* @param {string} sectionID
|
|
59
|
-
* @param {string} versionID
|
|
60
|
-
* @param {AlphaSectionVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
61
|
-
*
|
|
62
|
-
* @throws {@link Corti.NotFoundError}
|
|
63
|
-
*
|
|
64
|
-
* @example
|
|
65
|
-
* await client.alphaSectionVersions.delete("sectionID", "versionID")
|
|
66
|
-
*/
|
|
67
|
-
delete(sectionID: string, versionID: string, requestOptions?: AlphaSectionVersionsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
68
|
-
private __delete;
|
|
69
|
-
/**
|
|
70
|
-
* Sets this version as the published version of the section.
|
|
71
|
-
*
|
|
72
|
-
* @param {string} sectionID
|
|
73
|
-
* @param {string} versionID
|
|
74
|
-
* @param {AlphaSectionVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
75
|
-
*
|
|
76
|
-
* @throws {@link Corti.NotFoundError}
|
|
77
|
-
*
|
|
78
|
-
* @example
|
|
79
|
-
* await client.alphaSectionVersions.publish("sectionID", "versionID")
|
|
80
|
-
*/
|
|
81
|
-
publish(sectionID: string, versionID: string, requestOptions?: AlphaSectionVersionsClient.RequestOptions): core.HttpResponsePromise<Corti.StatusResponse>;
|
|
82
|
-
private __publish;
|
|
83
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|