@corti/sdk 0.1.5-alpha → 0.2.0
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 +26 -13
- 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 +4 -4
- package/dist/cjs/api/resources/recordings/client/Client.js +6 -18
- 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/TranscriptsData.d.ts +1 -1
- package/dist/cjs/api/types/TranscriptsResponse.d.ts +1 -1
- package/dist/cjs/api/types/index.d.ts +6 -4
- package/dist/cjs/api/types/index.js +6 -4
- package/dist/cjs/custom/CortiClient.js +4 -4
- 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.js +1 -0
- package/dist/cjs/environments.d.ts +3 -0
- package/dist/cjs/environments.js +2 -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/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 +6 -4
- package/dist/cjs/serialization/types/index.js +6 -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 +4 -4
- package/dist/esm/api/resources/recordings/client/Client.mjs +6 -18
- 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/TranscriptsData.d.mts +1 -1
- package/dist/esm/api/types/TranscriptsResponse.d.mts +1 -1
- package/dist/esm/api/types/index.d.mts +6 -4
- package/dist/esm/api/types/index.mjs +6 -4
- package/dist/esm/custom/CortiClient.mjs +4 -4
- 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.mjs +1 -0
- package/dist/esm/environments.d.mts +3 -0
- package/dist/esm/environments.mjs +2 -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/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 +6 -4
- package/dist/esm/serialization/types/index.mjs +6 -4
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +2 -2
- 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/resources/transcripts/types/index.js +0 -17
- 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
|
@@ -6,8 +6,7 @@ import * as Corti from "../../../../index.js";
|
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
8
|
* recordingId: "f47ac10b-58cc-4372-a567-0e02b2c3d479",
|
|
9
|
-
* primaryLanguage: "en"
|
|
10
|
-
* modelName: "base"
|
|
9
|
+
* primaryLanguage: "en"
|
|
11
10
|
* }
|
|
12
11
|
*/
|
|
13
12
|
export interface TranscriptsCreateRequest {
|
|
@@ -23,6 +22,4 @@ export interface TranscriptsCreateRequest {
|
|
|
23
22
|
diarize?: boolean;
|
|
24
23
|
/** An array of participants, each specifying a role and an assigned audio channel in the recording. Leave empty when shouldDiarize: true */
|
|
25
24
|
participants?: Corti.TranscriptsParticipant[];
|
|
26
|
-
/** The model name for transcription. By default, only the highest tier is accessible. Check https://docs.corti.ai/about/languages for more. */
|
|
27
|
-
modelName: Corti.TranscriptsCreateRequestModelName;
|
|
28
25
|
}
|
|
@@ -14,5 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./types/index.js"), exports);
|
|
18
17
|
__exportStar(require("./client/index.js"), exports);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export interface CommonTranscriptRequest {
|
|
5
|
+
/** The channel associated with this phrase/utterance. */
|
|
6
|
+
channel?: number;
|
|
7
|
+
/** The identifier of the participant. */
|
|
8
|
+
participant?: number;
|
|
9
|
+
/** Id to tag an identified speaker. Auto-increments. */
|
|
10
|
+
speakerId?: number;
|
|
11
|
+
/** The spoken phrase or utterance extracted from the audio. */
|
|
12
|
+
text: string;
|
|
13
|
+
/** Start time in milliseconds for phrase/utterance. */
|
|
14
|
+
start?: number;
|
|
15
|
+
/** End time in milliseconds for phrase/utterance. */
|
|
16
|
+
end?: number;
|
|
17
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export interface
|
|
4
|
+
export interface CommonTranscriptResponse {
|
|
5
5
|
/** The channel associated with this phrase/utterance. */
|
|
6
6
|
channel: number;
|
|
7
7
|
/** The identifier of the participant. */
|
|
@@ -2,9 +2,15 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Corti from "../index.js";
|
|
5
|
-
export
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
export type DocumentsContext = Corti.DocumentsContext.Facts | Corti.DocumentsContext.Transcript | Corti.DocumentsContext.String;
|
|
6
|
+
export declare namespace DocumentsContext {
|
|
7
|
+
interface Facts extends Corti.DocumentsContextWithFacts {
|
|
8
|
+
type: "facts";
|
|
9
|
+
}
|
|
10
|
+
interface Transcript extends Corti.DocumentsContextWithTranscript {
|
|
11
|
+
type: "transcript";
|
|
12
|
+
}
|
|
13
|
+
interface String extends Corti.DocumentsContextWithString {
|
|
14
|
+
type: "string";
|
|
15
|
+
}
|
|
10
16
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export interface DocumentsContextWithString {
|
|
5
|
+
/** String data can include any text to be reasoned over for document generation: Transcript text, facts, or other narrative information. */
|
|
6
|
+
data: string;
|
|
7
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Corti from "../index.js";
|
|
5
|
+
export interface DocumentsContextWithTranscript {
|
|
6
|
+
/** Transcript object can accept the full transcript in one string, or individual transcript segments. */
|
|
7
|
+
data: Corti.CommonTranscriptRequest;
|
|
8
|
+
}
|
|
@@ -2,4 +2,10 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Corti from "../index.js";
|
|
5
|
-
export type DocumentsCreateRequest =
|
|
5
|
+
export type DocumentsCreateRequest =
|
|
6
|
+
/**
|
|
7
|
+
* Standard method for document generation: Use template key to generate document based on pre-defined template. */
|
|
8
|
+
Corti.DocumentsCreateRequestWithTemplateKey
|
|
9
|
+
/**
|
|
10
|
+
* Advanced method for document generation: Define sectionKeys in the request to build a template dynamically. See a detailed example [here](/templates/documents-advanced#assemble-a-template-with-extra-instructions). */
|
|
11
|
+
| Corti.DocumentsCreateRequestWithTemplate;
|
|
@@ -3,14 +3,12 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as Corti from "../index.js";
|
|
5
5
|
export interface DocumentsCreateRequestWithTemplate {
|
|
6
|
-
/** An array of context objects. */
|
|
6
|
+
/** An array of context objects. Currently accepts exactly one context object to be used as input for document generation. */
|
|
7
7
|
context: Corti.DocumentsContext[];
|
|
8
8
|
/** Template details if the template should be generated during the request. */
|
|
9
9
|
template: Corti.DocumentsTemplate;
|
|
10
10
|
/** An optional name for the document. */
|
|
11
11
|
name?: string;
|
|
12
|
-
/** The
|
|
13
|
-
modelName?: string;
|
|
14
|
-
/** The language in which the document will be generated. Check https://docs.corti.ai/about/languages for more. */
|
|
12
|
+
/** The language in which the document will be generated. Check [languages page](/about/languages) for more. */
|
|
15
13
|
outputLanguage: string;
|
|
16
14
|
}
|
|
@@ -3,14 +3,12 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as Corti from "../index.js";
|
|
5
5
|
export interface DocumentsCreateRequestWithTemplateKey {
|
|
6
|
-
/** An array of context objects. */
|
|
6
|
+
/** An array of context objects. Currently accepts exactly one context object to be used as input for document generation. */
|
|
7
7
|
context: Corti.DocumentsContext[];
|
|
8
8
|
/** The key of the template that informs on what kind of document is to be generated. */
|
|
9
9
|
templateKey: string;
|
|
10
10
|
/** An optional name for the document. */
|
|
11
11
|
name?: string;
|
|
12
|
-
/** The
|
|
13
|
-
modelName?: string;
|
|
14
|
-
/** The language in which the document will be generated. Check https://docs.corti.ai/about/languages for more. */
|
|
12
|
+
/** The language in which the document will be generated. Check [languages page](/about/languages) for more. */
|
|
15
13
|
outputLanguage: string;
|
|
16
14
|
}
|
|
@@ -2,13 +2,4 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Corti from "../index.js";
|
|
5
|
-
export
|
|
6
|
-
/** An array of section IDs. */
|
|
7
|
-
sectionIds?: Corti.Uuid[];
|
|
8
|
-
/** An array of section keys. */
|
|
9
|
-
sectionKeys?: string[];
|
|
10
|
-
/** The name of the document. */
|
|
11
|
-
documentName?: string;
|
|
12
|
-
/** Any additional instructions to be considered during document generation. */
|
|
13
|
-
additionalInstructions?: string;
|
|
14
|
-
}
|
|
5
|
+
export type DocumentsTemplate = Corti.DocumentsTemplateWithSectionKeys;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export interface DocumentsTemplateWithSectionKeys {
|
|
5
|
+
/** An array of section keys. */
|
|
6
|
+
sectionKeys: string[];
|
|
7
|
+
/** The name of the document. */
|
|
8
|
+
documentName?: string;
|
|
9
|
+
/** Any additional instructions to be considered during document generation. */
|
|
10
|
+
additionalInstructions?: string;
|
|
11
|
+
}
|
|
@@ -5,7 +5,7 @@ import * as Corti from "../index.js";
|
|
|
5
5
|
export interface FactsBatchUpdateInput {
|
|
6
6
|
/** The unique identifier of the fact to be updated. */
|
|
7
7
|
factId: Corti.Uuid;
|
|
8
|
-
/**
|
|
8
|
+
/** Set this to true for facts discarded by an end-user, then filter those out from the document generation request. */
|
|
9
9
|
isDiscarded?: boolean;
|
|
10
10
|
/** The updated text content of the fact. */
|
|
11
11
|
text?: string;
|
|
@@ -13,7 +13,7 @@ export interface FactsCreateItem {
|
|
|
13
13
|
groupId?: Corti.Uuid;
|
|
14
14
|
/** The origin of the fact, such as 'USER' or 'SYSTEM'. */
|
|
15
15
|
source?: Corti.CommonSourceEnum;
|
|
16
|
-
/** Indicates whether the fact has been marked as discarded. */
|
|
16
|
+
/** Indicates whether the fact has been marked as discarded by an end-user. */
|
|
17
17
|
isDiscarded?: boolean;
|
|
18
18
|
/** The timestamp when the fact was last updated. */
|
|
19
19
|
updatedAt?: Date;
|
|
@@ -11,7 +11,7 @@ export interface FactsListItem {
|
|
|
11
11
|
group?: string;
|
|
12
12
|
/** The unique identifier of the group to which the fact belongs. */
|
|
13
13
|
groupId?: Corti.Uuid;
|
|
14
|
-
/** Indicates whether the fact has been marked as discarded. */
|
|
14
|
+
/** Indicates whether the fact has been marked as discarded by an end-user. */
|
|
15
15
|
isDiscarded?: boolean;
|
|
16
16
|
/** The origin of the fact. */
|
|
17
17
|
source?: Corti.CommonSourceEnum;
|
|
@@ -6,5 +6,5 @@ export interface TranscriptsData {
|
|
|
6
6
|
/** Additional information about the participants involved in the transcript. */
|
|
7
7
|
metadata: Corti.TranscriptsMetadata;
|
|
8
8
|
/** An array of transcripts. */
|
|
9
|
-
transcripts: Corti.
|
|
9
|
+
transcripts: Corti.CommonTranscriptResponse[];
|
|
10
10
|
}
|
|
@@ -8,6 +8,6 @@ export interface TranscriptsResponse {
|
|
|
8
8
|
/** Additional information about the participants involved in the transcript. */
|
|
9
9
|
metadata: Corti.TranscriptsMetadata;
|
|
10
10
|
/** An array of transcripts. */
|
|
11
|
-
transcripts
|
|
11
|
+
transcripts?: Corti.CommonTranscriptResponse[] | null;
|
|
12
12
|
usageInfo: Corti.CommonUsageInfo;
|
|
13
13
|
}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
export * from "./DocumentsContext.js";
|
|
2
|
-
export * from "./
|
|
2
|
+
export * from "./DocumentsContextWithFacts.js";
|
|
3
|
+
export * from "./DocumentsContextWithTranscript.js";
|
|
4
|
+
export * from "./DocumentsContextWithString.js";
|
|
3
5
|
export * from "./DocumentsSection.js";
|
|
4
6
|
export * from "./DocumentsTemplate.js";
|
|
7
|
+
export * from "./DocumentsTemplateWithSectionKeys.js";
|
|
5
8
|
export * from "./InteractionsEncounterCreateRequest.js";
|
|
6
9
|
export * from "./InteractionsEncounterUpdateRequest.js";
|
|
7
10
|
export * from "./InteractionsEncounterResponse.js";
|
|
@@ -12,7 +15,6 @@ export * from "./FactsFactGroupsItemTranslationsItem.js";
|
|
|
12
15
|
export * from "./FactsFactGroupsItem.js";
|
|
13
16
|
export * from "./InteractionsPatient.js";
|
|
14
17
|
export * from "./DocumentsCreateRequest.js";
|
|
15
|
-
export * from "./DocumentsCreateRequestWithTemplateId.js";
|
|
16
18
|
export * from "./DocumentsCreateRequestWithTemplateKey.js";
|
|
17
19
|
export * from "./DocumentsCreateRequestWithTemplate.js";
|
|
18
20
|
export * from "./DocumentsSectionInput.js";
|
|
@@ -46,10 +48,10 @@ export * from "./TemplatesSection.js";
|
|
|
46
48
|
export * from "./CommonSortingDirectionEnum.js";
|
|
47
49
|
export * from "./TemplatesItem.js";
|
|
48
50
|
export * from "./TemplatesSectionSorted.js";
|
|
49
|
-
export * from "./
|
|
51
|
+
export * from "./CommonTranscriptRequest.js";
|
|
52
|
+
export * from "./CommonTranscriptResponse.js";
|
|
50
53
|
export * from "./Uuid.js";
|
|
51
54
|
export * from "./CommonUsageInfo.js";
|
|
52
|
-
export * from "./DocumentsContextTypeEnum.js";
|
|
53
55
|
export * from "./InteractionsEncounterStatusEnum.js";
|
|
54
56
|
export * from "./InteractionsEncounterTypeEnum.js";
|
|
55
57
|
export * from "./InteractionsGenderEnum.js";
|
|
@@ -15,9 +15,12 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./DocumentsContext.js"), exports);
|
|
18
|
-
__exportStar(require("./
|
|
18
|
+
__exportStar(require("./DocumentsContextWithFacts.js"), exports);
|
|
19
|
+
__exportStar(require("./DocumentsContextWithTranscript.js"), exports);
|
|
20
|
+
__exportStar(require("./DocumentsContextWithString.js"), exports);
|
|
19
21
|
__exportStar(require("./DocumentsSection.js"), exports);
|
|
20
22
|
__exportStar(require("./DocumentsTemplate.js"), exports);
|
|
23
|
+
__exportStar(require("./DocumentsTemplateWithSectionKeys.js"), exports);
|
|
21
24
|
__exportStar(require("./InteractionsEncounterCreateRequest.js"), exports);
|
|
22
25
|
__exportStar(require("./InteractionsEncounterUpdateRequest.js"), exports);
|
|
23
26
|
__exportStar(require("./InteractionsEncounterResponse.js"), exports);
|
|
@@ -28,7 +31,6 @@ __exportStar(require("./FactsFactGroupsItemTranslationsItem.js"), exports);
|
|
|
28
31
|
__exportStar(require("./FactsFactGroupsItem.js"), exports);
|
|
29
32
|
__exportStar(require("./InteractionsPatient.js"), exports);
|
|
30
33
|
__exportStar(require("./DocumentsCreateRequest.js"), exports);
|
|
31
|
-
__exportStar(require("./DocumentsCreateRequestWithTemplateId.js"), exports);
|
|
32
34
|
__exportStar(require("./DocumentsCreateRequestWithTemplateKey.js"), exports);
|
|
33
35
|
__exportStar(require("./DocumentsCreateRequestWithTemplate.js"), exports);
|
|
34
36
|
__exportStar(require("./DocumentsSectionInput.js"), exports);
|
|
@@ -62,10 +64,10 @@ __exportStar(require("./TemplatesSection.js"), exports);
|
|
|
62
64
|
__exportStar(require("./CommonSortingDirectionEnum.js"), exports);
|
|
63
65
|
__exportStar(require("./TemplatesItem.js"), exports);
|
|
64
66
|
__exportStar(require("./TemplatesSectionSorted.js"), exports);
|
|
65
|
-
__exportStar(require("./
|
|
67
|
+
__exportStar(require("./CommonTranscriptRequest.js"), exports);
|
|
68
|
+
__exportStar(require("./CommonTranscriptResponse.js"), exports);
|
|
66
69
|
__exportStar(require("./Uuid.js"), exports);
|
|
67
70
|
__exportStar(require("./CommonUsageInfo.js"), exports);
|
|
68
|
-
__exportStar(require("./DocumentsContextTypeEnum.js"), exports);
|
|
69
71
|
__exportStar(require("./InteractionsEncounterStatusEnum.js"), exports);
|
|
70
72
|
__exportStar(require("./InteractionsEncounterTypeEnum.js"), exports);
|
|
71
73
|
__exportStar(require("./InteractionsGenderEnum.js"), exports);
|
|
@@ -100,10 +100,9 @@ class CortiClient {
|
|
|
100
100
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
101
101
|
}, _options === null || _options === void 0 ? void 0 : _options.headers), clientId: "clientId" in _options.auth ? _options.auth.clientId : undefined, clientSecret: "clientSecret" in _options.auth ? _options.auth.clientSecret : undefined, token: "accessToken" in _options.auth ? _options.auth.accessToken : undefined, environment: (0, getEnvironmentFromString_js_1.getEnvironment)(_options.environment) });
|
|
102
102
|
/**
|
|
103
|
-
* Patch: if `
|
|
103
|
+
* Patch: if `clientId` is provided, use OAuthTokenProvider, otherwise use BearerProvider
|
|
104
104
|
*/
|
|
105
|
-
this._oauthTokenProvider = "
|
|
106
|
-
new RefreshBearerProvider_js_1.RefreshBearerProvider(_options.auth) :
|
|
105
|
+
this._oauthTokenProvider = "clientId" in _options.auth ?
|
|
107
106
|
new core.OAuthTokenProvider({
|
|
108
107
|
clientId: _options.auth.clientId,
|
|
109
108
|
clientSecret: _options.auth.clientSecret,
|
|
@@ -111,7 +110,8 @@ class CortiClient {
|
|
|
111
110
|
* Patch: provide whole `options` object to the Auth client, since it depends on both tenantName and environment
|
|
112
111
|
*/
|
|
113
112
|
authClient: new CortiAuth_js_1.Auth(this._options),
|
|
114
|
-
})
|
|
113
|
+
}) :
|
|
114
|
+
new RefreshBearerProvider_js_1.RefreshBearerProvider(_options.auth);
|
|
115
115
|
}
|
|
116
116
|
get interactions() {
|
|
117
117
|
var _a;
|
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* RefreshBearerProvider used as a replacement of OAuthTokenProvider, in case when accessToken from outside of library was used instead of Client credentials.
|
|
3
3
|
*/
|
|
4
|
-
import * as core from "../core/index.js";
|
|
5
4
|
import * as api from "../api/index.js";
|
|
6
|
-
type
|
|
7
|
-
|
|
8
|
-
refreshAccessToken?: RefreshAccessTokenFunction;
|
|
9
|
-
accessToken: core.Supplier<string>;
|
|
5
|
+
type ExpectedTokenResponse = Omit<api.GetTokenResponse, 'tokenType'> & {
|
|
6
|
+
tokenType?: string;
|
|
10
7
|
};
|
|
8
|
+
type RefreshAccessTokenFunction = (refreshToken?: string) => Promise<ExpectedTokenResponse> | ExpectedTokenResponse;
|
|
9
|
+
export type BearerOptions = Partial<Omit<api.GetTokenResponse, 'accessToken'>> & ({
|
|
10
|
+
refreshAccessToken?: RefreshAccessTokenFunction;
|
|
11
|
+
accessToken: string;
|
|
12
|
+
} | {
|
|
13
|
+
refreshAccessToken: RefreshAccessTokenFunction;
|
|
14
|
+
accessToken?: string;
|
|
15
|
+
});
|
|
11
16
|
export declare class RefreshBearerProvider {
|
|
12
17
|
private readonly BUFFER_IN_MINUTES;
|
|
13
18
|
private _accessToken;
|
|
@@ -52,7 +52,7 @@ class RefreshBearerProvider {
|
|
|
52
52
|
this.BUFFER_IN_MINUTES = 2;
|
|
53
53
|
this._expiresAt = this.getExpiresAt(expiresIn, this.BUFFER_IN_MINUTES);
|
|
54
54
|
this._refreshExpiresAt = this.getExpiresAt(refreshExpiresIn, 0);
|
|
55
|
-
this._accessToken = accessToken;
|
|
55
|
+
this._accessToken = accessToken || 'no_token';
|
|
56
56
|
this._refreshToken = refreshToken;
|
|
57
57
|
this._refreshAccessToken = refreshAccessToken;
|
|
58
58
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./RefreshBearerProvider.js";
|
|
@@ -14,4 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./
|
|
17
|
+
__exportStar(require("./RefreshBearerProvider.js"), exports);
|
|
@@ -7,6 +7,7 @@ function getEnvironment(environment) {
|
|
|
7
7
|
base: `https://api.${environment}.corti.app/v2`,
|
|
8
8
|
wss: `wss://api.${environment}.corti.app`,
|
|
9
9
|
login: `https://auth.${environment}.corti.app/realms`,
|
|
10
|
+
agents: `https://api.${environment}.corti.app/agents`,
|
|
10
11
|
}
|
|
11
12
|
: environment;
|
|
12
13
|
}
|
|
@@ -5,17 +5,20 @@ export interface CortiEnvironmentUrls {
|
|
|
5
5
|
base: string;
|
|
6
6
|
wss: string;
|
|
7
7
|
login: string;
|
|
8
|
+
agents: string;
|
|
8
9
|
}
|
|
9
10
|
export declare const CortiEnvironment: {
|
|
10
11
|
readonly Eu: {
|
|
11
12
|
readonly base: "https://api.eu.corti.app/v2";
|
|
12
13
|
readonly wss: "wss://api.eu.corti.app";
|
|
13
14
|
readonly login: "https://auth.eu.corti.app/realms";
|
|
15
|
+
readonly agents: "https://api.eu.corti.app/agents";
|
|
14
16
|
};
|
|
15
17
|
readonly Us: {
|
|
16
18
|
readonly base: "https://api.us.corti.app/v2";
|
|
17
19
|
readonly wss: "wss://api.us.corti.app";
|
|
18
20
|
readonly login: "https://auth.us.corti.app/realms";
|
|
21
|
+
readonly agents: "https://api.us.corti.app/agents";
|
|
19
22
|
};
|
|
20
23
|
};
|
|
21
24
|
export type CortiEnvironment = typeof CortiEnvironment.Eu | typeof CortiEnvironment.Us;
|
package/dist/cjs/environments.js
CHANGED
|
@@ -9,10 +9,12 @@ exports.CortiEnvironment = {
|
|
|
9
9
|
base: "https://api.eu.corti.app/v2",
|
|
10
10
|
wss: "wss://api.eu.corti.app",
|
|
11
11
|
login: "https://auth.eu.corti.app/realms",
|
|
12
|
+
agents: "https://api.eu.corti.app/agents",
|
|
12
13
|
},
|
|
13
14
|
Us: {
|
|
14
15
|
base: "https://api.us.corti.app/v2",
|
|
15
16
|
wss: "wss://api.us.corti.app",
|
|
16
17
|
login: "https://auth.us.corti.app/realms",
|
|
18
|
+
agents: "https://api.us.corti.app/agents",
|
|
17
19
|
},
|
|
18
20
|
};
|
|
@@ -4,11 +4,10 @@ export * as transcribe from "./transcribe/index.js";
|
|
|
4
4
|
export * from "./transcribe/client/socket/index.js";
|
|
5
5
|
export * as interactions from "./interactions/index.js";
|
|
6
6
|
export * from "./interactions/types/index.js";
|
|
7
|
-
export * as transcripts from "./transcripts/index.js";
|
|
8
|
-
export * from "./transcripts/types/index.js";
|
|
9
7
|
export * as auth from "./auth/index.js";
|
|
10
8
|
export * from "./auth/types/index.js";
|
|
11
9
|
export * from "./interactions/client/requests/index.js";
|
|
10
|
+
export * as transcripts from "./transcripts/index.js";
|
|
12
11
|
export * from "./transcripts/client/requests/index.js";
|
|
13
12
|
export * as facts from "./facts/index.js";
|
|
14
13
|
export * from "./facts/client/requests/index.js";
|
|
@@ -36,18 +36,17 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.documents = exports.facts = exports.
|
|
39
|
+
exports.documents = exports.facts = exports.transcripts = exports.auth = exports.interactions = exports.transcribe = exports.stream = void 0;
|
|
40
40
|
exports.stream = __importStar(require("./stream/index.js"));
|
|
41
41
|
__exportStar(require("./stream/client/socket/index.js"), exports);
|
|
42
42
|
exports.transcribe = __importStar(require("./transcribe/index.js"));
|
|
43
43
|
__exportStar(require("./transcribe/client/socket/index.js"), exports);
|
|
44
44
|
exports.interactions = __importStar(require("./interactions/index.js"));
|
|
45
45
|
__exportStar(require("./interactions/types/index.js"), exports);
|
|
46
|
-
exports.transcripts = __importStar(require("./transcripts/index.js"));
|
|
47
|
-
__exportStar(require("./transcripts/types/index.js"), exports);
|
|
48
46
|
exports.auth = __importStar(require("./auth/index.js"));
|
|
49
47
|
__exportStar(require("./auth/types/index.js"), exports);
|
|
50
48
|
__exportStar(require("./interactions/client/requests/index.js"), exports);
|
|
49
|
+
exports.transcripts = __importStar(require("./transcripts/index.js"));
|
|
51
50
|
__exportStar(require("./transcripts/client/requests/index.js"), exports);
|
|
52
51
|
exports.facts = __importStar(require("./facts/index.js"));
|
|
53
52
|
__exportStar(require("./facts/client/requests/index.js"), exports);
|
package/dist/cjs/serialization/resources/transcripts/client/requests/TranscriptsCreateRequest.d.ts
CHANGED
|
@@ -6,7 +6,6 @@ import * as Corti from "../../../../../api/index.js";
|
|
|
6
6
|
import * as core from "../../../../../core/index.js";
|
|
7
7
|
import { Uuid } from "../../../../types/Uuid.js";
|
|
8
8
|
import { TranscriptsParticipant } from "../../../../types/TranscriptsParticipant.js";
|
|
9
|
-
import { TranscriptsCreateRequestModelName } from "../../types/TranscriptsCreateRequestModelName.js";
|
|
10
9
|
export declare const TranscriptsCreateRequest: core.serialization.Schema<serializers.TranscriptsCreateRequest.Raw, Corti.TranscriptsCreateRequest>;
|
|
11
10
|
export declare namespace TranscriptsCreateRequest {
|
|
12
11
|
interface Raw {
|
|
@@ -16,6 +15,5 @@ export declare namespace TranscriptsCreateRequest {
|
|
|
16
15
|
isMultichannel?: boolean | null;
|
|
17
16
|
diarize?: boolean | null;
|
|
18
17
|
participants?: TranscriptsParticipant.Raw[] | null;
|
|
19
|
-
modelName: TranscriptsCreateRequestModelName.Raw;
|
|
20
18
|
}
|
|
21
19
|
}
|
package/dist/cjs/serialization/resources/transcripts/client/requests/TranscriptsCreateRequest.js
CHANGED
|
@@ -40,7 +40,6 @@ exports.TranscriptsCreateRequest = void 0;
|
|
|
40
40
|
const core = __importStar(require("../../../../../core/index.js"));
|
|
41
41
|
const Uuid_js_1 = require("../../../../types/Uuid.js");
|
|
42
42
|
const TranscriptsParticipant_js_1 = require("../../../../types/TranscriptsParticipant.js");
|
|
43
|
-
const TranscriptsCreateRequestModelName_js_1 = require("../../types/TranscriptsCreateRequestModelName.js");
|
|
44
43
|
exports.TranscriptsCreateRequest = core.serialization.object({
|
|
45
44
|
recordingId: Uuid_js_1.Uuid,
|
|
46
45
|
primaryLanguage: core.serialization.string(),
|
|
@@ -48,5 +47,4 @@ exports.TranscriptsCreateRequest = core.serialization.object({
|
|
|
48
47
|
isMultichannel: core.serialization.boolean().optional(),
|
|
49
48
|
diarize: core.serialization.boolean().optional(),
|
|
50
49
|
participants: core.serialization.list(TranscriptsParticipant_js_1.TranscriptsParticipant).optional(),
|
|
51
|
-
modelName: TranscriptsCreateRequestModelName_js_1.TranscriptsCreateRequestModelName,
|
|
52
50
|
});
|
|
@@ -14,5 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./types/index.js"), exports);
|
|
18
17
|
__exportStar(require("./client/index.js"), exports);
|
|
@@ -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(),
|