authula 0.5.3 → 0.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +79 -739
- package/dist/custom-fetch-ZBY99AZW.js +114 -0
- package/dist/custom-fetch-ZBY99AZW.js.map +1 -0
- package/dist/index-DHUQcsNV.d.ts +2011 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +14 -17
- package/dist/index.js.map +1 -1
- package/dist/plugins/index.d.ts +2935 -738
- package/dist/plugins/index.js +4091 -522
- package/dist/plugins/index.js.map +1 -1
- package/dist/rolldown-runtime-w6R9maHv.js +18 -0
- package/package.json +26 -23
- package/dist/fetch-BnZpQ0Yq.js +0 -128
- package/dist/fetch-BnZpQ0Yq.js.map +0 -1
- package/dist/fetch-CEj1gBkL.cjs +0 -163
- package/dist/fetch-CEj1gBkL.cjs.map +0 -1
- package/dist/index.cjs +0 -60
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts +0 -2
- package/dist/plugins/index.cjs +0 -696
- package/dist/plugins/index.cjs.map +0 -1
- package/dist/plugins/index.d.cts +0 -825
- package/dist/sdk-7eSlhCrf.d.cts +0 -167
- package/dist/sdk-7eSlhCrf.d.ts +0 -167
|
@@ -0,0 +1,2011 @@
|
|
|
1
|
+
//#region src/gen/models/accept-organization-invitation-params.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Generated by orval v8.20.0 🍺
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
* Authula API
|
|
6
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
7
|
+
* OpenAPI spec version: 0.1.0
|
|
8
|
+
*/
|
|
9
|
+
type AcceptOrganizationInvitationParams = {
|
|
10
|
+
redirectUrl?: string;
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region src/gen/models/accept-organization-invitation-query.d.ts
|
|
14
|
+
/**
|
|
15
|
+
* Generated by orval v8.20.0 🍺
|
|
16
|
+
* Do not edit manually.
|
|
17
|
+
* Authula API
|
|
18
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
19
|
+
* OpenAPI spec version: 0.1.0
|
|
20
|
+
*/
|
|
21
|
+
type AcceptOrganizationInvitationQuery = {
|
|
22
|
+
/** @nullable */
|
|
23
|
+
redirectUrl?: string | null;
|
|
24
|
+
};
|
|
25
|
+
//#endregion
|
|
26
|
+
//#region src/gen/models/account.d.ts
|
|
27
|
+
/**
|
|
28
|
+
* Generated by orval v8.20.0 🍺
|
|
29
|
+
* Do not edit manually.
|
|
30
|
+
* Authula API
|
|
31
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
32
|
+
* OpenAPI spec version: 0.1.0
|
|
33
|
+
*/
|
|
34
|
+
type Account = {
|
|
35
|
+
/** @nullable */
|
|
36
|
+
accessToken?: string | null;
|
|
37
|
+
/** @nullable */
|
|
38
|
+
accessTokenExpiresAt?: string | null;
|
|
39
|
+
accountId: string;
|
|
40
|
+
createdAt: string;
|
|
41
|
+
id: string;
|
|
42
|
+
/** @nullable */
|
|
43
|
+
idToken?: string | null;
|
|
44
|
+
/** @nullable */
|
|
45
|
+
password?: string | null;
|
|
46
|
+
providerId: string;
|
|
47
|
+
/** @nullable */
|
|
48
|
+
refreshToken?: string | null;
|
|
49
|
+
/** @nullable */
|
|
50
|
+
refreshTokenExpiresAt?: string | null;
|
|
51
|
+
/** @nullable */
|
|
52
|
+
scope?: string | null;
|
|
53
|
+
updatedAt: string;
|
|
54
|
+
userId: string;
|
|
55
|
+
};
|
|
56
|
+
//#endregion
|
|
57
|
+
//#region src/gen/models/add-organization-member-request.d.ts
|
|
58
|
+
/**
|
|
59
|
+
* Generated by orval v8.20.0 🍺
|
|
60
|
+
* Do not edit manually.
|
|
61
|
+
* Authula API
|
|
62
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
63
|
+
* OpenAPI spec version: 0.1.0
|
|
64
|
+
*/
|
|
65
|
+
type AddOrganizationMemberRequest = {
|
|
66
|
+
role: string;
|
|
67
|
+
userId: string;
|
|
68
|
+
};
|
|
69
|
+
//#endregion
|
|
70
|
+
//#region src/gen/models/add-organization-team-member-request.d.ts
|
|
71
|
+
/**
|
|
72
|
+
* Generated by orval v8.20.0 🍺
|
|
73
|
+
* Do not edit manually.
|
|
74
|
+
* Authula API
|
|
75
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
76
|
+
* OpenAPI spec version: 0.1.0
|
|
77
|
+
*/
|
|
78
|
+
type AddOrganizationTeamMemberRequest = {
|
|
79
|
+
memberId: string;
|
|
80
|
+
};
|
|
81
|
+
//#endregion
|
|
82
|
+
//#region src/gen/models/add-role-permission-request.d.ts
|
|
83
|
+
/**
|
|
84
|
+
* Generated by orval v8.20.0 🍺
|
|
85
|
+
* Do not edit manually.
|
|
86
|
+
* Authula API
|
|
87
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
88
|
+
* OpenAPI spec version: 0.1.0
|
|
89
|
+
*/
|
|
90
|
+
type AddRolePermissionRequest = {
|
|
91
|
+
permissionId: string;
|
|
92
|
+
};
|
|
93
|
+
//#endregion
|
|
94
|
+
//#region src/gen/models/add-role-permission-response.d.ts
|
|
95
|
+
/**
|
|
96
|
+
* Generated by orval v8.20.0 🍺
|
|
97
|
+
* Do not edit manually.
|
|
98
|
+
* Authula API
|
|
99
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
100
|
+
* OpenAPI spec version: 0.1.0
|
|
101
|
+
*/
|
|
102
|
+
type AddRolePermissionResponse = {
|
|
103
|
+
message: string;
|
|
104
|
+
};
|
|
105
|
+
//#endregion
|
|
106
|
+
//#region src/gen/models/admin-session-state.d.ts
|
|
107
|
+
/**
|
|
108
|
+
* Generated by orval v8.20.0 🍺
|
|
109
|
+
* Do not edit manually.
|
|
110
|
+
* Authula API
|
|
111
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
112
|
+
* OpenAPI spec version: 0.1.0
|
|
113
|
+
*/
|
|
114
|
+
type AdminSessionState = {
|
|
115
|
+
createdAt: string;
|
|
116
|
+
/** @nullable */
|
|
117
|
+
impersonationExpiresAt?: string | null;
|
|
118
|
+
/** @nullable */
|
|
119
|
+
impersonationReason?: string | null;
|
|
120
|
+
/** @nullable */
|
|
121
|
+
impersonatorSessionId?: string | null;
|
|
122
|
+
/** @nullable */
|
|
123
|
+
impersonatorUserId?: string | null;
|
|
124
|
+
/** @nullable */
|
|
125
|
+
revokedAt?: string | null;
|
|
126
|
+
/** @nullable */
|
|
127
|
+
revokedByUserId?: string | null;
|
|
128
|
+
/** @nullable */
|
|
129
|
+
revokedReason?: string | null;
|
|
130
|
+
sessionId: string;
|
|
131
|
+
updatedAt: string;
|
|
132
|
+
};
|
|
133
|
+
//#endregion
|
|
134
|
+
//#region src/gen/models/session.d.ts
|
|
135
|
+
/**
|
|
136
|
+
* Generated by orval v8.20.0 🍺
|
|
137
|
+
* Do not edit manually.
|
|
138
|
+
* Authula API
|
|
139
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
140
|
+
* OpenAPI spec version: 0.1.0
|
|
141
|
+
*/
|
|
142
|
+
type Session = {
|
|
143
|
+
createdAt: string;
|
|
144
|
+
expiresAt: string;
|
|
145
|
+
id: string;
|
|
146
|
+
/** @nullable */
|
|
147
|
+
ipAddress?: string | null;
|
|
148
|
+
token: string;
|
|
149
|
+
updatedAt: string;
|
|
150
|
+
/** @nullable */
|
|
151
|
+
userAgent?: string | null;
|
|
152
|
+
userId: string;
|
|
153
|
+
};
|
|
154
|
+
//#endregion
|
|
155
|
+
//#region src/gen/models/admin-user-session.d.ts
|
|
156
|
+
type AdminUserSession = {
|
|
157
|
+
session: Session;
|
|
158
|
+
state?: null | AdminSessionState;
|
|
159
|
+
};
|
|
160
|
+
//#endregion
|
|
161
|
+
//#region src/gen/models/admin-user-state.d.ts
|
|
162
|
+
/**
|
|
163
|
+
* Generated by orval v8.20.0 🍺
|
|
164
|
+
* Do not edit manually.
|
|
165
|
+
* Authula API
|
|
166
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
167
|
+
* OpenAPI spec version: 0.1.0
|
|
168
|
+
*/
|
|
169
|
+
type AdminUserState = {
|
|
170
|
+
banned: boolean;
|
|
171
|
+
/** @nullable */
|
|
172
|
+
bannedAt?: string | null;
|
|
173
|
+
/** @nullable */
|
|
174
|
+
bannedByUserId?: string | null;
|
|
175
|
+
/** @nullable */
|
|
176
|
+
bannedReason?: string | null;
|
|
177
|
+
/** @nullable */
|
|
178
|
+
bannedUntil?: string | null;
|
|
179
|
+
createdAt: string;
|
|
180
|
+
updatedAt: string;
|
|
181
|
+
userId: string;
|
|
182
|
+
};
|
|
183
|
+
//#endregion
|
|
184
|
+
//#region src/gen/models/api-key-metadata.d.ts
|
|
185
|
+
/**
|
|
186
|
+
* Generated by orval v8.20.0 🍺
|
|
187
|
+
* Do not edit manually.
|
|
188
|
+
* Authula API
|
|
189
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
190
|
+
* OpenAPI spec version: 0.1.0
|
|
191
|
+
*/
|
|
192
|
+
/**
|
|
193
|
+
* @nullable
|
|
194
|
+
*/
|
|
195
|
+
type ApiKeyMetadata = {
|
|
196
|
+
[key: string]: unknown;
|
|
197
|
+
} | null;
|
|
198
|
+
//#endregion
|
|
199
|
+
//#region src/gen/models/api-key.d.ts
|
|
200
|
+
type ApiKey = {
|
|
201
|
+
createdAt: string;
|
|
202
|
+
enabled: boolean;
|
|
203
|
+
/** @nullable */
|
|
204
|
+
expiresAt?: string | null;
|
|
205
|
+
id: string;
|
|
206
|
+
keyHash: string;
|
|
207
|
+
last: string;
|
|
208
|
+
/** @nullable */
|
|
209
|
+
lastRequestedAt?: string | null;
|
|
210
|
+
/** @nullable */
|
|
211
|
+
metadata?: ApiKeyMetadata;
|
|
212
|
+
name: string;
|
|
213
|
+
ownerId: string;
|
|
214
|
+
ownerType: string;
|
|
215
|
+
/** @nullable */
|
|
216
|
+
permissions?: string[] | null;
|
|
217
|
+
/** @nullable */
|
|
218
|
+
prefix?: string | null;
|
|
219
|
+
rateLimitEnabled: boolean;
|
|
220
|
+
start: string;
|
|
221
|
+
updatedAt: string;
|
|
222
|
+
};
|
|
223
|
+
//#endregion
|
|
224
|
+
//#region src/gen/models/assign-user-role-request.d.ts
|
|
225
|
+
/**
|
|
226
|
+
* Generated by orval v8.20.0 🍺
|
|
227
|
+
* Do not edit manually.
|
|
228
|
+
* Authula API
|
|
229
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
230
|
+
* OpenAPI spec version: 0.1.0
|
|
231
|
+
*/
|
|
232
|
+
type AssignUserRoleRequest = {
|
|
233
|
+
/** @nullable */
|
|
234
|
+
expiresAt?: string | null;
|
|
235
|
+
roleId: string;
|
|
236
|
+
};
|
|
237
|
+
//#endregion
|
|
238
|
+
//#region src/gen/models/assign-user-role-response.d.ts
|
|
239
|
+
/**
|
|
240
|
+
* Generated by orval v8.20.0 🍺
|
|
241
|
+
* Do not edit manually.
|
|
242
|
+
* Authula API
|
|
243
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
244
|
+
* OpenAPI spec version: 0.1.0
|
|
245
|
+
*/
|
|
246
|
+
type AssignUserRoleResponse = {
|
|
247
|
+
message: string;
|
|
248
|
+
};
|
|
249
|
+
//#endregion
|
|
250
|
+
//#region src/gen/models/authorize-response.d.ts
|
|
251
|
+
/**
|
|
252
|
+
* Generated by orval v8.20.0 🍺
|
|
253
|
+
* Do not edit manually.
|
|
254
|
+
* Authula API
|
|
255
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
256
|
+
* OpenAPI spec version: 0.1.0
|
|
257
|
+
*/
|
|
258
|
+
type AuthorizeResponse = {
|
|
259
|
+
authUrl: string;
|
|
260
|
+
};
|
|
261
|
+
//#endregion
|
|
262
|
+
//#region src/gen/models/ban-user-request.d.ts
|
|
263
|
+
/**
|
|
264
|
+
* Generated by orval v8.20.0 🍺
|
|
265
|
+
* Do not edit manually.
|
|
266
|
+
* Authula API
|
|
267
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
268
|
+
* OpenAPI spec version: 0.1.0
|
|
269
|
+
*/
|
|
270
|
+
type BanUserRequest = {
|
|
271
|
+
/** @nullable */
|
|
272
|
+
bannedUntil?: string | null;
|
|
273
|
+
/** @nullable */
|
|
274
|
+
reason?: string | null;
|
|
275
|
+
};
|
|
276
|
+
//#endregion
|
|
277
|
+
//#region src/gen/models/ban-user-response.d.ts
|
|
278
|
+
type BanUserResponse = {
|
|
279
|
+
state: AdminUserState;
|
|
280
|
+
};
|
|
281
|
+
//#endregion
|
|
282
|
+
//#region src/gen/models/user-metadata.d.ts
|
|
283
|
+
/**
|
|
284
|
+
* Generated by orval v8.20.0 🍺
|
|
285
|
+
* Do not edit manually.
|
|
286
|
+
* Authula API
|
|
287
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
288
|
+
* OpenAPI spec version: 0.1.0
|
|
289
|
+
*/
|
|
290
|
+
/**
|
|
291
|
+
* @nullable
|
|
292
|
+
*/
|
|
293
|
+
type UserMetadata = {
|
|
294
|
+
[key: string]: unknown;
|
|
295
|
+
} | null;
|
|
296
|
+
//#endregion
|
|
297
|
+
//#region src/gen/models/user.d.ts
|
|
298
|
+
type User = {
|
|
299
|
+
createdAt: string;
|
|
300
|
+
email: string;
|
|
301
|
+
emailVerified: boolean;
|
|
302
|
+
id: string;
|
|
303
|
+
/** @nullable */
|
|
304
|
+
image?: string | null;
|
|
305
|
+
/** @nullable */
|
|
306
|
+
metadata?: UserMetadata;
|
|
307
|
+
name: string;
|
|
308
|
+
updatedAt: string;
|
|
309
|
+
};
|
|
310
|
+
//#endregion
|
|
311
|
+
//#region src/gen/models/callback-response.d.ts
|
|
312
|
+
type CallbackResponse = {
|
|
313
|
+
session: Session;
|
|
314
|
+
user: User;
|
|
315
|
+
};
|
|
316
|
+
//#endregion
|
|
317
|
+
//#region src/gen/models/change-email-response.d.ts
|
|
318
|
+
/**
|
|
319
|
+
* Generated by orval v8.20.0 🍺
|
|
320
|
+
* Do not edit manually.
|
|
321
|
+
* Authula API
|
|
322
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
323
|
+
* OpenAPI spec version: 0.1.0
|
|
324
|
+
*/
|
|
325
|
+
type ChangeEmailResponse = {
|
|
326
|
+
message: string;
|
|
327
|
+
};
|
|
328
|
+
//#endregion
|
|
329
|
+
//#region src/gen/models/change-password-request.d.ts
|
|
330
|
+
/**
|
|
331
|
+
* Generated by orval v8.20.0 🍺
|
|
332
|
+
* Do not edit manually.
|
|
333
|
+
* Authula API
|
|
334
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
335
|
+
* OpenAPI spec version: 0.1.0
|
|
336
|
+
*/
|
|
337
|
+
type ChangePasswordRequest = {
|
|
338
|
+
password: string;
|
|
339
|
+
token: string;
|
|
340
|
+
};
|
|
341
|
+
//#endregion
|
|
342
|
+
//#region src/gen/models/change-password-response.d.ts
|
|
343
|
+
/**
|
|
344
|
+
* Generated by orval v8.20.0 🍺
|
|
345
|
+
* Do not edit manually.
|
|
346
|
+
* Authula API
|
|
347
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
348
|
+
* OpenAPI spec version: 0.1.0
|
|
349
|
+
*/
|
|
350
|
+
type ChangePasswordResponse = {
|
|
351
|
+
message: string;
|
|
352
|
+
};
|
|
353
|
+
//#endregion
|
|
354
|
+
//#region src/gen/models/check-user-permissions-request.d.ts
|
|
355
|
+
/**
|
|
356
|
+
* Generated by orval v8.20.0 🍺
|
|
357
|
+
* Do not edit manually.
|
|
358
|
+
* Authula API
|
|
359
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
360
|
+
* OpenAPI spec version: 0.1.0
|
|
361
|
+
*/
|
|
362
|
+
type CheckUserPermissionsRequest = {
|
|
363
|
+
permissionKeys: string[];
|
|
364
|
+
};
|
|
365
|
+
//#endregion
|
|
366
|
+
//#region src/gen/models/check-user-permissions-response.d.ts
|
|
367
|
+
/**
|
|
368
|
+
* Generated by orval v8.20.0 🍺
|
|
369
|
+
* Do not edit manually.
|
|
370
|
+
* Authula API
|
|
371
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
372
|
+
* OpenAPI spec version: 0.1.0
|
|
373
|
+
*/
|
|
374
|
+
type CheckUserPermissionsResponse = {
|
|
375
|
+
hasPermissions: boolean;
|
|
376
|
+
};
|
|
377
|
+
//#endregion
|
|
378
|
+
//#region src/gen/models/create-account-request.d.ts
|
|
379
|
+
/**
|
|
380
|
+
* Generated by orval v8.20.0 🍺
|
|
381
|
+
* Do not edit manually.
|
|
382
|
+
* Authula API
|
|
383
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
384
|
+
* OpenAPI spec version: 0.1.0
|
|
385
|
+
*/
|
|
386
|
+
type CreateAccountRequest = {
|
|
387
|
+
/** @nullable */
|
|
388
|
+
accessToken?: string | null;
|
|
389
|
+
/** @nullable */
|
|
390
|
+
accessTokenExpiresAt?: string | null;
|
|
391
|
+
accountId: string;
|
|
392
|
+
/** @nullable */
|
|
393
|
+
idToken?: string | null;
|
|
394
|
+
/** @nullable */
|
|
395
|
+
password?: string | null;
|
|
396
|
+
providerId: string;
|
|
397
|
+
/** @nullable */
|
|
398
|
+
refreshToken?: string | null;
|
|
399
|
+
/** @nullable */
|
|
400
|
+
refreshTokenExpiresAt?: string | null;
|
|
401
|
+
/** @nullable */
|
|
402
|
+
scope?: string | null;
|
|
403
|
+
};
|
|
404
|
+
//#endregion
|
|
405
|
+
//#region src/gen/models/create-account-response.d.ts
|
|
406
|
+
type CreateAccountResponse = {
|
|
407
|
+
account: Account;
|
|
408
|
+
};
|
|
409
|
+
//#endregion
|
|
410
|
+
//#region src/gen/models/create-api-key-request-metadata.d.ts
|
|
411
|
+
/**
|
|
412
|
+
* Generated by orval v8.20.0 🍺
|
|
413
|
+
* Do not edit manually.
|
|
414
|
+
* Authula API
|
|
415
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
416
|
+
* OpenAPI spec version: 0.1.0
|
|
417
|
+
*/
|
|
418
|
+
/**
|
|
419
|
+
* @nullable
|
|
420
|
+
*/
|
|
421
|
+
type CreateApiKeyRequestMetadata = {
|
|
422
|
+
[key: string]: unknown;
|
|
423
|
+
} | null;
|
|
424
|
+
//#endregion
|
|
425
|
+
//#region src/gen/models/create-api-key-request.d.ts
|
|
426
|
+
type CreateApiKeyRequest = {
|
|
427
|
+
/** @nullable */
|
|
428
|
+
enabled?: boolean | null;
|
|
429
|
+
/** @nullable */
|
|
430
|
+
expiresAt?: string | null;
|
|
431
|
+
/** @nullable */
|
|
432
|
+
metadata?: CreateApiKeyRequestMetadata;
|
|
433
|
+
name: string;
|
|
434
|
+
ownerId: string;
|
|
435
|
+
ownerType: string;
|
|
436
|
+
/** @nullable */
|
|
437
|
+
permissions?: string[] | null;
|
|
438
|
+
/** @nullable */
|
|
439
|
+
prefix?: string | null;
|
|
440
|
+
/** @nullable */
|
|
441
|
+
rateLimitEnabled?: boolean | null;
|
|
442
|
+
/** @nullable */
|
|
443
|
+
rateLimitMaxRequests?: number | null;
|
|
444
|
+
/** @nullable */
|
|
445
|
+
rateLimitTimeWindow?: number | null;
|
|
446
|
+
};
|
|
447
|
+
//#endregion
|
|
448
|
+
//#region src/gen/models/create-api-key-response.d.ts
|
|
449
|
+
type CreateApiKeyResponse = {
|
|
450
|
+
apiKey: ApiKey;
|
|
451
|
+
rawApiKey: string;
|
|
452
|
+
};
|
|
453
|
+
//#endregion
|
|
454
|
+
//#region src/gen/models/create-organization-invitation-request.d.ts
|
|
455
|
+
/**
|
|
456
|
+
* Generated by orval v8.20.0 🍺
|
|
457
|
+
* Do not edit manually.
|
|
458
|
+
* Authula API
|
|
459
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
460
|
+
* OpenAPI spec version: 0.1.0
|
|
461
|
+
*/
|
|
462
|
+
type CreateOrganizationInvitationRequest = {
|
|
463
|
+
email: string;
|
|
464
|
+
/** @nullable */
|
|
465
|
+
redirectUrl?: string | null;
|
|
466
|
+
role: string;
|
|
467
|
+
};
|
|
468
|
+
//#endregion
|
|
469
|
+
//#region src/gen/models/create-organization-request-metadata.d.ts
|
|
470
|
+
/**
|
|
471
|
+
* Generated by orval v8.20.0 🍺
|
|
472
|
+
* Do not edit manually.
|
|
473
|
+
* Authula API
|
|
474
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
475
|
+
* OpenAPI spec version: 0.1.0
|
|
476
|
+
*/
|
|
477
|
+
/**
|
|
478
|
+
* @nullable
|
|
479
|
+
*/
|
|
480
|
+
type CreateOrganizationRequestMetadata = {
|
|
481
|
+
[key: string]: unknown;
|
|
482
|
+
} | null;
|
|
483
|
+
//#endregion
|
|
484
|
+
//#region src/gen/models/create-organization-request.d.ts
|
|
485
|
+
type CreateOrganizationRequest = {
|
|
486
|
+
/** @nullable */
|
|
487
|
+
logo?: string | null;
|
|
488
|
+
/** @nullable */
|
|
489
|
+
metadata?: CreateOrganizationRequestMetadata;
|
|
490
|
+
name: string;
|
|
491
|
+
role: string;
|
|
492
|
+
/** @nullable */
|
|
493
|
+
slug?: string | null;
|
|
494
|
+
};
|
|
495
|
+
//#endregion
|
|
496
|
+
//#region src/gen/models/create-organization-team-request-metadata.d.ts
|
|
497
|
+
/**
|
|
498
|
+
* Generated by orval v8.20.0 🍺
|
|
499
|
+
* Do not edit manually.
|
|
500
|
+
* Authula API
|
|
501
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
502
|
+
* OpenAPI spec version: 0.1.0
|
|
503
|
+
*/
|
|
504
|
+
/**
|
|
505
|
+
* @nullable
|
|
506
|
+
*/
|
|
507
|
+
type CreateOrganizationTeamRequestMetadata = {
|
|
508
|
+
[key: string]: unknown;
|
|
509
|
+
} | null;
|
|
510
|
+
//#endregion
|
|
511
|
+
//#region src/gen/models/create-organization-team-request.d.ts
|
|
512
|
+
type CreateOrganizationTeamRequest = {
|
|
513
|
+
/** @nullable */
|
|
514
|
+
description?: string | null;
|
|
515
|
+
/** @nullable */
|
|
516
|
+
metadata?: CreateOrganizationTeamRequestMetadata;
|
|
517
|
+
name: string;
|
|
518
|
+
/** @nullable */
|
|
519
|
+
slug?: string | null;
|
|
520
|
+
};
|
|
521
|
+
//#endregion
|
|
522
|
+
//#region src/gen/models/create-permission-request.d.ts
|
|
523
|
+
/**
|
|
524
|
+
* Generated by orval v8.20.0 🍺
|
|
525
|
+
* Do not edit manually.
|
|
526
|
+
* Authula API
|
|
527
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
528
|
+
* OpenAPI spec version: 0.1.0
|
|
529
|
+
*/
|
|
530
|
+
type CreatePermissionRequest = {
|
|
531
|
+
/** @nullable */
|
|
532
|
+
description?: string | null;
|
|
533
|
+
isSystem?: boolean;
|
|
534
|
+
key: string;
|
|
535
|
+
};
|
|
536
|
+
//#endregion
|
|
537
|
+
//#region src/gen/models/permission.d.ts
|
|
538
|
+
/**
|
|
539
|
+
* Generated by orval v8.20.0 🍺
|
|
540
|
+
* Do not edit manually.
|
|
541
|
+
* Authula API
|
|
542
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
543
|
+
* OpenAPI spec version: 0.1.0
|
|
544
|
+
*/
|
|
545
|
+
type Permission = {
|
|
546
|
+
createdAt: string;
|
|
547
|
+
/** @nullable */
|
|
548
|
+
description?: string | null;
|
|
549
|
+
id: string;
|
|
550
|
+
isSystem: boolean;
|
|
551
|
+
key: string;
|
|
552
|
+
updatedAt: string;
|
|
553
|
+
};
|
|
554
|
+
//#endregion
|
|
555
|
+
//#region src/gen/models/create-permission-response.d.ts
|
|
556
|
+
type CreatePermissionResponse = {
|
|
557
|
+
permission: Permission;
|
|
558
|
+
};
|
|
559
|
+
//#endregion
|
|
560
|
+
//#region src/gen/models/create-role-request.d.ts
|
|
561
|
+
/**
|
|
562
|
+
* Generated by orval v8.20.0 🍺
|
|
563
|
+
* Do not edit manually.
|
|
564
|
+
* Authula API
|
|
565
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
566
|
+
* OpenAPI spec version: 0.1.0
|
|
567
|
+
*/
|
|
568
|
+
type CreateRoleRequest = {
|
|
569
|
+
/** @nullable */
|
|
570
|
+
description?: string | null;
|
|
571
|
+
isSystem: boolean;
|
|
572
|
+
name: string;
|
|
573
|
+
/** @nullable */
|
|
574
|
+
weight?: number | null;
|
|
575
|
+
};
|
|
576
|
+
//#endregion
|
|
577
|
+
//#region src/gen/models/role.d.ts
|
|
578
|
+
/**
|
|
579
|
+
* Generated by orval v8.20.0 🍺
|
|
580
|
+
* Do not edit manually.
|
|
581
|
+
* Authula API
|
|
582
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
583
|
+
* OpenAPI spec version: 0.1.0
|
|
584
|
+
*/
|
|
585
|
+
type Role = {
|
|
586
|
+
createdAt: string;
|
|
587
|
+
/** @nullable */
|
|
588
|
+
description?: string | null;
|
|
589
|
+
id: string;
|
|
590
|
+
isSystem: boolean;
|
|
591
|
+
name: string;
|
|
592
|
+
updatedAt: string;
|
|
593
|
+
weight: number;
|
|
594
|
+
};
|
|
595
|
+
//#endregion
|
|
596
|
+
//#region src/gen/models/create-role-response.d.ts
|
|
597
|
+
type CreateRoleResponse = {
|
|
598
|
+
role: Role;
|
|
599
|
+
};
|
|
600
|
+
//#endregion
|
|
601
|
+
//#region src/gen/models/create-session-state-request.d.ts
|
|
602
|
+
/**
|
|
603
|
+
* Generated by orval v8.20.0 🍺
|
|
604
|
+
* Do not edit manually.
|
|
605
|
+
* Authula API
|
|
606
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
607
|
+
* OpenAPI spec version: 0.1.0
|
|
608
|
+
*/
|
|
609
|
+
type CreateSessionStateRequest = {
|
|
610
|
+
/** @nullable */
|
|
611
|
+
impersonationExpiresAt?: string | null;
|
|
612
|
+
/** @nullable */
|
|
613
|
+
impersonationReason?: string | null;
|
|
614
|
+
/** @nullable */
|
|
615
|
+
impersonatorUserId?: string | null;
|
|
616
|
+
revoke: boolean;
|
|
617
|
+
/** @nullable */
|
|
618
|
+
revokedReason?: string | null;
|
|
619
|
+
};
|
|
620
|
+
//#endregion
|
|
621
|
+
//#region src/gen/models/create-user-request-metadata.d.ts
|
|
622
|
+
/**
|
|
623
|
+
* Generated by orval v8.20.0 🍺
|
|
624
|
+
* Do not edit manually.
|
|
625
|
+
* Authula API
|
|
626
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
627
|
+
* OpenAPI spec version: 0.1.0
|
|
628
|
+
*/
|
|
629
|
+
/**
|
|
630
|
+
* @nullable
|
|
631
|
+
*/
|
|
632
|
+
type CreateUserRequestMetadata = {
|
|
633
|
+
[key: string]: unknown;
|
|
634
|
+
} | null;
|
|
635
|
+
//#endregion
|
|
636
|
+
//#region src/gen/models/create-user-request.d.ts
|
|
637
|
+
type CreateUserRequest = {
|
|
638
|
+
email: string;
|
|
639
|
+
/** @nullable */
|
|
640
|
+
emailVerified?: boolean | null;
|
|
641
|
+
/** @nullable */
|
|
642
|
+
image?: string | null;
|
|
643
|
+
/** @nullable */
|
|
644
|
+
metadata?: CreateUserRequestMetadata;
|
|
645
|
+
name: string;
|
|
646
|
+
};
|
|
647
|
+
//#endregion
|
|
648
|
+
//#region src/gen/models/create-user-response.d.ts
|
|
649
|
+
type CreateUserResponse = {
|
|
650
|
+
user: User;
|
|
651
|
+
};
|
|
652
|
+
//#endregion
|
|
653
|
+
//#region src/gen/models/create-user-state-request.d.ts
|
|
654
|
+
/**
|
|
655
|
+
* Generated by orval v8.20.0 🍺
|
|
656
|
+
* Do not edit manually.
|
|
657
|
+
* Authula API
|
|
658
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
659
|
+
* OpenAPI spec version: 0.1.0
|
|
660
|
+
*/
|
|
661
|
+
type CreateUserStateRequest = {
|
|
662
|
+
banned: boolean;
|
|
663
|
+
/** @nullable */
|
|
664
|
+
bannedReason?: string | null;
|
|
665
|
+
/** @nullable */
|
|
666
|
+
bannedUntil?: string | null;
|
|
667
|
+
};
|
|
668
|
+
//#endregion
|
|
669
|
+
//#region src/gen/models/delete-account-response.d.ts
|
|
670
|
+
/**
|
|
671
|
+
* Generated by orval v8.20.0 🍺
|
|
672
|
+
* Do not edit manually.
|
|
673
|
+
* Authula API
|
|
674
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
675
|
+
* OpenAPI spec version: 0.1.0
|
|
676
|
+
*/
|
|
677
|
+
type DeleteAccountResponse = {
|
|
678
|
+
message: string;
|
|
679
|
+
};
|
|
680
|
+
//#endregion
|
|
681
|
+
//#region src/gen/models/delete-api-key-response.d.ts
|
|
682
|
+
/**
|
|
683
|
+
* Generated by orval v8.20.0 🍺
|
|
684
|
+
* Do not edit manually.
|
|
685
|
+
* Authula API
|
|
686
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
687
|
+
* OpenAPI spec version: 0.1.0
|
|
688
|
+
*/
|
|
689
|
+
type DeleteApiKeyResponse = {
|
|
690
|
+
message: string;
|
|
691
|
+
};
|
|
692
|
+
//#endregion
|
|
693
|
+
//#region src/gen/models/delete-organization-member-response.d.ts
|
|
694
|
+
/**
|
|
695
|
+
* Generated by orval v8.20.0 🍺
|
|
696
|
+
* Do not edit manually.
|
|
697
|
+
* Authula API
|
|
698
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
699
|
+
* OpenAPI spec version: 0.1.0
|
|
700
|
+
*/
|
|
701
|
+
type DeleteOrganizationMemberResponse = {
|
|
702
|
+
message: string;
|
|
703
|
+
};
|
|
704
|
+
//#endregion
|
|
705
|
+
//#region src/gen/models/delete-organization-response.d.ts
|
|
706
|
+
/**
|
|
707
|
+
* Generated by orval v8.20.0 🍺
|
|
708
|
+
* Do not edit manually.
|
|
709
|
+
* Authula API
|
|
710
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
711
|
+
* OpenAPI spec version: 0.1.0
|
|
712
|
+
*/
|
|
713
|
+
type DeleteOrganizationResponse = {
|
|
714
|
+
message: string;
|
|
715
|
+
};
|
|
716
|
+
//#endregion
|
|
717
|
+
//#region src/gen/models/delete-organization-team-member-response.d.ts
|
|
718
|
+
/**
|
|
719
|
+
* Generated by orval v8.20.0 🍺
|
|
720
|
+
* Do not edit manually.
|
|
721
|
+
* Authula API
|
|
722
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
723
|
+
* OpenAPI spec version: 0.1.0
|
|
724
|
+
*/
|
|
725
|
+
type DeleteOrganizationTeamMemberResponse = {
|
|
726
|
+
message: string;
|
|
727
|
+
};
|
|
728
|
+
//#endregion
|
|
729
|
+
//#region src/gen/models/delete-organization-team-response.d.ts
|
|
730
|
+
/**
|
|
731
|
+
* Generated by orval v8.20.0 🍺
|
|
732
|
+
* Do not edit manually.
|
|
733
|
+
* Authula API
|
|
734
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
735
|
+
* OpenAPI spec version: 0.1.0
|
|
736
|
+
*/
|
|
737
|
+
type DeleteOrganizationTeamResponse = {
|
|
738
|
+
message: string;
|
|
739
|
+
};
|
|
740
|
+
//#endregion
|
|
741
|
+
//#region src/gen/models/delete-permission-response.d.ts
|
|
742
|
+
/**
|
|
743
|
+
* Generated by orval v8.20.0 🍺
|
|
744
|
+
* Do not edit manually.
|
|
745
|
+
* Authula API
|
|
746
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
747
|
+
* OpenAPI spec version: 0.1.0
|
|
748
|
+
*/
|
|
749
|
+
type DeletePermissionResponse = {
|
|
750
|
+
message: string;
|
|
751
|
+
};
|
|
752
|
+
//#endregion
|
|
753
|
+
//#region src/gen/models/delete-role-response.d.ts
|
|
754
|
+
/**
|
|
755
|
+
* Generated by orval v8.20.0 🍺
|
|
756
|
+
* Do not edit manually.
|
|
757
|
+
* Authula API
|
|
758
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
759
|
+
* OpenAPI spec version: 0.1.0
|
|
760
|
+
*/
|
|
761
|
+
type DeleteRoleResponse = {
|
|
762
|
+
message: string;
|
|
763
|
+
};
|
|
764
|
+
//#endregion
|
|
765
|
+
//#region src/gen/models/delete-session-state-response.d.ts
|
|
766
|
+
/**
|
|
767
|
+
* Generated by orval v8.20.0 🍺
|
|
768
|
+
* Do not edit manually.
|
|
769
|
+
* Authula API
|
|
770
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
771
|
+
* OpenAPI spec version: 0.1.0
|
|
772
|
+
*/
|
|
773
|
+
type DeleteSessionStateResponse = {
|
|
774
|
+
message: string;
|
|
775
|
+
};
|
|
776
|
+
//#endregion
|
|
777
|
+
//#region src/gen/models/delete-user-response.d.ts
|
|
778
|
+
/**
|
|
779
|
+
* Generated by orval v8.20.0 🍺
|
|
780
|
+
* Do not edit manually.
|
|
781
|
+
* Authula API
|
|
782
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
783
|
+
* OpenAPI spec version: 0.1.0
|
|
784
|
+
*/
|
|
785
|
+
type DeleteUserResponse = {
|
|
786
|
+
message: string;
|
|
787
|
+
};
|
|
788
|
+
//#endregion
|
|
789
|
+
//#region src/gen/models/delete-user-state-response.d.ts
|
|
790
|
+
/**
|
|
791
|
+
* Generated by orval v8.20.0 🍺
|
|
792
|
+
* Do not edit manually.
|
|
793
|
+
* Authula API
|
|
794
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
795
|
+
* OpenAPI spec version: 0.1.0
|
|
796
|
+
*/
|
|
797
|
+
type DeleteUserStateResponse = {
|
|
798
|
+
message: string;
|
|
799
|
+
};
|
|
800
|
+
//#endregion
|
|
801
|
+
//#region src/gen/models/disable-response.d.ts
|
|
802
|
+
/**
|
|
803
|
+
* Generated by orval v8.20.0 🍺
|
|
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
|
+
type DisableResponse = {
|
|
810
|
+
message: string;
|
|
811
|
+
};
|
|
812
|
+
//#endregion
|
|
813
|
+
//#region src/gen/models/enable-response.d.ts
|
|
814
|
+
/**
|
|
815
|
+
* Generated by orval v8.20.0 🍺
|
|
816
|
+
* Do not edit manually.
|
|
817
|
+
* Authula API
|
|
818
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
819
|
+
* OpenAPI spec version: 0.1.0
|
|
820
|
+
*/
|
|
821
|
+
type EnableResponse = {
|
|
822
|
+
backupCodes: string[];
|
|
823
|
+
totpUri: string;
|
|
824
|
+
};
|
|
825
|
+
//#endregion
|
|
826
|
+
//#region src/gen/models/generate-backup-codes-response.d.ts
|
|
827
|
+
/**
|
|
828
|
+
* Generated by orval v8.20.0 🍺
|
|
829
|
+
* Do not edit manually.
|
|
830
|
+
* Authula API
|
|
831
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
832
|
+
* OpenAPI spec version: 0.1.0
|
|
833
|
+
*/
|
|
834
|
+
type GenerateBackupCodesResponse = {
|
|
835
|
+
backupCodes: string[];
|
|
836
|
+
};
|
|
837
|
+
//#endregion
|
|
838
|
+
//#region src/gen/models/get-account-by-id-response.d.ts
|
|
839
|
+
type GetAccountByIDResponse = {
|
|
840
|
+
account: Account;
|
|
841
|
+
};
|
|
842
|
+
//#endregion
|
|
843
|
+
//#region src/gen/models/get-all-api-keys-response.d.ts
|
|
844
|
+
type GetAllApiKeysResponse = {
|
|
845
|
+
items: ApiKey[];
|
|
846
|
+
limit: number;
|
|
847
|
+
page: number;
|
|
848
|
+
total: number;
|
|
849
|
+
};
|
|
850
|
+
//#endregion
|
|
851
|
+
//#region src/gen/models/get-api-key-response.d.ts
|
|
852
|
+
type GetApiKeyResponse = {
|
|
853
|
+
apiKey: ApiKey;
|
|
854
|
+
};
|
|
855
|
+
//#endregion
|
|
856
|
+
//#region src/gen/models/impersonation.d.ts
|
|
857
|
+
/**
|
|
858
|
+
* Generated by orval v8.20.0 🍺
|
|
859
|
+
* Do not edit manually.
|
|
860
|
+
* Authula API
|
|
861
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
862
|
+
* OpenAPI spec version: 0.1.0
|
|
863
|
+
*/
|
|
864
|
+
type Impersonation = {
|
|
865
|
+
/** @nullable */
|
|
866
|
+
actorSessionId?: string | null;
|
|
867
|
+
actorUserId: string;
|
|
868
|
+
createdAt: string;
|
|
869
|
+
/** @nullable */
|
|
870
|
+
endedAt?: string | null;
|
|
871
|
+
/** @nullable */
|
|
872
|
+
endedByUserId?: string | null;
|
|
873
|
+
expiresAt: string;
|
|
874
|
+
id: string;
|
|
875
|
+
/** @nullable */
|
|
876
|
+
impersonationSessionId?: string | null;
|
|
877
|
+
reason: string;
|
|
878
|
+
startedAt: string;
|
|
879
|
+
targetUserId: string;
|
|
880
|
+
updatedAt: string;
|
|
881
|
+
};
|
|
882
|
+
//#endregion
|
|
883
|
+
//#region src/gen/models/get-impersonation-by-id-response.d.ts
|
|
884
|
+
type GetImpersonationByIDResponse = {
|
|
885
|
+
impersonation: Impersonation;
|
|
886
|
+
};
|
|
887
|
+
//#endregion
|
|
888
|
+
//#region src/gen/models/get-me-response.d.ts
|
|
889
|
+
type GetMeResponse = {
|
|
890
|
+
session: Session;
|
|
891
|
+
user: User;
|
|
892
|
+
};
|
|
893
|
+
//#endregion
|
|
894
|
+
//#region src/gen/models/get-session-state-response.d.ts
|
|
895
|
+
type GetSessionStateResponse = {
|
|
896
|
+
state: AdminSessionState;
|
|
897
|
+
};
|
|
898
|
+
//#endregion
|
|
899
|
+
//#region src/gen/models/get-totpuri-response.d.ts
|
|
900
|
+
/**
|
|
901
|
+
* Generated by orval v8.20.0 🍺
|
|
902
|
+
* Do not edit manually.
|
|
903
|
+
* Authula API
|
|
904
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
905
|
+
* OpenAPI spec version: 0.1.0
|
|
906
|
+
*/
|
|
907
|
+
type GetTOTPURIResponse = {
|
|
908
|
+
totpUri: string;
|
|
909
|
+
};
|
|
910
|
+
//#endregion
|
|
911
|
+
//#region src/gen/models/get-user-by-id-response.d.ts
|
|
912
|
+
type GetUserByIDResponse = {
|
|
913
|
+
user: User;
|
|
914
|
+
};
|
|
915
|
+
//#endregion
|
|
916
|
+
//#region src/gen/models/permission-grant-source.d.ts
|
|
917
|
+
/**
|
|
918
|
+
* Generated by orval v8.20.0 🍺
|
|
919
|
+
* Do not edit manually.
|
|
920
|
+
* Authula API
|
|
921
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
922
|
+
* OpenAPI spec version: 0.1.0
|
|
923
|
+
*/
|
|
924
|
+
type PermissionGrantSource = {
|
|
925
|
+
/** @nullable */
|
|
926
|
+
grantedAt?: string | null;
|
|
927
|
+
/** @nullable */
|
|
928
|
+
grantedByUserId?: string | null;
|
|
929
|
+
roleId: string;
|
|
930
|
+
roleName: string;
|
|
931
|
+
};
|
|
932
|
+
//#endregion
|
|
933
|
+
//#region src/gen/models/user-permission-info.d.ts
|
|
934
|
+
type UserPermissionInfo = {
|
|
935
|
+
/** @nullable */
|
|
936
|
+
grantedAt?: string | null;
|
|
937
|
+
/** @nullable */
|
|
938
|
+
grantedByUserId?: string | null;
|
|
939
|
+
/** @nullable */
|
|
940
|
+
permissionDescription?: string | null;
|
|
941
|
+
permissionId: string;
|
|
942
|
+
permissionKey: string;
|
|
943
|
+
/** @nullable */
|
|
944
|
+
sources?: PermissionGrantSource[] | null;
|
|
945
|
+
};
|
|
946
|
+
//#endregion
|
|
947
|
+
//#region src/gen/models/get-user-permissions-response.d.ts
|
|
948
|
+
type GetUserPermissionsResponse = {
|
|
949
|
+
permissions: UserPermissionInfo[];
|
|
950
|
+
};
|
|
951
|
+
//#endregion
|
|
952
|
+
//#region src/gen/models/get-user-state-response.d.ts
|
|
953
|
+
type GetUserStateResponse = {
|
|
954
|
+
state: AdminUserState;
|
|
955
|
+
};
|
|
956
|
+
//#endregion
|
|
957
|
+
//#region src/gen/models/jwk.d.ts
|
|
958
|
+
/**
|
|
959
|
+
* Generated by orval v8.20.0 🍺
|
|
960
|
+
* Do not edit manually.
|
|
961
|
+
* Authula API
|
|
962
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
963
|
+
* OpenAPI spec version: 0.1.0
|
|
964
|
+
*/
|
|
965
|
+
type Jwk = {
|
|
966
|
+
alg?: string;
|
|
967
|
+
crv?: string;
|
|
968
|
+
e?: string;
|
|
969
|
+
kid?: string;
|
|
970
|
+
kty: string;
|
|
971
|
+
n?: string;
|
|
972
|
+
use?: string;
|
|
973
|
+
x?: string;
|
|
974
|
+
};
|
|
975
|
+
//#endregion
|
|
976
|
+
//#region src/gen/models/list-api-keys-params.d.ts
|
|
977
|
+
/**
|
|
978
|
+
* Generated by orval v8.20.0 🍺
|
|
979
|
+
* Do not edit manually.
|
|
980
|
+
* Authula API
|
|
981
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
982
|
+
* OpenAPI spec version: 0.1.0
|
|
983
|
+
*/
|
|
984
|
+
type ListApiKeysParams = {
|
|
985
|
+
/**
|
|
986
|
+
* @nullable
|
|
987
|
+
*/
|
|
988
|
+
ownerType?: string | null;
|
|
989
|
+
/**
|
|
990
|
+
* @nullable
|
|
991
|
+
*/
|
|
992
|
+
ownerId?: string | null;
|
|
993
|
+
/**
|
|
994
|
+
* @nullable
|
|
995
|
+
*/
|
|
996
|
+
page?: number | null;
|
|
997
|
+
/**
|
|
998
|
+
* @nullable
|
|
999
|
+
*/
|
|
1000
|
+
limit?: number | null;
|
|
1001
|
+
};
|
|
1002
|
+
//#endregion
|
|
1003
|
+
//#region src/gen/models/list-organization-members-params.d.ts
|
|
1004
|
+
/**
|
|
1005
|
+
* Generated by orval v8.20.0 🍺
|
|
1006
|
+
* Do not edit manually.
|
|
1007
|
+
* Authula API
|
|
1008
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
1009
|
+
* OpenAPI spec version: 0.1.0
|
|
1010
|
+
*/
|
|
1011
|
+
type ListOrganizationMembersParams = {
|
|
1012
|
+
page?: number;
|
|
1013
|
+
limit?: number;
|
|
1014
|
+
};
|
|
1015
|
+
//#endregion
|
|
1016
|
+
//#region src/gen/models/list-organization-team-members-params.d.ts
|
|
1017
|
+
/**
|
|
1018
|
+
* Generated by orval v8.20.0 🍺
|
|
1019
|
+
* Do not edit manually.
|
|
1020
|
+
* Authula API
|
|
1021
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
1022
|
+
* OpenAPI spec version: 0.1.0
|
|
1023
|
+
*/
|
|
1024
|
+
type ListOrganizationTeamMembersParams = {
|
|
1025
|
+
page?: number;
|
|
1026
|
+
limit?: number;
|
|
1027
|
+
};
|
|
1028
|
+
//#endregion
|
|
1029
|
+
//#region src/gen/models/list-users-params.d.ts
|
|
1030
|
+
/**
|
|
1031
|
+
* Generated by orval v8.20.0 🍺
|
|
1032
|
+
* Do not edit manually.
|
|
1033
|
+
* Authula API
|
|
1034
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
1035
|
+
* OpenAPI spec version: 0.1.0
|
|
1036
|
+
*/
|
|
1037
|
+
type ListUsersParams = {
|
|
1038
|
+
/**
|
|
1039
|
+
* @nullable
|
|
1040
|
+
*/
|
|
1041
|
+
cursor?: string | null;
|
|
1042
|
+
/**
|
|
1043
|
+
* @nullable
|
|
1044
|
+
*/
|
|
1045
|
+
limit?: number | null;
|
|
1046
|
+
};
|
|
1047
|
+
//#endregion
|
|
1048
|
+
//#region src/gen/models/magic-link-exchange-request.d.ts
|
|
1049
|
+
/**
|
|
1050
|
+
* Generated by orval v8.20.0 🍺
|
|
1051
|
+
* Do not edit manually.
|
|
1052
|
+
* Authula API
|
|
1053
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
1054
|
+
* OpenAPI spec version: 0.1.0
|
|
1055
|
+
*/
|
|
1056
|
+
type MagicLinkExchangeRequest = {
|
|
1057
|
+
token: string;
|
|
1058
|
+
};
|
|
1059
|
+
//#endregion
|
|
1060
|
+
//#region src/gen/models/magic-link-exchange-response.d.ts
|
|
1061
|
+
type MagicLinkExchangeResponse = {
|
|
1062
|
+
session: Session;
|
|
1063
|
+
user: User;
|
|
1064
|
+
};
|
|
1065
|
+
//#endregion
|
|
1066
|
+
//#region src/gen/models/magic-link-sign-in-request.d.ts
|
|
1067
|
+
/**
|
|
1068
|
+
* Generated by orval v8.20.0 🍺
|
|
1069
|
+
* Do not edit manually.
|
|
1070
|
+
* Authula API
|
|
1071
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
1072
|
+
* OpenAPI spec version: 0.1.0
|
|
1073
|
+
*/
|
|
1074
|
+
type MagicLinkSignInRequest = {
|
|
1075
|
+
/** @nullable */
|
|
1076
|
+
callbackUrl?: string | null;
|
|
1077
|
+
email: string;
|
|
1078
|
+
/** @nullable */
|
|
1079
|
+
name?: string | null;
|
|
1080
|
+
};
|
|
1081
|
+
//#endregion
|
|
1082
|
+
//#region src/gen/models/magic-link-sign-in-response.d.ts
|
|
1083
|
+
/**
|
|
1084
|
+
* Generated by orval v8.20.0 🍺
|
|
1085
|
+
* Do not edit manually.
|
|
1086
|
+
* Authula API
|
|
1087
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
1088
|
+
* OpenAPI spec version: 0.1.0
|
|
1089
|
+
*/
|
|
1090
|
+
type MagicLinkSignInResponse = {
|
|
1091
|
+
message: string;
|
|
1092
|
+
};
|
|
1093
|
+
//#endregion
|
|
1094
|
+
//#region src/gen/models/magic-link-verify-response.d.ts
|
|
1095
|
+
/**
|
|
1096
|
+
* Generated by orval v8.20.0 🍺
|
|
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
|
+
type MagicLinkVerifyResponse = {
|
|
1103
|
+
message: string;
|
|
1104
|
+
token?: string;
|
|
1105
|
+
};
|
|
1106
|
+
//#endregion
|
|
1107
|
+
//#region src/gen/models/oauth-authorize-params.d.ts
|
|
1108
|
+
/**
|
|
1109
|
+
* Generated by orval v8.20.0 🍺
|
|
1110
|
+
* Do not edit manually.
|
|
1111
|
+
* Authula API
|
|
1112
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
1113
|
+
* OpenAPI spec version: 0.1.0
|
|
1114
|
+
*/
|
|
1115
|
+
type OauthAuthorizeParams = {
|
|
1116
|
+
redirectTo?: string;
|
|
1117
|
+
};
|
|
1118
|
+
//#endregion
|
|
1119
|
+
//#region src/gen/models/oauth-callback-params.d.ts
|
|
1120
|
+
/**
|
|
1121
|
+
* Generated by orval v8.20.0 🍺
|
|
1122
|
+
* Do not edit manually.
|
|
1123
|
+
* Authula API
|
|
1124
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
1125
|
+
* OpenAPI spec version: 0.1.0
|
|
1126
|
+
*/
|
|
1127
|
+
type OauthCallbackParams = {
|
|
1128
|
+
code: string;
|
|
1129
|
+
state: string;
|
|
1130
|
+
error?: string;
|
|
1131
|
+
};
|
|
1132
|
+
//#endregion
|
|
1133
|
+
//#region src/gen/models/organization-metadata.d.ts
|
|
1134
|
+
/**
|
|
1135
|
+
* Generated by orval v8.20.0 🍺
|
|
1136
|
+
* Do not edit manually.
|
|
1137
|
+
* Authula API
|
|
1138
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
1139
|
+
* OpenAPI spec version: 0.1.0
|
|
1140
|
+
*/
|
|
1141
|
+
/**
|
|
1142
|
+
* @nullable
|
|
1143
|
+
*/
|
|
1144
|
+
type OrganizationMetadata = {
|
|
1145
|
+
[key: string]: unknown;
|
|
1146
|
+
} | null;
|
|
1147
|
+
//#endregion
|
|
1148
|
+
//#region src/gen/models/organization.d.ts
|
|
1149
|
+
type Organization = {
|
|
1150
|
+
createdAt: string;
|
|
1151
|
+
id: string;
|
|
1152
|
+
/** @nullable */
|
|
1153
|
+
logo?: string | null;
|
|
1154
|
+
/** @nullable */
|
|
1155
|
+
metadata?: OrganizationMetadata;
|
|
1156
|
+
name: string;
|
|
1157
|
+
ownerId: string;
|
|
1158
|
+
slug: string;
|
|
1159
|
+
updatedAt: string;
|
|
1160
|
+
};
|
|
1161
|
+
//#endregion
|
|
1162
|
+
//#region src/gen/models/organization-invitation-status.d.ts
|
|
1163
|
+
/**
|
|
1164
|
+
* Generated by orval v8.20.0 🍺
|
|
1165
|
+
* Do not edit manually.
|
|
1166
|
+
* Authula API
|
|
1167
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
1168
|
+
* OpenAPI spec version: 0.1.0
|
|
1169
|
+
*/
|
|
1170
|
+
/**
|
|
1171
|
+
* The type of the invitation status
|
|
1172
|
+
*/
|
|
1173
|
+
type OrganizationInvitationStatus = (typeof OrganizationInvitationStatus)[keyof typeof OrganizationInvitationStatus];
|
|
1174
|
+
declare const OrganizationInvitationStatus: {
|
|
1175
|
+
readonly pending: "pending";
|
|
1176
|
+
readonly accepted: "accepted";
|
|
1177
|
+
readonly rejected: "rejected";
|
|
1178
|
+
readonly revoked: "revoked";
|
|
1179
|
+
readonly expired: "expired";
|
|
1180
|
+
};
|
|
1181
|
+
//#endregion
|
|
1182
|
+
//#region src/gen/models/organization-invitation.d.ts
|
|
1183
|
+
type OrganizationInvitation = {
|
|
1184
|
+
createdAt: string;
|
|
1185
|
+
email: string;
|
|
1186
|
+
expiresAt: string;
|
|
1187
|
+
id: string;
|
|
1188
|
+
inviterId: string;
|
|
1189
|
+
organizationId: string;
|
|
1190
|
+
role: string;
|
|
1191
|
+
status: OrganizationInvitationStatus;
|
|
1192
|
+
};
|
|
1193
|
+
//#endregion
|
|
1194
|
+
//#region src/gen/models/organization-member.d.ts
|
|
1195
|
+
/**
|
|
1196
|
+
* Generated by orval v8.20.0 🍺
|
|
1197
|
+
* Do not edit manually.
|
|
1198
|
+
* Authula API
|
|
1199
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
1200
|
+
* OpenAPI spec version: 0.1.0
|
|
1201
|
+
*/
|
|
1202
|
+
type OrganizationMember = {
|
|
1203
|
+
createdAt: string;
|
|
1204
|
+
id: string;
|
|
1205
|
+
organizationId: string;
|
|
1206
|
+
role: string;
|
|
1207
|
+
updatedAt: string;
|
|
1208
|
+
userId: string;
|
|
1209
|
+
};
|
|
1210
|
+
//#endregion
|
|
1211
|
+
//#region src/gen/models/organization-team-metadata.d.ts
|
|
1212
|
+
/**
|
|
1213
|
+
* Generated by orval v8.20.0 🍺
|
|
1214
|
+
* Do not edit manually.
|
|
1215
|
+
* Authula API
|
|
1216
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
1217
|
+
* OpenAPI spec version: 0.1.0
|
|
1218
|
+
*/
|
|
1219
|
+
/**
|
|
1220
|
+
* @nullable
|
|
1221
|
+
*/
|
|
1222
|
+
type OrganizationTeamMetadata = {
|
|
1223
|
+
[key: string]: unknown;
|
|
1224
|
+
} | null;
|
|
1225
|
+
//#endregion
|
|
1226
|
+
//#region src/gen/models/organization-team.d.ts
|
|
1227
|
+
type OrganizationTeam = {
|
|
1228
|
+
createdAt: string;
|
|
1229
|
+
/** @nullable */
|
|
1230
|
+
description?: string | null;
|
|
1231
|
+
id: string;
|
|
1232
|
+
/** @nullable */
|
|
1233
|
+
metadata?: OrganizationTeamMetadata;
|
|
1234
|
+
name: string;
|
|
1235
|
+
organizationId: string;
|
|
1236
|
+
slug: string;
|
|
1237
|
+
updatedAt: string;
|
|
1238
|
+
};
|
|
1239
|
+
//#endregion
|
|
1240
|
+
//#region src/gen/models/organization-team-member.d.ts
|
|
1241
|
+
/**
|
|
1242
|
+
* Generated by orval v8.20.0 🍺
|
|
1243
|
+
* Do not edit manually.
|
|
1244
|
+
* Authula API
|
|
1245
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
1246
|
+
* OpenAPI spec version: 0.1.0
|
|
1247
|
+
*/
|
|
1248
|
+
type OrganizationTeamMember = {
|
|
1249
|
+
createdAt: string;
|
|
1250
|
+
id: string;
|
|
1251
|
+
memberId: string;
|
|
1252
|
+
teamId: string;
|
|
1253
|
+
};
|
|
1254
|
+
//#endregion
|
|
1255
|
+
//#region src/gen/models/refresh-token-request.d.ts
|
|
1256
|
+
/**
|
|
1257
|
+
* Generated by orval v8.20.0 🍺
|
|
1258
|
+
* Do not edit manually.
|
|
1259
|
+
* Authula API
|
|
1260
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
1261
|
+
* OpenAPI spec version: 0.1.0
|
|
1262
|
+
*/
|
|
1263
|
+
type RefreshTokenRequest = {
|
|
1264
|
+
refreshToken: string;
|
|
1265
|
+
};
|
|
1266
|
+
//#endregion
|
|
1267
|
+
//#region src/gen/models/refresh-token-response.d.ts
|
|
1268
|
+
/**
|
|
1269
|
+
* Generated by orval v8.20.0 🍺
|
|
1270
|
+
* Do not edit manually.
|
|
1271
|
+
* Authula API
|
|
1272
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
1273
|
+
* OpenAPI spec version: 0.1.0
|
|
1274
|
+
*/
|
|
1275
|
+
type RefreshTokenResponse = {
|
|
1276
|
+
accessToken: string;
|
|
1277
|
+
refreshToken: string;
|
|
1278
|
+
};
|
|
1279
|
+
//#endregion
|
|
1280
|
+
//#region src/gen/models/remove-role-permission-response.d.ts
|
|
1281
|
+
/**
|
|
1282
|
+
* Generated by orval v8.20.0 🍺
|
|
1283
|
+
* Do not edit manually.
|
|
1284
|
+
* Authula API
|
|
1285
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
1286
|
+
* OpenAPI spec version: 0.1.0
|
|
1287
|
+
*/
|
|
1288
|
+
type RemoveRolePermissionResponse = {
|
|
1289
|
+
message: string;
|
|
1290
|
+
};
|
|
1291
|
+
//#endregion
|
|
1292
|
+
//#region src/gen/models/remove-user-role-response.d.ts
|
|
1293
|
+
/**
|
|
1294
|
+
* Generated by orval v8.20.0 🍺
|
|
1295
|
+
* Do not edit manually.
|
|
1296
|
+
* Authula API
|
|
1297
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
1298
|
+
* OpenAPI spec version: 0.1.0
|
|
1299
|
+
*/
|
|
1300
|
+
type RemoveUserRoleResponse = {
|
|
1301
|
+
message: string;
|
|
1302
|
+
};
|
|
1303
|
+
//#endregion
|
|
1304
|
+
//#region src/gen/models/replace-role-permission-response.d.ts
|
|
1305
|
+
/**
|
|
1306
|
+
* Generated by orval v8.20.0 🍺
|
|
1307
|
+
* Do not edit manually.
|
|
1308
|
+
* Authula API
|
|
1309
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
1310
|
+
* OpenAPI spec version: 0.1.0
|
|
1311
|
+
*/
|
|
1312
|
+
type ReplaceRolePermissionResponse = {
|
|
1313
|
+
message: string;
|
|
1314
|
+
};
|
|
1315
|
+
//#endregion
|
|
1316
|
+
//#region src/gen/models/replace-role-permissions-request.d.ts
|
|
1317
|
+
/**
|
|
1318
|
+
* Generated by orval v8.20.0 🍺
|
|
1319
|
+
* Do not edit manually.
|
|
1320
|
+
* Authula API
|
|
1321
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
1322
|
+
* OpenAPI spec version: 0.1.0
|
|
1323
|
+
*/
|
|
1324
|
+
type ReplaceRolePermissionsRequest = {
|
|
1325
|
+
permissionIds: string[];
|
|
1326
|
+
};
|
|
1327
|
+
//#endregion
|
|
1328
|
+
//#region src/gen/models/replace-user-roles-request.d.ts
|
|
1329
|
+
/**
|
|
1330
|
+
* Generated by orval v8.20.0 🍺
|
|
1331
|
+
* Do not edit manually.
|
|
1332
|
+
* Authula API
|
|
1333
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
1334
|
+
* OpenAPI spec version: 0.1.0
|
|
1335
|
+
*/
|
|
1336
|
+
type ReplaceUserRolesRequest = {
|
|
1337
|
+
roleIds: string[];
|
|
1338
|
+
};
|
|
1339
|
+
//#endregion
|
|
1340
|
+
//#region src/gen/models/replace-user-roles-response.d.ts
|
|
1341
|
+
/**
|
|
1342
|
+
* Generated by orval v8.20.0 🍺
|
|
1343
|
+
* Do not edit manually.
|
|
1344
|
+
* Authula API
|
|
1345
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
1346
|
+
* OpenAPI spec version: 0.1.0
|
|
1347
|
+
*/
|
|
1348
|
+
type ReplaceUserRolesResponse = {
|
|
1349
|
+
message: string;
|
|
1350
|
+
};
|
|
1351
|
+
//#endregion
|
|
1352
|
+
//#region src/gen/models/request-email-change-request.d.ts
|
|
1353
|
+
/**
|
|
1354
|
+
* Generated by orval v8.20.0 🍺
|
|
1355
|
+
* Do not edit manually.
|
|
1356
|
+
* Authula API
|
|
1357
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
1358
|
+
* OpenAPI spec version: 0.1.0
|
|
1359
|
+
*/
|
|
1360
|
+
type RequestEmailChangeRequest = {
|
|
1361
|
+
/** @nullable */
|
|
1362
|
+
callbackUrl?: string | null;
|
|
1363
|
+
newEmail: string;
|
|
1364
|
+
};
|
|
1365
|
+
//#endregion
|
|
1366
|
+
//#region src/gen/models/request-password-reset-request.d.ts
|
|
1367
|
+
/**
|
|
1368
|
+
* Generated by orval v8.20.0 🍺
|
|
1369
|
+
* Do not edit manually.
|
|
1370
|
+
* Authula API
|
|
1371
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
1372
|
+
* OpenAPI spec version: 0.1.0
|
|
1373
|
+
*/
|
|
1374
|
+
type RequestPasswordResetRequest = {
|
|
1375
|
+
/** @nullable */
|
|
1376
|
+
callbackUrl?: string | null;
|
|
1377
|
+
email: string;
|
|
1378
|
+
};
|
|
1379
|
+
//#endregion
|
|
1380
|
+
//#region src/gen/models/revoke-session-request.d.ts
|
|
1381
|
+
/**
|
|
1382
|
+
* Generated by orval v8.20.0 🍺
|
|
1383
|
+
* Do not edit manually.
|
|
1384
|
+
* Authula API
|
|
1385
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
1386
|
+
* OpenAPI spec version: 0.1.0
|
|
1387
|
+
*/
|
|
1388
|
+
type RevokeSessionRequest = {
|
|
1389
|
+
/** @nullable */
|
|
1390
|
+
reason?: string | null;
|
|
1391
|
+
};
|
|
1392
|
+
//#endregion
|
|
1393
|
+
//#region src/gen/models/revoke-session-response.d.ts
|
|
1394
|
+
type RevokeSessionResponse = {
|
|
1395
|
+
state: AdminSessionState;
|
|
1396
|
+
};
|
|
1397
|
+
//#endregion
|
|
1398
|
+
//#region src/gen/models/role-details.d.ts
|
|
1399
|
+
type RoleDetails = {
|
|
1400
|
+
permissions: UserPermissionInfo[];
|
|
1401
|
+
role: Role;
|
|
1402
|
+
};
|
|
1403
|
+
//#endregion
|
|
1404
|
+
//#region src/gen/models/send-email-verification-request.d.ts
|
|
1405
|
+
/**
|
|
1406
|
+
* Generated by orval v8.20.0 🍺
|
|
1407
|
+
* Do not edit manually.
|
|
1408
|
+
* Authula API
|
|
1409
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
1410
|
+
* OpenAPI spec version: 0.1.0
|
|
1411
|
+
*/
|
|
1412
|
+
type SendEmailVerificationRequest = {
|
|
1413
|
+
/** @nullable */
|
|
1414
|
+
callbackUrl?: string | null;
|
|
1415
|
+
};
|
|
1416
|
+
//#endregion
|
|
1417
|
+
//#region src/gen/models/sign-in-request.d.ts
|
|
1418
|
+
/**
|
|
1419
|
+
* Generated by orval v8.20.0 🍺
|
|
1420
|
+
* Do not edit manually.
|
|
1421
|
+
* Authula API
|
|
1422
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
1423
|
+
* OpenAPI spec version: 0.1.0
|
|
1424
|
+
*/
|
|
1425
|
+
type SignInRequest = {
|
|
1426
|
+
/** @nullable */
|
|
1427
|
+
callbackUrl?: string | null;
|
|
1428
|
+
email: string;
|
|
1429
|
+
password: string;
|
|
1430
|
+
};
|
|
1431
|
+
//#endregion
|
|
1432
|
+
//#region src/gen/models/sign-in-response.d.ts
|
|
1433
|
+
type SignInResponse = {
|
|
1434
|
+
session: Session;
|
|
1435
|
+
user: User;
|
|
1436
|
+
};
|
|
1437
|
+
//#endregion
|
|
1438
|
+
//#region src/gen/models/sign-out-request.d.ts
|
|
1439
|
+
/**
|
|
1440
|
+
* Generated by orval v8.20.0 🍺
|
|
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
|
+
type SignOutRequest = {
|
|
1447
|
+
/** @nullable */
|
|
1448
|
+
sessionId?: string | null;
|
|
1449
|
+
/** @nullable */
|
|
1450
|
+
signOutAll?: boolean | null;
|
|
1451
|
+
};
|
|
1452
|
+
//#endregion
|
|
1453
|
+
//#region src/gen/models/sign-out-response.d.ts
|
|
1454
|
+
/**
|
|
1455
|
+
* Generated by orval v8.20.0 🍺
|
|
1456
|
+
* Do not edit manually.
|
|
1457
|
+
* Authula API
|
|
1458
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
1459
|
+
* OpenAPI spec version: 0.1.0
|
|
1460
|
+
*/
|
|
1461
|
+
type SignOutResponse = {
|
|
1462
|
+
message: string;
|
|
1463
|
+
};
|
|
1464
|
+
//#endregion
|
|
1465
|
+
//#region src/gen/models/sign-up-request-metadata.d.ts
|
|
1466
|
+
/**
|
|
1467
|
+
* Generated by orval v8.20.0 🍺
|
|
1468
|
+
* Do not edit manually.
|
|
1469
|
+
* Authula API
|
|
1470
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
1471
|
+
* OpenAPI spec version: 0.1.0
|
|
1472
|
+
*/
|
|
1473
|
+
/**
|
|
1474
|
+
* @nullable
|
|
1475
|
+
*/
|
|
1476
|
+
type SignUpRequestMetadata = {
|
|
1477
|
+
[key: string]: unknown;
|
|
1478
|
+
} | null;
|
|
1479
|
+
//#endregion
|
|
1480
|
+
//#region src/gen/models/sign-up-request.d.ts
|
|
1481
|
+
type SignUpRequest = {
|
|
1482
|
+
/** @nullable */
|
|
1483
|
+
callbackUrl?: string | null;
|
|
1484
|
+
email: string;
|
|
1485
|
+
/** @nullable */
|
|
1486
|
+
image?: string | null;
|
|
1487
|
+
/** @nullable */
|
|
1488
|
+
metadata?: SignUpRequestMetadata;
|
|
1489
|
+
name: string;
|
|
1490
|
+
password: string;
|
|
1491
|
+
};
|
|
1492
|
+
//#endregion
|
|
1493
|
+
//#region src/gen/models/sign-up-response.d.ts
|
|
1494
|
+
type SignUpResponse = {
|
|
1495
|
+
session: Session;
|
|
1496
|
+
user: User;
|
|
1497
|
+
};
|
|
1498
|
+
//#endregion
|
|
1499
|
+
//#region src/gen/models/start-impersonation-request.d.ts
|
|
1500
|
+
/**
|
|
1501
|
+
* Generated by orval v8.20.0 🍺
|
|
1502
|
+
* Do not edit manually.
|
|
1503
|
+
* Authula API
|
|
1504
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
1505
|
+
* OpenAPI spec version: 0.1.0
|
|
1506
|
+
*/
|
|
1507
|
+
type StartImpersonationRequest = {
|
|
1508
|
+
/** @nullable */
|
|
1509
|
+
expiresInSeconds?: number | null;
|
|
1510
|
+
reason: string;
|
|
1511
|
+
targetUserId: string;
|
|
1512
|
+
};
|
|
1513
|
+
//#endregion
|
|
1514
|
+
//#region src/gen/models/start-impersonation-response.d.ts
|
|
1515
|
+
type StartImpersonationResponse = {
|
|
1516
|
+
impersonation: Impersonation;
|
|
1517
|
+
};
|
|
1518
|
+
//#endregion
|
|
1519
|
+
//#region src/gen/models/stop-impersonation-response.d.ts
|
|
1520
|
+
/**
|
|
1521
|
+
* Generated by orval v8.20.0 🍺
|
|
1522
|
+
* Do not edit manually.
|
|
1523
|
+
* Authula API
|
|
1524
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
1525
|
+
* OpenAPI spec version: 0.1.0
|
|
1526
|
+
*/
|
|
1527
|
+
type StopImpersonationResponse = {
|
|
1528
|
+
message: string;
|
|
1529
|
+
};
|
|
1530
|
+
//#endregion
|
|
1531
|
+
//#region src/gen/models/unban-user-response.d.ts
|
|
1532
|
+
type UnbanUserResponse = {
|
|
1533
|
+
state: AdminUserState;
|
|
1534
|
+
};
|
|
1535
|
+
//#endregion
|
|
1536
|
+
//#region src/gen/models/update-account-request.d.ts
|
|
1537
|
+
/**
|
|
1538
|
+
* Generated by orval v8.20.0 🍺
|
|
1539
|
+
* Do not edit manually.
|
|
1540
|
+
* Authula API
|
|
1541
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
1542
|
+
* OpenAPI spec version: 0.1.0
|
|
1543
|
+
*/
|
|
1544
|
+
type UpdateAccountRequest = {
|
|
1545
|
+
/** @nullable */
|
|
1546
|
+
accessToken?: string | null;
|
|
1547
|
+
/** @nullable */
|
|
1548
|
+
accessTokenExpiresAt?: string | null;
|
|
1549
|
+
/** @nullable */
|
|
1550
|
+
accountId?: string | null;
|
|
1551
|
+
/** @nullable */
|
|
1552
|
+
idToken?: string | null;
|
|
1553
|
+
/** @nullable */
|
|
1554
|
+
password?: string | null;
|
|
1555
|
+
/** @nullable */
|
|
1556
|
+
providerId?: string | null;
|
|
1557
|
+
/** @nullable */
|
|
1558
|
+
refreshToken?: string | null;
|
|
1559
|
+
/** @nullable */
|
|
1560
|
+
refreshTokenExpiresAt?: string | null;
|
|
1561
|
+
/** @nullable */
|
|
1562
|
+
scope?: string | null;
|
|
1563
|
+
};
|
|
1564
|
+
//#endregion
|
|
1565
|
+
//#region src/gen/models/update-account-response.d.ts
|
|
1566
|
+
type UpdateAccountResponse = {
|
|
1567
|
+
account: Account;
|
|
1568
|
+
};
|
|
1569
|
+
//#endregion
|
|
1570
|
+
//#region src/gen/models/update-api-key-request-metadata.d.ts
|
|
1571
|
+
/**
|
|
1572
|
+
* Generated by orval v8.20.0 🍺
|
|
1573
|
+
* Do not edit manually.
|
|
1574
|
+
* Authula API
|
|
1575
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
1576
|
+
* OpenAPI spec version: 0.1.0
|
|
1577
|
+
*/
|
|
1578
|
+
/**
|
|
1579
|
+
* @nullable
|
|
1580
|
+
*/
|
|
1581
|
+
type UpdateApiKeyRequestMetadata = {
|
|
1582
|
+
[key: string]: unknown;
|
|
1583
|
+
} | null;
|
|
1584
|
+
//#endregion
|
|
1585
|
+
//#region src/gen/models/update-api-key-request.d.ts
|
|
1586
|
+
type UpdateApiKeyRequest = {
|
|
1587
|
+
/** @nullable */
|
|
1588
|
+
enabled?: boolean | null;
|
|
1589
|
+
/** @nullable */
|
|
1590
|
+
expiresAt?: string | null;
|
|
1591
|
+
/** @nullable */
|
|
1592
|
+
metadata?: UpdateApiKeyRequestMetadata;
|
|
1593
|
+
/** @nullable */
|
|
1594
|
+
name?: string | null;
|
|
1595
|
+
/** @nullable */
|
|
1596
|
+
permissions?: string[] | null;
|
|
1597
|
+
/** @nullable */
|
|
1598
|
+
rateLimitEnabled?: boolean | null;
|
|
1599
|
+
/** @nullable */
|
|
1600
|
+
rateLimitMaxRequests?: number | null;
|
|
1601
|
+
/** @nullable */
|
|
1602
|
+
rateLimitTimeWindow?: number | null;
|
|
1603
|
+
};
|
|
1604
|
+
//#endregion
|
|
1605
|
+
//#region src/gen/models/update-api-key-response.d.ts
|
|
1606
|
+
type UpdateApiKeyResponse = {
|
|
1607
|
+
apiKey: ApiKey;
|
|
1608
|
+
};
|
|
1609
|
+
//#endregion
|
|
1610
|
+
//#region src/gen/models/update-organization-member-request.d.ts
|
|
1611
|
+
/**
|
|
1612
|
+
* Generated by orval v8.20.0 🍺
|
|
1613
|
+
* Do not edit manually.
|
|
1614
|
+
* Authula API
|
|
1615
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
1616
|
+
* OpenAPI spec version: 0.1.0
|
|
1617
|
+
*/
|
|
1618
|
+
type UpdateOrganizationMemberRequest = {
|
|
1619
|
+
role: string;
|
|
1620
|
+
};
|
|
1621
|
+
//#endregion
|
|
1622
|
+
//#region src/gen/models/update-organization-request-metadata.d.ts
|
|
1623
|
+
/**
|
|
1624
|
+
* Generated by orval v8.20.0 🍺
|
|
1625
|
+
* Do not edit manually.
|
|
1626
|
+
* Authula API
|
|
1627
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
1628
|
+
* OpenAPI spec version: 0.1.0
|
|
1629
|
+
*/
|
|
1630
|
+
/**
|
|
1631
|
+
* @nullable
|
|
1632
|
+
*/
|
|
1633
|
+
type UpdateOrganizationRequestMetadata = {
|
|
1634
|
+
[key: string]: unknown;
|
|
1635
|
+
} | null;
|
|
1636
|
+
//#endregion
|
|
1637
|
+
//#region src/gen/models/update-organization-request.d.ts
|
|
1638
|
+
type UpdateOrganizationRequest = {
|
|
1639
|
+
/** @nullable */
|
|
1640
|
+
logo?: string | null;
|
|
1641
|
+
/** @nullable */
|
|
1642
|
+
metadata?: UpdateOrganizationRequestMetadata;
|
|
1643
|
+
/** @nullable */
|
|
1644
|
+
name?: string | null;
|
|
1645
|
+
/** @nullable */
|
|
1646
|
+
slug?: string | null;
|
|
1647
|
+
};
|
|
1648
|
+
//#endregion
|
|
1649
|
+
//#region src/gen/models/update-organization-team-request-metadata.d.ts
|
|
1650
|
+
/**
|
|
1651
|
+
* Generated by orval v8.20.0 🍺
|
|
1652
|
+
* Do not edit manually.
|
|
1653
|
+
* Authula API
|
|
1654
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
1655
|
+
* OpenAPI spec version: 0.1.0
|
|
1656
|
+
*/
|
|
1657
|
+
/**
|
|
1658
|
+
* @nullable
|
|
1659
|
+
*/
|
|
1660
|
+
type UpdateOrganizationTeamRequestMetadata = {
|
|
1661
|
+
[key: string]: unknown;
|
|
1662
|
+
} | null;
|
|
1663
|
+
//#endregion
|
|
1664
|
+
//#region src/gen/models/update-organization-team-request.d.ts
|
|
1665
|
+
type UpdateOrganizationTeamRequest = {
|
|
1666
|
+
/** @nullable */
|
|
1667
|
+
description?: string | null;
|
|
1668
|
+
/** @nullable */
|
|
1669
|
+
metadata?: UpdateOrganizationTeamRequestMetadata;
|
|
1670
|
+
name: string;
|
|
1671
|
+
/** @nullable */
|
|
1672
|
+
slug?: string | null;
|
|
1673
|
+
};
|
|
1674
|
+
//#endregion
|
|
1675
|
+
//#region src/gen/models/update-permission-request.d.ts
|
|
1676
|
+
/**
|
|
1677
|
+
* Generated by orval v8.20.0 🍺
|
|
1678
|
+
* Do not edit manually.
|
|
1679
|
+
* Authula API
|
|
1680
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
1681
|
+
* OpenAPI spec version: 0.1.0
|
|
1682
|
+
*/
|
|
1683
|
+
type UpdatePermissionRequest = {
|
|
1684
|
+
/** @nullable */
|
|
1685
|
+
description?: string | null;
|
|
1686
|
+
};
|
|
1687
|
+
//#endregion
|
|
1688
|
+
//#region src/gen/models/update-permission-response.d.ts
|
|
1689
|
+
type UpdatePermissionResponse = {
|
|
1690
|
+
permission: Permission;
|
|
1691
|
+
};
|
|
1692
|
+
//#endregion
|
|
1693
|
+
//#region src/gen/models/update-role-request.d.ts
|
|
1694
|
+
/**
|
|
1695
|
+
* Generated by orval v8.20.0 🍺
|
|
1696
|
+
* Do not edit manually.
|
|
1697
|
+
* Authula API
|
|
1698
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
1699
|
+
* OpenAPI spec version: 0.1.0
|
|
1700
|
+
*/
|
|
1701
|
+
type UpdateRoleRequest = {
|
|
1702
|
+
/** @nullable */
|
|
1703
|
+
description?: string | null;
|
|
1704
|
+
/** @nullable */
|
|
1705
|
+
name?: string | null;
|
|
1706
|
+
/** @nullable */
|
|
1707
|
+
weight?: number | null;
|
|
1708
|
+
};
|
|
1709
|
+
//#endregion
|
|
1710
|
+
//#region src/gen/models/update-role-response.d.ts
|
|
1711
|
+
type UpdateRoleResponse = {
|
|
1712
|
+
role: Role;
|
|
1713
|
+
};
|
|
1714
|
+
//#endregion
|
|
1715
|
+
//#region src/gen/models/update-user-request-metadata.d.ts
|
|
1716
|
+
/**
|
|
1717
|
+
* Generated by orval v8.20.0 🍺
|
|
1718
|
+
* Do not edit manually.
|
|
1719
|
+
* Authula API
|
|
1720
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
1721
|
+
* OpenAPI spec version: 0.1.0
|
|
1722
|
+
*/
|
|
1723
|
+
/**
|
|
1724
|
+
* @nullable
|
|
1725
|
+
*/
|
|
1726
|
+
type UpdateUserRequestMetadata = {
|
|
1727
|
+
[key: string]: unknown;
|
|
1728
|
+
} | null;
|
|
1729
|
+
//#endregion
|
|
1730
|
+
//#region src/gen/models/update-user-request.d.ts
|
|
1731
|
+
type UpdateUserRequest = {
|
|
1732
|
+
/** @nullable */
|
|
1733
|
+
email?: string | null;
|
|
1734
|
+
/** @nullable */
|
|
1735
|
+
emailVerified?: boolean | null;
|
|
1736
|
+
/** @nullable */
|
|
1737
|
+
image?: string | null;
|
|
1738
|
+
/** @nullable */
|
|
1739
|
+
metadata?: UpdateUserRequestMetadata;
|
|
1740
|
+
/** @nullable */
|
|
1741
|
+
name?: string | null;
|
|
1742
|
+
};
|
|
1743
|
+
//#endregion
|
|
1744
|
+
//#region src/gen/models/update-user-response.d.ts
|
|
1745
|
+
type UpdateUserResponse = {
|
|
1746
|
+
user: User;
|
|
1747
|
+
};
|
|
1748
|
+
//#endregion
|
|
1749
|
+
//#region src/gen/models/upsert-session-state-request.d.ts
|
|
1750
|
+
/**
|
|
1751
|
+
* Generated by orval v8.20.0 🍺
|
|
1752
|
+
* Do not edit manually.
|
|
1753
|
+
* Authula API
|
|
1754
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
1755
|
+
* OpenAPI spec version: 0.1.0
|
|
1756
|
+
*/
|
|
1757
|
+
type UpsertSessionStateRequest = {
|
|
1758
|
+
/** @nullable */
|
|
1759
|
+
impersonationExpiresAt?: string | null;
|
|
1760
|
+
/** @nullable */
|
|
1761
|
+
impersonationReason?: string | null;
|
|
1762
|
+
/** @nullable */
|
|
1763
|
+
impersonatorUserId?: string | null;
|
|
1764
|
+
revoke: boolean;
|
|
1765
|
+
/** @nullable */
|
|
1766
|
+
revokedReason?: string | null;
|
|
1767
|
+
};
|
|
1768
|
+
//#endregion
|
|
1769
|
+
//#region src/gen/models/upsert-session-state-response.d.ts
|
|
1770
|
+
type UpsertSessionStateResponse = {
|
|
1771
|
+
state: AdminSessionState;
|
|
1772
|
+
};
|
|
1773
|
+
//#endregion
|
|
1774
|
+
//#region src/gen/models/upsert-user-state-request.d.ts
|
|
1775
|
+
/**
|
|
1776
|
+
* Generated by orval v8.20.0 🍺
|
|
1777
|
+
* Do not edit manually.
|
|
1778
|
+
* Authula API
|
|
1779
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
1780
|
+
* OpenAPI spec version: 0.1.0
|
|
1781
|
+
*/
|
|
1782
|
+
type UpsertUserStateRequest = {
|
|
1783
|
+
banned: boolean;
|
|
1784
|
+
/** @nullable */
|
|
1785
|
+
bannedReason?: string | null;
|
|
1786
|
+
/** @nullable */
|
|
1787
|
+
bannedUntil?: string | null;
|
|
1788
|
+
};
|
|
1789
|
+
//#endregion
|
|
1790
|
+
//#region src/gen/models/upsert-user-state-response.d.ts
|
|
1791
|
+
type UpsertUserStateResponse = {
|
|
1792
|
+
state: AdminUserState;
|
|
1793
|
+
};
|
|
1794
|
+
//#endregion
|
|
1795
|
+
//#region src/gen/models/user-accounts-response.d.ts
|
|
1796
|
+
type UserAccountsResponse = {
|
|
1797
|
+
accounts: Account[];
|
|
1798
|
+
};
|
|
1799
|
+
//#endregion
|
|
1800
|
+
//#region src/gen/models/user-role-info.d.ts
|
|
1801
|
+
/**
|
|
1802
|
+
* Generated by orval v8.20.0 🍺
|
|
1803
|
+
* Do not edit manually.
|
|
1804
|
+
* Authula API
|
|
1805
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
1806
|
+
* OpenAPI spec version: 0.1.0
|
|
1807
|
+
*/
|
|
1808
|
+
type UserRoleInfo = {
|
|
1809
|
+
/** @nullable */
|
|
1810
|
+
assignedAt?: string | null;
|
|
1811
|
+
/** @nullable */
|
|
1812
|
+
assignedByUserId?: string | null;
|
|
1813
|
+
/** @nullable */
|
|
1814
|
+
expiresAt?: string | null;
|
|
1815
|
+
/** @nullable */
|
|
1816
|
+
roleDescription?: string | null;
|
|
1817
|
+
roleId: string;
|
|
1818
|
+
roleName: string;
|
|
1819
|
+
roleWeight: number;
|
|
1820
|
+
};
|
|
1821
|
+
//#endregion
|
|
1822
|
+
//#region src/gen/models/users-page.d.ts
|
|
1823
|
+
type UsersPage = {
|
|
1824
|
+
/** @nullable */
|
|
1825
|
+
nextCursor?: string | null;
|
|
1826
|
+
users: User[];
|
|
1827
|
+
};
|
|
1828
|
+
//#endregion
|
|
1829
|
+
//#region src/gen/models/verify-api-key-request.d.ts
|
|
1830
|
+
/**
|
|
1831
|
+
* Generated by orval v8.20.0 🍺
|
|
1832
|
+
* Do not edit manually.
|
|
1833
|
+
* Authula API
|
|
1834
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
1835
|
+
* OpenAPI spec version: 0.1.0
|
|
1836
|
+
*/
|
|
1837
|
+
type VerifyApiKeyRequest = {
|
|
1838
|
+
key: string;
|
|
1839
|
+
};
|
|
1840
|
+
//#endregion
|
|
1841
|
+
//#region src/gen/models/verify-api-key-response.d.ts
|
|
1842
|
+
type VerifyApiKeyResponse = {
|
|
1843
|
+
apiKey: ApiKey;
|
|
1844
|
+
};
|
|
1845
|
+
//#endregion
|
|
1846
|
+
//#region src/gen/models/verify-backup-code-request.d.ts
|
|
1847
|
+
/**
|
|
1848
|
+
* Generated by orval v8.20.0 🍺
|
|
1849
|
+
* Do not edit manually.
|
|
1850
|
+
* Authula API
|
|
1851
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
1852
|
+
* OpenAPI spec version: 0.1.0
|
|
1853
|
+
*/
|
|
1854
|
+
type VerifyBackupCodeRequest = {
|
|
1855
|
+
code: string;
|
|
1856
|
+
trustDevice?: boolean;
|
|
1857
|
+
};
|
|
1858
|
+
//#endregion
|
|
1859
|
+
//#region src/gen/models/verify-backup-code-response.d.ts
|
|
1860
|
+
type VerifyBackupCodeResponse = {
|
|
1861
|
+
session: Session;
|
|
1862
|
+
user: User;
|
|
1863
|
+
};
|
|
1864
|
+
//#endregion
|
|
1865
|
+
//#region src/gen/models/verify-magic-link-params.d.ts
|
|
1866
|
+
/**
|
|
1867
|
+
* Generated by orval v8.20.0 🍺
|
|
1868
|
+
* Do not edit manually.
|
|
1869
|
+
* Authula API
|
|
1870
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
1871
|
+
* OpenAPI spec version: 0.1.0
|
|
1872
|
+
*/
|
|
1873
|
+
type VerifyMagicLinkParams = {
|
|
1874
|
+
token: string;
|
|
1875
|
+
callbackUrl?: string;
|
|
1876
|
+
};
|
|
1877
|
+
//#endregion
|
|
1878
|
+
//#region src/gen/models/verify-totp-request.d.ts
|
|
1879
|
+
/**
|
|
1880
|
+
* Generated by orval v8.20.0 🍺
|
|
1881
|
+
* Do not edit manually.
|
|
1882
|
+
* Authula API
|
|
1883
|
+
* Authula API - An open-source authentication solution that scales with you.
|
|
1884
|
+
* OpenAPI spec version: 0.1.0
|
|
1885
|
+
*/
|
|
1886
|
+
type VerifyTOTPRequest = {
|
|
1887
|
+
code: string;
|
|
1888
|
+
trustDevice?: boolean;
|
|
1889
|
+
};
|
|
1890
|
+
//#endregion
|
|
1891
|
+
//#region src/gen/models/verify-totp-response.d.ts
|
|
1892
|
+
type VerifyTOTPResponse = {
|
|
1893
|
+
session: Session;
|
|
1894
|
+
user: User;
|
|
1895
|
+
};
|
|
1896
|
+
//#endregion
|
|
1897
|
+
//#region src/gen/models/well-known-jwks-response.d.ts
|
|
1898
|
+
type WellKnownJWKSResponse = {
|
|
1899
|
+
keys: Jwk[];
|
|
1900
|
+
};
|
|
1901
|
+
//#endregion
|
|
1902
|
+
//#region src/types/http.d.ts
|
|
1903
|
+
type FetchContext = {
|
|
1904
|
+
url: string;
|
|
1905
|
+
init: RequestInit;
|
|
1906
|
+
/** internal metadata for plugins */
|
|
1907
|
+
meta: {
|
|
1908
|
+
retry?: boolean;
|
|
1909
|
+
};
|
|
1910
|
+
};
|
|
1911
|
+
type BeforeFetchHook = (ctx: FetchContext) => Promise<void> | void;
|
|
1912
|
+
type AfterFetchHook = (ctx: FetchContext, res: Response) => Promise<"retry" | void> | "retry" | void;
|
|
1913
|
+
//#endregion
|
|
1914
|
+
//#region src/client.d.ts
|
|
1915
|
+
declare class AuthulaClient {
|
|
1916
|
+
readonly config: AuthulaClientConfig;
|
|
1917
|
+
private readonly plugins;
|
|
1918
|
+
private readonly beforeFetchHooks;
|
|
1919
|
+
private readonly afterFetchHooks;
|
|
1920
|
+
constructor(options: AuthulaClientOptions);
|
|
1921
|
+
registerBeforeFetch(hook: BeforeFetchHook): void;
|
|
1922
|
+
registerAfterFetch(hook: AfterFetchHook): void;
|
|
1923
|
+
runBeforeFetch(ctx: FetchContext): Promise<void>;
|
|
1924
|
+
runAfterFetch(ctx: FetchContext, res: Response): Promise<"retry" | undefined>;
|
|
1925
|
+
getPlugin<T extends Plugin>(id: string): T | undefined;
|
|
1926
|
+
}
|
|
1927
|
+
//#endregion
|
|
1928
|
+
//#region src/types/plugins.d.ts
|
|
1929
|
+
interface Plugin {
|
|
1930
|
+
readonly id: string;
|
|
1931
|
+
init(client: AuthulaClient): any;
|
|
1932
|
+
}
|
|
1933
|
+
//#endregion
|
|
1934
|
+
//#region src/types/config.d.ts
|
|
1935
|
+
type FetchOptions = {
|
|
1936
|
+
/**
|
|
1937
|
+
* Additional headers to include in every request made by the client
|
|
1938
|
+
*/
|
|
1939
|
+
headers?: Record<string, string>;
|
|
1940
|
+
/**
|
|
1941
|
+
* The abort timeout in seconds
|
|
1942
|
+
*/
|
|
1943
|
+
abortTimeout?: number;
|
|
1944
|
+
};
|
|
1945
|
+
type CookieAttributes = {
|
|
1946
|
+
path?: string;
|
|
1947
|
+
domain?: string;
|
|
1948
|
+
expires?: Date;
|
|
1949
|
+
maxAge?: number;
|
|
1950
|
+
httpOnly?: boolean;
|
|
1951
|
+
secure?: boolean;
|
|
1952
|
+
sameSite?: "lax" | "strict" | "none";
|
|
1953
|
+
};
|
|
1954
|
+
interface CookieStore {
|
|
1955
|
+
getAll(): {
|
|
1956
|
+
name: string;
|
|
1957
|
+
value: string;
|
|
1958
|
+
}[];
|
|
1959
|
+
set(name: string, value: string, options?: CookieAttributes): void;
|
|
1960
|
+
}
|
|
1961
|
+
type AuthulaClientConfig = {
|
|
1962
|
+
/**
|
|
1963
|
+
* The URL of your Authula server
|
|
1964
|
+
* @example 'http://localhost:8080/api/auth'
|
|
1965
|
+
*/
|
|
1966
|
+
url: string;
|
|
1967
|
+
fetchOptions?: FetchOptions;
|
|
1968
|
+
/**
|
|
1969
|
+
* Optional cookie store for SSR environments.
|
|
1970
|
+
* In the browser, cookies are handled automatically via document.cookie.
|
|
1971
|
+
* In SSR (Next.js, Tanstack Start, etc.), provide a function that returns a CookieStore
|
|
1972
|
+
* compatible with the framework's cookies API.
|
|
1973
|
+
*
|
|
1974
|
+
* @example Next.js
|
|
1975
|
+
* cookies: () => import('next/headers').then(m => m.cookies())
|
|
1976
|
+
*/
|
|
1977
|
+
cookies?: () => CookieStore | Promise<CookieStore>;
|
|
1978
|
+
};
|
|
1979
|
+
type AuthulaClientOptions = AuthulaClientConfig & {
|
|
1980
|
+
/**
|
|
1981
|
+
* The list of plugins to use
|
|
1982
|
+
*/
|
|
1983
|
+
plugins: Array<Plugin>;
|
|
1984
|
+
};
|
|
1985
|
+
//#endregion
|
|
1986
|
+
//#region src/mutators/custom-fetch.d.ts
|
|
1987
|
+
declare class ApiError extends Error {
|
|
1988
|
+
status: number;
|
|
1989
|
+
data: any;
|
|
1990
|
+
headers: Headers;
|
|
1991
|
+
constructor(message: string, status: number, data: any, headers: Headers);
|
|
1992
|
+
}
|
|
1993
|
+
declare function customFetch<T>(url: string, options?: RequestInit & {
|
|
1994
|
+
method?: string;
|
|
1995
|
+
baseUrl?: string;
|
|
1996
|
+
cookies?: () => CookieStore | Promise<CookieStore>;
|
|
1997
|
+
onBeforeFetch?: (ctx: FetchContext) => Promise<void>;
|
|
1998
|
+
onAfterFetch?: (ctx: FetchContext, res: Response) => Promise<"retry" | void>;
|
|
1999
|
+
}): Promise<T>;
|
|
2000
|
+
//#endregion
|
|
2001
|
+
//#region src/sdk.d.ts
|
|
2002
|
+
type InferPluginMethods<P> = P extends {
|
|
2003
|
+
init: (client: any) => infer M;
|
|
2004
|
+
} ? M : never;
|
|
2005
|
+
type ClientWithPlugins<T extends readonly Plugin[]> = AuthulaClient & { [P in T[number] as P["id"]]: InferPluginMethods<P>; };
|
|
2006
|
+
declare function createClient<const T extends readonly Plugin[]>(options: Omit<AuthulaClientOptions, "plugins"> & {
|
|
2007
|
+
plugins: T;
|
|
2008
|
+
}): ClientWithPlugins<T>;
|
|
2009
|
+
//#endregion
|
|
2010
|
+
export { SignUpRequestMetadata as $, AddOrganizationTeamMemberRequest as $n, DisableResponse as $t, UpdateUserResponse as A, CreateAccountResponse as An, MagicLinkSignInRequest as At, UpdateOrganizationRequestMetadata as B, BanUserResponse as Bn, UserPermissionInfo as Bt, UsersPage as C, CreateOrganizationTeamRequestMetadata as Cn, OrganizationInvitationStatus as Ct, UpsertUserStateRequest as D, CreateApiKeyResponse as Dn, OauthAuthorizeParams as Dt, UpsertUserStateResponse as E, CreateOrganizationInvitationRequest as En, OauthCallbackParams as Et, UpdatePermissionResponse as F, ChangePasswordRequest as Fn, ListOrganizationMembersParams as Ft, UpdateAccountResponse as G, ApiKey as Gn, GetMeResponse as Gt, UpdateApiKeyResponse as H, AuthorizeResponse as Hn, GetUserByIDResponse as Ht, UpdatePermissionRequest as I, ChangeEmailResponse as In, ListApiKeysParams as It, StopImpersonationResponse as J, AdminUserSession as Jn, GetApiKeyResponse as Jt, UpdateAccountRequest as K, ApiKeyMetadata as Kn, GetImpersonationByIDResponse as Kt, UpdateOrganizationTeamRequest as L, CallbackResponse as Ln, Jwk as Lt, UpdateUserRequestMetadata as M, CheckUserPermissionsResponse as Mn, MagicLinkExchangeRequest as Mt, UpdateRoleResponse as N, CheckUserPermissionsRequest as Nn, ListUsersParams as Nt, UpsertSessionStateResponse as O, CreateApiKeyRequest as On, MagicLinkVerifyResponse as Ot, UpdateRoleRequest as P, ChangePasswordResponse as Pn, ListOrganizationTeamMembersParams as Pt, SignUpRequest as Q, AddRolePermissionRequest as Qn, EnableResponse as Qt, UpdateOrganizationTeamRequestMetadata as R, User as Rn, GetUserStateResponse as Rt, VerifyApiKeyRequest as S, CreateOrganizationTeamRequest as Sn, OrganizationInvitation as St, UserAccountsResponse as T, CreateOrganizationRequestMetadata as Tn, OrganizationMetadata as Tt, UpdateApiKeyRequest as U, AssignUserRoleResponse as Un, GetTOTPURIResponse as Ut, UpdateOrganizationMemberRequest as V, BanUserRequest as Vn, PermissionGrantSource as Vt, UpdateApiKeyRequestMetadata as W, AssignUserRoleRequest as Wn, GetSessionStateResponse as Wt, StartImpersonationRequest as X, AdminSessionState as Xn, GetAccountByIDResponse as Xt, StartImpersonationResponse as Y, Session as Yn, GetAllApiKeysResponse as Yt, SignUpResponse as Z, AddRolePermissionResponse as Zn, GenerateBackupCodesResponse as Zt, VerifyTOTPRequest as _, Role as _n, RefreshTokenRequest as _t, AuthulaClientConfig as a, DeleteOrganizationTeamResponse as an, RoleDetails as at, VerifyBackupCodeRequest as b, Permission as bn, OrganizationTeamMetadata as bt, CookieStore as c, DeleteOrganizationMemberResponse as cn, RequestPasswordResetRequest as ct, AuthulaClient as d, CreateUserStateRequest as dn, ReplaceUserRolesRequest as dt, DeleteUserStateResponse as en, AddOrganizationMemberRequest as er, SignOutResponse as et, AfterFetchHook as f, CreateUserResponse as fn, ReplaceRolePermissionsRequest as ft, VerifyTOTPResponse as g, CreateRoleResponse as gn, RefreshTokenResponse as gt, WellKnownJWKSResponse as h, CreateSessionStateRequest as hn, RemoveRolePermissionResponse as ht, customFetch as i, DeletePermissionResponse as in, SendEmailVerificationRequest as it, UpdateUserRequest as j, CreateAccountRequest as jn, MagicLinkExchangeResponse as jt, UpsertSessionStateRequest as k, CreateApiKeyRequestMetadata as kn, MagicLinkSignInResponse as kt, FetchOptions as l, DeleteApiKeyResponse as ln, RequestEmailChangeRequest as lt, FetchContext as m, CreateUserRequestMetadata as mn, RemoveUserRoleResponse as mt, createClient as n, DeleteSessionStateResponse as nn, AcceptOrganizationInvitationQuery as nr, SignInResponse as nt, AuthulaClientOptions as o, DeleteOrganizationTeamMemberResponse as on, RevokeSessionResponse as ot, BeforeFetchHook as p, CreateUserRequest as pn, ReplaceRolePermissionResponse as pt, UnbanUserResponse as q, AdminUserState as qn, Impersonation as qt, ApiError as r, DeleteRoleResponse as rn, AcceptOrganizationInvitationParams as rr, SignInRequest as rt, CookieAttributes as s, DeleteOrganizationResponse as sn, RevokeSessionRequest as st, ClientWithPlugins as t, DeleteUserResponse as tn, Account as tr, SignOutRequest as tt, Plugin as u, DeleteAccountResponse as un, ReplaceUserRolesResponse as ut, VerifyMagicLinkParams as v, CreateRoleRequest as vn, OrganizationTeamMember as vt, UserRoleInfo as w, CreateOrganizationRequest as wn, Organization as wt, VerifyApiKeyResponse as x, CreatePermissionRequest as xn, OrganizationMember as xt, VerifyBackupCodeResponse as y, CreatePermissionResponse as yn, OrganizationTeam as yt, UpdateOrganizationRequest as z, UserMetadata as zn, GetUserPermissionsResponse as zt };
|
|
2011
|
+
//# sourceMappingURL=index-DHUQcsNV.d.ts.map
|