@corti/sdk 3.1.0 → 4.0.0-stt

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.
Files changed (121) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/documents/resources/templates/client/Client.d.ts +1 -5
  3. package/dist/cjs/api/resources/documents/resources/templates/client/Client.js +1 -5
  4. package/dist/cjs/api/resources/index.d.ts +1 -0
  5. package/dist/cjs/api/resources/index.js +1 -0
  6. package/dist/cjs/api/resources/recordings/client/Client.d.ts +1 -1
  7. package/dist/cjs/api/resources/recordings/client/Client.js +1 -1
  8. package/dist/cjs/api/resources/transcripts/client/Client.d.ts +1 -1
  9. package/dist/cjs/api/resources/transcripts/client/Client.js +1 -1
  10. package/dist/cjs/api/resources/transcripts/client/requests/TranscriptsCreateRequest.d.ts +9 -1
  11. package/dist/cjs/api/resources/transcripts/index.d.ts +1 -0
  12. package/dist/cjs/api/resources/transcripts/index.js +1 -0
  13. package/dist/cjs/api/resources/transcripts/types/TranscriptsCreateRequestKeyterms.d.ts +8 -0
  14. package/dist/cjs/api/resources/transcripts/types/TranscriptsCreateRequestKeyterms.js +3 -0
  15. package/dist/cjs/api/resources/transcripts/types/TranscriptsCreateRequestKeytermsTermsItem.d.ts +4 -0
  16. package/dist/cjs/api/resources/transcripts/types/TranscriptsCreateRequestKeytermsTermsItem.js +3 -0
  17. package/dist/cjs/api/resources/transcripts/types/TranscriptsCreateRequestReplacementsItem.d.ts +6 -0
  18. package/dist/cjs/api/resources/transcripts/types/TranscriptsCreateRequestReplacementsItem.js +3 -0
  19. package/dist/cjs/api/resources/transcripts/types/index.d.ts +3 -0
  20. package/dist/cjs/api/resources/transcripts/types/index.js +19 -0
  21. package/dist/cjs/api/types/CommonFactsContext.d.ts +2 -2
  22. package/dist/cjs/api/types/GuidedSection.d.ts +3 -1
  23. package/dist/cjs/api/types/GuidedSectionSource.d.ts +2 -1
  24. package/dist/cjs/api/types/GuidedSectionSource.js +2 -1
  25. package/dist/cjs/api/types/GuidedTemplate.d.ts +3 -1
  26. package/dist/cjs/api/types/GuidedTemplateSource.d.ts +2 -1
  27. package/dist/cjs/api/types/GuidedTemplateSource.js +2 -1
  28. package/dist/cjs/api/types/GuidedTemplatesCreateFromScratchRequest.d.ts +1 -1
  29. package/dist/cjs/api/types/GuidedTemplatesCreateFromScratchRequestGeneration.d.ts +1 -1
  30. package/dist/cjs/api/types/StreamConfigTranscription.d.ts +3 -1
  31. package/dist/cjs/serialization/resources/index.d.ts +1 -0
  32. package/dist/cjs/serialization/resources/index.js +1 -0
  33. package/dist/cjs/serialization/resources/transcripts/client/requests/TranscriptsCreateRequest.d.ts +6 -0
  34. package/dist/cjs/serialization/resources/transcripts/client/requests/TranscriptsCreateRequest.js +6 -0
  35. package/dist/cjs/serialization/resources/transcripts/index.d.ts +1 -0
  36. package/dist/cjs/serialization/resources/transcripts/index.js +1 -0
  37. package/dist/cjs/serialization/resources/transcripts/types/TranscriptsCreateRequestKeyterms.d.ts +10 -0
  38. package/dist/cjs/serialization/resources/transcripts/types/TranscriptsCreateRequestKeyterms.js +42 -0
  39. package/dist/cjs/serialization/resources/transcripts/types/TranscriptsCreateRequestKeytermsTermsItem.d.ts +9 -0
  40. package/dist/cjs/serialization/resources/transcripts/types/TranscriptsCreateRequestKeytermsTermsItem.js +41 -0
  41. package/dist/cjs/serialization/resources/transcripts/types/TranscriptsCreateRequestReplacementsItem.d.ts +10 -0
  42. package/dist/cjs/serialization/resources/transcripts/types/TranscriptsCreateRequestReplacementsItem.js +42 -0
  43. package/dist/cjs/serialization/resources/transcripts/types/index.d.ts +3 -0
  44. package/dist/cjs/serialization/resources/transcripts/types/index.js +19 -0
  45. package/dist/cjs/serialization/types/CommonFactsContext.d.ts +1 -1
  46. package/dist/cjs/serialization/types/CommonFactsContext.js +1 -1
  47. package/dist/cjs/serialization/types/GuidedSection.d.ts +1 -0
  48. package/dist/cjs/serialization/types/GuidedSection.js +1 -0
  49. package/dist/cjs/serialization/types/GuidedSectionSource.d.ts +1 -1
  50. package/dist/cjs/serialization/types/GuidedSectionSource.js +1 -1
  51. package/dist/cjs/serialization/types/GuidedTemplate.d.ts +1 -0
  52. package/dist/cjs/serialization/types/GuidedTemplate.js +1 -0
  53. package/dist/cjs/serialization/types/GuidedTemplateSource.d.ts +1 -1
  54. package/dist/cjs/serialization/types/GuidedTemplateSource.js +1 -1
  55. package/dist/cjs/serialization/types/GuidedTemplatesCreateFromScratchRequestGeneration.d.ts +1 -1
  56. package/dist/cjs/serialization/types/GuidedTemplatesCreateFromScratchRequestGeneration.js +1 -1
  57. package/dist/cjs/serialization/types/StreamConfigTranscription.d.ts +1 -0
  58. package/dist/cjs/serialization/types/StreamConfigTranscription.js +1 -0
  59. package/dist/cjs/version.d.ts +1 -1
  60. package/dist/cjs/version.js +1 -1
  61. package/dist/esm/BaseClient.mjs +2 -2
  62. package/dist/esm/api/resources/documents/resources/templates/client/Client.d.mts +1 -5
  63. package/dist/esm/api/resources/documents/resources/templates/client/Client.mjs +1 -5
  64. package/dist/esm/api/resources/index.d.mts +1 -0
  65. package/dist/esm/api/resources/index.mjs +1 -0
  66. package/dist/esm/api/resources/recordings/client/Client.d.mts +1 -1
  67. package/dist/esm/api/resources/recordings/client/Client.mjs +1 -1
  68. package/dist/esm/api/resources/transcripts/client/Client.d.mts +1 -1
  69. package/dist/esm/api/resources/transcripts/client/Client.mjs +1 -1
  70. package/dist/esm/api/resources/transcripts/client/requests/TranscriptsCreateRequest.d.mts +9 -1
  71. package/dist/esm/api/resources/transcripts/index.d.mts +1 -0
  72. package/dist/esm/api/resources/transcripts/index.mjs +1 -0
  73. package/dist/esm/api/resources/transcripts/types/TranscriptsCreateRequestKeyterms.d.mts +8 -0
  74. package/dist/esm/api/resources/transcripts/types/TranscriptsCreateRequestKeyterms.mjs +2 -0
  75. package/dist/esm/api/resources/transcripts/types/TranscriptsCreateRequestKeytermsTermsItem.d.mts +4 -0
  76. package/dist/esm/api/resources/transcripts/types/TranscriptsCreateRequestKeytermsTermsItem.mjs +2 -0
  77. package/dist/esm/api/resources/transcripts/types/TranscriptsCreateRequestReplacementsItem.d.mts +6 -0
  78. package/dist/esm/api/resources/transcripts/types/TranscriptsCreateRequestReplacementsItem.mjs +2 -0
  79. package/dist/esm/api/resources/transcripts/types/index.d.mts +3 -0
  80. package/dist/esm/api/resources/transcripts/types/index.mjs +3 -0
  81. package/dist/esm/api/types/CommonFactsContext.d.mts +2 -2
  82. package/dist/esm/api/types/GuidedSection.d.mts +3 -1
  83. package/dist/esm/api/types/GuidedSectionSource.d.mts +2 -1
  84. package/dist/esm/api/types/GuidedSectionSource.mjs +2 -1
  85. package/dist/esm/api/types/GuidedTemplate.d.mts +3 -1
  86. package/dist/esm/api/types/GuidedTemplateSource.d.mts +2 -1
  87. package/dist/esm/api/types/GuidedTemplateSource.mjs +2 -1
  88. package/dist/esm/api/types/GuidedTemplatesCreateFromScratchRequest.d.mts +1 -1
  89. package/dist/esm/api/types/GuidedTemplatesCreateFromScratchRequestGeneration.d.mts +1 -1
  90. package/dist/esm/api/types/StreamConfigTranscription.d.mts +3 -1
  91. package/dist/esm/serialization/resources/index.d.mts +1 -0
  92. package/dist/esm/serialization/resources/index.mjs +1 -0
  93. package/dist/esm/serialization/resources/transcripts/client/requests/TranscriptsCreateRequest.d.mts +6 -0
  94. package/dist/esm/serialization/resources/transcripts/client/requests/TranscriptsCreateRequest.mjs +6 -0
  95. package/dist/esm/serialization/resources/transcripts/index.d.mts +1 -0
  96. package/dist/esm/serialization/resources/transcripts/index.mjs +1 -0
  97. package/dist/esm/serialization/resources/transcripts/types/TranscriptsCreateRequestKeyterms.d.mts +10 -0
  98. package/dist/esm/serialization/resources/transcripts/types/TranscriptsCreateRequestKeyterms.mjs +6 -0
  99. package/dist/esm/serialization/resources/transcripts/types/TranscriptsCreateRequestKeytermsTermsItem.d.mts +9 -0
  100. package/dist/esm/serialization/resources/transcripts/types/TranscriptsCreateRequestKeytermsTermsItem.mjs +5 -0
  101. package/dist/esm/serialization/resources/transcripts/types/TranscriptsCreateRequestReplacementsItem.d.mts +10 -0
  102. package/dist/esm/serialization/resources/transcripts/types/TranscriptsCreateRequestReplacementsItem.mjs +6 -0
  103. package/dist/esm/serialization/resources/transcripts/types/index.d.mts +3 -0
  104. package/dist/esm/serialization/resources/transcripts/types/index.mjs +3 -0
  105. package/dist/esm/serialization/types/CommonFactsContext.d.mts +1 -1
  106. package/dist/esm/serialization/types/CommonFactsContext.mjs +1 -1
  107. package/dist/esm/serialization/types/GuidedSection.d.mts +1 -0
  108. package/dist/esm/serialization/types/GuidedSection.mjs +1 -0
  109. package/dist/esm/serialization/types/GuidedSectionSource.d.mts +1 -1
  110. package/dist/esm/serialization/types/GuidedSectionSource.mjs +1 -1
  111. package/dist/esm/serialization/types/GuidedTemplate.d.mts +1 -0
  112. package/dist/esm/serialization/types/GuidedTemplate.mjs +1 -0
  113. package/dist/esm/serialization/types/GuidedTemplateSource.d.mts +1 -1
  114. package/dist/esm/serialization/types/GuidedTemplateSource.mjs +1 -1
  115. package/dist/esm/serialization/types/GuidedTemplatesCreateFromScratchRequestGeneration.d.mts +1 -1
  116. package/dist/esm/serialization/types/GuidedTemplatesCreateFromScratchRequestGeneration.mjs +1 -1
  117. package/dist/esm/serialization/types/StreamConfigTranscription.d.mts +1 -0
  118. package/dist/esm/serialization/types/StreamConfigTranscription.mjs +1 -0
  119. package/dist/esm/version.d.mts +1 -1
  120. package/dist/esm/version.mjs +1 -1
  121. package/package.json +1 -1
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
43
43
  const headers = (0, headers_js_1.mergeHeaders)({
44
44
  "X-Fern-Language": "JavaScript",
45
45
  "X-Fern-SDK-Name": "@corti/sdk",
46
- "X-Fern-SDK-Version": "3.1.0",
47
- "User-Agent": "@corti/sdk/3.1.0",
46
+ "X-Fern-SDK-Version": "4.0.0-stt",
47
+ "User-Agent": "@corti/sdk/4.0.0-stt",
48
48
  "X-Fern-Runtime": core.RUNTIME.type,
49
49
  "X-Fern-Runtime-Version": core.RUNTIME.version,
50
50
  "Tenant-Name": options === null || options === void 0 ? void 0 : options.tenantName,
@@ -38,11 +38,7 @@ export declare class TemplatesClient {
38
38
  * @example
39
39
  * await client.documents.templates.create({
40
40
  * name: "name",
41
- * generation: {
42
- * instructions: {
43
- * prompt: "prompt"
44
- * }
45
- * }
41
+ * generation: {}
46
42
  * })
47
43
  */
48
44
  create(request: Corti.GuidedTemplatesCreateRequest, requestOptions?: TemplatesClient.RequestOptions): core.HttpResponsePromise<Corti.GuidedTemplate>;
@@ -138,11 +138,7 @@ class TemplatesClient {
138
138
  * @example
139
139
  * await client.documents.templates.create({
140
140
  * name: "name",
141
- * generation: {
142
- * instructions: {
143
- * prompt: "prompt"
144
- * }
145
- * }
141
+ * generation: {}
146
142
  * })
147
143
  */
148
144
  create(request, requestOptions) {
@@ -22,3 +22,4 @@ export * as templates from "./templates/index.js";
22
22
  export * as transcribe from "./transcribe/index.js";
23
23
  export * from "./transcripts/client/requests/index.js";
24
24
  export * as transcripts from "./transcripts/index.js";
25
+ export * from "./transcripts/types/index.js";
@@ -61,3 +61,4 @@ exports.templates = __importStar(require("./templates/index.js"));
61
61
  exports.transcribe = __importStar(require("./transcribe/index.js"));
62
62
  __exportStar(require("./transcripts/client/requests/index.js"), exports);
63
63
  exports.transcripts = __importStar(require("./transcripts/index.js"));
64
+ __exportStar(require("./transcripts/types/index.js"), exports);
@@ -27,7 +27,7 @@ export declare class RecordingsClient {
27
27
  list(id: Corti.Uuid, requestOptions?: RecordingsClient.RequestOptions): core.HttpResponsePromise<Corti.RecordingsListResponse>;
28
28
  private __list;
29
29
  /**
30
- * Upload a recording for a given interaction. There is a maximum limit of 60 minutes in length and 150MB in size for recordings.
30
+ * Upload a recording for a given interaction. There is a maximum limit of 120 minutes in audio duration and 150 MB in file size.
31
31
  *
32
32
  * @param {core.file.Uploadable} uploadable
33
33
  * @param {Corti.Uuid} id
@@ -134,7 +134,7 @@ class RecordingsClient {
134
134
  });
135
135
  }
136
136
  /**
137
- * Upload a recording for a given interaction. There is a maximum limit of 60 minutes in length and 150MB in size for recordings.
137
+ * Upload a recording for a given interaction. There is a maximum limit of 120 minutes in audio duration and 150 MB in file size.
138
138
  *
139
139
  * @param {core.file.Uploadable} uploadable
140
140
  * @param {Corti.Uuid} id
@@ -29,7 +29,7 @@ export declare class TranscriptsClient {
29
29
  list(id: Corti.Uuid, request?: Corti.TranscriptsListRequest, requestOptions?: TranscriptsClient.RequestOptions): core.HttpResponsePromise<Corti.TranscriptsListResponse>;
30
30
  private __list;
31
31
  /**
32
- * Create a transcript from an audio file uploaded to the interaction via `/recordings` endpoint.<br/><Note>Each interaction may have more than one audio file and transcript associated with it. Audio files up to 60 min in total duration, or 150 MB in total size, may be used.<br/><br/>By default, requests will process synchronously for 25 seconds before timeout, upon which processing will continue asynchronously. Set the `async` parameter to true to receive the location header immediately and process the request asynchronously. Read more [here](https://docs.corti.ai/stt/transcripts).</Note>
32
+ * Create a transcript from an audio file uploaded to the interaction via `/recordings` endpoint.<br/><Note>Each interaction may have more than one audio file and transcript associated with it. Audio files up to 120 minutes in total audio duration and 150 MB in size may be used.<br/><br/>By default, requests will process synchronously for 25 seconds before timeout, upon which processing will continue asynchronously. Set the `async` parameter to true to receive the location header immediately and process the request asynchronously. Read more [here](https://docs.corti.ai/stt/transcripts).</Note>
33
33
  *
34
34
  * @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
35
35
  * @param {Corti.TranscriptsCreateRequest} request
@@ -142,7 +142,7 @@ class TranscriptsClient {
142
142
  });
143
143
  }
144
144
  /**
145
- * Create a transcript from an audio file uploaded to the interaction via `/recordings` endpoint.<br/><Note>Each interaction may have more than one audio file and transcript associated with it. Audio files up to 60 min in total duration, or 150 MB in total size, may be used.<br/><br/>By default, requests will process synchronously for 25 seconds before timeout, upon which processing will continue asynchronously. Set the `async` parameter to true to receive the location header immediately and process the request asynchronously. Read more [here](https://docs.corti.ai/stt/transcripts).</Note>
145
+ * Create a transcript from an audio file uploaded to the interaction via `/recordings` endpoint.<br/><Note>Each interaction may have more than one audio file and transcript associated with it. Audio files up to 120 minutes in total audio duration and 150 MB in size may be used.<br/><br/>By default, requests will process synchronously for 25 seconds before timeout, upon which processing will continue asynchronously. Set the `async` parameter to true to receive the location header immediately and process the request asynchronously. Read more [here](https://docs.corti.ai/stt/transcripts).</Note>
146
146
  *
147
147
  * @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
148
148
  * @param {Corti.TranscriptsCreateRequest} request
@@ -11,7 +11,11 @@ export interface TranscriptsCreateRequest {
11
11
  recordingId: Corti.Uuid;
12
12
  /** The primary spoken language of the recording. Check https://docs.corti.ai/stt/languages for more. */
13
13
  primaryLanguage: string;
14
- /** If true, spoken punctuation will be converted to symbols (e.g., 'comma' ','). */
14
+ /** When true, converts spoken punctuation such as 'period' or 'slash' into symbols (e.g., '.', '/'). When enabled, automatic punctuation is turned off. Takes precedence over `automaticPunctuation` when both are enabled. */
15
+ spokenPunctuation?: boolean;
16
+ /** When true, automatically punctuates and capitalizes the transcript. Defaults to true. Overridden by `spokenPunctuation` when both are enabled. */
17
+ automaticPunctuation?: boolean;
18
+ /** **Deprecated** — replaced by `spokenPunctuation` and `automaticPunctuation`. Ignored when either of those fields is provided. When `true` and neither new field is provided, it is treated as `spokenPunctuation: true` (automatic punctuation off). No removal date is currently planned. */
15
19
  isDictation?: boolean;
16
20
  /** If true, each audio channel is transcribed separately. */
17
21
  isMultichannel?: boolean;
@@ -21,4 +25,8 @@ export interface TranscriptsCreateRequest {
21
25
  participants?: Corti.TranscriptsParticipant[];
22
26
  /** If true, the request will return immediately with a 202 status and the transcript will be processed asynchronously. Poll [Get Transcript Status](/api-reference/transcripts/get-transcript-status) to check transcript processing status - `processing`, `completed`, `failed`. */
23
27
  async?: boolean;
28
+ /** Define replacements to have terms (single words or multi-word phrases) replaced in final text output with your preferred style. For example, replace "BID" with "twice daily". Configuration is case insensitive and limited to 1,000 replacements per stream. */
29
+ replacements?: Corti.TranscriptsCreateRequestReplacementsItem[];
30
+ /** Define words, terms, and phrases to be recognized by Corti speech-to-text. Especially useful for proper nouns (e.g., surnames), but also supportive of words not being recognized consistently. Configuration is case sensitive and limited to 1,000 key terms per stream. */
31
+ keyterms?: Corti.TranscriptsCreateRequestKeyterms;
24
32
  }
@@ -1 +1,2 @@
1
1
  export * from "./client/index.js";
2
+ export * from "./types/index.js";
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./client/index.js"), exports);
18
+ __exportStar(require("./types/index.js"), exports);
@@ -0,0 +1,8 @@
1
+ import type * as Corti from "../../../index.js";
2
+ /**
3
+ * Define words, terms, and phrases to be recognized by Corti speech-to-text. Especially useful for proper nouns (e.g., surnames), but also supportive of words not being recognized consistently. Configuration is case sensitive and limited to 1,000 key terms per stream.
4
+ */
5
+ export interface TranscriptsCreateRequestKeyterms {
6
+ /** Ordered list of words to be recognized. */
7
+ terms?: Corti.TranscriptsCreateRequestKeytermsTermsItem[];
8
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export interface TranscriptsCreateRequestKeytermsTermsItem {
2
+ /** The word to be recognized, defined in its expected written form. */
3
+ term: string;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ export interface TranscriptsCreateRequestReplacementsItem {
2
+ /** The term to be replaced, such as "BID". */
3
+ find: string;
4
+ /** The preferred replacement for the term, such as "twice daily". */
5
+ replace: string;
6
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export * from "./TranscriptsCreateRequestKeyterms.js";
2
+ export * from "./TranscriptsCreateRequestKeytermsTermsItem.js";
3
+ export * from "./TranscriptsCreateRequestReplacementsItem.js";
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./TranscriptsCreateRequestKeyterms.js"), exports);
18
+ __exportStar(require("./TranscriptsCreateRequestKeytermsTermsItem.js"), exports);
19
+ __exportStar(require("./TranscriptsCreateRequestReplacementsItem.js"), exports);
@@ -1,8 +1,8 @@
1
1
  import type * as Corti from "../index.js";
2
2
  /**
3
- * A single fact provided as input context to the model.
3
+ * A list of facts provided as input context to the model.
4
4
  */
5
5
  export interface CommonFactsContext {
6
6
  type: "facts";
7
- fact: Corti.GuidedDocumentFactMinimal;
7
+ facts: Corti.GuidedDocumentFactMinimal[];
8
8
  }
@@ -6,7 +6,7 @@ export interface GuidedSection {
6
6
  inheritedFromId?: string | null;
7
7
  /** True if the section was auto-generated as part of an inline section-composed POST /documents request. */
8
8
  autoGenerated?: boolean;
9
- /** Whether this section was created by the user or from the Corti standard resources. */
9
+ /** Whether this section was created by the user, a project-related API Client or is a Corti standard resource. */
10
10
  source?: Corti.GuidedSectionSource;
11
11
  /** The name of the section. */
12
12
  name: string;
@@ -22,6 +22,8 @@ export interface GuidedSection {
22
22
  labels: Corti.GuidedLabel[];
23
23
  /** The currently published version with section inheritance fully resolved. Present when a version has been published. */
24
24
  publishedVersion?: Corti.GuidedSectionVersion;
25
+ /** The UUID of the creator of this section. */
26
+ createdBy?: string;
25
27
  /** The original timestamp when the section was created. */
26
28
  createdAt: Date;
27
29
  /** The original timestamp when the section was last updated. */
@@ -1,6 +1,7 @@
1
- /** Whether this section was created by the user or from the Corti standard resources. */
1
+ /** Whether this section was created by the user, a project-related API Client or is a Corti standard resource. */
2
2
  export declare const GuidedSectionSource: {
3
3
  readonly User: "user";
4
4
  readonly Corti: "corti";
5
+ readonly Project: "project";
5
6
  };
6
7
  export type GuidedSectionSource = (typeof GuidedSectionSource)[keyof typeof GuidedSectionSource];
@@ -2,8 +2,9 @@
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.GuidedSectionSource = void 0;
5
- /** Whether this section was created by the user or from the Corti standard resources. */
5
+ /** Whether this section was created by the user, a project-related API Client or is a Corti standard resource. */
6
6
  exports.GuidedSectionSource = {
7
7
  User: "user",
8
8
  Corti: "corti",
9
+ Project: "project",
9
10
  };
@@ -6,7 +6,7 @@ export interface GuidedTemplate {
6
6
  inheritedFromId?: string | null;
7
7
  /** True if the template was auto-generated based on the section-composed POST /documents request. */
8
8
  autoGenerated?: boolean;
9
- /** Whether this template was created by the user or is a Corti standard resource. */
9
+ /** Whether this template was created by the user, a project-related API Client or is a Corti standard resource. */
10
10
  source?: Corti.GuidedTemplateSource;
11
11
  /** The name of this template. Not passed to the LLM. */
12
12
  name: string;
@@ -22,6 +22,8 @@ export interface GuidedTemplate {
22
22
  labels: Corti.GuidedLabel[];
23
23
  /** The currently published version with inheritance fully resolved. Present when a version has been published. */
24
24
  publishedVersion?: Corti.GuidedTemplateVersion;
25
+ /** The UUID of the creator of this template. */
26
+ createdBy?: string;
25
27
  /** The original timestamp when the template was created. */
26
28
  createdAt: Date;
27
29
  /** The original timestamp when the template was last updated. */
@@ -1,6 +1,7 @@
1
- /** Whether this template was created by the user or is a Corti standard resource. */
1
+ /** Whether this template was created by the user, a project-related API Client or is a Corti standard resource. */
2
2
  export declare const GuidedTemplateSource: {
3
3
  readonly User: "user";
4
4
  readonly Corti: "corti";
5
+ readonly Project: "project";
5
6
  };
6
7
  export type GuidedTemplateSource = (typeof GuidedTemplateSource)[keyof typeof GuidedTemplateSource];
@@ -2,8 +2,9 @@
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.GuidedTemplateSource = void 0;
5
- /** Whether this template was created by the user or is a Corti standard resource. */
5
+ /** Whether this template was created by the user, a project-related API Client or is a Corti standard resource. */
6
6
  exports.GuidedTemplateSource = {
7
7
  User: "user",
8
8
  Corti: "corti",
9
+ Project: "project",
9
10
  };
@@ -1,6 +1,6 @@
1
1
  import type * as Corti from "../index.js";
2
2
  /**
3
- * Creates a template from scratch. `generation.instructions` is required and the template fully specifies its own instructions and sections.
3
+ * Creates a template from scratch. The template fully specifies its own sections and optional template-level instructions.
4
4
  */
5
5
  export interface GuidedTemplatesCreateFromScratchRequest extends Corti.GuidedTemplatesCreateBase {
6
6
  generation: Corti.GuidedTemplatesCreateFromScratchRequestGeneration;
@@ -1,5 +1,5 @@
1
1
  import type * as Corti from "../index.js";
2
2
  export interface GuidedTemplatesCreateFromScratchRequestGeneration {
3
- instructions: Corti.GuidedTemplateInstructions;
3
+ instructions?: Corti.GuidedTemplateInstructions;
4
4
  sections?: Corti.GuidedTemplatesVersionSectionRequest[];
5
5
  }
@@ -2,7 +2,9 @@ import type * as Corti from "../index.js";
2
2
  export interface StreamConfigTranscription {
3
3
  /** Primary spoken language for transcription */
4
4
  primaryLanguage: Corti.StreamSupportedLanguage;
5
- /** Enable speaker diarization */
5
+ /** Enable speaker diarization. */
6
+ diarize?: boolean;
7
+ /** **Deprecated** — renamed to `diarize`. Still accepted for backward compatibility; `diarize` takes precedence when both are provided. `CONFIG_ACCEPTED` echoes both fields during the deprecation period. No removal date is currently planned. */
6
8
  isDiarization?: boolean;
7
9
  /** Enable multi-channel audio processing */
8
10
  isMultichannel?: boolean;
@@ -20,3 +20,4 @@ export * from "./transcribe/client/socket/index.js";
20
20
  export * as transcribe from "./transcribe/index.js";
21
21
  export * from "./transcripts/client/requests/index.js";
22
22
  export * as transcripts from "./transcripts/index.js";
23
+ export * from "./transcripts/types/index.js";
@@ -59,3 +59,4 @@ __exportStar(require("./transcribe/client/socket/index.js"), exports);
59
59
  exports.transcribe = __importStar(require("./transcribe/index.js"));
60
60
  __exportStar(require("./transcripts/client/requests/index.js"), exports);
61
61
  exports.transcripts = __importStar(require("./transcripts/index.js"));
62
+ __exportStar(require("./transcripts/types/index.js"), exports);
@@ -3,15 +3,21 @@ import * as core from "../../../../../core/index.js";
3
3
  import type * as serializers from "../../../../index.js";
4
4
  import { TranscriptsParticipant } from "../../../../types/TranscriptsParticipant.js";
5
5
  import { Uuid } from "../../../../types/Uuid.js";
6
+ import { TranscriptsCreateRequestKeyterms } from "../../types/TranscriptsCreateRequestKeyterms.js";
7
+ import { TranscriptsCreateRequestReplacementsItem } from "../../types/TranscriptsCreateRequestReplacementsItem.js";
6
8
  export declare const TranscriptsCreateRequest: core.serialization.Schema<serializers.TranscriptsCreateRequest.Raw, Corti.TranscriptsCreateRequest>;
7
9
  export declare namespace TranscriptsCreateRequest {
8
10
  interface Raw {
9
11
  recordingId: Uuid.Raw;
10
12
  primaryLanguage: string;
13
+ spokenPunctuation?: boolean | null;
14
+ automaticPunctuation?: boolean | null;
11
15
  isDictation?: boolean | null;
12
16
  isMultichannel?: boolean | null;
13
17
  diarize?: boolean | null;
14
18
  participants?: TranscriptsParticipant.Raw[] | null;
15
19
  async?: boolean | null;
20
+ replacements?: TranscriptsCreateRequestReplacementsItem.Raw[] | null;
21
+ keyterms?: TranscriptsCreateRequestKeyterms.Raw | null;
16
22
  }
17
23
  }
@@ -38,12 +38,18 @@ exports.TranscriptsCreateRequest = void 0;
38
38
  const core = __importStar(require("../../../../../core/index.js"));
39
39
  const TranscriptsParticipant_js_1 = require("../../../../types/TranscriptsParticipant.js");
40
40
  const Uuid_js_1 = require("../../../../types/Uuid.js");
41
+ const TranscriptsCreateRequestKeyterms_js_1 = require("../../types/TranscriptsCreateRequestKeyterms.js");
42
+ const TranscriptsCreateRequestReplacementsItem_js_1 = require("../../types/TranscriptsCreateRequestReplacementsItem.js");
41
43
  exports.TranscriptsCreateRequest = core.serialization.object({
42
44
  recordingId: Uuid_js_1.Uuid,
43
45
  primaryLanguage: core.serialization.string(),
46
+ spokenPunctuation: core.serialization.boolean().optional(),
47
+ automaticPunctuation: core.serialization.boolean().optional(),
44
48
  isDictation: core.serialization.boolean().optional(),
45
49
  isMultichannel: core.serialization.boolean().optional(),
46
50
  diarize: core.serialization.boolean().optional(),
47
51
  participants: core.serialization.list(TranscriptsParticipant_js_1.TranscriptsParticipant).optional(),
48
52
  async: core.serialization.boolean().optional(),
53
+ replacements: core.serialization.list(TranscriptsCreateRequestReplacementsItem_js_1.TranscriptsCreateRequestReplacementsItem).optional(),
54
+ keyterms: TranscriptsCreateRequestKeyterms_js_1.TranscriptsCreateRequestKeyterms.optional(),
49
55
  });
@@ -1 +1,2 @@
1
1
  export * from "./client/index.js";
2
+ export * from "./types/index.js";
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./client/index.js"), exports);
18
+ __exportStar(require("./types/index.js"), exports);
@@ -0,0 +1,10 @@
1
+ import type * as Corti from "../../../../api/index.js";
2
+ import * as core from "../../../../core/index.js";
3
+ import type * as serializers from "../../../index.js";
4
+ import { TranscriptsCreateRequestKeytermsTermsItem } from "./TranscriptsCreateRequestKeytermsTermsItem.js";
5
+ export declare const TranscriptsCreateRequestKeyterms: core.serialization.ObjectSchema<serializers.TranscriptsCreateRequestKeyterms.Raw, Corti.TranscriptsCreateRequestKeyterms>;
6
+ export declare namespace TranscriptsCreateRequestKeyterms {
7
+ interface Raw {
8
+ terms?: TranscriptsCreateRequestKeytermsTermsItem.Raw[] | null;
9
+ }
10
+ }
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.TranscriptsCreateRequestKeyterms = void 0;
38
+ const core = __importStar(require("../../../../core/index.js"));
39
+ const TranscriptsCreateRequestKeytermsTermsItem_js_1 = require("./TranscriptsCreateRequestKeytermsTermsItem.js");
40
+ exports.TranscriptsCreateRequestKeyterms = core.serialization.object({
41
+ terms: core.serialization.list(TranscriptsCreateRequestKeytermsTermsItem_js_1.TranscriptsCreateRequestKeytermsTermsItem).optional(),
42
+ });
@@ -0,0 +1,9 @@
1
+ import type * as Corti from "../../../../api/index.js";
2
+ import * as core from "../../../../core/index.js";
3
+ import type * as serializers from "../../../index.js";
4
+ export declare const TranscriptsCreateRequestKeytermsTermsItem: core.serialization.ObjectSchema<serializers.TranscriptsCreateRequestKeytermsTermsItem.Raw, Corti.TranscriptsCreateRequestKeytermsTermsItem>;
5
+ export declare namespace TranscriptsCreateRequestKeytermsTermsItem {
6
+ interface Raw {
7
+ term: string;
8
+ }
9
+ }
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.TranscriptsCreateRequestKeytermsTermsItem = void 0;
38
+ const core = __importStar(require("../../../../core/index.js"));
39
+ exports.TranscriptsCreateRequestKeytermsTermsItem = core.serialization.object({
40
+ term: core.serialization.string(),
41
+ });
@@ -0,0 +1,10 @@
1
+ import type * as Corti from "../../../../api/index.js";
2
+ import * as core from "../../../../core/index.js";
3
+ import type * as serializers from "../../../index.js";
4
+ export declare const TranscriptsCreateRequestReplacementsItem: core.serialization.ObjectSchema<serializers.TranscriptsCreateRequestReplacementsItem.Raw, Corti.TranscriptsCreateRequestReplacementsItem>;
5
+ export declare namespace TranscriptsCreateRequestReplacementsItem {
6
+ interface Raw {
7
+ find: string;
8
+ replace: string;
9
+ }
10
+ }
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.TranscriptsCreateRequestReplacementsItem = void 0;
38
+ const core = __importStar(require("../../../../core/index.js"));
39
+ exports.TranscriptsCreateRequestReplacementsItem = core.serialization.object({
40
+ find: core.serialization.string(),
41
+ replace: core.serialization.string(),
42
+ });
@@ -0,0 +1,3 @@
1
+ export * from "./TranscriptsCreateRequestKeyterms.js";
2
+ export * from "./TranscriptsCreateRequestKeytermsTermsItem.js";
3
+ export * from "./TranscriptsCreateRequestReplacementsItem.js";
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./TranscriptsCreateRequestKeyterms.js"), exports);
18
+ __exportStar(require("./TranscriptsCreateRequestKeytermsTermsItem.js"), exports);
19
+ __exportStar(require("./TranscriptsCreateRequestReplacementsItem.js"), exports);
@@ -6,6 +6,6 @@ export declare const CommonFactsContext: core.serialization.ObjectSchema<seriali
6
6
  export declare namespace CommonFactsContext {
7
7
  interface Raw {
8
8
  type: "facts";
9
- fact: GuidedDocumentFactMinimal.Raw;
9
+ facts: GuidedDocumentFactMinimal.Raw[];
10
10
  }
11
11
  }
@@ -39,5 +39,5 @@ const core = __importStar(require("../../core/index.js"));
39
39
  const GuidedDocumentFactMinimal_js_1 = require("./GuidedDocumentFactMinimal.js");
40
40
  exports.CommonFactsContext = core.serialization.object({
41
41
  type: core.serialization.stringLiteral("facts"),
42
- fact: GuidedDocumentFactMinimal_js_1.GuidedDocumentFactMinimal,
42
+ facts: core.serialization.list(GuidedDocumentFactMinimal_js_1.GuidedDocumentFactMinimal),
43
43
  });
@@ -18,6 +18,7 @@ export declare namespace GuidedSection {
18
18
  description?: string | null;
19
19
  labels: GuidedLabel.Raw[];
20
20
  publishedVersion?: GuidedSectionVersion.Raw | null;
21
+ createdBy?: string | null;
21
22
  createdAt: string;
22
23
  updatedAt: string;
23
24
  deletedAt?: (string | null | undefined) | null;
@@ -51,6 +51,7 @@ exports.GuidedSection = core.serialization.object({
51
51
  description: core.serialization.string().optional(),
52
52
  labels: core.serialization.list(GuidedLabel_js_1.GuidedLabel),
53
53
  publishedVersion: GuidedSectionVersion_js_1.GuidedSectionVersion.optional(),
54
+ createdBy: core.serialization.string().optional(),
54
55
  createdAt: core.serialization.date(),
55
56
  updatedAt: core.serialization.date(),
56
57
  deletedAt: core.serialization.date().optionalNullable(),