@orq-ai/node 4.0.0-rc.66 → 4.0.0-rc.68

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 (143) hide show
  1. package/README.md +23 -18
  2. package/bin/mcp-server.js +2320 -1152
  3. package/bin/mcp-server.js.map +49 -46
  4. package/docs/sdks/responses/README.md +139 -0
  5. package/examples/package-lock.json +1 -1
  6. package/funcs/agentsResponsesCreate.d.ts +17 -0
  7. package/funcs/agentsResponsesCreate.d.ts.map +1 -0
  8. package/funcs/agentsResponsesCreate.js +120 -0
  9. package/funcs/agentsResponsesCreate.js.map +1 -0
  10. package/jsr.json +1 -1
  11. package/lib/config.d.ts +2 -2
  12. package/lib/config.js +2 -2
  13. package/mcp-server/mcp-server.js +1 -1
  14. package/mcp-server/server.d.ts.map +1 -1
  15. package/mcp-server/server.js +3 -1
  16. package/mcp-server/server.js.map +1 -1
  17. package/mcp-server/tools/agentsResponsesCreate.d.ts +8 -0
  18. package/mcp-server/tools/agentsResponsesCreate.d.ts.map +1 -0
  19. package/mcp-server/tools/agentsResponsesCreate.js +64 -0
  20. package/mcp-server/tools/agentsResponsesCreate.js.map +1 -0
  21. package/models/operations/createagent.js +4 -4
  22. package/models/operations/createagent.js.map +1 -1
  23. package/models/operations/createagentresponse.d.ts +564 -0
  24. package/models/operations/createagentresponse.d.ts.map +1 -0
  25. package/models/operations/createagentresponse.js +605 -0
  26. package/models/operations/createagentresponse.js.map +1 -0
  27. package/models/operations/createbudget.js +2 -2
  28. package/models/operations/createcontact.js +2 -2
  29. package/models/operations/createdataset.js +2 -2
  30. package/models/operations/createdatasetitem.js +8 -8
  31. package/models/operations/createdatasource.js +2 -2
  32. package/models/operations/createeval.js +28 -28
  33. package/models/operations/createtool.js +12 -12
  34. package/models/operations/fileget.js +2 -2
  35. package/models/operations/filelist.js +2 -2
  36. package/models/operations/fileupload.js +2 -2
  37. package/models/operations/getagent.js +2 -2
  38. package/models/operations/getagent.js.map +1 -1
  39. package/models/operations/getagenttask.d.ts +32 -32
  40. package/models/operations/getagenttask.d.ts.map +1 -1
  41. package/models/operations/getagenttask.js +50 -50
  42. package/models/operations/getagenttask.js.map +1 -1
  43. package/models/operations/getalltools.js +12 -12
  44. package/models/operations/getbudget.js +2 -2
  45. package/models/operations/getevals.js +28 -28
  46. package/models/operations/index.d.ts +1 -0
  47. package/models/operations/index.d.ts.map +1 -1
  48. package/models/operations/index.js +1 -0
  49. package/models/operations/index.js.map +1 -1
  50. package/models/operations/invokeagent.d.ts +95 -95
  51. package/models/operations/invokeagent.d.ts.map +1 -1
  52. package/models/operations/invokeagent.js +143 -134
  53. package/models/operations/invokeagent.js.map +1 -1
  54. package/models/operations/listagents.js +2 -2
  55. package/models/operations/listagents.js.map +1 -1
  56. package/models/operations/listbudgets.js +2 -2
  57. package/models/operations/listcontacts.js +2 -2
  58. package/models/operations/listdatasetdatapoints.js +8 -8
  59. package/models/operations/listdatasets.js +2 -2
  60. package/models/operations/listdatasources.js +2 -2
  61. package/models/operations/retrievecontact.js +2 -2
  62. package/models/operations/retrievedatapoint.js +8 -8
  63. package/models/operations/retrievedataset.js +2 -2
  64. package/models/operations/retrievedatasource.js +2 -2
  65. package/models/operations/retrievetool.js +12 -12
  66. package/models/operations/runagent.d.ts +54 -54
  67. package/models/operations/runagent.d.ts.map +1 -1
  68. package/models/operations/runagent.js +90 -90
  69. package/models/operations/runagent.js.map +1 -1
  70. package/models/operations/streamagent.d.ts +541 -68
  71. package/models/operations/streamagent.d.ts.map +1 -1
  72. package/models/operations/streamagent.js +649 -118
  73. package/models/operations/streamagent.js.map +1 -1
  74. package/models/operations/streamrunagent.d.ts +541 -68
  75. package/models/operations/streamrunagent.d.ts.map +1 -1
  76. package/models/operations/streamrunagent.js +657 -127
  77. package/models/operations/streamrunagent.js.map +1 -1
  78. package/models/operations/updateagent.js +4 -4
  79. package/models/operations/updateagent.js.map +1 -1
  80. package/models/operations/updatebudget.js +2 -2
  81. package/models/operations/updatecontact.js +2 -2
  82. package/models/operations/updatedatapoint.js +8 -8
  83. package/models/operations/updatedataset.js +2 -2
  84. package/models/operations/updatedatasource.js +2 -2
  85. package/models/operations/updateeval.js +28 -28
  86. package/models/operations/updatetool.js +14 -14
  87. package/package.json +1 -1
  88. package/sdk/agents.d.ts +3 -0
  89. package/sdk/agents.d.ts.map +1 -1
  90. package/sdk/agents.js +4 -0
  91. package/sdk/agents.js.map +1 -1
  92. package/sdk/responses.d.ts +12 -0
  93. package/sdk/responses.d.ts.map +1 -0
  94. package/sdk/responses.js +22 -0
  95. package/sdk/responses.js.map +1 -0
  96. package/src/funcs/agentsResponsesCreate.ts +168 -0
  97. package/src/lib/config.ts +2 -2
  98. package/src/mcp-server/mcp-server.ts +1 -1
  99. package/src/mcp-server/server.ts +3 -1
  100. package/src/mcp-server/tools/agentsResponsesCreate.ts +37 -0
  101. package/src/models/operations/createagent.ts +4 -4
  102. package/src/models/operations/createagentresponse.ts +1339 -0
  103. package/src/models/operations/createbudget.ts +2 -2
  104. package/src/models/operations/createcontact.ts +2 -2
  105. package/src/models/operations/createdataset.ts +2 -2
  106. package/src/models/operations/createdatasetitem.ts +8 -8
  107. package/src/models/operations/createdatasource.ts +2 -2
  108. package/src/models/operations/createeval.ts +28 -28
  109. package/src/models/operations/createtool.ts +12 -12
  110. package/src/models/operations/fileget.ts +2 -2
  111. package/src/models/operations/filelist.ts +2 -2
  112. package/src/models/operations/fileupload.ts +2 -2
  113. package/src/models/operations/getagent.ts +2 -2
  114. package/src/models/operations/getagenttask.ts +94 -94
  115. package/src/models/operations/getalltools.ts +12 -12
  116. package/src/models/operations/getbudget.ts +2 -2
  117. package/src/models/operations/getevals.ts +28 -28
  118. package/src/models/operations/index.ts +1 -0
  119. package/src/models/operations/invokeagent.ts +322 -246
  120. package/src/models/operations/listagents.ts +2 -2
  121. package/src/models/operations/listbudgets.ts +2 -2
  122. package/src/models/operations/listcontacts.ts +2 -2
  123. package/src/models/operations/listdatasetdatapoints.ts +8 -8
  124. package/src/models/operations/listdatasets.ts +2 -2
  125. package/src/models/operations/listdatasources.ts +2 -2
  126. package/src/models/operations/retrievecontact.ts +2 -2
  127. package/src/models/operations/retrievedatapoint.ts +8 -8
  128. package/src/models/operations/retrievedataset.ts +2 -2
  129. package/src/models/operations/retrievedatasource.ts +2 -2
  130. package/src/models/operations/retrievetool.ts +12 -12
  131. package/src/models/operations/runagent.ts +174 -157
  132. package/src/models/operations/streamagent.ts +1739 -297
  133. package/src/models/operations/streamrunagent.ts +1742 -307
  134. package/src/models/operations/updateagent.ts +4 -4
  135. package/src/models/operations/updatebudget.ts +2 -2
  136. package/src/models/operations/updatecontact.ts +2 -2
  137. package/src/models/operations/updatedatapoint.ts +8 -8
  138. package/src/models/operations/updatedataset.ts +2 -2
  139. package/src/models/operations/updatedatasource.ts +2 -2
  140. package/src/models/operations/updateeval.ts +28 -28
  141. package/src/models/operations/updatetool.ts +14 -14
  142. package/src/sdk/agents.ts +6 -0
  143. package/src/sdk/responses.ts +27 -0
@@ -974,7 +974,7 @@ exports.RetrieveDatapointEvaluations3$inboundSchema = z.object({
974
974
  source: exports.RetrieveDatapointEvaluationsDatasetsResponseSource$inboundSchema
975
975
  .default("orq"),
976
976
  reviewed_by_id: z.string(),
977
- reviewed_at: z.string().datetime({ offset: true }).default("2025-11-21T15:03:29.067Z").transform(v => new Date(v)),
977
+ reviewed_at: z.string().datetime({ offset: true }).default("2025-11-22T21:11:58.464Z").transform(v => new Date(v)),
978
978
  type: exports.RetrieveDatapointEvaluationsDatasetsResponseType$inboundSchema,
979
979
  values: z.array(z.string()),
980
980
  }).transform((v) => {
@@ -993,7 +993,7 @@ exports.RetrieveDatapointEvaluations3$outboundSchema = z.object({
993
993
  source: exports.RetrieveDatapointEvaluationsDatasetsResponseSource$outboundSchema
994
994
  .default("orq"),
995
995
  reviewedById: z.string(),
996
- reviewedAt: z.date().default(() => new Date("2025-11-21T15:03:29.067Z"))
996
+ reviewedAt: z.date().default(() => new Date("2025-11-22T21:11:58.464Z"))
997
997
  .transform(v => v.toISOString()),
998
998
  type: exports.RetrieveDatapointEvaluationsDatasetsResponseType$outboundSchema,
999
999
  values: z.array(z.string()),
@@ -1033,7 +1033,7 @@ exports.RetrieveDatapointEvaluations2$inboundSchema = z.object({
1033
1033
  human_review_id: z.string(),
1034
1034
  source: exports.RetrieveDatapointEvaluationsDatasetsSource$inboundSchema.default("orq"),
1035
1035
  reviewed_by_id: z.string(),
1036
- reviewed_at: z.string().datetime({ offset: true }).default("2025-11-21T15:03:29.066Z").transform(v => new Date(v)),
1036
+ reviewed_at: z.string().datetime({ offset: true }).default("2025-11-22T21:11:58.464Z").transform(v => new Date(v)),
1037
1037
  type: exports.RetrieveDatapointEvaluationsDatasetsType$inboundSchema,
1038
1038
  value: z.number(),
1039
1039
  }).transform((v) => {
@@ -1051,7 +1051,7 @@ exports.RetrieveDatapointEvaluations2$outboundSchema = z.object({
1051
1051
  humanReviewId: z.string(),
1052
1052
  source: exports.RetrieveDatapointEvaluationsDatasetsSource$outboundSchema.default("orq"),
1053
1053
  reviewedById: z.string(),
1054
- reviewedAt: z.date().default(() => new Date("2025-11-21T15:03:29.066Z"))
1054
+ reviewedAt: z.date().default(() => new Date("2025-11-22T21:11:58.464Z"))
1055
1055
  .transform(v => v.toISOString()),
1056
1056
  type: exports.RetrieveDatapointEvaluationsDatasetsType$outboundSchema,
1057
1057
  value: z.number(),
@@ -1089,7 +1089,7 @@ exports.RetrieveDatapointEvaluations1$inboundSchema = z.object({
1089
1089
  human_review_id: z.string(),
1090
1090
  source: exports.RetrieveDatapointEvaluationsSource$inboundSchema.default("orq"),
1091
1091
  reviewed_by_id: z.string(),
1092
- reviewed_at: z.string().datetime({ offset: true }).default("2025-11-21T15:03:29.066Z").transform(v => new Date(v)),
1092
+ reviewed_at: z.string().datetime({ offset: true }).default("2025-11-22T21:11:58.463Z").transform(v => new Date(v)),
1093
1093
  type: exports.RetrieveDatapointEvaluationsType$inboundSchema,
1094
1094
  value: z.string(),
1095
1095
  }).transform((v) => {
@@ -1107,7 +1107,7 @@ exports.RetrieveDatapointEvaluations1$outboundSchema = z.object({
1107
1107
  humanReviewId: z.string(),
1108
1108
  source: exports.RetrieveDatapointEvaluationsSource$outboundSchema.default("orq"),
1109
1109
  reviewedById: z.string(),
1110
- reviewedAt: z.date().default(() => new Date("2025-11-21T15:03:29.066Z"))
1110
+ reviewedAt: z.date().default(() => new Date("2025-11-22T21:11:58.463Z"))
1111
1111
  .transform(v => v.toISOString()),
1112
1112
  type: exports.RetrieveDatapointEvaluationsType$outboundSchema,
1113
1113
  value: z.string(),
@@ -1167,7 +1167,7 @@ exports.RetrieveDatapointResponseBody$inboundSchema = z.object({
1167
1167
  updated_by_id: z.string().optional(),
1168
1168
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
1169
1169
  .optional(),
1170
- updated: z.string().datetime({ offset: true }).default("2025-11-21T15:03:18.176Z").transform(v => new Date(v)),
1170
+ updated: z.string().datetime({ offset: true }).default("2025-11-22T21:11:48.435Z").transform(v => new Date(v)),
1171
1171
  }).transform((v) => {
1172
1172
  return (0, primitives_js_1.remap)(v, {
1173
1173
  "_id": "id",
@@ -1202,7 +1202,7 @@ exports.RetrieveDatapointResponseBody$outboundSchema = z.object({
1202
1202
  createdById: z.string().optional(),
1203
1203
  updatedById: z.string().optional(),
1204
1204
  created: z.date().transform(v => v.toISOString()).optional(),
1205
- updated: z.date().default(() => new Date("2025-11-21T15:03:18.176Z"))
1205
+ updated: z.date().default(() => new Date("2025-11-22T21:11:48.435Z"))
1206
1206
  .transform(v => v.toISOString()),
1207
1207
  }).transform((v) => {
1208
1208
  return (0, primitives_js_1.remap)(v, {
@@ -105,7 +105,7 @@ exports.RetrieveDatasetResponseBody$inboundSchema = z.object({
105
105
  updated_by_id: z.string().optional(),
106
106
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
107
107
  .optional(),
108
- updated: z.string().datetime({ offset: true }).default("2025-11-21T15:03:18.176Z").transform(v => new Date(v)),
108
+ updated: z.string().datetime({ offset: true }).default("2025-11-22T21:11:48.435Z").transform(v => new Date(v)),
109
109
  }).transform((v) => {
110
110
  return (0, primitives_js_1.remap)(v, {
111
111
  "_id": "id",
@@ -126,7 +126,7 @@ exports.RetrieveDatasetResponseBody$outboundSchema = z.object({
126
126
  createdById: z.string().optional(),
127
127
  updatedById: z.string().optional(),
128
128
  created: z.date().transform(v => v.toISOString()).optional(),
129
- updated: z.date().default(() => new Date("2025-11-21T15:03:18.176Z"))
129
+ updated: z.date().default(() => new Date("2025-11-22T21:11:48.435Z"))
130
130
  .transform(v => v.toISOString()),
131
131
  }).transform((v) => {
132
132
  return (0, primitives_js_1.remap)(v, {
@@ -83,7 +83,7 @@ exports.RetrieveDatasourceStatus$inboundSchema = z.nativeEnum(exports.RetrieveDa
83
83
  exports.RetrieveDatasourceStatus$outboundSchema = exports.RetrieveDatasourceStatus$inboundSchema;
84
84
  /** @internal */
85
85
  exports.RetrieveDatasourceResponseBody$inboundSchema = z.object({
86
- _id: z.string().default("01KAKF25F0MCNP3J9007QRRR72"),
86
+ _id: z.string().default("01KAPPHKNSEVW72RZTPFQX40KR"),
87
87
  display_name: z.string(),
88
88
  description: z.string().optional(),
89
89
  status: exports.RetrieveDatasourceStatus$inboundSchema,
@@ -107,7 +107,7 @@ exports.RetrieveDatasourceResponseBody$inboundSchema = z.object({
107
107
  });
108
108
  /** @internal */
109
109
  exports.RetrieveDatasourceResponseBody$outboundSchema = z.object({
110
- id: z.string().default("01KAKF25F0MCNP3J9007QRRR72"),
110
+ id: z.string().default("01KAPPHKNSEVW72RZTPFQX40KR"),
111
111
  displayName: z.string(),
112
112
  description: z.string().optional(),
113
113
  status: exports.RetrieveDatasourceStatus$outboundSchema,
@@ -273,7 +273,7 @@ function retrieveToolResponseBodyCodeToolFromJSON(jsonString) {
273
273
  }
274
274
  /** @internal */
275
275
  exports.RetrieveToolResponseBodyCodeExecutionTool$inboundSchema = z.object({
276
- _id: z.string().default("tool_01KAKF25BRFHAT6VJ5APR3SC1W"),
276
+ _id: z.string().default("tool_01KAPPHKJ952AWAPVNNQKJK2XS"),
277
277
  path: z.string(),
278
278
  key: z.string(),
279
279
  display_name: z.string().optional(),
@@ -303,7 +303,7 @@ exports.RetrieveToolResponseBodyCodeExecutionTool$inboundSchema = z.object({
303
303
  });
304
304
  /** @internal */
305
305
  exports.RetrieveToolResponseBodyCodeExecutionTool$outboundSchema = z.object({
306
- id: z.string().default("tool_01KAKF25BRFHAT6VJ5APR3SC1W"),
306
+ id: z.string().default("tool_01KAPPHKJ952AWAPVNNQKJK2XS"),
307
307
  path: z.string(),
308
308
  key: z.string(),
309
309
  displayName: z.string().optional(),
@@ -387,14 +387,14 @@ function retrieveToolResponseBodyToolsSchemaFromJSON(jsonString) {
387
387
  }
388
388
  /** @internal */
389
389
  exports.RetrieveToolResponseBodyTools$inboundSchema = z.object({
390
- id: z.string().default("01KAKF25BQSEVTSY1VCAGRQ8VV"),
390
+ id: z.string().default("01KAPPHKJ85GCNWY1ZBSRSJ1VH"),
391
391
  name: z.string(),
392
392
  description: z.string().optional(),
393
393
  schema: z.lazy(() => exports.RetrieveToolResponseBodyToolsSchema$inboundSchema),
394
394
  });
395
395
  /** @internal */
396
396
  exports.RetrieveToolResponseBodyTools$outboundSchema = z.object({
397
- id: z.string().default("01KAKF25BQSEVTSY1VCAGRQ8VV"),
397
+ id: z.string().default("01KAPPHKJ85GCNWY1ZBSRSJ1VH"),
398
398
  name: z.string(),
399
399
  description: z.string().optional(),
400
400
  schema: z.lazy(() => exports.RetrieveToolResponseBodyToolsSchema$outboundSchema),
@@ -442,7 +442,7 @@ function retrieveToolResponseBodyMcpFromJSON(jsonString) {
442
442
  }
443
443
  /** @internal */
444
444
  exports.RetrieveToolResponseBodyMCPTool$inboundSchema = z.object({
445
- _id: z.string().default("tool_01KAKF25BP6Z7CWBVYR2TBTE6F"),
445
+ _id: z.string().default("tool_01KAPPHKJ6SBG8Z93QHKWXM6X8"),
446
446
  path: z.string(),
447
447
  key: z.string(),
448
448
  display_name: z.string().optional(),
@@ -470,7 +470,7 @@ exports.RetrieveToolResponseBodyMCPTool$inboundSchema = z.object({
470
470
  });
471
471
  /** @internal */
472
472
  exports.RetrieveToolResponseBodyMCPTool$outboundSchema = z.object({
473
- id: z.string().default("tool_01KAKF25BP6Z7CWBVYR2TBTE6F"),
473
+ id: z.string().default("tool_01KAPPHKJ6SBG8Z93QHKWXM6X8"),
474
474
  path: z.string(),
475
475
  key: z.string(),
476
476
  displayName: z.string().optional(),
@@ -624,7 +624,7 @@ function retrieveToolResponseBodyHttpFromJSON(jsonString) {
624
624
  }
625
625
  /** @internal */
626
626
  exports.RetrieveToolResponseBodyHTTPTool$inboundSchema = z.object({
627
- _id: z.string().default("tool_01KAKF25BKWWH9F8E3KW0A0RGM"),
627
+ _id: z.string().default("tool_01KAPPHKJ36PPT2085SHJK0E9W"),
628
628
  path: z.string(),
629
629
  key: z.string(),
630
630
  display_name: z.string().optional(),
@@ -652,7 +652,7 @@ exports.RetrieveToolResponseBodyHTTPTool$inboundSchema = z.object({
652
652
  });
653
653
  /** @internal */
654
654
  exports.RetrieveToolResponseBodyHTTPTool$outboundSchema = z.object({
655
- id: z.string().default("tool_01KAKF25BKWWH9F8E3KW0A0RGM"),
655
+ id: z.string().default("tool_01KAPPHKJ36PPT2085SHJK0E9W"),
656
656
  path: z.string(),
657
657
  key: z.string(),
658
658
  displayName: z.string().optional(),
@@ -740,7 +740,7 @@ function retrieveToolResponseBodyJsonSchemaFromJSON(jsonString) {
740
740
  }
741
741
  /** @internal */
742
742
  exports.RetrieveToolResponseBodyJSONSchemaTool$inboundSchema = z.object({
743
- _id: z.string().default("tool_01KAKF25BHGWHTA7ZMK8KW04HH"),
743
+ _id: z.string().default("tool_01KAPPHKJ170KV7AM46BYC2QAH"),
744
744
  path: z.string(),
745
745
  key: z.string(),
746
746
  display_name: z.string().optional(),
@@ -769,7 +769,7 @@ exports.RetrieveToolResponseBodyJSONSchemaTool$inboundSchema = z.object({
769
769
  });
770
770
  /** @internal */
771
771
  exports.RetrieveToolResponseBodyJSONSchemaTool$outboundSchema = z.object({
772
- id: z.string().default("tool_01KAKF25BHGWHTA7ZMK8KW04HH"),
772
+ id: z.string().default("tool_01KAPPHKJ170KV7AM46BYC2QAH"),
773
773
  path: z.string(),
774
774
  key: z.string(),
775
775
  displayName: z.string().optional(),
@@ -864,7 +864,7 @@ function retrieveToolResponseBodyFunctionFromJSON(jsonString) {
864
864
  }
865
865
  /** @internal */
866
866
  exports.RetrieveToolResponseBodyFunctionTool$inboundSchema = z.object({
867
- _id: z.string().default("tool_01KAKF25BG4849SFVBXETHCH55"),
867
+ _id: z.string().default("tool_01KAPPHKHZ0606K018JSXFZ8ZA"),
868
868
  path: z.string(),
869
869
  key: z.string(),
870
870
  display_name: z.string().optional(),
@@ -892,7 +892,7 @@ exports.RetrieveToolResponseBodyFunctionTool$inboundSchema = z.object({
892
892
  });
893
893
  /** @internal */
894
894
  exports.RetrieveToolResponseBodyFunctionTool$outboundSchema = z.object({
895
- id: z.string().default("tool_01KAKF25BG4849SFVBXETHCH55"),
895
+ id: z.string().default("tool_01KAPPHKHZ0606K018JSXFZ8ZA"),
896
896
  path: z.string(),
897
897
  key: z.string(),
898
898
  displayName: z.string().optional(),
@@ -642,7 +642,7 @@ export type RunAgentPublicMessagePartAgentsRequestKind = ClosedEnum<typeof RunAg
642
642
  /**
643
643
  * Tool execution result part. Use this ONLY when providing results for a pending tool call from the agent. The tool_call_id must match the ID from the agent's tool call request.
644
644
  */
645
- export type PublicMessagePartToolResultPart = {
645
+ export type RunAgentPublicMessagePartToolResultPart = {
646
646
  kind: RunAgentPublicMessagePartAgentsRequestKind;
647
647
  toolCallId: string;
648
648
  result?: any | undefined;
@@ -657,7 +657,7 @@ export type RunAgentPublicMessagePartAgentsKind = ClosedEnum<typeof RunAgentPubl
657
657
  /**
658
658
  * File in URI format. Check in the model's documentation for the supported mime types for the URI format
659
659
  */
660
- export type FileFileInURIFormat = {
660
+ export type RunAgentFileFileInURIFormat = {
661
661
  /**
662
662
  * URL for the File content
663
663
  */
@@ -674,7 +674,7 @@ export type FileFileInURIFormat = {
674
674
  /**
675
675
  * Binary in base64 format. Check in the model's documentation for the supported mime types for the binary format.
676
676
  */
677
- export type FileBinaryFormat = {
677
+ export type RunAgentFileBinaryFormat = {
678
678
  /**
679
679
  * base64 encoded content of the file
680
680
  */
@@ -688,13 +688,13 @@ export type FileBinaryFormat = {
688
688
  */
689
689
  name?: string | undefined;
690
690
  };
691
- export type RunAgentPublicMessagePartFile = FileBinaryFormat | FileFileInURIFormat;
691
+ export type RunAgentPublicMessagePartFile = RunAgentFileBinaryFormat | RunAgentFileFileInURIFormat;
692
692
  /**
693
693
  * File attachment part. Use this to send files (images, documents, etc.) to the agent for processing.
694
694
  */
695
- export type PublicMessagePartFilePart = {
695
+ export type RunAgentPublicMessagePartFilePart = {
696
696
  kind: RunAgentPublicMessagePartAgentsKind;
697
- file: FileBinaryFormat | FileFileInURIFormat;
697
+ file: RunAgentFileBinaryFormat | RunAgentFileFileInURIFormat;
698
698
  metadata?: {
699
699
  [k: string]: any;
700
700
  } | undefined;
@@ -706,14 +706,14 @@ export type RunAgentPublicMessagePartKind = ClosedEnum<typeof RunAgentPublicMess
706
706
  /**
707
707
  * Text content part. Use this to send text messages to the agent.
708
708
  */
709
- export type PublicMessagePartTextPart = {
709
+ export type RunAgentPublicMessagePartTextPart = {
710
710
  kind: RunAgentPublicMessagePartKind;
711
711
  text: string;
712
712
  };
713
713
  /**
714
714
  * Message part that can be provided by users. Use "text" for regular messages, "file" for attachments, or "tool_result" when responding to tool call requests.
715
715
  */
716
- export type RunAgentPublicMessagePart = PublicMessagePartTextPart | PublicMessagePartFilePart | PublicMessagePartToolResultPart;
716
+ export type RunAgentPublicMessagePart = RunAgentPublicMessagePartTextPart | RunAgentPublicMessagePartFilePart | RunAgentPublicMessagePartToolResultPart;
717
717
  /**
718
718
  * The A2A format message containing the task for the agent to perform.
719
719
  */
@@ -729,7 +729,7 @@ export type RunAgentA2AMessage = {
729
729
  /**
730
730
  * A2A message parts (text, file, or tool_result only)
731
731
  */
732
- parts: Array<PublicMessagePartTextPart | PublicMessagePartFilePart | PublicMessagePartToolResultPart>;
732
+ parts: Array<RunAgentPublicMessagePartTextPart | RunAgentPublicMessagePartFilePart | RunAgentPublicMessagePartToolResultPart>;
733
733
  };
734
734
  /**
735
735
  * Information about the contact making the request. If the contact does not exist, it will be created automatically.
@@ -1538,7 +1538,7 @@ export type RunAgentPartsAgentsResponseKind = ClosedEnum<typeof RunAgentPartsAge
1538
1538
  /**
1539
1539
  * File in URI format. Check in the model's documentation for the supported mime types for the URI format
1540
1540
  */
1541
- export type RunAgentFileFileInURIFormat = {
1541
+ export type RunAgentFileAgentsFileInURIFormat = {
1542
1542
  /**
1543
1543
  * URL for the File content
1544
1544
  */
@@ -1555,7 +1555,7 @@ export type RunAgentFileFileInURIFormat = {
1555
1555
  /**
1556
1556
  * Binary in base64 format. Check in the model's documentation for the supported mime types for the binary format.
1557
1557
  */
1558
- export type RunAgentFileBinaryFormat = {
1558
+ export type RunAgentFileAgentsBinaryFormat = {
1559
1559
  /**
1560
1560
  * base64 encoded content of the file
1561
1561
  */
@@ -1569,13 +1569,13 @@ export type RunAgentFileBinaryFormat = {
1569
1569
  */
1570
1570
  name?: string | undefined;
1571
1571
  };
1572
- export type RunAgentPartsFile = RunAgentFileBinaryFormat | RunAgentFileFileInURIFormat;
1572
+ export type RunAgentPartsFile = RunAgentFileAgentsBinaryFormat | RunAgentFileAgentsFileInURIFormat;
1573
1573
  /**
1574
1574
  * A file content part that can contain either base64-encoded bytes or a URI reference. Used for images, documents, and other binary content in agent communications.
1575
1575
  */
1576
1576
  export type RunAgentPartsFilePart = {
1577
1577
  kind: RunAgentPartsAgentsResponseKind;
1578
- file: RunAgentFileBinaryFormat | RunAgentFileFileInURIFormat;
1578
+ file: RunAgentFileAgentsBinaryFormat | RunAgentFileAgentsFileInURIFormat;
1579
1579
  metadata?: {
1580
1580
  [k: string]: any;
1581
1581
  } | undefined;
@@ -2119,9 +2119,9 @@ export declare const RunAgentPublicMessagePartAgentsRequestKind$inboundSchema: z
2119
2119
  /** @internal */
2120
2120
  export declare const RunAgentPublicMessagePartAgentsRequestKind$outboundSchema: z.ZodNativeEnum<typeof RunAgentPublicMessagePartAgentsRequestKind>;
2121
2121
  /** @internal */
2122
- export declare const PublicMessagePartToolResultPart$inboundSchema: z.ZodType<PublicMessagePartToolResultPart, z.ZodTypeDef, unknown>;
2122
+ export declare const RunAgentPublicMessagePartToolResultPart$inboundSchema: z.ZodType<RunAgentPublicMessagePartToolResultPart, z.ZodTypeDef, unknown>;
2123
2123
  /** @internal */
2124
- export type PublicMessagePartToolResultPart$Outbound = {
2124
+ export type RunAgentPublicMessagePartToolResultPart$Outbound = {
2125
2125
  kind: string;
2126
2126
  tool_call_id: string;
2127
2127
  result?: any | undefined;
@@ -2130,78 +2130,78 @@ export type PublicMessagePartToolResultPart$Outbound = {
2130
2130
  } | undefined;
2131
2131
  };
2132
2132
  /** @internal */
2133
- export declare const PublicMessagePartToolResultPart$outboundSchema: z.ZodType<PublicMessagePartToolResultPart$Outbound, z.ZodTypeDef, PublicMessagePartToolResultPart>;
2134
- export declare function publicMessagePartToolResultPartToJSON(publicMessagePartToolResultPart: PublicMessagePartToolResultPart): string;
2135
- export declare function publicMessagePartToolResultPartFromJSON(jsonString: string): SafeParseResult<PublicMessagePartToolResultPart, SDKValidationError>;
2133
+ export declare const RunAgentPublicMessagePartToolResultPart$outboundSchema: z.ZodType<RunAgentPublicMessagePartToolResultPart$Outbound, z.ZodTypeDef, RunAgentPublicMessagePartToolResultPart>;
2134
+ export declare function runAgentPublicMessagePartToolResultPartToJSON(runAgentPublicMessagePartToolResultPart: RunAgentPublicMessagePartToolResultPart): string;
2135
+ export declare function runAgentPublicMessagePartToolResultPartFromJSON(jsonString: string): SafeParseResult<RunAgentPublicMessagePartToolResultPart, SDKValidationError>;
2136
2136
  /** @internal */
2137
2137
  export declare const RunAgentPublicMessagePartAgentsKind$inboundSchema: z.ZodNativeEnum<typeof RunAgentPublicMessagePartAgentsKind>;
2138
2138
  /** @internal */
2139
2139
  export declare const RunAgentPublicMessagePartAgentsKind$outboundSchema: z.ZodNativeEnum<typeof RunAgentPublicMessagePartAgentsKind>;
2140
2140
  /** @internal */
2141
- export declare const FileFileInURIFormat$inboundSchema: z.ZodType<FileFileInURIFormat, z.ZodTypeDef, unknown>;
2141
+ export declare const RunAgentFileFileInURIFormat$inboundSchema: z.ZodType<RunAgentFileFileInURIFormat, z.ZodTypeDef, unknown>;
2142
2142
  /** @internal */
2143
- export type FileFileInURIFormat$Outbound = {
2143
+ export type RunAgentFileFileInURIFormat$Outbound = {
2144
2144
  uri: string;
2145
2145
  mimeType?: string | undefined;
2146
2146
  name?: string | undefined;
2147
2147
  };
2148
2148
  /** @internal */
2149
- export declare const FileFileInURIFormat$outboundSchema: z.ZodType<FileFileInURIFormat$Outbound, z.ZodTypeDef, FileFileInURIFormat>;
2150
- export declare function fileFileInURIFormatToJSON(fileFileInURIFormat: FileFileInURIFormat): string;
2151
- export declare function fileFileInURIFormatFromJSON(jsonString: string): SafeParseResult<FileFileInURIFormat, SDKValidationError>;
2149
+ export declare const RunAgentFileFileInURIFormat$outboundSchema: z.ZodType<RunAgentFileFileInURIFormat$Outbound, z.ZodTypeDef, RunAgentFileFileInURIFormat>;
2150
+ export declare function runAgentFileFileInURIFormatToJSON(runAgentFileFileInURIFormat: RunAgentFileFileInURIFormat): string;
2151
+ export declare function runAgentFileFileInURIFormatFromJSON(jsonString: string): SafeParseResult<RunAgentFileFileInURIFormat, SDKValidationError>;
2152
2152
  /** @internal */
2153
- export declare const FileBinaryFormat$inboundSchema: z.ZodType<FileBinaryFormat, z.ZodTypeDef, unknown>;
2153
+ export declare const RunAgentFileBinaryFormat$inboundSchema: z.ZodType<RunAgentFileBinaryFormat, z.ZodTypeDef, unknown>;
2154
2154
  /** @internal */
2155
- export type FileBinaryFormat$Outbound = {
2155
+ export type RunAgentFileBinaryFormat$Outbound = {
2156
2156
  bytes: string;
2157
2157
  mimeType?: string | undefined;
2158
2158
  name?: string | undefined;
2159
2159
  };
2160
2160
  /** @internal */
2161
- export declare const FileBinaryFormat$outboundSchema: z.ZodType<FileBinaryFormat$Outbound, z.ZodTypeDef, FileBinaryFormat>;
2162
- export declare function fileBinaryFormatToJSON(fileBinaryFormat: FileBinaryFormat): string;
2163
- export declare function fileBinaryFormatFromJSON(jsonString: string): SafeParseResult<FileBinaryFormat, SDKValidationError>;
2161
+ export declare const RunAgentFileBinaryFormat$outboundSchema: z.ZodType<RunAgentFileBinaryFormat$Outbound, z.ZodTypeDef, RunAgentFileBinaryFormat>;
2162
+ export declare function runAgentFileBinaryFormatToJSON(runAgentFileBinaryFormat: RunAgentFileBinaryFormat): string;
2163
+ export declare function runAgentFileBinaryFormatFromJSON(jsonString: string): SafeParseResult<RunAgentFileBinaryFormat, SDKValidationError>;
2164
2164
  /** @internal */
2165
2165
  export declare const RunAgentPublicMessagePartFile$inboundSchema: z.ZodType<RunAgentPublicMessagePartFile, z.ZodTypeDef, unknown>;
2166
2166
  /** @internal */
2167
- export type RunAgentPublicMessagePartFile$Outbound = FileBinaryFormat$Outbound | FileFileInURIFormat$Outbound;
2167
+ export type RunAgentPublicMessagePartFile$Outbound = RunAgentFileBinaryFormat$Outbound | RunAgentFileFileInURIFormat$Outbound;
2168
2168
  /** @internal */
2169
2169
  export declare const RunAgentPublicMessagePartFile$outboundSchema: z.ZodType<RunAgentPublicMessagePartFile$Outbound, z.ZodTypeDef, RunAgentPublicMessagePartFile>;
2170
2170
  export declare function runAgentPublicMessagePartFileToJSON(runAgentPublicMessagePartFile: RunAgentPublicMessagePartFile): string;
2171
2171
  export declare function runAgentPublicMessagePartFileFromJSON(jsonString: string): SafeParseResult<RunAgentPublicMessagePartFile, SDKValidationError>;
2172
2172
  /** @internal */
2173
- export declare const PublicMessagePartFilePart$inboundSchema: z.ZodType<PublicMessagePartFilePart, z.ZodTypeDef, unknown>;
2173
+ export declare const RunAgentPublicMessagePartFilePart$inboundSchema: z.ZodType<RunAgentPublicMessagePartFilePart, z.ZodTypeDef, unknown>;
2174
2174
  /** @internal */
2175
- export type PublicMessagePartFilePart$Outbound = {
2175
+ export type RunAgentPublicMessagePartFilePart$Outbound = {
2176
2176
  kind: string;
2177
- file: FileBinaryFormat$Outbound | FileFileInURIFormat$Outbound;
2177
+ file: RunAgentFileBinaryFormat$Outbound | RunAgentFileFileInURIFormat$Outbound;
2178
2178
  metadata?: {
2179
2179
  [k: string]: any;
2180
2180
  } | undefined;
2181
2181
  };
2182
2182
  /** @internal */
2183
- export declare const PublicMessagePartFilePart$outboundSchema: z.ZodType<PublicMessagePartFilePart$Outbound, z.ZodTypeDef, PublicMessagePartFilePart>;
2184
- export declare function publicMessagePartFilePartToJSON(publicMessagePartFilePart: PublicMessagePartFilePart): string;
2185
- export declare function publicMessagePartFilePartFromJSON(jsonString: string): SafeParseResult<PublicMessagePartFilePart, SDKValidationError>;
2183
+ export declare const RunAgentPublicMessagePartFilePart$outboundSchema: z.ZodType<RunAgentPublicMessagePartFilePart$Outbound, z.ZodTypeDef, RunAgentPublicMessagePartFilePart>;
2184
+ export declare function runAgentPublicMessagePartFilePartToJSON(runAgentPublicMessagePartFilePart: RunAgentPublicMessagePartFilePart): string;
2185
+ export declare function runAgentPublicMessagePartFilePartFromJSON(jsonString: string): SafeParseResult<RunAgentPublicMessagePartFilePart, SDKValidationError>;
2186
2186
  /** @internal */
2187
2187
  export declare const RunAgentPublicMessagePartKind$inboundSchema: z.ZodNativeEnum<typeof RunAgentPublicMessagePartKind>;
2188
2188
  /** @internal */
2189
2189
  export declare const RunAgentPublicMessagePartKind$outboundSchema: z.ZodNativeEnum<typeof RunAgentPublicMessagePartKind>;
2190
2190
  /** @internal */
2191
- export declare const PublicMessagePartTextPart$inboundSchema: z.ZodType<PublicMessagePartTextPart, z.ZodTypeDef, unknown>;
2191
+ export declare const RunAgentPublicMessagePartTextPart$inboundSchema: z.ZodType<RunAgentPublicMessagePartTextPart, z.ZodTypeDef, unknown>;
2192
2192
  /** @internal */
2193
- export type PublicMessagePartTextPart$Outbound = {
2193
+ export type RunAgentPublicMessagePartTextPart$Outbound = {
2194
2194
  kind: string;
2195
2195
  text: string;
2196
2196
  };
2197
2197
  /** @internal */
2198
- export declare const PublicMessagePartTextPart$outboundSchema: z.ZodType<PublicMessagePartTextPart$Outbound, z.ZodTypeDef, PublicMessagePartTextPart>;
2199
- export declare function publicMessagePartTextPartToJSON(publicMessagePartTextPart: PublicMessagePartTextPart): string;
2200
- export declare function publicMessagePartTextPartFromJSON(jsonString: string): SafeParseResult<PublicMessagePartTextPart, SDKValidationError>;
2198
+ export declare const RunAgentPublicMessagePartTextPart$outboundSchema: z.ZodType<RunAgentPublicMessagePartTextPart$Outbound, z.ZodTypeDef, RunAgentPublicMessagePartTextPart>;
2199
+ export declare function runAgentPublicMessagePartTextPartToJSON(runAgentPublicMessagePartTextPart: RunAgentPublicMessagePartTextPart): string;
2200
+ export declare function runAgentPublicMessagePartTextPartFromJSON(jsonString: string): SafeParseResult<RunAgentPublicMessagePartTextPart, SDKValidationError>;
2201
2201
  /** @internal */
2202
2202
  export declare const RunAgentPublicMessagePart$inboundSchema: z.ZodType<RunAgentPublicMessagePart, z.ZodTypeDef, unknown>;
2203
2203
  /** @internal */
2204
- export type RunAgentPublicMessagePart$Outbound = PublicMessagePartTextPart$Outbound | PublicMessagePartFilePart$Outbound | PublicMessagePartToolResultPart$Outbound;
2204
+ export type RunAgentPublicMessagePart$Outbound = RunAgentPublicMessagePartTextPart$Outbound | RunAgentPublicMessagePartFilePart$Outbound | RunAgentPublicMessagePartToolResultPart$Outbound;
2205
2205
  /** @internal */
2206
2206
  export declare const RunAgentPublicMessagePart$outboundSchema: z.ZodType<RunAgentPublicMessagePart$Outbound, z.ZodTypeDef, RunAgentPublicMessagePart>;
2207
2207
  export declare function runAgentPublicMessagePartToJSON(runAgentPublicMessagePart: RunAgentPublicMessagePart): string;
@@ -2212,7 +2212,7 @@ export declare const RunAgentA2AMessage$inboundSchema: z.ZodType<RunAgentA2AMess
2212
2212
  export type RunAgentA2AMessage$Outbound = {
2213
2213
  messageId?: string | undefined;
2214
2214
  role: string | string;
2215
- parts: Array<PublicMessagePartTextPart$Outbound | PublicMessagePartFilePart$Outbound | PublicMessagePartToolResultPart$Outbound>;
2215
+ parts: Array<RunAgentPublicMessagePartTextPart$Outbound | RunAgentPublicMessagePartFilePart$Outbound | RunAgentPublicMessagePartToolResultPart$Outbound>;
2216
2216
  };
2217
2217
  /** @internal */
2218
2218
  export declare const RunAgentA2AMessage$outboundSchema: z.ZodType<RunAgentA2AMessage$Outbound, z.ZodTypeDef, RunAgentA2AMessage>;
@@ -2881,33 +2881,33 @@ export declare const RunAgentPartsAgentsResponseKind$inboundSchema: z.ZodNativeE
2881
2881
  /** @internal */
2882
2882
  export declare const RunAgentPartsAgentsResponseKind$outboundSchema: z.ZodNativeEnum<typeof RunAgentPartsAgentsResponseKind>;
2883
2883
  /** @internal */
2884
- export declare const RunAgentFileFileInURIFormat$inboundSchema: z.ZodType<RunAgentFileFileInURIFormat, z.ZodTypeDef, unknown>;
2884
+ export declare const RunAgentFileAgentsFileInURIFormat$inboundSchema: z.ZodType<RunAgentFileAgentsFileInURIFormat, z.ZodTypeDef, unknown>;
2885
2885
  /** @internal */
2886
- export type RunAgentFileFileInURIFormat$Outbound = {
2886
+ export type RunAgentFileAgentsFileInURIFormat$Outbound = {
2887
2887
  uri: string;
2888
2888
  mimeType?: string | undefined;
2889
2889
  name?: string | undefined;
2890
2890
  };
2891
2891
  /** @internal */
2892
- export declare const RunAgentFileFileInURIFormat$outboundSchema: z.ZodType<RunAgentFileFileInURIFormat$Outbound, z.ZodTypeDef, RunAgentFileFileInURIFormat>;
2893
- export declare function runAgentFileFileInURIFormatToJSON(runAgentFileFileInURIFormat: RunAgentFileFileInURIFormat): string;
2894
- export declare function runAgentFileFileInURIFormatFromJSON(jsonString: string): SafeParseResult<RunAgentFileFileInURIFormat, SDKValidationError>;
2892
+ export declare const RunAgentFileAgentsFileInURIFormat$outboundSchema: z.ZodType<RunAgentFileAgentsFileInURIFormat$Outbound, z.ZodTypeDef, RunAgentFileAgentsFileInURIFormat>;
2893
+ export declare function runAgentFileAgentsFileInURIFormatToJSON(runAgentFileAgentsFileInURIFormat: RunAgentFileAgentsFileInURIFormat): string;
2894
+ export declare function runAgentFileAgentsFileInURIFormatFromJSON(jsonString: string): SafeParseResult<RunAgentFileAgentsFileInURIFormat, SDKValidationError>;
2895
2895
  /** @internal */
2896
- export declare const RunAgentFileBinaryFormat$inboundSchema: z.ZodType<RunAgentFileBinaryFormat, z.ZodTypeDef, unknown>;
2896
+ export declare const RunAgentFileAgentsBinaryFormat$inboundSchema: z.ZodType<RunAgentFileAgentsBinaryFormat, z.ZodTypeDef, unknown>;
2897
2897
  /** @internal */
2898
- export type RunAgentFileBinaryFormat$Outbound = {
2898
+ export type RunAgentFileAgentsBinaryFormat$Outbound = {
2899
2899
  bytes: string;
2900
2900
  mimeType?: string | undefined;
2901
2901
  name?: string | undefined;
2902
2902
  };
2903
2903
  /** @internal */
2904
- export declare const RunAgentFileBinaryFormat$outboundSchema: z.ZodType<RunAgentFileBinaryFormat$Outbound, z.ZodTypeDef, RunAgentFileBinaryFormat>;
2905
- export declare function runAgentFileBinaryFormatToJSON(runAgentFileBinaryFormat: RunAgentFileBinaryFormat): string;
2906
- export declare function runAgentFileBinaryFormatFromJSON(jsonString: string): SafeParseResult<RunAgentFileBinaryFormat, SDKValidationError>;
2904
+ export declare const RunAgentFileAgentsBinaryFormat$outboundSchema: z.ZodType<RunAgentFileAgentsBinaryFormat$Outbound, z.ZodTypeDef, RunAgentFileAgentsBinaryFormat>;
2905
+ export declare function runAgentFileAgentsBinaryFormatToJSON(runAgentFileAgentsBinaryFormat: RunAgentFileAgentsBinaryFormat): string;
2906
+ export declare function runAgentFileAgentsBinaryFormatFromJSON(jsonString: string): SafeParseResult<RunAgentFileAgentsBinaryFormat, SDKValidationError>;
2907
2907
  /** @internal */
2908
2908
  export declare const RunAgentPartsFile$inboundSchema: z.ZodType<RunAgentPartsFile, z.ZodTypeDef, unknown>;
2909
2909
  /** @internal */
2910
- export type RunAgentPartsFile$Outbound = RunAgentFileBinaryFormat$Outbound | RunAgentFileFileInURIFormat$Outbound;
2910
+ export type RunAgentPartsFile$Outbound = RunAgentFileAgentsBinaryFormat$Outbound | RunAgentFileAgentsFileInURIFormat$Outbound;
2911
2911
  /** @internal */
2912
2912
  export declare const RunAgentPartsFile$outboundSchema: z.ZodType<RunAgentPartsFile$Outbound, z.ZodTypeDef, RunAgentPartsFile>;
2913
2913
  export declare function runAgentPartsFileToJSON(runAgentPartsFile: RunAgentPartsFile): string;
@@ -2917,7 +2917,7 @@ export declare const RunAgentPartsFilePart$inboundSchema: z.ZodType<RunAgentPart
2917
2917
  /** @internal */
2918
2918
  export type RunAgentPartsFilePart$Outbound = {
2919
2919
  kind: string;
2920
- file: RunAgentFileBinaryFormat$Outbound | RunAgentFileFileInURIFormat$Outbound;
2920
+ file: RunAgentFileAgentsBinaryFormat$Outbound | RunAgentFileAgentsFileInURIFormat$Outbound;
2921
2921
  metadata?: {
2922
2922
  [k: string]: any;
2923
2923
  } | undefined;