@corti/sdk 0.1.3-alpha → 0.1.3-rc

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 (271) hide show
  1. package/README.md +29 -16
  2. package/dist/cjs/Client.js +2 -2
  3. package/dist/cjs/api/errors/NotFoundError.d.ts +1 -2
  4. package/dist/cjs/api/index.d.ts +4 -0
  5. package/dist/cjs/api/index.js +4 -0
  6. package/dist/cjs/api/resources/documents/client/Client.d.ts +3 -3
  7. package/dist/cjs/api/resources/documents/client/Client.js +4 -10
  8. package/dist/cjs/api/resources/facts/client/Client.d.ts +6 -4
  9. package/dist/cjs/api/resources/facts/client/Client.js +6 -4
  10. package/dist/cjs/api/resources/facts/client/requests/FactsUpdateRequest.d.ts +2 -2
  11. package/dist/cjs/api/resources/index.d.ts +1 -2
  12. package/dist/cjs/api/resources/index.js +2 -3
  13. package/dist/cjs/api/resources/interactions/client/Client.d.ts +5 -5
  14. package/dist/cjs/api/resources/interactions/client/Client.js +5 -5
  15. package/dist/cjs/api/resources/recordings/client/Client.d.ts +6 -8
  16. package/dist/cjs/api/resources/recordings/client/Client.js +13 -24
  17. package/dist/cjs/api/resources/templates/client/Client.d.ts +2 -2
  18. package/dist/cjs/api/resources/templates/client/Client.js +2 -2
  19. package/dist/cjs/api/resources/transcripts/client/Client.d.ts +5 -6
  20. package/dist/cjs/api/resources/transcripts/client/Client.js +5 -6
  21. package/dist/cjs/api/resources/transcripts/client/requests/TranscriptsCreateRequest.d.ts +1 -4
  22. package/dist/cjs/api/resources/transcripts/index.d.ts +0 -1
  23. package/dist/cjs/api/resources/transcripts/index.js +0 -1
  24. package/dist/cjs/api/types/CommonTranscriptRequest.d.ts +17 -0
  25. package/dist/cjs/api/types/{CommonTranscript.d.ts → CommonTranscriptResponse.d.ts} +1 -1
  26. package/dist/cjs/api/types/DocumentsContext.d.ts +11 -5
  27. package/dist/cjs/api/types/DocumentsContextWithFacts.d.ts +8 -0
  28. package/dist/cjs/api/types/DocumentsContextWithString.d.ts +7 -0
  29. package/dist/cjs/api/types/DocumentsContextWithString.js +5 -0
  30. package/dist/cjs/api/types/DocumentsContextWithTranscript.d.ts +8 -0
  31. package/dist/cjs/api/types/DocumentsContextWithTranscript.js +5 -0
  32. package/dist/cjs/api/types/DocumentsCreateRequest.d.ts +7 -1
  33. package/dist/cjs/api/types/DocumentsCreateRequestWithTemplate.d.ts +2 -4
  34. package/dist/cjs/api/types/DocumentsCreateRequestWithTemplateKey.d.ts +2 -4
  35. package/dist/cjs/api/types/DocumentsTemplate.d.ts +1 -10
  36. package/dist/cjs/api/types/DocumentsTemplateWithSectionKeys.d.ts +11 -0
  37. package/dist/cjs/api/types/DocumentsTemplateWithSectionKeys.js +5 -0
  38. package/dist/cjs/api/types/FactsBatchUpdateInput.d.ts +1 -1
  39. package/dist/cjs/api/types/FactsCreateItem.d.ts +1 -1
  40. package/dist/cjs/api/types/FactsListItem.d.ts +1 -1
  41. package/dist/cjs/api/types/TemplatesSection.d.ts +1 -1
  42. package/dist/cjs/api/types/TemplatesSectionTranslation.d.ts +11 -0
  43. package/dist/cjs/api/types/TemplatesSectionTranslation.js +5 -0
  44. package/dist/cjs/api/types/TemplatesTranslation.d.ts +2 -2
  45. package/dist/cjs/api/types/TranscriptsData.d.ts +1 -1
  46. package/dist/cjs/api/types/TranscriptsResponse.d.ts +1 -1
  47. package/dist/cjs/api/types/index.d.ts +7 -4
  48. package/dist/cjs/api/types/index.js +7 -4
  49. package/dist/cjs/core/exports.d.ts +1 -0
  50. package/dist/cjs/{api/resources/transcripts/types/index.js → core/exports.js} +1 -1
  51. package/dist/cjs/core/file/exports.d.ts +1 -0
  52. package/dist/cjs/core/file/exports.js +2 -0
  53. package/dist/cjs/core/file/file.d.ts +5 -0
  54. package/dist/cjs/core/file/file.js +203 -0
  55. package/dist/cjs/core/file/index.d.ts +2 -0
  56. package/dist/cjs/core/file/index.js +18 -0
  57. package/dist/cjs/core/file/types.d.ts +66 -0
  58. package/dist/cjs/core/file/types.js +2 -0
  59. package/dist/cjs/core/index.d.ts +1 -0
  60. package/dist/cjs/core/index.js +2 -1
  61. package/dist/cjs/core/schemas/utils/maybeSkipValidation.js +1 -1
  62. package/dist/cjs/core/websocket/ws.js +1 -1
  63. package/dist/cjs/custom/CortiAuth.d.ts +8 -0
  64. package/dist/cjs/custom/CortiAuth.js +7 -0
  65. package/dist/cjs/custom/CortiClient.js +6 -11
  66. package/dist/cjs/custom/RefreshBearerProvider.d.ts +10 -5
  67. package/dist/cjs/custom/RefreshBearerProvider.js +1 -1
  68. package/dist/cjs/custom/index.d.ts +1 -0
  69. package/dist/cjs/{serialization/resources/transcripts/types → custom}/index.js +1 -1
  70. package/dist/cjs/custom/utils/getEnvironmentFromString.d.ts +6 -0
  71. package/dist/cjs/custom/utils/getEnvironmentFromString.js +13 -0
  72. package/dist/cjs/environments.d.ts +4 -6
  73. package/dist/cjs/environments.js +2 -5
  74. package/dist/cjs/exports.d.ts +1 -0
  75. package/dist/cjs/exports.js +17 -0
  76. package/dist/cjs/serialization/resources/index.d.ts +1 -2
  77. package/dist/cjs/serialization/resources/index.js +2 -3
  78. package/dist/cjs/serialization/resources/transcripts/client/requests/TranscriptsCreateRequest.d.ts +0 -2
  79. package/dist/cjs/serialization/resources/transcripts/client/requests/TranscriptsCreateRequest.js +0 -2
  80. package/dist/cjs/serialization/resources/transcripts/index.d.ts +0 -1
  81. package/dist/cjs/serialization/resources/transcripts/index.js +0 -1
  82. package/dist/cjs/serialization/types/CommonTranscriptRequest.d.ts +17 -0
  83. package/dist/cjs/serialization/types/CommonTranscriptRequest.js +48 -0
  84. package/dist/cjs/serialization/types/{CommonTranscript.d.ts → CommonTranscriptResponse.d.ts} +2 -2
  85. package/dist/cjs/serialization/types/{CommonTranscript.js → CommonTranscriptResponse.js} +2 -2
  86. package/dist/cjs/serialization/types/DocumentsContext.d.ts +13 -6
  87. package/dist/cjs/serialization/types/DocumentsContext.js +12 -5
  88. package/dist/cjs/serialization/types/DocumentsContextWithFacts.d.ts +13 -0
  89. package/dist/cjs/serialization/{resources/transcripts/types/TranscriptsCreateRequestModelName.js → types/DocumentsContextWithFacts.js} +6 -3
  90. package/dist/cjs/serialization/types/DocumentsContextWithString.d.ts +12 -0
  91. package/dist/cjs/serialization/types/{DocumentsContextTypeEnum.js → DocumentsContextWithString.js} +4 -2
  92. package/dist/cjs/serialization/types/DocumentsContextWithTranscript.d.ts +13 -0
  93. package/dist/cjs/serialization/types/{DocumentsContextData.js → DocumentsContextWithTranscript.js} +5 -8
  94. package/dist/cjs/serialization/types/DocumentsCreateRequest.d.ts +1 -2
  95. package/dist/cjs/serialization/types/DocumentsCreateRequest.js +0 -2
  96. package/dist/cjs/serialization/types/DocumentsCreateRequestWithTemplate.d.ts +0 -1
  97. package/dist/cjs/serialization/types/DocumentsCreateRequestWithTemplate.js +0 -1
  98. package/dist/cjs/serialization/types/DocumentsCreateRequestWithTemplateKey.d.ts +0 -1
  99. package/dist/cjs/serialization/types/DocumentsCreateRequestWithTemplateKey.js +0 -1
  100. package/dist/cjs/serialization/types/DocumentsTemplate.d.ts +2 -7
  101. package/dist/cjs/serialization/types/DocumentsTemplate.js +2 -41
  102. package/dist/cjs/serialization/types/DocumentsTemplateWithSectionKeys.d.ts +14 -0
  103. package/dist/cjs/serialization/types/DocumentsTemplateWithSectionKeys.js +45 -0
  104. package/dist/cjs/serialization/types/TemplatesSection.d.ts +2 -2
  105. package/dist/cjs/serialization/types/TemplatesSection.js +2 -2
  106. package/dist/cjs/serialization/types/TemplatesSectionTranslation.d.ts +14 -0
  107. package/dist/cjs/serialization/types/TemplatesSectionTranslation.js +45 -0
  108. package/dist/cjs/serialization/types/TemplatesTranslation.d.ts +2 -2
  109. package/dist/cjs/serialization/types/TemplatesTranslation.js +2 -2
  110. package/dist/cjs/serialization/types/TranscriptsData.d.ts +2 -2
  111. package/dist/cjs/serialization/types/TranscriptsData.js +2 -2
  112. package/dist/cjs/serialization/types/TranscriptsResponse.d.ts +2 -2
  113. package/dist/cjs/serialization/types/TranscriptsResponse.js +2 -2
  114. package/dist/cjs/serialization/types/index.d.ts +7 -4
  115. package/dist/cjs/serialization/types/index.js +7 -4
  116. package/dist/cjs/version.d.ts +1 -1
  117. package/dist/cjs/version.js +1 -1
  118. package/dist/esm/Client.mjs +2 -2
  119. package/dist/esm/api/errors/NotFoundError.d.mts +1 -2
  120. package/dist/esm/api/index.d.mts +4 -0
  121. package/dist/esm/api/index.mjs +4 -0
  122. package/dist/esm/api/resources/documents/client/Client.d.mts +3 -3
  123. package/dist/esm/api/resources/documents/client/Client.mjs +4 -10
  124. package/dist/esm/api/resources/facts/client/Client.d.mts +6 -4
  125. package/dist/esm/api/resources/facts/client/Client.mjs +6 -4
  126. package/dist/esm/api/resources/facts/client/requests/FactsUpdateRequest.d.mts +2 -2
  127. package/dist/esm/api/resources/index.d.mts +1 -2
  128. package/dist/esm/api/resources/index.mjs +1 -2
  129. package/dist/esm/api/resources/interactions/client/Client.d.mts +5 -5
  130. package/dist/esm/api/resources/interactions/client/Client.mjs +5 -5
  131. package/dist/esm/api/resources/recordings/client/Client.d.mts +6 -8
  132. package/dist/esm/api/resources/recordings/client/Client.mjs +13 -24
  133. package/dist/esm/api/resources/templates/client/Client.d.mts +2 -2
  134. package/dist/esm/api/resources/templates/client/Client.mjs +2 -2
  135. package/dist/esm/api/resources/transcripts/client/Client.d.mts +5 -6
  136. package/dist/esm/api/resources/transcripts/client/Client.mjs +5 -6
  137. package/dist/esm/api/resources/transcripts/client/requests/TranscriptsCreateRequest.d.mts +1 -4
  138. package/dist/esm/api/resources/transcripts/index.d.mts +0 -1
  139. package/dist/esm/api/resources/transcripts/index.mjs +0 -1
  140. package/dist/esm/api/types/CommonTranscriptRequest.d.mts +17 -0
  141. package/dist/esm/api/types/{CommonTranscript.d.mts → CommonTranscriptResponse.d.mts} +1 -1
  142. package/dist/esm/api/types/DocumentsContext.d.mts +11 -5
  143. package/dist/esm/api/types/DocumentsContextWithFacts.d.mts +8 -0
  144. package/dist/esm/api/types/DocumentsContextWithString.d.mts +7 -0
  145. package/dist/esm/api/types/DocumentsContextWithString.mjs +4 -0
  146. package/dist/esm/api/types/DocumentsContextWithTranscript.d.mts +8 -0
  147. package/dist/esm/api/types/DocumentsContextWithTranscript.mjs +4 -0
  148. package/dist/esm/api/types/DocumentsCreateRequest.d.mts +7 -1
  149. package/dist/esm/api/types/DocumentsCreateRequestWithTemplate.d.mts +2 -4
  150. package/dist/esm/api/types/DocumentsCreateRequestWithTemplateKey.d.mts +2 -4
  151. package/dist/esm/api/types/DocumentsTemplate.d.mts +1 -10
  152. package/dist/esm/api/types/DocumentsTemplateWithSectionKeys.d.mts +11 -0
  153. package/dist/esm/api/types/DocumentsTemplateWithSectionKeys.mjs +4 -0
  154. package/dist/esm/api/types/FactsBatchUpdateInput.d.mts +1 -1
  155. package/dist/esm/api/types/FactsCreateItem.d.mts +1 -1
  156. package/dist/esm/api/types/FactsListItem.d.mts +1 -1
  157. package/dist/esm/api/types/TemplatesSection.d.mts +1 -1
  158. package/dist/esm/api/types/TemplatesSectionTranslation.d.mts +11 -0
  159. package/dist/esm/api/types/TemplatesSectionTranslation.mjs +4 -0
  160. package/dist/esm/api/types/TemplatesTranslation.d.mts +2 -2
  161. package/dist/esm/api/types/TranscriptsData.d.mts +1 -1
  162. package/dist/esm/api/types/TranscriptsResponse.d.mts +1 -1
  163. package/dist/esm/api/types/index.d.mts +7 -4
  164. package/dist/esm/api/types/index.mjs +7 -4
  165. package/dist/esm/core/exports.d.mts +1 -0
  166. package/dist/esm/core/exports.mjs +1 -0
  167. package/dist/esm/core/file/exports.d.mts +1 -0
  168. package/dist/esm/core/file/exports.mjs +1 -0
  169. package/dist/esm/core/file/file.d.mts +5 -0
  170. package/dist/esm/core/file/file.mjs +167 -0
  171. package/dist/esm/core/file/index.d.mts +2 -0
  172. package/dist/esm/core/file/index.mjs +2 -0
  173. package/dist/esm/core/file/types.d.mts +66 -0
  174. package/dist/esm/core/file/types.mjs +1 -0
  175. package/dist/esm/core/index.d.mts +1 -0
  176. package/dist/esm/core/index.mjs +1 -0
  177. package/dist/esm/core/schemas/utils/maybeSkipValidation.mjs +1 -1
  178. package/dist/esm/core/websocket/ws.mjs +1 -1
  179. package/dist/esm/custom/CortiAuth.d.mts +8 -0
  180. package/dist/esm/custom/CortiAuth.mjs +7 -0
  181. package/dist/esm/custom/CortiClient.mjs +6 -11
  182. package/dist/esm/custom/RefreshBearerProvider.d.mts +10 -5
  183. package/dist/esm/custom/RefreshBearerProvider.mjs +1 -1
  184. package/dist/esm/custom/index.d.mts +1 -0
  185. package/dist/esm/custom/index.mjs +1 -0
  186. package/dist/esm/custom/utils/getEnvironmentFromString.d.mts +6 -0
  187. package/dist/esm/custom/utils/getEnvironmentFromString.mjs +10 -0
  188. package/dist/esm/environments.d.mts +4 -6
  189. package/dist/esm/environments.mjs +2 -5
  190. package/dist/esm/exports.d.mts +1 -0
  191. package/dist/esm/exports.mjs +1 -0
  192. package/dist/esm/serialization/resources/index.d.mts +1 -2
  193. package/dist/esm/serialization/resources/index.mjs +1 -2
  194. package/dist/esm/serialization/resources/transcripts/client/requests/TranscriptsCreateRequest.d.mts +0 -2
  195. package/dist/esm/serialization/resources/transcripts/client/requests/TranscriptsCreateRequest.mjs +0 -2
  196. package/dist/esm/serialization/resources/transcripts/index.d.mts +0 -1
  197. package/dist/esm/serialization/resources/transcripts/index.mjs +0 -1
  198. package/dist/esm/serialization/types/CommonTranscriptRequest.d.mts +17 -0
  199. package/dist/esm/serialization/types/CommonTranscriptRequest.mjs +12 -0
  200. package/dist/esm/serialization/types/{CommonTranscript.d.mts → CommonTranscriptResponse.d.mts} +2 -2
  201. package/dist/esm/serialization/types/{CommonTranscript.mjs → CommonTranscriptResponse.mjs} +1 -1
  202. package/dist/esm/serialization/types/DocumentsContext.d.mts +13 -6
  203. package/dist/esm/serialization/types/DocumentsContext.mjs +12 -5
  204. package/dist/esm/serialization/types/DocumentsContextWithFacts.d.mts +13 -0
  205. package/dist/esm/serialization/types/DocumentsContextWithFacts.mjs +8 -0
  206. package/dist/esm/serialization/types/DocumentsContextWithString.d.mts +12 -0
  207. package/dist/esm/serialization/types/{DocumentsContextTypeEnum.mjs → DocumentsContextWithString.mjs} +3 -1
  208. package/dist/esm/serialization/types/DocumentsContextWithTranscript.d.mts +13 -0
  209. package/dist/esm/serialization/types/DocumentsContextWithTranscript.mjs +8 -0
  210. package/dist/esm/serialization/types/DocumentsCreateRequest.d.mts +1 -2
  211. package/dist/esm/serialization/types/DocumentsCreateRequest.mjs +0 -2
  212. package/dist/esm/serialization/types/DocumentsCreateRequestWithTemplate.d.mts +0 -1
  213. package/dist/esm/serialization/types/DocumentsCreateRequestWithTemplate.mjs +0 -1
  214. package/dist/esm/serialization/types/DocumentsCreateRequestWithTemplateKey.d.mts +0 -1
  215. package/dist/esm/serialization/types/DocumentsCreateRequestWithTemplateKey.mjs +0 -1
  216. package/dist/esm/serialization/types/DocumentsTemplate.d.mts +2 -7
  217. package/dist/esm/serialization/types/DocumentsTemplate.mjs +2 -8
  218. package/dist/esm/serialization/types/DocumentsTemplateWithSectionKeys.d.mts +14 -0
  219. package/dist/esm/serialization/types/DocumentsTemplateWithSectionKeys.mjs +9 -0
  220. package/dist/esm/serialization/types/TemplatesSection.d.mts +2 -2
  221. package/dist/esm/serialization/types/TemplatesSection.mjs +2 -2
  222. package/dist/esm/serialization/types/TemplatesSectionTranslation.d.mts +14 -0
  223. package/dist/esm/serialization/types/TemplatesSectionTranslation.mjs +9 -0
  224. package/dist/esm/serialization/types/TemplatesTranslation.d.mts +2 -2
  225. package/dist/esm/serialization/types/TemplatesTranslation.mjs +2 -2
  226. package/dist/esm/serialization/types/TranscriptsData.d.mts +2 -2
  227. package/dist/esm/serialization/types/TranscriptsData.mjs +2 -2
  228. package/dist/esm/serialization/types/TranscriptsResponse.d.mts +2 -2
  229. package/dist/esm/serialization/types/TranscriptsResponse.mjs +2 -2
  230. package/dist/esm/serialization/types/index.d.mts +7 -4
  231. package/dist/esm/serialization/types/index.mjs +7 -4
  232. package/dist/esm/version.d.mts +1 -1
  233. package/dist/esm/version.mjs +1 -1
  234. package/package.json +4 -3
  235. package/dist/cjs/api/resources/transcripts/types/TranscriptsCreateRequestModelName.d.ts +0 -12
  236. package/dist/cjs/api/resources/transcripts/types/TranscriptsCreateRequestModelName.js +0 -11
  237. package/dist/cjs/api/resources/transcripts/types/index.d.ts +0 -1
  238. package/dist/cjs/api/types/DocumentsContextData.d.ts +0 -14
  239. package/dist/cjs/api/types/DocumentsContextTypeEnum.d.ts +0 -9
  240. package/dist/cjs/api/types/DocumentsContextTypeEnum.js +0 -11
  241. package/dist/cjs/api/types/DocumentsCreateRequestWithTemplateId.d.ts +0 -16
  242. package/dist/cjs/serialization/resources/transcripts/types/TranscriptsCreateRequestModelName.d.ts +0 -10
  243. package/dist/cjs/serialization/resources/transcripts/types/index.d.ts +0 -1
  244. package/dist/cjs/serialization/types/DocumentsContextData.d.ts +0 -12
  245. package/dist/cjs/serialization/types/DocumentsContextTypeEnum.d.ts +0 -10
  246. package/dist/cjs/serialization/types/DocumentsCreateRequestWithTemplateId.d.ts +0 -18
  247. package/dist/cjs/serialization/types/DocumentsCreateRequestWithTemplateId.js +0 -49
  248. package/dist/esm/api/resources/transcripts/types/TranscriptsCreateRequestModelName.d.mts +0 -12
  249. package/dist/esm/api/resources/transcripts/types/TranscriptsCreateRequestModelName.mjs +0 -8
  250. package/dist/esm/api/resources/transcripts/types/index.d.mts +0 -1
  251. package/dist/esm/api/resources/transcripts/types/index.mjs +0 -1
  252. package/dist/esm/api/types/DocumentsContextData.d.mts +0 -14
  253. package/dist/esm/api/types/DocumentsContextTypeEnum.d.mts +0 -9
  254. package/dist/esm/api/types/DocumentsContextTypeEnum.mjs +0 -8
  255. package/dist/esm/api/types/DocumentsCreateRequestWithTemplateId.d.mts +0 -16
  256. package/dist/esm/serialization/resources/transcripts/types/TranscriptsCreateRequestModelName.d.mts +0 -10
  257. package/dist/esm/serialization/resources/transcripts/types/TranscriptsCreateRequestModelName.mjs +0 -5
  258. package/dist/esm/serialization/resources/transcripts/types/index.d.mts +0 -1
  259. package/dist/esm/serialization/resources/transcripts/types/index.mjs +0 -1
  260. package/dist/esm/serialization/types/DocumentsContextData.d.mts +0 -12
  261. package/dist/esm/serialization/types/DocumentsContextData.mjs +0 -11
  262. package/dist/esm/serialization/types/DocumentsContextTypeEnum.d.mts +0 -10
  263. package/dist/esm/serialization/types/DocumentsCreateRequestWithTemplateId.d.mts +0 -18
  264. package/dist/esm/serialization/types/DocumentsCreateRequestWithTemplateId.mjs +0 -13
  265. package/reference.md +0 -1706
  266. /package/dist/cjs/api/types/{CommonTranscript.js → CommonTranscriptRequest.js} +0 -0
  267. /package/dist/cjs/api/types/{DocumentsContextData.js → CommonTranscriptResponse.js} +0 -0
  268. /package/dist/cjs/api/types/{DocumentsCreateRequestWithTemplateId.js → DocumentsContextWithFacts.js} +0 -0
  269. /package/dist/esm/api/types/{CommonTranscript.mjs → CommonTranscriptRequest.mjs} +0 -0
  270. /package/dist/esm/api/types/{DocumentsContextData.mjs → CommonTranscriptResponse.mjs} +0 -0
  271. /package/dist/esm/api/types/{DocumentsCreateRequestWithTemplateId.mjs → DocumentsContextWithFacts.mjs} +0 -0
@@ -1,7 +1,10 @@
1
1
  export * from "./DocumentsContext.js";
2
- export * from "./DocumentsContextData.js";
2
+ export * from "./DocumentsContextWithFacts.js";
3
+ export * from "./DocumentsContextWithTranscript.js";
4
+ export * from "./DocumentsContextWithString.js";
3
5
  export * from "./DocumentsSection.js";
4
6
  export * from "./DocumentsTemplate.js";
7
+ export * from "./DocumentsTemplateWithSectionKeys.js";
5
8
  export * from "./InteractionsEncounterCreateRequest.js";
6
9
  export * from "./InteractionsEncounterUpdateRequest.js";
7
10
  export * from "./InteractionsEncounterResponse.js";
@@ -12,7 +15,6 @@ export * from "./FactsFactGroupsItemTranslationsItem.js";
12
15
  export * from "./FactsFactGroupsItem.js";
13
16
  export * from "./InteractionsPatient.js";
14
17
  export * from "./DocumentsCreateRequest.js";
15
- export * from "./DocumentsCreateRequestWithTemplateId.js";
16
18
  export * from "./DocumentsCreateRequestWithTemplateKey.js";
17
19
  export * from "./DocumentsCreateRequestWithTemplate.js";
18
20
  export * from "./DocumentsSectionInput.js";
@@ -46,16 +48,17 @@ export * from "./TemplatesSection.js";
46
48
  export * from "./CommonSortingDirectionEnum.js";
47
49
  export * from "./TemplatesItem.js";
48
50
  export * from "./TemplatesSectionSorted.js";
49
- export * from "./CommonTranscript.js";
51
+ export * from "./CommonTranscriptRequest.js";
52
+ export * from "./CommonTranscriptResponse.js";
50
53
  export * from "./Uuid.js";
51
54
  export * from "./CommonUsageInfo.js";
52
- export * from "./DocumentsContextTypeEnum.js";
53
55
  export * from "./InteractionsEncounterStatusEnum.js";
54
56
  export * from "./InteractionsEncounterTypeEnum.js";
55
57
  export * from "./InteractionsGenderEnum.js";
56
58
  export * from "./CommonSourceEnum.js";
57
59
  export * from "./TranscriptsParticipantRoleEnum.js";
58
60
  export * from "./TemplatesWritingStyle.js";
61
+ export * from "./TemplatesSectionTranslation.js";
59
62
  export * from "./TemplatesTranslation.js";
60
63
  export * from "./StreamConfigMessage.js";
61
64
  export * from "./StreamConfig.js";
@@ -15,9 +15,12 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./DocumentsContext.js"), exports);
18
- __exportStar(require("./DocumentsContextData.js"), exports);
18
+ __exportStar(require("./DocumentsContextWithFacts.js"), exports);
19
+ __exportStar(require("./DocumentsContextWithTranscript.js"), exports);
20
+ __exportStar(require("./DocumentsContextWithString.js"), exports);
19
21
  __exportStar(require("./DocumentsSection.js"), exports);
20
22
  __exportStar(require("./DocumentsTemplate.js"), exports);
23
+ __exportStar(require("./DocumentsTemplateWithSectionKeys.js"), exports);
21
24
  __exportStar(require("./InteractionsEncounterCreateRequest.js"), exports);
22
25
  __exportStar(require("./InteractionsEncounterUpdateRequest.js"), exports);
23
26
  __exportStar(require("./InteractionsEncounterResponse.js"), exports);
@@ -28,7 +31,6 @@ __exportStar(require("./FactsFactGroupsItemTranslationsItem.js"), exports);
28
31
  __exportStar(require("./FactsFactGroupsItem.js"), exports);
29
32
  __exportStar(require("./InteractionsPatient.js"), exports);
30
33
  __exportStar(require("./DocumentsCreateRequest.js"), exports);
31
- __exportStar(require("./DocumentsCreateRequestWithTemplateId.js"), exports);
32
34
  __exportStar(require("./DocumentsCreateRequestWithTemplateKey.js"), exports);
33
35
  __exportStar(require("./DocumentsCreateRequestWithTemplate.js"), exports);
34
36
  __exportStar(require("./DocumentsSectionInput.js"), exports);
@@ -62,16 +64,17 @@ __exportStar(require("./TemplatesSection.js"), exports);
62
64
  __exportStar(require("./CommonSortingDirectionEnum.js"), exports);
63
65
  __exportStar(require("./TemplatesItem.js"), exports);
64
66
  __exportStar(require("./TemplatesSectionSorted.js"), exports);
65
- __exportStar(require("./CommonTranscript.js"), exports);
67
+ __exportStar(require("./CommonTranscriptRequest.js"), exports);
68
+ __exportStar(require("./CommonTranscriptResponse.js"), exports);
66
69
  __exportStar(require("./Uuid.js"), exports);
67
70
  __exportStar(require("./CommonUsageInfo.js"), exports);
68
- __exportStar(require("./DocumentsContextTypeEnum.js"), exports);
69
71
  __exportStar(require("./InteractionsEncounterStatusEnum.js"), exports);
70
72
  __exportStar(require("./InteractionsEncounterTypeEnum.js"), exports);
71
73
  __exportStar(require("./InteractionsGenderEnum.js"), exports);
72
74
  __exportStar(require("./CommonSourceEnum.js"), exports);
73
75
  __exportStar(require("./TranscriptsParticipantRoleEnum.js"), exports);
74
76
  __exportStar(require("./TemplatesWritingStyle.js"), exports);
77
+ __exportStar(require("./TemplatesSectionTranslation.js"), exports);
75
78
  __exportStar(require("./TemplatesTranslation.js"), exports);
76
79
  __exportStar(require("./StreamConfigMessage.js"), exports);
77
80
  __exportStar(require("./StreamConfig.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.3-alpha";
1
+ export declare const SDK_VERSION = "0.1.3-rc";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.1.3-alpha";
4
+ exports.SDK_VERSION = "0.1.3-rc";
@@ -27,8 +27,8 @@ export class CortiClient {
27
27
  "Tenant-Name": _options === null || _options === void 0 ? void 0 : _options.tenantName,
28
28
  "X-Fern-Language": "JavaScript",
29
29
  "X-Fern-SDK-Name": "@corti/sdk",
30
- "X-Fern-SDK-Version": "0.1.3-alpha",
31
- "User-Agent": "@corti/sdk/0.1.3-alpha",
30
+ "X-Fern-SDK-Version": "0.1.3-rc",
31
+ "User-Agent": "@corti/sdk/0.1.3-rc",
32
32
  "X-Fern-Runtime": core.RUNTIME.type,
33
33
  "X-Fern-Runtime-Version": core.RUNTIME.version,
34
34
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -2,8 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as errors from "../../errors/index.mjs";
5
- import * as Corti from "../index.mjs";
6
5
  import * as core from "../../core/index.mjs";
7
6
  export declare class NotFoundError extends errors.CortiError {
8
- constructor(body: Corti.ErrorResponse, rawResponse?: core.RawResponse);
7
+ constructor(body?: unknown, rawResponse?: core.RawResponse);
9
8
  }
@@ -1,3 +1,7 @@
1
1
  export * from "./resources/index.mjs";
2
2
  export * from "./types/index.mjs";
3
3
  export * from "./errors/index.mjs";
4
+ /**
5
+ * Patch: including custom types to main export of types
6
+ */
7
+ export * from "../custom/index.mjs";
@@ -1,3 +1,7 @@
1
1
  export * from "./resources/index.mjs";
2
2
  export * from "./types/index.mjs";
3
3
  export * from "./errors/index.mjs";
4
+ /**
5
+ * Patch: including custom types to main export of types
6
+ */
7
+ export * from "../custom/index.mjs";
@@ -32,7 +32,7 @@ export declare class Documents {
32
32
  protected readonly _options: Documents.Options;
33
33
  constructor(_options: Documents.Options);
34
34
  /**
35
- * List Documents
35
+ * List Documents
36
36
  *
37
37
  * @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
38
38
  * @param {Documents.RequestOptions} requestOptions - Request-specific configuration.
@@ -48,7 +48,7 @@ export declare class Documents {
48
48
  list(id: Corti.Uuid, requestOptions?: Documents.RequestOptions): core.HttpResponsePromise<Corti.DocumentsListResponse>;
49
49
  private __list;
50
50
  /**
51
- * Generate Document.
51
+ * Generate Document.
52
52
  *
53
53
  * @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
54
54
  * @param {Corti.DocumentsCreateRequest} request
@@ -75,7 +75,7 @@ export declare class Documents {
75
75
  create(id: Corti.Uuid, request: Corti.DocumentsCreateRequest, requestOptions?: Documents.RequestOptions): core.HttpResponsePromise<Corti.DocumentsGetResponse>;
76
76
  private __create;
77
77
  /**
78
- * Get Document.
78
+ * Get Document.
79
79
  *
80
80
  * @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
81
81
  * @param {Corti.Uuid} documentId - The document ID representing the context for the request. Must be a valid UUID.
@@ -20,7 +20,7 @@ export class Documents {
20
20
  this._options = _options;
21
21
  }
22
22
  /**
23
- * List Documents
23
+ * List Documents
24
24
  *
25
25
  * @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
26
26
  * @param {Documents.RequestOptions} requestOptions - Request-specific configuration.
@@ -110,7 +110,7 @@ export class Documents {
110
110
  });
111
111
  }
112
112
  /**
113
- * Generate Document.
113
+ * Generate Document.
114
114
  *
115
115
  * @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
116
116
  * @param {Corti.DocumentsCreateRequest} request
@@ -217,7 +217,7 @@ export class Documents {
217
217
  });
218
218
  }
219
219
  /**
220
- * Get Document.
220
+ * Get Document.
221
221
  *
222
222
  * @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
223
223
  * @param {Corti.Uuid} documentId - The document ID representing the context for the request. Must be a valid UUID.
@@ -351,13 +351,7 @@ export class Documents {
351
351
  breadcrumbsPrefix: ["response"],
352
352
  }), _response.rawResponse);
353
353
  case 404:
354
- throw new Corti.NotFoundError(serializers.ErrorResponse.parseOrThrow(_response.error.body, {
355
- unrecognizedObjectKeys: "passthrough",
356
- allowUnrecognizedUnionMembers: true,
357
- allowUnrecognizedEnumValues: true,
358
- skipValidation: true,
359
- breadcrumbsPrefix: ["response"],
360
- }), _response.rawResponse);
354
+ throw new Corti.NotFoundError(_response.error.body, _response.rawResponse);
361
355
  case 500:
362
356
  throw new Corti.InternalServerError(_response.error.body, _response.rawResponse);
363
357
  case 504:
@@ -32,6 +32,8 @@ export declare class Facts {
32
32
  protected readonly _options: Facts.Options;
33
33
  constructor(_options: Facts.Options);
34
34
  /**
35
+ * Returns a list of available fact groups, used to categorize facts associated with an interaction.
36
+ *
35
37
  * @param {Facts.RequestOptions} requestOptions - Request-specific configuration.
36
38
  *
37
39
  * @throws {@link Corti.InternalServerError}
@@ -42,7 +44,7 @@ export declare class Facts {
42
44
  factGroupsList(requestOptions?: Facts.RequestOptions): core.HttpResponsePromise<Corti.FactsFactGroupsListResponse>;
43
45
  private __factGroupsList;
44
46
  /**
45
- * Retrieves a list of facts for a given interaction.
47
+ * Retrieves a list of facts for a given interaction.
46
48
  *
47
49
  * @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
48
50
  * @param {Facts.RequestOptions} requestOptions - Request-specific configuration.
@@ -55,7 +57,7 @@ export declare class Facts {
55
57
  list(id: Corti.Uuid, requestOptions?: Facts.RequestOptions): core.HttpResponsePromise<Corti.FactsListResponse>;
56
58
  private __list;
57
59
  /**
58
- * Adds new facts to an interaction.
60
+ * Adds new facts to an interaction.
59
61
  *
60
62
  * @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
61
63
  * @param {Corti.FactsCreateRequest} request
@@ -74,7 +76,7 @@ export declare class Facts {
74
76
  create(id: Corti.Uuid, request: Corti.FactsCreateRequest, requestOptions?: Facts.RequestOptions): core.HttpResponsePromise<Corti.FactsCreateResponse>;
75
77
  private __create;
76
78
  /**
77
- * Updates multiple facts associated with an interaction. If the interaction `status = "in progress"`, the updated facts will be sent to the client over WebSocket.
79
+ * Updates multiple facts associated with an interaction.
78
80
  *
79
81
  * @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
80
82
  * @param {Corti.FactsBatchUpdateRequest} request
@@ -92,7 +94,7 @@ export declare class Facts {
92
94
  batchUpdate(id: Corti.Uuid, request: Corti.FactsBatchUpdateRequest, requestOptions?: Facts.RequestOptions): core.HttpResponsePromise<Corti.FactsBatchUpdateResponse>;
93
95
  private __batchUpdate;
94
96
  /**
95
- * Updates an existing fact within a specific interaction. If the interaction `status = "in progress"`, the updated fact will be sent to the client via WebSocket. To discard a fact, simply set `discarded = true`.
97
+ * Updates an existing fact associated with a specific interaction.
96
98
  *
97
99
  * @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
98
100
  * @param {Corti.Uuid} factId - The unique identifier of the fact to update. Must be a valid UUID.
@@ -20,6 +20,8 @@ export class Facts {
20
20
  this._options = _options;
21
21
  }
22
22
  /**
23
+ * Returns a list of available fact groups, used to categorize facts associated with an interaction.
24
+ *
23
25
  * @param {Facts.RequestOptions} requestOptions - Request-specific configuration.
24
26
  *
25
27
  * @throws {@link Corti.InternalServerError}
@@ -86,7 +88,7 @@ export class Facts {
86
88
  });
87
89
  }
88
90
  /**
89
- * Retrieves a list of facts for a given interaction.
91
+ * Retrieves a list of facts for a given interaction.
90
92
  *
91
93
  * @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
92
94
  * @param {Facts.RequestOptions} requestOptions - Request-specific configuration.
@@ -161,7 +163,7 @@ export class Facts {
161
163
  });
162
164
  }
163
165
  /**
164
- * Adds new facts to an interaction.
166
+ * Adds new facts to an interaction.
165
167
  *
166
168
  * @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
167
169
  * @param {Corti.FactsCreateRequest} request
@@ -248,7 +250,7 @@ export class Facts {
248
250
  });
249
251
  }
250
252
  /**
251
- * Updates multiple facts associated with an interaction. If the interaction `status = "in progress"`, the updated facts will be sent to the client over WebSocket.
253
+ * Updates multiple facts associated with an interaction.
252
254
  *
253
255
  * @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
254
256
  * @param {Corti.FactsBatchUpdateRequest} request
@@ -334,7 +336,7 @@ export class Facts {
334
336
  });
335
337
  }
336
338
  /**
337
- * Updates an existing fact within a specific interaction. If the interaction `status = "in progress"`, the updated fact will be sent to the client via WebSocket. To discard a fact, simply set `discarded = true`.
339
+ * Updates an existing fact associated with a specific interaction.
338
340
  *
339
341
  * @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
340
342
  * @param {Corti.Uuid} factId - The unique identifier of the fact to update. Must be a valid UUID.
@@ -11,8 +11,8 @@ export interface FactsUpdateRequest {
11
11
  text?: string;
12
12
  /** The updated group key for the fact. */
13
13
  group?: string;
14
- /** The updated origin of the fact. */
14
+ /** The updated origin of the fact. Set to 'USER' to indicate a change by an end-user. */
15
15
  source?: Corti.CommonSourceEnum;
16
- /** Indicates whether the fact should be marked as discarded. */
16
+ /** Set this to true if discarded by an end-user, then filter out from the document generation request. */
17
17
  isDiscarded?: boolean;
18
18
  }
@@ -1,12 +1,11 @@
1
1
  export * as interactions from "./interactions/index.mjs";
2
2
  export * from "./interactions/types/index.mjs";
3
- export * as transcripts from "./transcripts/index.mjs";
4
- export * from "./transcripts/types/index.mjs";
5
3
  export * as auth from "./auth/index.mjs";
6
4
  export * from "./auth/types/index.mjs";
7
5
  export * as stream from "./stream/index.mjs";
8
6
  export * as transcribe from "./transcribe/index.mjs";
9
7
  export * as recordings from "./recordings/index.mjs";
8
+ export * as transcripts from "./transcripts/index.mjs";
10
9
  export * as facts from "./facts/index.mjs";
11
10
  export * as documents from "./documents/index.mjs";
12
11
  export * as templates from "./templates/index.mjs";
@@ -1,12 +1,11 @@
1
1
  export * as interactions from "./interactions/index.mjs";
2
2
  export * from "./interactions/types/index.mjs";
3
- export * as transcripts from "./transcripts/index.mjs";
4
- export * from "./transcripts/types/index.mjs";
5
3
  export * as auth from "./auth/index.mjs";
6
4
  export * from "./auth/types/index.mjs";
7
5
  export * as stream from "./stream/index.mjs";
8
6
  export * as transcribe from "./transcribe/index.mjs";
9
7
  export * as recordings from "./recordings/index.mjs";
8
+ export * as transcripts from "./transcripts/index.mjs";
10
9
  export * as facts from "./facts/index.mjs";
11
10
  export * as documents from "./documents/index.mjs";
12
11
  export * as templates from "./templates/index.mjs";
@@ -32,7 +32,7 @@ export declare class Interactions {
32
32
  protected readonly _options: Interactions.Options;
33
33
  constructor(_options: Interactions.Options);
34
34
  /**
35
- * Lists all existing interactions. Results can be filtered by encounter status and patient identifier.
35
+ * Lists all existing interactions. Results can be filtered by encounter status and patient identifier.
36
36
  *
37
37
  * @param {Corti.InteractionsListRequest} request
38
38
  * @param {Interactions.RequestOptions} requestOptions - Request-specific configuration.
@@ -45,7 +45,7 @@ export declare class Interactions {
45
45
  */
46
46
  list(request?: Corti.InteractionsListRequest, requestOptions?: Interactions.RequestOptions): Promise<core.Page<Corti.InteractionsGetResponse>>;
47
47
  /**
48
- * Creates a new interaction.
48
+ * Creates a new interaction.
49
49
  *
50
50
  * @param {Corti.InteractionsCreateRequest} request
51
51
  * @param {Interactions.RequestOptions} requestOptions - Request-specific configuration.
@@ -67,7 +67,7 @@ export declare class Interactions {
67
67
  create(request: Corti.InteractionsCreateRequest, requestOptions?: Interactions.RequestOptions): core.HttpResponsePromise<Corti.InteractionsCreateResponse>;
68
68
  private __create;
69
69
  /**
70
- * Retrieves a previously recorded interaction by its unique identifier (interaction ID).
70
+ * Retrieves a previously recorded interaction by its unique identifier (interaction ID).
71
71
  *
72
72
  * @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
73
73
  * @param {Interactions.RequestOptions} requestOptions - Request-specific configuration.
@@ -81,7 +81,7 @@ export declare class Interactions {
81
81
  get(id: Corti.Uuid, requestOptions?: Interactions.RequestOptions): core.HttpResponsePromise<Corti.InteractionsGetResponse>;
82
82
  private __get;
83
83
  /**
84
- * Deletes an existing interaction.
84
+ * Deletes an existing interaction.
85
85
  *
86
86
  * @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
87
87
  * @param {Interactions.RequestOptions} requestOptions - Request-specific configuration.
@@ -95,7 +95,7 @@ export declare class Interactions {
95
95
  delete(id: Corti.Uuid, requestOptions?: Interactions.RequestOptions): core.HttpResponsePromise<void>;
96
96
  private __delete;
97
97
  /**
98
- * Modifies an existing interaction by updating specific fields without overwriting the entire record.
98
+ * Modifies an existing interaction by updating specific fields without overwriting the entire record.
99
99
  *
100
100
  * @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
101
101
  * @param {Corti.InteractionsUpdateRequest} request
@@ -20,7 +20,7 @@ export class Interactions {
20
20
  this._options = _options;
21
21
  }
22
22
  /**
23
- * Lists all existing interactions. Results can be filtered by encounter status and patient identifier.
23
+ * Lists all existing interactions. Results can be filtered by encounter status and patient identifier.
24
24
  *
25
25
  * @param {Corti.InteractionsListRequest} request
26
26
  * @param {Interactions.RequestOptions} requestOptions - Request-specific configuration.
@@ -150,7 +150,7 @@ export class Interactions {
150
150
  });
151
151
  }
152
152
  /**
153
- * Creates a new interaction.
153
+ * Creates a new interaction.
154
154
  *
155
155
  * @param {Corti.InteractionsCreateRequest} request
156
156
  * @param {Interactions.RequestOptions} requestOptions - Request-specific configuration.
@@ -252,7 +252,7 @@ export class Interactions {
252
252
  });
253
253
  }
254
254
  /**
255
- * Retrieves a previously recorded interaction by its unique identifier (interaction ID).
255
+ * Retrieves a previously recorded interaction by its unique identifier (interaction ID).
256
256
  *
257
257
  * @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
258
258
  * @param {Interactions.RequestOptions} requestOptions - Request-specific configuration.
@@ -336,7 +336,7 @@ export class Interactions {
336
336
  });
337
337
  }
338
338
  /**
339
- * Deletes an existing interaction.
339
+ * Deletes an existing interaction.
340
340
  *
341
341
  * @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
342
342
  * @param {Interactions.RequestOptions} requestOptions - Request-specific configuration.
@@ -411,7 +411,7 @@ export class Interactions {
411
411
  });
412
412
  }
413
413
  /**
414
- * Modifies an existing interaction by updating specific fields without overwriting the entire record.
414
+ * Modifies an existing interaction by updating specific fields without overwriting the entire record.
415
415
  *
416
416
  * @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
417
417
  * @param {Corti.InteractionsUpdateRequest} request
@@ -4,8 +4,6 @@
4
4
  import * as environments from "../../../../environments.mjs";
5
5
  import * as core from "../../../../core/index.mjs";
6
6
  import * as Corti from "../../../index.mjs";
7
- import * as fs from "fs";
8
- import { Blob } from "buffer";
9
7
  export declare namespace Recordings {
10
8
  interface Options {
11
9
  environment: core.Supplier<environments.CortiEnvironment | environments.CortiEnvironmentUrls>;
@@ -34,7 +32,7 @@ export declare class Recordings {
34
32
  protected readonly _options: Recordings.Options;
35
33
  constructor(_options: Recordings.Options);
36
34
  /**
37
- * Retrieve a list of recordings for a given interaction.
35
+ * Retrieve a list of recordings for a given interaction.
38
36
  *
39
37
  * @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
40
38
  * @param {Recordings.RequestOptions} requestOptions - Request-specific configuration.
@@ -50,9 +48,9 @@ export declare class Recordings {
50
48
  list(id: Corti.Uuid, requestOptions?: Recordings.RequestOptions): core.HttpResponsePromise<Corti.RecordingsListResponse>;
51
49
  private __list;
52
50
  /**
53
- * Upload a recording for a given interaction. There is a maximum limit of 60 minutes in length and 150MB in size for recordings.
51
+ * Upload a recording for a given interaction. There is a maximum limit of 60 minutes in length and 150MB in size for recordings.
54
52
  *
55
- * @param {File | fs.ReadStream | Blob} bytes
53
+ * @param {core.file.Uploadable} uploadable
56
54
  * @param {Corti.Uuid} id
57
55
  * @param {Recordings.RequestOptions} requestOptions - Request-specific configuration.
58
56
  *
@@ -61,10 +59,10 @@ export declare class Recordings {
61
59
  * @throws {@link Corti.InternalServerError}
62
60
  * @throws {@link Corti.GatewayTimeoutError}
63
61
  */
64
- upload(bytes: File | fs.ReadStream | Blob, id: Corti.Uuid, requestOptions?: Recordings.RequestOptions): core.HttpResponsePromise<Corti.RecordingsCreateResponse>;
62
+ upload(uploadable: core.file.Uploadable, id: Corti.Uuid, requestOptions?: Recordings.RequestOptions): core.HttpResponsePromise<Corti.RecordingsCreateResponse>;
65
63
  private __upload;
66
64
  /**
67
- * Retrieve a specific recording for a given interaction.
65
+ * Retrieve a specific recording for a given interaction.
68
66
  * @throws {@link Corti.BadRequestError}
69
67
  * @throws {@link Corti.ForbiddenError}
70
68
  * @throws {@link Corti.NotFoundError}
@@ -74,7 +72,7 @@ export declare class Recordings {
74
72
  get(id: Corti.Uuid, recordingId: Corti.Uuid, requestOptions?: Recordings.RequestOptions): core.HttpResponsePromise<core.BinaryResponse>;
75
73
  private __get;
76
74
  /**
77
- * Delete a specific recording for a given interaction.
75
+ * Delete a specific recording for a given interaction.
78
76
  *
79
77
  * @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
80
78
  * @param {Corti.Uuid} recordingId - The unique identifier of the recording. Must be a valid UUID.
@@ -20,7 +20,7 @@ export class Recordings {
20
20
  this._options = _options;
21
21
  }
22
22
  /**
23
- * Retrieve a list of recordings for a given interaction.
23
+ * Retrieve a list of recordings for a given interaction.
24
24
  *
25
25
  * @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
26
26
  * @param {Recordings.RequestOptions} requestOptions - Request-specific configuration.
@@ -110,9 +110,9 @@ export class Recordings {
110
110
  });
111
111
  }
112
112
  /**
113
- * Upload a recording for a given interaction. There is a maximum limit of 60 minutes in length and 150MB in size for recordings.
113
+ * Upload a recording for a given interaction. There is a maximum limit of 60 minutes in length and 150MB in size for recordings.
114
114
  *
115
- * @param {File | fs.ReadStream | Blob} bytes
115
+ * @param {core.file.Uploadable} uploadable
116
116
  * @param {Corti.Uuid} id
117
117
  * @param {Recordings.RequestOptions} requestOptions - Request-specific configuration.
118
118
  *
@@ -121,23 +121,24 @@ export class Recordings {
121
121
  * @throws {@link Corti.InternalServerError}
122
122
  * @throws {@link Corti.GatewayTimeoutError}
123
123
  */
124
- upload(bytes, id, requestOptions) {
125
- return core.HttpResponsePromise.fromPromise(this.__upload(bytes, id, requestOptions));
124
+ upload(uploadable, id, requestOptions) {
125
+ return core.HttpResponsePromise.fromPromise(this.__upload(uploadable, id, requestOptions));
126
126
  }
127
- __upload(bytes, id, requestOptions) {
127
+ __upload(uploadable, id, requestOptions) {
128
128
  return __awaiter(this, void 0, void 0, function* () {
129
129
  var _a, _b;
130
+ const _binaryUploadRequest = yield core.file.toBinaryUploadRequest(uploadable);
130
131
  const _response = yield core.fetcher({
131
132
  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 }))}/recordings/`),
132
133
  method: "POST",
133
134
  headers: mergeHeaders((_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, mergeOnlyDefinedHeaders({
134
135
  Authorization: yield this._getAuthorizationHeader(),
135
136
  "Tenant-Name": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.tenantName,
136
- }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
137
+ }), _binaryUploadRequest.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
137
138
  contentType: "application/octet-stream",
138
139
  requestType: "bytes",
139
140
  duplex: "half",
140
- body: bytes,
141
+ body: _binaryUploadRequest.body,
141
142
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
142
143
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
143
144
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -202,7 +203,7 @@ export class Recordings {
202
203
  });
203
204
  }
204
205
  /**
205
- * Retrieve a specific recording for a given interaction.
206
+ * Retrieve a specific recording for a given interaction.
206
207
  * @throws {@link Corti.BadRequestError}
207
208
  * @throws {@link Corti.ForbiddenError}
208
209
  * @throws {@link Corti.NotFoundError}
@@ -243,13 +244,7 @@ export class Recordings {
243
244
  breadcrumbsPrefix: ["response"],
244
245
  }), _response.rawResponse);
245
246
  case 404:
246
- throw new Corti.NotFoundError(serializers.ErrorResponse.parseOrThrow(_response.error.body, {
247
- unrecognizedObjectKeys: "passthrough",
248
- allowUnrecognizedUnionMembers: true,
249
- allowUnrecognizedEnumValues: true,
250
- skipValidation: true,
251
- breadcrumbsPrefix: ["response"],
252
- }), _response.rawResponse);
247
+ throw new Corti.NotFoundError(_response.error.body, _response.rawResponse);
253
248
  case 500:
254
249
  throw new Corti.InternalServerError(_response.error.body, _response.rawResponse);
255
250
  case 504:
@@ -286,7 +281,7 @@ export class Recordings {
286
281
  });
287
282
  }
288
283
  /**
289
- * Delete a specific recording for a given interaction.
284
+ * Delete a specific recording for a given interaction.
290
285
  *
291
286
  * @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
292
287
  * @param {Corti.Uuid} recordingId - The unique identifier of the recording. Must be a valid UUID.
@@ -331,13 +326,7 @@ export class Recordings {
331
326
  breadcrumbsPrefix: ["response"],
332
327
  }), _response.rawResponse);
333
328
  case 404:
334
- throw new Corti.NotFoundError(serializers.ErrorResponse.parseOrThrow(_response.error.body, {
335
- unrecognizedObjectKeys: "passthrough",
336
- allowUnrecognizedUnionMembers: true,
337
- allowUnrecognizedEnumValues: true,
338
- skipValidation: true,
339
- breadcrumbsPrefix: ["response"],
340
- }), _response.rawResponse);
329
+ throw new Corti.NotFoundError(_response.error.body, _response.rawResponse);
341
330
  case 500:
342
331
  throw new Corti.InternalServerError(_response.error.body, _response.rawResponse);
343
332
  case 504:
@@ -32,7 +32,7 @@ export declare class Templates {
32
32
  protected readonly _options: Templates.Options;
33
33
  constructor(_options: Templates.Options);
34
34
  /**
35
- * Retrieves a list of template sections with optional filters for organization and language.
35
+ * Retrieves a list of template sections with optional filters for organization and language.
36
36
  *
37
37
  * @param {Corti.TemplatesSectionListRequest} request
38
38
  * @param {Templates.RequestOptions} requestOptions - Request-specific configuration.
@@ -46,7 +46,7 @@ export declare class Templates {
46
46
  sectionList(request?: Corti.TemplatesSectionListRequest, requestOptions?: Templates.RequestOptions): core.HttpResponsePromise<Corti.TemplatesSectionListResponse>;
47
47
  private __sectionList;
48
48
  /**
49
- * Retrieves a list of templates with optional filters for organization, language, and status.
49
+ * Retrieves a list of templates with optional filters for organization, language, and status.
50
50
  *
51
51
  * @param {Corti.TemplatesListRequest} request
52
52
  * @param {Templates.RequestOptions} requestOptions - Request-specific configuration.
@@ -20,7 +20,7 @@ export class Templates {
20
20
  this._options = _options;
21
21
  }
22
22
  /**
23
- * Retrieves a list of template sections with optional filters for organization and language.
23
+ * Retrieves a list of template sections with optional filters for organization and language.
24
24
  *
25
25
  * @param {Corti.TemplatesSectionListRequest} request
26
26
  * @param {Templates.RequestOptions} requestOptions - Request-specific configuration.
@@ -111,7 +111,7 @@ export class Templates {
111
111
  });
112
112
  }
113
113
  /**
114
- * Retrieves a list of templates with optional filters for organization, language, and status.
114
+ * Retrieves a list of templates with optional filters for organization, language, and status.
115
115
  *
116
116
  * @param {Corti.TemplatesListRequest} request
117
117
  * @param {Templates.RequestOptions} requestOptions - Request-specific configuration.