@sixb/server 0.0.1

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 (216) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +123 -0
  3. package/dist/auth/access-token-boundary.d.ts +23 -0
  4. package/dist/auth/access-token-boundary.d.ts.map +1 -0
  5. package/dist/auth/application-access.d.ts +4 -0
  6. package/dist/auth/application-access.d.ts.map +1 -0
  7. package/dist/auth/browser-origin.d.ts +62 -0
  8. package/dist/auth/browser-origin.d.ts.map +1 -0
  9. package/dist/auth/csrf.d.ts +2 -0
  10. package/dist/auth/csrf.d.ts.map +1 -0
  11. package/dist/auth/guard.d.ts +35 -0
  12. package/dist/auth/guard.d.ts.map +1 -0
  13. package/dist/auth/public-routes.d.ts +8 -0
  14. package/dist/auth/public-routes.d.ts.map +1 -0
  15. package/dist/auth/responses.d.ts +11 -0
  16. package/dist/auth/responses.d.ts.map +1 -0
  17. package/dist/auth/return-to.d.ts +3 -0
  18. package/dist/auth/return-to.d.ts.map +1 -0
  19. package/dist/auth/scope.d.ts +43 -0
  20. package/dist/auth/scope.d.ts.map +1 -0
  21. package/dist/auth/session-activity.d.ts +4 -0
  22. package/dist/auth/session-activity.d.ts.map +1 -0
  23. package/dist/auth/session-cookies.d.ts +12 -0
  24. package/dist/auth/session-cookies.d.ts.map +1 -0
  25. package/dist/files/content.d.ts +141 -0
  26. package/dist/files/content.d.ts.map +1 -0
  27. package/dist/index.d.ts +3 -0
  28. package/dist/index.d.ts.map +1 -0
  29. package/dist/index.js +11522 -0
  30. package/dist/index.js.map +78 -0
  31. package/dist/openapi/security.d.ts +26 -0
  32. package/dist/openapi/security.d.ts.map +1 -0
  33. package/dist/openapi/tags.d.ts +151 -0
  34. package/dist/openapi/tags.d.ts.map +1 -0
  35. package/dist/registerRoutes.d.ts +31 -0
  36. package/dist/registerRoutes.d.ts.map +1 -0
  37. package/dist/routes/action-runs.d.ts +244 -0
  38. package/dist/routes/action-runs.d.ts.map +1 -0
  39. package/dist/routes/actions.d.ts +183 -0
  40. package/dist/routes/actions.d.ts.map +1 -0
  41. package/dist/routes/agent-api-gateway.d.ts +4 -0
  42. package/dist/routes/agent-api-gateway.d.ts.map +1 -0
  43. package/dist/routes/agents.d.ts +1061 -0
  44. package/dist/routes/agents.d.ts.map +1 -0
  45. package/dist/routes/auth.d.ts +1366 -0
  46. package/dist/routes/auth.d.ts.map +1 -0
  47. package/dist/routes/connectors.d.ts +108 -0
  48. package/dist/routes/connectors.d.ts.map +1 -0
  49. package/dist/routes/datasets.d.ts +339 -0
  50. package/dist/routes/datasets.d.ts.map +1 -0
  51. package/dist/routes/events.d.ts +116 -0
  52. package/dist/routes/events.d.ts.map +1 -0
  53. package/dist/routes/files.d.ts +340 -0
  54. package/dist/routes/files.d.ts.map +1 -0
  55. package/dist/routes/links.d.ts +175 -0
  56. package/dist/routes/links.d.ts.map +1 -0
  57. package/dist/routes/logs.d.ts +88 -0
  58. package/dist/routes/logs.d.ts.map +1 -0
  59. package/dist/routes/objects.d.ts +450 -0
  60. package/dist/routes/objects.d.ts.map +1 -0
  61. package/dist/routes/ontology.d.ts +240 -0
  62. package/dist/routes/ontology.d.ts.map +1 -0
  63. package/dist/routes/pipelines.d.ts +399 -0
  64. package/dist/routes/pipelines.d.ts.map +1 -0
  65. package/dist/routes/project.d.ts +56 -0
  66. package/dist/routes/project.d.ts.map +1 -0
  67. package/dist/routes/projections.d.ts +916 -0
  68. package/dist/routes/projections.d.ts.map +1 -0
  69. package/dist/routes/rules.d.ts +165 -0
  70. package/dist/routes/rules.d.ts.map +1 -0
  71. package/dist/routes/status.d.ts +81 -0
  72. package/dist/routes/status.d.ts.map +1 -0
  73. package/dist/routes/syncs.d.ts +294 -0
  74. package/dist/routes/syncs.d.ts.map +1 -0
  75. package/dist/routes/telemetry.d.ts +241 -0
  76. package/dist/routes/telemetry.d.ts.map +1 -0
  77. package/dist/routes/webhook-runs.d.ts +89 -0
  78. package/dist/routes/webhook-runs.d.ts.map +1 -0
  79. package/dist/routes/webhooks.d.ts +60 -0
  80. package/dist/routes/webhooks.d.ts.map +1 -0
  81. package/dist/routes/workflows.d.ts +973 -0
  82. package/dist/routes/workflows.d.ts.map +1 -0
  83. package/dist/routes/ws/agents.d.ts +99 -0
  84. package/dist/routes/ws/agents.d.ts.map +1 -0
  85. package/dist/routes/ws/events.d.ts +89 -0
  86. package/dist/routes/ws/events.d.ts.map +1 -0
  87. package/dist/routes/ws/index.d.ts +31 -0
  88. package/dist/routes/ws/index.d.ts.map +1 -0
  89. package/dist/routes/ws/log-subscription-hub.d.ts +47 -0
  90. package/dist/routes/ws/log-subscription-hub.d.ts.map +1 -0
  91. package/dist/routes/ws/logs.d.ts +110 -0
  92. package/dist/routes/ws/logs.d.ts.map +1 -0
  93. package/dist/schemas/actions.d.ts +644 -0
  94. package/dist/schemas/actions.d.ts.map +1 -0
  95. package/dist/schemas/agents.d.ts +3157 -0
  96. package/dist/schemas/agents.d.ts.map +1 -0
  97. package/dist/schemas/auth.d.ts +2023 -0
  98. package/dist/schemas/auth.d.ts.map +1 -0
  99. package/dist/schemas/common.d.ts +30 -0
  100. package/dist/schemas/common.d.ts.map +1 -0
  101. package/dist/schemas/connectors.d.ts +82 -0
  102. package/dist/schemas/connectors.d.ts.map +1 -0
  103. package/dist/schemas/datasets.d.ts +744 -0
  104. package/dist/schemas/datasets.d.ts.map +1 -0
  105. package/dist/schemas/event-payloads.d.ts +477 -0
  106. package/dist/schemas/event-payloads.d.ts.map +1 -0
  107. package/dist/schemas/events.d.ts +665 -0
  108. package/dist/schemas/events.d.ts.map +1 -0
  109. package/dist/schemas/files.d.ts +241 -0
  110. package/dist/schemas/files.d.ts.map +1 -0
  111. package/dist/schemas/links.d.ts +90 -0
  112. package/dist/schemas/links.d.ts.map +1 -0
  113. package/dist/schemas/logs.d.ts +231 -0
  114. package/dist/schemas/logs.d.ts.map +1 -0
  115. package/dist/schemas/objects.d.ts +288 -0
  116. package/dist/schemas/objects.d.ts.map +1 -0
  117. package/dist/schemas/ontology.d.ts +778 -0
  118. package/dist/schemas/ontology.d.ts.map +1 -0
  119. package/dist/schemas/pipelines.d.ts +1373 -0
  120. package/dist/schemas/pipelines.d.ts.map +1 -0
  121. package/dist/schemas/project.d.ts +9 -0
  122. package/dist/schemas/project.d.ts.map +1 -0
  123. package/dist/schemas/projections.d.ts +6992 -0
  124. package/dist/schemas/projections.d.ts.map +1 -0
  125. package/dist/schemas/rules.d.ts +204 -0
  126. package/dist/schemas/rules.d.ts.map +1 -0
  127. package/dist/schemas/status.d.ts +189 -0
  128. package/dist/schemas/status.d.ts.map +1 -0
  129. package/dist/schemas/syncs.d.ts +538 -0
  130. package/dist/schemas/syncs.d.ts.map +1 -0
  131. package/dist/schemas/telemetry.d.ts +265 -0
  132. package/dist/schemas/telemetry.d.ts.map +1 -0
  133. package/dist/schemas/webhook-runs.d.ts +169 -0
  134. package/dist/schemas/webhook-runs.d.ts.map +1 -0
  135. package/dist/schemas/workflows.d.ts +1720 -0
  136. package/dist/schemas/workflows.d.ts.map +1 -0
  137. package/dist/server.d.ts +64 -0
  138. package/dist/server.d.ts.map +1 -0
  139. package/dist/tsconfig.json +5 -0
  140. package/dist/utils/http.d.ts +23 -0
  141. package/dist/utils/http.d.ts.map +1 -0
  142. package/dist/utils/request-body.d.ts +15 -0
  143. package/dist/utils/request-body.d.ts.map +1 -0
  144. package/dist/utils/ws.d.ts +10 -0
  145. package/dist/utils/ws.d.ts.map +1 -0
  146. package/package.json +68 -0
  147. package/src/auth/access-token-boundary.ts +68 -0
  148. package/src/auth/application-access.ts +16 -0
  149. package/src/auth/browser-origin.ts +367 -0
  150. package/src/auth/csrf.ts +1 -0
  151. package/src/auth/guard.ts +169 -0
  152. package/src/auth/public-routes.ts +87 -0
  153. package/src/auth/responses.ts +54 -0
  154. package/src/auth/return-to.ts +21 -0
  155. package/src/auth/scope.ts +64 -0
  156. package/src/auth/session-activity.ts +19 -0
  157. package/src/auth/session-cookies.ts +43 -0
  158. package/src/files/content.ts +419 -0
  159. package/src/index.ts +2 -0
  160. package/src/openapi/security.ts +37 -0
  161. package/src/openapi/tags.ts +151 -0
  162. package/src/registerRoutes.ts +49 -0
  163. package/src/routes/action-runs.ts +238 -0
  164. package/src/routes/actions.ts +126 -0
  165. package/src/routes/agent-api-gateway.ts +260 -0
  166. package/src/routes/agents.ts +943 -0
  167. package/src/routes/auth.ts +2233 -0
  168. package/src/routes/connectors.ts +69 -0
  169. package/src/routes/datasets.ts +402 -0
  170. package/src/routes/events.ts +55 -0
  171. package/src/routes/files.ts +675 -0
  172. package/src/routes/links.ts +143 -0
  173. package/src/routes/logs.ts +65 -0
  174. package/src/routes/objects.ts +838 -0
  175. package/src/routes/ontology.ts +138 -0
  176. package/src/routes/pipelines.ts +332 -0
  177. package/src/routes/project.ts +16 -0
  178. package/src/routes/projections.ts +251 -0
  179. package/src/routes/rules.ts +124 -0
  180. package/src/routes/status.ts +53 -0
  181. package/src/routes/syncs.ts +243 -0
  182. package/src/routes/telemetry.ts +207 -0
  183. package/src/routes/webhook-runs.ts +81 -0
  184. package/src/routes/webhooks.ts +508 -0
  185. package/src/routes/workflows.ts +1333 -0
  186. package/src/routes/ws/agents.ts +301 -0
  187. package/src/routes/ws/events.ts +278 -0
  188. package/src/routes/ws/index.ts +12 -0
  189. package/src/routes/ws/log-subscription-hub.ts +375 -0
  190. package/src/routes/ws/logs.ts +117 -0
  191. package/src/schemas/actions.ts +123 -0
  192. package/src/schemas/agents.ts +293 -0
  193. package/src/schemas/auth.ts +317 -0
  194. package/src/schemas/common.ts +60 -0
  195. package/src/schemas/connectors.ts +21 -0
  196. package/src/schemas/datasets.ts +107 -0
  197. package/src/schemas/event-payloads.ts +79 -0
  198. package/src/schemas/events.ts +117 -0
  199. package/src/schemas/files.ts +82 -0
  200. package/src/schemas/links.ts +38 -0
  201. package/src/schemas/logs.ts +76 -0
  202. package/src/schemas/objects.ts +759 -0
  203. package/src/schemas/ontology.ts +77 -0
  204. package/src/schemas/pipelines.ts +150 -0
  205. package/src/schemas/project.ts +5 -0
  206. package/src/schemas/projections.ts +144 -0
  207. package/src/schemas/rules.ts +98 -0
  208. package/src/schemas/status.ts +51 -0
  209. package/src/schemas/syncs.ts +83 -0
  210. package/src/schemas/telemetry.ts +59 -0
  211. package/src/schemas/webhook-runs.ts +40 -0
  212. package/src/schemas/workflows.ts +229 -0
  213. package/src/server.ts +383 -0
  214. package/src/utils/http.ts +108 -0
  215. package/src/utils/request-body.ts +62 -0
  216. package/src/utils/ws.ts +59 -0
@@ -0,0 +1,2023 @@
1
+ import { z } from "zod";
2
+ export declare const AuthInvitationStatusSchema: z.ZodEnum<["pending", "accepted", "revoked"]>;
3
+ export declare const AuthGroupOptionSchema: z.ZodObject<{
4
+ id: z.ZodString;
5
+ label: z.ZodOptional<z.ZodString>;
6
+ description: z.ZodOptional<z.ZodString>;
7
+ }, "strip", z.ZodTypeAny, {
8
+ id: string;
9
+ description?: string | undefined;
10
+ label?: string | undefined;
11
+ }, {
12
+ id: string;
13
+ description?: string | undefined;
14
+ label?: string | undefined;
15
+ }>;
16
+ export declare const AuthInvitationSchema: z.ZodObject<{
17
+ id: z.ZodString;
18
+ email: z.ZodString;
19
+ groupIds: z.ZodArray<z.ZodString, "many">;
20
+ status: z.ZodEnum<["pending", "accepted", "revoked"]>;
21
+ createdAt: z.ZodString;
22
+ updatedAt: z.ZodString;
23
+ expiresAt: z.ZodString;
24
+ acceptedAt: z.ZodOptional<z.ZodString>;
25
+ revokedAt: z.ZodOptional<z.ZodString>;
26
+ }, "strip", z.ZodTypeAny, {
27
+ status: "pending" | "accepted" | "revoked";
28
+ id: string;
29
+ email: string;
30
+ expiresAt: string;
31
+ groupIds: string[];
32
+ createdAt: string;
33
+ updatedAt: string;
34
+ acceptedAt?: string | undefined;
35
+ revokedAt?: string | undefined;
36
+ }, {
37
+ status: "pending" | "accepted" | "revoked";
38
+ id: string;
39
+ email: string;
40
+ expiresAt: string;
41
+ groupIds: string[];
42
+ createdAt: string;
43
+ updatedAt: string;
44
+ acceptedAt?: string | undefined;
45
+ revokedAt?: string | undefined;
46
+ }>;
47
+ export declare const AuthInvitationDeliverySchema: z.ZodObject<{
48
+ status: z.ZodEnum<["sent", "skipped", "rate_limited", "not_supported"]>;
49
+ }, "strip", z.ZodTypeAny, {
50
+ status: "skipped" | "sent" | "rate_limited" | "not_supported";
51
+ }, {
52
+ status: "skipped" | "sent" | "rate_limited" | "not_supported";
53
+ }>;
54
+ export declare const AuthInvitationGroupOptionSchema: z.ZodObject<{
55
+ id: z.ZodString;
56
+ label: z.ZodOptional<z.ZodString>;
57
+ description: z.ZodOptional<z.ZodString>;
58
+ }, "strip", z.ZodTypeAny, {
59
+ id: string;
60
+ description?: string | undefined;
61
+ label?: string | undefined;
62
+ }, {
63
+ id: string;
64
+ description?: string | undefined;
65
+ label?: string | undefined;
66
+ }>;
67
+ export declare const AuthAccessTokenKindSchema: z.ZodEnum<["personal", "serviceAccount"]>;
68
+ export declare const AuthAccessTokenSubjectTypeSchema: z.ZodEnum<["user", "serviceAccount"]>;
69
+ export declare const AuthAccessTokenStatusSchema: z.ZodEnum<["active", "expired", "revoked"]>;
70
+ export declare const AuthServiceAccountStatusSchema: z.ZodEnum<["active", "suspended"]>;
71
+ export declare const AuthUserStatusSchema: z.ZodEnum<["active", "suspended"]>;
72
+ export declare const AuthAccessTokenSchema: z.ZodObject<{
73
+ id: z.ZodString;
74
+ name: z.ZodString;
75
+ kind: z.ZodEnum<["personal", "serviceAccount"]>;
76
+ status: z.ZodEnum<["active", "expired", "revoked"]>;
77
+ subjectType: z.ZodEnum<["user", "serviceAccount"]>;
78
+ subjectId: z.ZodString;
79
+ subjectLabel: z.ZodOptional<z.ZodString>;
80
+ groupIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
81
+ createdAt: z.ZodString;
82
+ expiresAt: z.ZodString;
83
+ revokedAt: z.ZodOptional<z.ZodString>;
84
+ lastUsedAt: z.ZodOptional<z.ZodString>;
85
+ lastUsedUserAgent: z.ZodOptional<z.ZodString>;
86
+ lastUsedIpAddress: z.ZodOptional<z.ZodString>;
87
+ }, "strip", z.ZodTypeAny, {
88
+ status: "expired" | "active" | "revoked";
89
+ kind: "serviceAccount" | "personal";
90
+ name: string;
91
+ id: string;
92
+ expiresAt: string;
93
+ createdAt: string;
94
+ subjectType: "serviceAccount" | "user";
95
+ subjectId: string;
96
+ groupIds?: string[] | undefined;
97
+ revokedAt?: string | undefined;
98
+ subjectLabel?: string | undefined;
99
+ lastUsedAt?: string | undefined;
100
+ lastUsedUserAgent?: string | undefined;
101
+ lastUsedIpAddress?: string | undefined;
102
+ }, {
103
+ status: "expired" | "active" | "revoked";
104
+ kind: "serviceAccount" | "personal";
105
+ name: string;
106
+ id: string;
107
+ expiresAt: string;
108
+ createdAt: string;
109
+ subjectType: "serviceAccount" | "user";
110
+ subjectId: string;
111
+ groupIds?: string[] | undefined;
112
+ revokedAt?: string | undefined;
113
+ subjectLabel?: string | undefined;
114
+ lastUsedAt?: string | undefined;
115
+ lastUsedUserAgent?: string | undefined;
116
+ lastUsedIpAddress?: string | undefined;
117
+ }>;
118
+ export declare const AuthServiceAccountSchema: z.ZodObject<{
119
+ id: z.ZodString;
120
+ name: z.ZodString;
121
+ description: z.ZodOptional<z.ZodString>;
122
+ status: z.ZodEnum<["active", "suspended"]>;
123
+ groupIds: z.ZodArray<z.ZodString, "many">;
124
+ createdAt: z.ZodString;
125
+ updatedAt: z.ZodString;
126
+ }, "strip", z.ZodTypeAny, {
127
+ status: "active" | "suspended";
128
+ name: string;
129
+ id: string;
130
+ groupIds: string[];
131
+ createdAt: string;
132
+ updatedAt: string;
133
+ description?: string | undefined;
134
+ }, {
135
+ status: "active" | "suspended";
136
+ name: string;
137
+ id: string;
138
+ groupIds: string[];
139
+ createdAt: string;
140
+ updatedAt: string;
141
+ description?: string | undefined;
142
+ }>;
143
+ export declare const AuthMemberUserSchema: z.ZodObject<{
144
+ id: z.ZodString;
145
+ email: z.ZodString;
146
+ displayName: z.ZodOptional<z.ZodString>;
147
+ avatarUrl: z.ZodOptional<z.ZodString>;
148
+ status: z.ZodEnum<["active", "suspended"]>;
149
+ createdAt: z.ZodString;
150
+ updatedAt: z.ZodString;
151
+ }, "strip", z.ZodTypeAny, {
152
+ status: "active" | "suspended";
153
+ id: string;
154
+ email: string;
155
+ createdAt: string;
156
+ updatedAt: string;
157
+ displayName?: string | undefined;
158
+ avatarUrl?: string | undefined;
159
+ }, {
160
+ status: "active" | "suspended";
161
+ id: string;
162
+ email: string;
163
+ createdAt: string;
164
+ updatedAt: string;
165
+ displayName?: string | undefined;
166
+ avatarUrl?: string | undefined;
167
+ }>;
168
+ export declare const AuthManagedMemberSchema: z.ZodObject<{
169
+ user: z.ZodObject<{
170
+ id: z.ZodString;
171
+ email: z.ZodString;
172
+ displayName: z.ZodOptional<z.ZodString>;
173
+ avatarUrl: z.ZodOptional<z.ZodString>;
174
+ status: z.ZodEnum<["active", "suspended"]>;
175
+ createdAt: z.ZodString;
176
+ updatedAt: z.ZodString;
177
+ }, "strip", z.ZodTypeAny, {
178
+ status: "active" | "suspended";
179
+ id: string;
180
+ email: string;
181
+ createdAt: string;
182
+ updatedAt: string;
183
+ displayName?: string | undefined;
184
+ avatarUrl?: string | undefined;
185
+ }, {
186
+ status: "active" | "suspended";
187
+ id: string;
188
+ email: string;
189
+ createdAt: string;
190
+ updatedAt: string;
191
+ displayName?: string | undefined;
192
+ avatarUrl?: string | undefined;
193
+ }>;
194
+ groupIds: z.ZodArray<z.ZodString, "many">;
195
+ }, "strip", z.ZodTypeAny, {
196
+ user: {
197
+ status: "active" | "suspended";
198
+ id: string;
199
+ email: string;
200
+ createdAt: string;
201
+ updatedAt: string;
202
+ displayName?: string | undefined;
203
+ avatarUrl?: string | undefined;
204
+ };
205
+ groupIds: string[];
206
+ }, {
207
+ user: {
208
+ status: "active" | "suspended";
209
+ id: string;
210
+ email: string;
211
+ createdAt: string;
212
+ updatedAt: string;
213
+ displayName?: string | undefined;
214
+ avatarUrl?: string | undefined;
215
+ };
216
+ groupIds: string[];
217
+ }>;
218
+ export declare const AuthMemberCapabilitiesSchema: z.ZodObject<{
219
+ assignGroups: z.ZodBoolean;
220
+ suspend: z.ZodBoolean;
221
+ reactivate: z.ZodBoolean;
222
+ }, "strip", z.ZodTypeAny, {
223
+ assignGroups: boolean;
224
+ suspend: boolean;
225
+ reactivate: boolean;
226
+ }, {
227
+ assignGroups: boolean;
228
+ suspend: boolean;
229
+ reactivate: boolean;
230
+ }>;
231
+ export declare const AuthMemberSchema: z.ZodObject<{
232
+ user: z.ZodObject<{
233
+ id: z.ZodString;
234
+ email: z.ZodString;
235
+ displayName: z.ZodOptional<z.ZodString>;
236
+ avatarUrl: z.ZodOptional<z.ZodString>;
237
+ status: z.ZodEnum<["active", "suspended"]>;
238
+ createdAt: z.ZodString;
239
+ updatedAt: z.ZodString;
240
+ }, "strip", z.ZodTypeAny, {
241
+ status: "active" | "suspended";
242
+ id: string;
243
+ email: string;
244
+ createdAt: string;
245
+ updatedAt: string;
246
+ displayName?: string | undefined;
247
+ avatarUrl?: string | undefined;
248
+ }, {
249
+ status: "active" | "suspended";
250
+ id: string;
251
+ email: string;
252
+ createdAt: string;
253
+ updatedAt: string;
254
+ displayName?: string | undefined;
255
+ avatarUrl?: string | undefined;
256
+ }>;
257
+ groupIds: z.ZodArray<z.ZodString, "many">;
258
+ } & {
259
+ capabilities: z.ZodObject<{
260
+ assignGroups: z.ZodBoolean;
261
+ suspend: z.ZodBoolean;
262
+ reactivate: z.ZodBoolean;
263
+ }, "strip", z.ZodTypeAny, {
264
+ assignGroups: boolean;
265
+ suspend: boolean;
266
+ reactivate: boolean;
267
+ }, {
268
+ assignGroups: boolean;
269
+ suspend: boolean;
270
+ reactivate: boolean;
271
+ }>;
272
+ }, "strip", z.ZodTypeAny, {
273
+ user: {
274
+ status: "active" | "suspended";
275
+ id: string;
276
+ email: string;
277
+ createdAt: string;
278
+ updatedAt: string;
279
+ displayName?: string | undefined;
280
+ avatarUrl?: string | undefined;
281
+ };
282
+ groupIds: string[];
283
+ capabilities: {
284
+ assignGroups: boolean;
285
+ suspend: boolean;
286
+ reactivate: boolean;
287
+ };
288
+ }, {
289
+ user: {
290
+ status: "active" | "suspended";
291
+ id: string;
292
+ email: string;
293
+ createdAt: string;
294
+ updatedAt: string;
295
+ displayName?: string | undefined;
296
+ avatarUrl?: string | undefined;
297
+ };
298
+ groupIds: string[];
299
+ capabilities: {
300
+ assignGroups: boolean;
301
+ suspend: boolean;
302
+ reactivate: boolean;
303
+ };
304
+ }>;
305
+ export declare const GetAuthAccessManagementOptionsResponseSchema: z.ZodObject<{
306
+ groups: z.ZodArray<z.ZodObject<{
307
+ id: z.ZodString;
308
+ label: z.ZodOptional<z.ZodString>;
309
+ description: z.ZodOptional<z.ZodString>;
310
+ }, "strip", z.ZodTypeAny, {
311
+ id: string;
312
+ description?: string | undefined;
313
+ label?: string | undefined;
314
+ }, {
315
+ id: string;
316
+ description?: string | undefined;
317
+ label?: string | undefined;
318
+ }>, "many">;
319
+ }, "strip", z.ZodTypeAny, {
320
+ groups: {
321
+ id: string;
322
+ description?: string | undefined;
323
+ label?: string | undefined;
324
+ }[];
325
+ }, {
326
+ groups: {
327
+ id: string;
328
+ description?: string | undefined;
329
+ label?: string | undefined;
330
+ }[];
331
+ }>;
332
+ export declare const ListAuthAccessTokensResponseSchema: z.ZodObject<{
333
+ accessTokens: z.ZodArray<z.ZodObject<{
334
+ id: z.ZodString;
335
+ name: z.ZodString;
336
+ kind: z.ZodEnum<["personal", "serviceAccount"]>;
337
+ status: z.ZodEnum<["active", "expired", "revoked"]>;
338
+ subjectType: z.ZodEnum<["user", "serviceAccount"]>;
339
+ subjectId: z.ZodString;
340
+ subjectLabel: z.ZodOptional<z.ZodString>;
341
+ groupIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
342
+ createdAt: z.ZodString;
343
+ expiresAt: z.ZodString;
344
+ revokedAt: z.ZodOptional<z.ZodString>;
345
+ lastUsedAt: z.ZodOptional<z.ZodString>;
346
+ lastUsedUserAgent: z.ZodOptional<z.ZodString>;
347
+ lastUsedIpAddress: z.ZodOptional<z.ZodString>;
348
+ }, "strip", z.ZodTypeAny, {
349
+ status: "expired" | "active" | "revoked";
350
+ kind: "serviceAccount" | "personal";
351
+ name: string;
352
+ id: string;
353
+ expiresAt: string;
354
+ createdAt: string;
355
+ subjectType: "serviceAccount" | "user";
356
+ subjectId: string;
357
+ groupIds?: string[] | undefined;
358
+ revokedAt?: string | undefined;
359
+ subjectLabel?: string | undefined;
360
+ lastUsedAt?: string | undefined;
361
+ lastUsedUserAgent?: string | undefined;
362
+ lastUsedIpAddress?: string | undefined;
363
+ }, {
364
+ status: "expired" | "active" | "revoked";
365
+ kind: "serviceAccount" | "personal";
366
+ name: string;
367
+ id: string;
368
+ expiresAt: string;
369
+ createdAt: string;
370
+ subjectType: "serviceAccount" | "user";
371
+ subjectId: string;
372
+ groupIds?: string[] | undefined;
373
+ revokedAt?: string | undefined;
374
+ subjectLabel?: string | undefined;
375
+ lastUsedAt?: string | undefined;
376
+ lastUsedUserAgent?: string | undefined;
377
+ lastUsedIpAddress?: string | undefined;
378
+ }>, "many">;
379
+ }, "strip", z.ZodTypeAny, {
380
+ accessTokens: {
381
+ status: "expired" | "active" | "revoked";
382
+ kind: "serviceAccount" | "personal";
383
+ name: string;
384
+ id: string;
385
+ expiresAt: string;
386
+ createdAt: string;
387
+ subjectType: "serviceAccount" | "user";
388
+ subjectId: string;
389
+ groupIds?: string[] | undefined;
390
+ revokedAt?: string | undefined;
391
+ subjectLabel?: string | undefined;
392
+ lastUsedAt?: string | undefined;
393
+ lastUsedUserAgent?: string | undefined;
394
+ lastUsedIpAddress?: string | undefined;
395
+ }[];
396
+ }, {
397
+ accessTokens: {
398
+ status: "expired" | "active" | "revoked";
399
+ kind: "serviceAccount" | "personal";
400
+ name: string;
401
+ id: string;
402
+ expiresAt: string;
403
+ createdAt: string;
404
+ subjectType: "serviceAccount" | "user";
405
+ subjectId: string;
406
+ groupIds?: string[] | undefined;
407
+ revokedAt?: string | undefined;
408
+ subjectLabel?: string | undefined;
409
+ lastUsedAt?: string | undefined;
410
+ lastUsedUserAgent?: string | undefined;
411
+ lastUsedIpAddress?: string | undefined;
412
+ }[];
413
+ }>;
414
+ export declare const CreateAuthPersonalAccessTokenBodySchema: z.ZodObject<{
415
+ name: z.ZodString;
416
+ expiresAt: z.ZodString;
417
+ groupIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
418
+ }, "strip", z.ZodTypeAny, {
419
+ name: string;
420
+ expiresAt: string;
421
+ groupIds?: string[] | undefined;
422
+ }, {
423
+ name: string;
424
+ expiresAt: string;
425
+ groupIds?: string[] | undefined;
426
+ }>;
427
+ export declare const CreateAuthPersonalAccessTokenResponseSchema: z.ZodObject<{
428
+ accessToken: z.ZodObject<{
429
+ id: z.ZodString;
430
+ name: z.ZodString;
431
+ kind: z.ZodEnum<["personal", "serviceAccount"]>;
432
+ status: z.ZodEnum<["active", "expired", "revoked"]>;
433
+ subjectType: z.ZodEnum<["user", "serviceAccount"]>;
434
+ subjectId: z.ZodString;
435
+ subjectLabel: z.ZodOptional<z.ZodString>;
436
+ groupIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
437
+ createdAt: z.ZodString;
438
+ expiresAt: z.ZodString;
439
+ revokedAt: z.ZodOptional<z.ZodString>;
440
+ lastUsedAt: z.ZodOptional<z.ZodString>;
441
+ lastUsedUserAgent: z.ZodOptional<z.ZodString>;
442
+ lastUsedIpAddress: z.ZodOptional<z.ZodString>;
443
+ }, "strip", z.ZodTypeAny, {
444
+ status: "expired" | "active" | "revoked";
445
+ kind: "serviceAccount" | "personal";
446
+ name: string;
447
+ id: string;
448
+ expiresAt: string;
449
+ createdAt: string;
450
+ subjectType: "serviceAccount" | "user";
451
+ subjectId: string;
452
+ groupIds?: string[] | undefined;
453
+ revokedAt?: string | undefined;
454
+ subjectLabel?: string | undefined;
455
+ lastUsedAt?: string | undefined;
456
+ lastUsedUserAgent?: string | undefined;
457
+ lastUsedIpAddress?: string | undefined;
458
+ }, {
459
+ status: "expired" | "active" | "revoked";
460
+ kind: "serviceAccount" | "personal";
461
+ name: string;
462
+ id: string;
463
+ expiresAt: string;
464
+ createdAt: string;
465
+ subjectType: "serviceAccount" | "user";
466
+ subjectId: string;
467
+ groupIds?: string[] | undefined;
468
+ revokedAt?: string | undefined;
469
+ subjectLabel?: string | undefined;
470
+ lastUsedAt?: string | undefined;
471
+ lastUsedUserAgent?: string | undefined;
472
+ lastUsedIpAddress?: string | undefined;
473
+ }>;
474
+ tokenValue: z.ZodString;
475
+ }, "strip", z.ZodTypeAny, {
476
+ accessToken: {
477
+ status: "expired" | "active" | "revoked";
478
+ kind: "serviceAccount" | "personal";
479
+ name: string;
480
+ id: string;
481
+ expiresAt: string;
482
+ createdAt: string;
483
+ subjectType: "serviceAccount" | "user";
484
+ subjectId: string;
485
+ groupIds?: string[] | undefined;
486
+ revokedAt?: string | undefined;
487
+ subjectLabel?: string | undefined;
488
+ lastUsedAt?: string | undefined;
489
+ lastUsedUserAgent?: string | undefined;
490
+ lastUsedIpAddress?: string | undefined;
491
+ };
492
+ tokenValue: string;
493
+ }, {
494
+ accessToken: {
495
+ status: "expired" | "active" | "revoked";
496
+ kind: "serviceAccount" | "personal";
497
+ name: string;
498
+ id: string;
499
+ expiresAt: string;
500
+ createdAt: string;
501
+ subjectType: "serviceAccount" | "user";
502
+ subjectId: string;
503
+ groupIds?: string[] | undefined;
504
+ revokedAt?: string | undefined;
505
+ subjectLabel?: string | undefined;
506
+ lastUsedAt?: string | undefined;
507
+ lastUsedUserAgent?: string | undefined;
508
+ lastUsedIpAddress?: string | undefined;
509
+ };
510
+ tokenValue: string;
511
+ }>;
512
+ export declare const RevokeAuthAccessTokenParamsSchema: z.ZodObject<{
513
+ tokenId: z.ZodString;
514
+ }, "strip", z.ZodTypeAny, {
515
+ tokenId: string;
516
+ }, {
517
+ tokenId: string;
518
+ }>;
519
+ export declare const RevokeAuthAccessTokenResponseSchema: z.ZodObject<{
520
+ accessToken: z.ZodObject<{
521
+ id: z.ZodString;
522
+ name: z.ZodString;
523
+ kind: z.ZodEnum<["personal", "serviceAccount"]>;
524
+ status: z.ZodEnum<["active", "expired", "revoked"]>;
525
+ subjectType: z.ZodEnum<["user", "serviceAccount"]>;
526
+ subjectId: z.ZodString;
527
+ subjectLabel: z.ZodOptional<z.ZodString>;
528
+ groupIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
529
+ createdAt: z.ZodString;
530
+ expiresAt: z.ZodString;
531
+ revokedAt: z.ZodOptional<z.ZodString>;
532
+ lastUsedAt: z.ZodOptional<z.ZodString>;
533
+ lastUsedUserAgent: z.ZodOptional<z.ZodString>;
534
+ lastUsedIpAddress: z.ZodOptional<z.ZodString>;
535
+ }, "strip", z.ZodTypeAny, {
536
+ status: "expired" | "active" | "revoked";
537
+ kind: "serviceAccount" | "personal";
538
+ name: string;
539
+ id: string;
540
+ expiresAt: string;
541
+ createdAt: string;
542
+ subjectType: "serviceAccount" | "user";
543
+ subjectId: string;
544
+ groupIds?: string[] | undefined;
545
+ revokedAt?: string | undefined;
546
+ subjectLabel?: string | undefined;
547
+ lastUsedAt?: string | undefined;
548
+ lastUsedUserAgent?: string | undefined;
549
+ lastUsedIpAddress?: string | undefined;
550
+ }, {
551
+ status: "expired" | "active" | "revoked";
552
+ kind: "serviceAccount" | "personal";
553
+ name: string;
554
+ id: string;
555
+ expiresAt: string;
556
+ createdAt: string;
557
+ subjectType: "serviceAccount" | "user";
558
+ subjectId: string;
559
+ groupIds?: string[] | undefined;
560
+ revokedAt?: string | undefined;
561
+ subjectLabel?: string | undefined;
562
+ lastUsedAt?: string | undefined;
563
+ lastUsedUserAgent?: string | undefined;
564
+ lastUsedIpAddress?: string | undefined;
565
+ }>;
566
+ }, "strip", z.ZodTypeAny, {
567
+ accessToken: {
568
+ status: "expired" | "active" | "revoked";
569
+ kind: "serviceAccount" | "personal";
570
+ name: string;
571
+ id: string;
572
+ expiresAt: string;
573
+ createdAt: string;
574
+ subjectType: "serviceAccount" | "user";
575
+ subjectId: string;
576
+ groupIds?: string[] | undefined;
577
+ revokedAt?: string | undefined;
578
+ subjectLabel?: string | undefined;
579
+ lastUsedAt?: string | undefined;
580
+ lastUsedUserAgent?: string | undefined;
581
+ lastUsedIpAddress?: string | undefined;
582
+ };
583
+ }, {
584
+ accessToken: {
585
+ status: "expired" | "active" | "revoked";
586
+ kind: "serviceAccount" | "personal";
587
+ name: string;
588
+ id: string;
589
+ expiresAt: string;
590
+ createdAt: string;
591
+ subjectType: "serviceAccount" | "user";
592
+ subjectId: string;
593
+ groupIds?: string[] | undefined;
594
+ revokedAt?: string | undefined;
595
+ subjectLabel?: string | undefined;
596
+ lastUsedAt?: string | undefined;
597
+ lastUsedUserAgent?: string | undefined;
598
+ lastUsedIpAddress?: string | undefined;
599
+ };
600
+ }>;
601
+ export declare const ListAuthServiceAccountsResponseSchema: z.ZodObject<{
602
+ serviceAccounts: z.ZodArray<z.ZodObject<{
603
+ id: z.ZodString;
604
+ name: z.ZodString;
605
+ description: z.ZodOptional<z.ZodString>;
606
+ status: z.ZodEnum<["active", "suspended"]>;
607
+ groupIds: z.ZodArray<z.ZodString, "many">;
608
+ createdAt: z.ZodString;
609
+ updatedAt: z.ZodString;
610
+ }, "strip", z.ZodTypeAny, {
611
+ status: "active" | "suspended";
612
+ name: string;
613
+ id: string;
614
+ groupIds: string[];
615
+ createdAt: string;
616
+ updatedAt: string;
617
+ description?: string | undefined;
618
+ }, {
619
+ status: "active" | "suspended";
620
+ name: string;
621
+ id: string;
622
+ groupIds: string[];
623
+ createdAt: string;
624
+ updatedAt: string;
625
+ description?: string | undefined;
626
+ }>, "many">;
627
+ }, "strip", z.ZodTypeAny, {
628
+ serviceAccounts: {
629
+ status: "active" | "suspended";
630
+ name: string;
631
+ id: string;
632
+ groupIds: string[];
633
+ createdAt: string;
634
+ updatedAt: string;
635
+ description?: string | undefined;
636
+ }[];
637
+ }, {
638
+ serviceAccounts: {
639
+ status: "active" | "suspended";
640
+ name: string;
641
+ id: string;
642
+ groupIds: string[];
643
+ createdAt: string;
644
+ updatedAt: string;
645
+ description?: string | undefined;
646
+ }[];
647
+ }>;
648
+ export declare const CreateAuthServiceAccountBodySchema: z.ZodObject<{
649
+ id: z.ZodOptional<z.ZodString>;
650
+ name: z.ZodString;
651
+ description: z.ZodOptional<z.ZodString>;
652
+ groupIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
653
+ }, "strip", z.ZodTypeAny, {
654
+ name: string;
655
+ description?: string | undefined;
656
+ id?: string | undefined;
657
+ groupIds?: string[] | undefined;
658
+ }, {
659
+ name: string;
660
+ description?: string | undefined;
661
+ id?: string | undefined;
662
+ groupIds?: string[] | undefined;
663
+ }>;
664
+ export declare const CreateAuthServiceAccountResponseSchema: z.ZodObject<{
665
+ serviceAccount: z.ZodObject<{
666
+ id: z.ZodString;
667
+ name: z.ZodString;
668
+ description: z.ZodOptional<z.ZodString>;
669
+ status: z.ZodEnum<["active", "suspended"]>;
670
+ groupIds: z.ZodArray<z.ZodString, "many">;
671
+ createdAt: z.ZodString;
672
+ updatedAt: z.ZodString;
673
+ }, "strip", z.ZodTypeAny, {
674
+ status: "active" | "suspended";
675
+ name: string;
676
+ id: string;
677
+ groupIds: string[];
678
+ createdAt: string;
679
+ updatedAt: string;
680
+ description?: string | undefined;
681
+ }, {
682
+ status: "active" | "suspended";
683
+ name: string;
684
+ id: string;
685
+ groupIds: string[];
686
+ createdAt: string;
687
+ updatedAt: string;
688
+ description?: string | undefined;
689
+ }>;
690
+ }, "strip", z.ZodTypeAny, {
691
+ serviceAccount: {
692
+ status: "active" | "suspended";
693
+ name: string;
694
+ id: string;
695
+ groupIds: string[];
696
+ createdAt: string;
697
+ updatedAt: string;
698
+ description?: string | undefined;
699
+ };
700
+ }, {
701
+ serviceAccount: {
702
+ status: "active" | "suspended";
703
+ name: string;
704
+ id: string;
705
+ groupIds: string[];
706
+ createdAt: string;
707
+ updatedAt: string;
708
+ description?: string | undefined;
709
+ };
710
+ }>;
711
+ export declare const AuthServiceAccountParamsSchema: z.ZodObject<{
712
+ serviceAccountId: z.ZodString;
713
+ }, "strip", z.ZodTypeAny, {
714
+ serviceAccountId: string;
715
+ }, {
716
+ serviceAccountId: string;
717
+ }>;
718
+ export declare const DisableAuthServiceAccountResponseSchema: z.ZodObject<{
719
+ serviceAccount: z.ZodObject<{
720
+ id: z.ZodString;
721
+ name: z.ZodString;
722
+ description: z.ZodOptional<z.ZodString>;
723
+ status: z.ZodEnum<["active", "suspended"]>;
724
+ groupIds: z.ZodArray<z.ZodString, "many">;
725
+ createdAt: z.ZodString;
726
+ updatedAt: z.ZodString;
727
+ }, "strip", z.ZodTypeAny, {
728
+ status: "active" | "suspended";
729
+ name: string;
730
+ id: string;
731
+ groupIds: string[];
732
+ createdAt: string;
733
+ updatedAt: string;
734
+ description?: string | undefined;
735
+ }, {
736
+ status: "active" | "suspended";
737
+ name: string;
738
+ id: string;
739
+ groupIds: string[];
740
+ createdAt: string;
741
+ updatedAt: string;
742
+ description?: string | undefined;
743
+ }>;
744
+ }, "strip", z.ZodTypeAny, {
745
+ serviceAccount: {
746
+ status: "active" | "suspended";
747
+ name: string;
748
+ id: string;
749
+ groupIds: string[];
750
+ createdAt: string;
751
+ updatedAt: string;
752
+ description?: string | undefined;
753
+ };
754
+ }, {
755
+ serviceAccount: {
756
+ status: "active" | "suspended";
757
+ name: string;
758
+ id: string;
759
+ groupIds: string[];
760
+ createdAt: string;
761
+ updatedAt: string;
762
+ description?: string | undefined;
763
+ };
764
+ }>;
765
+ export declare const ListAuthServiceAccountAccessTokensResponseSchema: z.ZodObject<{
766
+ accessTokens: z.ZodArray<z.ZodObject<{
767
+ id: z.ZodString;
768
+ name: z.ZodString;
769
+ kind: z.ZodEnum<["personal", "serviceAccount"]>;
770
+ status: z.ZodEnum<["active", "expired", "revoked"]>;
771
+ subjectType: z.ZodEnum<["user", "serviceAccount"]>;
772
+ subjectId: z.ZodString;
773
+ subjectLabel: z.ZodOptional<z.ZodString>;
774
+ groupIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
775
+ createdAt: z.ZodString;
776
+ expiresAt: z.ZodString;
777
+ revokedAt: z.ZodOptional<z.ZodString>;
778
+ lastUsedAt: z.ZodOptional<z.ZodString>;
779
+ lastUsedUserAgent: z.ZodOptional<z.ZodString>;
780
+ lastUsedIpAddress: z.ZodOptional<z.ZodString>;
781
+ }, "strip", z.ZodTypeAny, {
782
+ status: "expired" | "active" | "revoked";
783
+ kind: "serviceAccount" | "personal";
784
+ name: string;
785
+ id: string;
786
+ expiresAt: string;
787
+ createdAt: string;
788
+ subjectType: "serviceAccount" | "user";
789
+ subjectId: string;
790
+ groupIds?: string[] | undefined;
791
+ revokedAt?: string | undefined;
792
+ subjectLabel?: string | undefined;
793
+ lastUsedAt?: string | undefined;
794
+ lastUsedUserAgent?: string | undefined;
795
+ lastUsedIpAddress?: string | undefined;
796
+ }, {
797
+ status: "expired" | "active" | "revoked";
798
+ kind: "serviceAccount" | "personal";
799
+ name: string;
800
+ id: string;
801
+ expiresAt: string;
802
+ createdAt: string;
803
+ subjectType: "serviceAccount" | "user";
804
+ subjectId: string;
805
+ groupIds?: string[] | undefined;
806
+ revokedAt?: string | undefined;
807
+ subjectLabel?: string | undefined;
808
+ lastUsedAt?: string | undefined;
809
+ lastUsedUserAgent?: string | undefined;
810
+ lastUsedIpAddress?: string | undefined;
811
+ }>, "many">;
812
+ }, "strip", z.ZodTypeAny, {
813
+ accessTokens: {
814
+ status: "expired" | "active" | "revoked";
815
+ kind: "serviceAccount" | "personal";
816
+ name: string;
817
+ id: string;
818
+ expiresAt: string;
819
+ createdAt: string;
820
+ subjectType: "serviceAccount" | "user";
821
+ subjectId: string;
822
+ groupIds?: string[] | undefined;
823
+ revokedAt?: string | undefined;
824
+ subjectLabel?: string | undefined;
825
+ lastUsedAt?: string | undefined;
826
+ lastUsedUserAgent?: string | undefined;
827
+ lastUsedIpAddress?: string | undefined;
828
+ }[];
829
+ }, {
830
+ accessTokens: {
831
+ status: "expired" | "active" | "revoked";
832
+ kind: "serviceAccount" | "personal";
833
+ name: string;
834
+ id: string;
835
+ expiresAt: string;
836
+ createdAt: string;
837
+ subjectType: "serviceAccount" | "user";
838
+ subjectId: string;
839
+ groupIds?: string[] | undefined;
840
+ revokedAt?: string | undefined;
841
+ subjectLabel?: string | undefined;
842
+ lastUsedAt?: string | undefined;
843
+ lastUsedUserAgent?: string | undefined;
844
+ lastUsedIpAddress?: string | undefined;
845
+ }[];
846
+ }>;
847
+ export declare const CreateAuthServiceAccountAccessTokenBodySchema: z.ZodObject<{
848
+ name: z.ZodString;
849
+ expiresAt: z.ZodString;
850
+ groupIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
851
+ }, "strip", z.ZodTypeAny, {
852
+ name: string;
853
+ expiresAt: string;
854
+ groupIds?: string[] | undefined;
855
+ }, {
856
+ name: string;
857
+ expiresAt: string;
858
+ groupIds?: string[] | undefined;
859
+ }>;
860
+ export declare const CreateAuthServiceAccountAccessTokenResponseSchema: z.ZodObject<{
861
+ accessToken: z.ZodObject<{
862
+ id: z.ZodString;
863
+ name: z.ZodString;
864
+ kind: z.ZodEnum<["personal", "serviceAccount"]>;
865
+ status: z.ZodEnum<["active", "expired", "revoked"]>;
866
+ subjectType: z.ZodEnum<["user", "serviceAccount"]>;
867
+ subjectId: z.ZodString;
868
+ subjectLabel: z.ZodOptional<z.ZodString>;
869
+ groupIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
870
+ createdAt: z.ZodString;
871
+ expiresAt: z.ZodString;
872
+ revokedAt: z.ZodOptional<z.ZodString>;
873
+ lastUsedAt: z.ZodOptional<z.ZodString>;
874
+ lastUsedUserAgent: z.ZodOptional<z.ZodString>;
875
+ lastUsedIpAddress: z.ZodOptional<z.ZodString>;
876
+ }, "strip", z.ZodTypeAny, {
877
+ status: "expired" | "active" | "revoked";
878
+ kind: "serviceAccount" | "personal";
879
+ name: string;
880
+ id: string;
881
+ expiresAt: string;
882
+ createdAt: string;
883
+ subjectType: "serviceAccount" | "user";
884
+ subjectId: string;
885
+ groupIds?: string[] | undefined;
886
+ revokedAt?: string | undefined;
887
+ subjectLabel?: string | undefined;
888
+ lastUsedAt?: string | undefined;
889
+ lastUsedUserAgent?: string | undefined;
890
+ lastUsedIpAddress?: string | undefined;
891
+ }, {
892
+ status: "expired" | "active" | "revoked";
893
+ kind: "serviceAccount" | "personal";
894
+ name: string;
895
+ id: string;
896
+ expiresAt: string;
897
+ createdAt: string;
898
+ subjectType: "serviceAccount" | "user";
899
+ subjectId: string;
900
+ groupIds?: string[] | undefined;
901
+ revokedAt?: string | undefined;
902
+ subjectLabel?: string | undefined;
903
+ lastUsedAt?: string | undefined;
904
+ lastUsedUserAgent?: string | undefined;
905
+ lastUsedIpAddress?: string | undefined;
906
+ }>;
907
+ tokenValue: z.ZodString;
908
+ }, "strip", z.ZodTypeAny, {
909
+ accessToken: {
910
+ status: "expired" | "active" | "revoked";
911
+ kind: "serviceAccount" | "personal";
912
+ name: string;
913
+ id: string;
914
+ expiresAt: string;
915
+ createdAt: string;
916
+ subjectType: "serviceAccount" | "user";
917
+ subjectId: string;
918
+ groupIds?: string[] | undefined;
919
+ revokedAt?: string | undefined;
920
+ subjectLabel?: string | undefined;
921
+ lastUsedAt?: string | undefined;
922
+ lastUsedUserAgent?: string | undefined;
923
+ lastUsedIpAddress?: string | undefined;
924
+ };
925
+ tokenValue: string;
926
+ }, {
927
+ accessToken: {
928
+ status: "expired" | "active" | "revoked";
929
+ kind: "serviceAccount" | "personal";
930
+ name: string;
931
+ id: string;
932
+ expiresAt: string;
933
+ createdAt: string;
934
+ subjectType: "serviceAccount" | "user";
935
+ subjectId: string;
936
+ groupIds?: string[] | undefined;
937
+ revokedAt?: string | undefined;
938
+ subjectLabel?: string | undefined;
939
+ lastUsedAt?: string | undefined;
940
+ lastUsedUserAgent?: string | undefined;
941
+ lastUsedIpAddress?: string | undefined;
942
+ };
943
+ tokenValue: string;
944
+ }>;
945
+ export declare const RevokeAuthServiceAccountAccessTokenParamsSchema: z.ZodObject<{
946
+ serviceAccountId: z.ZodString;
947
+ } & {
948
+ tokenId: z.ZodString;
949
+ }, "strip", z.ZodTypeAny, {
950
+ tokenId: string;
951
+ serviceAccountId: string;
952
+ }, {
953
+ tokenId: string;
954
+ serviceAccountId: string;
955
+ }>;
956
+ export declare const RevokeAuthServiceAccountAccessTokenResponseSchema: z.ZodObject<{
957
+ accessToken: z.ZodObject<{
958
+ id: z.ZodString;
959
+ name: z.ZodString;
960
+ kind: z.ZodEnum<["personal", "serviceAccount"]>;
961
+ status: z.ZodEnum<["active", "expired", "revoked"]>;
962
+ subjectType: z.ZodEnum<["user", "serviceAccount"]>;
963
+ subjectId: z.ZodString;
964
+ subjectLabel: z.ZodOptional<z.ZodString>;
965
+ groupIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
966
+ createdAt: z.ZodString;
967
+ expiresAt: z.ZodString;
968
+ revokedAt: z.ZodOptional<z.ZodString>;
969
+ lastUsedAt: z.ZodOptional<z.ZodString>;
970
+ lastUsedUserAgent: z.ZodOptional<z.ZodString>;
971
+ lastUsedIpAddress: z.ZodOptional<z.ZodString>;
972
+ }, "strip", z.ZodTypeAny, {
973
+ status: "expired" | "active" | "revoked";
974
+ kind: "serviceAccount" | "personal";
975
+ name: string;
976
+ id: string;
977
+ expiresAt: string;
978
+ createdAt: string;
979
+ subjectType: "serviceAccount" | "user";
980
+ subjectId: string;
981
+ groupIds?: string[] | undefined;
982
+ revokedAt?: string | undefined;
983
+ subjectLabel?: string | undefined;
984
+ lastUsedAt?: string | undefined;
985
+ lastUsedUserAgent?: string | undefined;
986
+ lastUsedIpAddress?: string | undefined;
987
+ }, {
988
+ status: "expired" | "active" | "revoked";
989
+ kind: "serviceAccount" | "personal";
990
+ name: string;
991
+ id: string;
992
+ expiresAt: string;
993
+ createdAt: string;
994
+ subjectType: "serviceAccount" | "user";
995
+ subjectId: string;
996
+ groupIds?: string[] | undefined;
997
+ revokedAt?: string | undefined;
998
+ subjectLabel?: string | undefined;
999
+ lastUsedAt?: string | undefined;
1000
+ lastUsedUserAgent?: string | undefined;
1001
+ lastUsedIpAddress?: string | undefined;
1002
+ }>;
1003
+ }, "strip", z.ZodTypeAny, {
1004
+ accessToken: {
1005
+ status: "expired" | "active" | "revoked";
1006
+ kind: "serviceAccount" | "personal";
1007
+ name: string;
1008
+ id: string;
1009
+ expiresAt: string;
1010
+ createdAt: string;
1011
+ subjectType: "serviceAccount" | "user";
1012
+ subjectId: string;
1013
+ groupIds?: string[] | undefined;
1014
+ revokedAt?: string | undefined;
1015
+ subjectLabel?: string | undefined;
1016
+ lastUsedAt?: string | undefined;
1017
+ lastUsedUserAgent?: string | undefined;
1018
+ lastUsedIpAddress?: string | undefined;
1019
+ };
1020
+ }, {
1021
+ accessToken: {
1022
+ status: "expired" | "active" | "revoked";
1023
+ kind: "serviceAccount" | "personal";
1024
+ name: string;
1025
+ id: string;
1026
+ expiresAt: string;
1027
+ createdAt: string;
1028
+ subjectType: "serviceAccount" | "user";
1029
+ subjectId: string;
1030
+ groupIds?: string[] | undefined;
1031
+ revokedAt?: string | undefined;
1032
+ subjectLabel?: string | undefined;
1033
+ lastUsedAt?: string | undefined;
1034
+ lastUsedUserAgent?: string | undefined;
1035
+ lastUsedIpAddress?: string | undefined;
1036
+ };
1037
+ }>;
1038
+ export declare const AuthCreateInvitationCapabilitySchema: z.ZodUnion<[z.ZodObject<{
1039
+ state: z.ZodLiteral<"enabled">;
1040
+ }, "strip", z.ZodTypeAny, {
1041
+ state: "enabled";
1042
+ }, {
1043
+ state: "enabled";
1044
+ }>, z.ZodObject<{
1045
+ state: z.ZodLiteral<"disabled">;
1046
+ reason: z.ZodEnum<["missing_membership_policy", "invitation_delivery_not_supported"]>;
1047
+ }, "strip", z.ZodTypeAny, {
1048
+ state: "disabled";
1049
+ reason: "missing_membership_policy" | "invitation_delivery_not_supported";
1050
+ }, {
1051
+ state: "disabled";
1052
+ reason: "missing_membership_policy" | "invitation_delivery_not_supported";
1053
+ }>]>;
1054
+ export declare const AuthInvitationDestinationSchema: z.ZodObject<{
1055
+ id: z.ZodEnum<["atlas", "app"]>;
1056
+ label: z.ZodString;
1057
+ }, "strip", z.ZodTypeAny, {
1058
+ id: "atlas" | "app";
1059
+ label: string;
1060
+ }, {
1061
+ id: "atlas" | "app";
1062
+ label: string;
1063
+ }>;
1064
+ export declare const GetAuthInvitationOptionsResponseSchema: z.ZodObject<{
1065
+ groups: z.ZodArray<z.ZodObject<{
1066
+ id: z.ZodString;
1067
+ label: z.ZodOptional<z.ZodString>;
1068
+ description: z.ZodOptional<z.ZodString>;
1069
+ }, "strip", z.ZodTypeAny, {
1070
+ id: string;
1071
+ description?: string | undefined;
1072
+ label?: string | undefined;
1073
+ }, {
1074
+ id: string;
1075
+ description?: string | undefined;
1076
+ label?: string | undefined;
1077
+ }>, "many">;
1078
+ destinations: z.ZodArray<z.ZodObject<{
1079
+ id: z.ZodEnum<["atlas", "app"]>;
1080
+ label: z.ZodString;
1081
+ }, "strip", z.ZodTypeAny, {
1082
+ id: "atlas" | "app";
1083
+ label: string;
1084
+ }, {
1085
+ id: "atlas" | "app";
1086
+ label: string;
1087
+ }>, "many">;
1088
+ defaultDestinationId: z.ZodOptional<z.ZodEnum<["atlas", "app"]>>;
1089
+ canInviteWithoutGroups: z.ZodBoolean;
1090
+ capabilities: z.ZodObject<{
1091
+ createInvitation: z.ZodUnion<[z.ZodObject<{
1092
+ state: z.ZodLiteral<"enabled">;
1093
+ }, "strip", z.ZodTypeAny, {
1094
+ state: "enabled";
1095
+ }, {
1096
+ state: "enabled";
1097
+ }>, z.ZodObject<{
1098
+ state: z.ZodLiteral<"disabled">;
1099
+ reason: z.ZodEnum<["missing_membership_policy", "invitation_delivery_not_supported"]>;
1100
+ }, "strip", z.ZodTypeAny, {
1101
+ state: "disabled";
1102
+ reason: "missing_membership_policy" | "invitation_delivery_not_supported";
1103
+ }, {
1104
+ state: "disabled";
1105
+ reason: "missing_membership_policy" | "invitation_delivery_not_supported";
1106
+ }>]>;
1107
+ }, "strip", z.ZodTypeAny, {
1108
+ createInvitation: {
1109
+ state: "enabled";
1110
+ } | {
1111
+ state: "disabled";
1112
+ reason: "missing_membership_policy" | "invitation_delivery_not_supported";
1113
+ };
1114
+ }, {
1115
+ createInvitation: {
1116
+ state: "enabled";
1117
+ } | {
1118
+ state: "disabled";
1119
+ reason: "missing_membership_policy" | "invitation_delivery_not_supported";
1120
+ };
1121
+ }>;
1122
+ }, "strip", z.ZodTypeAny, {
1123
+ capabilities: {
1124
+ createInvitation: {
1125
+ state: "enabled";
1126
+ } | {
1127
+ state: "disabled";
1128
+ reason: "missing_membership_policy" | "invitation_delivery_not_supported";
1129
+ };
1130
+ };
1131
+ groups: {
1132
+ id: string;
1133
+ description?: string | undefined;
1134
+ label?: string | undefined;
1135
+ }[];
1136
+ destinations: {
1137
+ id: "atlas" | "app";
1138
+ label: string;
1139
+ }[];
1140
+ canInviteWithoutGroups: boolean;
1141
+ defaultDestinationId?: "atlas" | "app" | undefined;
1142
+ }, {
1143
+ capabilities: {
1144
+ createInvitation: {
1145
+ state: "enabled";
1146
+ } | {
1147
+ state: "disabled";
1148
+ reason: "missing_membership_policy" | "invitation_delivery_not_supported";
1149
+ };
1150
+ };
1151
+ groups: {
1152
+ id: string;
1153
+ description?: string | undefined;
1154
+ label?: string | undefined;
1155
+ }[];
1156
+ destinations: {
1157
+ id: "atlas" | "app";
1158
+ label: string;
1159
+ }[];
1160
+ canInviteWithoutGroups: boolean;
1161
+ defaultDestinationId?: "atlas" | "app" | undefined;
1162
+ }>;
1163
+ export declare const GetAuthMembershipOptionsResponseSchema: z.ZodObject<{
1164
+ groups: z.ZodArray<z.ZodObject<{
1165
+ id: z.ZodString;
1166
+ label: z.ZodOptional<z.ZodString>;
1167
+ description: z.ZodOptional<z.ZodString>;
1168
+ }, "strip", z.ZodTypeAny, {
1169
+ id: string;
1170
+ description?: string | undefined;
1171
+ label?: string | undefined;
1172
+ }, {
1173
+ id: string;
1174
+ description?: string | undefined;
1175
+ label?: string | undefined;
1176
+ }>, "many">;
1177
+ capabilities: z.ZodObject<{
1178
+ invite: z.ZodBoolean;
1179
+ assignGroups: z.ZodBoolean;
1180
+ suspend: z.ZodBoolean;
1181
+ }, "strip", z.ZodTypeAny, {
1182
+ assignGroups: boolean;
1183
+ suspend: boolean;
1184
+ invite: boolean;
1185
+ }, {
1186
+ assignGroups: boolean;
1187
+ suspend: boolean;
1188
+ invite: boolean;
1189
+ }>;
1190
+ }, "strip", z.ZodTypeAny, {
1191
+ capabilities: {
1192
+ assignGroups: boolean;
1193
+ suspend: boolean;
1194
+ invite: boolean;
1195
+ };
1196
+ groups: {
1197
+ id: string;
1198
+ description?: string | undefined;
1199
+ label?: string | undefined;
1200
+ }[];
1201
+ }, {
1202
+ capabilities: {
1203
+ assignGroups: boolean;
1204
+ suspend: boolean;
1205
+ invite: boolean;
1206
+ };
1207
+ groups: {
1208
+ id: string;
1209
+ description?: string | undefined;
1210
+ label?: string | undefined;
1211
+ }[];
1212
+ }>;
1213
+ export declare const ListAuthMembersQuerySchema: z.ZodObject<{
1214
+ limit: z.ZodOptional<z.ZodString>;
1215
+ offset: z.ZodOptional<z.ZodString>;
1216
+ order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
1217
+ }, "strip", z.ZodTypeAny, {
1218
+ limit?: string | undefined;
1219
+ offset?: string | undefined;
1220
+ order?: "asc" | "desc" | undefined;
1221
+ }, {
1222
+ limit?: string | undefined;
1223
+ offset?: string | undefined;
1224
+ order?: "asc" | "desc" | undefined;
1225
+ }>;
1226
+ export declare const ListAuthMembersResponseSchema: z.ZodObject<{
1227
+ members: z.ZodArray<z.ZodObject<{
1228
+ user: z.ZodObject<{
1229
+ id: z.ZodString;
1230
+ email: z.ZodString;
1231
+ displayName: z.ZodOptional<z.ZodString>;
1232
+ avatarUrl: z.ZodOptional<z.ZodString>;
1233
+ status: z.ZodEnum<["active", "suspended"]>;
1234
+ createdAt: z.ZodString;
1235
+ updatedAt: z.ZodString;
1236
+ }, "strip", z.ZodTypeAny, {
1237
+ status: "active" | "suspended";
1238
+ id: string;
1239
+ email: string;
1240
+ createdAt: string;
1241
+ updatedAt: string;
1242
+ displayName?: string | undefined;
1243
+ avatarUrl?: string | undefined;
1244
+ }, {
1245
+ status: "active" | "suspended";
1246
+ id: string;
1247
+ email: string;
1248
+ createdAt: string;
1249
+ updatedAt: string;
1250
+ displayName?: string | undefined;
1251
+ avatarUrl?: string | undefined;
1252
+ }>;
1253
+ groupIds: z.ZodArray<z.ZodString, "many">;
1254
+ } & {
1255
+ capabilities: z.ZodObject<{
1256
+ assignGroups: z.ZodBoolean;
1257
+ suspend: z.ZodBoolean;
1258
+ reactivate: z.ZodBoolean;
1259
+ }, "strip", z.ZodTypeAny, {
1260
+ assignGroups: boolean;
1261
+ suspend: boolean;
1262
+ reactivate: boolean;
1263
+ }, {
1264
+ assignGroups: boolean;
1265
+ suspend: boolean;
1266
+ reactivate: boolean;
1267
+ }>;
1268
+ }, "strip", z.ZodTypeAny, {
1269
+ user: {
1270
+ status: "active" | "suspended";
1271
+ id: string;
1272
+ email: string;
1273
+ createdAt: string;
1274
+ updatedAt: string;
1275
+ displayName?: string | undefined;
1276
+ avatarUrl?: string | undefined;
1277
+ };
1278
+ groupIds: string[];
1279
+ capabilities: {
1280
+ assignGroups: boolean;
1281
+ suspend: boolean;
1282
+ reactivate: boolean;
1283
+ };
1284
+ }, {
1285
+ user: {
1286
+ status: "active" | "suspended";
1287
+ id: string;
1288
+ email: string;
1289
+ createdAt: string;
1290
+ updatedAt: string;
1291
+ displayName?: string | undefined;
1292
+ avatarUrl?: string | undefined;
1293
+ };
1294
+ groupIds: string[];
1295
+ capabilities: {
1296
+ assignGroups: boolean;
1297
+ suspend: boolean;
1298
+ reactivate: boolean;
1299
+ };
1300
+ }>, "many">;
1301
+ hasMore: z.ZodBoolean;
1302
+ total: z.ZodNumber;
1303
+ }, "strip", z.ZodTypeAny, {
1304
+ hasMore: boolean;
1305
+ total: number;
1306
+ members: {
1307
+ user: {
1308
+ status: "active" | "suspended";
1309
+ id: string;
1310
+ email: string;
1311
+ createdAt: string;
1312
+ updatedAt: string;
1313
+ displayName?: string | undefined;
1314
+ avatarUrl?: string | undefined;
1315
+ };
1316
+ groupIds: string[];
1317
+ capabilities: {
1318
+ assignGroups: boolean;
1319
+ suspend: boolean;
1320
+ reactivate: boolean;
1321
+ };
1322
+ }[];
1323
+ }, {
1324
+ hasMore: boolean;
1325
+ total: number;
1326
+ members: {
1327
+ user: {
1328
+ status: "active" | "suspended";
1329
+ id: string;
1330
+ email: string;
1331
+ createdAt: string;
1332
+ updatedAt: string;
1333
+ displayName?: string | undefined;
1334
+ avatarUrl?: string | undefined;
1335
+ };
1336
+ groupIds: string[];
1337
+ capabilities: {
1338
+ assignGroups: boolean;
1339
+ suspend: boolean;
1340
+ reactivate: boolean;
1341
+ };
1342
+ }[];
1343
+ }>;
1344
+ export declare const AuthMemberParamsSchema: z.ZodObject<{
1345
+ userId: z.ZodString;
1346
+ }, "strip", z.ZodTypeAny, {
1347
+ userId: string;
1348
+ }, {
1349
+ userId: string;
1350
+ }>;
1351
+ export declare const UpdateAuthMemberGroupsBodySchema: z.ZodObject<{
1352
+ groupIds: z.ZodArray<z.ZodString, "many">;
1353
+ }, "strip", z.ZodTypeAny, {
1354
+ groupIds: string[];
1355
+ }, {
1356
+ groupIds: string[];
1357
+ }>;
1358
+ export declare const UpdateAuthMemberGroupsResponseSchema: z.ZodObject<{
1359
+ member: z.ZodObject<{
1360
+ user: z.ZodObject<{
1361
+ id: z.ZodString;
1362
+ email: z.ZodString;
1363
+ displayName: z.ZodOptional<z.ZodString>;
1364
+ avatarUrl: z.ZodOptional<z.ZodString>;
1365
+ status: z.ZodEnum<["active", "suspended"]>;
1366
+ createdAt: z.ZodString;
1367
+ updatedAt: z.ZodString;
1368
+ }, "strip", z.ZodTypeAny, {
1369
+ status: "active" | "suspended";
1370
+ id: string;
1371
+ email: string;
1372
+ createdAt: string;
1373
+ updatedAt: string;
1374
+ displayName?: string | undefined;
1375
+ avatarUrl?: string | undefined;
1376
+ }, {
1377
+ status: "active" | "suspended";
1378
+ id: string;
1379
+ email: string;
1380
+ createdAt: string;
1381
+ updatedAt: string;
1382
+ displayName?: string | undefined;
1383
+ avatarUrl?: string | undefined;
1384
+ }>;
1385
+ groupIds: z.ZodArray<z.ZodString, "many">;
1386
+ }, "strip", z.ZodTypeAny, {
1387
+ user: {
1388
+ status: "active" | "suspended";
1389
+ id: string;
1390
+ email: string;
1391
+ createdAt: string;
1392
+ updatedAt: string;
1393
+ displayName?: string | undefined;
1394
+ avatarUrl?: string | undefined;
1395
+ };
1396
+ groupIds: string[];
1397
+ }, {
1398
+ user: {
1399
+ status: "active" | "suspended";
1400
+ id: string;
1401
+ email: string;
1402
+ createdAt: string;
1403
+ updatedAt: string;
1404
+ displayName?: string | undefined;
1405
+ avatarUrl?: string | undefined;
1406
+ };
1407
+ groupIds: string[];
1408
+ }>;
1409
+ }, "strip", z.ZodTypeAny, {
1410
+ member: {
1411
+ user: {
1412
+ status: "active" | "suspended";
1413
+ id: string;
1414
+ email: string;
1415
+ createdAt: string;
1416
+ updatedAt: string;
1417
+ displayName?: string | undefined;
1418
+ avatarUrl?: string | undefined;
1419
+ };
1420
+ groupIds: string[];
1421
+ };
1422
+ }, {
1423
+ member: {
1424
+ user: {
1425
+ status: "active" | "suspended";
1426
+ id: string;
1427
+ email: string;
1428
+ createdAt: string;
1429
+ updatedAt: string;
1430
+ displayName?: string | undefined;
1431
+ avatarUrl?: string | undefined;
1432
+ };
1433
+ groupIds: string[];
1434
+ };
1435
+ }>;
1436
+ export declare const SuspendAuthMemberResponseSchema: z.ZodObject<{
1437
+ member: z.ZodObject<{
1438
+ user: z.ZodObject<{
1439
+ id: z.ZodString;
1440
+ email: z.ZodString;
1441
+ displayName: z.ZodOptional<z.ZodString>;
1442
+ avatarUrl: z.ZodOptional<z.ZodString>;
1443
+ status: z.ZodEnum<["active", "suspended"]>;
1444
+ createdAt: z.ZodString;
1445
+ updatedAt: z.ZodString;
1446
+ }, "strip", z.ZodTypeAny, {
1447
+ status: "active" | "suspended";
1448
+ id: string;
1449
+ email: string;
1450
+ createdAt: string;
1451
+ updatedAt: string;
1452
+ displayName?: string | undefined;
1453
+ avatarUrl?: string | undefined;
1454
+ }, {
1455
+ status: "active" | "suspended";
1456
+ id: string;
1457
+ email: string;
1458
+ createdAt: string;
1459
+ updatedAt: string;
1460
+ displayName?: string | undefined;
1461
+ avatarUrl?: string | undefined;
1462
+ }>;
1463
+ groupIds: z.ZodArray<z.ZodString, "many">;
1464
+ }, "strip", z.ZodTypeAny, {
1465
+ user: {
1466
+ status: "active" | "suspended";
1467
+ id: string;
1468
+ email: string;
1469
+ createdAt: string;
1470
+ updatedAt: string;
1471
+ displayName?: string | undefined;
1472
+ avatarUrl?: string | undefined;
1473
+ };
1474
+ groupIds: string[];
1475
+ }, {
1476
+ user: {
1477
+ status: "active" | "suspended";
1478
+ id: string;
1479
+ email: string;
1480
+ createdAt: string;
1481
+ updatedAt: string;
1482
+ displayName?: string | undefined;
1483
+ avatarUrl?: string | undefined;
1484
+ };
1485
+ groupIds: string[];
1486
+ }>;
1487
+ }, "strip", z.ZodTypeAny, {
1488
+ member: {
1489
+ user: {
1490
+ status: "active" | "suspended";
1491
+ id: string;
1492
+ email: string;
1493
+ createdAt: string;
1494
+ updatedAt: string;
1495
+ displayName?: string | undefined;
1496
+ avatarUrl?: string | undefined;
1497
+ };
1498
+ groupIds: string[];
1499
+ };
1500
+ }, {
1501
+ member: {
1502
+ user: {
1503
+ status: "active" | "suspended";
1504
+ id: string;
1505
+ email: string;
1506
+ createdAt: string;
1507
+ updatedAt: string;
1508
+ displayName?: string | undefined;
1509
+ avatarUrl?: string | undefined;
1510
+ };
1511
+ groupIds: string[];
1512
+ };
1513
+ }>;
1514
+ export declare const ReactivateAuthMemberResponseSchema: z.ZodObject<{
1515
+ member: z.ZodObject<{
1516
+ user: z.ZodObject<{
1517
+ id: z.ZodString;
1518
+ email: z.ZodString;
1519
+ displayName: z.ZodOptional<z.ZodString>;
1520
+ avatarUrl: z.ZodOptional<z.ZodString>;
1521
+ status: z.ZodEnum<["active", "suspended"]>;
1522
+ createdAt: z.ZodString;
1523
+ updatedAt: z.ZodString;
1524
+ }, "strip", z.ZodTypeAny, {
1525
+ status: "active" | "suspended";
1526
+ id: string;
1527
+ email: string;
1528
+ createdAt: string;
1529
+ updatedAt: string;
1530
+ displayName?: string | undefined;
1531
+ avatarUrl?: string | undefined;
1532
+ }, {
1533
+ status: "active" | "suspended";
1534
+ id: string;
1535
+ email: string;
1536
+ createdAt: string;
1537
+ updatedAt: string;
1538
+ displayName?: string | undefined;
1539
+ avatarUrl?: string | undefined;
1540
+ }>;
1541
+ groupIds: z.ZodArray<z.ZodString, "many">;
1542
+ }, "strip", z.ZodTypeAny, {
1543
+ user: {
1544
+ status: "active" | "suspended";
1545
+ id: string;
1546
+ email: string;
1547
+ createdAt: string;
1548
+ updatedAt: string;
1549
+ displayName?: string | undefined;
1550
+ avatarUrl?: string | undefined;
1551
+ };
1552
+ groupIds: string[];
1553
+ }, {
1554
+ user: {
1555
+ status: "active" | "suspended";
1556
+ id: string;
1557
+ email: string;
1558
+ createdAt: string;
1559
+ updatedAt: string;
1560
+ displayName?: string | undefined;
1561
+ avatarUrl?: string | undefined;
1562
+ };
1563
+ groupIds: string[];
1564
+ }>;
1565
+ }, "strip", z.ZodTypeAny, {
1566
+ member: {
1567
+ user: {
1568
+ status: "active" | "suspended";
1569
+ id: string;
1570
+ email: string;
1571
+ createdAt: string;
1572
+ updatedAt: string;
1573
+ displayName?: string | undefined;
1574
+ avatarUrl?: string | undefined;
1575
+ };
1576
+ groupIds: string[];
1577
+ };
1578
+ }, {
1579
+ member: {
1580
+ user: {
1581
+ status: "active" | "suspended";
1582
+ id: string;
1583
+ email: string;
1584
+ createdAt: string;
1585
+ updatedAt: string;
1586
+ displayName?: string | undefined;
1587
+ avatarUrl?: string | undefined;
1588
+ };
1589
+ groupIds: string[];
1590
+ };
1591
+ }>;
1592
+ export declare const CreateAuthInvitationBodySchema: z.ZodObject<{
1593
+ email: z.ZodString;
1594
+ groupIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1595
+ destinationId: z.ZodOptional<z.ZodEnum<["atlas", "app"]>>;
1596
+ expiresAt: z.ZodOptional<z.ZodString>;
1597
+ returnTo: z.ZodOptional<z.ZodString>;
1598
+ }, "strip", z.ZodTypeAny, {
1599
+ email: string;
1600
+ returnTo?: string | undefined;
1601
+ expiresAt?: string | undefined;
1602
+ groupIds?: string[] | undefined;
1603
+ destinationId?: "atlas" | "app" | undefined;
1604
+ }, {
1605
+ email: string;
1606
+ returnTo?: string | undefined;
1607
+ expiresAt?: string | undefined;
1608
+ groupIds?: string[] | undefined;
1609
+ destinationId?: "atlas" | "app" | undefined;
1610
+ }>;
1611
+ export declare const CreateAuthInvitationResponseSchema: z.ZodObject<{
1612
+ invitation: z.ZodObject<{
1613
+ id: z.ZodString;
1614
+ email: z.ZodString;
1615
+ groupIds: z.ZodArray<z.ZodString, "many">;
1616
+ status: z.ZodEnum<["pending", "accepted", "revoked"]>;
1617
+ createdAt: z.ZodString;
1618
+ updatedAt: z.ZodString;
1619
+ expiresAt: z.ZodString;
1620
+ acceptedAt: z.ZodOptional<z.ZodString>;
1621
+ revokedAt: z.ZodOptional<z.ZodString>;
1622
+ }, "strip", z.ZodTypeAny, {
1623
+ status: "pending" | "accepted" | "revoked";
1624
+ id: string;
1625
+ email: string;
1626
+ expiresAt: string;
1627
+ groupIds: string[];
1628
+ createdAt: string;
1629
+ updatedAt: string;
1630
+ acceptedAt?: string | undefined;
1631
+ revokedAt?: string | undefined;
1632
+ }, {
1633
+ status: "pending" | "accepted" | "revoked";
1634
+ id: string;
1635
+ email: string;
1636
+ expiresAt: string;
1637
+ groupIds: string[];
1638
+ createdAt: string;
1639
+ updatedAt: string;
1640
+ acceptedAt?: string | undefined;
1641
+ revokedAt?: string | undefined;
1642
+ }>;
1643
+ delivery: z.ZodObject<{
1644
+ status: z.ZodEnum<["sent", "skipped", "rate_limited", "not_supported"]>;
1645
+ }, "strip", z.ZodTypeAny, {
1646
+ status: "skipped" | "sent" | "rate_limited" | "not_supported";
1647
+ }, {
1648
+ status: "skipped" | "sent" | "rate_limited" | "not_supported";
1649
+ }>;
1650
+ }, "strip", z.ZodTypeAny, {
1651
+ invitation: {
1652
+ status: "pending" | "accepted" | "revoked";
1653
+ id: string;
1654
+ email: string;
1655
+ expiresAt: string;
1656
+ groupIds: string[];
1657
+ createdAt: string;
1658
+ updatedAt: string;
1659
+ acceptedAt?: string | undefined;
1660
+ revokedAt?: string | undefined;
1661
+ };
1662
+ delivery: {
1663
+ status: "skipped" | "sent" | "rate_limited" | "not_supported";
1664
+ };
1665
+ }, {
1666
+ invitation: {
1667
+ status: "pending" | "accepted" | "revoked";
1668
+ id: string;
1669
+ email: string;
1670
+ expiresAt: string;
1671
+ groupIds: string[];
1672
+ createdAt: string;
1673
+ updatedAt: string;
1674
+ acceptedAt?: string | undefined;
1675
+ revokedAt?: string | undefined;
1676
+ };
1677
+ delivery: {
1678
+ status: "skipped" | "sent" | "rate_limited" | "not_supported";
1679
+ };
1680
+ }>;
1681
+ export declare const ListAuthInvitationsQuerySchema: z.ZodObject<{
1682
+ email: z.ZodOptional<z.ZodString>;
1683
+ status: z.ZodOptional<z.ZodEnum<["pending", "accepted", "revoked"]>>;
1684
+ limit: z.ZodOptional<z.ZodString>;
1685
+ offset: z.ZodOptional<z.ZodString>;
1686
+ order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
1687
+ }, "strip", z.ZodTypeAny, {
1688
+ status?: "pending" | "accepted" | "revoked" | undefined;
1689
+ limit?: string | undefined;
1690
+ offset?: string | undefined;
1691
+ order?: "asc" | "desc" | undefined;
1692
+ email?: string | undefined;
1693
+ }, {
1694
+ status?: "pending" | "accepted" | "revoked" | undefined;
1695
+ limit?: string | undefined;
1696
+ offset?: string | undefined;
1697
+ order?: "asc" | "desc" | undefined;
1698
+ email?: string | undefined;
1699
+ }>;
1700
+ export declare const ListAuthInvitationsResponseSchema: z.ZodObject<{
1701
+ invitations: z.ZodArray<z.ZodObject<{
1702
+ id: z.ZodString;
1703
+ email: z.ZodString;
1704
+ groupIds: z.ZodArray<z.ZodString, "many">;
1705
+ status: z.ZodEnum<["pending", "accepted", "revoked"]>;
1706
+ createdAt: z.ZodString;
1707
+ updatedAt: z.ZodString;
1708
+ expiresAt: z.ZodString;
1709
+ acceptedAt: z.ZodOptional<z.ZodString>;
1710
+ revokedAt: z.ZodOptional<z.ZodString>;
1711
+ }, "strip", z.ZodTypeAny, {
1712
+ status: "pending" | "accepted" | "revoked";
1713
+ id: string;
1714
+ email: string;
1715
+ expiresAt: string;
1716
+ groupIds: string[];
1717
+ createdAt: string;
1718
+ updatedAt: string;
1719
+ acceptedAt?: string | undefined;
1720
+ revokedAt?: string | undefined;
1721
+ }, {
1722
+ status: "pending" | "accepted" | "revoked";
1723
+ id: string;
1724
+ email: string;
1725
+ expiresAt: string;
1726
+ groupIds: string[];
1727
+ createdAt: string;
1728
+ updatedAt: string;
1729
+ acceptedAt?: string | undefined;
1730
+ revokedAt?: string | undefined;
1731
+ }>, "many">;
1732
+ hasMore: z.ZodBoolean;
1733
+ total: z.ZodNumber;
1734
+ }, "strip", z.ZodTypeAny, {
1735
+ hasMore: boolean;
1736
+ total: number;
1737
+ invitations: {
1738
+ status: "pending" | "accepted" | "revoked";
1739
+ id: string;
1740
+ email: string;
1741
+ expiresAt: string;
1742
+ groupIds: string[];
1743
+ createdAt: string;
1744
+ updatedAt: string;
1745
+ acceptedAt?: string | undefined;
1746
+ revokedAt?: string | undefined;
1747
+ }[];
1748
+ }, {
1749
+ hasMore: boolean;
1750
+ total: number;
1751
+ invitations: {
1752
+ status: "pending" | "accepted" | "revoked";
1753
+ id: string;
1754
+ email: string;
1755
+ expiresAt: string;
1756
+ groupIds: string[];
1757
+ createdAt: string;
1758
+ updatedAt: string;
1759
+ acceptedAt?: string | undefined;
1760
+ revokedAt?: string | undefined;
1761
+ }[];
1762
+ }>;
1763
+ export declare const RevokeAuthInvitationParamsSchema: z.ZodObject<{
1764
+ invitationId: z.ZodString;
1765
+ }, "strip", z.ZodTypeAny, {
1766
+ invitationId: string;
1767
+ }, {
1768
+ invitationId: string;
1769
+ }>;
1770
+ export declare const RevokeAuthInvitationResponseSchema: z.ZodObject<{
1771
+ invitation: z.ZodObject<{
1772
+ id: z.ZodString;
1773
+ email: z.ZodString;
1774
+ groupIds: z.ZodArray<z.ZodString, "many">;
1775
+ status: z.ZodEnum<["pending", "accepted", "revoked"]>;
1776
+ createdAt: z.ZodString;
1777
+ updatedAt: z.ZodString;
1778
+ expiresAt: z.ZodString;
1779
+ acceptedAt: z.ZodOptional<z.ZodString>;
1780
+ revokedAt: z.ZodOptional<z.ZodString>;
1781
+ }, "strip", z.ZodTypeAny, {
1782
+ status: "pending" | "accepted" | "revoked";
1783
+ id: string;
1784
+ email: string;
1785
+ expiresAt: string;
1786
+ groupIds: string[];
1787
+ createdAt: string;
1788
+ updatedAt: string;
1789
+ acceptedAt?: string | undefined;
1790
+ revokedAt?: string | undefined;
1791
+ }, {
1792
+ status: "pending" | "accepted" | "revoked";
1793
+ id: string;
1794
+ email: string;
1795
+ expiresAt: string;
1796
+ groupIds: string[];
1797
+ createdAt: string;
1798
+ updatedAt: string;
1799
+ acceptedAt?: string | undefined;
1800
+ revokedAt?: string | undefined;
1801
+ }>;
1802
+ }, "strip", z.ZodTypeAny, {
1803
+ invitation: {
1804
+ status: "pending" | "accepted" | "revoked";
1805
+ id: string;
1806
+ email: string;
1807
+ expiresAt: string;
1808
+ groupIds: string[];
1809
+ createdAt: string;
1810
+ updatedAt: string;
1811
+ acceptedAt?: string | undefined;
1812
+ revokedAt?: string | undefined;
1813
+ };
1814
+ }, {
1815
+ invitation: {
1816
+ status: "pending" | "accepted" | "revoked";
1817
+ id: string;
1818
+ email: string;
1819
+ expiresAt: string;
1820
+ groupIds: string[];
1821
+ createdAt: string;
1822
+ updatedAt: string;
1823
+ acceptedAt?: string | undefined;
1824
+ revokedAt?: string | undefined;
1825
+ };
1826
+ }>;
1827
+ export declare const AuthSessionResponseSchema: z.ZodUnion<[z.ZodObject<{
1828
+ authenticated: z.ZodLiteral<false>;
1829
+ }, "strip", z.ZodTypeAny, {
1830
+ authenticated: false;
1831
+ }, {
1832
+ authenticated: false;
1833
+ }>, z.ZodObject<{
1834
+ authenticated: z.ZodLiteral<true>;
1835
+ csrfToken: z.ZodString;
1836
+ applicationAccess: z.ZodObject<{
1837
+ allowed: z.ZodBoolean;
1838
+ audience: z.ZodEnum<["atlas", "app"]>;
1839
+ }, "strip", z.ZodTypeAny, {
1840
+ audience: "atlas" | "app";
1841
+ allowed: boolean;
1842
+ }, {
1843
+ audience: "atlas" | "app";
1844
+ allowed: boolean;
1845
+ }>;
1846
+ user: z.ZodObject<{
1847
+ id: z.ZodString;
1848
+ email: z.ZodString;
1849
+ displayName: z.ZodOptional<z.ZodString>;
1850
+ avatarUrl: z.ZodOptional<z.ZodString>;
1851
+ groupIds: z.ZodArray<z.ZodString, "many">;
1852
+ }, "strip", z.ZodTypeAny, {
1853
+ id: string;
1854
+ email: string;
1855
+ groupIds: string[];
1856
+ displayName?: string | undefined;
1857
+ avatarUrl?: string | undefined;
1858
+ }, {
1859
+ id: string;
1860
+ email: string;
1861
+ groupIds: string[];
1862
+ displayName?: string | undefined;
1863
+ avatarUrl?: string | undefined;
1864
+ }>;
1865
+ session: z.ZodObject<{
1866
+ id: z.ZodString;
1867
+ expiresAt: z.ZodString;
1868
+ }, "strip", z.ZodTypeAny, {
1869
+ id: string;
1870
+ expiresAt: string;
1871
+ }, {
1872
+ id: string;
1873
+ expiresAt: string;
1874
+ }>;
1875
+ }, "strip", z.ZodTypeAny, {
1876
+ session: {
1877
+ id: string;
1878
+ expiresAt: string;
1879
+ };
1880
+ csrfToken: string;
1881
+ user: {
1882
+ id: string;
1883
+ email: string;
1884
+ groupIds: string[];
1885
+ displayName?: string | undefined;
1886
+ avatarUrl?: string | undefined;
1887
+ };
1888
+ authenticated: true;
1889
+ applicationAccess: {
1890
+ audience: "atlas" | "app";
1891
+ allowed: boolean;
1892
+ };
1893
+ }, {
1894
+ session: {
1895
+ id: string;
1896
+ expiresAt: string;
1897
+ };
1898
+ csrfToken: string;
1899
+ user: {
1900
+ id: string;
1901
+ email: string;
1902
+ groupIds: string[];
1903
+ displayName?: string | undefined;
1904
+ avatarUrl?: string | undefined;
1905
+ };
1906
+ authenticated: true;
1907
+ applicationAccess: {
1908
+ audience: "atlas" | "app";
1909
+ allowed: boolean;
1910
+ };
1911
+ }>]>;
1912
+ export declare const AuthSignOutResponseSchema: z.ZodObject<{
1913
+ success: z.ZodBoolean;
1914
+ }, "strip", z.ZodTypeAny, {
1915
+ success: boolean;
1916
+ }, {
1917
+ success: boolean;
1918
+ }>;
1919
+ export declare const AuthSessionSummarySchema: z.ZodObject<{
1920
+ id: z.ZodString;
1921
+ audience: z.ZodEnum<["atlas", "app"]>;
1922
+ current: z.ZodBoolean;
1923
+ createdAt: z.ZodString;
1924
+ expiresAt: z.ZodString;
1925
+ lastSeenAt: z.ZodOptional<z.ZodString>;
1926
+ userAgent: z.ZodOptional<z.ZodString>;
1927
+ ipAddress: z.ZodOptional<z.ZodString>;
1928
+ }, "strip", z.ZodTypeAny, {
1929
+ audience: "atlas" | "app";
1930
+ id: string;
1931
+ expiresAt: string;
1932
+ createdAt: string;
1933
+ current: boolean;
1934
+ lastSeenAt?: string | undefined;
1935
+ userAgent?: string | undefined;
1936
+ ipAddress?: string | undefined;
1937
+ }, {
1938
+ audience: "atlas" | "app";
1939
+ id: string;
1940
+ expiresAt: string;
1941
+ createdAt: string;
1942
+ current: boolean;
1943
+ lastSeenAt?: string | undefined;
1944
+ userAgent?: string | undefined;
1945
+ ipAddress?: string | undefined;
1946
+ }>;
1947
+ export declare const ListAuthSessionsResponseSchema: z.ZodObject<{
1948
+ sessions: z.ZodArray<z.ZodObject<{
1949
+ id: z.ZodString;
1950
+ audience: z.ZodEnum<["atlas", "app"]>;
1951
+ current: z.ZodBoolean;
1952
+ createdAt: z.ZodString;
1953
+ expiresAt: z.ZodString;
1954
+ lastSeenAt: z.ZodOptional<z.ZodString>;
1955
+ userAgent: z.ZodOptional<z.ZodString>;
1956
+ ipAddress: z.ZodOptional<z.ZodString>;
1957
+ }, "strip", z.ZodTypeAny, {
1958
+ audience: "atlas" | "app";
1959
+ id: string;
1960
+ expiresAt: string;
1961
+ createdAt: string;
1962
+ current: boolean;
1963
+ lastSeenAt?: string | undefined;
1964
+ userAgent?: string | undefined;
1965
+ ipAddress?: string | undefined;
1966
+ }, {
1967
+ audience: "atlas" | "app";
1968
+ id: string;
1969
+ expiresAt: string;
1970
+ createdAt: string;
1971
+ current: boolean;
1972
+ lastSeenAt?: string | undefined;
1973
+ userAgent?: string | undefined;
1974
+ ipAddress?: string | undefined;
1975
+ }>, "many">;
1976
+ }, "strip", z.ZodTypeAny, {
1977
+ sessions: {
1978
+ audience: "atlas" | "app";
1979
+ id: string;
1980
+ expiresAt: string;
1981
+ createdAt: string;
1982
+ current: boolean;
1983
+ lastSeenAt?: string | undefined;
1984
+ userAgent?: string | undefined;
1985
+ ipAddress?: string | undefined;
1986
+ }[];
1987
+ }, {
1988
+ sessions: {
1989
+ audience: "atlas" | "app";
1990
+ id: string;
1991
+ expiresAt: string;
1992
+ createdAt: string;
1993
+ current: boolean;
1994
+ lastSeenAt?: string | undefined;
1995
+ userAgent?: string | undefined;
1996
+ ipAddress?: string | undefined;
1997
+ }[];
1998
+ }>;
1999
+ export declare const RevokeAuthSessionParamsSchema: z.ZodObject<{
2000
+ sessionId: z.ZodString;
2001
+ }, "strip", z.ZodTypeAny, {
2002
+ sessionId: string;
2003
+ }, {
2004
+ sessionId: string;
2005
+ }>;
2006
+ export declare const RevokeAuthSessionResponseSchema: z.ZodObject<{
2007
+ success: z.ZodBoolean;
2008
+ }, "strip", z.ZodTypeAny, {
2009
+ success: boolean;
2010
+ }, {
2011
+ success: boolean;
2012
+ }>;
2013
+ export declare const SignOutAllResponseSchema: z.ZodObject<{
2014
+ success: z.ZodBoolean;
2015
+ revokedCount: z.ZodNumber;
2016
+ }, "strip", z.ZodTypeAny, {
2017
+ success: boolean;
2018
+ revokedCount: number;
2019
+ }, {
2020
+ success: boolean;
2021
+ revokedCount: number;
2022
+ }>;
2023
+ //# sourceMappingURL=auth.d.ts.map