@anchrd/colab-sdk 0.1.10 → 0.1.12

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.
@@ -1,11 +1,11 @@
1
1
  import { z } from "zod";
2
2
  export declare const errorCodes: readonly ["not_found", "invalid", "conflict", "unauthenticated", "unavailable"];
3
3
  export declare const ErrorCode: z.ZodEnum<{
4
- unavailable: "unavailable";
5
4
  not_found: "not_found";
6
5
  invalid: "invalid";
7
6
  conflict: "conflict";
8
7
  unauthenticated: "unauthenticated";
8
+ unavailable: "unavailable";
9
9
  }>;
10
10
  export type ErrorCode = z.infer<typeof ErrorCode>;
11
11
  export declare const ErrorIssue: z.ZodObject<{
@@ -15,7 +15,10 @@ export declare const ErrorIssue: z.ZodObject<{
15
15
  export type ErrorIssue = z.infer<typeof ErrorIssue>;
16
16
  export declare const ErrorResponse: z.ZodObject<{
17
17
  error: z.ZodDiscriminatedUnion<[z.ZodObject<{
18
- code: z.ZodLiteral<"invalid">;
18
+ code: z.ZodEnum<{
19
+ invalid: "invalid";
20
+ conflict: "conflict";
21
+ }>;
19
22
  message: z.ZodString;
20
23
  issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
21
24
  path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
@@ -23,10 +26,9 @@ export declare const ErrorResponse: z.ZodObject<{
23
26
  }, z.core.$strict>>>;
24
27
  }, z.core.$strict>, z.ZodObject<{
25
28
  code: z.ZodEnum<{
26
- unavailable: "unavailable";
27
29
  not_found: "not_found";
28
- conflict: "conflict";
29
30
  unauthenticated: "unauthenticated";
31
+ unavailable: "unavailable";
30
32
  }>;
31
33
  message: z.ZodString;
32
34
  }, z.core.$strict>], "code">;
@@ -14,16 +14,17 @@ export const ErrorIssue = z.strictObject({
14
14
  path: z.array(z.union([z.string(), z.number()])),
15
15
  message: z.string(),
16
16
  });
17
- // `issues` exists only next to `invalid`; on every other code a strict object rejects it.
17
+ // `issues` exists only next to `invalid` and `conflict` (a change of many entries names each stale
18
+ // one, #630, #625); on every other code a strict object rejects it.
18
19
  export const ErrorResponse = z.strictObject({
19
20
  error: z.discriminatedUnion("code", [
20
21
  z.strictObject({
21
- code: z.literal("invalid"),
22
+ code: z.enum(["invalid", "conflict"]),
22
23
  message: z.string(),
23
24
  issues: z.array(ErrorIssue).optional(),
24
25
  }),
25
26
  z.strictObject({
26
- code: ErrorCode.exclude(["invalid"]),
27
+ code: ErrorCode.exclude(["invalid", "conflict"]),
27
28
  message: z.string(),
28
29
  }),
29
30
  ]),
@@ -0,0 +1,532 @@
1
+ import { z } from "zod";
2
+ export declare const GadgetFilePath: z.ZodString;
3
+ export type GadgetFilePath = z.infer<typeof GadgetFilePath>;
4
+ export declare const gadgetLimits: {
5
+ readonly files: 200;
6
+ readonly bytes: number;
7
+ };
8
+ export declare const GadgetFunctionName: z.ZodString;
9
+ export declare const GadgetFunction: z.ZodObject<{
10
+ description: z.ZodString;
11
+ input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
12
+ }, z.core.$strict>;
13
+ export type GadgetFunction = z.infer<typeof GadgetFunction>;
14
+ export declare const GadgetManifest: z.ZodObject<{
15
+ name: z.ZodString;
16
+ description: z.ZodOptional<z.ZodString>;
17
+ functions: z.ZodRecord<z.ZodString, z.ZodObject<{
18
+ description: z.ZodString;
19
+ input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
20
+ }, z.core.$strict>>;
21
+ }, z.core.$strict>;
22
+ export type GadgetManifest = z.infer<typeof GadgetManifest>;
23
+ export declare const GadgetVersionRef: z.ZodPreprocess<z.ZodUnion<readonly [z.ZodEnum<{
24
+ live: "live";
25
+ draft: "draft";
26
+ }>, z.ZodNumber]>, unknown>;
27
+ export type GadgetVersionRef = z.infer<typeof GadgetVersionRef>;
28
+ export declare const GadgetLevel: z.ZodEnum<{
29
+ publish: "publish";
30
+ draft: "draft";
31
+ report: "report";
32
+ }>;
33
+ export type GadgetLevel = z.infer<typeof GadgetLevel>;
34
+ export declare const gadgetLogDays: readonly [7, 14, 30];
35
+ export declare const GadgetCreateInput: z.ZodObject<{
36
+ parentId: z.ZodTemplateLiteral<`node_${string}`>;
37
+ name: z.ZodString;
38
+ files: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
39
+ idempotencyKey: z.ZodString;
40
+ }, z.core.$strict>;
41
+ export type GadgetCreateInput = z.infer<typeof GadgetCreateInput>;
42
+ export declare const GadgetGetInput: z.ZodObject<{
43
+ gadgetId: z.ZodTemplateLiteral<`node_${string}`>;
44
+ version: z.ZodOptional<z.ZodPreprocess<z.ZodUnion<readonly [z.ZodEnum<{
45
+ live: "live";
46
+ draft: "draft";
47
+ }>, z.ZodNumber]>, unknown>>;
48
+ include: z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodEnum<{
49
+ files: "files";
50
+ }>>, unknown>>;
51
+ }, z.core.$strict>;
52
+ export type GadgetGetInput = z.infer<typeof GadgetGetInput>;
53
+ export declare const GadgetUpdateInput: z.ZodObject<{
54
+ gadgetId: z.ZodTemplateLiteral<`node_${string}`>;
55
+ files: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>;
56
+ settings: z.ZodOptional<z.ZodObject<{
57
+ responsibleId: z.ZodOptional<z.ZodNullable<z.ZodTemplateLiteral<`user_${string}`>>>;
58
+ level: z.ZodOptional<z.ZodEnum<{
59
+ publish: "publish";
60
+ draft: "draft";
61
+ report: "report";
62
+ }>>;
63
+ logDays: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<7>, z.ZodLiteral<14>, z.ZodLiteral<30>]>>;
64
+ }, z.core.$strict>>;
65
+ fromVersion: z.ZodOptional<z.ZodNumber>;
66
+ discard: z.ZodOptional<z.ZodLiteral<true>>;
67
+ rev: z.ZodNumber;
68
+ }, z.core.$strict>;
69
+ export type GadgetUpdateInput = z.infer<typeof GadgetUpdateInput>;
70
+ export declare const GadgetPublishInput: z.ZodObject<{
71
+ gadgetId: z.ZodTemplateLiteral<`node_${string}`>;
72
+ force: z.ZodOptional<z.ZodLiteral<true>>;
73
+ rev: z.ZodNumber;
74
+ }, z.core.$strict>;
75
+ export type GadgetPublishInput = z.infer<typeof GadgetPublishInput>;
76
+ export declare const GadgetTestInput: z.ZodObject<{
77
+ gadgetId: z.ZodTemplateLiteral<`node_${string}`>;
78
+ version: z.ZodOptional<z.ZodEnum<{
79
+ live: "live";
80
+ draft: "draft";
81
+ }>>;
82
+ }, z.core.$strict>;
83
+ export type GadgetTestInput = z.infer<typeof GadgetTestInput>;
84
+ export declare const GadgetCallStatus: z.ZodEnum<{
85
+ failed: "failed";
86
+ succeeded: "succeeded";
87
+ }>;
88
+ export type GadgetCallStatus = z.infer<typeof GadgetCallStatus>;
89
+ export declare const GadgetCallListInput: z.ZodObject<{
90
+ gadgetId: z.ZodTemplateLiteral<`node_${string}`>;
91
+ status: z.ZodOptional<z.ZodEnum<{
92
+ failed: "failed";
93
+ succeeded: "succeeded";
94
+ }>>;
95
+ version: z.ZodOptional<z.ZodPreprocess<z.ZodUnion<readonly [z.ZodEnum<{
96
+ live: "live";
97
+ draft: "draft";
98
+ }>, z.ZodNumber]>, unknown>>;
99
+ function: z.ZodOptional<z.ZodString>;
100
+ since: z.ZodOptional<z.ZodISODateTime>;
101
+ query: z.ZodOptional<z.ZodString>;
102
+ cursor: z.ZodOptional<z.ZodString>;
103
+ limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
104
+ }, z.core.$strict>;
105
+ export type GadgetCallListInput = z.infer<typeof GadgetCallListInput>;
106
+ export declare const GadgetCallGetInput: z.ZodObject<{
107
+ gadgetId: z.ZodTemplateLiteral<`node_${string}`>;
108
+ callId: z.ZodTemplateLiteral<`call_${string}`>;
109
+ }, z.core.$strict>;
110
+ export type GadgetCallGetInput = z.infer<typeof GadgetCallGetInput>;
111
+ export declare const GadgetClientLog: z.ZodObject<{
112
+ callId: z.ZodOptional<z.ZodTemplateLiteral<`call_${string}`>>;
113
+ version: z.ZodOptional<z.ZodPreprocess<z.ZodUnion<readonly [z.ZodEnum<{
114
+ live: "live";
115
+ draft: "draft";
116
+ }>, z.ZodNumber]>, unknown>>;
117
+ console: z.ZodOptional<z.ZodArray<z.ZodObject<{
118
+ level: z.ZodEnum<{
119
+ error: "error";
120
+ log: "log";
121
+ info: "info";
122
+ warn: "warn";
123
+ debug: "debug";
124
+ }>;
125
+ text: z.ZodString;
126
+ }, z.core.$strict>>>;
127
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
128
+ message: z.ZodString;
129
+ stack: z.ZodOptional<z.ZodString>;
130
+ }, z.core.$strict>>>;
131
+ }, z.core.$strict>;
132
+ export type GadgetClientLog = z.infer<typeof GadgetClientLog>;
133
+ export declare const GadgetCallCreateInput: z.ZodObject<{
134
+ gadgetId: z.ZodTemplateLiteral<`node_${string}`>;
135
+ function: z.ZodString;
136
+ input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
137
+ version: z.ZodOptional<z.ZodPreprocess<z.ZodUnion<readonly [z.ZodEnum<{
138
+ live: "live";
139
+ draft: "draft";
140
+ }>, z.ZodNumber]>, unknown>>;
141
+ }, z.core.$strict>;
142
+ export type GadgetCallCreateInput = z.infer<typeof GadgetCallCreateInput>;
143
+ export declare const GadgetFile: z.ZodObject<{
144
+ path: z.ZodString;
145
+ size: z.ZodNumber;
146
+ content: z.ZodOptional<z.ZodString>;
147
+ }, z.core.$strip>;
148
+ export type GadgetFile = z.infer<typeof GadgetFile>;
149
+ export declare const GadgetChange: z.ZodObject<{
150
+ path: z.ZodString;
151
+ change: z.ZodEnum<{
152
+ added: "added";
153
+ changed: "changed";
154
+ removed: "removed";
155
+ }>;
156
+ }, z.core.$strip>;
157
+ export type GadgetChange = z.infer<typeof GadgetChange>;
158
+ export declare const GadgetSettings: z.ZodObject<{
159
+ responsible: z.ZodNullable<z.ZodObject<{
160
+ userId: z.ZodString;
161
+ name: z.ZodNullable<z.ZodString>;
162
+ kind: z.ZodNullable<z.ZodEnum<{
163
+ machine: "machine";
164
+ human: "human";
165
+ }>>;
166
+ }, z.core.$strip>>;
167
+ level: z.ZodEnum<{
168
+ publish: "publish";
169
+ draft: "draft";
170
+ report: "report";
171
+ }>;
172
+ logDays: z.ZodNumber;
173
+ }, z.core.$strip>;
174
+ export type GadgetSettings = z.infer<typeof GadgetSettings>;
175
+ export declare const GadgetTestResult: z.ZodObject<{
176
+ file: z.ZodString;
177
+ path: z.ZodArray<z.ZodString>;
178
+ name: z.ZodString;
179
+ status: z.ZodEnum<{
180
+ failed: "failed";
181
+ passed: "passed";
182
+ }>;
183
+ durationMs: z.ZodNumber;
184
+ message: z.ZodNullable<z.ZodString>;
185
+ location: z.ZodNullable<z.ZodObject<{
186
+ file: z.ZodString;
187
+ line: z.ZodNumber;
188
+ column: z.ZodNumber;
189
+ }, z.core.$strip>>;
190
+ }, z.core.$strip>;
191
+ export type GadgetTestResult = z.infer<typeof GadgetTestResult>;
192
+ export declare const GadgetTestRun: z.ZodObject<{
193
+ version: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"draft">]>;
194
+ current: z.ZodBoolean;
195
+ status: z.ZodEnum<{
196
+ failed: "failed";
197
+ passed: "passed";
198
+ }>;
199
+ passed: z.ZodNumber;
200
+ failed: z.ZodNumber;
201
+ at: z.ZodISODateTime;
202
+ by: z.ZodObject<{
203
+ userId: z.ZodString;
204
+ name: z.ZodNullable<z.ZodString>;
205
+ kind: z.ZodNullable<z.ZodEnum<{
206
+ machine: "machine";
207
+ human: "human";
208
+ }>>;
209
+ }, z.core.$strip>;
210
+ durationMs: z.ZodNumber;
211
+ error: z.ZodNullable<z.ZodObject<{
212
+ message: z.ZodString;
213
+ stack: z.ZodOptional<z.ZodString>;
214
+ }, z.core.$strip>>;
215
+ tests: z.ZodArray<z.ZodObject<{
216
+ file: z.ZodString;
217
+ path: z.ZodArray<z.ZodString>;
218
+ name: z.ZodString;
219
+ status: z.ZodEnum<{
220
+ failed: "failed";
221
+ passed: "passed";
222
+ }>;
223
+ durationMs: z.ZodNumber;
224
+ message: z.ZodNullable<z.ZodString>;
225
+ location: z.ZodNullable<z.ZodObject<{
226
+ file: z.ZodString;
227
+ line: z.ZodNumber;
228
+ column: z.ZodNumber;
229
+ }, z.core.$strip>>;
230
+ }, z.core.$strip>>;
231
+ }, z.core.$strip>;
232
+ export type GadgetTestRun = z.infer<typeof GadgetTestRun>;
233
+ export declare const GadgetDetail: z.ZodObject<{
234
+ gadgetId: z.ZodTemplateLiteral<`node_${string}`>;
235
+ name: z.ZodString;
236
+ hidden: z.ZodBoolean;
237
+ parentId: z.ZodNullable<z.ZodTemplateLiteral<`node_${string}`>>;
238
+ path: z.ZodObject<{
239
+ section: z.ZodEnum<{
240
+ users: "users";
241
+ own: "own";
242
+ shared: "shared";
243
+ }>;
244
+ items: z.ZodArray<z.ZodObject<{
245
+ nodeId: z.ZodTemplateLiteral<`node_${string}`>;
246
+ name: z.ZodString;
247
+ }, z.core.$strip>>;
248
+ }, z.core.$strip>;
249
+ version: z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"draft">]>>;
250
+ manifest: z.ZodNullable<z.ZodObject<{
251
+ name: z.ZodString;
252
+ description: z.ZodOptional<z.ZodString>;
253
+ functions: z.ZodRecord<z.ZodString, z.ZodObject<{
254
+ description: z.ZodString;
255
+ input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
256
+ }, z.core.$strict>>;
257
+ }, z.core.$strict>>;
258
+ files: z.ZodArray<z.ZodObject<{
259
+ path: z.ZodString;
260
+ size: z.ZodNumber;
261
+ content: z.ZodOptional<z.ZodString>;
262
+ }, z.core.$strip>>;
263
+ live: z.ZodNullable<z.ZodObject<{
264
+ version: z.ZodNumber;
265
+ publishedAt: z.ZodISODateTime;
266
+ publishedBy: z.ZodObject<{
267
+ userId: z.ZodString;
268
+ name: z.ZodNullable<z.ZodString>;
269
+ kind: z.ZodNullable<z.ZodEnum<{
270
+ machine: "machine";
271
+ human: "human";
272
+ }>>;
273
+ }, z.core.$strip>;
274
+ }, z.core.$strip>>;
275
+ draft: z.ZodNullable<z.ZodObject<{
276
+ updatedAt: z.ZodISODateTime;
277
+ updatedBy: z.ZodObject<{
278
+ userId: z.ZodString;
279
+ name: z.ZodNullable<z.ZodString>;
280
+ kind: z.ZodNullable<z.ZodEnum<{
281
+ machine: "machine";
282
+ human: "human";
283
+ }>>;
284
+ }, z.core.$strip>;
285
+ changes: z.ZodArray<z.ZodObject<{
286
+ path: z.ZodString;
287
+ change: z.ZodEnum<{
288
+ added: "added";
289
+ changed: "changed";
290
+ removed: "removed";
291
+ }>;
292
+ }, z.core.$strip>>;
293
+ newTools: z.ZodArray<z.ZodString>;
294
+ }, z.core.$strip>>;
295
+ test: z.ZodNullable<z.ZodObject<{
296
+ version: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"draft">]>;
297
+ current: z.ZodBoolean;
298
+ status: z.ZodEnum<{
299
+ failed: "failed";
300
+ passed: "passed";
301
+ }>;
302
+ passed: z.ZodNumber;
303
+ failed: z.ZodNumber;
304
+ at: z.ZodISODateTime;
305
+ by: z.ZodObject<{
306
+ userId: z.ZodString;
307
+ name: z.ZodNullable<z.ZodString>;
308
+ kind: z.ZodNullable<z.ZodEnum<{
309
+ machine: "machine";
310
+ human: "human";
311
+ }>>;
312
+ }, z.core.$strip>;
313
+ durationMs: z.ZodNumber;
314
+ error: z.ZodNullable<z.ZodObject<{
315
+ message: z.ZodString;
316
+ stack: z.ZodOptional<z.ZodString>;
317
+ }, z.core.$strip>>;
318
+ tests: z.ZodArray<z.ZodObject<{
319
+ file: z.ZodString;
320
+ path: z.ZodArray<z.ZodString>;
321
+ name: z.ZodString;
322
+ status: z.ZodEnum<{
323
+ failed: "failed";
324
+ passed: "passed";
325
+ }>;
326
+ durationMs: z.ZodNumber;
327
+ message: z.ZodNullable<z.ZodString>;
328
+ location: z.ZodNullable<z.ZodObject<{
329
+ file: z.ZodString;
330
+ line: z.ZodNumber;
331
+ column: z.ZodNumber;
332
+ }, z.core.$strip>>;
333
+ }, z.core.$strip>>;
334
+ }, z.core.$strip>>;
335
+ usage: z.ZodNullable<z.ZodObject<{
336
+ calls: z.ZodNumber;
337
+ errors: z.ZodNumber;
338
+ lastCallAt: z.ZodNullable<z.ZodISODateTime>;
339
+ }, z.core.$strip>>;
340
+ settings: z.ZodNullable<z.ZodObject<{
341
+ responsible: z.ZodNullable<z.ZodObject<{
342
+ userId: z.ZodString;
343
+ name: z.ZodNullable<z.ZodString>;
344
+ kind: z.ZodNullable<z.ZodEnum<{
345
+ machine: "machine";
346
+ human: "human";
347
+ }>>;
348
+ }, z.core.$strip>>;
349
+ level: z.ZodEnum<{
350
+ publish: "publish";
351
+ draft: "draft";
352
+ report: "report";
353
+ }>;
354
+ logDays: z.ZodNumber;
355
+ }, z.core.$strip>>;
356
+ rights: z.ZodObject<{
357
+ write: z.ZodBoolean;
358
+ }, z.core.$strip>;
359
+ rev: z.ZodNumber;
360
+ archivedAt: z.ZodNullable<z.ZodISODateTime>;
361
+ }, z.core.$strip>;
362
+ export type GadgetDetail = z.infer<typeof GadgetDetail>;
363
+ export declare const GadgetToolUse: z.ZodObject<{
364
+ name: z.ZodString;
365
+ durationMs: z.ZodNumber;
366
+ code: z.ZodNullable<z.ZodEnum<{
367
+ not_found: "not_found";
368
+ invalid: "invalid";
369
+ conflict: "conflict";
370
+ unauthenticated: "unauthenticated";
371
+ unavailable: "unavailable";
372
+ }>>;
373
+ }, z.core.$strip>;
374
+ export type GadgetToolUse = z.infer<typeof GadgetToolUse>;
375
+ export declare const GadgetConsoleLine: z.ZodObject<{
376
+ level: z.ZodEnum<{
377
+ error: "error";
378
+ log: "log";
379
+ info: "info";
380
+ warn: "warn";
381
+ debug: "debug";
382
+ }>;
383
+ text: z.ZodString;
384
+ }, z.core.$strip>;
385
+ export type GadgetConsoleLine = z.infer<typeof GadgetConsoleLine>;
386
+ export declare const GadgetCall: z.ZodObject<{
387
+ callId: z.ZodNullable<z.ZodTemplateLiteral<`call_${string}`>>;
388
+ gadgetId: z.ZodTemplateLiteral<`node_${string}`>;
389
+ function: z.ZodString;
390
+ version: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"draft">]>;
391
+ status: z.ZodEnum<{
392
+ failed: "failed";
393
+ succeeded: "succeeded";
394
+ }>;
395
+ output: z.ZodUnknown;
396
+ error: z.ZodNullable<z.ZodObject<{
397
+ message: z.ZodString;
398
+ stack: z.ZodOptional<z.ZodString>;
399
+ }, z.core.$strip>>;
400
+ durationMs: z.ZodNumber;
401
+ console: z.ZodArray<z.ZodObject<{
402
+ level: z.ZodEnum<{
403
+ error: "error";
404
+ log: "log";
405
+ info: "info";
406
+ warn: "warn";
407
+ debug: "debug";
408
+ }>;
409
+ text: z.ZodString;
410
+ }, z.core.$strip>>;
411
+ tools: z.ZodArray<z.ZodObject<{
412
+ name: z.ZodString;
413
+ durationMs: z.ZodNumber;
414
+ code: z.ZodNullable<z.ZodEnum<{
415
+ not_found: "not_found";
416
+ invalid: "invalid";
417
+ conflict: "conflict";
418
+ unauthenticated: "unauthenticated";
419
+ unavailable: "unavailable";
420
+ }>>;
421
+ }, z.core.$strip>>;
422
+ }, z.core.$strip>;
423
+ export type GadgetCall = z.infer<typeof GadgetCall>;
424
+ export declare const GadgetCallItem: z.ZodObject<{
425
+ callId: z.ZodTemplateLiteral<`call_${string}`>;
426
+ gadgetId: z.ZodTemplateLiteral<`node_${string}`>;
427
+ at: z.ZodISODateTime;
428
+ by: z.ZodObject<{
429
+ userId: z.ZodString;
430
+ name: z.ZodNullable<z.ZodString>;
431
+ kind: z.ZodNullable<z.ZodEnum<{
432
+ machine: "machine";
433
+ human: "human";
434
+ }>>;
435
+ }, z.core.$strip>;
436
+ origin: z.ZodEnum<{
437
+ server: "server";
438
+ client: "client";
439
+ }>;
440
+ function: z.ZodNullable<z.ZodString>;
441
+ version: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"draft">]>;
442
+ status: z.ZodEnum<{
443
+ failed: "failed";
444
+ succeeded: "succeeded";
445
+ }>;
446
+ unavailable: z.ZodBoolean;
447
+ durationMs: z.ZodNullable<z.ZodNumber>;
448
+ message: z.ZodNullable<z.ZodString>;
449
+ }, z.core.$strip>;
450
+ export type GadgetCallItem = z.infer<typeof GadgetCallItem>;
451
+ export declare const GadgetCallList: z.ZodObject<{
452
+ items: z.ZodArray<z.ZodObject<{
453
+ callId: z.ZodTemplateLiteral<`call_${string}`>;
454
+ gadgetId: z.ZodTemplateLiteral<`node_${string}`>;
455
+ at: z.ZodISODateTime;
456
+ by: z.ZodObject<{
457
+ userId: z.ZodString;
458
+ name: z.ZodNullable<z.ZodString>;
459
+ kind: z.ZodNullable<z.ZodEnum<{
460
+ machine: "machine";
461
+ human: "human";
462
+ }>>;
463
+ }, z.core.$strip>;
464
+ origin: z.ZodEnum<{
465
+ server: "server";
466
+ client: "client";
467
+ }>;
468
+ function: z.ZodNullable<z.ZodString>;
469
+ version: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"draft">]>;
470
+ status: z.ZodEnum<{
471
+ failed: "failed";
472
+ succeeded: "succeeded";
473
+ }>;
474
+ unavailable: z.ZodBoolean;
475
+ durationMs: z.ZodNullable<z.ZodNumber>;
476
+ message: z.ZodNullable<z.ZodString>;
477
+ }, z.core.$strip>>;
478
+ nextCursor: z.ZodNullable<z.ZodString>;
479
+ }, z.core.$strip>;
480
+ export type GadgetCallList = z.infer<typeof GadgetCallList>;
481
+ export declare const GadgetCallEntry: z.ZodObject<{
482
+ callId: z.ZodTemplateLiteral<`call_${string}`>;
483
+ gadgetId: z.ZodTemplateLiteral<`node_${string}`>;
484
+ at: z.ZodISODateTime;
485
+ by: z.ZodObject<{
486
+ userId: z.ZodString;
487
+ name: z.ZodNullable<z.ZodString>;
488
+ kind: z.ZodNullable<z.ZodEnum<{
489
+ machine: "machine";
490
+ human: "human";
491
+ }>>;
492
+ }, z.core.$strip>;
493
+ origin: z.ZodEnum<{
494
+ server: "server";
495
+ client: "client";
496
+ }>;
497
+ function: z.ZodNullable<z.ZodString>;
498
+ version: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"draft">]>;
499
+ status: z.ZodEnum<{
500
+ failed: "failed";
501
+ succeeded: "succeeded";
502
+ }>;
503
+ unavailable: z.ZodBoolean;
504
+ durationMs: z.ZodNullable<z.ZodNumber>;
505
+ message: z.ZodNullable<z.ZodString>;
506
+ errors: z.ZodArray<z.ZodObject<{
507
+ message: z.ZodString;
508
+ stack: z.ZodOptional<z.ZodString>;
509
+ }, z.core.$strip>>;
510
+ console: z.ZodArray<z.ZodObject<{
511
+ level: z.ZodEnum<{
512
+ error: "error";
513
+ log: "log";
514
+ info: "info";
515
+ warn: "warn";
516
+ debug: "debug";
517
+ }>;
518
+ text: z.ZodString;
519
+ }, z.core.$strip>>;
520
+ tools: z.ZodArray<z.ZodObject<{
521
+ name: z.ZodString;
522
+ durationMs: z.ZodNumber;
523
+ code: z.ZodNullable<z.ZodEnum<{
524
+ not_found: "not_found";
525
+ invalid: "invalid";
526
+ conflict: "conflict";
527
+ unauthenticated: "unauthenticated";
528
+ unavailable: "unavailable";
529
+ }>>;
530
+ }, z.core.$strip>>;
531
+ }, z.core.$strip>;
532
+ export type GadgetCallEntry = z.infer<typeof GadgetCallEntry>;