@authsome/ui-core 1.6.2 → 1.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +918 -668
- package/dist/index.js +504 -162
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
interface
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
interface AcceptInvitationRequest {
|
|
2
|
+
token: string;
|
|
3
|
+
}
|
|
4
|
+
interface AddMemberRequest {
|
|
5
|
+
role?: string;
|
|
6
|
+
user_id: string;
|
|
7
|
+
}
|
|
8
|
+
interface AddPermissionRequest {
|
|
9
|
+
action: string;
|
|
10
|
+
resource: string;
|
|
5
11
|
}
|
|
6
12
|
interface AdminAppResponse {
|
|
7
13
|
id: string;
|
|
@@ -11,6 +17,10 @@ interface AdminAppResponse {
|
|
|
11
17
|
publishable_key?: string;
|
|
12
18
|
slug: string;
|
|
13
19
|
}
|
|
20
|
+
interface AdminBanUserRequest {
|
|
21
|
+
expires_at?: string;
|
|
22
|
+
reason?: string;
|
|
23
|
+
}
|
|
14
24
|
interface AdminCatalogProvider {
|
|
15
25
|
id: string;
|
|
16
26
|
name: string;
|
|
@@ -18,6 +28,34 @@ interface AdminCatalogProvider {
|
|
|
18
28
|
interface AdminCatalogResponse {
|
|
19
29
|
providers: AdminCatalogProvider[];
|
|
20
30
|
}
|
|
31
|
+
interface AdminCopyUserRequest {
|
|
32
|
+
env_id?: string;
|
|
33
|
+
source_user_id: string;
|
|
34
|
+
target_app_id: string;
|
|
35
|
+
}
|
|
36
|
+
interface AdminCreateAppRequest {
|
|
37
|
+
logo?: string;
|
|
38
|
+
name: string;
|
|
39
|
+
slug: string;
|
|
40
|
+
}
|
|
41
|
+
interface AdminCreateConnectionRequest {
|
|
42
|
+
acs_url?: string;
|
|
43
|
+
app_id: string;
|
|
44
|
+
attribute_mappings?: Record<string, unknown>;
|
|
45
|
+
client_id?: string;
|
|
46
|
+
client_secret?: string;
|
|
47
|
+
domain: string;
|
|
48
|
+
entity_id?: string;
|
|
49
|
+
idp_certificate?: string;
|
|
50
|
+
idp_metadata_xml?: string;
|
|
51
|
+
idp_sso_url?: string;
|
|
52
|
+
issuer?: string;
|
|
53
|
+
metadata_url?: string;
|
|
54
|
+
org_id?: string;
|
|
55
|
+
protocol: string;
|
|
56
|
+
provider: string;
|
|
57
|
+
sign_requests?: boolean;
|
|
58
|
+
}
|
|
21
59
|
interface AdminCreateConnectionResponse {
|
|
22
60
|
active: boolean;
|
|
23
61
|
app_id: string;
|
|
@@ -26,8 +64,24 @@ interface AdminCreateConnectionResponse {
|
|
|
26
64
|
protocol: string;
|
|
27
65
|
provider: string;
|
|
28
66
|
}
|
|
29
|
-
interface
|
|
30
|
-
|
|
67
|
+
interface AdminCreateServiceAccountAPIKeyRequest {
|
|
68
|
+
expires_at?: string;
|
|
69
|
+
name: string;
|
|
70
|
+
scopes?: string[];
|
|
71
|
+
}
|
|
72
|
+
interface AdminCreateServiceAccountRequest {
|
|
73
|
+
app_id?: string;
|
|
74
|
+
description?: string;
|
|
75
|
+
name: string;
|
|
76
|
+
scopes?: string[];
|
|
77
|
+
}
|
|
78
|
+
interface AdminCreateUserRequest {
|
|
79
|
+
app_id?: string;
|
|
80
|
+
email: string;
|
|
81
|
+
first_name?: string;
|
|
82
|
+
last_name?: string;
|
|
83
|
+
password: string;
|
|
84
|
+
username?: string;
|
|
31
85
|
}
|
|
32
86
|
interface AdminDeleteConnectionResponse {
|
|
33
87
|
status: string;
|
|
@@ -35,14 +89,9 @@ interface AdminDeleteConnectionResponse {
|
|
|
35
89
|
interface AdminDeleteProviderResponse {
|
|
36
90
|
status: string;
|
|
37
91
|
}
|
|
38
|
-
interface
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
interface AdminDeleteUserRequest {
|
|
42
|
-
UserID: string;
|
|
43
|
-
}
|
|
44
|
-
interface AdminImpersonateRequest {
|
|
45
|
-
UserID: string;
|
|
92
|
+
interface AdminGrantPlatformOwnerRequest {
|
|
93
|
+
email?: string;
|
|
94
|
+
user_id?: string;
|
|
46
95
|
}
|
|
47
96
|
interface AdminListConnectionsResponse {
|
|
48
97
|
connections: Connection[];
|
|
@@ -67,9 +116,6 @@ interface AdminProvider {
|
|
|
67
116
|
interface AdminProviderResponse {
|
|
68
117
|
provider: AdminProvider;
|
|
69
118
|
}
|
|
70
|
-
interface AdminRevokePlatformOwnerRequest {
|
|
71
|
-
UserID: string;
|
|
72
|
-
}
|
|
73
119
|
interface AdminServiceAccountAPIKeyResponse {
|
|
74
120
|
created_at: string;
|
|
75
121
|
expires_at?: string;
|
|
@@ -99,16 +145,96 @@ interface AdminServiceAccountResponse {
|
|
|
99
145
|
interface AdminStatsResponse {
|
|
100
146
|
total_users: number;
|
|
101
147
|
}
|
|
102
|
-
interface
|
|
148
|
+
interface AdminUpdateConnectionRequest {
|
|
149
|
+
acs_url?: string;
|
|
150
|
+
active?: boolean;
|
|
151
|
+
attribute_mappings?: Record<string, unknown>;
|
|
152
|
+
client_id?: string;
|
|
153
|
+
client_secret?: string;
|
|
154
|
+
domain?: string;
|
|
155
|
+
entity_id?: string;
|
|
156
|
+
idp_certificate?: string;
|
|
157
|
+
idp_metadata_xml?: string;
|
|
158
|
+
idp_sso_url?: string;
|
|
159
|
+
issuer?: string;
|
|
160
|
+
metadata_url?: string;
|
|
161
|
+
provider?: string;
|
|
162
|
+
sign_requests?: boolean;
|
|
163
|
+
}
|
|
164
|
+
interface AdminUpdateUserRequest {
|
|
165
|
+
email_verified?: boolean;
|
|
166
|
+
first_name?: string;
|
|
167
|
+
last_name?: string;
|
|
168
|
+
username?: string;
|
|
103
169
|
}
|
|
104
|
-
interface
|
|
105
|
-
|
|
170
|
+
interface AdminUpsertProviderRequest {
|
|
171
|
+
client_id: string;
|
|
172
|
+
client_secret: string;
|
|
173
|
+
enabled?: boolean;
|
|
174
|
+
redirect_url?: string;
|
|
175
|
+
scopes?: string[];
|
|
106
176
|
}
|
|
107
177
|
interface AdminUserListResponse {
|
|
108
178
|
next_cursor?: string;
|
|
109
179
|
total: number;
|
|
110
180
|
users: User[];
|
|
111
181
|
}
|
|
182
|
+
interface ApiStatusResponse {
|
|
183
|
+
status: string;
|
|
184
|
+
}
|
|
185
|
+
interface ApiTokenResponse {
|
|
186
|
+
expires_at: string;
|
|
187
|
+
refresh_token: string;
|
|
188
|
+
session_token: string;
|
|
189
|
+
}
|
|
190
|
+
interface AppclientconfigConfig {
|
|
191
|
+
app_id: string;
|
|
192
|
+
app_name?: string;
|
|
193
|
+
created_at: string;
|
|
194
|
+
id: string;
|
|
195
|
+
logo_url?: string;
|
|
196
|
+
magic_link_enabled?: boolean;
|
|
197
|
+
mfa_enabled?: boolean;
|
|
198
|
+
mfa_methods?: string[];
|
|
199
|
+
mfa_required?: boolean;
|
|
200
|
+
passkey_enabled?: boolean;
|
|
201
|
+
password_enabled?: boolean;
|
|
202
|
+
require_email_verification?: boolean;
|
|
203
|
+
signup_enabled?: boolean;
|
|
204
|
+
social_enabled?: boolean;
|
|
205
|
+
social_providers?: string[];
|
|
206
|
+
sso_enabled?: boolean;
|
|
207
|
+
updated_at: string;
|
|
208
|
+
waitlist_enabled?: boolean;
|
|
209
|
+
}
|
|
210
|
+
interface AppsessionconfigConfig {
|
|
211
|
+
app_id: string;
|
|
212
|
+
bind_to_device?: boolean;
|
|
213
|
+
bind_to_ip?: boolean;
|
|
214
|
+
created_at: string;
|
|
215
|
+
id: string;
|
|
216
|
+
max_active_sessions?: number;
|
|
217
|
+
refresh_token_ttl_seconds?: number;
|
|
218
|
+
rotate_refresh_token?: boolean;
|
|
219
|
+
token_exchange_ttl_seconds?: number;
|
|
220
|
+
token_format?: string;
|
|
221
|
+
token_ttl_seconds?: number;
|
|
222
|
+
updated_at: string;
|
|
223
|
+
}
|
|
224
|
+
interface AssertionResponse {
|
|
225
|
+
authenticatorData: string;
|
|
226
|
+
clientDataJSON: string;
|
|
227
|
+
signature: string;
|
|
228
|
+
userHandle?: string;
|
|
229
|
+
}
|
|
230
|
+
interface AssignRoleRequest {
|
|
231
|
+
org_id?: string;
|
|
232
|
+
user_id: string;
|
|
233
|
+
}
|
|
234
|
+
interface AttestationResponse {
|
|
235
|
+
attestationObject: string;
|
|
236
|
+
clientDataJSON: string;
|
|
237
|
+
}
|
|
112
238
|
interface AuthMethod {
|
|
113
239
|
label: string;
|
|
114
240
|
linked_at?: string;
|
|
@@ -131,29 +257,15 @@ interface BulkImportResult {
|
|
|
131
257
|
errors?: BulkError[];
|
|
132
258
|
skipped: number;
|
|
133
259
|
}
|
|
134
|
-
interface
|
|
135
|
-
|
|
260
|
+
interface BulkImportUsersRequest {
|
|
261
|
+
app_id?: string;
|
|
262
|
+
users: Record<string, unknown>[];
|
|
136
263
|
}
|
|
137
264
|
interface BulkRevokeSessionsResponse {
|
|
138
265
|
revoked: number;
|
|
139
266
|
user_id: string;
|
|
140
267
|
}
|
|
141
|
-
interface CallbackRequest {
|
|
142
|
-
Provider: string;
|
|
143
|
-
code: string;
|
|
144
|
-
error?: string;
|
|
145
|
-
state: string;
|
|
146
|
-
}
|
|
147
|
-
interface CallbackResponse {
|
|
148
|
-
expires_at: string;
|
|
149
|
-
is_new_user: boolean;
|
|
150
|
-
provider: string;
|
|
151
|
-
refresh_token: string;
|
|
152
|
-
session_token: string;
|
|
153
|
-
user: User;
|
|
154
|
-
}
|
|
155
268
|
interface CancelSubscriptionRequest {
|
|
156
|
-
SubID: string;
|
|
157
269
|
immediately: boolean;
|
|
158
270
|
}
|
|
159
271
|
interface ChallengeRequest {
|
|
@@ -166,8 +278,11 @@ interface ChallengeResponse {
|
|
|
166
278
|
session_token: string;
|
|
167
279
|
user: unknown;
|
|
168
280
|
}
|
|
281
|
+
interface ChangePasswordRequest {
|
|
282
|
+
current_password: string;
|
|
283
|
+
new_password: string;
|
|
284
|
+
}
|
|
169
285
|
interface ChangePlanRequest {
|
|
170
|
-
SubID: string;
|
|
171
286
|
new_plan_id: string;
|
|
172
287
|
}
|
|
173
288
|
interface ClientConfigBranding {
|
|
@@ -248,6 +363,14 @@ interface ClientConfigSocialProvider {
|
|
|
248
363
|
interface ClientConfigToggle {
|
|
249
364
|
enabled: boolean;
|
|
250
365
|
}
|
|
366
|
+
interface CloneEnvironmentRequest {
|
|
367
|
+
description?: string;
|
|
368
|
+
name: string;
|
|
369
|
+
settings?: Record<string, unknown>;
|
|
370
|
+
slug: string;
|
|
371
|
+
type: string;
|
|
372
|
+
webhook_url_override?: string;
|
|
373
|
+
}
|
|
251
374
|
interface CloneEnvironmentResponse {
|
|
252
375
|
environment: unknown;
|
|
253
376
|
permissions_cloned: number;
|
|
@@ -255,38 +378,27 @@ interface CloneEnvironmentResponse {
|
|
|
255
378
|
roles_cloned: number;
|
|
256
379
|
webhooks_cloned: number;
|
|
257
380
|
}
|
|
258
|
-
interface Config {
|
|
259
|
-
app_id: string;
|
|
260
|
-
app_name?: string;
|
|
261
|
-
created_at: string;
|
|
262
|
-
id: string;
|
|
263
|
-
logo_url?: string;
|
|
264
|
-
magic_link_enabled?: boolean;
|
|
265
|
-
mfa_enabled?: boolean;
|
|
266
|
-
mfa_methods?: string[];
|
|
267
|
-
mfa_required?: boolean;
|
|
268
|
-
passkey_enabled?: boolean;
|
|
269
|
-
password_enabled?: boolean;
|
|
270
|
-
require_email_verification?: boolean;
|
|
271
|
-
signup_enabled?: boolean;
|
|
272
|
-
social_enabled?: boolean;
|
|
273
|
-
social_providers?: string[];
|
|
274
|
-
sso_enabled?: boolean;
|
|
275
|
-
updated_at: string;
|
|
276
|
-
waitlist_enabled?: boolean;
|
|
277
|
-
}
|
|
278
381
|
interface Connection {
|
|
382
|
+
acs_url?: string;
|
|
279
383
|
active: boolean;
|
|
280
384
|
app_id: string;
|
|
385
|
+
attribute_mappings?: Record<string, unknown>;
|
|
281
386
|
client_id?: string;
|
|
282
387
|
created_at: string;
|
|
283
388
|
domain: string;
|
|
389
|
+
entity_id?: string;
|
|
390
|
+
env_id?: string;
|
|
284
391
|
id: string;
|
|
392
|
+
idp_certificate?: string;
|
|
393
|
+
idp_metadata_xml?: string;
|
|
394
|
+
idp_sso_url?: string;
|
|
285
395
|
issuer?: string;
|
|
286
396
|
metadata_url?: string;
|
|
287
397
|
org_id?: string;
|
|
288
398
|
protocol: string;
|
|
289
399
|
provider: string;
|
|
400
|
+
sign_requests?: boolean;
|
|
401
|
+
sp_certificate?: string;
|
|
290
402
|
updated_at: string;
|
|
291
403
|
}
|
|
292
404
|
interface Consent {
|
|
@@ -302,6 +414,13 @@ interface Consent {
|
|
|
302
414
|
user_id: string;
|
|
303
415
|
version: string;
|
|
304
416
|
}
|
|
417
|
+
interface ConsentListResponse {
|
|
418
|
+
consents: Consent[];
|
|
419
|
+
next_cursor?: string;
|
|
420
|
+
}
|
|
421
|
+
interface ConsentStatusResponse {
|
|
422
|
+
status: string;
|
|
423
|
+
}
|
|
305
424
|
interface CouponResponse {
|
|
306
425
|
amount?: string;
|
|
307
426
|
app_id: string;
|
|
@@ -316,6 +435,16 @@ interface CouponResponse {
|
|
|
316
435
|
valid_from?: string;
|
|
317
436
|
valid_until?: string;
|
|
318
437
|
}
|
|
438
|
+
interface CreateClientRequest {
|
|
439
|
+
app_id: string;
|
|
440
|
+
dpop_mode?: string;
|
|
441
|
+
grant_types?: string[];
|
|
442
|
+
name: string;
|
|
443
|
+
public?: boolean;
|
|
444
|
+
redirect_uris: string[];
|
|
445
|
+
resources?: string[];
|
|
446
|
+
scopes?: string[];
|
|
447
|
+
}
|
|
319
448
|
interface CreateClientResponse {
|
|
320
449
|
client_id: string;
|
|
321
450
|
client_secret?: string;
|
|
@@ -324,6 +453,7 @@ interface CreateClientResponse {
|
|
|
324
453
|
name: string;
|
|
325
454
|
public: boolean;
|
|
326
455
|
redirect_uris: string[];
|
|
456
|
+
resources: string[];
|
|
327
457
|
scopes: string[];
|
|
328
458
|
}
|
|
329
459
|
interface CreateCouponRequest {
|
|
@@ -338,11 +468,24 @@ interface CreateCouponRequest {
|
|
|
338
468
|
valid_from?: string;
|
|
339
469
|
valid_until?: string;
|
|
340
470
|
}
|
|
471
|
+
interface CreateEnvironmentRequest {
|
|
472
|
+
app_id?: string;
|
|
473
|
+
color?: string;
|
|
474
|
+
description?: string;
|
|
475
|
+
name: string;
|
|
476
|
+
settings?: Record<string, unknown>;
|
|
477
|
+
slug: string;
|
|
478
|
+
type: string;
|
|
479
|
+
}
|
|
480
|
+
interface CreateInvitationRequest {
|
|
481
|
+
email: string;
|
|
482
|
+
role?: string;
|
|
483
|
+
}
|
|
341
484
|
interface CreateKeyRequest {
|
|
342
485
|
app_id: string;
|
|
343
486
|
name: string;
|
|
344
487
|
scopes?: string[];
|
|
345
|
-
user_id
|
|
488
|
+
user_id?: string;
|
|
346
489
|
}
|
|
347
490
|
interface CreateKeyResponse {
|
|
348
491
|
created_at: string;
|
|
@@ -355,6 +498,12 @@ interface CreateKeyResponse {
|
|
|
355
498
|
public_key_prefix: string;
|
|
356
499
|
scopes?: string[];
|
|
357
500
|
}
|
|
501
|
+
interface CreateOrgRequest {
|
|
502
|
+
app_id?: string;
|
|
503
|
+
logo?: string;
|
|
504
|
+
name: string;
|
|
505
|
+
slug: string;
|
|
506
|
+
}
|
|
358
507
|
interface CreatePlanRequest {
|
|
359
508
|
app_id: string;
|
|
360
509
|
base_amount: number;
|
|
@@ -368,11 +517,36 @@ interface CreatePlanRequest {
|
|
|
368
517
|
slug: string;
|
|
369
518
|
trial_days: number;
|
|
370
519
|
}
|
|
520
|
+
interface CreateRoleRequest {
|
|
521
|
+
app_id?: string;
|
|
522
|
+
description?: string;
|
|
523
|
+
name: string;
|
|
524
|
+
parent_id?: string;
|
|
525
|
+
slug: string;
|
|
526
|
+
}
|
|
371
527
|
interface CreateSubscriptionRequest {
|
|
372
528
|
app_id: string;
|
|
373
529
|
plan_id: string;
|
|
374
530
|
tenant_id: string;
|
|
375
531
|
}
|
|
532
|
+
interface CreateTeamRequest {
|
|
533
|
+
name: string;
|
|
534
|
+
slug: string;
|
|
535
|
+
}
|
|
536
|
+
interface CreateWebhookRequest {
|
|
537
|
+
app_id?: string;
|
|
538
|
+
events: string[];
|
|
539
|
+
url: string;
|
|
540
|
+
}
|
|
541
|
+
interface CredentialInfo {
|
|
542
|
+
created_at: string;
|
|
543
|
+
display_name: string;
|
|
544
|
+
id: string;
|
|
545
|
+
transport: string[];
|
|
546
|
+
}
|
|
547
|
+
interface DeclineInvitationRequest {
|
|
548
|
+
token: string;
|
|
549
|
+
}
|
|
376
550
|
interface Definition {
|
|
377
551
|
category: string;
|
|
378
552
|
default: string;
|
|
@@ -391,44 +565,22 @@ interface DefinitionGroup {
|
|
|
391
565
|
definitions: Definition[];
|
|
392
566
|
namespace: string;
|
|
393
567
|
}
|
|
394
|
-
interface
|
|
395
|
-
|
|
396
|
-
interface DeleteAppClientConfigRequest {
|
|
397
|
-
AppID: string;
|
|
398
|
-
}
|
|
399
|
-
interface DeleteAppSessionConfigRequest {
|
|
400
|
-
AppID: string;
|
|
401
|
-
}
|
|
402
|
-
interface DeleteClientRequest {
|
|
403
|
-
ClientID: string;
|
|
568
|
+
interface DelegationListResponse {
|
|
569
|
+
delegations: DelegationResponse[];
|
|
404
570
|
}
|
|
405
|
-
interface
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
interface DeleteRequest {
|
|
415
|
-
CredentialID: string;
|
|
571
|
+
interface DelegationResponse {
|
|
572
|
+
actor: string;
|
|
573
|
+
created_at: string;
|
|
574
|
+
expires_at?: string;
|
|
575
|
+
grant_kind: string;
|
|
576
|
+
granted_by: string;
|
|
577
|
+
id: string;
|
|
578
|
+
scopes?: string[];
|
|
579
|
+
subject: string;
|
|
416
580
|
}
|
|
417
581
|
interface DeleteResponse {
|
|
418
582
|
status: string;
|
|
419
583
|
}
|
|
420
|
-
interface DeleteSettingRequest {
|
|
421
|
-
Key: string;
|
|
422
|
-
Scope: string;
|
|
423
|
-
ScopeID: string;
|
|
424
|
-
}
|
|
425
|
-
interface DeleteTeamRequest {
|
|
426
|
-
OrgID: string;
|
|
427
|
-
TeamID: string;
|
|
428
|
-
}
|
|
429
|
-
interface DeleteWebhookRequest {
|
|
430
|
-
WebhookID: string;
|
|
431
|
-
}
|
|
432
584
|
interface Device {
|
|
433
585
|
app_id: string;
|
|
434
586
|
browser?: string;
|
|
@@ -446,10 +598,6 @@ interface Device {
|
|
|
446
598
|
updated_at: string;
|
|
447
599
|
user_id: string;
|
|
448
600
|
}
|
|
449
|
-
interface DeviceAuthRequest {
|
|
450
|
-
client_id: string;
|
|
451
|
-
scope?: string;
|
|
452
|
-
}
|
|
453
601
|
interface DeviceAuthResponse {
|
|
454
602
|
device_code: string;
|
|
455
603
|
expires_in: number;
|
|
@@ -458,10 +606,6 @@ interface DeviceAuthResponse {
|
|
|
458
606
|
verification_uri: string;
|
|
459
607
|
verification_uri_complete?: string;
|
|
460
608
|
}
|
|
461
|
-
interface DeviceCompleteRequest {
|
|
462
|
-
action: string;
|
|
463
|
-
user_code: string;
|
|
464
|
-
}
|
|
465
609
|
interface DeviceCompleteResponse {
|
|
466
610
|
status: string;
|
|
467
611
|
}
|
|
@@ -469,6 +613,7 @@ interface DeviceListResponse {
|
|
|
469
613
|
devices: Device[];
|
|
470
614
|
}
|
|
471
615
|
interface DisableRequest {
|
|
616
|
+
code?: string;
|
|
472
617
|
}
|
|
473
618
|
interface DisableResponse {
|
|
474
619
|
status: string;
|
|
@@ -477,10 +622,13 @@ interface DiscoveryResponse {
|
|
|
477
622
|
authorization_endpoint: string;
|
|
478
623
|
code_challenge_methods_supported: string[];
|
|
479
624
|
device_authorization_endpoint: string;
|
|
625
|
+
dpop_signing_alg_values_supported?: string[];
|
|
480
626
|
grant_types_supported: string[];
|
|
481
627
|
id_token_signing_alg_values_supported: string[];
|
|
482
628
|
issuer: string;
|
|
483
629
|
jwks_uri: string;
|
|
630
|
+
registration_endpoint?: string;
|
|
631
|
+
resource_indicators_supported: boolean;
|
|
484
632
|
response_types_supported: string[];
|
|
485
633
|
revocation_endpoint: string;
|
|
486
634
|
scopes_supported: string[];
|
|
@@ -494,6 +642,15 @@ interface Email {
|
|
|
494
642
|
type?: string;
|
|
495
643
|
value: string;
|
|
496
644
|
}
|
|
645
|
+
interface Empty {
|
|
646
|
+
}
|
|
647
|
+
interface EnforceSettingRequest {
|
|
648
|
+
app_id?: string;
|
|
649
|
+
org_id?: string;
|
|
650
|
+
scope: string;
|
|
651
|
+
scope_id?: string;
|
|
652
|
+
value: string;
|
|
653
|
+
}
|
|
497
654
|
interface EnrollRequest {
|
|
498
655
|
method?: string;
|
|
499
656
|
phone?: string;
|
|
@@ -536,6 +693,9 @@ interface EnvironmentSettingsResponse {
|
|
|
536
693
|
settings?: Settings;
|
|
537
694
|
type_defaults?: Settings;
|
|
538
695
|
}
|
|
696
|
+
interface ExchangeRequest {
|
|
697
|
+
code: string;
|
|
698
|
+
}
|
|
539
699
|
interface FeatureInput {
|
|
540
700
|
key: string;
|
|
541
701
|
limit: number;
|
|
@@ -544,9 +704,18 @@ interface FeatureInput {
|
|
|
544
704
|
soft_limit: boolean;
|
|
545
705
|
type: string;
|
|
546
706
|
}
|
|
707
|
+
interface ForgotPasswordRequest {
|
|
708
|
+
app_id?: string;
|
|
709
|
+
email: string;
|
|
710
|
+
}
|
|
547
711
|
interface ForgotPasswordResponse {
|
|
548
712
|
status: string;
|
|
549
713
|
}
|
|
714
|
+
interface GrantConsentRequest {
|
|
715
|
+
app_id?: string;
|
|
716
|
+
purpose: string;
|
|
717
|
+
version?: string;
|
|
718
|
+
}
|
|
550
719
|
interface GroupRef {
|
|
551
720
|
$ref?: string;
|
|
552
721
|
display?: string;
|
|
@@ -564,9 +733,17 @@ interface HealthResponse {
|
|
|
564
733
|
error?: string;
|
|
565
734
|
status: string;
|
|
566
735
|
}
|
|
736
|
+
interface IntrospectConfirmation {
|
|
737
|
+
jkt: string;
|
|
738
|
+
}
|
|
739
|
+
interface IntrospectRequest {
|
|
740
|
+
token: string;
|
|
741
|
+
}
|
|
567
742
|
interface IntrospectResponse {
|
|
568
743
|
active: boolean;
|
|
569
744
|
app_id?: string;
|
|
745
|
+
aud?: string[];
|
|
746
|
+
cnf?: IntrospectConfirmation;
|
|
570
747
|
env_id?: string;
|
|
571
748
|
expires_at?: string;
|
|
572
749
|
org_id?: string;
|
|
@@ -641,41 +818,68 @@ interface ListPlansResponse {
|
|
|
641
818
|
plans: PlanResponse[];
|
|
642
819
|
total: number;
|
|
643
820
|
}
|
|
644
|
-
interface ListResponse$1 {
|
|
645
|
-
consents: Consent[];
|
|
646
|
-
next_cursor?: string;
|
|
647
|
-
}
|
|
648
821
|
interface ListSubscriptionsResponse {
|
|
649
822
|
subscriptions: Response[];
|
|
650
823
|
total: number;
|
|
651
824
|
}
|
|
652
|
-
interface LoginBeginRequest {
|
|
653
|
-
email?: string;
|
|
654
|
-
}
|
|
655
825
|
interface LoginBeginResponse {
|
|
656
826
|
options: Record<string, unknown>;
|
|
657
827
|
}
|
|
658
|
-
interface
|
|
828
|
+
interface LoginByDomainRequest {
|
|
829
|
+
connection_id?: string;
|
|
830
|
+
email: string;
|
|
831
|
+
return_url?: string;
|
|
659
832
|
}
|
|
660
833
|
interface LoginFinishResponse {
|
|
834
|
+
refresh_token?: string;
|
|
835
|
+
session_token?: string;
|
|
661
836
|
status: string;
|
|
662
837
|
user_id: string;
|
|
663
838
|
}
|
|
664
|
-
interface LoginRequest {
|
|
665
|
-
Provider: string;
|
|
666
|
-
}
|
|
667
839
|
interface LoginResponse {
|
|
668
840
|
login_url: string;
|
|
669
841
|
state: string;
|
|
670
842
|
}
|
|
843
|
+
interface MagiclinkVerifyRequest {
|
|
844
|
+
app_id?: string;
|
|
845
|
+
token: string;
|
|
846
|
+
}
|
|
847
|
+
interface MagiclinkVerifyResponse {
|
|
848
|
+
expires_at: string;
|
|
849
|
+
refresh_token: string;
|
|
850
|
+
session_token: string;
|
|
851
|
+
user: User;
|
|
852
|
+
}
|
|
671
853
|
interface MarkInvoicePaidRequest {
|
|
672
|
-
InvoiceID: string;
|
|
673
854
|
payment_ref: string;
|
|
674
855
|
}
|
|
675
|
-
interface
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
856
|
+
interface MeResponse {
|
|
857
|
+
app_id: string;
|
|
858
|
+
ban_expires?: string;
|
|
859
|
+
ban_reason?: string;
|
|
860
|
+
banned: boolean;
|
|
861
|
+
created_at: string;
|
|
862
|
+
deleted_at?: string;
|
|
863
|
+
display_username?: string;
|
|
864
|
+
email: string;
|
|
865
|
+
email_verified: boolean;
|
|
866
|
+
env_id: string;
|
|
867
|
+
first_name: string;
|
|
868
|
+
id: string;
|
|
869
|
+
image?: string;
|
|
870
|
+
last_name: string;
|
|
871
|
+
metadata?: Record<string, unknown>;
|
|
872
|
+
password_changed_at?: string;
|
|
873
|
+
phone?: string;
|
|
874
|
+
phone_verified: boolean;
|
|
875
|
+
roles: string[];
|
|
876
|
+
updated_at: string;
|
|
877
|
+
username?: string;
|
|
878
|
+
}
|
|
879
|
+
interface Member {
|
|
880
|
+
created_at: string;
|
|
881
|
+
id: string;
|
|
882
|
+
org_id: string;
|
|
679
883
|
role: string;
|
|
680
884
|
updated_at: string;
|
|
681
885
|
user_id: string;
|
|
@@ -694,6 +898,21 @@ interface Meta {
|
|
|
694
898
|
location?: string;
|
|
695
899
|
resourceType: string;
|
|
696
900
|
}
|
|
901
|
+
interface MintChildRequest {
|
|
902
|
+
name: string;
|
|
903
|
+
scopes?: string[];
|
|
904
|
+
ttl_seconds: number;
|
|
905
|
+
}
|
|
906
|
+
interface MintChildResponse {
|
|
907
|
+
created_at: string;
|
|
908
|
+
expires_at?: string;
|
|
909
|
+
id: string;
|
|
910
|
+
key: string;
|
|
911
|
+
key_prefix: string;
|
|
912
|
+
name: string;
|
|
913
|
+
parent_id: string;
|
|
914
|
+
scopes?: string[];
|
|
915
|
+
}
|
|
697
916
|
interface Name {
|
|
698
917
|
familyName: string;
|
|
699
918
|
formatted?: string;
|
|
@@ -702,16 +921,29 @@ interface Name {
|
|
|
702
921
|
interface OAuth2Client {
|
|
703
922
|
app_id: string;
|
|
704
923
|
client_id: string;
|
|
924
|
+
client_secret_expires_at?: string;
|
|
705
925
|
created_at: string;
|
|
926
|
+
dpop_mode?: string;
|
|
927
|
+
dynamically_registered: boolean;
|
|
706
928
|
grant_types: string[];
|
|
707
929
|
id: string;
|
|
930
|
+
metadata?: Record<string, unknown>;
|
|
708
931
|
name: string;
|
|
932
|
+
principal_id?: string;
|
|
709
933
|
public: boolean;
|
|
710
934
|
redirect_uris: string[];
|
|
935
|
+
resources: string[];
|
|
711
936
|
scopes: string[];
|
|
937
|
+
token_endpoint_auth_method?: string;
|
|
712
938
|
updated_at: string;
|
|
713
939
|
}
|
|
714
|
-
interface
|
|
940
|
+
interface Oauth2providerTokenResponse {
|
|
941
|
+
access_token: string;
|
|
942
|
+
expires_in: number;
|
|
943
|
+
issued_token_type?: string;
|
|
944
|
+
refresh_token?: string;
|
|
945
|
+
scope?: string;
|
|
946
|
+
token_type: string;
|
|
715
947
|
}
|
|
716
948
|
interface ObjectFieldDef {
|
|
717
949
|
display_name: string;
|
|
@@ -738,6 +970,12 @@ interface Organization {
|
|
|
738
970
|
slug: string;
|
|
739
971
|
updated_at: string;
|
|
740
972
|
}
|
|
973
|
+
interface OrganizationStatusResponse {
|
|
974
|
+
status: string;
|
|
975
|
+
}
|
|
976
|
+
interface PasskeyListResponse {
|
|
977
|
+
credentials: CredentialInfo[];
|
|
978
|
+
}
|
|
741
979
|
interface Permission {
|
|
742
980
|
action: string;
|
|
743
981
|
id: string;
|
|
@@ -747,8 +985,21 @@ interface Permission {
|
|
|
747
985
|
interface PermissionListResponse {
|
|
748
986
|
permissions: Permission[];
|
|
749
987
|
}
|
|
750
|
-
interface
|
|
751
|
-
|
|
988
|
+
interface PhoneStartResponse {
|
|
989
|
+
expires_in: number;
|
|
990
|
+
status: string;
|
|
991
|
+
}
|
|
992
|
+
interface PhoneVerifyRequest {
|
|
993
|
+
app_id?: string;
|
|
994
|
+
code: string;
|
|
995
|
+
phone: string;
|
|
996
|
+
}
|
|
997
|
+
interface PhoneVerifyResponse {
|
|
998
|
+
expires_at: string;
|
|
999
|
+
new_user: boolean;
|
|
1000
|
+
refresh_token: string;
|
|
1001
|
+
session_token: string;
|
|
1002
|
+
user?: User;
|
|
752
1003
|
}
|
|
753
1004
|
interface PlanResponse {
|
|
754
1005
|
app_id: string;
|
|
@@ -765,8 +1016,6 @@ interface PlanResponse {
|
|
|
765
1016
|
status: string;
|
|
766
1017
|
trial_days: number;
|
|
767
1018
|
}
|
|
768
|
-
interface RecoveryRegenerateRequest {
|
|
769
|
-
}
|
|
770
1019
|
interface RecoveryRegenerateResponse {
|
|
771
1020
|
codes: string[];
|
|
772
1021
|
}
|
|
@@ -777,22 +1026,63 @@ interface RecoveryVerifyResponse {
|
|
|
777
1026
|
challenge_passed: boolean;
|
|
778
1027
|
codes_remaining: number;
|
|
779
1028
|
}
|
|
1029
|
+
interface RefreshRequest {
|
|
1030
|
+
refresh_token?: string;
|
|
1031
|
+
}
|
|
780
1032
|
interface RegisterBeginRequest {
|
|
781
1033
|
display_name?: string;
|
|
782
1034
|
}
|
|
783
1035
|
interface RegisterBeginResponse {
|
|
784
1036
|
options: Record<string, unknown>;
|
|
785
1037
|
}
|
|
786
|
-
interface
|
|
1038
|
+
interface RegisterClientRequest {
|
|
1039
|
+
client_name?: string;
|
|
1040
|
+
client_uri?: string;
|
|
1041
|
+
contacts?: string[];
|
|
1042
|
+
grant_types?: string[];
|
|
1043
|
+
logo_uri?: string;
|
|
1044
|
+
policy_uri?: string;
|
|
1045
|
+
redirect_uris: string[];
|
|
1046
|
+
response_types?: string[];
|
|
1047
|
+
scope?: string;
|
|
1048
|
+
software_id?: string;
|
|
1049
|
+
software_version?: string;
|
|
1050
|
+
token_endpoint_auth_method?: string;
|
|
1051
|
+
tos_uri?: string;
|
|
1052
|
+
}
|
|
1053
|
+
interface RegisterClientResponse {
|
|
1054
|
+
client_id: string;
|
|
1055
|
+
client_id_issued_at: number;
|
|
1056
|
+
client_name?: string;
|
|
1057
|
+
client_secret?: string;
|
|
1058
|
+
client_secret_expires_at: number;
|
|
1059
|
+
client_uri?: string;
|
|
1060
|
+
contacts?: string[];
|
|
1061
|
+
grant_types: string[];
|
|
1062
|
+
logo_uri?: string;
|
|
1063
|
+
policy_uri?: string;
|
|
1064
|
+
redirect_uris: string[];
|
|
1065
|
+
registration_access_token?: string;
|
|
1066
|
+
registration_client_uri?: string;
|
|
1067
|
+
response_types: string[];
|
|
1068
|
+
scope: string;
|
|
1069
|
+
software_id?: string;
|
|
1070
|
+
software_version?: string;
|
|
1071
|
+
token_endpoint_auth_method: string;
|
|
1072
|
+
tos_uri?: string;
|
|
787
1073
|
}
|
|
788
1074
|
interface RegisterFinishResponse {
|
|
789
1075
|
display_name: string;
|
|
790
1076
|
id: string;
|
|
791
1077
|
status: string;
|
|
792
1078
|
}
|
|
793
|
-
interface
|
|
794
|
-
|
|
795
|
-
|
|
1079
|
+
interface ResendVerificationRequest {
|
|
1080
|
+
app_id?: string;
|
|
1081
|
+
email: string;
|
|
1082
|
+
}
|
|
1083
|
+
interface ResetPasswordRequest {
|
|
1084
|
+
new_password: string;
|
|
1085
|
+
token: string;
|
|
796
1086
|
}
|
|
797
1087
|
interface ResolvedSetting {
|
|
798
1088
|
can_override: boolean;
|
|
@@ -807,6 +1097,8 @@ interface ResolvedSettingResponse {
|
|
|
807
1097
|
interface ResolvedSettingsResponse {
|
|
808
1098
|
settings: ResolvedSetting[];
|
|
809
1099
|
}
|
|
1100
|
+
interface ResourceTypeList {
|
|
1101
|
+
}
|
|
810
1102
|
interface Response {
|
|
811
1103
|
app_id: string;
|
|
812
1104
|
canceled_at?: string;
|
|
@@ -819,15 +1111,9 @@ interface Response {
|
|
|
819
1111
|
trial_end?: string;
|
|
820
1112
|
trial_start?: string;
|
|
821
1113
|
}
|
|
822
|
-
interface
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
interface RevokeRequest {
|
|
826
|
-
token: string;
|
|
827
|
-
token_type_hint?: string;
|
|
828
|
-
}
|
|
829
|
-
interface RevokeSessionRequest {
|
|
830
|
-
SessionID: string;
|
|
1114
|
+
interface RevokeConsentRequest {
|
|
1115
|
+
app_id?: string;
|
|
1116
|
+
purpose: string;
|
|
831
1117
|
}
|
|
832
1118
|
interface Role {
|
|
833
1119
|
app_id: string;
|
|
@@ -843,6 +1129,11 @@ interface Role {
|
|
|
843
1129
|
interface RoleListResponse {
|
|
844
1130
|
roles: Role[];
|
|
845
1131
|
}
|
|
1132
|
+
interface RotateClientSecretResponse {
|
|
1133
|
+
client_id: string;
|
|
1134
|
+
client_secret: string;
|
|
1135
|
+
id: string;
|
|
1136
|
+
}
|
|
846
1137
|
interface SMSSendRequest {
|
|
847
1138
|
phone?: string;
|
|
848
1139
|
}
|
|
@@ -858,6 +1149,15 @@ interface SMSVerifyResponse {
|
|
|
858
1149
|
method: string;
|
|
859
1150
|
verified: boolean;
|
|
860
1151
|
}
|
|
1152
|
+
interface SchemaList {
|
|
1153
|
+
}
|
|
1154
|
+
interface ScimListResponse {
|
|
1155
|
+
Resources: unknown[];
|
|
1156
|
+
itemsPerPage: number;
|
|
1157
|
+
schemas: string[];
|
|
1158
|
+
startIndex: number;
|
|
1159
|
+
totalResults: number;
|
|
1160
|
+
}
|
|
861
1161
|
interface ScopeValue {
|
|
862
1162
|
enforced: boolean;
|
|
863
1163
|
scope: string;
|
|
@@ -878,9 +1178,44 @@ interface SendRequest {
|
|
|
878
1178
|
interface SendResponse {
|
|
879
1179
|
status: string;
|
|
880
1180
|
}
|
|
1181
|
+
interface ServiceProviderConfig {
|
|
1182
|
+
}
|
|
881
1183
|
interface SessionListResponse {
|
|
882
1184
|
sessions: Record<string, unknown>[];
|
|
883
1185
|
}
|
|
1186
|
+
interface SetAppClientConfigRequest {
|
|
1187
|
+
app_name?: string;
|
|
1188
|
+
logo_url?: string;
|
|
1189
|
+
magic_link_enabled?: boolean;
|
|
1190
|
+
mfa_enabled?: boolean;
|
|
1191
|
+
mfa_methods?: string[];
|
|
1192
|
+
mfa_required?: boolean;
|
|
1193
|
+
passkey_enabled?: boolean;
|
|
1194
|
+
password_enabled?: boolean;
|
|
1195
|
+
require_email_verification?: boolean;
|
|
1196
|
+
signup_enabled?: boolean;
|
|
1197
|
+
social_enabled?: boolean;
|
|
1198
|
+
social_providers?: string[];
|
|
1199
|
+
sso_enabled?: boolean;
|
|
1200
|
+
waitlist_enabled?: boolean;
|
|
1201
|
+
}
|
|
1202
|
+
interface SetAppSessionConfigRequest {
|
|
1203
|
+
bind_to_device?: boolean;
|
|
1204
|
+
bind_to_ip?: boolean;
|
|
1205
|
+
max_active_sessions?: number;
|
|
1206
|
+
refresh_token_ttl_seconds?: number;
|
|
1207
|
+
rotate_refresh_token?: boolean;
|
|
1208
|
+
token_exchange_ttl_seconds?: number;
|
|
1209
|
+
token_format?: string;
|
|
1210
|
+
token_ttl_seconds?: number;
|
|
1211
|
+
}
|
|
1212
|
+
interface SetSettingRequest {
|
|
1213
|
+
app_id?: string;
|
|
1214
|
+
org_id?: string;
|
|
1215
|
+
scope: string;
|
|
1216
|
+
scope_id?: string;
|
|
1217
|
+
value: string;
|
|
1218
|
+
}
|
|
884
1219
|
interface SettingValueResponse {
|
|
885
1220
|
key: string;
|
|
886
1221
|
scope: string;
|
|
@@ -901,27 +1236,57 @@ interface Settings {
|
|
|
901
1236
|
signin_rate_limit?: number;
|
|
902
1237
|
signup_rate_limit?: number;
|
|
903
1238
|
skip_email_verification?: boolean;
|
|
1239
|
+
token_exchange_ttl_seconds?: number;
|
|
904
1240
|
token_ttl_seconds?: number;
|
|
905
1241
|
webhook_url_override?: string;
|
|
906
1242
|
}
|
|
907
|
-
interface
|
|
1243
|
+
interface SignInRequest {
|
|
1244
|
+
app_id?: string;
|
|
1245
|
+
captcha_token?: string;
|
|
1246
|
+
email?: string;
|
|
1247
|
+
password: string;
|
|
1248
|
+
username?: string;
|
|
1249
|
+
}
|
|
1250
|
+
interface SignUpRequest {
|
|
1251
|
+
app_id?: string;
|
|
1252
|
+
captcha_token?: string;
|
|
1253
|
+
email: string;
|
|
1254
|
+
first_name?: string;
|
|
1255
|
+
last_name?: string;
|
|
1256
|
+
metadata?: Record<string, unknown>;
|
|
1257
|
+
password: string;
|
|
1258
|
+
username?: string;
|
|
908
1259
|
}
|
|
909
1260
|
interface SlugAvailableResponse {
|
|
910
1261
|
available: boolean;
|
|
911
1262
|
}
|
|
1263
|
+
interface SocialCallbackResponse {
|
|
1264
|
+
expires_at: string;
|
|
1265
|
+
frontend_url?: string;
|
|
1266
|
+
is_new_user: boolean;
|
|
1267
|
+
provider: string;
|
|
1268
|
+
redirect_url?: string;
|
|
1269
|
+
refresh_token: string;
|
|
1270
|
+
session_token: string;
|
|
1271
|
+
user: User;
|
|
1272
|
+
}
|
|
1273
|
+
interface SocialStartResponse {
|
|
1274
|
+
auth_url: string;
|
|
1275
|
+
}
|
|
1276
|
+
interface SsoCallbackResponse {
|
|
1277
|
+
expires_at: string;
|
|
1278
|
+
is_new_user: boolean;
|
|
1279
|
+
provider: string;
|
|
1280
|
+
refresh_token: string;
|
|
1281
|
+
session_token: string;
|
|
1282
|
+
user: User;
|
|
1283
|
+
}
|
|
912
1284
|
interface StartRequest {
|
|
913
1285
|
app_id?: string;
|
|
914
1286
|
phone: string;
|
|
915
1287
|
}
|
|
916
|
-
interface
|
|
917
|
-
|
|
918
|
-
status: string;
|
|
919
|
-
}
|
|
920
|
-
interface StatusResponse {
|
|
921
|
-
status: string;
|
|
922
|
-
}
|
|
923
|
-
interface SubIDRequest {
|
|
924
|
-
SubID: string;
|
|
1288
|
+
interface SwitchOrgRequest {
|
|
1289
|
+
org_id: string;
|
|
925
1290
|
}
|
|
926
1291
|
interface SwitchOrgResponse {
|
|
927
1292
|
org_id?: string;
|
|
@@ -938,25 +1303,19 @@ interface Team {
|
|
|
938
1303
|
interface TeamListResponse {
|
|
939
1304
|
teams: Team[];
|
|
940
1305
|
}
|
|
941
|
-
interface
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
code?: string;
|
|
945
|
-
code_verifier?: string;
|
|
946
|
-
device_code?: string;
|
|
947
|
-
grant_type: string;
|
|
948
|
-
redirect_uri?: string;
|
|
1306
|
+
interface TokenExchangeRequest {
|
|
1307
|
+
scopes?: string[];
|
|
1308
|
+
subject: string;
|
|
949
1309
|
}
|
|
950
|
-
interface
|
|
1310
|
+
interface TokenExchangeResponse {
|
|
951
1311
|
access_token: string;
|
|
1312
|
+
actor: string;
|
|
952
1313
|
expires_in: number;
|
|
953
|
-
|
|
954
|
-
|
|
1314
|
+
issued_token_type: string;
|
|
1315
|
+
scopes?: string[];
|
|
1316
|
+
subject: string;
|
|
955
1317
|
token_type: string;
|
|
956
1318
|
}
|
|
957
|
-
interface TrustDeviceRequest {
|
|
958
|
-
DeviceID: string;
|
|
959
|
-
}
|
|
960
1319
|
interface UIMetadata {
|
|
961
1320
|
condition?: VisibilityCondition;
|
|
962
1321
|
help_text?: string;
|
|
@@ -969,296 +1328,39 @@ interface UIMetadata {
|
|
|
969
1328
|
section?: string;
|
|
970
1329
|
validation?: Validation;
|
|
971
1330
|
}
|
|
972
|
-
interface
|
|
973
|
-
|
|
974
|
-
Scope: string;
|
|
975
|
-
ScopeID: string;
|
|
976
|
-
}
|
|
977
|
-
interface UnlinkAuthMethodRequest {
|
|
978
|
-
Provider: string;
|
|
1331
|
+
interface UnassignRoleRequest {
|
|
1332
|
+
user_id: string;
|
|
979
1333
|
}
|
|
980
1334
|
interface UnlinkAuthMethodResponse {
|
|
981
1335
|
status: string;
|
|
982
1336
|
}
|
|
983
|
-
interface
|
|
984
|
-
feature_key: string;
|
|
985
|
-
feature_name: string;
|
|
986
|
-
feature_type: string;
|
|
987
|
-
limit: number;
|
|
988
|
-
period: string;
|
|
989
|
-
remaining: number;
|
|
990
|
-
used: number;
|
|
991
|
-
}
|
|
992
|
-
interface UsageSummaryResponse {
|
|
993
|
-
usage: UsageItemResponse[];
|
|
994
|
-
}
|
|
995
|
-
interface User {
|
|
996
|
-
app_id: string;
|
|
997
|
-
ban_expires?: string;
|
|
998
|
-
ban_reason?: string;
|
|
999
|
-
banned: boolean;
|
|
1000
|
-
created_at: string;
|
|
1001
|
-
deleted_at?: string;
|
|
1002
|
-
display_username?: string;
|
|
1003
|
-
email: string;
|
|
1004
|
-
email_verified: boolean;
|
|
1005
|
-
env_id: string;
|
|
1006
|
-
first_name: string;
|
|
1007
|
-
id: string;
|
|
1008
|
-
image?: string;
|
|
1009
|
-
last_name: string;
|
|
1010
|
-
metadata?: Record<string, unknown>;
|
|
1011
|
-
password_changed_at?: string;
|
|
1012
|
-
phone?: string;
|
|
1013
|
-
phone_verified: boolean;
|
|
1014
|
-
updated_at: string;
|
|
1015
|
-
username?: string;
|
|
1016
|
-
}
|
|
1017
|
-
interface UserInfo {
|
|
1018
|
-
email?: string;
|
|
1019
|
-
email_verified?: boolean;
|
|
1020
|
-
name?: string;
|
|
1021
|
-
phone_number?: string;
|
|
1022
|
-
sub: string;
|
|
1023
|
-
}
|
|
1024
|
-
interface UserResource {
|
|
1025
|
-
active: boolean;
|
|
1026
|
-
emails?: Email[];
|
|
1027
|
-
externalId?: string;
|
|
1028
|
-
groups?: GroupRef[];
|
|
1029
|
-
id?: string;
|
|
1030
|
-
meta?: Meta;
|
|
1031
|
-
name: Name;
|
|
1032
|
-
schemas: string[];
|
|
1033
|
-
userName: string;
|
|
1034
|
-
}
|
|
1035
|
-
interface UserRoleListResponse {
|
|
1036
|
-
roles: Role[];
|
|
1037
|
-
}
|
|
1038
|
-
interface Validation {
|
|
1039
|
-
max?: number;
|
|
1040
|
-
max_len?: number;
|
|
1041
|
-
min?: number;
|
|
1042
|
-
min_len?: number;
|
|
1043
|
-
pattern?: string;
|
|
1044
|
-
required?: boolean;
|
|
1045
|
-
}
|
|
1046
|
-
interface VerifyMFARequest {
|
|
1047
|
-
code: string;
|
|
1048
|
-
}
|
|
1049
|
-
interface VerifyMFAResponse {
|
|
1050
|
-
method: string;
|
|
1051
|
-
recovery_codes?: string[];
|
|
1052
|
-
verified: boolean;
|
|
1053
|
-
}
|
|
1054
|
-
interface VerifyRequest {
|
|
1055
|
-
app_id?: string;
|
|
1056
|
-
code: string;
|
|
1057
|
-
phone: string;
|
|
1058
|
-
}
|
|
1059
|
-
interface VerifyResponse {
|
|
1060
|
-
expires_at: string;
|
|
1061
|
-
new_user: boolean;
|
|
1062
|
-
refresh_token: string;
|
|
1063
|
-
session_token: string;
|
|
1064
|
-
user?: User;
|
|
1065
|
-
}
|
|
1066
|
-
interface VisibilityCondition {
|
|
1067
|
-
key: string;
|
|
1068
|
-
operator?: string;
|
|
1069
|
-
value: string;
|
|
1070
|
-
}
|
|
1071
|
-
interface VoidInvoiceRequest {
|
|
1072
|
-
InvoiceID: string;
|
|
1073
|
-
reason: string;
|
|
1074
|
-
}
|
|
1075
|
-
interface Webhook {
|
|
1076
|
-
active: boolean;
|
|
1077
|
-
app_id: string;
|
|
1078
|
-
created_at: string;
|
|
1079
|
-
env_id: string;
|
|
1080
|
-
events: string[];
|
|
1081
|
-
id: string;
|
|
1082
|
-
updated_at: string;
|
|
1083
|
-
url: string;
|
|
1084
|
-
}
|
|
1085
|
-
interface WebhookListResponse {
|
|
1086
|
-
webhooks: Webhook[];
|
|
1087
|
-
}
|
|
1088
|
-
interface scimGroupPathParam {
|
|
1089
|
-
GroupID: string;
|
|
1090
|
-
}
|
|
1091
|
-
interface scimUserPathParam {
|
|
1092
|
-
UserID: string;
|
|
1093
|
-
}
|
|
1094
|
-
type ScimCreateGroupRequest = Object$1;
|
|
1095
|
-
type ScimReplaceGroupRequest = scimGroupPathParam;
|
|
1096
|
-
type ScimPatchGroupRequest = scimGroupPathParam;
|
|
1097
|
-
type ScimDeleteGroupRequest = scimGroupPathParam;
|
|
1098
|
-
type ScimCreateUserRequest = Object$1;
|
|
1099
|
-
type ScimReplaceUserRequest = scimUserPathParam;
|
|
1100
|
-
type ScimPatchUserRequest = scimUserPathParam;
|
|
1101
|
-
type ScimDeleteUserRequest = scimUserPathParam;
|
|
1102
|
-
type AdminCreateAppRequest = {
|
|
1103
|
-
logo?: string;
|
|
1104
|
-
name: string;
|
|
1105
|
-
slug: string;
|
|
1106
|
-
};
|
|
1107
|
-
type SetAppClientConfigRequest = {
|
|
1108
|
-
app_name?: string;
|
|
1109
|
-
logo_url?: string;
|
|
1110
|
-
magic_link_enabled?: boolean;
|
|
1111
|
-
mfa_enabled?: boolean;
|
|
1112
|
-
mfa_methods?: string[];
|
|
1113
|
-
mfa_required?: boolean;
|
|
1114
|
-
passkey_enabled?: boolean;
|
|
1115
|
-
password_enabled?: boolean;
|
|
1116
|
-
require_email_verification?: boolean;
|
|
1117
|
-
signup_enabled?: boolean;
|
|
1118
|
-
social_enabled?: boolean;
|
|
1119
|
-
social_providers?: string[];
|
|
1120
|
-
sso_enabled?: boolean;
|
|
1121
|
-
waitlist_enabled?: boolean;
|
|
1122
|
-
};
|
|
1123
|
-
type SetAppSessionConfigRequest = {
|
|
1124
|
-
bind_to_device?: boolean;
|
|
1125
|
-
bind_to_ip?: boolean;
|
|
1126
|
-
max_active_sessions?: number;
|
|
1127
|
-
refresh_token_ttl_seconds?: number;
|
|
1128
|
-
rotate_refresh_token?: boolean;
|
|
1129
|
-
token_format?: string;
|
|
1130
|
-
token_ttl_seconds?: number;
|
|
1131
|
-
};
|
|
1132
|
-
type AdminBulkRevokeSessionsRequest = BulkRevokeSessionsRequest;
|
|
1133
|
-
type AdminBulkImportUsersRequest = {
|
|
1337
|
+
interface UpdateClientRequest {
|
|
1134
1338
|
app_id?: string;
|
|
1135
|
-
|
|
1136
|
-
};
|
|
1137
|
-
type CreateOAuth2ClientRequest = {
|
|
1138
|
-
app_id: string;
|
|
1339
|
+
client_id?: string;
|
|
1139
1340
|
grant_types?: string[];
|
|
1140
|
-
name
|
|
1341
|
+
name?: string;
|
|
1141
1342
|
public?: boolean;
|
|
1142
|
-
redirect_uris
|
|
1343
|
+
redirect_uris?: string[];
|
|
1344
|
+
resources?: string[];
|
|
1143
1345
|
scopes?: string[];
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
email?: string;
|
|
1148
|
-
user_id?: string;
|
|
1149
|
-
};
|
|
1150
|
-
type AdminCreateServiceAccountRequest = {
|
|
1151
|
-
app_id?: string;
|
|
1152
|
-
description?: string;
|
|
1153
|
-
name: string;
|
|
1154
|
-
scopes?: string[];
|
|
1155
|
-
};
|
|
1156
|
-
type AdminCreateServiceAccountAPIKeyRequest = {
|
|
1157
|
-
expires_at?: string;
|
|
1158
|
-
name: string;
|
|
1159
|
-
scopes?: string[];
|
|
1160
|
-
};
|
|
1161
|
-
type EnforceSettingRequest = {
|
|
1162
|
-
app_id?: string;
|
|
1163
|
-
org_id?: string;
|
|
1164
|
-
scope: string;
|
|
1165
|
-
scope_id?: string;
|
|
1166
|
-
value: string;
|
|
1167
|
-
};
|
|
1168
|
-
type SetSettingRequest = {
|
|
1169
|
-
app_id?: string;
|
|
1170
|
-
org_id?: string;
|
|
1171
|
-
scope: string;
|
|
1172
|
-
scope_id?: string;
|
|
1173
|
-
value: string;
|
|
1174
|
-
};
|
|
1175
|
-
type SocialAdminUpsertProviderRequest = {
|
|
1346
|
+
token_endpoint_auth_method?: string;
|
|
1347
|
+
}
|
|
1348
|
+
interface UpdateClientResponse {
|
|
1176
1349
|
client_id: string;
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
redirect_url?: string;
|
|
1180
|
-
scopes?: string[];
|
|
1181
|
-
};
|
|
1182
|
-
type SsoAdminCreateConnectionRequest = {
|
|
1183
|
-
app_id: string;
|
|
1184
|
-
client_id?: string;
|
|
1185
|
-
client_secret?: string;
|
|
1186
|
-
domain: string;
|
|
1187
|
-
issuer?: string;
|
|
1188
|
-
metadata_url?: string;
|
|
1189
|
-
org_id?: string;
|
|
1190
|
-
protocol: string;
|
|
1191
|
-
provider: string;
|
|
1192
|
-
};
|
|
1193
|
-
type SsoAdminUpdateConnectionRequest = {
|
|
1194
|
-
active?: boolean;
|
|
1195
|
-
client_id?: string;
|
|
1196
|
-
client_secret?: string;
|
|
1197
|
-
domain?: string;
|
|
1198
|
-
issuer?: string;
|
|
1199
|
-
metadata_url?: string;
|
|
1200
|
-
provider?: string;
|
|
1201
|
-
};
|
|
1202
|
-
type AdminCreateUserRequest = {
|
|
1203
|
-
app_id?: string;
|
|
1204
|
-
email: string;
|
|
1205
|
-
first_name?: string;
|
|
1206
|
-
last_name?: string;
|
|
1207
|
-
password: string;
|
|
1208
|
-
username?: string;
|
|
1209
|
-
};
|
|
1210
|
-
type AdminUpdateUserRequest = {
|
|
1211
|
-
email_verified?: boolean;
|
|
1212
|
-
first_name?: string;
|
|
1213
|
-
last_name?: string;
|
|
1214
|
-
username?: string;
|
|
1215
|
-
};
|
|
1216
|
-
type AdminBanUserRequest = {
|
|
1217
|
-
expires_at?: string;
|
|
1218
|
-
reason?: string;
|
|
1219
|
-
};
|
|
1220
|
-
type CreateBillingPlanRequest = CreatePlanRequest;
|
|
1221
|
-
type ActivateBillingPlanRequest = PlanIDRequest;
|
|
1222
|
-
type ArchiveBillingPlanRequest = PlanIDRequest;
|
|
1223
|
-
type ChangeSubscriptionPlanRequest = ChangePlanRequest;
|
|
1224
|
-
type PauseSubscriptionRequest = SubIDRequest;
|
|
1225
|
-
type ResumeSubscriptionRequest = SubIDRequest;
|
|
1226
|
-
type ChangePasswordRequest = {
|
|
1227
|
-
current_password: string;
|
|
1228
|
-
new_password: string;
|
|
1229
|
-
};
|
|
1230
|
-
type GrantConsentRequest = {
|
|
1231
|
-
app_id?: string;
|
|
1232
|
-
purpose: string;
|
|
1233
|
-
version?: string;
|
|
1234
|
-
};
|
|
1235
|
-
type RevokeConsentRequest = {
|
|
1236
|
-
app_id?: string;
|
|
1237
|
-
purpose: string;
|
|
1238
|
-
};
|
|
1239
|
-
type CreateEnvironmentRequest = {
|
|
1240
|
-
app_id?: string;
|
|
1241
|
-
color?: string;
|
|
1242
|
-
description?: string;
|
|
1350
|
+
grant_types: string[];
|
|
1351
|
+
id: string;
|
|
1243
1352
|
name: string;
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1353
|
+
public: boolean;
|
|
1354
|
+
redirect_uris: string[];
|
|
1355
|
+
resources: string[];
|
|
1356
|
+
scopes: string[];
|
|
1357
|
+
}
|
|
1358
|
+
interface UpdateEnvironmentRequest {
|
|
1249
1359
|
color?: string;
|
|
1250
1360
|
description?: string;
|
|
1251
1361
|
name?: string;
|
|
1252
|
-
}
|
|
1253
|
-
|
|
1254
|
-
description?: string;
|
|
1255
|
-
name: string;
|
|
1256
|
-
settings?: Record<string, unknown>;
|
|
1257
|
-
slug: string;
|
|
1258
|
-
type: string;
|
|
1259
|
-
webhook_url_override?: string;
|
|
1260
|
-
};
|
|
1261
|
-
type UpdateEnvironmentSettingsRequest = {
|
|
1362
|
+
}
|
|
1363
|
+
interface UpdateEnvironmentSettingsRequest {
|
|
1262
1364
|
allow_test_credentials?: boolean;
|
|
1263
1365
|
check_breached?: boolean;
|
|
1264
1366
|
lockout_enabled?: boolean;
|
|
@@ -1271,152 +1373,230 @@ type UpdateEnvironmentSettingsRequest = {
|
|
|
1271
1373
|
signin_rate_limit?: number;
|
|
1272
1374
|
signup_rate_limit?: number;
|
|
1273
1375
|
skip_email_verification?: boolean;
|
|
1376
|
+
token_exchange_ttl_seconds?: number;
|
|
1274
1377
|
token_ttl_seconds?: number;
|
|
1275
1378
|
webhook_url_override?: string;
|
|
1276
|
-
}
|
|
1277
|
-
|
|
1278
|
-
app_id?: string;
|
|
1279
|
-
email: string;
|
|
1280
|
-
};
|
|
1281
|
-
type IntrospectTokenRequest = {
|
|
1282
|
-
token: string;
|
|
1283
|
-
};
|
|
1284
|
-
type CreateAPIKeyRequest = CreateKeyRequest;
|
|
1285
|
-
type RevokeAPIKeyRequest = RevokeKeyRequest;
|
|
1286
|
-
type SendMagicLinkRequest = SendRequest;
|
|
1287
|
-
type VerifyMagicLinkRequest = VerifyRequest;
|
|
1288
|
-
type UpdateMeRequest = {
|
|
1379
|
+
}
|
|
1380
|
+
interface UpdateMeRequest {
|
|
1289
1381
|
first_name?: string;
|
|
1290
1382
|
image?: string;
|
|
1291
1383
|
last_name?: string;
|
|
1292
1384
|
username?: string;
|
|
1293
|
-
}
|
|
1294
|
-
|
|
1295
|
-
type SwitchOrgRequest = {
|
|
1296
|
-
org_id: string;
|
|
1297
|
-
};
|
|
1298
|
-
type ChallengeMFARequest = ChallengeRequest;
|
|
1299
|
-
type EnrollMFARequest = EnrollRequest;
|
|
1300
|
-
type DisableMFARequest = DisableRequest;
|
|
1301
|
-
type RegenerateMFARecoveryCodesRequest = RecoveryRegenerateRequest;
|
|
1302
|
-
type VerifyRecoveryCodeRequest = RecoveryVerifyRequest;
|
|
1303
|
-
type SendSMSCodeRequest = SMSSendRequest;
|
|
1304
|
-
type VerifySMSCodeRequest = SMSVerifyRequest;
|
|
1305
|
-
type Oauth2DeviceAuthorizeRequest = DeviceAuthRequest;
|
|
1306
|
-
type Oauth2DeviceCompleteRequest = DeviceCompleteRequest;
|
|
1307
|
-
type Oauth2RevokeRequest = RevokeRequest;
|
|
1308
|
-
type Oauth2TokenRequest = TokenRequest;
|
|
1309
|
-
type CreateOrganizationRequest = {
|
|
1310
|
-
app_id?: string;
|
|
1311
|
-
logo?: string;
|
|
1312
|
-
name: string;
|
|
1313
|
-
slug: string;
|
|
1314
|
-
};
|
|
1315
|
-
type AcceptInvitationRequest = {
|
|
1316
|
-
token: string;
|
|
1317
|
-
};
|
|
1318
|
-
type DeclineInvitationRequest = {
|
|
1319
|
-
token: string;
|
|
1320
|
-
};
|
|
1321
|
-
type UpdateOrganizationRequest = {
|
|
1322
|
-
logo?: string;
|
|
1323
|
-
name?: string;
|
|
1324
|
-
};
|
|
1325
|
-
type DeleteOrganizationRequest = DeleteOrgRequest;
|
|
1326
|
-
type CreateInvitationRequest = {
|
|
1327
|
-
email: string;
|
|
1328
|
-
role?: string;
|
|
1329
|
-
};
|
|
1330
|
-
type AddMemberRequest = {
|
|
1331
|
-
role?: string;
|
|
1332
|
-
user_id: string;
|
|
1333
|
-
};
|
|
1334
|
-
type UpdateMemberRequest = {
|
|
1385
|
+
}
|
|
1386
|
+
interface UpdateMemberRequest {
|
|
1335
1387
|
role: string;
|
|
1336
|
-
}
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
slug: string;
|
|
1340
|
-
};
|
|
1341
|
-
type UpdateTeamRequest = {
|
|
1388
|
+
}
|
|
1389
|
+
interface UpdateOrgRequest {
|
|
1390
|
+
logo?: string;
|
|
1342
1391
|
name?: string;
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
description?: string;
|
|
1362
|
-
name: string;
|
|
1363
|
-
parent_id?: string;
|
|
1364
|
-
slug: string;
|
|
1365
|
-
};
|
|
1366
|
-
type AuthsomeUpdateRoleRequest = {
|
|
1392
|
+
}
|
|
1393
|
+
interface UpdateRegistrationRequest {
|
|
1394
|
+
client_id?: string;
|
|
1395
|
+
client_name?: string;
|
|
1396
|
+
client_secret?: string;
|
|
1397
|
+
client_uri?: string;
|
|
1398
|
+
contacts?: string[];
|
|
1399
|
+
grant_types?: string[];
|
|
1400
|
+
logo_uri?: string;
|
|
1401
|
+
policy_uri?: string;
|
|
1402
|
+
redirect_uris: string[];
|
|
1403
|
+
scope?: string;
|
|
1404
|
+
software_id?: string;
|
|
1405
|
+
software_version?: string;
|
|
1406
|
+
token_endpoint_auth_method?: string;
|
|
1407
|
+
tos_uri?: string;
|
|
1408
|
+
}
|
|
1409
|
+
interface UpdateRoleRequest {
|
|
1367
1410
|
description?: string;
|
|
1368
1411
|
name?: string;
|
|
1369
1412
|
parent_id?: string;
|
|
1370
|
-
}
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
}
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
}
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1413
|
+
}
|
|
1414
|
+
interface UpdateTeamRequest {
|
|
1415
|
+
name?: string;
|
|
1416
|
+
slug?: string;
|
|
1417
|
+
}
|
|
1418
|
+
interface UpdateWebhookRequest {
|
|
1419
|
+
active?: boolean;
|
|
1420
|
+
events?: string[];
|
|
1421
|
+
url?: string;
|
|
1422
|
+
}
|
|
1423
|
+
interface UsageItemResponse {
|
|
1424
|
+
feature_key: string;
|
|
1425
|
+
feature_name: string;
|
|
1426
|
+
feature_type: string;
|
|
1427
|
+
limit: number;
|
|
1428
|
+
period: string;
|
|
1429
|
+
remaining: number;
|
|
1430
|
+
used: number;
|
|
1431
|
+
}
|
|
1432
|
+
interface UsageSummaryResponse {
|
|
1433
|
+
usage: UsageItemResponse[];
|
|
1434
|
+
}
|
|
1435
|
+
interface User {
|
|
1436
|
+
app_id: string;
|
|
1437
|
+
ban_expires?: string;
|
|
1438
|
+
ban_reason?: string;
|
|
1439
|
+
banned: boolean;
|
|
1440
|
+
created_at: string;
|
|
1441
|
+
deleted_at?: string;
|
|
1442
|
+
display_username?: string;
|
|
1392
1443
|
email: string;
|
|
1393
|
-
|
|
1394
|
-
|
|
1444
|
+
email_verified: boolean;
|
|
1445
|
+
env_id: string;
|
|
1446
|
+
first_name: string;
|
|
1447
|
+
id: string;
|
|
1448
|
+
image?: string;
|
|
1449
|
+
last_name: string;
|
|
1395
1450
|
metadata?: Record<string, unknown>;
|
|
1396
|
-
|
|
1451
|
+
password_changed_at?: string;
|
|
1452
|
+
phone?: string;
|
|
1453
|
+
phone_verified: boolean;
|
|
1454
|
+
updated_at: string;
|
|
1397
1455
|
username?: string;
|
|
1456
|
+
}
|
|
1457
|
+
interface UserInfo {
|
|
1458
|
+
email?: string;
|
|
1459
|
+
email_verified?: boolean;
|
|
1460
|
+
name?: string;
|
|
1461
|
+
phone_number?: string;
|
|
1462
|
+
sub: string;
|
|
1463
|
+
}
|
|
1464
|
+
interface UserResource {
|
|
1465
|
+
active: boolean;
|
|
1466
|
+
emails?: Email[];
|
|
1467
|
+
externalId?: string;
|
|
1468
|
+
groups?: GroupRef[];
|
|
1469
|
+
id?: string;
|
|
1470
|
+
meta?: Meta;
|
|
1471
|
+
name: Name;
|
|
1472
|
+
schemas: string[];
|
|
1473
|
+
userName: string;
|
|
1474
|
+
}
|
|
1475
|
+
interface UserRoleListResponse {
|
|
1476
|
+
roles: Role[];
|
|
1477
|
+
}
|
|
1478
|
+
interface Validation {
|
|
1479
|
+
max?: number;
|
|
1480
|
+
max_len?: number;
|
|
1481
|
+
min?: number;
|
|
1482
|
+
min_len?: number;
|
|
1483
|
+
pattern?: string;
|
|
1484
|
+
required?: boolean;
|
|
1485
|
+
}
|
|
1486
|
+
interface VerifyEmailRequest {
|
|
1487
|
+
app_id?: string;
|
|
1488
|
+
code?: string;
|
|
1489
|
+
email?: string;
|
|
1490
|
+
token?: string;
|
|
1491
|
+
}
|
|
1492
|
+
interface VerifyMFARequest {
|
|
1493
|
+
code: string;
|
|
1494
|
+
}
|
|
1495
|
+
interface VerifyMFAResponse {
|
|
1496
|
+
method: string;
|
|
1497
|
+
recovery_codes?: string[];
|
|
1498
|
+
verified: boolean;
|
|
1499
|
+
}
|
|
1500
|
+
interface VisibilityCondition {
|
|
1501
|
+
key: string;
|
|
1502
|
+
operator?: string;
|
|
1503
|
+
value: string;
|
|
1504
|
+
}
|
|
1505
|
+
interface VoidInvoiceRequest {
|
|
1506
|
+
reason: string;
|
|
1507
|
+
}
|
|
1508
|
+
interface Webhook {
|
|
1509
|
+
active: boolean;
|
|
1510
|
+
app_id: string;
|
|
1511
|
+
created_at: string;
|
|
1512
|
+
env_id: string;
|
|
1513
|
+
events: string[];
|
|
1514
|
+
id: string;
|
|
1515
|
+
updated_at: string;
|
|
1516
|
+
url: string;
|
|
1517
|
+
}
|
|
1518
|
+
interface WebhookListResponse {
|
|
1519
|
+
webhooks: Webhook[];
|
|
1520
|
+
}
|
|
1521
|
+
type AdminBulkImportUsersRequest = BulkImportUsersRequest;
|
|
1522
|
+
type CreateOAuth2ClientRequest = CreateClientRequest;
|
|
1523
|
+
type UpdateOAuth2ClientRequest = UpdateClientRequest;
|
|
1524
|
+
type SocialAdminUpsertProviderRequest = AdminUpsertProviderRequest;
|
|
1525
|
+
type SsoAdminCreateConnectionRequest = AdminCreateConnectionRequest;
|
|
1526
|
+
type SsoAdminUpdateConnectionRequest = AdminUpdateConnectionRequest;
|
|
1527
|
+
type CreateBillingPlanRequest = CreatePlanRequest;
|
|
1528
|
+
type ChangeSubscriptionPlanRequest = ChangePlanRequest;
|
|
1529
|
+
type IntrospectTokenRequest = IntrospectRequest;
|
|
1530
|
+
type CreateAPIKeyRequest = CreateKeyRequest;
|
|
1531
|
+
type SendMagicLinkRequest = SendRequest;
|
|
1532
|
+
type VerifyMagicLinkRequest = MagiclinkVerifyRequest;
|
|
1533
|
+
type ChallengeMFARequest = ChallengeRequest;
|
|
1534
|
+
type EnrollMFARequest = EnrollRequest;
|
|
1535
|
+
type DisableMFARequest = DisableRequest;
|
|
1536
|
+
type VerifyRecoveryCodeRequest = RecoveryVerifyRequest;
|
|
1537
|
+
type SendSMSCodeRequest = SMSSendRequest;
|
|
1538
|
+
type VerifySMSCodeRequest = SMSVerifyRequest;
|
|
1539
|
+
type Oauth2DeviceAuthorizeRequest = {
|
|
1540
|
+
client_id: string;
|
|
1541
|
+
resource?: string[];
|
|
1542
|
+
scope?: string;
|
|
1543
|
+
};
|
|
1544
|
+
type Oauth2DeviceCompleteRequest = {
|
|
1545
|
+
action: string;
|
|
1546
|
+
user_code: string;
|
|
1398
1547
|
};
|
|
1399
|
-
type
|
|
1400
|
-
type
|
|
1401
|
-
type
|
|
1402
|
-
|
|
1403
|
-
|
|
1548
|
+
type Oauth2RegisterClientRequest = RegisterClientRequest;
|
|
1549
|
+
type Oauth2UpdateRegistrationRequest = UpdateRegistrationRequest;
|
|
1550
|
+
type Oauth2RevokeRequest = {
|
|
1551
|
+
client_id?: string;
|
|
1552
|
+
client_secret?: string;
|
|
1404
1553
|
token: string;
|
|
1554
|
+
token_type_hint?: string;
|
|
1405
1555
|
};
|
|
1406
|
-
type
|
|
1407
|
-
|
|
1408
|
-
|
|
1556
|
+
type Oauth2TokenRequest = {
|
|
1557
|
+
actor_token?: string;
|
|
1558
|
+
actor_token_type?: string;
|
|
1559
|
+
audience?: string;
|
|
1560
|
+
client_id?: string;
|
|
1561
|
+
client_secret?: string;
|
|
1562
|
+
code?: string;
|
|
1563
|
+
code_verifier?: string;
|
|
1564
|
+
device_code?: string;
|
|
1565
|
+
grant_type: string;
|
|
1566
|
+
redirect_uri?: string;
|
|
1567
|
+
requested_token_type?: string;
|
|
1568
|
+
resource?: string[];
|
|
1569
|
+
scope?: string;
|
|
1570
|
+
subject_token?: string;
|
|
1571
|
+
subject_token_type?: string;
|
|
1409
1572
|
};
|
|
1410
|
-
type
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1573
|
+
type CreateOrganizationRequest = CreateOrgRequest;
|
|
1574
|
+
type UpdateOrganizationRequest = UpdateOrgRequest;
|
|
1575
|
+
type PasskeyLoginFinishRequest = {
|
|
1576
|
+
id: string;
|
|
1577
|
+
rawId: string;
|
|
1578
|
+
response: AssertionResponse;
|
|
1579
|
+
type: string;
|
|
1414
1580
|
};
|
|
1415
|
-
type
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1581
|
+
type PasskeyRegisterBeginRequest = RegisterBeginRequest;
|
|
1582
|
+
type PasskeyRegisterFinishRequest = {
|
|
1583
|
+
id: string;
|
|
1584
|
+
rawId: string;
|
|
1585
|
+
response: AttestationResponse;
|
|
1586
|
+
type: string;
|
|
1419
1587
|
};
|
|
1588
|
+
type PhoneAuthStartRequest = StartRequest;
|
|
1589
|
+
type PhoneAuthVerifyRequest = PhoneVerifyRequest;
|
|
1590
|
+
type MintChildPrincipalRequest = MintChildRequest;
|
|
1591
|
+
type AuthsomeCreateRoleRequest = CreateRoleRequest;
|
|
1592
|
+
type AuthsomeUpdateRoleRequest = UpdateRoleRequest;
|
|
1593
|
+
type AuthsomeAssignRoleRequest = AssignRoleRequest;
|
|
1594
|
+
type AuthsomeAddPermissionRequest = AddPermissionRequest;
|
|
1595
|
+
type AuthsomeUnassignRoleRequest = UnassignRoleRequest;
|
|
1596
|
+
type SsoExchangeRequest = ExchangeRequest;
|
|
1597
|
+
type StartSSOLoginByDomainRequest = LoginByDomainRequest;
|
|
1598
|
+
type ExchangeTokenRequest = TokenExchangeRequest;
|
|
1599
|
+
type ResendEmailVerificationRequest = ResendVerificationRequest;
|
|
1420
1600
|
|
|
1421
1601
|
/** Core type definitions for AuthSome UI Kit. */
|
|
1422
1602
|
|
|
@@ -1672,17 +1852,17 @@ declare class AuthClient$1 {
|
|
|
1672
1852
|
* OpenID Connect Discovery
|
|
1673
1853
|
* GET /.well-known/openid-configuration
|
|
1674
1854
|
*/
|
|
1675
|
-
|
|
1855
|
+
oidcDiscoveryPrefixed(token: string): Promise<DiscoveryResponse>;
|
|
1676
1856
|
/**
|
|
1677
1857
|
* List SCIM Groups
|
|
1678
1858
|
* GET /scim/v2/Groups
|
|
1679
1859
|
*/
|
|
1680
|
-
scimListGroups(token: string): Promise<
|
|
1860
|
+
scimListGroups(token: string): Promise<ScimListResponse>;
|
|
1681
1861
|
/**
|
|
1682
1862
|
* Create SCIM Group
|
|
1683
1863
|
* POST /scim/v2/Groups
|
|
1684
1864
|
*/
|
|
1685
|
-
scimCreateGroup(
|
|
1865
|
+
scimCreateGroup(token: string): Promise<GroupResource>;
|
|
1686
1866
|
/**
|
|
1687
1867
|
* Get SCIM Group
|
|
1688
1868
|
* GET /scim/v2/Groups/{groupId}
|
|
@@ -1692,42 +1872,42 @@ declare class AuthClient$1 {
|
|
|
1692
1872
|
* Replace SCIM Group
|
|
1693
1873
|
* PUT /scim/v2/Groups/{groupId}
|
|
1694
1874
|
*/
|
|
1695
|
-
scimReplaceGroup(groupId: string,
|
|
1875
|
+
scimReplaceGroup(groupId: string, token: string): Promise<GroupResource>;
|
|
1696
1876
|
/**
|
|
1697
1877
|
* Patch SCIM Group
|
|
1698
1878
|
* PATCH /scim/v2/Groups/{groupId}
|
|
1699
1879
|
*/
|
|
1700
|
-
scimPatchGroup(groupId: string,
|
|
1880
|
+
scimPatchGroup(groupId: string, token: string): Promise<GroupResource>;
|
|
1701
1881
|
/**
|
|
1702
1882
|
* Delete SCIM Group
|
|
1703
1883
|
* DELETE /scim/v2/Groups/{groupId}
|
|
1704
1884
|
*/
|
|
1705
|
-
scimDeleteGroup(groupId: string,
|
|
1885
|
+
scimDeleteGroup(groupId: string, token: string): Promise<Empty>;
|
|
1706
1886
|
/**
|
|
1707
1887
|
* SCIM Resource Types
|
|
1708
1888
|
* GET /scim/v2/ResourceTypes
|
|
1709
1889
|
*/
|
|
1710
|
-
scimResourceTypes(token: string): Promise<
|
|
1890
|
+
scimResourceTypes(token: string): Promise<ResourceTypeList>;
|
|
1711
1891
|
/**
|
|
1712
1892
|
* SCIM Schemas
|
|
1713
1893
|
* GET /scim/v2/Schemas
|
|
1714
1894
|
*/
|
|
1715
|
-
scimSchemas(token: string): Promise<
|
|
1895
|
+
scimSchemas(token: string): Promise<SchemaList>;
|
|
1716
1896
|
/**
|
|
1717
1897
|
* SCIM Service Provider Configuration
|
|
1718
1898
|
* GET /scim/v2/ServiceProviderConfig
|
|
1719
1899
|
*/
|
|
1720
|
-
scimServiceProviderConfig(token: string): Promise<
|
|
1900
|
+
scimServiceProviderConfig(token: string): Promise<ServiceProviderConfig>;
|
|
1721
1901
|
/**
|
|
1722
1902
|
* List SCIM Users
|
|
1723
1903
|
* GET /scim/v2/Users
|
|
1724
1904
|
*/
|
|
1725
|
-
scimListUsers(token: string): Promise<
|
|
1905
|
+
scimListUsers(token: string): Promise<ScimListResponse>;
|
|
1726
1906
|
/**
|
|
1727
1907
|
* Create SCIM User
|
|
1728
1908
|
* POST /scim/v2/Users
|
|
1729
1909
|
*/
|
|
1730
|
-
scimCreateUser(
|
|
1910
|
+
scimCreateUser(token: string): Promise<UserResource>;
|
|
1731
1911
|
/**
|
|
1732
1912
|
* Get SCIM User
|
|
1733
1913
|
* GET /scim/v2/Users/{userId}
|
|
@@ -1737,17 +1917,17 @@ declare class AuthClient$1 {
|
|
|
1737
1917
|
* Replace SCIM User
|
|
1738
1918
|
* PUT /scim/v2/Users/{userId}
|
|
1739
1919
|
*/
|
|
1740
|
-
scimReplaceUser(userId: string,
|
|
1920
|
+
scimReplaceUser(userId: string, token: string): Promise<UserResource>;
|
|
1741
1921
|
/**
|
|
1742
1922
|
* Patch SCIM User
|
|
1743
1923
|
* PATCH /scim/v2/Users/{userId}
|
|
1744
1924
|
*/
|
|
1745
|
-
scimPatchUser(userId: string,
|
|
1925
|
+
scimPatchUser(userId: string, token: string): Promise<UserResource>;
|
|
1746
1926
|
/**
|
|
1747
1927
|
* Delete SCIM User
|
|
1748
1928
|
* DELETE /scim/v2/Users/{userId}
|
|
1749
1929
|
*/
|
|
1750
|
-
scimDeleteUser(userId: string,
|
|
1930
|
+
scimDeleteUser(userId: string, token: string): Promise<Empty>;
|
|
1751
1931
|
/**
|
|
1752
1932
|
* Create application (admin)
|
|
1753
1933
|
* POST /v1/admin/apps
|
|
@@ -1757,42 +1937,42 @@ declare class AuthClient$1 {
|
|
|
1757
1937
|
* Delete application (admin)
|
|
1758
1938
|
* DELETE /v1/admin/apps/{appId}
|
|
1759
1939
|
*/
|
|
1760
|
-
adminDeleteApp(appId: string,
|
|
1940
|
+
adminDeleteApp(appId: string, token: string): Promise<ApiStatusResponse>;
|
|
1761
1941
|
/**
|
|
1762
1942
|
* Get per-app client config overrides
|
|
1763
1943
|
* GET /v1/admin/apps/{appId}/client-config
|
|
1764
1944
|
*/
|
|
1765
|
-
getAppClientConfig(appId: string, token: string): Promise<
|
|
1945
|
+
getAppClientConfig(appId: string, token: string): Promise<AppclientconfigConfig>;
|
|
1766
1946
|
/**
|
|
1767
1947
|
* Set per-app client config overrides
|
|
1768
1948
|
* PUT /v1/admin/apps/{appId}/client-config
|
|
1769
1949
|
*/
|
|
1770
|
-
setAppClientConfig(appId: string, body: SetAppClientConfigRequest, token: string): Promise<
|
|
1950
|
+
setAppClientConfig(appId: string, body: SetAppClientConfigRequest, token: string): Promise<AppclientconfigConfig>;
|
|
1771
1951
|
/**
|
|
1772
1952
|
* Delete per-app client config overrides
|
|
1773
1953
|
* DELETE /v1/admin/apps/{appId}/client-config
|
|
1774
1954
|
*/
|
|
1775
|
-
deleteAppClientConfig(appId: string,
|
|
1955
|
+
deleteAppClientConfig(appId: string, token: string): Promise<ApiStatusResponse>;
|
|
1776
1956
|
/**
|
|
1777
1957
|
* Get per-app session config
|
|
1778
1958
|
* GET /v1/admin/apps/{appId}/session-config
|
|
1779
1959
|
*/
|
|
1780
|
-
getAppSessionConfig(appId: string, token: string): Promise<
|
|
1960
|
+
getAppSessionConfig(appId: string, token: string): Promise<AppsessionconfigConfig>;
|
|
1781
1961
|
/**
|
|
1782
1962
|
* Set per-app session config
|
|
1783
1963
|
* PUT /v1/admin/apps/{appId}/session-config
|
|
1784
1964
|
*/
|
|
1785
|
-
setAppSessionConfig(appId: string, body: SetAppSessionConfigRequest, token: string): Promise<
|
|
1965
|
+
setAppSessionConfig(appId: string, body: SetAppSessionConfigRequest, token: string): Promise<AppsessionconfigConfig>;
|
|
1786
1966
|
/**
|
|
1787
1967
|
* Delete per-app session config
|
|
1788
1968
|
* DELETE /v1/admin/apps/{appId}/session-config
|
|
1789
1969
|
*/
|
|
1790
|
-
deleteAppSessionConfig(appId: string,
|
|
1970
|
+
deleteAppSessionConfig(appId: string, token: string): Promise<ApiStatusResponse>;
|
|
1791
1971
|
/**
|
|
1792
1972
|
* Bulk revoke sessions (admin)
|
|
1793
1973
|
* DELETE /v1/admin/bulk/sessions
|
|
1794
1974
|
*/
|
|
1795
|
-
adminBulkRevokeSessions(
|
|
1975
|
+
adminBulkRevokeSessions(user_id: string, token: string): Promise<BulkRevokeSessionsResponse>;
|
|
1796
1976
|
/**
|
|
1797
1977
|
* Bulk import users (admin)
|
|
1798
1978
|
* POST /v1/admin/bulk/users/import
|
|
@@ -1802,32 +1982,42 @@ declare class AuthClient$1 {
|
|
|
1802
1982
|
* Stop impersonation (admin)
|
|
1803
1983
|
* POST /v1/admin/impersonate/stop
|
|
1804
1984
|
*/
|
|
1805
|
-
adminStopImpersonation(
|
|
1985
|
+
adminStopImpersonation(token: string): Promise<ApiStatusResponse>;
|
|
1806
1986
|
/**
|
|
1807
1987
|
* Impersonate user (admin)
|
|
1808
1988
|
* POST /v1/admin/impersonate/{userId}
|
|
1809
1989
|
*/
|
|
1810
|
-
adminImpersonate(userId: string,
|
|
1990
|
+
adminImpersonate(userId: string, token: string): Promise<AuthResponse>;
|
|
1811
1991
|
/**
|
|
1812
1992
|
* List OAuth2 clients
|
|
1813
1993
|
* GET /v1/admin/oauth/clients
|
|
1814
1994
|
*/
|
|
1815
|
-
listOAuth2Clients(token: string): Promise<ListClientsResponse>;
|
|
1995
|
+
listOAuth2Clients(app_id: string, token: string): Promise<ListClientsResponse>;
|
|
1816
1996
|
/**
|
|
1817
1997
|
* Create OAuth2 client
|
|
1818
1998
|
* POST /v1/admin/oauth/clients
|
|
1819
1999
|
*/
|
|
1820
2000
|
createOAuth2Client(body: CreateOAuth2ClientRequest, token: string): Promise<CreateClientResponse>;
|
|
2001
|
+
/**
|
|
2002
|
+
* Update OAuth2 client
|
|
2003
|
+
* PATCH /v1/admin/oauth/clients/{clientId}
|
|
2004
|
+
*/
|
|
2005
|
+
updateOAuth2Client(clientId: string, body: UpdateOAuth2ClientRequest, token: string): Promise<UpdateClientResponse>;
|
|
1821
2006
|
/**
|
|
1822
2007
|
* Delete OAuth2 client
|
|
1823
2008
|
* DELETE /v1/admin/oauth/clients/{clientId}
|
|
1824
2009
|
*/
|
|
1825
|
-
deleteOAuth2Client(clientId: string,
|
|
2010
|
+
deleteOAuth2Client(clientId: string, token: string): Promise<void>;
|
|
2011
|
+
/**
|
|
2012
|
+
* Rotate OAuth2 client secret
|
|
2013
|
+
* POST /v1/admin/oauth/clients/{clientId}/secret
|
|
2014
|
+
*/
|
|
2015
|
+
rotateOAuth2ClientSecret(clientId: string, token: string): Promise<RotateClientSecretResponse>;
|
|
1826
2016
|
/**
|
|
1827
2017
|
* List organizations (admin)
|
|
1828
2018
|
* GET /v1/admin/orgs
|
|
1829
2019
|
*/
|
|
1830
|
-
adminListOrgs(): Promise<OrgListResponse>;
|
|
2020
|
+
adminListOrgs(app_id: string, token: string): Promise<OrgListResponse>;
|
|
1831
2021
|
/**
|
|
1832
2022
|
* Grant platform-owner role (admin)
|
|
1833
2023
|
* POST /v1/admin/platform/owners
|
|
@@ -1837,12 +2027,12 @@ declare class AuthClient$1 {
|
|
|
1837
2027
|
* Revoke platform-owner role (admin)
|
|
1838
2028
|
* DELETE /v1/admin/platform/owners/{userID}
|
|
1839
2029
|
*/
|
|
1840
|
-
adminRevokePlatformOwner(userID: string,
|
|
2030
|
+
adminRevokePlatformOwner(userID: string, token: string): Promise<AdminPlatformOwnerResponse>;
|
|
1841
2031
|
/**
|
|
1842
2032
|
* List service accounts (admin)
|
|
1843
2033
|
* GET /v1/admin/service-accounts
|
|
1844
2034
|
*/
|
|
1845
|
-
adminListServiceAccounts(token: string): Promise<AdminServiceAccountListResponse>;
|
|
2035
|
+
adminListServiceAccounts(app_id: string, token: string, limit?: number, cursor?: string): Promise<AdminServiceAccountListResponse>;
|
|
1846
2036
|
/**
|
|
1847
2037
|
* Create service account (admin)
|
|
1848
2038
|
* POST /v1/admin/service-accounts
|
|
@@ -1857,7 +2047,7 @@ declare class AuthClient$1 {
|
|
|
1857
2047
|
* Delete service account (admin)
|
|
1858
2048
|
* DELETE /v1/admin/service-accounts/{serviceAccountId}
|
|
1859
2049
|
*/
|
|
1860
|
-
adminDeleteServiceAccount(serviceAccountId: string,
|
|
2050
|
+
adminDeleteServiceAccount(serviceAccountId: string, token: string): Promise<ApiStatusResponse>;
|
|
1861
2051
|
/**
|
|
1862
2052
|
* Create service account API key (admin)
|
|
1863
2053
|
* POST /v1/admin/service-accounts/{serviceAccountId}/api-keys
|
|
@@ -1867,7 +2057,7 @@ declare class AuthClient$1 {
|
|
|
1867
2057
|
* List all setting definitions
|
|
1868
2058
|
* GET /v1/admin/settings/definitions
|
|
1869
2059
|
*/
|
|
1870
|
-
listSettingsDefinitions(token: string): Promise<ListDefinitionsResponse>;
|
|
2060
|
+
listSettingsDefinitions(namespace: string, category: string, token: string): Promise<ListDefinitionsResponse>;
|
|
1871
2061
|
/**
|
|
1872
2062
|
* List definitions for a namespace
|
|
1873
2063
|
* GET /v1/admin/settings/definitions/{namespace}
|
|
@@ -1882,17 +2072,17 @@ declare class AuthClient$1 {
|
|
|
1882
2072
|
* Remove enforcement from a setting
|
|
1883
2073
|
* DELETE /v1/admin/settings/enforce/{key}
|
|
1884
2074
|
*/
|
|
1885
|
-
unenforceSetting(key: string,
|
|
2075
|
+
unenforceSetting(key: string, scope: string, scope_id: string, token: string): Promise<ApiStatusResponse>;
|
|
1886
2076
|
/**
|
|
1887
2077
|
* Resolve all settings at a scope
|
|
1888
2078
|
* GET /v1/admin/settings/resolve
|
|
1889
2079
|
*/
|
|
1890
|
-
resolveSettings(token: string): Promise<ResolvedSettingsResponse>;
|
|
2080
|
+
resolveSettings(namespace: string, app_id: string, org_id: string, user_id: string, token: string): Promise<ResolvedSettingsResponse>;
|
|
1891
2081
|
/**
|
|
1892
2082
|
* Resolve one setting with cascade details
|
|
1893
2083
|
* GET /v1/admin/settings/resolve/{key}
|
|
1894
2084
|
*/
|
|
1895
|
-
resolveSetting(key: string, token: string): Promise<ResolvedSettingResponse>;
|
|
2085
|
+
resolveSetting(key: string, app_id: string, org_id: string, user_id: string, token: string): Promise<ResolvedSettingResponse>;
|
|
1896
2086
|
/**
|
|
1897
2087
|
* Set a setting value at a scope
|
|
1898
2088
|
* PUT /v1/admin/settings/values/{key}
|
|
@@ -1902,7 +2092,7 @@ declare class AuthClient$1 {
|
|
|
1902
2092
|
* Delete a setting override at a scope
|
|
1903
2093
|
* DELETE /v1/admin/settings/values/{key}
|
|
1904
2094
|
*/
|
|
1905
|
-
deleteSetting(key: string,
|
|
2095
|
+
deleteSetting(key: string, scope: string, scope_id: string, token: string): Promise<ApiStatusResponse>;
|
|
1906
2096
|
/**
|
|
1907
2097
|
* List social providers (admin)
|
|
1908
2098
|
* GET /v1/admin/social/providers
|
|
@@ -1952,12 +2142,17 @@ declare class AuthClient$1 {
|
|
|
1952
2142
|
* Get stats (admin)
|
|
1953
2143
|
* GET /v1/admin/stats
|
|
1954
2144
|
*/
|
|
1955
|
-
adminGetStats(token: string): Promise<AdminStatsResponse>;
|
|
2145
|
+
adminGetStats(app_id: string, token: string): Promise<AdminStatsResponse>;
|
|
1956
2146
|
/**
|
|
1957
2147
|
* List users (admin)
|
|
1958
2148
|
* GET /v1/admin/users
|
|
1959
2149
|
*/
|
|
1960
|
-
adminListUsers(token: string): Promise<AdminUserListResponse>;
|
|
2150
|
+
adminListUsers(app_id: string, token: string, email?: string, cursor?: string, limit?: number): Promise<AdminUserListResponse>;
|
|
2151
|
+
/**
|
|
2152
|
+
* Copy user to another app (admin)
|
|
2153
|
+
* POST /v1/admin/users/copy
|
|
2154
|
+
*/
|
|
2155
|
+
adminCopyUser(body: AdminCopyUserRequest, token: string): Promise<User>;
|
|
1961
2156
|
/**
|
|
1962
2157
|
* Create user (admin)
|
|
1963
2158
|
* POST /v1/admin/users/create
|
|
@@ -1977,22 +2172,22 @@ declare class AuthClient$1 {
|
|
|
1977
2172
|
* Delete user (admin)
|
|
1978
2173
|
* DELETE /v1/admin/users/{userId}
|
|
1979
2174
|
*/
|
|
1980
|
-
adminDeleteUser(userId: string,
|
|
2175
|
+
adminDeleteUser(userId: string, token: string): Promise<ApiStatusResponse>;
|
|
1981
2176
|
/**
|
|
1982
2177
|
* Ban user (admin)
|
|
1983
2178
|
* POST /v1/admin/users/{userId}/ban
|
|
1984
2179
|
*/
|
|
1985
|
-
adminBanUser(userId: string, body: AdminBanUserRequest, token: string): Promise<
|
|
2180
|
+
adminBanUser(userId: string, body: AdminBanUserRequest, token: string): Promise<ApiStatusResponse>;
|
|
1986
2181
|
/**
|
|
1987
2182
|
* Unban user (admin)
|
|
1988
2183
|
* POST /v1/admin/users/{userId}/unban
|
|
1989
2184
|
*/
|
|
1990
|
-
adminUnbanUser(userId: string,
|
|
2185
|
+
adminUnbanUser(userId: string, token: string): Promise<ApiStatusResponse>;
|
|
1991
2186
|
/**
|
|
1992
2187
|
* List coupons
|
|
1993
2188
|
* GET /v1/billing/coupons
|
|
1994
2189
|
*/
|
|
1995
|
-
listCoupons(token: string): Promise<ListCouponsResponse>;
|
|
2190
|
+
listCoupons(app_id: string, token: string): Promise<ListCouponsResponse>;
|
|
1996
2191
|
/**
|
|
1997
2192
|
* Create coupon
|
|
1998
2193
|
* POST /v1/billing/coupons
|
|
@@ -2002,7 +2197,7 @@ declare class AuthClient$1 {
|
|
|
2002
2197
|
* Delete coupon
|
|
2003
2198
|
* DELETE /v1/billing/coupons/{couponId}
|
|
2004
2199
|
*/
|
|
2005
|
-
deleteCoupon(couponId: string,
|
|
2200
|
+
deleteCoupon(couponId: string, token: string): Promise<void>;
|
|
2006
2201
|
/**
|
|
2007
2202
|
* Check feature entitlement
|
|
2008
2203
|
* GET /v1/billing/entitlements/{featureKey}
|
|
@@ -2012,7 +2207,7 @@ declare class AuthClient$1 {
|
|
|
2012
2207
|
* List invoices
|
|
2013
2208
|
* GET /v1/billing/invoices
|
|
2014
2209
|
*/
|
|
2015
|
-
listInvoices(token: string): Promise<ListInvoicesResponse>;
|
|
2210
|
+
listInvoices(app_id: string, tenant_id: string, token: string): Promise<ListInvoicesResponse>;
|
|
2016
2211
|
/**
|
|
2017
2212
|
* Get invoice
|
|
2018
2213
|
* GET /v1/billing/invoices/{invoiceId}
|
|
@@ -2032,7 +2227,7 @@ declare class AuthClient$1 {
|
|
|
2032
2227
|
* List billing plans
|
|
2033
2228
|
* GET /v1/billing/plans
|
|
2034
2229
|
*/
|
|
2035
|
-
listBillingPlans(token: string): Promise<ListPlansResponse>;
|
|
2230
|
+
listBillingPlans(app_id: string, token: string): Promise<ListPlansResponse>;
|
|
2036
2231
|
/**
|
|
2037
2232
|
* Create billing plan
|
|
2038
2233
|
* POST /v1/billing/plans
|
|
@@ -2047,17 +2242,17 @@ declare class AuthClient$1 {
|
|
|
2047
2242
|
* Activate a billing plan
|
|
2048
2243
|
* POST /v1/billing/plans/{planId}/activate
|
|
2049
2244
|
*/
|
|
2050
|
-
activateBillingPlan(planId: string,
|
|
2245
|
+
activateBillingPlan(planId: string, token: string): Promise<void>;
|
|
2051
2246
|
/**
|
|
2052
2247
|
* Archive a billing plan
|
|
2053
2248
|
* POST /v1/billing/plans/{planId}/archive
|
|
2054
2249
|
*/
|
|
2055
|
-
archiveBillingPlan(planId: string,
|
|
2250
|
+
archiveBillingPlan(planId: string, token: string): Promise<void>;
|
|
2056
2251
|
/**
|
|
2057
2252
|
* List subscriptions
|
|
2058
2253
|
* GET /v1/billing/subscriptions
|
|
2059
2254
|
*/
|
|
2060
|
-
listSubscriptions(token: string): Promise<ListSubscriptionsResponse>;
|
|
2255
|
+
listSubscriptions(app_id: string, tenant_id: string, token: string, status?: string): Promise<ListSubscriptionsResponse>;
|
|
2061
2256
|
/**
|
|
2062
2257
|
* Create subscription
|
|
2063
2258
|
* POST /v1/billing/subscriptions
|
|
@@ -2067,7 +2262,7 @@ declare class AuthClient$1 {
|
|
|
2067
2262
|
* Get active subscription
|
|
2068
2263
|
* GET /v1/billing/subscriptions/active
|
|
2069
2264
|
*/
|
|
2070
|
-
getActiveSubscription(token: string): Promise<Response>;
|
|
2265
|
+
getActiveSubscription(app_id: string, tenant_id: string, token: string): Promise<Response>;
|
|
2071
2266
|
/**
|
|
2072
2267
|
* Cancel subscription
|
|
2073
2268
|
* POST /v1/billing/subscriptions/{subId}/cancel
|
|
@@ -2082,42 +2277,42 @@ declare class AuthClient$1 {
|
|
|
2082
2277
|
* Pause subscription
|
|
2083
2278
|
* POST /v1/billing/subscriptions/{subId}/pause
|
|
2084
2279
|
*/
|
|
2085
|
-
pauseSubscription(subId: string,
|
|
2280
|
+
pauseSubscription(subId: string, token: string): Promise<void>;
|
|
2086
2281
|
/**
|
|
2087
2282
|
* Resume subscription
|
|
2088
2283
|
* POST /v1/billing/subscriptions/{subId}/resume
|
|
2089
2284
|
*/
|
|
2090
|
-
resumeSubscription(subId: string,
|
|
2285
|
+
resumeSubscription(subId: string, token: string): Promise<void>;
|
|
2091
2286
|
/**
|
|
2092
2287
|
* Get usage summary
|
|
2093
2288
|
* GET /v1/billing/usage
|
|
2094
2289
|
*/
|
|
2095
|
-
getUsageSummary(token: string): Promise<UsageSummaryResponse>;
|
|
2290
|
+
getUsageSummary(app_id: string, tenant_id: string, token: string): Promise<UsageSummaryResponse>;
|
|
2096
2291
|
/**
|
|
2097
2292
|
* Change password
|
|
2098
2293
|
* POST /v1/change-password
|
|
2099
2294
|
*/
|
|
2100
|
-
changePassword(body: ChangePasswordRequest, token: string): Promise<
|
|
2295
|
+
changePassword(body: ChangePasswordRequest, token: string): Promise<ApiStatusResponse>;
|
|
2101
2296
|
/**
|
|
2102
2297
|
* Get client configuration
|
|
2103
2298
|
* GET /v1/client-config
|
|
2104
2299
|
*/
|
|
2105
|
-
getClientConfig(token: string): Promise<ClientConfigResponse>;
|
|
2300
|
+
getClientConfig(token: string, key?: string): Promise<ClientConfigResponse>;
|
|
2106
2301
|
/**
|
|
2107
2302
|
* List consents
|
|
2108
2303
|
* GET /v1/consent
|
|
2109
2304
|
*/
|
|
2110
|
-
listConsents(): Promise<
|
|
2305
|
+
listConsents(purpose: string, cursor: string, limit: number, token: string): Promise<ConsentListResponse>;
|
|
2111
2306
|
/**
|
|
2112
2307
|
* Grant consent
|
|
2113
2308
|
* POST /v1/consent/grant
|
|
2114
2309
|
*/
|
|
2115
|
-
grantConsent(body: GrantConsentRequest): Promise<Consent>;
|
|
2310
|
+
grantConsent(body: GrantConsentRequest, token: string): Promise<Consent>;
|
|
2116
2311
|
/**
|
|
2117
2312
|
* Revoke consent
|
|
2118
2313
|
* POST /v1/consent/revoke
|
|
2119
2314
|
*/
|
|
2120
|
-
revokeConsent(body: RevokeConsentRequest): Promise<
|
|
2315
|
+
revokeConsent(body: RevokeConsentRequest, token: string): Promise<ConsentStatusResponse>;
|
|
2121
2316
|
/**
|
|
2122
2317
|
* List devices
|
|
2123
2318
|
* GET /v1/devices
|
|
@@ -2132,17 +2327,17 @@ declare class AuthClient$1 {
|
|
|
2132
2327
|
* Delete device
|
|
2133
2328
|
* DELETE /v1/devices/{deviceId}
|
|
2134
2329
|
*/
|
|
2135
|
-
deleteDevice(deviceId: string,
|
|
2330
|
+
deleteDevice(deviceId: string, token: string): Promise<ApiStatusResponse>;
|
|
2136
2331
|
/**
|
|
2137
2332
|
* Trust device
|
|
2138
2333
|
* PATCH /v1/devices/{deviceId}/trust
|
|
2139
2334
|
*/
|
|
2140
|
-
trustDevice(deviceId: string,
|
|
2335
|
+
trustDevice(deviceId: string, token: string): Promise<Device>;
|
|
2141
2336
|
/**
|
|
2142
2337
|
* List environments
|
|
2143
2338
|
* GET /v1/environments
|
|
2144
2339
|
*/
|
|
2145
|
-
listEnvironments(token: string): Promise<EnvironmentListResponse>;
|
|
2340
|
+
listEnvironments(app_id: string, token: string): Promise<EnvironmentListResponse>;
|
|
2146
2341
|
/**
|
|
2147
2342
|
* Create environment
|
|
2148
2343
|
* POST /v1/environments
|
|
@@ -2162,7 +2357,7 @@ declare class AuthClient$1 {
|
|
|
2162
2357
|
* Delete environment
|
|
2163
2358
|
* DELETE /v1/environments/{envId}
|
|
2164
2359
|
*/
|
|
2165
|
-
deleteEnvironment(envId: string, token: string): Promise<
|
|
2360
|
+
deleteEnvironment(envId: string, token: string): Promise<ApiStatusResponse>;
|
|
2166
2361
|
/**
|
|
2167
2362
|
* Clone environment
|
|
2168
2363
|
* POST /v1/environments/{envId}/clone
|
|
@@ -2172,7 +2367,7 @@ declare class AuthClient$1 {
|
|
|
2172
2367
|
* Set default environment
|
|
2173
2368
|
* POST /v1/environments/{envId}/set-default
|
|
2174
2369
|
*/
|
|
2175
|
-
setDefaultEnvironment(envId: string, token: string): Promise<
|
|
2370
|
+
setDefaultEnvironment(envId: string, token: string): Promise<ApiStatusResponse>;
|
|
2176
2371
|
/**
|
|
2177
2372
|
* Get environment settings
|
|
2178
2373
|
* GET /v1/environments/{envId}/settings
|
|
@@ -2202,7 +2397,7 @@ declare class AuthClient$1 {
|
|
|
2202
2397
|
* List API keys
|
|
2203
2398
|
* GET /v1/keys
|
|
2204
2399
|
*/
|
|
2205
|
-
listAPIKeys(token: string): Promise<ListKeysResponse>;
|
|
2400
|
+
listAPIKeys(app_id: string, token: string, user_id?: string): Promise<ListKeysResponse>;
|
|
2206
2401
|
/**
|
|
2207
2402
|
* Create API key
|
|
2208
2403
|
* POST /v1/keys
|
|
@@ -2212,7 +2407,7 @@ declare class AuthClient$1 {
|
|
|
2212
2407
|
* Revoke API key
|
|
2213
2408
|
* DELETE /v1/keys/{keyId}
|
|
2214
2409
|
*/
|
|
2215
|
-
revokeAPIKey(keyId: string,
|
|
2410
|
+
revokeAPIKey(keyId: string, token: string): Promise<void>;
|
|
2216
2411
|
/**
|
|
2217
2412
|
* Send magic link
|
|
2218
2413
|
* POST /v1/magic-link/send
|
|
@@ -2222,12 +2417,12 @@ declare class AuthClient$1 {
|
|
|
2222
2417
|
* Verify magic link
|
|
2223
2418
|
* POST /v1/magic-link/verify
|
|
2224
2419
|
*/
|
|
2225
|
-
verifyMagicLink(body: VerifyMagicLinkRequest): Promise<
|
|
2420
|
+
verifyMagicLink(body: VerifyMagicLinkRequest): Promise<MagiclinkVerifyResponse>;
|
|
2226
2421
|
/**
|
|
2227
2422
|
* Get current user
|
|
2228
2423
|
* GET /v1/me
|
|
2229
2424
|
*/
|
|
2230
|
-
getMe(token: string): Promise<
|
|
2425
|
+
getMe(token: string): Promise<MeResponse>;
|
|
2231
2426
|
/**
|
|
2232
2427
|
* Update current user
|
|
2233
2428
|
* PATCH /v1/me
|
|
@@ -2237,7 +2432,7 @@ declare class AuthClient$1 {
|
|
|
2237
2432
|
* Delete account
|
|
2238
2433
|
* DELETE /v1/me
|
|
2239
2434
|
*/
|
|
2240
|
-
deleteMe(
|
|
2435
|
+
deleteMe(token: string): Promise<ApiStatusResponse>;
|
|
2241
2436
|
/**
|
|
2242
2437
|
* List linked auth methods
|
|
2243
2438
|
* GET /v1/me/auth-methods
|
|
@@ -2247,7 +2442,7 @@ declare class AuthClient$1 {
|
|
|
2247
2442
|
* Unlink an auth method
|
|
2248
2443
|
* DELETE /v1/me/auth-methods/{provider}
|
|
2249
2444
|
*/
|
|
2250
|
-
unlinkAuthMethod(provider: string,
|
|
2445
|
+
unlinkAuthMethod(provider: string, token: string): Promise<UnlinkAuthMethodResponse>;
|
|
2251
2446
|
/**
|
|
2252
2447
|
* Export user data
|
|
2253
2448
|
* GET /v1/me/export
|
|
@@ -2277,7 +2472,7 @@ declare class AuthClient$1 {
|
|
|
2277
2472
|
* Regenerate MFA recovery codes
|
|
2278
2473
|
* POST /v1/mfa/recovery/regenerate
|
|
2279
2474
|
*/
|
|
2280
|
-
regenerateMFARecoveryCodes(
|
|
2475
|
+
regenerateMFARecoveryCodes(token: string): Promise<RecoveryRegenerateResponse>;
|
|
2281
2476
|
/**
|
|
2282
2477
|
* Verify MFA recovery code
|
|
2283
2478
|
* POST /v1/mfa/recovery/verify
|
|
@@ -2302,7 +2497,7 @@ declare class AuthClient$1 {
|
|
|
2302
2497
|
* OAuth2 Authorization
|
|
2303
2498
|
* GET /v1/oauth/authorize
|
|
2304
2499
|
*/
|
|
2305
|
-
oauth2Authorize(): Promise<void>;
|
|
2500
|
+
oauth2Authorize(response_type: string, client_id: string, redirect_uri?: string, scope?: string, state?: string, code_challenge?: string, code_challenge_method?: string, resource?: string[]): Promise<void>;
|
|
2306
2501
|
/**
|
|
2307
2502
|
* Device Authorization
|
|
2308
2503
|
* POST /v1/oauth/device/authorize
|
|
@@ -2312,7 +2507,27 @@ declare class AuthClient$1 {
|
|
|
2312
2507
|
* Complete device authorization
|
|
2313
2508
|
* POST /v1/oauth/device/complete
|
|
2314
2509
|
*/
|
|
2315
|
-
oauth2DeviceComplete(body: Oauth2DeviceCompleteRequest): Promise<DeviceCompleteResponse>;
|
|
2510
|
+
oauth2DeviceComplete(body: Oauth2DeviceCompleteRequest, token: string): Promise<DeviceCompleteResponse>;
|
|
2511
|
+
/**
|
|
2512
|
+
* Register OAuth2 client
|
|
2513
|
+
* POST /v1/oauth/register
|
|
2514
|
+
*/
|
|
2515
|
+
oauth2RegisterClient(body: Oauth2RegisterClientRequest, token: string): Promise<RegisterClientResponse>;
|
|
2516
|
+
/**
|
|
2517
|
+
* Read OAuth2 client registration
|
|
2518
|
+
* GET /v1/oauth/register/{clientId}
|
|
2519
|
+
*/
|
|
2520
|
+
oauth2ReadRegistration(clientId: string, token: string): Promise<RegisterClientResponse>;
|
|
2521
|
+
/**
|
|
2522
|
+
* Update OAuth2 client registration
|
|
2523
|
+
* PUT /v1/oauth/register/{clientId}
|
|
2524
|
+
*/
|
|
2525
|
+
oauth2UpdateRegistration(clientId: string, body: Oauth2UpdateRegistrationRequest, token: string): Promise<RegisterClientResponse>;
|
|
2526
|
+
/**
|
|
2527
|
+
* Delete OAuth2 client registration
|
|
2528
|
+
* DELETE /v1/oauth/register/{clientId}
|
|
2529
|
+
*/
|
|
2530
|
+
oauth2DeleteRegistration(clientId: string, token: string): Promise<void>;
|
|
2316
2531
|
/**
|
|
2317
2532
|
* Revoke token
|
|
2318
2533
|
* POST /v1/oauth/revoke
|
|
@@ -2322,7 +2537,7 @@ declare class AuthClient$1 {
|
|
|
2322
2537
|
* OAuth2 Token
|
|
2323
2538
|
* POST /v1/oauth/token
|
|
2324
2539
|
*/
|
|
2325
|
-
oauth2Token(body: Oauth2TokenRequest): Promise<
|
|
2540
|
+
oauth2Token(body: Oauth2TokenRequest): Promise<Oauth2providerTokenResponse>;
|
|
2326
2541
|
/**
|
|
2327
2542
|
* OIDC UserInfo
|
|
2328
2543
|
* GET /v1/oauth/userinfo
|
|
@@ -2342,7 +2557,7 @@ declare class AuthClient$1 {
|
|
|
2342
2557
|
* Check slug availability
|
|
2343
2558
|
* GET /v1/orgs/check-slug
|
|
2344
2559
|
*/
|
|
2345
|
-
checkOrgSlug(token: string): Promise<SlugAvailableResponse>;
|
|
2560
|
+
checkOrgSlug(app_id: string, slug: string, token: string): Promise<SlugAvailableResponse>;
|
|
2346
2561
|
/**
|
|
2347
2562
|
* Accept invitation
|
|
2348
2563
|
* POST /v1/orgs/invitations/accept
|
|
@@ -2352,7 +2567,7 @@ declare class AuthClient$1 {
|
|
|
2352
2567
|
* Decline invitation
|
|
2353
2568
|
* POST /v1/orgs/invitations/decline
|
|
2354
2569
|
*/
|
|
2355
|
-
declineInvitation(body: DeclineInvitationRequest, token: string): Promise<
|
|
2570
|
+
declineInvitation(body: DeclineInvitationRequest, token: string): Promise<OrganizationStatusResponse>;
|
|
2356
2571
|
/**
|
|
2357
2572
|
* Get organization
|
|
2358
2573
|
* GET /v1/orgs/{orgId}
|
|
@@ -2367,7 +2582,7 @@ declare class AuthClient$1 {
|
|
|
2367
2582
|
* Delete organization
|
|
2368
2583
|
* DELETE /v1/orgs/{orgId}
|
|
2369
2584
|
*/
|
|
2370
|
-
deleteOrganization(orgId: string,
|
|
2585
|
+
deleteOrganization(orgId: string, token: string): Promise<OrganizationStatusResponse>;
|
|
2371
2586
|
/**
|
|
2372
2587
|
* List invitations
|
|
2373
2588
|
* GET /v1/orgs/{orgId}/invitations
|
|
@@ -2397,7 +2612,7 @@ declare class AuthClient$1 {
|
|
|
2397
2612
|
* Remove member
|
|
2398
2613
|
* DELETE /v1/orgs/{orgId}/members/{memberId}
|
|
2399
2614
|
*/
|
|
2400
|
-
removeMember(orgId: string, memberId: string,
|
|
2615
|
+
removeMember(orgId: string, memberId: string, token: string): Promise<OrganizationStatusResponse>;
|
|
2401
2616
|
/**
|
|
2402
2617
|
* List teams
|
|
2403
2618
|
* GET /v1/orgs/{orgId}/teams
|
|
@@ -2422,17 +2637,17 @@ declare class AuthClient$1 {
|
|
|
2422
2637
|
* Delete team
|
|
2423
2638
|
* DELETE /v1/orgs/{orgId}/teams/{teamId}
|
|
2424
2639
|
*/
|
|
2425
|
-
deleteTeam(orgId: string, teamId: string,
|
|
2640
|
+
deleteTeam(orgId: string, teamId: string, token: string): Promise<OrganizationStatusResponse>;
|
|
2426
2641
|
/**
|
|
2427
2642
|
* List passkeys
|
|
2428
2643
|
* GET /v1/passkeys
|
|
2429
2644
|
*/
|
|
2430
|
-
listPasskeys(token: string): Promise<
|
|
2645
|
+
listPasskeys(token: string): Promise<PasskeyListResponse>;
|
|
2431
2646
|
/**
|
|
2432
2647
|
* Begin passkey login
|
|
2433
2648
|
* POST /v1/passkeys/login/begin
|
|
2434
2649
|
*/
|
|
2435
|
-
passkeyLoginBegin(
|
|
2650
|
+
passkeyLoginBegin(): Promise<LoginBeginResponse>;
|
|
2436
2651
|
/**
|
|
2437
2652
|
* Complete passkey login
|
|
2438
2653
|
* POST /v1/passkeys/login/finish
|
|
@@ -2452,32 +2667,42 @@ declare class AuthClient$1 {
|
|
|
2452
2667
|
* Delete passkey
|
|
2453
2668
|
* DELETE /v1/passkeys/{credentialId}
|
|
2454
2669
|
*/
|
|
2455
|
-
deletePasskey(credentialId: string,
|
|
2670
|
+
deletePasskey(credentialId: string, token: string): Promise<DeleteResponse>;
|
|
2456
2671
|
/**
|
|
2457
2672
|
* Start phone authentication
|
|
2458
2673
|
* POST /v1/phone/start
|
|
2459
2674
|
*/
|
|
2460
|
-
phoneAuthStart(body: PhoneAuthStartRequest): Promise<
|
|
2675
|
+
phoneAuthStart(body: PhoneAuthStartRequest): Promise<PhoneStartResponse>;
|
|
2461
2676
|
/**
|
|
2462
2677
|
* Verify phone OTP
|
|
2463
2678
|
* POST /v1/phone/verify
|
|
2464
2679
|
*/
|
|
2465
|
-
phoneAuthVerify(body: PhoneAuthVerifyRequest): Promise<
|
|
2680
|
+
phoneAuthVerify(body: PhoneAuthVerifyRequest): Promise<PhoneVerifyResponse>;
|
|
2681
|
+
/**
|
|
2682
|
+
* List what may act on your behalf
|
|
2683
|
+
* GET /v1/principals/me/delegations
|
|
2684
|
+
*/
|
|
2685
|
+
listMyDelegations(token: string): Promise<DelegationListResponse>;
|
|
2686
|
+
/**
|
|
2687
|
+
* Mint an ephemeral child principal
|
|
2688
|
+
* POST /v1/principals/{id}/children
|
|
2689
|
+
*/
|
|
2690
|
+
mintChildPrincipal(id: string, body: MintChildPrincipalRequest, token: string): Promise<MintChildResponse>;
|
|
2466
2691
|
/**
|
|
2467
2692
|
* Refresh tokens
|
|
2468
2693
|
* POST /v1/refresh
|
|
2469
2694
|
*/
|
|
2470
|
-
refresh(body: RefreshRequest): Promise<
|
|
2695
|
+
refresh(body: RefreshRequest): Promise<ApiTokenResponse>;
|
|
2471
2696
|
/**
|
|
2472
2697
|
* Reset password
|
|
2473
2698
|
* POST /v1/reset-password
|
|
2474
2699
|
*/
|
|
2475
|
-
resetPassword(body: ResetPasswordRequest): Promise<
|
|
2700
|
+
resetPassword(body: ResetPasswordRequest): Promise<ApiStatusResponse>;
|
|
2476
2701
|
/**
|
|
2477
2702
|
* List roles
|
|
2478
2703
|
* GET /v1/roles
|
|
2479
2704
|
*/
|
|
2480
|
-
authsomeListRoles(token: string): Promise<RoleListResponse>;
|
|
2705
|
+
authsomeListRoles(app_id: string, token: string): Promise<RoleListResponse>;
|
|
2481
2706
|
/**
|
|
2482
2707
|
* Create role
|
|
2483
2708
|
* POST /v1/roles
|
|
@@ -2497,12 +2722,12 @@ declare class AuthClient$1 {
|
|
|
2497
2722
|
* Delete role
|
|
2498
2723
|
* DELETE /v1/roles/{roleId}
|
|
2499
2724
|
*/
|
|
2500
|
-
authsomeDeleteRole(roleId: string, token: string): Promise<
|
|
2725
|
+
authsomeDeleteRole(roleId: string, token: string): Promise<ApiStatusResponse>;
|
|
2501
2726
|
/**
|
|
2502
2727
|
* Assign role to user
|
|
2503
2728
|
* POST /v1/roles/{roleId}/assign
|
|
2504
2729
|
*/
|
|
2505
|
-
authsomeAssignRole(roleId: string, body: AuthsomeAssignRoleRequest, token: string): Promise<
|
|
2730
|
+
authsomeAssignRole(roleId: string, body: AuthsomeAssignRoleRequest, token: string): Promise<ApiStatusResponse>;
|
|
2506
2731
|
/**
|
|
2507
2732
|
* List role permissions
|
|
2508
2733
|
* GET /v1/roles/{roleId}/permissions
|
|
@@ -2517,12 +2742,12 @@ declare class AuthClient$1 {
|
|
|
2517
2742
|
* Remove permission from role
|
|
2518
2743
|
* DELETE /v1/roles/{roleId}/permissions/{permissionId}
|
|
2519
2744
|
*/
|
|
2520
|
-
authsomeRemovePermission(roleId: string, permissionId: string, token: string): Promise<
|
|
2745
|
+
authsomeRemovePermission(roleId: string, permissionId: string, token: string): Promise<ApiStatusResponse>;
|
|
2521
2746
|
/**
|
|
2522
2747
|
* Unassign role from user
|
|
2523
2748
|
* POST /v1/roles/{roleId}/unassign
|
|
2524
2749
|
*/
|
|
2525
|
-
authsomeUnassignRole(roleId: string, body: AuthsomeUnassignRoleRequest, token: string): Promise<
|
|
2750
|
+
authsomeUnassignRole(roleId: string, body: AuthsomeUnassignRoleRequest, token: string): Promise<ApiStatusResponse>;
|
|
2526
2751
|
/**
|
|
2527
2752
|
* List sessions
|
|
2528
2753
|
* GET /v1/sessions
|
|
@@ -2532,7 +2757,7 @@ declare class AuthClient$1 {
|
|
|
2532
2757
|
* Revoke session
|
|
2533
2758
|
* DELETE /v1/sessions/{sessionId}
|
|
2534
2759
|
*/
|
|
2535
|
-
revokeSession(sessionId: string,
|
|
2760
|
+
revokeSession(sessionId: string, token: string): Promise<ApiStatusResponse>;
|
|
2536
2761
|
/**
|
|
2537
2762
|
* Sign in
|
|
2538
2763
|
* POST /v1/signin
|
|
@@ -2542,7 +2767,7 @@ declare class AuthClient$1 {
|
|
|
2542
2767
|
* Sign out
|
|
2543
2768
|
* POST /v1/signout
|
|
2544
2769
|
*/
|
|
2545
|
-
signOut(
|
|
2770
|
+
signOut(token: string): Promise<ApiStatusResponse>;
|
|
2546
2771
|
/**
|
|
2547
2772
|
* Sign up
|
|
2548
2773
|
* POST /v1/signup
|
|
@@ -2552,47 +2777,72 @@ declare class AuthClient$1 {
|
|
|
2552
2777
|
* Start OAuth flow
|
|
2553
2778
|
* POST /v1/social/{provider}
|
|
2554
2779
|
*/
|
|
2555
|
-
startOAuth(provider: string,
|
|
2780
|
+
startOAuth(provider: string, frontend_url?: string, redirect_url?: string): Promise<SocialStartResponse>;
|
|
2556
2781
|
/**
|
|
2557
2782
|
* OAuth callback
|
|
2558
2783
|
* GET /v1/social/{provider}/callback
|
|
2559
2784
|
*/
|
|
2560
|
-
oauthCallback(provider: string): Promise<
|
|
2785
|
+
oauthCallback(provider: string, state?: string, code?: string, error?: string): Promise<SocialCallbackResponse>;
|
|
2786
|
+
/**
|
|
2787
|
+
* Exchange SSO one-time code for a session
|
|
2788
|
+
* POST /v1/sso/exchange
|
|
2789
|
+
*/
|
|
2790
|
+
ssoExchange(body: SsoExchangeRequest, token: string): Promise<SsoCallbackResponse>;
|
|
2791
|
+
/**
|
|
2792
|
+
* Start SSO login by email domain
|
|
2793
|
+
* POST /v1/sso/login
|
|
2794
|
+
*/
|
|
2795
|
+
startSSOLoginByDomain(body: StartSSOLoginByDomainRequest, token: string): Promise<LoginResponse>;
|
|
2561
2796
|
/**
|
|
2562
2797
|
* SSO SAML ACS endpoint
|
|
2563
2798
|
* POST /v1/sso/{provider}/acs
|
|
2564
2799
|
*/
|
|
2565
|
-
ssoACS(provider: string
|
|
2800
|
+
ssoACS(provider: string): Promise<void>;
|
|
2801
|
+
/**
|
|
2802
|
+
* SSO OIDC redirect landing
|
|
2803
|
+
* GET /v1/sso/{provider}/callback
|
|
2804
|
+
*/
|
|
2805
|
+
ssoOIDCRedirect(provider: string, token: string): Promise<void>;
|
|
2566
2806
|
/**
|
|
2567
2807
|
* SSO callback (OIDC)
|
|
2568
2808
|
* POST /v1/sso/{provider}/callback
|
|
2569
2809
|
*/
|
|
2570
|
-
ssoCallback(provider: string,
|
|
2810
|
+
ssoCallback(provider: string, state?: string, code?: string, error?: string): Promise<SsoCallbackResponse>;
|
|
2571
2811
|
/**
|
|
2572
2812
|
* Start SSO login flow
|
|
2573
2813
|
* POST /v1/sso/{provider}/login
|
|
2574
2814
|
*/
|
|
2575
|
-
startSSOLogin(provider: string,
|
|
2815
|
+
startSSOLogin(provider: string, return_url?: string): Promise<LoginResponse>;
|
|
2816
|
+
/**
|
|
2817
|
+
* SAML SP metadata
|
|
2818
|
+
* GET /v1/sso/{provider}/metadata
|
|
2819
|
+
*/
|
|
2820
|
+
ssoSPMetadata(provider: string, token: string): Promise<void>;
|
|
2821
|
+
/**
|
|
2822
|
+
* Exchange a credential for a delegated session
|
|
2823
|
+
* POST /v1/token/exchange
|
|
2824
|
+
*/
|
|
2825
|
+
exchangeToken(body: ExchangeTokenRequest, token: string): Promise<TokenExchangeResponse>;
|
|
2576
2826
|
/**
|
|
2577
2827
|
* List user roles
|
|
2578
2828
|
* GET /v1/users/{userId}/roles
|
|
2579
2829
|
*/
|
|
2580
|
-
authsomeListUserRoles(userId: string, token: string): Promise<UserRoleListResponse>;
|
|
2830
|
+
authsomeListUserRoles(userId: string, token: string, app_id?: string): Promise<UserRoleListResponse>;
|
|
2581
2831
|
/**
|
|
2582
2832
|
* Verify email
|
|
2583
2833
|
* POST /v1/verify-email
|
|
2584
2834
|
*/
|
|
2585
|
-
verifyEmail(body: VerifyEmailRequest): Promise<
|
|
2835
|
+
verifyEmail(body: VerifyEmailRequest): Promise<ApiStatusResponse>;
|
|
2586
2836
|
/**
|
|
2587
2837
|
* Resend email verification
|
|
2588
2838
|
* POST /v1/verify-email/resend
|
|
2589
2839
|
*/
|
|
2590
|
-
resendEmailVerification(body: ResendEmailVerificationRequest): Promise<
|
|
2840
|
+
resendEmailVerification(body: ResendEmailVerificationRequest): Promise<ApiStatusResponse>;
|
|
2591
2841
|
/**
|
|
2592
2842
|
* List webhooks
|
|
2593
2843
|
* GET /v1/webhooks
|
|
2594
2844
|
*/
|
|
2595
|
-
listWebhooks(token: string): Promise<WebhookListResponse>;
|
|
2845
|
+
listWebhooks(app_id: string, token: string): Promise<WebhookListResponse>;
|
|
2596
2846
|
/**
|
|
2597
2847
|
* Create webhook
|
|
2598
2848
|
* POST /v1/webhooks
|
|
@@ -2612,7 +2862,7 @@ declare class AuthClient$1 {
|
|
|
2612
2862
|
* Delete webhook
|
|
2613
2863
|
* DELETE /v1/webhooks/{webhookId}
|
|
2614
2864
|
*/
|
|
2615
|
-
deleteWebhook(webhookId: string,
|
|
2865
|
+
deleteWebhook(webhookId: string, token: string): Promise<ApiStatusResponse>;
|
|
2616
2866
|
private request;
|
|
2617
2867
|
}
|
|
2618
2868
|
declare class AuthClientError extends Error {
|
|
@@ -2656,16 +2906,16 @@ declare class AuthClient extends AuthClient$1 {
|
|
|
2656
2906
|
* Accepts a raw refresh-token string (used by auth.ts) or the full
|
|
2657
2907
|
* RefreshRequest body.
|
|
2658
2908
|
*/
|
|
2659
|
-
refresh(body:
|
|
2660
|
-
refresh_token: string;
|
|
2661
|
-
} | string): Promise<any>;
|
|
2909
|
+
refresh(body: RefreshRequest | string): Promise<ApiTokenResponse>;
|
|
2662
2910
|
/**
|
|
2663
2911
|
* Sign out.
|
|
2664
2912
|
*
|
|
2665
|
-
* Accepts a raw token string (used by auth.ts)
|
|
2666
|
-
* (body, token) pair
|
|
2913
|
+
* Accepts a raw token string (used by auth.ts). The generated client used
|
|
2914
|
+
* to take a (body, token) pair; the endpoint no longer reads a body, so the
|
|
2915
|
+
* two-argument form is still accepted and its first argument ignored rather
|
|
2916
|
+
* than breaking callers outside this package.
|
|
2667
2917
|
*/
|
|
2668
|
-
signOut(bodyOrToken: unknown, token?: string): Promise<
|
|
2918
|
+
signOut(bodyOrToken: unknown, token?: string): Promise<ApiStatusResponse>;
|
|
2669
2919
|
/**
|
|
2670
2920
|
* MFA challenge — bridge for auth.ts.
|
|
2671
2921
|
*
|
|
@@ -2986,4 +3236,4 @@ declare function prepareRequestOptions(options: Record<string, unknown>): Public
|
|
|
2986
3236
|
*/
|
|
2987
3237
|
declare function serializeCredential(credential: Credential): Record<string, unknown>;
|
|
2988
3238
|
|
|
2989
|
-
export { type APIError, type KeyListItem as APIKey, type AddMemberRequest, type AdminBanUserRequest, AuthClient, type AuthClientConfig, AuthClientError, type AuthConfig, AuthManager, type AuthResponse, type AuthState, type ChallengeMFARequest, type ChangePasswordRequest, type ClientConfig, type CreateAPIKeyRequest, type CreateInvitationRequest, type CreateOrganizationRequest as CreateOrgRequest, type CreateOrganizationRequest, type Device, type EnrollMFARequest, type EnrollResponse, type ForgotPasswordRequest, type Invitation, type KeyListItem, type ListOptions, type ListResponse, type EnrollResponse as MFAEnrollment, type SendMagicLinkRequest as MagicLinkSendRequest, type VerifyMagicLinkRequest as MagicLinkVerifyRequest, type Member, type ChallengeMFARequest as MfaChallengeRequest, type EnrollMFARequest as MfaEnrollRequest, type SendSMSCodeRequest as MfaSMSSendRequest, type VerifySMSCodeRequest as MfaSMSVerifyRequest, type VerifyMFARequest as MfaVerifyRequest, type Organization, type RefreshRequest, type ResetPasswordRequest, SESSION_STORAGE_KEY, type SSOConnectionConfig, type SafeRedirectOptions, type SendMagicLinkRequest, type SendSMSCodeRequest, type Session, type SignInRequest, type SignUpRequest, type SignupFieldConfig, type SignupFieldOption, type SignupFieldValidation, type SocialProviderConfig, type
|
|
3239
|
+
export { type APIError, type KeyListItem as APIKey, type AddMemberRequest, type AdminBanUserRequest, AuthClient, type AuthClientConfig, AuthClientError, type AuthConfig, AuthManager, type AuthResponse, type AuthState, type ChallengeMFARequest, type ChangePasswordRequest, type ClientConfig, type CreateAPIKeyRequest, type CreateInvitationRequest, type CreateOrganizationRequest as CreateOrgRequest, type CreateOrganizationRequest, type Device, type EnrollMFARequest, type EnrollResponse, type ForgotPasswordRequest, type Invitation, type KeyListItem, type ListOptions, type ListResponse, type EnrollResponse as MFAEnrollment, type SendMagicLinkRequest as MagicLinkSendRequest, type VerifyMagicLinkRequest as MagicLinkVerifyRequest, type Member, type ChallengeMFARequest as MfaChallengeRequest, type EnrollMFARequest as MfaEnrollRequest, type SendSMSCodeRequest as MfaSMSSendRequest, type VerifySMSCodeRequest as MfaSMSVerifyRequest, type VerifyMFARequest as MfaVerifyRequest, type Organization, type PasskeyLoginFinishRequest, type PasskeyRegisterFinishRequest, type RefreshRequest, type ResetPasswordRequest, SESSION_STORAGE_KEY, type SSOConnectionConfig, type SafeRedirectOptions, type SendMagicLinkRequest, type SendSMSCodeRequest, type Session, type SignInRequest, type SignUpRequest, type SignupFieldConfig, type SignupFieldOption, type SignupFieldValidation, type SocialProviderConfig, type ApiTokenResponse as TokenResponse, type TokenStorage, type UpdateMeRequest, type UpdateOrganizationRequest as UpdateOrgRequest, type UpdateOrganizationRequest, type User, type VerifyEmailRequest, type VerifyMFARequest, type VerifyMagicLinkRequest, type VerifyRecoveryCodeRequest, type VerifySMSCodeRequest, base64urlToBuffer, bufferToBase64url, createLocalStorage, isSafeRedirect, prepareCreationOptions, prepareRequestOptions, safeRedirectTarget, serializeCredential };
|