@corti/sdk 0.9.1-rc → 0.10.0-rc.1

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 (237) hide show
  1. package/dist/cjs/Client.d.ts +3 -0
  2. package/dist/cjs/Client.js +13 -8
  3. package/dist/cjs/api/errors/BadGatewayError.d.ts +9 -0
  4. package/dist/cjs/api/errors/BadGatewayError.js +52 -0
  5. package/dist/cjs/api/errors/index.d.ts +1 -0
  6. package/dist/cjs/api/errors/index.js +1 -0
  7. package/dist/cjs/api/resources/agents/client/Client.d.ts +1 -1
  8. package/dist/cjs/api/resources/agents/client/Client.js +11 -1
  9. package/dist/cjs/api/resources/agents/client/requests/AgentsCreateAgent.d.ts +2 -0
  10. package/dist/cjs/api/resources/agents/types/AgentsCreateAgentAgentType.d.ts +12 -0
  11. package/dist/cjs/api/resources/agents/types/AgentsCreateAgentAgentType.js +11 -0
  12. package/dist/cjs/api/resources/agents/types/AgentsCreateAgentExpertsItem.d.ts +1 -1
  13. package/dist/cjs/api/resources/agents/types/index.d.ts +1 -0
  14. package/dist/cjs/api/resources/agents/types/index.js +1 -0
  15. package/dist/cjs/api/resources/auth/client/Client.js +1 -0
  16. package/dist/cjs/api/resources/codes/client/Client.d.ts +59 -0
  17. package/dist/cjs/api/resources/codes/client/Client.js +187 -0
  18. package/dist/cjs/api/resources/codes/client/index.d.ts +2 -0
  19. package/dist/cjs/api/resources/codes/client/index.js +17 -0
  20. package/dist/cjs/api/resources/codes/client/requests/CodesGeneralPredictRequest.d.ts +23 -0
  21. package/dist/cjs/api/resources/codes/client/requests/CodesGeneralPredictRequest.js +5 -0
  22. package/dist/cjs/api/resources/codes/client/requests/index.d.ts +1 -0
  23. package/dist/cjs/api/resources/codes/client/requests/index.js +2 -0
  24. package/dist/cjs/api/resources/codes/index.d.ts +1 -0
  25. package/dist/cjs/api/resources/codes/index.js +17 -0
  26. package/dist/cjs/api/resources/documents/client/Client.d.ts +1 -1
  27. package/dist/cjs/api/resources/documents/client/Client.js +6 -1
  28. package/dist/cjs/api/resources/facts/client/Client.js +6 -0
  29. package/dist/cjs/api/resources/index.d.ts +2 -0
  30. package/dist/cjs/api/resources/index.js +3 -1
  31. package/dist/cjs/api/resources/interactions/client/Client.js +5 -0
  32. package/dist/cjs/api/resources/recordings/client/Client.js +4 -0
  33. package/dist/cjs/api/resources/templates/client/Client.js +3 -0
  34. package/dist/cjs/api/resources/transcripts/client/Client.d.ts +15 -1
  35. package/dist/cjs/api/resources/transcripts/client/Client.js +76 -1
  36. package/dist/cjs/api/types/AgentsCreateExpertReference.d.ts +15 -0
  37. package/dist/cjs/api/types/AgentsCreateExpertReference.js +5 -0
  38. package/dist/cjs/api/types/AgentsCreateMcpServer.d.ts +2 -0
  39. package/dist/cjs/api/types/AgentsExpertReference.d.ts +5 -3
  40. package/dist/cjs/api/types/AgentsMcpServer.d.ts +2 -0
  41. package/dist/cjs/api/types/CodesGeneralReadResponse.d.ts +17 -0
  42. package/dist/cjs/api/types/CodesGeneralReadResponse.js +5 -0
  43. package/dist/cjs/api/types/CodesGeneralReadResponseEvidencesItem.d.ts +9 -0
  44. package/dist/cjs/api/types/CodesGeneralReadResponseEvidencesItem.js +5 -0
  45. package/dist/cjs/api/types/CodesGeneralResponse.d.ts +11 -0
  46. package/dist/cjs/api/types/CodesGeneralResponse.js +5 -0
  47. package/dist/cjs/api/types/CommonAiContext.d.ts +5 -0
  48. package/dist/cjs/api/types/CommonAiContext.js +5 -0
  49. package/dist/cjs/api/types/CommonCodingSystemEnum.d.ts +9 -0
  50. package/dist/cjs/api/types/CommonCodingSystemEnum.js +11 -0
  51. package/dist/cjs/api/types/CommonDocumentIdContext.d.ts +9 -0
  52. package/dist/cjs/api/types/CommonDocumentIdContext.js +5 -0
  53. package/dist/cjs/api/types/DocumentsContextWithFacts.d.ts +1 -1
  54. package/dist/cjs/api/types/DocumentsContextWithTranscript.d.ts +1 -1
  55. package/dist/cjs/api/types/DocumentsCreateRequestWithTemplate.d.ts +1 -1
  56. package/dist/cjs/api/types/DocumentsCreateRequestWithTemplateKey.d.ts +2 -2
  57. package/dist/cjs/api/types/ErrorResponse.d.ts +4 -5
  58. package/dist/cjs/api/types/TranscriptsResponse.d.ts +4 -0
  59. package/dist/cjs/api/types/TranscriptsStatusEnum.d.ts +12 -0
  60. package/dist/cjs/api/types/TranscriptsStatusEnum.js +11 -0
  61. package/dist/cjs/api/types/TranscriptsStatusResponse.d.ts +8 -0
  62. package/dist/cjs/api/types/TranscriptsStatusResponse.js +5 -0
  63. package/dist/cjs/api/types/index.d.ts +9 -0
  64. package/dist/cjs/api/types/index.js +9 -0
  65. package/dist/cjs/custom/CortiClient.d.ts +3 -0
  66. package/dist/cjs/custom/CortiClient.js +5 -0
  67. package/dist/cjs/index.d.ts +4 -0
  68. package/dist/cjs/index.js +6 -1
  69. package/dist/cjs/serialization/resources/agents/client/requests/AgentsCreateAgent.d.ts +2 -0
  70. package/dist/cjs/serialization/resources/agents/client/requests/AgentsCreateAgent.js +2 -0
  71. package/dist/cjs/serialization/resources/agents/types/AgentsCreateAgentAgentType.d.ts +10 -0
  72. package/dist/cjs/serialization/resources/agents/types/AgentsCreateAgentAgentType.js +41 -0
  73. package/dist/cjs/serialization/resources/agents/types/AgentsCreateAgentExpertsItem.d.ts +2 -2
  74. package/dist/cjs/serialization/resources/agents/types/AgentsCreateAgentExpertsItem.js +2 -2
  75. package/dist/cjs/serialization/resources/agents/types/index.d.ts +1 -0
  76. package/dist/cjs/serialization/resources/agents/types/index.js +1 -0
  77. package/dist/cjs/serialization/resources/codes/client/index.d.ts +1 -0
  78. package/dist/cjs/serialization/resources/codes/client/index.js +17 -0
  79. package/dist/cjs/serialization/resources/codes/client/requests/CodesGeneralPredictRequest.d.ts +16 -0
  80. package/dist/cjs/serialization/resources/codes/client/requests/CodesGeneralPredictRequest.js +47 -0
  81. package/dist/cjs/serialization/resources/codes/client/requests/index.d.ts +1 -0
  82. package/dist/cjs/serialization/resources/codes/client/requests/index.js +5 -0
  83. package/dist/cjs/serialization/resources/codes/index.d.ts +1 -0
  84. package/dist/cjs/serialization/resources/codes/index.js +17 -0
  85. package/dist/cjs/serialization/resources/index.d.ts +2 -0
  86. package/dist/cjs/serialization/resources/index.js +3 -1
  87. package/dist/cjs/serialization/types/AgentsCreateExpertReference.d.ts +15 -0
  88. package/dist/cjs/serialization/types/AgentsCreateExpertReference.js +46 -0
  89. package/dist/cjs/serialization/types/AgentsCreateMcpServer.d.ts +1 -0
  90. package/dist/cjs/serialization/types/AgentsCreateMcpServer.js +1 -0
  91. package/dist/cjs/serialization/types/AgentsExpertReference.d.ts +3 -2
  92. package/dist/cjs/serialization/types/AgentsExpertReference.js +3 -2
  93. package/dist/cjs/serialization/types/AgentsMcpServer.d.ts +1 -0
  94. package/dist/cjs/serialization/types/AgentsMcpServer.js +1 -0
  95. package/dist/cjs/serialization/types/CodesGeneralReadResponse.d.ts +17 -0
  96. package/dist/cjs/serialization/types/CodesGeneralReadResponse.js +48 -0
  97. package/dist/cjs/serialization/types/CodesGeneralReadResponseEvidencesItem.d.ts +13 -0
  98. package/dist/cjs/serialization/types/CodesGeneralReadResponseEvidencesItem.js +44 -0
  99. package/dist/cjs/serialization/types/CodesGeneralResponse.d.ts +16 -0
  100. package/dist/cjs/serialization/types/CodesGeneralResponse.js +47 -0
  101. package/dist/cjs/serialization/types/CommonAiContext.d.ts +12 -0
  102. package/dist/cjs/serialization/types/CommonAiContext.js +43 -0
  103. package/dist/cjs/serialization/types/CommonCodingSystemEnum.d.ts +10 -0
  104. package/dist/cjs/serialization/types/CommonCodingSystemEnum.js +41 -0
  105. package/dist/cjs/serialization/types/CommonDocumentIdContext.d.ts +13 -0
  106. package/dist/cjs/serialization/types/CommonDocumentIdContext.js +44 -0
  107. package/dist/cjs/serialization/types/ErrorResponse.d.ts +4 -5
  108. package/dist/cjs/serialization/types/ErrorResponse.js +6 -5
  109. package/dist/cjs/serialization/types/TranscriptsResponse.d.ts +3 -0
  110. package/dist/cjs/serialization/types/TranscriptsResponse.js +3 -0
  111. package/dist/cjs/serialization/types/TranscriptsStatusEnum.d.ts +10 -0
  112. package/dist/cjs/serialization/types/TranscriptsStatusEnum.js +41 -0
  113. package/dist/cjs/serialization/types/TranscriptsStatusResponse.d.ts +13 -0
  114. package/dist/cjs/serialization/types/TranscriptsStatusResponse.js +44 -0
  115. package/dist/cjs/serialization/types/index.d.ts +9 -0
  116. package/dist/cjs/serialization/types/index.js +9 -0
  117. package/dist/cjs/version.d.ts +1 -1
  118. package/dist/cjs/version.js +1 -1
  119. package/dist/esm/Client.d.mts +3 -0
  120. package/dist/esm/Client.mjs +7 -2
  121. package/dist/esm/api/errors/BadGatewayError.d.mts +9 -0
  122. package/dist/esm/api/errors/BadGatewayError.mjs +15 -0
  123. package/dist/esm/api/errors/index.d.mts +1 -0
  124. package/dist/esm/api/errors/index.mjs +1 -0
  125. package/dist/esm/api/resources/agents/client/Client.d.mts +1 -1
  126. package/dist/esm/api/resources/agents/client/Client.mjs +11 -1
  127. package/dist/esm/api/resources/agents/client/requests/AgentsCreateAgent.d.mts +2 -0
  128. package/dist/esm/api/resources/agents/types/AgentsCreateAgentAgentType.d.mts +12 -0
  129. package/dist/esm/api/resources/agents/types/AgentsCreateAgentAgentType.mjs +8 -0
  130. package/dist/esm/api/resources/agents/types/AgentsCreateAgentExpertsItem.d.mts +1 -1
  131. package/dist/esm/api/resources/agents/types/index.d.mts +1 -0
  132. package/dist/esm/api/resources/agents/types/index.mjs +1 -0
  133. package/dist/esm/api/resources/auth/client/Client.mjs +1 -0
  134. package/dist/esm/api/resources/codes/client/Client.d.mts +59 -0
  135. package/dist/esm/api/resources/codes/client/Client.mjs +150 -0
  136. package/dist/esm/api/resources/codes/client/index.d.mts +2 -0
  137. package/dist/esm/api/resources/codes/client/index.mjs +1 -0
  138. package/dist/esm/api/resources/codes/client/requests/CodesGeneralPredictRequest.d.mts +23 -0
  139. package/dist/esm/api/resources/codes/client/requests/CodesGeneralPredictRequest.mjs +4 -0
  140. package/dist/esm/api/resources/codes/client/requests/index.d.mts +1 -0
  141. package/dist/esm/api/resources/codes/client/requests/index.mjs +1 -0
  142. package/dist/esm/api/resources/codes/index.d.mts +1 -0
  143. package/dist/esm/api/resources/codes/index.mjs +1 -0
  144. package/dist/esm/api/resources/documents/client/Client.d.mts +1 -1
  145. package/dist/esm/api/resources/documents/client/Client.mjs +6 -1
  146. package/dist/esm/api/resources/facts/client/Client.mjs +6 -0
  147. package/dist/esm/api/resources/index.d.mts +2 -0
  148. package/dist/esm/api/resources/index.mjs +2 -0
  149. package/dist/esm/api/resources/interactions/client/Client.mjs +5 -0
  150. package/dist/esm/api/resources/recordings/client/Client.mjs +4 -0
  151. package/dist/esm/api/resources/templates/client/Client.mjs +3 -0
  152. package/dist/esm/api/resources/transcripts/client/Client.d.mts +15 -1
  153. package/dist/esm/api/resources/transcripts/client/Client.mjs +76 -1
  154. package/dist/esm/api/types/AgentsCreateExpertReference.d.mts +15 -0
  155. package/dist/esm/api/types/AgentsCreateExpertReference.mjs +4 -0
  156. package/dist/esm/api/types/AgentsCreateMcpServer.d.mts +2 -0
  157. package/dist/esm/api/types/AgentsExpertReference.d.mts +5 -3
  158. package/dist/esm/api/types/AgentsMcpServer.d.mts +2 -0
  159. package/dist/esm/api/types/CodesGeneralReadResponse.d.mts +17 -0
  160. package/dist/esm/api/types/CodesGeneralReadResponse.mjs +4 -0
  161. package/dist/esm/api/types/CodesGeneralReadResponseEvidencesItem.d.mts +9 -0
  162. package/dist/esm/api/types/CodesGeneralReadResponseEvidencesItem.mjs +4 -0
  163. package/dist/esm/api/types/CodesGeneralResponse.d.mts +11 -0
  164. package/dist/esm/api/types/CodesGeneralResponse.mjs +4 -0
  165. package/dist/esm/api/types/CommonAiContext.d.mts +5 -0
  166. package/dist/esm/api/types/CommonAiContext.mjs +4 -0
  167. package/dist/esm/api/types/CommonCodingSystemEnum.d.mts +9 -0
  168. package/dist/esm/api/types/CommonCodingSystemEnum.mjs +8 -0
  169. package/dist/esm/api/types/CommonDocumentIdContext.d.mts +9 -0
  170. package/dist/esm/api/types/CommonDocumentIdContext.mjs +4 -0
  171. package/dist/esm/api/types/DocumentsContextWithFacts.d.mts +1 -1
  172. package/dist/esm/api/types/DocumentsContextWithTranscript.d.mts +1 -1
  173. package/dist/esm/api/types/DocumentsCreateRequestWithTemplate.d.mts +1 -1
  174. package/dist/esm/api/types/DocumentsCreateRequestWithTemplateKey.d.mts +2 -2
  175. package/dist/esm/api/types/ErrorResponse.d.mts +4 -5
  176. package/dist/esm/api/types/TranscriptsResponse.d.mts +4 -0
  177. package/dist/esm/api/types/TranscriptsStatusEnum.d.mts +12 -0
  178. package/dist/esm/api/types/TranscriptsStatusEnum.mjs +8 -0
  179. package/dist/esm/api/types/TranscriptsStatusResponse.d.mts +8 -0
  180. package/dist/esm/api/types/TranscriptsStatusResponse.mjs +4 -0
  181. package/dist/esm/api/types/index.d.mts +9 -0
  182. package/dist/esm/api/types/index.mjs +9 -0
  183. package/dist/esm/custom/CortiClient.d.mts +3 -0
  184. package/dist/esm/custom/CortiClient.mjs +5 -0
  185. package/dist/esm/index.d.mts +4 -0
  186. package/dist/esm/index.mjs +4 -0
  187. package/dist/esm/serialization/resources/agents/client/requests/AgentsCreateAgent.d.mts +2 -0
  188. package/dist/esm/serialization/resources/agents/client/requests/AgentsCreateAgent.mjs +2 -0
  189. package/dist/esm/serialization/resources/agents/types/AgentsCreateAgentAgentType.d.mts +10 -0
  190. package/dist/esm/serialization/resources/agents/types/AgentsCreateAgentAgentType.mjs +5 -0
  191. package/dist/esm/serialization/resources/agents/types/AgentsCreateAgentExpertsItem.d.mts +2 -2
  192. package/dist/esm/serialization/resources/agents/types/AgentsCreateAgentExpertsItem.mjs +2 -2
  193. package/dist/esm/serialization/resources/agents/types/index.d.mts +1 -0
  194. package/dist/esm/serialization/resources/agents/types/index.mjs +1 -0
  195. package/dist/esm/serialization/resources/codes/client/index.d.mts +1 -0
  196. package/dist/esm/serialization/resources/codes/client/index.mjs +1 -0
  197. package/dist/esm/serialization/resources/codes/client/requests/CodesGeneralPredictRequest.d.mts +16 -0
  198. package/dist/esm/serialization/resources/codes/client/requests/CodesGeneralPredictRequest.mjs +11 -0
  199. package/dist/esm/serialization/resources/codes/client/requests/index.d.mts +1 -0
  200. package/dist/esm/serialization/resources/codes/client/requests/index.mjs +1 -0
  201. package/dist/esm/serialization/resources/codes/index.d.mts +1 -0
  202. package/dist/esm/serialization/resources/codes/index.mjs +1 -0
  203. package/dist/esm/serialization/resources/index.d.mts +2 -0
  204. package/dist/esm/serialization/resources/index.mjs +2 -0
  205. package/dist/esm/serialization/types/AgentsCreateExpertReference.d.mts +15 -0
  206. package/dist/esm/serialization/types/AgentsCreateExpertReference.mjs +10 -0
  207. package/dist/esm/serialization/types/AgentsCreateMcpServer.d.mts +1 -0
  208. package/dist/esm/serialization/types/AgentsCreateMcpServer.mjs +1 -0
  209. package/dist/esm/serialization/types/AgentsExpertReference.d.mts +3 -2
  210. package/dist/esm/serialization/types/AgentsExpertReference.mjs +3 -2
  211. package/dist/esm/serialization/types/AgentsMcpServer.d.mts +1 -0
  212. package/dist/esm/serialization/types/AgentsMcpServer.mjs +1 -0
  213. package/dist/esm/serialization/types/CodesGeneralReadResponse.d.mts +17 -0
  214. package/dist/esm/serialization/types/CodesGeneralReadResponse.mjs +12 -0
  215. package/dist/esm/serialization/types/CodesGeneralReadResponseEvidencesItem.d.mts +13 -0
  216. package/dist/esm/serialization/types/CodesGeneralReadResponseEvidencesItem.mjs +8 -0
  217. package/dist/esm/serialization/types/CodesGeneralResponse.d.mts +16 -0
  218. package/dist/esm/serialization/types/CodesGeneralResponse.mjs +11 -0
  219. package/dist/esm/serialization/types/CommonAiContext.d.mts +12 -0
  220. package/dist/esm/serialization/types/CommonAiContext.mjs +7 -0
  221. package/dist/esm/serialization/types/CommonCodingSystemEnum.d.mts +10 -0
  222. package/dist/esm/serialization/types/CommonCodingSystemEnum.mjs +5 -0
  223. package/dist/esm/serialization/types/CommonDocumentIdContext.d.mts +13 -0
  224. package/dist/esm/serialization/types/CommonDocumentIdContext.mjs +8 -0
  225. package/dist/esm/serialization/types/ErrorResponse.d.mts +4 -5
  226. package/dist/esm/serialization/types/ErrorResponse.mjs +6 -5
  227. package/dist/esm/serialization/types/TranscriptsResponse.d.mts +3 -0
  228. package/dist/esm/serialization/types/TranscriptsResponse.mjs +3 -0
  229. package/dist/esm/serialization/types/TranscriptsStatusEnum.d.mts +10 -0
  230. package/dist/esm/serialization/types/TranscriptsStatusEnum.mjs +5 -0
  231. package/dist/esm/serialization/types/TranscriptsStatusResponse.d.mts +13 -0
  232. package/dist/esm/serialization/types/TranscriptsStatusResponse.mjs +8 -0
  233. package/dist/esm/serialization/types/index.d.mts +9 -0
  234. package/dist/esm/serialization/types/index.mjs +9 -0
  235. package/dist/esm/version.d.mts +1 -1
  236. package/dist/esm/version.mjs +1 -1
  237. package/package.json +1 -1
@@ -11,10 +11,12 @@ export * as transcripts from "./transcripts/index.mjs";
11
11
  export * as facts from "./facts/index.mjs";
12
12
  export * as documents from "./documents/index.mjs";
13
13
  export * as templates from "./templates/index.mjs";
14
+ export * as codes from "./codes/index.mjs";
14
15
  export * from "./interactions/client/requests/index.mjs";
15
16
  export * from "./transcripts/client/requests/index.mjs";
16
17
  export * from "./facts/client/requests/index.mjs";
17
18
  export * from "./documents/client/requests/index.mjs";
18
19
  export * from "./templates/client/requests/index.mjs";
20
+ export * from "./codes/client/requests/index.mjs";
19
21
  export * from "./auth/client/requests/index.mjs";
20
22
  export * from "./agents/client/requests/index.mjs";
@@ -79,6 +79,7 @@ export class Interactions {
79
79
  queryParameters: _queryParams,
80
80
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
81
81
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
82
+ withCredentials: true,
82
83
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
83
84
  });
84
85
  if (_response.ok) {
@@ -190,6 +191,7 @@ export class Interactions {
190
191
  }),
191
192
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
192
193
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
194
+ withCredentials: true,
193
195
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
194
196
  });
195
197
  if (_response.ok) {
@@ -284,6 +286,7 @@ export class Interactions {
284
286
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
285
287
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
286
288
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
289
+ withCredentials: true,
287
290
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
288
291
  });
289
292
  if (_response.ok) {
@@ -368,6 +371,7 @@ export class Interactions {
368
371
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
369
372
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
370
373
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
374
+ withCredentials: true,
371
375
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
372
376
  });
373
377
  if (_response.ok) {
@@ -450,6 +454,7 @@ export class Interactions {
450
454
  }),
451
455
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
452
456
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
457
+ withCredentials: true,
453
458
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
454
459
  });
455
460
  if (_response.ok) {
@@ -48,6 +48,7 @@ export class Recordings {
48
48
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
49
49
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
50
50
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
51
+ withCredentials: true,
51
52
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
52
53
  });
53
54
  if (_response.ok) {
@@ -147,6 +148,7 @@ export class Recordings {
147
148
  body: _binaryUploadRequest.body,
148
149
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
149
150
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
151
+ withCredentials: true,
150
152
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
151
153
  });
152
154
  if (_response.ok) {
@@ -238,6 +240,7 @@ export class Recordings {
238
240
  responseType: "binary-response",
239
241
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
240
242
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
243
+ withCredentials: true,
241
244
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
242
245
  });
243
246
  if (_response.ok) {
@@ -328,6 +331,7 @@ export class Recordings {
328
331
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
329
332
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
330
333
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
334
+ withCredentials: true,
331
335
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
332
336
  });
333
337
  if (_response.ok) {
@@ -65,6 +65,7 @@ export class Templates {
65
65
  queryParameters: _queryParams,
66
66
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
67
67
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
68
+ withCredentials: true,
68
69
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
69
70
  });
70
71
  if (_response.ok) {
@@ -170,6 +171,7 @@ export class Templates {
170
171
  queryParameters: _queryParams,
171
172
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
172
173
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
174
+ withCredentials: true,
173
175
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
174
176
  });
175
177
  if (_response.ok) {
@@ -248,6 +250,7 @@ export class Templates {
248
250
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
249
251
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
250
252
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
253
+ withCredentials: true,
251
254
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
252
255
  });
253
256
  if (_response.ok) {
@@ -50,7 +50,7 @@ export declare class Transcripts {
50
50
  list(id: Corti.Uuid, request?: Corti.TranscriptsListRequest, requestOptions?: Transcripts.RequestOptions): core.HttpResponsePromise<Corti.TranscriptsListResponse>;
51
51
  private __list;
52
52
  /**
53
- * Create a transcript from an audio file attached, via `/recordings` endpoint, to the interaction.<br/><Note>Each interaction may have more than one audio file and transcript associated with it. While audio files up to 60min in total duration, or 150MB in total size, may be attached to an interaction, synchronous processing is only supported for audio files less than ~2min in duration.<br/><br/>If an audio file takes longer to transcribe than the 25sec synchronous processing timeout, then it will continue to process asynchronously. In this scenario, an empty transcript will be returned with a location header that can be used to retrieve the final transcript.<br/><br/>The client can poll the Get Transcript endpoint (`GET /interactions/{id}/transcripts/{transcriptId}/status`) for transcript status changes:<br/>- `200 OK` with status `processing`, `completed`, or `failed`<br/>- `404 Not Found` if the `interactionId` or `transcriptId` are invalid<br/><br/>The completed transcript can be retrieved via the Get Transcript endpoint (`GET /interactions/{id}/transcripts/{transcriptId}/`).</Note>
53
+ * Create a transcript from an audio file attached, via `/recordings` endpoint, to the interaction.<br/><Note>Each interaction may have more than one audio file and transcript associated with it. While audio files up to 60min in total duration, or 150MB in total size, may be attached to an interaction, synchronous processing is only supported for audio files less than ~2min in duration.<br/><br/>If an audio file takes longer to transcribe than the 25sec synchronous processing timeout, then it will continue to process asynchronously. In this scenario, an incomplete or empty transcript with `status=processing` will be returned with a location header that can be used to retrieve the final transcript.<br/><br/>The client can poll the Get Transcript endpoint (`GET /interactions/{id}/transcripts/{transcriptId}/status`) for transcript status changes:<br/>- `200 OK` with status `processing`, `completed`, or `failed`<br/>- `404 Not Found` if the `interactionId` or `transcriptId` are invalid<br/><br/>The completed transcript can be retrieved via the Get Transcript endpoint (`GET /interactions/{id}/transcripts/{transcriptId}/`).</Note>
54
54
  *
55
55
  * @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
56
56
  * @param {Corti.TranscriptsCreateRequest} request
@@ -106,5 +106,19 @@ export declare class Transcripts {
106
106
  */
107
107
  delete(id: Corti.Uuid, transcriptId: Corti.Uuid, requestOptions?: Transcripts.RequestOptions): core.HttpResponsePromise<void>;
108
108
  private __delete;
109
+ /**
110
+ * Poll for transcript creation status.<br/><Note>Status of `completed` indicates the transcript is finalized.<br/>If the transcript is retrieved while status is `processing`, then it will be incomplete.<br/>Status of `failed` indicate the transcript was not created successfully; please retry.</Note>
111
+ *
112
+ * @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
113
+ * @param {Corti.Uuid} transcriptId - The unique identifier of the transcript. Must be a valid UUID.
114
+ * @param {Transcripts.RequestOptions} requestOptions - Request-specific configuration.
115
+ *
116
+ * @throws {@link Corti.NotFoundError}
117
+ *
118
+ * @example
119
+ * await client.transcripts.getStatus("f47ac10b-58cc-4372-a567-0e02b2c3d479", "f47ac10b-58cc-4372-a567-0e02b2c3d479")
120
+ */
121
+ getStatus(id: Corti.Uuid, transcriptId: Corti.Uuid, requestOptions?: Transcripts.RequestOptions): core.HttpResponsePromise<Corti.TranscriptsStatusResponse>;
122
+ private __getStatus;
109
123
  protected _getAuthorizationHeader(): Promise<string | undefined>;
110
124
  }
@@ -56,6 +56,7 @@ export class Transcripts {
56
56
  queryParameters: _queryParams,
57
57
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
58
58
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
59
+ withCredentials: true,
59
60
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
60
61
  });
61
62
  if (_response.ok) {
@@ -126,7 +127,7 @@ export class Transcripts {
126
127
  });
127
128
  }
128
129
  /**
129
- * Create a transcript from an audio file attached, via `/recordings` endpoint, to the interaction.<br/><Note>Each interaction may have more than one audio file and transcript associated with it. While audio files up to 60min in total duration, or 150MB in total size, may be attached to an interaction, synchronous processing is only supported for audio files less than ~2min in duration.<br/><br/>If an audio file takes longer to transcribe than the 25sec synchronous processing timeout, then it will continue to process asynchronously. In this scenario, an empty transcript will be returned with a location header that can be used to retrieve the final transcript.<br/><br/>The client can poll the Get Transcript endpoint (`GET /interactions/{id}/transcripts/{transcriptId}/status`) for transcript status changes:<br/>- `200 OK` with status `processing`, `completed`, or `failed`<br/>- `404 Not Found` if the `interactionId` or `transcriptId` are invalid<br/><br/>The completed transcript can be retrieved via the Get Transcript endpoint (`GET /interactions/{id}/transcripts/{transcriptId}/`).</Note>
130
+ * Create a transcript from an audio file attached, via `/recordings` endpoint, to the interaction.<br/><Note>Each interaction may have more than one audio file and transcript associated with it. While audio files up to 60min in total duration, or 150MB in total size, may be attached to an interaction, synchronous processing is only supported for audio files less than ~2min in duration.<br/><br/>If an audio file takes longer to transcribe than the 25sec synchronous processing timeout, then it will continue to process asynchronously. In this scenario, an incomplete or empty transcript with `status=processing` will be returned with a location header that can be used to retrieve the final transcript.<br/><br/>The client can poll the Get Transcript endpoint (`GET /interactions/{id}/transcripts/{transcriptId}/status`) for transcript status changes:<br/>- `200 OK` with status `processing`, `completed`, or `failed`<br/>- `404 Not Found` if the `interactionId` or `transcriptId` are invalid<br/><br/>The completed transcript can be retrieved via the Get Transcript endpoint (`GET /interactions/{id}/transcripts/{transcriptId}/`).</Note>
130
131
  *
131
132
  * @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
132
133
  * @param {Corti.TranscriptsCreateRequest} request
@@ -165,6 +166,7 @@ export class Transcripts {
165
166
  }),
166
167
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
167
168
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
169
+ withCredentials: true,
168
170
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
169
171
  });
170
172
  if (_response.ok) {
@@ -265,6 +267,7 @@ export class Transcripts {
265
267
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
266
268
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
267
269
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
270
+ withCredentials: true,
268
271
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
269
272
  });
270
273
  if (_response.ok) {
@@ -365,6 +368,7 @@ export class Transcripts {
365
368
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
366
369
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
367
370
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
371
+ withCredentials: true,
368
372
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
369
373
  });
370
374
  if (_response.ok) {
@@ -425,6 +429,77 @@ export class Transcripts {
425
429
  }
426
430
  });
427
431
  }
432
+ /**
433
+ * Poll for transcript creation status.<br/><Note>Status of `completed` indicates the transcript is finalized.<br/>If the transcript is retrieved while status is `processing`, then it will be incomplete.<br/>Status of `failed` indicate the transcript was not created successfully; please retry.</Note>
434
+ *
435
+ * @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
436
+ * @param {Corti.Uuid} transcriptId - The unique identifier of the transcript. Must be a valid UUID.
437
+ * @param {Transcripts.RequestOptions} requestOptions - Request-specific configuration.
438
+ *
439
+ * @throws {@link Corti.NotFoundError}
440
+ *
441
+ * @example
442
+ * await client.transcripts.getStatus("f47ac10b-58cc-4372-a567-0e02b2c3d479", "f47ac10b-58cc-4372-a567-0e02b2c3d479")
443
+ */
444
+ getStatus(id, transcriptId, requestOptions) {
445
+ return core.HttpResponsePromise.fromPromise(this.__getStatus(id, transcriptId, requestOptions));
446
+ }
447
+ __getStatus(id, transcriptId, requestOptions) {
448
+ return __awaiter(this, void 0, void 0, function* () {
449
+ var _a, _b;
450
+ const _response = yield core.fetcher({
451
+ url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)).base, `interactions/${encodeURIComponent(serializers.Uuid.jsonOrThrow(id, { omitUndefined: true }))}/transcripts/${encodeURIComponent(serializers.Uuid.jsonOrThrow(transcriptId, { omitUndefined: true }))}/status`),
452
+ method: "GET",
453
+ headers: mergeHeaders((_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, mergeOnlyDefinedHeaders({
454
+ Authorization: yield this._getAuthorizationHeader(),
455
+ "Tenant-Name": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.tenantName,
456
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
457
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
458
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
459
+ withCredentials: true,
460
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
461
+ });
462
+ if (_response.ok) {
463
+ return {
464
+ data: serializers.TranscriptsStatusResponse.parseOrThrow(_response.body, {
465
+ unrecognizedObjectKeys: "passthrough",
466
+ allowUnrecognizedUnionMembers: true,
467
+ allowUnrecognizedEnumValues: true,
468
+ skipValidation: true,
469
+ breadcrumbsPrefix: ["response"],
470
+ }),
471
+ rawResponse: _response.rawResponse,
472
+ };
473
+ }
474
+ if (_response.error.reason === "status-code") {
475
+ switch (_response.error.statusCode) {
476
+ case 404:
477
+ throw new Corti.NotFoundError(_response.error.body, _response.rawResponse);
478
+ default:
479
+ throw new errors.CortiError({
480
+ statusCode: _response.error.statusCode,
481
+ body: _response.error.body,
482
+ rawResponse: _response.rawResponse,
483
+ });
484
+ }
485
+ }
486
+ switch (_response.error.reason) {
487
+ case "non-json":
488
+ throw new errors.CortiError({
489
+ statusCode: _response.error.statusCode,
490
+ body: _response.error.rawBody,
491
+ rawResponse: _response.rawResponse,
492
+ });
493
+ case "timeout":
494
+ throw new errors.CortiTimeoutError("Timeout exceeded when calling GET /interactions/{id}/transcripts/{transcriptId}/status.");
495
+ case "unknown":
496
+ throw new errors.CortiError({
497
+ message: _response.error.errorMessage,
498
+ rawResponse: _response.rawResponse,
499
+ });
500
+ }
501
+ });
502
+ }
428
503
  _getAuthorizationHeader() {
429
504
  return __awaiter(this, void 0, void 0, function* () {
430
505
  const bearer = yield core.Supplier.get(this._options.token);
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * A reference to a registry expert when creating an agent, either id or name must be provided. If both are passed, the id will be used.
6
+ */
7
+ export interface AgentsCreateExpertReference {
8
+ type: "reference";
9
+ /** The unique identifier of the expert. */
10
+ id?: string;
11
+ /** The name of the expert. */
12
+ name?: string;
13
+ /** Optional. Additional system instructions appended to the default system prompt when creating an expert from the registry, extending the expert's behavior. */
14
+ systemPrompt?: string;
15
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -11,6 +11,8 @@ export interface AgentsCreateMcpServer {
11
11
  transportType: Corti.AgentsCreateMcpServerTransportType;
12
12
  /** Type of authorization used by the MCP server. */
13
13
  authorizationType: Corti.AgentsCreateMcpServerAuthorizationType;
14
+ /** OAuth2.0 authorization scope to request. */
15
+ authorizationScope?: string;
14
16
  /** URL of the MCP server. */
15
17
  url: string;
16
18
  /** Redirect URI for OAuth2.0 authorization. */
@@ -2,12 +2,14 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  /**
5
- * A reference to an expert, either id or name must be provided. If both are passed, the id will be used.
5
+ * A reference to an expert returned by the API. The expert's id and name are always provided. systemPrompt is included only when a registry expert was created with a custom system prompt.
6
6
  */
7
7
  export interface AgentsExpertReference {
8
8
  type: "reference";
9
9
  /** The unique identifier of the expert. */
10
- id?: string;
10
+ id: string;
11
11
  /** The name of the expert. */
12
- name?: string;
12
+ name: string;
13
+ /** Optional. Additional system instructions appended to the default system prompt when creating an expert from the registry, extending the expert's behavior. */
14
+ systemPrompt?: string;
13
15
  }
@@ -11,6 +11,8 @@ export interface AgentsMcpServer {
11
11
  transportType: Corti.AgentsMcpServerTransportType;
12
12
  /** Type of authorization used by the MCP server. */
13
13
  authorizationType: Corti.AgentsMcpServerAuthorizationType;
14
+ /** OAuth2.0 authorization scope to request. */
15
+ authorizationScope?: string;
14
16
  /** URL of the MCP server. */
15
17
  url: string;
16
18
  /** Redirect URI for OAuth2.0 authorization. */
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Corti from "../index.mjs";
5
+ /**
6
+ * Predicted or candidate code record.
7
+ */
8
+ export interface CodesGeneralReadResponse {
9
+ /** The coding system used */
10
+ system: Corti.CommonCodingSystemEnum;
11
+ /** The medical code */
12
+ code: string;
13
+ /** Description of the medical code */
14
+ display: string;
15
+ /** The evidence for the prediction */
16
+ evidences?: Corti.CodesGeneralReadResponseEvidencesItem[];
17
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface CodesGeneralReadResponseEvidencesItem {
5
+ /** Index from the context input array */
6
+ contextIndex?: number;
7
+ /** Part of input text */
8
+ text?: string;
9
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Corti from "../index.mjs";
5
+ export interface CodesGeneralResponse {
6
+ /** Highest confidence bundle of codes, preselected by the code prediction model */
7
+ codes: Corti.CodesGeneralReadResponse[];
8
+ /** Full list of candidate codes as predicted by the model, rank sorted by model confidence */
9
+ candidates: Corti.CodesGeneralReadResponse[];
10
+ usageInfo?: Corti.CommonUsageInfo;
11
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Corti from "../index.mjs";
5
+ export type CommonAiContext = Corti.CommonTextContext | Corti.CommonDocumentIdContext;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type CommonCodingSystemEnum = "icd10cm" | "icd10pcs" | "cpt";
5
+ export declare const CommonCodingSystemEnum: {
6
+ readonly Icd10Cm: "icd10cm";
7
+ readonly Icd10Pcs: "icd10pcs";
8
+ readonly Cpt: "cpt";
9
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export const CommonCodingSystemEnum = {
5
+ Icd10Cm: "icd10cm",
6
+ Icd10Pcs: "icd10pcs",
7
+ Cpt: "cpt",
8
+ };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface CommonDocumentIdContext {
5
+ /** The type of context, always "documentId" in this context. */
6
+ type: "documentId";
7
+ /** A referenced document ID to be used as input to the model. */
8
+ documentId: string;
9
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -5,6 +5,6 @@ import * as Corti from "../index.mjs";
5
5
  export interface DocumentsContextWithFacts {
6
6
  /** The type of context data that will be used in the request: `Facts`, `Transcript`, or `String`. */
7
7
  type: "facts";
8
- /** An array of facts. */
8
+ /** An array of facts. See [guide](/textgen/documents-standard##generate-document-from-facts-as-input). */
9
9
  data: Corti.FactsContext[];
10
10
  }
@@ -5,6 +5,6 @@ import * as Corti from "../index.mjs";
5
5
  export interface DocumentsContextWithTranscript {
6
6
  /** The type of context data that will be used in the request: `Facts`, `Transcript`, or `String`. */
7
7
  type: "transcript";
8
- /** Transcript object can accept the full transcript in one string, or individual transcript segments. */
8
+ /** The transcript `data.text` object can accept the full transcript in one string, alternatively pass each transcript segment into a `context` object - [see guide](/textgen/documents-standard#generate-document-from-transcript-as-input). */
9
9
  data: Corti.CommonTranscriptRequest;
10
10
  }
@@ -3,7 +3,7 @@
3
3
  */
4
4
  import * as Corti from "../index.mjs";
5
5
  export interface DocumentsCreateRequestWithTemplate {
6
- /** An array of context objects. Currently accepts exactly one context object to be used as input for document generation. */
6
+ /** An array of context objects. Currently only accepts multiple objects when of type `transcript`. See [guide](/textgen/documents-standard#generate-document-from-transcript-as-input). */
7
7
  context: Corti.DocumentsContext[];
8
8
  /** Template details if the template should be generated during the request. */
9
9
  template: Corti.DocumentsTemplate;
@@ -3,9 +3,9 @@
3
3
  */
4
4
  import * as Corti from "../index.mjs";
5
5
  export interface DocumentsCreateRequestWithTemplateKey {
6
- /** An array of context objects. Currently accepts exactly one context object to be used as input for document generation. */
6
+ /** An array of context objects. Currently only accepts multiple objects when of type `transcript`. See [guide](/textgen/documents-standard#generate-document-from-transcript-as-input). */
7
7
  context: Corti.DocumentsContext[];
8
- /** The key of the template that informs on what kind of document is to be generated. */
8
+ /** The key of the template referencing the sections for generating a document. */
9
9
  templateKey: string;
10
10
  /** An optional name for the document. */
11
11
  name?: string;
@@ -2,10 +2,9 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  export interface ErrorResponse {
5
- requestid?: string;
5
+ requestid: string;
6
+ status: number;
6
7
  type: string;
7
- status?: number;
8
- title?: string;
9
- details?: string;
10
- instance?: string;
8
+ detail: string;
9
+ validationErrors?: Record<string, string>[];
11
10
  }
@@ -10,4 +10,8 @@ export interface TranscriptsResponse {
10
10
  /** An array of transcripts. */
11
11
  transcripts?: Corti.CommonTranscriptResponse[] | null;
12
12
  usageInfo: Corti.CommonUsageInfo;
13
+ /** The unique identifier for the associated recording. */
14
+ recordingId: Corti.Uuid;
15
+ /** The current status of the transcript processing. */
16
+ status: Corti.TranscriptsStatusEnum;
13
17
  }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Possible values for transcript processing status.
6
+ */
7
+ export type TranscriptsStatusEnum = "completed" | "processing" | "failed";
8
+ export declare const TranscriptsStatusEnum: {
9
+ readonly Completed: "completed";
10
+ readonly Processing: "processing";
11
+ readonly Failed: "failed";
12
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export const TranscriptsStatusEnum = {
5
+ Completed: "completed",
6
+ Processing: "processing",
7
+ Failed: "failed",
8
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Corti from "../index.mjs";
5
+ export interface TranscriptsStatusResponse {
6
+ /** The current status of the transcript processing. */
7
+ status: Corti.TranscriptsStatusEnum;
8
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -1,3 +1,4 @@
1
+ export * from "./CommonCodingSystemEnum.mjs";
1
2
  export * from "./DocumentsContext.mjs";
2
3
  export * from "./DocumentsContextWithFacts.mjs";
3
4
  export * from "./DocumentsContextWithTranscript.mjs";
@@ -20,7 +21,9 @@ export * from "./DocumentsCreateRequest.mjs";
20
21
  export * from "./DocumentsCreateRequestWithTemplateKey.mjs";
21
22
  export * from "./DocumentsCreateRequestWithTemplate.mjs";
22
23
  export * from "./DocumentsSectionInput.mjs";
24
+ export * from "./CommonDocumentIdContext.mjs";
23
25
  export * from "./CommonTextContext.mjs";
26
+ export * from "./CommonAiContext.mjs";
24
27
  export * from "./FactsCreateInput.mjs";
25
28
  export * from "./FactsBatchUpdateInput.mjs";
26
29
  export * from "./TranscriptsParticipant.mjs";
@@ -37,6 +40,9 @@ export * from "./FactsCreateResponse.mjs";
37
40
  export * from "./FactsListResponse.mjs";
38
41
  export * from "./FactsBatchUpdateResponse.mjs";
39
42
  export * from "./FactsBatchUpdateItem.mjs";
43
+ export * from "./CodesGeneralResponse.mjs";
44
+ export * from "./CodesGeneralReadResponseEvidencesItem.mjs";
45
+ export * from "./CodesGeneralReadResponse.mjs";
40
46
  export * from "./FactsExtractResponseFactsItem.mjs";
41
47
  export * from "./FactsExtractResponse.mjs";
42
48
  export * from "./InteractionsGetResponse.mjs";
@@ -49,6 +55,8 @@ export * from "./TranscriptsResponse.mjs";
49
55
  export * from "./TranscriptsListResponse.mjs";
50
56
  export * from "./TranscriptsListItem.mjs";
51
57
  export * from "./TranscriptsData.mjs";
58
+ export * from "./TranscriptsStatusResponse.mjs";
59
+ export * from "./TranscriptsStatusEnum.mjs";
52
60
  export * from "./TemplatesSection.mjs";
53
61
  export * from "./CommonSortingDirectionEnum.mjs";
54
62
  export * from "./TemplatesDocumentationModeEnum.mjs";
@@ -143,6 +151,7 @@ export * from "./AgentsAgentExpertsItem.mjs";
143
151
  export * from "./AgentsAgent.mjs";
144
152
  export * from "./AgentsAgentReference.mjs";
145
153
  export * from "./AgentsCreateExpert.mjs";
154
+ export * from "./AgentsCreateExpertReference.mjs";
146
155
  export * from "./AgentsExpert.mjs";
147
156
  export * from "./AgentsExpertReference.mjs";
148
157
  export * from "./AgentsAgentResponse.mjs";
@@ -1,3 +1,4 @@
1
+ export * from "./CommonCodingSystemEnum.mjs";
1
2
  export * from "./DocumentsContext.mjs";
2
3
  export * from "./DocumentsContextWithFacts.mjs";
3
4
  export * from "./DocumentsContextWithTranscript.mjs";
@@ -20,7 +21,9 @@ export * from "./DocumentsCreateRequest.mjs";
20
21
  export * from "./DocumentsCreateRequestWithTemplateKey.mjs";
21
22
  export * from "./DocumentsCreateRequestWithTemplate.mjs";
22
23
  export * from "./DocumentsSectionInput.mjs";
24
+ export * from "./CommonDocumentIdContext.mjs";
23
25
  export * from "./CommonTextContext.mjs";
26
+ export * from "./CommonAiContext.mjs";
24
27
  export * from "./FactsCreateInput.mjs";
25
28
  export * from "./FactsBatchUpdateInput.mjs";
26
29
  export * from "./TranscriptsParticipant.mjs";
@@ -37,6 +40,9 @@ export * from "./FactsCreateResponse.mjs";
37
40
  export * from "./FactsListResponse.mjs";
38
41
  export * from "./FactsBatchUpdateResponse.mjs";
39
42
  export * from "./FactsBatchUpdateItem.mjs";
43
+ export * from "./CodesGeneralResponse.mjs";
44
+ export * from "./CodesGeneralReadResponseEvidencesItem.mjs";
45
+ export * from "./CodesGeneralReadResponse.mjs";
40
46
  export * from "./FactsExtractResponseFactsItem.mjs";
41
47
  export * from "./FactsExtractResponse.mjs";
42
48
  export * from "./InteractionsGetResponse.mjs";
@@ -49,6 +55,8 @@ export * from "./TranscriptsResponse.mjs";
49
55
  export * from "./TranscriptsListResponse.mjs";
50
56
  export * from "./TranscriptsListItem.mjs";
51
57
  export * from "./TranscriptsData.mjs";
58
+ export * from "./TranscriptsStatusResponse.mjs";
59
+ export * from "./TranscriptsStatusEnum.mjs";
52
60
  export * from "./TemplatesSection.mjs";
53
61
  export * from "./CommonSortingDirectionEnum.mjs";
54
62
  export * from "./TemplatesDocumentationModeEnum.mjs";
@@ -143,6 +151,7 @@ export * from "./AgentsAgentExpertsItem.mjs";
143
151
  export * from "./AgentsAgent.mjs";
144
152
  export * from "./AgentsAgentReference.mjs";
145
153
  export * from "./AgentsCreateExpert.mjs";
154
+ export * from "./AgentsCreateExpertReference.mjs";
146
155
  export * from "./AgentsExpert.mjs";
147
156
  export * from "./AgentsExpertReference.mjs";
148
157
  export * from "./AgentsAgentResponse.mjs";