@orq-ai/node 4.0.4 → 4.0.6

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 (170) hide show
  1. package/bin/mcp-server.js +213 -213
  2. package/bin/mcp-server.js.map +36 -36
  3. package/examples/package-lock.json +1 -1
  4. package/jsr.json +1 -1
  5. package/lib/config.d.ts +2 -2
  6. package/lib/config.js +2 -2
  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 +8 -8
  13. package/models/operations/createdatasource.js +2 -2
  14. package/models/operations/createeval.js +28 -28
  15. package/models/operations/createtool.js +12 -12
  16. package/models/operations/fileget.js +2 -2
  17. package/models/operations/filelist.js +2 -2
  18. package/models/operations/fileupload.js +2 -2
  19. package/models/operations/getalltools.js +12 -12
  20. package/models/operations/getbudget.js +2 -2
  21. package/models/operations/getevals.js +28 -28
  22. package/models/operations/listbudgets.js +2 -2
  23. package/models/operations/listcontacts.js +2 -2
  24. package/models/operations/listdatasetdatapoints.js +8 -8
  25. package/models/operations/listdatasets.js +2 -2
  26. package/models/operations/listdatasources.js +2 -2
  27. package/models/operations/retrievecontact.js +2 -2
  28. package/models/operations/retrievedatapoint.js +8 -8
  29. package/models/operations/retrievedataset.js +2 -2
  30. package/models/operations/retrievedatasource.js +2 -2
  31. package/models/operations/retrievetool.js +12 -12
  32. package/models/operations/runagent.js +2 -2
  33. package/models/operations/streamrunagent.js +2 -2
  34. package/models/operations/updatebudget.js +2 -2
  35. package/models/operations/updatecontact.js +2 -2
  36. package/models/operations/updatedatapoint.js +8 -8
  37. package/models/operations/updatedataset.js +2 -2
  38. package/models/operations/updatedatasource.js +2 -2
  39. package/models/operations/updateeval.js +28 -28
  40. package/models/operations/updatetool.js +14 -14
  41. package/package.json +1 -1
  42. package/packages/orq-rc/README.md +38 -47
  43. package/packages/orq-rc/docs/sdks/agents/README.md +230 -529
  44. package/packages/orq-rc/docs/sdks/responses/README.md +60 -65
  45. package/packages/orq-rc/examples/package-lock.json +1 -1
  46. package/packages/orq-rc/jsr.json +1 -1
  47. package/packages/orq-rc/package-lock.json +2 -2
  48. package/packages/orq-rc/package.json +1 -1
  49. package/packages/orq-rc/src/funcs/agentsCreate.ts +16 -14
  50. package/packages/orq-rc/src/funcs/agentsDelete.ts +10 -6
  51. package/packages/orq-rc/src/funcs/agentsInvoke.ts +16 -6
  52. package/packages/orq-rc/src/funcs/agentsList.ts +18 -6
  53. package/packages/orq-rc/src/funcs/agentsResponsesCreate.ts +23 -12
  54. package/packages/orq-rc/src/funcs/agentsRetrieve.ts +21 -16
  55. package/packages/orq-rc/src/funcs/agentsRun.ts +4 -2
  56. package/packages/orq-rc/src/funcs/agentsStream.ts +16 -6
  57. package/packages/orq-rc/src/funcs/agentsStreamRun.ts +4 -2
  58. package/packages/orq-rc/src/funcs/agentsUpdate.ts +14 -6
  59. package/packages/orq-rc/src/lib/config.ts +2 -2
  60. package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
  61. package/packages/orq-rc/src/mcp-server/server.ts +1 -9
  62. package/packages/orq-rc/src/mcp-server/tools/agentsCreate.ts +3 -3
  63. package/packages/orq-rc/src/mcp-server/tools/agentsDelete.ts +5 -5
  64. package/packages/orq-rc/src/mcp-server/tools/agentsInvoke.ts +7 -4
  65. package/packages/orq-rc/src/mcp-server/tools/agentsList.ts +9 -5
  66. package/packages/orq-rc/src/mcp-server/tools/agentsResponsesCreate.ts +8 -4
  67. package/packages/orq-rc/src/mcp-server/tools/agentsRetrieve.ts +5 -5
  68. package/packages/orq-rc/src/mcp-server/tools/agentsRun.ts +2 -2
  69. package/packages/orq-rc/src/mcp-server/tools/agentsStream.ts +7 -4
  70. package/packages/orq-rc/src/mcp-server/tools/agentsStreamRun.ts +2 -2
  71. package/packages/orq-rc/src/mcp-server/tools/agentsUpdate.ts +8 -4
  72. package/packages/orq-rc/src/models/errors/createagentrequest.ts +67 -0
  73. package/packages/orq-rc/src/models/errors/deleteagent.ts +2 -2
  74. package/packages/orq-rc/src/models/errors/index.ts +2 -3
  75. package/packages/orq-rc/src/models/errors/{listagenttasks.ts → retrieveagentrequest.ts} +15 -15
  76. package/packages/orq-rc/src/models/errors/updateagent.ts +2 -2
  77. package/packages/orq-rc/src/models/operations/{createagent.ts → createagentrequest.ts} +1643 -1485
  78. package/packages/orq-rc/src/models/operations/{createagentresponse.ts → createagentresponserequest.ts} +141 -127
  79. package/packages/orq-rc/src/models/operations/createbudget.ts +2 -2
  80. package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
  81. package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
  82. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +8 -8
  83. package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
  84. package/packages/orq-rc/src/models/operations/createeval.ts +28 -28
  85. package/packages/orq-rc/src/models/operations/createprompt.ts +4 -4
  86. package/packages/orq-rc/src/models/operations/createtool.ts +12 -12
  87. package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
  88. package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
  89. package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
  90. package/packages/orq-rc/src/models/operations/getalltools.ts +12 -12
  91. package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
  92. package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
  93. package/packages/orq-rc/src/models/operations/index.ts +3 -7
  94. package/packages/orq-rc/src/models/operations/invokeagent.ts +153 -190
  95. package/packages/orq-rc/src/models/operations/listagents.ts +9 -21
  96. package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
  97. package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
  98. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +8 -8
  99. package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
  100. package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
  101. package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +3741 -0
  102. package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
  103. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +8 -8
  104. package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
  105. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
  106. package/packages/orq-rc/src/models/operations/retrievetool.ts +12 -12
  107. package/packages/orq-rc/src/models/operations/runagent.ts +53 -57
  108. package/packages/orq-rc/src/models/operations/streamagent.ts +1 -1
  109. package/packages/orq-rc/src/models/operations/streamrunagent.ts +68 -82
  110. package/packages/orq-rc/src/models/operations/updateagent.ts +17 -17
  111. package/packages/orq-rc/src/models/operations/updatebudget.ts +2 -2
  112. package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
  113. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +8 -8
  114. package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
  115. package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
  116. package/packages/orq-rc/src/models/operations/updateeval.ts +28 -28
  117. package/packages/orq-rc/src/models/operations/updateprompt.ts +4 -4
  118. package/packages/orq-rc/src/models/operations/updatetool.ts +14 -14
  119. package/packages/orq-rc/src/sdk/agents.ts +51 -99
  120. package/packages/orq-rc/src/sdk/responses.ts +7 -5
  121. package/src/lib/config.ts +2 -2
  122. package/src/mcp-server/mcp-server.ts +1 -1
  123. package/src/mcp-server/server.ts +1 -1
  124. package/src/models/operations/createbudget.ts +2 -2
  125. package/src/models/operations/createcontact.ts +2 -2
  126. package/src/models/operations/createdataset.ts +2 -2
  127. package/src/models/operations/createdatasetitem.ts +8 -8
  128. package/src/models/operations/createdatasource.ts +2 -2
  129. package/src/models/operations/createeval.ts +28 -28
  130. package/src/models/operations/createtool.ts +12 -12
  131. package/src/models/operations/fileget.ts +2 -2
  132. package/src/models/operations/filelist.ts +2 -2
  133. package/src/models/operations/fileupload.ts +2 -2
  134. package/src/models/operations/getalltools.ts +12 -12
  135. package/src/models/operations/getbudget.ts +2 -2
  136. package/src/models/operations/getevals.ts +28 -28
  137. package/src/models/operations/listbudgets.ts +2 -2
  138. package/src/models/operations/listcontacts.ts +2 -2
  139. package/src/models/operations/listdatasetdatapoints.ts +8 -8
  140. package/src/models/operations/listdatasets.ts +2 -2
  141. package/src/models/operations/listdatasources.ts +2 -2
  142. package/src/models/operations/retrievecontact.ts +2 -2
  143. package/src/models/operations/retrievedatapoint.ts +8 -8
  144. package/src/models/operations/retrievedataset.ts +2 -2
  145. package/src/models/operations/retrievedatasource.ts +2 -2
  146. package/src/models/operations/retrievetool.ts +12 -12
  147. package/src/models/operations/runagent.ts +2 -2
  148. package/src/models/operations/streamrunagent.ts +2 -2
  149. package/src/models/operations/updatebudget.ts +2 -2
  150. package/src/models/operations/updatecontact.ts +2 -2
  151. package/src/models/operations/updatedatapoint.ts +8 -8
  152. package/src/models/operations/updatedataset.ts +2 -2
  153. package/src/models/operations/updatedatasource.ts +2 -2
  154. package/src/models/operations/updateeval.ts +28 -28
  155. package/src/models/operations/updatetool.ts +14 -14
  156. package/packages/orq-rc/src/funcs/agentsListActions.ts +0 -169
  157. package/packages/orq-rc/src/funcs/agentsListTasks.ts +0 -183
  158. package/packages/orq-rc/src/funcs/agentsRetrieveAction.ts +0 -173
  159. package/packages/orq-rc/src/funcs/agentsRetrieveTask.ts +0 -179
  160. package/packages/orq-rc/src/mcp-server/tools/agentsListActions.ts +0 -35
  161. package/packages/orq-rc/src/mcp-server/tools/agentsListTasks.ts +0 -37
  162. package/packages/orq-rc/src/mcp-server/tools/agentsRetrieveAction.ts +0 -35
  163. package/packages/orq-rc/src/mcp-server/tools/agentsRetrieveTask.ts +0 -37
  164. package/packages/orq-rc/src/models/errors/createagent.ts +0 -67
  165. package/packages/orq-rc/src/models/errors/getagent.ts +0 -67
  166. package/packages/orq-rc/src/models/operations/getagent.ts +0 -3480
  167. package/packages/orq-rc/src/models/operations/getagenttask.ts +0 -2389
  168. package/packages/orq-rc/src/models/operations/listactions.ts +0 -427
  169. package/packages/orq-rc/src/models/operations/listagenttasks.ts +0 -2614
  170. package/packages/orq-rc/src/models/operations/retrieveaction.ts +0 -354
@@ -1,427 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v3";
6
- import { remap as remap$ } from "../../lib/primitives.js";
7
- 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 ListActionsRequest = {
13
- agentKey: string;
14
- taskId: string;
15
- };
16
-
17
- export const ListActionsObject = {
18
- List: "list",
19
- } as const;
20
- export type ListActionsObject = ClosedEnum<typeof ListActionsObject>;
21
-
22
- export type ListActionsTool = {
23
- /**
24
- * The tool' id in orq
25
- */
26
- id: string;
27
- displayName: string;
28
- requiresApproval?: boolean | undefined;
29
- };
30
-
31
- /**
32
- * Review status of the tool call
33
- */
34
- export const ListActionsReview = {
35
- Approved: "approved",
36
- Rejected: "rejected",
37
- } as const;
38
- /**
39
- * Review status of the tool call
40
- */
41
- export type ListActionsReview = ClosedEnum<typeof ListActionsReview>;
42
-
43
- /**
44
- * An action is a tool that an agent chooses to use. If executed is false, together with the output being there, it can indicate that a tool was mocked
45
- */
46
- export type ListActionsState = {
47
- /**
48
- * Review status of the tool call
49
- */
50
- review?: ListActionsReview | null | undefined;
51
- /**
52
- * The source of the review, where it was approved or rejected
53
- */
54
- reviewSource?: string | undefined;
55
- /**
56
- * Only refers to an internal user of the platform, who approved or rejected the tool execution
57
- */
58
- reviewedById?: string | undefined;
59
- executed?: boolean | undefined;
60
- error?: string | undefined;
61
- input: { [k: string]: any };
62
- output: { [k: string]: any };
63
- };
64
-
65
- export type ListActionsData = {
66
- /**
67
- * Internal id for the action
68
- */
69
- id: string;
70
- /**
71
- * The tool call id what the agent chooses to use and generates
72
- */
73
- agentToolCallId: string;
74
- tool: ListActionsTool;
75
- created: string;
76
- updated: string;
77
- started?: string | undefined;
78
- finished?: string | undefined;
79
- agentId: string;
80
- actionType: string;
81
- agentExecutionId: string;
82
- workspaceId: string;
83
- /**
84
- * An action is a tool that an agent chooses to use. If executed is false, together with the output being there, it can indicate that a tool was mocked
85
- */
86
- state: ListActionsState;
87
- };
88
-
89
- /**
90
- * List of actions
91
- */
92
- export type ListActionsResponseBody = {
93
- object: ListActionsObject;
94
- data: Array<ListActionsData>;
95
- hasMore: boolean;
96
- };
97
-
98
- /** @internal */
99
- export const ListActionsRequest$inboundSchema: z.ZodType<
100
- ListActionsRequest,
101
- z.ZodTypeDef,
102
- unknown
103
- > = z.object({
104
- agent_key: z.string(),
105
- task_id: z.string(),
106
- }).transform((v) => {
107
- return remap$(v, {
108
- "agent_key": "agentKey",
109
- "task_id": "taskId",
110
- });
111
- });
112
- /** @internal */
113
- export type ListActionsRequest$Outbound = {
114
- agent_key: string;
115
- task_id: string;
116
- };
117
-
118
- /** @internal */
119
- export const ListActionsRequest$outboundSchema: z.ZodType<
120
- ListActionsRequest$Outbound,
121
- z.ZodTypeDef,
122
- ListActionsRequest
123
- > = z.object({
124
- agentKey: z.string(),
125
- taskId: z.string(),
126
- }).transform((v) => {
127
- return remap$(v, {
128
- agentKey: "agent_key",
129
- taskId: "task_id",
130
- });
131
- });
132
-
133
- export function listActionsRequestToJSON(
134
- listActionsRequest: ListActionsRequest,
135
- ): string {
136
- return JSON.stringify(
137
- ListActionsRequest$outboundSchema.parse(listActionsRequest),
138
- );
139
- }
140
- export function listActionsRequestFromJSON(
141
- jsonString: string,
142
- ): SafeParseResult<ListActionsRequest, SDKValidationError> {
143
- return safeParse(
144
- jsonString,
145
- (x) => ListActionsRequest$inboundSchema.parse(JSON.parse(x)),
146
- `Failed to parse 'ListActionsRequest' from JSON`,
147
- );
148
- }
149
-
150
- /** @internal */
151
- export const ListActionsObject$inboundSchema: z.ZodNativeEnum<
152
- typeof ListActionsObject
153
- > = z.nativeEnum(ListActionsObject);
154
- /** @internal */
155
- export const ListActionsObject$outboundSchema: z.ZodNativeEnum<
156
- typeof ListActionsObject
157
- > = ListActionsObject$inboundSchema;
158
-
159
- /** @internal */
160
- export const ListActionsTool$inboundSchema: z.ZodType<
161
- ListActionsTool,
162
- z.ZodTypeDef,
163
- unknown
164
- > = z.object({
165
- id: z.string(),
166
- display_name: z.string(),
167
- requires_approval: z.boolean().default(false),
168
- }).transform((v) => {
169
- return remap$(v, {
170
- "display_name": "displayName",
171
- "requires_approval": "requiresApproval",
172
- });
173
- });
174
- /** @internal */
175
- export type ListActionsTool$Outbound = {
176
- id: string;
177
- display_name: string;
178
- requires_approval: boolean;
179
- };
180
-
181
- /** @internal */
182
- export const ListActionsTool$outboundSchema: z.ZodType<
183
- ListActionsTool$Outbound,
184
- z.ZodTypeDef,
185
- ListActionsTool
186
- > = z.object({
187
- id: z.string(),
188
- displayName: z.string(),
189
- requiresApproval: z.boolean().default(false),
190
- }).transform((v) => {
191
- return remap$(v, {
192
- displayName: "display_name",
193
- requiresApproval: "requires_approval",
194
- });
195
- });
196
-
197
- export function listActionsToolToJSON(
198
- listActionsTool: ListActionsTool,
199
- ): string {
200
- return JSON.stringify(ListActionsTool$outboundSchema.parse(listActionsTool));
201
- }
202
- export function listActionsToolFromJSON(
203
- jsonString: string,
204
- ): SafeParseResult<ListActionsTool, SDKValidationError> {
205
- return safeParse(
206
- jsonString,
207
- (x) => ListActionsTool$inboundSchema.parse(JSON.parse(x)),
208
- `Failed to parse 'ListActionsTool' from JSON`,
209
- );
210
- }
211
-
212
- /** @internal */
213
- export const ListActionsReview$inboundSchema: z.ZodNativeEnum<
214
- typeof ListActionsReview
215
- > = z.nativeEnum(ListActionsReview);
216
- /** @internal */
217
- export const ListActionsReview$outboundSchema: z.ZodNativeEnum<
218
- typeof ListActionsReview
219
- > = ListActionsReview$inboundSchema;
220
-
221
- /** @internal */
222
- export const ListActionsState$inboundSchema: z.ZodType<
223
- ListActionsState,
224
- z.ZodTypeDef,
225
- unknown
226
- > = z.object({
227
- review: z.nullable(ListActionsReview$inboundSchema).default(null),
228
- review_source: z.string().optional(),
229
- reviewed_by_id: z.string().optional(),
230
- executed: z.boolean().default(false),
231
- error: z.string().optional(),
232
- input: z.record(z.any()),
233
- output: z.record(z.any()),
234
- }).transform((v) => {
235
- return remap$(v, {
236
- "review_source": "reviewSource",
237
- "reviewed_by_id": "reviewedById",
238
- });
239
- });
240
- /** @internal */
241
- export type ListActionsState$Outbound = {
242
- review: string | null;
243
- review_source?: string | undefined;
244
- reviewed_by_id?: string | undefined;
245
- executed: boolean;
246
- error?: string | undefined;
247
- input: { [k: string]: any };
248
- output: { [k: string]: any };
249
- };
250
-
251
- /** @internal */
252
- export const ListActionsState$outboundSchema: z.ZodType<
253
- ListActionsState$Outbound,
254
- z.ZodTypeDef,
255
- ListActionsState
256
- > = z.object({
257
- review: z.nullable(ListActionsReview$outboundSchema).default(null),
258
- reviewSource: z.string().optional(),
259
- reviewedById: z.string().optional(),
260
- executed: z.boolean().default(false),
261
- error: z.string().optional(),
262
- input: z.record(z.any()),
263
- output: z.record(z.any()),
264
- }).transform((v) => {
265
- return remap$(v, {
266
- reviewSource: "review_source",
267
- reviewedById: "reviewed_by_id",
268
- });
269
- });
270
-
271
- export function listActionsStateToJSON(
272
- listActionsState: ListActionsState,
273
- ): string {
274
- return JSON.stringify(
275
- ListActionsState$outboundSchema.parse(listActionsState),
276
- );
277
- }
278
- export function listActionsStateFromJSON(
279
- jsonString: string,
280
- ): SafeParseResult<ListActionsState, SDKValidationError> {
281
- return safeParse(
282
- jsonString,
283
- (x) => ListActionsState$inboundSchema.parse(JSON.parse(x)),
284
- `Failed to parse 'ListActionsState' from JSON`,
285
- );
286
- }
287
-
288
- /** @internal */
289
- export const ListActionsData$inboundSchema: z.ZodType<
290
- ListActionsData,
291
- z.ZodTypeDef,
292
- unknown
293
- > = z.object({
294
- _id: z.string(),
295
- agent_tool_call_id: z.string(),
296
- tool: z.lazy(() => ListActionsTool$inboundSchema),
297
- created: z.string(),
298
- updated: z.string(),
299
- started: z.string().optional(),
300
- finished: z.string().optional(),
301
- agent_id: z.string(),
302
- action_type: z.string(),
303
- agent_execution_id: z.string(),
304
- workspace_id: z.string(),
305
- state: z.lazy(() => ListActionsState$inboundSchema),
306
- }).transform((v) => {
307
- return remap$(v, {
308
- "_id": "id",
309
- "agent_tool_call_id": "agentToolCallId",
310
- "agent_id": "agentId",
311
- "action_type": "actionType",
312
- "agent_execution_id": "agentExecutionId",
313
- "workspace_id": "workspaceId",
314
- });
315
- });
316
- /** @internal */
317
- export type ListActionsData$Outbound = {
318
- _id: string;
319
- agent_tool_call_id: string;
320
- tool: ListActionsTool$Outbound;
321
- created: string;
322
- updated: string;
323
- started?: string | undefined;
324
- finished?: string | undefined;
325
- agent_id: string;
326
- action_type: string;
327
- agent_execution_id: string;
328
- workspace_id: string;
329
- state: ListActionsState$Outbound;
330
- };
331
-
332
- /** @internal */
333
- export const ListActionsData$outboundSchema: z.ZodType<
334
- ListActionsData$Outbound,
335
- z.ZodTypeDef,
336
- ListActionsData
337
- > = z.object({
338
- id: z.string(),
339
- agentToolCallId: z.string(),
340
- tool: z.lazy(() => ListActionsTool$outboundSchema),
341
- created: z.string(),
342
- updated: z.string(),
343
- started: z.string().optional(),
344
- finished: z.string().optional(),
345
- agentId: z.string(),
346
- actionType: z.string(),
347
- agentExecutionId: z.string(),
348
- workspaceId: z.string(),
349
- state: z.lazy(() => ListActionsState$outboundSchema),
350
- }).transform((v) => {
351
- return remap$(v, {
352
- id: "_id",
353
- agentToolCallId: "agent_tool_call_id",
354
- agentId: "agent_id",
355
- actionType: "action_type",
356
- agentExecutionId: "agent_execution_id",
357
- workspaceId: "workspace_id",
358
- });
359
- });
360
-
361
- export function listActionsDataToJSON(
362
- listActionsData: ListActionsData,
363
- ): string {
364
- return JSON.stringify(ListActionsData$outboundSchema.parse(listActionsData));
365
- }
366
- export function listActionsDataFromJSON(
367
- jsonString: string,
368
- ): SafeParseResult<ListActionsData, SDKValidationError> {
369
- return safeParse(
370
- jsonString,
371
- (x) => ListActionsData$inboundSchema.parse(JSON.parse(x)),
372
- `Failed to parse 'ListActionsData' from JSON`,
373
- );
374
- }
375
-
376
- /** @internal */
377
- export const ListActionsResponseBody$inboundSchema: z.ZodType<
378
- ListActionsResponseBody,
379
- z.ZodTypeDef,
380
- unknown
381
- > = z.object({
382
- object: ListActionsObject$inboundSchema,
383
- data: z.array(z.lazy(() => ListActionsData$inboundSchema)),
384
- has_more: z.boolean(),
385
- }).transform((v) => {
386
- return remap$(v, {
387
- "has_more": "hasMore",
388
- });
389
- });
390
- /** @internal */
391
- export type ListActionsResponseBody$Outbound = {
392
- object: string;
393
- data: Array<ListActionsData$Outbound>;
394
- has_more: boolean;
395
- };
396
-
397
- /** @internal */
398
- export const ListActionsResponseBody$outboundSchema: z.ZodType<
399
- ListActionsResponseBody$Outbound,
400
- z.ZodTypeDef,
401
- ListActionsResponseBody
402
- > = z.object({
403
- object: ListActionsObject$outboundSchema,
404
- data: z.array(z.lazy(() => ListActionsData$outboundSchema)),
405
- hasMore: z.boolean(),
406
- }).transform((v) => {
407
- return remap$(v, {
408
- hasMore: "has_more",
409
- });
410
- });
411
-
412
- export function listActionsResponseBodyToJSON(
413
- listActionsResponseBody: ListActionsResponseBody,
414
- ): string {
415
- return JSON.stringify(
416
- ListActionsResponseBody$outboundSchema.parse(listActionsResponseBody),
417
- );
418
- }
419
- export function listActionsResponseBodyFromJSON(
420
- jsonString: string,
421
- ): SafeParseResult<ListActionsResponseBody, SDKValidationError> {
422
- return safeParse(
423
- jsonString,
424
- (x) => ListActionsResponseBody$inboundSchema.parse(JSON.parse(x)),
425
- `Failed to parse 'ListActionsResponseBody' from JSON`,
426
- );
427
- }