@orq-ai/node 3.12.16 → 3.12.19

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 (159) hide show
  1. package/bin/mcp-server.js +112 -112
  2. package/bin/mcp-server.js.map +30 -30
  3. package/examples/package-lock.json +1 -1
  4. package/jsr.json +1 -1
  5. package/lib/config.d.ts +3 -3
  6. package/lib/config.js +3 -3
  7. package/mcp-server/mcp-server.js +1 -1
  8. package/mcp-server/server.js +1 -1
  9. package/models/operations/createbudget.js +2 -2
  10. package/models/operations/createcontact.js +2 -2
  11. package/models/operations/createdataset.js +2 -2
  12. package/models/operations/createdatasetitem.js +2 -2
  13. package/models/operations/createdatasource.js +2 -2
  14. package/models/operations/createeval.js +16 -16
  15. package/models/operations/fileget.js +2 -2
  16. package/models/operations/filelist.js +2 -2
  17. package/models/operations/fileupload.js +2 -2
  18. package/models/operations/getbudget.js +2 -2
  19. package/models/operations/getevals.js +28 -28
  20. package/models/operations/listbudgets.js +2 -2
  21. package/models/operations/listcontacts.js +2 -2
  22. package/models/operations/listdatasetdatapoints.js +2 -2
  23. package/models/operations/listdatasets.js +2 -2
  24. package/models/operations/listdatasources.js +2 -2
  25. package/models/operations/retrievecontact.js +2 -2
  26. package/models/operations/retrievedatapoint.js +2 -2
  27. package/models/operations/retrievedataset.js +2 -2
  28. package/models/operations/retrievedatasource.js +2 -2
  29. package/models/operations/updatebudget.js +2 -2
  30. package/models/operations/updatecontact.js +2 -2
  31. package/models/operations/updatedatapoint.js +2 -2
  32. package/models/operations/updatedataset.js +2 -2
  33. package/models/operations/updatedatasource.js +2 -2
  34. package/models/operations/updateeval.js +16 -16
  35. package/package.json +1 -1
  36. package/packages/orq-rc/README.md +107 -90
  37. package/packages/orq-rc/docs/sdks/tools/README.md +488 -0
  38. package/packages/orq-rc/examples/package-lock.json +1 -1
  39. package/packages/orq-rc/jsr.json +1 -1
  40. package/packages/orq-rc/package-lock.json +2 -2
  41. package/packages/orq-rc/package.json +1 -1
  42. package/packages/orq-rc/src/funcs/toolsCreate.ts +163 -0
  43. package/packages/orq-rc/src/funcs/toolsDelete.ts +167 -0
  44. package/packages/orq-rc/src/funcs/toolsDuplicate.ts +175 -0
  45. package/packages/orq-rc/src/funcs/toolsList.ts +176 -0
  46. package/packages/orq-rc/src/funcs/toolsRetrieve.ts +166 -0
  47. package/packages/orq-rc/src/funcs/toolsUpdate.ts +176 -0
  48. package/packages/orq-rc/src/lib/config.ts +3 -3
  49. package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
  50. package/packages/orq-rc/src/mcp-server/server.ts +13 -1
  51. package/packages/orq-rc/src/mcp-server/tools/toolsCreate.ts +37 -0
  52. package/packages/orq-rc/src/mcp-server/tools/toolsDelete.ts +35 -0
  53. package/packages/orq-rc/src/mcp-server/tools/toolsDuplicate.ts +37 -0
  54. package/packages/orq-rc/src/mcp-server/tools/toolsList.ts +37 -0
  55. package/packages/orq-rc/src/mcp-server/tools/toolsRetrieve.ts +37 -0
  56. package/packages/orq-rc/src/mcp-server/tools/toolsUpdate.ts +37 -0
  57. package/packages/orq-rc/src/models/components/callsubagenttool.ts +109 -0
  58. package/packages/orq-rc/src/models/components/codeexecutiontool.ts +293 -0
  59. package/packages/orq-rc/src/models/components/currentdatetool.ts +107 -0
  60. package/packages/orq-rc/src/models/components/deployments.ts +52 -45
  61. package/packages/orq-rc/src/models/components/functiontool.ts +195 -0
  62. package/packages/orq-rc/src/models/components/googlesearchtool.ts +108 -0
  63. package/packages/orq-rc/src/models/components/httptool.ts +532 -0
  64. package/packages/orq-rc/src/models/components/index.ts +13 -0
  65. package/packages/orq-rc/src/models/components/queryknowledgebasetool.ts +111 -0
  66. package/packages/orq-rc/src/models/components/querymemorystoretool.ts +111 -0
  67. package/packages/orq-rc/src/models/components/retrieveagentstool.ts +109 -0
  68. package/packages/orq-rc/src/models/components/retrieveknowledgebasestool.ts +111 -0
  69. package/packages/orq-rc/src/models/components/retrievememorystorestool.ts +111 -0
  70. package/packages/orq-rc/src/models/components/webscrapertool.ts +105 -0
  71. package/packages/orq-rc/src/models/components/writememorystoretool.ts +111 -0
  72. package/packages/orq-rc/src/models/errors/duplicatetool.ts +91 -0
  73. package/packages/orq-rc/src/models/errors/index.ts +2 -0
  74. package/packages/orq-rc/src/models/errors/updatetool.ts +91 -0
  75. package/packages/orq-rc/src/models/operations/createbudget.ts +2 -2
  76. package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
  77. package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
  78. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +10 -8
  79. package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
  80. package/packages/orq-rc/src/models/operations/createeval.ts +60 -56
  81. package/packages/orq-rc/src/models/operations/createknowledge.ts +18 -0
  82. package/packages/orq-rc/src/models/operations/creatememorystore.ts +137 -136
  83. package/packages/orq-rc/src/models/operations/createprompt.ts +631 -314
  84. package/packages/orq-rc/src/models/operations/createtool.ts +4027 -0
  85. package/packages/orq-rc/src/models/operations/deletetool.ts +75 -0
  86. package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +8 -6
  87. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +362 -194
  88. package/packages/orq-rc/src/models/operations/deployments.ts +329 -160
  89. package/packages/orq-rc/src/models/operations/deploymentstream.ts +8 -6
  90. package/packages/orq-rc/src/models/operations/duplicatetool.ts +2311 -0
  91. package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
  92. package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
  93. package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
  94. package/packages/orq-rc/src/models/operations/getagent.ts +10 -10
  95. package/packages/orq-rc/src/models/operations/getallprompts.ts +333 -168
  96. package/packages/orq-rc/src/models/operations/getalltools.ts +2278 -0
  97. package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
  98. package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
  99. package/packages/orq-rc/src/models/operations/getoneknowledge.ts +9 -0
  100. package/packages/orq-rc/src/models/operations/getoneprompt.ts +329 -167
  101. package/packages/orq-rc/src/models/operations/getpromptversion.ts +337 -168
  102. package/packages/orq-rc/src/models/operations/index.ts +6 -0
  103. package/packages/orq-rc/src/models/operations/listagents.ts +10 -10
  104. package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
  105. package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
  106. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +6 -5
  107. package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
  108. package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
  109. package/packages/orq-rc/src/models/operations/listknowledgebases.ts +9 -0
  110. package/packages/orq-rc/src/models/operations/listpromptversions.ts +354 -183
  111. package/packages/orq-rc/src/models/operations/parse.ts +20 -335
  112. package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
  113. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +6 -5
  114. package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
  115. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
  116. package/packages/orq-rc/src/models/operations/retrievetool.ts +2303 -0
  117. package/packages/orq-rc/src/models/operations/runagent.ts +412 -1375
  118. package/packages/orq-rc/src/models/operations/streamrunagent.ts +399 -1449
  119. package/packages/orq-rc/src/models/operations/updatebudget.ts +2 -2
  120. package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
  121. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +10 -8
  122. package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
  123. package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
  124. package/packages/orq-rc/src/models/operations/updateeval.ts +57 -57
  125. package/packages/orq-rc/src/models/operations/updateknowledge.ts +18 -0
  126. package/packages/orq-rc/src/models/operations/updatememorystore.ts +136 -168
  127. package/packages/orq-rc/src/models/operations/updateprompt.ts +668 -335
  128. package/packages/orq-rc/src/models/operations/updatetool.ts +4231 -0
  129. package/packages/orq-rc/src/sdk/sdk.ts +6 -0
  130. package/packages/orq-rc/src/sdk/tools.ts +117 -0
  131. package/src/lib/config.ts +3 -3
  132. package/src/mcp-server/mcp-server.ts +1 -1
  133. package/src/mcp-server/server.ts +1 -1
  134. package/src/models/operations/createbudget.ts +2 -2
  135. package/src/models/operations/createcontact.ts +2 -2
  136. package/src/models/operations/createdataset.ts +2 -2
  137. package/src/models/operations/createdatasetitem.ts +2 -2
  138. package/src/models/operations/createdatasource.ts +2 -2
  139. package/src/models/operations/createeval.ts +16 -16
  140. package/src/models/operations/fileget.ts +2 -2
  141. package/src/models/operations/filelist.ts +2 -2
  142. package/src/models/operations/fileupload.ts +2 -2
  143. package/src/models/operations/getbudget.ts +2 -2
  144. package/src/models/operations/getevals.ts +28 -28
  145. package/src/models/operations/listbudgets.ts +2 -2
  146. package/src/models/operations/listcontacts.ts +2 -2
  147. package/src/models/operations/listdatasetdatapoints.ts +2 -2
  148. package/src/models/operations/listdatasets.ts +2 -2
  149. package/src/models/operations/listdatasources.ts +2 -2
  150. package/src/models/operations/retrievecontact.ts +2 -2
  151. package/src/models/operations/retrievedatapoint.ts +2 -2
  152. package/src/models/operations/retrievedataset.ts +2 -2
  153. package/src/models/operations/retrievedatasource.ts +2 -2
  154. package/src/models/operations/updatebudget.ts +2 -2
  155. package/src/models/operations/updatecontact.ts +2 -2
  156. package/src/models/operations/updatedatapoint.ts +2 -2
  157. package/src/models/operations/updatedataset.ts +2 -2
  158. package/src/models/operations/updatedatasource.ts +2 -2
  159. package/src/models/operations/updateeval.ts +16 -16
@@ -0,0 +1,2278 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { ClosedEnum } from "../../types/enums.js";
9
+ import { Result as SafeParseResult } from "../../types/fp.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+
12
+ export type GetAllToolsRequest = {
13
+ /**
14
+ * A limit on the number of objects to be returned. Limit can range between 1 and 300, and the default is 300
15
+ */
16
+ limit?: number | undefined;
17
+ /**
18
+ * A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, ending with `01JJ1HDHN79XAS7A01WB3HYSDB`, your subsequent call can include `after=01JJ1HDHN79XAS7A01WB3HYSDB` in order to fetch the next page of the list.
19
+ */
20
+ startingAfter?: string | undefined;
21
+ /**
22
+ * A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, starting with `01JJ1HDHN79XAS7A01WB3HYSDB`, your subsequent call can include `before=01JJ1HDHN79XAS7A01WB3HYSDB` in order to fetch the previous page of the list.
23
+ */
24
+ endingBefore?: string | undefined;
25
+ };
26
+
27
+ export const GetAllToolsObject = {
28
+ List: "list",
29
+ } as const;
30
+ export type GetAllToolsObject = ClosedEnum<typeof GetAllToolsObject>;
31
+
32
+ /**
33
+ * 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.
34
+ */
35
+ export const GetAllToolsDataToolsResponse200Status = {
36
+ Live: "live",
37
+ Draft: "draft",
38
+ Pending: "pending",
39
+ Published: "published",
40
+ } as const;
41
+ /**
42
+ * 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.
43
+ */
44
+ export type GetAllToolsDataToolsResponse200Status = ClosedEnum<
45
+ typeof GetAllToolsDataToolsResponse200Status
46
+ >;
47
+
48
+ export const GetAllToolsDataToolsResponse200ApplicationJSONType = {
49
+ Code: "code",
50
+ } as const;
51
+ export type GetAllToolsDataToolsResponse200ApplicationJSONType = ClosedEnum<
52
+ typeof GetAllToolsDataToolsResponse200ApplicationJSONType
53
+ >;
54
+
55
+ export const DataLanguage = {
56
+ Python: "python",
57
+ } as const;
58
+ export type DataLanguage = ClosedEnum<typeof DataLanguage>;
59
+
60
+ export type DataCodeTool = {
61
+ /**
62
+ * 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.
63
+ */
64
+ parameters?: { [k: string]: any } | undefined;
65
+ language: DataLanguage;
66
+ /**
67
+ * The code to execute.
68
+ */
69
+ code: string;
70
+ };
71
+
72
+ export type Data5 = {
73
+ id?: string | undefined;
74
+ /**
75
+ * The path where the entity is stored in the project structure. The first element of the path always represents the project name. Any subsequent path element after the project will be created as a folder in the project if it does not exists.
76
+ */
77
+ path: string;
78
+ /**
79
+ * Unique key of the tool as it will be displayed in the UI
80
+ */
81
+ key: string;
82
+ /**
83
+ * The name of the tool as it will be displayed in the UI. This is optional and if not provided, the `key` will be used.
84
+ */
85
+ displayName: string;
86
+ /**
87
+ * A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
88
+ */
89
+ description: string;
90
+ /**
91
+ * The id of the user that created the tool
92
+ */
93
+ createdById?: string | undefined;
94
+ /**
95
+ * The id of the user that last updated the tool
96
+ */
97
+ updatedById?: string | undefined;
98
+ projectId: string;
99
+ workspaceId: string;
100
+ created: string;
101
+ updated: string;
102
+ /**
103
+ * 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.
104
+ */
105
+ status?: GetAllToolsDataToolsResponse200Status | undefined;
106
+ versionHash?: string | undefined;
107
+ type: GetAllToolsDataToolsResponse200ApplicationJSONType;
108
+ codeTool: DataCodeTool;
109
+ };
110
+
111
+ /**
112
+ * 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.
113
+ */
114
+ export const GetAllToolsDataToolsResponseStatus = {
115
+ Live: "live",
116
+ Draft: "draft",
117
+ Pending: "pending",
118
+ Published: "published",
119
+ } as const;
120
+ /**
121
+ * 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.
122
+ */
123
+ export type GetAllToolsDataToolsResponseStatus = ClosedEnum<
124
+ typeof GetAllToolsDataToolsResponseStatus
125
+ >;
126
+
127
+ export const GetAllToolsDataToolsResponse200Type = {
128
+ Mcp: "mcp",
129
+ } as const;
130
+ export type GetAllToolsDataToolsResponse200Type = ClosedEnum<
131
+ typeof GetAllToolsDataToolsResponse200Type
132
+ >;
133
+
134
+ export type DataHeaders = {
135
+ value: string;
136
+ encrypted?: boolean | undefined;
137
+ };
138
+
139
+ export const GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType = {
140
+ Object: "object",
141
+ } as const;
142
+ export type GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType =
143
+ ClosedEnum<
144
+ typeof GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType
145
+ >;
146
+
147
+ /**
148
+ * The original MCP tool input schema for LLM conversion
149
+ */
150
+ export type DataInputSchema = {
151
+ type: GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType;
152
+ properties?: { [k: string]: any } | undefined;
153
+ required?: Array<string> | undefined;
154
+ };
155
+
156
+ /**
157
+ * The connection type used by the MCP server
158
+ */
159
+ export const DataConnectionType = {
160
+ Http: "http",
161
+ Sse: "sse",
162
+ } as const;
163
+ /**
164
+ * The connection type used by the MCP server
165
+ */
166
+ export type DataConnectionType = ClosedEnum<typeof DataConnectionType>;
167
+
168
+ export type DataMcp = {
169
+ /**
170
+ * The ID of the MCP server this tool belongs to
171
+ */
172
+ serverId: string;
173
+ /**
174
+ * The original tool name from the MCP server
175
+ */
176
+ toolName: string;
177
+ /**
178
+ * The MCP server URL (cached for execution)
179
+ */
180
+ serverUrl: string;
181
+ /**
182
+ * HTTP headers for MCP server requests (encrypted format)
183
+ */
184
+ headers?: { [k: string]: DataHeaders } | undefined;
185
+ /**
186
+ * The original MCP tool input schema for LLM conversion
187
+ */
188
+ inputSchema: DataInputSchema;
189
+ /**
190
+ * The connection type used by the MCP server
191
+ */
192
+ connectionType: DataConnectionType;
193
+ };
194
+
195
+ export type Data4 = {
196
+ id?: string | undefined;
197
+ /**
198
+ * The path where the entity is stored in the project structure. The first element of the path always represents the project name. Any subsequent path element after the project will be created as a folder in the project if it does not exists.
199
+ */
200
+ path: string;
201
+ /**
202
+ * Unique key of the tool as it will be displayed in the UI
203
+ */
204
+ key: string;
205
+ /**
206
+ * The name of the tool as it will be displayed in the UI. This is optional and if not provided, the `key` will be used.
207
+ */
208
+ displayName: string;
209
+ /**
210
+ * A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
211
+ */
212
+ description: string;
213
+ /**
214
+ * The id of the user that created the tool
215
+ */
216
+ createdById?: string | undefined;
217
+ /**
218
+ * The id of the user that last updated the tool
219
+ */
220
+ updatedById?: string | undefined;
221
+ projectId: string;
222
+ workspaceId: string;
223
+ created: string;
224
+ updated: string;
225
+ /**
226
+ * 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.
227
+ */
228
+ status?: GetAllToolsDataToolsResponseStatus | undefined;
229
+ versionHash?: string | undefined;
230
+ type: GetAllToolsDataToolsResponse200Type;
231
+ mcp: DataMcp;
232
+ };
233
+
234
+ /**
235
+ * 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.
236
+ */
237
+ export const GetAllToolsDataToolsStatus = {
238
+ Live: "live",
239
+ Draft: "draft",
240
+ Pending: "pending",
241
+ Published: "published",
242
+ } as const;
243
+ /**
244
+ * 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.
245
+ */
246
+ export type GetAllToolsDataToolsStatus = ClosedEnum<
247
+ typeof GetAllToolsDataToolsStatus
248
+ >;
249
+
250
+ export const GetAllToolsDataToolsResponseType = {
251
+ Http: "http",
252
+ } as const;
253
+ export type GetAllToolsDataToolsResponseType = ClosedEnum<
254
+ typeof GetAllToolsDataToolsResponseType
255
+ >;
256
+
257
+ /**
258
+ * The HTTP method to use.
259
+ */
260
+ export const GetAllToolsDataMethod = {
261
+ Get: "GET",
262
+ Post: "POST",
263
+ Put: "PUT",
264
+ Delete: "DELETE",
265
+ } as const;
266
+ /**
267
+ * The HTTP method to use.
268
+ */
269
+ export type GetAllToolsDataMethod = ClosedEnum<typeof GetAllToolsDataMethod>;
270
+
271
+ /**
272
+ * The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
273
+ */
274
+ export type DataBlueprint = {
275
+ /**
276
+ * The URL to send the request to.
277
+ */
278
+ url: string;
279
+ /**
280
+ * The HTTP method to use.
281
+ */
282
+ method: GetAllToolsDataMethod;
283
+ /**
284
+ * The headers to send with the request.
285
+ */
286
+ headers?: { [k: string]: string } | undefined;
287
+ /**
288
+ * The body to send with the request.
289
+ */
290
+ body?: { [k: string]: any } | undefined;
291
+ };
292
+
293
+ /**
294
+ * The type of the argument.
295
+ */
296
+ export const GetAllToolsDataToolsResponse200ApplicationJSONResponseBody3Type = {
297
+ String: "string",
298
+ Number: "number",
299
+ Boolean: "boolean",
300
+ } as const;
301
+ /**
302
+ * The type of the argument.
303
+ */
304
+ export type GetAllToolsDataToolsResponse200ApplicationJSONResponseBody3Type =
305
+ ClosedEnum<
306
+ typeof GetAllToolsDataToolsResponse200ApplicationJSONResponseBody3Type
307
+ >;
308
+
309
+ /**
310
+ * The default value of the argument.
311
+ */
312
+ export type DataDefaultValue = string | number | boolean;
313
+
314
+ export type DataArguments = {
315
+ /**
316
+ * The type of the argument.
317
+ */
318
+ type: GetAllToolsDataToolsResponse200ApplicationJSONResponseBody3Type;
319
+ /**
320
+ * A description of the argument.
321
+ */
322
+ description: string;
323
+ /**
324
+ * Whether to send the argument to the model. If set to false, the argument will not be sent to the model and needs to be provided by the user or it will be left blank.
325
+ */
326
+ sendToModel?: boolean | undefined;
327
+ /**
328
+ * The default value of the argument.
329
+ */
330
+ defaultValue?: string | number | boolean | undefined;
331
+ };
332
+
333
+ export type GetAllToolsDataHttp = {
334
+ /**
335
+ * The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
336
+ */
337
+ blueprint: DataBlueprint;
338
+ /**
339
+ * The arguments to send with the request. The keys will be used to replace the placeholders in the `blueprint` field.
340
+ */
341
+ arguments?: { [k: string]: DataArguments } | undefined;
342
+ };
343
+
344
+ export type Data3 = {
345
+ id?: string | undefined;
346
+ /**
347
+ * The path where the entity is stored in the project structure. The first element of the path always represents the project name. Any subsequent path element after the project will be created as a folder in the project if it does not exists.
348
+ */
349
+ path: string;
350
+ /**
351
+ * Unique key of the tool as it will be displayed in the UI
352
+ */
353
+ key: string;
354
+ /**
355
+ * The name of the tool as it will be displayed in the UI. This is optional and if not provided, the `key` will be used.
356
+ */
357
+ displayName: string;
358
+ /**
359
+ * A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
360
+ */
361
+ description: string;
362
+ /**
363
+ * The id of the user that created the tool
364
+ */
365
+ createdById?: string | undefined;
366
+ /**
367
+ * The id of the user that last updated the tool
368
+ */
369
+ updatedById?: string | undefined;
370
+ projectId: string;
371
+ workspaceId: string;
372
+ created: string;
373
+ updated: string;
374
+ /**
375
+ * 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.
376
+ */
377
+ status?: GetAllToolsDataToolsStatus | undefined;
378
+ versionHash?: string | undefined;
379
+ type: GetAllToolsDataToolsResponseType;
380
+ http: GetAllToolsDataHttp;
381
+ };
382
+
383
+ /**
384
+ * 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.
385
+ */
386
+ export const GetAllToolsDataStatus = {
387
+ Live: "live",
388
+ Draft: "draft",
389
+ Pending: "pending",
390
+ Published: "published",
391
+ } as const;
392
+ /**
393
+ * 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.
394
+ */
395
+ export type GetAllToolsDataStatus = ClosedEnum<typeof GetAllToolsDataStatus>;
396
+
397
+ export const GetAllToolsDataToolsType = {
398
+ JsonSchema: "json_schema",
399
+ } as const;
400
+ export type GetAllToolsDataToolsType = ClosedEnum<
401
+ typeof GetAllToolsDataToolsType
402
+ >;
403
+
404
+ export type DataJsonSchema = {
405
+ /**
406
+ * The name of the response format. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
407
+ */
408
+ name: string;
409
+ /**
410
+ * A description of what the response format is for. This will be shown to the user.
411
+ */
412
+ description?: string | undefined;
413
+ /**
414
+ * 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.
415
+ */
416
+ schema: { [k: string]: any };
417
+ /**
418
+ * Whether to enable strict schema adherence when generating the output. If set to true, the model will always follow the exact schema defined in the `schema` field. Only a subset of JSON Schema is supported when `strict` is `true`. Only compatible with `OpenAI` models.
419
+ */
420
+ strict?: boolean | null | undefined;
421
+ };
422
+
423
+ export type Data2 = {
424
+ id?: string | undefined;
425
+ /**
426
+ * The path where the entity is stored in the project structure. The first element of the path always represents the project name. Any subsequent path element after the project will be created as a folder in the project if it does not exists.
427
+ */
428
+ path: string;
429
+ /**
430
+ * Unique key of the tool as it will be displayed in the UI
431
+ */
432
+ key: string;
433
+ /**
434
+ * The name of the tool as it will be displayed in the UI. This is optional and if not provided, the `key` will be used.
435
+ */
436
+ displayName: string;
437
+ /**
438
+ * A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
439
+ */
440
+ description: string;
441
+ /**
442
+ * The id of the user that created the tool
443
+ */
444
+ createdById?: string | undefined;
445
+ /**
446
+ * The id of the user that last updated the tool
447
+ */
448
+ updatedById?: string | undefined;
449
+ projectId: string;
450
+ workspaceId: string;
451
+ created: string;
452
+ updated: string;
453
+ /**
454
+ * 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.
455
+ */
456
+ status?: GetAllToolsDataStatus | undefined;
457
+ versionHash?: string | undefined;
458
+ type: GetAllToolsDataToolsType;
459
+ jsonSchema: DataJsonSchema;
460
+ };
461
+
462
+ /**
463
+ * 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.
464
+ */
465
+ export const DataStatus = {
466
+ Live: "live",
467
+ Draft: "draft",
468
+ Pending: "pending",
469
+ Published: "published",
470
+ } as const;
471
+ /**
472
+ * 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.
473
+ */
474
+ export type DataStatus = ClosedEnum<typeof DataStatus>;
475
+
476
+ export const GetAllToolsDataType = {
477
+ Function: "function",
478
+ } as const;
479
+ export type GetAllToolsDataType = ClosedEnum<typeof GetAllToolsDataType>;
480
+
481
+ export type GetAllToolsDataFunction = {
482
+ /**
483
+ * The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
484
+ */
485
+ name: string;
486
+ /**
487
+ * A description of what the function does, used by the model to choose when and how to call the function.
488
+ */
489
+ description?: string | undefined;
490
+ /**
491
+ * Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Currently only compatible with `OpenAI` models.
492
+ */
493
+ strict?: boolean | undefined;
494
+ /**
495
+ * 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.
496
+ */
497
+ parameters?: { [k: string]: any } | undefined;
498
+ };
499
+
500
+ export type Data1 = {
501
+ id?: string | undefined;
502
+ /**
503
+ * The path where the entity is stored in the project structure. The first element of the path always represents the project name. Any subsequent path element after the project will be created as a folder in the project if it does not exists.
504
+ */
505
+ path: string;
506
+ /**
507
+ * Unique key of the tool as it will be displayed in the UI
508
+ */
509
+ key: string;
510
+ /**
511
+ * The name of the tool as it will be displayed in the UI. This is optional and if not provided, the `key` will be used.
512
+ */
513
+ displayName: string;
514
+ /**
515
+ * A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
516
+ */
517
+ description: string;
518
+ /**
519
+ * The id of the user that created the tool
520
+ */
521
+ createdById?: string | undefined;
522
+ /**
523
+ * The id of the user that last updated the tool
524
+ */
525
+ updatedById?: string | undefined;
526
+ projectId: string;
527
+ workspaceId: string;
528
+ created: string;
529
+ updated: string;
530
+ /**
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.
532
+ */
533
+ status?: DataStatus | undefined;
534
+ versionHash?: string | undefined;
535
+ type: GetAllToolsDataType;
536
+ function: GetAllToolsDataFunction;
537
+ };
538
+
539
+ export type GetAllToolsData = Data1 | Data2 | Data3 | Data4 | Data5;
540
+
541
+ /**
542
+ * Successfully retrieved the list of tools.
543
+ */
544
+ export type GetAllToolsResponseBody = {
545
+ object: GetAllToolsObject;
546
+ data: Array<Data1 | Data2 | Data3 | Data4 | Data5>;
547
+ hasMore: boolean;
548
+ };
549
+
550
+ /** @internal */
551
+ export const GetAllToolsRequest$inboundSchema: z.ZodType<
552
+ GetAllToolsRequest,
553
+ z.ZodTypeDef,
554
+ unknown
555
+ > = z.object({
556
+ limit: z.number().default(300),
557
+ starting_after: z.string().optional(),
558
+ ending_before: z.string().optional(),
559
+ }).transform((v) => {
560
+ return remap$(v, {
561
+ "starting_after": "startingAfter",
562
+ "ending_before": "endingBefore",
563
+ });
564
+ });
565
+
566
+ /** @internal */
567
+ export type GetAllToolsRequest$Outbound = {
568
+ limit: number;
569
+ starting_after?: string | undefined;
570
+ ending_before?: string | undefined;
571
+ };
572
+
573
+ /** @internal */
574
+ export const GetAllToolsRequest$outboundSchema: z.ZodType<
575
+ GetAllToolsRequest$Outbound,
576
+ z.ZodTypeDef,
577
+ GetAllToolsRequest
578
+ > = z.object({
579
+ limit: z.number().default(300),
580
+ startingAfter: z.string().optional(),
581
+ endingBefore: z.string().optional(),
582
+ }).transform((v) => {
583
+ return remap$(v, {
584
+ startingAfter: "starting_after",
585
+ endingBefore: "ending_before",
586
+ });
587
+ });
588
+
589
+ /**
590
+ * @internal
591
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
592
+ */
593
+ export namespace GetAllToolsRequest$ {
594
+ /** @deprecated use `GetAllToolsRequest$inboundSchema` instead. */
595
+ export const inboundSchema = GetAllToolsRequest$inboundSchema;
596
+ /** @deprecated use `GetAllToolsRequest$outboundSchema` instead. */
597
+ export const outboundSchema = GetAllToolsRequest$outboundSchema;
598
+ /** @deprecated use `GetAllToolsRequest$Outbound` instead. */
599
+ export type Outbound = GetAllToolsRequest$Outbound;
600
+ }
601
+
602
+ export function getAllToolsRequestToJSON(
603
+ getAllToolsRequest: GetAllToolsRequest,
604
+ ): string {
605
+ return JSON.stringify(
606
+ GetAllToolsRequest$outboundSchema.parse(getAllToolsRequest),
607
+ );
608
+ }
609
+
610
+ export function getAllToolsRequestFromJSON(
611
+ jsonString: string,
612
+ ): SafeParseResult<GetAllToolsRequest, SDKValidationError> {
613
+ return safeParse(
614
+ jsonString,
615
+ (x) => GetAllToolsRequest$inboundSchema.parse(JSON.parse(x)),
616
+ `Failed to parse 'GetAllToolsRequest' from JSON`,
617
+ );
618
+ }
619
+
620
+ /** @internal */
621
+ export const GetAllToolsObject$inboundSchema: z.ZodNativeEnum<
622
+ typeof GetAllToolsObject
623
+ > = z.nativeEnum(GetAllToolsObject);
624
+
625
+ /** @internal */
626
+ export const GetAllToolsObject$outboundSchema: z.ZodNativeEnum<
627
+ typeof GetAllToolsObject
628
+ > = GetAllToolsObject$inboundSchema;
629
+
630
+ /**
631
+ * @internal
632
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
633
+ */
634
+ export namespace GetAllToolsObject$ {
635
+ /** @deprecated use `GetAllToolsObject$inboundSchema` instead. */
636
+ export const inboundSchema = GetAllToolsObject$inboundSchema;
637
+ /** @deprecated use `GetAllToolsObject$outboundSchema` instead. */
638
+ export const outboundSchema = GetAllToolsObject$outboundSchema;
639
+ }
640
+
641
+ /** @internal */
642
+ export const GetAllToolsDataToolsResponse200Status$inboundSchema:
643
+ z.ZodNativeEnum<typeof GetAllToolsDataToolsResponse200Status> = z.nativeEnum(
644
+ GetAllToolsDataToolsResponse200Status,
645
+ );
646
+
647
+ /** @internal */
648
+ export const GetAllToolsDataToolsResponse200Status$outboundSchema:
649
+ z.ZodNativeEnum<typeof GetAllToolsDataToolsResponse200Status> =
650
+ GetAllToolsDataToolsResponse200Status$inboundSchema;
651
+
652
+ /**
653
+ * @internal
654
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
655
+ */
656
+ export namespace GetAllToolsDataToolsResponse200Status$ {
657
+ /** @deprecated use `GetAllToolsDataToolsResponse200Status$inboundSchema` instead. */
658
+ export const inboundSchema =
659
+ GetAllToolsDataToolsResponse200Status$inboundSchema;
660
+ /** @deprecated use `GetAllToolsDataToolsResponse200Status$outboundSchema` instead. */
661
+ export const outboundSchema =
662
+ GetAllToolsDataToolsResponse200Status$outboundSchema;
663
+ }
664
+
665
+ /** @internal */
666
+ export const GetAllToolsDataToolsResponse200ApplicationJSONType$inboundSchema:
667
+ z.ZodNativeEnum<typeof GetAllToolsDataToolsResponse200ApplicationJSONType> = z
668
+ .nativeEnum(GetAllToolsDataToolsResponse200ApplicationJSONType);
669
+
670
+ /** @internal */
671
+ export const GetAllToolsDataToolsResponse200ApplicationJSONType$outboundSchema:
672
+ z.ZodNativeEnum<typeof GetAllToolsDataToolsResponse200ApplicationJSONType> =
673
+ GetAllToolsDataToolsResponse200ApplicationJSONType$inboundSchema;
674
+
675
+ /**
676
+ * @internal
677
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
678
+ */
679
+ export namespace GetAllToolsDataToolsResponse200ApplicationJSONType$ {
680
+ /** @deprecated use `GetAllToolsDataToolsResponse200ApplicationJSONType$inboundSchema` instead. */
681
+ export const inboundSchema =
682
+ GetAllToolsDataToolsResponse200ApplicationJSONType$inboundSchema;
683
+ /** @deprecated use `GetAllToolsDataToolsResponse200ApplicationJSONType$outboundSchema` instead. */
684
+ export const outboundSchema =
685
+ GetAllToolsDataToolsResponse200ApplicationJSONType$outboundSchema;
686
+ }
687
+
688
+ /** @internal */
689
+ export const DataLanguage$inboundSchema: z.ZodNativeEnum<typeof DataLanguage> =
690
+ z.nativeEnum(DataLanguage);
691
+
692
+ /** @internal */
693
+ export const DataLanguage$outboundSchema: z.ZodNativeEnum<typeof DataLanguage> =
694
+ DataLanguage$inboundSchema;
695
+
696
+ /**
697
+ * @internal
698
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
699
+ */
700
+ export namespace DataLanguage$ {
701
+ /** @deprecated use `DataLanguage$inboundSchema` instead. */
702
+ export const inboundSchema = DataLanguage$inboundSchema;
703
+ /** @deprecated use `DataLanguage$outboundSchema` instead. */
704
+ export const outboundSchema = DataLanguage$outboundSchema;
705
+ }
706
+
707
+ /** @internal */
708
+ export const DataCodeTool$inboundSchema: z.ZodType<
709
+ DataCodeTool,
710
+ z.ZodTypeDef,
711
+ unknown
712
+ > = z.object({
713
+ parameters: z.record(z.any()).optional(),
714
+ language: DataLanguage$inboundSchema,
715
+ code: z.string(),
716
+ });
717
+
718
+ /** @internal */
719
+ export type DataCodeTool$Outbound = {
720
+ parameters?: { [k: string]: any } | undefined;
721
+ language: string;
722
+ code: string;
723
+ };
724
+
725
+ /** @internal */
726
+ export const DataCodeTool$outboundSchema: z.ZodType<
727
+ DataCodeTool$Outbound,
728
+ z.ZodTypeDef,
729
+ DataCodeTool
730
+ > = z.object({
731
+ parameters: z.record(z.any()).optional(),
732
+ language: DataLanguage$outboundSchema,
733
+ code: z.string(),
734
+ });
735
+
736
+ /**
737
+ * @internal
738
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
739
+ */
740
+ export namespace DataCodeTool$ {
741
+ /** @deprecated use `DataCodeTool$inboundSchema` instead. */
742
+ export const inboundSchema = DataCodeTool$inboundSchema;
743
+ /** @deprecated use `DataCodeTool$outboundSchema` instead. */
744
+ export const outboundSchema = DataCodeTool$outboundSchema;
745
+ /** @deprecated use `DataCodeTool$Outbound` instead. */
746
+ export type Outbound = DataCodeTool$Outbound;
747
+ }
748
+
749
+ export function dataCodeToolToJSON(dataCodeTool: DataCodeTool): string {
750
+ return JSON.stringify(DataCodeTool$outboundSchema.parse(dataCodeTool));
751
+ }
752
+
753
+ export function dataCodeToolFromJSON(
754
+ jsonString: string,
755
+ ): SafeParseResult<DataCodeTool, SDKValidationError> {
756
+ return safeParse(
757
+ jsonString,
758
+ (x) => DataCodeTool$inboundSchema.parse(JSON.parse(x)),
759
+ `Failed to parse 'DataCodeTool' from JSON`,
760
+ );
761
+ }
762
+
763
+ /** @internal */
764
+ export const Data5$inboundSchema: z.ZodType<Data5, z.ZodTypeDef, unknown> = z
765
+ .object({
766
+ _id: z.string().default("01K60CGQ9JKN0EVPJZ8DA1XVR9"),
767
+ path: z.string(),
768
+ key: z.string(),
769
+ display_name: z.string(),
770
+ description: z.string(),
771
+ created_by_id: z.string().optional(),
772
+ updated_by_id: z.string().optional(),
773
+ project_id: z.string(),
774
+ workspace_id: z.string(),
775
+ created: z.string(),
776
+ updated: z.string(),
777
+ status: GetAllToolsDataToolsResponse200Status$inboundSchema.default("live"),
778
+ version_hash: z.string().optional(),
779
+ type: GetAllToolsDataToolsResponse200ApplicationJSONType$inboundSchema,
780
+ code_tool: z.lazy(() => DataCodeTool$inboundSchema),
781
+ }).transform((v) => {
782
+ return remap$(v, {
783
+ "_id": "id",
784
+ "display_name": "displayName",
785
+ "created_by_id": "createdById",
786
+ "updated_by_id": "updatedById",
787
+ "project_id": "projectId",
788
+ "workspace_id": "workspaceId",
789
+ "version_hash": "versionHash",
790
+ "code_tool": "codeTool",
791
+ });
792
+ });
793
+
794
+ /** @internal */
795
+ export type Data5$Outbound = {
796
+ _id: string;
797
+ path: string;
798
+ key: string;
799
+ display_name: string;
800
+ description: string;
801
+ created_by_id?: string | undefined;
802
+ updated_by_id?: string | undefined;
803
+ project_id: string;
804
+ workspace_id: string;
805
+ created: string;
806
+ updated: string;
807
+ status: string;
808
+ version_hash?: string | undefined;
809
+ type: string;
810
+ code_tool: DataCodeTool$Outbound;
811
+ };
812
+
813
+ /** @internal */
814
+ export const Data5$outboundSchema: z.ZodType<
815
+ Data5$Outbound,
816
+ z.ZodTypeDef,
817
+ Data5
818
+ > = z.object({
819
+ id: z.string().default("01K60CGQ9JKN0EVPJZ8DA1XVR9"),
820
+ path: z.string(),
821
+ key: z.string(),
822
+ displayName: z.string(),
823
+ description: z.string(),
824
+ createdById: z.string().optional(),
825
+ updatedById: z.string().optional(),
826
+ projectId: z.string(),
827
+ workspaceId: z.string(),
828
+ created: z.string(),
829
+ updated: z.string(),
830
+ status: GetAllToolsDataToolsResponse200Status$outboundSchema.default("live"),
831
+ versionHash: z.string().optional(),
832
+ type: GetAllToolsDataToolsResponse200ApplicationJSONType$outboundSchema,
833
+ codeTool: z.lazy(() => DataCodeTool$outboundSchema),
834
+ }).transform((v) => {
835
+ return remap$(v, {
836
+ id: "_id",
837
+ displayName: "display_name",
838
+ createdById: "created_by_id",
839
+ updatedById: "updated_by_id",
840
+ projectId: "project_id",
841
+ workspaceId: "workspace_id",
842
+ versionHash: "version_hash",
843
+ codeTool: "code_tool",
844
+ });
845
+ });
846
+
847
+ /**
848
+ * @internal
849
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
850
+ */
851
+ export namespace Data5$ {
852
+ /** @deprecated use `Data5$inboundSchema` instead. */
853
+ export const inboundSchema = Data5$inboundSchema;
854
+ /** @deprecated use `Data5$outboundSchema` instead. */
855
+ export const outboundSchema = Data5$outboundSchema;
856
+ /** @deprecated use `Data5$Outbound` instead. */
857
+ export type Outbound = Data5$Outbound;
858
+ }
859
+
860
+ export function data5ToJSON(data5: Data5): string {
861
+ return JSON.stringify(Data5$outboundSchema.parse(data5));
862
+ }
863
+
864
+ export function data5FromJSON(
865
+ jsonString: string,
866
+ ): SafeParseResult<Data5, SDKValidationError> {
867
+ return safeParse(
868
+ jsonString,
869
+ (x) => Data5$inboundSchema.parse(JSON.parse(x)),
870
+ `Failed to parse 'Data5' from JSON`,
871
+ );
872
+ }
873
+
874
+ /** @internal */
875
+ export const GetAllToolsDataToolsResponseStatus$inboundSchema: z.ZodNativeEnum<
876
+ typeof GetAllToolsDataToolsResponseStatus
877
+ > = z.nativeEnum(GetAllToolsDataToolsResponseStatus);
878
+
879
+ /** @internal */
880
+ export const GetAllToolsDataToolsResponseStatus$outboundSchema: z.ZodNativeEnum<
881
+ typeof GetAllToolsDataToolsResponseStatus
882
+ > = GetAllToolsDataToolsResponseStatus$inboundSchema;
883
+
884
+ /**
885
+ * @internal
886
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
887
+ */
888
+ export namespace GetAllToolsDataToolsResponseStatus$ {
889
+ /** @deprecated use `GetAllToolsDataToolsResponseStatus$inboundSchema` instead. */
890
+ export const inboundSchema = GetAllToolsDataToolsResponseStatus$inboundSchema;
891
+ /** @deprecated use `GetAllToolsDataToolsResponseStatus$outboundSchema` instead. */
892
+ export const outboundSchema =
893
+ GetAllToolsDataToolsResponseStatus$outboundSchema;
894
+ }
895
+
896
+ /** @internal */
897
+ export const GetAllToolsDataToolsResponse200Type$inboundSchema: z.ZodNativeEnum<
898
+ typeof GetAllToolsDataToolsResponse200Type
899
+ > = z.nativeEnum(GetAllToolsDataToolsResponse200Type);
900
+
901
+ /** @internal */
902
+ export const GetAllToolsDataToolsResponse200Type$outboundSchema:
903
+ z.ZodNativeEnum<typeof GetAllToolsDataToolsResponse200Type> =
904
+ GetAllToolsDataToolsResponse200Type$inboundSchema;
905
+
906
+ /**
907
+ * @internal
908
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
909
+ */
910
+ export namespace GetAllToolsDataToolsResponse200Type$ {
911
+ /** @deprecated use `GetAllToolsDataToolsResponse200Type$inboundSchema` instead. */
912
+ export const inboundSchema =
913
+ GetAllToolsDataToolsResponse200Type$inboundSchema;
914
+ /** @deprecated use `GetAllToolsDataToolsResponse200Type$outboundSchema` instead. */
915
+ export const outboundSchema =
916
+ GetAllToolsDataToolsResponse200Type$outboundSchema;
917
+ }
918
+
919
+ /** @internal */
920
+ export const DataHeaders$inboundSchema: z.ZodType<
921
+ DataHeaders,
922
+ z.ZodTypeDef,
923
+ unknown
924
+ > = z.object({
925
+ value: z.string(),
926
+ encrypted: z.boolean().default(false),
927
+ });
928
+
929
+ /** @internal */
930
+ export type DataHeaders$Outbound = {
931
+ value: string;
932
+ encrypted: boolean;
933
+ };
934
+
935
+ /** @internal */
936
+ export const DataHeaders$outboundSchema: z.ZodType<
937
+ DataHeaders$Outbound,
938
+ z.ZodTypeDef,
939
+ DataHeaders
940
+ > = z.object({
941
+ value: z.string(),
942
+ encrypted: z.boolean().default(false),
943
+ });
944
+
945
+ /**
946
+ * @internal
947
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
948
+ */
949
+ export namespace DataHeaders$ {
950
+ /** @deprecated use `DataHeaders$inboundSchema` instead. */
951
+ export const inboundSchema = DataHeaders$inboundSchema;
952
+ /** @deprecated use `DataHeaders$outboundSchema` instead. */
953
+ export const outboundSchema = DataHeaders$outboundSchema;
954
+ /** @deprecated use `DataHeaders$Outbound` instead. */
955
+ export type Outbound = DataHeaders$Outbound;
956
+ }
957
+
958
+ export function dataHeadersToJSON(dataHeaders: DataHeaders): string {
959
+ return JSON.stringify(DataHeaders$outboundSchema.parse(dataHeaders));
960
+ }
961
+
962
+ export function dataHeadersFromJSON(
963
+ jsonString: string,
964
+ ): SafeParseResult<DataHeaders, SDKValidationError> {
965
+ return safeParse(
966
+ jsonString,
967
+ (x) => DataHeaders$inboundSchema.parse(JSON.parse(x)),
968
+ `Failed to parse 'DataHeaders' from JSON`,
969
+ );
970
+ }
971
+
972
+ /** @internal */
973
+ export const GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType$inboundSchema:
974
+ z.ZodNativeEnum<
975
+ typeof GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType
976
+ > = z.nativeEnum(
977
+ GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType,
978
+ );
979
+
980
+ /** @internal */
981
+ export const GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType$outboundSchema:
982
+ z.ZodNativeEnum<
983
+ typeof GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType
984
+ > =
985
+ GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType$inboundSchema;
986
+
987
+ /**
988
+ * @internal
989
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
990
+ */
991
+ export namespace GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType$ {
992
+ /** @deprecated use `GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType$inboundSchema` instead. */
993
+ export const inboundSchema =
994
+ GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType$inboundSchema;
995
+ /** @deprecated use `GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType$outboundSchema` instead. */
996
+ export const outboundSchema =
997
+ GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType$outboundSchema;
998
+ }
999
+
1000
+ /** @internal */
1001
+ export const DataInputSchema$inboundSchema: z.ZodType<
1002
+ DataInputSchema,
1003
+ z.ZodTypeDef,
1004
+ unknown
1005
+ > = z.object({
1006
+ type:
1007
+ GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType$inboundSchema,
1008
+ properties: z.record(z.any()).optional(),
1009
+ required: z.array(z.string()).optional(),
1010
+ });
1011
+
1012
+ /** @internal */
1013
+ export type DataInputSchema$Outbound = {
1014
+ type: string;
1015
+ properties?: { [k: string]: any } | undefined;
1016
+ required?: Array<string> | undefined;
1017
+ };
1018
+
1019
+ /** @internal */
1020
+ export const DataInputSchema$outboundSchema: z.ZodType<
1021
+ DataInputSchema$Outbound,
1022
+ z.ZodTypeDef,
1023
+ DataInputSchema
1024
+ > = z.object({
1025
+ type:
1026
+ GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType$outboundSchema,
1027
+ properties: z.record(z.any()).optional(),
1028
+ required: z.array(z.string()).optional(),
1029
+ });
1030
+
1031
+ /**
1032
+ * @internal
1033
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1034
+ */
1035
+ export namespace DataInputSchema$ {
1036
+ /** @deprecated use `DataInputSchema$inboundSchema` instead. */
1037
+ export const inboundSchema = DataInputSchema$inboundSchema;
1038
+ /** @deprecated use `DataInputSchema$outboundSchema` instead. */
1039
+ export const outboundSchema = DataInputSchema$outboundSchema;
1040
+ /** @deprecated use `DataInputSchema$Outbound` instead. */
1041
+ export type Outbound = DataInputSchema$Outbound;
1042
+ }
1043
+
1044
+ export function dataInputSchemaToJSON(
1045
+ dataInputSchema: DataInputSchema,
1046
+ ): string {
1047
+ return JSON.stringify(DataInputSchema$outboundSchema.parse(dataInputSchema));
1048
+ }
1049
+
1050
+ export function dataInputSchemaFromJSON(
1051
+ jsonString: string,
1052
+ ): SafeParseResult<DataInputSchema, SDKValidationError> {
1053
+ return safeParse(
1054
+ jsonString,
1055
+ (x) => DataInputSchema$inboundSchema.parse(JSON.parse(x)),
1056
+ `Failed to parse 'DataInputSchema' from JSON`,
1057
+ );
1058
+ }
1059
+
1060
+ /** @internal */
1061
+ export const DataConnectionType$inboundSchema: z.ZodNativeEnum<
1062
+ typeof DataConnectionType
1063
+ > = z.nativeEnum(DataConnectionType);
1064
+
1065
+ /** @internal */
1066
+ export const DataConnectionType$outboundSchema: z.ZodNativeEnum<
1067
+ typeof DataConnectionType
1068
+ > = DataConnectionType$inboundSchema;
1069
+
1070
+ /**
1071
+ * @internal
1072
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1073
+ */
1074
+ export namespace DataConnectionType$ {
1075
+ /** @deprecated use `DataConnectionType$inboundSchema` instead. */
1076
+ export const inboundSchema = DataConnectionType$inboundSchema;
1077
+ /** @deprecated use `DataConnectionType$outboundSchema` instead. */
1078
+ export const outboundSchema = DataConnectionType$outboundSchema;
1079
+ }
1080
+
1081
+ /** @internal */
1082
+ export const DataMcp$inboundSchema: z.ZodType<DataMcp, z.ZodTypeDef, unknown> =
1083
+ z.object({
1084
+ server_id: z.string(),
1085
+ tool_name: z.string(),
1086
+ server_url: z.string(),
1087
+ headers: z.record(z.lazy(() => DataHeaders$inboundSchema)).optional(),
1088
+ input_schema: z.lazy(() => DataInputSchema$inboundSchema),
1089
+ connection_type: DataConnectionType$inboundSchema,
1090
+ }).transform((v) => {
1091
+ return remap$(v, {
1092
+ "server_id": "serverId",
1093
+ "tool_name": "toolName",
1094
+ "server_url": "serverUrl",
1095
+ "input_schema": "inputSchema",
1096
+ "connection_type": "connectionType",
1097
+ });
1098
+ });
1099
+
1100
+ /** @internal */
1101
+ export type DataMcp$Outbound = {
1102
+ server_id: string;
1103
+ tool_name: string;
1104
+ server_url: string;
1105
+ headers?: { [k: string]: DataHeaders$Outbound } | undefined;
1106
+ input_schema: DataInputSchema$Outbound;
1107
+ connection_type: string;
1108
+ };
1109
+
1110
+ /** @internal */
1111
+ export const DataMcp$outboundSchema: z.ZodType<
1112
+ DataMcp$Outbound,
1113
+ z.ZodTypeDef,
1114
+ DataMcp
1115
+ > = z.object({
1116
+ serverId: z.string(),
1117
+ toolName: z.string(),
1118
+ serverUrl: z.string(),
1119
+ headers: z.record(z.lazy(() => DataHeaders$outboundSchema)).optional(),
1120
+ inputSchema: z.lazy(() => DataInputSchema$outboundSchema),
1121
+ connectionType: DataConnectionType$outboundSchema,
1122
+ }).transform((v) => {
1123
+ return remap$(v, {
1124
+ serverId: "server_id",
1125
+ toolName: "tool_name",
1126
+ serverUrl: "server_url",
1127
+ inputSchema: "input_schema",
1128
+ connectionType: "connection_type",
1129
+ });
1130
+ });
1131
+
1132
+ /**
1133
+ * @internal
1134
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1135
+ */
1136
+ export namespace DataMcp$ {
1137
+ /** @deprecated use `DataMcp$inboundSchema` instead. */
1138
+ export const inboundSchema = DataMcp$inboundSchema;
1139
+ /** @deprecated use `DataMcp$outboundSchema` instead. */
1140
+ export const outboundSchema = DataMcp$outboundSchema;
1141
+ /** @deprecated use `DataMcp$Outbound` instead. */
1142
+ export type Outbound = DataMcp$Outbound;
1143
+ }
1144
+
1145
+ export function dataMcpToJSON(dataMcp: DataMcp): string {
1146
+ return JSON.stringify(DataMcp$outboundSchema.parse(dataMcp));
1147
+ }
1148
+
1149
+ export function dataMcpFromJSON(
1150
+ jsonString: string,
1151
+ ): SafeParseResult<DataMcp, SDKValidationError> {
1152
+ return safeParse(
1153
+ jsonString,
1154
+ (x) => DataMcp$inboundSchema.parse(JSON.parse(x)),
1155
+ `Failed to parse 'DataMcp' from JSON`,
1156
+ );
1157
+ }
1158
+
1159
+ /** @internal */
1160
+ export const Data4$inboundSchema: z.ZodType<Data4, z.ZodTypeDef, unknown> = z
1161
+ .object({
1162
+ _id: z.string().default("01K60CGQ9HDTYR0DSP0SF3E0KN"),
1163
+ path: z.string(),
1164
+ key: z.string(),
1165
+ display_name: z.string(),
1166
+ description: z.string(),
1167
+ created_by_id: z.string().optional(),
1168
+ updated_by_id: z.string().optional(),
1169
+ project_id: z.string(),
1170
+ workspace_id: z.string(),
1171
+ created: z.string(),
1172
+ updated: z.string(),
1173
+ status: GetAllToolsDataToolsResponseStatus$inboundSchema.default("live"),
1174
+ version_hash: z.string().optional(),
1175
+ type: GetAllToolsDataToolsResponse200Type$inboundSchema,
1176
+ mcp: z.lazy(() => DataMcp$inboundSchema),
1177
+ }).transform((v) => {
1178
+ return remap$(v, {
1179
+ "_id": "id",
1180
+ "display_name": "displayName",
1181
+ "created_by_id": "createdById",
1182
+ "updated_by_id": "updatedById",
1183
+ "project_id": "projectId",
1184
+ "workspace_id": "workspaceId",
1185
+ "version_hash": "versionHash",
1186
+ });
1187
+ });
1188
+
1189
+ /** @internal */
1190
+ export type Data4$Outbound = {
1191
+ _id: string;
1192
+ path: string;
1193
+ key: string;
1194
+ display_name: string;
1195
+ description: string;
1196
+ created_by_id?: string | undefined;
1197
+ updated_by_id?: string | undefined;
1198
+ project_id: string;
1199
+ workspace_id: string;
1200
+ created: string;
1201
+ updated: string;
1202
+ status: string;
1203
+ version_hash?: string | undefined;
1204
+ type: string;
1205
+ mcp: DataMcp$Outbound;
1206
+ };
1207
+
1208
+ /** @internal */
1209
+ export const Data4$outboundSchema: z.ZodType<
1210
+ Data4$Outbound,
1211
+ z.ZodTypeDef,
1212
+ Data4
1213
+ > = z.object({
1214
+ id: z.string().default("01K60CGQ9HDTYR0DSP0SF3E0KN"),
1215
+ path: z.string(),
1216
+ key: z.string(),
1217
+ displayName: z.string(),
1218
+ description: z.string(),
1219
+ createdById: z.string().optional(),
1220
+ updatedById: z.string().optional(),
1221
+ projectId: z.string(),
1222
+ workspaceId: z.string(),
1223
+ created: z.string(),
1224
+ updated: z.string(),
1225
+ status: GetAllToolsDataToolsResponseStatus$outboundSchema.default("live"),
1226
+ versionHash: z.string().optional(),
1227
+ type: GetAllToolsDataToolsResponse200Type$outboundSchema,
1228
+ mcp: z.lazy(() => DataMcp$outboundSchema),
1229
+ }).transform((v) => {
1230
+ return remap$(v, {
1231
+ id: "_id",
1232
+ displayName: "display_name",
1233
+ createdById: "created_by_id",
1234
+ updatedById: "updated_by_id",
1235
+ projectId: "project_id",
1236
+ workspaceId: "workspace_id",
1237
+ versionHash: "version_hash",
1238
+ });
1239
+ });
1240
+
1241
+ /**
1242
+ * @internal
1243
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1244
+ */
1245
+ export namespace Data4$ {
1246
+ /** @deprecated use `Data4$inboundSchema` instead. */
1247
+ export const inboundSchema = Data4$inboundSchema;
1248
+ /** @deprecated use `Data4$outboundSchema` instead. */
1249
+ export const outboundSchema = Data4$outboundSchema;
1250
+ /** @deprecated use `Data4$Outbound` instead. */
1251
+ export type Outbound = Data4$Outbound;
1252
+ }
1253
+
1254
+ export function data4ToJSON(data4: Data4): string {
1255
+ return JSON.stringify(Data4$outboundSchema.parse(data4));
1256
+ }
1257
+
1258
+ export function data4FromJSON(
1259
+ jsonString: string,
1260
+ ): SafeParseResult<Data4, SDKValidationError> {
1261
+ return safeParse(
1262
+ jsonString,
1263
+ (x) => Data4$inboundSchema.parse(JSON.parse(x)),
1264
+ `Failed to parse 'Data4' from JSON`,
1265
+ );
1266
+ }
1267
+
1268
+ /** @internal */
1269
+ export const GetAllToolsDataToolsStatus$inboundSchema: z.ZodNativeEnum<
1270
+ typeof GetAllToolsDataToolsStatus
1271
+ > = z.nativeEnum(GetAllToolsDataToolsStatus);
1272
+
1273
+ /** @internal */
1274
+ export const GetAllToolsDataToolsStatus$outboundSchema: z.ZodNativeEnum<
1275
+ typeof GetAllToolsDataToolsStatus
1276
+ > = GetAllToolsDataToolsStatus$inboundSchema;
1277
+
1278
+ /**
1279
+ * @internal
1280
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1281
+ */
1282
+ export namespace GetAllToolsDataToolsStatus$ {
1283
+ /** @deprecated use `GetAllToolsDataToolsStatus$inboundSchema` instead. */
1284
+ export const inboundSchema = GetAllToolsDataToolsStatus$inboundSchema;
1285
+ /** @deprecated use `GetAllToolsDataToolsStatus$outboundSchema` instead. */
1286
+ export const outboundSchema = GetAllToolsDataToolsStatus$outboundSchema;
1287
+ }
1288
+
1289
+ /** @internal */
1290
+ export const GetAllToolsDataToolsResponseType$inboundSchema: z.ZodNativeEnum<
1291
+ typeof GetAllToolsDataToolsResponseType
1292
+ > = z.nativeEnum(GetAllToolsDataToolsResponseType);
1293
+
1294
+ /** @internal */
1295
+ export const GetAllToolsDataToolsResponseType$outboundSchema: z.ZodNativeEnum<
1296
+ typeof GetAllToolsDataToolsResponseType
1297
+ > = GetAllToolsDataToolsResponseType$inboundSchema;
1298
+
1299
+ /**
1300
+ * @internal
1301
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1302
+ */
1303
+ export namespace GetAllToolsDataToolsResponseType$ {
1304
+ /** @deprecated use `GetAllToolsDataToolsResponseType$inboundSchema` instead. */
1305
+ export const inboundSchema = GetAllToolsDataToolsResponseType$inboundSchema;
1306
+ /** @deprecated use `GetAllToolsDataToolsResponseType$outboundSchema` instead. */
1307
+ export const outboundSchema = GetAllToolsDataToolsResponseType$outboundSchema;
1308
+ }
1309
+
1310
+ /** @internal */
1311
+ export const GetAllToolsDataMethod$inboundSchema: z.ZodNativeEnum<
1312
+ typeof GetAllToolsDataMethod
1313
+ > = z.nativeEnum(GetAllToolsDataMethod);
1314
+
1315
+ /** @internal */
1316
+ export const GetAllToolsDataMethod$outboundSchema: z.ZodNativeEnum<
1317
+ typeof GetAllToolsDataMethod
1318
+ > = GetAllToolsDataMethod$inboundSchema;
1319
+
1320
+ /**
1321
+ * @internal
1322
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1323
+ */
1324
+ export namespace GetAllToolsDataMethod$ {
1325
+ /** @deprecated use `GetAllToolsDataMethod$inboundSchema` instead. */
1326
+ export const inboundSchema = GetAllToolsDataMethod$inboundSchema;
1327
+ /** @deprecated use `GetAllToolsDataMethod$outboundSchema` instead. */
1328
+ export const outboundSchema = GetAllToolsDataMethod$outboundSchema;
1329
+ }
1330
+
1331
+ /** @internal */
1332
+ export const DataBlueprint$inboundSchema: z.ZodType<
1333
+ DataBlueprint,
1334
+ z.ZodTypeDef,
1335
+ unknown
1336
+ > = z.object({
1337
+ url: z.string(),
1338
+ method: GetAllToolsDataMethod$inboundSchema,
1339
+ headers: z.record(z.string()).optional(),
1340
+ body: z.record(z.any()).optional(),
1341
+ });
1342
+
1343
+ /** @internal */
1344
+ export type DataBlueprint$Outbound = {
1345
+ url: string;
1346
+ method: string;
1347
+ headers?: { [k: string]: string } | undefined;
1348
+ body?: { [k: string]: any } | undefined;
1349
+ };
1350
+
1351
+ /** @internal */
1352
+ export const DataBlueprint$outboundSchema: z.ZodType<
1353
+ DataBlueprint$Outbound,
1354
+ z.ZodTypeDef,
1355
+ DataBlueprint
1356
+ > = z.object({
1357
+ url: z.string(),
1358
+ method: GetAllToolsDataMethod$outboundSchema,
1359
+ headers: z.record(z.string()).optional(),
1360
+ body: z.record(z.any()).optional(),
1361
+ });
1362
+
1363
+ /**
1364
+ * @internal
1365
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1366
+ */
1367
+ export namespace DataBlueprint$ {
1368
+ /** @deprecated use `DataBlueprint$inboundSchema` instead. */
1369
+ export const inboundSchema = DataBlueprint$inboundSchema;
1370
+ /** @deprecated use `DataBlueprint$outboundSchema` instead. */
1371
+ export const outboundSchema = DataBlueprint$outboundSchema;
1372
+ /** @deprecated use `DataBlueprint$Outbound` instead. */
1373
+ export type Outbound = DataBlueprint$Outbound;
1374
+ }
1375
+
1376
+ export function dataBlueprintToJSON(dataBlueprint: DataBlueprint): string {
1377
+ return JSON.stringify(DataBlueprint$outboundSchema.parse(dataBlueprint));
1378
+ }
1379
+
1380
+ export function dataBlueprintFromJSON(
1381
+ jsonString: string,
1382
+ ): SafeParseResult<DataBlueprint, SDKValidationError> {
1383
+ return safeParse(
1384
+ jsonString,
1385
+ (x) => DataBlueprint$inboundSchema.parse(JSON.parse(x)),
1386
+ `Failed to parse 'DataBlueprint' from JSON`,
1387
+ );
1388
+ }
1389
+
1390
+ /** @internal */
1391
+ export const GetAllToolsDataToolsResponse200ApplicationJSONResponseBody3Type$inboundSchema:
1392
+ z.ZodNativeEnum<
1393
+ typeof GetAllToolsDataToolsResponse200ApplicationJSONResponseBody3Type
1394
+ > = z.nativeEnum(
1395
+ GetAllToolsDataToolsResponse200ApplicationJSONResponseBody3Type,
1396
+ );
1397
+
1398
+ /** @internal */
1399
+ export const GetAllToolsDataToolsResponse200ApplicationJSONResponseBody3Type$outboundSchema:
1400
+ z.ZodNativeEnum<
1401
+ typeof GetAllToolsDataToolsResponse200ApplicationJSONResponseBody3Type
1402
+ > =
1403
+ GetAllToolsDataToolsResponse200ApplicationJSONResponseBody3Type$inboundSchema;
1404
+
1405
+ /**
1406
+ * @internal
1407
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1408
+ */
1409
+ export namespace GetAllToolsDataToolsResponse200ApplicationJSONResponseBody3Type$ {
1410
+ /** @deprecated use `GetAllToolsDataToolsResponse200ApplicationJSONResponseBody3Type$inboundSchema` instead. */
1411
+ export const inboundSchema =
1412
+ GetAllToolsDataToolsResponse200ApplicationJSONResponseBody3Type$inboundSchema;
1413
+ /** @deprecated use `GetAllToolsDataToolsResponse200ApplicationJSONResponseBody3Type$outboundSchema` instead. */
1414
+ export const outboundSchema =
1415
+ GetAllToolsDataToolsResponse200ApplicationJSONResponseBody3Type$outboundSchema;
1416
+ }
1417
+
1418
+ /** @internal */
1419
+ export const DataDefaultValue$inboundSchema: z.ZodType<
1420
+ DataDefaultValue,
1421
+ z.ZodTypeDef,
1422
+ unknown
1423
+ > = z.union([z.string(), z.number(), z.boolean()]);
1424
+
1425
+ /** @internal */
1426
+ export type DataDefaultValue$Outbound = string | number | boolean;
1427
+
1428
+ /** @internal */
1429
+ export const DataDefaultValue$outboundSchema: z.ZodType<
1430
+ DataDefaultValue$Outbound,
1431
+ z.ZodTypeDef,
1432
+ DataDefaultValue
1433
+ > = z.union([z.string(), z.number(), z.boolean()]);
1434
+
1435
+ /**
1436
+ * @internal
1437
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1438
+ */
1439
+ export namespace DataDefaultValue$ {
1440
+ /** @deprecated use `DataDefaultValue$inboundSchema` instead. */
1441
+ export const inboundSchema = DataDefaultValue$inboundSchema;
1442
+ /** @deprecated use `DataDefaultValue$outboundSchema` instead. */
1443
+ export const outboundSchema = DataDefaultValue$outboundSchema;
1444
+ /** @deprecated use `DataDefaultValue$Outbound` instead. */
1445
+ export type Outbound = DataDefaultValue$Outbound;
1446
+ }
1447
+
1448
+ export function dataDefaultValueToJSON(
1449
+ dataDefaultValue: DataDefaultValue,
1450
+ ): string {
1451
+ return JSON.stringify(
1452
+ DataDefaultValue$outboundSchema.parse(dataDefaultValue),
1453
+ );
1454
+ }
1455
+
1456
+ export function dataDefaultValueFromJSON(
1457
+ jsonString: string,
1458
+ ): SafeParseResult<DataDefaultValue, SDKValidationError> {
1459
+ return safeParse(
1460
+ jsonString,
1461
+ (x) => DataDefaultValue$inboundSchema.parse(JSON.parse(x)),
1462
+ `Failed to parse 'DataDefaultValue' from JSON`,
1463
+ );
1464
+ }
1465
+
1466
+ /** @internal */
1467
+ export const DataArguments$inboundSchema: z.ZodType<
1468
+ DataArguments,
1469
+ z.ZodTypeDef,
1470
+ unknown
1471
+ > = z.object({
1472
+ type:
1473
+ GetAllToolsDataToolsResponse200ApplicationJSONResponseBody3Type$inboundSchema,
1474
+ description: z.string(),
1475
+ send_to_model: z.boolean().default(true),
1476
+ default_value: z.union([z.string(), z.number(), z.boolean()]).optional(),
1477
+ }).transform((v) => {
1478
+ return remap$(v, {
1479
+ "send_to_model": "sendToModel",
1480
+ "default_value": "defaultValue",
1481
+ });
1482
+ });
1483
+
1484
+ /** @internal */
1485
+ export type DataArguments$Outbound = {
1486
+ type: string;
1487
+ description: string;
1488
+ send_to_model: boolean;
1489
+ default_value?: string | number | boolean | undefined;
1490
+ };
1491
+
1492
+ /** @internal */
1493
+ export const DataArguments$outboundSchema: z.ZodType<
1494
+ DataArguments$Outbound,
1495
+ z.ZodTypeDef,
1496
+ DataArguments
1497
+ > = z.object({
1498
+ type:
1499
+ GetAllToolsDataToolsResponse200ApplicationJSONResponseBody3Type$outboundSchema,
1500
+ description: z.string(),
1501
+ sendToModel: z.boolean().default(true),
1502
+ defaultValue: z.union([z.string(), z.number(), z.boolean()]).optional(),
1503
+ }).transform((v) => {
1504
+ return remap$(v, {
1505
+ sendToModel: "send_to_model",
1506
+ defaultValue: "default_value",
1507
+ });
1508
+ });
1509
+
1510
+ /**
1511
+ * @internal
1512
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1513
+ */
1514
+ export namespace DataArguments$ {
1515
+ /** @deprecated use `DataArguments$inboundSchema` instead. */
1516
+ export const inboundSchema = DataArguments$inboundSchema;
1517
+ /** @deprecated use `DataArguments$outboundSchema` instead. */
1518
+ export const outboundSchema = DataArguments$outboundSchema;
1519
+ /** @deprecated use `DataArguments$Outbound` instead. */
1520
+ export type Outbound = DataArguments$Outbound;
1521
+ }
1522
+
1523
+ export function dataArgumentsToJSON(dataArguments: DataArguments): string {
1524
+ return JSON.stringify(DataArguments$outboundSchema.parse(dataArguments));
1525
+ }
1526
+
1527
+ export function dataArgumentsFromJSON(
1528
+ jsonString: string,
1529
+ ): SafeParseResult<DataArguments, SDKValidationError> {
1530
+ return safeParse(
1531
+ jsonString,
1532
+ (x) => DataArguments$inboundSchema.parse(JSON.parse(x)),
1533
+ `Failed to parse 'DataArguments' from JSON`,
1534
+ );
1535
+ }
1536
+
1537
+ /** @internal */
1538
+ export const GetAllToolsDataHttp$inboundSchema: z.ZodType<
1539
+ GetAllToolsDataHttp,
1540
+ z.ZodTypeDef,
1541
+ unknown
1542
+ > = z.object({
1543
+ blueprint: z.lazy(() => DataBlueprint$inboundSchema),
1544
+ arguments: z.record(z.lazy(() => DataArguments$inboundSchema)).optional(),
1545
+ });
1546
+
1547
+ /** @internal */
1548
+ export type GetAllToolsDataHttp$Outbound = {
1549
+ blueprint: DataBlueprint$Outbound;
1550
+ arguments?: { [k: string]: DataArguments$Outbound } | undefined;
1551
+ };
1552
+
1553
+ /** @internal */
1554
+ export const GetAllToolsDataHttp$outboundSchema: z.ZodType<
1555
+ GetAllToolsDataHttp$Outbound,
1556
+ z.ZodTypeDef,
1557
+ GetAllToolsDataHttp
1558
+ > = z.object({
1559
+ blueprint: z.lazy(() => DataBlueprint$outboundSchema),
1560
+ arguments: z.record(z.lazy(() => DataArguments$outboundSchema)).optional(),
1561
+ });
1562
+
1563
+ /**
1564
+ * @internal
1565
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1566
+ */
1567
+ export namespace GetAllToolsDataHttp$ {
1568
+ /** @deprecated use `GetAllToolsDataHttp$inboundSchema` instead. */
1569
+ export const inboundSchema = GetAllToolsDataHttp$inboundSchema;
1570
+ /** @deprecated use `GetAllToolsDataHttp$outboundSchema` instead. */
1571
+ export const outboundSchema = GetAllToolsDataHttp$outboundSchema;
1572
+ /** @deprecated use `GetAllToolsDataHttp$Outbound` instead. */
1573
+ export type Outbound = GetAllToolsDataHttp$Outbound;
1574
+ }
1575
+
1576
+ export function getAllToolsDataHttpToJSON(
1577
+ getAllToolsDataHttp: GetAllToolsDataHttp,
1578
+ ): string {
1579
+ return JSON.stringify(
1580
+ GetAllToolsDataHttp$outboundSchema.parse(getAllToolsDataHttp),
1581
+ );
1582
+ }
1583
+
1584
+ export function getAllToolsDataHttpFromJSON(
1585
+ jsonString: string,
1586
+ ): SafeParseResult<GetAllToolsDataHttp, SDKValidationError> {
1587
+ return safeParse(
1588
+ jsonString,
1589
+ (x) => GetAllToolsDataHttp$inboundSchema.parse(JSON.parse(x)),
1590
+ `Failed to parse 'GetAllToolsDataHttp' from JSON`,
1591
+ );
1592
+ }
1593
+
1594
+ /** @internal */
1595
+ export const Data3$inboundSchema: z.ZodType<Data3, z.ZodTypeDef, unknown> = z
1596
+ .object({
1597
+ _id: z.string().default("01K60CGQ9HZMSC5HPSB1FN8WQP"),
1598
+ path: z.string(),
1599
+ key: z.string(),
1600
+ display_name: z.string(),
1601
+ description: z.string(),
1602
+ created_by_id: z.string().optional(),
1603
+ updated_by_id: z.string().optional(),
1604
+ project_id: z.string(),
1605
+ workspace_id: z.string(),
1606
+ created: z.string(),
1607
+ updated: z.string(),
1608
+ status: GetAllToolsDataToolsStatus$inboundSchema.default("live"),
1609
+ version_hash: z.string().optional(),
1610
+ type: GetAllToolsDataToolsResponseType$inboundSchema,
1611
+ http: z.lazy(() => GetAllToolsDataHttp$inboundSchema),
1612
+ }).transform((v) => {
1613
+ return remap$(v, {
1614
+ "_id": "id",
1615
+ "display_name": "displayName",
1616
+ "created_by_id": "createdById",
1617
+ "updated_by_id": "updatedById",
1618
+ "project_id": "projectId",
1619
+ "workspace_id": "workspaceId",
1620
+ "version_hash": "versionHash",
1621
+ });
1622
+ });
1623
+
1624
+ /** @internal */
1625
+ export type Data3$Outbound = {
1626
+ _id: string;
1627
+ path: string;
1628
+ key: string;
1629
+ display_name: string;
1630
+ description: string;
1631
+ created_by_id?: string | undefined;
1632
+ updated_by_id?: string | undefined;
1633
+ project_id: string;
1634
+ workspace_id: string;
1635
+ created: string;
1636
+ updated: string;
1637
+ status: string;
1638
+ version_hash?: string | undefined;
1639
+ type: string;
1640
+ http: GetAllToolsDataHttp$Outbound;
1641
+ };
1642
+
1643
+ /** @internal */
1644
+ export const Data3$outboundSchema: z.ZodType<
1645
+ Data3$Outbound,
1646
+ z.ZodTypeDef,
1647
+ Data3
1648
+ > = z.object({
1649
+ id: z.string().default("01K60CGQ9HZMSC5HPSB1FN8WQP"),
1650
+ path: z.string(),
1651
+ key: z.string(),
1652
+ displayName: z.string(),
1653
+ description: z.string(),
1654
+ createdById: z.string().optional(),
1655
+ updatedById: z.string().optional(),
1656
+ projectId: z.string(),
1657
+ workspaceId: z.string(),
1658
+ created: z.string(),
1659
+ updated: z.string(),
1660
+ status: GetAllToolsDataToolsStatus$outboundSchema.default("live"),
1661
+ versionHash: z.string().optional(),
1662
+ type: GetAllToolsDataToolsResponseType$outboundSchema,
1663
+ http: z.lazy(() => GetAllToolsDataHttp$outboundSchema),
1664
+ }).transform((v) => {
1665
+ return remap$(v, {
1666
+ id: "_id",
1667
+ displayName: "display_name",
1668
+ createdById: "created_by_id",
1669
+ updatedById: "updated_by_id",
1670
+ projectId: "project_id",
1671
+ workspaceId: "workspace_id",
1672
+ versionHash: "version_hash",
1673
+ });
1674
+ });
1675
+
1676
+ /**
1677
+ * @internal
1678
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1679
+ */
1680
+ export namespace Data3$ {
1681
+ /** @deprecated use `Data3$inboundSchema` instead. */
1682
+ export const inboundSchema = Data3$inboundSchema;
1683
+ /** @deprecated use `Data3$outboundSchema` instead. */
1684
+ export const outboundSchema = Data3$outboundSchema;
1685
+ /** @deprecated use `Data3$Outbound` instead. */
1686
+ export type Outbound = Data3$Outbound;
1687
+ }
1688
+
1689
+ export function data3ToJSON(data3: Data3): string {
1690
+ return JSON.stringify(Data3$outboundSchema.parse(data3));
1691
+ }
1692
+
1693
+ export function data3FromJSON(
1694
+ jsonString: string,
1695
+ ): SafeParseResult<Data3, SDKValidationError> {
1696
+ return safeParse(
1697
+ jsonString,
1698
+ (x) => Data3$inboundSchema.parse(JSON.parse(x)),
1699
+ `Failed to parse 'Data3' from JSON`,
1700
+ );
1701
+ }
1702
+
1703
+ /** @internal */
1704
+ export const GetAllToolsDataStatus$inboundSchema: z.ZodNativeEnum<
1705
+ typeof GetAllToolsDataStatus
1706
+ > = z.nativeEnum(GetAllToolsDataStatus);
1707
+
1708
+ /** @internal */
1709
+ export const GetAllToolsDataStatus$outboundSchema: z.ZodNativeEnum<
1710
+ typeof GetAllToolsDataStatus
1711
+ > = GetAllToolsDataStatus$inboundSchema;
1712
+
1713
+ /**
1714
+ * @internal
1715
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1716
+ */
1717
+ export namespace GetAllToolsDataStatus$ {
1718
+ /** @deprecated use `GetAllToolsDataStatus$inboundSchema` instead. */
1719
+ export const inboundSchema = GetAllToolsDataStatus$inboundSchema;
1720
+ /** @deprecated use `GetAllToolsDataStatus$outboundSchema` instead. */
1721
+ export const outboundSchema = GetAllToolsDataStatus$outboundSchema;
1722
+ }
1723
+
1724
+ /** @internal */
1725
+ export const GetAllToolsDataToolsType$inboundSchema: z.ZodNativeEnum<
1726
+ typeof GetAllToolsDataToolsType
1727
+ > = z.nativeEnum(GetAllToolsDataToolsType);
1728
+
1729
+ /** @internal */
1730
+ export const GetAllToolsDataToolsType$outboundSchema: z.ZodNativeEnum<
1731
+ typeof GetAllToolsDataToolsType
1732
+ > = GetAllToolsDataToolsType$inboundSchema;
1733
+
1734
+ /**
1735
+ * @internal
1736
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1737
+ */
1738
+ export namespace GetAllToolsDataToolsType$ {
1739
+ /** @deprecated use `GetAllToolsDataToolsType$inboundSchema` instead. */
1740
+ export const inboundSchema = GetAllToolsDataToolsType$inboundSchema;
1741
+ /** @deprecated use `GetAllToolsDataToolsType$outboundSchema` instead. */
1742
+ export const outboundSchema = GetAllToolsDataToolsType$outboundSchema;
1743
+ }
1744
+
1745
+ /** @internal */
1746
+ export const DataJsonSchema$inboundSchema: z.ZodType<
1747
+ DataJsonSchema,
1748
+ z.ZodTypeDef,
1749
+ unknown
1750
+ > = z.object({
1751
+ name: z.string(),
1752
+ description: z.string().optional(),
1753
+ schema: z.record(z.any()),
1754
+ strict: z.nullable(z.boolean().default(false)),
1755
+ });
1756
+
1757
+ /** @internal */
1758
+ export type DataJsonSchema$Outbound = {
1759
+ name: string;
1760
+ description?: string | undefined;
1761
+ schema: { [k: string]: any };
1762
+ strict: boolean | null;
1763
+ };
1764
+
1765
+ /** @internal */
1766
+ export const DataJsonSchema$outboundSchema: z.ZodType<
1767
+ DataJsonSchema$Outbound,
1768
+ z.ZodTypeDef,
1769
+ DataJsonSchema
1770
+ > = z.object({
1771
+ name: z.string(),
1772
+ description: z.string().optional(),
1773
+ schema: z.record(z.any()),
1774
+ strict: z.nullable(z.boolean().default(false)),
1775
+ });
1776
+
1777
+ /**
1778
+ * @internal
1779
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1780
+ */
1781
+ export namespace DataJsonSchema$ {
1782
+ /** @deprecated use `DataJsonSchema$inboundSchema` instead. */
1783
+ export const inboundSchema = DataJsonSchema$inboundSchema;
1784
+ /** @deprecated use `DataJsonSchema$outboundSchema` instead. */
1785
+ export const outboundSchema = DataJsonSchema$outboundSchema;
1786
+ /** @deprecated use `DataJsonSchema$Outbound` instead. */
1787
+ export type Outbound = DataJsonSchema$Outbound;
1788
+ }
1789
+
1790
+ export function dataJsonSchemaToJSON(dataJsonSchema: DataJsonSchema): string {
1791
+ return JSON.stringify(DataJsonSchema$outboundSchema.parse(dataJsonSchema));
1792
+ }
1793
+
1794
+ export function dataJsonSchemaFromJSON(
1795
+ jsonString: string,
1796
+ ): SafeParseResult<DataJsonSchema, SDKValidationError> {
1797
+ return safeParse(
1798
+ jsonString,
1799
+ (x) => DataJsonSchema$inboundSchema.parse(JSON.parse(x)),
1800
+ `Failed to parse 'DataJsonSchema' from JSON`,
1801
+ );
1802
+ }
1803
+
1804
+ /** @internal */
1805
+ export const Data2$inboundSchema: z.ZodType<Data2, z.ZodTypeDef, unknown> = z
1806
+ .object({
1807
+ _id: z.string().default("01K60CGQ9GBQ2CBS40R0ZMKNQ6"),
1808
+ path: z.string(),
1809
+ key: z.string(),
1810
+ display_name: z.string(),
1811
+ description: z.string(),
1812
+ created_by_id: z.string().optional(),
1813
+ updated_by_id: z.string().optional(),
1814
+ project_id: z.string(),
1815
+ workspace_id: z.string(),
1816
+ created: z.string(),
1817
+ updated: z.string(),
1818
+ status: GetAllToolsDataStatus$inboundSchema.default("live"),
1819
+ version_hash: z.string().optional(),
1820
+ type: GetAllToolsDataToolsType$inboundSchema,
1821
+ json_schema: z.lazy(() => DataJsonSchema$inboundSchema),
1822
+ }).transform((v) => {
1823
+ return remap$(v, {
1824
+ "_id": "id",
1825
+ "display_name": "displayName",
1826
+ "created_by_id": "createdById",
1827
+ "updated_by_id": "updatedById",
1828
+ "project_id": "projectId",
1829
+ "workspace_id": "workspaceId",
1830
+ "version_hash": "versionHash",
1831
+ "json_schema": "jsonSchema",
1832
+ });
1833
+ });
1834
+
1835
+ /** @internal */
1836
+ export type Data2$Outbound = {
1837
+ _id: string;
1838
+ path: string;
1839
+ key: string;
1840
+ display_name: string;
1841
+ description: string;
1842
+ created_by_id?: string | undefined;
1843
+ updated_by_id?: string | undefined;
1844
+ project_id: string;
1845
+ workspace_id: string;
1846
+ created: string;
1847
+ updated: string;
1848
+ status: string;
1849
+ version_hash?: string | undefined;
1850
+ type: string;
1851
+ json_schema: DataJsonSchema$Outbound;
1852
+ };
1853
+
1854
+ /** @internal */
1855
+ export const Data2$outboundSchema: z.ZodType<
1856
+ Data2$Outbound,
1857
+ z.ZodTypeDef,
1858
+ Data2
1859
+ > = z.object({
1860
+ id: z.string().default("01K60CGQ9GBQ2CBS40R0ZMKNQ6"),
1861
+ path: z.string(),
1862
+ key: z.string(),
1863
+ displayName: z.string(),
1864
+ description: z.string(),
1865
+ createdById: z.string().optional(),
1866
+ updatedById: z.string().optional(),
1867
+ projectId: z.string(),
1868
+ workspaceId: z.string(),
1869
+ created: z.string(),
1870
+ updated: z.string(),
1871
+ status: GetAllToolsDataStatus$outboundSchema.default("live"),
1872
+ versionHash: z.string().optional(),
1873
+ type: GetAllToolsDataToolsType$outboundSchema,
1874
+ jsonSchema: z.lazy(() => DataJsonSchema$outboundSchema),
1875
+ }).transform((v) => {
1876
+ return remap$(v, {
1877
+ id: "_id",
1878
+ displayName: "display_name",
1879
+ createdById: "created_by_id",
1880
+ updatedById: "updated_by_id",
1881
+ projectId: "project_id",
1882
+ workspaceId: "workspace_id",
1883
+ versionHash: "version_hash",
1884
+ jsonSchema: "json_schema",
1885
+ });
1886
+ });
1887
+
1888
+ /**
1889
+ * @internal
1890
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1891
+ */
1892
+ export namespace Data2$ {
1893
+ /** @deprecated use `Data2$inboundSchema` instead. */
1894
+ export const inboundSchema = Data2$inboundSchema;
1895
+ /** @deprecated use `Data2$outboundSchema` instead. */
1896
+ export const outboundSchema = Data2$outboundSchema;
1897
+ /** @deprecated use `Data2$Outbound` instead. */
1898
+ export type Outbound = Data2$Outbound;
1899
+ }
1900
+
1901
+ export function data2ToJSON(data2: Data2): string {
1902
+ return JSON.stringify(Data2$outboundSchema.parse(data2));
1903
+ }
1904
+
1905
+ export function data2FromJSON(
1906
+ jsonString: string,
1907
+ ): SafeParseResult<Data2, SDKValidationError> {
1908
+ return safeParse(
1909
+ jsonString,
1910
+ (x) => Data2$inboundSchema.parse(JSON.parse(x)),
1911
+ `Failed to parse 'Data2' from JSON`,
1912
+ );
1913
+ }
1914
+
1915
+ /** @internal */
1916
+ export const DataStatus$inboundSchema: z.ZodNativeEnum<typeof DataStatus> = z
1917
+ .nativeEnum(DataStatus);
1918
+
1919
+ /** @internal */
1920
+ export const DataStatus$outboundSchema: z.ZodNativeEnum<typeof DataStatus> =
1921
+ DataStatus$inboundSchema;
1922
+
1923
+ /**
1924
+ * @internal
1925
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1926
+ */
1927
+ export namespace DataStatus$ {
1928
+ /** @deprecated use `DataStatus$inboundSchema` instead. */
1929
+ export const inboundSchema = DataStatus$inboundSchema;
1930
+ /** @deprecated use `DataStatus$outboundSchema` instead. */
1931
+ export const outboundSchema = DataStatus$outboundSchema;
1932
+ }
1933
+
1934
+ /** @internal */
1935
+ export const GetAllToolsDataType$inboundSchema: z.ZodNativeEnum<
1936
+ typeof GetAllToolsDataType
1937
+ > = z.nativeEnum(GetAllToolsDataType);
1938
+
1939
+ /** @internal */
1940
+ export const GetAllToolsDataType$outboundSchema: z.ZodNativeEnum<
1941
+ typeof GetAllToolsDataType
1942
+ > = GetAllToolsDataType$inboundSchema;
1943
+
1944
+ /**
1945
+ * @internal
1946
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1947
+ */
1948
+ export namespace GetAllToolsDataType$ {
1949
+ /** @deprecated use `GetAllToolsDataType$inboundSchema` instead. */
1950
+ export const inboundSchema = GetAllToolsDataType$inboundSchema;
1951
+ /** @deprecated use `GetAllToolsDataType$outboundSchema` instead. */
1952
+ export const outboundSchema = GetAllToolsDataType$outboundSchema;
1953
+ }
1954
+
1955
+ /** @internal */
1956
+ export const GetAllToolsDataFunction$inboundSchema: z.ZodType<
1957
+ GetAllToolsDataFunction,
1958
+ z.ZodTypeDef,
1959
+ unknown
1960
+ > = z.object({
1961
+ name: z.string(),
1962
+ description: z.string().optional(),
1963
+ strict: z.boolean().optional(),
1964
+ parameters: z.record(z.any()).optional(),
1965
+ });
1966
+
1967
+ /** @internal */
1968
+ export type GetAllToolsDataFunction$Outbound = {
1969
+ name: string;
1970
+ description?: string | undefined;
1971
+ strict?: boolean | undefined;
1972
+ parameters?: { [k: string]: any } | undefined;
1973
+ };
1974
+
1975
+ /** @internal */
1976
+ export const GetAllToolsDataFunction$outboundSchema: z.ZodType<
1977
+ GetAllToolsDataFunction$Outbound,
1978
+ z.ZodTypeDef,
1979
+ GetAllToolsDataFunction
1980
+ > = z.object({
1981
+ name: z.string(),
1982
+ description: z.string().optional(),
1983
+ strict: z.boolean().optional(),
1984
+ parameters: z.record(z.any()).optional(),
1985
+ });
1986
+
1987
+ /**
1988
+ * @internal
1989
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1990
+ */
1991
+ export namespace GetAllToolsDataFunction$ {
1992
+ /** @deprecated use `GetAllToolsDataFunction$inboundSchema` instead. */
1993
+ export const inboundSchema = GetAllToolsDataFunction$inboundSchema;
1994
+ /** @deprecated use `GetAllToolsDataFunction$outboundSchema` instead. */
1995
+ export const outboundSchema = GetAllToolsDataFunction$outboundSchema;
1996
+ /** @deprecated use `GetAllToolsDataFunction$Outbound` instead. */
1997
+ export type Outbound = GetAllToolsDataFunction$Outbound;
1998
+ }
1999
+
2000
+ export function getAllToolsDataFunctionToJSON(
2001
+ getAllToolsDataFunction: GetAllToolsDataFunction,
2002
+ ): string {
2003
+ return JSON.stringify(
2004
+ GetAllToolsDataFunction$outboundSchema.parse(getAllToolsDataFunction),
2005
+ );
2006
+ }
2007
+
2008
+ export function getAllToolsDataFunctionFromJSON(
2009
+ jsonString: string,
2010
+ ): SafeParseResult<GetAllToolsDataFunction, SDKValidationError> {
2011
+ return safeParse(
2012
+ jsonString,
2013
+ (x) => GetAllToolsDataFunction$inboundSchema.parse(JSON.parse(x)),
2014
+ `Failed to parse 'GetAllToolsDataFunction' from JSON`,
2015
+ );
2016
+ }
2017
+
2018
+ /** @internal */
2019
+ export const Data1$inboundSchema: z.ZodType<Data1, z.ZodTypeDef, unknown> = z
2020
+ .object({
2021
+ _id: z.string().default("01K60CGQ9GVX9P8YCDMQS4H380"),
2022
+ path: z.string(),
2023
+ key: z.string(),
2024
+ display_name: z.string(),
2025
+ description: z.string(),
2026
+ created_by_id: z.string().optional(),
2027
+ updated_by_id: z.string().optional(),
2028
+ project_id: z.string(),
2029
+ workspace_id: z.string(),
2030
+ created: z.string(),
2031
+ updated: z.string(),
2032
+ status: DataStatus$inboundSchema.default("live"),
2033
+ version_hash: z.string().optional(),
2034
+ type: GetAllToolsDataType$inboundSchema,
2035
+ function: z.lazy(() => GetAllToolsDataFunction$inboundSchema),
2036
+ }).transform((v) => {
2037
+ return remap$(v, {
2038
+ "_id": "id",
2039
+ "display_name": "displayName",
2040
+ "created_by_id": "createdById",
2041
+ "updated_by_id": "updatedById",
2042
+ "project_id": "projectId",
2043
+ "workspace_id": "workspaceId",
2044
+ "version_hash": "versionHash",
2045
+ });
2046
+ });
2047
+
2048
+ /** @internal */
2049
+ export type Data1$Outbound = {
2050
+ _id: string;
2051
+ path: string;
2052
+ key: string;
2053
+ display_name: string;
2054
+ description: string;
2055
+ created_by_id?: string | undefined;
2056
+ updated_by_id?: string | undefined;
2057
+ project_id: string;
2058
+ workspace_id: string;
2059
+ created: string;
2060
+ updated: string;
2061
+ status: string;
2062
+ version_hash?: string | undefined;
2063
+ type: string;
2064
+ function: GetAllToolsDataFunction$Outbound;
2065
+ };
2066
+
2067
+ /** @internal */
2068
+ export const Data1$outboundSchema: z.ZodType<
2069
+ Data1$Outbound,
2070
+ z.ZodTypeDef,
2071
+ Data1
2072
+ > = z.object({
2073
+ id: z.string().default("01K60CGQ9GVX9P8YCDMQS4H380"),
2074
+ path: z.string(),
2075
+ key: z.string(),
2076
+ displayName: z.string(),
2077
+ description: z.string(),
2078
+ createdById: z.string().optional(),
2079
+ updatedById: z.string().optional(),
2080
+ projectId: z.string(),
2081
+ workspaceId: z.string(),
2082
+ created: z.string(),
2083
+ updated: z.string(),
2084
+ status: DataStatus$outboundSchema.default("live"),
2085
+ versionHash: z.string().optional(),
2086
+ type: GetAllToolsDataType$outboundSchema,
2087
+ function: z.lazy(() => GetAllToolsDataFunction$outboundSchema),
2088
+ }).transform((v) => {
2089
+ return remap$(v, {
2090
+ id: "_id",
2091
+ displayName: "display_name",
2092
+ createdById: "created_by_id",
2093
+ updatedById: "updated_by_id",
2094
+ projectId: "project_id",
2095
+ workspaceId: "workspace_id",
2096
+ versionHash: "version_hash",
2097
+ });
2098
+ });
2099
+
2100
+ /**
2101
+ * @internal
2102
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2103
+ */
2104
+ export namespace Data1$ {
2105
+ /** @deprecated use `Data1$inboundSchema` instead. */
2106
+ export const inboundSchema = Data1$inboundSchema;
2107
+ /** @deprecated use `Data1$outboundSchema` instead. */
2108
+ export const outboundSchema = Data1$outboundSchema;
2109
+ /** @deprecated use `Data1$Outbound` instead. */
2110
+ export type Outbound = Data1$Outbound;
2111
+ }
2112
+
2113
+ export function data1ToJSON(data1: Data1): string {
2114
+ return JSON.stringify(Data1$outboundSchema.parse(data1));
2115
+ }
2116
+
2117
+ export function data1FromJSON(
2118
+ jsonString: string,
2119
+ ): SafeParseResult<Data1, SDKValidationError> {
2120
+ return safeParse(
2121
+ jsonString,
2122
+ (x) => Data1$inboundSchema.parse(JSON.parse(x)),
2123
+ `Failed to parse 'Data1' from JSON`,
2124
+ );
2125
+ }
2126
+
2127
+ /** @internal */
2128
+ export const GetAllToolsData$inboundSchema: z.ZodType<
2129
+ GetAllToolsData,
2130
+ z.ZodTypeDef,
2131
+ unknown
2132
+ > = z.union([
2133
+ z.lazy(() => Data1$inboundSchema),
2134
+ z.lazy(() => Data2$inboundSchema),
2135
+ z.lazy(() => Data3$inboundSchema),
2136
+ z.lazy(() => Data4$inboundSchema),
2137
+ z.lazy(() => Data5$inboundSchema),
2138
+ ]);
2139
+
2140
+ /** @internal */
2141
+ export type GetAllToolsData$Outbound =
2142
+ | Data1$Outbound
2143
+ | Data2$Outbound
2144
+ | Data3$Outbound
2145
+ | Data4$Outbound
2146
+ | Data5$Outbound;
2147
+
2148
+ /** @internal */
2149
+ export const GetAllToolsData$outboundSchema: z.ZodType<
2150
+ GetAllToolsData$Outbound,
2151
+ z.ZodTypeDef,
2152
+ GetAllToolsData
2153
+ > = z.union([
2154
+ z.lazy(() => Data1$outboundSchema),
2155
+ z.lazy(() => Data2$outboundSchema),
2156
+ z.lazy(() => Data3$outboundSchema),
2157
+ z.lazy(() => Data4$outboundSchema),
2158
+ z.lazy(() => Data5$outboundSchema),
2159
+ ]);
2160
+
2161
+ /**
2162
+ * @internal
2163
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2164
+ */
2165
+ export namespace GetAllToolsData$ {
2166
+ /** @deprecated use `GetAllToolsData$inboundSchema` instead. */
2167
+ export const inboundSchema = GetAllToolsData$inboundSchema;
2168
+ /** @deprecated use `GetAllToolsData$outboundSchema` instead. */
2169
+ export const outboundSchema = GetAllToolsData$outboundSchema;
2170
+ /** @deprecated use `GetAllToolsData$Outbound` instead. */
2171
+ export type Outbound = GetAllToolsData$Outbound;
2172
+ }
2173
+
2174
+ export function getAllToolsDataToJSON(
2175
+ getAllToolsData: GetAllToolsData,
2176
+ ): string {
2177
+ return JSON.stringify(GetAllToolsData$outboundSchema.parse(getAllToolsData));
2178
+ }
2179
+
2180
+ export function getAllToolsDataFromJSON(
2181
+ jsonString: string,
2182
+ ): SafeParseResult<GetAllToolsData, SDKValidationError> {
2183
+ return safeParse(
2184
+ jsonString,
2185
+ (x) => GetAllToolsData$inboundSchema.parse(JSON.parse(x)),
2186
+ `Failed to parse 'GetAllToolsData' from JSON`,
2187
+ );
2188
+ }
2189
+
2190
+ /** @internal */
2191
+ export const GetAllToolsResponseBody$inboundSchema: z.ZodType<
2192
+ GetAllToolsResponseBody,
2193
+ z.ZodTypeDef,
2194
+ unknown
2195
+ > = z.object({
2196
+ object: GetAllToolsObject$inboundSchema,
2197
+ data: z.array(
2198
+ z.union([
2199
+ z.lazy(() => Data1$inboundSchema),
2200
+ z.lazy(() => Data2$inboundSchema),
2201
+ z.lazy(() => Data3$inboundSchema),
2202
+ z.lazy(() => Data4$inboundSchema),
2203
+ z.lazy(() => Data5$inboundSchema),
2204
+ ]),
2205
+ ),
2206
+ has_more: z.boolean(),
2207
+ }).transform((v) => {
2208
+ return remap$(v, {
2209
+ "has_more": "hasMore",
2210
+ });
2211
+ });
2212
+
2213
+ /** @internal */
2214
+ export type GetAllToolsResponseBody$Outbound = {
2215
+ object: string;
2216
+ data: Array<
2217
+ | Data1$Outbound
2218
+ | Data2$Outbound
2219
+ | Data3$Outbound
2220
+ | Data4$Outbound
2221
+ | Data5$Outbound
2222
+ >;
2223
+ has_more: boolean;
2224
+ };
2225
+
2226
+ /** @internal */
2227
+ export const GetAllToolsResponseBody$outboundSchema: z.ZodType<
2228
+ GetAllToolsResponseBody$Outbound,
2229
+ z.ZodTypeDef,
2230
+ GetAllToolsResponseBody
2231
+ > = z.object({
2232
+ object: GetAllToolsObject$outboundSchema,
2233
+ data: z.array(
2234
+ z.union([
2235
+ z.lazy(() => Data1$outboundSchema),
2236
+ z.lazy(() => Data2$outboundSchema),
2237
+ z.lazy(() => Data3$outboundSchema),
2238
+ z.lazy(() => Data4$outboundSchema),
2239
+ z.lazy(() => Data5$outboundSchema),
2240
+ ]),
2241
+ ),
2242
+ hasMore: z.boolean(),
2243
+ }).transform((v) => {
2244
+ return remap$(v, {
2245
+ hasMore: "has_more",
2246
+ });
2247
+ });
2248
+
2249
+ /**
2250
+ * @internal
2251
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2252
+ */
2253
+ export namespace GetAllToolsResponseBody$ {
2254
+ /** @deprecated use `GetAllToolsResponseBody$inboundSchema` instead. */
2255
+ export const inboundSchema = GetAllToolsResponseBody$inboundSchema;
2256
+ /** @deprecated use `GetAllToolsResponseBody$outboundSchema` instead. */
2257
+ export const outboundSchema = GetAllToolsResponseBody$outboundSchema;
2258
+ /** @deprecated use `GetAllToolsResponseBody$Outbound` instead. */
2259
+ export type Outbound = GetAllToolsResponseBody$Outbound;
2260
+ }
2261
+
2262
+ export function getAllToolsResponseBodyToJSON(
2263
+ getAllToolsResponseBody: GetAllToolsResponseBody,
2264
+ ): string {
2265
+ return JSON.stringify(
2266
+ GetAllToolsResponseBody$outboundSchema.parse(getAllToolsResponseBody),
2267
+ );
2268
+ }
2269
+
2270
+ export function getAllToolsResponseBodyFromJSON(
2271
+ jsonString: string,
2272
+ ): SafeParseResult<GetAllToolsResponseBody, SDKValidationError> {
2273
+ return safeParse(
2274
+ jsonString,
2275
+ (x) => GetAllToolsResponseBody$inboundSchema.parse(JSON.parse(x)),
2276
+ `Failed to parse 'GetAllToolsResponseBody' from JSON`,
2277
+ );
2278
+ }