@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,11 +1,5 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as core from "../../core/index.mjs";
5
- import { Uuid } from "./Uuid.mjs";
6
- export const DocumentsTemplate = core.serialization.object({
7
- sectionIds: core.serialization.list(Uuid).optional(),
8
- sectionKeys: core.serialization.list(core.serialization.string()).optional(),
9
- documentName: core.serialization.string().optional(),
10
- additionalInstructions: core.serialization.string().optional(),
11
- });
4
+ import { DocumentsTemplateWithSectionKeys } from "./DocumentsTemplateWithSectionKeys.mjs";
5
+ export const DocumentsTemplate = DocumentsTemplateWithSectionKeys;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index.mjs";
5
+ import * as Corti from "../../api/index.mjs";
6
+ import * as core from "../../core/index.mjs";
7
+ export declare const DocumentsTemplateWithSectionKeys: core.serialization.ObjectSchema<serializers.DocumentsTemplateWithSectionKeys.Raw, Corti.DocumentsTemplateWithSectionKeys>;
8
+ export declare namespace DocumentsTemplateWithSectionKeys {
9
+ interface Raw {
10
+ sectionKeys: string[];
11
+ documentName?: string | null;
12
+ additionalInstructions?: string | null;
13
+ }
14
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as core from "../../core/index.mjs";
5
+ export const DocumentsTemplateWithSectionKeys = core.serialization.object({
6
+ sectionKeys: core.serialization.list(core.serialization.string()),
7
+ documentName: core.serialization.string().optional(),
8
+ additionalInstructions: core.serialization.string().optional(),
9
+ });
@@ -5,7 +5,7 @@ import * as serializers from "../index.mjs";
5
5
  import * as Corti from "../../api/index.mjs";
6
6
  import * as core from "../../core/index.mjs";
7
7
  import { TemplatesWritingStyle } from "./TemplatesWritingStyle.mjs";
8
- import { TemplatesTranslation } from "./TemplatesTranslation.mjs";
8
+ import { TemplatesSectionTranslation } from "./TemplatesSectionTranslation.mjs";
9
9
  export declare const TemplatesSection: core.serialization.ObjectSchema<serializers.TemplatesSection.Raw, Corti.TemplatesSection>;
10
10
  export declare namespace TemplatesSection {
11
11
  interface Raw {
@@ -16,6 +16,6 @@ export declare namespace TemplatesSection {
16
16
  description: string;
17
17
  default_writing_style: TemplatesWritingStyle.Raw;
18
18
  section_type: string;
19
- translations: TemplatesTranslation.Raw[];
19
+ translations: TemplatesSectionTranslation.Raw[];
20
20
  }
21
21
  }
@@ -3,7 +3,7 @@
3
3
  */
4
4
  import * as core from "../../core/index.mjs";
5
5
  import { TemplatesWritingStyle } from "./TemplatesWritingStyle.mjs";
6
- import { TemplatesTranslation } from "./TemplatesTranslation.mjs";
6
+ import { TemplatesSectionTranslation } from "./TemplatesSectionTranslation.mjs";
7
7
  export const TemplatesSection = core.serialization.object({
8
8
  dateUpdated: core.serialization.property("date_updated", core.serialization.date().optionalNullable()),
9
9
  name: core.serialization.string(),
@@ -12,5 +12,5 @@ export const TemplatesSection = core.serialization.object({
12
12
  description: core.serialization.string(),
13
13
  defaultWritingStyle: core.serialization.property("default_writing_style", TemplatesWritingStyle),
14
14
  sectionType: core.serialization.property("section_type", core.serialization.string()),
15
- translations: core.serialization.list(TemplatesTranslation),
15
+ translations: core.serialization.list(TemplatesSectionTranslation),
16
16
  });
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index.mjs";
5
+ import * as Corti from "../../api/index.mjs";
6
+ import * as core from "../../core/index.mjs";
7
+ export declare const TemplatesSectionTranslation: core.serialization.ObjectSchema<serializers.TemplatesSectionTranslation.Raw, Corti.TemplatesSectionTranslation>;
8
+ export declare namespace TemplatesSectionTranslation {
9
+ interface Raw {
10
+ languages_id: string;
11
+ name?: (string | null) | null;
12
+ description?: (string | null) | null;
13
+ }
14
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as core from "../../core/index.mjs";
5
+ export const TemplatesSectionTranslation = core.serialization.object({
6
+ languagesId: core.serialization.property("languages_id", core.serialization.string()),
7
+ name: core.serialization.string().optionalNullable(),
8
+ description: core.serialization.string().optionalNullable(),
9
+ });
@@ -8,7 +8,7 @@ export declare const TemplatesTranslation: core.serialization.ObjectSchema<seria
8
8
  export declare namespace TemplatesTranslation {
9
9
  interface Raw {
10
10
  languages_id: string;
11
- name?: (string | null) | null;
12
- description?: (string | null) | null;
11
+ name?: string | null;
12
+ description?: string | null;
13
13
  }
14
14
  }
@@ -4,6 +4,6 @@
4
4
  import * as core from "../../core/index.mjs";
5
5
  export const TemplatesTranslation = core.serialization.object({
6
6
  languagesId: core.serialization.property("languages_id", core.serialization.string()),
7
- name: core.serialization.string().optionalNullable(),
8
- description: core.serialization.string().optionalNullable(),
7
+ name: core.serialization.string().optional(),
8
+ description: core.serialization.string().optional(),
9
9
  });
@@ -5,11 +5,11 @@ import * as serializers from "../index.mjs";
5
5
  import * as Corti from "../../api/index.mjs";
6
6
  import * as core from "../../core/index.mjs";
7
7
  import { TranscriptsMetadata } from "./TranscriptsMetadata.mjs";
8
- import { CommonTranscript } from "./CommonTranscript.mjs";
8
+ import { CommonTranscriptResponse } from "./CommonTranscriptResponse.mjs";
9
9
  export declare const TranscriptsData: core.serialization.ObjectSchema<serializers.TranscriptsData.Raw, Corti.TranscriptsData>;
10
10
  export declare namespace TranscriptsData {
11
11
  interface Raw {
12
12
  metadata: TranscriptsMetadata.Raw;
13
- transcripts: CommonTranscript.Raw[];
13
+ transcripts: CommonTranscriptResponse.Raw[];
14
14
  }
15
15
  }
@@ -3,8 +3,8 @@
3
3
  */
4
4
  import * as core from "../../core/index.mjs";
5
5
  import { TranscriptsMetadata } from "./TranscriptsMetadata.mjs";
6
- import { CommonTranscript } from "./CommonTranscript.mjs";
6
+ import { CommonTranscriptResponse } from "./CommonTranscriptResponse.mjs";
7
7
  export const TranscriptsData = core.serialization.object({
8
8
  metadata: TranscriptsMetadata,
9
- transcripts: core.serialization.list(CommonTranscript),
9
+ transcripts: core.serialization.list(CommonTranscriptResponse),
10
10
  });
@@ -6,14 +6,14 @@ import * as Corti from "../../api/index.mjs";
6
6
  import * as core from "../../core/index.mjs";
7
7
  import { Uuid } from "./Uuid.mjs";
8
8
  import { TranscriptsMetadata } from "./TranscriptsMetadata.mjs";
9
- import { CommonTranscript } from "./CommonTranscript.mjs";
9
+ import { CommonTranscriptResponse } from "./CommonTranscriptResponse.mjs";
10
10
  import { CommonUsageInfo } from "./CommonUsageInfo.mjs";
11
11
  export declare const TranscriptsResponse: core.serialization.ObjectSchema<serializers.TranscriptsResponse.Raw, Corti.TranscriptsResponse>;
12
12
  export declare namespace TranscriptsResponse {
13
13
  interface Raw {
14
14
  id: Uuid.Raw;
15
15
  metadata: TranscriptsMetadata.Raw;
16
- transcripts: CommonTranscript.Raw[];
16
+ transcripts?: (CommonTranscriptResponse.Raw[] | null) | null;
17
17
  usageInfo: CommonUsageInfo.Raw;
18
18
  }
19
19
  }
@@ -4,11 +4,11 @@
4
4
  import * as core from "../../core/index.mjs";
5
5
  import { Uuid } from "./Uuid.mjs";
6
6
  import { TranscriptsMetadata } from "./TranscriptsMetadata.mjs";
7
- import { CommonTranscript } from "./CommonTranscript.mjs";
7
+ import { CommonTranscriptResponse } from "./CommonTranscriptResponse.mjs";
8
8
  import { CommonUsageInfo } from "./CommonUsageInfo.mjs";
9
9
  export const TranscriptsResponse = core.serialization.object({
10
10
  id: Uuid,
11
11
  metadata: TranscriptsMetadata,
12
- transcripts: core.serialization.list(CommonTranscript),
12
+ transcripts: core.serialization.list(CommonTranscriptResponse).optionalNullable(),
13
13
  usageInfo: CommonUsageInfo,
14
14
  });
@@ -1,7 +1,10 @@
1
1
  export * from "./DocumentsContext.mjs";
2
- export * from "./DocumentsContextData.mjs";
2
+ export * from "./DocumentsContextWithFacts.mjs";
3
+ export * from "./DocumentsContextWithTranscript.mjs";
4
+ export * from "./DocumentsContextWithString.mjs";
3
5
  export * from "./DocumentsSection.mjs";
4
6
  export * from "./DocumentsTemplate.mjs";
7
+ export * from "./DocumentsTemplateWithSectionKeys.mjs";
5
8
  export * from "./InteractionsEncounterCreateRequest.mjs";
6
9
  export * from "./InteractionsEncounterUpdateRequest.mjs";
7
10
  export * from "./InteractionsEncounterResponse.mjs";
@@ -12,7 +15,6 @@ export * from "./FactsFactGroupsItemTranslationsItem.mjs";
12
15
  export * from "./FactsFactGroupsItem.mjs";
13
16
  export * from "./InteractionsPatient.mjs";
14
17
  export * from "./DocumentsCreateRequest.mjs";
15
- export * from "./DocumentsCreateRequestWithTemplateId.mjs";
16
18
  export * from "./DocumentsCreateRequestWithTemplateKey.mjs";
17
19
  export * from "./DocumentsCreateRequestWithTemplate.mjs";
18
20
  export * from "./DocumentsSectionInput.mjs";
@@ -46,16 +48,17 @@ export * from "./TemplatesSection.mjs";
46
48
  export * from "./CommonSortingDirectionEnum.mjs";
47
49
  export * from "./TemplatesItem.mjs";
48
50
  export * from "./TemplatesSectionSorted.mjs";
49
- export * from "./CommonTranscript.mjs";
51
+ export * from "./CommonTranscriptRequest.mjs";
52
+ export * from "./CommonTranscriptResponse.mjs";
50
53
  export * from "./Uuid.mjs";
51
54
  export * from "./CommonUsageInfo.mjs";
52
- export * from "./DocumentsContextTypeEnum.mjs";
53
55
  export * from "./InteractionsEncounterStatusEnum.mjs";
54
56
  export * from "./InteractionsEncounterTypeEnum.mjs";
55
57
  export * from "./InteractionsGenderEnum.mjs";
56
58
  export * from "./CommonSourceEnum.mjs";
57
59
  export * from "./TranscriptsParticipantRoleEnum.mjs";
58
60
  export * from "./TemplatesWritingStyle.mjs";
61
+ export * from "./TemplatesSectionTranslation.mjs";
59
62
  export * from "./TemplatesTranslation.mjs";
60
63
  export * from "./StreamConfigMessage.mjs";
61
64
  export * from "./StreamConfig.mjs";
@@ -1,7 +1,10 @@
1
1
  export * from "./DocumentsContext.mjs";
2
- export * from "./DocumentsContextData.mjs";
2
+ export * from "./DocumentsContextWithFacts.mjs";
3
+ export * from "./DocumentsContextWithTranscript.mjs";
4
+ export * from "./DocumentsContextWithString.mjs";
3
5
  export * from "./DocumentsSection.mjs";
4
6
  export * from "./DocumentsTemplate.mjs";
7
+ export * from "./DocumentsTemplateWithSectionKeys.mjs";
5
8
  export * from "./InteractionsEncounterCreateRequest.mjs";
6
9
  export * from "./InteractionsEncounterUpdateRequest.mjs";
7
10
  export * from "./InteractionsEncounterResponse.mjs";
@@ -12,7 +15,6 @@ export * from "./FactsFactGroupsItemTranslationsItem.mjs";
12
15
  export * from "./FactsFactGroupsItem.mjs";
13
16
  export * from "./InteractionsPatient.mjs";
14
17
  export * from "./DocumentsCreateRequest.mjs";
15
- export * from "./DocumentsCreateRequestWithTemplateId.mjs";
16
18
  export * from "./DocumentsCreateRequestWithTemplateKey.mjs";
17
19
  export * from "./DocumentsCreateRequestWithTemplate.mjs";
18
20
  export * from "./DocumentsSectionInput.mjs";
@@ -46,16 +48,17 @@ export * from "./TemplatesSection.mjs";
46
48
  export * from "./CommonSortingDirectionEnum.mjs";
47
49
  export * from "./TemplatesItem.mjs";
48
50
  export * from "./TemplatesSectionSorted.mjs";
49
- export * from "./CommonTranscript.mjs";
51
+ export * from "./CommonTranscriptRequest.mjs";
52
+ export * from "./CommonTranscriptResponse.mjs";
50
53
  export * from "./Uuid.mjs";
51
54
  export * from "./CommonUsageInfo.mjs";
52
- export * from "./DocumentsContextTypeEnum.mjs";
53
55
  export * from "./InteractionsEncounterStatusEnum.mjs";
54
56
  export * from "./InteractionsEncounterTypeEnum.mjs";
55
57
  export * from "./InteractionsGenderEnum.mjs";
56
58
  export * from "./CommonSourceEnum.mjs";
57
59
  export * from "./TranscriptsParticipantRoleEnum.mjs";
58
60
  export * from "./TemplatesWritingStyle.mjs";
61
+ export * from "./TemplatesSectionTranslation.mjs";
59
62
  export * from "./TemplatesTranslation.mjs";
60
63
  export * from "./StreamConfigMessage.mjs";
61
64
  export * from "./StreamConfig.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.3-alpha";
1
+ export declare const SDK_VERSION = "0.1.3-rc";
@@ -1 +1 @@
1
- export const SDK_VERSION = "0.1.3-alpha";
1
+ export const SDK_VERSION = "0.1.3-rc";
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@corti/sdk",
3
- "version": "0.1.3-alpha",
3
+ "version": "0.1.3-rc",
4
4
  "private": false,
5
- "repository": "github:corticph/corti-sdk-typescript",
5
+ "repository": "github:corticph/corti-sdk-javascript",
6
6
  "license": "MIT",
7
7
  "type": "commonjs",
8
8
  "main": "./dist/cjs/index.js",
@@ -66,7 +66,8 @@
66
66
  "msw": "^2.8.4",
67
67
  "@types/node": "^18.19.70",
68
68
  "prettier": "^3.4.2",
69
- "typescript": "~5.7.2"
69
+ "typescript": "~5.7.2",
70
+ "@faker-js/faker": "^9.9.0"
70
71
  },
71
72
  "browser": {
72
73
  "fs": false,
@@ -1,12 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * The model name for transcription. By default, only the highest tier is accessible. Check https://docs.corti.ai/about/languages for more.
6
- */
7
- export type TranscriptsCreateRequestModelName = "base" | "enhanced" | "premier";
8
- export declare const TranscriptsCreateRequestModelName: {
9
- readonly Base: "base";
10
- readonly Enhanced: "enhanced";
11
- readonly Premier: "premier";
12
- };
@@ -1,11 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.TranscriptsCreateRequestModelName = void 0;
7
- exports.TranscriptsCreateRequestModelName = {
8
- Base: "base",
9
- Enhanced: "enhanced",
10
- Premier: "premier",
11
- };
@@ -1 +0,0 @@
1
- export * from "./TranscriptsCreateRequestModelName.js";
@@ -1,14 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Corti from "../index.js";
5
- export type DocumentsContextData =
6
- /**
7
- * Facts */
8
- Corti.FactsContext[]
9
- /**
10
- * Transcript */
11
- | Corti.CommonTranscript
12
- /**
13
- * Text */
14
- | string;
@@ -1,9 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export type DocumentsContextTypeEnum = "facts" | "transcript" | "string";
5
- export declare const DocumentsContextTypeEnum: {
6
- readonly Facts: "facts";
7
- readonly Transcript: "transcript";
8
- readonly String: "string";
9
- };
@@ -1,11 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.DocumentsContextTypeEnum = void 0;
7
- exports.DocumentsContextTypeEnum = {
8
- Facts: "facts",
9
- Transcript: "transcript",
10
- String: "string",
11
- };
@@ -1,16 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Corti from "../index.js";
5
- export interface DocumentsCreateRequestWithTemplateId {
6
- /** An array of context objects. */
7
- context: Corti.DocumentsContext[];
8
- /** The UUID of the template to use. */
9
- templateId: Corti.Uuid;
10
- /** An optional name for the document. */
11
- name?: string;
12
- /** The model or documentation mode to use for summarization. */
13
- modelName?: string;
14
- /** The language in which the document will be generated. Check https://docs.corti.ai/about/languages for more. */
15
- outputLanguage: string;
16
- }
@@ -1,10 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../../../index.js";
5
- import * as Corti from "../../../../api/index.js";
6
- import * as core from "../../../../core/index.js";
7
- export declare const TranscriptsCreateRequestModelName: core.serialization.Schema<serializers.TranscriptsCreateRequestModelName.Raw, Corti.TranscriptsCreateRequestModelName>;
8
- export declare namespace TranscriptsCreateRequestModelName {
9
- type Raw = "base" | "enhanced" | "premier";
10
- }
@@ -1 +0,0 @@
1
- export * from "./TranscriptsCreateRequestModelName.js";
@@ -1,12 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../index.js";
5
- import * as Corti from "../../api/index.js";
6
- import * as core from "../../core/index.js";
7
- import { FactsContext } from "./FactsContext.js";
8
- import { CommonTranscript } from "./CommonTranscript.js";
9
- export declare const DocumentsContextData: core.serialization.Schema<serializers.DocumentsContextData.Raw, Corti.DocumentsContextData>;
10
- export declare namespace DocumentsContextData {
11
- type Raw = FactsContext.Raw[] | CommonTranscript.Raw | string;
12
- }
@@ -1,10 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../index.js";
5
- import * as Corti from "../../api/index.js";
6
- import * as core from "../../core/index.js";
7
- export declare const DocumentsContextTypeEnum: core.serialization.Schema<serializers.DocumentsContextTypeEnum.Raw, Corti.DocumentsContextTypeEnum>;
8
- export declare namespace DocumentsContextTypeEnum {
9
- type Raw = "facts" | "transcript" | "string";
10
- }
@@ -1,18 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../index.js";
5
- import * as Corti from "../../api/index.js";
6
- import * as core from "../../core/index.js";
7
- import { DocumentsContext } from "./DocumentsContext.js";
8
- import { Uuid } from "./Uuid.js";
9
- export declare const DocumentsCreateRequestWithTemplateId: core.serialization.ObjectSchema<serializers.DocumentsCreateRequestWithTemplateId.Raw, Corti.DocumentsCreateRequestWithTemplateId>;
10
- export declare namespace DocumentsCreateRequestWithTemplateId {
11
- interface Raw {
12
- context: DocumentsContext.Raw[];
13
- templateId: Uuid.Raw;
14
- name?: string | null;
15
- modelName?: string | null;
16
- outputLanguage: string;
17
- }
18
- }
@@ -1,49 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || (function () {
22
- var ownKeys = function(o) {
23
- ownKeys = Object.getOwnPropertyNames || function (o) {
24
- var ar = [];
25
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
- return ar;
27
- };
28
- return ownKeys(o);
29
- };
30
- return function (mod) {
31
- if (mod && mod.__esModule) return mod;
32
- var result = {};
33
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
- __setModuleDefault(result, mod);
35
- return result;
36
- };
37
- })();
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.DocumentsCreateRequestWithTemplateId = void 0;
40
- const core = __importStar(require("../../core/index.js"));
41
- const DocumentsContext_js_1 = require("./DocumentsContext.js");
42
- const Uuid_js_1 = require("./Uuid.js");
43
- exports.DocumentsCreateRequestWithTemplateId = core.serialization.object({
44
- context: core.serialization.list(DocumentsContext_js_1.DocumentsContext),
45
- templateId: Uuid_js_1.Uuid,
46
- name: core.serialization.string().optional(),
47
- modelName: core.serialization.string().optional(),
48
- outputLanguage: core.serialization.string(),
49
- });
@@ -1,12 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * The model name for transcription. By default, only the highest tier is accessible. Check https://docs.corti.ai/about/languages for more.
6
- */
7
- export type TranscriptsCreateRequestModelName = "base" | "enhanced" | "premier";
8
- export declare const TranscriptsCreateRequestModelName: {
9
- readonly Base: "base";
10
- readonly Enhanced: "enhanced";
11
- readonly Premier: "premier";
12
- };
@@ -1,8 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export const TranscriptsCreateRequestModelName = {
5
- Base: "base",
6
- Enhanced: "enhanced",
7
- Premier: "premier",
8
- };
@@ -1 +0,0 @@
1
- export * from "./TranscriptsCreateRequestModelName.mjs";
@@ -1 +0,0 @@
1
- export * from "./TranscriptsCreateRequestModelName.mjs";
@@ -1,14 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Corti from "../index.mjs";
5
- export type DocumentsContextData =
6
- /**
7
- * Facts */
8
- Corti.FactsContext[]
9
- /**
10
- * Transcript */
11
- | Corti.CommonTranscript
12
- /**
13
- * Text */
14
- | string;
@@ -1,9 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export type DocumentsContextTypeEnum = "facts" | "transcript" | "string";
5
- export declare const DocumentsContextTypeEnum: {
6
- readonly Facts: "facts";
7
- readonly Transcript: "transcript";
8
- readonly String: "string";
9
- };
@@ -1,8 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export const DocumentsContextTypeEnum = {
5
- Facts: "facts",
6
- Transcript: "transcript",
7
- String: "string",
8
- };
@@ -1,16 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Corti from "../index.mjs";
5
- export interface DocumentsCreateRequestWithTemplateId {
6
- /** An array of context objects. */
7
- context: Corti.DocumentsContext[];
8
- /** The UUID of the template to use. */
9
- templateId: Corti.Uuid;
10
- /** An optional name for the document. */
11
- name?: string;
12
- /** The model or documentation mode to use for summarization. */
13
- modelName?: string;
14
- /** The language in which the document will be generated. Check https://docs.corti.ai/about/languages for more. */
15
- outputLanguage: string;
16
- }
@@ -1,10 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../../../index.mjs";
5
- import * as Corti from "../../../../api/index.mjs";
6
- import * as core from "../../../../core/index.mjs";
7
- export declare const TranscriptsCreateRequestModelName: core.serialization.Schema<serializers.TranscriptsCreateRequestModelName.Raw, Corti.TranscriptsCreateRequestModelName>;
8
- export declare namespace TranscriptsCreateRequestModelName {
9
- type Raw = "base" | "enhanced" | "premier";
10
- }
@@ -1,5 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as core from "../../../../core/index.mjs";
5
- export const TranscriptsCreateRequestModelName = core.serialization.enum_(["base", "enhanced", "premier"]);
@@ -1 +0,0 @@
1
- export * from "./TranscriptsCreateRequestModelName.mjs";
@@ -1 +0,0 @@
1
- export * from "./TranscriptsCreateRequestModelName.mjs";
@@ -1,12 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../index.mjs";
5
- import * as Corti from "../../api/index.mjs";
6
- import * as core from "../../core/index.mjs";
7
- import { FactsContext } from "./FactsContext.mjs";
8
- import { CommonTranscript } from "./CommonTranscript.mjs";
9
- export declare const DocumentsContextData: core.serialization.Schema<serializers.DocumentsContextData.Raw, Corti.DocumentsContextData>;
10
- export declare namespace DocumentsContextData {
11
- type Raw = FactsContext.Raw[] | CommonTranscript.Raw | string;
12
- }
@@ -1,11 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as core from "../../core/index.mjs";
5
- import { FactsContext } from "./FactsContext.mjs";
6
- import { CommonTranscript } from "./CommonTranscript.mjs";
7
- export const DocumentsContextData = core.serialization.undiscriminatedUnion([
8
- core.serialization.list(FactsContext),
9
- CommonTranscript,
10
- core.serialization.string(),
11
- ]);