@sixb/server 0.1.12 → 0.1.14
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 +5 -4
- package/dist/auth/access-token-boundary.d.ts +13 -9
- package/dist/auth/access-token-boundary.d.ts.map +1 -1
- package/dist/auth/client-address.d.ts +12 -0
- package/dist/auth/client-address.d.ts.map +1 -0
- package/dist/auth/guard.d.ts.map +1 -1
- package/dist/auth/public-routes.d.ts +5 -0
- package/dist/auth/public-routes.d.ts.map +1 -1
- package/dist/auth/rate-limit.d.ts +15 -0
- package/dist/auth/rate-limit.d.ts.map +1 -0
- package/dist/auth/scope.d.ts +8 -3
- package/dist/auth/scope.d.ts.map +1 -1
- package/dist/auth/shared-access.d.ts.map +1 -1
- package/dist/index.js +608 -465
- package/dist/index.js.map +40 -38
- package/dist/openapi/security.d.ts +34 -10
- package/dist/openapi/security.d.ts.map +1 -1
- package/dist/routes/auth.d.ts +68 -17
- package/dist/routes/auth.d.ts.map +1 -1
- package/dist/routes/connectors.d.ts.map +1 -1
- package/dist/routes/events.d.ts +0 -4
- package/dist/routes/events.d.ts.map +1 -1
- package/dist/routes/files.d.ts +15 -2
- package/dist/routes/files.d.ts.map +1 -1
- package/dist/routes/models.d.ts +7 -7
- package/dist/routes/ontology.d.ts +13 -1
- package/dist/routes/ontology.d.ts.map +1 -1
- package/dist/routes/shared-access.d.ts.map +1 -1
- package/dist/routes/workflows.d.ts +30 -30
- package/dist/routes/workflows.d.ts.map +1 -1
- package/dist/routes/ws/agents.d.ts +2 -3
- package/dist/routes/ws/agents.d.ts.map +1 -1
- package/dist/schemas/auth.d.ts +273 -85
- package/dist/schemas/auth.d.ts.map +1 -1
- package/dist/schemas/common.d.ts +11 -0
- package/dist/schemas/common.d.ts.map +1 -1
- package/dist/schemas/events.d.ts +74 -44
- package/dist/schemas/events.d.ts.map +1 -1
- package/dist/schemas/models.d.ts +38 -38
- package/dist/schemas/ontology.d.ts +160 -0
- package/dist/schemas/ontology.d.ts.map +1 -1
- package/dist/schemas/workflows.d.ts +180 -190
- package/dist/schemas/workflows.d.ts.map +1 -1
- package/dist/server.d.ts +6 -0
- package/dist/server.d.ts.map +1 -1
- package/dist/utils/ws.d.ts +1 -2
- package/dist/utils/ws.d.ts.map +1 -1
- package/package.json +6 -6
- package/src/auth/access-token-boundary.ts +31 -30
- package/src/auth/client-address.ts +67 -0
- package/src/auth/guard.ts +13 -4
- package/src/auth/public-routes.ts +9 -2
- package/src/auth/rate-limit.ts +43 -0
- package/src/auth/scope.ts +13 -3
- package/src/auth/shared-access.ts +0 -3
- package/src/openapi/security.ts +37 -17
- package/src/routes/action-runs.ts +5 -5
- package/src/routes/actions.ts +4 -4
- package/src/routes/agents.ts +9 -9
- package/src/routes/ai-accounting.ts +10 -10
- package/src/routes/auth.ts +370 -443
- package/src/routes/connector-connection-runs.ts +5 -5
- package/src/routes/connector-connections.ts +3 -3
- package/src/routes/connectors.ts +2 -2
- package/src/routes/events.ts +2 -2
- package/src/routes/files.ts +30 -15
- package/src/routes/links.ts +3 -3
- package/src/routes/logs.ts +2 -2
- package/src/routes/objects.ts +12 -12
- package/src/routes/ontology.ts +27 -9
- package/src/routes/pipelines.ts +2 -2
- package/src/routes/project.ts +2 -2
- package/src/routes/share-grants.ts +4 -4
- package/src/routes/shared-access.ts +3 -2
- package/src/routes/syncs.ts +2 -2
- package/src/routes/telemetry.ts +5 -5
- package/src/routes/workflows.ts +18 -19
- package/src/routes/ws/agents.ts +4 -5
- package/src/schemas/auth.ts +29 -8
- package/src/schemas/common.ts +6 -0
- package/src/schemas/events.ts +35 -7
- package/src/schemas/ontology.ts +16 -1
- package/src/schemas/workflows.ts +4 -9
- package/src/server.ts +35 -5
- package/src/utils/ws.ts +2 -3
package/dist/schemas/auth.d.ts
CHANGED
|
@@ -83,17 +83,34 @@ export declare const AuthInvitationGroupOptionSchema: z.ZodObject<{
|
|
|
83
83
|
label?: string | undefined;
|
|
84
84
|
}>;
|
|
85
85
|
export declare const AuthAccessTokenKindSchema: z.ZodEnum<["personal", "serviceAccount"]>;
|
|
86
|
-
export declare const AuthAccessTokenSubjectTypeSchema: z.ZodEnum<["user", "serviceAccount"]>;
|
|
87
86
|
export declare const AuthAccessTokenStatusSchema: z.ZodEnum<["active", "expired", "revoked"]>;
|
|
88
87
|
export declare const AuthServiceAccountStatusSchema: z.ZodEnum<["active", "suspended"]>;
|
|
89
88
|
export declare const AuthUserStatusSchema: z.ZodEnum<["active", "suspended"]>;
|
|
89
|
+
export declare const AuthAccessTokenSubjectSchema: z.ZodObject<{
|
|
90
|
+
type: z.ZodEnum<["user", "serviceAccount"]>;
|
|
91
|
+
id: z.ZodString;
|
|
92
|
+
}, "strip", z.ZodTypeAny, {
|
|
93
|
+
id: string;
|
|
94
|
+
type: "user" | "serviceAccount";
|
|
95
|
+
}, {
|
|
96
|
+
id: string;
|
|
97
|
+
type: "user" | "serviceAccount";
|
|
98
|
+
}>;
|
|
90
99
|
export declare const AuthAccessTokenSchema: z.ZodObject<{
|
|
91
100
|
id: z.ZodString;
|
|
92
101
|
name: z.ZodString;
|
|
93
102
|
kind: z.ZodEnum<["personal", "serviceAccount"]>;
|
|
94
103
|
status: z.ZodEnum<["active", "expired", "revoked"]>;
|
|
95
|
-
|
|
96
|
-
|
|
104
|
+
subject: z.ZodObject<{
|
|
105
|
+
type: z.ZodEnum<["user", "serviceAccount"]>;
|
|
106
|
+
id: z.ZodString;
|
|
107
|
+
}, "strip", z.ZodTypeAny, {
|
|
108
|
+
id: string;
|
|
109
|
+
type: "user" | "serviceAccount";
|
|
110
|
+
}, {
|
|
111
|
+
id: string;
|
|
112
|
+
type: "user" | "serviceAccount";
|
|
113
|
+
}>;
|
|
97
114
|
subjectLabel: z.ZodOptional<z.ZodString>;
|
|
98
115
|
groupIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
99
116
|
createdAt: z.ZodString;
|
|
@@ -107,10 +124,12 @@ export declare const AuthAccessTokenSchema: z.ZodObject<{
|
|
|
107
124
|
id: string;
|
|
108
125
|
kind: "serviceAccount" | "personal";
|
|
109
126
|
name: string;
|
|
127
|
+
subject: {
|
|
128
|
+
id: string;
|
|
129
|
+
type: "user" | "serviceAccount";
|
|
130
|
+
};
|
|
110
131
|
expiresAt: string;
|
|
111
132
|
createdAt: string;
|
|
112
|
-
subjectType: "user" | "serviceAccount";
|
|
113
|
-
subjectId: string;
|
|
114
133
|
revokedAt?: string | undefined;
|
|
115
134
|
groupIds?: string[] | undefined;
|
|
116
135
|
subjectLabel?: string | undefined;
|
|
@@ -122,10 +141,12 @@ export declare const AuthAccessTokenSchema: z.ZodObject<{
|
|
|
122
141
|
id: string;
|
|
123
142
|
kind: "serviceAccount" | "personal";
|
|
124
143
|
name: string;
|
|
144
|
+
subject: {
|
|
145
|
+
id: string;
|
|
146
|
+
type: "user" | "serviceAccount";
|
|
147
|
+
};
|
|
125
148
|
expiresAt: string;
|
|
126
149
|
createdAt: string;
|
|
127
|
-
subjectType: "user" | "serviceAccount";
|
|
128
|
-
subjectId: string;
|
|
129
150
|
revokedAt?: string | undefined;
|
|
130
151
|
groupIds?: string[] | undefined;
|
|
131
152
|
subjectLabel?: string | undefined;
|
|
@@ -210,6 +231,8 @@ export declare const AuthManagedMemberSchema: z.ZodObject<{
|
|
|
210
231
|
avatarUrl?: string | undefined;
|
|
211
232
|
}>;
|
|
212
233
|
groupIds: z.ZodArray<z.ZodString, "many">;
|
|
234
|
+
/** The groups among `groupIds` the identity provider manages; they sync at sign-in. */
|
|
235
|
+
managedGroupIds: z.ZodArray<z.ZodString, "many">;
|
|
213
236
|
}, "strip", z.ZodTypeAny, {
|
|
214
237
|
user: {
|
|
215
238
|
status: "active" | "suspended";
|
|
@@ -221,6 +244,7 @@ export declare const AuthManagedMemberSchema: z.ZodObject<{
|
|
|
221
244
|
avatarUrl?: string | undefined;
|
|
222
245
|
};
|
|
223
246
|
groupIds: string[];
|
|
247
|
+
managedGroupIds: string[];
|
|
224
248
|
}, {
|
|
225
249
|
user: {
|
|
226
250
|
status: "active" | "suspended";
|
|
@@ -232,6 +256,7 @@ export declare const AuthManagedMemberSchema: z.ZodObject<{
|
|
|
232
256
|
avatarUrl?: string | undefined;
|
|
233
257
|
};
|
|
234
258
|
groupIds: string[];
|
|
259
|
+
managedGroupIds: string[];
|
|
235
260
|
}>;
|
|
236
261
|
export declare const AuthMemberCapabilitiesSchema: z.ZodObject<{
|
|
237
262
|
assignGroups: z.ZodBoolean;
|
|
@@ -273,6 +298,8 @@ export declare const AuthMemberSchema: z.ZodObject<{
|
|
|
273
298
|
avatarUrl?: string | undefined;
|
|
274
299
|
}>;
|
|
275
300
|
groupIds: z.ZodArray<z.ZodString, "many">;
|
|
301
|
+
/** The groups among `groupIds` the identity provider manages; they sync at sign-in. */
|
|
302
|
+
managedGroupIds: z.ZodArray<z.ZodString, "many">;
|
|
276
303
|
} & {
|
|
277
304
|
capabilities: z.ZodObject<{
|
|
278
305
|
assignGroups: z.ZodBoolean;
|
|
@@ -303,6 +330,7 @@ export declare const AuthMemberSchema: z.ZodObject<{
|
|
|
303
330
|
reactivate: boolean;
|
|
304
331
|
};
|
|
305
332
|
groupIds: string[];
|
|
333
|
+
managedGroupIds: string[];
|
|
306
334
|
}, {
|
|
307
335
|
user: {
|
|
308
336
|
status: "active" | "suspended";
|
|
@@ -319,6 +347,7 @@ export declare const AuthMemberSchema: z.ZodObject<{
|
|
|
319
347
|
reactivate: boolean;
|
|
320
348
|
};
|
|
321
349
|
groupIds: string[];
|
|
350
|
+
managedGroupIds: string[];
|
|
322
351
|
}>;
|
|
323
352
|
export declare const GetAuthAccessManagementOptionsResponseSchema: z.ZodObject<{
|
|
324
353
|
groups: z.ZodArray<z.ZodObject<{
|
|
@@ -353,8 +382,16 @@ export declare const ListAuthAccessTokensResponseSchema: z.ZodObject<{
|
|
|
353
382
|
name: z.ZodString;
|
|
354
383
|
kind: z.ZodEnum<["personal", "serviceAccount"]>;
|
|
355
384
|
status: z.ZodEnum<["active", "expired", "revoked"]>;
|
|
356
|
-
|
|
357
|
-
|
|
385
|
+
subject: z.ZodObject<{
|
|
386
|
+
type: z.ZodEnum<["user", "serviceAccount"]>;
|
|
387
|
+
id: z.ZodString;
|
|
388
|
+
}, "strip", z.ZodTypeAny, {
|
|
389
|
+
id: string;
|
|
390
|
+
type: "user" | "serviceAccount";
|
|
391
|
+
}, {
|
|
392
|
+
id: string;
|
|
393
|
+
type: "user" | "serviceAccount";
|
|
394
|
+
}>;
|
|
358
395
|
subjectLabel: z.ZodOptional<z.ZodString>;
|
|
359
396
|
groupIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
360
397
|
createdAt: z.ZodString;
|
|
@@ -368,10 +405,12 @@ export declare const ListAuthAccessTokensResponseSchema: z.ZodObject<{
|
|
|
368
405
|
id: string;
|
|
369
406
|
kind: "serviceAccount" | "personal";
|
|
370
407
|
name: string;
|
|
408
|
+
subject: {
|
|
409
|
+
id: string;
|
|
410
|
+
type: "user" | "serviceAccount";
|
|
411
|
+
};
|
|
371
412
|
expiresAt: string;
|
|
372
413
|
createdAt: string;
|
|
373
|
-
subjectType: "user" | "serviceAccount";
|
|
374
|
-
subjectId: string;
|
|
375
414
|
revokedAt?: string | undefined;
|
|
376
415
|
groupIds?: string[] | undefined;
|
|
377
416
|
subjectLabel?: string | undefined;
|
|
@@ -383,10 +422,12 @@ export declare const ListAuthAccessTokensResponseSchema: z.ZodObject<{
|
|
|
383
422
|
id: string;
|
|
384
423
|
kind: "serviceAccount" | "personal";
|
|
385
424
|
name: string;
|
|
425
|
+
subject: {
|
|
426
|
+
id: string;
|
|
427
|
+
type: "user" | "serviceAccount";
|
|
428
|
+
};
|
|
386
429
|
expiresAt: string;
|
|
387
430
|
createdAt: string;
|
|
388
|
-
subjectType: "user" | "serviceAccount";
|
|
389
|
-
subjectId: string;
|
|
390
431
|
revokedAt?: string | undefined;
|
|
391
432
|
groupIds?: string[] | undefined;
|
|
392
433
|
subjectLabel?: string | undefined;
|
|
@@ -400,10 +441,12 @@ export declare const ListAuthAccessTokensResponseSchema: z.ZodObject<{
|
|
|
400
441
|
id: string;
|
|
401
442
|
kind: "serviceAccount" | "personal";
|
|
402
443
|
name: string;
|
|
444
|
+
subject: {
|
|
445
|
+
id: string;
|
|
446
|
+
type: "user" | "serviceAccount";
|
|
447
|
+
};
|
|
403
448
|
expiresAt: string;
|
|
404
449
|
createdAt: string;
|
|
405
|
-
subjectType: "user" | "serviceAccount";
|
|
406
|
-
subjectId: string;
|
|
407
450
|
revokedAt?: string | undefined;
|
|
408
451
|
groupIds?: string[] | undefined;
|
|
409
452
|
subjectLabel?: string | undefined;
|
|
@@ -417,10 +460,12 @@ export declare const ListAuthAccessTokensResponseSchema: z.ZodObject<{
|
|
|
417
460
|
id: string;
|
|
418
461
|
kind: "serviceAccount" | "personal";
|
|
419
462
|
name: string;
|
|
463
|
+
subject: {
|
|
464
|
+
id: string;
|
|
465
|
+
type: "user" | "serviceAccount";
|
|
466
|
+
};
|
|
420
467
|
expiresAt: string;
|
|
421
468
|
createdAt: string;
|
|
422
|
-
subjectType: "user" | "serviceAccount";
|
|
423
|
-
subjectId: string;
|
|
424
469
|
revokedAt?: string | undefined;
|
|
425
470
|
groupIds?: string[] | undefined;
|
|
426
471
|
subjectLabel?: string | undefined;
|
|
@@ -448,8 +493,16 @@ export declare const CreateAuthPersonalAccessTokenResponseSchema: z.ZodObject<{
|
|
|
448
493
|
name: z.ZodString;
|
|
449
494
|
kind: z.ZodEnum<["personal", "serviceAccount"]>;
|
|
450
495
|
status: z.ZodEnum<["active", "expired", "revoked"]>;
|
|
451
|
-
|
|
452
|
-
|
|
496
|
+
subject: z.ZodObject<{
|
|
497
|
+
type: z.ZodEnum<["user", "serviceAccount"]>;
|
|
498
|
+
id: z.ZodString;
|
|
499
|
+
}, "strip", z.ZodTypeAny, {
|
|
500
|
+
id: string;
|
|
501
|
+
type: "user" | "serviceAccount";
|
|
502
|
+
}, {
|
|
503
|
+
id: string;
|
|
504
|
+
type: "user" | "serviceAccount";
|
|
505
|
+
}>;
|
|
453
506
|
subjectLabel: z.ZodOptional<z.ZodString>;
|
|
454
507
|
groupIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
455
508
|
createdAt: z.ZodString;
|
|
@@ -463,10 +516,12 @@ export declare const CreateAuthPersonalAccessTokenResponseSchema: z.ZodObject<{
|
|
|
463
516
|
id: string;
|
|
464
517
|
kind: "serviceAccount" | "personal";
|
|
465
518
|
name: string;
|
|
519
|
+
subject: {
|
|
520
|
+
id: string;
|
|
521
|
+
type: "user" | "serviceAccount";
|
|
522
|
+
};
|
|
466
523
|
expiresAt: string;
|
|
467
524
|
createdAt: string;
|
|
468
|
-
subjectType: "user" | "serviceAccount";
|
|
469
|
-
subjectId: string;
|
|
470
525
|
revokedAt?: string | undefined;
|
|
471
526
|
groupIds?: string[] | undefined;
|
|
472
527
|
subjectLabel?: string | undefined;
|
|
@@ -478,10 +533,12 @@ export declare const CreateAuthPersonalAccessTokenResponseSchema: z.ZodObject<{
|
|
|
478
533
|
id: string;
|
|
479
534
|
kind: "serviceAccount" | "personal";
|
|
480
535
|
name: string;
|
|
536
|
+
subject: {
|
|
537
|
+
id: string;
|
|
538
|
+
type: "user" | "serviceAccount";
|
|
539
|
+
};
|
|
481
540
|
expiresAt: string;
|
|
482
541
|
createdAt: string;
|
|
483
|
-
subjectType: "user" | "serviceAccount";
|
|
484
|
-
subjectId: string;
|
|
485
542
|
revokedAt?: string | undefined;
|
|
486
543
|
groupIds?: string[] | undefined;
|
|
487
544
|
subjectLabel?: string | undefined;
|
|
@@ -496,10 +553,12 @@ export declare const CreateAuthPersonalAccessTokenResponseSchema: z.ZodObject<{
|
|
|
496
553
|
id: string;
|
|
497
554
|
kind: "serviceAccount" | "personal";
|
|
498
555
|
name: string;
|
|
556
|
+
subject: {
|
|
557
|
+
id: string;
|
|
558
|
+
type: "user" | "serviceAccount";
|
|
559
|
+
};
|
|
499
560
|
expiresAt: string;
|
|
500
561
|
createdAt: string;
|
|
501
|
-
subjectType: "user" | "serviceAccount";
|
|
502
|
-
subjectId: string;
|
|
503
562
|
revokedAt?: string | undefined;
|
|
504
563
|
groupIds?: string[] | undefined;
|
|
505
564
|
subjectLabel?: string | undefined;
|
|
@@ -514,10 +573,12 @@ export declare const CreateAuthPersonalAccessTokenResponseSchema: z.ZodObject<{
|
|
|
514
573
|
id: string;
|
|
515
574
|
kind: "serviceAccount" | "personal";
|
|
516
575
|
name: string;
|
|
576
|
+
subject: {
|
|
577
|
+
id: string;
|
|
578
|
+
type: "user" | "serviceAccount";
|
|
579
|
+
};
|
|
517
580
|
expiresAt: string;
|
|
518
581
|
createdAt: string;
|
|
519
|
-
subjectType: "user" | "serviceAccount";
|
|
520
|
-
subjectId: string;
|
|
521
582
|
revokedAt?: string | undefined;
|
|
522
583
|
groupIds?: string[] | undefined;
|
|
523
584
|
subjectLabel?: string | undefined;
|
|
@@ -540,8 +601,16 @@ export declare const RevokeAuthAccessTokenResponseSchema: z.ZodObject<{
|
|
|
540
601
|
name: z.ZodString;
|
|
541
602
|
kind: z.ZodEnum<["personal", "serviceAccount"]>;
|
|
542
603
|
status: z.ZodEnum<["active", "expired", "revoked"]>;
|
|
543
|
-
|
|
544
|
-
|
|
604
|
+
subject: z.ZodObject<{
|
|
605
|
+
type: z.ZodEnum<["user", "serviceAccount"]>;
|
|
606
|
+
id: z.ZodString;
|
|
607
|
+
}, "strip", z.ZodTypeAny, {
|
|
608
|
+
id: string;
|
|
609
|
+
type: "user" | "serviceAccount";
|
|
610
|
+
}, {
|
|
611
|
+
id: string;
|
|
612
|
+
type: "user" | "serviceAccount";
|
|
613
|
+
}>;
|
|
545
614
|
subjectLabel: z.ZodOptional<z.ZodString>;
|
|
546
615
|
groupIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
547
616
|
createdAt: z.ZodString;
|
|
@@ -555,10 +624,12 @@ export declare const RevokeAuthAccessTokenResponseSchema: z.ZodObject<{
|
|
|
555
624
|
id: string;
|
|
556
625
|
kind: "serviceAccount" | "personal";
|
|
557
626
|
name: string;
|
|
627
|
+
subject: {
|
|
628
|
+
id: string;
|
|
629
|
+
type: "user" | "serviceAccount";
|
|
630
|
+
};
|
|
558
631
|
expiresAt: string;
|
|
559
632
|
createdAt: string;
|
|
560
|
-
subjectType: "user" | "serviceAccount";
|
|
561
|
-
subjectId: string;
|
|
562
633
|
revokedAt?: string | undefined;
|
|
563
634
|
groupIds?: string[] | undefined;
|
|
564
635
|
subjectLabel?: string | undefined;
|
|
@@ -570,10 +641,12 @@ export declare const RevokeAuthAccessTokenResponseSchema: z.ZodObject<{
|
|
|
570
641
|
id: string;
|
|
571
642
|
kind: "serviceAccount" | "personal";
|
|
572
643
|
name: string;
|
|
644
|
+
subject: {
|
|
645
|
+
id: string;
|
|
646
|
+
type: "user" | "serviceAccount";
|
|
647
|
+
};
|
|
573
648
|
expiresAt: string;
|
|
574
649
|
createdAt: string;
|
|
575
|
-
subjectType: "user" | "serviceAccount";
|
|
576
|
-
subjectId: string;
|
|
577
650
|
revokedAt?: string | undefined;
|
|
578
651
|
groupIds?: string[] | undefined;
|
|
579
652
|
subjectLabel?: string | undefined;
|
|
@@ -587,10 +660,12 @@ export declare const RevokeAuthAccessTokenResponseSchema: z.ZodObject<{
|
|
|
587
660
|
id: string;
|
|
588
661
|
kind: "serviceAccount" | "personal";
|
|
589
662
|
name: string;
|
|
663
|
+
subject: {
|
|
664
|
+
id: string;
|
|
665
|
+
type: "user" | "serviceAccount";
|
|
666
|
+
};
|
|
590
667
|
expiresAt: string;
|
|
591
668
|
createdAt: string;
|
|
592
|
-
subjectType: "user" | "serviceAccount";
|
|
593
|
-
subjectId: string;
|
|
594
669
|
revokedAt?: string | undefined;
|
|
595
670
|
groupIds?: string[] | undefined;
|
|
596
671
|
subjectLabel?: string | undefined;
|
|
@@ -604,10 +679,12 @@ export declare const RevokeAuthAccessTokenResponseSchema: z.ZodObject<{
|
|
|
604
679
|
id: string;
|
|
605
680
|
kind: "serviceAccount" | "personal";
|
|
606
681
|
name: string;
|
|
682
|
+
subject: {
|
|
683
|
+
id: string;
|
|
684
|
+
type: "user" | "serviceAccount";
|
|
685
|
+
};
|
|
607
686
|
expiresAt: string;
|
|
608
687
|
createdAt: string;
|
|
609
|
-
subjectType: "user" | "serviceAccount";
|
|
610
|
-
subjectId: string;
|
|
611
688
|
revokedAt?: string | undefined;
|
|
612
689
|
groupIds?: string[] | undefined;
|
|
613
690
|
subjectLabel?: string | undefined;
|
|
@@ -786,8 +863,16 @@ export declare const ListAuthServiceAccountAccessTokensResponseSchema: z.ZodObje
|
|
|
786
863
|
name: z.ZodString;
|
|
787
864
|
kind: z.ZodEnum<["personal", "serviceAccount"]>;
|
|
788
865
|
status: z.ZodEnum<["active", "expired", "revoked"]>;
|
|
789
|
-
|
|
790
|
-
|
|
866
|
+
subject: z.ZodObject<{
|
|
867
|
+
type: z.ZodEnum<["user", "serviceAccount"]>;
|
|
868
|
+
id: z.ZodString;
|
|
869
|
+
}, "strip", z.ZodTypeAny, {
|
|
870
|
+
id: string;
|
|
871
|
+
type: "user" | "serviceAccount";
|
|
872
|
+
}, {
|
|
873
|
+
id: string;
|
|
874
|
+
type: "user" | "serviceAccount";
|
|
875
|
+
}>;
|
|
791
876
|
subjectLabel: z.ZodOptional<z.ZodString>;
|
|
792
877
|
groupIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
793
878
|
createdAt: z.ZodString;
|
|
@@ -801,10 +886,12 @@ export declare const ListAuthServiceAccountAccessTokensResponseSchema: z.ZodObje
|
|
|
801
886
|
id: string;
|
|
802
887
|
kind: "serviceAccount" | "personal";
|
|
803
888
|
name: string;
|
|
889
|
+
subject: {
|
|
890
|
+
id: string;
|
|
891
|
+
type: "user" | "serviceAccount";
|
|
892
|
+
};
|
|
804
893
|
expiresAt: string;
|
|
805
894
|
createdAt: string;
|
|
806
|
-
subjectType: "user" | "serviceAccount";
|
|
807
|
-
subjectId: string;
|
|
808
895
|
revokedAt?: string | undefined;
|
|
809
896
|
groupIds?: string[] | undefined;
|
|
810
897
|
subjectLabel?: string | undefined;
|
|
@@ -816,10 +903,12 @@ export declare const ListAuthServiceAccountAccessTokensResponseSchema: z.ZodObje
|
|
|
816
903
|
id: string;
|
|
817
904
|
kind: "serviceAccount" | "personal";
|
|
818
905
|
name: string;
|
|
906
|
+
subject: {
|
|
907
|
+
id: string;
|
|
908
|
+
type: "user" | "serviceAccount";
|
|
909
|
+
};
|
|
819
910
|
expiresAt: string;
|
|
820
911
|
createdAt: string;
|
|
821
|
-
subjectType: "user" | "serviceAccount";
|
|
822
|
-
subjectId: string;
|
|
823
912
|
revokedAt?: string | undefined;
|
|
824
913
|
groupIds?: string[] | undefined;
|
|
825
914
|
subjectLabel?: string | undefined;
|
|
@@ -833,10 +922,12 @@ export declare const ListAuthServiceAccountAccessTokensResponseSchema: z.ZodObje
|
|
|
833
922
|
id: string;
|
|
834
923
|
kind: "serviceAccount" | "personal";
|
|
835
924
|
name: string;
|
|
925
|
+
subject: {
|
|
926
|
+
id: string;
|
|
927
|
+
type: "user" | "serviceAccount";
|
|
928
|
+
};
|
|
836
929
|
expiresAt: string;
|
|
837
930
|
createdAt: string;
|
|
838
|
-
subjectType: "user" | "serviceAccount";
|
|
839
|
-
subjectId: string;
|
|
840
931
|
revokedAt?: string | undefined;
|
|
841
932
|
groupIds?: string[] | undefined;
|
|
842
933
|
subjectLabel?: string | undefined;
|
|
@@ -850,10 +941,12 @@ export declare const ListAuthServiceAccountAccessTokensResponseSchema: z.ZodObje
|
|
|
850
941
|
id: string;
|
|
851
942
|
kind: "serviceAccount" | "personal";
|
|
852
943
|
name: string;
|
|
944
|
+
subject: {
|
|
945
|
+
id: string;
|
|
946
|
+
type: "user" | "serviceAccount";
|
|
947
|
+
};
|
|
853
948
|
expiresAt: string;
|
|
854
949
|
createdAt: string;
|
|
855
|
-
subjectType: "user" | "serviceAccount";
|
|
856
|
-
subjectId: string;
|
|
857
950
|
revokedAt?: string | undefined;
|
|
858
951
|
groupIds?: string[] | undefined;
|
|
859
952
|
subjectLabel?: string | undefined;
|
|
@@ -881,8 +974,16 @@ export declare const CreateAuthServiceAccountAccessTokenResponseSchema: z.ZodObj
|
|
|
881
974
|
name: z.ZodString;
|
|
882
975
|
kind: z.ZodEnum<["personal", "serviceAccount"]>;
|
|
883
976
|
status: z.ZodEnum<["active", "expired", "revoked"]>;
|
|
884
|
-
|
|
885
|
-
|
|
977
|
+
subject: z.ZodObject<{
|
|
978
|
+
type: z.ZodEnum<["user", "serviceAccount"]>;
|
|
979
|
+
id: z.ZodString;
|
|
980
|
+
}, "strip", z.ZodTypeAny, {
|
|
981
|
+
id: string;
|
|
982
|
+
type: "user" | "serviceAccount";
|
|
983
|
+
}, {
|
|
984
|
+
id: string;
|
|
985
|
+
type: "user" | "serviceAccount";
|
|
986
|
+
}>;
|
|
886
987
|
subjectLabel: z.ZodOptional<z.ZodString>;
|
|
887
988
|
groupIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
888
989
|
createdAt: z.ZodString;
|
|
@@ -896,10 +997,12 @@ export declare const CreateAuthServiceAccountAccessTokenResponseSchema: z.ZodObj
|
|
|
896
997
|
id: string;
|
|
897
998
|
kind: "serviceAccount" | "personal";
|
|
898
999
|
name: string;
|
|
1000
|
+
subject: {
|
|
1001
|
+
id: string;
|
|
1002
|
+
type: "user" | "serviceAccount";
|
|
1003
|
+
};
|
|
899
1004
|
expiresAt: string;
|
|
900
1005
|
createdAt: string;
|
|
901
|
-
subjectType: "user" | "serviceAccount";
|
|
902
|
-
subjectId: string;
|
|
903
1006
|
revokedAt?: string | undefined;
|
|
904
1007
|
groupIds?: string[] | undefined;
|
|
905
1008
|
subjectLabel?: string | undefined;
|
|
@@ -911,10 +1014,12 @@ export declare const CreateAuthServiceAccountAccessTokenResponseSchema: z.ZodObj
|
|
|
911
1014
|
id: string;
|
|
912
1015
|
kind: "serviceAccount" | "personal";
|
|
913
1016
|
name: string;
|
|
1017
|
+
subject: {
|
|
1018
|
+
id: string;
|
|
1019
|
+
type: "user" | "serviceAccount";
|
|
1020
|
+
};
|
|
914
1021
|
expiresAt: string;
|
|
915
1022
|
createdAt: string;
|
|
916
|
-
subjectType: "user" | "serviceAccount";
|
|
917
|
-
subjectId: string;
|
|
918
1023
|
revokedAt?: string | undefined;
|
|
919
1024
|
groupIds?: string[] | undefined;
|
|
920
1025
|
subjectLabel?: string | undefined;
|
|
@@ -929,10 +1034,12 @@ export declare const CreateAuthServiceAccountAccessTokenResponseSchema: z.ZodObj
|
|
|
929
1034
|
id: string;
|
|
930
1035
|
kind: "serviceAccount" | "personal";
|
|
931
1036
|
name: string;
|
|
1037
|
+
subject: {
|
|
1038
|
+
id: string;
|
|
1039
|
+
type: "user" | "serviceAccount";
|
|
1040
|
+
};
|
|
932
1041
|
expiresAt: string;
|
|
933
1042
|
createdAt: string;
|
|
934
|
-
subjectType: "user" | "serviceAccount";
|
|
935
|
-
subjectId: string;
|
|
936
1043
|
revokedAt?: string | undefined;
|
|
937
1044
|
groupIds?: string[] | undefined;
|
|
938
1045
|
subjectLabel?: string | undefined;
|
|
@@ -947,10 +1054,12 @@ export declare const CreateAuthServiceAccountAccessTokenResponseSchema: z.ZodObj
|
|
|
947
1054
|
id: string;
|
|
948
1055
|
kind: "serviceAccount" | "personal";
|
|
949
1056
|
name: string;
|
|
1057
|
+
subject: {
|
|
1058
|
+
id: string;
|
|
1059
|
+
type: "user" | "serviceAccount";
|
|
1060
|
+
};
|
|
950
1061
|
expiresAt: string;
|
|
951
1062
|
createdAt: string;
|
|
952
|
-
subjectType: "user" | "serviceAccount";
|
|
953
|
-
subjectId: string;
|
|
954
1063
|
revokedAt?: string | undefined;
|
|
955
1064
|
groupIds?: string[] | undefined;
|
|
956
1065
|
subjectLabel?: string | undefined;
|
|
@@ -977,8 +1086,16 @@ export declare const RevokeAuthServiceAccountAccessTokenResponseSchema: z.ZodObj
|
|
|
977
1086
|
name: z.ZodString;
|
|
978
1087
|
kind: z.ZodEnum<["personal", "serviceAccount"]>;
|
|
979
1088
|
status: z.ZodEnum<["active", "expired", "revoked"]>;
|
|
980
|
-
|
|
981
|
-
|
|
1089
|
+
subject: z.ZodObject<{
|
|
1090
|
+
type: z.ZodEnum<["user", "serviceAccount"]>;
|
|
1091
|
+
id: z.ZodString;
|
|
1092
|
+
}, "strip", z.ZodTypeAny, {
|
|
1093
|
+
id: string;
|
|
1094
|
+
type: "user" | "serviceAccount";
|
|
1095
|
+
}, {
|
|
1096
|
+
id: string;
|
|
1097
|
+
type: "user" | "serviceAccount";
|
|
1098
|
+
}>;
|
|
982
1099
|
subjectLabel: z.ZodOptional<z.ZodString>;
|
|
983
1100
|
groupIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
984
1101
|
createdAt: z.ZodString;
|
|
@@ -992,10 +1109,12 @@ export declare const RevokeAuthServiceAccountAccessTokenResponseSchema: z.ZodObj
|
|
|
992
1109
|
id: string;
|
|
993
1110
|
kind: "serviceAccount" | "personal";
|
|
994
1111
|
name: string;
|
|
1112
|
+
subject: {
|
|
1113
|
+
id: string;
|
|
1114
|
+
type: "user" | "serviceAccount";
|
|
1115
|
+
};
|
|
995
1116
|
expiresAt: string;
|
|
996
1117
|
createdAt: string;
|
|
997
|
-
subjectType: "user" | "serviceAccount";
|
|
998
|
-
subjectId: string;
|
|
999
1118
|
revokedAt?: string | undefined;
|
|
1000
1119
|
groupIds?: string[] | undefined;
|
|
1001
1120
|
subjectLabel?: string | undefined;
|
|
@@ -1007,10 +1126,12 @@ export declare const RevokeAuthServiceAccountAccessTokenResponseSchema: z.ZodObj
|
|
|
1007
1126
|
id: string;
|
|
1008
1127
|
kind: "serviceAccount" | "personal";
|
|
1009
1128
|
name: string;
|
|
1129
|
+
subject: {
|
|
1130
|
+
id: string;
|
|
1131
|
+
type: "user" | "serviceAccount";
|
|
1132
|
+
};
|
|
1010
1133
|
expiresAt: string;
|
|
1011
1134
|
createdAt: string;
|
|
1012
|
-
subjectType: "user" | "serviceAccount";
|
|
1013
|
-
subjectId: string;
|
|
1014
1135
|
revokedAt?: string | undefined;
|
|
1015
1136
|
groupIds?: string[] | undefined;
|
|
1016
1137
|
subjectLabel?: string | undefined;
|
|
@@ -1024,10 +1145,12 @@ export declare const RevokeAuthServiceAccountAccessTokenResponseSchema: z.ZodObj
|
|
|
1024
1145
|
id: string;
|
|
1025
1146
|
kind: "serviceAccount" | "personal";
|
|
1026
1147
|
name: string;
|
|
1148
|
+
subject: {
|
|
1149
|
+
id: string;
|
|
1150
|
+
type: "user" | "serviceAccount";
|
|
1151
|
+
};
|
|
1027
1152
|
expiresAt: string;
|
|
1028
1153
|
createdAt: string;
|
|
1029
|
-
subjectType: "user" | "serviceAccount";
|
|
1030
|
-
subjectId: string;
|
|
1031
1154
|
revokedAt?: string | undefined;
|
|
1032
1155
|
groupIds?: string[] | undefined;
|
|
1033
1156
|
subjectLabel?: string | undefined;
|
|
@@ -1041,10 +1164,12 @@ export declare const RevokeAuthServiceAccountAccessTokenResponseSchema: z.ZodObj
|
|
|
1041
1164
|
id: string;
|
|
1042
1165
|
kind: "serviceAccount" | "personal";
|
|
1043
1166
|
name: string;
|
|
1167
|
+
subject: {
|
|
1168
|
+
id: string;
|
|
1169
|
+
type: "user" | "serviceAccount";
|
|
1170
|
+
};
|
|
1044
1171
|
expiresAt: string;
|
|
1045
1172
|
createdAt: string;
|
|
1046
|
-
subjectType: "user" | "serviceAccount";
|
|
1047
|
-
subjectId: string;
|
|
1048
1173
|
revokedAt?: string | undefined;
|
|
1049
1174
|
groupIds?: string[] | undefined;
|
|
1050
1175
|
subjectLabel?: string | undefined;
|
|
@@ -1269,6 +1394,8 @@ export declare const ListAuthMembersResponseSchema: z.ZodObject<{
|
|
|
1269
1394
|
avatarUrl?: string | undefined;
|
|
1270
1395
|
}>;
|
|
1271
1396
|
groupIds: z.ZodArray<z.ZodString, "many">;
|
|
1397
|
+
/** The groups among `groupIds` the identity provider manages; they sync at sign-in. */
|
|
1398
|
+
managedGroupIds: z.ZodArray<z.ZodString, "many">;
|
|
1272
1399
|
} & {
|
|
1273
1400
|
capabilities: z.ZodObject<{
|
|
1274
1401
|
assignGroups: z.ZodBoolean;
|
|
@@ -1299,6 +1426,7 @@ export declare const ListAuthMembersResponseSchema: z.ZodObject<{
|
|
|
1299
1426
|
reactivate: boolean;
|
|
1300
1427
|
};
|
|
1301
1428
|
groupIds: string[];
|
|
1429
|
+
managedGroupIds: string[];
|
|
1302
1430
|
}, {
|
|
1303
1431
|
user: {
|
|
1304
1432
|
status: "active" | "suspended";
|
|
@@ -1315,6 +1443,7 @@ export declare const ListAuthMembersResponseSchema: z.ZodObject<{
|
|
|
1315
1443
|
reactivate: boolean;
|
|
1316
1444
|
};
|
|
1317
1445
|
groupIds: string[];
|
|
1446
|
+
managedGroupIds: string[];
|
|
1318
1447
|
}>, "many">;
|
|
1319
1448
|
hasMore: z.ZodBoolean;
|
|
1320
1449
|
total: z.ZodNumber;
|
|
@@ -1337,6 +1466,7 @@ export declare const ListAuthMembersResponseSchema: z.ZodObject<{
|
|
|
1337
1466
|
reactivate: boolean;
|
|
1338
1467
|
};
|
|
1339
1468
|
groupIds: string[];
|
|
1469
|
+
managedGroupIds: string[];
|
|
1340
1470
|
}[];
|
|
1341
1471
|
}, {
|
|
1342
1472
|
hasMore: boolean;
|
|
@@ -1357,6 +1487,7 @@ export declare const ListAuthMembersResponseSchema: z.ZodObject<{
|
|
|
1357
1487
|
reactivate: boolean;
|
|
1358
1488
|
};
|
|
1359
1489
|
groupIds: string[];
|
|
1490
|
+
managedGroupIds: string[];
|
|
1360
1491
|
}[];
|
|
1361
1492
|
}>;
|
|
1362
1493
|
export declare const AuthMemberParamsSchema: z.ZodObject<{
|
|
@@ -1401,6 +1532,8 @@ export declare const UpdateAuthMemberGroupsResponseSchema: z.ZodObject<{
|
|
|
1401
1532
|
avatarUrl?: string | undefined;
|
|
1402
1533
|
}>;
|
|
1403
1534
|
groupIds: z.ZodArray<z.ZodString, "many">;
|
|
1535
|
+
/** The groups among `groupIds` the identity provider manages; they sync at sign-in. */
|
|
1536
|
+
managedGroupIds: z.ZodArray<z.ZodString, "many">;
|
|
1404
1537
|
}, "strip", z.ZodTypeAny, {
|
|
1405
1538
|
user: {
|
|
1406
1539
|
status: "active" | "suspended";
|
|
@@ -1412,6 +1545,7 @@ export declare const UpdateAuthMemberGroupsResponseSchema: z.ZodObject<{
|
|
|
1412
1545
|
avatarUrl?: string | undefined;
|
|
1413
1546
|
};
|
|
1414
1547
|
groupIds: string[];
|
|
1548
|
+
managedGroupIds: string[];
|
|
1415
1549
|
}, {
|
|
1416
1550
|
user: {
|
|
1417
1551
|
status: "active" | "suspended";
|
|
@@ -1423,6 +1557,7 @@ export declare const UpdateAuthMemberGroupsResponseSchema: z.ZodObject<{
|
|
|
1423
1557
|
avatarUrl?: string | undefined;
|
|
1424
1558
|
};
|
|
1425
1559
|
groupIds: string[];
|
|
1560
|
+
managedGroupIds: string[];
|
|
1426
1561
|
}>;
|
|
1427
1562
|
}, "strip", z.ZodTypeAny, {
|
|
1428
1563
|
member: {
|
|
@@ -1436,6 +1571,7 @@ export declare const UpdateAuthMemberGroupsResponseSchema: z.ZodObject<{
|
|
|
1436
1571
|
avatarUrl?: string | undefined;
|
|
1437
1572
|
};
|
|
1438
1573
|
groupIds: string[];
|
|
1574
|
+
managedGroupIds: string[];
|
|
1439
1575
|
};
|
|
1440
1576
|
}, {
|
|
1441
1577
|
member: {
|
|
@@ -1449,6 +1585,7 @@ export declare const UpdateAuthMemberGroupsResponseSchema: z.ZodObject<{
|
|
|
1449
1585
|
avatarUrl?: string | undefined;
|
|
1450
1586
|
};
|
|
1451
1587
|
groupIds: string[];
|
|
1588
|
+
managedGroupIds: string[];
|
|
1452
1589
|
};
|
|
1453
1590
|
}>;
|
|
1454
1591
|
export declare const SuspendAuthMemberResponseSchema: z.ZodObject<{
|
|
@@ -1479,6 +1616,8 @@ export declare const SuspendAuthMemberResponseSchema: z.ZodObject<{
|
|
|
1479
1616
|
avatarUrl?: string | undefined;
|
|
1480
1617
|
}>;
|
|
1481
1618
|
groupIds: z.ZodArray<z.ZodString, "many">;
|
|
1619
|
+
/** The groups among `groupIds` the identity provider manages; they sync at sign-in. */
|
|
1620
|
+
managedGroupIds: z.ZodArray<z.ZodString, "many">;
|
|
1482
1621
|
}, "strip", z.ZodTypeAny, {
|
|
1483
1622
|
user: {
|
|
1484
1623
|
status: "active" | "suspended";
|
|
@@ -1490,6 +1629,7 @@ export declare const SuspendAuthMemberResponseSchema: z.ZodObject<{
|
|
|
1490
1629
|
avatarUrl?: string | undefined;
|
|
1491
1630
|
};
|
|
1492
1631
|
groupIds: string[];
|
|
1632
|
+
managedGroupIds: string[];
|
|
1493
1633
|
}, {
|
|
1494
1634
|
user: {
|
|
1495
1635
|
status: "active" | "suspended";
|
|
@@ -1501,6 +1641,7 @@ export declare const SuspendAuthMemberResponseSchema: z.ZodObject<{
|
|
|
1501
1641
|
avatarUrl?: string | undefined;
|
|
1502
1642
|
};
|
|
1503
1643
|
groupIds: string[];
|
|
1644
|
+
managedGroupIds: string[];
|
|
1504
1645
|
}>;
|
|
1505
1646
|
}, "strip", z.ZodTypeAny, {
|
|
1506
1647
|
member: {
|
|
@@ -1514,6 +1655,7 @@ export declare const SuspendAuthMemberResponseSchema: z.ZodObject<{
|
|
|
1514
1655
|
avatarUrl?: string | undefined;
|
|
1515
1656
|
};
|
|
1516
1657
|
groupIds: string[];
|
|
1658
|
+
managedGroupIds: string[];
|
|
1517
1659
|
};
|
|
1518
1660
|
}, {
|
|
1519
1661
|
member: {
|
|
@@ -1527,6 +1669,7 @@ export declare const SuspendAuthMemberResponseSchema: z.ZodObject<{
|
|
|
1527
1669
|
avatarUrl?: string | undefined;
|
|
1528
1670
|
};
|
|
1529
1671
|
groupIds: string[];
|
|
1672
|
+
managedGroupIds: string[];
|
|
1530
1673
|
};
|
|
1531
1674
|
}>;
|
|
1532
1675
|
export declare const ReactivateAuthMemberResponseSchema: z.ZodObject<{
|
|
@@ -1557,6 +1700,8 @@ export declare const ReactivateAuthMemberResponseSchema: z.ZodObject<{
|
|
|
1557
1700
|
avatarUrl?: string | undefined;
|
|
1558
1701
|
}>;
|
|
1559
1702
|
groupIds: z.ZodArray<z.ZodString, "many">;
|
|
1703
|
+
/** The groups among `groupIds` the identity provider manages; they sync at sign-in. */
|
|
1704
|
+
managedGroupIds: z.ZodArray<z.ZodString, "many">;
|
|
1560
1705
|
}, "strip", z.ZodTypeAny, {
|
|
1561
1706
|
user: {
|
|
1562
1707
|
status: "active" | "suspended";
|
|
@@ -1568,6 +1713,7 @@ export declare const ReactivateAuthMemberResponseSchema: z.ZodObject<{
|
|
|
1568
1713
|
avatarUrl?: string | undefined;
|
|
1569
1714
|
};
|
|
1570
1715
|
groupIds: string[];
|
|
1716
|
+
managedGroupIds: string[];
|
|
1571
1717
|
}, {
|
|
1572
1718
|
user: {
|
|
1573
1719
|
status: "active" | "suspended";
|
|
@@ -1579,6 +1725,7 @@ export declare const ReactivateAuthMemberResponseSchema: z.ZodObject<{
|
|
|
1579
1725
|
avatarUrl?: string | undefined;
|
|
1580
1726
|
};
|
|
1581
1727
|
groupIds: string[];
|
|
1728
|
+
managedGroupIds: string[];
|
|
1582
1729
|
}>;
|
|
1583
1730
|
}, "strip", z.ZodTypeAny, {
|
|
1584
1731
|
member: {
|
|
@@ -1592,6 +1739,7 @@ export declare const ReactivateAuthMemberResponseSchema: z.ZodObject<{
|
|
|
1592
1739
|
avatarUrl?: string | undefined;
|
|
1593
1740
|
};
|
|
1594
1741
|
groupIds: string[];
|
|
1742
|
+
managedGroupIds: string[];
|
|
1595
1743
|
};
|
|
1596
1744
|
}, {
|
|
1597
1745
|
member: {
|
|
@@ -1605,6 +1753,7 @@ export declare const ReactivateAuthMemberResponseSchema: z.ZodObject<{
|
|
|
1605
1753
|
avatarUrl?: string | undefined;
|
|
1606
1754
|
};
|
|
1607
1755
|
groupIds: string[];
|
|
1756
|
+
managedGroupIds: string[];
|
|
1608
1757
|
};
|
|
1609
1758
|
}>;
|
|
1610
1759
|
export declare const CreateAuthInvitationBodySchema: z.ZodObject<{
|
|
@@ -1879,7 +2028,9 @@ export declare const AuthSessionResponseSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1879
2028
|
authenticated: false;
|
|
1880
2029
|
}>, z.ZodObject<{
|
|
1881
2030
|
authenticated: z.ZodLiteral<true>;
|
|
1882
|
-
|
|
2031
|
+
/** Browser sessions only: send it back in `x-sixb-csrf` on mutations. */
|
|
2032
|
+
csrfToken: z.ZodOptional<z.ZodString>;
|
|
2033
|
+
/** Whether the user may open a web app: the browser session's own, or Atlas for a native client. */
|
|
1883
2034
|
applicationAccess: z.ZodObject<{
|
|
1884
2035
|
allowed: z.ZodBoolean;
|
|
1885
2036
|
audience: z.ZodEnum<["atlas", "app"]>;
|
|
@@ -1924,7 +2075,6 @@ export declare const AuthSessionResponseSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1924
2075
|
id: string;
|
|
1925
2076
|
expiresAt: string;
|
|
1926
2077
|
};
|
|
1927
|
-
csrfToken: string;
|
|
1928
2078
|
user: {
|
|
1929
2079
|
id: string;
|
|
1930
2080
|
email: string;
|
|
@@ -1937,12 +2087,12 @@ export declare const AuthSessionResponseSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1937
2087
|
audience: "atlas" | "app";
|
|
1938
2088
|
allowed: boolean;
|
|
1939
2089
|
};
|
|
2090
|
+
csrfToken?: string | undefined;
|
|
1940
2091
|
}, {
|
|
1941
2092
|
session: {
|
|
1942
2093
|
id: string;
|
|
1943
2094
|
expiresAt: string;
|
|
1944
2095
|
};
|
|
1945
|
-
csrfToken: string;
|
|
1946
2096
|
user: {
|
|
1947
2097
|
id: string;
|
|
1948
2098
|
email: string;
|
|
@@ -1955,6 +2105,7 @@ export declare const AuthSessionResponseSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1955
2105
|
audience: "atlas" | "app";
|
|
1956
2106
|
allowed: boolean;
|
|
1957
2107
|
};
|
|
2108
|
+
csrfToken?: string | undefined;
|
|
1958
2109
|
}>]>;
|
|
1959
2110
|
export declare const AuthSignOutResponseSchema: z.ZodObject<{
|
|
1960
2111
|
success: z.ZodBoolean;
|
|
@@ -1964,17 +2115,34 @@ export declare const AuthSignOutResponseSchema: z.ZodObject<{
|
|
|
1964
2115
|
success: boolean;
|
|
1965
2116
|
}>;
|
|
1966
2117
|
export declare const CreateDeviceAuthorizationBodySchema: z.ZodObject<{
|
|
2118
|
+
/** Shown to the approving user and on their sessions list, such as "sixb CLI on alex-mbp". */
|
|
1967
2119
|
clientName: z.ZodString;
|
|
1968
|
-
tokenName: z.ZodString;
|
|
1969
|
-
expiresIn: z.ZodOptional<z.ZodLiteral<"90d">>;
|
|
1970
2120
|
}, "strip", z.ZodTypeAny, {
|
|
1971
2121
|
clientName: string;
|
|
1972
|
-
tokenName: string;
|
|
1973
|
-
expiresIn?: "90d" | undefined;
|
|
1974
2122
|
}, {
|
|
1975
2123
|
clientName: string;
|
|
1976
|
-
|
|
1977
|
-
|
|
2124
|
+
}>;
|
|
2125
|
+
/** A native client's session tokens. Send `accessToken` as a Bearer token until `expiresIn` runs out. */
|
|
2126
|
+
export declare const BearerSessionTokensSchema: z.ZodObject<{
|
|
2127
|
+
accessToken: z.ZodString;
|
|
2128
|
+
refreshToken: z.ZodString;
|
|
2129
|
+
/** Seconds until the access token expires. */
|
|
2130
|
+
expiresIn: z.ZodNumber;
|
|
2131
|
+
}, "strip", z.ZodTypeAny, {
|
|
2132
|
+
accessToken: string;
|
|
2133
|
+
refreshToken: string;
|
|
2134
|
+
expiresIn: number;
|
|
2135
|
+
}, {
|
|
2136
|
+
accessToken: string;
|
|
2137
|
+
refreshToken: string;
|
|
2138
|
+
expiresIn: number;
|
|
2139
|
+
}>;
|
|
2140
|
+
export declare const RefreshAuthSessionBodySchema: z.ZodObject<{
|
|
2141
|
+
refreshToken: z.ZodString;
|
|
2142
|
+
}, "strip", z.ZodTypeAny, {
|
|
2143
|
+
refreshToken: string;
|
|
2144
|
+
}, {
|
|
2145
|
+
refreshToken: string;
|
|
1978
2146
|
}>;
|
|
1979
2147
|
export declare const CreateDeviceAuthorizationResponseSchema: z.ZodObject<{
|
|
1980
2148
|
deviceCode: z.ZodString;
|
|
@@ -2024,14 +2192,22 @@ export declare const ExchangeDeviceAuthorizationResponseSchema: z.ZodUnion<[z.Zo
|
|
|
2024
2192
|
}, {
|
|
2025
2193
|
status: "expired";
|
|
2026
2194
|
}>, z.ZodObject<{
|
|
2027
|
-
status: z.ZodLiteral<"approved">;
|
|
2028
2195
|
accessToken: z.ZodString;
|
|
2196
|
+
refreshToken: z.ZodString;
|
|
2197
|
+
/** Seconds until the access token expires. */
|
|
2198
|
+
expiresIn: z.ZodNumber;
|
|
2199
|
+
} & {
|
|
2200
|
+
status: z.ZodLiteral<"approved">;
|
|
2029
2201
|
}, "strip", z.ZodTypeAny, {
|
|
2030
2202
|
status: "approved";
|
|
2031
2203
|
accessToken: string;
|
|
2204
|
+
refreshToken: string;
|
|
2205
|
+
expiresIn: number;
|
|
2032
2206
|
}, {
|
|
2033
2207
|
status: "approved";
|
|
2034
2208
|
accessToken: string;
|
|
2209
|
+
refreshToken: string;
|
|
2210
|
+
expiresIn: number;
|
|
2035
2211
|
}>]>;
|
|
2036
2212
|
export declare const DeviceAuthorizationDecisionBodySchema: z.ZodObject<{
|
|
2037
2213
|
userCode: z.ZodString;
|
|
@@ -2048,28 +2224,33 @@ export declare const DeviceAuthorizationDecisionBodySchema: z.ZodObject<{
|
|
|
2048
2224
|
}>;
|
|
2049
2225
|
export declare const AuthSessionSummarySchema: z.ZodObject<{
|
|
2050
2226
|
id: z.ZodString;
|
|
2051
|
-
|
|
2227
|
+
/** The web app a browser session belongs to. Native clients' sessions have none. */
|
|
2228
|
+
audience: z.ZodOptional<z.ZodEnum<["atlas", "app"]>>;
|
|
2052
2229
|
current: z.ZodBoolean;
|
|
2053
2230
|
createdAt: z.ZodString;
|
|
2054
2231
|
expiresAt: z.ZodString;
|
|
2055
2232
|
lastSeenAt: z.ZodOptional<z.ZodString>;
|
|
2056
2233
|
userAgent: z.ZodOptional<z.ZodString>;
|
|
2057
2234
|
ipAddress: z.ZodOptional<z.ZodString>;
|
|
2235
|
+
/** Set for native clients, such as the CLI. */
|
|
2236
|
+
clientName: z.ZodOptional<z.ZodString>;
|
|
2058
2237
|
}, "strip", z.ZodTypeAny, {
|
|
2059
|
-
audience: "atlas" | "app";
|
|
2060
2238
|
id: string;
|
|
2061
2239
|
expiresAt: string;
|
|
2062
2240
|
createdAt: string;
|
|
2063
2241
|
current: boolean;
|
|
2242
|
+
audience?: "atlas" | "app" | undefined;
|
|
2243
|
+
clientName?: string | undefined;
|
|
2064
2244
|
lastSeenAt?: string | undefined;
|
|
2065
2245
|
userAgent?: string | undefined;
|
|
2066
2246
|
ipAddress?: string | undefined;
|
|
2067
2247
|
}, {
|
|
2068
|
-
audience: "atlas" | "app";
|
|
2069
2248
|
id: string;
|
|
2070
2249
|
expiresAt: string;
|
|
2071
2250
|
createdAt: string;
|
|
2072
2251
|
current: boolean;
|
|
2252
|
+
audience?: "atlas" | "app" | undefined;
|
|
2253
|
+
clientName?: string | undefined;
|
|
2073
2254
|
lastSeenAt?: string | undefined;
|
|
2074
2255
|
userAgent?: string | undefined;
|
|
2075
2256
|
ipAddress?: string | undefined;
|
|
@@ -2077,50 +2258,57 @@ export declare const AuthSessionSummarySchema: z.ZodObject<{
|
|
|
2077
2258
|
export declare const ListAuthSessionsResponseSchema: z.ZodObject<{
|
|
2078
2259
|
sessions: z.ZodArray<z.ZodObject<{
|
|
2079
2260
|
id: z.ZodString;
|
|
2080
|
-
|
|
2261
|
+
/** The web app a browser session belongs to. Native clients' sessions have none. */
|
|
2262
|
+
audience: z.ZodOptional<z.ZodEnum<["atlas", "app"]>>;
|
|
2081
2263
|
current: z.ZodBoolean;
|
|
2082
2264
|
createdAt: z.ZodString;
|
|
2083
2265
|
expiresAt: z.ZodString;
|
|
2084
2266
|
lastSeenAt: z.ZodOptional<z.ZodString>;
|
|
2085
2267
|
userAgent: z.ZodOptional<z.ZodString>;
|
|
2086
2268
|
ipAddress: z.ZodOptional<z.ZodString>;
|
|
2269
|
+
/** Set for native clients, such as the CLI. */
|
|
2270
|
+
clientName: z.ZodOptional<z.ZodString>;
|
|
2087
2271
|
}, "strip", z.ZodTypeAny, {
|
|
2088
|
-
audience: "atlas" | "app";
|
|
2089
2272
|
id: string;
|
|
2090
2273
|
expiresAt: string;
|
|
2091
2274
|
createdAt: string;
|
|
2092
2275
|
current: boolean;
|
|
2276
|
+
audience?: "atlas" | "app" | undefined;
|
|
2277
|
+
clientName?: string | undefined;
|
|
2093
2278
|
lastSeenAt?: string | undefined;
|
|
2094
2279
|
userAgent?: string | undefined;
|
|
2095
2280
|
ipAddress?: string | undefined;
|
|
2096
2281
|
}, {
|
|
2097
|
-
audience: "atlas" | "app";
|
|
2098
2282
|
id: string;
|
|
2099
2283
|
expiresAt: string;
|
|
2100
2284
|
createdAt: string;
|
|
2101
2285
|
current: boolean;
|
|
2286
|
+
audience?: "atlas" | "app" | undefined;
|
|
2287
|
+
clientName?: string | undefined;
|
|
2102
2288
|
lastSeenAt?: string | undefined;
|
|
2103
2289
|
userAgent?: string | undefined;
|
|
2104
2290
|
ipAddress?: string | undefined;
|
|
2105
2291
|
}>, "many">;
|
|
2106
2292
|
}, "strip", z.ZodTypeAny, {
|
|
2107
2293
|
sessions: {
|
|
2108
|
-
audience: "atlas" | "app";
|
|
2109
2294
|
id: string;
|
|
2110
2295
|
expiresAt: string;
|
|
2111
2296
|
createdAt: string;
|
|
2112
2297
|
current: boolean;
|
|
2298
|
+
audience?: "atlas" | "app" | undefined;
|
|
2299
|
+
clientName?: string | undefined;
|
|
2113
2300
|
lastSeenAt?: string | undefined;
|
|
2114
2301
|
userAgent?: string | undefined;
|
|
2115
2302
|
ipAddress?: string | undefined;
|
|
2116
2303
|
}[];
|
|
2117
2304
|
}, {
|
|
2118
2305
|
sessions: {
|
|
2119
|
-
audience: "atlas" | "app";
|
|
2120
2306
|
id: string;
|
|
2121
2307
|
expiresAt: string;
|
|
2122
2308
|
createdAt: string;
|
|
2123
2309
|
current: boolean;
|
|
2310
|
+
audience?: "atlas" | "app" | undefined;
|
|
2311
|
+
clientName?: string | undefined;
|
|
2124
2312
|
lastSeenAt?: string | undefined;
|
|
2125
2313
|
userAgent?: string | undefined;
|
|
2126
2314
|
ipAddress?: string | undefined;
|