@corti/sdk 0.1.3-alpha → 0.1.3-rc
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/README.md +29 -16
- package/dist/cjs/Client.js +2 -2
- package/dist/cjs/api/errors/NotFoundError.d.ts +1 -2
- package/dist/cjs/api/index.d.ts +4 -0
- package/dist/cjs/api/index.js +4 -0
- package/dist/cjs/api/resources/documents/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/documents/client/Client.js +4 -10
- package/dist/cjs/api/resources/facts/client/Client.d.ts +6 -4
- package/dist/cjs/api/resources/facts/client/Client.js +6 -4
- package/dist/cjs/api/resources/facts/client/requests/FactsUpdateRequest.d.ts +2 -2
- package/dist/cjs/api/resources/index.d.ts +1 -2
- package/dist/cjs/api/resources/index.js +2 -3
- package/dist/cjs/api/resources/interactions/client/Client.d.ts +5 -5
- package/dist/cjs/api/resources/interactions/client/Client.js +5 -5
- package/dist/cjs/api/resources/recordings/client/Client.d.ts +6 -8
- package/dist/cjs/api/resources/recordings/client/Client.js +13 -24
- package/dist/cjs/api/resources/templates/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/templates/client/Client.js +2 -2
- package/dist/cjs/api/resources/transcripts/client/Client.d.ts +5 -6
- package/dist/cjs/api/resources/transcripts/client/Client.js +5 -6
- package/dist/cjs/api/resources/transcripts/client/requests/TranscriptsCreateRequest.d.ts +1 -4
- package/dist/cjs/api/resources/transcripts/index.d.ts +0 -1
- package/dist/cjs/api/resources/transcripts/index.js +0 -1
- package/dist/cjs/api/types/CommonTranscriptRequest.d.ts +17 -0
- package/dist/cjs/api/types/{CommonTranscript.d.ts → CommonTranscriptResponse.d.ts} +1 -1
- package/dist/cjs/api/types/DocumentsContext.d.ts +11 -5
- package/dist/cjs/api/types/DocumentsContextWithFacts.d.ts +8 -0
- package/dist/cjs/api/types/DocumentsContextWithString.d.ts +7 -0
- package/dist/cjs/api/types/DocumentsContextWithString.js +5 -0
- package/dist/cjs/api/types/DocumentsContextWithTranscript.d.ts +8 -0
- package/dist/cjs/api/types/DocumentsContextWithTranscript.js +5 -0
- package/dist/cjs/api/types/DocumentsCreateRequest.d.ts +7 -1
- package/dist/cjs/api/types/DocumentsCreateRequestWithTemplate.d.ts +2 -4
- package/dist/cjs/api/types/DocumentsCreateRequestWithTemplateKey.d.ts +2 -4
- package/dist/cjs/api/types/DocumentsTemplate.d.ts +1 -10
- package/dist/cjs/api/types/DocumentsTemplateWithSectionKeys.d.ts +11 -0
- package/dist/cjs/api/types/DocumentsTemplateWithSectionKeys.js +5 -0
- package/dist/cjs/api/types/FactsBatchUpdateInput.d.ts +1 -1
- package/dist/cjs/api/types/FactsCreateItem.d.ts +1 -1
- package/dist/cjs/api/types/FactsListItem.d.ts +1 -1
- package/dist/cjs/api/types/TemplatesSection.d.ts +1 -1
- package/dist/cjs/api/types/TemplatesSectionTranslation.d.ts +11 -0
- package/dist/cjs/api/types/TemplatesSectionTranslation.js +5 -0
- package/dist/cjs/api/types/TemplatesTranslation.d.ts +2 -2
- package/dist/cjs/api/types/TranscriptsData.d.ts +1 -1
- package/dist/cjs/api/types/TranscriptsResponse.d.ts +1 -1
- package/dist/cjs/api/types/index.d.ts +7 -4
- package/dist/cjs/api/types/index.js +7 -4
- package/dist/cjs/core/exports.d.ts +1 -0
- package/dist/cjs/{api/resources/transcripts/types/index.js → core/exports.js} +1 -1
- package/dist/cjs/core/file/exports.d.ts +1 -0
- package/dist/cjs/core/file/exports.js +2 -0
- package/dist/cjs/core/file/file.d.ts +5 -0
- package/dist/cjs/core/file/file.js +203 -0
- package/dist/cjs/core/file/index.d.ts +2 -0
- package/dist/cjs/core/file/index.js +18 -0
- package/dist/cjs/core/file/types.d.ts +66 -0
- package/dist/cjs/core/file/types.js +2 -0
- package/dist/cjs/core/index.d.ts +1 -0
- package/dist/cjs/core/index.js +2 -1
- package/dist/cjs/core/schemas/utils/maybeSkipValidation.js +1 -1
- package/dist/cjs/core/websocket/ws.js +1 -1
- package/dist/cjs/custom/CortiAuth.d.ts +8 -0
- package/dist/cjs/custom/CortiAuth.js +7 -0
- package/dist/cjs/custom/CortiClient.js +6 -11
- package/dist/cjs/custom/RefreshBearerProvider.d.ts +10 -5
- package/dist/cjs/custom/RefreshBearerProvider.js +1 -1
- package/dist/cjs/custom/index.d.ts +1 -0
- package/dist/cjs/{serialization/resources/transcripts/types → custom}/index.js +1 -1
- package/dist/cjs/custom/utils/getEnvironmentFromString.d.ts +6 -0
- package/dist/cjs/custom/utils/getEnvironmentFromString.js +13 -0
- package/dist/cjs/environments.d.ts +4 -6
- package/dist/cjs/environments.js +2 -5
- package/dist/cjs/exports.d.ts +1 -0
- package/dist/cjs/exports.js +17 -0
- package/dist/cjs/serialization/resources/index.d.ts +1 -2
- package/dist/cjs/serialization/resources/index.js +2 -3
- package/dist/cjs/serialization/resources/transcripts/client/requests/TranscriptsCreateRequest.d.ts +0 -2
- package/dist/cjs/serialization/resources/transcripts/client/requests/TranscriptsCreateRequest.js +0 -2
- package/dist/cjs/serialization/resources/transcripts/index.d.ts +0 -1
- package/dist/cjs/serialization/resources/transcripts/index.js +0 -1
- package/dist/cjs/serialization/types/CommonTranscriptRequest.d.ts +17 -0
- package/dist/cjs/serialization/types/CommonTranscriptRequest.js +48 -0
- package/dist/cjs/serialization/types/{CommonTranscript.d.ts → CommonTranscriptResponse.d.ts} +2 -2
- package/dist/cjs/serialization/types/{CommonTranscript.js → CommonTranscriptResponse.js} +2 -2
- package/dist/cjs/serialization/types/DocumentsContext.d.ts +13 -6
- package/dist/cjs/serialization/types/DocumentsContext.js +12 -5
- package/dist/cjs/serialization/types/DocumentsContextWithFacts.d.ts +13 -0
- package/dist/cjs/serialization/{resources/transcripts/types/TranscriptsCreateRequestModelName.js → types/DocumentsContextWithFacts.js} +6 -3
- package/dist/cjs/serialization/types/DocumentsContextWithString.d.ts +12 -0
- package/dist/cjs/serialization/types/{DocumentsContextTypeEnum.js → DocumentsContextWithString.js} +4 -2
- package/dist/cjs/serialization/types/DocumentsContextWithTranscript.d.ts +13 -0
- package/dist/cjs/serialization/types/{DocumentsContextData.js → DocumentsContextWithTranscript.js} +5 -8
- package/dist/cjs/serialization/types/DocumentsCreateRequest.d.ts +1 -2
- package/dist/cjs/serialization/types/DocumentsCreateRequest.js +0 -2
- package/dist/cjs/serialization/types/DocumentsCreateRequestWithTemplate.d.ts +0 -1
- package/dist/cjs/serialization/types/DocumentsCreateRequestWithTemplate.js +0 -1
- package/dist/cjs/serialization/types/DocumentsCreateRequestWithTemplateKey.d.ts +0 -1
- package/dist/cjs/serialization/types/DocumentsCreateRequestWithTemplateKey.js +0 -1
- package/dist/cjs/serialization/types/DocumentsTemplate.d.ts +2 -7
- package/dist/cjs/serialization/types/DocumentsTemplate.js +2 -41
- package/dist/cjs/serialization/types/DocumentsTemplateWithSectionKeys.d.ts +14 -0
- package/dist/cjs/serialization/types/DocumentsTemplateWithSectionKeys.js +45 -0
- package/dist/cjs/serialization/types/TemplatesSection.d.ts +2 -2
- package/dist/cjs/serialization/types/TemplatesSection.js +2 -2
- package/dist/cjs/serialization/types/TemplatesSectionTranslation.d.ts +14 -0
- package/dist/cjs/serialization/types/TemplatesSectionTranslation.js +45 -0
- package/dist/cjs/serialization/types/TemplatesTranslation.d.ts +2 -2
- package/dist/cjs/serialization/types/TemplatesTranslation.js +2 -2
- package/dist/cjs/serialization/types/TranscriptsData.d.ts +2 -2
- package/dist/cjs/serialization/types/TranscriptsData.js +2 -2
- package/dist/cjs/serialization/types/TranscriptsResponse.d.ts +2 -2
- package/dist/cjs/serialization/types/TranscriptsResponse.js +2 -2
- package/dist/cjs/serialization/types/index.d.ts +7 -4
- package/dist/cjs/serialization/types/index.js +7 -4
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/api/errors/NotFoundError.d.mts +1 -2
- package/dist/esm/api/index.d.mts +4 -0
- package/dist/esm/api/index.mjs +4 -0
- package/dist/esm/api/resources/documents/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/documents/client/Client.mjs +4 -10
- package/dist/esm/api/resources/facts/client/Client.d.mts +6 -4
- package/dist/esm/api/resources/facts/client/Client.mjs +6 -4
- package/dist/esm/api/resources/facts/client/requests/FactsUpdateRequest.d.mts +2 -2
- package/dist/esm/api/resources/index.d.mts +1 -2
- package/dist/esm/api/resources/index.mjs +1 -2
- package/dist/esm/api/resources/interactions/client/Client.d.mts +5 -5
- package/dist/esm/api/resources/interactions/client/Client.mjs +5 -5
- package/dist/esm/api/resources/recordings/client/Client.d.mts +6 -8
- package/dist/esm/api/resources/recordings/client/Client.mjs +13 -24
- package/dist/esm/api/resources/templates/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/templates/client/Client.mjs +2 -2
- package/dist/esm/api/resources/transcripts/client/Client.d.mts +5 -6
- package/dist/esm/api/resources/transcripts/client/Client.mjs +5 -6
- package/dist/esm/api/resources/transcripts/client/requests/TranscriptsCreateRequest.d.mts +1 -4
- package/dist/esm/api/resources/transcripts/index.d.mts +0 -1
- package/dist/esm/api/resources/transcripts/index.mjs +0 -1
- package/dist/esm/api/types/CommonTranscriptRequest.d.mts +17 -0
- package/dist/esm/api/types/{CommonTranscript.d.mts → CommonTranscriptResponse.d.mts} +1 -1
- package/dist/esm/api/types/DocumentsContext.d.mts +11 -5
- package/dist/esm/api/types/DocumentsContextWithFacts.d.mts +8 -0
- package/dist/esm/api/types/DocumentsContextWithString.d.mts +7 -0
- package/dist/esm/api/types/DocumentsContextWithString.mjs +4 -0
- package/dist/esm/api/types/DocumentsContextWithTranscript.d.mts +8 -0
- package/dist/esm/api/types/DocumentsContextWithTranscript.mjs +4 -0
- package/dist/esm/api/types/DocumentsCreateRequest.d.mts +7 -1
- package/dist/esm/api/types/DocumentsCreateRequestWithTemplate.d.mts +2 -4
- package/dist/esm/api/types/DocumentsCreateRequestWithTemplateKey.d.mts +2 -4
- package/dist/esm/api/types/DocumentsTemplate.d.mts +1 -10
- package/dist/esm/api/types/DocumentsTemplateWithSectionKeys.d.mts +11 -0
- package/dist/esm/api/types/DocumentsTemplateWithSectionKeys.mjs +4 -0
- package/dist/esm/api/types/FactsBatchUpdateInput.d.mts +1 -1
- package/dist/esm/api/types/FactsCreateItem.d.mts +1 -1
- package/dist/esm/api/types/FactsListItem.d.mts +1 -1
- package/dist/esm/api/types/TemplatesSection.d.mts +1 -1
- package/dist/esm/api/types/TemplatesSectionTranslation.d.mts +11 -0
- package/dist/esm/api/types/TemplatesSectionTranslation.mjs +4 -0
- package/dist/esm/api/types/TemplatesTranslation.d.mts +2 -2
- package/dist/esm/api/types/TranscriptsData.d.mts +1 -1
- package/dist/esm/api/types/TranscriptsResponse.d.mts +1 -1
- package/dist/esm/api/types/index.d.mts +7 -4
- package/dist/esm/api/types/index.mjs +7 -4
- package/dist/esm/core/exports.d.mts +1 -0
- package/dist/esm/core/exports.mjs +1 -0
- package/dist/esm/core/file/exports.d.mts +1 -0
- package/dist/esm/core/file/exports.mjs +1 -0
- package/dist/esm/core/file/file.d.mts +5 -0
- package/dist/esm/core/file/file.mjs +167 -0
- package/dist/esm/core/file/index.d.mts +2 -0
- package/dist/esm/core/file/index.mjs +2 -0
- package/dist/esm/core/file/types.d.mts +66 -0
- package/dist/esm/core/file/types.mjs +1 -0
- package/dist/esm/core/index.d.mts +1 -0
- package/dist/esm/core/index.mjs +1 -0
- package/dist/esm/core/schemas/utils/maybeSkipValidation.mjs +1 -1
- package/dist/esm/core/websocket/ws.mjs +1 -1
- package/dist/esm/custom/CortiAuth.d.mts +8 -0
- package/dist/esm/custom/CortiAuth.mjs +7 -0
- package/dist/esm/custom/CortiClient.mjs +6 -11
- package/dist/esm/custom/RefreshBearerProvider.d.mts +10 -5
- package/dist/esm/custom/RefreshBearerProvider.mjs +1 -1
- package/dist/esm/custom/index.d.mts +1 -0
- package/dist/esm/custom/index.mjs +1 -0
- package/dist/esm/custom/utils/getEnvironmentFromString.d.mts +6 -0
- package/dist/esm/custom/utils/getEnvironmentFromString.mjs +10 -0
- package/dist/esm/environments.d.mts +4 -6
- package/dist/esm/environments.mjs +2 -5
- package/dist/esm/exports.d.mts +1 -0
- package/dist/esm/exports.mjs +1 -0
- package/dist/esm/serialization/resources/index.d.mts +1 -2
- package/dist/esm/serialization/resources/index.mjs +1 -2
- package/dist/esm/serialization/resources/transcripts/client/requests/TranscriptsCreateRequest.d.mts +0 -2
- package/dist/esm/serialization/resources/transcripts/client/requests/TranscriptsCreateRequest.mjs +0 -2
- package/dist/esm/serialization/resources/transcripts/index.d.mts +0 -1
- package/dist/esm/serialization/resources/transcripts/index.mjs +0 -1
- package/dist/esm/serialization/types/CommonTranscriptRequest.d.mts +17 -0
- package/dist/esm/serialization/types/CommonTranscriptRequest.mjs +12 -0
- package/dist/esm/serialization/types/{CommonTranscript.d.mts → CommonTranscriptResponse.d.mts} +2 -2
- package/dist/esm/serialization/types/{CommonTranscript.mjs → CommonTranscriptResponse.mjs} +1 -1
- package/dist/esm/serialization/types/DocumentsContext.d.mts +13 -6
- package/dist/esm/serialization/types/DocumentsContext.mjs +12 -5
- package/dist/esm/serialization/types/DocumentsContextWithFacts.d.mts +13 -0
- package/dist/esm/serialization/types/DocumentsContextWithFacts.mjs +8 -0
- package/dist/esm/serialization/types/DocumentsContextWithString.d.mts +12 -0
- package/dist/esm/serialization/types/{DocumentsContextTypeEnum.mjs → DocumentsContextWithString.mjs} +3 -1
- package/dist/esm/serialization/types/DocumentsContextWithTranscript.d.mts +13 -0
- package/dist/esm/serialization/types/DocumentsContextWithTranscript.mjs +8 -0
- package/dist/esm/serialization/types/DocumentsCreateRequest.d.mts +1 -2
- package/dist/esm/serialization/types/DocumentsCreateRequest.mjs +0 -2
- package/dist/esm/serialization/types/DocumentsCreateRequestWithTemplate.d.mts +0 -1
- package/dist/esm/serialization/types/DocumentsCreateRequestWithTemplate.mjs +0 -1
- package/dist/esm/serialization/types/DocumentsCreateRequestWithTemplateKey.d.mts +0 -1
- package/dist/esm/serialization/types/DocumentsCreateRequestWithTemplateKey.mjs +0 -1
- package/dist/esm/serialization/types/DocumentsTemplate.d.mts +2 -7
- package/dist/esm/serialization/types/DocumentsTemplate.mjs +2 -8
- package/dist/esm/serialization/types/DocumentsTemplateWithSectionKeys.d.mts +14 -0
- package/dist/esm/serialization/types/DocumentsTemplateWithSectionKeys.mjs +9 -0
- package/dist/esm/serialization/types/TemplatesSection.d.mts +2 -2
- package/dist/esm/serialization/types/TemplatesSection.mjs +2 -2
- package/dist/esm/serialization/types/TemplatesSectionTranslation.d.mts +14 -0
- package/dist/esm/serialization/types/TemplatesSectionTranslation.mjs +9 -0
- package/dist/esm/serialization/types/TemplatesTranslation.d.mts +2 -2
- package/dist/esm/serialization/types/TemplatesTranslation.mjs +2 -2
- package/dist/esm/serialization/types/TranscriptsData.d.mts +2 -2
- package/dist/esm/serialization/types/TranscriptsData.mjs +2 -2
- package/dist/esm/serialization/types/TranscriptsResponse.d.mts +2 -2
- package/dist/esm/serialization/types/TranscriptsResponse.mjs +2 -2
- package/dist/esm/serialization/types/index.d.mts +7 -4
- package/dist/esm/serialization/types/index.mjs +7 -4
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +4 -3
- package/dist/cjs/api/resources/transcripts/types/TranscriptsCreateRequestModelName.d.ts +0 -12
- package/dist/cjs/api/resources/transcripts/types/TranscriptsCreateRequestModelName.js +0 -11
- package/dist/cjs/api/resources/transcripts/types/index.d.ts +0 -1
- package/dist/cjs/api/types/DocumentsContextData.d.ts +0 -14
- package/dist/cjs/api/types/DocumentsContextTypeEnum.d.ts +0 -9
- package/dist/cjs/api/types/DocumentsContextTypeEnum.js +0 -11
- package/dist/cjs/api/types/DocumentsCreateRequestWithTemplateId.d.ts +0 -16
- package/dist/cjs/serialization/resources/transcripts/types/TranscriptsCreateRequestModelName.d.ts +0 -10
- package/dist/cjs/serialization/resources/transcripts/types/index.d.ts +0 -1
- package/dist/cjs/serialization/types/DocumentsContextData.d.ts +0 -12
- package/dist/cjs/serialization/types/DocumentsContextTypeEnum.d.ts +0 -10
- package/dist/cjs/serialization/types/DocumentsCreateRequestWithTemplateId.d.ts +0 -18
- package/dist/cjs/serialization/types/DocumentsCreateRequestWithTemplateId.js +0 -49
- package/dist/esm/api/resources/transcripts/types/TranscriptsCreateRequestModelName.d.mts +0 -12
- package/dist/esm/api/resources/transcripts/types/TranscriptsCreateRequestModelName.mjs +0 -8
- package/dist/esm/api/resources/transcripts/types/index.d.mts +0 -1
- package/dist/esm/api/resources/transcripts/types/index.mjs +0 -1
- package/dist/esm/api/types/DocumentsContextData.d.mts +0 -14
- package/dist/esm/api/types/DocumentsContextTypeEnum.d.mts +0 -9
- package/dist/esm/api/types/DocumentsContextTypeEnum.mjs +0 -8
- package/dist/esm/api/types/DocumentsCreateRequestWithTemplateId.d.mts +0 -16
- package/dist/esm/serialization/resources/transcripts/types/TranscriptsCreateRequestModelName.d.mts +0 -10
- package/dist/esm/serialization/resources/transcripts/types/TranscriptsCreateRequestModelName.mjs +0 -5
- package/dist/esm/serialization/resources/transcripts/types/index.d.mts +0 -1
- package/dist/esm/serialization/resources/transcripts/types/index.mjs +0 -1
- package/dist/esm/serialization/types/DocumentsContextData.d.mts +0 -12
- package/dist/esm/serialization/types/DocumentsContextData.mjs +0 -11
- package/dist/esm/serialization/types/DocumentsContextTypeEnum.d.mts +0 -10
- package/dist/esm/serialization/types/DocumentsCreateRequestWithTemplateId.d.mts +0 -18
- package/dist/esm/serialization/types/DocumentsCreateRequestWithTemplateId.mjs +0 -13
- package/reference.md +0 -1706
- /package/dist/cjs/api/types/{CommonTranscript.js → CommonTranscriptRequest.js} +0 -0
- /package/dist/cjs/api/types/{DocumentsContextData.js → CommonTranscriptResponse.js} +0 -0
- /package/dist/cjs/api/types/{DocumentsCreateRequestWithTemplateId.js → DocumentsContextWithFacts.js} +0 -0
- /package/dist/esm/api/types/{CommonTranscript.mjs → CommonTranscriptRequest.mjs} +0 -0
- /package/dist/esm/api/types/{DocumentsContextData.mjs → CommonTranscriptResponse.mjs} +0 -0
- /package/dist/esm/api/types/{DocumentsCreateRequestWithTemplateId.mjs → DocumentsContextWithFacts.mjs} +0 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index.js";
|
|
5
|
+
import * as Corti from "../../api/index.js";
|
|
6
|
+
import * as core from "../../core/index.js";
|
|
7
|
+
export declare const CommonTranscriptRequest: core.serialization.ObjectSchema<serializers.CommonTranscriptRequest.Raw, Corti.CommonTranscriptRequest>;
|
|
8
|
+
export declare namespace CommonTranscriptRequest {
|
|
9
|
+
interface Raw {
|
|
10
|
+
channel?: number | null;
|
|
11
|
+
participant?: number | null;
|
|
12
|
+
speakerId?: number | null;
|
|
13
|
+
text: string;
|
|
14
|
+
start?: number | null;
|
|
15
|
+
end?: number | null;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
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.CommonTranscriptRequest = void 0;
|
|
40
|
+
const core = __importStar(require("../../core/index.js"));
|
|
41
|
+
exports.CommonTranscriptRequest = core.serialization.object({
|
|
42
|
+
channel: core.serialization.number().optional(),
|
|
43
|
+
participant: core.serialization.number().optional(),
|
|
44
|
+
speakerId: core.serialization.number().optional(),
|
|
45
|
+
text: core.serialization.string(),
|
|
46
|
+
start: core.serialization.number().optional(),
|
|
47
|
+
end: core.serialization.number().optional(),
|
|
48
|
+
});
|
package/dist/cjs/serialization/types/{CommonTranscript.d.ts → CommonTranscriptResponse.d.ts}
RENAMED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
import * as serializers from "../index.js";
|
|
5
5
|
import * as Corti from "../../api/index.js";
|
|
6
6
|
import * as core from "../../core/index.js";
|
|
7
|
-
export declare const
|
|
8
|
-
export declare namespace
|
|
7
|
+
export declare const CommonTranscriptResponse: core.serialization.ObjectSchema<serializers.CommonTranscriptResponse.Raw, Corti.CommonTranscriptResponse>;
|
|
8
|
+
export declare namespace CommonTranscriptResponse {
|
|
9
9
|
interface Raw {
|
|
10
10
|
channel: number;
|
|
11
11
|
participant: number;
|
|
@@ -36,9 +36,9 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
39
|
+
exports.CommonTranscriptResponse = void 0;
|
|
40
40
|
const core = __importStar(require("../../core/index.js"));
|
|
41
|
-
exports.
|
|
41
|
+
exports.CommonTranscriptResponse = core.serialization.object({
|
|
42
42
|
channel: core.serialization.number(),
|
|
43
43
|
participant: core.serialization.number(),
|
|
44
44
|
speakerId: core.serialization.number(),
|
|
@@ -4,12 +4,19 @@
|
|
|
4
4
|
import * as serializers from "../index.js";
|
|
5
5
|
import * as Corti from "../../api/index.js";
|
|
6
6
|
import * as core from "../../core/index.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
7
|
+
import { DocumentsContextWithFacts } from "./DocumentsContextWithFacts.js";
|
|
8
|
+
import { DocumentsContextWithTranscript } from "./DocumentsContextWithTranscript.js";
|
|
9
|
+
import { DocumentsContextWithString } from "./DocumentsContextWithString.js";
|
|
10
|
+
export declare const DocumentsContext: core.serialization.Schema<serializers.DocumentsContext.Raw, Corti.DocumentsContext>;
|
|
10
11
|
export declare namespace DocumentsContext {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
type Raw = DocumentsContext.Facts | DocumentsContext.Transcript | DocumentsContext.String;
|
|
13
|
+
interface Facts extends DocumentsContextWithFacts.Raw {
|
|
14
|
+
type: "facts";
|
|
15
|
+
}
|
|
16
|
+
interface Transcript extends DocumentsContextWithTranscript.Raw {
|
|
17
|
+
type: "transcript";
|
|
18
|
+
}
|
|
19
|
+
interface String extends DocumentsContextWithString.Raw {
|
|
20
|
+
type: "string";
|
|
14
21
|
}
|
|
15
22
|
}
|
|
@@ -38,9 +38,16 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.DocumentsContext = void 0;
|
|
40
40
|
const core = __importStar(require("../../core/index.js"));
|
|
41
|
-
const
|
|
42
|
-
const
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
41
|
+
const DocumentsContextWithFacts_js_1 = require("./DocumentsContextWithFacts.js");
|
|
42
|
+
const DocumentsContextWithTranscript_js_1 = require("./DocumentsContextWithTranscript.js");
|
|
43
|
+
const DocumentsContextWithString_js_1 = require("./DocumentsContextWithString.js");
|
|
44
|
+
exports.DocumentsContext = core.serialization
|
|
45
|
+
.union("type", {
|
|
46
|
+
facts: DocumentsContextWithFacts_js_1.DocumentsContextWithFacts,
|
|
47
|
+
transcript: DocumentsContextWithTranscript_js_1.DocumentsContextWithTranscript,
|
|
48
|
+
string: DocumentsContextWithString_js_1.DocumentsContextWithString,
|
|
49
|
+
})
|
|
50
|
+
.transform({
|
|
51
|
+
transform: (value) => value,
|
|
52
|
+
untransform: (value) => value,
|
|
46
53
|
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index.js";
|
|
5
|
+
import * as Corti from "../../api/index.js";
|
|
6
|
+
import * as core from "../../core/index.js";
|
|
7
|
+
import { FactsContext } from "./FactsContext.js";
|
|
8
|
+
export declare const DocumentsContextWithFacts: core.serialization.ObjectSchema<serializers.DocumentsContextWithFacts.Raw, Corti.DocumentsContextWithFacts>;
|
|
9
|
+
export declare namespace DocumentsContextWithFacts {
|
|
10
|
+
interface Raw {
|
|
11
|
+
data: FactsContext.Raw[];
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -36,6 +36,9 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
40
|
-
const core = __importStar(require("
|
|
41
|
-
|
|
39
|
+
exports.DocumentsContextWithFacts = void 0;
|
|
40
|
+
const core = __importStar(require("../../core/index.js"));
|
|
41
|
+
const FactsContext_js_1 = require("./FactsContext.js");
|
|
42
|
+
exports.DocumentsContextWithFacts = core.serialization.object({
|
|
43
|
+
data: core.serialization.list(FactsContext_js_1.FactsContext),
|
|
44
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index.js";
|
|
5
|
+
import * as Corti from "../../api/index.js";
|
|
6
|
+
import * as core from "../../core/index.js";
|
|
7
|
+
export declare const DocumentsContextWithString: core.serialization.ObjectSchema<serializers.DocumentsContextWithString.Raw, Corti.DocumentsContextWithString>;
|
|
8
|
+
export declare namespace DocumentsContextWithString {
|
|
9
|
+
interface Raw {
|
|
10
|
+
data: string;
|
|
11
|
+
}
|
|
12
|
+
}
|
package/dist/cjs/serialization/types/{DocumentsContextTypeEnum.js → DocumentsContextWithString.js}
RENAMED
|
@@ -36,6 +36,8 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
39
|
+
exports.DocumentsContextWithString = void 0;
|
|
40
40
|
const core = __importStar(require("../../core/index.js"));
|
|
41
|
-
exports.
|
|
41
|
+
exports.DocumentsContextWithString = core.serialization.object({
|
|
42
|
+
data: core.serialization.string(),
|
|
43
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index.js";
|
|
5
|
+
import * as Corti from "../../api/index.js";
|
|
6
|
+
import * as core from "../../core/index.js";
|
|
7
|
+
import { CommonTranscriptRequest } from "./CommonTranscriptRequest.js";
|
|
8
|
+
export declare const DocumentsContextWithTranscript: core.serialization.ObjectSchema<serializers.DocumentsContextWithTranscript.Raw, Corti.DocumentsContextWithTranscript>;
|
|
9
|
+
export declare namespace DocumentsContextWithTranscript {
|
|
10
|
+
interface Raw {
|
|
11
|
+
data: CommonTranscriptRequest.Raw;
|
|
12
|
+
}
|
|
13
|
+
}
|
package/dist/cjs/serialization/types/{DocumentsContextData.js → DocumentsContextWithTranscript.js}
RENAMED
|
@@ -36,12 +36,9 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
39
|
+
exports.DocumentsContextWithTranscript = void 0;
|
|
40
40
|
const core = __importStar(require("../../core/index.js"));
|
|
41
|
-
const
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
CommonTranscript_js_1.CommonTranscript,
|
|
46
|
-
core.serialization.string(),
|
|
47
|
-
]);
|
|
41
|
+
const CommonTranscriptRequest_js_1 = require("./CommonTranscriptRequest.js");
|
|
42
|
+
exports.DocumentsContextWithTranscript = core.serialization.object({
|
|
43
|
+
data: CommonTranscriptRequest_js_1.CommonTranscriptRequest,
|
|
44
|
+
});
|
|
@@ -5,9 +5,8 @@ import * as serializers from "../index.js";
|
|
|
5
5
|
import * as Corti from "../../api/index.js";
|
|
6
6
|
import * as core from "../../core/index.js";
|
|
7
7
|
import { DocumentsCreateRequestWithTemplateKey } from "./DocumentsCreateRequestWithTemplateKey.js";
|
|
8
|
-
import { DocumentsCreateRequestWithTemplateId } from "./DocumentsCreateRequestWithTemplateId.js";
|
|
9
8
|
import { DocumentsCreateRequestWithTemplate } from "./DocumentsCreateRequestWithTemplate.js";
|
|
10
9
|
export declare const DocumentsCreateRequest: core.serialization.Schema<serializers.DocumentsCreateRequest.Raw, Corti.DocumentsCreateRequest>;
|
|
11
10
|
export declare namespace DocumentsCreateRequest {
|
|
12
|
-
type Raw = DocumentsCreateRequestWithTemplateKey.Raw |
|
|
11
|
+
type Raw = DocumentsCreateRequestWithTemplateKey.Raw | DocumentsCreateRequestWithTemplate.Raw;
|
|
13
12
|
}
|
|
@@ -39,10 +39,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
39
39
|
exports.DocumentsCreateRequest = void 0;
|
|
40
40
|
const core = __importStar(require("../../core/index.js"));
|
|
41
41
|
const DocumentsCreateRequestWithTemplateKey_js_1 = require("./DocumentsCreateRequestWithTemplateKey.js");
|
|
42
|
-
const DocumentsCreateRequestWithTemplateId_js_1 = require("./DocumentsCreateRequestWithTemplateId.js");
|
|
43
42
|
const DocumentsCreateRequestWithTemplate_js_1 = require("./DocumentsCreateRequestWithTemplate.js");
|
|
44
43
|
exports.DocumentsCreateRequest = core.serialization.undiscriminatedUnion([
|
|
45
44
|
DocumentsCreateRequestWithTemplateKey_js_1.DocumentsCreateRequestWithTemplateKey,
|
|
46
|
-
DocumentsCreateRequestWithTemplateId_js_1.DocumentsCreateRequestWithTemplateId,
|
|
47
45
|
DocumentsCreateRequestWithTemplate_js_1.DocumentsCreateRequestWithTemplate,
|
|
48
46
|
]);
|
|
@@ -44,6 +44,5 @@ exports.DocumentsCreateRequestWithTemplate = core.serialization.object({
|
|
|
44
44
|
context: core.serialization.list(DocumentsContext_js_1.DocumentsContext),
|
|
45
45
|
template: DocumentsTemplate_js_1.DocumentsTemplate,
|
|
46
46
|
name: core.serialization.string().optional(),
|
|
47
|
-
modelName: core.serialization.string().optional(),
|
|
48
47
|
outputLanguage: core.serialization.string(),
|
|
49
48
|
});
|
|
@@ -43,6 +43,5 @@ exports.DocumentsCreateRequestWithTemplateKey = core.serialization.object({
|
|
|
43
43
|
context: core.serialization.list(DocumentsContext_js_1.DocumentsContext),
|
|
44
44
|
templateKey: core.serialization.string(),
|
|
45
45
|
name: core.serialization.string().optional(),
|
|
46
|
-
modelName: core.serialization.string().optional(),
|
|
47
46
|
outputLanguage: core.serialization.string(),
|
|
48
47
|
});
|
|
@@ -4,13 +4,8 @@
|
|
|
4
4
|
import * as serializers from "../index.js";
|
|
5
5
|
import * as Corti from "../../api/index.js";
|
|
6
6
|
import * as core from "../../core/index.js";
|
|
7
|
-
import {
|
|
7
|
+
import { DocumentsTemplateWithSectionKeys } from "./DocumentsTemplateWithSectionKeys.js";
|
|
8
8
|
export declare const DocumentsTemplate: core.serialization.ObjectSchema<serializers.DocumentsTemplate.Raw, Corti.DocumentsTemplate>;
|
|
9
9
|
export declare namespace DocumentsTemplate {
|
|
10
|
-
|
|
11
|
-
sectionIds?: Uuid.Raw[] | null;
|
|
12
|
-
sectionKeys?: string[] | null;
|
|
13
|
-
documentName?: string | null;
|
|
14
|
-
additionalInstructions?: string | null;
|
|
15
|
-
}
|
|
10
|
+
type Raw = DocumentsTemplateWithSectionKeys.Raw;
|
|
16
11
|
}
|
|
@@ -2,46 +2,7 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* This file was auto-generated by Fern from our API Definition.
|
|
4
4
|
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
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
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
6
|
exports.DocumentsTemplate = void 0;
|
|
40
|
-
const
|
|
41
|
-
|
|
42
|
-
exports.DocumentsTemplate = core.serialization.object({
|
|
43
|
-
sectionIds: core.serialization.list(Uuid_js_1.Uuid).optional(),
|
|
44
|
-
sectionKeys: core.serialization.list(core.serialization.string()).optional(),
|
|
45
|
-
documentName: core.serialization.string().optional(),
|
|
46
|
-
additionalInstructions: core.serialization.string().optional(),
|
|
47
|
-
});
|
|
7
|
+
const DocumentsTemplateWithSectionKeys_js_1 = require("./DocumentsTemplateWithSectionKeys.js");
|
|
8
|
+
exports.DocumentsTemplate = DocumentsTemplateWithSectionKeys_js_1.DocumentsTemplateWithSectionKeys;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index.js";
|
|
5
|
+
import * as Corti from "../../api/index.js";
|
|
6
|
+
import * as core from "../../core/index.js";
|
|
7
|
+
export declare const DocumentsTemplateWithSectionKeys: core.serialization.ObjectSchema<serializers.DocumentsTemplateWithSectionKeys.Raw, Corti.DocumentsTemplateWithSectionKeys>;
|
|
8
|
+
export declare namespace DocumentsTemplateWithSectionKeys {
|
|
9
|
+
interface Raw {
|
|
10
|
+
sectionKeys: string[];
|
|
11
|
+
documentName?: string | null;
|
|
12
|
+
additionalInstructions?: string | null;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
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.DocumentsTemplateWithSectionKeys = void 0;
|
|
40
|
+
const core = __importStar(require("../../core/index.js"));
|
|
41
|
+
exports.DocumentsTemplateWithSectionKeys = core.serialization.object({
|
|
42
|
+
sectionKeys: core.serialization.list(core.serialization.string()),
|
|
43
|
+
documentName: core.serialization.string().optional(),
|
|
44
|
+
additionalInstructions: core.serialization.string().optional(),
|
|
45
|
+
});
|
|
@@ -5,7 +5,7 @@ import * as serializers from "../index.js";
|
|
|
5
5
|
import * as Corti from "../../api/index.js";
|
|
6
6
|
import * as core from "../../core/index.js";
|
|
7
7
|
import { TemplatesWritingStyle } from "./TemplatesWritingStyle.js";
|
|
8
|
-
import {
|
|
8
|
+
import { TemplatesSectionTranslation } from "./TemplatesSectionTranslation.js";
|
|
9
9
|
export declare const TemplatesSection: core.serialization.ObjectSchema<serializers.TemplatesSection.Raw, Corti.TemplatesSection>;
|
|
10
10
|
export declare namespace TemplatesSection {
|
|
11
11
|
interface Raw {
|
|
@@ -16,6 +16,6 @@ export declare namespace TemplatesSection {
|
|
|
16
16
|
description: string;
|
|
17
17
|
default_writing_style: TemplatesWritingStyle.Raw;
|
|
18
18
|
section_type: string;
|
|
19
|
-
translations:
|
|
19
|
+
translations: TemplatesSectionTranslation.Raw[];
|
|
20
20
|
}
|
|
21
21
|
}
|
|
@@ -39,7 +39,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
39
39
|
exports.TemplatesSection = void 0;
|
|
40
40
|
const core = __importStar(require("../../core/index.js"));
|
|
41
41
|
const TemplatesWritingStyle_js_1 = require("./TemplatesWritingStyle.js");
|
|
42
|
-
const
|
|
42
|
+
const TemplatesSectionTranslation_js_1 = require("./TemplatesSectionTranslation.js");
|
|
43
43
|
exports.TemplatesSection = core.serialization.object({
|
|
44
44
|
dateUpdated: core.serialization.property("date_updated", core.serialization.date().optionalNullable()),
|
|
45
45
|
name: core.serialization.string(),
|
|
@@ -48,5 +48,5 @@ exports.TemplatesSection = core.serialization.object({
|
|
|
48
48
|
description: core.serialization.string(),
|
|
49
49
|
defaultWritingStyle: core.serialization.property("default_writing_style", TemplatesWritingStyle_js_1.TemplatesWritingStyle),
|
|
50
50
|
sectionType: core.serialization.property("section_type", core.serialization.string()),
|
|
51
|
-
translations: core.serialization.list(
|
|
51
|
+
translations: core.serialization.list(TemplatesSectionTranslation_js_1.TemplatesSectionTranslation),
|
|
52
52
|
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index.js";
|
|
5
|
+
import * as Corti from "../../api/index.js";
|
|
6
|
+
import * as core from "../../core/index.js";
|
|
7
|
+
export declare const TemplatesSectionTranslation: core.serialization.ObjectSchema<serializers.TemplatesSectionTranslation.Raw, Corti.TemplatesSectionTranslation>;
|
|
8
|
+
export declare namespace TemplatesSectionTranslation {
|
|
9
|
+
interface Raw {
|
|
10
|
+
languages_id: string;
|
|
11
|
+
name?: (string | null) | null;
|
|
12
|
+
description?: (string | null) | null;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
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.TemplatesSectionTranslation = void 0;
|
|
40
|
+
const core = __importStar(require("../../core/index.js"));
|
|
41
|
+
exports.TemplatesSectionTranslation = core.serialization.object({
|
|
42
|
+
languagesId: core.serialization.property("languages_id", core.serialization.string()),
|
|
43
|
+
name: core.serialization.string().optionalNullable(),
|
|
44
|
+
description: core.serialization.string().optionalNullable(),
|
|
45
|
+
});
|
|
@@ -8,7 +8,7 @@ export declare const TemplatesTranslation: core.serialization.ObjectSchema<seria
|
|
|
8
8
|
export declare namespace TemplatesTranslation {
|
|
9
9
|
interface Raw {
|
|
10
10
|
languages_id: string;
|
|
11
|
-
name?:
|
|
12
|
-
description?:
|
|
11
|
+
name?: string | null;
|
|
12
|
+
description?: string | null;
|
|
13
13
|
}
|
|
14
14
|
}
|
|
@@ -40,6 +40,6 @@ exports.TemplatesTranslation = void 0;
|
|
|
40
40
|
const core = __importStar(require("../../core/index.js"));
|
|
41
41
|
exports.TemplatesTranslation = core.serialization.object({
|
|
42
42
|
languagesId: core.serialization.property("languages_id", core.serialization.string()),
|
|
43
|
-
name: core.serialization.string().
|
|
44
|
-
description: core.serialization.string().
|
|
43
|
+
name: core.serialization.string().optional(),
|
|
44
|
+
description: core.serialization.string().optional(),
|
|
45
45
|
});
|
|
@@ -5,11 +5,11 @@ import * as serializers from "../index.js";
|
|
|
5
5
|
import * as Corti from "../../api/index.js";
|
|
6
6
|
import * as core from "../../core/index.js";
|
|
7
7
|
import { TranscriptsMetadata } from "./TranscriptsMetadata.js";
|
|
8
|
-
import {
|
|
8
|
+
import { CommonTranscriptResponse } from "./CommonTranscriptResponse.js";
|
|
9
9
|
export declare const TranscriptsData: core.serialization.ObjectSchema<serializers.TranscriptsData.Raw, Corti.TranscriptsData>;
|
|
10
10
|
export declare namespace TranscriptsData {
|
|
11
11
|
interface Raw {
|
|
12
12
|
metadata: TranscriptsMetadata.Raw;
|
|
13
|
-
transcripts:
|
|
13
|
+
transcripts: CommonTranscriptResponse.Raw[];
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -39,8 +39,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
39
39
|
exports.TranscriptsData = void 0;
|
|
40
40
|
const core = __importStar(require("../../core/index.js"));
|
|
41
41
|
const TranscriptsMetadata_js_1 = require("./TranscriptsMetadata.js");
|
|
42
|
-
const
|
|
42
|
+
const CommonTranscriptResponse_js_1 = require("./CommonTranscriptResponse.js");
|
|
43
43
|
exports.TranscriptsData = core.serialization.object({
|
|
44
44
|
metadata: TranscriptsMetadata_js_1.TranscriptsMetadata,
|
|
45
|
-
transcripts: core.serialization.list(
|
|
45
|
+
transcripts: core.serialization.list(CommonTranscriptResponse_js_1.CommonTranscriptResponse),
|
|
46
46
|
});
|
|
@@ -6,14 +6,14 @@ import * as Corti from "../../api/index.js";
|
|
|
6
6
|
import * as core from "../../core/index.js";
|
|
7
7
|
import { Uuid } from "./Uuid.js";
|
|
8
8
|
import { TranscriptsMetadata } from "./TranscriptsMetadata.js";
|
|
9
|
-
import {
|
|
9
|
+
import { CommonTranscriptResponse } from "./CommonTranscriptResponse.js";
|
|
10
10
|
import { CommonUsageInfo } from "./CommonUsageInfo.js";
|
|
11
11
|
export declare const TranscriptsResponse: core.serialization.ObjectSchema<serializers.TranscriptsResponse.Raw, Corti.TranscriptsResponse>;
|
|
12
12
|
export declare namespace TranscriptsResponse {
|
|
13
13
|
interface Raw {
|
|
14
14
|
id: Uuid.Raw;
|
|
15
15
|
metadata: TranscriptsMetadata.Raw;
|
|
16
|
-
transcripts
|
|
16
|
+
transcripts?: (CommonTranscriptResponse.Raw[] | null) | null;
|
|
17
17
|
usageInfo: CommonUsageInfo.Raw;
|
|
18
18
|
}
|
|
19
19
|
}
|
|
@@ -40,11 +40,11 @@ exports.TranscriptsResponse = void 0;
|
|
|
40
40
|
const core = __importStar(require("../../core/index.js"));
|
|
41
41
|
const Uuid_js_1 = require("./Uuid.js");
|
|
42
42
|
const TranscriptsMetadata_js_1 = require("./TranscriptsMetadata.js");
|
|
43
|
-
const
|
|
43
|
+
const CommonTranscriptResponse_js_1 = require("./CommonTranscriptResponse.js");
|
|
44
44
|
const CommonUsageInfo_js_1 = require("./CommonUsageInfo.js");
|
|
45
45
|
exports.TranscriptsResponse = core.serialization.object({
|
|
46
46
|
id: Uuid_js_1.Uuid,
|
|
47
47
|
metadata: TranscriptsMetadata_js_1.TranscriptsMetadata,
|
|
48
|
-
transcripts: core.serialization.list(
|
|
48
|
+
transcripts: core.serialization.list(CommonTranscriptResponse_js_1.CommonTranscriptResponse).optionalNullable(),
|
|
49
49
|
usageInfo: CommonUsageInfo_js_1.CommonUsageInfo,
|
|
50
50
|
});
|