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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (237) hide show
  1. package/dist/cjs/Client.d.ts +3 -0
  2. package/dist/cjs/Client.js +13 -8
  3. package/dist/cjs/api/errors/BadGatewayError.d.ts +9 -0
  4. package/dist/cjs/api/errors/BadGatewayError.js +52 -0
  5. package/dist/cjs/api/errors/index.d.ts +1 -0
  6. package/dist/cjs/api/errors/index.js +1 -0
  7. package/dist/cjs/api/resources/agents/client/Client.d.ts +1 -1
  8. package/dist/cjs/api/resources/agents/client/Client.js +11 -1
  9. package/dist/cjs/api/resources/agents/client/requests/AgentsCreateAgent.d.ts +2 -0
  10. package/dist/cjs/api/resources/agents/types/AgentsCreateAgentAgentType.d.ts +12 -0
  11. package/dist/cjs/api/resources/agents/types/AgentsCreateAgentAgentType.js +11 -0
  12. package/dist/cjs/api/resources/agents/types/AgentsCreateAgentExpertsItem.d.ts +1 -1
  13. package/dist/cjs/api/resources/agents/types/index.d.ts +1 -0
  14. package/dist/cjs/api/resources/agents/types/index.js +1 -0
  15. package/dist/cjs/api/resources/auth/client/Client.js +1 -0
  16. package/dist/cjs/api/resources/codes/client/Client.d.ts +59 -0
  17. package/dist/cjs/api/resources/codes/client/Client.js +187 -0
  18. package/dist/cjs/api/resources/codes/client/index.d.ts +2 -0
  19. package/dist/cjs/api/resources/codes/client/index.js +17 -0
  20. package/dist/cjs/api/resources/codes/client/requests/CodesGeneralPredictRequest.d.ts +23 -0
  21. package/dist/cjs/api/resources/codes/client/requests/CodesGeneralPredictRequest.js +5 -0
  22. package/dist/cjs/api/resources/codes/client/requests/index.d.ts +1 -0
  23. package/dist/cjs/api/resources/codes/client/requests/index.js +2 -0
  24. package/dist/cjs/api/resources/codes/index.d.ts +1 -0
  25. package/dist/cjs/api/resources/codes/index.js +17 -0
  26. package/dist/cjs/api/resources/documents/client/Client.d.ts +1 -1
  27. package/dist/cjs/api/resources/documents/client/Client.js +6 -1
  28. package/dist/cjs/api/resources/facts/client/Client.js +6 -0
  29. package/dist/cjs/api/resources/index.d.ts +2 -0
  30. package/dist/cjs/api/resources/index.js +3 -1
  31. package/dist/cjs/api/resources/interactions/client/Client.js +5 -0
  32. package/dist/cjs/api/resources/recordings/client/Client.js +4 -0
  33. package/dist/cjs/api/resources/templates/client/Client.js +3 -0
  34. package/dist/cjs/api/resources/transcripts/client/Client.d.ts +15 -1
  35. package/dist/cjs/api/resources/transcripts/client/Client.js +76 -1
  36. package/dist/cjs/api/types/AgentsCreateExpertReference.d.ts +15 -0
  37. package/dist/cjs/api/types/AgentsCreateExpertReference.js +5 -0
  38. package/dist/cjs/api/types/AgentsCreateMcpServer.d.ts +2 -0
  39. package/dist/cjs/api/types/AgentsExpertReference.d.ts +5 -3
  40. package/dist/cjs/api/types/AgentsMcpServer.d.ts +2 -0
  41. package/dist/cjs/api/types/CodesGeneralReadResponse.d.ts +17 -0
  42. package/dist/cjs/api/types/CodesGeneralReadResponse.js +5 -0
  43. package/dist/cjs/api/types/CodesGeneralReadResponseEvidencesItem.d.ts +9 -0
  44. package/dist/cjs/api/types/CodesGeneralReadResponseEvidencesItem.js +5 -0
  45. package/dist/cjs/api/types/CodesGeneralResponse.d.ts +11 -0
  46. package/dist/cjs/api/types/CodesGeneralResponse.js +5 -0
  47. package/dist/cjs/api/types/CommonAiContext.d.ts +5 -0
  48. package/dist/cjs/api/types/CommonAiContext.js +5 -0
  49. package/dist/cjs/api/types/CommonCodingSystemEnum.d.ts +9 -0
  50. package/dist/cjs/api/types/CommonCodingSystemEnum.js +11 -0
  51. package/dist/cjs/api/types/CommonDocumentIdContext.d.ts +9 -0
  52. package/dist/cjs/api/types/CommonDocumentIdContext.js +5 -0
  53. package/dist/cjs/api/types/DocumentsContextWithFacts.d.ts +1 -1
  54. package/dist/cjs/api/types/DocumentsContextWithTranscript.d.ts +1 -1
  55. package/dist/cjs/api/types/DocumentsCreateRequestWithTemplate.d.ts +1 -1
  56. package/dist/cjs/api/types/DocumentsCreateRequestWithTemplateKey.d.ts +2 -2
  57. package/dist/cjs/api/types/ErrorResponse.d.ts +4 -5
  58. package/dist/cjs/api/types/TranscriptsResponse.d.ts +4 -0
  59. package/dist/cjs/api/types/TranscriptsStatusEnum.d.ts +12 -0
  60. package/dist/cjs/api/types/TranscriptsStatusEnum.js +11 -0
  61. package/dist/cjs/api/types/TranscriptsStatusResponse.d.ts +8 -0
  62. package/dist/cjs/api/types/TranscriptsStatusResponse.js +5 -0
  63. package/dist/cjs/api/types/index.d.ts +9 -0
  64. package/dist/cjs/api/types/index.js +9 -0
  65. package/dist/cjs/custom/CortiClient.d.ts +3 -0
  66. package/dist/cjs/custom/CortiClient.js +5 -0
  67. package/dist/cjs/index.d.ts +4 -0
  68. package/dist/cjs/index.js +6 -1
  69. package/dist/cjs/serialization/resources/agents/client/requests/AgentsCreateAgent.d.ts +2 -0
  70. package/dist/cjs/serialization/resources/agents/client/requests/AgentsCreateAgent.js +2 -0
  71. package/dist/cjs/serialization/resources/agents/types/AgentsCreateAgentAgentType.d.ts +10 -0
  72. package/dist/cjs/serialization/resources/agents/types/AgentsCreateAgentAgentType.js +41 -0
  73. package/dist/cjs/serialization/resources/agents/types/AgentsCreateAgentExpertsItem.d.ts +2 -2
  74. package/dist/cjs/serialization/resources/agents/types/AgentsCreateAgentExpertsItem.js +2 -2
  75. package/dist/cjs/serialization/resources/agents/types/index.d.ts +1 -0
  76. package/dist/cjs/serialization/resources/agents/types/index.js +1 -0
  77. package/dist/cjs/serialization/resources/codes/client/index.d.ts +1 -0
  78. package/dist/cjs/serialization/resources/codes/client/index.js +17 -0
  79. package/dist/cjs/serialization/resources/codes/client/requests/CodesGeneralPredictRequest.d.ts +16 -0
  80. package/dist/cjs/serialization/resources/codes/client/requests/CodesGeneralPredictRequest.js +47 -0
  81. package/dist/cjs/serialization/resources/codes/client/requests/index.d.ts +1 -0
  82. package/dist/cjs/serialization/resources/codes/client/requests/index.js +5 -0
  83. package/dist/cjs/serialization/resources/codes/index.d.ts +1 -0
  84. package/dist/cjs/serialization/resources/codes/index.js +17 -0
  85. package/dist/cjs/serialization/resources/index.d.ts +2 -0
  86. package/dist/cjs/serialization/resources/index.js +3 -1
  87. package/dist/cjs/serialization/types/AgentsCreateExpertReference.d.ts +15 -0
  88. package/dist/cjs/serialization/types/AgentsCreateExpertReference.js +46 -0
  89. package/dist/cjs/serialization/types/AgentsCreateMcpServer.d.ts +1 -0
  90. package/dist/cjs/serialization/types/AgentsCreateMcpServer.js +1 -0
  91. package/dist/cjs/serialization/types/AgentsExpertReference.d.ts +3 -2
  92. package/dist/cjs/serialization/types/AgentsExpertReference.js +3 -2
  93. package/dist/cjs/serialization/types/AgentsMcpServer.d.ts +1 -0
  94. package/dist/cjs/serialization/types/AgentsMcpServer.js +1 -0
  95. package/dist/cjs/serialization/types/CodesGeneralReadResponse.d.ts +17 -0
  96. package/dist/cjs/serialization/types/CodesGeneralReadResponse.js +48 -0
  97. package/dist/cjs/serialization/types/CodesGeneralReadResponseEvidencesItem.d.ts +13 -0
  98. package/dist/cjs/serialization/types/CodesGeneralReadResponseEvidencesItem.js +44 -0
  99. package/dist/cjs/serialization/types/CodesGeneralResponse.d.ts +16 -0
  100. package/dist/cjs/serialization/types/CodesGeneralResponse.js +47 -0
  101. package/dist/cjs/serialization/types/CommonAiContext.d.ts +12 -0
  102. package/dist/cjs/serialization/types/CommonAiContext.js +43 -0
  103. package/dist/cjs/serialization/types/CommonCodingSystemEnum.d.ts +10 -0
  104. package/dist/cjs/serialization/types/CommonCodingSystemEnum.js +41 -0
  105. package/dist/cjs/serialization/types/CommonDocumentIdContext.d.ts +13 -0
  106. package/dist/cjs/serialization/types/CommonDocumentIdContext.js +44 -0
  107. package/dist/cjs/serialization/types/ErrorResponse.d.ts +4 -5
  108. package/dist/cjs/serialization/types/ErrorResponse.js +6 -5
  109. package/dist/cjs/serialization/types/TranscriptsResponse.d.ts +3 -0
  110. package/dist/cjs/serialization/types/TranscriptsResponse.js +3 -0
  111. package/dist/cjs/serialization/types/TranscriptsStatusEnum.d.ts +10 -0
  112. package/dist/cjs/serialization/types/TranscriptsStatusEnum.js +41 -0
  113. package/dist/cjs/serialization/types/TranscriptsStatusResponse.d.ts +13 -0
  114. package/dist/cjs/serialization/types/TranscriptsStatusResponse.js +44 -0
  115. package/dist/cjs/serialization/types/index.d.ts +9 -0
  116. package/dist/cjs/serialization/types/index.js +9 -0
  117. package/dist/cjs/version.d.ts +1 -1
  118. package/dist/cjs/version.js +1 -1
  119. package/dist/esm/Client.d.mts +3 -0
  120. package/dist/esm/Client.mjs +7 -2
  121. package/dist/esm/api/errors/BadGatewayError.d.mts +9 -0
  122. package/dist/esm/api/errors/BadGatewayError.mjs +15 -0
  123. package/dist/esm/api/errors/index.d.mts +1 -0
  124. package/dist/esm/api/errors/index.mjs +1 -0
  125. package/dist/esm/api/resources/agents/client/Client.d.mts +1 -1
  126. package/dist/esm/api/resources/agents/client/Client.mjs +11 -1
  127. package/dist/esm/api/resources/agents/client/requests/AgentsCreateAgent.d.mts +2 -0
  128. package/dist/esm/api/resources/agents/types/AgentsCreateAgentAgentType.d.mts +12 -0
  129. package/dist/esm/api/resources/agents/types/AgentsCreateAgentAgentType.mjs +8 -0
  130. package/dist/esm/api/resources/agents/types/AgentsCreateAgentExpertsItem.d.mts +1 -1
  131. package/dist/esm/api/resources/agents/types/index.d.mts +1 -0
  132. package/dist/esm/api/resources/agents/types/index.mjs +1 -0
  133. package/dist/esm/api/resources/auth/client/Client.mjs +1 -0
  134. package/dist/esm/api/resources/codes/client/Client.d.mts +59 -0
  135. package/dist/esm/api/resources/codes/client/Client.mjs +150 -0
  136. package/dist/esm/api/resources/codes/client/index.d.mts +2 -0
  137. package/dist/esm/api/resources/codes/client/index.mjs +1 -0
  138. package/dist/esm/api/resources/codes/client/requests/CodesGeneralPredictRequest.d.mts +23 -0
  139. package/dist/esm/api/resources/codes/client/requests/CodesGeneralPredictRequest.mjs +4 -0
  140. package/dist/esm/api/resources/codes/client/requests/index.d.mts +1 -0
  141. package/dist/esm/api/resources/codes/client/requests/index.mjs +1 -0
  142. package/dist/esm/api/resources/codes/index.d.mts +1 -0
  143. package/dist/esm/api/resources/codes/index.mjs +1 -0
  144. package/dist/esm/api/resources/documents/client/Client.d.mts +1 -1
  145. package/dist/esm/api/resources/documents/client/Client.mjs +6 -1
  146. package/dist/esm/api/resources/facts/client/Client.mjs +6 -0
  147. package/dist/esm/api/resources/index.d.mts +2 -0
  148. package/dist/esm/api/resources/index.mjs +2 -0
  149. package/dist/esm/api/resources/interactions/client/Client.mjs +5 -0
  150. package/dist/esm/api/resources/recordings/client/Client.mjs +4 -0
  151. package/dist/esm/api/resources/templates/client/Client.mjs +3 -0
  152. package/dist/esm/api/resources/transcripts/client/Client.d.mts +15 -1
  153. package/dist/esm/api/resources/transcripts/client/Client.mjs +76 -1
  154. package/dist/esm/api/types/AgentsCreateExpertReference.d.mts +15 -0
  155. package/dist/esm/api/types/AgentsCreateExpertReference.mjs +4 -0
  156. package/dist/esm/api/types/AgentsCreateMcpServer.d.mts +2 -0
  157. package/dist/esm/api/types/AgentsExpertReference.d.mts +5 -3
  158. package/dist/esm/api/types/AgentsMcpServer.d.mts +2 -0
  159. package/dist/esm/api/types/CodesGeneralReadResponse.d.mts +17 -0
  160. package/dist/esm/api/types/CodesGeneralReadResponse.mjs +4 -0
  161. package/dist/esm/api/types/CodesGeneralReadResponseEvidencesItem.d.mts +9 -0
  162. package/dist/esm/api/types/CodesGeneralReadResponseEvidencesItem.mjs +4 -0
  163. package/dist/esm/api/types/CodesGeneralResponse.d.mts +11 -0
  164. package/dist/esm/api/types/CodesGeneralResponse.mjs +4 -0
  165. package/dist/esm/api/types/CommonAiContext.d.mts +5 -0
  166. package/dist/esm/api/types/CommonAiContext.mjs +4 -0
  167. package/dist/esm/api/types/CommonCodingSystemEnum.d.mts +9 -0
  168. package/dist/esm/api/types/CommonCodingSystemEnum.mjs +8 -0
  169. package/dist/esm/api/types/CommonDocumentIdContext.d.mts +9 -0
  170. package/dist/esm/api/types/CommonDocumentIdContext.mjs +4 -0
  171. package/dist/esm/api/types/DocumentsContextWithFacts.d.mts +1 -1
  172. package/dist/esm/api/types/DocumentsContextWithTranscript.d.mts +1 -1
  173. package/dist/esm/api/types/DocumentsCreateRequestWithTemplate.d.mts +1 -1
  174. package/dist/esm/api/types/DocumentsCreateRequestWithTemplateKey.d.mts +2 -2
  175. package/dist/esm/api/types/ErrorResponse.d.mts +4 -5
  176. package/dist/esm/api/types/TranscriptsResponse.d.mts +4 -0
  177. package/dist/esm/api/types/TranscriptsStatusEnum.d.mts +12 -0
  178. package/dist/esm/api/types/TranscriptsStatusEnum.mjs +8 -0
  179. package/dist/esm/api/types/TranscriptsStatusResponse.d.mts +8 -0
  180. package/dist/esm/api/types/TranscriptsStatusResponse.mjs +4 -0
  181. package/dist/esm/api/types/index.d.mts +9 -0
  182. package/dist/esm/api/types/index.mjs +9 -0
  183. package/dist/esm/custom/CortiClient.d.mts +3 -0
  184. package/dist/esm/custom/CortiClient.mjs +5 -0
  185. package/dist/esm/index.d.mts +4 -0
  186. package/dist/esm/index.mjs +4 -0
  187. package/dist/esm/serialization/resources/agents/client/requests/AgentsCreateAgent.d.mts +2 -0
  188. package/dist/esm/serialization/resources/agents/client/requests/AgentsCreateAgent.mjs +2 -0
  189. package/dist/esm/serialization/resources/agents/types/AgentsCreateAgentAgentType.d.mts +10 -0
  190. package/dist/esm/serialization/resources/agents/types/AgentsCreateAgentAgentType.mjs +5 -0
  191. package/dist/esm/serialization/resources/agents/types/AgentsCreateAgentExpertsItem.d.mts +2 -2
  192. package/dist/esm/serialization/resources/agents/types/AgentsCreateAgentExpertsItem.mjs +2 -2
  193. package/dist/esm/serialization/resources/agents/types/index.d.mts +1 -0
  194. package/dist/esm/serialization/resources/agents/types/index.mjs +1 -0
  195. package/dist/esm/serialization/resources/codes/client/index.d.mts +1 -0
  196. package/dist/esm/serialization/resources/codes/client/index.mjs +1 -0
  197. package/dist/esm/serialization/resources/codes/client/requests/CodesGeneralPredictRequest.d.mts +16 -0
  198. package/dist/esm/serialization/resources/codes/client/requests/CodesGeneralPredictRequest.mjs +11 -0
  199. package/dist/esm/serialization/resources/codes/client/requests/index.d.mts +1 -0
  200. package/dist/esm/serialization/resources/codes/client/requests/index.mjs +1 -0
  201. package/dist/esm/serialization/resources/codes/index.d.mts +1 -0
  202. package/dist/esm/serialization/resources/codes/index.mjs +1 -0
  203. package/dist/esm/serialization/resources/index.d.mts +2 -0
  204. package/dist/esm/serialization/resources/index.mjs +2 -0
  205. package/dist/esm/serialization/types/AgentsCreateExpertReference.d.mts +15 -0
  206. package/dist/esm/serialization/types/AgentsCreateExpertReference.mjs +10 -0
  207. package/dist/esm/serialization/types/AgentsCreateMcpServer.d.mts +1 -0
  208. package/dist/esm/serialization/types/AgentsCreateMcpServer.mjs +1 -0
  209. package/dist/esm/serialization/types/AgentsExpertReference.d.mts +3 -2
  210. package/dist/esm/serialization/types/AgentsExpertReference.mjs +3 -2
  211. package/dist/esm/serialization/types/AgentsMcpServer.d.mts +1 -0
  212. package/dist/esm/serialization/types/AgentsMcpServer.mjs +1 -0
  213. package/dist/esm/serialization/types/CodesGeneralReadResponse.d.mts +17 -0
  214. package/dist/esm/serialization/types/CodesGeneralReadResponse.mjs +12 -0
  215. package/dist/esm/serialization/types/CodesGeneralReadResponseEvidencesItem.d.mts +13 -0
  216. package/dist/esm/serialization/types/CodesGeneralReadResponseEvidencesItem.mjs +8 -0
  217. package/dist/esm/serialization/types/CodesGeneralResponse.d.mts +16 -0
  218. package/dist/esm/serialization/types/CodesGeneralResponse.mjs +11 -0
  219. package/dist/esm/serialization/types/CommonAiContext.d.mts +12 -0
  220. package/dist/esm/serialization/types/CommonAiContext.mjs +7 -0
  221. package/dist/esm/serialization/types/CommonCodingSystemEnum.d.mts +10 -0
  222. package/dist/esm/serialization/types/CommonCodingSystemEnum.mjs +5 -0
  223. package/dist/esm/serialization/types/CommonDocumentIdContext.d.mts +13 -0
  224. package/dist/esm/serialization/types/CommonDocumentIdContext.mjs +8 -0
  225. package/dist/esm/serialization/types/ErrorResponse.d.mts +4 -5
  226. package/dist/esm/serialization/types/ErrorResponse.mjs +6 -5
  227. package/dist/esm/serialization/types/TranscriptsResponse.d.mts +3 -0
  228. package/dist/esm/serialization/types/TranscriptsResponse.mjs +3 -0
  229. package/dist/esm/serialization/types/TranscriptsStatusEnum.d.mts +10 -0
  230. package/dist/esm/serialization/types/TranscriptsStatusEnum.mjs +5 -0
  231. package/dist/esm/serialization/types/TranscriptsStatusResponse.d.mts +13 -0
  232. package/dist/esm/serialization/types/TranscriptsStatusResponse.mjs +8 -0
  233. package/dist/esm/serialization/types/index.d.mts +9 -0
  234. package/dist/esm/serialization/types/index.mjs +9 -0
  235. package/dist/esm/version.d.mts +1 -1
  236. package/dist/esm/version.mjs +1 -1
  237. package/package.json +1 -1
@@ -10,6 +10,7 @@ import { Transcripts } from "./api/resources/transcripts/client/Client.mjs";
10
10
  import { Facts } from "./api/resources/facts/client/Client.mjs";
11
11
  import { Documents } from "./api/resources/documents/client/Client.mjs";
12
12
  import { Templates } from "./api/resources/templates/client/Client.mjs";
13
+ import { Codes } from "./api/resources/codes/client/Client.mjs";
13
14
  import { Agents } from "./api/resources/agents/client/Client.mjs";
14
15
  import { Stream } from "./api/resources/stream/client/Client.mjs";
15
16
  import { Transcribe } from "./api/resources/transcribe/client/Client.mjs";
@@ -47,6 +48,7 @@ export declare class CortiClient {
47
48
  protected _facts: Facts | undefined;
48
49
  protected _documents: Documents | undefined;
49
50
  protected _templates: Templates | undefined;
51
+ protected _codes: Codes | undefined;
50
52
  protected _auth: Auth | undefined;
51
53
  protected _agents: Agents | undefined;
52
54
  protected _stream: Stream | undefined;
@@ -58,6 +60,7 @@ export declare class CortiClient {
58
60
  get facts(): Facts;
59
61
  get documents(): Documents;
60
62
  get templates(): Templates;
63
+ get codes(): Codes;
61
64
  get auth(): Auth;
62
65
  get agents(): Agents;
63
66
  get stream(): Stream;
@@ -19,6 +19,7 @@ import { Transcripts } from "./api/resources/transcripts/client/Client.mjs";
19
19
  import { Facts } from "./api/resources/facts/client/Client.mjs";
20
20
  import { Documents } from "./api/resources/documents/client/Client.mjs";
21
21
  import { Templates } from "./api/resources/templates/client/Client.mjs";
22
+ import { Codes } from "./api/resources/codes/client/Client.mjs";
22
23
  import { Agents } from "./api/resources/agents/client/Client.mjs";
23
24
  import { Stream } from "./api/resources/stream/client/Client.mjs";
24
25
  import { Transcribe } from "./api/resources/transcribe/client/Client.mjs";
@@ -28,8 +29,8 @@ export class CortiClient {
28
29
  "Tenant-Name": _options === null || _options === void 0 ? void 0 : _options.tenantName,
29
30
  "X-Fern-Language": "JavaScript",
30
31
  "X-Fern-SDK-Name": "@corti/sdk",
31
- "X-Fern-SDK-Version": "0.9.1-rc",
32
- "User-Agent": "@corti/sdk/0.9.1-rc",
32
+ "X-Fern-SDK-Version": "0.10.0-rc.1",
33
+ "User-Agent": "@corti/sdk/0.10.0-rc.1",
33
34
  "X-Fern-Runtime": core.RUNTIME.type,
34
35
  "X-Fern-Runtime-Version": core.RUNTIME.version,
35
36
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -63,6 +64,10 @@ export class CortiClient {
63
64
  var _a;
64
65
  return ((_a = this._templates) !== null && _a !== void 0 ? _a : (this._templates = new Templates(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
65
66
  }
67
+ get codes() {
68
+ var _a;
69
+ return ((_a = this._codes) !== null && _a !== void 0 ? _a : (this._codes = new Codes(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
70
+ }
66
71
  get auth() {
67
72
  var _a;
68
73
  return ((_a = this._auth) !== null && _a !== void 0 ? _a : (this._auth = new Auth(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as errors from "../../errors/index.mjs";
5
+ import * as Corti from "../index.mjs";
6
+ import * as core from "../../core/index.mjs";
7
+ export declare class BadGatewayError extends errors.CortiError {
8
+ constructor(body: Corti.ErrorResponse, rawResponse?: core.RawResponse);
9
+ }
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as errors from "../../errors/index.mjs";
5
+ export class BadGatewayError extends errors.CortiError {
6
+ constructor(body, rawResponse) {
7
+ super({
8
+ message: "BadGatewayError",
9
+ statusCode: 502,
10
+ body: body,
11
+ rawResponse: rawResponse,
12
+ });
13
+ Object.setPrototypeOf(this, BadGatewayError.prototype);
14
+ }
15
+ }
@@ -4,3 +4,4 @@ export * from "./BadRequestError.mjs";
4
4
  export * from "./InternalServerError.mjs";
5
5
  export * from "./NotFoundError.mjs";
6
6
  export * from "./UnauthorizedError.mjs";
7
+ export * from "./BadGatewayError.mjs";
@@ -4,3 +4,4 @@ export * from "./BadRequestError.mjs";
4
4
  export * from "./InternalServerError.mjs";
5
5
  export * from "./NotFoundError.mjs";
6
6
  export * from "./UnauthorizedError.mjs";
7
+ export * from "./BadGatewayError.mjs";
@@ -189,7 +189,7 @@ export declare class Agents {
189
189
  getContext(id: string, contextId: string, request?: Corti.AgentsGetContextRequest, requestOptions?: Agents.RequestOptions): core.HttpResponsePromise<Corti.AgentsContext>;
190
190
  private __getContext;
191
191
  /**
192
- * This endpoint retrieves the experts registry, which contains information about all available experts that can be referenced when creating agents through the AgentsExpertReference schema.
192
+ * This endpoint retrieves the experts registry, which contains information about all available experts that can be referenced when creating agents through the AgentsCreateExpertReference schema.
193
193
  *
194
194
  * @param {Corti.AgentsGetRegistryExpertsRequest} request
195
195
  * @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
@@ -69,6 +69,7 @@ export class Agents {
69
69
  queryParameters: _queryParams,
70
70
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
71
71
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
72
+ withCredentials: true,
72
73
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
73
74
  });
74
75
  if (_response.ok) {
@@ -156,6 +157,7 @@ export class Agents {
156
157
  }),
157
158
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
158
159
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
160
+ withCredentials: true,
159
161
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
160
162
  });
161
163
  if (_response.ok) {
@@ -229,6 +231,7 @@ export class Agents {
229
231
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
230
232
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
231
233
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
234
+ withCredentials: true,
232
235
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
233
236
  });
234
237
  if (_response.ok) {
@@ -304,6 +307,7 @@ export class Agents {
304
307
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
305
308
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
306
309
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
310
+ withCredentials: true,
307
311
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
308
312
  });
309
313
  if (_response.ok) {
@@ -382,6 +386,7 @@ export class Agents {
382
386
  }),
383
387
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
384
388
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
389
+ withCredentials: true,
385
390
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
386
391
  });
387
392
  if (_response.ok) {
@@ -457,6 +462,7 @@ export class Agents {
457
462
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
458
463
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
459
464
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
465
+ withCredentials: true,
460
466
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
461
467
  });
462
468
  if (_response.ok) {
@@ -549,6 +555,7 @@ export class Agents {
549
555
  }),
550
556
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
551
557
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
558
+ withCredentials: true,
552
559
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
553
560
  });
554
561
  if (_response.ok) {
@@ -632,6 +639,7 @@ export class Agents {
632
639
  queryParameters: _queryParams,
633
640
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
634
641
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
642
+ withCredentials: true,
635
643
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
636
644
  });
637
645
  if (_response.ok) {
@@ -718,6 +726,7 @@ export class Agents {
718
726
  queryParameters: _queryParams,
719
727
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
720
728
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
729
+ withCredentials: true,
721
730
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
722
731
  });
723
732
  if (_response.ok) {
@@ -766,7 +775,7 @@ export class Agents {
766
775
  });
767
776
  }
768
777
  /**
769
- * This endpoint retrieves the experts registry, which contains information about all available experts that can be referenced when creating agents through the AgentsExpertReference schema.
778
+ * This endpoint retrieves the experts registry, which contains information about all available experts that can be referenced when creating agents through the AgentsCreateExpertReference schema.
770
779
  *
771
780
  * @param {Corti.AgentsGetRegistryExpertsRequest} request
772
781
  * @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
@@ -804,6 +813,7 @@ export class Agents {
804
813
  queryParameters: _queryParams,
805
814
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
806
815
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
816
+ withCredentials: true,
807
817
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
808
818
  });
809
819
  if (_response.ok) {
@@ -16,6 +16,8 @@ export interface AgentsCreateAgent {
16
16
  ephemeral?: boolean | null;
17
17
  /** The name of the agent. */
18
18
  name: string;
19
+ /** Optional type of agent. */
20
+ agentType?: Corti.AgentsCreateAgentAgentType;
19
21
  /** The system prompt that defines the overall agents behavior and expectations. This field is optional as there is a default system orchestrator. */
20
22
  systemPrompt?: string;
21
23
  /** A brief description of the agent's capabilities. */
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Optional type of agent.
6
+ */
7
+ export type AgentsCreateAgentAgentType = "expert" | "orchestrator" | "interviewing-expert";
8
+ export declare const AgentsCreateAgentAgentType: {
9
+ readonly Expert: "expert";
10
+ readonly Orchestrator: "orchestrator";
11
+ readonly InterviewingExpert: "interviewing-expert";
12
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export const AgentsCreateAgentAgentType = {
5
+ Expert: "expert",
6
+ Orchestrator: "orchestrator",
7
+ InterviewingExpert: "interviewing-expert",
8
+ };
@@ -2,4 +2,4 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Corti from "../../../index.mjs";
5
- export type AgentsCreateAgentExpertsItem = Corti.AgentsCreateExpert | Corti.AgentsExpertReference;
5
+ export type AgentsCreateAgentExpertsItem = Corti.AgentsCreateExpert | Corti.AgentsCreateExpertReference;
@@ -1,2 +1,3 @@
1
+ export * from "./AgentsCreateAgentAgentType.mjs";
1
2
  export * from "./AgentsCreateAgentExpertsItem.mjs";
2
3
  export * from "./AgentsMessageSendResponse.mjs";
@@ -1,2 +1,3 @@
1
+ export * from "./AgentsCreateAgentAgentType.mjs";
1
2
  export * from "./AgentsCreateAgentExpertsItem.mjs";
2
3
  export * from "./AgentsMessageSendResponse.mjs";
@@ -51,6 +51,7 @@ export class Auth {
51
51
  })), { scope: "openid", grant_type: "client_credentials" }),
52
52
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
53
53
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
54
+ withCredentials: true,
54
55
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
55
56
  });
56
57
  if (_response.ok) {
@@ -0,0 +1,59 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../environments.mjs";
5
+ import * as core from "../../../../core/index.mjs";
6
+ import * as Corti from "../../../index.mjs";
7
+ export declare namespace Codes {
8
+ interface Options {
9
+ environment: core.Supplier<environments.CortiEnvironment | environments.CortiEnvironmentUrls>;
10
+ /** Specify a custom URL to connect the client to. */
11
+ baseUrl?: core.Supplier<string>;
12
+ token?: core.Supplier<core.BearerToken | undefined>;
13
+ /** Override the Tenant-Name header */
14
+ tenantName: core.Supplier<string>;
15
+ /** Additional headers to include in requests. */
16
+ headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
17
+ }
18
+ interface RequestOptions {
19
+ /** The maximum time to wait for a response in seconds. */
20
+ timeoutInSeconds?: number;
21
+ /** The number of times to retry the request. Defaults to 2. */
22
+ maxRetries?: number;
23
+ /** A hook to abort the request. */
24
+ abortSignal?: AbortSignal;
25
+ /** Override the Tenant-Name header */
26
+ tenantName?: string;
27
+ /** Additional headers to include in the request. */
28
+ headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
29
+ }
30
+ }
31
+ export declare class Codes {
32
+ protected readonly _options: Codes.Options;
33
+ constructor(_options: Codes.Options);
34
+ /**
35
+ * Predict medical codes from provided context.<br/><Note>This is a stateless endpoint, designed to predict ICD-10-CM, ICD-10-PCS, and CPT codes based on input text string or documentId.<br/><br/>More than one code system may be defined in a single request, and the maximum number of codes to return per system can also be defined.<br/><br/>Code prediction requests have two possible values for context:<br/>- `text`: One set of code prediction results will be returned based on all input text defined.<br/>- `documentId`: Code prediction will be based on that defined document only.<br/><br/>The response includes two sets of results:<br/>- `Codes`: Highest confidence bundle of codes, as selected by the code prediction model<br/>- `Candidates`: Full list of candidate codes as predicted by the model, rank sorted by model confidence with maximum possible value of 50.<br/><br/>All predicted code results are based on input context defined in the request only (not other external data or assets associated with an interaction).</Note>
36
+ *
37
+ * @param {Corti.CodesGeneralPredictRequest} request
38
+ * @param {Codes.RequestOptions} requestOptions - Request-specific configuration.
39
+ *
40
+ * @throws {@link Corti.BadRequestError}
41
+ * @throws {@link Corti.ForbiddenError}
42
+ * @throws {@link Corti.InternalServerError}
43
+ * @throws {@link Corti.BadGatewayError}
44
+ * @throws {@link Corti.GatewayTimeoutError}
45
+ *
46
+ * @example
47
+ * await client.codes.predict({
48
+ * system: ["icd10cm", "cpt"],
49
+ * context: [{
50
+ * type: "text",
51
+ * text: "Short arm splint applied in ED for pain control."
52
+ * }],
53
+ * maxCandidates: 5
54
+ * })
55
+ */
56
+ predict(request: Corti.CodesGeneralPredictRequest, requestOptions?: Codes.RequestOptions): core.HttpResponsePromise<Corti.CodesGeneralResponse>;
57
+ private __predict;
58
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
59
+ }
@@ -0,0 +1,150 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
5
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
6
+ return new (P || (P = Promise))(function (resolve, reject) {
7
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
8
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
9
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
10
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
11
+ });
12
+ };
13
+ import * as core from "../../../../core/index.mjs";
14
+ import * as Corti from "../../../index.mjs";
15
+ import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../core/headers.mjs";
16
+ import * as serializers from "../../../../serialization/index.mjs";
17
+ import * as errors from "../../../../errors/index.mjs";
18
+ export class Codes {
19
+ constructor(_options) {
20
+ this._options = _options;
21
+ }
22
+ /**
23
+ * Predict medical codes from provided context.<br/><Note>This is a stateless endpoint, designed to predict ICD-10-CM, ICD-10-PCS, and CPT codes based on input text string or documentId.<br/><br/>More than one code system may be defined in a single request, and the maximum number of codes to return per system can also be defined.<br/><br/>Code prediction requests have two possible values for context:<br/>- `text`: One set of code prediction results will be returned based on all input text defined.<br/>- `documentId`: Code prediction will be based on that defined document only.<br/><br/>The response includes two sets of results:<br/>- `Codes`: Highest confidence bundle of codes, as selected by the code prediction model<br/>- `Candidates`: Full list of candidate codes as predicted by the model, rank sorted by model confidence with maximum possible value of 50.<br/><br/>All predicted code results are based on input context defined in the request only (not other external data or assets associated with an interaction).</Note>
24
+ *
25
+ * @param {Corti.CodesGeneralPredictRequest} request
26
+ * @param {Codes.RequestOptions} requestOptions - Request-specific configuration.
27
+ *
28
+ * @throws {@link Corti.BadRequestError}
29
+ * @throws {@link Corti.ForbiddenError}
30
+ * @throws {@link Corti.InternalServerError}
31
+ * @throws {@link Corti.BadGatewayError}
32
+ * @throws {@link Corti.GatewayTimeoutError}
33
+ *
34
+ * @example
35
+ * await client.codes.predict({
36
+ * system: ["icd10cm", "cpt"],
37
+ * context: [{
38
+ * type: "text",
39
+ * text: "Short arm splint applied in ED for pain control."
40
+ * }],
41
+ * maxCandidates: 5
42
+ * })
43
+ */
44
+ predict(request, requestOptions) {
45
+ return core.HttpResponsePromise.fromPromise(this.__predict(request, requestOptions));
46
+ }
47
+ __predict(request, requestOptions) {
48
+ return __awaiter(this, void 0, void 0, function* () {
49
+ var _a, _b;
50
+ const _response = yield core.fetcher({
51
+ 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, "tools/coding/"),
52
+ method: "POST",
53
+ headers: mergeHeaders((_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, mergeOnlyDefinedHeaders({
54
+ Authorization: yield this._getAuthorizationHeader(),
55
+ "Tenant-Name": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.tenantName,
56
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
57
+ contentType: "application/json",
58
+ requestType: "json",
59
+ body: serializers.CodesGeneralPredictRequest.jsonOrThrow(request, {
60
+ unrecognizedObjectKeys: "strip",
61
+ omitUndefined: true,
62
+ }),
63
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
64
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
65
+ withCredentials: true,
66
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
67
+ });
68
+ if (_response.ok) {
69
+ return {
70
+ data: serializers.CodesGeneralResponse.parseOrThrow(_response.body, {
71
+ unrecognizedObjectKeys: "passthrough",
72
+ allowUnrecognizedUnionMembers: true,
73
+ allowUnrecognizedEnumValues: true,
74
+ skipValidation: true,
75
+ breadcrumbsPrefix: ["response"],
76
+ }),
77
+ rawResponse: _response.rawResponse,
78
+ };
79
+ }
80
+ if (_response.error.reason === "status-code") {
81
+ switch (_response.error.statusCode) {
82
+ case 400:
83
+ throw new Corti.BadRequestError(_response.error.body, _response.rawResponse);
84
+ case 403:
85
+ throw new Corti.ForbiddenError(serializers.ErrorResponse.parseOrThrow(_response.error.body, {
86
+ unrecognizedObjectKeys: "passthrough",
87
+ allowUnrecognizedUnionMembers: true,
88
+ allowUnrecognizedEnumValues: true,
89
+ skipValidation: true,
90
+ breadcrumbsPrefix: ["response"],
91
+ }), _response.rawResponse);
92
+ case 500:
93
+ throw new Corti.InternalServerError(serializers.ErrorResponse.parseOrThrow(_response.error.body, {
94
+ unrecognizedObjectKeys: "passthrough",
95
+ allowUnrecognizedUnionMembers: true,
96
+ allowUnrecognizedEnumValues: true,
97
+ skipValidation: true,
98
+ breadcrumbsPrefix: ["response"],
99
+ }), _response.rawResponse);
100
+ case 502:
101
+ throw new Corti.BadGatewayError(serializers.ErrorResponse.parseOrThrow(_response.error.body, {
102
+ unrecognizedObjectKeys: "passthrough",
103
+ allowUnrecognizedUnionMembers: true,
104
+ allowUnrecognizedEnumValues: true,
105
+ skipValidation: true,
106
+ breadcrumbsPrefix: ["response"],
107
+ }), _response.rawResponse);
108
+ case 504:
109
+ throw new Corti.GatewayTimeoutError(serializers.ErrorResponse.parseOrThrow(_response.error.body, {
110
+ unrecognizedObjectKeys: "passthrough",
111
+ allowUnrecognizedUnionMembers: true,
112
+ allowUnrecognizedEnumValues: true,
113
+ skipValidation: true,
114
+ breadcrumbsPrefix: ["response"],
115
+ }), _response.rawResponse);
116
+ default:
117
+ throw new errors.CortiError({
118
+ statusCode: _response.error.statusCode,
119
+ body: _response.error.body,
120
+ rawResponse: _response.rawResponse,
121
+ });
122
+ }
123
+ }
124
+ switch (_response.error.reason) {
125
+ case "non-json":
126
+ throw new errors.CortiError({
127
+ statusCode: _response.error.statusCode,
128
+ body: _response.error.rawBody,
129
+ rawResponse: _response.rawResponse,
130
+ });
131
+ case "timeout":
132
+ throw new errors.CortiTimeoutError("Timeout exceeded when calling POST /tools/coding/.");
133
+ case "unknown":
134
+ throw new errors.CortiError({
135
+ message: _response.error.errorMessage,
136
+ rawResponse: _response.rawResponse,
137
+ });
138
+ }
139
+ });
140
+ }
141
+ _getAuthorizationHeader() {
142
+ return __awaiter(this, void 0, void 0, function* () {
143
+ const bearer = yield core.Supplier.get(this._options.token);
144
+ if (bearer != null) {
145
+ return `Bearer ${bearer}`;
146
+ }
147
+ return undefined;
148
+ });
149
+ }
150
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ export * from "./requests/index.mjs";
@@ -0,0 +1 @@
1
+ export * from "./requests/index.mjs";
@@ -0,0 +1,23 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Corti from "../../../../index.mjs";
5
+ /**
6
+ * @example
7
+ * {
8
+ * system: ["icd10cm", "cpt"],
9
+ * context: [{
10
+ * type: "text",
11
+ * text: "Short arm splint applied in ED for pain control."
12
+ * }],
13
+ * maxCandidates: 5
14
+ * }
15
+ */
16
+ export interface CodesGeneralPredictRequest {
17
+ /** List of coding systems for prediction */
18
+ system: Corti.CommonCodingSystemEnum[];
19
+ /** Select either `text` or `documentId` as input context to the model for code prediction. Evidence indices in the response map to this array. */
20
+ context: Corti.CommonAiContext[];
21
+ /** Maximum number of code candidates to include in the response (per system). */
22
+ maxCandidates?: number;
23
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1 @@
1
+ export { type CodesGeneralPredictRequest } from "./CodesGeneralPredictRequest.mjs";
@@ -0,0 +1 @@
1
+ export * from "./client/index.mjs";
@@ -0,0 +1 @@
1
+ export * from "./client/index.mjs";
@@ -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
+ * This endpoint offers different ways to generate a document. Find guides to document generation [here](/textgen/documents-standard).
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
@@ -48,6 +48,7 @@ export class Documents {
48
48
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
49
49
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
50
50
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
51
+ withCredentials: true,
51
52
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
52
53
  });
53
54
  if (_response.ok) {
@@ -116,7 +117,7 @@ export class Documents {
116
117
  });
117
118
  }
118
119
  /**
119
- * Generate Document.
120
+ * This endpoint offers different ways to generate a document. Find guides to document generation [here](/textgen/documents-standard).
120
121
  *
121
122
  * @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
122
123
  * @param {Corti.DocumentsCreateRequest} request
@@ -161,6 +162,7 @@ export class Documents {
161
162
  }),
162
163
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
163
164
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
165
+ withCredentials: true,
164
166
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
165
167
  });
166
168
  if (_response.ok) {
@@ -258,6 +260,7 @@ export class Documents {
258
260
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
259
261
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
260
262
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
263
+ withCredentials: true,
261
264
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
262
265
  });
263
266
  if (_response.ok) {
@@ -353,6 +356,7 @@ export class Documents {
353
356
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
354
357
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
355
358
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
359
+ withCredentials: true,
356
360
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
357
361
  });
358
362
  if (_response.ok) {
@@ -446,6 +450,7 @@ export class Documents {
446
450
  }),
447
451
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
448
452
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
453
+ withCredentials: true,
449
454
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
450
455
  });
451
456
  if (_response.ok) {
@@ -44,6 +44,7 @@ export class Facts {
44
44
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
45
45
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
46
46
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
47
+ withCredentials: true,
47
48
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
48
49
  });
49
50
  if (_response.ok) {
@@ -119,6 +120,7 @@ export class Facts {
119
120
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
120
121
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
121
122
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
123
+ withCredentials: true,
122
124
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
123
125
  });
124
126
  if (_response.ok) {
@@ -206,6 +208,7 @@ export class Facts {
206
208
  }),
207
209
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
208
210
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
211
+ withCredentials: true,
209
212
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
210
213
  });
211
214
  if (_response.ok) {
@@ -292,6 +295,7 @@ export class Facts {
292
295
  }),
293
296
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
294
297
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
298
+ withCredentials: true,
295
299
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
296
300
  });
297
301
  if (_response.ok) {
@@ -375,6 +379,7 @@ export class Facts {
375
379
  }),
376
380
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
377
381
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
382
+ withCredentials: true,
378
383
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
379
384
  });
380
385
  if (_response.ok) {
@@ -462,6 +467,7 @@ export class Facts {
462
467
  }),
463
468
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
464
469
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
470
+ withCredentials: true,
465
471
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
466
472
  });
467
473
  if (_response.ok) {
@@ -11,10 +11,12 @@ export * as transcripts from "./transcripts/index.mjs";
11
11
  export * as facts from "./facts/index.mjs";
12
12
  export * as documents from "./documents/index.mjs";
13
13
  export * as templates from "./templates/index.mjs";
14
+ export * as codes from "./codes/index.mjs";
14
15
  export * from "./interactions/client/requests/index.mjs";
15
16
  export * from "./transcripts/client/requests/index.mjs";
16
17
  export * from "./facts/client/requests/index.mjs";
17
18
  export * from "./documents/client/requests/index.mjs";
18
19
  export * from "./templates/client/requests/index.mjs";
20
+ export * from "./codes/client/requests/index.mjs";
19
21
  export * from "./auth/client/requests/index.mjs";
20
22
  export * from "./agents/client/requests/index.mjs";