@anchrd/colab-sdk 0.1.30 → 0.1.31

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.
@@ -0,0 +1,899 @@
1
+ import { z } from "zod";
2
+ export declare const QueryId: z.ZodTemplateLiteral<`query_${string}`>;
3
+ export type QueryId = z.infer<typeof QueryId>;
4
+ export declare const ItemId: z.ZodTemplateLiteral<`item_${string}`>;
5
+ export type ItemId = z.infer<typeof ItemId>;
6
+ export declare const sourceSchema = "colab:source/1";
7
+ export declare const sourceFieldTypes: readonly ["text", "number", "date", "email", "chip"];
8
+ export declare const SourceFieldType: z.ZodEnum<{
9
+ number: "number";
10
+ date: "date";
11
+ email: "email";
12
+ text: "text";
13
+ chip: "chip";
14
+ }>;
15
+ export type SourceFieldType = z.infer<typeof SourceFieldType>;
16
+ export declare const sourceCleans: readonly ["company", "money"];
17
+ export declare const SourcePath: z.ZodString;
18
+ export declare const SourceField: z.ZodObject<{
19
+ label: z.ZodString;
20
+ type: z.ZodEnum<{
21
+ number: "number";
22
+ date: "date";
23
+ email: "email";
24
+ text: "text";
25
+ chip: "chip";
26
+ }>;
27
+ path: z.ZodString;
28
+ clean: z.ZodOptional<z.ZodArray<z.ZodEnum<{
29
+ company: "company";
30
+ money: "money";
31
+ }>>>;
32
+ }, z.core.$strict>;
33
+ export type SourceField = z.infer<typeof SourceField>;
34
+ export declare const SourceParam: z.ZodObject<{
35
+ label: z.ZodOptional<z.ZodString>;
36
+ type: z.ZodOptional<z.ZodEnum<{
37
+ number: "number";
38
+ date: "date";
39
+ text: "text";
40
+ }>>;
41
+ enum: z.ZodOptional<z.ZodArray<z.ZodString>>;
42
+ required: z.ZodOptional<z.ZodBoolean>;
43
+ from: z.ZodOptional<z.ZodLiteral<"lastRun">>;
44
+ default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
45
+ }, z.core.$strict>;
46
+ export type SourceParam = z.infer<typeof SourceParam>;
47
+ export declare const SourceAccess: z.ZodDiscriminatedUnion<[z.ZodObject<{
48
+ kind: z.ZodLiteral<"bearer">;
49
+ secret: z.ZodString;
50
+ }, z.core.$strict>, z.ZodObject<{
51
+ kind: z.ZodLiteral<"header">;
52
+ name: z.ZodString;
53
+ prefix: z.ZodOptional<z.ZodString>;
54
+ secret: z.ZodString;
55
+ }, z.core.$strict>, z.ZodObject<{
56
+ kind: z.ZodLiteral<"basic">;
57
+ username: z.ZodString;
58
+ password: z.ZodString;
59
+ }, z.core.$strict>, z.ZodObject<{
60
+ kind: z.ZodLiteral<"query">;
61
+ name: z.ZodString;
62
+ secret: z.ZodString;
63
+ }, z.core.$strict>, z.ZodObject<{
64
+ kind: z.ZodLiteral<"none">;
65
+ }, z.core.$strict>], "kind">;
66
+ export type SourceAccess = z.infer<typeof SourceAccess>;
67
+ export declare const SourcePaging: z.ZodDiscriminatedUnion<[z.ZodObject<{
68
+ type: z.ZodLiteral<"page">;
69
+ param: z.ZodString;
70
+ start: z.ZodOptional<z.ZodNumber>;
71
+ max: z.ZodNumber;
72
+ }, z.core.$strict>, z.ZodObject<{
73
+ type: z.ZodLiteral<"next">;
74
+ path: z.ZodString;
75
+ max: z.ZodNumber;
76
+ }, z.core.$strict>], "type">;
77
+ export type SourcePaging = z.infer<typeof SourcePaging>;
78
+ export declare const SourceManifest: z.ZodObject<{
79
+ $schema: z.ZodLiteral<"colab:source/1">;
80
+ name: z.ZodString;
81
+ description: z.ZodOptional<z.ZodString>;
82
+ kind: z.ZodEnum<{
83
+ code: "code";
84
+ json: "json";
85
+ rss: "rss";
86
+ }>;
87
+ base: z.ZodString;
88
+ hosts: z.ZodArray<z.ZodString>;
89
+ access: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
90
+ kind: z.ZodLiteral<"bearer">;
91
+ secret: z.ZodString;
92
+ }, z.core.$strict>, z.ZodObject<{
93
+ kind: z.ZodLiteral<"header">;
94
+ name: z.ZodString;
95
+ prefix: z.ZodOptional<z.ZodString>;
96
+ secret: z.ZodString;
97
+ }, z.core.$strict>, z.ZodObject<{
98
+ kind: z.ZodLiteral<"basic">;
99
+ username: z.ZodString;
100
+ password: z.ZodString;
101
+ }, z.core.$strict>, z.ZodObject<{
102
+ kind: z.ZodLiteral<"query">;
103
+ name: z.ZodString;
104
+ secret: z.ZodString;
105
+ }, z.core.$strict>, z.ZodObject<{
106
+ kind: z.ZodLiteral<"none">;
107
+ }, z.core.$strict>], "kind">>;
108
+ secrets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
109
+ label: z.ZodString;
110
+ help: z.ZodOptional<z.ZodString>;
111
+ }, z.core.$strict>>>;
112
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
113
+ label: z.ZodOptional<z.ZodString>;
114
+ type: z.ZodOptional<z.ZodEnum<{
115
+ number: "number";
116
+ date: "date";
117
+ text: "text";
118
+ }>>;
119
+ enum: z.ZodOptional<z.ZodArray<z.ZodString>>;
120
+ required: z.ZodOptional<z.ZodBoolean>;
121
+ from: z.ZodOptional<z.ZodLiteral<"lastRun">>;
122
+ default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
123
+ }, z.core.$strict>>>;
124
+ request: z.ZodOptional<z.ZodObject<{
125
+ path: z.ZodString;
126
+ query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
127
+ }, z.core.$strict>>;
128
+ paging: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
129
+ type: z.ZodLiteral<"page">;
130
+ param: z.ZodString;
131
+ start: z.ZodOptional<z.ZodNumber>;
132
+ max: z.ZodNumber;
133
+ }, z.core.$strict>, z.ZodObject<{
134
+ type: z.ZodLiteral<"next">;
135
+ path: z.ZodString;
136
+ max: z.ZodNumber;
137
+ }, z.core.$strict>], "type">>;
138
+ items: z.ZodOptional<z.ZodString>;
139
+ ref: z.ZodString;
140
+ fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
141
+ label: z.ZodString;
142
+ type: z.ZodEnum<{
143
+ number: "number";
144
+ date: "date";
145
+ email: "email";
146
+ text: "text";
147
+ chip: "chip";
148
+ }>;
149
+ path: z.ZodString;
150
+ clean: z.ZodOptional<z.ZodArray<z.ZodEnum<{
151
+ company: "company";
152
+ money: "money";
153
+ }>>>;
154
+ }, z.core.$strict>>>;
155
+ }, z.core.$strict>;
156
+ export type SourceManifest = z.infer<typeof SourceManifest>;
157
+ export declare const sourceManifestPath = "source.json";
158
+ export declare const sourceCodePath = "source.js";
159
+ export declare const sourceLimits: {
160
+ readonly timeoutMs: 10000;
161
+ readonly bytes: number;
162
+ readonly pages: 5;
163
+ readonly requests: 50;
164
+ readonly items: 1000;
165
+ };
166
+ export declare const sourceKeepDays: readonly [30, 90, 180];
167
+ export declare const sourceEvery: readonly ["hour", "day", "week"];
168
+ export declare const SourceSchedule: z.ZodObject<{
169
+ every: z.ZodEnum<{
170
+ week: "week";
171
+ day: "day";
172
+ hour: "hour";
173
+ }>;
174
+ time: z.ZodOptional<z.ZodString>;
175
+ day: z.ZodOptional<z.ZodEnum<{
176
+ monday: "monday";
177
+ tuesday: "tuesday";
178
+ wednesday: "wednesday";
179
+ thursday: "thursday";
180
+ friday: "friday";
181
+ saturday: "saturday";
182
+ sunday: "sunday";
183
+ }>>;
184
+ zone: z.ZodOptional<z.ZodString>;
185
+ }, z.core.$strict>;
186
+ export type SourceSchedule = z.infer<typeof SourceSchedule>;
187
+ export declare const SourceWhere: z.ZodObject<{
188
+ field: z.ZodString;
189
+ op: z.ZodEnum<{
190
+ eq: "eq";
191
+ ne: "ne";
192
+ gte: "gte";
193
+ lte: "lte";
194
+ contains: "contains";
195
+ }>;
196
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
197
+ }, z.core.$strict>;
198
+ export type SourceWhere = z.infer<typeof SourceWhere>;
199
+ export declare const SourceCreateInput: z.ZodObject<{
200
+ parentId: z.ZodNullable<z.ZodTemplateLiteral<`node_${string}`>>;
201
+ name: z.ZodString;
202
+ files: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
203
+ idempotencyKey: z.ZodString;
204
+ }, z.core.$strict>;
205
+ export type SourceCreateInput = z.infer<typeof SourceCreateInput>;
206
+ export declare const SourceVersionRef: z.ZodPreprocess<z.ZodUnion<readonly [z.ZodEnum<{
207
+ live: "live";
208
+ draft: "draft";
209
+ }>, z.ZodNumber]>, unknown>;
210
+ export type SourceVersionRef = z.infer<typeof SourceVersionRef>;
211
+ export declare const SourceGetInput: z.ZodObject<{
212
+ sourceId: z.ZodTemplateLiteral<`node_${string}`>;
213
+ version: z.ZodOptional<z.ZodPreprocess<z.ZodUnion<readonly [z.ZodEnum<{
214
+ live: "live";
215
+ draft: "draft";
216
+ }>, z.ZodNumber]>, unknown>>;
217
+ include: z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodEnum<{
218
+ files: "files";
219
+ }>>, unknown>>;
220
+ }, z.core.$strict>;
221
+ export type SourceGetInput = z.infer<typeof SourceGetInput>;
222
+ export declare const SourceUpdateInput: z.ZodObject<{
223
+ sourceId: z.ZodTemplateLiteral<`node_${string}`>;
224
+ files: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>;
225
+ fromVersion: z.ZodOptional<z.ZodNumber>;
226
+ discard: z.ZodOptional<z.ZodLiteral<true>>;
227
+ settings: z.ZodOptional<z.ZodObject<{
228
+ responsibleId: z.ZodOptional<z.ZodNullable<z.ZodTemplateLiteral<`user_${string}`>>>;
229
+ level: z.ZodOptional<z.ZodEnum<{
230
+ publish: "publish";
231
+ draft: "draft";
232
+ report: "report";
233
+ }>>;
234
+ keepDays: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<30>, z.ZodLiteral<90>, z.ZodLiteral<180>]>>;
235
+ logDays: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<7>, z.ZodLiteral<14>, z.ZodLiteral<30>]>>;
236
+ }, z.core.$strict>>;
237
+ rev: z.ZodNumber;
238
+ }, z.core.$strict>;
239
+ export type SourceUpdateInput = z.infer<typeof SourceUpdateInput>;
240
+ export declare const SourceTestInput: z.ZodObject<{
241
+ sourceId: z.ZodTemplateLiteral<`node_${string}`>;
242
+ version: z.ZodOptional<z.ZodEnum<{
243
+ live: "live";
244
+ draft: "draft";
245
+ }>>;
246
+ probe: z.ZodOptional<z.ZodObject<{
247
+ queryId: z.ZodOptional<z.ZodTemplateLiteral<`query_${string}`>>;
248
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
249
+ }, z.core.$strict>>;
250
+ }, z.core.$strict>;
251
+ export type SourceTestInput = z.infer<typeof SourceTestInput>;
252
+ export declare const SourcePublishInput: z.ZodObject<{
253
+ sourceId: z.ZodTemplateLiteral<`node_${string}`>;
254
+ force: z.ZodOptional<z.ZodLiteral<true>>;
255
+ rev: z.ZodNumber;
256
+ }, z.core.$strict>;
257
+ export type SourcePublishInput = z.infer<typeof SourcePublishInput>;
258
+ export declare const SourceQueryListInput: z.ZodObject<{
259
+ sourceId: z.ZodTemplateLiteral<`node_${string}`>;
260
+ archived: z.ZodOptional<z.ZodPreprocess<z.ZodBoolean, unknown>>;
261
+ }, z.core.$strict>;
262
+ export type SourceQueryListInput = z.infer<typeof SourceQueryListInput>;
263
+ export declare const SourceQueryCreateInput: z.ZodObject<{
264
+ sourceId: z.ZodTemplateLiteral<`node_${string}`>;
265
+ name: z.ZodString;
266
+ schedule: z.ZodObject<{
267
+ every: z.ZodEnum<{
268
+ week: "week";
269
+ day: "day";
270
+ hour: "hour";
271
+ }>;
272
+ time: z.ZodOptional<z.ZodString>;
273
+ day: z.ZodOptional<z.ZodEnum<{
274
+ monday: "monday";
275
+ tuesday: "tuesday";
276
+ wednesday: "wednesday";
277
+ thursday: "thursday";
278
+ friday: "friday";
279
+ saturday: "saturday";
280
+ sunday: "sunday";
281
+ }>>;
282
+ zone: z.ZodOptional<z.ZodString>;
283
+ }, z.core.$strict>;
284
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
285
+ where: z.ZodOptional<z.ZodArray<z.ZodObject<{
286
+ field: z.ZodString;
287
+ op: z.ZodEnum<{
288
+ eq: "eq";
289
+ ne: "ne";
290
+ gte: "gte";
291
+ lte: "lte";
292
+ contains: "contains";
293
+ }>;
294
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
295
+ }, z.core.$strict>>>;
296
+ enabled: z.ZodOptional<z.ZodBoolean>;
297
+ idempotencyKey: z.ZodString;
298
+ }, z.core.$strict>;
299
+ export type SourceQueryCreateInput = z.infer<typeof SourceQueryCreateInput>;
300
+ export declare const SourceQueryUpdateInput: z.ZodObject<{
301
+ sourceId: z.ZodTemplateLiteral<`node_${string}`>;
302
+ queryId: z.ZodTemplateLiteral<`query_${string}`>;
303
+ name: z.ZodOptional<z.ZodString>;
304
+ schedule: z.ZodOptional<z.ZodObject<{
305
+ every: z.ZodEnum<{
306
+ week: "week";
307
+ day: "day";
308
+ hour: "hour";
309
+ }>;
310
+ time: z.ZodOptional<z.ZodString>;
311
+ day: z.ZodOptional<z.ZodEnum<{
312
+ monday: "monday";
313
+ tuesday: "tuesday";
314
+ wednesday: "wednesday";
315
+ thursday: "thursday";
316
+ friday: "friday";
317
+ saturday: "saturday";
318
+ sunday: "sunday";
319
+ }>>;
320
+ zone: z.ZodOptional<z.ZodString>;
321
+ }, z.core.$strict>>;
322
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
323
+ where: z.ZodOptional<z.ZodArray<z.ZodObject<{
324
+ field: z.ZodString;
325
+ op: z.ZodEnum<{
326
+ eq: "eq";
327
+ ne: "ne";
328
+ gte: "gte";
329
+ lte: "lte";
330
+ contains: "contains";
331
+ }>;
332
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
333
+ }, z.core.$strict>>>;
334
+ enabled: z.ZodOptional<z.ZodBoolean>;
335
+ rev: z.ZodNumber;
336
+ }, z.core.$strict>;
337
+ export type SourceQueryUpdateInput = z.infer<typeof SourceQueryUpdateInput>;
338
+ export declare const SourceQueryArchiveInput: z.ZodObject<{
339
+ sourceId: z.ZodTemplateLiteral<`node_${string}`>;
340
+ queryId: z.ZodTemplateLiteral<`query_${string}`>;
341
+ }, z.core.$strict>;
342
+ export type SourceQueryArchiveInput = z.infer<typeof SourceQueryArchiveInput>;
343
+ export declare const SourceQueryRestoreInput: z.ZodObject<{
344
+ sourceId: z.ZodTemplateLiteral<`node_${string}`>;
345
+ queryId: z.ZodTemplateLiteral<`query_${string}`>;
346
+ }, z.core.$strict>;
347
+ export type SourceQueryRestoreInput = z.infer<typeof SourceQueryRestoreInput>;
348
+ export declare const SourceRunListInput: z.ZodObject<{
349
+ sourceId: z.ZodTemplateLiteral<`node_${string}`>;
350
+ queryId: z.ZodOptional<z.ZodTemplateLiteral<`query_${string}`>>;
351
+ status: z.ZodOptional<z.ZodEnum<{
352
+ running: "running";
353
+ succeeded: "succeeded";
354
+ failed: "failed";
355
+ }>>;
356
+ cursor: z.ZodOptional<z.ZodString>;
357
+ limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
358
+ }, z.core.$strict>;
359
+ export type SourceRunListInput = z.infer<typeof SourceRunListInput>;
360
+ export declare const SourceRunGetInput: z.ZodObject<{
361
+ sourceId: z.ZodTemplateLiteral<`node_${string}`>;
362
+ runId: z.ZodTemplateLiteral<`run_${string}`>;
363
+ }, z.core.$strict>;
364
+ export type SourceRunGetInput = z.infer<typeof SourceRunGetInput>;
365
+ export declare const SourceRunCreateInput: z.ZodObject<{
366
+ sourceId: z.ZodTemplateLiteral<`node_${string}`>;
367
+ queryId: z.ZodTemplateLiteral<`query_${string}`>;
368
+ }, z.core.$strict>;
369
+ export type SourceRunCreateInput = z.infer<typeof SourceRunCreateInput>;
370
+ export declare const SourceItemListInput: z.ZodObject<{
371
+ sourceId: z.ZodTemplateLiteral<`node_${string}`>;
372
+ queryId: z.ZodOptional<z.ZodTemplateLiteral<`query_${string}`>>;
373
+ since: z.ZodOptional<z.ZodISODateTime>;
374
+ cursor: z.ZodOptional<z.ZodString>;
375
+ where: z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodObject<{
376
+ field: z.ZodString;
377
+ op: z.ZodEnum<{
378
+ eq: "eq";
379
+ ne: "ne";
380
+ gte: "gte";
381
+ lte: "lte";
382
+ contains: "contains";
383
+ }>;
384
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
385
+ }, z.core.$strict>>, unknown>>;
386
+ limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
387
+ }, z.core.$strict>;
388
+ export type SourceItemListInput = z.infer<typeof SourceItemListInput>;
389
+ export declare const SourceStep: z.ZodObject<{
390
+ name: z.ZodString;
391
+ status: z.ZodEnum<{
392
+ succeeded: "succeeded";
393
+ failed: "failed";
394
+ }>;
395
+ durationMs: z.ZodNumber;
396
+ detail: z.ZodNullable<z.ZodString>;
397
+ }, z.core.$strip>;
398
+ export type SourceStep = z.infer<typeof SourceStep>;
399
+ export declare const SourceRunCounts: z.ZodObject<{
400
+ fetched: z.ZodNumber;
401
+ new: z.ZodNumber;
402
+ withoutRef: z.ZodNumber;
403
+ duplicates: z.ZodNumber;
404
+ filtered: z.ZodNumber;
405
+ expired: z.ZodNumber;
406
+ }, z.core.$strip>;
407
+ export type SourceRunCounts = z.infer<typeof SourceRunCounts>;
408
+ export declare const SourceRunFailure: z.ZodEnum<{
409
+ access: "access";
410
+ code: "code";
411
+ provider: "provider";
412
+ host: "host";
413
+ }>;
414
+ export declare const SourceRun: z.ZodObject<{
415
+ runId: z.ZodTemplateLiteral<`run_${string}`>;
416
+ sourceId: z.ZodTemplateLiteral<`node_${string}`>;
417
+ queryId: z.ZodTemplateLiteral<`query_${string}`>;
418
+ instance: z.ZodString;
419
+ trigger: z.ZodEnum<{
420
+ schedule: "schedule";
421
+ play: "play";
422
+ }>;
423
+ by: z.ZodNullable<z.ZodObject<{
424
+ userId: z.ZodString;
425
+ name: z.ZodNullable<z.ZodString>;
426
+ kind: z.ZodNullable<z.ZodEnum<{
427
+ machine: "machine";
428
+ human: "human";
429
+ }>>;
430
+ }, z.core.$strip>>;
431
+ version: z.ZodNullable<z.ZodNumber>;
432
+ status: z.ZodEnum<{
433
+ running: "running";
434
+ succeeded: "succeeded";
435
+ failed: "failed";
436
+ }>;
437
+ failure: z.ZodNullable<z.ZodEnum<{
438
+ access: "access";
439
+ code: "code";
440
+ provider: "provider";
441
+ host: "host";
442
+ }>>;
443
+ message: z.ZodNullable<z.ZodString>;
444
+ counts: z.ZodObject<{
445
+ fetched: z.ZodNumber;
446
+ new: z.ZodNumber;
447
+ withoutRef: z.ZodNumber;
448
+ duplicates: z.ZodNumber;
449
+ filtered: z.ZodNumber;
450
+ expired: z.ZodNumber;
451
+ }, z.core.$strip>;
452
+ steps: z.ZodArray<z.ZodObject<{
453
+ name: z.ZodString;
454
+ status: z.ZodEnum<{
455
+ succeeded: "succeeded";
456
+ failed: "failed";
457
+ }>;
458
+ durationMs: z.ZodNumber;
459
+ detail: z.ZodNullable<z.ZodString>;
460
+ }, z.core.$strip>>;
461
+ startedAt: z.ZodISODateTime;
462
+ endedAt: z.ZodNullable<z.ZodISODateTime>;
463
+ durationMs: z.ZodNullable<z.ZodNumber>;
464
+ }, z.core.$strip>;
465
+ export type SourceRun = z.infer<typeof SourceRun>;
466
+ export declare const SourceRunList: z.ZodObject<{
467
+ items: z.ZodArray<z.ZodObject<{
468
+ runId: z.ZodTemplateLiteral<`run_${string}`>;
469
+ sourceId: z.ZodTemplateLiteral<`node_${string}`>;
470
+ queryId: z.ZodTemplateLiteral<`query_${string}`>;
471
+ instance: z.ZodString;
472
+ trigger: z.ZodEnum<{
473
+ schedule: "schedule";
474
+ play: "play";
475
+ }>;
476
+ by: z.ZodNullable<z.ZodObject<{
477
+ userId: z.ZodString;
478
+ name: z.ZodNullable<z.ZodString>;
479
+ kind: z.ZodNullable<z.ZodEnum<{
480
+ machine: "machine";
481
+ human: "human";
482
+ }>>;
483
+ }, z.core.$strip>>;
484
+ version: z.ZodNullable<z.ZodNumber>;
485
+ status: z.ZodEnum<{
486
+ running: "running";
487
+ succeeded: "succeeded";
488
+ failed: "failed";
489
+ }>;
490
+ failure: z.ZodNullable<z.ZodEnum<{
491
+ access: "access";
492
+ code: "code";
493
+ provider: "provider";
494
+ host: "host";
495
+ }>>;
496
+ message: z.ZodNullable<z.ZodString>;
497
+ counts: z.ZodObject<{
498
+ fetched: z.ZodNumber;
499
+ new: z.ZodNumber;
500
+ withoutRef: z.ZodNumber;
501
+ duplicates: z.ZodNumber;
502
+ filtered: z.ZodNumber;
503
+ expired: z.ZodNumber;
504
+ }, z.core.$strip>;
505
+ steps: z.ZodArray<z.ZodObject<{
506
+ name: z.ZodString;
507
+ status: z.ZodEnum<{
508
+ succeeded: "succeeded";
509
+ failed: "failed";
510
+ }>;
511
+ durationMs: z.ZodNumber;
512
+ detail: z.ZodNullable<z.ZodString>;
513
+ }, z.core.$strip>>;
514
+ startedAt: z.ZodISODateTime;
515
+ endedAt: z.ZodNullable<z.ZodISODateTime>;
516
+ durationMs: z.ZodNullable<z.ZodNumber>;
517
+ }, z.core.$strip>>;
518
+ nextCursor: z.ZodNullable<z.ZodString>;
519
+ }, z.core.$strip>;
520
+ export type SourceRunList = z.infer<typeof SourceRunList>;
521
+ export declare const SourceQuery: z.ZodObject<{
522
+ queryId: z.ZodTemplateLiteral<`query_${string}`>;
523
+ sourceId: z.ZodTemplateLiteral<`node_${string}`>;
524
+ name: z.ZodString;
525
+ schedule: z.ZodObject<{
526
+ every: z.ZodEnum<{
527
+ week: "week";
528
+ day: "day";
529
+ hour: "hour";
530
+ }>;
531
+ time: z.ZodOptional<z.ZodString>;
532
+ day: z.ZodOptional<z.ZodEnum<{
533
+ monday: "monday";
534
+ tuesday: "tuesday";
535
+ wednesday: "wednesday";
536
+ thursday: "thursday";
537
+ friday: "friday";
538
+ saturday: "saturday";
539
+ sunday: "sunday";
540
+ }>>;
541
+ zone: z.ZodOptional<z.ZodString>;
542
+ }, z.core.$strict>;
543
+ params: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
544
+ where: z.ZodArray<z.ZodObject<{
545
+ field: z.ZodString;
546
+ op: z.ZodEnum<{
547
+ eq: "eq";
548
+ ne: "ne";
549
+ gte: "gte";
550
+ lte: "lte";
551
+ contains: "contains";
552
+ }>;
553
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
554
+ }, z.core.$strict>>;
555
+ enabled: z.ZodBoolean;
556
+ pausedAt: z.ZodNullable<z.ZodISODateTime>;
557
+ archivedAt: z.ZodNullable<z.ZodISODateTime>;
558
+ lastRun: z.ZodNullable<z.ZodObject<{
559
+ runId: z.ZodTemplateLiteral<`run_${string}`>;
560
+ status: z.ZodEnum<{
561
+ running: "running";
562
+ succeeded: "succeeded";
563
+ failed: "failed";
564
+ }>;
565
+ startedAt: z.ZodISODateTime;
566
+ new: z.ZodNumber;
567
+ }, z.core.$strip>>;
568
+ nextRunAt: z.ZodNullable<z.ZodISODateTime>;
569
+ rev: z.ZodNumber;
570
+ }, z.core.$strip>;
571
+ export type SourceQuery = z.infer<typeof SourceQuery>;
572
+ export declare const SourceQueryList: z.ZodObject<{
573
+ items: z.ZodArray<z.ZodObject<{
574
+ queryId: z.ZodTemplateLiteral<`query_${string}`>;
575
+ sourceId: z.ZodTemplateLiteral<`node_${string}`>;
576
+ name: z.ZodString;
577
+ schedule: z.ZodObject<{
578
+ every: z.ZodEnum<{
579
+ week: "week";
580
+ day: "day";
581
+ hour: "hour";
582
+ }>;
583
+ time: z.ZodOptional<z.ZodString>;
584
+ day: z.ZodOptional<z.ZodEnum<{
585
+ monday: "monday";
586
+ tuesday: "tuesday";
587
+ wednesday: "wednesday";
588
+ thursday: "thursday";
589
+ friday: "friday";
590
+ saturday: "saturday";
591
+ sunday: "sunday";
592
+ }>>;
593
+ zone: z.ZodOptional<z.ZodString>;
594
+ }, z.core.$strict>;
595
+ params: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
596
+ where: z.ZodArray<z.ZodObject<{
597
+ field: z.ZodString;
598
+ op: z.ZodEnum<{
599
+ eq: "eq";
600
+ ne: "ne";
601
+ gte: "gte";
602
+ lte: "lte";
603
+ contains: "contains";
604
+ }>;
605
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
606
+ }, z.core.$strict>>;
607
+ enabled: z.ZodBoolean;
608
+ pausedAt: z.ZodNullable<z.ZodISODateTime>;
609
+ archivedAt: z.ZodNullable<z.ZodISODateTime>;
610
+ lastRun: z.ZodNullable<z.ZodObject<{
611
+ runId: z.ZodTemplateLiteral<`run_${string}`>;
612
+ status: z.ZodEnum<{
613
+ running: "running";
614
+ succeeded: "succeeded";
615
+ failed: "failed";
616
+ }>;
617
+ startedAt: z.ZodISODateTime;
618
+ new: z.ZodNumber;
619
+ }, z.core.$strip>>;
620
+ nextRunAt: z.ZodNullable<z.ZodISODateTime>;
621
+ rev: z.ZodNumber;
622
+ }, z.core.$strip>>;
623
+ }, z.core.$strip>;
624
+ export type SourceQueryList = z.infer<typeof SourceQueryList>;
625
+ export declare const SourceItem: z.ZodObject<{
626
+ itemId: z.ZodTemplateLiteral<`item_${string}`>;
627
+ sourceId: z.ZodTemplateLiteral<`node_${string}`>;
628
+ queryId: z.ZodTemplateLiteral<`query_${string}`>;
629
+ ref: z.ZodString;
630
+ version: z.ZodNullable<z.ZodNumber>;
631
+ fetchedAt: z.ZodISODateTime;
632
+ fresh: z.ZodBoolean;
633
+ fields: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodString>, z.ZodNull]>>;
634
+ }, z.core.$strip>;
635
+ export type SourceItem = z.infer<typeof SourceItem>;
636
+ export declare const SourceItemList: z.ZodObject<{
637
+ items: z.ZodArray<z.ZodObject<{
638
+ itemId: z.ZodTemplateLiteral<`item_${string}`>;
639
+ sourceId: z.ZodTemplateLiteral<`node_${string}`>;
640
+ queryId: z.ZodTemplateLiteral<`query_${string}`>;
641
+ ref: z.ZodString;
642
+ version: z.ZodNullable<z.ZodNumber>;
643
+ fetchedAt: z.ZodISODateTime;
644
+ fresh: z.ZodBoolean;
645
+ fields: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodString>, z.ZodNull]>>;
646
+ }, z.core.$strip>>;
647
+ nextCursor: z.ZodString;
648
+ more: z.ZodBoolean;
649
+ }, z.core.$strip>;
650
+ export type SourceItemList = z.infer<typeof SourceItemList>;
651
+ export declare const SourceProbe: z.ZodObject<{
652
+ status: z.ZodEnum<{
653
+ succeeded: "succeeded";
654
+ failed: "failed";
655
+ }>;
656
+ failure: z.ZodNullable<z.ZodEnum<{
657
+ access: "access";
658
+ code: "code";
659
+ provider: "provider";
660
+ host: "host";
661
+ }>>;
662
+ message: z.ZodNullable<z.ZodString>;
663
+ counts: z.ZodObject<{
664
+ fetched: z.ZodNumber;
665
+ new: z.ZodNumber;
666
+ withoutRef: z.ZodNumber;
667
+ duplicates: z.ZodNumber;
668
+ filtered: z.ZodNumber;
669
+ expired: z.ZodNumber;
670
+ }, z.core.$strip>;
671
+ items: z.ZodArray<z.ZodObject<{
672
+ ref: z.ZodString;
673
+ fields: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodString>, z.ZodNull]>>;
674
+ }, z.core.$strip>>;
675
+ }, z.core.$strip>;
676
+ export type SourceProbe = z.infer<typeof SourceProbe>;
677
+ export declare const SourceDetail: z.ZodObject<{
678
+ sourceId: z.ZodTemplateLiteral<`node_${string}`>;
679
+ name: z.ZodString;
680
+ hidden: z.ZodBoolean;
681
+ parentId: z.ZodNullable<z.ZodTemplateLiteral<`node_${string}`>>;
682
+ path: z.ZodObject<{
683
+ section: z.ZodEnum<{
684
+ users: "users";
685
+ own: "own";
686
+ shared: "shared";
687
+ }>;
688
+ items: z.ZodArray<z.ZodObject<{
689
+ nodeId: z.ZodTemplateLiteral<`node_${string}`>;
690
+ name: z.ZodString;
691
+ }, z.core.$strip>>;
692
+ }, z.core.$strip>;
693
+ version: z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"draft">]>>;
694
+ manifest: z.ZodNullable<z.ZodObject<{
695
+ $schema: z.ZodLiteral<"colab:source/1">;
696
+ name: z.ZodString;
697
+ description: z.ZodOptional<z.ZodString>;
698
+ kind: z.ZodEnum<{
699
+ code: "code";
700
+ json: "json";
701
+ rss: "rss";
702
+ }>;
703
+ base: z.ZodString;
704
+ hosts: z.ZodArray<z.ZodString>;
705
+ access: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
706
+ kind: z.ZodLiteral<"bearer">;
707
+ secret: z.ZodString;
708
+ }, z.core.$strict>, z.ZodObject<{
709
+ kind: z.ZodLiteral<"header">;
710
+ name: z.ZodString;
711
+ prefix: z.ZodOptional<z.ZodString>;
712
+ secret: z.ZodString;
713
+ }, z.core.$strict>, z.ZodObject<{
714
+ kind: z.ZodLiteral<"basic">;
715
+ username: z.ZodString;
716
+ password: z.ZodString;
717
+ }, z.core.$strict>, z.ZodObject<{
718
+ kind: z.ZodLiteral<"query">;
719
+ name: z.ZodString;
720
+ secret: z.ZodString;
721
+ }, z.core.$strict>, z.ZodObject<{
722
+ kind: z.ZodLiteral<"none">;
723
+ }, z.core.$strict>], "kind">>;
724
+ secrets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
725
+ label: z.ZodString;
726
+ help: z.ZodOptional<z.ZodString>;
727
+ }, z.core.$strict>>>;
728
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
729
+ label: z.ZodOptional<z.ZodString>;
730
+ type: z.ZodOptional<z.ZodEnum<{
731
+ number: "number";
732
+ date: "date";
733
+ text: "text";
734
+ }>>;
735
+ enum: z.ZodOptional<z.ZodArray<z.ZodString>>;
736
+ required: z.ZodOptional<z.ZodBoolean>;
737
+ from: z.ZodOptional<z.ZodLiteral<"lastRun">>;
738
+ default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
739
+ }, z.core.$strict>>>;
740
+ request: z.ZodOptional<z.ZodObject<{
741
+ path: z.ZodString;
742
+ query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
743
+ }, z.core.$strict>>;
744
+ paging: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
745
+ type: z.ZodLiteral<"page">;
746
+ param: z.ZodString;
747
+ start: z.ZodOptional<z.ZodNumber>;
748
+ max: z.ZodNumber;
749
+ }, z.core.$strict>, z.ZodObject<{
750
+ type: z.ZodLiteral<"next">;
751
+ path: z.ZodString;
752
+ max: z.ZodNumber;
753
+ }, z.core.$strict>], "type">>;
754
+ items: z.ZodOptional<z.ZodString>;
755
+ ref: z.ZodString;
756
+ fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
757
+ label: z.ZodString;
758
+ type: z.ZodEnum<{
759
+ number: "number";
760
+ date: "date";
761
+ email: "email";
762
+ text: "text";
763
+ chip: "chip";
764
+ }>;
765
+ path: z.ZodString;
766
+ clean: z.ZodOptional<z.ZodArray<z.ZodEnum<{
767
+ company: "company";
768
+ money: "money";
769
+ }>>>;
770
+ }, z.core.$strict>>>;
771
+ }, z.core.$strict>>;
772
+ fields: z.ZodArray<z.ZodObject<{
773
+ name: z.ZodString;
774
+ label: z.ZodString;
775
+ type: z.ZodEnum<{
776
+ number: "number";
777
+ date: "date";
778
+ email: "email";
779
+ text: "text";
780
+ chip: "chip";
781
+ }>;
782
+ }, z.core.$strip>>;
783
+ files: z.ZodArray<z.ZodObject<{
784
+ path: z.ZodString;
785
+ size: z.ZodNumber;
786
+ content: z.ZodOptional<z.ZodString>;
787
+ }, z.core.$strip>>;
788
+ queries: z.ZodArray<z.ZodObject<{
789
+ queryId: z.ZodTemplateLiteral<`query_${string}`>;
790
+ name: z.ZodString;
791
+ }, z.core.$strip>>;
792
+ live: z.ZodNullable<z.ZodObject<{
793
+ version: z.ZodNumber;
794
+ publishedAt: z.ZodISODateTime;
795
+ publishedBy: z.ZodObject<{
796
+ userId: z.ZodString;
797
+ name: z.ZodNullable<z.ZodString>;
798
+ kind: z.ZodNullable<z.ZodEnum<{
799
+ machine: "machine";
800
+ human: "human";
801
+ }>>;
802
+ }, z.core.$strip>;
803
+ }, z.core.$strip>>;
804
+ draft: z.ZodNullable<z.ZodObject<{
805
+ updatedAt: z.ZodISODateTime;
806
+ updatedBy: z.ZodObject<{
807
+ userId: z.ZodString;
808
+ name: z.ZodNullable<z.ZodString>;
809
+ kind: z.ZodNullable<z.ZodEnum<{
810
+ machine: "machine";
811
+ human: "human";
812
+ }>>;
813
+ }, z.core.$strip>;
814
+ changes: z.ZodArray<z.ZodObject<{
815
+ path: z.ZodString;
816
+ change: z.ZodEnum<{
817
+ added: "added";
818
+ changed: "changed";
819
+ removed: "removed";
820
+ }>;
821
+ }, z.core.$strip>>;
822
+ newHosts: z.ZodArray<z.ZodString>;
823
+ newFields: z.ZodArray<z.ZodString>;
824
+ }, z.core.$strip>>;
825
+ test: z.ZodNullable<z.ZodObject<{
826
+ version: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"draft">]>;
827
+ current: z.ZodBoolean;
828
+ status: z.ZodEnum<{
829
+ running: "running";
830
+ failed: "failed";
831
+ passed: "passed";
832
+ }>;
833
+ passed: z.ZodNumber;
834
+ failed: z.ZodNumber;
835
+ at: z.ZodISODateTime;
836
+ by: z.ZodObject<{
837
+ userId: z.ZodString;
838
+ name: z.ZodNullable<z.ZodString>;
839
+ kind: z.ZodNullable<z.ZodEnum<{
840
+ machine: "machine";
841
+ human: "human";
842
+ }>>;
843
+ }, z.core.$strip>;
844
+ durationMs: z.ZodNumber;
845
+ error: z.ZodNullable<z.ZodObject<{
846
+ message: z.ZodString;
847
+ stack: z.ZodOptional<z.ZodString>;
848
+ }, z.core.$strip>>;
849
+ tests: z.ZodArray<z.ZodObject<{
850
+ file: z.ZodString;
851
+ path: z.ZodArray<z.ZodString>;
852
+ name: z.ZodString;
853
+ status: z.ZodEnum<{
854
+ failed: "failed";
855
+ passed: "passed";
856
+ }>;
857
+ durationMs: z.ZodNumber;
858
+ message: z.ZodNullable<z.ZodString>;
859
+ location: z.ZodNullable<z.ZodObject<{
860
+ file: z.ZodString;
861
+ line: z.ZodNumber;
862
+ column: z.ZodNumber;
863
+ }, z.core.$strip>>;
864
+ }, z.core.$strip>>;
865
+ }, z.core.$strip>>;
866
+ settings: z.ZodNullable<z.ZodObject<{
867
+ responsible: z.ZodNullable<z.ZodObject<{
868
+ userId: z.ZodString;
869
+ name: z.ZodNullable<z.ZodString>;
870
+ kind: z.ZodNullable<z.ZodEnum<{
871
+ machine: "machine";
872
+ human: "human";
873
+ }>>;
874
+ }, z.core.$strip>>;
875
+ level: z.ZodEnum<{
876
+ publish: "publish";
877
+ draft: "draft";
878
+ report: "report";
879
+ }>;
880
+ keepDays: z.ZodNumber;
881
+ logDays: z.ZodNumber;
882
+ credentials: z.ZodArray<z.ZodObject<{
883
+ name: z.ZodString;
884
+ label: z.ZodString;
885
+ setAt: z.ZodNullable<z.ZodISODateTime>;
886
+ }, z.core.$strip>>;
887
+ }, z.core.$strip>>;
888
+ pausedAt: z.ZodNullable<z.ZodISODateTime>;
889
+ rights: z.ZodObject<{
890
+ write: z.ZodBoolean;
891
+ }, z.core.$strip>;
892
+ rev: z.ZodNumber;
893
+ archivedAt: z.ZodNullable<z.ZodISODateTime>;
894
+ }, z.core.$strip>;
895
+ export type SourceDetail = z.infer<typeof SourceDetail>;
896
+ export declare const SourceSecretsInput: z.ZodObject<{
897
+ values: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
898
+ }, z.core.$strict>;
899
+ export type SourceSecretsInput = z.infer<typeof SourceSecretsInput>;