@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
@@ -3,9 +3,9 @@
3
3
  */
4
4
  import * as Corti from "../index.js";
5
5
  export interface DocumentsCreateRequestWithTemplateKey {
6
- /** An array of context objects. Currently accepts exactly one context object to be used as input for document generation. */
6
+ /** An array of context objects. Currently only accepts multiple objects when of type `transcript`. See [guide](/textgen/documents-standard#generate-document-from-transcript-as-input). */
7
7
  context: Corti.DocumentsContext[];
8
- /** The key of the template that informs on what kind of document is to be generated. */
8
+ /** The key of the template referencing the sections for generating a document. */
9
9
  templateKey: string;
10
10
  /** An optional name for the document. */
11
11
  name?: string;
@@ -2,10 +2,9 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  export interface ErrorResponse {
5
- requestid?: string;
5
+ requestid: string;
6
+ status: number;
6
7
  type: string;
7
- status?: number;
8
- title?: string;
9
- details?: string;
10
- instance?: string;
8
+ detail: string;
9
+ validationErrors?: Record<string, string>[];
11
10
  }
@@ -10,4 +10,8 @@ export interface TranscriptsResponse {
10
10
  /** An array of transcripts. */
11
11
  transcripts?: Corti.CommonTranscriptResponse[] | null;
12
12
  usageInfo: Corti.CommonUsageInfo;
13
+ /** The unique identifier for the associated recording. */
14
+ recordingId: Corti.Uuid;
15
+ /** The current status of the transcript processing. */
16
+ status: Corti.TranscriptsStatusEnum;
13
17
  }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Possible values for transcript processing status.
6
+ */
7
+ export type TranscriptsStatusEnum = "completed" | "processing" | "failed";
8
+ export declare const TranscriptsStatusEnum: {
9
+ readonly Completed: "completed";
10
+ readonly Processing: "processing";
11
+ readonly Failed: "failed";
12
+ };
@@ -0,0 +1,11 @@
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.TranscriptsStatusEnum = void 0;
7
+ exports.TranscriptsStatusEnum = {
8
+ Completed: "completed",
9
+ Processing: "processing",
10
+ Failed: "failed",
11
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Corti from "../index.js";
5
+ export interface TranscriptsStatusResponse {
6
+ /** The current status of the transcript processing. */
7
+ status: Corti.TranscriptsStatusEnum;
8
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +1,4 @@
1
+ export * from "./CommonCodingSystemEnum.js";
1
2
  export * from "./DocumentsContext.js";
2
3
  export * from "./DocumentsContextWithFacts.js";
3
4
  export * from "./DocumentsContextWithTranscript.js";
@@ -20,7 +21,9 @@ export * from "./DocumentsCreateRequest.js";
20
21
  export * from "./DocumentsCreateRequestWithTemplateKey.js";
21
22
  export * from "./DocumentsCreateRequestWithTemplate.js";
22
23
  export * from "./DocumentsSectionInput.js";
24
+ export * from "./CommonDocumentIdContext.js";
23
25
  export * from "./CommonTextContext.js";
26
+ export * from "./CommonAiContext.js";
24
27
  export * from "./FactsCreateInput.js";
25
28
  export * from "./FactsBatchUpdateInput.js";
26
29
  export * from "./TranscriptsParticipant.js";
@@ -37,6 +40,9 @@ export * from "./FactsCreateResponse.js";
37
40
  export * from "./FactsListResponse.js";
38
41
  export * from "./FactsBatchUpdateResponse.js";
39
42
  export * from "./FactsBatchUpdateItem.js";
43
+ export * from "./CodesGeneralResponse.js";
44
+ export * from "./CodesGeneralReadResponseEvidencesItem.js";
45
+ export * from "./CodesGeneralReadResponse.js";
40
46
  export * from "./FactsExtractResponseFactsItem.js";
41
47
  export * from "./FactsExtractResponse.js";
42
48
  export * from "./InteractionsGetResponse.js";
@@ -49,6 +55,8 @@ export * from "./TranscriptsResponse.js";
49
55
  export * from "./TranscriptsListResponse.js";
50
56
  export * from "./TranscriptsListItem.js";
51
57
  export * from "./TranscriptsData.js";
58
+ export * from "./TranscriptsStatusResponse.js";
59
+ export * from "./TranscriptsStatusEnum.js";
52
60
  export * from "./TemplatesSection.js";
53
61
  export * from "./CommonSortingDirectionEnum.js";
54
62
  export * from "./TemplatesDocumentationModeEnum.js";
@@ -143,6 +151,7 @@ export * from "./AgentsAgentExpertsItem.js";
143
151
  export * from "./AgentsAgent.js";
144
152
  export * from "./AgentsAgentReference.js";
145
153
  export * from "./AgentsCreateExpert.js";
154
+ export * from "./AgentsCreateExpertReference.js";
146
155
  export * from "./AgentsExpert.js";
147
156
  export * from "./AgentsExpertReference.js";
148
157
  export * from "./AgentsAgentResponse.js";
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./CommonCodingSystemEnum.js"), exports);
17
18
  __exportStar(require("./DocumentsContext.js"), exports);
18
19
  __exportStar(require("./DocumentsContextWithFacts.js"), exports);
19
20
  __exportStar(require("./DocumentsContextWithTranscript.js"), exports);
@@ -36,7 +37,9 @@ __exportStar(require("./DocumentsCreateRequest.js"), exports);
36
37
  __exportStar(require("./DocumentsCreateRequestWithTemplateKey.js"), exports);
37
38
  __exportStar(require("./DocumentsCreateRequestWithTemplate.js"), exports);
38
39
  __exportStar(require("./DocumentsSectionInput.js"), exports);
40
+ __exportStar(require("./CommonDocumentIdContext.js"), exports);
39
41
  __exportStar(require("./CommonTextContext.js"), exports);
42
+ __exportStar(require("./CommonAiContext.js"), exports);
40
43
  __exportStar(require("./FactsCreateInput.js"), exports);
41
44
  __exportStar(require("./FactsBatchUpdateInput.js"), exports);
42
45
  __exportStar(require("./TranscriptsParticipant.js"), exports);
@@ -53,6 +56,9 @@ __exportStar(require("./FactsCreateResponse.js"), exports);
53
56
  __exportStar(require("./FactsListResponse.js"), exports);
54
57
  __exportStar(require("./FactsBatchUpdateResponse.js"), exports);
55
58
  __exportStar(require("./FactsBatchUpdateItem.js"), exports);
59
+ __exportStar(require("./CodesGeneralResponse.js"), exports);
60
+ __exportStar(require("./CodesGeneralReadResponseEvidencesItem.js"), exports);
61
+ __exportStar(require("./CodesGeneralReadResponse.js"), exports);
56
62
  __exportStar(require("./FactsExtractResponseFactsItem.js"), exports);
57
63
  __exportStar(require("./FactsExtractResponse.js"), exports);
58
64
  __exportStar(require("./InteractionsGetResponse.js"), exports);
@@ -65,6 +71,8 @@ __exportStar(require("./TranscriptsResponse.js"), exports);
65
71
  __exportStar(require("./TranscriptsListResponse.js"), exports);
66
72
  __exportStar(require("./TranscriptsListItem.js"), exports);
67
73
  __exportStar(require("./TranscriptsData.js"), exports);
74
+ __exportStar(require("./TranscriptsStatusResponse.js"), exports);
75
+ __exportStar(require("./TranscriptsStatusEnum.js"), exports);
68
76
  __exportStar(require("./TemplatesSection.js"), exports);
69
77
  __exportStar(require("./CommonSortingDirectionEnum.js"), exports);
70
78
  __exportStar(require("./TemplatesDocumentationModeEnum.js"), exports);
@@ -159,6 +167,7 @@ __exportStar(require("./AgentsAgentExpertsItem.js"), exports);
159
167
  __exportStar(require("./AgentsAgent.js"), exports);
160
168
  __exportStar(require("./AgentsAgentReference.js"), exports);
161
169
  __exportStar(require("./AgentsCreateExpert.js"), exports);
170
+ __exportStar(require("./AgentsCreateExpertReference.js"), exports);
162
171
  __exportStar(require("./AgentsExpert.js"), exports);
163
172
  __exportStar(require("./AgentsExpertReference.js"), exports);
164
173
  __exportStar(require("./AgentsAgentResponse.js"), exports);
@@ -22,6 +22,7 @@ import { Facts } from "../api/resources/facts/client/Client.js";
22
22
  import { Documents } from "../api/resources/documents/client/Client.js";
23
23
  import { Templates } from "../api/resources/templates/client/Client.js";
24
24
  import { Agents } from "../api/resources/agents/client/Client.js";
25
+ import { Codes } from "../api/resources/codes/client/Client.js";
25
26
  /**
26
27
  * Patch: changed import to custom Stream and Transcribe implementations
27
28
  */
@@ -130,6 +131,7 @@ export declare class CortiClient {
130
131
  */
131
132
  protected _stream: Stream | undefined;
132
133
  protected _transcribe: Transcribe | undefined;
134
+ protected _codes: Codes | undefined;
133
135
  constructor(_options: CortiClient.Options);
134
136
  get interactions(): Interactions;
135
137
  get recordings(): Recordings;
@@ -140,4 +142,5 @@ export declare class CortiClient {
140
142
  get agents(): Agents;
141
143
  get stream(): Stream;
142
144
  get transcribe(): Transcribe;
145
+ get codes(): Codes;
143
146
  }
@@ -72,6 +72,7 @@ const Client_js_4 = require("../api/resources/facts/client/Client.js");
72
72
  const Client_js_5 = require("../api/resources/documents/client/Client.js");
73
73
  const Client_js_6 = require("../api/resources/templates/client/Client.js");
74
74
  const Client_js_7 = require("../api/resources/agents/client/Client.js");
75
+ const Client_js_8 = require("../api/resources/codes/client/Client.js");
75
76
  /**
76
77
  * Patch: changed import to custom Stream and Transcribe implementations
77
78
  */
@@ -159,5 +160,9 @@ class CortiClient {
159
160
  var _a;
160
161
  return ((_a = this._transcribe) !== null && _a !== void 0 ? _a : (this._transcribe = new CustomTranscribe_js_1.Transcribe(Object.assign(Object.assign({}, this._options), { token: this._oauthTokenProvider ? () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) : undefined }))));
161
162
  }
163
+ get codes() {
164
+ var _a;
165
+ return ((_a = this._codes) !== null && _a !== void 0 ? _a : (this._codes = new Client_js_8.Codes(Object.assign(Object.assign({}, this._options), { token: this._oauthTokenProvider ? () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) : undefined }))));
166
+ }
162
167
  }
163
168
  exports.CortiClient = CortiClient;
@@ -23,3 +23,7 @@ export { ParseError } from "./core/schemas/builders/schema-utils/ParseError.js";
23
23
  * Patch: added new export to provide SDK-level error handling.
24
24
  */
25
25
  export { CortiSDKError } from "./custom/CortiSDKError.js";
26
+ /**
27
+ * Patch: added new export to expose environment resolution utility.
28
+ */
29
+ export { getEnvironment } from "./custom/utils/getEnvironmentFromString.js";
package/dist/cjs/index.js CHANGED
@@ -33,7 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.CortiSDKError = exports.ParseError = exports.JsonError = exports.CortiAuth = exports.CortiEnvironment = exports.CortiWebSocketProxyClient = exports.CortiClient = exports.serialization = exports.CortiTimeoutError = exports.CortiError = exports.Corti = void 0;
36
+ exports.getEnvironment = exports.CortiSDKError = exports.ParseError = exports.JsonError = exports.CortiAuth = exports.CortiEnvironment = exports.CortiWebSocketProxyClient = exports.CortiClient = exports.serialization = exports.CortiTimeoutError = exports.CortiError = exports.Corti = void 0;
37
37
  exports.Corti = __importStar(require("./api/index.js"));
38
38
  var index_js_1 = require("./errors/index.js");
39
39
  Object.defineProperty(exports, "CortiError", { enumerable: true, get: function () { return index_js_1.CortiError; } });
@@ -68,3 +68,8 @@ Object.defineProperty(exports, "ParseError", { enumerable: true, get: function (
68
68
  */
69
69
  var CortiSDKError_js_1 = require("./custom/CortiSDKError.js");
70
70
  Object.defineProperty(exports, "CortiSDKError", { enumerable: true, get: function () { return CortiSDKError_js_1.CortiSDKError; } });
71
+ /**
72
+ * Patch: added new export to expose environment resolution utility.
73
+ */
74
+ var getEnvironmentFromString_js_1 = require("./custom/utils/getEnvironmentFromString.js");
75
+ Object.defineProperty(exports, "getEnvironment", { enumerable: true, get: function () { return getEnvironmentFromString_js_1.getEnvironment; } });
@@ -4,11 +4,13 @@
4
4
  import * as serializers from "../../../../index.js";
5
5
  import * as Corti from "../../../../../api/index.js";
6
6
  import * as core from "../../../../../core/index.js";
7
+ import { AgentsCreateAgentAgentType } from "../../types/AgentsCreateAgentAgentType.js";
7
8
  import { AgentsCreateAgentExpertsItem } from "../../types/AgentsCreateAgentExpertsItem.js";
8
9
  export declare const AgentsCreateAgent: core.serialization.Schema<serializers.AgentsCreateAgent.Raw, Omit<Corti.AgentsCreateAgent, "ephemeral">>;
9
10
  export declare namespace AgentsCreateAgent {
10
11
  interface Raw {
11
12
  name: string;
13
+ agentType?: AgentsCreateAgentAgentType.Raw | null;
12
14
  systemPrompt?: string | null;
13
15
  description: string;
14
16
  experts?: AgentsCreateAgentExpertsItem.Raw[] | null;
@@ -38,9 +38,11 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.AgentsCreateAgent = void 0;
40
40
  const core = __importStar(require("../../../../../core/index.js"));
41
+ const AgentsCreateAgentAgentType_js_1 = require("../../types/AgentsCreateAgentAgentType.js");
41
42
  const AgentsCreateAgentExpertsItem_js_1 = require("../../types/AgentsCreateAgentExpertsItem.js");
42
43
  exports.AgentsCreateAgent = core.serialization.object({
43
44
  name: core.serialization.string(),
45
+ agentType: AgentsCreateAgentAgentType_js_1.AgentsCreateAgentAgentType.optional(),
44
46
  systemPrompt: core.serialization.string().optional(),
45
47
  description: core.serialization.string(),
46
48
  experts: core.serialization.list(AgentsCreateAgentExpertsItem_js_1.AgentsCreateAgentExpertsItem).optional(),
@@ -0,0 +1,10 @@
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 AgentsCreateAgentAgentType: core.serialization.Schema<serializers.AgentsCreateAgentAgentType.Raw, Corti.AgentsCreateAgentAgentType>;
8
+ export declare namespace AgentsCreateAgentAgentType {
9
+ type Raw = "expert" | "orchestrator" | "interviewing-expert";
10
+ }
@@ -0,0 +1,41 @@
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.AgentsCreateAgentAgentType = void 0;
40
+ const core = __importStar(require("../../../../core/index.js"));
41
+ exports.AgentsCreateAgentAgentType = core.serialization.enum_(["expert", "orchestrator", "interviewing-expert"]);
@@ -5,8 +5,8 @@ import * as serializers from "../../../index.js";
5
5
  import * as Corti from "../../../../api/index.js";
6
6
  import * as core from "../../../../core/index.js";
7
7
  import { AgentsCreateExpert } from "../../../types/AgentsCreateExpert.js";
8
- import { AgentsExpertReference } from "../../../types/AgentsExpertReference.js";
8
+ import { AgentsCreateExpertReference } from "../../../types/AgentsCreateExpertReference.js";
9
9
  export declare const AgentsCreateAgentExpertsItem: core.serialization.Schema<serializers.AgentsCreateAgentExpertsItem.Raw, Corti.AgentsCreateAgentExpertsItem>;
10
10
  export declare namespace AgentsCreateAgentExpertsItem {
11
- type Raw = AgentsCreateExpert.Raw | AgentsExpertReference.Raw;
11
+ type Raw = AgentsCreateExpert.Raw | AgentsCreateExpertReference.Raw;
12
12
  }
@@ -39,5 +39,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.AgentsCreateAgentExpertsItem = void 0;
40
40
  const core = __importStar(require("../../../../core/index.js"));
41
41
  const AgentsCreateExpert_js_1 = require("../../../types/AgentsCreateExpert.js");
42
- const AgentsExpertReference_js_1 = require("../../../types/AgentsExpertReference.js");
43
- exports.AgentsCreateAgentExpertsItem = core.serialization.undiscriminatedUnion([AgentsCreateExpert_js_1.AgentsCreateExpert, AgentsExpertReference_js_1.AgentsExpertReference]);
42
+ const AgentsCreateExpertReference_js_1 = require("../../../types/AgentsCreateExpertReference.js");
43
+ exports.AgentsCreateAgentExpertsItem = core.serialization.undiscriminatedUnion([AgentsCreateExpert_js_1.AgentsCreateExpert, AgentsCreateExpertReference_js_1.AgentsCreateExpertReference]);
@@ -1,2 +1,3 @@
1
+ export * from "./AgentsCreateAgentAgentType.js";
1
2
  export * from "./AgentsCreateAgentExpertsItem.js";
2
3
  export * from "./AgentsMessageSendResponse.js";
@@ -14,5 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./AgentsCreateAgentAgentType.js"), exports);
17
18
  __exportStar(require("./AgentsCreateAgentExpertsItem.js"), exports);
18
19
  __exportStar(require("./AgentsMessageSendResponse.js"), exports);
@@ -0,0 +1 @@
1
+ export * from "./requests/index.js";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./requests/index.js"), exports);
@@ -0,0 +1,16 @@
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 { CommonCodingSystemEnum } from "../../../../types/CommonCodingSystemEnum.js";
8
+ import { CommonAiContext } from "../../../../types/CommonAiContext.js";
9
+ export declare const CodesGeneralPredictRequest: core.serialization.Schema<serializers.CodesGeneralPredictRequest.Raw, Corti.CodesGeneralPredictRequest>;
10
+ export declare namespace CodesGeneralPredictRequest {
11
+ interface Raw {
12
+ system: CommonCodingSystemEnum.Raw[];
13
+ context: CommonAiContext.Raw[];
14
+ maxCandidates?: number | null;
15
+ }
16
+ }
@@ -0,0 +1,47 @@
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.CodesGeneralPredictRequest = void 0;
40
+ const core = __importStar(require("../../../../../core/index.js"));
41
+ const CommonCodingSystemEnum_js_1 = require("../../../../types/CommonCodingSystemEnum.js");
42
+ const CommonAiContext_js_1 = require("../../../../types/CommonAiContext.js");
43
+ exports.CodesGeneralPredictRequest = core.serialization.object({
44
+ system: core.serialization.list(CommonCodingSystemEnum_js_1.CommonCodingSystemEnum),
45
+ context: core.serialization.list(CommonAiContext_js_1.CommonAiContext),
46
+ maxCandidates: core.serialization.number().optional(),
47
+ });
@@ -0,0 +1 @@
1
+ export { CodesGeneralPredictRequest } from "./CodesGeneralPredictRequest.js";
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CodesGeneralPredictRequest = void 0;
4
+ var CodesGeneralPredictRequest_js_1 = require("./CodesGeneralPredictRequest.js");
5
+ Object.defineProperty(exports, "CodesGeneralPredictRequest", { enumerable: true, get: function () { return CodesGeneralPredictRequest_js_1.CodesGeneralPredictRequest; } });
@@ -0,0 +1 @@
1
+ export * from "./client/index.js";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client/index.js"), exports);
@@ -15,5 +15,7 @@ export * as facts from "./facts/index.js";
15
15
  export * from "./facts/client/requests/index.js";
16
16
  export * as documents from "./documents/index.js";
17
17
  export * from "./documents/client/requests/index.js";
18
+ export * as codes from "./codes/index.js";
19
+ export * from "./codes/client/requests/index.js";
18
20
  export * from "./auth/client/requests/index.js";
19
21
  export * from "./agents/client/requests/index.js";
@@ -36,7 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.documents = exports.facts = exports.transcripts = exports.agents = exports.auth = exports.interactions = exports.transcribe = exports.stream = void 0;
39
+ exports.codes = exports.documents = exports.facts = exports.transcripts = exports.agents = exports.auth = exports.interactions = exports.transcribe = exports.stream = void 0;
40
40
  exports.stream = __importStar(require("./stream/index.js"));
41
41
  __exportStar(require("./stream/client/socket/index.js"), exports);
42
42
  exports.transcribe = __importStar(require("./transcribe/index.js"));
@@ -54,5 +54,7 @@ exports.facts = __importStar(require("./facts/index.js"));
54
54
  __exportStar(require("./facts/client/requests/index.js"), exports);
55
55
  exports.documents = __importStar(require("./documents/index.js"));
56
56
  __exportStar(require("./documents/client/requests/index.js"), exports);
57
+ exports.codes = __importStar(require("./codes/index.js"));
58
+ __exportStar(require("./codes/client/requests/index.js"), exports);
57
59
  __exportStar(require("./auth/client/requests/index.js"), exports);
58
60
  __exportStar(require("./agents/client/requests/index.js"), exports);
@@ -0,0 +1,15 @@
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 AgentsCreateExpertReference: core.serialization.ObjectSchema<serializers.AgentsCreateExpertReference.Raw, Corti.AgentsCreateExpertReference>;
8
+ export declare namespace AgentsCreateExpertReference {
9
+ interface Raw {
10
+ type: "reference";
11
+ id?: string | null;
12
+ name?: string | null;
13
+ systemPrompt?: string | null;
14
+ }
15
+ }
@@ -0,0 +1,46 @@
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.AgentsCreateExpertReference = void 0;
40
+ const core = __importStar(require("../../core/index.js"));
41
+ exports.AgentsCreateExpertReference = core.serialization.object({
42
+ type: core.serialization.stringLiteral("reference"),
43
+ id: core.serialization.string().optional(),
44
+ name: core.serialization.string().optional(),
45
+ systemPrompt: core.serialization.string().optional(),
46
+ });
@@ -13,6 +13,7 @@ export declare namespace AgentsCreateMcpServer {
13
13
  description?: string | null;
14
14
  transportType: AgentsCreateMcpServerTransportType.Raw;
15
15
  authorizationType: AgentsCreateMcpServerAuthorizationType.Raw;
16
+ authorizationScope?: string | null;
16
17
  url: string;
17
18
  redirectUrl?: string | null;
18
19
  token?: string | null;
@@ -45,6 +45,7 @@ exports.AgentsCreateMcpServer = core.serialization.object({
45
45
  description: core.serialization.string().optional(),
46
46
  transportType: AgentsCreateMcpServerTransportType_js_1.AgentsCreateMcpServerTransportType,
47
47
  authorizationType: AgentsCreateMcpServerAuthorizationType_js_1.AgentsCreateMcpServerAuthorizationType,
48
+ authorizationScope: core.serialization.string().optional(),
48
49
  url: core.serialization.string(),
49
50
  redirectUrl: core.serialization.string().optional(),
50
51
  token: core.serialization.string().optional(),
@@ -8,7 +8,8 @@ export declare const AgentsExpertReference: core.serialization.ObjectSchema<seri
8
8
  export declare namespace AgentsExpertReference {
9
9
  interface Raw {
10
10
  type: "reference";
11
- id?: string | null;
12
- name?: string | null;
11
+ id: string;
12
+ name: string;
13
+ systemPrompt?: string | null;
13
14
  }
14
15
  }
@@ -40,6 +40,7 @@ exports.AgentsExpertReference = void 0;
40
40
  const core = __importStar(require("../../core/index.js"));
41
41
  exports.AgentsExpertReference = core.serialization.object({
42
42
  type: core.serialization.stringLiteral("reference"),
43
- id: core.serialization.string().optional(),
44
- name: core.serialization.string().optional(),
43
+ id: core.serialization.string(),
44
+ name: core.serialization.string(),
45
+ systemPrompt: core.serialization.string().optional(),
45
46
  });
@@ -13,6 +13,7 @@ export declare namespace AgentsMcpServer {
13
13
  name: string;
14
14
  transportType: AgentsMcpServerTransportType.Raw;
15
15
  authorizationType: AgentsMcpServerAuthorizationType.Raw;
16
+ authorizationScope?: string | null;
16
17
  url: string;
17
18
  redirectUrl?: (string | null) | null;
18
19
  }
@@ -45,6 +45,7 @@ exports.AgentsMcpServer = core.serialization.object({
45
45
  name: core.serialization.string(),
46
46
  transportType: AgentsMcpServerTransportType_js_1.AgentsMcpServerTransportType,
47
47
  authorizationType: AgentsMcpServerAuthorizationType_js_1.AgentsMcpServerAuthorizationType,
48
+ authorizationScope: core.serialization.string().optional(),
48
49
  url: core.serialization.string(),
49
50
  redirectUrl: core.serialization.string().optionalNullable(),
50
51
  });