@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,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.mjs";
|
|
2
|
-
export * from "./
|
|
2
|
+
export * from "./DocumentsContextWithFacts.mjs";
|
|
3
|
+
export * from "./DocumentsContextWithTranscript.mjs";
|
|
4
|
+
export * from "./DocumentsContextWithString.mjs";
|
|
3
5
|
export * from "./DocumentsSection.mjs";
|
|
4
6
|
export * from "./DocumentsTemplate.mjs";
|
|
7
|
+
export * from "./DocumentsTemplateWithSectionKeys.mjs";
|
|
5
8
|
export * from "./InteractionsEncounterCreateRequest.mjs";
|
|
6
9
|
export * from "./InteractionsEncounterUpdateRequest.mjs";
|
|
7
10
|
export * from "./InteractionsEncounterResponse.mjs";
|
|
@@ -12,7 +15,6 @@ export * from "./FactsFactGroupsItemTranslationsItem.mjs";
|
|
|
12
15
|
export * from "./FactsFactGroupsItem.mjs";
|
|
13
16
|
export * from "./InteractionsPatient.mjs";
|
|
14
17
|
export * from "./DocumentsCreateRequest.mjs";
|
|
15
|
-
export * from "./DocumentsCreateRequestWithTemplateId.mjs";
|
|
16
18
|
export * from "./DocumentsCreateRequestWithTemplateKey.mjs";
|
|
17
19
|
export * from "./DocumentsCreateRequestWithTemplate.mjs";
|
|
18
20
|
export * from "./DocumentsSectionInput.mjs";
|
|
@@ -46,10 +48,10 @@ export * from "./TemplatesSection.mjs";
|
|
|
46
48
|
export * from "./CommonSortingDirectionEnum.mjs";
|
|
47
49
|
export * from "./TemplatesItem.mjs";
|
|
48
50
|
export * from "./TemplatesSectionSorted.mjs";
|
|
49
|
-
export * from "./
|
|
51
|
+
export * from "./CommonTranscriptRequest.mjs";
|
|
52
|
+
export * from "./CommonTranscriptResponse.mjs";
|
|
50
53
|
export * from "./Uuid.mjs";
|
|
51
54
|
export * from "./CommonUsageInfo.mjs";
|
|
52
|
-
export * from "./DocumentsContextTypeEnum.mjs";
|
|
53
55
|
export * from "./InteractionsEncounterStatusEnum.mjs";
|
|
54
56
|
export * from "./InteractionsEncounterTypeEnum.mjs";
|
|
55
57
|
export * from "./InteractionsGenderEnum.mjs";
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
export * from "./DocumentsContext.mjs";
|
|
2
|
-
export * from "./
|
|
2
|
+
export * from "./DocumentsContextWithFacts.mjs";
|
|
3
|
+
export * from "./DocumentsContextWithTranscript.mjs";
|
|
4
|
+
export * from "./DocumentsContextWithString.mjs";
|
|
3
5
|
export * from "./DocumentsSection.mjs";
|
|
4
6
|
export * from "./DocumentsTemplate.mjs";
|
|
7
|
+
export * from "./DocumentsTemplateWithSectionKeys.mjs";
|
|
5
8
|
export * from "./InteractionsEncounterCreateRequest.mjs";
|
|
6
9
|
export * from "./InteractionsEncounterUpdateRequest.mjs";
|
|
7
10
|
export * from "./InteractionsEncounterResponse.mjs";
|
|
@@ -12,7 +15,6 @@ export * from "./FactsFactGroupsItemTranslationsItem.mjs";
|
|
|
12
15
|
export * from "./FactsFactGroupsItem.mjs";
|
|
13
16
|
export * from "./InteractionsPatient.mjs";
|
|
14
17
|
export * from "./DocumentsCreateRequest.mjs";
|
|
15
|
-
export * from "./DocumentsCreateRequestWithTemplateId.mjs";
|
|
16
18
|
export * from "./DocumentsCreateRequestWithTemplateKey.mjs";
|
|
17
19
|
export * from "./DocumentsCreateRequestWithTemplate.mjs";
|
|
18
20
|
export * from "./DocumentsSectionInput.mjs";
|
|
@@ -46,10 +48,10 @@ export * from "./TemplatesSection.mjs";
|
|
|
46
48
|
export * from "./CommonSortingDirectionEnum.mjs";
|
|
47
49
|
export * from "./TemplatesItem.mjs";
|
|
48
50
|
export * from "./TemplatesSectionSorted.mjs";
|
|
49
|
-
export * from "./
|
|
51
|
+
export * from "./CommonTranscriptRequest.mjs";
|
|
52
|
+
export * from "./CommonTranscriptResponse.mjs";
|
|
50
53
|
export * from "./Uuid.mjs";
|
|
51
54
|
export * from "./CommonUsageInfo.mjs";
|
|
52
|
-
export * from "./DocumentsContextTypeEnum.mjs";
|
|
53
55
|
export * from "./InteractionsEncounterStatusEnum.mjs";
|
|
54
56
|
export * from "./InteractionsEncounterTypeEnum.mjs";
|
|
55
57
|
export * from "./InteractionsGenderEnum.mjs";
|
|
@@ -64,10 +64,9 @@ export class CortiClient {
|
|
|
64
64
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
65
65
|
}, _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: getEnvironment(_options.environment) });
|
|
66
66
|
/**
|
|
67
|
-
* Patch: if `
|
|
67
|
+
* Patch: if `clientId` is provided, use OAuthTokenProvider, otherwise use BearerProvider
|
|
68
68
|
*/
|
|
69
|
-
this._oauthTokenProvider = "
|
|
70
|
-
new RefreshBearerProvider(_options.auth) :
|
|
69
|
+
this._oauthTokenProvider = "clientId" in _options.auth ?
|
|
71
70
|
new core.OAuthTokenProvider({
|
|
72
71
|
clientId: _options.auth.clientId,
|
|
73
72
|
clientSecret: _options.auth.clientSecret,
|
|
@@ -75,7 +74,8 @@ export class CortiClient {
|
|
|
75
74
|
* Patch: provide whole `options` object to the Auth client, since it depends on both tenantName and environment
|
|
76
75
|
*/
|
|
77
76
|
authClient: new Auth(this._options),
|
|
78
|
-
})
|
|
77
|
+
}) :
|
|
78
|
+
new RefreshBearerProvider(_options.auth);
|
|
79
79
|
}
|
|
80
80
|
get interactions() {
|
|
81
81
|
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.mjs";
|
|
5
4
|
import * as api from "../api/index.mjs";
|
|
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;
|
|
@@ -16,7 +16,7 @@ export class RefreshBearerProvider {
|
|
|
16
16
|
this.BUFFER_IN_MINUTES = 2;
|
|
17
17
|
this._expiresAt = this.getExpiresAt(expiresIn, this.BUFFER_IN_MINUTES);
|
|
18
18
|
this._refreshExpiresAt = this.getExpiresAt(refreshExpiresIn, 0);
|
|
19
|
-
this._accessToken = accessToken;
|
|
19
|
+
this._accessToken = accessToken || 'no_token';
|
|
20
20
|
this._refreshToken = refreshToken;
|
|
21
21
|
this._refreshAccessToken = refreshAccessToken;
|
|
22
22
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./RefreshBearerProvider.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./RefreshBearerProvider.mjs";
|
|
@@ -4,6 +4,7 @@ export function getEnvironment(environment) {
|
|
|
4
4
|
base: `https://api.${environment}.corti.app/v2`,
|
|
5
5
|
wss: `wss://api.${environment}.corti.app`,
|
|
6
6
|
login: `https://auth.${environment}.corti.app/realms`,
|
|
7
|
+
agents: `https://api.${environment}.corti.app/agents`,
|
|
7
8
|
}
|
|
8
9
|
: environment;
|
|
9
10
|
}
|
|
@@ -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;
|
|
@@ -6,10 +6,12 @@ export const CortiEnvironment = {
|
|
|
6
6
|
base: "https://api.eu.corti.app/v2",
|
|
7
7
|
wss: "wss://api.eu.corti.app",
|
|
8
8
|
login: "https://auth.eu.corti.app/realms",
|
|
9
|
+
agents: "https://api.eu.corti.app/agents",
|
|
9
10
|
},
|
|
10
11
|
Us: {
|
|
11
12
|
base: "https://api.us.corti.app/v2",
|
|
12
13
|
wss: "wss://api.us.corti.app",
|
|
13
14
|
login: "https://auth.us.corti.app/realms",
|
|
15
|
+
agents: "https://api.us.corti.app/agents",
|
|
14
16
|
},
|
|
15
17
|
};
|
|
@@ -4,11 +4,10 @@ export * as transcribe from "./transcribe/index.mjs";
|
|
|
4
4
|
export * from "./transcribe/client/socket/index.mjs";
|
|
5
5
|
export * as interactions from "./interactions/index.mjs";
|
|
6
6
|
export * from "./interactions/types/index.mjs";
|
|
7
|
-
export * as transcripts from "./transcripts/index.mjs";
|
|
8
|
-
export * from "./transcripts/types/index.mjs";
|
|
9
7
|
export * as auth from "./auth/index.mjs";
|
|
10
8
|
export * from "./auth/types/index.mjs";
|
|
11
9
|
export * from "./interactions/client/requests/index.mjs";
|
|
10
|
+
export * as transcripts from "./transcripts/index.mjs";
|
|
12
11
|
export * from "./transcripts/client/requests/index.mjs";
|
|
13
12
|
export * as facts from "./facts/index.mjs";
|
|
14
13
|
export * from "./facts/client/requests/index.mjs";
|
|
@@ -4,11 +4,10 @@ export * as transcribe from "./transcribe/index.mjs";
|
|
|
4
4
|
export * from "./transcribe/client/socket/index.mjs";
|
|
5
5
|
export * as interactions from "./interactions/index.mjs";
|
|
6
6
|
export * from "./interactions/types/index.mjs";
|
|
7
|
-
export * as transcripts from "./transcripts/index.mjs";
|
|
8
|
-
export * from "./transcripts/types/index.mjs";
|
|
9
7
|
export * as auth from "./auth/index.mjs";
|
|
10
8
|
export * from "./auth/types/index.mjs";
|
|
11
9
|
export * from "./interactions/client/requests/index.mjs";
|
|
10
|
+
export * as transcripts from "./transcripts/index.mjs";
|
|
12
11
|
export * from "./transcripts/client/requests/index.mjs";
|
|
13
12
|
export * as facts from "./facts/index.mjs";
|
|
14
13
|
export * from "./facts/client/requests/index.mjs";
|
package/dist/esm/serialization/resources/transcripts/client/requests/TranscriptsCreateRequest.d.mts
CHANGED
|
@@ -6,7 +6,6 @@ import * as Corti from "../../../../../api/index.mjs";
|
|
|
6
6
|
import * as core from "../../../../../core/index.mjs";
|
|
7
7
|
import { Uuid } from "../../../../types/Uuid.mjs";
|
|
8
8
|
import { TranscriptsParticipant } from "../../../../types/TranscriptsParticipant.mjs";
|
|
9
|
-
import { TranscriptsCreateRequestModelName } from "../../types/TranscriptsCreateRequestModelName.mjs";
|
|
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/esm/serialization/resources/transcripts/client/requests/TranscriptsCreateRequest.mjs
CHANGED
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
import * as core from "../../../../../core/index.mjs";
|
|
5
5
|
import { Uuid } from "../../../../types/Uuid.mjs";
|
|
6
6
|
import { TranscriptsParticipant } from "../../../../types/TranscriptsParticipant.mjs";
|
|
7
|
-
import { TranscriptsCreateRequestModelName } from "../../types/TranscriptsCreateRequestModelName.mjs";
|
|
8
7
|
export const TranscriptsCreateRequest = core.serialization.object({
|
|
9
8
|
recordingId: Uuid,
|
|
10
9
|
primaryLanguage: core.serialization.string(),
|
|
@@ -12,5 +11,4 @@ export const TranscriptsCreateRequest = core.serialization.object({
|
|
|
12
11
|
isMultichannel: core.serialization.boolean().optional(),
|
|
13
12
|
diarize: core.serialization.boolean().optional(),
|
|
14
13
|
participants: core.serialization.list(TranscriptsParticipant).optional(),
|
|
15
|
-
modelName: TranscriptsCreateRequestModelName,
|
|
16
14
|
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index.mjs";
|
|
5
|
+
import * as Corti from "../../api/index.mjs";
|
|
6
|
+
import * as core from "../../core/index.mjs";
|
|
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,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as core from "../../core/index.mjs";
|
|
5
|
+
export const CommonTranscriptRequest = core.serialization.object({
|
|
6
|
+
channel: core.serialization.number().optional(),
|
|
7
|
+
participant: core.serialization.number().optional(),
|
|
8
|
+
speakerId: core.serialization.number().optional(),
|
|
9
|
+
text: core.serialization.string(),
|
|
10
|
+
start: core.serialization.number().optional(),
|
|
11
|
+
end: core.serialization.number().optional(),
|
|
12
|
+
});
|
package/dist/esm/serialization/types/{CommonTranscript.d.mts → CommonTranscriptResponse.d.mts}
RENAMED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
import * as serializers from "../index.mjs";
|
|
5
5
|
import * as Corti from "../../api/index.mjs";
|
|
6
6
|
import * as core from "../../core/index.mjs";
|
|
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;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as core from "../../core/index.mjs";
|
|
5
|
-
export const
|
|
5
|
+
export const CommonTranscriptResponse = core.serialization.object({
|
|
6
6
|
channel: core.serialization.number(),
|
|
7
7
|
participant: core.serialization.number(),
|
|
8
8
|
speakerId: core.serialization.number(),
|
|
@@ -4,12 +4,19 @@
|
|
|
4
4
|
import * as serializers from "../index.mjs";
|
|
5
5
|
import * as Corti from "../../api/index.mjs";
|
|
6
6
|
import * as core from "../../core/index.mjs";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
7
|
+
import { DocumentsContextWithFacts } from "./DocumentsContextWithFacts.mjs";
|
|
8
|
+
import { DocumentsContextWithTranscript } from "./DocumentsContextWithTranscript.mjs";
|
|
9
|
+
import { DocumentsContextWithString } from "./DocumentsContextWithString.mjs";
|
|
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
|
}
|
|
@@ -2,9 +2,16 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as core from "../../core/index.mjs";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
import { DocumentsContextWithFacts } from "./DocumentsContextWithFacts.mjs";
|
|
6
|
+
import { DocumentsContextWithTranscript } from "./DocumentsContextWithTranscript.mjs";
|
|
7
|
+
import { DocumentsContextWithString } from "./DocumentsContextWithString.mjs";
|
|
8
|
+
export const DocumentsContext = core.serialization
|
|
9
|
+
.union("type", {
|
|
10
|
+
facts: DocumentsContextWithFacts,
|
|
11
|
+
transcript: DocumentsContextWithTranscript,
|
|
12
|
+
string: DocumentsContextWithString,
|
|
13
|
+
})
|
|
14
|
+
.transform({
|
|
15
|
+
transform: (value) => value,
|
|
16
|
+
untransform: (value) => value,
|
|
10
17
|
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index.mjs";
|
|
5
|
+
import * as Corti from "../../api/index.mjs";
|
|
6
|
+
import * as core from "../../core/index.mjs";
|
|
7
|
+
import { FactsContext } from "./FactsContext.mjs";
|
|
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
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as core from "../../core/index.mjs";
|
|
5
|
+
import { FactsContext } from "./FactsContext.mjs";
|
|
6
|
+
export const DocumentsContextWithFacts = core.serialization.object({
|
|
7
|
+
data: core.serialization.list(FactsContext),
|
|
8
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index.mjs";
|
|
5
|
+
import * as Corti from "../../api/index.mjs";
|
|
6
|
+
import * as core from "../../core/index.mjs";
|
|
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/esm/serialization/types/{DocumentsContextTypeEnum.mjs → DocumentsContextWithString.mjs}
RENAMED
|
@@ -2,4 +2,6 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as core from "../../core/index.mjs";
|
|
5
|
-
export const
|
|
5
|
+
export const DocumentsContextWithString = core.serialization.object({
|
|
6
|
+
data: core.serialization.string(),
|
|
7
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index.mjs";
|
|
5
|
+
import * as Corti from "../../api/index.mjs";
|
|
6
|
+
import * as core from "../../core/index.mjs";
|
|
7
|
+
import { CommonTranscriptRequest } from "./CommonTranscriptRequest.mjs";
|
|
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
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as core from "../../core/index.mjs";
|
|
5
|
+
import { CommonTranscriptRequest } from "./CommonTranscriptRequest.mjs";
|
|
6
|
+
export const DocumentsContextWithTranscript = core.serialization.object({
|
|
7
|
+
data: CommonTranscriptRequest,
|
|
8
|
+
});
|
|
@@ -5,9 +5,8 @@ import * as serializers from "../index.mjs";
|
|
|
5
5
|
import * as Corti from "../../api/index.mjs";
|
|
6
6
|
import * as core from "../../core/index.mjs";
|
|
7
7
|
import { DocumentsCreateRequestWithTemplateKey } from "./DocumentsCreateRequestWithTemplateKey.mjs";
|
|
8
|
-
import { DocumentsCreateRequestWithTemplateId } from "./DocumentsCreateRequestWithTemplateId.mjs";
|
|
9
8
|
import { DocumentsCreateRequestWithTemplate } from "./DocumentsCreateRequestWithTemplate.mjs";
|
|
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
|
}
|
|
@@ -3,10 +3,8 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as core from "../../core/index.mjs";
|
|
5
5
|
import { DocumentsCreateRequestWithTemplateKey } from "./DocumentsCreateRequestWithTemplateKey.mjs";
|
|
6
|
-
import { DocumentsCreateRequestWithTemplateId } from "./DocumentsCreateRequestWithTemplateId.mjs";
|
|
7
6
|
import { DocumentsCreateRequestWithTemplate } from "./DocumentsCreateRequestWithTemplate.mjs";
|
|
8
7
|
export const DocumentsCreateRequest = core.serialization.undiscriminatedUnion([
|
|
9
8
|
DocumentsCreateRequestWithTemplateKey,
|
|
10
|
-
DocumentsCreateRequestWithTemplateId,
|
|
11
9
|
DocumentsCreateRequestWithTemplate,
|
|
12
10
|
]);
|
|
@@ -8,6 +8,5 @@ export const DocumentsCreateRequestWithTemplate = core.serialization.object({
|
|
|
8
8
|
context: core.serialization.list(DocumentsContext),
|
|
9
9
|
template: DocumentsTemplate,
|
|
10
10
|
name: core.serialization.string().optional(),
|
|
11
|
-
modelName: core.serialization.string().optional(),
|
|
12
11
|
outputLanguage: core.serialization.string(),
|
|
13
12
|
});
|
|
@@ -7,6 +7,5 @@ export const DocumentsCreateRequestWithTemplateKey = core.serialization.object({
|
|
|
7
7
|
context: core.serialization.list(DocumentsContext),
|
|
8
8
|
templateKey: core.serialization.string(),
|
|
9
9
|
name: core.serialization.string().optional(),
|
|
10
|
-
modelName: core.serialization.string().optional(),
|
|
11
10
|
outputLanguage: core.serialization.string(),
|
|
12
11
|
});
|
|
@@ -4,13 +4,8 @@
|
|
|
4
4
|
import * as serializers from "../index.mjs";
|
|
5
5
|
import * as Corti from "../../api/index.mjs";
|
|
6
6
|
import * as core from "../../core/index.mjs";
|
|
7
|
-
import {
|
|
7
|
+
import { DocumentsTemplateWithSectionKeys } from "./DocumentsTemplateWithSectionKeys.mjs";
|
|
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
|
}
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
export const DocumentsTemplate = core.serialization.object({
|
|
7
|
-
sectionIds: core.serialization.list(Uuid).optional(),
|
|
8
|
-
sectionKeys: core.serialization.list(core.serialization.string()).optional(),
|
|
9
|
-
documentName: core.serialization.string().optional(),
|
|
10
|
-
additionalInstructions: core.serialization.string().optional(),
|
|
11
|
-
});
|
|
4
|
+
import { DocumentsTemplateWithSectionKeys } from "./DocumentsTemplateWithSectionKeys.mjs";
|
|
5
|
+
export const DocumentsTemplate = 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.mjs";
|
|
5
|
+
import * as Corti from "../../api/index.mjs";
|
|
6
|
+
import * as core from "../../core/index.mjs";
|
|
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,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as core from "../../core/index.mjs";
|
|
5
|
+
export const DocumentsTemplateWithSectionKeys = core.serialization.object({
|
|
6
|
+
sectionKeys: core.serialization.list(core.serialization.string()),
|
|
7
|
+
documentName: core.serialization.string().optional(),
|
|
8
|
+
additionalInstructions: core.serialization.string().optional(),
|
|
9
|
+
});
|
|
@@ -5,11 +5,11 @@ import * as serializers from "../index.mjs";
|
|
|
5
5
|
import * as Corti from "../../api/index.mjs";
|
|
6
6
|
import * as core from "../../core/index.mjs";
|
|
7
7
|
import { TranscriptsMetadata } from "./TranscriptsMetadata.mjs";
|
|
8
|
-
import {
|
|
8
|
+
import { CommonTranscriptResponse } from "./CommonTranscriptResponse.mjs";
|
|
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
|
}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as core from "../../core/index.mjs";
|
|
5
5
|
import { TranscriptsMetadata } from "./TranscriptsMetadata.mjs";
|
|
6
|
-
import {
|
|
6
|
+
import { CommonTranscriptResponse } from "./CommonTranscriptResponse.mjs";
|
|
7
7
|
export const TranscriptsData = core.serialization.object({
|
|
8
8
|
metadata: TranscriptsMetadata,
|
|
9
|
-
transcripts: core.serialization.list(
|
|
9
|
+
transcripts: core.serialization.list(CommonTranscriptResponse),
|
|
10
10
|
});
|
|
@@ -6,14 +6,14 @@ import * as Corti from "../../api/index.mjs";
|
|
|
6
6
|
import * as core from "../../core/index.mjs";
|
|
7
7
|
import { Uuid } from "./Uuid.mjs";
|
|
8
8
|
import { TranscriptsMetadata } from "./TranscriptsMetadata.mjs";
|
|
9
|
-
import {
|
|
9
|
+
import { CommonTranscriptResponse } from "./CommonTranscriptResponse.mjs";
|
|
10
10
|
import { CommonUsageInfo } from "./CommonUsageInfo.mjs";
|
|
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
|
}
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
import * as core from "../../core/index.mjs";
|
|
5
5
|
import { Uuid } from "./Uuid.mjs";
|
|
6
6
|
import { TranscriptsMetadata } from "./TranscriptsMetadata.mjs";
|
|
7
|
-
import {
|
|
7
|
+
import { CommonTranscriptResponse } from "./CommonTranscriptResponse.mjs";
|
|
8
8
|
import { CommonUsageInfo } from "./CommonUsageInfo.mjs";
|
|
9
9
|
export const TranscriptsResponse = core.serialization.object({
|
|
10
10
|
id: Uuid,
|
|
11
11
|
metadata: TranscriptsMetadata,
|
|
12
|
-
transcripts: core.serialization.list(
|
|
12
|
+
transcripts: core.serialization.list(CommonTranscriptResponse).optionalNullable(),
|
|
13
13
|
usageInfo: CommonUsageInfo,
|
|
14
14
|
});
|