@sixb/server 0.1.21 → 0.1.22
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/dist/artifacts/frame.d.ts +5 -0
- package/dist/artifacts/frame.d.ts.map +1 -1
- package/dist/auth/browser-origin.d.ts +5 -1
- package/dist/auth/browser-origin.d.ts.map +1 -1
- package/dist/auth/experience.d.ts +1 -0
- package/dist/auth/experience.d.ts.map +1 -1
- package/dist/auth/public-routes.d.ts.map +1 -1
- package/dist/auth/responses.d.ts +1 -1
- package/dist/auth/responses.d.ts.map +1 -1
- package/dist/auth/scope.d.ts +19 -3
- package/dist/auth/scope.d.ts.map +1 -1
- package/dist/index.js +10093 -7553
- package/dist/index.js.map +51 -39
- package/dist/models/display.d.ts +27 -0
- package/dist/models/display.d.ts.map +1 -1
- package/dist/openapi/components.d.ts +14 -0
- package/dist/openapi/components.d.ts.map +1 -0
- package/dist/openapi/tags.d.ts +14 -2
- package/dist/openapi/tags.d.ts.map +1 -1
- package/dist/registerRoutes.d.ts.map +1 -1
- package/dist/routes/actions.d.ts +5 -5
- package/dist/routes/agent-api-gateway.d.ts.map +1 -1
- package/dist/routes/agent-approval-gate.d.ts +27 -0
- package/dist/routes/agent-approval-gate.d.ts.map +1 -0
- package/dist/routes/agent-approvals.d.ts +599 -0
- package/dist/routes/agent-approvals.d.ts.map +1 -0
- package/dist/routes/agent-children.d.ts +318 -0
- package/dist/routes/agent-children.d.ts.map +1 -0
- package/dist/routes/agent-memory.d.ts +267 -0
- package/dist/routes/agent-memory.d.ts.map +1 -0
- package/dist/routes/agents.d.ts +999 -80
- package/dist/routes/agents.d.ts.map +1 -1
- package/dist/routes/ai-accounting.d.ts.map +1 -1
- package/dist/routes/artifact-frames.d.ts +3 -3
- package/dist/routes/artifact-frames.d.ts.map +1 -1
- package/dist/routes/artifacts.d.ts +790 -134
- package/dist/routes/artifacts.d.ts.map +1 -1
- package/dist/routes/auth.d.ts +116 -10
- package/dist/routes/auth.d.ts.map +1 -1
- package/dist/routes/connector-connection-runs.d.ts +50 -50
- package/dist/routes/connectors.d.ts +2 -2
- package/dist/routes/datasets.d.ts +20 -20
- package/dist/routes/events.d.ts +4 -4
- package/dist/routes/files.d.ts +14 -14
- package/dist/routes/files.d.ts.map +1 -1
- package/dist/routes/links.d.ts +2 -2
- package/dist/routes/logs.d.ts +5 -5
- package/dist/routes/model-calls.d.ts +155 -0
- package/dist/routes/model-calls.d.ts.map +1 -0
- package/dist/routes/model-generations.d.ts +400 -0
- package/dist/routes/model-generations.d.ts.map +1 -0
- package/dist/routes/models.d.ts +434 -1
- package/dist/routes/models.d.ts.map +1 -1
- package/dist/routes/objects.d.ts +71 -40
- package/dist/routes/objects.d.ts.map +1 -1
- package/dist/routes/observed-agent-threads.d.ts +682 -0
- package/dist/routes/observed-agent-threads.d.ts.map +1 -0
- package/dist/routes/ontology.d.ts +66 -62
- package/dist/routes/ontology.d.ts.map +1 -1
- package/dist/routes/pipelines.d.ts +24 -24
- package/dist/routes/projections.d.ts +55 -55
- package/dist/routes/rules.d.ts +2 -2
- package/dist/routes/share-grants.d.ts +9 -9
- package/dist/routes/syncs.d.ts +46 -46
- package/dist/routes/users.d.ts +117 -0
- package/dist/routes/users.d.ts.map +1 -0
- package/dist/routes/webhook-runs.d.ts +1 -1
- package/dist/routes/workflows.d.ts +118 -52
- package/dist/routes/workflows.d.ts.map +1 -1
- package/dist/routes/ws/agents.d.ts +7 -2
- package/dist/routes/ws/agents.d.ts.map +1 -1
- package/dist/routes/ws/events.d.ts +6 -6
- package/dist/routes/ws/logs.d.ts +14 -14
- package/dist/schemas/actions.d.ts +15 -15
- package/dist/schemas/activity.d.ts +48 -28
- package/dist/schemas/activity.d.ts.map +1 -1
- package/dist/schemas/agent-approvals.d.ts +1091 -0
- package/dist/schemas/agent-approvals.d.ts.map +1 -0
- package/dist/schemas/agent-memory.d.ts +250 -0
- package/dist/schemas/agent-memory.d.ts.map +1 -0
- package/dist/schemas/agents.d.ts +5442 -369
- package/dist/schemas/agents.d.ts.map +1 -1
- package/dist/schemas/ai-accounting.d.ts +1290 -411
- package/dist/schemas/ai-accounting.d.ts.map +1 -1
- package/dist/schemas/ai-limits.d.ts +10 -10
- package/dist/schemas/ai-usage.d.ts +12 -0
- package/dist/schemas/ai-usage.d.ts.map +1 -1
- package/dist/schemas/artifacts.d.ts +650 -98
- package/dist/schemas/artifacts.d.ts.map +1 -1
- package/dist/schemas/auth.d.ts +119 -46
- package/dist/schemas/auth.d.ts.map +1 -1
- package/dist/schemas/connectors.d.ts +22 -22
- package/dist/schemas/datasets.d.ts +98 -98
- package/dist/schemas/event-payloads.d.ts +6 -6
- package/dist/schemas/events.d.ts +26 -26
- package/dist/schemas/events.d.ts.map +1 -1
- package/dist/schemas/files.d.ts +24 -24
- package/dist/schemas/links.d.ts +2 -2
- package/dist/schemas/logs.d.ts +32 -32
- package/dist/schemas/models.d.ts +8889 -10
- package/dist/schemas/models.d.ts.map +1 -1
- package/dist/schemas/objects.d.ts +48 -12
- package/dist/schemas/objects.d.ts.map +1 -1
- package/dist/schemas/ontology.d.ts +127 -104
- package/dist/schemas/ontology.d.ts.map +1 -1
- package/dist/schemas/pipelines.d.ts +132 -132
- package/dist/schemas/projections.d.ts +314 -314
- package/dist/schemas/rules.d.ts +4 -4
- package/dist/schemas/share-grants.d.ts +30 -30
- package/dist/schemas/syncs.d.ts +49 -49
- package/dist/schemas/users.d.ts +72 -0
- package/dist/schemas/users.d.ts.map +1 -0
- package/dist/schemas/webhook-runs.d.ts +6 -6
- package/dist/schemas/workflows.d.ts +701 -186
- package/dist/schemas/workflows.d.ts.map +1 -1
- package/dist/server.d.ts +1 -0
- package/dist/server.d.ts.map +1 -1
- package/dist/utils/http.d.ts.map +1 -1
- package/package.json +7 -7
- package/src/artifacts/frame.ts +6 -1
- package/src/auth/browser-origin.ts +8 -3
- package/src/auth/experience.ts +1 -1
- package/src/auth/guard.ts +2 -2
- package/src/auth/public-routes.ts +6 -0
- package/src/auth/responses.ts +7 -6
- package/src/auth/scope.ts +32 -3
- package/src/models/display.ts +61 -16
- package/src/openapi/components.ts +54 -0
- package/src/openapi/tags.ts +12 -0
- package/src/registerRoutes.ts +14 -0
- package/src/routes/agent-api-gateway.ts +115 -91
- package/src/routes/agent-approval-gate.ts +213 -0
- package/src/routes/agent-approvals.ts +299 -0
- package/src/routes/agent-children.ts +209 -0
- package/src/routes/agent-memory.ts +210 -0
- package/src/routes/agents.ts +363 -142
- package/src/routes/ai-accounting.ts +4 -0
- package/src/routes/artifact-frames.ts +14 -8
- package/src/routes/artifacts.ts +297 -22
- package/src/routes/auth.ts +306 -13
- package/src/routes/files.ts +6 -7
- package/src/routes/model-calls.ts +120 -0
- package/src/routes/model-generations.ts +245 -0
- package/src/routes/models.ts +116 -9
- package/src/routes/objects.ts +55 -61
- package/src/routes/observed-agent-threads.ts +253 -0
- package/src/routes/ontology.ts +1 -0
- package/src/routes/users.ts +73 -0
- package/src/routes/workflows.ts +6 -9
- package/src/routes/ws/agents.ts +10 -5
- package/src/schemas/activity.ts +2 -0
- package/src/schemas/agent-approvals.ts +129 -0
- package/src/schemas/agent-memory.ts +96 -0
- package/src/schemas/agents.ts +239 -0
- package/src/schemas/ai-accounting.ts +40 -4
- package/src/schemas/ai-usage.ts +10 -0
- package/src/schemas/artifacts.ts +91 -3
- package/src/schemas/auth.ts +25 -0
- package/src/schemas/models.ts +197 -1
- package/src/schemas/objects.ts +181 -0
- package/src/schemas/ontology.ts +1 -0
- package/src/schemas/users.ts +24 -0
- package/src/schemas/workflows.ts +2 -0
- package/src/server.ts +9 -10
- package/src/utils/http.ts +2 -0
package/dist/schemas/rules.d.ts
CHANGED
|
@@ -59,12 +59,12 @@ export declare const RuleSchema: z.ZodObject<{
|
|
|
59
59
|
linkId: z.ZodString;
|
|
60
60
|
}, "strip", z.ZodTypeAny, {
|
|
61
61
|
type: "link.created" | "link.updated" | "link.deleted";
|
|
62
|
-
sourceTypeId: string;
|
|
63
62
|
linkId: string;
|
|
63
|
+
sourceTypeId: string;
|
|
64
64
|
}, {
|
|
65
65
|
type: "link.created" | "link.updated" | "link.deleted";
|
|
66
|
-
sourceTypeId: string;
|
|
67
66
|
linkId: string;
|
|
67
|
+
sourceTypeId: string;
|
|
68
68
|
}>]>, "many">;
|
|
69
69
|
}, "strip", z.ZodTypeAny, {
|
|
70
70
|
id: string;
|
|
@@ -79,8 +79,8 @@ export declare const RuleSchema: z.ZodObject<{
|
|
|
79
79
|
objectTypeId: string;
|
|
80
80
|
} | {
|
|
81
81
|
type: "link.created" | "link.updated" | "link.deleted";
|
|
82
|
-
sourceTypeId: string;
|
|
83
82
|
linkId: string;
|
|
83
|
+
sourceTypeId: string;
|
|
84
84
|
})[];
|
|
85
85
|
}, {
|
|
86
86
|
id: string;
|
|
@@ -95,8 +95,8 @@ export declare const RuleSchema: z.ZodObject<{
|
|
|
95
95
|
objectTypeId: string;
|
|
96
96
|
} | {
|
|
97
97
|
type: "link.created" | "link.updated" | "link.deleted";
|
|
98
|
-
sourceTypeId: string;
|
|
99
98
|
linkId: string;
|
|
99
|
+
sourceTypeId: string;
|
|
100
100
|
})[];
|
|
101
101
|
}>;
|
|
102
102
|
export declare const RuleStateSchema: z.ZodObject<{
|
|
@@ -48,13 +48,13 @@ export declare const SharedAccessGrantSchema: z.ZodObject<{
|
|
|
48
48
|
}>>;
|
|
49
49
|
}, "strip", z.ZodTypeAny, {
|
|
50
50
|
id: string;
|
|
51
|
-
expiresAt: string;
|
|
52
51
|
createdAt: string;
|
|
53
|
-
|
|
52
|
+
expiresAt: string;
|
|
54
53
|
target: {
|
|
55
54
|
objectTypeId: string;
|
|
56
55
|
primaryId: string;
|
|
57
56
|
};
|
|
57
|
+
definitionId: string;
|
|
58
58
|
issuedBy: {
|
|
59
59
|
id: string;
|
|
60
60
|
type: "user" | "serviceAccount";
|
|
@@ -67,13 +67,13 @@ export declare const SharedAccessGrantSchema: z.ZodObject<{
|
|
|
67
67
|
} | undefined;
|
|
68
68
|
}, {
|
|
69
69
|
id: string;
|
|
70
|
-
expiresAt: string;
|
|
71
70
|
createdAt: string;
|
|
72
|
-
|
|
71
|
+
expiresAt: string;
|
|
73
72
|
target: {
|
|
74
73
|
objectTypeId: string;
|
|
75
74
|
primaryId: string;
|
|
76
75
|
};
|
|
76
|
+
definitionId: string;
|
|
77
77
|
issuedBy: {
|
|
78
78
|
id: string;
|
|
79
79
|
type: "user" | "serviceAccount";
|
|
@@ -101,19 +101,19 @@ export declare const IssueSharedAccessGrantBodySchema: z.ZodObject<{
|
|
|
101
101
|
expiresAt: z.ZodString;
|
|
102
102
|
}, "strip", z.ZodTypeAny, {
|
|
103
103
|
expiresAt: string;
|
|
104
|
-
definitionId: string;
|
|
105
104
|
target: {
|
|
106
105
|
objectTypeId: string;
|
|
107
106
|
primaryId: string;
|
|
108
107
|
};
|
|
108
|
+
definitionId: string;
|
|
109
109
|
destinationPath: string;
|
|
110
110
|
}, {
|
|
111
111
|
expiresAt: string;
|
|
112
|
-
definitionId: string;
|
|
113
112
|
target: {
|
|
114
113
|
objectTypeId: string;
|
|
115
114
|
primaryId: string;
|
|
116
115
|
};
|
|
116
|
+
definitionId: string;
|
|
117
117
|
destinationPath: string;
|
|
118
118
|
}>;
|
|
119
119
|
export declare const IssueSharedAccessGrantResponseSchema: z.ZodObject<{
|
|
@@ -156,13 +156,13 @@ export declare const IssueSharedAccessGrantResponseSchema: z.ZodObject<{
|
|
|
156
156
|
}>>;
|
|
157
157
|
}, "strip", z.ZodTypeAny, {
|
|
158
158
|
id: string;
|
|
159
|
-
expiresAt: string;
|
|
160
159
|
createdAt: string;
|
|
161
|
-
|
|
160
|
+
expiresAt: string;
|
|
162
161
|
target: {
|
|
163
162
|
objectTypeId: string;
|
|
164
163
|
primaryId: string;
|
|
165
164
|
};
|
|
165
|
+
definitionId: string;
|
|
166
166
|
issuedBy: {
|
|
167
167
|
id: string;
|
|
168
168
|
type: "user" | "serviceAccount";
|
|
@@ -175,13 +175,13 @@ export declare const IssueSharedAccessGrantResponseSchema: z.ZodObject<{
|
|
|
175
175
|
} | undefined;
|
|
176
176
|
}, {
|
|
177
177
|
id: string;
|
|
178
|
-
expiresAt: string;
|
|
179
178
|
createdAt: string;
|
|
180
|
-
|
|
179
|
+
expiresAt: string;
|
|
181
180
|
target: {
|
|
182
181
|
objectTypeId: string;
|
|
183
182
|
primaryId: string;
|
|
184
183
|
};
|
|
184
|
+
definitionId: string;
|
|
185
185
|
issuedBy: {
|
|
186
186
|
id: string;
|
|
187
187
|
type: "user" | "serviceAccount";
|
|
@@ -199,13 +199,13 @@ export declare const IssueSharedAccessGrantResponseSchema: z.ZodObject<{
|
|
|
199
199
|
url: string;
|
|
200
200
|
grant: {
|
|
201
201
|
id: string;
|
|
202
|
-
expiresAt: string;
|
|
203
202
|
createdAt: string;
|
|
204
|
-
|
|
203
|
+
expiresAt: string;
|
|
205
204
|
target: {
|
|
206
205
|
objectTypeId: string;
|
|
207
206
|
primaryId: string;
|
|
208
207
|
};
|
|
208
|
+
definitionId: string;
|
|
209
209
|
issuedBy: {
|
|
210
210
|
id: string;
|
|
211
211
|
type: "user" | "serviceAccount";
|
|
@@ -221,13 +221,13 @@ export declare const IssueSharedAccessGrantResponseSchema: z.ZodObject<{
|
|
|
221
221
|
url: string;
|
|
222
222
|
grant: {
|
|
223
223
|
id: string;
|
|
224
|
-
expiresAt: string;
|
|
225
224
|
createdAt: string;
|
|
226
|
-
|
|
225
|
+
expiresAt: string;
|
|
227
226
|
target: {
|
|
228
227
|
objectTypeId: string;
|
|
229
228
|
primaryId: string;
|
|
230
229
|
};
|
|
230
|
+
definitionId: string;
|
|
231
231
|
issuedBy: {
|
|
232
232
|
id: string;
|
|
233
233
|
type: "user" | "serviceAccount";
|
|
@@ -302,13 +302,13 @@ export declare const ListSharedAccessGrantsResponseSchema: z.ZodObject<{
|
|
|
302
302
|
}>>;
|
|
303
303
|
}, "strip", z.ZodTypeAny, {
|
|
304
304
|
id: string;
|
|
305
|
-
expiresAt: string;
|
|
306
305
|
createdAt: string;
|
|
307
|
-
|
|
306
|
+
expiresAt: string;
|
|
308
307
|
target: {
|
|
309
308
|
objectTypeId: string;
|
|
310
309
|
primaryId: string;
|
|
311
310
|
};
|
|
311
|
+
definitionId: string;
|
|
312
312
|
issuedBy: {
|
|
313
313
|
id: string;
|
|
314
314
|
type: "user" | "serviceAccount";
|
|
@@ -321,13 +321,13 @@ export declare const ListSharedAccessGrantsResponseSchema: z.ZodObject<{
|
|
|
321
321
|
} | undefined;
|
|
322
322
|
}, {
|
|
323
323
|
id: string;
|
|
324
|
-
expiresAt: string;
|
|
325
324
|
createdAt: string;
|
|
326
|
-
|
|
325
|
+
expiresAt: string;
|
|
327
326
|
target: {
|
|
328
327
|
objectTypeId: string;
|
|
329
328
|
primaryId: string;
|
|
330
329
|
};
|
|
330
|
+
definitionId: string;
|
|
331
331
|
issuedBy: {
|
|
332
332
|
id: string;
|
|
333
333
|
type: "user" | "serviceAccount";
|
|
@@ -346,13 +346,13 @@ export declare const ListSharedAccessGrantsResponseSchema: z.ZodObject<{
|
|
|
346
346
|
total: number;
|
|
347
347
|
grants: {
|
|
348
348
|
id: string;
|
|
349
|
-
expiresAt: string;
|
|
350
349
|
createdAt: string;
|
|
351
|
-
|
|
350
|
+
expiresAt: string;
|
|
352
351
|
target: {
|
|
353
352
|
objectTypeId: string;
|
|
354
353
|
primaryId: string;
|
|
355
354
|
};
|
|
355
|
+
definitionId: string;
|
|
356
356
|
issuedBy: {
|
|
357
357
|
id: string;
|
|
358
358
|
type: "user" | "serviceAccount";
|
|
@@ -369,13 +369,13 @@ export declare const ListSharedAccessGrantsResponseSchema: z.ZodObject<{
|
|
|
369
369
|
total: number;
|
|
370
370
|
grants: {
|
|
371
371
|
id: string;
|
|
372
|
-
expiresAt: string;
|
|
373
372
|
createdAt: string;
|
|
374
|
-
|
|
373
|
+
expiresAt: string;
|
|
375
374
|
target: {
|
|
376
375
|
objectTypeId: string;
|
|
377
376
|
primaryId: string;
|
|
378
377
|
};
|
|
378
|
+
definitionId: string;
|
|
379
379
|
issuedBy: {
|
|
380
380
|
id: string;
|
|
381
381
|
type: "user" | "serviceAccount";
|
|
@@ -435,13 +435,13 @@ export declare const RevokeSharedAccessGrantResponseSchema: z.ZodObject<{
|
|
|
435
435
|
}>>;
|
|
436
436
|
}, "strip", z.ZodTypeAny, {
|
|
437
437
|
id: string;
|
|
438
|
-
expiresAt: string;
|
|
439
438
|
createdAt: string;
|
|
440
|
-
|
|
439
|
+
expiresAt: string;
|
|
441
440
|
target: {
|
|
442
441
|
objectTypeId: string;
|
|
443
442
|
primaryId: string;
|
|
444
443
|
};
|
|
444
|
+
definitionId: string;
|
|
445
445
|
issuedBy: {
|
|
446
446
|
id: string;
|
|
447
447
|
type: "user" | "serviceAccount";
|
|
@@ -454,13 +454,13 @@ export declare const RevokeSharedAccessGrantResponseSchema: z.ZodObject<{
|
|
|
454
454
|
} | undefined;
|
|
455
455
|
}, {
|
|
456
456
|
id: string;
|
|
457
|
-
expiresAt: string;
|
|
458
457
|
createdAt: string;
|
|
459
|
-
|
|
458
|
+
expiresAt: string;
|
|
460
459
|
target: {
|
|
461
460
|
objectTypeId: string;
|
|
462
461
|
primaryId: string;
|
|
463
462
|
};
|
|
463
|
+
definitionId: string;
|
|
464
464
|
issuedBy: {
|
|
465
465
|
id: string;
|
|
466
466
|
type: "user" | "serviceAccount";
|
|
@@ -475,13 +475,13 @@ export declare const RevokeSharedAccessGrantResponseSchema: z.ZodObject<{
|
|
|
475
475
|
}, "strip", z.ZodTypeAny, {
|
|
476
476
|
grant: {
|
|
477
477
|
id: string;
|
|
478
|
-
expiresAt: string;
|
|
479
478
|
createdAt: string;
|
|
480
|
-
|
|
479
|
+
expiresAt: string;
|
|
481
480
|
target: {
|
|
482
481
|
objectTypeId: string;
|
|
483
482
|
primaryId: string;
|
|
484
483
|
};
|
|
484
|
+
definitionId: string;
|
|
485
485
|
issuedBy: {
|
|
486
486
|
id: string;
|
|
487
487
|
type: "user" | "serviceAccount";
|
|
@@ -496,13 +496,13 @@ export declare const RevokeSharedAccessGrantResponseSchema: z.ZodObject<{
|
|
|
496
496
|
}, {
|
|
497
497
|
grant: {
|
|
498
498
|
id: string;
|
|
499
|
-
expiresAt: string;
|
|
500
499
|
createdAt: string;
|
|
501
|
-
|
|
500
|
+
expiresAt: string;
|
|
502
501
|
target: {
|
|
503
502
|
objectTypeId: string;
|
|
504
503
|
primaryId: string;
|
|
505
504
|
};
|
|
505
|
+
definitionId: string;
|
|
506
506
|
issuedBy: {
|
|
507
507
|
id: string;
|
|
508
508
|
type: "user" | "serviceAccount";
|
package/dist/schemas/syncs.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export declare const SyncRunsQuerySchema: z.ZodObject<{
|
|
|
18
18
|
offset: z.ZodOptional<z.ZodString>;
|
|
19
19
|
order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
|
|
20
20
|
}, "strip", z.ZodTypeAny, {
|
|
21
|
-
status?: "succeeded" | "failed" | "
|
|
21
|
+
status?: "succeeded" | "failed" | "cancelled" | "queued" | "running" | undefined;
|
|
22
22
|
startedAfter?: string | undefined;
|
|
23
23
|
startedBefore?: string | undefined;
|
|
24
24
|
limit?: string | undefined;
|
|
@@ -27,7 +27,7 @@ export declare const SyncRunsQuerySchema: z.ZodObject<{
|
|
|
27
27
|
datasetId?: string | undefined;
|
|
28
28
|
syncId?: string | undefined;
|
|
29
29
|
}, {
|
|
30
|
-
status?: "succeeded" | "failed" | "
|
|
30
|
+
status?: "succeeded" | "failed" | "cancelled" | "queued" | "running" | undefined;
|
|
31
31
|
startedAfter?: string | undefined;
|
|
32
32
|
startedBefore?: string | undefined;
|
|
33
33
|
limit?: string | undefined;
|
|
@@ -71,7 +71,7 @@ export declare const SyncRunSchema: z.ZodObject<{
|
|
|
71
71
|
commitMessage: z.ZodOptional<z.ZodString>;
|
|
72
72
|
error: z.ZodOptional<z.ZodType<SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed">, z.ZodTypeDef, SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed">>>;
|
|
73
73
|
}, "strip", z.ZodTypeAny, {
|
|
74
|
-
status: "succeeded" | "failed" | "
|
|
74
|
+
status: "succeeded" | "failed" | "cancelled" | "queued" | "running";
|
|
75
75
|
projectId: string;
|
|
76
76
|
id: string;
|
|
77
77
|
mode: "append" | "merge" | "snapshot";
|
|
@@ -89,7 +89,7 @@ export declare const SyncRunSchema: z.ZodObject<{
|
|
|
89
89
|
commitMessage?: string | undefined;
|
|
90
90
|
rowsRead?: number | undefined;
|
|
91
91
|
}, {
|
|
92
|
-
status: "succeeded" | "failed" | "
|
|
92
|
+
status: "succeeded" | "failed" | "cancelled" | "queued" | "running";
|
|
93
93
|
projectId: string;
|
|
94
94
|
id: string;
|
|
95
95
|
mode: "append" | "merge" | "snapshot";
|
|
@@ -134,24 +134,24 @@ export declare const SyncSchema: z.ZodObject<{
|
|
|
134
134
|
type: z.ZodEnum<["string", "boolean", "int64", "float64", "decimal", "date", "timestamp", "json", "fileRef"]>;
|
|
135
135
|
nullable: z.ZodOptional<z.ZodBoolean>;
|
|
136
136
|
}, "strip", z.ZodTypeAny, {
|
|
137
|
+
type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
|
|
137
138
|
name: string;
|
|
138
|
-
type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
|
|
139
139
|
nullable?: boolean | undefined;
|
|
140
140
|
}, {
|
|
141
|
+
type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
|
|
141
142
|
name: string;
|
|
142
|
-
type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
|
|
143
143
|
nullable?: boolean | undefined;
|
|
144
144
|
}>, "many">;
|
|
145
145
|
}, "strip", z.ZodTypeAny, {
|
|
146
146
|
columns: {
|
|
147
|
+
type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
|
|
147
148
|
name: string;
|
|
148
|
-
type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
|
|
149
149
|
nullable?: boolean | undefined;
|
|
150
150
|
}[];
|
|
151
151
|
}, {
|
|
152
152
|
columns: {
|
|
153
|
+
type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
|
|
153
154
|
name: string;
|
|
154
|
-
type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
|
|
155
155
|
nullable?: boolean | undefined;
|
|
156
156
|
}[];
|
|
157
157
|
}>;
|
|
@@ -159,8 +159,8 @@ export declare const SyncSchema: z.ZodObject<{
|
|
|
159
159
|
id: string;
|
|
160
160
|
schema: {
|
|
161
161
|
columns: {
|
|
162
|
+
type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
|
|
162
163
|
name: string;
|
|
163
|
-
type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
|
|
164
164
|
nullable?: boolean | undefined;
|
|
165
165
|
}[];
|
|
166
166
|
};
|
|
@@ -172,8 +172,8 @@ export declare const SyncSchema: z.ZodObject<{
|
|
|
172
172
|
id: string;
|
|
173
173
|
schema: {
|
|
174
174
|
columns: {
|
|
175
|
+
type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
|
|
175
176
|
name: string;
|
|
176
|
-
type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
|
|
177
177
|
nullable?: boolean | undefined;
|
|
178
178
|
}[];
|
|
179
179
|
};
|
|
@@ -188,8 +188,8 @@ export declare const SyncSchema: z.ZodObject<{
|
|
|
188
188
|
id: string;
|
|
189
189
|
schema: {
|
|
190
190
|
columns: {
|
|
191
|
+
type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
|
|
191
192
|
name: string;
|
|
192
|
-
type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
|
|
193
193
|
nullable?: boolean | undefined;
|
|
194
194
|
}[];
|
|
195
195
|
};
|
|
@@ -204,8 +204,8 @@ export declare const SyncSchema: z.ZodObject<{
|
|
|
204
204
|
id: string;
|
|
205
205
|
schema: {
|
|
206
206
|
columns: {
|
|
207
|
+
type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
|
|
207
208
|
name: string;
|
|
208
|
-
type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
|
|
209
209
|
nullable?: boolean | undefined;
|
|
210
210
|
}[];
|
|
211
211
|
};
|
|
@@ -250,7 +250,7 @@ export declare const SyncSchema: z.ZodObject<{
|
|
|
250
250
|
commitMessage: z.ZodOptional<z.ZodString>;
|
|
251
251
|
error: z.ZodOptional<z.ZodType<SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed">, z.ZodTypeDef, SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed">>>;
|
|
252
252
|
}, "strip", z.ZodTypeAny, {
|
|
253
|
-
status: "succeeded" | "failed" | "
|
|
253
|
+
status: "succeeded" | "failed" | "cancelled" | "queued" | "running";
|
|
254
254
|
projectId: string;
|
|
255
255
|
id: string;
|
|
256
256
|
mode: "append" | "merge" | "snapshot";
|
|
@@ -268,7 +268,7 @@ export declare const SyncSchema: z.ZodObject<{
|
|
|
268
268
|
commitMessage?: string | undefined;
|
|
269
269
|
rowsRead?: number | undefined;
|
|
270
270
|
}, {
|
|
271
|
-
status: "succeeded" | "failed" | "
|
|
271
|
+
status: "succeeded" | "failed" | "cancelled" | "queued" | "running";
|
|
272
272
|
projectId: string;
|
|
273
273
|
id: string;
|
|
274
274
|
mode: "append" | "merge" | "snapshot";
|
|
@@ -288,13 +288,34 @@ export declare const SyncSchema: z.ZodObject<{
|
|
|
288
288
|
}>>;
|
|
289
289
|
}, "strip", z.ZodTypeAny, {
|
|
290
290
|
id: string;
|
|
291
|
+
connector: {
|
|
292
|
+
id: string;
|
|
293
|
+
type: string;
|
|
294
|
+
};
|
|
291
295
|
mode: "append" | "merge" | "snapshot";
|
|
296
|
+
target: {
|
|
297
|
+
kind: "dataset";
|
|
298
|
+
dataset: {
|
|
299
|
+
id: string;
|
|
300
|
+
schema: {
|
|
301
|
+
columns: {
|
|
302
|
+
type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
|
|
303
|
+
name: string;
|
|
304
|
+
nullable?: boolean | undefined;
|
|
305
|
+
}[];
|
|
306
|
+
};
|
|
307
|
+
description?: string | undefined;
|
|
308
|
+
primaryKey?: string | string[] | undefined;
|
|
309
|
+
sequenceBy?: string | undefined;
|
|
310
|
+
partitionBy?: string[] | undefined;
|
|
311
|
+
};
|
|
312
|
+
};
|
|
292
313
|
triggers: {
|
|
293
314
|
type: "schedule";
|
|
294
315
|
scheduleId: string;
|
|
295
316
|
}[];
|
|
296
317
|
latestRun: {
|
|
297
|
-
status: "succeeded" | "failed" | "
|
|
318
|
+
status: "succeeded" | "failed" | "cancelled" | "queued" | "running";
|
|
298
319
|
projectId: string;
|
|
299
320
|
id: string;
|
|
300
321
|
mode: "append" | "merge" | "snapshot";
|
|
@@ -312,14 +333,21 @@ export declare const SyncSchema: z.ZodObject<{
|
|
|
312
333
|
commitMessage?: string | undefined;
|
|
313
334
|
rowsRead?: number | undefined;
|
|
314
335
|
} | null;
|
|
336
|
+
}, {
|
|
337
|
+
id: string;
|
|
338
|
+
connector: {
|
|
339
|
+
id: string;
|
|
340
|
+
type: string;
|
|
341
|
+
};
|
|
342
|
+
mode: "append" | "merge" | "snapshot";
|
|
315
343
|
target: {
|
|
316
344
|
kind: "dataset";
|
|
317
345
|
dataset: {
|
|
318
346
|
id: string;
|
|
319
347
|
schema: {
|
|
320
348
|
columns: {
|
|
349
|
+
type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
|
|
321
350
|
name: string;
|
|
322
|
-
type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
|
|
323
351
|
nullable?: boolean | undefined;
|
|
324
352
|
}[];
|
|
325
353
|
};
|
|
@@ -329,19 +357,12 @@ export declare const SyncSchema: z.ZodObject<{
|
|
|
329
357
|
partitionBy?: string[] | undefined;
|
|
330
358
|
};
|
|
331
359
|
};
|
|
332
|
-
connector: {
|
|
333
|
-
id: string;
|
|
334
|
-
type: string;
|
|
335
|
-
};
|
|
336
|
-
}, {
|
|
337
|
-
id: string;
|
|
338
|
-
mode: "append" | "merge" | "snapshot";
|
|
339
360
|
triggers: {
|
|
340
361
|
type: "schedule";
|
|
341
362
|
scheduleId: string;
|
|
342
363
|
}[];
|
|
343
364
|
latestRun: {
|
|
344
|
-
status: "succeeded" | "failed" | "
|
|
365
|
+
status: "succeeded" | "failed" | "cancelled" | "queued" | "running";
|
|
345
366
|
projectId: string;
|
|
346
367
|
id: string;
|
|
347
368
|
mode: "append" | "merge" | "snapshot";
|
|
@@ -359,27 +380,6 @@ export declare const SyncSchema: z.ZodObject<{
|
|
|
359
380
|
commitMessage?: string | undefined;
|
|
360
381
|
rowsRead?: number | undefined;
|
|
361
382
|
} | null;
|
|
362
|
-
target: {
|
|
363
|
-
kind: "dataset";
|
|
364
|
-
dataset: {
|
|
365
|
-
id: string;
|
|
366
|
-
schema: {
|
|
367
|
-
columns: {
|
|
368
|
-
name: string;
|
|
369
|
-
type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
|
|
370
|
-
nullable?: boolean | undefined;
|
|
371
|
-
}[];
|
|
372
|
-
};
|
|
373
|
-
description?: string | undefined;
|
|
374
|
-
primaryKey?: string | string[] | undefined;
|
|
375
|
-
sequenceBy?: string | undefined;
|
|
376
|
-
partitionBy?: string[] | undefined;
|
|
377
|
-
};
|
|
378
|
-
};
|
|
379
|
-
connector: {
|
|
380
|
-
id: string;
|
|
381
|
-
type: string;
|
|
382
|
-
};
|
|
383
383
|
}>;
|
|
384
384
|
export declare const SyncRunListResponseSchema: z.ZodObject<{
|
|
385
385
|
runs: z.ZodArray<z.ZodObject<{
|
|
@@ -407,7 +407,7 @@ export declare const SyncRunListResponseSchema: z.ZodObject<{
|
|
|
407
407
|
commitMessage: z.ZodOptional<z.ZodString>;
|
|
408
408
|
error: z.ZodOptional<z.ZodType<SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed">, z.ZodTypeDef, SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed">>>;
|
|
409
409
|
}, "strip", z.ZodTypeAny, {
|
|
410
|
-
status: "succeeded" | "failed" | "
|
|
410
|
+
status: "succeeded" | "failed" | "cancelled" | "queued" | "running";
|
|
411
411
|
projectId: string;
|
|
412
412
|
id: string;
|
|
413
413
|
mode: "append" | "merge" | "snapshot";
|
|
@@ -425,7 +425,7 @@ export declare const SyncRunListResponseSchema: z.ZodObject<{
|
|
|
425
425
|
commitMessage?: string | undefined;
|
|
426
426
|
rowsRead?: number | undefined;
|
|
427
427
|
}, {
|
|
428
|
-
status: "succeeded" | "failed" | "
|
|
428
|
+
status: "succeeded" | "failed" | "cancelled" | "queued" | "running";
|
|
429
429
|
projectId: string;
|
|
430
430
|
id: string;
|
|
431
431
|
mode: "append" | "merge" | "snapshot";
|
|
@@ -447,7 +447,7 @@ export declare const SyncRunListResponseSchema: z.ZodObject<{
|
|
|
447
447
|
total: z.ZodNumber;
|
|
448
448
|
}, "strip", z.ZodTypeAny, {
|
|
449
449
|
runs: {
|
|
450
|
-
status: "succeeded" | "failed" | "
|
|
450
|
+
status: "succeeded" | "failed" | "cancelled" | "queued" | "running";
|
|
451
451
|
projectId: string;
|
|
452
452
|
id: string;
|
|
453
453
|
mode: "append" | "merge" | "snapshot";
|
|
@@ -469,7 +469,7 @@ export declare const SyncRunListResponseSchema: z.ZodObject<{
|
|
|
469
469
|
total: number;
|
|
470
470
|
}, {
|
|
471
471
|
runs: {
|
|
472
|
-
status: "succeeded" | "failed" | "
|
|
472
|
+
status: "succeeded" | "failed" | "cancelled" | "queued" | "running";
|
|
473
473
|
projectId: string;
|
|
474
474
|
id: string;
|
|
475
475
|
mode: "append" | "merge" | "snapshot";
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const MAX_USERS_PAGE_LIMIT = 200;
|
|
3
|
+
export declare const MAX_USERS_SEARCH_LENGTH = 200;
|
|
4
|
+
export declare const ListUsersQuerySchema: z.ZodObject<{
|
|
5
|
+
/** Which members to list. Defaults to `active`. */
|
|
6
|
+
status: z.ZodOptional<z.ZodEnum<["active", "suspended", "all"]>>;
|
|
7
|
+
/** Part of a display name or email, matched ignoring case. */
|
|
8
|
+
search: z.ZodOptional<z.ZodString>;
|
|
9
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
10
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
status?: "active" | "all" | "suspended" | undefined;
|
|
13
|
+
search?: string | undefined;
|
|
14
|
+
limit?: number | undefined;
|
|
15
|
+
offset?: number | undefined;
|
|
16
|
+
}, {
|
|
17
|
+
status?: "active" | "all" | "suspended" | undefined;
|
|
18
|
+
search?: string | undefined;
|
|
19
|
+
limit?: number | undefined;
|
|
20
|
+
offset?: number | undefined;
|
|
21
|
+
}>;
|
|
22
|
+
export declare const ListUsersResponseSchema: z.ZodObject<{
|
|
23
|
+
users: z.ZodArray<z.ZodObject<{
|
|
24
|
+
id: z.ZodString;
|
|
25
|
+
email: z.ZodString;
|
|
26
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
27
|
+
avatarUrl: z.ZodOptional<z.ZodString>;
|
|
28
|
+
status: z.ZodEnum<["active", "suspended"]>;
|
|
29
|
+
}, "strip", z.ZodTypeAny, {
|
|
30
|
+
status: "active" | "suspended";
|
|
31
|
+
id: string;
|
|
32
|
+
email: string;
|
|
33
|
+
displayName?: string | undefined;
|
|
34
|
+
avatarUrl?: string | undefined;
|
|
35
|
+
}, {
|
|
36
|
+
status: "active" | "suspended";
|
|
37
|
+
id: string;
|
|
38
|
+
email: string;
|
|
39
|
+
displayName?: string | undefined;
|
|
40
|
+
avatarUrl?: string | undefined;
|
|
41
|
+
}>, "many">;
|
|
42
|
+
hasMore: z.ZodBoolean;
|
|
43
|
+
total: z.ZodNumber;
|
|
44
|
+
}, "strip", z.ZodTypeAny, {
|
|
45
|
+
users: {
|
|
46
|
+
status: "active" | "suspended";
|
|
47
|
+
id: string;
|
|
48
|
+
email: string;
|
|
49
|
+
displayName?: string | undefined;
|
|
50
|
+
avatarUrl?: string | undefined;
|
|
51
|
+
}[];
|
|
52
|
+
hasMore: boolean;
|
|
53
|
+
total: number;
|
|
54
|
+
}, {
|
|
55
|
+
users: {
|
|
56
|
+
status: "active" | "suspended";
|
|
57
|
+
id: string;
|
|
58
|
+
email: string;
|
|
59
|
+
displayName?: string | undefined;
|
|
60
|
+
avatarUrl?: string | undefined;
|
|
61
|
+
}[];
|
|
62
|
+
hasMore: boolean;
|
|
63
|
+
total: number;
|
|
64
|
+
}>;
|
|
65
|
+
export declare const UserParamsSchema: z.ZodObject<{
|
|
66
|
+
userId: z.ZodString;
|
|
67
|
+
}, "strip", z.ZodTypeAny, {
|
|
68
|
+
userId: string;
|
|
69
|
+
}, {
|
|
70
|
+
userId: string;
|
|
71
|
+
}>;
|
|
72
|
+
//# sourceMappingURL=users.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../src/schemas/users.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB,eAAO,MAAM,oBAAoB,MAAM,CAAA;AACvC,eAAO,MAAM,uBAAuB,MAAM,CAAA;AAE1C,eAAO,MAAM,oBAAoB;IAC/B,mDAAmD;;IAEnD,8DAA8D;;;;;;;;;;;;;;EAI9D,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIlC,CAAA;AAEF,eAAO,MAAM,gBAAgB;;;;;;EAE3B,CAAA"}
|
|
@@ -53,8 +53,8 @@ export declare const WebhookRunSchema: z.ZodObject<{
|
|
|
53
53
|
id: string;
|
|
54
54
|
startedAt: string;
|
|
55
55
|
method: string;
|
|
56
|
-
route: string;
|
|
57
56
|
executionId: string;
|
|
57
|
+
route: string;
|
|
58
58
|
connectorId: string;
|
|
59
59
|
webhookId: string;
|
|
60
60
|
requestBodyBytes: number;
|
|
@@ -68,8 +68,8 @@ export declare const WebhookRunSchema: z.ZodObject<{
|
|
|
68
68
|
id: string;
|
|
69
69
|
startedAt: string;
|
|
70
70
|
method: string;
|
|
71
|
-
route: string;
|
|
72
71
|
executionId: string;
|
|
72
|
+
route: string;
|
|
73
73
|
connectorId: string;
|
|
74
74
|
webhookId: string;
|
|
75
75
|
requestBodyBytes: number;
|
|
@@ -100,8 +100,8 @@ export declare const WebhookRunListResponseSchema: z.ZodObject<{
|
|
|
100
100
|
id: string;
|
|
101
101
|
startedAt: string;
|
|
102
102
|
method: string;
|
|
103
|
-
route: string;
|
|
104
103
|
executionId: string;
|
|
104
|
+
route: string;
|
|
105
105
|
connectorId: string;
|
|
106
106
|
webhookId: string;
|
|
107
107
|
requestBodyBytes: number;
|
|
@@ -115,8 +115,8 @@ export declare const WebhookRunListResponseSchema: z.ZodObject<{
|
|
|
115
115
|
id: string;
|
|
116
116
|
startedAt: string;
|
|
117
117
|
method: string;
|
|
118
|
-
route: string;
|
|
119
118
|
executionId: string;
|
|
119
|
+
route: string;
|
|
120
120
|
connectorId: string;
|
|
121
121
|
webhookId: string;
|
|
122
122
|
requestBodyBytes: number;
|
|
@@ -134,8 +134,8 @@ export declare const WebhookRunListResponseSchema: z.ZodObject<{
|
|
|
134
134
|
id: string;
|
|
135
135
|
startedAt: string;
|
|
136
136
|
method: string;
|
|
137
|
-
route: string;
|
|
138
137
|
executionId: string;
|
|
138
|
+
route: string;
|
|
139
139
|
connectorId: string;
|
|
140
140
|
webhookId: string;
|
|
141
141
|
requestBodyBytes: number;
|
|
@@ -153,8 +153,8 @@ export declare const WebhookRunListResponseSchema: z.ZodObject<{
|
|
|
153
153
|
id: string;
|
|
154
154
|
startedAt: string;
|
|
155
155
|
method: string;
|
|
156
|
-
route: string;
|
|
157
156
|
executionId: string;
|
|
157
|
+
route: string;
|
|
158
158
|
connectorId: string;
|
|
159
159
|
webhookId: string;
|
|
160
160
|
requestBodyBytes: number;
|