@orq-ai/node 4.4.11 → 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 (193) hide show
  1. package/funcs/agentsStream.js +4 -2
  2. package/funcs/agentsStream.js.map +1 -1
  3. package/funcs/agentsStreamRun.js +4 -2
  4. package/funcs/agentsStreamRun.js.map +1 -1
  5. package/funcs/deploymentsStream.js +4 -2
  6. package/funcs/deploymentsStream.js.map +1 -1
  7. package/funcs/filesCreate.js +7 -0
  8. package/funcs/filesCreate.js.map +1 -1
  9. package/funcs/routerAudioTranscriptionsCreate.js +7 -0
  10. package/funcs/routerAudioTranscriptionsCreate.js.map +1 -1
  11. package/funcs/routerAudioTranslationsCreate.js +7 -0
  12. package/funcs/routerAudioTranslationsCreate.js.map +1 -1
  13. package/jsr.json +1 -1
  14. package/lib/config.d.ts +3 -3
  15. package/lib/config.js +3 -3
  16. package/lib/config.js.map +1 -1
  17. package/lib/event-streams.d.ts +5 -0
  18. package/lib/event-streams.d.ts.map +1 -1
  19. package/lib/event-streams.js.map +1 -1
  20. package/lib/matchers.d.ts.map +1 -1
  21. package/lib/matchers.js +0 -1
  22. package/lib/matchers.js.map +1 -1
  23. package/lib/security.d.ts.map +1 -1
  24. package/lib/security.js +1 -2
  25. package/lib/security.js.map +1 -1
  26. package/models/components/partdoneevent.js +1 -1
  27. package/models/components/reasoningpart.js +1 -1
  28. package/models/operations/createagentresponserequest.d.ts.map +1 -1
  29. package/models/operations/createagentresponserequest.js +2 -1
  30. package/models/operations/createagentresponserequest.js.map +1 -1
  31. package/models/operations/createchatcompletion.d.ts.map +1 -1
  32. package/models/operations/createchatcompletion.js +2 -1
  33. package/models/operations/createchatcompletion.js.map +1 -1
  34. package/models/operations/createcompletion.d.ts.map +1 -1
  35. package/models/operations/createcompletion.js +2 -1
  36. package/models/operations/createcompletion.js.map +1 -1
  37. package/models/operations/createcontact.js +1 -1
  38. package/models/operations/createdataset.js +1 -1
  39. package/models/operations/createdatasetitem.js +4 -4
  40. package/models/operations/createdatasource.js +1 -1
  41. package/models/operations/createeval.js +16 -16
  42. package/models/operations/createidentity.js +1 -1
  43. package/models/operations/createresponse.d.ts.map +1 -1
  44. package/models/operations/createresponse.js +2 -1
  45. package/models/operations/createresponse.js.map +1 -1
  46. package/models/operations/createtool.js +6 -6
  47. package/models/operations/fileget.js +1 -1
  48. package/models/operations/filelist.js +1 -1
  49. package/models/operations/fileupload.js +1 -1
  50. package/models/operations/getalltools.js +6 -6
  51. package/models/operations/getevals.js +16 -16
  52. package/models/operations/listdatasetdatapoints.js +4 -4
  53. package/models/operations/listdatasets.js +1 -1
  54. package/models/operations/listdatasources.js +1 -1
  55. package/models/operations/listidentities.js +1 -1
  56. package/models/operations/retrievedatapoint.js +4 -4
  57. package/models/operations/retrievedataset.js +1 -1
  58. package/models/operations/retrievedatasource.js +1 -1
  59. package/models/operations/retrieveidentity.js +1 -1
  60. package/models/operations/retrievetool.js +6 -6
  61. package/models/operations/runagent.js +1 -1
  62. package/models/operations/streamrunagent.js +1 -1
  63. package/models/operations/updatedatapoint.js +4 -4
  64. package/models/operations/updatedataset.js +1 -1
  65. package/models/operations/updatedatasource.js +1 -1
  66. package/models/operations/updateeval.js +16 -16
  67. package/models/operations/updateidentity.js +1 -1
  68. package/models/operations/updatetool.js +7 -7
  69. package/package.json +1 -1
  70. package/packages/orq-rc/src/funcs/agentsList.ts +5 -0
  71. package/packages/orq-rc/src/funcs/agentsPostV2AgentsA2a.ts +178 -0
  72. package/packages/orq-rc/src/funcs/agentsPostV2AgentsKeyCardRefresh.ts +187 -0
  73. package/packages/orq-rc/src/funcs/agentsResponsesGet.ts +182 -0
  74. package/packages/orq-rc/src/funcs/agentsStream.ts +4 -1
  75. package/packages/orq-rc/src/funcs/agentsStreamRun.ts +4 -1
  76. package/packages/orq-rc/src/funcs/agentsUpdate.ts +2 -2
  77. package/packages/orq-rc/src/funcs/deploymentsStream.ts +4 -1
  78. package/packages/orq-rc/src/funcs/filesCreate.ts +11 -0
  79. package/packages/orq-rc/src/funcs/routerAudioTranscriptionsCreate.ts +11 -0
  80. package/packages/orq-rc/src/funcs/routerAudioTranslationsCreate.ts +11 -0
  81. package/packages/orq-rc/src/lib/config.ts +3 -3
  82. package/packages/orq-rc/src/lib/event-streams.ts +10 -1
  83. package/packages/orq-rc/src/lib/matchers.ts +3 -2
  84. package/packages/orq-rc/src/lib/security.ts +1 -2
  85. package/packages/orq-rc/src/models/components/createagentresponse.ts +6 -0
  86. package/packages/orq-rc/src/models/components/extendedmessage.ts +146 -0
  87. package/packages/orq-rc/src/models/components/getagentresponse.ts +348 -0
  88. package/packages/orq-rc/src/models/components/index.ts +3 -0
  89. package/packages/orq-rc/src/models/components/partdoneevent.ts +1 -1
  90. package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
  91. package/packages/orq-rc/src/models/components/responsedoneevent.ts +6 -0
  92. package/packages/orq-rc/src/models/components/responsestartedevent.ts +6 -0
  93. package/packages/orq-rc/src/models/components/telemetry.ts +48 -0
  94. package/packages/orq-rc/src/models/errors/index.ts +2 -0
  95. package/packages/orq-rc/src/models/errors/postv2agentsa2a.ts +96 -0
  96. package/packages/orq-rc/src/models/errors/postv2agentskeycardrefresh.ts +97 -0
  97. package/packages/orq-rc/src/models/operations/createagentrequest.ts +755 -1212
  98. package/packages/orq-rc/src/models/operations/createagentresponserequest.ts +37 -2
  99. package/packages/orq-rc/src/models/operations/createannotation.ts +5 -1
  100. package/packages/orq-rc/src/models/operations/createchatcompletion.ts +14 -3
  101. package/packages/orq-rc/src/models/operations/createcompletion.ts +8 -3
  102. package/packages/orq-rc/src/models/operations/createcontact.ts +1 -1
  103. package/packages/orq-rc/src/models/operations/createdataset.ts +1 -1
  104. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +4 -4
  105. package/packages/orq-rc/src/models/operations/createdatasource.ts +1 -1
  106. package/packages/orq-rc/src/models/operations/createeval.ts +16 -16
  107. package/packages/orq-rc/src/models/operations/createidentity.ts +1 -1
  108. package/packages/orq-rc/src/models/operations/createknowledge.ts +19 -17
  109. package/packages/orq-rc/src/models/operations/createprompt.ts +55 -66
  110. package/packages/orq-rc/src/models/operations/createresponse.ts +2 -1
  111. package/packages/orq-rc/src/models/operations/createtool.ts +103 -91
  112. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +38 -0
  113. package/packages/orq-rc/src/models/operations/deploymentstream.ts +38 -0
  114. package/packages/orq-rc/src/models/operations/fileget.ts +1 -1
  115. package/packages/orq-rc/src/models/operations/filelist.ts +1 -1
  116. package/packages/orq-rc/src/models/operations/fileupload.ts +1 -1
  117. package/packages/orq-rc/src/models/operations/getagentresponse.ts +46 -0
  118. package/packages/orq-rc/src/models/operations/getalltools.ts +93 -87
  119. package/packages/orq-rc/src/models/operations/getevals.ts +16 -16
  120. package/packages/orq-rc/src/models/operations/index.ts +3 -0
  121. package/packages/orq-rc/src/models/operations/invokeagent.ts +45 -1
  122. package/packages/orq-rc/src/models/operations/listagents.ts +751 -787
  123. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +4 -4
  124. package/packages/orq-rc/src/models/operations/listdatasets.ts +1 -1
  125. package/packages/orq-rc/src/models/operations/listdatasources.ts +1 -1
  126. package/packages/orq-rc/src/models/operations/listidentities.ts +1 -1
  127. package/packages/orq-rc/src/models/operations/listknowledgebases.ts +72 -64
  128. package/packages/orq-rc/src/models/operations/postv2agentsa2a.ts +252 -0
  129. package/packages/orq-rc/src/models/operations/postv2agentskeycardrefresh.ts +100 -0
  130. package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +962 -857
  131. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +4 -4
  132. package/packages/orq-rc/src/models/operations/retrievedataset.ts +1 -1
  133. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +1 -1
  134. package/packages/orq-rc/src/models/operations/retrieveidentity.ts +1 -1
  135. package/packages/orq-rc/src/models/operations/retrievetool.ts +6 -6
  136. package/packages/orq-rc/src/models/operations/runagent.ts +69 -493
  137. package/packages/orq-rc/src/models/operations/streamagent.ts +40 -1
  138. package/packages/orq-rc/src/models/operations/streamrunagent.ts +36 -493
  139. package/packages/orq-rc/src/models/operations/updateagent.ts +966 -1313
  140. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +4 -4
  141. package/packages/orq-rc/src/models/operations/updatedataset.ts +1 -1
  142. package/packages/orq-rc/src/models/operations/updatedatasource.ts +1 -1
  143. package/packages/orq-rc/src/models/operations/updateeval.ts +16 -16
  144. package/packages/orq-rc/src/models/operations/updateidentity.ts +1 -1
  145. package/packages/orq-rc/src/models/operations/updatememorystore.ts +3 -62
  146. package/packages/orq-rc/src/models/operations/updatetool.ts +96 -7
  147. package/packages/orq-rc/src/sdk/agents.ts +39 -1
  148. package/packages/orq-rc/src/sdk/responses.ts +19 -0
  149. package/src/funcs/agentsStream.ts +4 -1
  150. package/src/funcs/agentsStreamRun.ts +4 -1
  151. package/src/funcs/deploymentsStream.ts +4 -1
  152. package/src/funcs/filesCreate.ts +11 -0
  153. package/src/funcs/routerAudioTranscriptionsCreate.ts +11 -0
  154. package/src/funcs/routerAudioTranslationsCreate.ts +11 -0
  155. package/src/lib/config.ts +3 -3
  156. package/src/lib/event-streams.ts +10 -1
  157. package/src/lib/matchers.ts +3 -2
  158. package/src/lib/security.ts +1 -2
  159. package/src/models/components/partdoneevent.ts +1 -1
  160. package/src/models/components/reasoningpart.ts +1 -1
  161. package/src/models/operations/createagentresponserequest.ts +2 -1
  162. package/src/models/operations/createchatcompletion.ts +2 -1
  163. package/src/models/operations/createcompletion.ts +2 -1
  164. package/src/models/operations/createcontact.ts +1 -1
  165. package/src/models/operations/createdataset.ts +1 -1
  166. package/src/models/operations/createdatasetitem.ts +4 -4
  167. package/src/models/operations/createdatasource.ts +1 -1
  168. package/src/models/operations/createeval.ts +16 -16
  169. package/src/models/operations/createidentity.ts +1 -1
  170. package/src/models/operations/createresponse.ts +2 -1
  171. package/src/models/operations/createtool.ts +6 -6
  172. package/src/models/operations/fileget.ts +1 -1
  173. package/src/models/operations/filelist.ts +1 -1
  174. package/src/models/operations/fileupload.ts +1 -1
  175. package/src/models/operations/getalltools.ts +6 -6
  176. package/src/models/operations/getevals.ts +16 -16
  177. package/src/models/operations/listdatasetdatapoints.ts +4 -4
  178. package/src/models/operations/listdatasets.ts +1 -1
  179. package/src/models/operations/listdatasources.ts +1 -1
  180. package/src/models/operations/listidentities.ts +1 -1
  181. package/src/models/operations/retrievedatapoint.ts +4 -4
  182. package/src/models/operations/retrievedataset.ts +1 -1
  183. package/src/models/operations/retrievedatasource.ts +1 -1
  184. package/src/models/operations/retrieveidentity.ts +1 -1
  185. package/src/models/operations/retrievetool.ts +6 -6
  186. package/src/models/operations/runagent.ts +1 -1
  187. package/src/models/operations/streamrunagent.ts +1 -1
  188. package/src/models/operations/updatedatapoint.ts +4 -4
  189. package/src/models/operations/updatedataset.ts +1 -1
  190. package/src/models/operations/updatedatasource.ts +1 -1
  191. package/src/models/operations/updateeval.ts +16 -16
  192. package/src/models/operations/updateidentity.ts +1 -1
  193. package/src/models/operations/updatetool.ts +7 -7
@@ -94,7 +94,7 @@ export const FileGetResponseBody$inboundSchema: z.ZodType<
94
94
  file_name: z.string(),
95
95
  workspace_id: z.string(),
96
96
  created: z.string().datetime({ offset: true }).default(
97
- "2026-03-02T11:21:26.187Z",
97
+ "2026-03-05T14:31:09.588Z",
98
98
  ).transform(v => new Date(v)),
99
99
  }).transform((v) => {
100
100
  return remap$(v, {
@@ -125,7 +125,7 @@ export const FileListData$inboundSchema: z.ZodType<
125
125
  file_name: z.string(),
126
126
  workspace_id: z.string(),
127
127
  created: z.string().datetime({ offset: true }).default(
128
- "2026-03-02T11:21:26.187Z",
128
+ "2026-03-05T14:31:09.588Z",
129
129
  ).transform(v => new Date(v)),
130
130
  }).transform((v) => {
131
131
  return remap$(v, {
@@ -148,7 +148,7 @@ export const FileUploadResponseBody$inboundSchema: z.ZodType<
148
148
  file_name: z.string(),
149
149
  workspace_id: z.string(),
150
150
  created: z.string().datetime({ offset: true }).default(
151
- "2026-03-02T11:21:26.187Z",
151
+ "2026-03-05T14:31:09.588Z",
152
152
  ).transform(v => new Date(v)),
153
153
  }).transform((v) => {
154
154
  return remap$(v, {
@@ -0,0 +1,46 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+
8
+ export type GetAgentResponseRequest = {
9
+ /**
10
+ * The unique key identifier of the agent
11
+ */
12
+ agentKey: string;
13
+ /**
14
+ * The agent execution task ID returned from create response
15
+ */
16
+ taskId: string;
17
+ };
18
+
19
+ /** @internal */
20
+ export type GetAgentResponseRequest$Outbound = {
21
+ agent_key: string;
22
+ task_id: string;
23
+ };
24
+
25
+ /** @internal */
26
+ export const GetAgentResponseRequest$outboundSchema: z.ZodType<
27
+ GetAgentResponseRequest$Outbound,
28
+ z.ZodTypeDef,
29
+ GetAgentResponseRequest
30
+ > = z.object({
31
+ agentKey: z.string(),
32
+ taskId: z.string(),
33
+ }).transform((v) => {
34
+ return remap$(v, {
35
+ agentKey: "agent_key",
36
+ taskId: "task_id",
37
+ });
38
+ });
39
+
40
+ export function getAgentResponseRequestToJSON(
41
+ getAgentResponseRequest: GetAgentResponseRequest,
42
+ ): string {
43
+ return JSON.stringify(
44
+ GetAgentResponseRequest$outboundSchema.parse(getAgentResponseRequest),
45
+ );
46
+ }
@@ -35,7 +35,7 @@ export type GetAllToolsObject = ClosedEnum<typeof GetAllToolsObject>;
35
35
  /**
36
36
  * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
37
37
  */
38
- export const GetAllToolsDataToolsResponse200Status = {
38
+ export const GetAllToolsDataToolsResponse200ApplicationJSONStatus = {
39
39
  Live: "live",
40
40
  Draft: "draft",
41
41
  Pending: "pending",
@@ -44,8 +44,8 @@ export const GetAllToolsDataToolsResponse200Status = {
44
44
  /**
45
45
  * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
46
46
  */
47
- export type GetAllToolsDataToolsResponse200Status = ClosedEnum<
48
- typeof GetAllToolsDataToolsResponse200Status
47
+ export type GetAllToolsDataToolsResponse200ApplicationJSONStatus = ClosedEnum<
48
+ typeof GetAllToolsDataToolsResponse200ApplicationJSONStatus
49
49
  >;
50
50
 
51
51
  /**
@@ -65,7 +65,7 @@ export type GetAllToolsDataToolsResponse200ApplicationJSONResponseBody5Type =
65
65
  /**
66
66
  * The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
67
67
  */
68
- export type GetAllToolsDataParameters = {
68
+ export type GetAllToolsDataToolsParameters = {
69
69
  /**
70
70
  * The type must be "object"
71
71
  */
@@ -90,7 +90,7 @@ export type DataCodeTool = {
90
90
  /**
91
91
  * The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
92
92
  */
93
- parameters?: GetAllToolsDataParameters | undefined;
93
+ parameters?: GetAllToolsDataToolsParameters | undefined;
94
94
  language: DataLanguage;
95
95
  /**
96
96
  * The code to execute.
@@ -140,7 +140,7 @@ export type DataCodeExecutionTool = {
140
140
  /**
141
141
  * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
142
142
  */
143
- status: GetAllToolsDataToolsResponse200Status;
143
+ status: GetAllToolsDataToolsResponse200ApplicationJSONStatus;
144
144
  versionHash?: string | undefined;
145
145
  type: "code";
146
146
  codeTool: DataCodeTool;
@@ -149,7 +149,7 @@ export type DataCodeExecutionTool = {
149
149
  /**
150
150
  * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
151
151
  */
152
- export const GetAllToolsDataToolsResponseStatus = {
152
+ export const GetAllToolsDataToolsResponse200Status = {
153
153
  Live: "live",
154
154
  Draft: "draft",
155
155
  Pending: "pending",
@@ -158,11 +158,11 @@ export const GetAllToolsDataToolsResponseStatus = {
158
158
  /**
159
159
  * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
160
160
  */
161
- export type GetAllToolsDataToolsResponseStatus = ClosedEnum<
162
- typeof GetAllToolsDataToolsResponseStatus
161
+ export type GetAllToolsDataToolsResponse200Status = ClosedEnum<
162
+ typeof GetAllToolsDataToolsResponse200Status
163
163
  >;
164
164
 
165
- export type DataHeaders = {
165
+ export type GetAllToolsDataHeaders = {
166
166
  value: string;
167
167
  encrypted: boolean;
168
168
  };
@@ -181,7 +181,7 @@ export type GetAllToolsDataSchema = {
181
181
  required?: Array<string> | undefined;
182
182
  };
183
183
 
184
- export type DataTools = {
184
+ export type GetAllToolsDataTools = {
185
185
  id: string;
186
186
  name: string;
187
187
  description?: string | undefined;
@@ -208,11 +208,11 @@ export type DataMcp = {
208
208
  /**
209
209
  * HTTP headers for MCP server requests with encryption support
210
210
  */
211
- headers?: { [k: string]: DataHeaders } | undefined;
211
+ headers?: { [k: string]: GetAllToolsDataHeaders } | undefined;
212
212
  /**
213
213
  * Array of tools available from the MCP server
214
214
  */
215
- tools: Array<DataTools>;
215
+ tools: Array<GetAllToolsDataTools>;
216
216
  /**
217
217
  * The connection type used by the MCP server
218
218
  */
@@ -261,7 +261,7 @@ export type DataMCPTool = {
261
261
  /**
262
262
  * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
263
263
  */
264
- status: GetAllToolsDataToolsResponseStatus;
264
+ status: GetAllToolsDataToolsResponse200Status;
265
265
  versionHash?: string | undefined;
266
266
  type: "mcp";
267
267
  mcp: DataMcp;
@@ -270,7 +270,7 @@ export type DataMCPTool = {
270
270
  /**
271
271
  * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
272
272
  */
273
- export const GetAllToolsDataToolsStatus = {
273
+ export const GetAllToolsDataToolsResponseStatus = {
274
274
  Live: "live",
275
275
  Draft: "draft",
276
276
  Pending: "pending",
@@ -279,8 +279,8 @@ export const GetAllToolsDataToolsStatus = {
279
279
  /**
280
280
  * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
281
281
  */
282
- export type GetAllToolsDataToolsStatus = ClosedEnum<
283
- typeof GetAllToolsDataToolsStatus
282
+ export type GetAllToolsDataToolsResponseStatus = ClosedEnum<
283
+ typeof GetAllToolsDataToolsResponseStatus
284
284
  >;
285
285
 
286
286
  /**
@@ -302,7 +302,7 @@ export type GetAllToolsHeaders2 = {
302
302
  encrypted: boolean;
303
303
  };
304
304
 
305
- export type GetAllToolsDataHeaders = GetAllToolsHeaders2 | string;
305
+ export type GetAllToolsDataToolsHeaders = GetAllToolsHeaders2 | string;
306
306
 
307
307
  /**
308
308
  * The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
@@ -419,7 +419,7 @@ export type DataHTTPTool = {
419
419
  /**
420
420
  * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
421
421
  */
422
- status: GetAllToolsDataToolsStatus;
422
+ status: GetAllToolsDataToolsResponseStatus;
423
423
  versionHash?: string | undefined;
424
424
  type: "http";
425
425
  http: GetAllToolsDataHttp;
@@ -428,7 +428,7 @@ export type DataHTTPTool = {
428
428
  /**
429
429
  * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
430
430
  */
431
- export const GetAllToolsDataStatus = {
431
+ export const GetAllToolsDataToolsStatus = {
432
432
  Live: "live",
433
433
  Draft: "draft",
434
434
  Pending: "pending",
@@ -437,7 +437,9 @@ export const GetAllToolsDataStatus = {
437
437
  /**
438
438
  * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
439
439
  */
440
- export type GetAllToolsDataStatus = ClosedEnum<typeof GetAllToolsDataStatus>;
440
+ export type GetAllToolsDataToolsStatus = ClosedEnum<
441
+ typeof GetAllToolsDataToolsStatus
442
+ >;
441
443
 
442
444
  /**
443
445
  * The schema for the response format, described as a JSON Schema object. See the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
@@ -519,7 +521,7 @@ export type DataJSONSchemaTool = {
519
521
  /**
520
522
  * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
521
523
  */
522
- status: GetAllToolsDataStatus;
524
+ status: GetAllToolsDataToolsStatus;
523
525
  versionHash?: string | undefined;
524
526
  type: "json_schema";
525
527
  jsonSchema: DataJsonSchema;
@@ -528,7 +530,7 @@ export type DataJSONSchemaTool = {
528
530
  /**
529
531
  * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
530
532
  */
531
- export const DataStatus = {
533
+ export const GetAllToolsDataStatus = {
532
534
  Live: "live",
533
535
  Draft: "draft",
534
536
  Pending: "pending",
@@ -537,7 +539,7 @@ export const DataStatus = {
537
539
  /**
538
540
  * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
539
541
  */
540
- export type DataStatus = ClosedEnum<typeof DataStatus>;
542
+ export type GetAllToolsDataStatus = ClosedEnum<typeof GetAllToolsDataStatus>;
541
543
 
542
544
  /**
543
545
  * The type must be "object"
@@ -556,7 +558,7 @@ export type GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType =
556
558
  /**
557
559
  * The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
558
560
  */
559
- export type DataParameters = {
561
+ export type GetAllToolsDataParameters = {
560
562
  /**
561
563
  * The type must be "object"
562
564
  */
@@ -588,7 +590,7 @@ export type GetAllToolsDataFunction = {
588
590
  /**
589
591
  * The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
590
592
  */
591
- parameters?: DataParameters | undefined;
593
+ parameters?: GetAllToolsDataParameters | undefined;
592
594
  };
593
595
 
594
596
  /**
@@ -633,7 +635,7 @@ export type DataFunctionTool = {
633
635
  /**
634
636
  * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
635
637
  */
636
- status: DataStatus;
638
+ status: GetAllToolsDataStatus;
637
639
  versionHash?: string | undefined;
638
640
  type: "function";
639
641
  function: GetAllToolsDataFunction;
@@ -698,10 +700,9 @@ export const GetAllToolsObject$inboundSchema: z.ZodNativeEnum<
698
700
  > = z.nativeEnum(GetAllToolsObject);
699
701
 
700
702
  /** @internal */
701
- export const GetAllToolsDataToolsResponse200Status$inboundSchema:
702
- z.ZodNativeEnum<typeof GetAllToolsDataToolsResponse200Status> = z.nativeEnum(
703
- GetAllToolsDataToolsResponse200Status,
704
- );
703
+ export const GetAllToolsDataToolsResponse200ApplicationJSONStatus$inboundSchema:
704
+ z.ZodNativeEnum<typeof GetAllToolsDataToolsResponse200ApplicationJSONStatus> =
705
+ z.nativeEnum(GetAllToolsDataToolsResponse200ApplicationJSONStatus);
705
706
 
706
707
  /** @internal */
707
708
  export const GetAllToolsDataToolsResponse200ApplicationJSONResponseBody5Type$inboundSchema:
@@ -712,8 +713,8 @@ export const GetAllToolsDataToolsResponse200ApplicationJSONResponseBody5Type$inb
712
713
  );
713
714
 
714
715
  /** @internal */
715
- export const GetAllToolsDataParameters$inboundSchema: z.ZodType<
716
- GetAllToolsDataParameters,
716
+ export const GetAllToolsDataToolsParameters$inboundSchema: z.ZodType<
717
+ GetAllToolsDataToolsParameters,
717
718
  z.ZodTypeDef,
718
719
  unknown
719
720
  > = collectExtraKeys$(
@@ -727,13 +728,13 @@ export const GetAllToolsDataParameters$inboundSchema: z.ZodType<
727
728
  true,
728
729
  );
729
730
 
730
- export function getAllToolsDataParametersFromJSON(
731
+ export function getAllToolsDataToolsParametersFromJSON(
731
732
  jsonString: string,
732
- ): SafeParseResult<GetAllToolsDataParameters, SDKValidationError> {
733
+ ): SafeParseResult<GetAllToolsDataToolsParameters, SDKValidationError> {
733
734
  return safeParse(
734
735
  jsonString,
735
- (x) => GetAllToolsDataParameters$inboundSchema.parse(JSON.parse(x)),
736
- `Failed to parse 'GetAllToolsDataParameters' from JSON`,
736
+ (x) => GetAllToolsDataToolsParameters$inboundSchema.parse(JSON.parse(x)),
737
+ `Failed to parse 'GetAllToolsDataToolsParameters' from JSON`,
737
738
  );
738
739
  }
739
740
 
@@ -747,7 +748,8 @@ export const DataCodeTool$inboundSchema: z.ZodType<
747
748
  z.ZodTypeDef,
748
749
  unknown
749
750
  > = z.object({
750
- parameters: z.lazy(() => GetAllToolsDataParameters$inboundSchema).optional(),
751
+ parameters: z.lazy(() => GetAllToolsDataToolsParameters$inboundSchema)
752
+ .optional(),
751
753
  language: DataLanguage$inboundSchema,
752
754
  code: z.string(),
753
755
  });
@@ -768,7 +770,7 @@ export const DataCodeExecutionTool$inboundSchema: z.ZodType<
768
770
  z.ZodTypeDef,
769
771
  unknown
770
772
  > = z.object({
771
- _id: z.string().default("tool_01KJQ4GHYKHM27XTJ2TKR9K4G3"),
773
+ _id: z.string().default("tool_01KJZ6J37JSDXN1MJRB724H4H8"),
772
774
  path: z.string(),
773
775
  key: z.string(),
774
776
  display_name: z.string().optional(),
@@ -779,7 +781,8 @@ export const DataCodeExecutionTool$inboundSchema: z.ZodType<
779
781
  workspace_id: z.string(),
780
782
  created: z.string(),
781
783
  updated: z.string(),
782
- status: GetAllToolsDataToolsResponse200Status$inboundSchema.default("live"),
784
+ status: GetAllToolsDataToolsResponse200ApplicationJSONStatus$inboundSchema
785
+ .default("live"),
783
786
  version_hash: z.string().optional(),
784
787
  type: z.literal("code"),
785
788
  code_tool: z.lazy(() => DataCodeTool$inboundSchema),
@@ -807,13 +810,14 @@ export function dataCodeExecutionToolFromJSON(
807
810
  }
808
811
 
809
812
  /** @internal */
810
- export const GetAllToolsDataToolsResponseStatus$inboundSchema: z.ZodNativeEnum<
811
- typeof GetAllToolsDataToolsResponseStatus
812
- > = z.nativeEnum(GetAllToolsDataToolsResponseStatus);
813
+ export const GetAllToolsDataToolsResponse200Status$inboundSchema:
814
+ z.ZodNativeEnum<typeof GetAllToolsDataToolsResponse200Status> = z.nativeEnum(
815
+ GetAllToolsDataToolsResponse200Status,
816
+ );
813
817
 
814
818
  /** @internal */
815
- export const DataHeaders$inboundSchema: z.ZodType<
816
- DataHeaders,
819
+ export const GetAllToolsDataHeaders$inboundSchema: z.ZodType<
820
+ GetAllToolsDataHeaders,
817
821
  z.ZodTypeDef,
818
822
  unknown
819
823
  > = z.object({
@@ -821,13 +825,13 @@ export const DataHeaders$inboundSchema: z.ZodType<
821
825
  encrypted: z.boolean().default(false),
822
826
  });
823
827
 
824
- export function dataHeadersFromJSON(
828
+ export function getAllToolsDataHeadersFromJSON(
825
829
  jsonString: string,
826
- ): SafeParseResult<DataHeaders, SDKValidationError> {
830
+ ): SafeParseResult<GetAllToolsDataHeaders, SDKValidationError> {
827
831
  return safeParse(
828
832
  jsonString,
829
- (x) => DataHeaders$inboundSchema.parse(JSON.parse(x)),
830
- `Failed to parse 'DataHeaders' from JSON`,
833
+ (x) => GetAllToolsDataHeaders$inboundSchema.parse(JSON.parse(x)),
834
+ `Failed to parse 'GetAllToolsDataHeaders' from JSON`,
831
835
  );
832
836
  }
833
837
 
@@ -862,24 +866,24 @@ export function getAllToolsDataSchemaFromJSON(
862
866
  }
863
867
 
864
868
  /** @internal */
865
- export const DataTools$inboundSchema: z.ZodType<
866
- DataTools,
869
+ export const GetAllToolsDataTools$inboundSchema: z.ZodType<
870
+ GetAllToolsDataTools,
867
871
  z.ZodTypeDef,
868
872
  unknown
869
873
  > = z.object({
870
- id: z.string().default("01KJQ4GHYJ813GDAZAAPNM5KBC"),
874
+ id: z.string().default("01KJZ6J37JC83B9E90DA1YVW0N"),
871
875
  name: z.string(),
872
876
  description: z.string().optional(),
873
877
  schema: z.lazy(() => GetAllToolsDataSchema$inboundSchema),
874
878
  });
875
879
 
876
- export function dataToolsFromJSON(
880
+ export function getAllToolsDataToolsFromJSON(
877
881
  jsonString: string,
878
- ): SafeParseResult<DataTools, SDKValidationError> {
882
+ ): SafeParseResult<GetAllToolsDataTools, SDKValidationError> {
879
883
  return safeParse(
880
884
  jsonString,
881
- (x) => DataTools$inboundSchema.parse(JSON.parse(x)),
882
- `Failed to parse 'DataTools' from JSON`,
885
+ (x) => GetAllToolsDataTools$inboundSchema.parse(JSON.parse(x)),
886
+ `Failed to parse 'GetAllToolsDataTools' from JSON`,
883
887
  );
884
888
  }
885
889
 
@@ -892,8 +896,9 @@ export const DataConnectionType$inboundSchema: z.ZodNativeEnum<
892
896
  export const DataMcp$inboundSchema: z.ZodType<DataMcp, z.ZodTypeDef, unknown> =
893
897
  z.object({
894
898
  server_url: z.string(),
895
- headers: z.record(z.lazy(() => DataHeaders$inboundSchema)).optional(),
896
- tools: z.array(z.lazy(() => DataTools$inboundSchema)),
899
+ headers: z.record(z.lazy(() => GetAllToolsDataHeaders$inboundSchema))
900
+ .optional(),
901
+ tools: z.array(z.lazy(() => GetAllToolsDataTools$inboundSchema)),
897
902
  connection_type: DataConnectionType$inboundSchema,
898
903
  }).transform((v) => {
899
904
  return remap$(v, {
@@ -918,7 +923,7 @@ export const DataMCPTool$inboundSchema: z.ZodType<
918
923
  z.ZodTypeDef,
919
924
  unknown
920
925
  > = z.object({
921
- _id: z.string().default("tool_01KJQ4GHY8PECJG9CG41YCRMXQ"),
926
+ _id: z.string().default("tool_01KJZ6J37G2NKC7BYFYHE3SSWB"),
922
927
  path: z.string(),
923
928
  key: z.string(),
924
929
  display_name: z.string().optional(),
@@ -929,7 +934,7 @@ export const DataMCPTool$inboundSchema: z.ZodType<
929
934
  workspace_id: z.string(),
930
935
  created: z.string(),
931
936
  updated: z.string(),
932
- status: GetAllToolsDataToolsResponseStatus$inboundSchema.default("live"),
937
+ status: GetAllToolsDataToolsResponse200Status$inboundSchema.default("live"),
933
938
  version_hash: z.string().optional(),
934
939
  type: z.literal("mcp"),
935
940
  mcp: z.lazy(() => DataMcp$inboundSchema),
@@ -956,9 +961,9 @@ export function dataMCPToolFromJSON(
956
961
  }
957
962
 
958
963
  /** @internal */
959
- export const GetAllToolsDataToolsStatus$inboundSchema: z.ZodNativeEnum<
960
- typeof GetAllToolsDataToolsStatus
961
- > = z.nativeEnum(GetAllToolsDataToolsStatus);
964
+ export const GetAllToolsDataToolsResponseStatus$inboundSchema: z.ZodNativeEnum<
965
+ typeof GetAllToolsDataToolsResponseStatus
966
+ > = z.nativeEnum(GetAllToolsDataToolsResponseStatus);
962
967
 
963
968
  /** @internal */
964
969
  export const GetAllToolsDataMethod$inboundSchema: z.ZodNativeEnum<
@@ -986,19 +991,19 @@ export function getAllToolsHeaders2FromJSON(
986
991
  }
987
992
 
988
993
  /** @internal */
989
- export const GetAllToolsDataHeaders$inboundSchema: z.ZodType<
990
- GetAllToolsDataHeaders,
994
+ export const GetAllToolsDataToolsHeaders$inboundSchema: z.ZodType<
995
+ GetAllToolsDataToolsHeaders,
991
996
  z.ZodTypeDef,
992
997
  unknown
993
998
  > = z.union([z.lazy(() => GetAllToolsHeaders2$inboundSchema), z.string()]);
994
999
 
995
- export function getAllToolsDataHeadersFromJSON(
1000
+ export function getAllToolsDataToolsHeadersFromJSON(
996
1001
  jsonString: string,
997
- ): SafeParseResult<GetAllToolsDataHeaders, SDKValidationError> {
1002
+ ): SafeParseResult<GetAllToolsDataToolsHeaders, SDKValidationError> {
998
1003
  return safeParse(
999
1004
  jsonString,
1000
- (x) => GetAllToolsDataHeaders$inboundSchema.parse(JSON.parse(x)),
1001
- `Failed to parse 'GetAllToolsDataHeaders' from JSON`,
1005
+ (x) => GetAllToolsDataToolsHeaders$inboundSchema.parse(JSON.parse(x)),
1006
+ `Failed to parse 'GetAllToolsDataToolsHeaders' from JSON`,
1002
1007
  );
1003
1008
  }
1004
1009
 
@@ -1105,7 +1110,7 @@ export const DataHTTPTool$inboundSchema: z.ZodType<
1105
1110
  z.ZodTypeDef,
1106
1111
  unknown
1107
1112
  > = z.object({
1108
- _id: z.string().default("tool_01KJQ4GHY6K5B3R7TXKY8PSXA1"),
1113
+ _id: z.string().default("tool_01KJZ6J37D40SA944CG3D1APJ3"),
1109
1114
  path: z.string(),
1110
1115
  key: z.string(),
1111
1116
  display_name: z.string().optional(),
@@ -1116,7 +1121,7 @@ export const DataHTTPTool$inboundSchema: z.ZodType<
1116
1121
  workspace_id: z.string(),
1117
1122
  created: z.string(),
1118
1123
  updated: z.string(),
1119
- status: GetAllToolsDataToolsStatus$inboundSchema.default("live"),
1124
+ status: GetAllToolsDataToolsResponseStatus$inboundSchema.default("live"),
1120
1125
  version_hash: z.string().optional(),
1121
1126
  type: z.literal("http"),
1122
1127
  http: z.lazy(() => GetAllToolsDataHttp$inboundSchema),
@@ -1143,9 +1148,9 @@ export function dataHTTPToolFromJSON(
1143
1148
  }
1144
1149
 
1145
1150
  /** @internal */
1146
- export const GetAllToolsDataStatus$inboundSchema: z.ZodNativeEnum<
1147
- typeof GetAllToolsDataStatus
1148
- > = z.nativeEnum(GetAllToolsDataStatus);
1151
+ export const GetAllToolsDataToolsStatus$inboundSchema: z.ZodNativeEnum<
1152
+ typeof GetAllToolsDataToolsStatus
1153
+ > = z.nativeEnum(GetAllToolsDataToolsStatus);
1149
1154
 
1150
1155
  /** @internal */
1151
1156
  export const DataSchema$inboundSchema: z.ZodType<
@@ -1200,7 +1205,7 @@ export const DataJSONSchemaTool$inboundSchema: z.ZodType<
1200
1205
  z.ZodTypeDef,
1201
1206
  unknown
1202
1207
  > = z.object({
1203
- _id: z.string().default("tool_01KJQ4GHY50R6S9FV4AY7DP3PC"),
1208
+ _id: z.string().default("tool_01KJZ6J37AEAP3YQRY55AT2D5Z"),
1204
1209
  path: z.string(),
1205
1210
  key: z.string(),
1206
1211
  display_name: z.string().optional(),
@@ -1211,7 +1216,7 @@ export const DataJSONSchemaTool$inboundSchema: z.ZodType<
1211
1216
  workspace_id: z.string(),
1212
1217
  created: z.string(),
1213
1218
  updated: z.string(),
1214
- status: GetAllToolsDataStatus$inboundSchema.default("live"),
1219
+ status: GetAllToolsDataToolsStatus$inboundSchema.default("live"),
1215
1220
  version_hash: z.string().optional(),
1216
1221
  type: z.literal("json_schema"),
1217
1222
  json_schema: z.lazy(() => DataJsonSchema$inboundSchema),
@@ -1239,8 +1244,9 @@ export function dataJSONSchemaToolFromJSON(
1239
1244
  }
1240
1245
 
1241
1246
  /** @internal */
1242
- export const DataStatus$inboundSchema: z.ZodNativeEnum<typeof DataStatus> = z
1243
- .nativeEnum(DataStatus);
1247
+ export const GetAllToolsDataStatus$inboundSchema: z.ZodNativeEnum<
1248
+ typeof GetAllToolsDataStatus
1249
+ > = z.nativeEnum(GetAllToolsDataStatus);
1244
1250
 
1245
1251
  /** @internal */
1246
1252
  export const GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType$inboundSchema:
@@ -1251,8 +1257,8 @@ export const GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType$inbo
1251
1257
  );
1252
1258
 
1253
1259
  /** @internal */
1254
- export const DataParameters$inboundSchema: z.ZodType<
1255
- DataParameters,
1260
+ export const GetAllToolsDataParameters$inboundSchema: z.ZodType<
1261
+ GetAllToolsDataParameters,
1256
1262
  z.ZodTypeDef,
1257
1263
  unknown
1258
1264
  > = collectExtraKeys$(
@@ -1266,13 +1272,13 @@ export const DataParameters$inboundSchema: z.ZodType<
1266
1272
  true,
1267
1273
  );
1268
1274
 
1269
- export function dataParametersFromJSON(
1275
+ export function getAllToolsDataParametersFromJSON(
1270
1276
  jsonString: string,
1271
- ): SafeParseResult<DataParameters, SDKValidationError> {
1277
+ ): SafeParseResult<GetAllToolsDataParameters, SDKValidationError> {
1272
1278
  return safeParse(
1273
1279
  jsonString,
1274
- (x) => DataParameters$inboundSchema.parse(JSON.parse(x)),
1275
- `Failed to parse 'DataParameters' from JSON`,
1280
+ (x) => GetAllToolsDataParameters$inboundSchema.parse(JSON.parse(x)),
1281
+ `Failed to parse 'GetAllToolsDataParameters' from JSON`,
1276
1282
  );
1277
1283
  }
1278
1284
 
@@ -1285,7 +1291,7 @@ export const GetAllToolsDataFunction$inboundSchema: z.ZodType<
1285
1291
  name: z.string(),
1286
1292
  description: z.string().optional(),
1287
1293
  strict: z.boolean().optional(),
1288
- parameters: z.lazy(() => DataParameters$inboundSchema).optional(),
1294
+ parameters: z.lazy(() => GetAllToolsDataParameters$inboundSchema).optional(),
1289
1295
  });
1290
1296
 
1291
1297
  export function getAllToolsDataFunctionFromJSON(
@@ -1304,7 +1310,7 @@ export const DataFunctionTool$inboundSchema: z.ZodType<
1304
1310
  z.ZodTypeDef,
1305
1311
  unknown
1306
1312
  > = z.object({
1307
- _id: z.string().default("tool_01KJQ4GHY39FHNMEG4NMYCCN86"),
1313
+ _id: z.string().default("tool_01KJZ6J373SR84WVRDHG8N7BR7"),
1308
1314
  path: z.string(),
1309
1315
  key: z.string(),
1310
1316
  display_name: z.string().optional(),
@@ -1315,7 +1321,7 @@ export const DataFunctionTool$inboundSchema: z.ZodType<
1315
1321
  workspace_id: z.string(),
1316
1322
  created: z.string(),
1317
1323
  updated: z.string(),
1318
- status: DataStatus$inboundSchema.default("live"),
1324
+ status: GetAllToolsDataStatus$inboundSchema.default("live"),
1319
1325
  version_hash: z.string().optional(),
1320
1326
  type: z.literal("function"),
1321
1327
  function: z.lazy(() => GetAllToolsDataFunction$inboundSchema),