@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
package/README.md
CHANGED
|
@@ -1,26 +1,22 @@
|
|
|
1
|
-
# Corti
|
|
1
|
+
# Corti JavaScript SDK
|
|
2
2
|
|
|
3
|
-
[](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2Fcorticph%2Fcorti-sdk-
|
|
3
|
+
[](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2Fcorticph%2Fcorti-sdk-javascript)
|
|
4
4
|
[](https://www.npmjs.com/package/@corti/sdk)
|
|
5
5
|
|
|
6
|
-
>
|
|
7
|
-
>
|
|
6
|
+
> This is a **Beta version** of the Corti JavaScript SDK. We are treating it as stable for production use, but
|
|
7
|
+
> there may still be breaking changes before we reach version 1.0. We're actively working to improve the SDK and would greatly
|
|
8
|
+
> appreciate any feedback if you encounter any inconsistencies or issues 💚
|
|
8
9
|
|
|
9
|
-
The Corti
|
|
10
|
+
The Corti JavaScript SDK provides convenient access to the Corti API from JavaScript.
|
|
10
11
|
|
|
11
12
|
## Installation
|
|
12
13
|
|
|
13
|
-
> [!NOTE]
|
|
14
|
-
> You must install the alpha version as the latest version is essentially empty. Use the command below to get the functional SDK.
|
|
15
|
-
|
|
16
14
|
```sh
|
|
17
|
-
npm i -s @corti/sdk
|
|
15
|
+
npm i -s @corti/sdk
|
|
18
16
|
```
|
|
19
17
|
|
|
20
18
|
## Reference
|
|
21
19
|
|
|
22
|
-
A full reference for this library is available [here](REFERENCE-latest.md).
|
|
23
|
-
|
|
24
20
|
For detailed authentication instructions, see the [Authentication Guide](./AUTHENTICATION.md).
|
|
25
21
|
|
|
26
22
|
## Usage
|
|
@@ -53,6 +49,23 @@ const client = new CortiClient({
|
|
|
53
49
|
},
|
|
54
50
|
});
|
|
55
51
|
|
|
52
|
+
// Or using just a refresh function (no initial access token needed)
|
|
53
|
+
const client = new CortiClient({
|
|
54
|
+
environment: CortiEnvironment.Eu,
|
|
55
|
+
tenantName: "YOUR_TENANT_NAME",
|
|
56
|
+
auth: {
|
|
57
|
+
refreshAccessToken: async (refreshToken?: string) => {
|
|
58
|
+
// Your custom logic to get a new access token
|
|
59
|
+
const response = await fetch("https://your-auth-server/refresh", {
|
|
60
|
+
method: "POST",
|
|
61
|
+
headers: { "Content-Type": "application/json" },
|
|
62
|
+
body: JSON.stringify({ refreshToken: refreshToken }),
|
|
63
|
+
});
|
|
64
|
+
return response.json();
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
});
|
|
68
|
+
|
|
56
69
|
// For user authentication, you can also use Authorization Code Flow
|
|
57
70
|
// See the Authentication Guide for detailed instructions
|
|
58
71
|
|
|
@@ -236,8 +249,8 @@ const client = new CortiClient({
|
|
|
236
249
|
|
|
237
250
|
## Contributing
|
|
238
251
|
|
|
239
|
-
While we value open-source contributions to this SDK, this
|
|
240
|
-
Additions made directly to this
|
|
252
|
+
While we value open-source contributions to this SDK, this repo is (mostly) generated programmatically.
|
|
253
|
+
Additions made directly to this code would have to be moved over to our generation code,
|
|
241
254
|
otherwise they would be overwritten upon the next generated release. Feel free to open a PR as
|
|
242
255
|
a proof of concept, but know that we will not be able to merge it as-is. We suggest opening
|
|
243
256
|
an issue first to discuss with us!
|
package/dist/cjs/Client.js
CHANGED
|
@@ -63,8 +63,8 @@ class CortiClient {
|
|
|
63
63
|
"Tenant-Name": _options === null || _options === void 0 ? void 0 : _options.tenantName,
|
|
64
64
|
"X-Fern-Language": "JavaScript",
|
|
65
65
|
"X-Fern-SDK-Name": "@corti/sdk",
|
|
66
|
-
"X-Fern-SDK-Version": "0.
|
|
67
|
-
"User-Agent": "@corti/sdk/0.
|
|
66
|
+
"X-Fern-SDK-Version": "0.2.0",
|
|
67
|
+
"User-Agent": "@corti/sdk/0.2.0",
|
|
68
68
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
69
69
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
70
70
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as errors from "../../errors/index.js";
|
|
5
|
-
import * as Corti from "../index.js";
|
|
6
5
|
import * as core from "../../core/index.js";
|
|
7
6
|
export declare class NotFoundError extends errors.CortiError {
|
|
8
|
-
constructor(body
|
|
7
|
+
constructor(body?: unknown, rawResponse?: core.RawResponse);
|
|
9
8
|
}
|
package/dist/cjs/api/index.d.ts
CHANGED
package/dist/cjs/api/index.js
CHANGED
|
@@ -17,3 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./resources/index.js"), exports);
|
|
18
18
|
__exportStar(require("./types/index.js"), exports);
|
|
19
19
|
__exportStar(require("./errors/index.js"), exports);
|
|
20
|
+
/**
|
|
21
|
+
* Patch: including custom types to main export of types
|
|
22
|
+
*/
|
|
23
|
+
__exportStar(require("../custom/index.js"), exports);
|
|
@@ -32,7 +32,7 @@ export declare class Documents {
|
|
|
32
32
|
protected readonly _options: Documents.Options;
|
|
33
33
|
constructor(_options: Documents.Options);
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* List Documents
|
|
36
36
|
*
|
|
37
37
|
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
|
|
38
38
|
* @param {Documents.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -48,7 +48,7 @@ export declare class Documents {
|
|
|
48
48
|
list(id: Corti.Uuid, requestOptions?: Documents.RequestOptions): core.HttpResponsePromise<Corti.DocumentsListResponse>;
|
|
49
49
|
private __list;
|
|
50
50
|
/**
|
|
51
|
-
*
|
|
51
|
+
* Generate Document.
|
|
52
52
|
*
|
|
53
53
|
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
|
|
54
54
|
* @param {Corti.DocumentsCreateRequest} request
|
|
@@ -75,7 +75,7 @@ export declare class Documents {
|
|
|
75
75
|
create(id: Corti.Uuid, request: Corti.DocumentsCreateRequest, requestOptions?: Documents.RequestOptions): core.HttpResponsePromise<Corti.DocumentsGetResponse>;
|
|
76
76
|
private __create;
|
|
77
77
|
/**
|
|
78
|
-
*
|
|
78
|
+
* Get Document.
|
|
79
79
|
*
|
|
80
80
|
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
|
|
81
81
|
* @param {Corti.Uuid} documentId - The document ID representing the context for the request. Must be a valid UUID.
|
|
@@ -56,7 +56,7 @@ class Documents {
|
|
|
56
56
|
this._options = _options;
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
|
-
*
|
|
59
|
+
* List Documents
|
|
60
60
|
*
|
|
61
61
|
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
|
|
62
62
|
* @param {Documents.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -146,7 +146,7 @@ class Documents {
|
|
|
146
146
|
});
|
|
147
147
|
}
|
|
148
148
|
/**
|
|
149
|
-
*
|
|
149
|
+
* Generate Document.
|
|
150
150
|
*
|
|
151
151
|
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
|
|
152
152
|
* @param {Corti.DocumentsCreateRequest} request
|
|
@@ -253,7 +253,7 @@ class Documents {
|
|
|
253
253
|
});
|
|
254
254
|
}
|
|
255
255
|
/**
|
|
256
|
-
*
|
|
256
|
+
* Get Document.
|
|
257
257
|
*
|
|
258
258
|
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
|
|
259
259
|
* @param {Corti.Uuid} documentId - The document ID representing the context for the request. Must be a valid UUID.
|
|
@@ -387,13 +387,7 @@ class Documents {
|
|
|
387
387
|
breadcrumbsPrefix: ["response"],
|
|
388
388
|
}), _response.rawResponse);
|
|
389
389
|
case 404:
|
|
390
|
-
throw new Corti.NotFoundError(
|
|
391
|
-
unrecognizedObjectKeys: "passthrough",
|
|
392
|
-
allowUnrecognizedUnionMembers: true,
|
|
393
|
-
allowUnrecognizedEnumValues: true,
|
|
394
|
-
skipValidation: true,
|
|
395
|
-
breadcrumbsPrefix: ["response"],
|
|
396
|
-
}), _response.rawResponse);
|
|
390
|
+
throw new Corti.NotFoundError(_response.error.body, _response.rawResponse);
|
|
397
391
|
case 500:
|
|
398
392
|
throw new Corti.InternalServerError(_response.error.body, _response.rawResponse);
|
|
399
393
|
case 504:
|
|
@@ -32,6 +32,8 @@ export declare class Facts {
|
|
|
32
32
|
protected readonly _options: Facts.Options;
|
|
33
33
|
constructor(_options: Facts.Options);
|
|
34
34
|
/**
|
|
35
|
+
* Returns a list of available fact groups, used to categorize facts associated with an interaction.
|
|
36
|
+
*
|
|
35
37
|
* @param {Facts.RequestOptions} requestOptions - Request-specific configuration.
|
|
36
38
|
*
|
|
37
39
|
* @throws {@link Corti.InternalServerError}
|
|
@@ -42,7 +44,7 @@ export declare class Facts {
|
|
|
42
44
|
factGroupsList(requestOptions?: Facts.RequestOptions): core.HttpResponsePromise<Corti.FactsFactGroupsListResponse>;
|
|
43
45
|
private __factGroupsList;
|
|
44
46
|
/**
|
|
45
|
-
*
|
|
47
|
+
* Retrieves a list of facts for a given interaction.
|
|
46
48
|
*
|
|
47
49
|
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
|
|
48
50
|
* @param {Facts.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -55,7 +57,7 @@ export declare class Facts {
|
|
|
55
57
|
list(id: Corti.Uuid, requestOptions?: Facts.RequestOptions): core.HttpResponsePromise<Corti.FactsListResponse>;
|
|
56
58
|
private __list;
|
|
57
59
|
/**
|
|
58
|
-
*
|
|
60
|
+
* Adds new facts to an interaction.
|
|
59
61
|
*
|
|
60
62
|
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
|
|
61
63
|
* @param {Corti.FactsCreateRequest} request
|
|
@@ -74,7 +76,7 @@ export declare class Facts {
|
|
|
74
76
|
create(id: Corti.Uuid, request: Corti.FactsCreateRequest, requestOptions?: Facts.RequestOptions): core.HttpResponsePromise<Corti.FactsCreateResponse>;
|
|
75
77
|
private __create;
|
|
76
78
|
/**
|
|
77
|
-
*
|
|
79
|
+
* Updates multiple facts associated with an interaction.
|
|
78
80
|
*
|
|
79
81
|
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
|
|
80
82
|
* @param {Corti.FactsBatchUpdateRequest} request
|
|
@@ -92,7 +94,7 @@ export declare class Facts {
|
|
|
92
94
|
batchUpdate(id: Corti.Uuid, request: Corti.FactsBatchUpdateRequest, requestOptions?: Facts.RequestOptions): core.HttpResponsePromise<Corti.FactsBatchUpdateResponse>;
|
|
93
95
|
private __batchUpdate;
|
|
94
96
|
/**
|
|
95
|
-
*
|
|
97
|
+
* Updates an existing fact associated with a specific interaction.
|
|
96
98
|
*
|
|
97
99
|
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
|
|
98
100
|
* @param {Corti.Uuid} factId - The unique identifier of the fact to update. Must be a valid UUID.
|
|
@@ -56,6 +56,8 @@ class Facts {
|
|
|
56
56
|
this._options = _options;
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
|
+
* Returns a list of available fact groups, used to categorize facts associated with an interaction.
|
|
60
|
+
*
|
|
59
61
|
* @param {Facts.RequestOptions} requestOptions - Request-specific configuration.
|
|
60
62
|
*
|
|
61
63
|
* @throws {@link Corti.InternalServerError}
|
|
@@ -122,7 +124,7 @@ class Facts {
|
|
|
122
124
|
});
|
|
123
125
|
}
|
|
124
126
|
/**
|
|
125
|
-
*
|
|
127
|
+
* Retrieves a list of facts for a given interaction.
|
|
126
128
|
*
|
|
127
129
|
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
|
|
128
130
|
* @param {Facts.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -197,7 +199,7 @@ class Facts {
|
|
|
197
199
|
});
|
|
198
200
|
}
|
|
199
201
|
/**
|
|
200
|
-
*
|
|
202
|
+
* Adds new facts to an interaction.
|
|
201
203
|
*
|
|
202
204
|
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
|
|
203
205
|
* @param {Corti.FactsCreateRequest} request
|
|
@@ -284,7 +286,7 @@ class Facts {
|
|
|
284
286
|
});
|
|
285
287
|
}
|
|
286
288
|
/**
|
|
287
|
-
*
|
|
289
|
+
* Updates multiple facts associated with an interaction.
|
|
288
290
|
*
|
|
289
291
|
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
|
|
290
292
|
* @param {Corti.FactsBatchUpdateRequest} request
|
|
@@ -370,7 +372,7 @@ class Facts {
|
|
|
370
372
|
});
|
|
371
373
|
}
|
|
372
374
|
/**
|
|
373
|
-
*
|
|
375
|
+
* Updates an existing fact associated with a specific interaction.
|
|
374
376
|
*
|
|
375
377
|
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
|
|
376
378
|
* @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.js";
|
|
2
2
|
export * from "./interactions/types/index.js";
|
|
3
|
-
export * as transcripts from "./transcripts/index.js";
|
|
4
|
-
export * from "./transcripts/types/index.js";
|
|
5
3
|
export * as auth from "./auth/index.js";
|
|
6
4
|
export * from "./auth/types/index.js";
|
|
7
5
|
export * as stream from "./stream/index.js";
|
|
8
6
|
export * as transcribe from "./transcribe/index.js";
|
|
9
7
|
export * as recordings from "./recordings/index.js";
|
|
8
|
+
export * as transcripts from "./transcripts/index.js";
|
|
10
9
|
export * as facts from "./facts/index.js";
|
|
11
10
|
export * as documents from "./documents/index.js";
|
|
12
11
|
export * as templates from "./templates/index.js";
|
|
@@ -36,16 +36,15 @@ 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.templates = exports.documents = exports.facts = exports.
|
|
39
|
+
exports.templates = exports.documents = exports.facts = exports.transcripts = exports.recordings = exports.transcribe = exports.stream = exports.auth = exports.interactions = void 0;
|
|
40
40
|
exports.interactions = __importStar(require("./interactions/index.js"));
|
|
41
41
|
__exportStar(require("./interactions/types/index.js"), exports);
|
|
42
|
-
exports.transcripts = __importStar(require("./transcripts/index.js"));
|
|
43
|
-
__exportStar(require("./transcripts/types/index.js"), exports);
|
|
44
42
|
exports.auth = __importStar(require("./auth/index.js"));
|
|
45
43
|
__exportStar(require("./auth/types/index.js"), exports);
|
|
46
44
|
exports.stream = __importStar(require("./stream/index.js"));
|
|
47
45
|
exports.transcribe = __importStar(require("./transcribe/index.js"));
|
|
48
46
|
exports.recordings = __importStar(require("./recordings/index.js"));
|
|
47
|
+
exports.transcripts = __importStar(require("./transcripts/index.js"));
|
|
49
48
|
exports.facts = __importStar(require("./facts/index.js"));
|
|
50
49
|
exports.documents = __importStar(require("./documents/index.js"));
|
|
51
50
|
exports.templates = __importStar(require("./templates/index.js"));
|
|
@@ -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
|
|
@@ -56,7 +56,7 @@ class Interactions {
|
|
|
56
56
|
this._options = _options;
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
|
-
*
|
|
59
|
+
* Lists all existing interactions. Results can be filtered by encounter status and patient identifier.
|
|
60
60
|
*
|
|
61
61
|
* @param {Corti.InteractionsListRequest} request
|
|
62
62
|
* @param {Interactions.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -186,7 +186,7 @@ class Interactions {
|
|
|
186
186
|
});
|
|
187
187
|
}
|
|
188
188
|
/**
|
|
189
|
-
*
|
|
189
|
+
* Creates a new interaction.
|
|
190
190
|
*
|
|
191
191
|
* @param {Corti.InteractionsCreateRequest} request
|
|
192
192
|
* @param {Interactions.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -288,7 +288,7 @@ class Interactions {
|
|
|
288
288
|
});
|
|
289
289
|
}
|
|
290
290
|
/**
|
|
291
|
-
*
|
|
291
|
+
* Retrieves a previously recorded interaction by its unique identifier (interaction ID).
|
|
292
292
|
*
|
|
293
293
|
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
|
|
294
294
|
* @param {Interactions.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -372,7 +372,7 @@ class Interactions {
|
|
|
372
372
|
});
|
|
373
373
|
}
|
|
374
374
|
/**
|
|
375
|
-
*
|
|
375
|
+
* Deletes an existing interaction.
|
|
376
376
|
*
|
|
377
377
|
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
|
|
378
378
|
* @param {Interactions.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -447,7 +447,7 @@ class Interactions {
|
|
|
447
447
|
});
|
|
448
448
|
}
|
|
449
449
|
/**
|
|
450
|
-
*
|
|
450
|
+
* Modifies an existing interaction by updating specific fields without overwriting the entire record.
|
|
451
451
|
*
|
|
452
452
|
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
|
|
453
453
|
* @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.
|
|
@@ -56,7 +56,7 @@ class Recordings {
|
|
|
56
56
|
this._options = _options;
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
|
-
*
|
|
59
|
+
* Retrieve a list of recordings for a given interaction.
|
|
60
60
|
*
|
|
61
61
|
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
|
|
62
62
|
* @param {Recordings.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -146,7 +146,7 @@ class Recordings {
|
|
|
146
146
|
});
|
|
147
147
|
}
|
|
148
148
|
/**
|
|
149
|
-
*
|
|
149
|
+
* Upload a recording for a given interaction. There is a maximum limit of 60 minutes in length and 150MB in size for recordings.
|
|
150
150
|
*
|
|
151
151
|
* @param {core.file.Uploadable} uploadable
|
|
152
152
|
* @param {Corti.Uuid} id
|
|
@@ -239,7 +239,7 @@ class Recordings {
|
|
|
239
239
|
});
|
|
240
240
|
}
|
|
241
241
|
/**
|
|
242
|
-
*
|
|
242
|
+
* Retrieve a specific recording for a given interaction.
|
|
243
243
|
* @throws {@link Corti.BadRequestError}
|
|
244
244
|
* @throws {@link Corti.ForbiddenError}
|
|
245
245
|
* @throws {@link Corti.NotFoundError}
|
|
@@ -280,13 +280,7 @@ class Recordings {
|
|
|
280
280
|
breadcrumbsPrefix: ["response"],
|
|
281
281
|
}), _response.rawResponse);
|
|
282
282
|
case 404:
|
|
283
|
-
throw new Corti.NotFoundError(
|
|
284
|
-
unrecognizedObjectKeys: "passthrough",
|
|
285
|
-
allowUnrecognizedUnionMembers: true,
|
|
286
|
-
allowUnrecognizedEnumValues: true,
|
|
287
|
-
skipValidation: true,
|
|
288
|
-
breadcrumbsPrefix: ["response"],
|
|
289
|
-
}), _response.rawResponse);
|
|
283
|
+
throw new Corti.NotFoundError(_response.error.body, _response.rawResponse);
|
|
290
284
|
case 500:
|
|
291
285
|
throw new Corti.InternalServerError(_response.error.body, _response.rawResponse);
|
|
292
286
|
case 504:
|
|
@@ -323,7 +317,7 @@ class Recordings {
|
|
|
323
317
|
});
|
|
324
318
|
}
|
|
325
319
|
/**
|
|
326
|
-
*
|
|
320
|
+
* Delete a specific recording for a given interaction.
|
|
327
321
|
*
|
|
328
322
|
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
|
|
329
323
|
* @param {Corti.Uuid} recordingId - The unique identifier of the recording. Must be a valid UUID.
|
|
@@ -368,13 +362,7 @@ class Recordings {
|
|
|
368
362
|
breadcrumbsPrefix: ["response"],
|
|
369
363
|
}), _response.rawResponse);
|
|
370
364
|
case 404:
|
|
371
|
-
throw new Corti.NotFoundError(
|
|
372
|
-
unrecognizedObjectKeys: "passthrough",
|
|
373
|
-
allowUnrecognizedUnionMembers: true,
|
|
374
|
-
allowUnrecognizedEnumValues: true,
|
|
375
|
-
skipValidation: true,
|
|
376
|
-
breadcrumbsPrefix: ["response"],
|
|
377
|
-
}), _response.rawResponse);
|
|
365
|
+
throw new Corti.NotFoundError(_response.error.body, _response.rawResponse);
|
|
378
366
|
case 500:
|
|
379
367
|
throw new Corti.InternalServerError(_response.error.body, _response.rawResponse);
|
|
380
368
|
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.
|
|
@@ -56,7 +56,7 @@ class Templates {
|
|
|
56
56
|
this._options = _options;
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
|
-
*
|
|
59
|
+
* Retrieves a list of template sections with optional filters for organization and language.
|
|
60
60
|
*
|
|
61
61
|
* @param {Corti.TemplatesSectionListRequest} request
|
|
62
62
|
* @param {Templates.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -147,7 +147,7 @@ class Templates {
|
|
|
147
147
|
});
|
|
148
148
|
}
|
|
149
149
|
/**
|
|
150
|
-
*
|
|
150
|
+
* Retrieves a list of templates with optional filters for organization, language, and status.
|
|
151
151
|
*
|
|
152
152
|
* @param {Corti.TemplatesListRequest} request
|
|
153
153
|
* @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.
|
|
@@ -56,7 +56,7 @@ class Transcripts {
|
|
|
56
56
|
this._options = _options;
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
|
-
*
|
|
59
|
+
* Retrieves a list of transcripts for a given interaction.
|
|
60
60
|
*
|
|
61
61
|
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
|
|
62
62
|
* @param {Corti.TranscriptsListRequest} request
|
|
@@ -156,7 +156,7 @@ class Transcripts {
|
|
|
156
156
|
});
|
|
157
157
|
}
|
|
158
158
|
/**
|
|
159
|
-
*
|
|
159
|
+
* Creates a new transcript for an interaction.
|
|
160
160
|
*
|
|
161
161
|
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
|
|
162
162
|
* @param {Corti.TranscriptsCreateRequest} request
|
|
@@ -171,8 +171,7 @@ class Transcripts {
|
|
|
171
171
|
* @example
|
|
172
172
|
* await client.transcripts.create("f47ac10b-58cc-4372-a567-0e02b2c3d479", {
|
|
173
173
|
* recordingId: "f47ac10b-58cc-4372-a567-0e02b2c3d479",
|
|
174
|
-
* primaryLanguage: "en"
|
|
175
|
-
* modelName: "base"
|
|
174
|
+
* primaryLanguage: "en"
|
|
176
175
|
* })
|
|
177
176
|
*/
|
|
178
177
|
create(id, request, requestOptions) {
|
|
@@ -260,7 +259,7 @@ class Transcripts {
|
|
|
260
259
|
});
|
|
261
260
|
}
|
|
262
261
|
/**
|
|
263
|
-
*
|
|
262
|
+
* Retrieves the transcript for a specific interaction.
|
|
264
263
|
*
|
|
265
264
|
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
|
|
266
265
|
* @param {Corti.Uuid} transcriptId - The unique identifier of the transcript. Must be a valid UUID.
|
|
@@ -354,7 +353,7 @@ class Transcripts {
|
|
|
354
353
|
});
|
|
355
354
|
}
|
|
356
355
|
/**
|
|
357
|
-
*
|
|
356
|
+
* Deletes a specific transcript associated with an interaction.
|
|
358
357
|
*
|
|
359
358
|
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
|
|
360
359
|
* @param {Corti.Uuid} transcriptId - The unique identifier of the transcript. Must be a valid UUID.
|