@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/cjs/BaseClient.js
CHANGED
|
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
|
|
|
43
43
|
const headers = (0, headers_js_1.mergeHeaders)({
|
|
44
44
|
"X-Fern-Language": "JavaScript",
|
|
45
45
|
"X-Fern-SDK-Name": "@corti/sdk",
|
|
46
|
-
"X-Fern-SDK-Version": "2.0.0-templates.
|
|
47
|
-
"User-Agent": "@corti/sdk/2.0.0-templates.
|
|
46
|
+
"X-Fern-SDK-Version": "2.0.0-templates.8",
|
|
47
|
+
"User-Agent": "@corti/sdk/2.0.0-templates.8",
|
|
48
48
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
49
49
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
50
50
|
"Tenant-Name": options === null || options === void 0 ? void 0 : options.tenantName,
|
package/dist/cjs/Client.d.ts
CHANGED
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
import { AgentsClient } from "./api/resources/agents/client/Client.js";
|
|
2
|
-
import { AlphaDocumentsClient } from "./api/resources/alphaDocuments/client/Client.js";
|
|
3
|
-
import { AlphaSectionsClient } from "./api/resources/alphaSections/client/Client.js";
|
|
4
|
-
import { AlphaSectionVersionsClient } from "./api/resources/alphaSectionVersions/client/Client.js";
|
|
5
|
-
import { AlphaTemplatesClient } from "./api/resources/alphaTemplates/client/Client.js";
|
|
6
|
-
import { AlphaTemplateVersionsClient } from "./api/resources/alphaTemplateVersions/client/Client.js";
|
|
7
2
|
import { AuthClient } from "./api/resources/auth/client/Client.js";
|
|
8
3
|
import { CodesClient } from "./api/resources/codes/client/Client.js";
|
|
9
4
|
import { DocumentsClient } from "./api/resources/documents/client/Client.js";
|
|
@@ -31,11 +26,6 @@ export declare class CortiClient {
|
|
|
31
26
|
protected _documents: DocumentsClient | undefined;
|
|
32
27
|
protected _templates: TemplatesClient | undefined;
|
|
33
28
|
protected _codes: CodesClient | undefined;
|
|
34
|
-
protected _alphaTemplates: AlphaTemplatesClient | undefined;
|
|
35
|
-
protected _alphaTemplateVersions: AlphaTemplateVersionsClient | undefined;
|
|
36
|
-
protected _alphaSections: AlphaSectionsClient | undefined;
|
|
37
|
-
protected _alphaSectionVersions: AlphaSectionVersionsClient | undefined;
|
|
38
|
-
protected _alphaDocuments: AlphaDocumentsClient | undefined;
|
|
39
29
|
protected _agents: AgentsClient | undefined;
|
|
40
30
|
protected _stream: StreamClient | undefined;
|
|
41
31
|
protected _transcribe: TranscribeClient | undefined;
|
|
@@ -48,11 +38,6 @@ export declare class CortiClient {
|
|
|
48
38
|
get documents(): DocumentsClient;
|
|
49
39
|
get templates(): TemplatesClient;
|
|
50
40
|
get codes(): CodesClient;
|
|
51
|
-
get alphaTemplates(): AlphaTemplatesClient;
|
|
52
|
-
get alphaTemplateVersions(): AlphaTemplateVersionsClient;
|
|
53
|
-
get alphaSections(): AlphaSectionsClient;
|
|
54
|
-
get alphaSectionVersions(): AlphaSectionVersionsClient;
|
|
55
|
-
get alphaDocuments(): AlphaDocumentsClient;
|
|
56
41
|
get agents(): AgentsClient;
|
|
57
42
|
get stream(): StreamClient;
|
|
58
43
|
get transcribe(): TranscribeClient;
|
package/dist/cjs/Client.js
CHANGED
|
@@ -3,21 +3,16 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.CortiClient = void 0;
|
|
5
5
|
const Client_js_1 = require("./api/resources/agents/client/Client.js");
|
|
6
|
-
const Client_js_2 = require("./api/resources/
|
|
7
|
-
const Client_js_3 = require("./api/resources/
|
|
8
|
-
const Client_js_4 = require("./api/resources/
|
|
9
|
-
const Client_js_5 = require("./api/resources/
|
|
10
|
-
const Client_js_6 = require("./api/resources/
|
|
11
|
-
const Client_js_7 = require("./api/resources/
|
|
12
|
-
const Client_js_8 = require("./api/resources/
|
|
13
|
-
const Client_js_9 = require("./api/resources/
|
|
14
|
-
const Client_js_10 = require("./api/resources/
|
|
15
|
-
const Client_js_11 = require("./api/resources/
|
|
16
|
-
const Client_js_12 = require("./api/resources/recordings/client/Client.js");
|
|
17
|
-
const Client_js_13 = require("./api/resources/stream/client/Client.js");
|
|
18
|
-
const Client_js_14 = require("./api/resources/templates/client/Client.js");
|
|
19
|
-
const Client_js_15 = require("./api/resources/transcribe/client/Client.js");
|
|
20
|
-
const Client_js_16 = require("./api/resources/transcripts/client/Client.js");
|
|
6
|
+
const Client_js_2 = require("./api/resources/auth/client/Client.js");
|
|
7
|
+
const Client_js_3 = require("./api/resources/codes/client/Client.js");
|
|
8
|
+
const Client_js_4 = require("./api/resources/documents/client/Client.js");
|
|
9
|
+
const Client_js_5 = require("./api/resources/facts/client/Client.js");
|
|
10
|
+
const Client_js_6 = require("./api/resources/interactions/client/Client.js");
|
|
11
|
+
const Client_js_7 = require("./api/resources/recordings/client/Client.js");
|
|
12
|
+
const Client_js_8 = require("./api/resources/stream/client/Client.js");
|
|
13
|
+
const Client_js_9 = require("./api/resources/templates/client/Client.js");
|
|
14
|
+
const Client_js_10 = require("./api/resources/transcribe/client/Client.js");
|
|
15
|
+
const Client_js_11 = require("./api/resources/transcripts/client/Client.js");
|
|
21
16
|
const BaseClient_js_1 = require("./BaseClient.js");
|
|
22
17
|
class CortiClient {
|
|
23
18
|
constructor(options) {
|
|
@@ -25,55 +20,35 @@ class CortiClient {
|
|
|
25
20
|
}
|
|
26
21
|
get auth() {
|
|
27
22
|
var _a;
|
|
28
|
-
return ((_a = this._auth) !== null && _a !== void 0 ? _a : (this._auth = new
|
|
23
|
+
return ((_a = this._auth) !== null && _a !== void 0 ? _a : (this._auth = new Client_js_2.AuthClient(this._options)));
|
|
29
24
|
}
|
|
30
25
|
get interactions() {
|
|
31
26
|
var _a;
|
|
32
|
-
return ((_a = this._interactions) !== null && _a !== void 0 ? _a : (this._interactions = new
|
|
27
|
+
return ((_a = this._interactions) !== null && _a !== void 0 ? _a : (this._interactions = new Client_js_6.InteractionsClient(this._options)));
|
|
33
28
|
}
|
|
34
29
|
get recordings() {
|
|
35
30
|
var _a;
|
|
36
|
-
return ((_a = this._recordings) !== null && _a !== void 0 ? _a : (this._recordings = new
|
|
31
|
+
return ((_a = this._recordings) !== null && _a !== void 0 ? _a : (this._recordings = new Client_js_7.RecordingsClient(this._options)));
|
|
37
32
|
}
|
|
38
33
|
get transcripts() {
|
|
39
34
|
var _a;
|
|
40
|
-
return ((_a = this._transcripts) !== null && _a !== void 0 ? _a : (this._transcripts = new
|
|
35
|
+
return ((_a = this._transcripts) !== null && _a !== void 0 ? _a : (this._transcripts = new Client_js_11.TranscriptsClient(this._options)));
|
|
41
36
|
}
|
|
42
37
|
get facts() {
|
|
43
38
|
var _a;
|
|
44
|
-
return ((_a = this._facts) !== null && _a !== void 0 ? _a : (this._facts = new
|
|
39
|
+
return ((_a = this._facts) !== null && _a !== void 0 ? _a : (this._facts = new Client_js_5.FactsClient(this._options)));
|
|
45
40
|
}
|
|
46
41
|
get documents() {
|
|
47
42
|
var _a;
|
|
48
|
-
return ((_a = this._documents) !== null && _a !== void 0 ? _a : (this._documents = new
|
|
43
|
+
return ((_a = this._documents) !== null && _a !== void 0 ? _a : (this._documents = new Client_js_4.DocumentsClient(this._options)));
|
|
49
44
|
}
|
|
50
45
|
get templates() {
|
|
51
46
|
var _a;
|
|
52
|
-
return ((_a = this._templates) !== null && _a !== void 0 ? _a : (this._templates = new
|
|
47
|
+
return ((_a = this._templates) !== null && _a !== void 0 ? _a : (this._templates = new Client_js_9.TemplatesClient(this._options)));
|
|
53
48
|
}
|
|
54
49
|
get codes() {
|
|
55
50
|
var _a;
|
|
56
|
-
return ((_a = this._codes) !== null && _a !== void 0 ? _a : (this._codes = new
|
|
57
|
-
}
|
|
58
|
-
get alphaTemplates() {
|
|
59
|
-
var _a;
|
|
60
|
-
return ((_a = this._alphaTemplates) !== null && _a !== void 0 ? _a : (this._alphaTemplates = new Client_js_5.AlphaTemplatesClient(this._options)));
|
|
61
|
-
}
|
|
62
|
-
get alphaTemplateVersions() {
|
|
63
|
-
var _a;
|
|
64
|
-
return ((_a = this._alphaTemplateVersions) !== null && _a !== void 0 ? _a : (this._alphaTemplateVersions = new Client_js_6.AlphaTemplateVersionsClient(this._options)));
|
|
65
|
-
}
|
|
66
|
-
get alphaSections() {
|
|
67
|
-
var _a;
|
|
68
|
-
return ((_a = this._alphaSections) !== null && _a !== void 0 ? _a : (this._alphaSections = new Client_js_3.AlphaSectionsClient(this._options)));
|
|
69
|
-
}
|
|
70
|
-
get alphaSectionVersions() {
|
|
71
|
-
var _a;
|
|
72
|
-
return ((_a = this._alphaSectionVersions) !== null && _a !== void 0 ? _a : (this._alphaSectionVersions = new Client_js_4.AlphaSectionVersionsClient(this._options)));
|
|
73
|
-
}
|
|
74
|
-
get alphaDocuments() {
|
|
75
|
-
var _a;
|
|
76
|
-
return ((_a = this._alphaDocuments) !== null && _a !== void 0 ? _a : (this._alphaDocuments = new Client_js_2.AlphaDocumentsClient(this._options)));
|
|
51
|
+
return ((_a = this._codes) !== null && _a !== void 0 ? _a : (this._codes = new Client_js_3.CodesClient(this._options)));
|
|
77
52
|
}
|
|
78
53
|
get agents() {
|
|
79
54
|
var _a;
|
|
@@ -81,11 +56,11 @@ class CortiClient {
|
|
|
81
56
|
}
|
|
82
57
|
get stream() {
|
|
83
58
|
var _a;
|
|
84
|
-
return ((_a = this._stream) !== null && _a !== void 0 ? _a : (this._stream = new
|
|
59
|
+
return ((_a = this._stream) !== null && _a !== void 0 ? _a : (this._stream = new Client_js_8.StreamClient(this._options)));
|
|
85
60
|
}
|
|
86
61
|
get transcribe() {
|
|
87
62
|
var _a;
|
|
88
|
-
return ((_a = this._transcribe) !== null && _a !== void 0 ? _a : (this._transcribe = new
|
|
63
|
+
return ((_a = this._transcribe) !== null && _a !== void 0 ? _a : (this._transcribe = new Client_js_10.TranscribeClient(this._options)));
|
|
89
64
|
}
|
|
90
65
|
}
|
|
91
66
|
exports.CortiClient = CortiClient;
|
|
@@ -2,6 +2,8 @@ import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClie
|
|
|
2
2
|
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
|
|
3
3
|
import * as core from "../../../../core/index.js";
|
|
4
4
|
import * as Corti from "../../../index.js";
|
|
5
|
+
import { SectionsClient } from "../resources/sections/client/Client.js";
|
|
6
|
+
import { TemplatesClient } from "../resources/templates/client/Client.js";
|
|
5
7
|
export declare namespace DocumentsClient {
|
|
6
8
|
type Options = BaseClientOptions;
|
|
7
9
|
interface RequestOptions extends BaseRequestOptions {
|
|
@@ -9,8 +11,14 @@ export declare namespace DocumentsClient {
|
|
|
9
11
|
}
|
|
10
12
|
export declare class DocumentsClient {
|
|
11
13
|
protected readonly _options: NormalizedClientOptionsWithAuth<DocumentsClient.Options>;
|
|
14
|
+
protected _templates: TemplatesClient | undefined;
|
|
15
|
+
protected _sections: SectionsClient | undefined;
|
|
12
16
|
constructor(options: DocumentsClient.Options);
|
|
17
|
+
get templates(): TemplatesClient;
|
|
18
|
+
get sections(): SectionsClient;
|
|
13
19
|
/**
|
|
20
|
+
* @deprecated
|
|
21
|
+
*
|
|
14
22
|
* List Documents
|
|
15
23
|
*
|
|
16
24
|
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
|
|
@@ -27,6 +35,8 @@ export declare class DocumentsClient {
|
|
|
27
35
|
list(id: Corti.Uuid, requestOptions?: DocumentsClient.RequestOptions): core.HttpResponsePromise<Corti.DocumentsListResponse>;
|
|
28
36
|
private __list;
|
|
29
37
|
/**
|
|
38
|
+
* @deprecated
|
|
39
|
+
*
|
|
30
40
|
* This endpoint offers different ways to generate a document. Find guides to document generation [here](/textgen/documents-standard).
|
|
31
41
|
*
|
|
32
42
|
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
|
|
@@ -53,6 +63,8 @@ export declare class DocumentsClient {
|
|
|
53
63
|
create(id: Corti.Uuid, request: Corti.DocumentsCreateRequest, requestOptions?: DocumentsClient.RequestOptions): core.HttpResponsePromise<Corti.DocumentsGetResponse>;
|
|
54
64
|
private __create;
|
|
55
65
|
/**
|
|
66
|
+
* @deprecated
|
|
67
|
+
*
|
|
56
68
|
* Get Document.
|
|
57
69
|
*
|
|
58
70
|
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
|
|
@@ -70,6 +82,8 @@ export declare class DocumentsClient {
|
|
|
70
82
|
get(id: Corti.Uuid, documentId: Corti.Uuid, requestOptions?: DocumentsClient.RequestOptions): core.HttpResponsePromise<Corti.DocumentsGetResponse>;
|
|
71
83
|
private __get;
|
|
72
84
|
/**
|
|
85
|
+
* @deprecated
|
|
86
|
+
*
|
|
73
87
|
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
|
|
74
88
|
* @param {Corti.Uuid} documentId - The document ID representing the context for the request. Must be a valid UUID.
|
|
75
89
|
* @param {DocumentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -85,6 +99,8 @@ export declare class DocumentsClient {
|
|
|
85
99
|
delete(id: Corti.Uuid, documentId: Corti.Uuid, requestOptions?: DocumentsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
86
100
|
private __delete;
|
|
87
101
|
/**
|
|
102
|
+
* @deprecated
|
|
103
|
+
*
|
|
88
104
|
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
|
|
89
105
|
* @param {Corti.Uuid} documentId - The document ID representing the context for the request. Must be a valid UUID.
|
|
90
106
|
* @param {Corti.DocumentsUpdateRequest} request
|
|
@@ -100,4 +116,29 @@ export declare class DocumentsClient {
|
|
|
100
116
|
*/
|
|
101
117
|
update(id: Corti.Uuid, documentId: Corti.Uuid, request?: Corti.DocumentsUpdateRequest, requestOptions?: DocumentsClient.RequestOptions): core.HttpResponsePromise<Corti.DocumentsGetResponse>;
|
|
102
118
|
private __update;
|
|
119
|
+
/**
|
|
120
|
+
* Generates a structured document using one of three 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.
|
|
121
|
+
*
|
|
122
|
+
* 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.
|
|
123
|
+
*
|
|
124
|
+
* @param {Corti.GenerateDocumentsRequest} request
|
|
125
|
+
* @param {DocumentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
126
|
+
*
|
|
127
|
+
* @throws {@link Corti.BadRequestError}
|
|
128
|
+
* @throws {@link Corti.NotFoundError}
|
|
129
|
+
* @throws {@link Corti.UnprocessableEntityError}
|
|
130
|
+
* @throws {@link Corti.InternalServerError}
|
|
131
|
+
*
|
|
132
|
+
* @example
|
|
133
|
+
* await client.documents.generate({
|
|
134
|
+
* body: {
|
|
135
|
+
* outputLanguage: "outputLanguage",
|
|
136
|
+
* templateRef: {
|
|
137
|
+
* templateId: "templateId"
|
|
138
|
+
* }
|
|
139
|
+
* }
|
|
140
|
+
* })
|
|
141
|
+
*/
|
|
142
|
+
generate(request: Corti.GenerateDocumentsRequest, requestOptions?: DocumentsClient.RequestOptions): core.HttpResponsePromise<Corti.CreateEphemeralDocumentResponse>;
|
|
143
|
+
private __generate;
|
|
103
144
|
}
|
|
@@ -51,11 +51,23 @@ const handleNonStatusCodeError_js_1 = require("../../../../errors/handleNonStatu
|
|
|
51
51
|
const errors = __importStar(require("../../../../errors/index.js"));
|
|
52
52
|
const serializers = __importStar(require("../../../../serialization/index.js"));
|
|
53
53
|
const Corti = __importStar(require("../../../index.js"));
|
|
54
|
+
const Client_js_1 = require("../resources/sections/client/Client.js");
|
|
55
|
+
const Client_js_2 = require("../resources/templates/client/Client.js");
|
|
54
56
|
class DocumentsClient {
|
|
55
57
|
constructor(options) {
|
|
56
58
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
57
59
|
}
|
|
60
|
+
get templates() {
|
|
61
|
+
var _a;
|
|
62
|
+
return ((_a = this._templates) !== null && _a !== void 0 ? _a : (this._templates = new Client_js_2.TemplatesClient(this._options)));
|
|
63
|
+
}
|
|
64
|
+
get sections() {
|
|
65
|
+
var _a;
|
|
66
|
+
return ((_a = this._sections) !== null && _a !== void 0 ? _a : (this._sections = new Client_js_1.SectionsClient(this._options)));
|
|
67
|
+
}
|
|
58
68
|
/**
|
|
69
|
+
* @deprecated
|
|
70
|
+
*
|
|
59
71
|
* List Documents
|
|
60
72
|
*
|
|
61
73
|
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
|
|
@@ -134,6 +146,8 @@ class DocumentsClient {
|
|
|
134
146
|
});
|
|
135
147
|
}
|
|
136
148
|
/**
|
|
149
|
+
* @deprecated
|
|
150
|
+
*
|
|
137
151
|
* This endpoint offers different ways to generate a document. Find guides to document generation [here](/textgen/documents-standard).
|
|
138
152
|
*
|
|
139
153
|
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
|
|
@@ -228,6 +242,8 @@ class DocumentsClient {
|
|
|
228
242
|
});
|
|
229
243
|
}
|
|
230
244
|
/**
|
|
245
|
+
* @deprecated
|
|
246
|
+
*
|
|
231
247
|
* Get Document.
|
|
232
248
|
*
|
|
233
249
|
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
|
|
@@ -307,6 +323,8 @@ class DocumentsClient {
|
|
|
307
323
|
});
|
|
308
324
|
}
|
|
309
325
|
/**
|
|
326
|
+
* @deprecated
|
|
327
|
+
*
|
|
310
328
|
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
|
|
311
329
|
* @param {Corti.Uuid} documentId - The document ID representing the context for the request. Must be a valid UUID.
|
|
312
330
|
* @param {DocumentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -375,6 +393,8 @@ class DocumentsClient {
|
|
|
375
393
|
});
|
|
376
394
|
}
|
|
377
395
|
/**
|
|
396
|
+
* @deprecated
|
|
397
|
+
*
|
|
378
398
|
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
|
|
379
399
|
* @param {Corti.Uuid} documentId - The document ID representing the context for the request. Must be a valid UUID.
|
|
380
400
|
* @param {Corti.DocumentsUpdateRequest} request
|
|
@@ -458,5 +478,96 @@ class DocumentsClient {
|
|
|
458
478
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PATCH", "/interactions/{id}/documents/{documentId}");
|
|
459
479
|
});
|
|
460
480
|
}
|
|
481
|
+
/**
|
|
482
|
+
* Generates a structured document using one of three 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.
|
|
483
|
+
*
|
|
484
|
+
* 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.
|
|
485
|
+
*
|
|
486
|
+
* @param {Corti.GenerateDocumentsRequest} request
|
|
487
|
+
* @param {DocumentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
488
|
+
*
|
|
489
|
+
* @throws {@link Corti.BadRequestError}
|
|
490
|
+
* @throws {@link Corti.NotFoundError}
|
|
491
|
+
* @throws {@link Corti.UnprocessableEntityError}
|
|
492
|
+
* @throws {@link Corti.InternalServerError}
|
|
493
|
+
*
|
|
494
|
+
* @example
|
|
495
|
+
* await client.documents.generate({
|
|
496
|
+
* body: {
|
|
497
|
+
* outputLanguage: "outputLanguage",
|
|
498
|
+
* templateRef: {
|
|
499
|
+
* templateId: "templateId"
|
|
500
|
+
* }
|
|
501
|
+
* }
|
|
502
|
+
* })
|
|
503
|
+
*/
|
|
504
|
+
generate(request, requestOptions) {
|
|
505
|
+
return core.HttpResponsePromise.fromPromise(this.__generate(request, requestOptions));
|
|
506
|
+
}
|
|
507
|
+
__generate(request, requestOptions) {
|
|
508
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
509
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
510
|
+
const { cortiRetentionPolicy, body: _body } = request;
|
|
511
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
512
|
+
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)({
|
|
513
|
+
"X-Corti-Retention-Policy": cortiRetentionPolicy,
|
|
514
|
+
"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,
|
|
515
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
516
|
+
const _response = yield core.fetcher({
|
|
517
|
+
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/"),
|
|
518
|
+
method: "POST",
|
|
519
|
+
headers: _headers,
|
|
520
|
+
contentType: "application/json",
|
|
521
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
522
|
+
requestType: "json",
|
|
523
|
+
body: serializers.GuidedDocumentRequest.jsonOrThrow(_body, {
|
|
524
|
+
unrecognizedObjectKeys: "strip",
|
|
525
|
+
omitUndefined: true,
|
|
526
|
+
}),
|
|
527
|
+
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,
|
|
528
|
+
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,
|
|
529
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
530
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
531
|
+
logging: this._options.logging,
|
|
532
|
+
});
|
|
533
|
+
if (_response.ok) {
|
|
534
|
+
return {
|
|
535
|
+
data: serializers.CreateEphemeralDocumentResponse.parseOrThrow(_response.body, {
|
|
536
|
+
unrecognizedObjectKeys: "passthrough",
|
|
537
|
+
allowUnrecognizedUnionMembers: true,
|
|
538
|
+
allowUnrecognizedEnumValues: true,
|
|
539
|
+
skipValidation: true,
|
|
540
|
+
breadcrumbsPrefix: ["response"],
|
|
541
|
+
}),
|
|
542
|
+
rawResponse: _response.rawResponse,
|
|
543
|
+
};
|
|
544
|
+
}
|
|
545
|
+
if (_response.error.reason === "status-code") {
|
|
546
|
+
switch (_response.error.statusCode) {
|
|
547
|
+
case 400:
|
|
548
|
+
throw new Corti.BadRequestError(_response.error.body, _response.rawResponse);
|
|
549
|
+
case 404:
|
|
550
|
+
throw new Corti.NotFoundError(_response.error.body, _response.rawResponse);
|
|
551
|
+
case 422:
|
|
552
|
+
throw new Corti.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
553
|
+
case 500:
|
|
554
|
+
throw new Corti.InternalServerError(serializers.ErrorResponse.parseOrThrow(_response.error.body, {
|
|
555
|
+
unrecognizedObjectKeys: "passthrough",
|
|
556
|
+
allowUnrecognizedUnionMembers: true,
|
|
557
|
+
allowUnrecognizedEnumValues: true,
|
|
558
|
+
skipValidation: true,
|
|
559
|
+
breadcrumbsPrefix: ["response"],
|
|
560
|
+
}), _response.rawResponse);
|
|
561
|
+
default:
|
|
562
|
+
throw new errors.CortiError({
|
|
563
|
+
statusCode: _response.error.statusCode,
|
|
564
|
+
body: _response.error.body,
|
|
565
|
+
rawResponse: _response.rawResponse,
|
|
566
|
+
});
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/documents/");
|
|
570
|
+
});
|
|
571
|
+
}
|
|
461
572
|
}
|
|
462
573
|
exports.DocumentsClient = DocumentsClient;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type * as Corti from "../../../../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* body: {
|
|
6
|
+
* outputLanguage: "outputLanguage",
|
|
7
|
+
* templateRef: {
|
|
8
|
+
* templateId: "templateId"
|
|
9
|
+
* }
|
|
10
|
+
* }
|
|
11
|
+
* }
|
|
12
|
+
*/
|
|
13
|
+
export interface GenerateDocumentsRequest {
|
|
14
|
+
/** Pass the optional `X-Corti-Retention-Policy: none` header to generate and return the document without saving it to the database. The response will be 200 with `EphemeralDocumentResponse`. Without the header the document is saved and the response is 201 with `CreateDocumentResponse`. */
|
|
15
|
+
cortiRetentionPolicy?: Corti.GenerateDocumentsRequestXCortiRetentionPolicy;
|
|
16
|
+
body: Corti.GuidedDocumentRequest;
|
|
17
|
+
}
|
|
@@ -15,3 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./client/index.js"), exports);
|
|
18
|
+
__exportStar(require("./resources/index.js"), exports);
|
|
19
|
+
__exportStar(require("./types/index.js"), exports);
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
19
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
20
|
+
};
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.templates = exports.sections = void 0;
|
|
40
|
+
__exportStar(require("./sections/client/requests/index.js"), exports);
|
|
41
|
+
exports.sections = __importStar(require("./sections/index.js"));
|
|
42
|
+
__exportStar(require("./templates/client/requests/index.js"), exports);
|
|
43
|
+
exports.templates = __importStar(require("./templates/index.js"));
|
|
@@ -0,0 +1,84 @@
|
|
|
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
|
+
import { VersionsClient } from "../resources/versions/client/Client.js";
|
|
6
|
+
export declare namespace SectionsClient {
|
|
7
|
+
type Options = BaseClientOptions;
|
|
8
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export declare class SectionsClient {
|
|
12
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<SectionsClient.Options>;
|
|
13
|
+
protected _versions: VersionsClient | undefined;
|
|
14
|
+
constructor(options: SectionsClient.Options);
|
|
15
|
+
get versions(): VersionsClient;
|
|
16
|
+
/**
|
|
17
|
+
* @param {Corti.documents.ListSectionsRequest} request
|
|
18
|
+
* @param {SectionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* await client.documents.sections.list()
|
|
22
|
+
*/
|
|
23
|
+
list(request?: Corti.documents.ListSectionsRequest, requestOptions?: SectionsClient.RequestOptions): core.HttpResponsePromise<Corti.Section[]>;
|
|
24
|
+
private __list;
|
|
25
|
+
/**
|
|
26
|
+
* @param {Corti.CreateSectionRequest} request
|
|
27
|
+
* @param {SectionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
28
|
+
*
|
|
29
|
+
* @throws {@link Corti.BadRequestError}
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* await client.documents.sections.create({
|
|
33
|
+
* name: "name",
|
|
34
|
+
* generation: {
|
|
35
|
+
* heading: "heading",
|
|
36
|
+
* instructions: {
|
|
37
|
+
* contentPrompt: "contentPrompt"
|
|
38
|
+
* },
|
|
39
|
+
* outputSchema: {
|
|
40
|
+
* type: "string"
|
|
41
|
+
* }
|
|
42
|
+
* }
|
|
43
|
+
* })
|
|
44
|
+
*/
|
|
45
|
+
create(request: Corti.CreateSectionRequest, requestOptions?: SectionsClient.RequestOptions): core.HttpResponsePromise<Corti.Section>;
|
|
46
|
+
private __create;
|
|
47
|
+
/**
|
|
48
|
+
* @param {string} sectionID
|
|
49
|
+
* @param {SectionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
50
|
+
*
|
|
51
|
+
* @throws {@link Corti.NotFoundError}
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* await client.documents.sections.get("sectionID")
|
|
55
|
+
*/
|
|
56
|
+
get(sectionID: string, requestOptions?: SectionsClient.RequestOptions): core.HttpResponsePromise<Corti.Section>;
|
|
57
|
+
private __get;
|
|
58
|
+
/**
|
|
59
|
+
* Delete section
|
|
60
|
+
*
|
|
61
|
+
* @param {string} sectionID
|
|
62
|
+
* @param {SectionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link Corti.NotFoundError}
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* await client.documents.sections.delete("sectionID")
|
|
68
|
+
*/
|
|
69
|
+
delete(sectionID: string, requestOptions?: SectionsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
70
|
+
private __delete;
|
|
71
|
+
/**
|
|
72
|
+
* @param {string} sectionID
|
|
73
|
+
* @param {Corti.documents.UpdateSectionRequest} request
|
|
74
|
+
* @param {SectionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link Corti.BadRequestError}
|
|
77
|
+
* @throws {@link Corti.NotFoundError}
|
|
78
|
+
*
|
|
79
|
+
* @example
|
|
80
|
+
* await client.documents.sections.update("sectionID")
|
|
81
|
+
*/
|
|
82
|
+
update(sectionID: string, request?: Corti.documents.UpdateSectionRequest, requestOptions?: SectionsClient.RequestOptions): core.HttpResponsePromise<Corti.Section>;
|
|
83
|
+
private __update;
|
|
84
|
+
}
|