@corti/sdk 2.0.0-templates.3 → 2.0.0-templates.5

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 (215) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/Client.d.ts +0 -3
  3. package/dist/cjs/Client.js +28 -33
  4. package/dist/cjs/api/errors/UnprocessableEntityError.d.ts +2 -1
  5. package/dist/cjs/api/resources/agents/client/Client.js +28 -4
  6. package/dist/cjs/api/resources/alphaSectionVersions/client/Client.d.ts +1 -1
  7. package/dist/cjs/api/resources/alphaSectionVersions/client/Client.js +1 -1
  8. package/dist/cjs/api/resources/alphaSections/client/Client.d.ts +1 -1
  9. package/dist/cjs/api/resources/alphaSections/client/Client.js +1 -1
  10. package/dist/cjs/api/resources/index.d.ts +0 -1
  11. package/dist/cjs/api/resources/index.js +1 -2
  12. package/dist/cjs/api/types/AgentsErrorResponse.d.ts +12 -0
  13. package/dist/cjs/api/types/AgentsValidationError.d.ts +8 -0
  14. package/dist/cjs/api/types/AgentsValidationErrorErrorsItem.d.ts +4 -0
  15. package/dist/cjs/api/types/AgentsValidationErrorResponse.d.ts +4 -0
  16. package/dist/cjs/api/types/SectionGeneration.d.ts +2 -2
  17. package/dist/cjs/api/types/SectionGenerationPartial.d.ts +1 -1
  18. package/dist/cjs/api/types/index.d.ts +4 -17
  19. package/dist/cjs/api/types/index.js +4 -17
  20. package/dist/cjs/serialization/types/AgentsErrorResponse.d.ts +13 -0
  21. package/dist/cjs/serialization/types/{GuidedDocumentByDynamic.js → AgentsErrorResponse.js} +7 -6
  22. package/dist/cjs/serialization/types/AgentsValidationError.d.ts +14 -0
  23. package/dist/cjs/serialization/types/{GuidedDocumentByTemplateRef.js → AgentsValidationError.js} +8 -6
  24. package/dist/cjs/serialization/types/AgentsValidationErrorErrorsItem.d.ts +10 -0
  25. package/dist/cjs/serialization/types/{GuidedGenerationResultUsageTokenCount.js → AgentsValidationErrorErrorsItem.js} +4 -4
  26. package/dist/cjs/serialization/types/AgentsValidationErrorResponse.d.ts +11 -0
  27. package/dist/cjs/serialization/types/{GuidedDynamicRequest.js → AgentsValidationErrorResponse.js} +8 -7
  28. package/dist/cjs/serialization/types/SectionGeneration.d.ts +1 -1
  29. package/dist/cjs/serialization/types/SectionGeneration.js +1 -1
  30. package/dist/cjs/serialization/types/SectionGenerationPartial.d.ts +1 -1
  31. package/dist/cjs/serialization/types/SectionGenerationPartial.js +1 -1
  32. package/dist/cjs/serialization/types/index.d.ts +4 -17
  33. package/dist/cjs/serialization/types/index.js +4 -17
  34. package/dist/cjs/version.d.ts +1 -1
  35. package/dist/cjs/version.js +1 -1
  36. package/dist/esm/BaseClient.mjs +2 -2
  37. package/dist/esm/Client.d.mts +0 -3
  38. package/dist/esm/Client.mjs +0 -5
  39. package/dist/esm/api/errors/UnprocessableEntityError.d.mts +2 -1
  40. package/dist/esm/api/resources/agents/client/Client.mjs +28 -4
  41. package/dist/esm/api/resources/alphaSectionVersions/client/Client.d.mts +1 -1
  42. package/dist/esm/api/resources/alphaSectionVersions/client/Client.mjs +1 -1
  43. package/dist/esm/api/resources/alphaSections/client/Client.d.mts +1 -1
  44. package/dist/esm/api/resources/alphaSections/client/Client.mjs +1 -1
  45. package/dist/esm/api/resources/index.d.mts +0 -1
  46. package/dist/esm/api/resources/index.mjs +0 -1
  47. package/dist/esm/api/types/AgentsErrorResponse.d.mts +12 -0
  48. package/dist/esm/api/types/AgentsValidationError.d.mts +8 -0
  49. package/dist/esm/api/types/AgentsValidationErrorErrorsItem.d.mts +4 -0
  50. package/dist/esm/api/types/AgentsValidationErrorResponse.d.mts +4 -0
  51. package/dist/esm/api/types/SectionGeneration.d.mts +2 -2
  52. package/dist/esm/api/types/SectionGenerationPartial.d.mts +1 -1
  53. package/dist/esm/api/types/index.d.mts +4 -17
  54. package/dist/esm/api/types/index.mjs +4 -17
  55. package/dist/esm/serialization/types/AgentsErrorResponse.d.mts +13 -0
  56. package/dist/esm/serialization/types/AgentsErrorResponse.mjs +9 -0
  57. package/dist/esm/serialization/types/AgentsValidationError.d.mts +14 -0
  58. package/dist/esm/serialization/types/AgentsValidationError.mjs +10 -0
  59. package/dist/esm/serialization/types/AgentsValidationErrorErrorsItem.d.mts +10 -0
  60. package/dist/esm/serialization/types/AgentsValidationErrorErrorsItem.mjs +6 -0
  61. package/dist/esm/serialization/types/AgentsValidationErrorResponse.d.mts +11 -0
  62. package/dist/esm/serialization/types/AgentsValidationErrorResponse.mjs +9 -0
  63. package/dist/esm/serialization/types/SectionGeneration.d.mts +1 -1
  64. package/dist/esm/serialization/types/SectionGeneration.mjs +1 -1
  65. package/dist/esm/serialization/types/SectionGenerationPartial.d.mts +1 -1
  66. package/dist/esm/serialization/types/SectionGenerationPartial.mjs +1 -1
  67. package/dist/esm/serialization/types/index.d.mts +4 -17
  68. package/dist/esm/serialization/types/index.mjs +4 -17
  69. package/dist/esm/version.d.mts +1 -1
  70. package/dist/esm/version.mjs +1 -1
  71. package/package.json +1 -1
  72. package/dist/cjs/api/resources/alphaDocuments/client/Client.d.ts +0 -41
  73. package/dist/cjs/api/resources/alphaDocuments/client/Client.js +0 -149
  74. package/dist/cjs/api/resources/alphaDocuments/client/index.d.ts +0 -1
  75. package/dist/cjs/api/resources/alphaDocuments/client/index.js +0 -2
  76. package/dist/cjs/api/resources/alphaDocuments/index.d.ts +0 -1
  77. package/dist/cjs/api/resources/alphaDocuments/index.js +0 -17
  78. package/dist/cjs/api/types/GuidedAssemblyRequest.d.ts +0 -13
  79. package/dist/cjs/api/types/GuidedAssemblySectionRef.d.ts +0 -10
  80. package/dist/cjs/api/types/GuidedDocumentByAssembly.d.ts +0 -10
  81. package/dist/cjs/api/types/GuidedDocumentByDynamic.d.ts +0 -10
  82. package/dist/cjs/api/types/GuidedDocumentByTemplateRef.d.ts +0 -10
  83. package/dist/cjs/api/types/GuidedDocumentByTemplateRef.js +0 -3
  84. package/dist/cjs/api/types/GuidedDocumentRequest.d.ts +0 -2
  85. package/dist/cjs/api/types/GuidedDocumentRequest.js +0 -3
  86. package/dist/cjs/api/types/GuidedDocumentResponse.d.ts +0 -8
  87. package/dist/cjs/api/types/GuidedDocumentResponse.js +0 -3
  88. package/dist/cjs/api/types/GuidedDynamicInline.d.ts +0 -5
  89. package/dist/cjs/api/types/GuidedDynamicInline.js +0 -3
  90. package/dist/cjs/api/types/GuidedDynamicRequest.d.ts +0 -10
  91. package/dist/cjs/api/types/GuidedDynamicRequest.js +0 -3
  92. package/dist/cjs/api/types/GuidedGenerationResult.d.ts +0 -11
  93. package/dist/cjs/api/types/GuidedGenerationResult.js +0 -3
  94. package/dist/cjs/api/types/GuidedGenerationResultUsage.d.ts +0 -4
  95. package/dist/cjs/api/types/GuidedGenerationResultUsage.js +0 -3
  96. package/dist/cjs/api/types/GuidedGenerationResultUsageTokenCount.d.ts +0 -4
  97. package/dist/cjs/api/types/GuidedGenerationResultUsageTokenCount.js +0 -3
  98. package/dist/cjs/api/types/GuidedSectionOverride.d.ts +0 -13
  99. package/dist/cjs/api/types/GuidedSectionOverride.js +0 -3
  100. package/dist/cjs/api/types/GuidedTemplateOverrides.d.ts +0 -7
  101. package/dist/cjs/api/types/GuidedTemplateOverrides.js +0 -3
  102. package/dist/cjs/api/types/GuidedTemplateRef.d.ts +0 -9
  103. package/dist/cjs/api/types/GuidedTemplateRef.js +0 -3
  104. package/dist/cjs/api/types/SectionInstructionsOverride.d.ts +0 -9
  105. package/dist/cjs/api/types/SectionInstructionsOverride.js +0 -3
  106. package/dist/cjs/api/types/SectionOverrides.d.ts +0 -11
  107. package/dist/cjs/api/types/SectionOverrides.js +0 -3
  108. package/dist/cjs/serialization/types/GuidedAssemblyRequest.d.ts +0 -14
  109. package/dist/cjs/serialization/types/GuidedAssemblyRequest.js +0 -46
  110. package/dist/cjs/serialization/types/GuidedAssemblySectionRef.d.ts +0 -12
  111. package/dist/cjs/serialization/types/GuidedAssemblySectionRef.js +0 -44
  112. package/dist/cjs/serialization/types/GuidedDocumentByAssembly.d.ts +0 -12
  113. package/dist/cjs/serialization/types/GuidedDocumentByAssembly.js +0 -44
  114. package/dist/cjs/serialization/types/GuidedDocumentByDynamic.d.ts +0 -12
  115. package/dist/cjs/serialization/types/GuidedDocumentByTemplateRef.d.ts +0 -12
  116. package/dist/cjs/serialization/types/GuidedDocumentRequest.d.ts +0 -10
  117. package/dist/cjs/serialization/types/GuidedDocumentRequest.js +0 -46
  118. package/dist/cjs/serialization/types/GuidedDocumentResponse.d.ts +0 -12
  119. package/dist/cjs/serialization/types/GuidedDocumentResponse.js +0 -44
  120. package/dist/cjs/serialization/types/GuidedDynamicInline.d.ts +0 -12
  121. package/dist/cjs/serialization/types/GuidedDynamicInline.js +0 -44
  122. package/dist/cjs/serialization/types/GuidedDynamicRequest.d.ts +0 -12
  123. package/dist/cjs/serialization/types/GuidedGenerationResult.d.ts +0 -12
  124. package/dist/cjs/serialization/types/GuidedGenerationResult.js +0 -46
  125. package/dist/cjs/serialization/types/GuidedGenerationResultUsage.d.ts +0 -10
  126. package/dist/cjs/serialization/types/GuidedGenerationResultUsage.js +0 -42
  127. package/dist/cjs/serialization/types/GuidedGenerationResultUsageTokenCount.d.ts +0 -10
  128. package/dist/cjs/serialization/types/GuidedSectionOverride.d.ts +0 -13
  129. package/dist/cjs/serialization/types/GuidedSectionOverride.js +0 -46
  130. package/dist/cjs/serialization/types/GuidedTemplateOverrides.d.ts +0 -12
  131. package/dist/cjs/serialization/types/GuidedTemplateOverrides.js +0 -44
  132. package/dist/cjs/serialization/types/GuidedTemplateRef.d.ts +0 -12
  133. package/dist/cjs/serialization/types/GuidedTemplateRef.js +0 -44
  134. package/dist/cjs/serialization/types/SectionInstructionsOverride.d.ts +0 -10
  135. package/dist/cjs/serialization/types/SectionInstructionsOverride.js +0 -42
  136. package/dist/cjs/serialization/types/SectionOverrides.d.ts +0 -12
  137. package/dist/cjs/serialization/types/SectionOverrides.js +0 -45
  138. package/dist/esm/api/resources/alphaDocuments/client/Client.d.mts +0 -41
  139. package/dist/esm/api/resources/alphaDocuments/client/Client.mjs +0 -112
  140. package/dist/esm/api/resources/alphaDocuments/client/index.d.mts +0 -1
  141. package/dist/esm/api/resources/alphaDocuments/client/index.mjs +0 -1
  142. package/dist/esm/api/resources/alphaDocuments/index.d.mts +0 -1
  143. package/dist/esm/api/resources/alphaDocuments/index.mjs +0 -1
  144. package/dist/esm/api/types/GuidedAssemblyRequest.d.mts +0 -13
  145. package/dist/esm/api/types/GuidedAssemblySectionRef.d.mts +0 -10
  146. package/dist/esm/api/types/GuidedDocumentByAssembly.d.mts +0 -10
  147. package/dist/esm/api/types/GuidedDocumentByDynamic.d.mts +0 -10
  148. package/dist/esm/api/types/GuidedDocumentByTemplateRef.d.mts +0 -10
  149. package/dist/esm/api/types/GuidedDocumentByTemplateRef.mjs +0 -2
  150. package/dist/esm/api/types/GuidedDocumentRequest.d.mts +0 -2
  151. package/dist/esm/api/types/GuidedDocumentRequest.mjs +0 -2
  152. package/dist/esm/api/types/GuidedDocumentResponse.d.mts +0 -8
  153. package/dist/esm/api/types/GuidedDocumentResponse.mjs +0 -2
  154. package/dist/esm/api/types/GuidedDynamicInline.d.mts +0 -5
  155. package/dist/esm/api/types/GuidedDynamicInline.mjs +0 -2
  156. package/dist/esm/api/types/GuidedDynamicRequest.d.mts +0 -10
  157. package/dist/esm/api/types/GuidedDynamicRequest.mjs +0 -2
  158. package/dist/esm/api/types/GuidedGenerationResult.d.mts +0 -11
  159. package/dist/esm/api/types/GuidedGenerationResult.mjs +0 -2
  160. package/dist/esm/api/types/GuidedGenerationResultUsage.d.mts +0 -4
  161. package/dist/esm/api/types/GuidedGenerationResultUsage.mjs +0 -2
  162. package/dist/esm/api/types/GuidedGenerationResultUsageTokenCount.d.mts +0 -4
  163. package/dist/esm/api/types/GuidedGenerationResultUsageTokenCount.mjs +0 -2
  164. package/dist/esm/api/types/GuidedSectionOverride.d.mts +0 -13
  165. package/dist/esm/api/types/GuidedSectionOverride.mjs +0 -2
  166. package/dist/esm/api/types/GuidedTemplateOverrides.d.mts +0 -7
  167. package/dist/esm/api/types/GuidedTemplateOverrides.mjs +0 -2
  168. package/dist/esm/api/types/GuidedTemplateRef.d.mts +0 -9
  169. package/dist/esm/api/types/GuidedTemplateRef.mjs +0 -2
  170. package/dist/esm/api/types/SectionInstructionsOverride.d.mts +0 -9
  171. package/dist/esm/api/types/SectionInstructionsOverride.mjs +0 -2
  172. package/dist/esm/api/types/SectionOverrides.d.mts +0 -11
  173. package/dist/esm/api/types/SectionOverrides.mjs +0 -2
  174. package/dist/esm/serialization/types/GuidedAssemblyRequest.d.mts +0 -14
  175. package/dist/esm/serialization/types/GuidedAssemblyRequest.mjs +0 -10
  176. package/dist/esm/serialization/types/GuidedAssemblySectionRef.d.mts +0 -12
  177. package/dist/esm/serialization/types/GuidedAssemblySectionRef.mjs +0 -8
  178. package/dist/esm/serialization/types/GuidedDocumentByAssembly.d.mts +0 -12
  179. package/dist/esm/serialization/types/GuidedDocumentByAssembly.mjs +0 -8
  180. package/dist/esm/serialization/types/GuidedDocumentByDynamic.d.mts +0 -12
  181. package/dist/esm/serialization/types/GuidedDocumentByDynamic.mjs +0 -8
  182. package/dist/esm/serialization/types/GuidedDocumentByTemplateRef.d.mts +0 -12
  183. package/dist/esm/serialization/types/GuidedDocumentByTemplateRef.mjs +0 -8
  184. package/dist/esm/serialization/types/GuidedDocumentRequest.d.mts +0 -10
  185. package/dist/esm/serialization/types/GuidedDocumentRequest.mjs +0 -10
  186. package/dist/esm/serialization/types/GuidedDocumentResponse.d.mts +0 -12
  187. package/dist/esm/serialization/types/GuidedDocumentResponse.mjs +0 -8
  188. package/dist/esm/serialization/types/GuidedDynamicInline.d.mts +0 -12
  189. package/dist/esm/serialization/types/GuidedDynamicInline.mjs +0 -8
  190. package/dist/esm/serialization/types/GuidedDynamicRequest.d.mts +0 -12
  191. package/dist/esm/serialization/types/GuidedDynamicRequest.mjs +0 -8
  192. package/dist/esm/serialization/types/GuidedGenerationResult.d.mts +0 -12
  193. package/dist/esm/serialization/types/GuidedGenerationResult.mjs +0 -10
  194. package/dist/esm/serialization/types/GuidedGenerationResultUsage.d.mts +0 -10
  195. package/dist/esm/serialization/types/GuidedGenerationResultUsage.mjs +0 -6
  196. package/dist/esm/serialization/types/GuidedGenerationResultUsageTokenCount.d.mts +0 -10
  197. package/dist/esm/serialization/types/GuidedGenerationResultUsageTokenCount.mjs +0 -6
  198. package/dist/esm/serialization/types/GuidedSectionOverride.d.mts +0 -13
  199. package/dist/esm/serialization/types/GuidedSectionOverride.mjs +0 -10
  200. package/dist/esm/serialization/types/GuidedTemplateOverrides.d.mts +0 -12
  201. package/dist/esm/serialization/types/GuidedTemplateOverrides.mjs +0 -8
  202. package/dist/esm/serialization/types/GuidedTemplateRef.d.mts +0 -12
  203. package/dist/esm/serialization/types/GuidedTemplateRef.mjs +0 -8
  204. package/dist/esm/serialization/types/SectionInstructionsOverride.d.mts +0 -10
  205. package/dist/esm/serialization/types/SectionInstructionsOverride.mjs +0 -6
  206. package/dist/esm/serialization/types/SectionOverrides.d.mts +0 -12
  207. package/dist/esm/serialization/types/SectionOverrides.mjs +0 -9
  208. /package/dist/cjs/api/types/{GuidedAssemblyRequest.js → AgentsErrorResponse.js} +0 -0
  209. /package/dist/cjs/api/types/{GuidedAssemblySectionRef.js → AgentsValidationError.js} +0 -0
  210. /package/dist/cjs/api/types/{GuidedDocumentByAssembly.js → AgentsValidationErrorErrorsItem.js} +0 -0
  211. /package/dist/cjs/api/types/{GuidedDocumentByDynamic.js → AgentsValidationErrorResponse.js} +0 -0
  212. /package/dist/esm/api/types/{GuidedAssemblyRequest.mjs → AgentsErrorResponse.mjs} +0 -0
  213. /package/dist/esm/api/types/{GuidedAssemblySectionRef.mjs → AgentsValidationError.mjs} +0 -0
  214. /package/dist/esm/api/types/{GuidedDocumentByAssembly.mjs → AgentsValidationErrorErrorsItem.mjs} +0 -0
  215. /package/dist/esm/api/types/{GuidedDocumentByDynamic.mjs → AgentsValidationErrorResponse.mjs} +0 -0
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
43
43
  const headers = (0, headers_js_1.mergeHeaders)({
44
44
  "X-Fern-Language": "JavaScript",
45
45
  "X-Fern-SDK-Name": "@corti/sdk",
46
- "X-Fern-SDK-Version": "2.0.0-templates.3",
47
- "User-Agent": "@corti/sdk/2.0.0-templates.3",
46
+ "X-Fern-SDK-Version": "2.0.0-templates.5",
47
+ "User-Agent": "@corti/sdk/2.0.0-templates.5",
48
48
  "X-Fern-Runtime": core.RUNTIME.type,
49
49
  "X-Fern-Runtime-Version": core.RUNTIME.version,
50
50
  "Tenant-Name": options === null || options === void 0 ? void 0 : options.tenantName,
@@ -1,5 +1,4 @@
1
1
  import { AgentsClient } from "./api/resources/agents/client/Client.js";
2
- import { AlphaDocumentsClient } from "./api/resources/alphaDocuments/client/Client.js";
3
2
  import { AlphaSectionsClient } from "./api/resources/alphaSections/client/Client.js";
4
3
  import { AlphaSectionVersionsClient } from "./api/resources/alphaSectionVersions/client/Client.js";
5
4
  import { AlphaTemplatesClient } from "./api/resources/alphaTemplates/client/Client.js";
@@ -35,7 +34,6 @@ export declare class CortiClient {
35
34
  protected _alphaTemplateVersions: AlphaTemplateVersionsClient | undefined;
36
35
  protected _alphaSections: AlphaSectionsClient | undefined;
37
36
  protected _alphaSectionVersions: AlphaSectionVersionsClient | undefined;
38
- protected _alphaDocuments: AlphaDocumentsClient | undefined;
39
37
  protected _agents: AgentsClient | undefined;
40
38
  protected _stream: StreamClient | undefined;
41
39
  protected _transcribe: TranscribeClient | undefined;
@@ -52,7 +50,6 @@ export declare class CortiClient {
52
50
  get alphaTemplateVersions(): AlphaTemplateVersionsClient;
53
51
  get alphaSections(): AlphaSectionsClient;
54
52
  get alphaSectionVersions(): AlphaSectionVersionsClient;
55
- get alphaDocuments(): AlphaDocumentsClient;
56
53
  get agents(): AgentsClient;
57
54
  get stream(): StreamClient;
58
55
  get transcribe(): TranscribeClient;
@@ -3,21 +3,20 @@
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.CortiClient = void 0;
5
5
  const Client_js_1 = require("./api/resources/agents/client/Client.js");
6
- const Client_js_2 = require("./api/resources/alphaDocuments/client/Client.js");
7
- const Client_js_3 = require("./api/resources/alphaSections/client/Client.js");
8
- const Client_js_4 = require("./api/resources/alphaSectionVersions/client/Client.js");
9
- const Client_js_5 = require("./api/resources/alphaTemplates/client/Client.js");
10
- const Client_js_6 = require("./api/resources/alphaTemplateVersions/client/Client.js");
11
- const Client_js_7 = require("./api/resources/auth/client/Client.js");
12
- const Client_js_8 = require("./api/resources/codes/client/Client.js");
13
- const Client_js_9 = require("./api/resources/documents/client/Client.js");
14
- const Client_js_10 = require("./api/resources/facts/client/Client.js");
15
- const Client_js_11 = require("./api/resources/interactions/client/Client.js");
16
- const Client_js_12 = require("./api/resources/recordings/client/Client.js");
17
- const Client_js_13 = require("./api/resources/stream/client/Client.js");
18
- const Client_js_14 = require("./api/resources/templates/client/Client.js");
19
- const Client_js_15 = require("./api/resources/transcribe/client/Client.js");
20
- const Client_js_16 = require("./api/resources/transcripts/client/Client.js");
6
+ const Client_js_2 = require("./api/resources/alphaSections/client/Client.js");
7
+ const Client_js_3 = require("./api/resources/alphaSectionVersions/client/Client.js");
8
+ const Client_js_4 = require("./api/resources/alphaTemplates/client/Client.js");
9
+ const Client_js_5 = require("./api/resources/alphaTemplateVersions/client/Client.js");
10
+ const Client_js_6 = require("./api/resources/auth/client/Client.js");
11
+ const Client_js_7 = require("./api/resources/codes/client/Client.js");
12
+ const Client_js_8 = require("./api/resources/documents/client/Client.js");
13
+ const Client_js_9 = require("./api/resources/facts/client/Client.js");
14
+ const Client_js_10 = require("./api/resources/interactions/client/Client.js");
15
+ const Client_js_11 = require("./api/resources/recordings/client/Client.js");
16
+ const Client_js_12 = require("./api/resources/stream/client/Client.js");
17
+ const Client_js_13 = require("./api/resources/templates/client/Client.js");
18
+ const Client_js_14 = require("./api/resources/transcribe/client/Client.js");
19
+ const Client_js_15 = require("./api/resources/transcripts/client/Client.js");
21
20
  const BaseClient_js_1 = require("./BaseClient.js");
22
21
  class CortiClient {
23
22
  constructor(options) {
@@ -25,55 +24,51 @@ class CortiClient {
25
24
  }
26
25
  get auth() {
27
26
  var _a;
28
- return ((_a = this._auth) !== null && _a !== void 0 ? _a : (this._auth = new Client_js_7.AuthClient(this._options)));
27
+ return ((_a = this._auth) !== null && _a !== void 0 ? _a : (this._auth = new Client_js_6.AuthClient(this._options)));
29
28
  }
30
29
  get interactions() {
31
30
  var _a;
32
- return ((_a = this._interactions) !== null && _a !== void 0 ? _a : (this._interactions = new Client_js_11.InteractionsClient(this._options)));
31
+ return ((_a = this._interactions) !== null && _a !== void 0 ? _a : (this._interactions = new Client_js_10.InteractionsClient(this._options)));
33
32
  }
34
33
  get recordings() {
35
34
  var _a;
36
- return ((_a = this._recordings) !== null && _a !== void 0 ? _a : (this._recordings = new Client_js_12.RecordingsClient(this._options)));
35
+ return ((_a = this._recordings) !== null && _a !== void 0 ? _a : (this._recordings = new Client_js_11.RecordingsClient(this._options)));
37
36
  }
38
37
  get transcripts() {
39
38
  var _a;
40
- return ((_a = this._transcripts) !== null && _a !== void 0 ? _a : (this._transcripts = new Client_js_16.TranscriptsClient(this._options)));
39
+ return ((_a = this._transcripts) !== null && _a !== void 0 ? _a : (this._transcripts = new Client_js_15.TranscriptsClient(this._options)));
41
40
  }
42
41
  get facts() {
43
42
  var _a;
44
- return ((_a = this._facts) !== null && _a !== void 0 ? _a : (this._facts = new Client_js_10.FactsClient(this._options)));
43
+ return ((_a = this._facts) !== null && _a !== void 0 ? _a : (this._facts = new Client_js_9.FactsClient(this._options)));
45
44
  }
46
45
  get documents() {
47
46
  var _a;
48
- return ((_a = this._documents) !== null && _a !== void 0 ? _a : (this._documents = new Client_js_9.DocumentsClient(this._options)));
47
+ return ((_a = this._documents) !== null && _a !== void 0 ? _a : (this._documents = new Client_js_8.DocumentsClient(this._options)));
49
48
  }
50
49
  get templates() {
51
50
  var _a;
52
- return ((_a = this._templates) !== null && _a !== void 0 ? _a : (this._templates = new Client_js_14.TemplatesClient(this._options)));
51
+ return ((_a = this._templates) !== null && _a !== void 0 ? _a : (this._templates = new Client_js_13.TemplatesClient(this._options)));
53
52
  }
54
53
  get codes() {
55
54
  var _a;
56
- return ((_a = this._codes) !== null && _a !== void 0 ? _a : (this._codes = new Client_js_8.CodesClient(this._options)));
55
+ return ((_a = this._codes) !== null && _a !== void 0 ? _a : (this._codes = new Client_js_7.CodesClient(this._options)));
57
56
  }
58
57
  get alphaTemplates() {
59
58
  var _a;
60
- return ((_a = this._alphaTemplates) !== null && _a !== void 0 ? _a : (this._alphaTemplates = new Client_js_5.AlphaTemplatesClient(this._options)));
59
+ return ((_a = this._alphaTemplates) !== null && _a !== void 0 ? _a : (this._alphaTemplates = new Client_js_4.AlphaTemplatesClient(this._options)));
61
60
  }
62
61
  get alphaTemplateVersions() {
63
62
  var _a;
64
- return ((_a = this._alphaTemplateVersions) !== null && _a !== void 0 ? _a : (this._alphaTemplateVersions = new Client_js_6.AlphaTemplateVersionsClient(this._options)));
63
+ return ((_a = this._alphaTemplateVersions) !== null && _a !== void 0 ? _a : (this._alphaTemplateVersions = new Client_js_5.AlphaTemplateVersionsClient(this._options)));
65
64
  }
66
65
  get alphaSections() {
67
66
  var _a;
68
- return ((_a = this._alphaSections) !== null && _a !== void 0 ? _a : (this._alphaSections = new Client_js_3.AlphaSectionsClient(this._options)));
67
+ return ((_a = this._alphaSections) !== null && _a !== void 0 ? _a : (this._alphaSections = new Client_js_2.AlphaSectionsClient(this._options)));
69
68
  }
70
69
  get alphaSectionVersions() {
71
70
  var _a;
72
- return ((_a = this._alphaSectionVersions) !== null && _a !== void 0 ? _a : (this._alphaSectionVersions = new Client_js_4.AlphaSectionVersionsClient(this._options)));
73
- }
74
- get alphaDocuments() {
75
- var _a;
76
- return ((_a = this._alphaDocuments) !== null && _a !== void 0 ? _a : (this._alphaDocuments = new Client_js_2.AlphaDocumentsClient(this._options)));
71
+ return ((_a = this._alphaSectionVersions) !== null && _a !== void 0 ? _a : (this._alphaSectionVersions = new Client_js_3.AlphaSectionVersionsClient(this._options)));
77
72
  }
78
73
  get agents() {
79
74
  var _a;
@@ -81,11 +76,11 @@ class CortiClient {
81
76
  }
82
77
  get stream() {
83
78
  var _a;
84
- return ((_a = this._stream) !== null && _a !== void 0 ? _a : (this._stream = new Client_js_13.StreamClient(this._options)));
79
+ return ((_a = this._stream) !== null && _a !== void 0 ? _a : (this._stream = new Client_js_12.StreamClient(this._options)));
85
80
  }
86
81
  get transcribe() {
87
82
  var _a;
88
- return ((_a = this._transcribe) !== null && _a !== void 0 ? _a : (this._transcribe = new Client_js_15.TranscribeClient(this._options)));
83
+ return ((_a = this._transcribe) !== null && _a !== void 0 ? _a : (this._transcribe = new Client_js_14.TranscribeClient(this._options)));
89
84
  }
90
85
  }
91
86
  exports.CortiClient = CortiClient;
@@ -1,5 +1,6 @@
1
1
  import type * as core from "../../core/index.js";
2
2
  import * as errors from "../../errors/index.js";
3
+ import type * as Corti from "../index.js";
3
4
  export declare class UnprocessableEntityError extends errors.CortiError {
4
- constructor(body?: unknown, rawResponse?: core.RawResponse);
5
+ constructor(body: Corti.AgentsValidationErrorResponse, rawResponse?: core.RawResponse);
5
6
  }
@@ -196,7 +196,13 @@ class AgentsClient {
196
196
  case 401:
197
197
  throw new Corti.UnauthorizedError(_response.error.body, _response.rawResponse);
198
198
  case 422:
199
- throw new Corti.UnprocessableEntityError(_response.error.body, _response.rawResponse);
199
+ throw new Corti.UnprocessableEntityError(serializers.AgentsValidationErrorResponse.parseOrThrow(_response.error.body, {
200
+ unrecognizedObjectKeys: "passthrough",
201
+ allowUnrecognizedUnionMembers: true,
202
+ allowUnrecognizedEnumValues: true,
203
+ skipValidation: true,
204
+ breadcrumbsPrefix: ["response"],
205
+ }), _response.rawResponse);
200
206
  default:
201
207
  throw new errors.CortiError({
202
208
  statusCode: _response.error.statusCode,
@@ -386,7 +392,13 @@ class AgentsClient {
386
392
  case 404:
387
393
  throw new Corti.NotFoundError(_response.error.body, _response.rawResponse);
388
394
  case 422:
389
- throw new Corti.UnprocessableEntityError(_response.error.body, _response.rawResponse);
395
+ throw new Corti.UnprocessableEntityError(serializers.AgentsValidationErrorResponse.parseOrThrow(_response.error.body, {
396
+ unrecognizedObjectKeys: "passthrough",
397
+ allowUnrecognizedUnionMembers: true,
398
+ allowUnrecognizedEnumValues: true,
399
+ skipValidation: true,
400
+ breadcrumbsPrefix: ["response"],
401
+ }), _response.rawResponse);
390
402
  default:
391
403
  throw new errors.CortiError({
392
404
  statusCode: _response.error.statusCode,
@@ -535,7 +547,13 @@ class AgentsClient {
535
547
  case 404:
536
548
  throw new Corti.NotFoundError(_response.error.body, _response.rawResponse);
537
549
  case 422:
538
- throw new Corti.UnprocessableEntityError(_response.error.body, _response.rawResponse);
550
+ throw new Corti.UnprocessableEntityError(serializers.AgentsValidationErrorResponse.parseOrThrow(_response.error.body, {
551
+ unrecognizedObjectKeys: "passthrough",
552
+ allowUnrecognizedUnionMembers: true,
553
+ allowUnrecognizedEnumValues: true,
554
+ skipValidation: true,
555
+ breadcrumbsPrefix: ["response"],
556
+ }), _response.rawResponse);
539
557
  default:
540
558
  throw new errors.CortiError({
541
559
  statusCode: _response.error.statusCode,
@@ -748,7 +766,13 @@ class AgentsClient {
748
766
  case 401:
749
767
  throw new Corti.UnauthorizedError(_response.error.body, _response.rawResponse);
750
768
  case 422:
751
- throw new Corti.UnprocessableEntityError(_response.error.body, _response.rawResponse);
769
+ throw new Corti.UnprocessableEntityError(serializers.AgentsValidationErrorResponse.parseOrThrow(_response.error.body, {
770
+ unrecognizedObjectKeys: "passthrough",
771
+ allowUnrecognizedUnionMembers: true,
772
+ allowUnrecognizedEnumValues: true,
773
+ skipValidation: true,
774
+ breadcrumbsPrefix: ["response"],
775
+ }), _response.rawResponse);
752
776
  default:
753
777
  throw new errors.CortiError({
754
778
  statusCode: _response.error.statusCode,
@@ -31,7 +31,7 @@ export declare class AlphaSectionVersionsClient {
31
31
  *
32
32
  * @example
33
33
  * await client.alphaSectionVersions.create("sectionID", {
34
- * title: "title",
34
+ * heading: "heading",
35
35
  * instructions: {
36
36
  * contentPrompt: "contentPrompt"
37
37
  * },
@@ -120,7 +120,7 @@ class AlphaSectionVersionsClient {
120
120
  *
121
121
  * @example
122
122
  * await client.alphaSectionVersions.create("sectionID", {
123
- * title: "title",
123
+ * heading: "heading",
124
124
  * instructions: {
125
125
  * contentPrompt: "contentPrompt"
126
126
  * },
@@ -30,7 +30,7 @@ export declare class AlphaSectionsClient {
30
30
  * name: "name",
31
31
  * language: "language",
32
32
  * generation: {
33
- * title: "title",
33
+ * heading: "heading",
34
34
  * instructions: {
35
35
  * contentPrompt: "contentPrompt"
36
36
  * },
@@ -120,7 +120,7 @@ class AlphaSectionsClient {
120
120
  * name: "name",
121
121
  * language: "language",
122
122
  * generation: {
123
- * title: "title",
123
+ * heading: "heading",
124
124
  * instructions: {
125
125
  * contentPrompt: "contentPrompt"
126
126
  * },
@@ -1,7 +1,6 @@
1
1
  export * from "./agents/client/requests/index.js";
2
2
  export * as agents from "./agents/index.js";
3
3
  export * from "./agents/types/index.js";
4
- export * as alphaDocuments from "./alphaDocuments/index.js";
5
4
  export * from "./alphaSections/client/requests/index.js";
6
5
  export * as alphaSections from "./alphaSections/index.js";
7
6
  export * as alphaSectionVersions from "./alphaSectionVersions/index.js";
@@ -36,11 +36,10 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.transcripts = exports.transcribe = exports.templates = exports.stream = exports.recordings = exports.interactions = exports.facts = exports.documents = exports.codes = exports.auth = exports.alphaTemplateVersions = exports.alphaTemplates = exports.alphaSectionVersions = exports.alphaSections = exports.alphaDocuments = exports.agents = void 0;
39
+ exports.transcripts = exports.transcribe = exports.templates = exports.stream = exports.recordings = exports.interactions = exports.facts = exports.documents = exports.codes = exports.auth = exports.alphaTemplateVersions = exports.alphaTemplates = exports.alphaSectionVersions = exports.alphaSections = exports.agents = void 0;
40
40
  __exportStar(require("./agents/client/requests/index.js"), exports);
41
41
  exports.agents = __importStar(require("./agents/index.js"));
42
42
  __exportStar(require("./agents/types/index.js"), exports);
43
- exports.alphaDocuments = __importStar(require("./alphaDocuments/index.js"));
44
43
  __exportStar(require("./alphaSections/client/requests/index.js"), exports);
45
44
  exports.alphaSections = __importStar(require("./alphaSections/index.js"));
46
45
  exports.alphaSectionVersions = __importStar(require("./alphaSectionVersions/index.js"));
@@ -0,0 +1,12 @@
1
+ export interface AgentsErrorResponse {
2
+ /** A machine-readable error code that identifies the type of error. */
3
+ code: string;
4
+ /** A human-readable description of the error, providing more context about what went wrong. */
5
+ description: string;
6
+ /** A human-readable message describing how to fix the issue. */
7
+ howToFix?: string;
8
+ /** An optional object containing additional details about the error. */
9
+ details?: Record<string, unknown>;
10
+ /** An optional object containing the cause of the error, following the same structure as the parent error response. */
11
+ cause?: Record<string, unknown>;
12
+ }
@@ -0,0 +1,8 @@
1
+ import type * as Corti from "../index.js";
2
+ export interface AgentsValidationError {
3
+ msg: string;
4
+ type: string;
5
+ reason: string;
6
+ howToFix: string;
7
+ errors?: Corti.AgentsValidationErrorErrorsItem[];
8
+ }
@@ -0,0 +1,4 @@
1
+ export interface AgentsValidationErrorErrorsItem {
2
+ location?: string;
3
+ reason?: string;
4
+ }
@@ -0,0 +1,4 @@
1
+ import type * as Corti from "../index.js";
2
+ export interface AgentsValidationErrorResponse extends Corti.AgentsErrorResponse {
3
+ detail?: Corti.AgentsValidationError[];
4
+ }
@@ -1,7 +1,7 @@
1
1
  import type * as Corti from "../index.js";
2
2
  export interface SectionGeneration {
3
- /** The title of this section. Passed to the LLM. */
4
- title: string;
3
+ /** The heading of this section. Passed to the LLM. */
4
+ heading: string;
5
5
  /** The prompt instructions for this section. */
6
6
  instructions: Corti.SectionInstructions;
7
7
  outputSchema: Corti.OutputSchema;
@@ -4,7 +4,7 @@ import type * as Corti from "../index.js";
4
4
  */
5
5
  export interface SectionGenerationPartial {
6
6
  /** Override the inherited section title. Passed to the LLM. */
7
- title?: string;
7
+ heading?: string;
8
8
  /** Override the inherited prompt instructions for this section. Any field omitted is inherited. */
9
9
  instructions?: Corti.SectionInstructionsPartial;
10
10
  /** Override the inherited output schema. */
@@ -22,6 +22,7 @@ export * from "./AgentsCreateMcpServerAuthorizationType.js";
22
22
  export * from "./AgentsCreateMcpServerTransportType.js";
23
23
  export * from "./AgentsDataPart.js";
24
24
  export * from "./AgentsDataPartKind.js";
25
+ export * from "./AgentsErrorResponse.js";
25
26
  export * from "./AgentsExpert.js";
26
27
  export * from "./AgentsExpertReference.js";
27
28
  export * from "./AgentsExpertReferenceType.js";
@@ -52,6 +53,9 @@ export * from "./AgentsTaskStatusState.js";
52
53
  export * from "./AgentsTextPart.js";
53
54
  export * from "./AgentsTextPartKind.js";
54
55
  export * from "./AgentsUpdateExpertReference.js";
56
+ export * from "./AgentsValidationError.js";
57
+ export * from "./AgentsValidationErrorErrorsItem.js";
58
+ export * from "./AgentsValidationErrorResponse.js";
55
59
  export * from "./ArrayNode.js";
56
60
  export * from "./AuthTokenRequestAuthorizationCode.js";
57
61
  export * from "./AuthTokenRequestAuthorizationPkce.js";
@@ -122,21 +126,6 @@ export * from "./FactsListItem.js";
122
126
  export * from "./FactsListResponse.js";
123
127
  export * from "./FactsUpdateResponse.js";
124
128
  export * from "./FieldDefinition.js";
125
- export * from "./GuidedAssemblyRequest.js";
126
- export * from "./GuidedAssemblySectionRef.js";
127
- export * from "./GuidedDocumentByAssembly.js";
128
- export * from "./GuidedDocumentByDynamic.js";
129
- export * from "./GuidedDocumentByTemplateRef.js";
130
- export * from "./GuidedDocumentRequest.js";
131
- export * from "./GuidedDocumentResponse.js";
132
- export * from "./GuidedDynamicInline.js";
133
- export * from "./GuidedDynamicRequest.js";
134
- export * from "./GuidedGenerationResult.js";
135
- export * from "./GuidedGenerationResultUsage.js";
136
- export * from "./GuidedGenerationResultUsageTokenCount.js";
137
- export * from "./GuidedSectionOverride.js";
138
- export * from "./GuidedTemplateOverrides.js";
139
- export * from "./GuidedTemplateRef.js";
140
129
  export * from "./InteractionsCreateResponse.js";
141
130
  export * from "./InteractionsEncounterCreateRequest.js";
142
131
  export * from "./InteractionsEncounterPeriod.js";
@@ -158,9 +147,7 @@ export * from "./Section.js";
158
147
  export * from "./SectionGeneration.js";
159
148
  export * from "./SectionGenerationPartial.js";
160
149
  export * from "./SectionInstructions.js";
161
- export * from "./SectionInstructionsOverride.js";
162
150
  export * from "./SectionInstructionsPartial.js";
163
- export * from "./SectionOverrides.js";
164
151
  export * from "./SectionVersion.js";
165
152
  export * from "./StatusResponse.js";
166
153
  export * from "./StreamConfig.js";
@@ -38,6 +38,7 @@ __exportStar(require("./AgentsCreateMcpServerAuthorizationType.js"), exports);
38
38
  __exportStar(require("./AgentsCreateMcpServerTransportType.js"), exports);
39
39
  __exportStar(require("./AgentsDataPart.js"), exports);
40
40
  __exportStar(require("./AgentsDataPartKind.js"), exports);
41
+ __exportStar(require("./AgentsErrorResponse.js"), exports);
41
42
  __exportStar(require("./AgentsExpert.js"), exports);
42
43
  __exportStar(require("./AgentsExpertReference.js"), exports);
43
44
  __exportStar(require("./AgentsExpertReferenceType.js"), exports);
@@ -68,6 +69,9 @@ __exportStar(require("./AgentsTaskStatusState.js"), exports);
68
69
  __exportStar(require("./AgentsTextPart.js"), exports);
69
70
  __exportStar(require("./AgentsTextPartKind.js"), exports);
70
71
  __exportStar(require("./AgentsUpdateExpertReference.js"), exports);
72
+ __exportStar(require("./AgentsValidationError.js"), exports);
73
+ __exportStar(require("./AgentsValidationErrorErrorsItem.js"), exports);
74
+ __exportStar(require("./AgentsValidationErrorResponse.js"), exports);
71
75
  __exportStar(require("./ArrayNode.js"), exports);
72
76
  __exportStar(require("./AuthTokenRequestAuthorizationCode.js"), exports);
73
77
  __exportStar(require("./AuthTokenRequestAuthorizationPkce.js"), exports);
@@ -138,21 +142,6 @@ __exportStar(require("./FactsListItem.js"), exports);
138
142
  __exportStar(require("./FactsListResponse.js"), exports);
139
143
  __exportStar(require("./FactsUpdateResponse.js"), exports);
140
144
  __exportStar(require("./FieldDefinition.js"), exports);
141
- __exportStar(require("./GuidedAssemblyRequest.js"), exports);
142
- __exportStar(require("./GuidedAssemblySectionRef.js"), exports);
143
- __exportStar(require("./GuidedDocumentByAssembly.js"), exports);
144
- __exportStar(require("./GuidedDocumentByDynamic.js"), exports);
145
- __exportStar(require("./GuidedDocumentByTemplateRef.js"), exports);
146
- __exportStar(require("./GuidedDocumentRequest.js"), exports);
147
- __exportStar(require("./GuidedDocumentResponse.js"), exports);
148
- __exportStar(require("./GuidedDynamicInline.js"), exports);
149
- __exportStar(require("./GuidedDynamicRequest.js"), exports);
150
- __exportStar(require("./GuidedGenerationResult.js"), exports);
151
- __exportStar(require("./GuidedGenerationResultUsage.js"), exports);
152
- __exportStar(require("./GuidedGenerationResultUsageTokenCount.js"), exports);
153
- __exportStar(require("./GuidedSectionOverride.js"), exports);
154
- __exportStar(require("./GuidedTemplateOverrides.js"), exports);
155
- __exportStar(require("./GuidedTemplateRef.js"), exports);
156
145
  __exportStar(require("./InteractionsCreateResponse.js"), exports);
157
146
  __exportStar(require("./InteractionsEncounterCreateRequest.js"), exports);
158
147
  __exportStar(require("./InteractionsEncounterPeriod.js"), exports);
@@ -174,9 +163,7 @@ __exportStar(require("./Section.js"), exports);
174
163
  __exportStar(require("./SectionGeneration.js"), exports);
175
164
  __exportStar(require("./SectionGenerationPartial.js"), exports);
176
165
  __exportStar(require("./SectionInstructions.js"), exports);
177
- __exportStar(require("./SectionInstructionsOverride.js"), exports);
178
166
  __exportStar(require("./SectionInstructionsPartial.js"), exports);
179
- __exportStar(require("./SectionOverrides.js"), exports);
180
167
  __exportStar(require("./SectionVersion.js"), exports);
181
168
  __exportStar(require("./StatusResponse.js"), exports);
182
169
  __exportStar(require("./StreamConfig.js"), exports);
@@ -0,0 +1,13 @@
1
+ import type * as Corti from "../../api/index.js";
2
+ import * as core from "../../core/index.js";
3
+ import type * as serializers from "../index.js";
4
+ export declare const AgentsErrorResponse: core.serialization.ObjectSchema<serializers.AgentsErrorResponse.Raw, Corti.AgentsErrorResponse>;
5
+ export declare namespace AgentsErrorResponse {
6
+ interface Raw {
7
+ code: string;
8
+ description: string;
9
+ howToFix?: string | null;
10
+ details?: Record<string, unknown> | null;
11
+ cause?: Record<string, unknown> | null;
12
+ }
13
+ }
@@ -34,11 +34,12 @@ var __importStar = (this && this.__importStar) || (function () {
34
34
  };
35
35
  })();
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
- exports.GuidedDocumentByDynamic = void 0;
37
+ exports.AgentsErrorResponse = void 0;
38
38
  const core = __importStar(require("../../core/index.js"));
39
- const DocumentsContext_js_1 = require("./DocumentsContext.js");
40
- const GuidedDynamicRequest_js_1 = require("./GuidedDynamicRequest.js");
41
- exports.GuidedDocumentByDynamic = core.serialization.object({
42
- context: DocumentsContext_js_1.DocumentsContext,
43
- dynamicTemplate: GuidedDynamicRequest_js_1.GuidedDynamicRequest,
39
+ exports.AgentsErrorResponse = core.serialization.object({
40
+ code: core.serialization.string(),
41
+ description: core.serialization.string(),
42
+ howToFix: core.serialization.string().optional(),
43
+ details: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
44
+ cause: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
44
45
  });
@@ -0,0 +1,14 @@
1
+ import type * as Corti from "../../api/index.js";
2
+ import * as core from "../../core/index.js";
3
+ import type * as serializers from "../index.js";
4
+ import { AgentsValidationErrorErrorsItem } from "./AgentsValidationErrorErrorsItem.js";
5
+ export declare const AgentsValidationError: core.serialization.ObjectSchema<serializers.AgentsValidationError.Raw, Corti.AgentsValidationError>;
6
+ export declare namespace AgentsValidationError {
7
+ interface Raw {
8
+ msg: string;
9
+ type: string;
10
+ reason: string;
11
+ howToFix: string;
12
+ errors?: AgentsValidationErrorErrorsItem.Raw[] | null;
13
+ }
14
+ }
@@ -34,11 +34,13 @@ var __importStar = (this && this.__importStar) || (function () {
34
34
  };
35
35
  })();
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
- exports.GuidedDocumentByTemplateRef = void 0;
37
+ exports.AgentsValidationError = void 0;
38
38
  const core = __importStar(require("../../core/index.js"));
39
- const DocumentsContext_js_1 = require("./DocumentsContext.js");
40
- const GuidedTemplateRef_js_1 = require("./GuidedTemplateRef.js");
41
- exports.GuidedDocumentByTemplateRef = core.serialization.object({
42
- context: DocumentsContext_js_1.DocumentsContext,
43
- templateRef: GuidedTemplateRef_js_1.GuidedTemplateRef,
39
+ const AgentsValidationErrorErrorsItem_js_1 = require("./AgentsValidationErrorErrorsItem.js");
40
+ exports.AgentsValidationError = core.serialization.object({
41
+ msg: core.serialization.string(),
42
+ type: core.serialization.string(),
43
+ reason: core.serialization.string(),
44
+ howToFix: core.serialization.string(),
45
+ errors: core.serialization.list(AgentsValidationErrorErrorsItem_js_1.AgentsValidationErrorErrorsItem).optional(),
44
46
  });
@@ -0,0 +1,10 @@
1
+ import type * as Corti from "../../api/index.js";
2
+ import * as core from "../../core/index.js";
3
+ import type * as serializers from "../index.js";
4
+ export declare const AgentsValidationErrorErrorsItem: core.serialization.ObjectSchema<serializers.AgentsValidationErrorErrorsItem.Raw, Corti.AgentsValidationErrorErrorsItem>;
5
+ export declare namespace AgentsValidationErrorErrorsItem {
6
+ interface Raw {
7
+ location?: string | null;
8
+ reason?: string | null;
9
+ }
10
+ }
@@ -34,9 +34,9 @@ var __importStar = (this && this.__importStar) || (function () {
34
34
  };
35
35
  })();
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
- exports.GuidedGenerationResultUsageTokenCount = void 0;
37
+ exports.AgentsValidationErrorErrorsItem = void 0;
38
38
  const core = __importStar(require("../../core/index.js"));
39
- exports.GuidedGenerationResultUsageTokenCount = core.serialization.object({
40
- input: core.serialization.number().optional(),
41
- output: core.serialization.number().optional(),
39
+ exports.AgentsValidationErrorErrorsItem = core.serialization.object({
40
+ location: core.serialization.string().optional(),
41
+ reason: core.serialization.string().optional(),
42
42
  });
@@ -0,0 +1,11 @@
1
+ import type * as Corti from "../../api/index.js";
2
+ import * as core from "../../core/index.js";
3
+ import type * as serializers from "../index.js";
4
+ import { AgentsErrorResponse } from "./AgentsErrorResponse.js";
5
+ import { AgentsValidationError } from "./AgentsValidationError.js";
6
+ export declare const AgentsValidationErrorResponse: core.serialization.ObjectSchema<serializers.AgentsValidationErrorResponse.Raw, Corti.AgentsValidationErrorResponse>;
7
+ export declare namespace AgentsValidationErrorResponse {
8
+ interface Raw extends AgentsErrorResponse.Raw {
9
+ detail?: AgentsValidationError.Raw[] | null;
10
+ }
11
+ }
@@ -34,11 +34,12 @@ var __importStar = (this && this.__importStar) || (function () {
34
34
  };
35
35
  })();
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
- exports.GuidedDynamicRequest = void 0;
37
+ exports.AgentsValidationErrorResponse = void 0;
38
38
  const core = __importStar(require("../../core/index.js"));
39
- const GuidedDynamicInline_js_1 = require("./GuidedDynamicInline.js");
40
- exports.GuidedDynamicRequest = core.serialization.object({
41
- name: core.serialization.string(),
42
- language: core.serialization.string(),
43
- generation: GuidedDynamicInline_js_1.GuidedDynamicInline,
44
- });
39
+ const AgentsErrorResponse_js_1 = require("./AgentsErrorResponse.js");
40
+ const AgentsValidationError_js_1 = require("./AgentsValidationError.js");
41
+ exports.AgentsValidationErrorResponse = core.serialization
42
+ .object({
43
+ detail: core.serialization.list(AgentsValidationError_js_1.AgentsValidationError).optional(),
44
+ })
45
+ .extend(AgentsErrorResponse_js_1.AgentsErrorResponse);
@@ -5,7 +5,7 @@ import { SectionInstructions } from "./SectionInstructions.js";
5
5
  export declare const SectionGeneration: core.serialization.ObjectSchema<serializers.SectionGeneration.Raw, Corti.SectionGeneration>;
6
6
  export declare namespace SectionGeneration {
7
7
  interface Raw {
8
- title: string;
8
+ heading: string;
9
9
  instructions: SectionInstructions.Raw;
10
10
  outputSchema: serializers.OutputSchema.Raw;
11
11
  }
@@ -39,7 +39,7 @@ const core = __importStar(require("../../core/index.js"));
39
39
  const serializers = __importStar(require("../index.js"));
40
40
  const SectionInstructions_js_1 = require("./SectionInstructions.js");
41
41
  exports.SectionGeneration = core.serialization.object({
42
- title: core.serialization.string(),
42
+ heading: core.serialization.string(),
43
43
  instructions: SectionInstructions_js_1.SectionInstructions,
44
44
  outputSchema: core.serialization.lazy(() => serializers.OutputSchema),
45
45
  });
@@ -5,7 +5,7 @@ import { SectionInstructionsPartial } from "./SectionInstructionsPartial.js";
5
5
  export declare const SectionGenerationPartial: core.serialization.ObjectSchema<serializers.SectionGenerationPartial.Raw, Corti.SectionGenerationPartial>;
6
6
  export declare namespace SectionGenerationPartial {
7
7
  interface Raw {
8
- title?: string | null;
8
+ heading?: string | null;
9
9
  instructions?: SectionInstructionsPartial.Raw | null;
10
10
  outputSchema?: serializers.OutputSchema.Raw | null;
11
11
  }
@@ -39,7 +39,7 @@ const core = __importStar(require("../../core/index.js"));
39
39
  const serializers = __importStar(require("../index.js"));
40
40
  const SectionInstructionsPartial_js_1 = require("./SectionInstructionsPartial.js");
41
41
  exports.SectionGenerationPartial = core.serialization.object({
42
- title: core.serialization.string().optional(),
42
+ heading: core.serialization.string().optional(),
43
43
  instructions: SectionInstructionsPartial_js_1.SectionInstructionsPartial.optional(),
44
44
  outputSchema: core.serialization.lazy(() => serializers.OutputSchema).optional(),
45
45
  });