@sixb/server 0.2.2 → 0.2.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.
- package/README.md +3 -3
- package/dist/artifacts/frame.d.ts.map +1 -1
- package/dist/auth/scope.d.ts +3 -0
- package/dist/auth/scope.d.ts.map +1 -1
- package/dist/auth/shared-access.d.ts +23 -0
- package/dist/auth/shared-access.d.ts.map +1 -1
- package/dist/connectors/http.d.ts +6 -1
- package/dist/connectors/http.d.ts.map +1 -1
- package/dist/index.js +2777 -683
- package/dist/index.js.map +41 -34
- package/dist/live/awareness.d.ts +48 -0
- package/dist/live/awareness.d.ts.map +1 -0
- package/dist/live/room.d.ts +198 -0
- package/dist/live/room.d.ts.map +1 -0
- package/dist/live/rooms.d.ts +67 -0
- package/dist/live/rooms.d.ts.map +1 -0
- package/dist/registerRoutes.d.ts.map +1 -1
- package/dist/routes/actions.d.ts +3 -3
- package/dist/routes/agent-approvals.d.ts +10 -10
- package/dist/routes/agent-children.d.ts +2 -2
- package/dist/routes/agent-computers.d.ts +32 -0
- package/dist/routes/agent-computers.d.ts.map +1 -1
- package/dist/routes/agent-runners.d.ts.map +1 -1
- package/dist/routes/agents.d.ts +48 -48
- package/dist/routes/artifact-frames.d.ts +2 -1
- package/dist/routes/artifact-frames.d.ts.map +1 -1
- package/dist/routes/artifacts.d.ts +1713 -178
- package/dist/routes/artifacts.d.ts.map +1 -1
- package/dist/routes/auth.d.ts +21 -21
- package/dist/routes/connector-connection-runs.d.ts +124 -5
- package/dist/routes/connector-connection-runs.d.ts.map +1 -1
- package/dist/routes/connector-connections.d.ts +9 -1
- package/dist/routes/connector-connections.d.ts.map +1 -1
- package/dist/routes/datasets.d.ts +5 -5
- package/dist/routes/events.d.ts +4 -4
- package/dist/routes/lake.d.ts +91 -0
- package/dist/routes/lake.d.ts.map +1 -0
- package/dist/routes/links.d.ts +6 -6
- package/dist/routes/logs.d.ts +2 -2
- package/dist/routes/model-generations.d.ts +2 -2
- package/dist/routes/objects.d.ts +6 -6
- package/dist/routes/objects.d.ts.map +1 -1
- package/dist/routes/observed-agent-threads.d.ts +7 -7
- package/dist/routes/ontology.d.ts +6 -6
- package/dist/routes/pipelines.d.ts +8 -4
- package/dist/routes/pipelines.d.ts.map +1 -1
- package/dist/routes/projections.d.ts +2 -2
- package/dist/routes/share-grants.d.ts +9 -9
- package/dist/routes/shared-access.d.ts +57 -2
- package/dist/routes/shared-access.d.ts.map +1 -1
- package/dist/routes/status.d.ts +11 -15
- package/dist/routes/status.d.ts.map +1 -1
- package/dist/routes/syncs.d.ts +5 -2
- package/dist/routes/syncs.d.ts.map +1 -1
- package/dist/routes/telemetry.d.ts +7 -7
- package/dist/routes/webhooks.d.ts.map +1 -1
- package/dist/routes/workflows.d.ts +3 -3
- package/dist/routes/ws/artifacts.d.ts +57 -0
- package/dist/routes/ws/artifacts.d.ts.map +1 -0
- package/dist/routes/ws/events.d.ts +8 -7
- package/dist/routes/ws/events.d.ts.map +1 -1
- package/dist/routes/ws/index.d.ts +2 -1
- package/dist/routes/ws/index.d.ts.map +1 -1
- package/dist/routes/ws/logs.d.ts +10 -10
- package/dist/routes/ws/shared-sockets.d.ts +52 -0
- package/dist/routes/ws/shared-sockets.d.ts.map +1 -0
- package/dist/schemas/actions.d.ts +7 -7
- package/dist/schemas/activity.d.ts +8 -8
- package/dist/schemas/agent-approvals.d.ts +27 -27
- package/dist/schemas/agents.d.ts +195 -154
- package/dist/schemas/agents.d.ts.map +1 -1
- package/dist/schemas/ai-accounting.d.ts +12 -12
- package/dist/schemas/artifacts.d.ts +2106 -127
- package/dist/schemas/artifacts.d.ts.map +1 -1
- package/dist/schemas/auth.d.ts +63 -63
- package/dist/schemas/connectors.d.ts +180 -20
- package/dist/schemas/connectors.d.ts.map +1 -1
- package/dist/schemas/datasets.d.ts +44 -44
- package/dist/schemas/event-payloads.d.ts +2 -2
- package/dist/schemas/events.d.ts +26 -26
- package/dist/schemas/events.d.ts.map +1 -1
- package/dist/schemas/files.d.ts +12 -0
- package/dist/schemas/files.d.ts.map +1 -1
- package/dist/schemas/lake.d.ts +251 -0
- package/dist/schemas/lake.d.ts.map +1 -0
- package/dist/schemas/lineage.d.ts +56 -56
- package/dist/schemas/logs.d.ts +18 -18
- package/dist/schemas/models.d.ts +4 -4
- package/dist/schemas/objects.d.ts.map +1 -1
- package/dist/schemas/ontology.d.ts +14 -14
- package/dist/schemas/pipelines.d.ts +70 -48
- package/dist/schemas/pipelines.d.ts.map +1 -1
- package/dist/schemas/projections.d.ts +14 -14
- package/dist/schemas/projections.d.ts.map +1 -1
- package/dist/schemas/share-grants.d.ts +30 -30
- package/dist/schemas/shared-access.d.ts +17 -4
- package/dist/schemas/shared-access.d.ts.map +1 -1
- package/dist/schemas/status.d.ts +59 -79
- package/dist/schemas/status.d.ts.map +1 -1
- package/dist/schemas/syncs.d.ts +26 -10
- package/dist/schemas/syncs.d.ts.map +1 -1
- package/dist/schemas/telemetry.d.ts +26 -26
- package/dist/schemas/workflows.d.ts +19 -19
- package/dist/server.d.ts +13 -0
- package/dist/server.d.ts.map +1 -1
- package/dist/utils/ws.d.ts +3 -0
- package/dist/utils/ws.d.ts.map +1 -1
- package/package.json +11 -7
- package/src/artifacts/frame.ts +4 -13
- package/src/auth/scope.ts +10 -1
- package/src/auth/shared-access.ts +108 -12
- package/src/connectors/http.ts +35 -1
- package/src/live/README.md +136 -0
- package/src/live/awareness.ts +141 -0
- package/src/live/room.ts +933 -0
- package/src/live/rooms.ts +288 -0
- package/src/registerRoutes.ts +2 -0
- package/src/routes/agent-computers.ts +59 -1
- package/src/routes/agent-runners.ts +1 -0
- package/src/routes/artifact-frames.ts +40 -12
- package/src/routes/artifacts.ts +713 -28
- package/src/routes/connector-connection-runs.ts +7 -12
- package/src/routes/connector-connections.ts +10 -7
- package/src/routes/lake.ts +73 -0
- package/src/routes/objects.ts +3 -9
- package/src/routes/pipelines.ts +1 -0
- package/src/routes/shared-access.ts +53 -1
- package/src/routes/status.ts +9 -4
- package/src/routes/syncs.ts +1 -0
- package/src/routes/webhooks.ts +44 -3
- package/src/routes/ws/artifacts.ts +138 -0
- package/src/routes/ws/events.ts +7 -2
- package/src/routes/ws/index.ts +13 -2
- package/src/routes/ws/shared-sockets.ts +152 -0
- package/src/schemas/agents.ts +11 -0
- package/src/schemas/artifacts.ts +255 -18
- package/src/schemas/connectors.ts +17 -2
- package/src/schemas/files.ts +12 -0
- package/src/schemas/lake.ts +53 -0
- package/src/schemas/objects.ts +1 -0
- package/src/schemas/pipelines.ts +2 -0
- package/src/schemas/projections.ts +2 -2
- package/src/schemas/shared-access.ts +16 -0
- package/src/schemas/status.ts +16 -22
- package/src/schemas/syncs.ts +2 -0
- package/src/server.ts +35 -4
- package/src/utils/ws.ts +7 -0
|
@@ -202,13 +202,22 @@ export declare const ConnectorAccountSchema: z.ZodObject<{
|
|
|
202
202
|
export declare const ConnectorConnectionSchema: z.ZodObject<{
|
|
203
203
|
id: z.ZodString;
|
|
204
204
|
connectorId: z.ZodString;
|
|
205
|
-
owner: z.ZodObject<{
|
|
205
|
+
owner: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
206
206
|
type: z.ZodLiteral<"project">;
|
|
207
207
|
}, "strip", z.ZodTypeAny, {
|
|
208
208
|
type: "project";
|
|
209
209
|
}, {
|
|
210
210
|
type: "project";
|
|
211
|
-
}
|
|
211
|
+
}>, z.ZodObject<{
|
|
212
|
+
type: z.ZodLiteral<"user">;
|
|
213
|
+
id: z.ZodString;
|
|
214
|
+
}, "strip", z.ZodTypeAny, {
|
|
215
|
+
id: string;
|
|
216
|
+
type: "user";
|
|
217
|
+
}, {
|
|
218
|
+
id: string;
|
|
219
|
+
type: "user";
|
|
220
|
+
}>]>;
|
|
212
221
|
slot: z.ZodString;
|
|
213
222
|
account: z.ZodObject<{
|
|
214
223
|
id: z.ZodString;
|
|
@@ -232,6 +241,9 @@ export declare const ConnectorConnectionSchema: z.ZodObject<{
|
|
|
232
241
|
id: string;
|
|
233
242
|
owner: {
|
|
234
243
|
type: "project";
|
|
244
|
+
} | {
|
|
245
|
+
id: string;
|
|
246
|
+
type: "user";
|
|
235
247
|
};
|
|
236
248
|
connectorId: string;
|
|
237
249
|
slot: string;
|
|
@@ -246,6 +258,9 @@ export declare const ConnectorConnectionSchema: z.ZodObject<{
|
|
|
246
258
|
id: string;
|
|
247
259
|
owner: {
|
|
248
260
|
type: "project";
|
|
261
|
+
} | {
|
|
262
|
+
id: string;
|
|
263
|
+
type: "user";
|
|
249
264
|
};
|
|
250
265
|
connectorId: string;
|
|
251
266
|
slot: string;
|
|
@@ -260,13 +275,22 @@ export declare const ConnectorConnectionRunSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
260
275
|
id: z.ZodString;
|
|
261
276
|
connectorId: z.ZodString;
|
|
262
277
|
kind: z.ZodEnum<["connect", "reauthorize"]>;
|
|
263
|
-
owner: z.ZodObject<{
|
|
278
|
+
owner: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
264
279
|
type: z.ZodLiteral<"project">;
|
|
265
280
|
}, "strip", z.ZodTypeAny, {
|
|
266
281
|
type: "project";
|
|
267
282
|
}, {
|
|
268
283
|
type: "project";
|
|
269
|
-
}
|
|
284
|
+
}>, z.ZodObject<{
|
|
285
|
+
type: z.ZodLiteral<"user">;
|
|
286
|
+
id: z.ZodString;
|
|
287
|
+
}, "strip", z.ZodTypeAny, {
|
|
288
|
+
id: string;
|
|
289
|
+
type: "user";
|
|
290
|
+
}, {
|
|
291
|
+
id: string;
|
|
292
|
+
type: "user";
|
|
293
|
+
}>]>;
|
|
270
294
|
slot: z.ZodString;
|
|
271
295
|
createdAt: z.ZodString;
|
|
272
296
|
updatedAt: z.ZodString;
|
|
@@ -278,10 +302,13 @@ export declare const ConnectorConnectionRunSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
278
302
|
status: "waiting";
|
|
279
303
|
id: string;
|
|
280
304
|
kind: "connect" | "reauthorize";
|
|
281
|
-
createdAt: string;
|
|
282
305
|
expiresAt: string;
|
|
306
|
+
createdAt: string;
|
|
283
307
|
owner: {
|
|
284
308
|
type: "project";
|
|
309
|
+
} | {
|
|
310
|
+
id: string;
|
|
311
|
+
type: "user";
|
|
285
312
|
};
|
|
286
313
|
updatedAt: string;
|
|
287
314
|
connectorId: string;
|
|
@@ -291,10 +318,13 @@ export declare const ConnectorConnectionRunSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
291
318
|
status: "waiting";
|
|
292
319
|
id: string;
|
|
293
320
|
kind: "connect" | "reauthorize";
|
|
294
|
-
createdAt: string;
|
|
295
321
|
expiresAt: string;
|
|
322
|
+
createdAt: string;
|
|
296
323
|
owner: {
|
|
297
324
|
type: "project";
|
|
325
|
+
} | {
|
|
326
|
+
id: string;
|
|
327
|
+
type: "user";
|
|
298
328
|
};
|
|
299
329
|
updatedAt: string;
|
|
300
330
|
connectorId: string;
|
|
@@ -304,13 +334,22 @@ export declare const ConnectorConnectionRunSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
304
334
|
id: z.ZodString;
|
|
305
335
|
connectorId: z.ZodString;
|
|
306
336
|
kind: z.ZodEnum<["connect", "reauthorize"]>;
|
|
307
|
-
owner: z.ZodObject<{
|
|
337
|
+
owner: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
308
338
|
type: z.ZodLiteral<"project">;
|
|
309
339
|
}, "strip", z.ZodTypeAny, {
|
|
310
340
|
type: "project";
|
|
311
341
|
}, {
|
|
312
342
|
type: "project";
|
|
313
|
-
}
|
|
343
|
+
}>, z.ZodObject<{
|
|
344
|
+
type: z.ZodLiteral<"user">;
|
|
345
|
+
id: z.ZodString;
|
|
346
|
+
}, "strip", z.ZodTypeAny, {
|
|
347
|
+
id: string;
|
|
348
|
+
type: "user";
|
|
349
|
+
}, {
|
|
350
|
+
id: string;
|
|
351
|
+
type: "user";
|
|
352
|
+
}>]>;
|
|
314
353
|
slot: z.ZodString;
|
|
315
354
|
createdAt: z.ZodString;
|
|
316
355
|
updatedAt: z.ZodString;
|
|
@@ -323,6 +362,9 @@ export declare const ConnectorConnectionRunSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
323
362
|
createdAt: string;
|
|
324
363
|
owner: {
|
|
325
364
|
type: "project";
|
|
365
|
+
} | {
|
|
366
|
+
id: string;
|
|
367
|
+
type: "user";
|
|
326
368
|
};
|
|
327
369
|
updatedAt: string;
|
|
328
370
|
connectorId: string;
|
|
@@ -334,6 +376,9 @@ export declare const ConnectorConnectionRunSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
334
376
|
createdAt: string;
|
|
335
377
|
owner: {
|
|
336
378
|
type: "project";
|
|
379
|
+
} | {
|
|
380
|
+
id: string;
|
|
381
|
+
type: "user";
|
|
337
382
|
};
|
|
338
383
|
updatedAt: string;
|
|
339
384
|
connectorId: string;
|
|
@@ -342,13 +387,22 @@ export declare const ConnectorConnectionRunSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
342
387
|
id: z.ZodString;
|
|
343
388
|
connectorId: z.ZodString;
|
|
344
389
|
kind: z.ZodEnum<["connect", "reauthorize"]>;
|
|
345
|
-
owner: z.ZodObject<{
|
|
390
|
+
owner: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
346
391
|
type: z.ZodLiteral<"project">;
|
|
347
392
|
}, "strip", z.ZodTypeAny, {
|
|
348
393
|
type: "project";
|
|
349
394
|
}, {
|
|
350
395
|
type: "project";
|
|
351
|
-
}
|
|
396
|
+
}>, z.ZodObject<{
|
|
397
|
+
type: z.ZodLiteral<"user">;
|
|
398
|
+
id: z.ZodString;
|
|
399
|
+
}, "strip", z.ZodTypeAny, {
|
|
400
|
+
id: string;
|
|
401
|
+
type: "user";
|
|
402
|
+
}, {
|
|
403
|
+
id: string;
|
|
404
|
+
type: "user";
|
|
405
|
+
}>]>;
|
|
352
406
|
slot: z.ZodString;
|
|
353
407
|
createdAt: z.ZodString;
|
|
354
408
|
updatedAt: z.ZodString;
|
|
@@ -378,6 +432,9 @@ export declare const ConnectorConnectionRunSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
378
432
|
createdAt: string;
|
|
379
433
|
owner: {
|
|
380
434
|
type: "project";
|
|
435
|
+
} | {
|
|
436
|
+
id: string;
|
|
437
|
+
type: "user";
|
|
381
438
|
};
|
|
382
439
|
updatedAt: string;
|
|
383
440
|
connectorId: string;
|
|
@@ -396,6 +453,9 @@ export declare const ConnectorConnectionRunSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
396
453
|
createdAt: string;
|
|
397
454
|
owner: {
|
|
398
455
|
type: "project";
|
|
456
|
+
} | {
|
|
457
|
+
id: string;
|
|
458
|
+
type: "user";
|
|
399
459
|
};
|
|
400
460
|
updatedAt: string;
|
|
401
461
|
connectorId: string;
|
|
@@ -411,13 +471,22 @@ export declare const ConnectorConnectionRunSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
411
471
|
id: z.ZodString;
|
|
412
472
|
connectorId: z.ZodString;
|
|
413
473
|
kind: z.ZodEnum<["connect", "reauthorize"]>;
|
|
414
|
-
owner: z.ZodObject<{
|
|
474
|
+
owner: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
415
475
|
type: z.ZodLiteral<"project">;
|
|
416
476
|
}, "strip", z.ZodTypeAny, {
|
|
417
477
|
type: "project";
|
|
418
478
|
}, {
|
|
419
479
|
type: "project";
|
|
420
|
-
}
|
|
480
|
+
}>, z.ZodObject<{
|
|
481
|
+
type: z.ZodLiteral<"user">;
|
|
482
|
+
id: z.ZodString;
|
|
483
|
+
}, "strip", z.ZodTypeAny, {
|
|
484
|
+
id: string;
|
|
485
|
+
type: "user";
|
|
486
|
+
}, {
|
|
487
|
+
id: string;
|
|
488
|
+
type: "user";
|
|
489
|
+
}>]>;
|
|
421
490
|
slot: z.ZodString;
|
|
422
491
|
createdAt: z.ZodString;
|
|
423
492
|
updatedAt: z.ZodString;
|
|
@@ -426,13 +495,22 @@ export declare const ConnectorConnectionRunSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
426
495
|
connections: z.ZodArray<z.ZodObject<{
|
|
427
496
|
id: z.ZodString;
|
|
428
497
|
connectorId: z.ZodString;
|
|
429
|
-
owner: z.ZodObject<{
|
|
498
|
+
owner: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
430
499
|
type: z.ZodLiteral<"project">;
|
|
431
500
|
}, "strip", z.ZodTypeAny, {
|
|
432
501
|
type: "project";
|
|
433
502
|
}, {
|
|
434
503
|
type: "project";
|
|
435
|
-
}
|
|
504
|
+
}>, z.ZodObject<{
|
|
505
|
+
type: z.ZodLiteral<"user">;
|
|
506
|
+
id: z.ZodString;
|
|
507
|
+
}, "strip", z.ZodTypeAny, {
|
|
508
|
+
id: string;
|
|
509
|
+
type: "user";
|
|
510
|
+
}, {
|
|
511
|
+
id: string;
|
|
512
|
+
type: "user";
|
|
513
|
+
}>]>;
|
|
436
514
|
slot: z.ZodString;
|
|
437
515
|
account: z.ZodObject<{
|
|
438
516
|
id: z.ZodString;
|
|
@@ -456,6 +534,9 @@ export declare const ConnectorConnectionRunSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
456
534
|
id: string;
|
|
457
535
|
owner: {
|
|
458
536
|
type: "project";
|
|
537
|
+
} | {
|
|
538
|
+
id: string;
|
|
539
|
+
type: "user";
|
|
459
540
|
};
|
|
460
541
|
connectorId: string;
|
|
461
542
|
slot: string;
|
|
@@ -470,6 +551,9 @@ export declare const ConnectorConnectionRunSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
470
551
|
id: string;
|
|
471
552
|
owner: {
|
|
472
553
|
type: "project";
|
|
554
|
+
} | {
|
|
555
|
+
id: string;
|
|
556
|
+
type: "user";
|
|
473
557
|
};
|
|
474
558
|
connectorId: string;
|
|
475
559
|
slot: string;
|
|
@@ -489,6 +573,9 @@ export declare const ConnectorConnectionRunSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
489
573
|
createdAt: string;
|
|
490
574
|
owner: {
|
|
491
575
|
type: "project";
|
|
576
|
+
} | {
|
|
577
|
+
id: string;
|
|
578
|
+
type: "user";
|
|
492
579
|
};
|
|
493
580
|
updatedAt: string;
|
|
494
581
|
connections: {
|
|
@@ -496,6 +583,9 @@ export declare const ConnectorConnectionRunSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
496
583
|
id: string;
|
|
497
584
|
owner: {
|
|
498
585
|
type: "project";
|
|
586
|
+
} | {
|
|
587
|
+
id: string;
|
|
588
|
+
type: "user";
|
|
499
589
|
};
|
|
500
590
|
connectorId: string;
|
|
501
591
|
slot: string;
|
|
@@ -516,6 +606,9 @@ export declare const ConnectorConnectionRunSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
516
606
|
createdAt: string;
|
|
517
607
|
owner: {
|
|
518
608
|
type: "project";
|
|
609
|
+
} | {
|
|
610
|
+
id: string;
|
|
611
|
+
type: "user";
|
|
519
612
|
};
|
|
520
613
|
updatedAt: string;
|
|
521
614
|
connections: {
|
|
@@ -523,6 +616,9 @@ export declare const ConnectorConnectionRunSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
523
616
|
id: string;
|
|
524
617
|
owner: {
|
|
525
618
|
type: "project";
|
|
619
|
+
} | {
|
|
620
|
+
id: string;
|
|
621
|
+
type: "user";
|
|
526
622
|
};
|
|
527
623
|
connectorId: string;
|
|
528
624
|
slot: string;
|
|
@@ -539,13 +635,22 @@ export declare const ConnectorConnectionRunSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
539
635
|
id: z.ZodString;
|
|
540
636
|
connectorId: z.ZodString;
|
|
541
637
|
kind: z.ZodEnum<["connect", "reauthorize"]>;
|
|
542
|
-
owner: z.ZodObject<{
|
|
638
|
+
owner: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
543
639
|
type: z.ZodLiteral<"project">;
|
|
544
640
|
}, "strip", z.ZodTypeAny, {
|
|
545
641
|
type: "project";
|
|
546
642
|
}, {
|
|
547
643
|
type: "project";
|
|
548
|
-
}
|
|
644
|
+
}>, z.ZodObject<{
|
|
645
|
+
type: z.ZodLiteral<"user">;
|
|
646
|
+
id: z.ZodString;
|
|
647
|
+
}, "strip", z.ZodTypeAny, {
|
|
648
|
+
id: string;
|
|
649
|
+
type: "user";
|
|
650
|
+
}, {
|
|
651
|
+
id: string;
|
|
652
|
+
type: "user";
|
|
653
|
+
}>]>;
|
|
549
654
|
slot: z.ZodString;
|
|
550
655
|
createdAt: z.ZodString;
|
|
551
656
|
updatedAt: z.ZodString;
|
|
@@ -562,6 +667,9 @@ export declare const ConnectorConnectionRunSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
562
667
|
createdAt: string;
|
|
563
668
|
owner: {
|
|
564
669
|
type: "project";
|
|
670
|
+
} | {
|
|
671
|
+
id: string;
|
|
672
|
+
type: "user";
|
|
565
673
|
};
|
|
566
674
|
updatedAt: string;
|
|
567
675
|
connectorId: string;
|
|
@@ -575,6 +683,9 @@ export declare const ConnectorConnectionRunSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
575
683
|
createdAt: string;
|
|
576
684
|
owner: {
|
|
577
685
|
type: "project";
|
|
686
|
+
} | {
|
|
687
|
+
id: string;
|
|
688
|
+
type: "user";
|
|
578
689
|
};
|
|
579
690
|
updatedAt: string;
|
|
580
691
|
connectorId: string;
|
|
@@ -583,13 +694,22 @@ export declare const ConnectorConnectionRunSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
583
694
|
id: z.ZodString;
|
|
584
695
|
connectorId: z.ZodString;
|
|
585
696
|
kind: z.ZodEnum<["connect", "reauthorize"]>;
|
|
586
|
-
owner: z.ZodObject<{
|
|
697
|
+
owner: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
587
698
|
type: z.ZodLiteral<"project">;
|
|
588
699
|
}, "strip", z.ZodTypeAny, {
|
|
589
700
|
type: "project";
|
|
590
701
|
}, {
|
|
591
702
|
type: "project";
|
|
592
|
-
}
|
|
703
|
+
}>, z.ZodObject<{
|
|
704
|
+
type: z.ZodLiteral<"user">;
|
|
705
|
+
id: z.ZodString;
|
|
706
|
+
}, "strip", z.ZodTypeAny, {
|
|
707
|
+
id: string;
|
|
708
|
+
type: "user";
|
|
709
|
+
}, {
|
|
710
|
+
id: string;
|
|
711
|
+
type: "user";
|
|
712
|
+
}>]>;
|
|
593
713
|
slot: z.ZodString;
|
|
594
714
|
createdAt: z.ZodString;
|
|
595
715
|
updatedAt: z.ZodString;
|
|
@@ -604,6 +724,9 @@ export declare const ConnectorConnectionRunSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
604
724
|
createdAt: string;
|
|
605
725
|
owner: {
|
|
606
726
|
type: "project";
|
|
727
|
+
} | {
|
|
728
|
+
id: string;
|
|
729
|
+
type: "user";
|
|
607
730
|
};
|
|
608
731
|
updatedAt: string;
|
|
609
732
|
connectorId: string;
|
|
@@ -616,27 +739,43 @@ export declare const ConnectorConnectionRunSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
616
739
|
createdAt: string;
|
|
617
740
|
owner: {
|
|
618
741
|
type: "project";
|
|
742
|
+
} | {
|
|
743
|
+
id: string;
|
|
744
|
+
type: "user";
|
|
619
745
|
};
|
|
620
746
|
updatedAt: string;
|
|
621
747
|
connectorId: string;
|
|
622
748
|
slot: string;
|
|
623
749
|
}>]>;
|
|
750
|
+
export declare const ListConnectorConnectionsQuerySchema: z.ZodObject<{
|
|
751
|
+
owner: z.ZodOptional<z.ZodEnum<["project", "me"]>>;
|
|
752
|
+
}, "strip", z.ZodTypeAny, {
|
|
753
|
+
owner?: "project" | "me" | undefined;
|
|
754
|
+
}, {
|
|
755
|
+
owner?: "project" | "me" | undefined;
|
|
756
|
+
}>;
|
|
624
757
|
export declare const StartConnectorConnectionRunBodySchema: z.ZodObject<{
|
|
758
|
+
owner: z.ZodDefault<z.ZodEnum<["project", "me"]>>;
|
|
625
759
|
slot: z.ZodString;
|
|
626
760
|
returnTo: z.ZodString;
|
|
627
761
|
}, "strip", z.ZodTypeAny, {
|
|
628
762
|
returnTo: string;
|
|
763
|
+
owner: "project" | "me";
|
|
629
764
|
slot: string;
|
|
630
765
|
}, {
|
|
631
766
|
returnTo: string;
|
|
632
767
|
slot: string;
|
|
768
|
+
owner?: "project" | "me" | undefined;
|
|
633
769
|
}>;
|
|
634
770
|
export declare const AddConnectorConnectionBodySchema: z.ZodObject<{
|
|
771
|
+
owner: z.ZodDefault<z.ZodEnum<["project", "me"]>>;
|
|
635
772
|
slot: z.ZodString;
|
|
636
773
|
}, "strip", z.ZodTypeAny, {
|
|
774
|
+
owner: "project" | "me";
|
|
637
775
|
slot: string;
|
|
638
776
|
}, {
|
|
639
777
|
slot: string;
|
|
778
|
+
owner?: "project" | "me" | undefined;
|
|
640
779
|
}>;
|
|
641
780
|
export declare const StartConnectorReauthorizationBodySchema: z.ZodObject<{
|
|
642
781
|
returnTo: z.ZodString;
|
|
@@ -651,13 +790,22 @@ export declare const StartConnectorConnectionRunResponseSchema: z.ZodObject<{
|
|
|
651
790
|
affectedConnections: z.ZodArray<z.ZodObject<{
|
|
652
791
|
id: z.ZodString;
|
|
653
792
|
connectorId: z.ZodString;
|
|
654
|
-
owner: z.ZodObject<{
|
|
793
|
+
owner: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
655
794
|
type: z.ZodLiteral<"project">;
|
|
656
795
|
}, "strip", z.ZodTypeAny, {
|
|
657
796
|
type: "project";
|
|
658
797
|
}, {
|
|
659
798
|
type: "project";
|
|
660
|
-
}
|
|
799
|
+
}>, z.ZodObject<{
|
|
800
|
+
type: z.ZodLiteral<"user">;
|
|
801
|
+
id: z.ZodString;
|
|
802
|
+
}, "strip", z.ZodTypeAny, {
|
|
803
|
+
id: string;
|
|
804
|
+
type: "user";
|
|
805
|
+
}, {
|
|
806
|
+
id: string;
|
|
807
|
+
type: "user";
|
|
808
|
+
}>]>;
|
|
661
809
|
slot: z.ZodString;
|
|
662
810
|
account: z.ZodObject<{
|
|
663
811
|
id: z.ZodString;
|
|
@@ -681,6 +829,9 @@ export declare const StartConnectorConnectionRunResponseSchema: z.ZodObject<{
|
|
|
681
829
|
id: string;
|
|
682
830
|
owner: {
|
|
683
831
|
type: "project";
|
|
832
|
+
} | {
|
|
833
|
+
id: string;
|
|
834
|
+
type: "user";
|
|
684
835
|
};
|
|
685
836
|
connectorId: string;
|
|
686
837
|
slot: string;
|
|
@@ -695,6 +846,9 @@ export declare const StartConnectorConnectionRunResponseSchema: z.ZodObject<{
|
|
|
695
846
|
id: string;
|
|
696
847
|
owner: {
|
|
697
848
|
type: "project";
|
|
849
|
+
} | {
|
|
850
|
+
id: string;
|
|
851
|
+
type: "user";
|
|
698
852
|
};
|
|
699
853
|
connectorId: string;
|
|
700
854
|
slot: string;
|
|
@@ -713,6 +867,9 @@ export declare const StartConnectorConnectionRunResponseSchema: z.ZodObject<{
|
|
|
713
867
|
id: string;
|
|
714
868
|
owner: {
|
|
715
869
|
type: "project";
|
|
870
|
+
} | {
|
|
871
|
+
id: string;
|
|
872
|
+
type: "user";
|
|
716
873
|
};
|
|
717
874
|
connectorId: string;
|
|
718
875
|
slot: string;
|
|
@@ -731,6 +888,9 @@ export declare const StartConnectorConnectionRunResponseSchema: z.ZodObject<{
|
|
|
731
888
|
id: string;
|
|
732
889
|
owner: {
|
|
733
890
|
type: "project";
|
|
891
|
+
} | {
|
|
892
|
+
id: string;
|
|
893
|
+
type: "user";
|
|
734
894
|
};
|
|
735
895
|
connectorId: string;
|
|
736
896
|
slot: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connectors.d.ts","sourceRoot":"","sources":["../../src/schemas/connectors.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,6BAA6B,EACnC,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB,eAAO,MAAM,0BAA0B,yaAc7B,CAAA;AACV,MAAM,MAAM,sBAAsB,GAAG,CAAC,OAAO,0BAA0B,CAAC,CAAC,MAAM,CAAC,CAAA;AAEhF,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