@sixb/server 0.1.2 → 0.1.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.
Files changed (72) hide show
  1. package/dist/auth/experience.d.ts +33 -0
  2. package/dist/auth/experience.d.ts.map +1 -0
  3. package/dist/auth/public-routes.d.ts.map +1 -1
  4. package/dist/index.d.ts +1 -0
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.js +1891 -1337
  7. package/dist/index.js.map +17 -14
  8. package/dist/openapi/tags.d.ts +6 -2
  9. package/dist/openapi/tags.d.ts.map +1 -1
  10. package/dist/registerRoutes.d.ts.map +1 -1
  11. package/dist/routes/action-runs.d.ts +6 -6
  12. package/dist/routes/actions.d.ts +3 -3
  13. package/dist/routes/agents.d.ts +149 -77
  14. package/dist/routes/agents.d.ts.map +1 -1
  15. package/dist/routes/ai-accounting.d.ts +31 -0
  16. package/dist/routes/ai-accounting.d.ts.map +1 -0
  17. package/dist/routes/auth.d.ts +110 -53
  18. package/dist/routes/auth.d.ts.map +1 -1
  19. package/dist/routes/connector-connection-runs.d.ts +56 -56
  20. package/dist/routes/connector-connections.d.ts +14 -14
  21. package/dist/routes/datasets.d.ts +12 -12
  22. package/dist/routes/events.d.ts +1 -1
  23. package/dist/routes/files.d.ts +8 -8
  24. package/dist/routes/links.d.ts +9 -9
  25. package/dist/routes/logs.d.ts +2 -2
  26. package/dist/routes/objects.d.ts +3 -3
  27. package/dist/routes/pipelines.d.ts +10 -10
  28. package/dist/routes/projections.d.ts +62 -50
  29. package/dist/routes/projections.d.ts.map +1 -1
  30. package/dist/routes/syncs.d.ts +6 -6
  31. package/dist/routes/telemetry.d.ts +7 -7
  32. package/dist/routes/webhook-runs.d.ts +2 -2
  33. package/dist/routes/workflows.d.ts +142 -57
  34. package/dist/routes/workflows.d.ts.map +1 -1
  35. package/dist/routes/ws/logs.d.ts +10 -10
  36. package/dist/schemas/actions.d.ts +16 -16
  37. package/dist/schemas/agents.d.ts +459 -142
  38. package/dist/schemas/agents.d.ts.map +1 -1
  39. package/dist/schemas/ai-accounting.d.ts +2393 -0
  40. package/dist/schemas/ai-accounting.d.ts.map +1 -0
  41. package/dist/schemas/auth.d.ts +96 -96
  42. package/dist/schemas/connectors.d.ts +24 -24
  43. package/dist/schemas/event-payloads.d.ts +6 -6
  44. package/dist/schemas/events.d.ts +6 -6
  45. package/dist/schemas/links.d.ts +2 -2
  46. package/dist/schemas/logs.d.ts +18 -18
  47. package/dist/schemas/pipelines.d.ts +20 -20
  48. package/dist/schemas/projections.d.ts +400 -288
  49. package/dist/schemas/projections.d.ts.map +1 -1
  50. package/dist/schemas/status.d.ts +2 -2
  51. package/dist/schemas/syncs.d.ts +10 -10
  52. package/dist/schemas/webhook-runs.d.ts +12 -12
  53. package/dist/schemas/workflows.d.ts +833 -162
  54. package/dist/schemas/workflows.d.ts.map +1 -1
  55. package/dist/server.d.ts +5 -0
  56. package/dist/server.d.ts.map +1 -1
  57. package/package.json +5 -5
  58. package/src/auth/experience.ts +190 -0
  59. package/src/auth/public-routes.ts +7 -0
  60. package/src/index.ts +1 -0
  61. package/src/openapi/tags.ts +4 -0
  62. package/src/registerRoutes.ts +2 -0
  63. package/src/routes/agents.ts +1 -0
  64. package/src/routes/ai-accounting.ts +166 -0
  65. package/src/routes/auth.ts +188 -32
  66. package/src/routes/projections.ts +18 -4
  67. package/src/routes/workflows.ts +16 -0
  68. package/src/schemas/agents.ts +4 -9
  69. package/src/schemas/ai-accounting.ts +182 -0
  70. package/src/schemas/projections.ts +6 -0
  71. package/src/schemas/workflows.ts +8 -3
  72. package/src/server.ts +10 -0
@@ -24,8 +24,8 @@ export declare const AuthInvitationSchema: z.ZodObject<{
24
24
  acceptedAt: z.ZodOptional<z.ZodString>;
25
25
  revokedAt: z.ZodOptional<z.ZodString>;
26
26
  }, "strip", z.ZodTypeAny, {
27
- id: string;
28
27
  status: "pending" | "accepted" | "revoked";
28
+ id: string;
29
29
  email: string;
30
30
  expiresAt: string;
31
31
  groupIds: string[];
@@ -34,8 +34,8 @@ export declare const AuthInvitationSchema: z.ZodObject<{
34
34
  acceptedAt?: string | undefined;
35
35
  revokedAt?: string | undefined;
36
36
  }, {
37
- id: string;
38
37
  status: "pending" | "accepted" | "revoked";
38
+ id: string;
39
39
  email: string;
40
40
  expiresAt: string;
41
41
  groupIds: string[];
@@ -85,8 +85,8 @@ export declare const AuthAccessTokenSchema: z.ZodObject<{
85
85
  lastUsedUserAgent: z.ZodOptional<z.ZodString>;
86
86
  lastUsedIpAddress: z.ZodOptional<z.ZodString>;
87
87
  }, "strip", z.ZodTypeAny, {
88
- id: string;
89
88
  status: "expired" | "active" | "revoked";
89
+ id: string;
90
90
  kind: "serviceAccount" | "personal";
91
91
  name: string;
92
92
  expiresAt: string;
@@ -100,8 +100,8 @@ export declare const AuthAccessTokenSchema: z.ZodObject<{
100
100
  lastUsedUserAgent?: string | undefined;
101
101
  lastUsedIpAddress?: string | undefined;
102
102
  }, {
103
- id: string;
104
103
  status: "expired" | "active" | "revoked";
104
+ id: string;
105
105
  kind: "serviceAccount" | "personal";
106
106
  name: string;
107
107
  expiresAt: string;
@@ -124,16 +124,16 @@ export declare const AuthServiceAccountSchema: z.ZodObject<{
124
124
  createdAt: z.ZodString;
125
125
  updatedAt: z.ZodString;
126
126
  }, "strip", z.ZodTypeAny, {
127
- id: string;
128
127
  status: "active" | "suspended";
128
+ id: string;
129
129
  name: string;
130
130
  groupIds: string[];
131
131
  createdAt: string;
132
132
  updatedAt: string;
133
133
  description?: string | undefined;
134
134
  }, {
135
- id: string;
136
135
  status: "active" | "suspended";
136
+ id: string;
137
137
  name: string;
138
138
  groupIds: string[];
139
139
  createdAt: string;
@@ -149,16 +149,16 @@ export declare const AuthMemberUserSchema: z.ZodObject<{
149
149
  createdAt: z.ZodString;
150
150
  updatedAt: z.ZodString;
151
151
  }, "strip", z.ZodTypeAny, {
152
- id: string;
153
152
  status: "active" | "suspended";
153
+ id: string;
154
154
  email: string;
155
155
  createdAt: string;
156
156
  updatedAt: string;
157
157
  avatarUrl?: string | undefined;
158
158
  displayName?: string | undefined;
159
159
  }, {
160
- id: string;
161
160
  status: "active" | "suspended";
161
+ id: string;
162
162
  email: string;
163
163
  createdAt: string;
164
164
  updatedAt: string;
@@ -175,16 +175,16 @@ export declare const AuthManagedMemberSchema: z.ZodObject<{
175
175
  createdAt: z.ZodString;
176
176
  updatedAt: z.ZodString;
177
177
  }, "strip", z.ZodTypeAny, {
178
- id: string;
179
178
  status: "active" | "suspended";
179
+ id: string;
180
180
  email: string;
181
181
  createdAt: string;
182
182
  updatedAt: string;
183
183
  avatarUrl?: string | undefined;
184
184
  displayName?: string | undefined;
185
185
  }, {
186
- id: string;
187
186
  status: "active" | "suspended";
187
+ id: string;
188
188
  email: string;
189
189
  createdAt: string;
190
190
  updatedAt: string;
@@ -194,8 +194,8 @@ export declare const AuthManagedMemberSchema: z.ZodObject<{
194
194
  groupIds: z.ZodArray<z.ZodString, "many">;
195
195
  }, "strip", z.ZodTypeAny, {
196
196
  user: {
197
- id: string;
198
197
  status: "active" | "suspended";
198
+ id: string;
199
199
  email: string;
200
200
  createdAt: string;
201
201
  updatedAt: string;
@@ -205,8 +205,8 @@ export declare const AuthManagedMemberSchema: z.ZodObject<{
205
205
  groupIds: string[];
206
206
  }, {
207
207
  user: {
208
- id: string;
209
208
  status: "active" | "suspended";
209
+ id: string;
210
210
  email: string;
211
211
  createdAt: string;
212
212
  updatedAt: string;
@@ -238,16 +238,16 @@ export declare const AuthMemberSchema: z.ZodObject<{
238
238
  createdAt: z.ZodString;
239
239
  updatedAt: z.ZodString;
240
240
  }, "strip", z.ZodTypeAny, {
241
- id: string;
242
241
  status: "active" | "suspended";
242
+ id: string;
243
243
  email: string;
244
244
  createdAt: string;
245
245
  updatedAt: string;
246
246
  avatarUrl?: string | undefined;
247
247
  displayName?: string | undefined;
248
248
  }, {
249
- id: string;
250
249
  status: "active" | "suspended";
250
+ id: string;
251
251
  email: string;
252
252
  createdAt: string;
253
253
  updatedAt: string;
@@ -271,8 +271,8 @@ export declare const AuthMemberSchema: z.ZodObject<{
271
271
  }>;
272
272
  }, "strip", z.ZodTypeAny, {
273
273
  user: {
274
- id: string;
275
274
  status: "active" | "suspended";
275
+ id: string;
276
276
  email: string;
277
277
  createdAt: string;
278
278
  updatedAt: string;
@@ -287,8 +287,8 @@ export declare const AuthMemberSchema: z.ZodObject<{
287
287
  };
288
288
  }, {
289
289
  user: {
290
- id: string;
291
290
  status: "active" | "suspended";
291
+ id: string;
292
292
  email: string;
293
293
  createdAt: string;
294
294
  updatedAt: string;
@@ -346,8 +346,8 @@ export declare const ListAuthAccessTokensResponseSchema: z.ZodObject<{
346
346
  lastUsedUserAgent: z.ZodOptional<z.ZodString>;
347
347
  lastUsedIpAddress: z.ZodOptional<z.ZodString>;
348
348
  }, "strip", z.ZodTypeAny, {
349
- id: string;
350
349
  status: "expired" | "active" | "revoked";
350
+ id: string;
351
351
  kind: "serviceAccount" | "personal";
352
352
  name: string;
353
353
  expiresAt: string;
@@ -361,8 +361,8 @@ export declare const ListAuthAccessTokensResponseSchema: z.ZodObject<{
361
361
  lastUsedUserAgent?: string | undefined;
362
362
  lastUsedIpAddress?: string | undefined;
363
363
  }, {
364
- id: string;
365
364
  status: "expired" | "active" | "revoked";
365
+ id: string;
366
366
  kind: "serviceAccount" | "personal";
367
367
  name: string;
368
368
  expiresAt: string;
@@ -378,8 +378,8 @@ export declare const ListAuthAccessTokensResponseSchema: z.ZodObject<{
378
378
  }>, "many">;
379
379
  }, "strip", z.ZodTypeAny, {
380
380
  accessTokens: {
381
- id: string;
382
381
  status: "expired" | "active" | "revoked";
382
+ id: string;
383
383
  kind: "serviceAccount" | "personal";
384
384
  name: string;
385
385
  expiresAt: string;
@@ -395,8 +395,8 @@ export declare const ListAuthAccessTokensResponseSchema: z.ZodObject<{
395
395
  }[];
396
396
  }, {
397
397
  accessTokens: {
398
- id: string;
399
398
  status: "expired" | "active" | "revoked";
399
+ id: string;
400
400
  kind: "serviceAccount" | "personal";
401
401
  name: string;
402
402
  expiresAt: string;
@@ -441,8 +441,8 @@ export declare const CreateAuthPersonalAccessTokenResponseSchema: z.ZodObject<{
441
441
  lastUsedUserAgent: z.ZodOptional<z.ZodString>;
442
442
  lastUsedIpAddress: z.ZodOptional<z.ZodString>;
443
443
  }, "strip", z.ZodTypeAny, {
444
- id: string;
445
444
  status: "expired" | "active" | "revoked";
445
+ id: string;
446
446
  kind: "serviceAccount" | "personal";
447
447
  name: string;
448
448
  expiresAt: string;
@@ -456,8 +456,8 @@ export declare const CreateAuthPersonalAccessTokenResponseSchema: z.ZodObject<{
456
456
  lastUsedUserAgent?: string | undefined;
457
457
  lastUsedIpAddress?: string | undefined;
458
458
  }, {
459
- id: string;
460
459
  status: "expired" | "active" | "revoked";
460
+ id: string;
461
461
  kind: "serviceAccount" | "personal";
462
462
  name: string;
463
463
  expiresAt: string;
@@ -474,8 +474,8 @@ export declare const CreateAuthPersonalAccessTokenResponseSchema: z.ZodObject<{
474
474
  tokenValue: z.ZodString;
475
475
  }, "strip", z.ZodTypeAny, {
476
476
  accessToken: {
477
- id: string;
478
477
  status: "expired" | "active" | "revoked";
478
+ id: string;
479
479
  kind: "serviceAccount" | "personal";
480
480
  name: string;
481
481
  expiresAt: string;
@@ -492,8 +492,8 @@ export declare const CreateAuthPersonalAccessTokenResponseSchema: z.ZodObject<{
492
492
  tokenValue: string;
493
493
  }, {
494
494
  accessToken: {
495
- id: string;
496
495
  status: "expired" | "active" | "revoked";
496
+ id: string;
497
497
  kind: "serviceAccount" | "personal";
498
498
  name: string;
499
499
  expiresAt: string;
@@ -533,8 +533,8 @@ export declare const RevokeAuthAccessTokenResponseSchema: z.ZodObject<{
533
533
  lastUsedUserAgent: z.ZodOptional<z.ZodString>;
534
534
  lastUsedIpAddress: z.ZodOptional<z.ZodString>;
535
535
  }, "strip", z.ZodTypeAny, {
536
- id: string;
537
536
  status: "expired" | "active" | "revoked";
537
+ id: string;
538
538
  kind: "serviceAccount" | "personal";
539
539
  name: string;
540
540
  expiresAt: string;
@@ -548,8 +548,8 @@ export declare const RevokeAuthAccessTokenResponseSchema: z.ZodObject<{
548
548
  lastUsedUserAgent?: string | undefined;
549
549
  lastUsedIpAddress?: string | undefined;
550
550
  }, {
551
- id: string;
552
551
  status: "expired" | "active" | "revoked";
552
+ id: string;
553
553
  kind: "serviceAccount" | "personal";
554
554
  name: string;
555
555
  expiresAt: string;
@@ -565,8 +565,8 @@ export declare const RevokeAuthAccessTokenResponseSchema: z.ZodObject<{
565
565
  }>;
566
566
  }, "strip", z.ZodTypeAny, {
567
567
  accessToken: {
568
- id: string;
569
568
  status: "expired" | "active" | "revoked";
569
+ id: string;
570
570
  kind: "serviceAccount" | "personal";
571
571
  name: string;
572
572
  expiresAt: string;
@@ -582,8 +582,8 @@ export declare const RevokeAuthAccessTokenResponseSchema: z.ZodObject<{
582
582
  };
583
583
  }, {
584
584
  accessToken: {
585
- id: string;
586
585
  status: "expired" | "active" | "revoked";
586
+ id: string;
587
587
  kind: "serviceAccount" | "personal";
588
588
  name: string;
589
589
  expiresAt: string;
@@ -608,16 +608,16 @@ export declare const ListAuthServiceAccountsResponseSchema: z.ZodObject<{
608
608
  createdAt: z.ZodString;
609
609
  updatedAt: z.ZodString;
610
610
  }, "strip", z.ZodTypeAny, {
611
- id: string;
612
611
  status: "active" | "suspended";
612
+ id: string;
613
613
  name: string;
614
614
  groupIds: string[];
615
615
  createdAt: string;
616
616
  updatedAt: string;
617
617
  description?: string | undefined;
618
618
  }, {
619
- id: string;
620
619
  status: "active" | "suspended";
620
+ id: string;
621
621
  name: string;
622
622
  groupIds: string[];
623
623
  createdAt: string;
@@ -626,8 +626,8 @@ export declare const ListAuthServiceAccountsResponseSchema: z.ZodObject<{
626
626
  }>, "many">;
627
627
  }, "strip", z.ZodTypeAny, {
628
628
  serviceAccounts: {
629
- id: string;
630
629
  status: "active" | "suspended";
630
+ id: string;
631
631
  name: string;
632
632
  groupIds: string[];
633
633
  createdAt: string;
@@ -636,8 +636,8 @@ export declare const ListAuthServiceAccountsResponseSchema: z.ZodObject<{
636
636
  }[];
637
637
  }, {
638
638
  serviceAccounts: {
639
- id: string;
640
639
  status: "active" | "suspended";
640
+ id: string;
641
641
  name: string;
642
642
  groupIds: string[];
643
643
  createdAt: string;
@@ -671,16 +671,16 @@ export declare const CreateAuthServiceAccountResponseSchema: z.ZodObject<{
671
671
  createdAt: z.ZodString;
672
672
  updatedAt: z.ZodString;
673
673
  }, "strip", z.ZodTypeAny, {
674
- id: string;
675
674
  status: "active" | "suspended";
675
+ id: string;
676
676
  name: string;
677
677
  groupIds: string[];
678
678
  createdAt: string;
679
679
  updatedAt: string;
680
680
  description?: string | undefined;
681
681
  }, {
682
- id: string;
683
682
  status: "active" | "suspended";
683
+ id: string;
684
684
  name: string;
685
685
  groupIds: string[];
686
686
  createdAt: string;
@@ -689,8 +689,8 @@ export declare const CreateAuthServiceAccountResponseSchema: z.ZodObject<{
689
689
  }>;
690
690
  }, "strip", z.ZodTypeAny, {
691
691
  serviceAccount: {
692
- id: string;
693
692
  status: "active" | "suspended";
693
+ id: string;
694
694
  name: string;
695
695
  groupIds: string[];
696
696
  createdAt: string;
@@ -699,8 +699,8 @@ export declare const CreateAuthServiceAccountResponseSchema: z.ZodObject<{
699
699
  };
700
700
  }, {
701
701
  serviceAccount: {
702
- id: string;
703
702
  status: "active" | "suspended";
703
+ id: string;
704
704
  name: string;
705
705
  groupIds: string[];
706
706
  createdAt: string;
@@ -725,16 +725,16 @@ export declare const DisableAuthServiceAccountResponseSchema: z.ZodObject<{
725
725
  createdAt: z.ZodString;
726
726
  updatedAt: z.ZodString;
727
727
  }, "strip", z.ZodTypeAny, {
728
- id: string;
729
728
  status: "active" | "suspended";
729
+ id: string;
730
730
  name: string;
731
731
  groupIds: string[];
732
732
  createdAt: string;
733
733
  updatedAt: string;
734
734
  description?: string | undefined;
735
735
  }, {
736
- id: string;
737
736
  status: "active" | "suspended";
737
+ id: string;
738
738
  name: string;
739
739
  groupIds: string[];
740
740
  createdAt: string;
@@ -743,8 +743,8 @@ export declare const DisableAuthServiceAccountResponseSchema: z.ZodObject<{
743
743
  }>;
744
744
  }, "strip", z.ZodTypeAny, {
745
745
  serviceAccount: {
746
- id: string;
747
746
  status: "active" | "suspended";
747
+ id: string;
748
748
  name: string;
749
749
  groupIds: string[];
750
750
  createdAt: string;
@@ -753,8 +753,8 @@ export declare const DisableAuthServiceAccountResponseSchema: z.ZodObject<{
753
753
  };
754
754
  }, {
755
755
  serviceAccount: {
756
- id: string;
757
756
  status: "active" | "suspended";
757
+ id: string;
758
758
  name: string;
759
759
  groupIds: string[];
760
760
  createdAt: string;
@@ -779,8 +779,8 @@ export declare const ListAuthServiceAccountAccessTokensResponseSchema: z.ZodObje
779
779
  lastUsedUserAgent: z.ZodOptional<z.ZodString>;
780
780
  lastUsedIpAddress: z.ZodOptional<z.ZodString>;
781
781
  }, "strip", z.ZodTypeAny, {
782
- id: string;
783
782
  status: "expired" | "active" | "revoked";
783
+ id: string;
784
784
  kind: "serviceAccount" | "personal";
785
785
  name: string;
786
786
  expiresAt: string;
@@ -794,8 +794,8 @@ export declare const ListAuthServiceAccountAccessTokensResponseSchema: z.ZodObje
794
794
  lastUsedUserAgent?: string | undefined;
795
795
  lastUsedIpAddress?: string | undefined;
796
796
  }, {
797
- id: string;
798
797
  status: "expired" | "active" | "revoked";
798
+ id: string;
799
799
  kind: "serviceAccount" | "personal";
800
800
  name: string;
801
801
  expiresAt: string;
@@ -811,8 +811,8 @@ export declare const ListAuthServiceAccountAccessTokensResponseSchema: z.ZodObje
811
811
  }>, "many">;
812
812
  }, "strip", z.ZodTypeAny, {
813
813
  accessTokens: {
814
- id: string;
815
814
  status: "expired" | "active" | "revoked";
815
+ id: string;
816
816
  kind: "serviceAccount" | "personal";
817
817
  name: string;
818
818
  expiresAt: string;
@@ -828,8 +828,8 @@ export declare const ListAuthServiceAccountAccessTokensResponseSchema: z.ZodObje
828
828
  }[];
829
829
  }, {
830
830
  accessTokens: {
831
- id: string;
832
831
  status: "expired" | "active" | "revoked";
832
+ id: string;
833
833
  kind: "serviceAccount" | "personal";
834
834
  name: string;
835
835
  expiresAt: string;
@@ -874,8 +874,8 @@ export declare const CreateAuthServiceAccountAccessTokenResponseSchema: z.ZodObj
874
874
  lastUsedUserAgent: z.ZodOptional<z.ZodString>;
875
875
  lastUsedIpAddress: z.ZodOptional<z.ZodString>;
876
876
  }, "strip", z.ZodTypeAny, {
877
- id: string;
878
877
  status: "expired" | "active" | "revoked";
878
+ id: string;
879
879
  kind: "serviceAccount" | "personal";
880
880
  name: string;
881
881
  expiresAt: string;
@@ -889,8 +889,8 @@ export declare const CreateAuthServiceAccountAccessTokenResponseSchema: z.ZodObj
889
889
  lastUsedUserAgent?: string | undefined;
890
890
  lastUsedIpAddress?: string | undefined;
891
891
  }, {
892
- id: string;
893
892
  status: "expired" | "active" | "revoked";
893
+ id: string;
894
894
  kind: "serviceAccount" | "personal";
895
895
  name: string;
896
896
  expiresAt: string;
@@ -907,8 +907,8 @@ export declare const CreateAuthServiceAccountAccessTokenResponseSchema: z.ZodObj
907
907
  tokenValue: z.ZodString;
908
908
  }, "strip", z.ZodTypeAny, {
909
909
  accessToken: {
910
- id: string;
911
910
  status: "expired" | "active" | "revoked";
911
+ id: string;
912
912
  kind: "serviceAccount" | "personal";
913
913
  name: string;
914
914
  expiresAt: string;
@@ -925,8 +925,8 @@ export declare const CreateAuthServiceAccountAccessTokenResponseSchema: z.ZodObj
925
925
  tokenValue: string;
926
926
  }, {
927
927
  accessToken: {
928
- id: string;
929
928
  status: "expired" | "active" | "revoked";
929
+ id: string;
930
930
  kind: "serviceAccount" | "personal";
931
931
  name: string;
932
932
  expiresAt: string;
@@ -970,8 +970,8 @@ export declare const RevokeAuthServiceAccountAccessTokenResponseSchema: z.ZodObj
970
970
  lastUsedUserAgent: z.ZodOptional<z.ZodString>;
971
971
  lastUsedIpAddress: z.ZodOptional<z.ZodString>;
972
972
  }, "strip", z.ZodTypeAny, {
973
- id: string;
974
973
  status: "expired" | "active" | "revoked";
974
+ id: string;
975
975
  kind: "serviceAccount" | "personal";
976
976
  name: string;
977
977
  expiresAt: string;
@@ -985,8 +985,8 @@ export declare const RevokeAuthServiceAccountAccessTokenResponseSchema: z.ZodObj
985
985
  lastUsedUserAgent?: string | undefined;
986
986
  lastUsedIpAddress?: string | undefined;
987
987
  }, {
988
- id: string;
989
988
  status: "expired" | "active" | "revoked";
989
+ id: string;
990
990
  kind: "serviceAccount" | "personal";
991
991
  name: string;
992
992
  expiresAt: string;
@@ -1002,8 +1002,8 @@ export declare const RevokeAuthServiceAccountAccessTokenResponseSchema: z.ZodObj
1002
1002
  }>;
1003
1003
  }, "strip", z.ZodTypeAny, {
1004
1004
  accessToken: {
1005
- id: string;
1006
1005
  status: "expired" | "active" | "revoked";
1006
+ id: string;
1007
1007
  kind: "serviceAccount" | "personal";
1008
1008
  name: string;
1009
1009
  expiresAt: string;
@@ -1019,8 +1019,8 @@ export declare const RevokeAuthServiceAccountAccessTokenResponseSchema: z.ZodObj
1019
1019
  };
1020
1020
  }, {
1021
1021
  accessToken: {
1022
- id: string;
1023
1022
  status: "expired" | "active" | "revoked";
1023
+ id: string;
1024
1024
  kind: "serviceAccount" | "personal";
1025
1025
  name: string;
1026
1026
  expiresAt: string;
@@ -1045,11 +1045,11 @@ export declare const AuthCreateInvitationCapabilitySchema: z.ZodUnion<[z.ZodObje
1045
1045
  state: z.ZodLiteral<"disabled">;
1046
1046
  reason: z.ZodEnum<["missing_membership_policy", "invitation_delivery_not_supported"]>;
1047
1047
  }, "strip", z.ZodTypeAny, {
1048
- state: "disabled";
1049
1048
  reason: "missing_membership_policy" | "invitation_delivery_not_supported";
1050
- }, {
1051
1049
  state: "disabled";
1050
+ }, {
1052
1051
  reason: "missing_membership_policy" | "invitation_delivery_not_supported";
1052
+ state: "disabled";
1053
1053
  }>]>;
1054
1054
  export declare const AuthInvitationDestinationSchema: z.ZodObject<{
1055
1055
  id: z.ZodEnum<["atlas", "app"]>;
@@ -1098,25 +1098,25 @@ export declare const GetAuthInvitationOptionsResponseSchema: z.ZodObject<{
1098
1098
  state: z.ZodLiteral<"disabled">;
1099
1099
  reason: z.ZodEnum<["missing_membership_policy", "invitation_delivery_not_supported"]>;
1100
1100
  }, "strip", z.ZodTypeAny, {
1101
- state: "disabled";
1102
1101
  reason: "missing_membership_policy" | "invitation_delivery_not_supported";
1103
- }, {
1104
1102
  state: "disabled";
1103
+ }, {
1105
1104
  reason: "missing_membership_policy" | "invitation_delivery_not_supported";
1105
+ state: "disabled";
1106
1106
  }>]>;
1107
1107
  }, "strip", z.ZodTypeAny, {
1108
1108
  createInvitation: {
1109
1109
  state: "enabled";
1110
1110
  } | {
1111
- state: "disabled";
1112
1111
  reason: "missing_membership_policy" | "invitation_delivery_not_supported";
1112
+ state: "disabled";
1113
1113
  };
1114
1114
  }, {
1115
1115
  createInvitation: {
1116
1116
  state: "enabled";
1117
1117
  } | {
1118
- state: "disabled";
1119
1118
  reason: "missing_membership_policy" | "invitation_delivery_not_supported";
1119
+ state: "disabled";
1120
1120
  };
1121
1121
  }>;
1122
1122
  }, "strip", z.ZodTypeAny, {
@@ -1124,8 +1124,8 @@ export declare const GetAuthInvitationOptionsResponseSchema: z.ZodObject<{
1124
1124
  createInvitation: {
1125
1125
  state: "enabled";
1126
1126
  } | {
1127
- state: "disabled";
1128
1127
  reason: "missing_membership_policy" | "invitation_delivery_not_supported";
1128
+ state: "disabled";
1129
1129
  };
1130
1130
  };
1131
1131
  groups: {
@@ -1144,8 +1144,8 @@ export declare const GetAuthInvitationOptionsResponseSchema: z.ZodObject<{
1144
1144
  createInvitation: {
1145
1145
  state: "enabled";
1146
1146
  } | {
1147
- state: "disabled";
1148
1147
  reason: "missing_membership_policy" | "invitation_delivery_not_supported";
1148
+ state: "disabled";
1149
1149
  };
1150
1150
  };
1151
1151
  groups: {
@@ -1234,16 +1234,16 @@ export declare const ListAuthMembersResponseSchema: z.ZodObject<{
1234
1234
  createdAt: z.ZodString;
1235
1235
  updatedAt: z.ZodString;
1236
1236
  }, "strip", z.ZodTypeAny, {
1237
- id: string;
1238
1237
  status: "active" | "suspended";
1238
+ id: string;
1239
1239
  email: string;
1240
1240
  createdAt: string;
1241
1241
  updatedAt: string;
1242
1242
  avatarUrl?: string | undefined;
1243
1243
  displayName?: string | undefined;
1244
1244
  }, {
1245
- id: string;
1246
1245
  status: "active" | "suspended";
1246
+ id: string;
1247
1247
  email: string;
1248
1248
  createdAt: string;
1249
1249
  updatedAt: string;
@@ -1267,8 +1267,8 @@ export declare const ListAuthMembersResponseSchema: z.ZodObject<{
1267
1267
  }>;
1268
1268
  }, "strip", z.ZodTypeAny, {
1269
1269
  user: {
1270
- id: string;
1271
1270
  status: "active" | "suspended";
1271
+ id: string;
1272
1272
  email: string;
1273
1273
  createdAt: string;
1274
1274
  updatedAt: string;
@@ -1283,8 +1283,8 @@ export declare const ListAuthMembersResponseSchema: z.ZodObject<{
1283
1283
  };
1284
1284
  }, {
1285
1285
  user: {
1286
- id: string;
1287
1286
  status: "active" | "suspended";
1287
+ id: string;
1288
1288
  email: string;
1289
1289
  createdAt: string;
1290
1290
  updatedAt: string;
@@ -1305,8 +1305,8 @@ export declare const ListAuthMembersResponseSchema: z.ZodObject<{
1305
1305
  total: number;
1306
1306
  members: {
1307
1307
  user: {
1308
- id: string;
1309
1308
  status: "active" | "suspended";
1309
+ id: string;
1310
1310
  email: string;
1311
1311
  createdAt: string;
1312
1312
  updatedAt: string;
@@ -1325,8 +1325,8 @@ export declare const ListAuthMembersResponseSchema: z.ZodObject<{
1325
1325
  total: number;
1326
1326
  members: {
1327
1327
  user: {
1328
- id: string;
1329
1328
  status: "active" | "suspended";
1329
+ id: string;
1330
1330
  email: string;
1331
1331
  createdAt: string;
1332
1332
  updatedAt: string;
@@ -1366,16 +1366,16 @@ export declare const UpdateAuthMemberGroupsResponseSchema: z.ZodObject<{
1366
1366
  createdAt: z.ZodString;
1367
1367
  updatedAt: z.ZodString;
1368
1368
  }, "strip", z.ZodTypeAny, {
1369
- id: string;
1370
1369
  status: "active" | "suspended";
1370
+ id: string;
1371
1371
  email: string;
1372
1372
  createdAt: string;
1373
1373
  updatedAt: string;
1374
1374
  avatarUrl?: string | undefined;
1375
1375
  displayName?: string | undefined;
1376
1376
  }, {
1377
- id: string;
1378
1377
  status: "active" | "suspended";
1378
+ id: string;
1379
1379
  email: string;
1380
1380
  createdAt: string;
1381
1381
  updatedAt: string;
@@ -1385,8 +1385,8 @@ export declare const UpdateAuthMemberGroupsResponseSchema: z.ZodObject<{
1385
1385
  groupIds: z.ZodArray<z.ZodString, "many">;
1386
1386
  }, "strip", z.ZodTypeAny, {
1387
1387
  user: {
1388
- id: string;
1389
1388
  status: "active" | "suspended";
1389
+ id: string;
1390
1390
  email: string;
1391
1391
  createdAt: string;
1392
1392
  updatedAt: string;
@@ -1396,8 +1396,8 @@ export declare const UpdateAuthMemberGroupsResponseSchema: z.ZodObject<{
1396
1396
  groupIds: string[];
1397
1397
  }, {
1398
1398
  user: {
1399
- id: string;
1400
1399
  status: "active" | "suspended";
1400
+ id: string;
1401
1401
  email: string;
1402
1402
  createdAt: string;
1403
1403
  updatedAt: string;
@@ -1409,8 +1409,8 @@ export declare const UpdateAuthMemberGroupsResponseSchema: z.ZodObject<{
1409
1409
  }, "strip", z.ZodTypeAny, {
1410
1410
  member: {
1411
1411
  user: {
1412
- id: string;
1413
1412
  status: "active" | "suspended";
1413
+ id: string;
1414
1414
  email: string;
1415
1415
  createdAt: string;
1416
1416
  updatedAt: string;
@@ -1422,8 +1422,8 @@ export declare const UpdateAuthMemberGroupsResponseSchema: z.ZodObject<{
1422
1422
  }, {
1423
1423
  member: {
1424
1424
  user: {
1425
- id: string;
1426
1425
  status: "active" | "suspended";
1426
+ id: string;
1427
1427
  email: string;
1428
1428
  createdAt: string;
1429
1429
  updatedAt: string;
@@ -1444,16 +1444,16 @@ export declare const SuspendAuthMemberResponseSchema: z.ZodObject<{
1444
1444
  createdAt: z.ZodString;
1445
1445
  updatedAt: z.ZodString;
1446
1446
  }, "strip", z.ZodTypeAny, {
1447
- id: string;
1448
1447
  status: "active" | "suspended";
1448
+ id: string;
1449
1449
  email: string;
1450
1450
  createdAt: string;
1451
1451
  updatedAt: string;
1452
1452
  avatarUrl?: string | undefined;
1453
1453
  displayName?: string | undefined;
1454
1454
  }, {
1455
- id: string;
1456
1455
  status: "active" | "suspended";
1456
+ id: string;
1457
1457
  email: string;
1458
1458
  createdAt: string;
1459
1459
  updatedAt: string;
@@ -1463,8 +1463,8 @@ export declare const SuspendAuthMemberResponseSchema: z.ZodObject<{
1463
1463
  groupIds: z.ZodArray<z.ZodString, "many">;
1464
1464
  }, "strip", z.ZodTypeAny, {
1465
1465
  user: {
1466
- id: string;
1467
1466
  status: "active" | "suspended";
1467
+ id: string;
1468
1468
  email: string;
1469
1469
  createdAt: string;
1470
1470
  updatedAt: string;
@@ -1474,8 +1474,8 @@ export declare const SuspendAuthMemberResponseSchema: z.ZodObject<{
1474
1474
  groupIds: string[];
1475
1475
  }, {
1476
1476
  user: {
1477
- id: string;
1478
1477
  status: "active" | "suspended";
1478
+ id: string;
1479
1479
  email: string;
1480
1480
  createdAt: string;
1481
1481
  updatedAt: string;
@@ -1487,8 +1487,8 @@ export declare const SuspendAuthMemberResponseSchema: z.ZodObject<{
1487
1487
  }, "strip", z.ZodTypeAny, {
1488
1488
  member: {
1489
1489
  user: {
1490
- id: string;
1491
1490
  status: "active" | "suspended";
1491
+ id: string;
1492
1492
  email: string;
1493
1493
  createdAt: string;
1494
1494
  updatedAt: string;
@@ -1500,8 +1500,8 @@ export declare const SuspendAuthMemberResponseSchema: z.ZodObject<{
1500
1500
  }, {
1501
1501
  member: {
1502
1502
  user: {
1503
- id: string;
1504
1503
  status: "active" | "suspended";
1504
+ id: string;
1505
1505
  email: string;
1506
1506
  createdAt: string;
1507
1507
  updatedAt: string;
@@ -1522,16 +1522,16 @@ export declare const ReactivateAuthMemberResponseSchema: z.ZodObject<{
1522
1522
  createdAt: z.ZodString;
1523
1523
  updatedAt: z.ZodString;
1524
1524
  }, "strip", z.ZodTypeAny, {
1525
- id: string;
1526
1525
  status: "active" | "suspended";
1526
+ id: string;
1527
1527
  email: string;
1528
1528
  createdAt: string;
1529
1529
  updatedAt: string;
1530
1530
  avatarUrl?: string | undefined;
1531
1531
  displayName?: string | undefined;
1532
1532
  }, {
1533
- id: string;
1534
1533
  status: "active" | "suspended";
1534
+ id: string;
1535
1535
  email: string;
1536
1536
  createdAt: string;
1537
1537
  updatedAt: string;
@@ -1541,8 +1541,8 @@ export declare const ReactivateAuthMemberResponseSchema: z.ZodObject<{
1541
1541
  groupIds: z.ZodArray<z.ZodString, "many">;
1542
1542
  }, "strip", z.ZodTypeAny, {
1543
1543
  user: {
1544
- id: string;
1545
1544
  status: "active" | "suspended";
1545
+ id: string;
1546
1546
  email: string;
1547
1547
  createdAt: string;
1548
1548
  updatedAt: string;
@@ -1552,8 +1552,8 @@ export declare const ReactivateAuthMemberResponseSchema: z.ZodObject<{
1552
1552
  groupIds: string[];
1553
1553
  }, {
1554
1554
  user: {
1555
- id: string;
1556
1555
  status: "active" | "suspended";
1556
+ id: string;
1557
1557
  email: string;
1558
1558
  createdAt: string;
1559
1559
  updatedAt: string;
@@ -1565,8 +1565,8 @@ export declare const ReactivateAuthMemberResponseSchema: z.ZodObject<{
1565
1565
  }, "strip", z.ZodTypeAny, {
1566
1566
  member: {
1567
1567
  user: {
1568
- id: string;
1569
1568
  status: "active" | "suspended";
1569
+ id: string;
1570
1570
  email: string;
1571
1571
  createdAt: string;
1572
1572
  updatedAt: string;
@@ -1578,8 +1578,8 @@ export declare const ReactivateAuthMemberResponseSchema: z.ZodObject<{
1578
1578
  }, {
1579
1579
  member: {
1580
1580
  user: {
1581
- id: string;
1582
1581
  status: "active" | "suspended";
1582
+ id: string;
1583
1583
  email: string;
1584
1584
  createdAt: string;
1585
1585
  updatedAt: string;
@@ -1620,8 +1620,8 @@ export declare const CreateAuthInvitationResponseSchema: z.ZodObject<{
1620
1620
  acceptedAt: z.ZodOptional<z.ZodString>;
1621
1621
  revokedAt: z.ZodOptional<z.ZodString>;
1622
1622
  }, "strip", z.ZodTypeAny, {
1623
- id: string;
1624
1623
  status: "pending" | "accepted" | "revoked";
1624
+ id: string;
1625
1625
  email: string;
1626
1626
  expiresAt: string;
1627
1627
  groupIds: string[];
@@ -1630,8 +1630,8 @@ export declare const CreateAuthInvitationResponseSchema: z.ZodObject<{
1630
1630
  acceptedAt?: string | undefined;
1631
1631
  revokedAt?: string | undefined;
1632
1632
  }, {
1633
- id: string;
1634
1633
  status: "pending" | "accepted" | "revoked";
1634
+ id: string;
1635
1635
  email: string;
1636
1636
  expiresAt: string;
1637
1637
  groupIds: string[];
@@ -1649,8 +1649,8 @@ export declare const CreateAuthInvitationResponseSchema: z.ZodObject<{
1649
1649
  }>;
1650
1650
  }, "strip", z.ZodTypeAny, {
1651
1651
  invitation: {
1652
- id: string;
1653
1652
  status: "pending" | "accepted" | "revoked";
1653
+ id: string;
1654
1654
  email: string;
1655
1655
  expiresAt: string;
1656
1656
  groupIds: string[];
@@ -1664,8 +1664,8 @@ export declare const CreateAuthInvitationResponseSchema: z.ZodObject<{
1664
1664
  };
1665
1665
  }, {
1666
1666
  invitation: {
1667
- id: string;
1668
1667
  status: "pending" | "accepted" | "revoked";
1668
+ id: string;
1669
1669
  email: string;
1670
1670
  expiresAt: string;
1671
1671
  groupIds: string[];
@@ -1709,8 +1709,8 @@ export declare const ListAuthInvitationsResponseSchema: z.ZodObject<{
1709
1709
  acceptedAt: z.ZodOptional<z.ZodString>;
1710
1710
  revokedAt: z.ZodOptional<z.ZodString>;
1711
1711
  }, "strip", z.ZodTypeAny, {
1712
- id: string;
1713
1712
  status: "pending" | "accepted" | "revoked";
1713
+ id: string;
1714
1714
  email: string;
1715
1715
  expiresAt: string;
1716
1716
  groupIds: string[];
@@ -1719,8 +1719,8 @@ export declare const ListAuthInvitationsResponseSchema: z.ZodObject<{
1719
1719
  acceptedAt?: string | undefined;
1720
1720
  revokedAt?: string | undefined;
1721
1721
  }, {
1722
- id: string;
1723
1722
  status: "pending" | "accepted" | "revoked";
1723
+ id: string;
1724
1724
  email: string;
1725
1725
  expiresAt: string;
1726
1726
  groupIds: string[];
@@ -1735,8 +1735,8 @@ export declare const ListAuthInvitationsResponseSchema: z.ZodObject<{
1735
1735
  hasMore: boolean;
1736
1736
  total: number;
1737
1737
  invitations: {
1738
- id: string;
1739
1738
  status: "pending" | "accepted" | "revoked";
1739
+ id: string;
1740
1740
  email: string;
1741
1741
  expiresAt: string;
1742
1742
  groupIds: string[];
@@ -1749,8 +1749,8 @@ export declare const ListAuthInvitationsResponseSchema: z.ZodObject<{
1749
1749
  hasMore: boolean;
1750
1750
  total: number;
1751
1751
  invitations: {
1752
- id: string;
1753
1752
  status: "pending" | "accepted" | "revoked";
1753
+ id: string;
1754
1754
  email: string;
1755
1755
  expiresAt: string;
1756
1756
  groupIds: string[];
@@ -1779,8 +1779,8 @@ export declare const RevokeAuthInvitationResponseSchema: z.ZodObject<{
1779
1779
  acceptedAt: z.ZodOptional<z.ZodString>;
1780
1780
  revokedAt: z.ZodOptional<z.ZodString>;
1781
1781
  }, "strip", z.ZodTypeAny, {
1782
- id: string;
1783
1782
  status: "pending" | "accepted" | "revoked";
1783
+ id: string;
1784
1784
  email: string;
1785
1785
  expiresAt: string;
1786
1786
  groupIds: string[];
@@ -1789,8 +1789,8 @@ export declare const RevokeAuthInvitationResponseSchema: z.ZodObject<{
1789
1789
  acceptedAt?: string | undefined;
1790
1790
  revokedAt?: string | undefined;
1791
1791
  }, {
1792
- id: string;
1793
1792
  status: "pending" | "accepted" | "revoked";
1793
+ id: string;
1794
1794
  email: string;
1795
1795
  expiresAt: string;
1796
1796
  groupIds: string[];
@@ -1801,8 +1801,8 @@ export declare const RevokeAuthInvitationResponseSchema: z.ZodObject<{
1801
1801
  }>;
1802
1802
  }, "strip", z.ZodTypeAny, {
1803
1803
  invitation: {
1804
- id: string;
1805
1804
  status: "pending" | "accepted" | "revoked";
1805
+ id: string;
1806
1806
  email: string;
1807
1807
  expiresAt: string;
1808
1808
  groupIds: string[];
@@ -1813,8 +1813,8 @@ export declare const RevokeAuthInvitationResponseSchema: z.ZodObject<{
1813
1813
  };
1814
1814
  }, {
1815
1815
  invitation: {
1816
- id: string;
1817
1816
  status: "pending" | "accepted" | "revoked";
1817
+ id: string;
1818
1818
  email: string;
1819
1819
  expiresAt: string;
1820
1820
  groupIds: string[];