@orq-ai/node 3.11.2 → 3.11.3

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 (105) hide show
  1. package/bin/mcp-server.js +103 -103
  2. package/bin/mcp-server.js.map +26 -26
  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/createcontact.js +2 -2
  10. package/models/operations/createdataset.js +2 -2
  11. package/models/operations/createdatasetitem.js +2 -2
  12. package/models/operations/createdatasource.js +2 -2
  13. package/models/operations/createeval.js +16 -16
  14. package/models/operations/fileget.js +2 -2
  15. package/models/operations/filelist.js +2 -2
  16. package/models/operations/fileupload.js +2 -2
  17. package/models/operations/getevals.js +28 -28
  18. package/models/operations/listcontacts.js +2 -2
  19. package/models/operations/listdatasetdatapoints.js +2 -2
  20. package/models/operations/listdatasets.js +2 -2
  21. package/models/operations/listdatasources.js +2 -2
  22. package/models/operations/retrievecontact.js +2 -2
  23. package/models/operations/retrievedatapoint.js +2 -2
  24. package/models/operations/retrievedataset.js +2 -2
  25. package/models/operations/retrievedatasource.js +2 -2
  26. package/models/operations/updatecontact.js +2 -2
  27. package/models/operations/updatedatapoint.js +2 -2
  28. package/models/operations/updatedataset.js +2 -2
  29. package/models/operations/updatedatasource.js +2 -2
  30. package/models/operations/updateeval.js +16 -16
  31. package/package.json +1 -1
  32. package/packages/orq-rc/README.md +99 -86
  33. package/packages/orq-rc/docs/sdks/budgets/README.md +401 -0
  34. package/packages/orq-rc/examples/package-lock.json +1 -1
  35. package/packages/orq-rc/jsr.json +1 -1
  36. package/packages/orq-rc/package-lock.json +2 -2
  37. package/packages/orq-rc/package.json +1 -1
  38. package/packages/orq-rc/src/funcs/budgetsCreate.ts +160 -0
  39. package/packages/orq-rc/src/funcs/budgetsDelete.ts +167 -0
  40. package/packages/orq-rc/src/funcs/budgetsGet.ts +166 -0
  41. package/packages/orq-rc/src/funcs/budgetsList.ts +170 -0
  42. package/packages/orq-rc/src/funcs/budgetsUpdate.ts +167 -0
  43. package/packages/orq-rc/src/lib/config.ts +3 -3
  44. package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
  45. package/packages/orq-rc/src/mcp-server/server.ts +11 -1
  46. package/packages/orq-rc/src/mcp-server/tools/budgetsCreate.ts +37 -0
  47. package/packages/orq-rc/src/mcp-server/tools/budgetsDelete.ts +35 -0
  48. package/packages/orq-rc/src/mcp-server/tools/budgetsGet.ts +37 -0
  49. package/packages/orq-rc/src/mcp-server/tools/budgetsList.ts +37 -0
  50. package/packages/orq-rc/src/mcp-server/tools/budgetsUpdate.ts +37 -0
  51. package/packages/orq-rc/src/models/operations/createbudget.ts +534 -0
  52. package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
  53. package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
  54. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +2 -2
  55. package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
  56. package/packages/orq-rc/src/models/operations/createeval.ts +16 -16
  57. package/packages/orq-rc/src/models/operations/deletebudget.ts +66 -0
  58. package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
  59. package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
  60. package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
  61. package/packages/orq-rc/src/models/operations/getbudget.ts +437 -0
  62. package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
  63. package/packages/orq-rc/src/models/operations/index.ts +5 -0
  64. package/packages/orq-rc/src/models/operations/listbudgets.ts +617 -0
  65. package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
  66. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +2 -2
  67. package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
  68. package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
  69. package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
  70. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +2 -2
  71. package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
  72. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
  73. package/packages/orq-rc/src/models/operations/updatebudget.ts +628 -0
  74. package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
  75. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +2 -2
  76. package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
  77. package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
  78. package/packages/orq-rc/src/models/operations/updateeval.ts +16 -16
  79. package/packages/orq-rc/src/sdk/budgets.ts +99 -0
  80. package/packages/orq-rc/src/sdk/sdk.ts +6 -0
  81. package/src/lib/config.ts +2 -2
  82. package/src/mcp-server/mcp-server.ts +1 -1
  83. package/src/mcp-server/server.ts +1 -1
  84. package/src/models/operations/createcontact.ts +2 -2
  85. package/src/models/operations/createdataset.ts +2 -2
  86. package/src/models/operations/createdatasetitem.ts +2 -2
  87. package/src/models/operations/createdatasource.ts +2 -2
  88. package/src/models/operations/createeval.ts +16 -16
  89. package/src/models/operations/fileget.ts +2 -2
  90. package/src/models/operations/filelist.ts +2 -2
  91. package/src/models/operations/fileupload.ts +2 -2
  92. package/src/models/operations/getevals.ts +28 -28
  93. package/src/models/operations/listcontacts.ts +2 -2
  94. package/src/models/operations/listdatasetdatapoints.ts +2 -2
  95. package/src/models/operations/listdatasets.ts +2 -2
  96. package/src/models/operations/listdatasources.ts +2 -2
  97. package/src/models/operations/retrievecontact.ts +2 -2
  98. package/src/models/operations/retrievedatapoint.ts +2 -2
  99. package/src/models/operations/retrievedataset.ts +2 -2
  100. package/src/models/operations/retrievedatasource.ts +2 -2
  101. package/src/models/operations/updatecontact.ts +2 -2
  102. package/src/models/operations/updatedatapoint.ts +2 -2
  103. package/src/models/operations/updatedataset.ts +2 -2
  104. package/src/models/operations/updatedatasource.ts +2 -2
  105. package/src/models/operations/updateeval.ts +16 -16
@@ -0,0 +1,617 @@
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
+ /**
13
+ * Filter by budget entity type
14
+ */
15
+ export const QueryParamType = {
16
+ ApiKey: "api_key",
17
+ Contact: "contact",
18
+ Workspace: "workspace",
19
+ } as const;
20
+ /**
21
+ * Filter by budget entity type
22
+ */
23
+ export type QueryParamType = ClosedEnum<typeof QueryParamType>;
24
+
25
+ export type ListBudgetsRequest = {
26
+ /**
27
+ * A limit on the number of objects to be returned. Limit can range between 1 and 50, and the default is 10
28
+ */
29
+ limit?: number | undefined;
30
+ /**
31
+ * 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.
32
+ */
33
+ startingAfter?: string | undefined;
34
+ /**
35
+ * 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.
36
+ */
37
+ endingBefore?: string | undefined;
38
+ /**
39
+ * Filter by budget entity type
40
+ */
41
+ type?: QueryParamType | undefined;
42
+ entityId?: string | undefined;
43
+ isActive?: boolean | null | undefined;
44
+ };
45
+
46
+ export const ListBudgetsObject = {
47
+ List: "list",
48
+ } as const;
49
+ export type ListBudgetsObject = ClosedEnum<typeof ListBudgetsObject>;
50
+
51
+ /**
52
+ * Budget entity type
53
+ */
54
+ export const ListBudgetsType = {
55
+ ApiKey: "api_key",
56
+ Contact: "contact",
57
+ Workspace: "workspace",
58
+ } as const;
59
+ /**
60
+ * Budget entity type
61
+ */
62
+ export type ListBudgetsType = ClosedEnum<typeof ListBudgetsType>;
63
+
64
+ /**
65
+ * Budget period type
66
+ */
67
+ export const ListBudgetsPeriod = {
68
+ Daily: "daily",
69
+ Weekly: "weekly",
70
+ Monthly: "monthly",
71
+ Yearly: "yearly",
72
+ } as const;
73
+ /**
74
+ * Budget period type
75
+ */
76
+ export type ListBudgetsPeriod = ClosedEnum<typeof ListBudgetsPeriod>;
77
+
78
+ /**
79
+ * Budget configuration
80
+ */
81
+ export type ListBudgetsBudget = {
82
+ /**
83
+ * Budget period type
84
+ */
85
+ period: ListBudgetsPeriod;
86
+ /**
87
+ * Budget amount in USD for the specified period
88
+ */
89
+ amount: number;
90
+ };
91
+
92
+ export type ListBudgetsConsumption = {
93
+ /**
94
+ * Current period consumption in USD
95
+ */
96
+ currentAmount: number;
97
+ /**
98
+ * Remaining budget (amount - current_amount)
99
+ */
100
+ remainingAmount: number;
101
+ /**
102
+ * When the current period started
103
+ */
104
+ periodStart: string | null;
105
+ /**
106
+ * When the current period will reset
107
+ */
108
+ periodEnd: string | null;
109
+ };
110
+
111
+ export type ListBudgetsData = {
112
+ /**
113
+ * Unique ULID for the budget configuration
114
+ */
115
+ id: string;
116
+ /**
117
+ * Budget entity type
118
+ */
119
+ type: ListBudgetsType;
120
+ /**
121
+ * Contact external identifier (present when type is "contact")
122
+ */
123
+ contactId?: string | undefined;
124
+ /**
125
+ * API Key identifier (present when type is "api_key")
126
+ */
127
+ apiKeyId?: string | undefined;
128
+ /**
129
+ * Budget configuration
130
+ */
131
+ budget: ListBudgetsBudget;
132
+ /**
133
+ * Whether this budget configuration is currently active
134
+ */
135
+ isActive: boolean;
136
+ consumption?: ListBudgetsConsumption | undefined;
137
+ /**
138
+ * The date and time the resource was created
139
+ */
140
+ created?: Date | undefined;
141
+ /**
142
+ * The date and time the resource was last updated
143
+ */
144
+ updated?: Date | undefined;
145
+ };
146
+
147
+ /**
148
+ * List of budget configurations
149
+ */
150
+ export type ListBudgetsResponseBody = {
151
+ object: ListBudgetsObject;
152
+ data: Array<ListBudgetsData>;
153
+ hasMore: boolean;
154
+ };
155
+
156
+ /** @internal */
157
+ export const QueryParamType$inboundSchema: z.ZodNativeEnum<
158
+ typeof QueryParamType
159
+ > = z.nativeEnum(QueryParamType);
160
+
161
+ /** @internal */
162
+ export const QueryParamType$outboundSchema: z.ZodNativeEnum<
163
+ typeof QueryParamType
164
+ > = QueryParamType$inboundSchema;
165
+
166
+ /**
167
+ * @internal
168
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
169
+ */
170
+ export namespace QueryParamType$ {
171
+ /** @deprecated use `QueryParamType$inboundSchema` instead. */
172
+ export const inboundSchema = QueryParamType$inboundSchema;
173
+ /** @deprecated use `QueryParamType$outboundSchema` instead. */
174
+ export const outboundSchema = QueryParamType$outboundSchema;
175
+ }
176
+
177
+ /** @internal */
178
+ export const ListBudgetsRequest$inboundSchema: z.ZodType<
179
+ ListBudgetsRequest,
180
+ z.ZodTypeDef,
181
+ unknown
182
+ > = z.object({
183
+ limit: z.number().default(10),
184
+ starting_after: z.string().optional(),
185
+ ending_before: z.string().optional(),
186
+ type: QueryParamType$inboundSchema.optional(),
187
+ entity_id: z.string().optional(),
188
+ is_active: z.nullable(z.boolean()).optional(),
189
+ }).transform((v) => {
190
+ return remap$(v, {
191
+ "starting_after": "startingAfter",
192
+ "ending_before": "endingBefore",
193
+ "entity_id": "entityId",
194
+ "is_active": "isActive",
195
+ });
196
+ });
197
+
198
+ /** @internal */
199
+ export type ListBudgetsRequest$Outbound = {
200
+ limit: number;
201
+ starting_after?: string | undefined;
202
+ ending_before?: string | undefined;
203
+ type?: string | undefined;
204
+ entity_id?: string | undefined;
205
+ is_active?: boolean | null | undefined;
206
+ };
207
+
208
+ /** @internal */
209
+ export const ListBudgetsRequest$outboundSchema: z.ZodType<
210
+ ListBudgetsRequest$Outbound,
211
+ z.ZodTypeDef,
212
+ ListBudgetsRequest
213
+ > = z.object({
214
+ limit: z.number().default(10),
215
+ startingAfter: z.string().optional(),
216
+ endingBefore: z.string().optional(),
217
+ type: QueryParamType$outboundSchema.optional(),
218
+ entityId: z.string().optional(),
219
+ isActive: z.nullable(z.boolean()).optional(),
220
+ }).transform((v) => {
221
+ return remap$(v, {
222
+ startingAfter: "starting_after",
223
+ endingBefore: "ending_before",
224
+ entityId: "entity_id",
225
+ isActive: "is_active",
226
+ });
227
+ });
228
+
229
+ /**
230
+ * @internal
231
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
232
+ */
233
+ export namespace ListBudgetsRequest$ {
234
+ /** @deprecated use `ListBudgetsRequest$inboundSchema` instead. */
235
+ export const inboundSchema = ListBudgetsRequest$inboundSchema;
236
+ /** @deprecated use `ListBudgetsRequest$outboundSchema` instead. */
237
+ export const outboundSchema = ListBudgetsRequest$outboundSchema;
238
+ /** @deprecated use `ListBudgetsRequest$Outbound` instead. */
239
+ export type Outbound = ListBudgetsRequest$Outbound;
240
+ }
241
+
242
+ export function listBudgetsRequestToJSON(
243
+ listBudgetsRequest: ListBudgetsRequest,
244
+ ): string {
245
+ return JSON.stringify(
246
+ ListBudgetsRequest$outboundSchema.parse(listBudgetsRequest),
247
+ );
248
+ }
249
+
250
+ export function listBudgetsRequestFromJSON(
251
+ jsonString: string,
252
+ ): SafeParseResult<ListBudgetsRequest, SDKValidationError> {
253
+ return safeParse(
254
+ jsonString,
255
+ (x) => ListBudgetsRequest$inboundSchema.parse(JSON.parse(x)),
256
+ `Failed to parse 'ListBudgetsRequest' from JSON`,
257
+ );
258
+ }
259
+
260
+ /** @internal */
261
+ export const ListBudgetsObject$inboundSchema: z.ZodNativeEnum<
262
+ typeof ListBudgetsObject
263
+ > = z.nativeEnum(ListBudgetsObject);
264
+
265
+ /** @internal */
266
+ export const ListBudgetsObject$outboundSchema: z.ZodNativeEnum<
267
+ typeof ListBudgetsObject
268
+ > = ListBudgetsObject$inboundSchema;
269
+
270
+ /**
271
+ * @internal
272
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
273
+ */
274
+ export namespace ListBudgetsObject$ {
275
+ /** @deprecated use `ListBudgetsObject$inboundSchema` instead. */
276
+ export const inboundSchema = ListBudgetsObject$inboundSchema;
277
+ /** @deprecated use `ListBudgetsObject$outboundSchema` instead. */
278
+ export const outboundSchema = ListBudgetsObject$outboundSchema;
279
+ }
280
+
281
+ /** @internal */
282
+ export const ListBudgetsType$inboundSchema: z.ZodNativeEnum<
283
+ typeof ListBudgetsType
284
+ > = z.nativeEnum(ListBudgetsType);
285
+
286
+ /** @internal */
287
+ export const ListBudgetsType$outboundSchema: z.ZodNativeEnum<
288
+ typeof ListBudgetsType
289
+ > = ListBudgetsType$inboundSchema;
290
+
291
+ /**
292
+ * @internal
293
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
294
+ */
295
+ export namespace ListBudgetsType$ {
296
+ /** @deprecated use `ListBudgetsType$inboundSchema` instead. */
297
+ export const inboundSchema = ListBudgetsType$inboundSchema;
298
+ /** @deprecated use `ListBudgetsType$outboundSchema` instead. */
299
+ export const outboundSchema = ListBudgetsType$outboundSchema;
300
+ }
301
+
302
+ /** @internal */
303
+ export const ListBudgetsPeriod$inboundSchema: z.ZodNativeEnum<
304
+ typeof ListBudgetsPeriod
305
+ > = z.nativeEnum(ListBudgetsPeriod);
306
+
307
+ /** @internal */
308
+ export const ListBudgetsPeriod$outboundSchema: z.ZodNativeEnum<
309
+ typeof ListBudgetsPeriod
310
+ > = ListBudgetsPeriod$inboundSchema;
311
+
312
+ /**
313
+ * @internal
314
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
315
+ */
316
+ export namespace ListBudgetsPeriod$ {
317
+ /** @deprecated use `ListBudgetsPeriod$inboundSchema` instead. */
318
+ export const inboundSchema = ListBudgetsPeriod$inboundSchema;
319
+ /** @deprecated use `ListBudgetsPeriod$outboundSchema` instead. */
320
+ export const outboundSchema = ListBudgetsPeriod$outboundSchema;
321
+ }
322
+
323
+ /** @internal */
324
+ export const ListBudgetsBudget$inboundSchema: z.ZodType<
325
+ ListBudgetsBudget,
326
+ z.ZodTypeDef,
327
+ unknown
328
+ > = z.object({
329
+ period: ListBudgetsPeriod$inboundSchema,
330
+ amount: z.number(),
331
+ });
332
+
333
+ /** @internal */
334
+ export type ListBudgetsBudget$Outbound = {
335
+ period: string;
336
+ amount: number;
337
+ };
338
+
339
+ /** @internal */
340
+ export const ListBudgetsBudget$outboundSchema: z.ZodType<
341
+ ListBudgetsBudget$Outbound,
342
+ z.ZodTypeDef,
343
+ ListBudgetsBudget
344
+ > = z.object({
345
+ period: ListBudgetsPeriod$outboundSchema,
346
+ amount: z.number(),
347
+ });
348
+
349
+ /**
350
+ * @internal
351
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
352
+ */
353
+ export namespace ListBudgetsBudget$ {
354
+ /** @deprecated use `ListBudgetsBudget$inboundSchema` instead. */
355
+ export const inboundSchema = ListBudgetsBudget$inboundSchema;
356
+ /** @deprecated use `ListBudgetsBudget$outboundSchema` instead. */
357
+ export const outboundSchema = ListBudgetsBudget$outboundSchema;
358
+ /** @deprecated use `ListBudgetsBudget$Outbound` instead. */
359
+ export type Outbound = ListBudgetsBudget$Outbound;
360
+ }
361
+
362
+ export function listBudgetsBudgetToJSON(
363
+ listBudgetsBudget: ListBudgetsBudget,
364
+ ): string {
365
+ return JSON.stringify(
366
+ ListBudgetsBudget$outboundSchema.parse(listBudgetsBudget),
367
+ );
368
+ }
369
+
370
+ export function listBudgetsBudgetFromJSON(
371
+ jsonString: string,
372
+ ): SafeParseResult<ListBudgetsBudget, SDKValidationError> {
373
+ return safeParse(
374
+ jsonString,
375
+ (x) => ListBudgetsBudget$inboundSchema.parse(JSON.parse(x)),
376
+ `Failed to parse 'ListBudgetsBudget' from JSON`,
377
+ );
378
+ }
379
+
380
+ /** @internal */
381
+ export const ListBudgetsConsumption$inboundSchema: z.ZodType<
382
+ ListBudgetsConsumption,
383
+ z.ZodTypeDef,
384
+ unknown
385
+ > = z.object({
386
+ current_amount: z.number(),
387
+ remaining_amount: z.number(),
388
+ period_start: z.nullable(z.string()),
389
+ period_end: z.nullable(z.string()),
390
+ }).transform((v) => {
391
+ return remap$(v, {
392
+ "current_amount": "currentAmount",
393
+ "remaining_amount": "remainingAmount",
394
+ "period_start": "periodStart",
395
+ "period_end": "periodEnd",
396
+ });
397
+ });
398
+
399
+ /** @internal */
400
+ export type ListBudgetsConsumption$Outbound = {
401
+ current_amount: number;
402
+ remaining_amount: number;
403
+ period_start: string | null;
404
+ period_end: string | null;
405
+ };
406
+
407
+ /** @internal */
408
+ export const ListBudgetsConsumption$outboundSchema: z.ZodType<
409
+ ListBudgetsConsumption$Outbound,
410
+ z.ZodTypeDef,
411
+ ListBudgetsConsumption
412
+ > = z.object({
413
+ currentAmount: z.number(),
414
+ remainingAmount: z.number(),
415
+ periodStart: z.nullable(z.string()),
416
+ periodEnd: z.nullable(z.string()),
417
+ }).transform((v) => {
418
+ return remap$(v, {
419
+ currentAmount: "current_amount",
420
+ remainingAmount: "remaining_amount",
421
+ periodStart: "period_start",
422
+ periodEnd: "period_end",
423
+ });
424
+ });
425
+
426
+ /**
427
+ * @internal
428
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
429
+ */
430
+ export namespace ListBudgetsConsumption$ {
431
+ /** @deprecated use `ListBudgetsConsumption$inboundSchema` instead. */
432
+ export const inboundSchema = ListBudgetsConsumption$inboundSchema;
433
+ /** @deprecated use `ListBudgetsConsumption$outboundSchema` instead. */
434
+ export const outboundSchema = ListBudgetsConsumption$outboundSchema;
435
+ /** @deprecated use `ListBudgetsConsumption$Outbound` instead. */
436
+ export type Outbound = ListBudgetsConsumption$Outbound;
437
+ }
438
+
439
+ export function listBudgetsConsumptionToJSON(
440
+ listBudgetsConsumption: ListBudgetsConsumption,
441
+ ): string {
442
+ return JSON.stringify(
443
+ ListBudgetsConsumption$outboundSchema.parse(listBudgetsConsumption),
444
+ );
445
+ }
446
+
447
+ export function listBudgetsConsumptionFromJSON(
448
+ jsonString: string,
449
+ ): SafeParseResult<ListBudgetsConsumption, SDKValidationError> {
450
+ return safeParse(
451
+ jsonString,
452
+ (x) => ListBudgetsConsumption$inboundSchema.parse(JSON.parse(x)),
453
+ `Failed to parse 'ListBudgetsConsumption' from JSON`,
454
+ );
455
+ }
456
+
457
+ /** @internal */
458
+ export const ListBudgetsData$inboundSchema: z.ZodType<
459
+ ListBudgetsData,
460
+ z.ZodTypeDef,
461
+ unknown
462
+ > = z.object({
463
+ _id: z.string(),
464
+ type: ListBudgetsType$inboundSchema,
465
+ contact_id: z.string().optional(),
466
+ api_key_id: z.string().optional(),
467
+ budget: z.lazy(() => ListBudgetsBudget$inboundSchema),
468
+ is_active: z.boolean(),
469
+ consumption: z.lazy(() => ListBudgetsConsumption$inboundSchema).optional(),
470
+ created: z.string().datetime({ offset: true }).transform(v => new Date(v))
471
+ .optional(),
472
+ updated: z.string().datetime({ offset: true }).default(
473
+ "2025-08-20T07:45:57.493Z",
474
+ ).transform(v => new Date(v)),
475
+ }).transform((v) => {
476
+ return remap$(v, {
477
+ "_id": "id",
478
+ "contact_id": "contactId",
479
+ "api_key_id": "apiKeyId",
480
+ "is_active": "isActive",
481
+ });
482
+ });
483
+
484
+ /** @internal */
485
+ export type ListBudgetsData$Outbound = {
486
+ _id: string;
487
+ type: string;
488
+ contact_id?: string | undefined;
489
+ api_key_id?: string | undefined;
490
+ budget: ListBudgetsBudget$Outbound;
491
+ is_active: boolean;
492
+ consumption?: ListBudgetsConsumption$Outbound | undefined;
493
+ created?: string | undefined;
494
+ updated: string;
495
+ };
496
+
497
+ /** @internal */
498
+ export const ListBudgetsData$outboundSchema: z.ZodType<
499
+ ListBudgetsData$Outbound,
500
+ z.ZodTypeDef,
501
+ ListBudgetsData
502
+ > = z.object({
503
+ id: z.string(),
504
+ type: ListBudgetsType$outboundSchema,
505
+ contactId: z.string().optional(),
506
+ apiKeyId: z.string().optional(),
507
+ budget: z.lazy(() => ListBudgetsBudget$outboundSchema),
508
+ isActive: z.boolean(),
509
+ consumption: z.lazy(() => ListBudgetsConsumption$outboundSchema).optional(),
510
+ created: z.date().transform(v => v.toISOString()).optional(),
511
+ updated: z.date().default(() => new Date("2025-08-20T07:45:57.493Z"))
512
+ .transform(v => v.toISOString()),
513
+ }).transform((v) => {
514
+ return remap$(v, {
515
+ id: "_id",
516
+ contactId: "contact_id",
517
+ apiKeyId: "api_key_id",
518
+ isActive: "is_active",
519
+ });
520
+ });
521
+
522
+ /**
523
+ * @internal
524
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
525
+ */
526
+ export namespace ListBudgetsData$ {
527
+ /** @deprecated use `ListBudgetsData$inboundSchema` instead. */
528
+ export const inboundSchema = ListBudgetsData$inboundSchema;
529
+ /** @deprecated use `ListBudgetsData$outboundSchema` instead. */
530
+ export const outboundSchema = ListBudgetsData$outboundSchema;
531
+ /** @deprecated use `ListBudgetsData$Outbound` instead. */
532
+ export type Outbound = ListBudgetsData$Outbound;
533
+ }
534
+
535
+ export function listBudgetsDataToJSON(
536
+ listBudgetsData: ListBudgetsData,
537
+ ): string {
538
+ return JSON.stringify(ListBudgetsData$outboundSchema.parse(listBudgetsData));
539
+ }
540
+
541
+ export function listBudgetsDataFromJSON(
542
+ jsonString: string,
543
+ ): SafeParseResult<ListBudgetsData, SDKValidationError> {
544
+ return safeParse(
545
+ jsonString,
546
+ (x) => ListBudgetsData$inboundSchema.parse(JSON.parse(x)),
547
+ `Failed to parse 'ListBudgetsData' from JSON`,
548
+ );
549
+ }
550
+
551
+ /** @internal */
552
+ export const ListBudgetsResponseBody$inboundSchema: z.ZodType<
553
+ ListBudgetsResponseBody,
554
+ z.ZodTypeDef,
555
+ unknown
556
+ > = z.object({
557
+ object: ListBudgetsObject$inboundSchema,
558
+ data: z.array(z.lazy(() => ListBudgetsData$inboundSchema)),
559
+ has_more: z.boolean(),
560
+ }).transform((v) => {
561
+ return remap$(v, {
562
+ "has_more": "hasMore",
563
+ });
564
+ });
565
+
566
+ /** @internal */
567
+ export type ListBudgetsResponseBody$Outbound = {
568
+ object: string;
569
+ data: Array<ListBudgetsData$Outbound>;
570
+ has_more: boolean;
571
+ };
572
+
573
+ /** @internal */
574
+ export const ListBudgetsResponseBody$outboundSchema: z.ZodType<
575
+ ListBudgetsResponseBody$Outbound,
576
+ z.ZodTypeDef,
577
+ ListBudgetsResponseBody
578
+ > = z.object({
579
+ object: ListBudgetsObject$outboundSchema,
580
+ data: z.array(z.lazy(() => ListBudgetsData$outboundSchema)),
581
+ hasMore: z.boolean(),
582
+ }).transform((v) => {
583
+ return remap$(v, {
584
+ hasMore: "has_more",
585
+ });
586
+ });
587
+
588
+ /**
589
+ * @internal
590
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
591
+ */
592
+ export namespace ListBudgetsResponseBody$ {
593
+ /** @deprecated use `ListBudgetsResponseBody$inboundSchema` instead. */
594
+ export const inboundSchema = ListBudgetsResponseBody$inboundSchema;
595
+ /** @deprecated use `ListBudgetsResponseBody$outboundSchema` instead. */
596
+ export const outboundSchema = ListBudgetsResponseBody$outboundSchema;
597
+ /** @deprecated use `ListBudgetsResponseBody$Outbound` instead. */
598
+ export type Outbound = ListBudgetsResponseBody$Outbound;
599
+ }
600
+
601
+ export function listBudgetsResponseBodyToJSON(
602
+ listBudgetsResponseBody: ListBudgetsResponseBody,
603
+ ): string {
604
+ return JSON.stringify(
605
+ ListBudgetsResponseBody$outboundSchema.parse(listBudgetsResponseBody),
606
+ );
607
+ }
608
+
609
+ export function listBudgetsResponseBodyFromJSON(
610
+ jsonString: string,
611
+ ): SafeParseResult<ListBudgetsResponseBody, SDKValidationError> {
612
+ return safeParse(
613
+ jsonString,
614
+ (x) => ListBudgetsResponseBody$inboundSchema.parse(JSON.parse(x)),
615
+ `Failed to parse 'ListBudgetsResponseBody' from JSON`,
616
+ );
617
+ }
@@ -345,7 +345,7 @@ export const Data$inboundSchema: z.ZodType<Data, z.ZodTypeDef, unknown> = z
345
345
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
346
346
  .optional(),
347
347
  updated: z.string().datetime({ offset: true }).default(
348
- "2025-08-18T10:59:53.795Z",
348
+ "2025-08-20T07:45:57.493Z",
349
349
  ).transform(v => new Date(v)),
350
350
  metrics: z.lazy(() => Metrics$inboundSchema),
351
351
  }).transform((v) => {
@@ -382,7 +382,7 @@ export const Data$outboundSchema: z.ZodType<Data$Outbound, z.ZodTypeDef, Data> =
382
382
  tags: z.array(z.string()).optional(),
383
383
  metadata: z.record(z.any()).optional(),
384
384
  created: z.date().transform(v => v.toISOString()).optional(),
385
- updated: z.date().default(() => new Date("2025-08-18T10:59:53.795Z"))
385
+ updated: z.date().default(() => new Date("2025-08-20T07:45:57.493Z"))
386
386
  .transform(v => v.toISOString()),
387
387
  metrics: z.lazy(() => Metrics$outboundSchema),
388
388
  }).transform((v) => {
@@ -2604,7 +2604,7 @@ export const ListDatasetDatapointsData$inboundSchema: z.ZodType<
2604
2604
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
2605
2605
  .optional(),
2606
2606
  updated: z.string().datetime({ offset: true }).default(
2607
- "2025-08-18T10:59:53.795Z",
2607
+ "2025-08-20T07:45:57.493Z",
2608
2608
  ).transform(v => new Date(v)),
2609
2609
  }).transform((v) => {
2610
2610
  return remap$(v, {
@@ -2668,7 +2668,7 @@ export const ListDatasetDatapointsData$outboundSchema: z.ZodType<
2668
2668
  createdById: z.string().optional(),
2669
2669
  updatedById: z.string().optional(),
2670
2670
  created: z.date().transform(v => v.toISOString()).optional(),
2671
- updated: z.date().default(() => new Date("2025-08-18T10:59:53.795Z"))
2671
+ updated: z.date().default(() => new Date("2025-08-20T07:45:57.493Z"))
2672
2672
  .transform(v => v.toISOString()),
2673
2673
  }).transform((v) => {
2674
2674
  return remap$(v, {
@@ -253,7 +253,7 @@ export const ListDatasetsData$inboundSchema: z.ZodType<
253
253
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
254
254
  .optional(),
255
255
  updated: z.string().datetime({ offset: true }).default(
256
- "2025-08-18T10:59:53.795Z",
256
+ "2025-08-20T07:45:57.493Z",
257
257
  ).transform(v => new Date(v)),
258
258
  }).transform((v) => {
259
259
  return remap$(v, {
@@ -293,7 +293,7 @@ export const ListDatasetsData$outboundSchema: z.ZodType<
293
293
  updatedById: z.string().optional(),
294
294
  metadata: z.lazy(() => ListDatasetsMetadata$outboundSchema),
295
295
  created: z.date().transform(v => v.toISOString()).optional(),
296
- updated: z.date().default(() => new Date("2025-08-18T10:59:53.795Z"))
296
+ updated: z.date().default(() => new Date("2025-08-20T07:45:57.493Z"))
297
297
  .transform(v => v.toISOString()),
298
298
  }).transform((v) => {
299
299
  return remap$(v, {
@@ -278,7 +278,7 @@ export const ListDatasourcesData$inboundSchema: z.ZodType<
278
278
  z.ZodTypeDef,
279
279
  unknown
280
280
  > = z.object({
281
- _id: z.string().default("01K2YDC46ZXNT3PPYP03KZYVYG"),
281
+ _id: z.string().default("01K3372EJSW7FF1GDKZHJBE4W2"),
282
282
  display_name: z.string(),
283
283
  description: z.string().optional(),
284
284
  status: ListDatasourcesStatus$inboundSchema,
@@ -322,7 +322,7 @@ export const ListDatasourcesData$outboundSchema: z.ZodType<
322
322
  z.ZodTypeDef,
323
323
  ListDatasourcesData
324
324
  > = z.object({
325
- id: z.string().default("01K2YDC46ZXNT3PPYP03KZYVYG"),
325
+ id: z.string().default("01K3372EJSW7FF1GDKZHJBE4W2"),
326
326
  displayName: z.string(),
327
327
  description: z.string().optional(),
328
328
  status: ListDatasourcesStatus$outboundSchema,
@@ -127,7 +127,7 @@ export const RetrieveContactResponseBody$inboundSchema: z.ZodType<
127
127
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
128
128
  .optional(),
129
129
  updated: z.string().datetime({ offset: true }).default(
130
- "2025-08-18T10:59:53.795Z",
130
+ "2025-08-20T07:45:57.493Z",
131
131
  ).transform(v => new Date(v)),
132
132
  }).transform((v) => {
133
133
  return remap$(v, {
@@ -165,7 +165,7 @@ export const RetrieveContactResponseBody$outboundSchema: z.ZodType<
165
165
  tags: z.array(z.string()).optional(),
166
166
  metadata: z.record(z.any()).optional(),
167
167
  created: z.date().transform(v => v.toISOString()).optional(),
168
- updated: z.date().default(() => new Date("2025-08-18T10:59:53.795Z"))
168
+ updated: z.date().default(() => new Date("2025-08-20T07:45:57.493Z"))
169
169
  .transform(v => v.toISOString()),
170
170
  }).transform((v) => {
171
171
  return remap$(v, {