@corti/sdk 4.0.0-rc → 4.0.0-rc.2

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 (239) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/documents/resources/sections/client/Client.d.ts +2 -10
  3. package/dist/cjs/api/resources/documents/resources/sections/client/Client.js +1 -9
  4. package/dist/cjs/api/resources/documents/resources/templates/client/Client.d.ts +2 -6
  5. package/dist/cjs/api/resources/documents/resources/templates/client/Client.js +1 -5
  6. package/dist/cjs/api/resources/index.d.ts +1 -0
  7. package/dist/cjs/api/resources/index.js +1 -0
  8. package/dist/cjs/api/resources/recordings/client/Client.d.ts +1 -1
  9. package/dist/cjs/api/resources/recordings/client/Client.js +1 -1
  10. package/dist/cjs/api/resources/transcripts/client/Client.d.ts +1 -1
  11. package/dist/cjs/api/resources/transcripts/client/Client.js +1 -1
  12. package/dist/cjs/api/resources/transcripts/client/requests/TranscriptsCreateRequest.d.ts +9 -1
  13. package/dist/cjs/api/resources/transcripts/index.d.ts +1 -0
  14. package/dist/cjs/api/resources/transcripts/index.js +1 -0
  15. package/dist/cjs/api/resources/transcripts/types/TranscriptsCreateRequestKeyterms.d.ts +8 -0
  16. package/dist/cjs/api/resources/transcripts/types/TranscriptsCreateRequestKeyterms.js +3 -0
  17. package/dist/cjs/api/resources/transcripts/types/TranscriptsCreateRequestKeytermsTermsItem.d.ts +4 -0
  18. package/dist/cjs/api/resources/transcripts/types/TranscriptsCreateRequestKeytermsTermsItem.js +3 -0
  19. package/dist/cjs/api/resources/transcripts/types/TranscriptsCreateRequestReplacementsItem.d.ts +6 -0
  20. package/dist/cjs/api/resources/transcripts/types/TranscriptsCreateRequestReplacementsItem.js +3 -0
  21. package/dist/cjs/api/resources/transcripts/types/index.d.ts +3 -0
  22. package/dist/cjs/api/resources/transcripts/types/index.js +19 -0
  23. package/dist/cjs/api/types/GuidedSection.d.ts +6 -27
  24. package/dist/cjs/api/types/GuidedSectionListItem.d.ts +36 -0
  25. package/dist/cjs/api/types/GuidedSectionListItem.js +3 -0
  26. package/dist/cjs/api/types/GuidedSectionListItemSource.d.ts +7 -0
  27. package/dist/cjs/api/types/GuidedSectionListItemSource.js +10 -0
  28. package/dist/cjs/api/types/GuidedSectionsCreateRequest.d.ts +1 -1
  29. package/dist/cjs/api/types/GuidedTemplate.d.ts +6 -27
  30. package/dist/cjs/api/types/GuidedTemplateListItem.d.ts +36 -0
  31. package/dist/cjs/api/types/GuidedTemplateListItem.js +3 -0
  32. package/dist/cjs/api/types/GuidedTemplateListItemSource.d.ts +7 -0
  33. package/dist/cjs/api/types/GuidedTemplateListItemSource.js +10 -0
  34. package/dist/cjs/api/types/GuidedTemplatesCreateFromScratchRequest.d.ts +1 -1
  35. package/dist/cjs/api/types/GuidedTemplatesCreateFromScratchRequestGeneration.d.ts +1 -1
  36. package/dist/cjs/api/types/GuidedTemplatesCreateRequest.d.ts +1 -1
  37. package/dist/cjs/api/types/StreamConfig.d.ts +4 -0
  38. package/dist/cjs/api/types/StreamConfigKeyterms.d.ts +8 -0
  39. package/dist/cjs/api/types/StreamConfigKeyterms.js +3 -0
  40. package/dist/cjs/api/types/StreamConfigKeytermsTermsItem.d.ts +4 -0
  41. package/dist/cjs/api/types/StreamConfigKeytermsTermsItem.js +3 -0
  42. package/dist/cjs/api/types/StreamConfigReplacementsItem.d.ts +6 -0
  43. package/dist/cjs/api/types/StreamConfigReplacementsItem.js +3 -0
  44. package/dist/cjs/api/types/StreamConfigTranscription.d.ts +3 -1
  45. package/dist/cjs/api/types/StreamErrorDetail.d.ts +7 -5
  46. package/dist/cjs/api/types/TranscribeConfig.d.ts +3 -1
  47. package/dist/cjs/api/types/TranscribeConfigKeyterms.d.ts +8 -0
  48. package/dist/cjs/api/types/TranscribeConfigKeyterms.js +3 -0
  49. package/dist/cjs/api/types/TranscribeConfigKeytermsTermsItem.d.ts +4 -0
  50. package/dist/cjs/api/types/TranscribeConfigKeytermsTermsItem.js +3 -0
  51. package/dist/cjs/api/types/TranscribeErrorMessageError.d.ts +7 -5
  52. package/dist/cjs/api/types/index.d.ts +9 -2
  53. package/dist/cjs/api/types/index.js +9 -2
  54. package/dist/cjs/serialization/resources/documents/resources/sections/client/list.d.ts +3 -3
  55. package/dist/cjs/serialization/resources/documents/resources/sections/client/list.js +2 -2
  56. package/dist/cjs/serialization/resources/documents/resources/templates/client/list.d.ts +3 -3
  57. package/dist/cjs/serialization/resources/documents/resources/templates/client/list.js +2 -2
  58. package/dist/cjs/serialization/resources/index.d.ts +1 -0
  59. package/dist/cjs/serialization/resources/index.js +1 -0
  60. package/dist/cjs/serialization/resources/transcripts/client/requests/TranscriptsCreateRequest.d.ts +6 -0
  61. package/dist/cjs/serialization/resources/transcripts/client/requests/TranscriptsCreateRequest.js +6 -0
  62. package/dist/cjs/serialization/resources/transcripts/index.d.ts +1 -0
  63. package/dist/cjs/serialization/resources/transcripts/index.js +1 -0
  64. package/dist/cjs/serialization/resources/transcripts/types/TranscriptsCreateRequestKeyterms.d.ts +10 -0
  65. package/dist/cjs/serialization/resources/transcripts/types/TranscriptsCreateRequestKeyterms.js +42 -0
  66. package/dist/cjs/serialization/resources/transcripts/types/TranscriptsCreateRequestKeytermsTermsItem.d.ts +9 -0
  67. package/dist/cjs/serialization/resources/transcripts/types/TranscriptsCreateRequestKeytermsTermsItem.js +41 -0
  68. package/dist/cjs/serialization/resources/transcripts/types/TranscriptsCreateRequestReplacementsItem.d.ts +10 -0
  69. package/dist/cjs/serialization/resources/transcripts/types/TranscriptsCreateRequestReplacementsItem.js +42 -0
  70. package/dist/cjs/serialization/resources/transcripts/types/index.d.ts +3 -0
  71. package/dist/cjs/serialization/resources/transcripts/types/index.js +19 -0
  72. package/dist/cjs/serialization/types/GuidedSection.d.ts +2 -16
  73. package/dist/cjs/serialization/types/GuidedSection.js +5 -17
  74. package/dist/cjs/serialization/types/GuidedSectionListItem.d.ts +24 -0
  75. package/dist/cjs/serialization/types/GuidedSectionListItem.js +56 -0
  76. package/dist/cjs/serialization/types/GuidedSectionListItemSource.d.ts +7 -0
  77. package/dist/cjs/serialization/types/{GuidedSectionSource.js → GuidedSectionListItemSource.js} +2 -2
  78. package/dist/cjs/serialization/types/GuidedSectionsCreateRequest.d.ts +1 -1
  79. package/dist/cjs/serialization/types/GuidedSectionsCreateRequest.js +1 -1
  80. package/dist/cjs/serialization/types/GuidedTemplate.d.ts +2 -16
  81. package/dist/cjs/serialization/types/GuidedTemplate.js +5 -17
  82. package/dist/cjs/serialization/types/GuidedTemplateListItem.d.ts +24 -0
  83. package/dist/cjs/serialization/types/GuidedTemplateListItem.js +56 -0
  84. package/dist/cjs/serialization/types/GuidedTemplateListItemSource.d.ts +7 -0
  85. package/dist/cjs/serialization/types/{GuidedTemplateSource.js → GuidedTemplateListItemSource.js} +2 -2
  86. package/dist/cjs/serialization/types/GuidedTemplatesCreateFromScratchRequestGeneration.d.ts +1 -1
  87. package/dist/cjs/serialization/types/GuidedTemplatesCreateFromScratchRequestGeneration.js +1 -1
  88. package/dist/cjs/serialization/types/GuidedTemplatesCreateRequest.d.ts +1 -1
  89. package/dist/cjs/serialization/types/GuidedTemplatesCreateRequest.js +1 -1
  90. package/dist/cjs/serialization/types/StreamConfig.d.ts +4 -0
  91. package/dist/cjs/serialization/types/StreamConfig.js +4 -0
  92. package/dist/cjs/serialization/types/StreamConfigKeyterms.d.ts +10 -0
  93. package/dist/cjs/serialization/types/StreamConfigKeyterms.js +42 -0
  94. package/dist/cjs/serialization/types/StreamConfigKeytermsTermsItem.d.ts +9 -0
  95. package/dist/cjs/serialization/types/StreamConfigKeytermsTermsItem.js +41 -0
  96. package/dist/cjs/serialization/types/StreamConfigReplacementsItem.d.ts +10 -0
  97. package/dist/cjs/serialization/types/StreamConfigReplacementsItem.js +42 -0
  98. package/dist/cjs/serialization/types/StreamConfigTranscription.d.ts +1 -0
  99. package/dist/cjs/serialization/types/StreamConfigTranscription.js +1 -0
  100. package/dist/cjs/serialization/types/StreamErrorDetail.d.ts +6 -5
  101. package/dist/cjs/serialization/types/StreamErrorDetail.js +6 -5
  102. package/dist/cjs/serialization/types/TranscribeConfig.d.ts +2 -0
  103. package/dist/cjs/serialization/types/TranscribeConfig.js +2 -0
  104. package/dist/cjs/serialization/types/TranscribeConfigKeyterms.d.ts +10 -0
  105. package/dist/cjs/serialization/types/TranscribeConfigKeyterms.js +42 -0
  106. package/dist/cjs/serialization/types/TranscribeConfigKeytermsTermsItem.d.ts +9 -0
  107. package/dist/cjs/serialization/types/TranscribeConfigKeytermsTermsItem.js +41 -0
  108. package/dist/cjs/serialization/types/TranscribeErrorMessageError.d.ts +6 -5
  109. package/dist/cjs/serialization/types/TranscribeErrorMessageError.js +6 -5
  110. package/dist/cjs/serialization/types/index.d.ts +9 -2
  111. package/dist/cjs/serialization/types/index.js +9 -2
  112. package/dist/cjs/version.d.ts +1 -1
  113. package/dist/cjs/version.js +1 -1
  114. package/dist/esm/BaseClient.mjs +2 -2
  115. package/dist/esm/api/resources/documents/resources/sections/client/Client.d.mts +2 -10
  116. package/dist/esm/api/resources/documents/resources/sections/client/Client.mjs +1 -9
  117. package/dist/esm/api/resources/documents/resources/templates/client/Client.d.mts +2 -6
  118. package/dist/esm/api/resources/documents/resources/templates/client/Client.mjs +1 -5
  119. package/dist/esm/api/resources/index.d.mts +1 -0
  120. package/dist/esm/api/resources/index.mjs +1 -0
  121. package/dist/esm/api/resources/recordings/client/Client.d.mts +1 -1
  122. package/dist/esm/api/resources/recordings/client/Client.mjs +1 -1
  123. package/dist/esm/api/resources/transcripts/client/Client.d.mts +1 -1
  124. package/dist/esm/api/resources/transcripts/client/Client.mjs +1 -1
  125. package/dist/esm/api/resources/transcripts/client/requests/TranscriptsCreateRequest.d.mts +9 -1
  126. package/dist/esm/api/resources/transcripts/index.d.mts +1 -0
  127. package/dist/esm/api/resources/transcripts/index.mjs +1 -0
  128. package/dist/esm/api/resources/transcripts/types/TranscriptsCreateRequestKeyterms.d.mts +8 -0
  129. package/dist/esm/api/resources/transcripts/types/TranscriptsCreateRequestKeyterms.mjs +2 -0
  130. package/dist/esm/api/resources/transcripts/types/TranscriptsCreateRequestKeytermsTermsItem.d.mts +4 -0
  131. package/dist/esm/api/resources/transcripts/types/TranscriptsCreateRequestKeytermsTermsItem.mjs +2 -0
  132. package/dist/esm/api/resources/transcripts/types/TranscriptsCreateRequestReplacementsItem.d.mts +6 -0
  133. package/dist/esm/api/resources/transcripts/types/TranscriptsCreateRequestReplacementsItem.mjs +2 -0
  134. package/dist/esm/api/resources/transcripts/types/index.d.mts +3 -0
  135. package/dist/esm/api/resources/transcripts/types/index.mjs +3 -0
  136. package/dist/esm/api/types/GuidedSection.d.mts +6 -27
  137. package/dist/esm/api/types/GuidedSectionListItem.d.mts +36 -0
  138. package/dist/esm/api/types/GuidedSectionListItem.mjs +2 -0
  139. package/dist/esm/api/types/GuidedSectionListItemSource.d.mts +7 -0
  140. package/dist/esm/api/types/GuidedSectionListItemSource.mjs +7 -0
  141. package/dist/esm/api/types/GuidedSectionsCreateRequest.d.mts +1 -1
  142. package/dist/esm/api/types/GuidedTemplate.d.mts +6 -27
  143. package/dist/esm/api/types/GuidedTemplateListItem.d.mts +36 -0
  144. package/dist/esm/api/types/GuidedTemplateListItem.mjs +2 -0
  145. package/dist/esm/api/types/GuidedTemplateListItemSource.d.mts +7 -0
  146. package/dist/esm/api/types/GuidedTemplateListItemSource.mjs +7 -0
  147. package/dist/esm/api/types/GuidedTemplatesCreateFromScratchRequest.d.mts +1 -1
  148. package/dist/esm/api/types/GuidedTemplatesCreateFromScratchRequestGeneration.d.mts +1 -1
  149. package/dist/esm/api/types/GuidedTemplatesCreateRequest.d.mts +1 -1
  150. package/dist/esm/api/types/StreamConfig.d.mts +4 -0
  151. package/dist/esm/api/types/StreamConfigKeyterms.d.mts +8 -0
  152. package/dist/esm/api/types/StreamConfigKeyterms.mjs +2 -0
  153. package/dist/esm/api/types/StreamConfigKeytermsTermsItem.d.mts +4 -0
  154. package/dist/esm/api/types/StreamConfigKeytermsTermsItem.mjs +2 -0
  155. package/dist/esm/api/types/StreamConfigReplacementsItem.d.mts +6 -0
  156. package/dist/esm/api/types/StreamConfigReplacementsItem.mjs +2 -0
  157. package/dist/esm/api/types/StreamConfigTranscription.d.mts +3 -1
  158. package/dist/esm/api/types/StreamErrorDetail.d.mts +7 -5
  159. package/dist/esm/api/types/TranscribeConfig.d.mts +3 -1
  160. package/dist/esm/api/types/TranscribeConfigKeyterms.d.mts +8 -0
  161. package/dist/esm/api/types/TranscribeConfigKeyterms.mjs +2 -0
  162. package/dist/esm/api/types/TranscribeConfigKeytermsTermsItem.d.mts +4 -0
  163. package/dist/esm/api/types/TranscribeConfigKeytermsTermsItem.mjs +2 -0
  164. package/dist/esm/api/types/TranscribeErrorMessageError.d.mts +7 -5
  165. package/dist/esm/api/types/index.d.mts +9 -2
  166. package/dist/esm/api/types/index.mjs +9 -2
  167. package/dist/esm/serialization/resources/documents/resources/sections/client/list.d.mts +3 -3
  168. package/dist/esm/serialization/resources/documents/resources/sections/client/list.mjs +2 -2
  169. package/dist/esm/serialization/resources/documents/resources/templates/client/list.d.mts +3 -3
  170. package/dist/esm/serialization/resources/documents/resources/templates/client/list.mjs +2 -2
  171. package/dist/esm/serialization/resources/index.d.mts +1 -0
  172. package/dist/esm/serialization/resources/index.mjs +1 -0
  173. package/dist/esm/serialization/resources/transcripts/client/requests/TranscriptsCreateRequest.d.mts +6 -0
  174. package/dist/esm/serialization/resources/transcripts/client/requests/TranscriptsCreateRequest.mjs +6 -0
  175. package/dist/esm/serialization/resources/transcripts/index.d.mts +1 -0
  176. package/dist/esm/serialization/resources/transcripts/index.mjs +1 -0
  177. package/dist/esm/serialization/resources/transcripts/types/TranscriptsCreateRequestKeyterms.d.mts +10 -0
  178. package/dist/esm/serialization/resources/transcripts/types/TranscriptsCreateRequestKeyterms.mjs +6 -0
  179. package/dist/esm/serialization/resources/transcripts/types/TranscriptsCreateRequestKeytermsTermsItem.d.mts +9 -0
  180. package/dist/esm/serialization/resources/transcripts/types/TranscriptsCreateRequestKeytermsTermsItem.mjs +5 -0
  181. package/dist/esm/serialization/resources/transcripts/types/TranscriptsCreateRequestReplacementsItem.d.mts +10 -0
  182. package/dist/esm/serialization/resources/transcripts/types/TranscriptsCreateRequestReplacementsItem.mjs +6 -0
  183. package/dist/esm/serialization/resources/transcripts/types/index.d.mts +3 -0
  184. package/dist/esm/serialization/resources/transcripts/types/index.mjs +3 -0
  185. package/dist/esm/serialization/types/GuidedSection.d.mts +2 -16
  186. package/dist/esm/serialization/types/GuidedSection.mjs +5 -17
  187. package/dist/esm/serialization/types/GuidedSectionListItem.d.mts +24 -0
  188. package/dist/esm/serialization/types/GuidedSectionListItem.mjs +20 -0
  189. package/dist/esm/serialization/types/GuidedSectionListItemSource.d.mts +7 -0
  190. package/dist/esm/serialization/types/{GuidedSectionSource.mjs → GuidedSectionListItemSource.mjs} +1 -1
  191. package/dist/esm/serialization/types/GuidedSectionsCreateRequest.d.mts +1 -1
  192. package/dist/esm/serialization/types/GuidedSectionsCreateRequest.mjs +1 -1
  193. package/dist/esm/serialization/types/GuidedTemplate.d.mts +2 -16
  194. package/dist/esm/serialization/types/GuidedTemplate.mjs +5 -17
  195. package/dist/esm/serialization/types/GuidedTemplateListItem.d.mts +24 -0
  196. package/dist/esm/serialization/types/GuidedTemplateListItem.mjs +20 -0
  197. package/dist/esm/serialization/types/GuidedTemplateListItemSource.d.mts +7 -0
  198. package/dist/esm/serialization/types/{GuidedTemplateSource.mjs → GuidedTemplateListItemSource.mjs} +1 -1
  199. package/dist/esm/serialization/types/GuidedTemplatesCreateFromScratchRequestGeneration.d.mts +1 -1
  200. package/dist/esm/serialization/types/GuidedTemplatesCreateFromScratchRequestGeneration.mjs +1 -1
  201. package/dist/esm/serialization/types/GuidedTemplatesCreateRequest.d.mts +1 -1
  202. package/dist/esm/serialization/types/GuidedTemplatesCreateRequest.mjs +1 -1
  203. package/dist/esm/serialization/types/StreamConfig.d.mts +4 -0
  204. package/dist/esm/serialization/types/StreamConfig.mjs +4 -0
  205. package/dist/esm/serialization/types/StreamConfigKeyterms.d.mts +10 -0
  206. package/dist/esm/serialization/types/StreamConfigKeyterms.mjs +6 -0
  207. package/dist/esm/serialization/types/StreamConfigKeytermsTermsItem.d.mts +9 -0
  208. package/dist/esm/serialization/types/StreamConfigKeytermsTermsItem.mjs +5 -0
  209. package/dist/esm/serialization/types/StreamConfigReplacementsItem.d.mts +10 -0
  210. package/dist/esm/serialization/types/StreamConfigReplacementsItem.mjs +6 -0
  211. package/dist/esm/serialization/types/StreamConfigTranscription.d.mts +1 -0
  212. package/dist/esm/serialization/types/StreamConfigTranscription.mjs +1 -0
  213. package/dist/esm/serialization/types/StreamErrorDetail.d.mts +6 -5
  214. package/dist/esm/serialization/types/StreamErrorDetail.mjs +6 -5
  215. package/dist/esm/serialization/types/TranscribeConfig.d.mts +2 -0
  216. package/dist/esm/serialization/types/TranscribeConfig.mjs +2 -0
  217. package/dist/esm/serialization/types/TranscribeConfigKeyterms.d.mts +10 -0
  218. package/dist/esm/serialization/types/TranscribeConfigKeyterms.mjs +6 -0
  219. package/dist/esm/serialization/types/TranscribeConfigKeytermsTermsItem.d.mts +9 -0
  220. package/dist/esm/serialization/types/TranscribeConfigKeytermsTermsItem.mjs +5 -0
  221. package/dist/esm/serialization/types/TranscribeErrorMessageError.d.mts +6 -5
  222. package/dist/esm/serialization/types/TranscribeErrorMessageError.mjs +6 -5
  223. package/dist/esm/serialization/types/index.d.mts +9 -2
  224. package/dist/esm/serialization/types/index.mjs +9 -2
  225. package/dist/esm/version.d.mts +1 -1
  226. package/dist/esm/version.mjs +1 -1
  227. package/package.json +1 -1
  228. package/dist/cjs/api/types/GuidedSectionSource.d.ts +0 -6
  229. package/dist/cjs/api/types/GuidedSectionSource.js +0 -9
  230. package/dist/cjs/api/types/GuidedTemplateSource.d.ts +0 -6
  231. package/dist/cjs/api/types/GuidedTemplateSource.js +0 -9
  232. package/dist/cjs/serialization/types/GuidedSectionSource.d.ts +0 -7
  233. package/dist/cjs/serialization/types/GuidedTemplateSource.d.ts +0 -7
  234. package/dist/esm/api/types/GuidedSectionSource.d.mts +0 -6
  235. package/dist/esm/api/types/GuidedSectionSource.mjs +0 -6
  236. package/dist/esm/api/types/GuidedTemplateSource.d.mts +0 -6
  237. package/dist/esm/api/types/GuidedTemplateSource.mjs +0 -6
  238. package/dist/esm/serialization/types/GuidedSectionSource.d.mts +0 -7
  239. package/dist/esm/serialization/types/GuidedTemplateSource.d.mts +0 -7
@@ -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": "4.0.0-rc",
47
- "User-Agent": "@corti/sdk/4.0.0-rc",
46
+ "X-Fern-SDK-Version": "4.0.0-rc.2",
47
+ "User-Agent": "@corti/sdk/4.0.0-rc.2",
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,
@@ -23,7 +23,7 @@ export declare class SectionsClient {
23
23
  * @example
24
24
  * await client.documents.sections.list()
25
25
  */
26
- list(request?: Corti.documents.GuidedSectionsListRequest, requestOptions?: SectionsClient.RequestOptions): core.HttpResponsePromise<Corti.GuidedSection[]>;
26
+ list(request?: Corti.documents.GuidedSectionsListRequest, requestOptions?: SectionsClient.RequestOptions): core.HttpResponsePromise<Corti.GuidedSectionListItem[]>;
27
27
  private __list;
28
28
  /**
29
29
  * Creates a new section with an initial version. When `publish` is true (default),
@@ -38,15 +38,7 @@ export declare class SectionsClient {
38
38
  * @example
39
39
  * await client.documents.sections.create({
40
40
  * name: "name",
41
- * generation: {
42
- * heading: "heading",
43
- * instructions: {
44
- * contentPrompt: "contentPrompt"
45
- * },
46
- * outputSchema: {
47
- * type: "string"
48
- * }
49
- * }
41
+ * inheritFromId: "inheritFromId"
50
42
  * })
51
43
  */
52
44
  create(request: Corti.GuidedSectionsCreateRequest, requestOptions?: SectionsClient.RequestOptions): core.HttpResponsePromise<Corti.GuidedSection>;
@@ -138,15 +138,7 @@ class SectionsClient {
138
138
  * @example
139
139
  * await client.documents.sections.create({
140
140
  * name: "name",
141
- * generation: {
142
- * heading: "heading",
143
- * instructions: {
144
- * contentPrompt: "contentPrompt"
145
- * },
146
- * outputSchema: {
147
- * type: "string"
148
- * }
149
- * }
141
+ * inheritFromId: "inheritFromId"
150
142
  * })
151
143
  */
152
144
  create(request, requestOptions) {
@@ -23,7 +23,7 @@ export declare class TemplatesClient {
23
23
  * @example
24
24
  * await client.documents.templates.list()
25
25
  */
26
- list(request?: Corti.documents.GuidedTemplatesListRequest, requestOptions?: TemplatesClient.RequestOptions): core.HttpResponsePromise<Corti.GuidedTemplate[]>;
26
+ list(request?: Corti.documents.GuidedTemplatesListRequest, requestOptions?: TemplatesClient.RequestOptions): core.HttpResponsePromise<Corti.GuidedTemplateListItem[]>;
27
27
  private __list;
28
28
  /**
29
29
  * Creates a new template with an initial version. When `publish` is true (default),
@@ -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
+ * inheritFromId: "inheritFromId"
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
+ * inheritFromId: "inheritFromId"
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. */
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.
4
+ */
5
+ export interface TranscriptsCreateRequestKeyterms {
6
+ /** Ordered list of words to be recognized. Configuration is case sensitive and limited to 1,000 key terms per stream. */
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. A defined `term` is limited to a length of 50 characters. */
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,31 +1,10 @@
1
1
  import type * as Corti from "../index.js";
2
- export interface GuidedSection {
3
- /** The UUID of the section. */
4
- id: string;
5
- /** Reference to the section to inherit generation configuration from. Inherits from published version by default. */
6
- inheritedFromId?: string | null;
7
- /** True if the section was auto-generated as part of an inline section-composed POST /documents request. */
8
- autoGenerated?: boolean;
9
- /** Whether this section was created by the user or from the Corti standard resources. */
10
- source?: Corti.GuidedSectionSource;
11
- /** The name of the section. */
12
- name: string;
13
- /** BCP 47 languages this section has been tweaked for. Empty means no language-specific tweaks. */
14
- languages: string[];
15
- /** ISO 3166-1 alpha-3 country codes this section has been tweaked for. Empty means no region-specific tweaks. */
16
- regions: string[];
17
- /** Clinical specialties this section has been tweaked for. Empty means no specialty-specific tweaks. */
18
- specialties: string[];
19
- /** The description for the section. */
20
- description?: string;
21
- /** The labels available to use as query param filter in the LIST /sections endpoint. */
22
- labels: Corti.GuidedLabel[];
2
+ /**
3
+ * Section as returned by single-resource endpoints (GET, POST, PATCH on
4
+ * `/documents/sections/{sectionID}`) and when embedded inside a resolved template
5
+ * version. Extends `GuidedSectionListItem` with the resolved `publishedVersion`.
6
+ */
7
+ export interface GuidedSection extends Corti.GuidedSectionListItem {
23
8
  /** The currently published version with section inheritance fully resolved. Present when a version has been published. */
24
9
  publishedVersion?: Corti.GuidedSectionVersion;
25
- /** The original timestamp when the section was created. */
26
- createdAt: Date;
27
- /** The original timestamp when the section was last updated. */
28
- updatedAt: Date;
29
- /** Present when the section has been deleted. GET by ID still returns the full resource with this field populated. */
30
- deletedAt?: Date | null;
31
10
  }
@@ -0,0 +1,36 @@
1
+ import type * as Corti from "../index.js";
2
+ /**
3
+ * Section metadata as returned by the LIST /documents/sections endpoint. Does not
4
+ * include the resolved `publishedVersion` — use GET /documents/sections/{sectionID}
5
+ * to fetch a single section with its published version resolved.
6
+ */
7
+ export interface GuidedSectionListItem {
8
+ /** The UUID of the section. */
9
+ id: string;
10
+ /** Reference to the section to inherit generation configuration from. Inherits from published version by default. */
11
+ inheritedFromId?: string | null;
12
+ /** True if the section was auto-generated as part of an inline section-composed POST /documents request. */
13
+ autoGenerated?: boolean;
14
+ /** Whether this section was created by the user, a project-related API Client or is a Corti standard resource. */
15
+ source?: Corti.GuidedSectionListItemSource;
16
+ /** The name of the section. */
17
+ name: string;
18
+ /** BCP 47 languages this section has been tweaked for. Empty means no language-specific tweaks. */
19
+ languages: string[];
20
+ /** ISO 3166-1 alpha-3 country codes this section has been tweaked for. Empty means no region-specific tweaks. */
21
+ regions: string[];
22
+ /** Clinical specialties this section has been tweaked for. Empty means no specialty-specific tweaks. */
23
+ specialties: string[];
24
+ /** The description for the section. */
25
+ description?: string;
26
+ /** The labels available to use as query param filter in the LIST /sections endpoint. */
27
+ labels: Corti.GuidedLabel[];
28
+ /** The UUID of the creator of this section. */
29
+ createdBy?: string;
30
+ /** The original timestamp when the section was created. */
31
+ createdAt: Date;
32
+ /** The original timestamp when the section was last updated. */
33
+ updatedAt: Date;
34
+ /** Present when the section has been deleted. GET by ID still returns the full resource with this field populated. */
35
+ deletedAt?: Date | null;
36
+ }
@@ -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,7 @@
1
+ /** Whether this section was created by the user, a project-related API Client or is a Corti standard resource. */
2
+ export declare const GuidedSectionListItemSource: {
3
+ readonly User: "user";
4
+ readonly Corti: "corti";
5
+ readonly Project: "project";
6
+ };
7
+ export type GuidedSectionListItemSource = (typeof GuidedSectionListItemSource)[keyof typeof GuidedSectionListItemSource];
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.GuidedSectionListItemSource = void 0;
5
+ /** Whether this section was created by the user, a project-related API Client or is a Corti standard resource. */
6
+ exports.GuidedSectionListItemSource = {
7
+ User: "user",
8
+ Corti: "corti",
9
+ Project: "project",
10
+ };
@@ -1,2 +1,2 @@
1
1
  import type * as Corti from "../index.js";
2
- export type GuidedSectionsCreateRequest = Corti.GuidedSectionsCreateFromScratchRequest | Corti.GuidedSectionsCreateFromInheritanceRequest;
2
+ export type GuidedSectionsCreateRequest = Corti.GuidedSectionsCreateFromInheritanceRequest | Corti.GuidedSectionsCreateFromScratchRequest;
@@ -1,31 +1,10 @@
1
1
  import type * as Corti from "../index.js";
2
- export interface GuidedTemplate {
3
- /** The UUID of the template. */
4
- id: string;
5
- /** Reference to the template to inherit template instructions and sections from. Inherits from published version by default. */
6
- inheritedFromId?: string | null;
7
- /** True if the template was auto-generated based on the section-composed POST /documents request. */
8
- autoGenerated?: boolean;
9
- /** Whether this template was created by the user or is a Corti standard resource. */
10
- source?: Corti.GuidedTemplateSource;
11
- /** The name of this template. Not passed to the LLM. */
12
- name: string;
13
- /** A description for this template. Not passed to the LLM. */
14
- description?: string;
15
- /** BCP 47 language tags this template has been tweaked for (e.g. `["fr", "de", "en-GB"]`). Empty means no language-specific tweaks. */
16
- languages: string[];
17
- /** ISO 3166-1 alpha-3 country codes this template has been tweaked for (e.g. `["BEL"]`). Empty means no region-specific tweaks. */
18
- regions: string[];
19
- /** Clinical specialties this template has been tweaked for. Empty means no specialty-specific tweaks. */
20
- specialties: string[];
21
- /** The available labels to use as query param filter in the LIST /templates endpoint. */
22
- labels: Corti.GuidedLabel[];
2
+ /**
3
+ * Template as returned by single-resource endpoints (GET, POST, PATCH on
4
+ * `/documents/templates/{templateID}`). Extends `GuidedTemplateListItem` with the resolved
5
+ * `publishedVersion`.
6
+ */
7
+ export interface GuidedTemplate extends Corti.GuidedTemplateListItem {
23
8
  /** The currently published version with inheritance fully resolved. Present when a version has been published. */
24
9
  publishedVersion?: Corti.GuidedTemplateVersion;
25
- /** The original timestamp when the template was created. */
26
- createdAt: Date;
27
- /** The original timestamp when the template was last updated. */
28
- updatedAt: Date;
29
- /** Present when the template has been deleted. GET by ID still returns the full resource with this field populated. */
30
- deletedAt?: Date | null;
31
10
  }
@@ -0,0 +1,36 @@
1
+ import type * as Corti from "../index.js";
2
+ /**
3
+ * Template metadata as returned by the LIST /documents/templates endpoint. Does not
4
+ * include the resolved `publishedVersion` — use GET /documents/templates/{templateID}
5
+ * to fetch a single template with its published version resolved.
6
+ */
7
+ export interface GuidedTemplateListItem {
8
+ /** The UUID of the template. */
9
+ id: string;
10
+ /** Reference to the template to inherit template instructions and sections from. Inherits from published version by default. */
11
+ inheritedFromId?: string | null;
12
+ /** True if the template was auto-generated based on the section-composed POST /documents request. */
13
+ autoGenerated?: boolean;
14
+ /** Whether this template was created by the user, a project-related API Client or is a Corti standard resource. */
15
+ source?: Corti.GuidedTemplateListItemSource;
16
+ /** The name of this template. Not passed to the LLM. */
17
+ name: string;
18
+ /** A description for this template. Not passed to the LLM. */
19
+ description?: string;
20
+ /** BCP 47 language tags this template has been tweaked for (e.g. `["fr", "de", "en-GB"]`). Empty means no language-specific tweaks. */
21
+ languages: string[];
22
+ /** ISO 3166-1 alpha-3 country codes this template has been tweaked for (e.g. `["BEL"]`). Empty means no region-specific tweaks. */
23
+ regions: string[];
24
+ /** Clinical specialties this template has been tweaked for. Empty means no specialty-specific tweaks. */
25
+ specialties: string[];
26
+ /** The available labels to use as query param filter in the LIST /templates endpoint. */
27
+ labels: Corti.GuidedLabel[];
28
+ /** The UUID of the creator of this template. */
29
+ createdBy?: string;
30
+ /** The original timestamp when the template was created. */
31
+ createdAt: Date;
32
+ /** The original timestamp when the template was last updated. */
33
+ updatedAt: Date;
34
+ /** Present when the template has been deleted. GET by ID still returns the full resource with this field populated. */
35
+ deletedAt?: Date | null;
36
+ }
@@ -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,7 @@
1
+ /** Whether this template was created by the user, a project-related API Client or is a Corti standard resource. */
2
+ export declare const GuidedTemplateListItemSource: {
3
+ readonly User: "user";
4
+ readonly Corti: "corti";
5
+ readonly Project: "project";
6
+ };
7
+ export type GuidedTemplateListItemSource = (typeof GuidedTemplateListItemSource)[keyof typeof GuidedTemplateListItemSource];
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.GuidedTemplateListItemSource = void 0;
5
+ /** Whether this template was created by the user, a project-related API Client or is a Corti standard resource. */
6
+ exports.GuidedTemplateListItemSource = {
7
+ User: "user",
8
+ Corti: "corti",
9
+ Project: "project",
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
  }
@@ -1,2 +1,2 @@
1
1
  import type * as Corti from "../index.js";
2
- export type GuidedTemplatesCreateRequest = Corti.GuidedTemplatesCreateFromScratchRequest | Corti.GuidedTemplatesCreateFromInheritanceRequest;
2
+ export type GuidedTemplatesCreateRequest = Corti.GuidedTemplatesCreateFromInheritanceRequest | Corti.GuidedTemplatesCreateFromScratchRequest;
@@ -7,4 +7,8 @@ export interface StreamConfig {
7
7
  audioEvents?: Corti.StreamAudioEventsConfig;
8
8
  /** Define the audio format of the incoming audio stream - optional but recommended. When omitted, the server auto-detects the format from the first audio chunk using ffprobe. Supported audio will be processed. Unsupported return an error but might in some cases error silently. If provided (recommended), the provided MIME type must be supported and the audio must match the MIME type. An unsupported MIME type results in `CONFIG_REJECTED`. Audio that differs from the MIME type will return audio validation errors on the socket. See full list of supported MIME types [here](/stt/audio). */
9
9
  audioFormat?: string;
10
+ /** 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. */
11
+ replacements?: Corti.StreamConfigReplacementsItem[];
12
+ /** 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. */
13
+ keyterms?: Corti.StreamConfigKeyterms;
10
14
  }
@@ -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.
4
+ */
5
+ export interface StreamConfigKeyterms {
6
+ /** Ordered list of words to be recognized. Configuration is case sensitive and limited to 1,000 key terms per stream. */
7
+ terms?: Corti.StreamConfigKeytermsTermsItem[];
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 StreamConfigKeytermsTermsItem {
2
+ /** The word to be recognized, defined in its expected written form. A defined `term` is limited to a length of 50 characters. */
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 StreamConfigReplacementsItem {
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 });
@@ -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;
@@ -1,12 +1,14 @@
1
1
  export interface StreamErrorDetail {
2
+ /** Unique identifier for the request, for support and debugging. */
3
+ requestid?: string;
2
4
  /** Error identifier */
3
- id: string;
5
+ id?: string;
4
6
  /** Error title */
5
- title: string;
7
+ title?: string;
6
8
  /** HTTP status code or similar error code */
7
- status: number;
9
+ status?: number;
8
10
  /** Detailed error message */
9
- details: string;
11
+ details?: string;
10
12
  /** Link to documentation or further information */
11
- doc: string;
13
+ doc?: string;
12
14
  }
@@ -14,6 +14,8 @@ export interface TranscribeConfig {
14
14
  audioEvents?: Corti.TranscribeAudioEventsConfig;
15
15
  /** Define the audio format of the incoming audio stream - optional but recommended. When omitted, the server auto-detects the format from the first audio chunk using ffprobe. Supported audio will be processed. Unsupported return an error but might in some cases error silently. If provided (recommended), the provided MIME type must be supported and the audio must match the MIME type. An unsupported MIME type results in `CONFIG_REJECTED`. Audio that differs from the MIME type will return audio validation errors on the socket. See full list of supported MIME types [here](/stt/audio). */
16
16
  audioFormat?: string;
17
- /** 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 limited to 1,000 replacements per stream. */
17
+ /** 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. */
18
18
  replacements?: Corti.TranscribeConfigReplacementsItem[];
19
+ /** 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. */
20
+ keyterms?: Corti.TranscribeConfigKeyterms;
19
21
  }
@@ -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.
4
+ */
5
+ export interface TranscribeConfigKeyterms {
6
+ /** Ordered list of words to be recognized. Configuration is case sensitive and limited to 1,000 key terms per stream. */
7
+ terms?: Corti.TranscribeConfigKeytermsTermsItem[];
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 TranscribeConfigKeytermsTermsItem {
2
+ /** The word to be recognized, defined in its expected written form. A defined `term` is limited to a length of 50 characters. */
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 });