@productcraft/auth 0.8.4 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +43 -55
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +347 -69
- package/dist/index.d.ts +347 -69
- package/dist/index.js +43 -55
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -29,18 +29,31 @@ type PlatformUserStatsResponseDto = {
|
|
|
29
29
|
* Generated by Kubb (https://kubb.dev/).
|
|
30
30
|
* Do not edit manually.
|
|
31
31
|
*/
|
|
32
|
-
declare const
|
|
32
|
+
declare const appEnvironmentEnum: {
|
|
33
33
|
readonly production: "production";
|
|
34
34
|
readonly staging: "staging";
|
|
35
35
|
readonly development: "development";
|
|
36
36
|
};
|
|
37
|
-
type
|
|
38
|
-
|
|
37
|
+
type AppEnvironmentEnumKey = (typeof appEnvironmentEnum)[keyof typeof appEnvironmentEnum];
|
|
38
|
+
type AppEnvironment = AppEnvironmentEnumKey;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
42
|
+
* Do not edit manually.
|
|
43
|
+
*/
|
|
44
|
+
declare const appStatusEnum: {
|
|
39
45
|
readonly active: "active";
|
|
40
46
|
readonly suspended: "suspended";
|
|
41
47
|
readonly archived: "archived";
|
|
42
48
|
};
|
|
43
|
-
type
|
|
49
|
+
type AppStatusEnumKey = (typeof appStatusEnum)[keyof typeof appStatusEnum];
|
|
50
|
+
type AppStatus = AppStatusEnumKey;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
54
|
+
* Do not edit manually.
|
|
55
|
+
*/
|
|
56
|
+
|
|
44
57
|
type AppResponseDto = {
|
|
45
58
|
/**
|
|
46
59
|
* @description Days of `audit_log` history kept for this app. A nightly job deletes rows older than this. 30-3650.
|
|
@@ -48,6 +61,7 @@ type AppResponseDto = {
|
|
|
48
61
|
*/
|
|
49
62
|
audit_retention_days: number;
|
|
50
63
|
/**
|
|
64
|
+
* @description When the app was created (ISO 8601).
|
|
51
65
|
* @type string, date-time
|
|
52
66
|
*/
|
|
53
67
|
created_at: string;
|
|
@@ -57,31 +71,37 @@ type AppResponseDto = {
|
|
|
57
71
|
*/
|
|
58
72
|
created_by: string;
|
|
59
73
|
/**
|
|
74
|
+
* @description Human-readable name of the app.
|
|
60
75
|
* @type string
|
|
61
76
|
*/
|
|
62
77
|
display_name: string;
|
|
63
78
|
/**
|
|
64
79
|
* @description Which environment this app IS. One app is one environment — there is no switch; a staging app is a separate app created via `POST /v1/apps/:appId/clone`. Set at create time and never changed afterwards. Every app that predates this field is `production`.
|
|
65
|
-
* @type string
|
|
66
80
|
*/
|
|
67
|
-
environment:
|
|
81
|
+
environment: AppEnvironment;
|
|
68
82
|
/**
|
|
83
|
+
* @description Unique identifier of the app.
|
|
69
84
|
* @type string
|
|
70
85
|
*/
|
|
71
86
|
id: string;
|
|
72
87
|
/**
|
|
88
|
+
* @description Free-form JSON object you attach to the app; returned as stored.
|
|
73
89
|
* @type object
|
|
74
90
|
*/
|
|
75
|
-
metadata:
|
|
91
|
+
metadata: {
|
|
92
|
+
[key: string]: any;
|
|
93
|
+
};
|
|
76
94
|
/**
|
|
95
|
+
* @description URL-safe identifier of the app, unique within its parent.
|
|
77
96
|
* @type string
|
|
78
97
|
*/
|
|
79
98
|
slug: string;
|
|
80
99
|
/**
|
|
81
|
-
* @
|
|
100
|
+
* @description App status: `active`, `suspended` (sign-ins refused) or `archived`.
|
|
82
101
|
*/
|
|
83
|
-
status:
|
|
102
|
+
status: AppStatus;
|
|
84
103
|
/**
|
|
104
|
+
* @description When the app was last changed (ISO 8601).
|
|
85
105
|
* @type string, date-time
|
|
86
106
|
*/
|
|
87
107
|
updated_at: string;
|
|
@@ -121,6 +141,7 @@ type PaginationDto = {
|
|
|
121
141
|
|
|
122
142
|
type AppListResponseDto = {
|
|
123
143
|
/**
|
|
144
|
+
* @description The app items on this page.
|
|
124
145
|
* @type array
|
|
125
146
|
*/
|
|
126
147
|
data: AppResponseDto[];
|
|
@@ -194,7 +215,9 @@ type AuditLogEntryDto = {
|
|
|
194
215
|
* @description Free-form structured detail object captured at log time (e.g. `{ \"from\": \"bcrypt\", \"to\": \"argon2id\" }` on `auth.password.upgraded`). This is the `metadata` key on the wire.
|
|
195
216
|
* @type object
|
|
196
217
|
*/
|
|
197
|
-
metadata:
|
|
218
|
+
metadata: {
|
|
219
|
+
[key: string]: any;
|
|
220
|
+
} | null;
|
|
198
221
|
/**
|
|
199
222
|
* @description Resource type touched (e.g. `app_membership`, `role`, `account`).
|
|
200
223
|
* @type string
|
|
@@ -219,6 +242,7 @@ type AuditLogEntryDto = {
|
|
|
219
242
|
|
|
220
243
|
type AuditLogListResponseDto = {
|
|
221
244
|
/**
|
|
245
|
+
* @description The audit log items on this page.
|
|
222
246
|
* @type array
|
|
223
247
|
*/
|
|
224
248
|
data: AuditLogEntryDto[];
|
|
@@ -234,10 +258,12 @@ type AuditLogListResponseDto = {
|
|
|
234
258
|
*/
|
|
235
259
|
type M2MScopeEntryDto = {
|
|
236
260
|
/**
|
|
261
|
+
* @description Action half of the permission key (`resource.action`).
|
|
237
262
|
* @type string
|
|
238
263
|
*/
|
|
239
264
|
action: string;
|
|
240
265
|
/**
|
|
266
|
+
* @description Resource half of the permission key (`resource.action`).
|
|
241
267
|
* @type string
|
|
242
268
|
*/
|
|
243
269
|
resource: string;
|
|
@@ -271,6 +297,7 @@ type M2MControllerSetScopes200 = M2MScopeEntryDto[];
|
|
|
271
297
|
*/
|
|
272
298
|
type M2MRotateSecretResponseDto = {
|
|
273
299
|
/**
|
|
300
|
+
* @description The M2M client id (used as `client_id` in the client-credentials grant).
|
|
274
301
|
* @type string
|
|
275
302
|
*/
|
|
276
303
|
client_id: string;
|
|
@@ -288,34 +315,42 @@ type M2MRotateSecretResponseDto = {
|
|
|
288
315
|
|
|
289
316
|
type M2MClientDetailResponseDto = {
|
|
290
317
|
/**
|
|
318
|
+
* @description The Auth app the M2M client belongs to.
|
|
291
319
|
* @type string
|
|
292
320
|
*/
|
|
293
321
|
app_id: string;
|
|
294
322
|
/**
|
|
323
|
+
* @description The M2M client id (used as `client_id` in the client-credentials grant).
|
|
295
324
|
* @type string
|
|
296
325
|
*/
|
|
297
326
|
client_id: string;
|
|
298
327
|
/**
|
|
328
|
+
* @description When the M2M client was created (ISO 8601).
|
|
299
329
|
* @type string, date-time
|
|
300
330
|
*/
|
|
301
331
|
created_at: string;
|
|
302
332
|
/**
|
|
333
|
+
* @description Unique identifier of the M2M client.
|
|
303
334
|
* @type string
|
|
304
335
|
*/
|
|
305
336
|
id: string;
|
|
306
337
|
/**
|
|
338
|
+
* @description Whether the client can obtain tokens.
|
|
307
339
|
* @type boolean
|
|
308
340
|
*/
|
|
309
341
|
is_active: boolean;
|
|
310
342
|
/**
|
|
343
|
+
* @description When the M2M client was last used (ISO 8601), or `null` if never.
|
|
311
344
|
* @type string, date-time
|
|
312
345
|
*/
|
|
313
346
|
last_used_at: string | null;
|
|
314
347
|
/**
|
|
348
|
+
* @description Name of the M2M client.
|
|
315
349
|
* @type string
|
|
316
350
|
*/
|
|
317
351
|
name: string;
|
|
318
352
|
/**
|
|
353
|
+
* @description Scopes granted to the M2M client.
|
|
319
354
|
* @type array
|
|
320
355
|
*/
|
|
321
356
|
scopes: M2MScopeEntryDto[];
|
|
@@ -327,6 +362,7 @@ type M2MClientDetailResponseDto = {
|
|
|
327
362
|
*/
|
|
328
363
|
type M2MClientCreateResponseDto = {
|
|
329
364
|
/**
|
|
365
|
+
* @description The M2M client id (used as `client_id` in the client-credentials grant).
|
|
330
366
|
* @type string
|
|
331
367
|
*/
|
|
332
368
|
client_id: string;
|
|
@@ -336,14 +372,17 @@ type M2MClientCreateResponseDto = {
|
|
|
336
372
|
*/
|
|
337
373
|
client_secret: string;
|
|
338
374
|
/**
|
|
375
|
+
* @description When the M2M client was created (ISO 8601).
|
|
339
376
|
* @type string, date-time
|
|
340
377
|
*/
|
|
341
378
|
created_at: string;
|
|
342
379
|
/**
|
|
380
|
+
* @description Unique identifier of the M2M client.
|
|
343
381
|
* @type string
|
|
344
382
|
*/
|
|
345
383
|
id: string;
|
|
346
384
|
/**
|
|
385
|
+
* @description Name of the M2M client.
|
|
347
386
|
* @type string
|
|
348
387
|
*/
|
|
349
388
|
name: string;
|
|
@@ -355,30 +394,37 @@ type M2MClientCreateResponseDto = {
|
|
|
355
394
|
*/
|
|
356
395
|
type M2MClientSummaryDto = {
|
|
357
396
|
/**
|
|
397
|
+
* @description The Auth app the M2M client belongs to.
|
|
358
398
|
* @type string
|
|
359
399
|
*/
|
|
360
400
|
app_id: string;
|
|
361
401
|
/**
|
|
402
|
+
* @description The M2M client id (used as `client_id` in the client-credentials grant).
|
|
362
403
|
* @type string
|
|
363
404
|
*/
|
|
364
405
|
client_id: string;
|
|
365
406
|
/**
|
|
407
|
+
* @description When the M2M client was created (ISO 8601).
|
|
366
408
|
* @type string, date-time
|
|
367
409
|
*/
|
|
368
410
|
created_at: string;
|
|
369
411
|
/**
|
|
412
|
+
* @description Unique identifier of the M2M client.
|
|
370
413
|
* @type string
|
|
371
414
|
*/
|
|
372
415
|
id: string;
|
|
373
416
|
/**
|
|
417
|
+
* @description Whether the client can obtain tokens.
|
|
374
418
|
* @type boolean
|
|
375
419
|
*/
|
|
376
420
|
is_active: boolean;
|
|
377
421
|
/**
|
|
422
|
+
* @description When the M2M client was last used (ISO 8601), or `null` if never.
|
|
378
423
|
* @type string, date-time
|
|
379
424
|
*/
|
|
380
425
|
last_used_at: string | null;
|
|
381
426
|
/**
|
|
427
|
+
* @description Name of the M2M client.
|
|
382
428
|
* @type string
|
|
383
429
|
*/
|
|
384
430
|
name: string;
|
|
@@ -391,6 +437,7 @@ type M2MClientSummaryDto = {
|
|
|
391
437
|
|
|
392
438
|
type M2MClientListResponseDto = {
|
|
393
439
|
/**
|
|
440
|
+
* @description The M2M client items on this page.
|
|
394
441
|
* @type array
|
|
395
442
|
*/
|
|
396
443
|
data: M2MClientSummaryDto[];
|
|
@@ -406,6 +453,7 @@ type M2MClientListResponseDto = {
|
|
|
406
453
|
*/
|
|
407
454
|
type CreateApiKeyResponseDto = {
|
|
408
455
|
/**
|
|
456
|
+
* @description When the API key was created (ISO 8601).
|
|
409
457
|
* @type string, date-time
|
|
410
458
|
*/
|
|
411
459
|
created_at: string;
|
|
@@ -445,14 +493,22 @@ type CreateApiKeyResponseDto = {
|
|
|
445
493
|
* Generated by Kubb (https://kubb.dev/).
|
|
446
494
|
* Do not edit manually.
|
|
447
495
|
*/
|
|
448
|
-
declare const
|
|
496
|
+
declare const apiKeyStatusEnum: {
|
|
449
497
|
readonly active: "active";
|
|
450
498
|
readonly expired: "expired";
|
|
451
499
|
readonly revoked: "revoked";
|
|
452
500
|
};
|
|
453
|
-
type
|
|
501
|
+
type ApiKeyStatusEnumKey = (typeof apiKeyStatusEnum)[keyof typeof apiKeyStatusEnum];
|
|
502
|
+
type ApiKeyStatus = ApiKeyStatusEnumKey;
|
|
503
|
+
|
|
504
|
+
/**
|
|
505
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
506
|
+
* Do not edit manually.
|
|
507
|
+
*/
|
|
508
|
+
|
|
454
509
|
type ApiKeySummaryDto = {
|
|
455
510
|
/**
|
|
511
|
+
* @description When the API key was created (ISO 8601).
|
|
456
512
|
* @type string, date-time
|
|
457
513
|
*/
|
|
458
514
|
created_at: string;
|
|
@@ -462,6 +518,7 @@ type ApiKeySummaryDto = {
|
|
|
462
518
|
*/
|
|
463
519
|
expires_at: string | null;
|
|
464
520
|
/**
|
|
521
|
+
* @description Unique identifier of the API key.
|
|
465
522
|
* @type string
|
|
466
523
|
*/
|
|
467
524
|
id: string;
|
|
@@ -471,18 +528,22 @@ type ApiKeySummaryDto = {
|
|
|
471
528
|
*/
|
|
472
529
|
key_prefix: string;
|
|
473
530
|
/**
|
|
531
|
+
* @description When the API key was last used (ISO 8601), or `null` if never.
|
|
474
532
|
* @type string, date-time
|
|
475
533
|
*/
|
|
476
534
|
last_used_at: string | null;
|
|
477
535
|
/**
|
|
536
|
+
* @description Name of the API key.
|
|
478
537
|
* @type string
|
|
479
538
|
*/
|
|
480
539
|
name: string;
|
|
481
540
|
/**
|
|
541
|
+
* @description Permission keys (`resource.action`) the API key is scoped to.
|
|
482
542
|
* @type array
|
|
483
543
|
*/
|
|
484
544
|
permissions: string[];
|
|
485
545
|
/**
|
|
546
|
+
* @description When the API key was revoked (ISO 8601), or `null` while it is active.
|
|
486
547
|
* @type string, date-time
|
|
487
548
|
*/
|
|
488
549
|
revoked_at: string | null;
|
|
@@ -498,9 +559,8 @@ type ApiKeySummaryDto = {
|
|
|
498
559
|
rotated_from: string | null;
|
|
499
560
|
/**
|
|
500
561
|
* @description Lifecycle state at the time of the request. `active` keys authenticate; `expired` and `revoked` ones do not. Revoked wins over expired.
|
|
501
|
-
* @type string
|
|
502
562
|
*/
|
|
503
|
-
status:
|
|
563
|
+
status: ApiKeyStatus;
|
|
504
564
|
};
|
|
505
565
|
|
|
506
566
|
/**
|
|
@@ -510,6 +570,7 @@ type ApiKeySummaryDto = {
|
|
|
510
570
|
|
|
511
571
|
type ApiKeyListResponseDto = {
|
|
512
572
|
/**
|
|
573
|
+
* @description The API key items on this page.
|
|
513
574
|
* @type array
|
|
514
575
|
*/
|
|
515
576
|
data: ApiKeySummaryDto[];
|
|
@@ -525,6 +586,7 @@ type ApiKeyListResponseDto = {
|
|
|
525
586
|
*/
|
|
526
587
|
type PermissionDto = {
|
|
527
588
|
/**
|
|
589
|
+
* @description Action half of the permission key (`resource.action`).
|
|
528
590
|
* @type string
|
|
529
591
|
*/
|
|
530
592
|
action: string;
|
|
@@ -534,6 +596,7 @@ type PermissionDto = {
|
|
|
534
596
|
*/
|
|
535
597
|
app_id: string | null;
|
|
536
598
|
/**
|
|
599
|
+
* @description When the permission was created (ISO 8601).
|
|
537
600
|
* @type string, date-time
|
|
538
601
|
*/
|
|
539
602
|
created_at: string;
|
|
@@ -548,6 +611,7 @@ type PermissionDto = {
|
|
|
548
611
|
*/
|
|
549
612
|
id: string;
|
|
550
613
|
/**
|
|
614
|
+
* @description Resource half of the permission key (`resource.action`).
|
|
551
615
|
* @type string
|
|
552
616
|
*/
|
|
553
617
|
resource: string;
|
|
@@ -569,6 +633,7 @@ type PermissionControllerListPermissions200 = PermissionDto[];
|
|
|
569
633
|
*/
|
|
570
634
|
type AppPermissionCatalogEntryDto = {
|
|
571
635
|
/**
|
|
636
|
+
* @description Action half of the permission key (`resource.action`).
|
|
572
637
|
* @type string
|
|
573
638
|
*/
|
|
574
639
|
action: string;
|
|
@@ -578,14 +643,17 @@ type AppPermissionCatalogEntryDto = {
|
|
|
578
643
|
*/
|
|
579
644
|
app_id: string | null;
|
|
580
645
|
/**
|
|
646
|
+
* @description When the permission was created (ISO 8601).
|
|
581
647
|
* @type string, date-time
|
|
582
648
|
*/
|
|
583
649
|
created_at: string;
|
|
584
650
|
/**
|
|
651
|
+
* @description Free-text description of the permission, or `null`.
|
|
585
652
|
* @type string
|
|
586
653
|
*/
|
|
587
654
|
description: string | null;
|
|
588
655
|
/**
|
|
656
|
+
* @description Unique identifier of the permission.
|
|
589
657
|
* @type string
|
|
590
658
|
*/
|
|
591
659
|
id: string;
|
|
@@ -595,6 +663,7 @@ type AppPermissionCatalogEntryDto = {
|
|
|
595
663
|
*/
|
|
596
664
|
is_system: boolean;
|
|
597
665
|
/**
|
|
666
|
+
* @description Resource half of the permission key (`resource.action`).
|
|
598
667
|
* @type string
|
|
599
668
|
*/
|
|
600
669
|
resource: string;
|
|
@@ -613,18 +682,22 @@ type RoleControllerListPermissions200 = AppPermissionCatalogEntryDto[];
|
|
|
613
682
|
*/
|
|
614
683
|
type RolePermissionEntryDto = {
|
|
615
684
|
/**
|
|
685
|
+
* @description Action half of the permission key (`resource.action`).
|
|
616
686
|
* @type string
|
|
617
687
|
*/
|
|
618
688
|
action: string;
|
|
619
689
|
/**
|
|
690
|
+
* @description Free-text description of the role permission, or `null`.
|
|
620
691
|
* @type string
|
|
621
692
|
*/
|
|
622
693
|
description: string | null;
|
|
623
694
|
/**
|
|
695
|
+
* @description Unique identifier of the role permission.
|
|
624
696
|
* @type string
|
|
625
697
|
*/
|
|
626
698
|
id: string;
|
|
627
699
|
/**
|
|
700
|
+
* @description Resource half of the permission key (`resource.action`).
|
|
628
701
|
* @type string
|
|
629
702
|
*/
|
|
630
703
|
resource: string;
|
|
@@ -668,10 +741,12 @@ type AppMembershipResponseDto = {
|
|
|
668
741
|
*/
|
|
669
742
|
app_id: string;
|
|
670
743
|
/**
|
|
744
|
+
* @description Unique identifier of the app membership.
|
|
671
745
|
* @type string
|
|
672
746
|
*/
|
|
673
747
|
id: string;
|
|
674
748
|
/**
|
|
749
|
+
* @description When the member joined the tenant (ISO 8601).
|
|
675
750
|
* @type string, date-time
|
|
676
751
|
*/
|
|
677
752
|
joined_at: string;
|
|
@@ -693,6 +768,7 @@ type RoleResponseDto = {
|
|
|
693
768
|
*/
|
|
694
769
|
app_id: string;
|
|
695
770
|
/**
|
|
771
|
+
* @description When the role was created (ISO 8601).
|
|
696
772
|
* @type string, date-time
|
|
697
773
|
*/
|
|
698
774
|
created_at: string;
|
|
@@ -717,6 +793,7 @@ type RoleResponseDto = {
|
|
|
717
793
|
*/
|
|
718
794
|
name: string;
|
|
719
795
|
/**
|
|
796
|
+
* @description When the role was last changed (ISO 8601).
|
|
720
797
|
* @type string, date-time
|
|
721
798
|
*/
|
|
722
799
|
updated_at: string;
|
|
@@ -729,6 +806,7 @@ type RoleResponseDto = {
|
|
|
729
806
|
|
|
730
807
|
type RoleListResponseDto = {
|
|
731
808
|
/**
|
|
809
|
+
* @description The role items on this page.
|
|
732
810
|
* @type array
|
|
733
811
|
*/
|
|
734
812
|
data: RoleResponseDto[];
|
|
@@ -759,14 +837,22 @@ type EndUserRoleAssignmentResponseDto = {
|
|
|
759
837
|
* Generated by Kubb (https://kubb.dev/).
|
|
760
838
|
* Do not edit manually.
|
|
761
839
|
*/
|
|
762
|
-
declare const
|
|
840
|
+
declare const endUserStatusEnum: {
|
|
763
841
|
readonly active: "active";
|
|
764
842
|
readonly suspended: "suspended";
|
|
765
843
|
readonly deactivated: "deactivated";
|
|
766
844
|
};
|
|
767
|
-
type
|
|
845
|
+
type EndUserStatusEnumKey = (typeof endUserStatusEnum)[keyof typeof endUserStatusEnum];
|
|
846
|
+
type EndUserStatus = EndUserStatusEnumKey;
|
|
847
|
+
|
|
848
|
+
/**
|
|
849
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
850
|
+
* Do not edit manually.
|
|
851
|
+
*/
|
|
852
|
+
|
|
768
853
|
type EndUserSummaryDto = {
|
|
769
854
|
/**
|
|
855
|
+
* @description Sessions of the user that are currently active.
|
|
770
856
|
* @type number
|
|
771
857
|
*/
|
|
772
858
|
active_session_count: number;
|
|
@@ -776,18 +862,22 @@ type EndUserSummaryDto = {
|
|
|
776
862
|
*/
|
|
777
863
|
auth_providers: string[];
|
|
778
864
|
/**
|
|
865
|
+
* @description When the end user was created (ISO 8601).
|
|
779
866
|
* @type string, date-time
|
|
780
867
|
*/
|
|
781
868
|
created_at: string;
|
|
782
869
|
/**
|
|
870
|
+
* @description Human-readable name of the end user.
|
|
783
871
|
* @type string
|
|
784
872
|
*/
|
|
785
873
|
display_name: string | null;
|
|
786
874
|
/**
|
|
875
|
+
* @description Email address.
|
|
787
876
|
* @type string
|
|
788
877
|
*/
|
|
789
878
|
email: string | null;
|
|
790
879
|
/**
|
|
880
|
+
* @description When the primary email was verified, or `null` until it is.
|
|
791
881
|
* @type string, date-time
|
|
792
882
|
*/
|
|
793
883
|
email_verified_at: string | null;
|
|
@@ -797,10 +887,12 @@ type EndUserSummaryDto = {
|
|
|
797
887
|
*/
|
|
798
888
|
failed_signins: number;
|
|
799
889
|
/**
|
|
890
|
+
* @description Unique identifier of the end user.
|
|
800
891
|
* @type string
|
|
801
892
|
*/
|
|
802
893
|
id: string;
|
|
803
894
|
/**
|
|
895
|
+
* @description When the member joined the tenant (ISO 8601).
|
|
804
896
|
* @type string, date-time
|
|
805
897
|
*/
|
|
806
898
|
joined_at: string | null;
|
|
@@ -810,6 +902,7 @@ type EndUserSummaryDto = {
|
|
|
810
902
|
*/
|
|
811
903
|
last_activity_at: string | null;
|
|
812
904
|
/**
|
|
905
|
+
* @description When the end user was last used (ISO 8601), or `null` if never.
|
|
813
906
|
* @type string, date-time
|
|
814
907
|
*/
|
|
815
908
|
last_used_at: string | null;
|
|
@@ -819,19 +912,21 @@ type EndUserSummaryDto = {
|
|
|
819
912
|
*/
|
|
820
913
|
mfa_factor_count: number;
|
|
821
914
|
/**
|
|
915
|
+
* @description App-level role name of the user, or `null` for none.
|
|
822
916
|
* @type string
|
|
823
917
|
*/
|
|
824
918
|
role: string | null;
|
|
825
919
|
/**
|
|
826
|
-
* @
|
|
920
|
+
* @description Account status: `active`, `suspended` or `deactivated`.
|
|
827
921
|
*/
|
|
828
|
-
status:
|
|
922
|
+
status: EndUserStatus;
|
|
829
923
|
/**
|
|
830
924
|
* @description Set while a live session is locked out of step-up verification.
|
|
831
925
|
* @type string, date-time
|
|
832
926
|
*/
|
|
833
927
|
step_up_locked_until: string | null;
|
|
834
928
|
/**
|
|
929
|
+
* @description The end user\'s username, unique within the app.
|
|
835
930
|
* @type string
|
|
836
931
|
*/
|
|
837
932
|
username: string;
|
|
@@ -849,6 +944,7 @@ type EndUserSummaryDto = {
|
|
|
849
944
|
|
|
850
945
|
type EndUserListResponseDto = {
|
|
851
946
|
/**
|
|
947
|
+
* @description The end user items on this page.
|
|
852
948
|
* @type array
|
|
853
949
|
*/
|
|
854
950
|
data: EndUserSummaryDto[];
|
|
@@ -864,34 +960,42 @@ type EndUserListResponseDto = {
|
|
|
864
960
|
*/
|
|
865
961
|
type AppMemberSummaryDto = {
|
|
866
962
|
/**
|
|
963
|
+
* @description The end user (account) the app member belongs to.
|
|
867
964
|
* @type string
|
|
868
965
|
*/
|
|
869
966
|
account_id: string;
|
|
870
967
|
/**
|
|
968
|
+
* @description Human-readable name of the app member.
|
|
871
969
|
* @type string
|
|
872
970
|
*/
|
|
873
971
|
display_name: string | null;
|
|
874
972
|
/**
|
|
973
|
+
* @description Unique identifier of the app member.
|
|
875
974
|
* @type string
|
|
876
975
|
*/
|
|
877
976
|
id: string;
|
|
878
977
|
/**
|
|
978
|
+
* @description When the member joined the tenant (ISO 8601).
|
|
879
979
|
* @type string, date-time
|
|
880
980
|
*/
|
|
881
981
|
joined_at: string;
|
|
882
982
|
/**
|
|
983
|
+
* @description The member\'s primary email address, or `null`.
|
|
883
984
|
* @type string
|
|
884
985
|
*/
|
|
885
986
|
primary_email: string | null;
|
|
886
987
|
/**
|
|
988
|
+
* @description Id of the role.
|
|
887
989
|
* @type string
|
|
888
990
|
*/
|
|
889
991
|
role_id: string;
|
|
890
992
|
/**
|
|
993
|
+
* @description Name of the role.
|
|
891
994
|
* @type string
|
|
892
995
|
*/
|
|
893
996
|
role_name: string;
|
|
894
997
|
/**
|
|
998
|
+
* @description The end user\'s username, unique within the app.
|
|
895
999
|
* @type string
|
|
896
1000
|
*/
|
|
897
1001
|
username: string;
|
|
@@ -904,6 +1008,7 @@ type AppMemberSummaryDto = {
|
|
|
904
1008
|
|
|
905
1009
|
type AppMemberListResponseDto = {
|
|
906
1010
|
/**
|
|
1011
|
+
* @description The app member items on this page.
|
|
907
1012
|
* @type array
|
|
908
1013
|
*/
|
|
909
1014
|
data: AppMemberSummaryDto[];
|
|
@@ -924,38 +1029,47 @@ type EndUserInviteResponseDto = {
|
|
|
924
1029
|
*/
|
|
925
1030
|
code: string;
|
|
926
1031
|
/**
|
|
1032
|
+
* @description When the invite was created (ISO 8601).
|
|
927
1033
|
* @type string, date-time
|
|
928
1034
|
*/
|
|
929
1035
|
created_at: string;
|
|
930
1036
|
/**
|
|
1037
|
+
* @description Email address.
|
|
931
1038
|
* @type string
|
|
932
1039
|
*/
|
|
933
1040
|
email: string | null;
|
|
934
1041
|
/**
|
|
1042
|
+
* @description When the invite expires (ISO 8601), or `null` if it never does.
|
|
935
1043
|
* @type string, date-time
|
|
936
1044
|
*/
|
|
937
1045
|
expires_at: string | null;
|
|
938
1046
|
/**
|
|
1047
|
+
* @description Unique identifier of the invite.
|
|
939
1048
|
* @type string
|
|
940
1049
|
*/
|
|
941
1050
|
id: string;
|
|
942
1051
|
/**
|
|
1052
|
+
* @description How many times the invite can be used, or `null` for no limit.
|
|
943
1053
|
* @type number
|
|
944
1054
|
*/
|
|
945
1055
|
max_uses: number | null;
|
|
946
1056
|
/**
|
|
1057
|
+
* @description When the invite was revoked (ISO 8601), or `null` while it is active.
|
|
947
1058
|
* @type string, date-time
|
|
948
1059
|
*/
|
|
949
1060
|
revoked_at: string | null;
|
|
950
1061
|
/**
|
|
1062
|
+
* @description Id of the role.
|
|
951
1063
|
* @type string
|
|
952
1064
|
*/
|
|
953
1065
|
role_id: string;
|
|
954
1066
|
/**
|
|
1067
|
+
* @description Name of the role.
|
|
955
1068
|
* @type string
|
|
956
1069
|
*/
|
|
957
1070
|
role_name: string | null;
|
|
958
1071
|
/**
|
|
1072
|
+
* @description How many times the invite has been used.
|
|
959
1073
|
* @type number
|
|
960
1074
|
*/
|
|
961
1075
|
use_count: number;
|
|
@@ -968,6 +1082,7 @@ type EndUserInviteResponseDto = {
|
|
|
968
1082
|
|
|
969
1083
|
type EndUserInviteListResponseDto = {
|
|
970
1084
|
/**
|
|
1085
|
+
* @description The end user invite items on this page.
|
|
971
1086
|
* @type array
|
|
972
1087
|
*/
|
|
973
1088
|
data: EndUserInviteResponseDto[];
|
|
@@ -981,11 +1096,18 @@ type EndUserInviteListResponseDto = {
|
|
|
981
1096
|
* Generated by Kubb (https://kubb.dev/).
|
|
982
1097
|
* Do not edit manually.
|
|
983
1098
|
*/
|
|
984
|
-
declare const
|
|
1099
|
+
declare const botProtectionProviderEnum: {
|
|
985
1100
|
readonly turnstile: "turnstile";
|
|
986
1101
|
readonly hcaptcha: "hcaptcha";
|
|
987
1102
|
};
|
|
988
|
-
type
|
|
1103
|
+
type BotProtectionProviderEnumKey = (typeof botProtectionProviderEnum)[keyof typeof botProtectionProviderEnum];
|
|
1104
|
+
type BotProtectionProvider = BotProtectionProviderEnumKey;
|
|
1105
|
+
|
|
1106
|
+
/**
|
|
1107
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1108
|
+
* Do not edit manually.
|
|
1109
|
+
*/
|
|
1110
|
+
|
|
989
1111
|
type BotProtectionResponseDto = {
|
|
990
1112
|
/**
|
|
991
1113
|
* @description Whether sign-up requires a verified token.
|
|
@@ -998,9 +1120,9 @@ type BotProtectionResponseDto = {
|
|
|
998
1120
|
*/
|
|
999
1121
|
expected_hostnames: string[];
|
|
1000
1122
|
/**
|
|
1001
|
-
* @
|
|
1123
|
+
* @description The CAPTCHA provider the sign-up form renders: `turnstile` or `hcaptcha`.
|
|
1002
1124
|
*/
|
|
1003
|
-
provider:
|
|
1125
|
+
provider: BotProtectionProvider;
|
|
1004
1126
|
/**
|
|
1005
1127
|
* @description Last four characters of the stored secret, so you can tell which one it is. null when none is stored.
|
|
1006
1128
|
* @type string
|
|
@@ -1022,30 +1144,50 @@ type BotProtectionResponseDto = {
|
|
|
1022
1144
|
* Generated by Kubb (https://kubb.dev/).
|
|
1023
1145
|
* Do not edit manually.
|
|
1024
1146
|
*/
|
|
1025
|
-
|
|
1026
|
-
declare const authConfigResponseDtoMfaEnum: {
|
|
1147
|
+
declare const mfaPolicyEnum: {
|
|
1027
1148
|
readonly optional: "optional";
|
|
1028
1149
|
readonly required: "required";
|
|
1029
1150
|
};
|
|
1030
|
-
type
|
|
1031
|
-
|
|
1151
|
+
type MfaPolicyEnumKey = (typeof mfaPolicyEnum)[keyof typeof mfaPolicyEnum];
|
|
1152
|
+
type MfaPolicy = MfaPolicyEnumKey;
|
|
1153
|
+
|
|
1154
|
+
/**
|
|
1155
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1156
|
+
* Do not edit manually.
|
|
1157
|
+
*/
|
|
1158
|
+
declare const oAuthLinkPolicyEnum: {
|
|
1032
1159
|
readonly auto: "auto";
|
|
1033
1160
|
readonly confirm: "confirm";
|
|
1034
1161
|
readonly reject: "reject";
|
|
1035
1162
|
};
|
|
1036
|
-
type
|
|
1037
|
-
|
|
1163
|
+
type OAuthLinkPolicyEnumKey = (typeof oAuthLinkPolicyEnum)[keyof typeof oAuthLinkPolicyEnum];
|
|
1164
|
+
type OAuthLinkPolicy = OAuthLinkPolicyEnumKey;
|
|
1165
|
+
|
|
1166
|
+
/**
|
|
1167
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1168
|
+
* Do not edit manually.
|
|
1169
|
+
*/
|
|
1170
|
+
declare const passwordBreachCheckEnum: {
|
|
1038
1171
|
readonly off: "off";
|
|
1039
1172
|
readonly warn: "warn";
|
|
1040
1173
|
readonly block: "block";
|
|
1041
1174
|
};
|
|
1042
|
-
type
|
|
1175
|
+
type PasswordBreachCheckEnumKey = (typeof passwordBreachCheckEnum)[keyof typeof passwordBreachCheckEnum];
|
|
1176
|
+
type PasswordBreachCheck = PasswordBreachCheckEnumKey;
|
|
1177
|
+
|
|
1178
|
+
/**
|
|
1179
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1180
|
+
* Do not edit manually.
|
|
1181
|
+
*/
|
|
1182
|
+
|
|
1043
1183
|
type AuthConfigResponseDto = {
|
|
1044
1184
|
/**
|
|
1185
|
+
* @description Access-token lifetime in minutes (5-60).
|
|
1045
1186
|
* @type number
|
|
1046
1187
|
*/
|
|
1047
1188
|
access_token_minutes: number;
|
|
1048
1189
|
/**
|
|
1190
|
+
* @description Origins the OAuth web flow may redirect back to (`return_to`), exact match.
|
|
1049
1191
|
* @type array
|
|
1050
1192
|
*/
|
|
1051
1193
|
allowed_redirect_origins: string[];
|
|
@@ -1054,66 +1196,79 @@ type AuthConfigResponseDto = {
|
|
|
1054
1196
|
*/
|
|
1055
1197
|
bot_protection: BotProtectionResponseDto | null;
|
|
1056
1198
|
/**
|
|
1199
|
+
* @description Whether routes that declare an app permission enforce it against the user\'s role.
|
|
1057
1200
|
* @type boolean
|
|
1058
1201
|
*/
|
|
1059
1202
|
enforce_app_permissions: boolean;
|
|
1060
1203
|
/**
|
|
1204
|
+
* @description Consecutive failed sign-ins before an account is locked for 15 minutes.
|
|
1061
1205
|
* @type number
|
|
1062
1206
|
*/
|
|
1063
1207
|
max_failed_login_attempts: number;
|
|
1064
1208
|
/**
|
|
1209
|
+
* @description Maximum concurrent sessions per user; a sign-in past it ends the oldest session.
|
|
1065
1210
|
* @type number
|
|
1066
1211
|
*/
|
|
1067
1212
|
max_sessions: number | null;
|
|
1068
1213
|
/**
|
|
1069
|
-
* @
|
|
1214
|
+
* @description Whether every user must hold an MFA factor: `optional` or `required`.
|
|
1070
1215
|
*/
|
|
1071
|
-
mfa:
|
|
1216
|
+
mfa: MfaPolicy;
|
|
1072
1217
|
/**
|
|
1218
|
+
* @description Days after account creation during which `mfa: required` still mints ordinary tokens.
|
|
1073
1219
|
* @type number
|
|
1074
1220
|
*/
|
|
1075
1221
|
mfa_grace_days: number;
|
|
1076
1222
|
/**
|
|
1077
|
-
* @
|
|
1223
|
+
* @description What a federated sign-in does when its verified email already belongs to an account in the app: `auto` links it, `confirm` asks the user to prove the existing account first, `reject` refuses the sign-in.
|
|
1078
1224
|
*/
|
|
1079
|
-
oauth_link_policy:
|
|
1225
|
+
oauth_link_policy: OAuthLinkPolicy;
|
|
1080
1226
|
/**
|
|
1081
|
-
* @
|
|
1227
|
+
* @description Breached-password check on sign-up and password changes: `block`, `warn` or `off`.
|
|
1082
1228
|
*/
|
|
1083
|
-
password_breach_check:
|
|
1229
|
+
password_breach_check: PasswordBreachCheck;
|
|
1084
1230
|
/**
|
|
1231
|
+
* @description Minimum password length.
|
|
1085
1232
|
* @type number
|
|
1086
1233
|
*/
|
|
1087
1234
|
password_min_length: number;
|
|
1088
1235
|
/**
|
|
1236
|
+
* @description Whether passwords need a digit.
|
|
1089
1237
|
* @type boolean
|
|
1090
1238
|
*/
|
|
1091
1239
|
password_require_number: boolean;
|
|
1092
1240
|
/**
|
|
1241
|
+
* @description Whether passwords need a symbol.
|
|
1093
1242
|
* @type boolean
|
|
1094
1243
|
*/
|
|
1095
1244
|
password_require_symbol: boolean;
|
|
1096
1245
|
/**
|
|
1246
|
+
* @description Whether passwords need an uppercase letter.
|
|
1097
1247
|
* @type boolean
|
|
1098
1248
|
*/
|
|
1099
1249
|
password_require_uppercase: boolean;
|
|
1100
1250
|
/**
|
|
1251
|
+
* @description Session lifetime in minutes.
|
|
1101
1252
|
* @type number
|
|
1102
1253
|
*/
|
|
1103
1254
|
session_duration_minutes: number;
|
|
1104
1255
|
/**
|
|
1256
|
+
* @description Whether existing users can sign in.
|
|
1105
1257
|
* @type boolean
|
|
1106
1258
|
*/
|
|
1107
1259
|
signin_enabled: boolean;
|
|
1108
1260
|
/**
|
|
1261
|
+
* @description Email domains allowed to sign up; empty means any domain.
|
|
1109
1262
|
* @type array
|
|
1110
1263
|
*/
|
|
1111
1264
|
signup_allowed_email_domains: string[];
|
|
1112
1265
|
/**
|
|
1266
|
+
* @description Role newly signed-up users receive.
|
|
1113
1267
|
* @type string
|
|
1114
1268
|
*/
|
|
1115
1269
|
signup_default_role: string;
|
|
1116
1270
|
/**
|
|
1271
|
+
* @description Whether new users can sign up.
|
|
1117
1272
|
* @type boolean
|
|
1118
1273
|
*/
|
|
1119
1274
|
signup_enabled: boolean;
|
|
@@ -1153,7 +1308,9 @@ type UpdateAppDto = {
|
|
|
1153
1308
|
* @description Your own key/value data for this app. It replaces the stored metadata, and keys are kept exactly as you send them. The `auth` key holds the app\'s sign-in settings, which you change with `PATCH /v1/apps/{appId}/auth-config` (it checks every value): leave `auth` out and it is kept as it is, or send it back unchanged. A different `auth` value is refused with 400 `AUTH_SETTINGS_IN_METADATA`.
|
|
1154
1309
|
* @type object | undefined
|
|
1155
1310
|
*/
|
|
1156
|
-
metadata?:
|
|
1311
|
+
metadata?: {
|
|
1312
|
+
[key: string]: any;
|
|
1313
|
+
};
|
|
1157
1314
|
/**
|
|
1158
1315
|
* @description Rename the app\'s slug. The old slug remains resolvable for 30 days as a JWKS-URL alias so existing customer-side verifiers don\'t break instantly. Same shape as the create-slug: lowercase alphanumeric + hyphens, 3–48 chars, not shaped like a UUID.
|
|
1159
1316
|
* @type string | undefined
|
|
@@ -1465,10 +1622,12 @@ type UpdateEndUserStatusDto = {
|
|
|
1465
1622
|
*/
|
|
1466
1623
|
type CreateRoleDto = {
|
|
1467
1624
|
/**
|
|
1625
|
+
* @description Free-text description of the role, or `null`.
|
|
1468
1626
|
* @type string | undefined
|
|
1469
1627
|
*/
|
|
1470
1628
|
description?: string;
|
|
1471
1629
|
/**
|
|
1630
|
+
* @description Name of the role.
|
|
1472
1631
|
* @type string
|
|
1473
1632
|
*/
|
|
1474
1633
|
name: string;
|
|
@@ -1480,6 +1639,7 @@ type CreateRoleDto = {
|
|
|
1480
1639
|
*/
|
|
1481
1640
|
type UpdateRoleDto = {
|
|
1482
1641
|
/**
|
|
1642
|
+
* @description Free-text description of the update role, or `null`.
|
|
1483
1643
|
* @type string | undefined
|
|
1484
1644
|
*/
|
|
1485
1645
|
description?: string;
|
|
@@ -1513,6 +1673,7 @@ type CreatePermissionDto = {
|
|
|
1513
1673
|
*/
|
|
1514
1674
|
action: string;
|
|
1515
1675
|
/**
|
|
1676
|
+
* @description Free-text description of the create permission, or `null`.
|
|
1516
1677
|
* @type string | undefined
|
|
1517
1678
|
*/
|
|
1518
1679
|
description?: string;
|
|
@@ -1591,10 +1752,15 @@ declare const endUserInviteControllerListQueryParamsStatusEnum: {
|
|
|
1591
1752
|
type EndUserInviteControllerListQueryParamsStatusEnumKey = (typeof endUserInviteControllerListQueryParamsStatusEnum)[keyof typeof endUserInviteControllerListQueryParamsStatusEnum];
|
|
1592
1753
|
type EndUserInviteControllerListQueryParams = {
|
|
1593
1754
|
/**
|
|
1594
|
-
* @
|
|
1755
|
+
* @description Page size. Defaults to 20, clamped to 100.
|
|
1756
|
+
* @minLength 1
|
|
1757
|
+
* @maxLength 100
|
|
1758
|
+
* @default 20
|
|
1759
|
+
* @type integer | undefined
|
|
1595
1760
|
*/
|
|
1596
|
-
limit?:
|
|
1761
|
+
limit?: number;
|
|
1597
1762
|
/**
|
|
1763
|
+
* @description Opaque `next_cursor` from the previous page.
|
|
1598
1764
|
* @type string | undefined
|
|
1599
1765
|
*/
|
|
1600
1766
|
cursor?: string;
|
|
@@ -1612,10 +1778,15 @@ type EndUserInviteControllerListQueryParams = {
|
|
|
1612
1778
|
|
|
1613
1779
|
type AppControllerListMembersQueryParams = {
|
|
1614
1780
|
/**
|
|
1615
|
-
* @
|
|
1781
|
+
* @description Page size. Defaults to 20, clamped to 100.
|
|
1782
|
+
* @minLength 1
|
|
1783
|
+
* @maxLength 100
|
|
1784
|
+
* @default 20
|
|
1785
|
+
* @type integer | undefined
|
|
1616
1786
|
*/
|
|
1617
|
-
limit?:
|
|
1787
|
+
limit?: number;
|
|
1618
1788
|
/**
|
|
1789
|
+
* @description Opaque `next_cursor` from the previous page.
|
|
1619
1790
|
* @type string | undefined
|
|
1620
1791
|
*/
|
|
1621
1792
|
cursor?: string;
|
|
@@ -1626,6 +1797,12 @@ type AppControllerListMembersQueryParams = {
|
|
|
1626
1797
|
* Do not edit manually.
|
|
1627
1798
|
*/
|
|
1628
1799
|
|
|
1800
|
+
declare const endUserControllerListEndUsersQueryParamsStatusEnum: {
|
|
1801
|
+
readonly active: "active";
|
|
1802
|
+
readonly suspended: "suspended";
|
|
1803
|
+
readonly deactivated: "deactivated";
|
|
1804
|
+
};
|
|
1805
|
+
type EndUserControllerListEndUsersQueryParamsStatusEnumKey = (typeof endUserControllerListEndUsersQueryParamsStatusEnum)[keyof typeof endUserControllerListEndUsersQueryParamsStatusEnum];
|
|
1629
1806
|
declare const endUserControllerListEndUsersQueryParamsSignalEnum: {
|
|
1630
1807
|
readonly unverified: "unverified";
|
|
1631
1808
|
readonly failing_signin: "failing_signin";
|
|
@@ -1651,18 +1828,25 @@ declare const endUserControllerListEndUsersQueryParamsOrderEnum: {
|
|
|
1651
1828
|
type EndUserControllerListEndUsersQueryParamsOrderEnumKey = (typeof endUserControllerListEndUsersQueryParamsOrderEnum)[keyof typeof endUserControllerListEndUsersQueryParamsOrderEnum];
|
|
1652
1829
|
type EndUserControllerListEndUsersQueryParams = {
|
|
1653
1830
|
/**
|
|
1654
|
-
* @
|
|
1831
|
+
* @description Page size. Defaults to 20, clamped to 100.
|
|
1832
|
+
* @minLength 1
|
|
1833
|
+
* @maxLength 100
|
|
1834
|
+
* @default 20
|
|
1835
|
+
* @type integer | undefined
|
|
1655
1836
|
*/
|
|
1656
|
-
limit?:
|
|
1837
|
+
limit?: number;
|
|
1657
1838
|
/**
|
|
1839
|
+
* @description Opaque `next_cursor` from the previous page.
|
|
1658
1840
|
* @type string | undefined
|
|
1659
1841
|
*/
|
|
1660
1842
|
cursor?: string;
|
|
1661
1843
|
/**
|
|
1844
|
+
* @description Only users with this status.
|
|
1662
1845
|
* @type string | undefined
|
|
1663
1846
|
*/
|
|
1664
|
-
status?:
|
|
1847
|
+
status?: EndUserControllerListEndUsersQueryParamsStatusEnumKey;
|
|
1665
1848
|
/**
|
|
1849
|
+
* @description Case-insensitive substring of the username or of any contact (email or phone).
|
|
1666
1850
|
* @type string | undefined
|
|
1667
1851
|
*/
|
|
1668
1852
|
search?: string;
|
|
@@ -1682,6 +1866,7 @@ type EndUserControllerListEndUsersQueryParams = {
|
|
|
1682
1866
|
*/
|
|
1683
1867
|
sort?: EndUserControllerListEndUsersQueryParamsSortEnumKey;
|
|
1684
1868
|
/**
|
|
1869
|
+
* @description Sort direction for `sort`.
|
|
1685
1870
|
* @type string | undefined
|
|
1686
1871
|
*/
|
|
1687
1872
|
order?: EndUserControllerListEndUsersQueryParamsOrderEnumKey;
|
|
@@ -1694,18 +1879,25 @@ type EndUserControllerListEndUsersQueryParams = {
|
|
|
1694
1879
|
|
|
1695
1880
|
type AppAuditControllerGetAuditLogsQueryParams = {
|
|
1696
1881
|
/**
|
|
1697
|
-
* @
|
|
1882
|
+
* @description Page size. Defaults to 20, clamped to 100.
|
|
1883
|
+
* @minLength 1
|
|
1884
|
+
* @maxLength 100
|
|
1885
|
+
* @default 20
|
|
1886
|
+
* @type integer | undefined
|
|
1698
1887
|
*/
|
|
1699
|
-
limit?:
|
|
1888
|
+
limit?: number;
|
|
1700
1889
|
/**
|
|
1890
|
+
* @description Opaque `next_cursor` from the previous page.
|
|
1701
1891
|
* @type string | undefined
|
|
1702
1892
|
*/
|
|
1703
1893
|
cursor?: string;
|
|
1704
1894
|
/**
|
|
1895
|
+
* @description Only entries with this action (e.g. `user.signin`).
|
|
1705
1896
|
* @type string | undefined
|
|
1706
1897
|
*/
|
|
1707
1898
|
action?: string;
|
|
1708
1899
|
/**
|
|
1900
|
+
* @description Only entries this account performed.
|
|
1709
1901
|
* @type string | undefined
|
|
1710
1902
|
*/
|
|
1711
1903
|
actor_id?: string;
|
|
@@ -1728,10 +1920,15 @@ type AppAuditControllerGetAuditLogsQueryParams = {
|
|
|
1728
1920
|
|
|
1729
1921
|
type M2MControllerListClientsQueryParams = {
|
|
1730
1922
|
/**
|
|
1731
|
-
* @
|
|
1923
|
+
* @description Page size. Defaults to 20, clamped to 100.
|
|
1924
|
+
* @minLength 1
|
|
1925
|
+
* @maxLength 100
|
|
1926
|
+
* @default 20
|
|
1927
|
+
* @type integer | undefined
|
|
1732
1928
|
*/
|
|
1733
|
-
limit?:
|
|
1929
|
+
limit?: number;
|
|
1734
1930
|
/**
|
|
1931
|
+
* @description Opaque `next_cursor` from the previous page.
|
|
1735
1932
|
* @type string | undefined
|
|
1736
1933
|
*/
|
|
1737
1934
|
cursor?: string;
|
|
@@ -1744,10 +1941,15 @@ type M2MControllerListClientsQueryParams = {
|
|
|
1744
1941
|
|
|
1745
1942
|
type RoleControllerListRolesQueryParams = {
|
|
1746
1943
|
/**
|
|
1747
|
-
* @
|
|
1944
|
+
* @description Page size. Defaults to 20, clamped to 100.
|
|
1945
|
+
* @minLength 1
|
|
1946
|
+
* @maxLength 100
|
|
1947
|
+
* @default 20
|
|
1948
|
+
* @type integer | undefined
|
|
1748
1949
|
*/
|
|
1749
|
-
limit?:
|
|
1950
|
+
limit?: number;
|
|
1750
1951
|
/**
|
|
1952
|
+
* @description Opaque `next_cursor` from the previous page.
|
|
1751
1953
|
* @type string | undefined
|
|
1752
1954
|
*/
|
|
1753
1955
|
cursor?: string;
|
|
@@ -1856,6 +2058,7 @@ type OAuthTokenResponseDto = {
|
|
|
1856
2058
|
*/
|
|
1857
2059
|
scope: string;
|
|
1858
2060
|
/**
|
|
2061
|
+
* @description Always `Bearer`.
|
|
1859
2062
|
* @type string
|
|
1860
2063
|
*/
|
|
1861
2064
|
token_type: string;
|
|
@@ -1867,6 +2070,7 @@ type OAuthTokenResponseDto = {
|
|
|
1867
2070
|
*/
|
|
1868
2071
|
type AuthorizeBatchResultDto = {
|
|
1869
2072
|
/**
|
|
2073
|
+
* @description True when the token holds every permission of this check.
|
|
1870
2074
|
* @type boolean
|
|
1871
2075
|
*/
|
|
1872
2076
|
authorized: boolean;
|
|
@@ -1876,6 +2080,7 @@ type AuthorizeBatchResultDto = {
|
|
|
1876
2080
|
*/
|
|
1877
2081
|
id?: string;
|
|
1878
2082
|
/**
|
|
2083
|
+
* @description Permissions of this check the token does not hold.
|
|
1879
2084
|
* @type array
|
|
1880
2085
|
*/
|
|
1881
2086
|
missing_permissions: string[];
|
|
@@ -1888,6 +2093,7 @@ type AuthorizeBatchResultDto = {
|
|
|
1888
2093
|
|
|
1889
2094
|
type AuthorizeBatchResponseDto = {
|
|
1890
2095
|
/**
|
|
2096
|
+
* @description One result per check, in request order, each echoing its `id`.
|
|
1891
2097
|
* @type array
|
|
1892
2098
|
*/
|
|
1893
2099
|
results: AuthorizeBatchResultDto[];
|
|
@@ -1899,6 +2105,7 @@ type AuthorizeBatchResponseDto = {
|
|
|
1899
2105
|
*/
|
|
1900
2106
|
type AuthorizeResponseDto = {
|
|
1901
2107
|
/**
|
|
2108
|
+
* @description True when the token is valid and holds every requested permission.
|
|
1902
2109
|
* @type boolean
|
|
1903
2110
|
*/
|
|
1904
2111
|
authorized: boolean;
|
|
@@ -1972,12 +2179,27 @@ type VerifyResponseDto = {
|
|
|
1972
2179
|
* Generated by Kubb (https://kubb.dev/).
|
|
1973
2180
|
* Do not edit manually.
|
|
1974
2181
|
*/
|
|
2182
|
+
declare const signInResultEnum: {
|
|
2183
|
+
readonly session: "session";
|
|
2184
|
+
readonly mfa_required: "mfa_required";
|
|
2185
|
+
readonly mfa_enrollment_required: "mfa_enrollment_required";
|
|
2186
|
+
};
|
|
2187
|
+
type SignInResultEnumKey = (typeof signInResultEnum)[keyof typeof signInResultEnum];
|
|
2188
|
+
type SignInResult = SignInResultEnumKey;
|
|
2189
|
+
|
|
2190
|
+
/**
|
|
2191
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2192
|
+
* Do not edit manually.
|
|
2193
|
+
*/
|
|
2194
|
+
|
|
1975
2195
|
type IdpMfaEnrollmentRequiredResponseDto = {
|
|
1976
2196
|
/**
|
|
2197
|
+
* @description When the idp mfa enrollment required expires (ISO 8601), or `null` if it never does.
|
|
1977
2198
|
* @type string, date-time
|
|
1978
2199
|
*/
|
|
1979
2200
|
expires_at: string;
|
|
1980
2201
|
/**
|
|
2202
|
+
* @description Always `true`: the app requires MFA and the user has no factor yet, so no session was minted.
|
|
1981
2203
|
* @type boolean
|
|
1982
2204
|
*/
|
|
1983
2205
|
mfa_enrollment_required: boolean;
|
|
@@ -1986,6 +2208,10 @@ type IdpMfaEnrollmentRequiredResponseDto = {
|
|
|
1986
2208
|
* @type string
|
|
1987
2209
|
*/
|
|
1988
2210
|
mfa_token: string;
|
|
2211
|
+
/**
|
|
2212
|
+
* @description Always `mfa_enrollment_required` here: no session was minted; enrol a factor with `mfa.enroll`. Discriminates the sign-in results.
|
|
2213
|
+
*/
|
|
2214
|
+
result: SignInResult;
|
|
1989
2215
|
};
|
|
1990
2216
|
|
|
1991
2217
|
/**
|
|
@@ -1994,10 +2220,12 @@ type IdpMfaEnrollmentRequiredResponseDto = {
|
|
|
1994
2220
|
*/
|
|
1995
2221
|
type IdpNativeUserHintDto = {
|
|
1996
2222
|
/**
|
|
2223
|
+
* @description Email address.
|
|
1997
2224
|
* @type string | undefined
|
|
1998
2225
|
*/
|
|
1999
2226
|
email?: string;
|
|
2000
2227
|
/**
|
|
2228
|
+
* @description The user\'s name as the provider reported it (Apple sends it on the first sign-in only).
|
|
2001
2229
|
* @type string | undefined
|
|
2002
2230
|
*/
|
|
2003
2231
|
name?: string;
|
|
@@ -2033,12 +2261,20 @@ type IdpNativeSigninDto = {
|
|
|
2033
2261
|
* Generated by Kubb (https://kubb.dev/).
|
|
2034
2262
|
* Do not edit manually.
|
|
2035
2263
|
*/
|
|
2036
|
-
declare const
|
|
2264
|
+
declare const tokenTypeEnum: {
|
|
2037
2265
|
readonly Bearer: "Bearer";
|
|
2038
2266
|
};
|
|
2039
|
-
type
|
|
2267
|
+
type TokenTypeEnumKey = (typeof tokenTypeEnum)[keyof typeof tokenTypeEnum];
|
|
2268
|
+
type TokenType = TokenTypeEnumKey;
|
|
2269
|
+
|
|
2270
|
+
/**
|
|
2271
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2272
|
+
* Do not edit manually.
|
|
2273
|
+
*/
|
|
2274
|
+
|
|
2040
2275
|
type IdpTokenResponseDto = {
|
|
2041
2276
|
/**
|
|
2277
|
+
* @description Short-lived JWT signed with the app\'s JWKS key.
|
|
2042
2278
|
* @type string
|
|
2043
2279
|
*/
|
|
2044
2280
|
access_token: string;
|
|
@@ -2053,13 +2289,18 @@ type IdpTokenResponseDto = {
|
|
|
2053
2289
|
*/
|
|
2054
2290
|
mfa_enrollment_due_at?: string;
|
|
2055
2291
|
/**
|
|
2292
|
+
* @description Long-lived token that mints a new access token via `refresh`. Rotated on use.
|
|
2056
2293
|
* @type string
|
|
2057
2294
|
*/
|
|
2058
2295
|
refresh_token: string;
|
|
2059
2296
|
/**
|
|
2060
|
-
* @
|
|
2297
|
+
* @description Always `session` here: a session was minted. Discriminates the sign-in results (`session`, `mfa_required`, `mfa_enrollment_required`).
|
|
2298
|
+
*/
|
|
2299
|
+
result: SignInResult;
|
|
2300
|
+
/**
|
|
2301
|
+
* @description Always `Bearer`.
|
|
2061
2302
|
*/
|
|
2062
|
-
token_type:
|
|
2303
|
+
token_type: TokenType;
|
|
2063
2304
|
};
|
|
2064
2305
|
|
|
2065
2306
|
/**
|
|
@@ -2076,7 +2317,11 @@ type ConsumerIdpControllerNativeSignInPathParamsProviderEnumKey = (typeof consum
|
|
|
2076
2317
|
/**
|
|
2077
2318
|
* @description Either a token pair or, when the app runs `auth_config.mfa: \"required\"` and the account holds no enabled factor, an enrolment demand (`mfa_enrollment_required: true`) with no session behind it. Branch on `mfa_enrollment_required`.
|
|
2078
2319
|
*/
|
|
2079
|
-
type ConsumerIdpControllerNativeSignIn200 =
|
|
2320
|
+
type ConsumerIdpControllerNativeSignIn200 = (IdpMfaEnrollmentRequiredResponseDto & {
|
|
2321
|
+
result: "mfa_enrollment_required";
|
|
2322
|
+
}) | (IdpTokenResponseDto & {
|
|
2323
|
+
result: "session";
|
|
2324
|
+
});
|
|
2080
2325
|
|
|
2081
2326
|
/**
|
|
2082
2327
|
* Generated by Kubb (https://kubb.dev/).
|
|
@@ -2109,6 +2354,7 @@ type ConsumerAcceptInviteDto = {
|
|
|
2109
2354
|
* Generated by Kubb (https://kubb.dev/).
|
|
2110
2355
|
* Do not edit manually.
|
|
2111
2356
|
*/
|
|
2357
|
+
|
|
2112
2358
|
type ConsumerMfaEnrollmentRequiredResponseDto = {
|
|
2113
2359
|
/**
|
|
2114
2360
|
* @description When the enrolment token expires (ISO 8601, UTC).
|
|
@@ -2125,12 +2371,17 @@ type ConsumerMfaEnrollmentRequiredResponseDto = {
|
|
|
2125
2371
|
* @type string
|
|
2126
2372
|
*/
|
|
2127
2373
|
mfa_token: string;
|
|
2374
|
+
/**
|
|
2375
|
+
* @description Always `mfa_enrollment_required` here: no session was minted; enrol a factor with `mfa.enroll`. Discriminates the sign-in results.
|
|
2376
|
+
*/
|
|
2377
|
+
result: SignInResult;
|
|
2128
2378
|
};
|
|
2129
2379
|
|
|
2130
2380
|
/**
|
|
2131
2381
|
* Generated by Kubb (https://kubb.dev/).
|
|
2132
2382
|
* Do not edit manually.
|
|
2133
2383
|
*/
|
|
2384
|
+
|
|
2134
2385
|
type ConsumerTokenResponseDto = {
|
|
2135
2386
|
/**
|
|
2136
2387
|
* @description Short-lived JWT signed with the app-scoped JWKS key. Carries sub, role, permissions[], type=end_user.
|
|
@@ -2158,6 +2409,11 @@ type ConsumerTokenResponseDto = {
|
|
|
2158
2409
|
*/
|
|
2159
2410
|
refresh_token: string;
|
|
2160
2411
|
/**
|
|
2412
|
+
* @description Always `session` here: a session was minted. Discriminates the sign-in results (`session`, `mfa_required`, `mfa_enrollment_required`).
|
|
2413
|
+
*/
|
|
2414
|
+
result: SignInResult;
|
|
2415
|
+
/**
|
|
2416
|
+
* @description Always `Bearer`.
|
|
2161
2417
|
* @type string
|
|
2162
2418
|
*/
|
|
2163
2419
|
token_type: string;
|
|
@@ -2171,7 +2427,11 @@ type ConsumerTokenResponseDto = {
|
|
|
2171
2427
|
/**
|
|
2172
2428
|
* @description Account created from the invite. A session was minted unless `mfa_enrollment_required` is present — branch on that flag.
|
|
2173
2429
|
*/
|
|
2174
|
-
type ConsumerAuthControllerAcceptInvite201 =
|
|
2430
|
+
type ConsumerAuthControllerAcceptInvite201 = (ConsumerMfaEnrollmentRequiredResponseDto & {
|
|
2431
|
+
result: "mfa_enrollment_required";
|
|
2432
|
+
}) | (ConsumerTokenResponseDto & {
|
|
2433
|
+
result: "session";
|
|
2434
|
+
});
|
|
2175
2435
|
|
|
2176
2436
|
/**
|
|
2177
2437
|
* Generated by Kubb (https://kubb.dev/).
|
|
@@ -2184,10 +2444,12 @@ type ConsumerMfaChallengeFactorDto = {
|
|
|
2184
2444
|
*/
|
|
2185
2445
|
email_masked?: string | null;
|
|
2186
2446
|
/**
|
|
2447
|
+
* @description Unique identifier of the factor.
|
|
2187
2448
|
* @type string
|
|
2188
2449
|
*/
|
|
2189
2450
|
id: string;
|
|
2190
2451
|
/**
|
|
2452
|
+
* @description Label the user gave the factor, or `null`.
|
|
2191
2453
|
* @type string
|
|
2192
2454
|
*/
|
|
2193
2455
|
label: string | null;
|
|
@@ -2224,6 +2486,10 @@ type ConsumerMfaChallengeResponseDto = {
|
|
|
2224
2486
|
* @type string
|
|
2225
2487
|
*/
|
|
2226
2488
|
mfa_token: string;
|
|
2489
|
+
/**
|
|
2490
|
+
* @description Always `mfa_required` here: finish the challenge with `mfa.verify`. Discriminates the sign-in results.
|
|
2491
|
+
*/
|
|
2492
|
+
result: SignInResult;
|
|
2227
2493
|
};
|
|
2228
2494
|
|
|
2229
2495
|
/**
|
|
@@ -2256,7 +2522,13 @@ type ConsumerSigninDto = {
|
|
|
2256
2522
|
/**
|
|
2257
2523
|
* @description A normal token response, an MFA challenge, or an MFA enrolment demand — distinguish by `mfa_required` / `mfa_enrollment_required`. Neither flag present means a session was minted.
|
|
2258
2524
|
*/
|
|
2259
|
-
type ConsumerAuthControllerSignin200 =
|
|
2525
|
+
type ConsumerAuthControllerSignin200 = (ConsumerMfaEnrollmentRequiredResponseDto & {
|
|
2526
|
+
result: "mfa_enrollment_required";
|
|
2527
|
+
}) | (ConsumerMfaChallengeResponseDto & {
|
|
2528
|
+
result: "mfa_required";
|
|
2529
|
+
}) | (ConsumerTokenResponseDto & {
|
|
2530
|
+
result: "session";
|
|
2531
|
+
});
|
|
2260
2532
|
|
|
2261
2533
|
/**
|
|
2262
2534
|
* Generated by Kubb (https://kubb.dev/).
|
|
@@ -2599,22 +2871,27 @@ type ConsumerPasskeyOptionsDto = {
|
|
|
2599
2871
|
*/
|
|
2600
2872
|
type PublicFactorDto = {
|
|
2601
2873
|
/**
|
|
2874
|
+
* @description When the factor was created (ISO 8601).
|
|
2602
2875
|
* @type string, date-time
|
|
2603
2876
|
*/
|
|
2604
2877
|
created_at: string;
|
|
2605
2878
|
/**
|
|
2879
|
+
* @description Whether the factor is enabled.
|
|
2606
2880
|
* @type boolean
|
|
2607
2881
|
*/
|
|
2608
2882
|
enabled: boolean;
|
|
2609
2883
|
/**
|
|
2884
|
+
* @description When the factor was enabled (ISO 8601), or `null`.
|
|
2610
2885
|
* @type string, date-time
|
|
2611
2886
|
*/
|
|
2612
2887
|
enabled_at: string | null;
|
|
2613
2888
|
/**
|
|
2889
|
+
* @description Unique identifier of the factor.
|
|
2614
2890
|
* @type string
|
|
2615
2891
|
*/
|
|
2616
2892
|
id: string;
|
|
2617
2893
|
/**
|
|
2894
|
+
* @description Label the user gave the factor, or `null`.
|
|
2618
2895
|
* @type string
|
|
2619
2896
|
*/
|
|
2620
2897
|
label: string | null;
|
|
@@ -2648,10 +2925,12 @@ type ConfirmEnrollmentResponseDto = {
|
|
|
2648
2925
|
*/
|
|
2649
2926
|
type StepUpResponseDto = {
|
|
2650
2927
|
/**
|
|
2928
|
+
* @description Authentication methods now recorded on the session (RFC 8176 `amr` values, e.g. `pwd`, `otp`, `webauthn`).
|
|
2651
2929
|
* @type array
|
|
2652
2930
|
*/
|
|
2653
2931
|
amr: string[];
|
|
2654
2932
|
/**
|
|
2933
|
+
* @description When the second factor was verified on this session (ISO 8601).
|
|
2655
2934
|
* @type string, date-time
|
|
2656
2935
|
*/
|
|
2657
2936
|
mfa_at: string;
|
|
@@ -3063,9 +3342,8 @@ declare class ConsumerScope {
|
|
|
3063
3342
|
*
|
|
3064
3343
|
* PAK-required with `auth.user.password-reset.create`: caller must
|
|
3065
3344
|
* instantiate `Auth` with
|
|
3066
|
-
* `auth: { type: "apiKey", key: "pcft_live_..." }
|
|
3067
|
-
*
|
|
3068
|
-
* HTTP client's auth middleware overrides whatever's passed.
|
|
3345
|
+
* `auth: { type: "apiKey", key: "pcft_live_..." }`; the HTTP
|
|
3346
|
+
* client's auth middleware sends it.
|
|
3069
3347
|
*/
|
|
3070
3348
|
requestReset: (data: ConsumerRequestPasswordResetDto) => Promise<ConsumerCodeIssueResponseDto>;
|
|
3071
3349
|
/**
|
|
@@ -3095,9 +3373,8 @@ declare class ConsumerScope {
|
|
|
3095
3373
|
*
|
|
3096
3374
|
* PAK-required: caller must instantiate `Auth` with
|
|
3097
3375
|
* `auth: { type: "apiKey", key: "pcft_live_..." }` carrying
|
|
3098
|
-
* `auth.user.verify.create` narrowed to this app's URN
|
|
3099
|
-
*
|
|
3100
|
-
* HTTP client's auth middleware overrides whatever's passed.
|
|
3376
|
+
* `auth.user.verify.create` narrowed to this app's URN; the HTTP
|
|
3377
|
+
* client's auth middleware sends it.
|
|
3101
3378
|
*/
|
|
3102
3379
|
requestVerification: (data: ConsumerRequestVerificationDto) => Promise<ConsumerCodeIssueResponseDto>;
|
|
3103
3380
|
/**
|
|
@@ -3177,11 +3454,9 @@ declare class ConsumerScope {
|
|
|
3177
3454
|
};
|
|
3178
3455
|
readonly verify: {
|
|
3179
3456
|
/**
|
|
3180
|
-
* The
|
|
3181
|
-
*
|
|
3182
|
-
*
|
|
3183
|
-
* auth middleware overrides whatever's passed with the configured
|
|
3184
|
-
* credential (`PCAuth.apiKey` / `bearer` / `cookie`).
|
|
3457
|
+
* The token under test goes in `data.token`. The server also accepts
|
|
3458
|
+
* it as a bearer; the HTTP client's auth middleware sends the
|
|
3459
|
+
* configured credential (`PCAuth.apiKey` / `bearer` / `cookie`).
|
|
3185
3460
|
*/
|
|
3186
3461
|
verify: (data: VerifyBody) => Promise<VerifyResponseDto>;
|
|
3187
3462
|
authorize: (data: AuthorizeBody) => Promise<AuthorizeResponseDto>;
|
|
@@ -3319,9 +3594,12 @@ type AppControllerListMyAppsQueryParams = {
|
|
|
3319
3594
|
workspace_id?: string;
|
|
3320
3595
|
/**
|
|
3321
3596
|
* @description Page size (default 20, max 100).
|
|
3322
|
-
* @
|
|
3597
|
+
* @minLength 1
|
|
3598
|
+
* @maxLength 100
|
|
3599
|
+
* @default 20
|
|
3600
|
+
* @type integer | undefined
|
|
3323
3601
|
*/
|
|
3324
|
-
limit?:
|
|
3602
|
+
limit?: number;
|
|
3325
3603
|
/**
|
|
3326
3604
|
* @description Opaque `next_cursor` from the previous page.
|
|
3327
3605
|
* @type string | undefined
|