@orq-ai/node 4.4.12 → 4.4.14

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 (133) hide show
  1. package/jsr.json +1 -1
  2. package/lib/config.d.ts +3 -3
  3. package/lib/config.js +3 -3
  4. package/models/components/partdoneevent.js +1 -1
  5. package/models/components/reasoningpart.js +1 -1
  6. package/models/operations/createcontact.js +1 -1
  7. package/models/operations/createdataset.js +1 -1
  8. package/models/operations/createdatasetitem.js +4 -4
  9. package/models/operations/createdatasource.js +1 -1
  10. package/models/operations/createeval.js +16 -16
  11. package/models/operations/createidentity.js +1 -1
  12. package/models/operations/createtool.js +6 -6
  13. package/models/operations/fileget.js +1 -1
  14. package/models/operations/filelist.js +1 -1
  15. package/models/operations/fileupload.js +1 -1
  16. package/models/operations/getalltools.js +6 -6
  17. package/models/operations/getevals.js +16 -16
  18. package/models/operations/listdatasetdatapoints.js +4 -4
  19. package/models/operations/listdatasets.js +1 -1
  20. package/models/operations/listdatasources.js +1 -1
  21. package/models/operations/listidentities.js +1 -1
  22. package/models/operations/retrievedatapoint.js +4 -4
  23. package/models/operations/retrievedataset.js +1 -1
  24. package/models/operations/retrievedatasource.js +1 -1
  25. package/models/operations/retrieveidentity.js +1 -1
  26. package/models/operations/retrievetool.js +6 -6
  27. package/models/operations/runagent.js +1 -1
  28. package/models/operations/streamrunagent.js +1 -1
  29. package/models/operations/updatedatapoint.js +4 -4
  30. package/models/operations/updatedataset.js +1 -1
  31. package/models/operations/updatedatasource.js +1 -1
  32. package/models/operations/updateeval.js +16 -16
  33. package/models/operations/updateidentity.js +1 -1
  34. package/models/operations/updatetool.js +7 -7
  35. package/package.json +1 -1
  36. package/packages/orq-rc/src/funcs/agentsList.ts +5 -0
  37. package/packages/orq-rc/src/funcs/agentsPostV2AgentsA2a.ts +178 -0
  38. package/packages/orq-rc/src/funcs/agentsPostV2AgentsKeyCardRefresh.ts +187 -0
  39. package/packages/orq-rc/src/funcs/agentsResponsesGet.ts +182 -0
  40. package/packages/orq-rc/src/funcs/agentsUpdate.ts +2 -2
  41. package/packages/orq-rc/src/lib/config.ts +3 -3
  42. package/packages/orq-rc/src/models/components/createagentresponse.ts +6 -0
  43. package/packages/orq-rc/src/models/components/extendedmessage.ts +146 -0
  44. package/packages/orq-rc/src/models/components/getagentresponse.ts +348 -0
  45. package/packages/orq-rc/src/models/components/index.ts +3 -0
  46. package/packages/orq-rc/src/models/components/partdoneevent.ts +1 -1
  47. package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
  48. package/packages/orq-rc/src/models/components/responsedoneevent.ts +6 -0
  49. package/packages/orq-rc/src/models/components/responsestartedevent.ts +6 -0
  50. package/packages/orq-rc/src/models/components/telemetry.ts +48 -0
  51. package/packages/orq-rc/src/models/errors/index.ts +2 -0
  52. package/packages/orq-rc/src/models/errors/postv2agentsa2a.ts +96 -0
  53. package/packages/orq-rc/src/models/errors/postv2agentskeycardrefresh.ts +97 -0
  54. package/packages/orq-rc/src/models/operations/createagentrequest.ts +755 -1212
  55. package/packages/orq-rc/src/models/operations/createagentresponserequest.ts +35 -1
  56. package/packages/orq-rc/src/models/operations/createannotation.ts +5 -1
  57. package/packages/orq-rc/src/models/operations/createcontact.ts +1 -1
  58. package/packages/orq-rc/src/models/operations/createdataset.ts +1 -1
  59. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +4 -4
  60. package/packages/orq-rc/src/models/operations/createdatasource.ts +1 -1
  61. package/packages/orq-rc/src/models/operations/createeval.ts +16 -16
  62. package/packages/orq-rc/src/models/operations/createidentity.ts +1 -1
  63. package/packages/orq-rc/src/models/operations/createknowledge.ts +19 -17
  64. package/packages/orq-rc/src/models/operations/createprompt.ts +55 -66
  65. package/packages/orq-rc/src/models/operations/createtool.ts +103 -91
  66. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +38 -0
  67. package/packages/orq-rc/src/models/operations/deploymentstream.ts +38 -0
  68. package/packages/orq-rc/src/models/operations/fileget.ts +1 -1
  69. package/packages/orq-rc/src/models/operations/filelist.ts +1 -1
  70. package/packages/orq-rc/src/models/operations/fileupload.ts +1 -1
  71. package/packages/orq-rc/src/models/operations/getagentresponse.ts +46 -0
  72. package/packages/orq-rc/src/models/operations/getalltools.ts +93 -87
  73. package/packages/orq-rc/src/models/operations/getevals.ts +16 -16
  74. package/packages/orq-rc/src/models/operations/index.ts +3 -0
  75. package/packages/orq-rc/src/models/operations/invokeagent.ts +45 -1
  76. package/packages/orq-rc/src/models/operations/listagents.ts +751 -787
  77. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +4 -4
  78. package/packages/orq-rc/src/models/operations/listdatasets.ts +1 -1
  79. package/packages/orq-rc/src/models/operations/listdatasources.ts +1 -1
  80. package/packages/orq-rc/src/models/operations/listidentities.ts +1 -1
  81. package/packages/orq-rc/src/models/operations/listknowledgebases.ts +72 -64
  82. package/packages/orq-rc/src/models/operations/postv2agentsa2a.ts +252 -0
  83. package/packages/orq-rc/src/models/operations/postv2agentskeycardrefresh.ts +100 -0
  84. package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +962 -857
  85. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +4 -4
  86. package/packages/orq-rc/src/models/operations/retrievedataset.ts +1 -1
  87. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +1 -1
  88. package/packages/orq-rc/src/models/operations/retrieveidentity.ts +1 -1
  89. package/packages/orq-rc/src/models/operations/retrievetool.ts +6 -6
  90. package/packages/orq-rc/src/models/operations/runagent.ts +69 -493
  91. package/packages/orq-rc/src/models/operations/streamagent.ts +40 -1
  92. package/packages/orq-rc/src/models/operations/streamrunagent.ts +36 -493
  93. package/packages/orq-rc/src/models/operations/updateagent.ts +966 -1313
  94. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +4 -4
  95. package/packages/orq-rc/src/models/operations/updatedataset.ts +1 -1
  96. package/packages/orq-rc/src/models/operations/updatedatasource.ts +1 -1
  97. package/packages/orq-rc/src/models/operations/updateeval.ts +16 -16
  98. package/packages/orq-rc/src/models/operations/updateidentity.ts +1 -1
  99. package/packages/orq-rc/src/models/operations/updatetool.ts +7 -7
  100. package/packages/orq-rc/src/sdk/agents.ts +39 -1
  101. package/packages/orq-rc/src/sdk/responses.ts +19 -0
  102. package/src/lib/config.ts +3 -3
  103. package/src/models/components/partdoneevent.ts +1 -1
  104. package/src/models/components/reasoningpart.ts +1 -1
  105. package/src/models/operations/createcontact.ts +1 -1
  106. package/src/models/operations/createdataset.ts +1 -1
  107. package/src/models/operations/createdatasetitem.ts +4 -4
  108. package/src/models/operations/createdatasource.ts +1 -1
  109. package/src/models/operations/createeval.ts +16 -16
  110. package/src/models/operations/createidentity.ts +1 -1
  111. package/src/models/operations/createtool.ts +6 -6
  112. package/src/models/operations/fileget.ts +1 -1
  113. package/src/models/operations/filelist.ts +1 -1
  114. package/src/models/operations/fileupload.ts +1 -1
  115. package/src/models/operations/getalltools.ts +6 -6
  116. package/src/models/operations/getevals.ts +16 -16
  117. package/src/models/operations/listdatasetdatapoints.ts +4 -4
  118. package/src/models/operations/listdatasets.ts +1 -1
  119. package/src/models/operations/listdatasources.ts +1 -1
  120. package/src/models/operations/listidentities.ts +1 -1
  121. package/src/models/operations/retrievedatapoint.ts +4 -4
  122. package/src/models/operations/retrievedataset.ts +1 -1
  123. package/src/models/operations/retrievedatasource.ts +1 -1
  124. package/src/models/operations/retrieveidentity.ts +1 -1
  125. package/src/models/operations/retrievetool.ts +6 -6
  126. package/src/models/operations/runagent.ts +1 -1
  127. package/src/models/operations/streamrunagent.ts +1 -1
  128. package/src/models/operations/updatedatapoint.ts +4 -4
  129. package/src/models/operations/updatedataset.ts +1 -1
  130. package/src/models/operations/updatedatasource.ts +1 -1
  131. package/src/models/operations/updateeval.ts +16 -16
  132. package/src/models/operations/updateidentity.ts +1 -1
  133. package/src/models/operations/updatetool.ts +7 -7
@@ -60,7 +60,7 @@ export type A2AMessage = {
60
60
  */
61
61
  role: RoleUserMessage | RoleToolMessage;
62
62
  /**
63
- * A2A message parts (text, file, or tool_result only)
63
+ * A2A message parts (text, file, or tool_result only). Note: Tool role messages must only contain tool_result parts.
64
64
  */
65
65
  parts: Array<
66
66
  | components.TextPart
@@ -156,6 +156,16 @@ export type Memory = {
156
156
  entityId: string;
157
157
  };
158
158
 
159
+ /**
160
+ * Configuration options for the agent invocation
161
+ */
162
+ export type Configuration = {
163
+ /**
164
+ * Whether to block until the agent task completes. When true, the response will include the full task with messages. When false (default), returns immediately with task ID and status.
165
+ */
166
+ blocking?: boolean | undefined;
167
+ };
168
+
159
169
  /**
160
170
  * Conversation context for chat studio integration
161
171
  */
@@ -201,6 +211,10 @@ export type CreateAgentResponseRequestRequestBody = {
201
211
  * Optional metadata for the agent invocation as key-value pairs that will be included in traces
202
212
  */
203
213
  metadata?: { [k: string]: any } | undefined;
214
+ /**
215
+ * Configuration options for the agent invocation
216
+ */
217
+ configuration?: Configuration | undefined;
204
218
  /**
205
219
  * If true, returns immediately without waiting for completion. If false (default), waits until the agent becomes inactive or errors.
206
220
  */
@@ -445,6 +459,24 @@ export function memoryToJSON(memory: Memory): string {
445
459
  return JSON.stringify(Memory$outboundSchema.parse(memory));
446
460
  }
447
461
 
462
+ /** @internal */
463
+ export type Configuration$Outbound = {
464
+ blocking: boolean;
465
+ };
466
+
467
+ /** @internal */
468
+ export const Configuration$outboundSchema: z.ZodType<
469
+ Configuration$Outbound,
470
+ z.ZodTypeDef,
471
+ Configuration
472
+ > = z.object({
473
+ blocking: z.boolean().default(false),
474
+ });
475
+
476
+ export function configurationToJSON(configuration: Configuration): string {
477
+ return JSON.stringify(Configuration$outboundSchema.parse(configuration));
478
+ }
479
+
448
480
  /** @internal */
449
481
  export type Conversation$Outbound = {
450
482
  _id: string;
@@ -477,6 +509,7 @@ export type CreateAgentResponseRequestRequestBody$Outbound = {
477
509
  thread?: CreateAgentResponseRequestThread$Outbound | undefined;
478
510
  memory?: Memory$Outbound | undefined;
479
511
  metadata?: { [k: string]: any } | undefined;
512
+ configuration?: Configuration$Outbound | undefined;
480
513
  background: boolean;
481
514
  stream: boolean;
482
515
  conversation?: Conversation$Outbound | undefined;
@@ -497,6 +530,7 @@ export const CreateAgentResponseRequestRequestBody$outboundSchema: z.ZodType<
497
530
  .optional(),
498
531
  memory: z.lazy(() => Memory$outboundSchema).optional(),
499
532
  metadata: z.record(z.any()).optional(),
533
+ configuration: z.lazy(() => Configuration$outboundSchema).optional(),
500
534
  background: z.boolean().default(false),
501
535
  stream: z.boolean().default(false),
502
536
  conversation: z.lazy(() => Conversation$outboundSchema).optional(),
@@ -82,7 +82,7 @@ export function annotationsToJSON(annotations: Annotations): string {
82
82
 
83
83
  /** @internal */
84
84
  export type CreateAnnotationMetadata$Outbound = {
85
- identityId?: string | undefined;
85
+ identity_id?: string | undefined;
86
86
  };
87
87
 
88
88
  /** @internal */
@@ -92,6 +92,10 @@ export const CreateAnnotationMetadata$outboundSchema: z.ZodType<
92
92
  CreateAnnotationMetadata
93
93
  > = z.object({
94
94
  identityId: z.string().optional(),
95
+ }).transform((v) => {
96
+ return remap$(v, {
97
+ identityId: "identity_id",
98
+ });
95
99
  });
96
100
 
97
101
  export function createAnnotationMetadataToJSON(
@@ -134,7 +134,7 @@ export const CreateContactResponseBody$inboundSchema: z.ZodType<
134
134
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
135
135
  .optional(),
136
136
  updated: z.string().datetime({ offset: true }).default(
137
- "2026-03-03T10:04:52.010Z",
137
+ "2026-03-05T14:31:06.324Z",
138
138
  ).transform(v => new Date(v)),
139
139
  }).transform((v) => {
140
140
  return remap$(v, {
@@ -138,7 +138,7 @@ export const CreateDatasetResponseBody$inboundSchema: z.ZodType<
138
138
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
139
139
  .optional(),
140
140
  updated: z.string().datetime({ offset: true }).default(
141
- "2026-03-03T10:04:52.010Z",
141
+ "2026-03-05T14:31:06.324Z",
142
142
  ).transform(v => new Date(v)),
143
143
  }).transform((v) => {
144
144
  return remap$(v, {
@@ -2353,7 +2353,7 @@ export const Evaluations3$inboundSchema: z.ZodType<
2353
2353
  ),
2354
2354
  reviewed_by_id: z.string(),
2355
2355
  reviewed_at: z.string().datetime({ offset: true }).default(
2356
- "2026-03-03T10:05:08.156Z",
2356
+ "2026-03-05T14:31:21.918Z",
2357
2357
  ).transform(v => new Date(v)),
2358
2358
  type: z.literal("string_array"),
2359
2359
  values: z.array(z.string()),
@@ -2398,7 +2398,7 @@ export const Evaluations2$inboundSchema: z.ZodType<
2398
2398
  source: CreateDatasetItemEvaluationsSource$inboundSchema.default("orq"),
2399
2399
  reviewed_by_id: z.string(),
2400
2400
  reviewed_at: z.string().datetime({ offset: true }).default(
2401
- "2026-03-03T10:05:08.155Z",
2401
+ "2026-03-05T14:31:21.918Z",
2402
2402
  ).transform(v => new Date(v)),
2403
2403
  type: z.literal("number"),
2404
2404
  value: z.number(),
@@ -2443,7 +2443,7 @@ export const Evaluations1$inboundSchema: z.ZodType<
2443
2443
  source: EvaluationsSource$inboundSchema.default("orq"),
2444
2444
  reviewed_by_id: z.string(),
2445
2445
  reviewed_at: z.string().datetime({ offset: true }).default(
2446
- "2026-03-03T10:05:08.155Z",
2446
+ "2026-03-05T14:31:21.917Z",
2447
2447
  ).transform(v => new Date(v)),
2448
2448
  type: z.literal("string"),
2449
2449
  value: z.string(),
@@ -2526,7 +2526,7 @@ export const CreateDatasetItemResponseBody$inboundSchema: z.ZodType<
2526
2526
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
2527
2527
  .optional(),
2528
2528
  updated: z.string().datetime({ offset: true }).default(
2529
- "2026-03-03T10:04:52.010Z",
2529
+ "2026-03-05T14:31:06.324Z",
2530
2530
  ).transform(v => new Date(v)),
2531
2531
  }).transform((v) => {
2532
2532
  return remap$(v, {
@@ -403,7 +403,7 @@ export const CreateDatasourceResponseBody$inboundSchema: z.ZodType<
403
403
  z.ZodTypeDef,
404
404
  unknown
405
405
  > = z.object({
406
- _id: z.string().default("01KJSJH62DKRYHBAMEAF7TES3C"),
406
+ _id: z.string().default("01KJZ6J3E4FC4R82V464V7GQXT"),
407
407
  display_name: z.string(),
408
408
  description: z.string().optional(),
409
409
  status: CreateDatasourceStatus$inboundSchema,
@@ -2245,8 +2245,8 @@ export const Typescript$inboundSchema: z.ZodType<
2245
2245
  > = z.object({
2246
2246
  _id: z.string(),
2247
2247
  description: z.string(),
2248
- created: z.string().default("2026-03-03T10:04:53.396Z"),
2249
- updated: z.string().default("2026-03-03T10:04:53.397Z"),
2248
+ created: z.string().default("2026-03-05T14:31:07.602Z"),
2249
+ updated: z.string().default("2026-03-05T14:31:07.603Z"),
2250
2250
  guardrail_config: z.union([
2251
2251
  z.lazy(() =>
2252
2252
  CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Boolean$inboundSchema
@@ -2394,8 +2394,8 @@ export const Ragas$inboundSchema: z.ZodType<Ragas, z.ZodTypeDef, unknown> = z
2394
2394
  .object({
2395
2395
  _id: z.string(),
2396
2396
  description: z.string(),
2397
- created: z.string().default("2026-03-03T10:04:53.396Z"),
2398
- updated: z.string().default("2026-03-03T10:04:53.397Z"),
2397
+ created: z.string().default("2026-03-05T14:31:07.602Z"),
2398
+ updated: z.string().default("2026-03-05T14:31:07.603Z"),
2399
2399
  guardrail_config: z.union([
2400
2400
  z.lazy(() =>
2401
2401
  CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Boolean$inboundSchema
@@ -3178,8 +3178,8 @@ export const CreateEvalResponseBodyFunction$inboundSchema: z.ZodType<
3178
3178
  > = z.object({
3179
3179
  _id: z.string(),
3180
3180
  description: z.string(),
3181
- created: z.string().default("2026-03-03T10:04:53.396Z"),
3182
- updated: z.string().default("2026-03-03T10:04:53.397Z"),
3181
+ created: z.string().default("2026-03-05T14:31:07.602Z"),
3182
+ updated: z.string().default("2026-03-05T14:31:07.603Z"),
3183
3183
  guardrail_config: z.union([
3184
3184
  z.lazy(() =>
3185
3185
  CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema
@@ -3357,8 +3357,8 @@ export const ResponseBodyPython$inboundSchema: z.ZodType<
3357
3357
  > = z.object({
3358
3358
  _id: z.string(),
3359
3359
  description: z.string(),
3360
- created: z.string().default("2026-03-03T10:04:53.396Z"),
3361
- updated: z.string().default("2026-03-03T10:04:53.397Z"),
3360
+ created: z.string().default("2026-03-05T14:31:07.602Z"),
3361
+ updated: z.string().default("2026-03-05T14:31:07.603Z"),
3362
3362
  guardrail_config: z.union([
3363
3363
  z.lazy(() =>
3364
3364
  CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema
@@ -3498,8 +3498,8 @@ export const ResponseBodyHTTP$inboundSchema: z.ZodType<
3498
3498
  > = z.object({
3499
3499
  _id: z.string(),
3500
3500
  description: z.string(),
3501
- created: z.string().default("2026-03-03T10:04:53.396Z"),
3502
- updated: z.string().default("2026-03-03T10:04:53.397Z"),
3501
+ created: z.string().default("2026-03-05T14:31:07.602Z"),
3502
+ updated: z.string().default("2026-03-05T14:31:07.603Z"),
3503
3503
  guardrail_config: z.union([
3504
3504
  z.lazy(() =>
3505
3505
  CreateEvalGuardrailConfigEvalsResponse200Boolean$inboundSchema
@@ -3634,8 +3634,8 @@ export const ResponseBodyJSON$inboundSchema: z.ZodType<
3634
3634
  > = z.object({
3635
3635
  _id: z.string(),
3636
3636
  description: z.string(),
3637
- created: z.string().default("2026-03-03T10:04:53.396Z"),
3638
- updated: z.string().default("2026-03-03T10:04:53.397Z"),
3637
+ created: z.string().default("2026-03-05T14:31:07.602Z"),
3638
+ updated: z.string().default("2026-03-05T14:31:07.603Z"),
3639
3639
  guardrail_config: z.union([
3640
3640
  z.lazy(() => CreateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema),
3641
3641
  z.lazy(() => CreateEvalGuardrailConfigEvalsResponseNumber$inboundSchema),
@@ -3944,8 +3944,8 @@ export const CreateEvalLlm2$inboundSchema: z.ZodType<
3944
3944
  > = z.object({
3945
3945
  _id: z.string(),
3946
3946
  description: z.string(),
3947
- created: z.string().default("2026-03-03T10:04:53.396Z"),
3948
- updated: z.string().default("2026-03-03T10:04:53.397Z"),
3947
+ created: z.string().default("2026-03-05T14:31:07.602Z"),
3948
+ updated: z.string().default("2026-03-05T14:31:07.603Z"),
3949
3949
  guardrail_config: z.union([
3950
3950
  z.lazy(() =>
3951
3951
  CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMBoolean$inboundSchema
@@ -4088,8 +4088,8 @@ export const CreateEvalLlm1$inboundSchema: z.ZodType<
4088
4088
  > = z.object({
4089
4089
  _id: z.string(),
4090
4090
  description: z.string(),
4091
- created: z.string().default("2026-03-03T10:04:53.396Z"),
4092
- updated: z.string().default("2026-03-03T10:04:53.397Z"),
4091
+ created: z.string().default("2026-03-05T14:31:07.602Z"),
4092
+ updated: z.string().default("2026-03-05T14:31:07.603Z"),
4093
4093
  guardrail_config: z.union([
4094
4094
  z.lazy(() =>
4095
4095
  CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Boolean$inboundSchema
@@ -139,7 +139,7 @@ export const CreateIdentityResponseBody$inboundSchema: z.ZodType<
139
139
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
140
140
  .optional(),
141
141
  updated: z.string().datetime({ offset: true }).default(
142
- "2026-03-03T10:04:52.010Z",
142
+ "2026-03-05T14:31:06.324Z",
143
143
  ).transform(v => new Date(v)),
144
144
  }).transform((v) => {
145
145
  return remap$(v, {
@@ -212,7 +212,7 @@ export type ResponseBodyExternalConfig = {
212
212
  apiUrl: string;
213
213
  };
214
214
 
215
- export type ResponseBody2 = {
215
+ export type CreateKnowledgeResponseBody2 = {
216
216
  /**
217
217
  * The unique identifier of the knowledge base.
218
218
  */
@@ -333,7 +333,7 @@ export type ResponseBodyRetrievalSettings = {
333
333
  agenticRagConfig?: ResponseBodyAgenticRagConfig | null | undefined;
334
334
  };
335
335
 
336
- export type ResponseBody1 = {
336
+ export type CreateKnowledgeResponseBody1 = {
337
337
  /**
338
338
  * The unique identifier of the knowledge base.
339
339
  */
@@ -384,7 +384,9 @@ export type ResponseBody1 = {
384
384
  /**
385
385
  * Knowledge successfully created
386
386
  */
387
- export type CreateKnowledgeResponseBody = ResponseBody1 | ResponseBody2;
387
+ export type CreateKnowledgeResponseBody =
388
+ | CreateKnowledgeResponseBody1
389
+ | CreateKnowledgeResponseBody2;
388
390
 
389
391
  /** @internal */
390
392
  export const CreateKnowledgeRequestBodyKnowledgeType$outboundSchema:
@@ -750,8 +752,8 @@ export function responseBodyExternalConfigFromJSON(
750
752
  }
751
753
 
752
754
  /** @internal */
753
- export const ResponseBody2$inboundSchema: z.ZodType<
754
- ResponseBody2,
755
+ export const CreateKnowledgeResponseBody2$inboundSchema: z.ZodType<
756
+ CreateKnowledgeResponseBody2,
755
757
  z.ZodTypeDef,
756
758
  unknown
757
759
  > = z.object({
@@ -782,13 +784,13 @@ export const ResponseBody2$inboundSchema: z.ZodType<
782
784
  });
783
785
  });
784
786
 
785
- export function responseBody2FromJSON(
787
+ export function createKnowledgeResponseBody2FromJSON(
786
788
  jsonString: string,
787
- ): SafeParseResult<ResponseBody2, SDKValidationError> {
789
+ ): SafeParseResult<CreateKnowledgeResponseBody2, SDKValidationError> {
788
790
  return safeParse(
789
791
  jsonString,
790
- (x) => ResponseBody2$inboundSchema.parse(JSON.parse(x)),
791
- `Failed to parse 'ResponseBody2' from JSON`,
792
+ (x) => CreateKnowledgeResponseBody2$inboundSchema.parse(JSON.parse(x)),
793
+ `Failed to parse 'CreateKnowledgeResponseBody2' from JSON`,
792
794
  );
793
795
  }
794
796
 
@@ -885,8 +887,8 @@ export function responseBodyRetrievalSettingsFromJSON(
885
887
  }
886
888
 
887
889
  /** @internal */
888
- export const ResponseBody1$inboundSchema: z.ZodType<
889
- ResponseBody1,
890
+ export const CreateKnowledgeResponseBody1$inboundSchema: z.ZodType<
891
+ CreateKnowledgeResponseBody1,
890
892
  z.ZodTypeDef,
891
893
  unknown
892
894
  > = z.object({
@@ -913,13 +915,13 @@ export const ResponseBody1$inboundSchema: z.ZodType<
913
915
  });
914
916
  });
915
917
 
916
- export function responseBody1FromJSON(
918
+ export function createKnowledgeResponseBody1FromJSON(
917
919
  jsonString: string,
918
- ): SafeParseResult<ResponseBody1, SDKValidationError> {
920
+ ): SafeParseResult<CreateKnowledgeResponseBody1, SDKValidationError> {
919
921
  return safeParse(
920
922
  jsonString,
921
- (x) => ResponseBody1$inboundSchema.parse(JSON.parse(x)),
922
- `Failed to parse 'ResponseBody1' from JSON`,
923
+ (x) => CreateKnowledgeResponseBody1$inboundSchema.parse(JSON.parse(x)),
924
+ `Failed to parse 'CreateKnowledgeResponseBody1' from JSON`,
923
925
  );
924
926
  }
925
927
 
@@ -929,8 +931,8 @@ export const CreateKnowledgeResponseBody$inboundSchema: z.ZodType<
929
931
  z.ZodTypeDef,
930
932
  unknown
931
933
  > = z.union([
932
- z.lazy(() => ResponseBody1$inboundSchema),
933
- z.lazy(() => ResponseBody2$inboundSchema),
934
+ z.lazy(() => CreateKnowledgeResponseBody1$inboundSchema),
935
+ z.lazy(() => CreateKnowledgeResponseBody2$inboundSchema),
934
936
  ]);
935
937
 
936
938
  export function createKnowledgeResponseBodyFromJSON(