@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
|
@@ -20,6 +20,8 @@ export class Facts {
|
|
|
20
20
|
this._options = _options;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
+
* Returns a list of available fact groups, used to categorize facts associated with an interaction.
|
|
24
|
+
*
|
|
23
25
|
* @param {Facts.RequestOptions} requestOptions - Request-specific configuration.
|
|
24
26
|
*
|
|
25
27
|
* @throws {@link Corti.InternalServerError}
|
|
@@ -86,7 +88,7 @@ export class Facts {
|
|
|
86
88
|
});
|
|
87
89
|
}
|
|
88
90
|
/**
|
|
89
|
-
*
|
|
91
|
+
* Retrieves a list of facts for a given interaction.
|
|
90
92
|
*
|
|
91
93
|
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
|
|
92
94
|
* @param {Facts.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -161,7 +163,7 @@ export class Facts {
|
|
|
161
163
|
});
|
|
162
164
|
}
|
|
163
165
|
/**
|
|
164
|
-
*
|
|
166
|
+
* Adds new facts to an interaction.
|
|
165
167
|
*
|
|
166
168
|
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
|
|
167
169
|
* @param {Corti.FactsCreateRequest} request
|
|
@@ -248,7 +250,7 @@ export class Facts {
|
|
|
248
250
|
});
|
|
249
251
|
}
|
|
250
252
|
/**
|
|
251
|
-
*
|
|
253
|
+
* Updates multiple facts associated with an interaction.
|
|
252
254
|
*
|
|
253
255
|
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
|
|
254
256
|
* @param {Corti.FactsBatchUpdateRequest} request
|
|
@@ -334,7 +336,7 @@ export class Facts {
|
|
|
334
336
|
});
|
|
335
337
|
}
|
|
336
338
|
/**
|
|
337
|
-
*
|
|
339
|
+
* Updates an existing fact associated with a specific interaction.
|
|
338
340
|
*
|
|
339
341
|
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
|
|
340
342
|
* @param {Corti.Uuid} factId - The unique identifier of the fact to update. Must be a valid UUID.
|
|
@@ -11,8 +11,8 @@ export interface FactsUpdateRequest {
|
|
|
11
11
|
text?: string;
|
|
12
12
|
/** The updated group key for the fact. */
|
|
13
13
|
group?: string;
|
|
14
|
-
/** The updated origin of the fact. */
|
|
14
|
+
/** The updated origin of the fact. Set to 'USER' to indicate a change by an end-user. */
|
|
15
15
|
source?: Corti.CommonSourceEnum;
|
|
16
|
-
/**
|
|
16
|
+
/** Set this to true if discarded by an end-user, then filter out from the document generation request. */
|
|
17
17
|
isDiscarded?: boolean;
|
|
18
18
|
}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
export * as interactions from "./interactions/index.mjs";
|
|
2
2
|
export * from "./interactions/types/index.mjs";
|
|
3
|
-
export * as transcripts from "./transcripts/index.mjs";
|
|
4
|
-
export * from "./transcripts/types/index.mjs";
|
|
5
3
|
export * as auth from "./auth/index.mjs";
|
|
6
4
|
export * from "./auth/types/index.mjs";
|
|
7
5
|
export * as stream from "./stream/index.mjs";
|
|
8
6
|
export * as transcribe from "./transcribe/index.mjs";
|
|
9
7
|
export * as recordings from "./recordings/index.mjs";
|
|
8
|
+
export * as transcripts from "./transcripts/index.mjs";
|
|
10
9
|
export * as facts from "./facts/index.mjs";
|
|
11
10
|
export * as documents from "./documents/index.mjs";
|
|
12
11
|
export * as templates from "./templates/index.mjs";
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
export * as interactions from "./interactions/index.mjs";
|
|
2
2
|
export * from "./interactions/types/index.mjs";
|
|
3
|
-
export * as transcripts from "./transcripts/index.mjs";
|
|
4
|
-
export * from "./transcripts/types/index.mjs";
|
|
5
3
|
export * as auth from "./auth/index.mjs";
|
|
6
4
|
export * from "./auth/types/index.mjs";
|
|
7
5
|
export * as stream from "./stream/index.mjs";
|
|
8
6
|
export * as transcribe from "./transcribe/index.mjs";
|
|
9
7
|
export * as recordings from "./recordings/index.mjs";
|
|
8
|
+
export * as transcripts from "./transcripts/index.mjs";
|
|
10
9
|
export * as facts from "./facts/index.mjs";
|
|
11
10
|
export * as documents from "./documents/index.mjs";
|
|
12
11
|
export * as templates from "./templates/index.mjs";
|
|
@@ -32,7 +32,7 @@ export declare class Interactions {
|
|
|
32
32
|
protected readonly _options: Interactions.Options;
|
|
33
33
|
constructor(_options: Interactions.Options);
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* Lists all existing interactions. Results can be filtered by encounter status and patient identifier.
|
|
36
36
|
*
|
|
37
37
|
* @param {Corti.InteractionsListRequest} request
|
|
38
38
|
* @param {Interactions.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -45,7 +45,7 @@ export declare class Interactions {
|
|
|
45
45
|
*/
|
|
46
46
|
list(request?: Corti.InteractionsListRequest, requestOptions?: Interactions.RequestOptions): Promise<core.Page<Corti.InteractionsGetResponse>>;
|
|
47
47
|
/**
|
|
48
|
-
*
|
|
48
|
+
* Creates a new interaction.
|
|
49
49
|
*
|
|
50
50
|
* @param {Corti.InteractionsCreateRequest} request
|
|
51
51
|
* @param {Interactions.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -67,7 +67,7 @@ export declare class Interactions {
|
|
|
67
67
|
create(request: Corti.InteractionsCreateRequest, requestOptions?: Interactions.RequestOptions): core.HttpResponsePromise<Corti.InteractionsCreateResponse>;
|
|
68
68
|
private __create;
|
|
69
69
|
/**
|
|
70
|
-
*
|
|
70
|
+
* Retrieves a previously recorded interaction by its unique identifier (interaction ID).
|
|
71
71
|
*
|
|
72
72
|
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
|
|
73
73
|
* @param {Interactions.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -81,7 +81,7 @@ export declare class Interactions {
|
|
|
81
81
|
get(id: Corti.Uuid, requestOptions?: Interactions.RequestOptions): core.HttpResponsePromise<Corti.InteractionsGetResponse>;
|
|
82
82
|
private __get;
|
|
83
83
|
/**
|
|
84
|
-
*
|
|
84
|
+
* Deletes an existing interaction.
|
|
85
85
|
*
|
|
86
86
|
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
|
|
87
87
|
* @param {Interactions.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -95,7 +95,7 @@ export declare class Interactions {
|
|
|
95
95
|
delete(id: Corti.Uuid, requestOptions?: Interactions.RequestOptions): core.HttpResponsePromise<void>;
|
|
96
96
|
private __delete;
|
|
97
97
|
/**
|
|
98
|
-
*
|
|
98
|
+
* Modifies an existing interaction by updating specific fields without overwriting the entire record.
|
|
99
99
|
*
|
|
100
100
|
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
|
|
101
101
|
* @param {Corti.InteractionsUpdateRequest} request
|
|
@@ -20,7 +20,7 @@ export class Interactions {
|
|
|
20
20
|
this._options = _options;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Lists all existing interactions. Results can be filtered by encounter status and patient identifier.
|
|
24
24
|
*
|
|
25
25
|
* @param {Corti.InteractionsListRequest} request
|
|
26
26
|
* @param {Interactions.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -150,7 +150,7 @@ export class Interactions {
|
|
|
150
150
|
});
|
|
151
151
|
}
|
|
152
152
|
/**
|
|
153
|
-
*
|
|
153
|
+
* Creates a new interaction.
|
|
154
154
|
*
|
|
155
155
|
* @param {Corti.InteractionsCreateRequest} request
|
|
156
156
|
* @param {Interactions.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -252,7 +252,7 @@ export class Interactions {
|
|
|
252
252
|
});
|
|
253
253
|
}
|
|
254
254
|
/**
|
|
255
|
-
*
|
|
255
|
+
* Retrieves a previously recorded interaction by its unique identifier (interaction ID).
|
|
256
256
|
*
|
|
257
257
|
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
|
|
258
258
|
* @param {Interactions.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -336,7 +336,7 @@ export class Interactions {
|
|
|
336
336
|
});
|
|
337
337
|
}
|
|
338
338
|
/**
|
|
339
|
-
*
|
|
339
|
+
* Deletes an existing interaction.
|
|
340
340
|
*
|
|
341
341
|
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
|
|
342
342
|
* @param {Interactions.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -411,7 +411,7 @@ export class Interactions {
|
|
|
411
411
|
});
|
|
412
412
|
}
|
|
413
413
|
/**
|
|
414
|
-
*
|
|
414
|
+
* Modifies an existing interaction by updating specific fields without overwriting the entire record.
|
|
415
415
|
*
|
|
416
416
|
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
|
|
417
417
|
* @param {Corti.InteractionsUpdateRequest} request
|
|
@@ -32,7 +32,7 @@ export declare class Recordings {
|
|
|
32
32
|
protected readonly _options: Recordings.Options;
|
|
33
33
|
constructor(_options: Recordings.Options);
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* Retrieve a list of recordings for a given interaction.
|
|
36
36
|
*
|
|
37
37
|
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
|
|
38
38
|
* @param {Recordings.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -48,7 +48,7 @@ export declare class Recordings {
|
|
|
48
48
|
list(id: Corti.Uuid, requestOptions?: Recordings.RequestOptions): core.HttpResponsePromise<Corti.RecordingsListResponse>;
|
|
49
49
|
private __list;
|
|
50
50
|
/**
|
|
51
|
-
*
|
|
51
|
+
* Upload a recording for a given interaction. There is a maximum limit of 60 minutes in length and 150MB in size for recordings.
|
|
52
52
|
*
|
|
53
53
|
* @param {core.file.Uploadable} uploadable
|
|
54
54
|
* @param {Corti.Uuid} id
|
|
@@ -62,7 +62,7 @@ export declare class Recordings {
|
|
|
62
62
|
upload(uploadable: core.file.Uploadable, id: Corti.Uuid, requestOptions?: Recordings.RequestOptions): core.HttpResponsePromise<Corti.RecordingsCreateResponse>;
|
|
63
63
|
private __upload;
|
|
64
64
|
/**
|
|
65
|
-
*
|
|
65
|
+
* Retrieve a specific recording for a given interaction.
|
|
66
66
|
* @throws {@link Corti.BadRequestError}
|
|
67
67
|
* @throws {@link Corti.ForbiddenError}
|
|
68
68
|
* @throws {@link Corti.NotFoundError}
|
|
@@ -72,7 +72,7 @@ export declare class Recordings {
|
|
|
72
72
|
get(id: Corti.Uuid, recordingId: Corti.Uuid, requestOptions?: Recordings.RequestOptions): core.HttpResponsePromise<core.BinaryResponse>;
|
|
73
73
|
private __get;
|
|
74
74
|
/**
|
|
75
|
-
*
|
|
75
|
+
* Delete a specific recording for a given interaction.
|
|
76
76
|
*
|
|
77
77
|
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
|
|
78
78
|
* @param {Corti.Uuid} recordingId - The unique identifier of the recording. Must be a valid UUID.
|
|
@@ -20,7 +20,7 @@ export class Recordings {
|
|
|
20
20
|
this._options = _options;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Retrieve a list of recordings for a given interaction.
|
|
24
24
|
*
|
|
25
25
|
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
|
|
26
26
|
* @param {Recordings.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -110,7 +110,7 @@ export class Recordings {
|
|
|
110
110
|
});
|
|
111
111
|
}
|
|
112
112
|
/**
|
|
113
|
-
*
|
|
113
|
+
* Upload a recording for a given interaction. There is a maximum limit of 60 minutes in length and 150MB in size for recordings.
|
|
114
114
|
*
|
|
115
115
|
* @param {core.file.Uploadable} uploadable
|
|
116
116
|
* @param {Corti.Uuid} id
|
|
@@ -203,7 +203,7 @@ export class Recordings {
|
|
|
203
203
|
});
|
|
204
204
|
}
|
|
205
205
|
/**
|
|
206
|
-
*
|
|
206
|
+
* Retrieve a specific recording for a given interaction.
|
|
207
207
|
* @throws {@link Corti.BadRequestError}
|
|
208
208
|
* @throws {@link Corti.ForbiddenError}
|
|
209
209
|
* @throws {@link Corti.NotFoundError}
|
|
@@ -244,13 +244,7 @@ export class Recordings {
|
|
|
244
244
|
breadcrumbsPrefix: ["response"],
|
|
245
245
|
}), _response.rawResponse);
|
|
246
246
|
case 404:
|
|
247
|
-
throw new Corti.NotFoundError(
|
|
248
|
-
unrecognizedObjectKeys: "passthrough",
|
|
249
|
-
allowUnrecognizedUnionMembers: true,
|
|
250
|
-
allowUnrecognizedEnumValues: true,
|
|
251
|
-
skipValidation: true,
|
|
252
|
-
breadcrumbsPrefix: ["response"],
|
|
253
|
-
}), _response.rawResponse);
|
|
247
|
+
throw new Corti.NotFoundError(_response.error.body, _response.rawResponse);
|
|
254
248
|
case 500:
|
|
255
249
|
throw new Corti.InternalServerError(_response.error.body, _response.rawResponse);
|
|
256
250
|
case 504:
|
|
@@ -287,7 +281,7 @@ export class Recordings {
|
|
|
287
281
|
});
|
|
288
282
|
}
|
|
289
283
|
/**
|
|
290
|
-
*
|
|
284
|
+
* Delete a specific recording for a given interaction.
|
|
291
285
|
*
|
|
292
286
|
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
|
|
293
287
|
* @param {Corti.Uuid} recordingId - The unique identifier of the recording. Must be a valid UUID.
|
|
@@ -332,13 +326,7 @@ export class Recordings {
|
|
|
332
326
|
breadcrumbsPrefix: ["response"],
|
|
333
327
|
}), _response.rawResponse);
|
|
334
328
|
case 404:
|
|
335
|
-
throw new Corti.NotFoundError(
|
|
336
|
-
unrecognizedObjectKeys: "passthrough",
|
|
337
|
-
allowUnrecognizedUnionMembers: true,
|
|
338
|
-
allowUnrecognizedEnumValues: true,
|
|
339
|
-
skipValidation: true,
|
|
340
|
-
breadcrumbsPrefix: ["response"],
|
|
341
|
-
}), _response.rawResponse);
|
|
329
|
+
throw new Corti.NotFoundError(_response.error.body, _response.rawResponse);
|
|
342
330
|
case 500:
|
|
343
331
|
throw new Corti.InternalServerError(_response.error.body, _response.rawResponse);
|
|
344
332
|
case 504:
|
|
@@ -32,7 +32,7 @@ export declare class Templates {
|
|
|
32
32
|
protected readonly _options: Templates.Options;
|
|
33
33
|
constructor(_options: Templates.Options);
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* Retrieves a list of template sections with optional filters for organization and language.
|
|
36
36
|
*
|
|
37
37
|
* @param {Corti.TemplatesSectionListRequest} request
|
|
38
38
|
* @param {Templates.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -46,7 +46,7 @@ export declare class Templates {
|
|
|
46
46
|
sectionList(request?: Corti.TemplatesSectionListRequest, requestOptions?: Templates.RequestOptions): core.HttpResponsePromise<Corti.TemplatesSectionListResponse>;
|
|
47
47
|
private __sectionList;
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* Retrieves a list of templates with optional filters for organization, language, and status.
|
|
50
50
|
*
|
|
51
51
|
* @param {Corti.TemplatesListRequest} request
|
|
52
52
|
* @param {Templates.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -20,7 +20,7 @@ export class Templates {
|
|
|
20
20
|
this._options = _options;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Retrieves a list of template sections with optional filters for organization and language.
|
|
24
24
|
*
|
|
25
25
|
* @param {Corti.TemplatesSectionListRequest} request
|
|
26
26
|
* @param {Templates.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -111,7 +111,7 @@ export class Templates {
|
|
|
111
111
|
});
|
|
112
112
|
}
|
|
113
113
|
/**
|
|
114
|
-
*
|
|
114
|
+
* Retrieves a list of templates with optional filters for organization, language, and status.
|
|
115
115
|
*
|
|
116
116
|
* @param {Corti.TemplatesListRequest} request
|
|
117
117
|
* @param {Templates.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -32,7 +32,7 @@ export declare class Transcripts {
|
|
|
32
32
|
protected readonly _options: Transcripts.Options;
|
|
33
33
|
constructor(_options: Transcripts.Options);
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* Retrieves a list of transcripts for a given interaction.
|
|
36
36
|
*
|
|
37
37
|
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
|
|
38
38
|
* @param {Corti.TranscriptsListRequest} request
|
|
@@ -50,7 +50,7 @@ export declare class Transcripts {
|
|
|
50
50
|
list(id: Corti.Uuid, request?: Corti.TranscriptsListRequest, requestOptions?: Transcripts.RequestOptions): core.HttpResponsePromise<Corti.TranscriptsListResponse>;
|
|
51
51
|
private __list;
|
|
52
52
|
/**
|
|
53
|
-
*
|
|
53
|
+
* Creates a new transcript for an interaction.
|
|
54
54
|
*
|
|
55
55
|
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
|
|
56
56
|
* @param {Corti.TranscriptsCreateRequest} request
|
|
@@ -65,14 +65,13 @@ export declare class Transcripts {
|
|
|
65
65
|
* @example
|
|
66
66
|
* await client.transcripts.create("f47ac10b-58cc-4372-a567-0e02b2c3d479", {
|
|
67
67
|
* recordingId: "f47ac10b-58cc-4372-a567-0e02b2c3d479",
|
|
68
|
-
* primaryLanguage: "en"
|
|
69
|
-
* modelName: "base"
|
|
68
|
+
* primaryLanguage: "en"
|
|
70
69
|
* })
|
|
71
70
|
*/
|
|
72
71
|
create(id: Corti.Uuid, request: Corti.TranscriptsCreateRequest, requestOptions?: Transcripts.RequestOptions): core.HttpResponsePromise<Corti.TranscriptsResponse>;
|
|
73
72
|
private __create;
|
|
74
73
|
/**
|
|
75
|
-
*
|
|
74
|
+
* Retrieves the transcript for a specific interaction.
|
|
76
75
|
*
|
|
77
76
|
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
|
|
78
77
|
* @param {Corti.Uuid} transcriptId - The unique identifier of the transcript. Must be a valid UUID.
|
|
@@ -90,7 +89,7 @@ export declare class Transcripts {
|
|
|
90
89
|
get(id: Corti.Uuid, transcriptId: Corti.Uuid, requestOptions?: Transcripts.RequestOptions): core.HttpResponsePromise<Corti.TranscriptsResponse>;
|
|
91
90
|
private __get;
|
|
92
91
|
/**
|
|
93
|
-
*
|
|
92
|
+
* Deletes a specific transcript associated with an interaction.
|
|
94
93
|
*
|
|
95
94
|
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
|
|
96
95
|
* @param {Corti.Uuid} transcriptId - The unique identifier of the transcript. Must be a valid UUID.
|
|
@@ -20,7 +20,7 @@ export class Transcripts {
|
|
|
20
20
|
this._options = _options;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Retrieves a list of transcripts for a given interaction.
|
|
24
24
|
*
|
|
25
25
|
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
|
|
26
26
|
* @param {Corti.TranscriptsListRequest} request
|
|
@@ -120,7 +120,7 @@ export class Transcripts {
|
|
|
120
120
|
});
|
|
121
121
|
}
|
|
122
122
|
/**
|
|
123
|
-
*
|
|
123
|
+
* Creates a new transcript for an interaction.
|
|
124
124
|
*
|
|
125
125
|
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
|
|
126
126
|
* @param {Corti.TranscriptsCreateRequest} request
|
|
@@ -135,8 +135,7 @@ export class Transcripts {
|
|
|
135
135
|
* @example
|
|
136
136
|
* await client.transcripts.create("f47ac10b-58cc-4372-a567-0e02b2c3d479", {
|
|
137
137
|
* recordingId: "f47ac10b-58cc-4372-a567-0e02b2c3d479",
|
|
138
|
-
* primaryLanguage: "en"
|
|
139
|
-
* modelName: "base"
|
|
138
|
+
* primaryLanguage: "en"
|
|
140
139
|
* })
|
|
141
140
|
*/
|
|
142
141
|
create(id, request, requestOptions) {
|
|
@@ -224,7 +223,7 @@ export class Transcripts {
|
|
|
224
223
|
});
|
|
225
224
|
}
|
|
226
225
|
/**
|
|
227
|
-
*
|
|
226
|
+
* Retrieves the transcript for a specific interaction.
|
|
228
227
|
*
|
|
229
228
|
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
|
|
230
229
|
* @param {Corti.Uuid} transcriptId - The unique identifier of the transcript. Must be a valid UUID.
|
|
@@ -318,7 +317,7 @@ export class Transcripts {
|
|
|
318
317
|
});
|
|
319
318
|
}
|
|
320
319
|
/**
|
|
321
|
-
*
|
|
320
|
+
* Deletes a specific transcript associated with an interaction.
|
|
322
321
|
*
|
|
323
322
|
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
|
|
324
323
|
* @param {Corti.Uuid} transcriptId - The unique identifier of the transcript. Must be a valid UUID.
|
|
@@ -6,8 +6,7 @@ import * as Corti from "../../../../index.mjs";
|
|
|
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
|
}
|
|
@@ -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.mjs";
|
|
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.mjs";
|
|
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.mjs";
|
|
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.mjs";
|
|
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.mjs";
|
|
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.mjs";
|
|
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.mjs";
|
|
|
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;
|