authula 0.7.15 → 0.8.0-beta.0

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.

Potentially problematic release.


This version of authula might be problematic. Click here for more details.

Files changed (40) hide show
  1. package/README.md +196 -40
  2. package/dist/{index.js → core-Csdt31Tx.js} +6 -17
  3. package/dist/core-Csdt31Tx.js.map +1 -0
  4. package/dist/core.d.ts +2 -0
  5. package/dist/core.js +4 -0
  6. package/dist/{custom-fetch-CXJ4-i7I.js → custom-fetch-DJxn7nVP.js} +26 -10
  7. package/dist/custom-fetch-DJxn7nVP.js.map +1 -0
  8. package/dist/framework-client-CsGjKPXl.d.ts +8 -0
  9. package/dist/framework-client-D-yGjqAx.js +50 -0
  10. package/dist/framework-client-D-yGjqAx.js.map +1 -0
  11. package/dist/{index-DVhn7FFt.d.ts → index-Cuok0NWW.d.ts} +4 -448
  12. package/dist/models.d.ts +2 -0
  13. package/dist/models.js +11 -0
  14. package/dist/models.js.map +1 -0
  15. package/dist/plugins.d.ts +513 -0
  16. package/dist/plugins.js +2472 -0
  17. package/dist/plugins.js.map +1 -0
  18. package/dist/react.d.ts +3728 -0
  19. package/dist/{plugins/index.js → react.js} +975 -1256
  20. package/dist/react.js.map +1 -0
  21. package/dist/{rolldown-runtime-w6R9maHv.js → rolldown-runtime-CNh9ExCG.js} +1 -2
  22. package/dist/sdk-Cu28BXFh.d.ts +102 -0
  23. package/dist/solid.d.ts +3955 -0
  24. package/dist/solid.js +5461 -0
  25. package/dist/solid.js.map +1 -0
  26. package/dist/svelte.d.ts +3368 -0
  27. package/dist/svelte.js +5500 -0
  28. package/dist/svelte.js.map +1 -0
  29. package/dist/vue.d.ts +3289 -0
  30. package/dist/vue.js +5644 -0
  31. package/dist/vue.js.map +1 -0
  32. package/dist/zod.d.ts +3862 -0
  33. package/dist/zod.js +1480 -0
  34. package/dist/zod.js.map +1 -0
  35. package/package.json +68 -16
  36. package/dist/custom-fetch-CXJ4-i7I.js.map +0 -1
  37. package/dist/index.d.ts +0 -2
  38. package/dist/index.js.map +0 -1
  39. package/dist/plugins/index.d.ts +0 -4907
  40. package/dist/plugins/index.js.map +0 -1
package/dist/zod.js ADDED
@@ -0,0 +1,1480 @@
1
+ import * as zod from "zod";
2
+
3
+ // src/gen/zod/authula-api.schemas.zod.ts
4
+ /**
5
+ * Generated by orval 🍺
6
+ * Do not edit manually.
7
+ * Authula API
8
+ * Authula API - An open-source authentication solution that scales with you.
9
+ * OpenAPI spec version: 0.1.0
10
+ */
11
+ const AcceptOrganizationInvitationQuery = zod.object({ redirectUrl: zod.string().nullish() });
12
+ const Account = zod.object({
13
+ accessToken: zod.string().nullish(),
14
+ accessTokenExpiresAt: zod.iso.datetime({ offset: true }).nullish(),
15
+ accountId: zod.string(),
16
+ createdAt: zod.iso.datetime({ offset: true }),
17
+ id: zod.string(),
18
+ idToken: zod.string().nullish(),
19
+ password: zod.string().nullish(),
20
+ providerId: zod.string(),
21
+ refreshToken: zod.string().nullish(),
22
+ refreshTokenExpiresAt: zod.iso.datetime({ offset: true }).nullish(),
23
+ scope: zod.string().nullish(),
24
+ updatedAt: zod.iso.datetime({ offset: true }),
25
+ userId: zod.string()
26
+ });
27
+ const AddOrganizationMemberRequest = zod.object({
28
+ role: zod.string(),
29
+ userId: zod.string()
30
+ });
31
+ const AddOrganizationTeamMemberRequest = zod.object({ memberId: zod.string() });
32
+ const AddRolePermissionRequest = zod.object({ permissionId: zod.string() });
33
+ const AddRolePermissionResponse = zod.object({ message: zod.string() });
34
+ const AdminSessionState = zod.object({
35
+ createdAt: zod.iso.datetime({ offset: true }),
36
+ impersonationExpiresAt: zod.iso.datetime({ offset: true }).nullish(),
37
+ impersonationReason: zod.string().nullish(),
38
+ impersonatorSessionId: zod.string().nullish(),
39
+ impersonatorUserId: zod.string().nullish(),
40
+ revokedAt: zod.iso.datetime({ offset: true }).nullish(),
41
+ revokedByUserId: zod.string().nullish(),
42
+ revokedReason: zod.string().nullish(),
43
+ sessionId: zod.string(),
44
+ updatedAt: zod.iso.datetime({ offset: true })
45
+ });
46
+ const Session = zod.object({
47
+ createdAt: zod.iso.datetime({ offset: true }),
48
+ expiresAt: zod.iso.datetime({ offset: true }),
49
+ id: zod.string(),
50
+ ipAddress: zod.string().nullish(),
51
+ token: zod.string(),
52
+ updatedAt: zod.iso.datetime({ offset: true }),
53
+ userAgent: zod.string().nullish(),
54
+ userId: zod.string()
55
+ });
56
+ const AdminUserSession = zod.object({
57
+ session: Session,
58
+ state: zod.union([zod.null(), AdminSessionState]).optional()
59
+ });
60
+ const AdminUserState = zod.object({
61
+ banned: zod.boolean(),
62
+ bannedAt: zod.iso.datetime({ offset: true }).nullish(),
63
+ bannedByUserId: zod.string().nullish(),
64
+ bannedReason: zod.string().nullish(),
65
+ bannedUntil: zod.iso.datetime({ offset: true }).nullish(),
66
+ createdAt: zod.iso.datetime({ offset: true }),
67
+ updatedAt: zod.iso.datetime({ offset: true }),
68
+ userId: zod.string()
69
+ });
70
+ const ApiKey = zod.object({
71
+ createdAt: zod.iso.datetime({ offset: true }),
72
+ enabled: zod.boolean(),
73
+ expiresAt: zod.iso.datetime({ offset: true }).nullish(),
74
+ id: zod.string(),
75
+ keyHash: zod.string(),
76
+ last: zod.string(),
77
+ lastRequestedAt: zod.iso.datetime({ offset: true }).nullish(),
78
+ metadata: zod.record(zod.string(), zod.unknown()).nullish(),
79
+ name: zod.string(),
80
+ ownerId: zod.string(),
81
+ ownerType: zod.string(),
82
+ permissions: zod.array(zod.string()).nullish(),
83
+ prefix: zod.string().nullish(),
84
+ rateLimitEnabled: zod.boolean(),
85
+ start: zod.string(),
86
+ updatedAt: zod.iso.datetime({ offset: true })
87
+ });
88
+ const AssignUserRoleRequest = zod.object({
89
+ expiresAt: zod.iso.datetime({ offset: true }).nullish(),
90
+ roleId: zod.string()
91
+ });
92
+ const AssignUserRoleResponse = zod.object({ message: zod.string() });
93
+ const AuthorizeResponse = zod.object({ authUrl: zod.string() });
94
+ const BanUserRequest = zod.object({
95
+ bannedUntil: zod.iso.datetime({ offset: true }).nullish(),
96
+ reason: zod.string().nullish()
97
+ });
98
+ const BanUserResponse = zod.object({ state: AdminUserState });
99
+ const User = zod.object({
100
+ createdAt: zod.iso.datetime({ offset: true }),
101
+ email: zod.string(),
102
+ emailVerified: zod.boolean(),
103
+ id: zod.string(),
104
+ image: zod.string().nullish(),
105
+ metadata: zod.record(zod.string(), zod.unknown()).nullish(),
106
+ name: zod.string(),
107
+ updatedAt: zod.iso.datetime({ offset: true })
108
+ });
109
+ const CallbackResponse = zod.object({
110
+ session: Session,
111
+ user: User
112
+ });
113
+ const ChangeEmailResponse = zod.object({ message: zod.string() });
114
+ const ChangePasswordRequest = zod.object({
115
+ password: zod.string(),
116
+ token: zod.string()
117
+ });
118
+ const ChangePasswordResponse = zod.object({ message: zod.string() });
119
+ const CheckUserPermissionsRequest = zod.object({ permissionKeys: zod.array(zod.string()) });
120
+ const CheckUserPermissionsResponse = zod.object({ hasPermissions: zod.boolean() });
121
+ const CreateAccountRequest = zod.object({
122
+ accessToken: zod.string().nullish(),
123
+ accessTokenExpiresAt: zod.iso.datetime({ offset: true }).nullish(),
124
+ accountId: zod.string(),
125
+ idToken: zod.string().nullish(),
126
+ password: zod.string().nullish(),
127
+ providerId: zod.string(),
128
+ refreshToken: zod.string().nullish(),
129
+ refreshTokenExpiresAt: zod.iso.datetime({ offset: true }).nullish(),
130
+ scope: zod.string().nullish()
131
+ });
132
+ const CreateAccountResponse = zod.object({ account: Account });
133
+ const CreateApiKeyRequest = zod.object({
134
+ enabled: zod.boolean().nullish(),
135
+ expiresAt: zod.iso.datetime({ offset: true }).nullish(),
136
+ metadata: zod.record(zod.string(), zod.unknown()).nullish(),
137
+ name: zod.string(),
138
+ ownerId: zod.string(),
139
+ ownerType: zod.string(),
140
+ permissions: zod.array(zod.string()).nullish(),
141
+ prefix: zod.string().nullish(),
142
+ rateLimitEnabled: zod.boolean().nullish(),
143
+ rateLimitMaxRequests: zod.int().nullish(),
144
+ rateLimitTimeWindow: zod.int().nullish()
145
+ });
146
+ const CreateApiKeyResponse = zod.object({
147
+ apiKey: ApiKey,
148
+ rawApiKey: zod.string()
149
+ });
150
+ const CreateOrganizationInvitationQuery = zod.object({ redirectUrl: zod.string().nullish() });
151
+ const CreateOrganizationInvitationRequest = zod.object({
152
+ email: zod.string(),
153
+ role: zod.string()
154
+ });
155
+ const CreateOrganizationRequest = zod.object({
156
+ logo: zod.string().nullish(),
157
+ metadata: zod.record(zod.string(), zod.unknown()).nullish(),
158
+ name: zod.string(),
159
+ role: zod.string(),
160
+ slug: zod.string().nullish()
161
+ });
162
+ const CreateOrganizationTeamRequest = zod.object({
163
+ description: zod.string().nullish(),
164
+ metadata: zod.record(zod.string(), zod.unknown()).nullish(),
165
+ name: zod.string(),
166
+ slug: zod.string().nullish()
167
+ });
168
+ const CreatePermissionRequest = zod.object({
169
+ description: zod.string().nullish(),
170
+ isSystem: zod.boolean().optional(),
171
+ key: zod.string()
172
+ });
173
+ const Permission = zod.object({
174
+ createdAt: zod.iso.datetime({ offset: true }),
175
+ description: zod.string().nullish(),
176
+ id: zod.string(),
177
+ isSystem: zod.boolean(),
178
+ key: zod.string(),
179
+ updatedAt: zod.iso.datetime({ offset: true })
180
+ });
181
+ const CreatePermissionResponse = zod.object({ permission: Permission });
182
+ const CreateRoleRequest = zod.object({
183
+ description: zod.string().nullish(),
184
+ isSystem: zod.boolean(),
185
+ name: zod.string(),
186
+ weight: zod.int().nullish()
187
+ });
188
+ const Role = zod.object({
189
+ createdAt: zod.iso.datetime({ offset: true }),
190
+ description: zod.string().nullish(),
191
+ id: zod.string(),
192
+ isSystem: zod.boolean(),
193
+ name: zod.string(),
194
+ updatedAt: zod.iso.datetime({ offset: true }),
195
+ weight: zod.int()
196
+ });
197
+ const CreateRoleResponse = zod.object({ role: Role });
198
+ const CreateSessionStateRequest = zod.object({
199
+ impersonationExpiresAt: zod.iso.datetime({ offset: true }).nullish(),
200
+ impersonationReason: zod.string().nullish(),
201
+ impersonatorUserId: zod.string().nullish(),
202
+ revoke: zod.boolean(),
203
+ revokedReason: zod.string().nullish()
204
+ });
205
+ const CreateUserRequest = zod.object({
206
+ email: zod.string(),
207
+ emailVerified: zod.boolean().nullish(),
208
+ image: zod.string().nullish(),
209
+ metadata: zod.record(zod.string(), zod.unknown()).nullish(),
210
+ name: zod.string()
211
+ });
212
+ const CreateUserResponse = zod.object({ user: User });
213
+ const CreateUserStateRequest = zod.object({
214
+ banned: zod.boolean(),
215
+ bannedReason: zod.string().nullish(),
216
+ bannedUntil: zod.iso.datetime({ offset: true }).nullish()
217
+ });
218
+ const DeleteAccountResponse = zod.object({ message: zod.string() });
219
+ const DeleteApiKeyResponse = zod.object({ message: zod.string() });
220
+ const DeleteOrganizationMemberResponse = zod.object({ message: zod.string() });
221
+ const DeleteOrganizationResponse = zod.object({ message: zod.string() });
222
+ const DeleteOrganizationTeamMemberResponse = zod.object({ message: zod.string() });
223
+ const DeleteOrganizationTeamResponse = zod.object({ message: zod.string() });
224
+ const DeletePermissionResponse = zod.object({ message: zod.string() });
225
+ const DeleteRoleResponse = zod.object({ message: zod.string() });
226
+ const DeleteSessionStateResponse = zod.object({ message: zod.string() });
227
+ const DeleteUserResponse = zod.object({ message: zod.string() });
228
+ const DeleteUserStateResponse = zod.object({ message: zod.string() });
229
+ const DisableResponse = zod.object({ message: zod.string() });
230
+ const EnableResponse = zod.object({
231
+ backupCodes: zod.array(zod.string()),
232
+ totpUri: zod.string()
233
+ });
234
+ const GenerateBackupCodesResponse = zod.object({ backupCodes: zod.array(zod.string()) });
235
+ const GetAccountByIDResponse = zod.object({ account: Account });
236
+ const GetAllApiKeysResponse = zod.object({
237
+ items: zod.array(ApiKey),
238
+ limit: zod.int(),
239
+ page: zod.int(),
240
+ total: zod.int()
241
+ });
242
+ const GetApiKeyResponse = zod.object({ apiKey: ApiKey });
243
+ const Impersonation = zod.object({
244
+ actorSessionId: zod.string().nullish(),
245
+ actorUserId: zod.string(),
246
+ createdAt: zod.iso.datetime({ offset: true }),
247
+ endedAt: zod.iso.datetime({ offset: true }).nullish(),
248
+ endedByUserId: zod.string().nullish(),
249
+ expiresAt: zod.iso.datetime({ offset: true }),
250
+ id: zod.string(),
251
+ impersonationSessionId: zod.string().nullish(),
252
+ reason: zod.string(),
253
+ startedAt: zod.iso.datetime({ offset: true }),
254
+ targetUserId: zod.string(),
255
+ updatedAt: zod.iso.datetime({ offset: true })
256
+ });
257
+ const GetImpersonationByIDResponse = zod.object({ impersonation: Impersonation });
258
+ const GetMeResponse = zod.object({
259
+ session: Session,
260
+ user: User
261
+ });
262
+ const OrganizationInvitationStatus = zod.enum([
263
+ "pending",
264
+ "accepted",
265
+ "rejected",
266
+ "revoked",
267
+ "expired"
268
+ ]).describe("The type of the invitation status");
269
+ const OrganizationInvitation = zod.object({
270
+ createdAt: zod.iso.datetime({ offset: true }),
271
+ email: zod.string(),
272
+ expiresAt: zod.iso.datetime({ offset: true }),
273
+ id: zod.string(),
274
+ inviterId: zod.string(),
275
+ organizationId: zod.string(),
276
+ role: zod.string(),
277
+ status: OrganizationInvitationStatus
278
+ });
279
+ const OrganizationSummary = zod.object({
280
+ id: zod.string(),
281
+ logo: zod.string().nullish(),
282
+ metadata: zod.record(zod.string(), zod.unknown()).nullish(),
283
+ name: zod.string(),
284
+ ownerId: zod.string(),
285
+ slug: zod.string()
286
+ });
287
+ const GetOrganizationInvitationResponse = zod.object({
288
+ invitation: OrganizationInvitation,
289
+ organization: OrganizationSummary
290
+ });
291
+ const GetSessionStateResponse = zod.object({ state: AdminSessionState });
292
+ const GetTOTPURIResponse = zod.object({ totpUri: zod.string() });
293
+ const GetUserByIDResponse = zod.object({ user: User });
294
+ const PermissionGrantSource = zod.object({
295
+ grantedAt: zod.iso.datetime({ offset: true }).nullish(),
296
+ grantedByUserId: zod.string().nullish(),
297
+ roleId: zod.string(),
298
+ roleName: zod.string()
299
+ });
300
+ const UserPermissionInfo = zod.object({
301
+ grantedAt: zod.iso.datetime({ offset: true }).nullish(),
302
+ grantedByUserId: zod.string().nullish(),
303
+ permissionDescription: zod.string().nullish(),
304
+ permissionId: zod.string(),
305
+ permissionKey: zod.string(),
306
+ sources: zod.array(PermissionGrantSource).nullish()
307
+ });
308
+ const GetUserPermissionsResponse = zod.object({ permissions: zod.array(UserPermissionInfo) });
309
+ const GetUserStateResponse = zod.object({ state: AdminUserState });
310
+ const Jwk = zod.object({
311
+ alg: zod.string().optional(),
312
+ crv: zod.string().optional(),
313
+ e: zod.string().optional(),
314
+ kid: zod.string().optional(),
315
+ kty: zod.string(),
316
+ n: zod.string().optional(),
317
+ use: zod.string().optional(),
318
+ x: zod.string().optional()
319
+ });
320
+ const Pagination = zod.object({
321
+ hasMore: zod.boolean(),
322
+ limit: zod.int(),
323
+ page: zod.int(),
324
+ total: zod.int(),
325
+ totalPages: zod.int()
326
+ });
327
+ const ListOrganizationInvitationsResponse = zod.object({
328
+ data: zod.array(GetOrganizationInvitationResponse),
329
+ pagination: Pagination
330
+ });
331
+ const OrganizationMemberResponse = zod.object({
332
+ createdAt: zod.iso.datetime({ offset: true }),
333
+ id: zod.string(),
334
+ organizationId: zod.string(),
335
+ role: zod.string(),
336
+ updatedAt: zod.iso.datetime({ offset: true }),
337
+ user: User
338
+ });
339
+ const ListOrganizationMembersResponse = zod.object({
340
+ data: zod.array(OrganizationMemberResponse),
341
+ pagination: Pagination
342
+ });
343
+ const OrganizationTeamMemberResponse = zod.object({
344
+ createdAt: zod.iso.datetime({ offset: true }),
345
+ id: zod.string(),
346
+ member: OrganizationMemberResponse,
347
+ teamId: zod.string()
348
+ });
349
+ const ListOrganizationTeamMembersResponse = zod.object({
350
+ data: zod.array(OrganizationTeamMemberResponse),
351
+ pagination: Pagination
352
+ });
353
+ const OrganizationTeam = zod.object({
354
+ createdAt: zod.iso.datetime({ offset: true }),
355
+ description: zod.string().nullish(),
356
+ id: zod.string(),
357
+ metadata: zod.record(zod.string(), zod.unknown()).nullish(),
358
+ name: zod.string(),
359
+ organizationId: zod.string(),
360
+ slug: zod.string(),
361
+ updatedAt: zod.iso.datetime({ offset: true })
362
+ });
363
+ const ListOrganizationTeamsResponse = zod.object({
364
+ data: zod.array(OrganizationTeam),
365
+ pagination: Pagination
366
+ });
367
+ const Organization = zod.object({
368
+ createdAt: zod.iso.datetime({ offset: true }),
369
+ deletedAt: zod.iso.datetime({ offset: true }).nullish(),
370
+ id: zod.string(),
371
+ logo: zod.string().nullish(),
372
+ metadata: zod.record(zod.string(), zod.unknown()).nullish(),
373
+ name: zod.string(),
374
+ ownerId: zod.string(),
375
+ slug: zod.string(),
376
+ updatedAt: zod.iso.datetime({ offset: true })
377
+ });
378
+ const ListOrganizationsResponse = zod.object({
379
+ data: zod.array(Organization),
380
+ pagination: Pagination
381
+ });
382
+ const MagicLinkExchangeRequest = zod.object({ token: zod.string() });
383
+ const MagicLinkExchangeResponse = zod.object({
384
+ session: Session,
385
+ user: User
386
+ });
387
+ const MagicLinkSignInRequest = zod.object({
388
+ callbackUrl: zod.string().nullish(),
389
+ email: zod.string(),
390
+ name: zod.string().nullish()
391
+ });
392
+ const MagicLinkSignInResponse = zod.object({ message: zod.string() });
393
+ const MagicLinkVerifyResponse = zod.object({
394
+ message: zod.string(),
395
+ token: zod.string().optional()
396
+ });
397
+ const OrganizationMember = zod.object({
398
+ createdAt: zod.iso.datetime({ offset: true }),
399
+ id: zod.string(),
400
+ organizationId: zod.string(),
401
+ role: zod.string(),
402
+ updatedAt: zod.iso.datetime({ offset: true }),
403
+ userId: zod.string()
404
+ });
405
+ const OrganizationTeamMember = zod.object({
406
+ createdAt: zod.iso.datetime({ offset: true }),
407
+ id: zod.string(),
408
+ memberId: zod.string(),
409
+ teamId: zod.string()
410
+ });
411
+ const RefreshTokenRequest = zod.object({ refreshToken: zod.string() });
412
+ const RefreshTokenResponse = zod.object({
413
+ accessToken: zod.string(),
414
+ refreshToken: zod.string()
415
+ });
416
+ const RemoveRolePermissionResponse = zod.object({ message: zod.string() });
417
+ const RemoveUserRoleResponse = zod.object({ message: zod.string() });
418
+ const ReplaceRolePermissionResponse = zod.object({ message: zod.string() });
419
+ const ReplaceRolePermissionsRequest = zod.object({ permissionIds: zod.array(zod.string()) });
420
+ const ReplaceUserRolesRequest = zod.object({ roleIds: zod.array(zod.string()) });
421
+ const ReplaceUserRolesResponse = zod.object({ message: zod.string() });
422
+ const RequestEmailChangeRequest = zod.object({
423
+ callbackUrl: zod.string().nullish(),
424
+ newEmail: zod.string()
425
+ });
426
+ const RequestPasswordResetRequest = zod.object({
427
+ callbackUrl: zod.string().nullish(),
428
+ email: zod.string()
429
+ });
430
+ const RevokeSessionRequest = zod.object({ reason: zod.string().nullish() });
431
+ const RevokeSessionResponse = zod.object({ state: AdminSessionState });
432
+ const RoleDetails = zod.object({
433
+ permissions: zod.array(UserPermissionInfo),
434
+ role: Role
435
+ });
436
+ const SendEmailVerificationRequest = zod.object({ callbackUrl: zod.string().nullish() });
437
+ const SignInRequest = zod.object({
438
+ callbackUrl: zod.string().nullish(),
439
+ email: zod.string(),
440
+ password: zod.string()
441
+ });
442
+ const SignInResponse = zod.object({
443
+ session: Session,
444
+ user: User
445
+ });
446
+ const SignOutRequest = zod.object({
447
+ sessionId: zod.string().nullish(),
448
+ signOutAll: zod.boolean().nullish()
449
+ });
450
+ const SignOutResponse = zod.object({ message: zod.string() });
451
+ const SignUpRequest = zod.object({
452
+ callbackUrl: zod.string().nullish(),
453
+ email: zod.string(),
454
+ image: zod.string().nullish(),
455
+ metadata: zod.record(zod.string(), zod.unknown()).nullish(),
456
+ name: zod.string(),
457
+ password: zod.string()
458
+ });
459
+ const SignUpResponse = zod.object({
460
+ session: Session,
461
+ user: User
462
+ });
463
+ const StartImpersonationRequest = zod.object({
464
+ expiresInSeconds: zod.int().nullish(),
465
+ reason: zod.string(),
466
+ targetUserId: zod.string()
467
+ });
468
+ const StartImpersonationResponse = zod.object({ impersonation: Impersonation });
469
+ const StopImpersonationResponse = zod.object({ message: zod.string() });
470
+ const UnbanUserResponse = zod.object({ state: AdminUserState });
471
+ const UpdateAccountRequest = zod.object({
472
+ accessToken: zod.string().nullish(),
473
+ accessTokenExpiresAt: zod.iso.datetime({ offset: true }).nullish(),
474
+ accountId: zod.string().nullish(),
475
+ idToken: zod.string().nullish(),
476
+ password: zod.string().nullish(),
477
+ providerId: zod.string().nullish(),
478
+ refreshToken: zod.string().nullish(),
479
+ refreshTokenExpiresAt: zod.iso.datetime({ offset: true }).nullish(),
480
+ scope: zod.string().nullish()
481
+ });
482
+ const UpdateAccountResponse = zod.object({ account: Account });
483
+ const UpdateApiKeyRequest = zod.object({
484
+ enabled: zod.boolean().nullish(),
485
+ expiresAt: zod.iso.datetime({ offset: true }).nullish(),
486
+ metadata: zod.record(zod.string(), zod.unknown()).nullish(),
487
+ name: zod.string().nullish(),
488
+ permissions: zod.array(zod.string()).nullish(),
489
+ rateLimitEnabled: zod.boolean().nullish(),
490
+ rateLimitMaxRequests: zod.int().nullish(),
491
+ rateLimitTimeWindow: zod.int().nullish()
492
+ });
493
+ const UpdateApiKeyResponse = zod.object({ apiKey: ApiKey });
494
+ const UpdateOrganizationMemberRequest = zod.object({ role: zod.string() });
495
+ const UpdateOrganizationRequest = zod.object({
496
+ logo: zod.string().nullish(),
497
+ metadata: zod.record(zod.string(), zod.unknown()).nullish(),
498
+ name: zod.string().nullish(),
499
+ slug: zod.string().nullish()
500
+ });
501
+ const UpdateOrganizationTeamRequest = zod.object({
502
+ description: zod.string().nullish(),
503
+ metadata: zod.record(zod.string(), zod.unknown()).nullish(),
504
+ name: zod.string(),
505
+ slug: zod.string().nullish()
506
+ });
507
+ const UpdatePermissionRequest = zod.object({ description: zod.string().nullish() });
508
+ const UpdatePermissionResponse = zod.object({ permission: Permission });
509
+ const UpdateRoleRequest = zod.object({
510
+ description: zod.string().nullish(),
511
+ name: zod.string().nullish(),
512
+ weight: zod.int().nullish()
513
+ });
514
+ const UpdateRoleResponse = zod.object({ role: Role });
515
+ const UpdateUserRequest = zod.object({
516
+ email: zod.string().nullish(),
517
+ emailVerified: zod.boolean().nullish(),
518
+ image: zod.string().nullish(),
519
+ metadata: zod.record(zod.string(), zod.unknown()).nullish(),
520
+ name: zod.string().nullish()
521
+ });
522
+ const UpdateUserResponse = zod.object({ user: User });
523
+ const UpsertSessionStateRequest = zod.object({
524
+ impersonationExpiresAt: zod.iso.datetime({ offset: true }).nullish(),
525
+ impersonationReason: zod.string().nullish(),
526
+ impersonatorUserId: zod.string().nullish(),
527
+ revoke: zod.boolean(),
528
+ revokedReason: zod.string().nullish()
529
+ });
530
+ const UpsertSessionStateResponse = zod.object({ state: AdminSessionState });
531
+ const UpsertUserStateRequest = zod.object({
532
+ banned: zod.boolean(),
533
+ bannedReason: zod.string().nullish(),
534
+ bannedUntil: zod.iso.datetime({ offset: true }).nullish()
535
+ });
536
+ const UpsertUserStateResponse = zod.object({ state: AdminUserState });
537
+ const UserAccountsResponse = zod.object({ accounts: zod.array(Account) });
538
+ const UserRoleInfo = zod.object({
539
+ assignedAt: zod.iso.datetime({ offset: true }).nullish(),
540
+ assignedByUserId: zod.string().nullish(),
541
+ expiresAt: zod.iso.datetime({ offset: true }).nullish(),
542
+ roleDescription: zod.string().nullish(),
543
+ roleId: zod.string(),
544
+ roleName: zod.string(),
545
+ roleWeight: zod.int()
546
+ });
547
+ const UsersPage = zod.object({
548
+ nextCursor: zod.string().nullish(),
549
+ users: zod.array(User)
550
+ });
551
+ const VerifyApiKeyRequest = zod.object({ key: zod.string() });
552
+ const VerifyApiKeyResponse = zod.object({ apiKey: ApiKey });
553
+ const VerifyBackupCodeRequest = zod.object({
554
+ code: zod.string(),
555
+ trustDevice: zod.boolean().optional()
556
+ });
557
+ const VerifyBackupCodeResponse = zod.object({
558
+ session: Session,
559
+ user: User
560
+ });
561
+ const VerifyTOTPRequest = zod.object({
562
+ code: zod.string(),
563
+ trustDevice: zod.boolean().optional()
564
+ });
565
+ const VerifyTOTPResponse = zod.object({
566
+ session: Session,
567
+ user: User
568
+ });
569
+ const WellKnownJWKSResponse = zod.object({ keys: zod.array(Jwk) });
570
+
571
+ // src/gen/zod/access-control/access-control.zod.ts
572
+ /**
573
+ * Generated by orval 🍺
574
+ * Do not edit manually.
575
+ * Authula API
576
+ * Authula API - An open-source authentication solution that scales with you.
577
+ * OpenAPI spec version: 0.1.0
578
+ */
579
+ /**
580
+ * Lists all permissions.
581
+ * @summary List permissions
582
+ */
583
+ const ListPermissionsResponseItem = Permission;
584
+ const ListPermissionsResponse = zod.array(ListPermissionsResponseItem);
585
+ /**
586
+ * Creates a new permission.
587
+ * @summary Create permission
588
+ */
589
+ const CreatePermissionBody = CreatePermissionRequest;
590
+ const CreatePermissionResponseSchema = CreatePermissionResponse;
591
+ /**
592
+ * Retrieves a permission by its key.
593
+ * @summary Get permission by key
594
+ */
595
+ const GetPermissionByKeyParams = zod.object({ permission_key: zod.string() });
596
+ const GetPermissionByKeyResponse = Permission;
597
+ /**
598
+ * Retrieves a permission by its ID.
599
+ * @summary Get permission by ID
600
+ */
601
+ const GetPermissionParams = zod.object({ permission_id: zod.string() });
602
+ const GetPermissionResponse = Permission;
603
+ /**
604
+ * Deletes a permission.
605
+ * @summary Delete permission
606
+ */
607
+ const DeletePermissionParams = zod.object({ permission_id: zod.string() });
608
+ const DeletePermissionResponseSchema = DeletePermissionResponse;
609
+ /**
610
+ * Updates a permission's description.
611
+ * @summary Update permission
612
+ */
613
+ const UpdatePermissionParams = zod.object({ permission_id: zod.string() });
614
+ const UpdatePermissionBody = UpdatePermissionRequest;
615
+ const UpdatePermissionResponseSchema = UpdatePermissionResponse;
616
+ /**
617
+ * Lists all roles.
618
+ * @summary List roles
619
+ */
620
+ const ListRolesResponseItem = Role;
621
+ const ListRolesResponse = zod.array(ListRolesResponseItem);
622
+ /**
623
+ * Creates a new role.
624
+ * @summary Create role
625
+ */
626
+ const CreateRoleBody = CreateRoleRequest;
627
+ const CreateRoleResponseSchema = CreateRoleResponse;
628
+ /**
629
+ * Retrieves a role by its name.
630
+ * @summary Get role by name
631
+ */
632
+ const GetRoleByNameParams = zod.object({ role_name: zod.string() });
633
+ const GetRoleByNameResponse = Role;
634
+ /**
635
+ * Retrieves a role by its ID, including its permissions.
636
+ * @summary Get role by ID
637
+ */
638
+ const GetRoleParams = zod.object({ role_id: zod.string() });
639
+ const GetRoleResponse = RoleDetails;
640
+ /**
641
+ * Deletes a role.
642
+ * @summary Delete role
643
+ */
644
+ const DeleteRoleParams = zod.object({ role_id: zod.string() });
645
+ const DeleteRoleResponseSchema = DeleteRoleResponse;
646
+ /**
647
+ * Updates a role's attributes.
648
+ * @summary Update role
649
+ */
650
+ const UpdateRoleParams = zod.object({ role_id: zod.string() });
651
+ const UpdateRoleBody = UpdateRoleRequest;
652
+ const UpdateRoleResponseSchema = UpdateRoleResponse;
653
+ /**
654
+ * Lists all permissions assigned to a role.
655
+ * @summary List role permissions
656
+ */
657
+ const ListRolePermissionsParams = zod.object({ role_id: zod.string() });
658
+ const ListRolePermissionsResponseItem = UserPermissionInfo;
659
+ const ListRolePermissionsResponse = zod.array(ListRolePermissionsResponseItem);
660
+ /**
661
+ * Replaces all permissions assigned to a role with a new set.
662
+ * @summary Replace role permissions
663
+ */
664
+ const ReplaceRolePermissionsParams = zod.object({ role_id: zod.string() });
665
+ const ReplaceRolePermissionsBody = ReplaceRolePermissionsRequest;
666
+ const ReplaceRolePermissionsResponse = ReplaceRolePermissionResponse;
667
+ /**
668
+ * Assigns a permission to a role.
669
+ * @summary Assign permission to role
670
+ */
671
+ const AddRolePermissionParams = zod.object({ role_id: zod.string() });
672
+ const AddRolePermissionBody = AddRolePermissionRequest;
673
+ const AddRolePermissionResponseSchema = AddRolePermissionResponse;
674
+ /**
675
+ * Removes a permission from a role.
676
+ * @summary Remove role permission
677
+ */
678
+ const RemoveRolePermissionParams = zod.object({
679
+ role_id: zod.string(),
680
+ permission_id: zod.string()
681
+ });
682
+ const RemoveRolePermissionResponseSchema = RemoveRolePermissionResponse;
683
+ /**
684
+ * Retrieves all permissions granted to a user through their roles.
685
+ * @summary Get user permissions
686
+ */
687
+ const GetUserPermissionsParams = zod.object({ user_id: zod.string() });
688
+ const GetUserPermissionsResponseSchema = GetUserPermissionsResponse;
689
+ /**
690
+ * Checks whether a user has all the specified permissions.
691
+ * @summary Check user permissions
692
+ */
693
+ const CheckUserPermissionsParams = zod.object({ user_id: zod.string() });
694
+ const CheckUserPermissionsBody = CheckUserPermissionsRequest;
695
+ const CheckUserPermissionsResponseSchema = CheckUserPermissionsResponse;
696
+ /**
697
+ * Lists all roles assigned to a user.
698
+ * @summary List user roles
699
+ */
700
+ const ListUserRolesParams = zod.object({ user_id: zod.string() });
701
+ const ListUserRolesResponseItem = UserRoleInfo;
702
+ const ListUserRolesResponse = zod.array(ListUserRolesResponseItem);
703
+ /**
704
+ * Replaces all roles assigned to a user with a new set.
705
+ * @summary Replace user roles
706
+ */
707
+ const ReplaceUserRolesParams = zod.object({ user_id: zod.string() });
708
+ const ReplaceUserRolesBody = ReplaceUserRolesRequest;
709
+ const ReplaceUserRolesResponseSchema = ReplaceUserRolesResponse;
710
+ /**
711
+ * Assigns a role to a user.
712
+ * @summary Assign role to user
713
+ */
714
+ const AssignUserRoleParams = zod.object({ user_id: zod.string() });
715
+ const AssignUserRoleBody = AssignUserRoleRequest;
716
+ const AssignUserRoleResponseSchema = AssignUserRoleResponse;
717
+ /**
718
+ * Removes a role from a user.
719
+ * @summary Remove user role
720
+ */
721
+ const RemoveUserRoleParams = zod.object({
722
+ user_id: zod.string(),
723
+ role_id: zod.string()
724
+ });
725
+ const RemoveUserRoleResponseSchema = RemoveUserRoleResponse;
726
+
727
+ // src/gen/zod/admin-accounts/admin-accounts.zod.ts
728
+ /**
729
+ * Generated by orval 🍺
730
+ * Do not edit manually.
731
+ * Authula API
732
+ * Authula API - An open-source authentication solution that scales with you.
733
+ * OpenAPI spec version: 0.1.0
734
+ */
735
+ /**
736
+ * Retrieves an account by its ID.
737
+ * @summary Get account by ID
738
+ */
739
+ const GetAccountParams = zod.object({ id: zod.string() });
740
+ const GetAccountResponse = GetAccountByIDResponse;
741
+ /**
742
+ * Deletes an account.
743
+ * @summary Delete account
744
+ */
745
+ const DeleteAccountParams = zod.object({ id: zod.string() });
746
+ const DeleteAccountResponseSchema = DeleteAccountResponse;
747
+ /**
748
+ * Updates an account's attributes.
749
+ * @summary Update account
750
+ */
751
+ const UpdateAccountParams = zod.object({ id: zod.string() });
752
+ const UpdateAccountBody = UpdateAccountRequest;
753
+ const UpdateAccountResponseSchema = UpdateAccountResponse;
754
+ /**
755
+ * Lists all accounts for a user.
756
+ * @summary List user accounts
757
+ */
758
+ const ListUserAccountsParams = zod.object({ user_id: zod.string() });
759
+ const ListUserAccountsResponse = UserAccountsResponse;
760
+ /**
761
+ * Creates a new account for a user.
762
+ * @summary Create account
763
+ */
764
+ const CreateAccountParams = zod.object({ user_id: zod.string() });
765
+ const CreateAccountBody = CreateAccountRequest;
766
+ const CreateAccountResponseSchema = CreateAccountResponse;
767
+
768
+ // src/gen/zod/admin-impersonation/admin-impersonation.zod.ts
769
+ /**
770
+ * Generated by orval 🍺
771
+ * Do not edit manually.
772
+ * Authula API
773
+ * Authula API - An open-source authentication solution that scales with you.
774
+ * OpenAPI spec version: 0.1.0
775
+ */
776
+ /**
777
+ * Lists all impersonations.
778
+ * @summary List impersonations
779
+ */
780
+ const ListImpersonationsResponseItem = Impersonation;
781
+ const ListImpersonationsResponse = zod.array(ListImpersonationsResponseItem);
782
+ /**
783
+ * Starts an impersonation session as a target user.
784
+ * @summary Start impersonation
785
+ */
786
+ const StartImpersonationBody = StartImpersonationRequest;
787
+ const StartImpersonationResponseSchema = StartImpersonationResponse;
788
+ /**
789
+ * Retrieves an impersonation by its ID.
790
+ * @summary Get impersonation by ID
791
+ */
792
+ const GetImpersonationParams = zod.object({ impersonation_id: zod.string() });
793
+ const GetImpersonationResponse = GetImpersonationByIDResponse;
794
+ /**
795
+ * Stops an impersonation session and restores the original session.
796
+ * @summary Stop impersonation
797
+ */
798
+ const StopImpersonationParams = zod.object({ impersonation_id: zod.string() });
799
+ const StopImpersonationResponseSchema = StopImpersonationResponse;
800
+
801
+ // src/gen/zod/admin-session-state/admin-session-state.zod.ts
802
+ /**
803
+ * Generated by orval 🍺
804
+ * Do not edit manually.
805
+ * Authula API
806
+ * Authula API - An open-source authentication solution that scales with you.
807
+ * OpenAPI spec version: 0.1.0
808
+ */
809
+ /**
810
+ * Lists all revoked session states.
811
+ * @summary List revoked session states
812
+ */
813
+ const ListRevokedSessionStatesResponseItem = AdminSessionState;
814
+ const ListRevokedSessionStatesResponse = zod.array(ListRevokedSessionStatesResponseItem);
815
+ /**
816
+ * Revokes a session.
817
+ * @summary Revoke session
818
+ */
819
+ const RevokeSessionParams = zod.object({ session_id: zod.string() });
820
+ const RevokeSessionBody = RevokeSessionRequest;
821
+ const RevokeSessionResponseSchema = RevokeSessionResponse;
822
+ /**
823
+ * Retrieves the state of a session.
824
+ * @summary Get session state
825
+ */
826
+ const GetSessionStateParams = zod.object({ session_id: zod.string() });
827
+ const GetSessionStateResponseSchema = GetSessionStateResponse;
828
+ /**
829
+ * Creates the state for a session.
830
+ * @summary Create session state
831
+ */
832
+ const CreateSessionStateParams = zod.object({ session_id: zod.string() });
833
+ const CreateSessionStateBody = CreateSessionStateRequest;
834
+ const CreateSessionStateResponse = UpsertSessionStateResponse;
835
+ /**
836
+ * Deletes the state of a session.
837
+ * @summary Delete session state
838
+ */
839
+ const DeleteSessionStateParams = zod.object({ session_id: zod.string() });
840
+ const DeleteSessionStateResponseSchema = DeleteSessionStateResponse;
841
+ /**
842
+ * Updates the state of a session.
843
+ * @summary Update session state
844
+ */
845
+ const UpdateSessionStateParams = zod.object({ session_id: zod.string() });
846
+ const UpdateSessionStateBody = UpsertSessionStateRequest;
847
+ const UpdateSessionStateResponse = UpsertSessionStateResponse;
848
+
849
+ // src/gen/zod/admin-user-state/admin-user-state.zod.ts
850
+ /**
851
+ * Generated by orval 🍺
852
+ * Do not edit manually.
853
+ * Authula API
854
+ * Authula API - An open-source authentication solution that scales with you.
855
+ * OpenAPI spec version: 0.1.0
856
+ */
857
+ /**
858
+ * Lists all banned user states.
859
+ * @summary List banned user states
860
+ */
861
+ const ListBannedUserStatesResponseItem = AdminUserState;
862
+ const ListBannedUserStatesResponse = zod.array(ListBannedUserStatesResponseItem);
863
+ /**
864
+ * Bans a user.
865
+ * @summary Ban user
866
+ */
867
+ const BanUserParams = zod.object({ user_id: zod.string() });
868
+ const BanUserBody = BanUserRequest;
869
+ const BanUserResponseSchema = BanUserResponse;
870
+ /**
871
+ * Lists all sessions for a user.
872
+ * @summary List user sessions
873
+ */
874
+ const ListUserSessionsParams = zod.object({ user_id: zod.string() });
875
+ const ListUserSessionsResponseItem = AdminUserSession;
876
+ const ListUserSessionsResponse = zod.array(ListUserSessionsResponseItem);
877
+ /**
878
+ * Retrieves the state of a user.
879
+ * @summary Get user state
880
+ */
881
+ const GetUserStateParams = zod.object({ user_id: zod.string() });
882
+ const GetUserStateResponseSchema = GetUserStateResponse;
883
+ /**
884
+ * Creates the state for a user.
885
+ * @summary Create user state
886
+ */
887
+ const CreateUserStateParams = zod.object({ user_id: zod.string() });
888
+ const CreateUserStateBody = CreateUserStateRequest;
889
+ const CreateUserStateResponse = UpsertUserStateResponse;
890
+ /**
891
+ * Deletes the state of a user.
892
+ * @summary Delete user state
893
+ */
894
+ const DeleteUserStateParams = zod.object({ user_id: zod.string() });
895
+ const DeleteUserStateResponseSchema = DeleteUserStateResponse;
896
+ /**
897
+ * Updates the state of a user.
898
+ * @summary Update user state
899
+ */
900
+ const UpdateUserStateParams = zod.object({ user_id: zod.string() });
901
+ const UpdateUserStateBody = UpsertUserStateRequest;
902
+ const UpdateUserStateResponse = UpsertUserStateResponse;
903
+ /**
904
+ * Unbans a user.
905
+ * @summary Unban user
906
+ */
907
+ const UnbanUserParams = zod.object({ user_id: zod.string() });
908
+ const UnbanUserResponseSchema = UnbanUserResponse;
909
+
910
+ // src/gen/zod/admin-users/admin-users.zod.ts
911
+ /**
912
+ * Generated by orval 🍺
913
+ * Do not edit manually.
914
+ * Authula API
915
+ * Authula API - An open-source authentication solution that scales with you.
916
+ * OpenAPI spec version: 0.1.0
917
+ */
918
+ /**
919
+ * Lists users with cursor-based pagination.
920
+ * @summary List users
921
+ */
922
+ const ListUsersQueryParams = zod.object({
923
+ cursor: zod.string().nullish(),
924
+ limit: zod.int().nullish()
925
+ });
926
+ const ListUsersResponse = UsersPage;
927
+ /**
928
+ * Creates a new user with the specified attributes.
929
+ * @summary Create user
930
+ */
931
+ const CreateUserBody = CreateUserRequest;
932
+ const CreateUserResponseSchema = CreateUserResponse;
933
+ /**
934
+ * Retrieves a user by their ID.
935
+ * @summary Get user by ID
936
+ */
937
+ const GetUserParams = zod.object({ user_id: zod.string() });
938
+ const GetUserResponse = GetUserByIDResponse;
939
+ /**
940
+ * Deletes a user.
941
+ * @summary Delete user
942
+ */
943
+ const DeleteUserParams = zod.object({ user_id: zod.string() });
944
+ const DeleteUserResponseSchema = DeleteUserResponse;
945
+ /**
946
+ * Updates a user's attributes.
947
+ * @summary Update user
948
+ */
949
+ const UpdateUserParams = zod.object({ user_id: zod.string() });
950
+ const UpdateUserBody = UpdateUserRequest;
951
+ const UpdateUserResponseSchema = UpdateUserResponse;
952
+
953
+ // src/gen/zod/api-keys/api-keys.zod.ts
954
+ /**
955
+ * Generated by orval 🍺
956
+ * Do not edit manually.
957
+ * Authula API
958
+ * Authula API - An open-source authentication solution that scales with you.
959
+ * OpenAPI spec version: 0.1.0
960
+ */
961
+ /**
962
+ * Lists API keys with pagination, optionally filtered by owner.
963
+ * @summary List API keys
964
+ */
965
+ const ListApiKeysQueryParams = zod.object({
966
+ ownerType: zod.string().nullish(),
967
+ ownerId: zod.string().nullish(),
968
+ page: zod.int().nullish(),
969
+ limit: zod.int().nullish()
970
+ });
971
+ const ListApiKeysResponse = GetAllApiKeysResponse;
972
+ /**
973
+ * Creates a new API key for the specified owner.
974
+ * @summary Create API key
975
+ */
976
+ const CreateApiKeyBody = CreateApiKeyRequest;
977
+ const CreateApiKeyResponseSchema = CreateApiKeyResponse;
978
+ /**
979
+ * Verifies an API key by its raw value and returns the associated key details.
980
+ * @summary Verify API key
981
+ */
982
+ const VerifyApiKeyBody = VerifyApiKeyRequest;
983
+ const VerifyApiKeyResponseSchema = VerifyApiKeyResponse;
984
+ /**
985
+ * Retrieves an API key by its ID.
986
+ * @summary Get API key by ID
987
+ */
988
+ const GetApiKeyParams = zod.object({ id: zod.string() });
989
+ const GetApiKeyResponseSchema = GetApiKeyResponse;
990
+ /**
991
+ * Deletes an API key.
992
+ * @summary Delete API key
993
+ */
994
+ const DeleteApiKeyParams = zod.object({ id: zod.string() });
995
+ const DeleteApiKeyResponseSchema = DeleteApiKeyResponse;
996
+ /**
997
+ * Updates an API key's attributes.
998
+ * @summary Update API key
999
+ */
1000
+ const UpdateApiKeyParams = zod.object({ id: zod.string() });
1001
+ const UpdateApiKeyBody = UpdateApiKeyRequest;
1002
+ const UpdateApiKeyResponseSchema = UpdateApiKeyResponse;
1003
+
1004
+ // src/gen/zod/core/core.zod.ts
1005
+ /**
1006
+ * Generated by orval 🍺
1007
+ * Do not edit manually.
1008
+ * Authula API
1009
+ * Authula API - An open-source authentication solution that scales with you.
1010
+ * OpenAPI spec version: 0.1.0
1011
+ */
1012
+ /**
1013
+ * Retrieves the authenticated user's profile and current session.
1014
+ * @summary Get current user
1015
+ */
1016
+ const GetMeResponseSchema = GetMeResponse;
1017
+ /**
1018
+ * Signs out the authenticated user. With no body, revokes the session that authenticated the request (400 if the request carries no session id). Pass session_id to revoke one of your own sessions (404 if it does not exist, 403 if it belongs to another user), or sign_out_all to revoke every session.
1019
+ * @summary Sign out
1020
+ */
1021
+ const SignOutBody = SignOutRequest;
1022
+ const SignOutResponseSchema = SignOutResponse;
1023
+
1024
+ // src/gen/zod/email-password-plugin/email-password-plugin.zod.ts
1025
+ /**
1026
+ * Generated by orval 🍺
1027
+ * Do not edit manually.
1028
+ * Authula API
1029
+ * Authula API - An open-source authentication solution that scales with you.
1030
+ * OpenAPI spec version: 0.1.0
1031
+ */
1032
+ /**
1033
+ * Changes the user's password using a reset token
1034
+ * @summary Change password
1035
+ */
1036
+ const ChangePasswordBody = ChangePasswordRequest;
1037
+ const ChangePasswordResponseSchema = ChangePasswordResponse;
1038
+ /**
1039
+ * Requests to change the authenticated user's email address
1040
+ * @summary Request email change
1041
+ */
1042
+ const RequestEmailChangeBody = RequestEmailChangeRequest;
1043
+ const RequestEmailChangeResponse = ChangeEmailResponse;
1044
+ /**
1045
+ * Requests a password reset link to be sent to the user's email
1046
+ * @summary Request password reset
1047
+ */
1048
+ const RequestPasswordResetBody = RequestPasswordResetRequest;
1049
+ const RequestPasswordResetResponse = ChangePasswordResponse;
1050
+ /**
1051
+ * Sends a verification email to the authenticated user
1052
+ * @summary Send email verification
1053
+ */
1054
+ const SendEmailVerificationBody = SendEmailVerificationRequest;
1055
+ const SendEmailVerificationResponse = ChangePasswordResponse;
1056
+ /**
1057
+ * Authenticates a user with email and password
1058
+ * @summary Sign in
1059
+ */
1060
+ const SignInBody = SignInRequest;
1061
+ const SignInResponseSchema = SignInResponse;
1062
+ /**
1063
+ * Registers a new user with email and password
1064
+ * @summary Register new user
1065
+ */
1066
+ const SignUpBody = SignUpRequest;
1067
+ const SignUpResponseSchema = SignUpResponse;
1068
+ /**
1069
+ * Verifies an email address or processes a password reset token using a verification token
1070
+ * @summary Verify email
1071
+ */
1072
+ const VerifyEmailResponse = ChangePasswordResponse;
1073
+
1074
+ // src/gen/zod/jwt-plugin/jwt-plugin.zod.ts
1075
+ /**
1076
+ * Generated by orval 🍺
1077
+ * Do not edit manually.
1078
+ * Authula API
1079
+ * Authula API - An open-source authentication solution that scales with you.
1080
+ * OpenAPI spec version: 0.1.0
1081
+ */
1082
+ /**
1083
+ * Returns the JSON Web Key Set (JWKS) containing the public keys used to verify JWT signatures.
1084
+ * @summary Get JWKS
1085
+ */
1086
+ const GetJWKSResponse = WellKnownJWKSResponse;
1087
+ /**
1088
+ * Exchanges a valid refresh token for a new access token and refresh token pair.
1089
+ * @summary Refresh JWT token
1090
+ */
1091
+ const RefreshTokenBody = RefreshTokenRequest;
1092
+ const RefreshTokenResponseSchema = RefreshTokenResponse;
1093
+
1094
+ // src/gen/zod/magic-link-plugin/magic-link-plugin.zod.ts
1095
+ /**
1096
+ * Generated by orval 🍺
1097
+ * Do not edit manually.
1098
+ * Authula API
1099
+ * Authula API - An open-source authentication solution that scales with you.
1100
+ * OpenAPI spec version: 0.1.0
1101
+ */
1102
+ /**
1103
+ * Exchanges a verified magic link token for an authenticated user session.
1104
+ * @summary Exchange magic link token for session
1105
+ */
1106
+ const ExchangeMagicLinkBody = MagicLinkExchangeRequest;
1107
+ const ExchangeMagicLinkResponse = MagicLinkExchangeResponse;
1108
+ /**
1109
+ * Sends a magic link to the given email address if an account exists. Optionally creates a new account if sign-up is enabled.
1110
+ * @summary Sign in with magic link
1111
+ */
1112
+ const SignInWithMagicLinkBody = MagicLinkSignInRequest;
1113
+ const SignInWithMagicLinkResponse = MagicLinkSignInResponse;
1114
+ /**
1115
+ * Verifies a magic link token. If a callback_url is provided and trusted, redirects the user with an exchange token appended. Otherwise returns the exchange token in the JSON response.
1116
+ * @summary Verify magic link token
1117
+ */
1118
+ const VerifyMagicLinkQueryParams = zod.object({
1119
+ token: zod.string(),
1120
+ callbackUrl: zod.string().optional()
1121
+ });
1122
+ const VerifyMagicLinkResponse = MagicLinkVerifyResponse;
1123
+
1124
+ // src/gen/zod/oauth2-plugin/oauth2-plugin.zod.ts
1125
+ /**
1126
+ * Generated by orval 🍺
1127
+ * Do not edit manually.
1128
+ * Authula API
1129
+ * Authula API - An open-source authentication solution that scales with you.
1130
+ * OpenAPI spec version: 0.1.0
1131
+ */
1132
+ /**
1133
+ * Initiates the OAuth2 authorization flow with the specified provider. Returns the provider's authorization URL to redirect the user to.
1134
+ * @summary Authorize with OAuth2 provider
1135
+ */
1136
+ const OauthAuthorizeParams = zod.object({ provider: zod.string() });
1137
+ const OauthAuthorizeQueryParams = zod.object({ redirectTo: zod.string().optional() });
1138
+ const OauthAuthorizeResponse = AuthorizeResponse;
1139
+ /**
1140
+ * Handles the OAuth2 callback from the provider. Exchanges the authorization code for tokens, creates or links a user account, and returns the authenticated user and session.
1141
+ * @summary OAuth2 callback
1142
+ */
1143
+ const OauthCallbackParams = zod.object({ provider: zod.string() });
1144
+ const OauthCallbackQueryParams = zod.object({
1145
+ code: zod.string(),
1146
+ state: zod.string(),
1147
+ error: zod.string().optional()
1148
+ });
1149
+ const OauthCallbackResponse = CallbackResponse;
1150
+
1151
+ // src/gen/zod/organization-invitations/organization-invitations.zod.ts
1152
+ /**
1153
+ * Generated by orval 🍺
1154
+ * Do not edit manually.
1155
+ * Authula API
1156
+ * Authula API - An open-source authentication solution that scales with you.
1157
+ * OpenAPI spec version: 0.1.0
1158
+ */
1159
+ /**
1160
+ * Lists the invitations for an organization, newest first. Results are paginated: `page` defaults to 1 and `limit` defaults to 10. `limit` is capped by the server's configured maximum page size, which defaults to 100; a larger value is silently reduced to the cap rather than rejected, and values below the minimum fall back to the defaults. The `pagination` object in the response always reports the values actually applied.
1161
+ * @summary List invitations
1162
+ */
1163
+ const ListOrganizationInvitationsParams = zod.object({ organization_id: zod.string() });
1164
+ const listOrganizationInvitationsQueryPageDefault = 1;
1165
+ const listOrganizationInvitationsQueryLimitDefault = 10;
1166
+ const ListOrganizationInvitationsQueryParams = zod.object({
1167
+ page: zod.int().default(1),
1168
+ limit: zod.int().default(10)
1169
+ });
1170
+ const ListOrganizationInvitationsResponseSchema = ListOrganizationInvitationsResponse;
1171
+ /**
1172
+ * Creates an invitation for a user to join an organization.
1173
+ * @summary Create invitation
1174
+ */
1175
+ const CreateOrganizationInvitationParams = zod.object({ organization_id: zod.string() });
1176
+ const CreateOrganizationInvitationQueryParams = zod.object({ redirectUrl: zod.string().optional() });
1177
+ const CreateOrganizationInvitationBody = CreateOrganizationInvitationRequest;
1178
+ const CreateOrganizationInvitationResponse = OrganizationInvitation;
1179
+ /**
1180
+ * Retrieves a single invitation.
1181
+ * @summary Get invitation
1182
+ */
1183
+ const GetOrganizationInvitationParams = zod.object({
1184
+ organization_id: zod.string(),
1185
+ invitation_id: zod.string()
1186
+ });
1187
+ const GetOrganizationInvitationResponseSchema = GetOrganizationInvitationResponse;
1188
+ /**
1189
+ * Accepts an invitation to join an organization.
1190
+ * @summary Accept invitation
1191
+ */
1192
+ const AcceptOrganizationInvitationParams = zod.object({
1193
+ organization_id: zod.string(),
1194
+ invitation_id: zod.string()
1195
+ });
1196
+ const AcceptOrganizationInvitationQueryParams = zod.object({ redirectUrl: zod.string().optional() });
1197
+ const AcceptOrganizationInvitationBody = AcceptOrganizationInvitationQuery;
1198
+ const AcceptOrganizationInvitationResponse = OrganizationInvitation;
1199
+ /**
1200
+ * Rejects an invitation to join an organization.
1201
+ * @summary Reject invitation
1202
+ */
1203
+ const RejectOrganizationInvitationParams = zod.object({
1204
+ organization_id: zod.string(),
1205
+ invitation_id: zod.string()
1206
+ });
1207
+ const RejectOrganizationInvitationResponse = OrganizationInvitation;
1208
+ /**
1209
+ * Revokes a pending invitation.
1210
+ * @summary Revoke invitation
1211
+ */
1212
+ const RevokeOrganizationInvitationParams = zod.object({
1213
+ organization_id: zod.string(),
1214
+ invitation_id: zod.string()
1215
+ });
1216
+ const RevokeOrganizationInvitationResponse = OrganizationInvitation;
1217
+
1218
+ // src/gen/zod/organization-members/organization-members.zod.ts
1219
+ /**
1220
+ * Generated by orval 🍺
1221
+ * Do not edit manually.
1222
+ * Authula API
1223
+ * Authula API - An open-source authentication solution that scales with you.
1224
+ * OpenAPI spec version: 0.1.0
1225
+ */
1226
+ /**
1227
+ * Lists the members of an organization, newest first. Results are paginated: `page` defaults to 1 and `limit` defaults to 10. `limit` is capped by the server's configured maximum page size, which defaults to 100; a larger value is silently reduced to the cap rather than rejected, and values below the minimum fall back to the defaults. The `pagination` object in the response always reports the values actually applied.
1228
+ * @summary List members
1229
+ */
1230
+ const ListOrganizationMembersParams = zod.object({ organization_id: zod.string() });
1231
+ const listOrganizationMembersQueryPageDefault = 1;
1232
+ const listOrganizationMembersQueryLimitDefault = 10;
1233
+ const ListOrganizationMembersQueryParams = zod.object({
1234
+ page: zod.int().default(1),
1235
+ limit: zod.int().default(10)
1236
+ });
1237
+ const ListOrganizationMembersResponseSchema = ListOrganizationMembersResponse;
1238
+ /**
1239
+ * Adds a user as a member of an organization with the specified role.
1240
+ * @summary Add member
1241
+ */
1242
+ const AddOrganizationMemberParams = zod.object({ organization_id: zod.string() });
1243
+ const AddOrganizationMemberBody = AddOrganizationMemberRequest;
1244
+ const AddOrganizationMemberResponse = OrganizationMember;
1245
+ /**
1246
+ * Retrieves an organization member by the user's ID with nested user data.
1247
+ * @summary Get member by user ID
1248
+ */
1249
+ const GetOrganizationMemberByUserIDParams = zod.object({
1250
+ organization_id: zod.string(),
1251
+ user_id: zod.string()
1252
+ });
1253
+ const GetOrganizationMemberByUserIDResponse = OrganizationMemberResponse;
1254
+ /**
1255
+ * Retrieves a single organization member by ID with nested user data.
1256
+ * @summary Get member
1257
+ */
1258
+ const GetOrganizationMemberParams = zod.object({
1259
+ organization_id: zod.string(),
1260
+ member_id: zod.string()
1261
+ });
1262
+ const GetOrganizationMemberResponse = OrganizationMemberResponse;
1263
+ /**
1264
+ * Removes a member from an organization.
1265
+ * @summary Delete member
1266
+ */
1267
+ const DeleteOrganizationMemberParams = zod.object({
1268
+ organization_id: zod.string(),
1269
+ member_id: zod.string()
1270
+ });
1271
+ const DeleteOrganizationMemberResponseSchema = DeleteOrganizationMemberResponse;
1272
+ /**
1273
+ * Updates the role of an organization member.
1274
+ * @summary Update member
1275
+ */
1276
+ const UpdateOrganizationMemberParams = zod.object({
1277
+ organization_id: zod.string(),
1278
+ member_id: zod.string()
1279
+ });
1280
+ const UpdateOrganizationMemberBody = UpdateOrganizationMemberRequest;
1281
+ const UpdateOrganizationMemberResponse = OrganizationMember;
1282
+
1283
+ // src/gen/zod/organization-team-members/organization-team-members.zod.ts
1284
+ /**
1285
+ * Generated by orval 🍺
1286
+ * Do not edit manually.
1287
+ * Authula API
1288
+ * Authula API - An open-source authentication solution that scales with you.
1289
+ * OpenAPI spec version: 0.1.0
1290
+ */
1291
+ /**
1292
+ * Lists the members of a team, newest first. Results are paginated: `page` defaults to 1 and `limit` defaults to 10. `limit` is capped by the server's configured maximum page size, which defaults to 100; a larger value is silently reduced to the cap rather than rejected, and values below the minimum fall back to the defaults. The `pagination` object in the response always reports the values actually applied.
1293
+ * @summary List team members
1294
+ */
1295
+ const ListOrganizationTeamMembersParams = zod.object({
1296
+ organization_id: zod.string(),
1297
+ team_id: zod.string()
1298
+ });
1299
+ const listOrganizationTeamMembersQueryPageDefault = 1;
1300
+ const listOrganizationTeamMembersQueryLimitDefault = 10;
1301
+ const ListOrganizationTeamMembersQueryParams = zod.object({
1302
+ page: zod.int().default(1),
1303
+ limit: zod.int().default(10)
1304
+ });
1305
+ const ListOrganizationTeamMembersResponseSchema = ListOrganizationTeamMembersResponse;
1306
+ /**
1307
+ * Adds a member to a team.
1308
+ * @summary Add team member
1309
+ */
1310
+ const AddOrganizationTeamMemberParams = zod.object({
1311
+ organization_id: zod.string(),
1312
+ team_id: zod.string()
1313
+ });
1314
+ const AddOrganizationTeamMemberBody = AddOrganizationTeamMemberRequest;
1315
+ const AddOrganizationTeamMemberResponse = OrganizationTeamMember;
1316
+ /**
1317
+ * Retrieves a single team member by ID with nested member and user data.
1318
+ * @summary Get team member
1319
+ */
1320
+ const GetOrganizationTeamMemberParams = zod.object({
1321
+ organization_id: zod.string(),
1322
+ team_id: zod.string(),
1323
+ member_id: zod.string()
1324
+ });
1325
+ const GetOrganizationTeamMemberResponse = OrganizationTeamMemberResponse;
1326
+ /**
1327
+ * Removes a member from a team.
1328
+ * @summary Delete team member
1329
+ */
1330
+ const DeleteOrganizationTeamMemberParams = zod.object({
1331
+ organization_id: zod.string(),
1332
+ team_id: zod.string(),
1333
+ member_id: zod.string()
1334
+ });
1335
+ const DeleteOrganizationTeamMemberResponseSchema = DeleteOrganizationTeamMemberResponse;
1336
+
1337
+ // src/gen/zod/organization-teams/organization-teams.zod.ts
1338
+ /**
1339
+ * Generated by orval 🍺
1340
+ * Do not edit manually.
1341
+ * Authula API
1342
+ * Authula API - An open-source authentication solution that scales with you.
1343
+ * OpenAPI spec version: 0.1.0
1344
+ */
1345
+ /**
1346
+ * Lists the teams within an organization, newest first. Results are paginated: `page` defaults to 1 and `limit` defaults to 10. `limit` is capped by the server's configured maximum page size, which defaults to 100; a larger value is silently reduced to the cap rather than rejected, and values below the minimum fall back to the defaults. The `pagination` object in the response always reports the values actually applied.
1347
+ * @summary List teams
1348
+ */
1349
+ const ListOrganizationTeamsParams = zod.object({ organization_id: zod.string() });
1350
+ const listOrganizationTeamsQueryPageDefault = 1;
1351
+ const listOrganizationTeamsQueryLimitDefault = 10;
1352
+ const ListOrganizationTeamsQueryParams = zod.object({
1353
+ page: zod.int().default(1),
1354
+ limit: zod.int().default(10)
1355
+ });
1356
+ const ListOrganizationTeamsResponseSchema = ListOrganizationTeamsResponse;
1357
+ /**
1358
+ * Creates a new team within an organization.
1359
+ * @summary Create team
1360
+ */
1361
+ const CreateOrganizationTeamParams = zod.object({ organization_id: zod.string() });
1362
+ const CreateOrganizationTeamBody = CreateOrganizationTeamRequest;
1363
+ const CreateOrganizationTeamResponse = OrganizationTeam;
1364
+ /**
1365
+ * Retrieves a single team by its ID.
1366
+ * @summary Get team
1367
+ */
1368
+ const GetOrganizationTeamParams = zod.object({
1369
+ organization_id: zod.string(),
1370
+ team_id: zod.string()
1371
+ });
1372
+ const GetOrganizationTeamResponse = OrganizationTeam;
1373
+ /**
1374
+ * Deletes a team.
1375
+ * @summary Delete team
1376
+ */
1377
+ const DeleteOrganizationTeamParams = zod.object({
1378
+ organization_id: zod.string(),
1379
+ team_id: zod.string()
1380
+ });
1381
+ const DeleteOrganizationTeamResponseSchema = DeleteOrganizationTeamResponse;
1382
+ /**
1383
+ * Updates an existing team.
1384
+ * @summary Update team
1385
+ */
1386
+ const UpdateOrganizationTeamParams = zod.object({
1387
+ organization_id: zod.string(),
1388
+ team_id: zod.string()
1389
+ });
1390
+ const UpdateOrganizationTeamBody = UpdateOrganizationTeamRequest;
1391
+ const UpdateOrganizationTeamResponse = OrganizationTeam;
1392
+
1393
+ // src/gen/zod/organizations/organizations.zod.ts
1394
+ /**
1395
+ * Generated by orval 🍺
1396
+ * Do not edit manually.
1397
+ * Authula API
1398
+ * Authula API - An open-source authentication solution that scales with you.
1399
+ * OpenAPI spec version: 0.1.0
1400
+ */
1401
+ /**
1402
+ * Lists every organization the authenticated user can access.
1403
+ * @summary List organizations
1404
+ */
1405
+ const listOrganizationsQueryPageDefault = 1;
1406
+ const listOrganizationsQueryLimitDefault = 10;
1407
+ const ListOrganizationsQueryParams = zod.object({
1408
+ page: zod.int().default(1),
1409
+ limit: zod.int().default(10)
1410
+ });
1411
+ const ListOrganizationsResponseSchema = ListOrganizationsResponse;
1412
+ /**
1413
+ * Creates a new organization with the authenticated user as the owner.
1414
+ * @summary Create organization
1415
+ */
1416
+ const CreateOrganizationBody = CreateOrganizationRequest;
1417
+ const CreateOrganizationResponse = Organization;
1418
+ /**
1419
+ * Retrieves an organization by its ID.
1420
+ * @summary Get organization
1421
+ */
1422
+ const GetOrganizationParams = zod.object({ organization_id: zod.string() });
1423
+ const GetOrganizationResponse = Organization;
1424
+ /**
1425
+ * Soft-deletes an organization.
1426
+ * @summary Delete organization
1427
+ */
1428
+ const DeleteOrganizationParams = zod.object({ organization_id: zod.string() });
1429
+ const DeleteOrganizationResponseSchema = DeleteOrganizationResponse;
1430
+ /**
1431
+ * Updates an existing organization.
1432
+ * @summary Update organization
1433
+ */
1434
+ const UpdateOrganizationParams = zod.object({ organization_id: zod.string() });
1435
+ const UpdateOrganizationBody = UpdateOrganizationRequest;
1436
+ const UpdateOrganizationResponse = Organization;
1437
+
1438
+ // src/gen/zod/totp-plugin/totp-plugin.zod.ts
1439
+ /**
1440
+ * Generated by orval 🍺
1441
+ * Do not edit manually.
1442
+ * Authula API
1443
+ * Authula API - An open-source authentication solution that scales with you.
1444
+ * OpenAPI spec version: 0.1.0
1445
+ */
1446
+ /**
1447
+ * Disables TOTP two-factor authentication for the authenticated user.
1448
+ * @summary Disable TOTP
1449
+ */
1450
+ const DisableTotpResponse = DisableResponse;
1451
+ /**
1452
+ * Enables TOTP two-factor authentication for the authenticated user. Returns the TOTP URI and backup codes.
1453
+ * @summary Enable TOTP
1454
+ */
1455
+ const EnableTotpResponse = EnableResponse;
1456
+ /**
1457
+ * Generates a new set of backup codes for the authenticated user. Previous backup codes are invalidated.
1458
+ * @summary Generate backup codes
1459
+ */
1460
+ const GenerateTotpBackupCodesResponse = GenerateBackupCodesResponse;
1461
+ /**
1462
+ * Returns the current TOTP URI for the authenticated user's authenticator app configuration.
1463
+ * @summary Get TOTP URI
1464
+ */
1465
+ const GetTotpURIResponse = GetTOTPURIResponse;
1466
+ /**
1467
+ * Verifies a TOTP code from the authenticator app and completes authentication. Requires a pending TOTP cookie set during sign-in.
1468
+ * @summary Verify TOTP code
1469
+ */
1470
+ const VerifyTotpBody = VerifyTOTPRequest;
1471
+ const VerifyTotpResponse = VerifyTOTPResponse;
1472
+ /**
1473
+ * Verifies a backup code as an alternative to TOTP verification. Completes authentication if the code is valid.
1474
+ * @summary Verify backup code
1475
+ */
1476
+ const VerifyTotpBackupCodeBody = VerifyBackupCodeRequest;
1477
+ const VerifyTotpBackupCodeResponse = VerifyBackupCodeResponse;
1478
+
1479
+ export { AcceptOrganizationInvitationBody, AcceptOrganizationInvitationParams, AcceptOrganizationInvitationQuery, AcceptOrganizationInvitationQueryParams, AcceptOrganizationInvitationResponse, Account, AddOrganizationMemberBody, AddOrganizationMemberParams, AddOrganizationMemberRequest, AddOrganizationMemberResponse, AddOrganizationTeamMemberBody, AddOrganizationTeamMemberParams, AddOrganizationTeamMemberRequest, AddOrganizationTeamMemberResponse, AddRolePermissionBody, AddRolePermissionParams, AddRolePermissionRequest, AddRolePermissionResponse, AddRolePermissionResponseSchema, AdminSessionState, AdminUserSession, AdminUserState, ApiKey, AssignUserRoleBody, AssignUserRoleParams, AssignUserRoleRequest, AssignUserRoleResponse, AssignUserRoleResponseSchema, AuthorizeResponse, BanUserBody, BanUserParams, BanUserRequest, BanUserResponse, BanUserResponseSchema, CallbackResponse, ChangeEmailResponse, ChangePasswordBody, ChangePasswordRequest, ChangePasswordResponse, ChangePasswordResponseSchema, CheckUserPermissionsBody, CheckUserPermissionsParams, CheckUserPermissionsRequest, CheckUserPermissionsResponse, CheckUserPermissionsResponseSchema, CreateAccountBody, CreateAccountParams, CreateAccountRequest, CreateAccountResponse, CreateAccountResponseSchema, CreateApiKeyBody, CreateApiKeyRequest, CreateApiKeyResponse, CreateApiKeyResponseSchema, CreateOrganizationBody, CreateOrganizationInvitationBody, CreateOrganizationInvitationParams, CreateOrganizationInvitationQuery, CreateOrganizationInvitationQueryParams, CreateOrganizationInvitationRequest, CreateOrganizationInvitationResponse, CreateOrganizationRequest, CreateOrganizationResponse, CreateOrganizationTeamBody, CreateOrganizationTeamParams, CreateOrganizationTeamRequest, CreateOrganizationTeamResponse, CreatePermissionBody, CreatePermissionRequest, CreatePermissionResponse, CreatePermissionResponseSchema, CreateRoleBody, CreateRoleRequest, CreateRoleResponse, CreateRoleResponseSchema, CreateSessionStateBody, CreateSessionStateParams, CreateSessionStateRequest, CreateSessionStateResponse, CreateUserBody, CreateUserRequest, CreateUserResponse, CreateUserResponseSchema, CreateUserStateBody, CreateUserStateParams, CreateUserStateRequest, CreateUserStateResponse, DeleteAccountParams, DeleteAccountResponse, DeleteAccountResponseSchema, DeleteApiKeyParams, DeleteApiKeyResponse, DeleteApiKeyResponseSchema, DeleteOrganizationMemberParams, DeleteOrganizationMemberResponse, DeleteOrganizationMemberResponseSchema, DeleteOrganizationParams, DeleteOrganizationResponse, DeleteOrganizationResponseSchema, DeleteOrganizationTeamMemberParams, DeleteOrganizationTeamMemberResponse, DeleteOrganizationTeamMemberResponseSchema, DeleteOrganizationTeamParams, DeleteOrganizationTeamResponse, DeleteOrganizationTeamResponseSchema, DeletePermissionParams, DeletePermissionResponse, DeletePermissionResponseSchema, DeleteRoleParams, DeleteRoleResponse, DeleteRoleResponseSchema, DeleteSessionStateParams, DeleteSessionStateResponse, DeleteSessionStateResponseSchema, DeleteUserParams, DeleteUserResponse, DeleteUserResponseSchema, DeleteUserStateParams, DeleteUserStateResponse, DeleteUserStateResponseSchema, DisableResponse, DisableTotpResponse, EnableResponse, EnableTotpResponse, ExchangeMagicLinkBody, ExchangeMagicLinkResponse, GenerateBackupCodesResponse, GenerateTotpBackupCodesResponse, GetAccountByIDResponse, GetAccountParams, GetAccountResponse, GetAllApiKeysResponse, GetApiKeyParams, GetApiKeyResponse, GetApiKeyResponseSchema, GetImpersonationByIDResponse, GetImpersonationParams, GetImpersonationResponse, GetJWKSResponse, GetMeResponse, GetMeResponseSchema, GetOrganizationInvitationParams, GetOrganizationInvitationResponse, GetOrganizationInvitationResponseSchema, GetOrganizationMemberByUserIDParams, GetOrganizationMemberByUserIDResponse, GetOrganizationMemberParams, GetOrganizationMemberResponse, GetOrganizationParams, GetOrganizationResponse, GetOrganizationTeamMemberParams, GetOrganizationTeamMemberResponse, GetOrganizationTeamParams, GetOrganizationTeamResponse, GetPermissionByKeyParams, GetPermissionByKeyResponse, GetPermissionParams, GetPermissionResponse, GetRoleByNameParams, GetRoleByNameResponse, GetRoleParams, GetRoleResponse, GetSessionStateParams, GetSessionStateResponse, GetSessionStateResponseSchema, GetTOTPURIResponse, GetTotpURIResponse, GetUserByIDResponse, GetUserParams, GetUserPermissionsParams, GetUserPermissionsResponse, GetUserPermissionsResponseSchema, GetUserResponse, GetUserStateParams, GetUserStateResponse, GetUserStateResponseSchema, Impersonation, Jwk, ListApiKeysQueryParams, ListApiKeysResponse, ListBannedUserStatesResponse, ListBannedUserStatesResponseItem, ListImpersonationsResponse, ListImpersonationsResponseItem, ListOrganizationInvitationsParams, ListOrganizationInvitationsQueryParams, ListOrganizationInvitationsResponse, ListOrganizationInvitationsResponseSchema, ListOrganizationMembersParams, ListOrganizationMembersQueryParams, ListOrganizationMembersResponse, ListOrganizationMembersResponseSchema, ListOrganizationTeamMembersParams, ListOrganizationTeamMembersQueryParams, ListOrganizationTeamMembersResponse, ListOrganizationTeamMembersResponseSchema, ListOrganizationTeamsParams, ListOrganizationTeamsQueryParams, ListOrganizationTeamsResponse, ListOrganizationTeamsResponseSchema, ListOrganizationsQueryParams, ListOrganizationsResponse, ListOrganizationsResponseSchema, ListPermissionsResponse, ListPermissionsResponseItem, ListRevokedSessionStatesResponse, ListRevokedSessionStatesResponseItem, ListRolePermissionsParams, ListRolePermissionsResponse, ListRolePermissionsResponseItem, ListRolesResponse, ListRolesResponseItem, ListUserAccountsParams, ListUserAccountsResponse, ListUserRolesParams, ListUserRolesResponse, ListUserRolesResponseItem, ListUserSessionsParams, ListUserSessionsResponse, ListUserSessionsResponseItem, ListUsersQueryParams, ListUsersResponse, MagicLinkExchangeRequest, MagicLinkExchangeResponse, MagicLinkSignInRequest, MagicLinkSignInResponse, MagicLinkVerifyResponse, OauthAuthorizeParams, OauthAuthorizeQueryParams, OauthAuthorizeResponse, OauthCallbackParams, OauthCallbackQueryParams, OauthCallbackResponse, Organization, OrganizationInvitation, OrganizationInvitationStatus, OrganizationMember, OrganizationMemberResponse, OrganizationSummary, OrganizationTeam, OrganizationTeamMember, OrganizationTeamMemberResponse, Pagination, Permission, PermissionGrantSource, RefreshTokenBody, RefreshTokenRequest, RefreshTokenResponse, RefreshTokenResponseSchema, RejectOrganizationInvitationParams, RejectOrganizationInvitationResponse, RemoveRolePermissionParams, RemoveRolePermissionResponse, RemoveRolePermissionResponseSchema, RemoveUserRoleParams, RemoveUserRoleResponse, RemoveUserRoleResponseSchema, ReplaceRolePermissionResponse, ReplaceRolePermissionsBody, ReplaceRolePermissionsParams, ReplaceRolePermissionsRequest, ReplaceRolePermissionsResponse, ReplaceUserRolesBody, ReplaceUserRolesParams, ReplaceUserRolesRequest, ReplaceUserRolesResponse, ReplaceUserRolesResponseSchema, RequestEmailChangeBody, RequestEmailChangeRequest, RequestEmailChangeResponse, RequestPasswordResetBody, RequestPasswordResetRequest, RequestPasswordResetResponse, RevokeOrganizationInvitationParams, RevokeOrganizationInvitationResponse, RevokeSessionBody, RevokeSessionParams, RevokeSessionRequest, RevokeSessionResponse, RevokeSessionResponseSchema, Role, RoleDetails, SendEmailVerificationBody, SendEmailVerificationRequest, SendEmailVerificationResponse, Session, SignInBody, SignInRequest, SignInResponse, SignInResponseSchema, SignInWithMagicLinkBody, SignInWithMagicLinkResponse, SignOutBody, SignOutRequest, SignOutResponse, SignOutResponseSchema, SignUpBody, SignUpRequest, SignUpResponse, SignUpResponseSchema, StartImpersonationBody, StartImpersonationRequest, StartImpersonationResponse, StartImpersonationResponseSchema, StopImpersonationParams, StopImpersonationResponse, StopImpersonationResponseSchema, UnbanUserParams, UnbanUserResponse, UnbanUserResponseSchema, UpdateAccountBody, UpdateAccountParams, UpdateAccountRequest, UpdateAccountResponse, UpdateAccountResponseSchema, UpdateApiKeyBody, UpdateApiKeyParams, UpdateApiKeyRequest, UpdateApiKeyResponse, UpdateApiKeyResponseSchema, UpdateOrganizationBody, UpdateOrganizationMemberBody, UpdateOrganizationMemberParams, UpdateOrganizationMemberRequest, UpdateOrganizationMemberResponse, UpdateOrganizationParams, UpdateOrganizationRequest, UpdateOrganizationResponse, UpdateOrganizationTeamBody, UpdateOrganizationTeamParams, UpdateOrganizationTeamRequest, UpdateOrganizationTeamResponse, UpdatePermissionBody, UpdatePermissionParams, UpdatePermissionRequest, UpdatePermissionResponse, UpdatePermissionResponseSchema, UpdateRoleBody, UpdateRoleParams, UpdateRoleRequest, UpdateRoleResponse, UpdateRoleResponseSchema, UpdateSessionStateBody, UpdateSessionStateParams, UpdateSessionStateResponse, UpdateUserBody, UpdateUserParams, UpdateUserRequest, UpdateUserResponse, UpdateUserResponseSchema, UpdateUserStateBody, UpdateUserStateParams, UpdateUserStateResponse, UpsertSessionStateRequest, UpsertSessionStateResponse, UpsertUserStateRequest, UpsertUserStateResponse, User, UserAccountsResponse, UserPermissionInfo, UserRoleInfo, UsersPage, VerifyApiKeyBody, VerifyApiKeyRequest, VerifyApiKeyResponse, VerifyApiKeyResponseSchema, VerifyBackupCodeRequest, VerifyBackupCodeResponse, VerifyEmailResponse, VerifyMagicLinkQueryParams, VerifyMagicLinkResponse, VerifyTOTPRequest, VerifyTOTPResponse, VerifyTotpBackupCodeBody, VerifyTotpBackupCodeResponse, VerifyTotpBody, VerifyTotpResponse, WellKnownJWKSResponse, listOrganizationInvitationsQueryLimitDefault, listOrganizationInvitationsQueryPageDefault, listOrganizationMembersQueryLimitDefault, listOrganizationMembersQueryPageDefault, listOrganizationTeamMembersQueryLimitDefault, listOrganizationTeamMembersQueryPageDefault, listOrganizationTeamsQueryLimitDefault, listOrganizationTeamsQueryPageDefault, listOrganizationsQueryLimitDefault, listOrganizationsQueryPageDefault };
1480
+ //# sourceMappingURL=zod.js.map