@logto/api 1.40.1 → 1.41.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.
@@ -75,6 +75,30 @@ export interface paths {
75
75
  patch: operations["UpdateApplicationCustomData"];
76
76
  trace?: never;
77
77
  };
78
+ "/api/applications/{applicationId}/access-control": {
79
+ parameters: {
80
+ query?: never;
81
+ header?: never;
82
+ path?: never;
83
+ cookie?: never;
84
+ };
85
+ /**
86
+ * Get application access-control rules
87
+ * @description Get the app-level access-control rule configuration for the specified application.
88
+ */
89
+ get: operations["GetApplicationAccessControl"];
90
+ /**
91
+ * Replace application access-control rules
92
+ * @description Replace the app-level access-control rule configuration for the specified application.
93
+ */
94
+ put: operations["ReplaceApplicationAccessControl"];
95
+ post?: never;
96
+ delete?: never;
97
+ options?: never;
98
+ head?: never;
99
+ patch?: never;
100
+ trace?: never;
101
+ };
78
102
  "/api/applications/{applicationId}/roles": {
79
103
  parameters: {
80
104
  query?: never;
@@ -94,7 +118,7 @@ export interface paths {
94
118
  put: operations["ReplaceApplicationRoles"];
95
119
  /**
96
120
  * Assign API resource roles to application
97
- * @description Assign API resource roles to the specified application. The API resource roles will be added to the existing API resource roles.
121
+ * @description Assign API resource roles to the specified application. The API resource roles will be added to the existing API resource roles. Role IDs that are already assigned to the application are silently ignored.
98
122
  */
99
123
  post: operations["AssignApplicationRoles"];
100
124
  delete?: never;
@@ -905,6 +929,26 @@ export interface paths {
905
929
  patch?: never;
906
930
  trace?: never;
907
931
  };
932
+ "/api/sign-in-exp/username-policy/case-sensitivity-conflicts": {
933
+ parameters: {
934
+ query?: never;
935
+ header?: never;
936
+ path?: never;
937
+ cookie?: never;
938
+ };
939
+ /**
940
+ * Get username case-sensitivity conflicts
941
+ * @description List groups of usernames that collide when compared case-insensitively (i.e. usernames that would clash if the tenant switched to a case-insensitive username policy), with the total group count and a capped sample. Useful for surfacing conflicts before disabling case sensitivity.
942
+ */
943
+ get: operations["GetUsernameCaseSensitivityConflicts"];
944
+ put?: never;
945
+ post?: never;
946
+ delete?: never;
947
+ options?: never;
948
+ head?: never;
949
+ patch?: never;
950
+ trace?: never;
951
+ };
908
952
  "/api/users/{userId}": {
909
953
  parameters: {
910
954
  query?: never;
@@ -1047,6 +1091,26 @@ export interface paths {
1047
1091
  patch: operations["UpdateUserPassword"];
1048
1092
  trace?: never;
1049
1093
  };
1094
+ "/api/users/{userId}/password/expiration": {
1095
+ parameters: {
1096
+ query?: never;
1097
+ header?: never;
1098
+ path?: never;
1099
+ cookie?: never;
1100
+ };
1101
+ get?: never;
1102
+ put?: never;
1103
+ post?: never;
1104
+ delete?: never;
1105
+ options?: never;
1106
+ head?: never;
1107
+ /**
1108
+ * Update user password expiration
1109
+ * @description Update the user's password expiration state for the next sign-in attempt.
1110
+ */
1111
+ patch: operations["UpdateUserPasswordExpiration"];
1112
+ trace?: never;
1113
+ };
1050
1114
  "/api/users/{userId}/password/verify": {
1051
1115
  parameters: {
1052
1116
  query?: never;
@@ -4346,10 +4410,8 @@ export interface operations {
4346
4410
  customData?: {
4347
4411
  [key: string]: unknown;
4348
4412
  };
4349
- /** @description Validator function */
4350
- appLevelAccessControlEnabled?: {
4351
- [key: string]: unknown;
4352
- };
4413
+ /** @description Whether app-level access control is enabled for this application. */
4414
+ appLevelAccessControlEnabled?: boolean;
4353
4415
  protectedAppMetadata?: {
4354
4416
  origin?: string;
4355
4417
  sessionDuration?: number;
@@ -4539,6 +4601,147 @@ export interface operations {
4539
4601
  };
4540
4602
  };
4541
4603
  };
4604
+ GetApplicationAccessControl: {
4605
+ parameters: {
4606
+ query?: never;
4607
+ header?: never;
4608
+ path: {
4609
+ /** @description The unique identifier of the application. */
4610
+ applicationId: components["parameters"]["applicationId"];
4611
+ };
4612
+ cookie?: never;
4613
+ };
4614
+ requestBody?: never;
4615
+ responses: {
4616
+ /** @description The app-level access-control rule configuration. */
4617
+ 200: {
4618
+ headers: {
4619
+ [name: string]: unknown;
4620
+ };
4621
+ content: {
4622
+ "application/json": {
4623
+ userIds: string[];
4624
+ userRoleIds: string[];
4625
+ organizationIds: string[];
4626
+ organizationRoleRules: {
4627
+ organizationId: string;
4628
+ organizationRoleIds: string[];
4629
+ }[];
4630
+ };
4631
+ };
4632
+ };
4633
+ /** @description Bad Request */
4634
+ 400: {
4635
+ headers: {
4636
+ [name: string]: unknown;
4637
+ };
4638
+ content?: never;
4639
+ };
4640
+ /** @description Unauthorized */
4641
+ 401: {
4642
+ headers: {
4643
+ [name: string]: unknown;
4644
+ };
4645
+ content?: never;
4646
+ };
4647
+ /** @description Forbidden */
4648
+ 403: {
4649
+ headers: {
4650
+ [name: string]: unknown;
4651
+ };
4652
+ content?: never;
4653
+ };
4654
+ /** @description The application was not found. */
4655
+ 404: {
4656
+ headers: {
4657
+ [name: string]: unknown;
4658
+ };
4659
+ content?: never;
4660
+ };
4661
+ };
4662
+ };
4663
+ ReplaceApplicationAccessControl: {
4664
+ parameters: {
4665
+ query?: never;
4666
+ header?: never;
4667
+ path: {
4668
+ /** @description The unique identifier of the application. */
4669
+ applicationId: components["parameters"]["applicationId"];
4670
+ };
4671
+ cookie?: never;
4672
+ };
4673
+ requestBody: {
4674
+ content: {
4675
+ "application/json": {
4676
+ /** @description An array of user IDs that can access the application. */
4677
+ userIds: string[];
4678
+ /** @description An array of user role IDs whose assigned users can access the application. */
4679
+ userRoleIds: string[];
4680
+ /** @description An array of organization IDs whose members can access the application. */
4681
+ organizationIds: string[];
4682
+ /** @description An array of organization-role rule groups. Each group contains an organization ID and the organization role IDs that can access the application in that organization. */
4683
+ organizationRoleRules: {
4684
+ organizationId: string;
4685
+ organizationRoleIds: string[];
4686
+ }[];
4687
+ };
4688
+ };
4689
+ };
4690
+ responses: {
4691
+ /** @description The app-level access-control rule configuration was replaced successfully. */
4692
+ 200: {
4693
+ headers: {
4694
+ [name: string]: unknown;
4695
+ };
4696
+ content: {
4697
+ "application/json": {
4698
+ userIds: string[];
4699
+ userRoleIds: string[];
4700
+ organizationIds: string[];
4701
+ organizationRoleRules: {
4702
+ organizationId: string;
4703
+ organizationRoleIds: string[];
4704
+ }[];
4705
+ };
4706
+ };
4707
+ };
4708
+ /** @description Bad Request */
4709
+ 400: {
4710
+ headers: {
4711
+ [name: string]: unknown;
4712
+ };
4713
+ content?: never;
4714
+ };
4715
+ /** @description Unauthorized */
4716
+ 401: {
4717
+ headers: {
4718
+ [name: string]: unknown;
4719
+ };
4720
+ content?: never;
4721
+ };
4722
+ /** @description Forbidden */
4723
+ 403: {
4724
+ headers: {
4725
+ [name: string]: unknown;
4726
+ };
4727
+ content?: never;
4728
+ };
4729
+ /** @description The application or referenced entities were not found. */
4730
+ 404: {
4731
+ headers: {
4732
+ [name: string]: unknown;
4733
+ };
4734
+ content?: never;
4735
+ };
4736
+ /** @description The access-control rule payload contains invalid role types or empty organization-role groups. */
4737
+ 422: {
4738
+ headers: {
4739
+ [name: string]: unknown;
4740
+ };
4741
+ content?: never;
4742
+ };
4743
+ };
4744
+ };
4542
4745
  ListApplicationRoles: {
4543
4746
  parameters: {
4544
4747
  query?: {
@@ -4704,7 +4907,12 @@ export interface operations {
4704
4907
  [name: string]: unknown;
4705
4908
  };
4706
4909
  content: {
4707
- "application/json": unknown;
4910
+ "application/json": {
4911
+ /** @description An array of API resource role IDs requested for assignment. */
4912
+ roleIds: string[];
4913
+ /** @description An array of API resource role IDs newly assigned to the application. Role IDs already attached to the application are silently ignored and not present in this array. */
4914
+ addedRoleIds: string[];
4915
+ };
4708
4916
  };
4709
4917
  };
4710
4918
  /** @description Bad Request */
@@ -6958,6 +7166,15 @@ export interface operations {
6958
7166
  appLevelAccessControlEnabled?: boolean;
6959
7167
  createdAt?: number;
6960
7168
  };
7169
+ organization?: {
7170
+ id?: string;
7171
+ name?: string;
7172
+ description?: string | null;
7173
+ /** @description arbitrary */
7174
+ customData?: {
7175
+ [key: string]: unknown;
7176
+ };
7177
+ };
6961
7178
  };
6962
7179
  blockIssuanceOnError?: boolean;
6963
7180
  tokenSample?: {
@@ -7445,6 +7662,15 @@ export interface operations {
7445
7662
  appLevelAccessControlEnabled?: boolean;
7446
7663
  createdAt?: number;
7447
7664
  };
7665
+ organization?: {
7666
+ id?: string;
7667
+ name?: string;
7668
+ description?: string | null;
7669
+ /** @description arbitrary */
7670
+ customData?: {
7671
+ [key: string]: unknown;
7672
+ };
7673
+ };
7448
7674
  };
7449
7675
  blockIssuanceOnError?: boolean;
7450
7676
  tokenSample?: {
@@ -7875,6 +8101,15 @@ export interface operations {
7875
8101
  appLevelAccessControlEnabled?: boolean;
7876
8102
  createdAt?: number;
7877
8103
  };
8104
+ organization?: {
8105
+ id?: string;
8106
+ name?: string;
8107
+ description?: string | null;
8108
+ /** @description arbitrary */
8109
+ customData?: {
8110
+ [key: string]: unknown;
8111
+ };
8112
+ };
7878
8113
  };
7879
8114
  blockIssuanceOnError?: boolean;
7880
8115
  tokenSample?: {
@@ -8404,6 +8639,15 @@ export interface operations {
8404
8639
  appLevelAccessControlEnabled?: boolean;
8405
8640
  createdAt?: number;
8406
8641
  };
8642
+ organization?: {
8643
+ id?: string;
8644
+ name?: string;
8645
+ description?: string | null;
8646
+ /** @description arbitrary */
8647
+ customData?: {
8648
+ [key: string]: unknown;
8649
+ };
8650
+ };
8407
8651
  };
8408
8652
  blockIssuanceOnError?: boolean;
8409
8653
  tokenSample?: {
@@ -8876,6 +9120,15 @@ export interface operations {
8876
9120
  appLevelAccessControlEnabled?: boolean;
8877
9121
  createdAt?: number;
8878
9122
  };
9123
+ organization?: {
9124
+ id?: string;
9125
+ name?: string;
9126
+ description?: string | null;
9127
+ /** @description arbitrary */
9128
+ customData?: {
9129
+ [key: string]: unknown;
9130
+ };
9131
+ };
8879
9132
  };
8880
9133
  blockIssuanceOnError?: boolean;
8881
9134
  tokenSample?: {
@@ -9359,6 +9612,15 @@ export interface operations {
9359
9612
  appLevelAccessControlEnabled?: boolean;
9360
9613
  createdAt?: number;
9361
9614
  };
9615
+ organization?: {
9616
+ id?: string;
9617
+ name?: string;
9618
+ description?: string | null;
9619
+ /** @description arbitrary */
9620
+ customData?: {
9621
+ [key: string]: unknown;
9622
+ };
9623
+ };
9362
9624
  };
9363
9625
  } | {
9364
9626
  /** Format: "client-credentials" */
@@ -10125,6 +10387,13 @@ export interface operations {
10125
10387
  };
10126
10388
  content?: never;
10127
10389
  };
10390
+ /** @description The connector cannot be deleted because password expiration requires at least one available forgot password method. */
10391
+ 422: {
10392
+ headers: {
10393
+ [name: string]: unknown;
10394
+ };
10395
+ content?: never;
10396
+ };
10128
10397
  };
10129
10398
  };
10130
10399
  UpdateConnector: {
@@ -11510,6 +11779,10 @@ export interface operations {
11510
11779
  /** @description Cloud only. Whether to block disposable email addresses. Once enabled, Logto will check the email domain against a list of known disposable email domains. If the domain is found in the list, the email address will be blocked. */
11511
11780
  blockDisposableAddress?: unknown;
11512
11781
  };
11782
+ verificationCodePolicy: {
11783
+ expirationDuration?: number;
11784
+ maxRetryAttempts?: number;
11785
+ };
11513
11786
  forgotPasswordMethods: ("EmailVerificationCode" | "PhoneVerificationCode")[] | null;
11514
11787
  passkeySignIn: {
11515
11788
  enabled?: boolean;
@@ -11519,6 +11792,25 @@ export interface operations {
11519
11792
  signUpProfileFields: {
11520
11793
  name: string;
11521
11794
  }[] | null;
11795
+ /** @description Password expiration policy used to force users to reset their password during sign-in. When enabled is false, the period field is ignored. */
11796
+ passwordExpiration: {
11797
+ /** @description Whether password expiration is enabled. */
11798
+ enabled?: unknown;
11799
+ /** @description Number of days a password remains valid before it expires. */
11800
+ validPeriodDays?: unknown;
11801
+ } & ({
11802
+ /** Format: false */
11803
+ enabled?: boolean;
11804
+ } | {
11805
+ /** Format: true */
11806
+ enabled: boolean;
11807
+ validPeriodDays: number;
11808
+ enabledAt?: number;
11809
+ });
11810
+ /** @description Validator function */
11811
+ usernamePolicy: {
11812
+ [key: string]: unknown;
11813
+ };
11522
11814
  };
11523
11815
  };
11524
11816
  };
@@ -11700,6 +11992,10 @@ export interface operations {
11700
11992
  signUpProfileFields?: {
11701
11993
  name: string;
11702
11994
  }[] | null;
11995
+ /** @description Validator function */
11996
+ usernamePolicy?: {
11997
+ [key: string]: unknown;
11998
+ };
11703
11999
  termsOfUseUrl?: (string | null) | string;
11704
12000
  privacyPolicyUrl?: (string | null) | string;
11705
12001
  /** @description The support email address to display on the error pages. */
@@ -11708,6 +12004,25 @@ export interface operations {
11708
12004
  supportWebsiteUrl?: (string | null) | string;
11709
12005
  /** @description The fallback URL to redirect users when the sign-in session does not exist or unknown. Client should initiate a new authentication flow after the redirection. */
11710
12006
  unknownSessionRedirectUrl?: (string | null) | string;
12007
+ /** @description Password expiration policy used to force users to reset their password during sign-in. When enabled is false, the period field is ignored. */
12008
+ passwordExpiration?: {
12009
+ /** @description Whether password expiration is enabled. */
12010
+ enabled?: unknown;
12011
+ /** @description Number of days a password remains valid before it expires. */
12012
+ validPeriodDays?: unknown;
12013
+ } & ({
12014
+ /** Format: false */
12015
+ enabled?: boolean;
12016
+ } | {
12017
+ /** Format: true */
12018
+ enabled: boolean;
12019
+ validPeriodDays: number;
12020
+ enabledAt?: number;
12021
+ });
12022
+ verificationCodePolicy?: {
12023
+ expirationDuration?: number;
12024
+ maxRetryAttempts?: number;
12025
+ };
11711
12026
  };
11712
12027
  };
11713
12028
  };
@@ -11836,6 +12151,10 @@ export interface operations {
11836
12151
  blockSubaddressing?: boolean;
11837
12152
  customBlocklist?: string[];
11838
12153
  };
12154
+ verificationCodePolicy: {
12155
+ expirationDuration?: number;
12156
+ maxRetryAttempts?: number;
12157
+ };
11839
12158
  forgotPasswordMethods: ("EmailVerificationCode" | "PhoneVerificationCode")[] | null;
11840
12159
  passkeySignIn: {
11841
12160
  enabled?: boolean;
@@ -11845,6 +12164,19 @@ export interface operations {
11845
12164
  signUpProfileFields: {
11846
12165
  name: string;
11847
12166
  }[] | null;
12167
+ passwordExpiration: {
12168
+ /** Format: false */
12169
+ enabled?: boolean;
12170
+ } | {
12171
+ /** Format: true */
12172
+ enabled: boolean;
12173
+ validPeriodDays: number;
12174
+ enabledAt?: number;
12175
+ };
12176
+ /** @description Validator function */
12177
+ usernamePolicy: {
12178
+ [key: string]: unknown;
12179
+ };
11848
12180
  };
11849
12181
  };
11850
12182
  };
@@ -11876,6 +12208,13 @@ export interface operations {
11876
12208
  };
11877
12209
  content?: never;
11878
12210
  };
12211
+ /** @description Conflict */
12212
+ 409: {
12213
+ headers: {
12214
+ [name: string]: unknown;
12215
+ };
12216
+ content?: never;
12217
+ };
11879
12218
  /** @description Unprocessable Entity. Invalid data provided. */
11880
12219
  422: {
11881
12220
  headers: {
@@ -12004,6 +12343,55 @@ export interface operations {
12004
12343
  };
12005
12344
  };
12006
12345
  };
12346
+ GetUsernameCaseSensitivityConflicts: {
12347
+ parameters: {
12348
+ query: {
12349
+ limit: number;
12350
+ };
12351
+ header?: never;
12352
+ path?: never;
12353
+ cookie?: never;
12354
+ };
12355
+ requestBody?: never;
12356
+ responses: {
12357
+ /** @description The total number of case-insensitive username collision groups and a sample of them. */
12358
+ 200: {
12359
+ headers: {
12360
+ [name: string]: unknown;
12361
+ };
12362
+ content: {
12363
+ "application/json": {
12364
+ totalConflicts: number;
12365
+ samples: {
12366
+ usernameLower: string;
12367
+ userIds: string[];
12368
+ }[];
12369
+ };
12370
+ };
12371
+ };
12372
+ /** @description Bad Request */
12373
+ 400: {
12374
+ headers: {
12375
+ [name: string]: unknown;
12376
+ };
12377
+ content?: never;
12378
+ };
12379
+ /** @description Unauthorized */
12380
+ 401: {
12381
+ headers: {
12382
+ [name: string]: unknown;
12383
+ };
12384
+ content?: never;
12385
+ };
12386
+ /** @description Forbidden */
12387
+ 403: {
12388
+ headers: {
12389
+ [name: string]: unknown;
12390
+ };
12391
+ content?: never;
12392
+ };
12393
+ };
12394
+ };
12007
12395
  GetUser: {
12008
12396
  parameters: {
12009
12397
  query?: {
@@ -12074,6 +12462,7 @@ export interface operations {
12074
12462
  applicationId: string | null;
12075
12463
  isSuspended: boolean;
12076
12464
  hasPassword?: boolean;
12465
+ hasSecurityVerificationMethod?: boolean;
12077
12466
  /** @description List of SSO identities associated with the user. Only available when the `includeSsoIdentities` query parameter is provided with a truthy value. */
12078
12467
  ssoIdentities?: {
12079
12468
  tenantId: string;
@@ -12283,6 +12672,7 @@ export interface operations {
12283
12672
  applicationId: string | null;
12284
12673
  isSuspended: boolean;
12285
12674
  hasPassword?: boolean;
12675
+ hasSecurityVerificationMethod?: boolean;
12286
12676
  ssoIdentities?: {
12287
12677
  tenantId: string;
12288
12678
  id: string;
@@ -12755,6 +13145,7 @@ export interface operations {
12755
13145
  applicationId: string | null;
12756
13146
  isSuspended: boolean;
12757
13147
  hasPassword?: boolean;
13148
+ hasSecurityVerificationMethod?: boolean;
12758
13149
  ssoIdentities?: {
12759
13150
  tenantId: string;
12760
13151
  id: string;
@@ -12916,6 +13307,7 @@ export interface operations {
12916
13307
  applicationId: string | null;
12917
13308
  isSuspended: boolean;
12918
13309
  hasPassword?: boolean;
13310
+ hasSecurityVerificationMethod?: boolean;
12919
13311
  ssoIdentities?: {
12920
13312
  tenantId: string;
12921
13313
  id: string;
@@ -13045,6 +13437,7 @@ export interface operations {
13045
13437
  applicationId: string | null;
13046
13438
  isSuspended: boolean;
13047
13439
  hasPassword?: boolean;
13440
+ hasSecurityVerificationMethod?: boolean;
13048
13441
  ssoIdentities?: {
13049
13442
  tenantId: string;
13050
13443
  id: string;
@@ -13095,6 +13488,129 @@ export interface operations {
13095
13488
  };
13096
13489
  };
13097
13490
  };
13491
+ UpdateUserPasswordExpiration: {
13492
+ parameters: {
13493
+ query?: never;
13494
+ header?: never;
13495
+ path: {
13496
+ /** @description The unique identifier of the user. */
13497
+ userId: components["parameters"]["userId"];
13498
+ };
13499
+ cookie?: never;
13500
+ };
13501
+ requestBody: {
13502
+ content: {
13503
+ "application/json": {
13504
+ /** @description Whether the user's password should be marked as expired. */
13505
+ isExpired: boolean;
13506
+ };
13507
+ };
13508
+ };
13509
+ responses: {
13510
+ /** @description User password expiration state has been updated successfully. */
13511
+ 200: {
13512
+ headers: {
13513
+ [name: string]: unknown;
13514
+ };
13515
+ content: {
13516
+ "application/json": {
13517
+ id: string;
13518
+ username: string | null;
13519
+ primaryEmail: string | null;
13520
+ primaryPhone: string | null;
13521
+ name: string | null;
13522
+ avatar: string | null;
13523
+ /** @description arbitrary */
13524
+ customData: {
13525
+ [key: string]: unknown;
13526
+ };
13527
+ identities: {
13528
+ [key: string]: {
13529
+ userId: string;
13530
+ /** @description arbitrary */
13531
+ details?: {
13532
+ [key: string]: unknown;
13533
+ };
13534
+ };
13535
+ };
13536
+ lastSignInAt: number | null;
13537
+ createdAt: number;
13538
+ updatedAt: number;
13539
+ profile: {
13540
+ familyName?: string;
13541
+ givenName?: string;
13542
+ middleName?: string;
13543
+ nickname?: string;
13544
+ preferredUsername?: string;
13545
+ profile?: string;
13546
+ website?: string;
13547
+ gender?: string;
13548
+ birthdate?: string;
13549
+ zoneinfo?: string;
13550
+ locale?: string;
13551
+ address?: {
13552
+ formatted?: string;
13553
+ streetAddress?: string;
13554
+ locality?: string;
13555
+ region?: string;
13556
+ postalCode?: string;
13557
+ country?: string;
13558
+ };
13559
+ };
13560
+ applicationId: string | null;
13561
+ isSuspended: boolean;
13562
+ hasPassword?: boolean;
13563
+ hasSecurityVerificationMethod?: boolean;
13564
+ ssoIdentities?: {
13565
+ tenantId: string;
13566
+ id: string;
13567
+ userId: string;
13568
+ issuer: string;
13569
+ identityId: string;
13570
+ /** @description arbitrary */
13571
+ detail: {
13572
+ [key: string]: unknown;
13573
+ };
13574
+ createdAt: number;
13575
+ updatedAt: number;
13576
+ ssoConnectorId: string;
13577
+ }[];
13578
+ passwordDigest?: string | null;
13579
+ /** @enum {string|null} */
13580
+ passwordAlgorithm?: "Argon2i" | "Argon2id" | "Argon2d" | "SHA1" | "SHA256" | "MD5" | "Bcrypt" | "Legacy" | null;
13581
+ };
13582
+ };
13583
+ };
13584
+ /** @description Password expiration policy is not enabled in the sign-in experience settings. */
13585
+ 400: {
13586
+ headers: {
13587
+ [name: string]: unknown;
13588
+ };
13589
+ content?: never;
13590
+ };
13591
+ /** @description Unauthorized */
13592
+ 401: {
13593
+ headers: {
13594
+ [name: string]: unknown;
13595
+ };
13596
+ content?: never;
13597
+ };
13598
+ /** @description Forbidden */
13599
+ 403: {
13600
+ headers: {
13601
+ [name: string]: unknown;
13602
+ };
13603
+ content?: never;
13604
+ };
13605
+ /** @description Not Found */
13606
+ 404: {
13607
+ headers: {
13608
+ [name: string]: unknown;
13609
+ };
13610
+ content?: never;
13611
+ };
13612
+ };
13613
+ };
13098
13614
  VerifyUserPassword: {
13099
13615
  parameters: {
13100
13616
  query?: never;
@@ -13283,6 +13799,7 @@ export interface operations {
13283
13799
  applicationId: string | null;
13284
13800
  isSuspended: boolean;
13285
13801
  hasPassword?: boolean;
13802
+ hasSecurityVerificationMethod?: boolean;
13286
13803
  ssoIdentities?: {
13287
13804
  tenantId: string;
13288
13805
  id: string;
@@ -13835,6 +14352,7 @@ export interface operations {
13835
14352
  applicationId: string | null;
13836
14353
  isSuspended: boolean;
13837
14354
  hasPassword?: boolean;
14355
+ hasSecurityVerificationMethod?: boolean;
13838
14356
  ssoIdentities?: {
13839
14357
  tenantId: string;
13840
14358
  id: string;
@@ -14077,6 +14595,10 @@ export interface operations {
14077
14595
  accountId: string;
14078
14596
  };
14079
14597
  expiresAt: number;
14598
+ application: {
14599
+ id: string;
14600
+ name: string;
14601
+ };
14080
14602
  }[];
14081
14603
  };
14082
14604
  };
@@ -16082,6 +16604,7 @@ export interface operations {
16082
16604
  applicationId: string | null;
16083
16605
  isSuspended: boolean;
16084
16606
  hasPassword?: boolean;
16607
+ hasSecurityVerificationMethod?: boolean;
16085
16608
  ssoIdentities?: {
16086
16609
  tenantId: string;
16087
16610
  id: string;
@@ -17082,8 +17605,8 @@ export interface operations {
17082
17605
  id: string;
17083
17606
  name: string;
17084
17607
  /** @enum {string|null} */
17085
- event: "PostRegister" | "PostSignIn" | "PostSignInAdaptiveMfaTriggered" | "PostResetPassword" | "User.Created" | "User.Deleted" | "User.Data.Updated" | "User.SuspensionStatus.Updated" | "Role.Created" | "Role.Deleted" | "Role.Data.Updated" | "Role.Scopes.Updated" | "Scope.Created" | "Scope.Deleted" | "Scope.Data.Updated" | "Organization.Created" | "Organization.Deleted" | "Organization.Data.Updated" | "Organization.Membership.Updated" | "OrganizationRole.Created" | "OrganizationRole.Deleted" | "OrganizationRole.Data.Updated" | "OrganizationRole.Scopes.Updated" | "OrganizationScope.Created" | "OrganizationScope.Deleted" | "OrganizationScope.Data.Updated" | "Identifier.Lockout" | null;
17086
- events: ("PostRegister" | "PostSignIn" | "PostSignInAdaptiveMfaTriggered" | "PostResetPassword" | "User.Created" | "User.Deleted" | "User.Data.Updated" | "User.SuspensionStatus.Updated" | "Role.Created" | "Role.Deleted" | "Role.Data.Updated" | "Role.Scopes.Updated" | "Scope.Created" | "Scope.Deleted" | "Scope.Data.Updated" | "Organization.Created" | "Organization.Deleted" | "Organization.Data.Updated" | "Organization.Membership.Updated" | "OrganizationRole.Created" | "OrganizationRole.Deleted" | "OrganizationRole.Data.Updated" | "OrganizationRole.Scopes.Updated" | "OrganizationScope.Created" | "OrganizationScope.Deleted" | "OrganizationScope.Data.Updated" | "Identifier.Lockout")[];
17608
+ event: "PostRegister" | "PostSignIn" | "PostSignInAdaptiveMfaTriggered" | "PostResetPassword" | "User.Created" | "User.Deleted" | "User.Data.Updated" | "User.SuspensionStatus.Updated" | "Role.Created" | "Role.Deleted" | "Role.Data.Updated" | "Role.Scopes.Updated" | "Scope.Created" | "Scope.Deleted" | "Scope.Data.Updated" | "Organization.Created" | "Organization.Deleted" | "Organization.Data.Updated" | "Organization.Membership.Updated" | "OrganizationRole.Created" | "OrganizationRole.Deleted" | "OrganizationRole.Data.Updated" | "OrganizationRole.Scopes.Updated" | "OrganizationScope.Created" | "OrganizationScope.Deleted" | "OrganizationScope.Data.Updated" | "Identifier.Lockout" | "Message.RateLimited" | null;
17609
+ events: ("PostRegister" | "PostSignIn" | "PostSignInAdaptiveMfaTriggered" | "PostResetPassword" | "User.Created" | "User.Deleted" | "User.Data.Updated" | "User.SuspensionStatus.Updated" | "Role.Created" | "Role.Deleted" | "Role.Data.Updated" | "Role.Scopes.Updated" | "Scope.Created" | "Scope.Deleted" | "Scope.Data.Updated" | "Organization.Created" | "Organization.Deleted" | "Organization.Data.Updated" | "Organization.Membership.Updated" | "OrganizationRole.Created" | "OrganizationRole.Deleted" | "OrganizationRole.Data.Updated" | "OrganizationRole.Scopes.Updated" | "OrganizationScope.Created" | "OrganizationScope.Deleted" | "OrganizationScope.Data.Updated" | "Identifier.Lockout" | "Message.RateLimited")[];
17087
17610
  config: {
17088
17611
  url: string;
17089
17612
  headers?: {
@@ -17142,9 +17665,9 @@ export interface operations {
17142
17665
  * @description Use `events` instead.
17143
17666
  * @enum {string}
17144
17667
  */
17145
- event?: "PostRegister" | "PostSignIn" | "PostSignInAdaptiveMfaTriggered" | "PostResetPassword" | "User.Created" | "User.Deleted" | "User.Data.Updated" | "User.SuspensionStatus.Updated" | "Role.Created" | "Role.Deleted" | "Role.Data.Updated" | "Role.Scopes.Updated" | "Scope.Created" | "Scope.Deleted" | "Scope.Data.Updated" | "Organization.Created" | "Organization.Deleted" | "Organization.Data.Updated" | "Organization.Membership.Updated" | "OrganizationRole.Created" | "OrganizationRole.Deleted" | "OrganizationRole.Data.Updated" | "OrganizationRole.Scopes.Updated" | "OrganizationScope.Created" | "OrganizationScope.Deleted" | "OrganizationScope.Data.Updated" | "Identifier.Lockout";
17668
+ event?: "PostRegister" | "PostSignIn" | "PostSignInAdaptiveMfaTriggered" | "PostResetPassword" | "User.Created" | "User.Deleted" | "User.Data.Updated" | "User.SuspensionStatus.Updated" | "Role.Created" | "Role.Deleted" | "Role.Data.Updated" | "Role.Scopes.Updated" | "Scope.Created" | "Scope.Deleted" | "Scope.Data.Updated" | "Organization.Created" | "Organization.Deleted" | "Organization.Data.Updated" | "Organization.Membership.Updated" | "OrganizationRole.Created" | "OrganizationRole.Deleted" | "OrganizationRole.Data.Updated" | "OrganizationRole.Scopes.Updated" | "OrganizationScope.Created" | "OrganizationScope.Deleted" | "OrganizationScope.Data.Updated" | "Identifier.Lockout" | "Message.RateLimited";
17146
17669
  /** @description An array of hook events. */
17147
- events?: ("PostRegister" | "PostSignIn" | "PostSignInAdaptiveMfaTriggered" | "PostResetPassword" | "User.Created" | "User.Deleted" | "User.Data.Updated" | "User.SuspensionStatus.Updated" | "Role.Created" | "Role.Deleted" | "Role.Data.Updated" | "Role.Scopes.Updated" | "Scope.Created" | "Scope.Deleted" | "Scope.Data.Updated" | "Organization.Created" | "Organization.Deleted" | "Organization.Data.Updated" | "Organization.Membership.Updated" | "OrganizationRole.Created" | "OrganizationRole.Deleted" | "OrganizationRole.Data.Updated" | "OrganizationRole.Scopes.Updated" | "OrganizationScope.Created" | "OrganizationScope.Deleted" | "OrganizationScope.Data.Updated" | "Identifier.Lockout")[];
17670
+ events?: ("PostRegister" | "PostSignIn" | "PostSignInAdaptiveMfaTriggered" | "PostResetPassword" | "User.Created" | "User.Deleted" | "User.Data.Updated" | "User.SuspensionStatus.Updated" | "Role.Created" | "Role.Deleted" | "Role.Data.Updated" | "Role.Scopes.Updated" | "Scope.Created" | "Scope.Deleted" | "Scope.Data.Updated" | "Organization.Created" | "Organization.Deleted" | "Organization.Data.Updated" | "Organization.Membership.Updated" | "OrganizationRole.Created" | "OrganizationRole.Deleted" | "OrganizationRole.Data.Updated" | "OrganizationRole.Scopes.Updated" | "OrganizationScope.Created" | "OrganizationScope.Deleted" | "OrganizationScope.Data.Updated" | "Identifier.Lockout" | "Message.RateLimited")[];
17148
17671
  config: {
17149
17672
  url: string;
17150
17673
  headers?: {
@@ -17173,8 +17696,8 @@ export interface operations {
17173
17696
  id: string;
17174
17697
  name: string;
17175
17698
  /** @enum {string|null} */
17176
- event: "PostRegister" | "PostSignIn" | "PostSignInAdaptiveMfaTriggered" | "PostResetPassword" | "User.Created" | "User.Deleted" | "User.Data.Updated" | "User.SuspensionStatus.Updated" | "Role.Created" | "Role.Deleted" | "Role.Data.Updated" | "Role.Scopes.Updated" | "Scope.Created" | "Scope.Deleted" | "Scope.Data.Updated" | "Organization.Created" | "Organization.Deleted" | "Organization.Data.Updated" | "Organization.Membership.Updated" | "OrganizationRole.Created" | "OrganizationRole.Deleted" | "OrganizationRole.Data.Updated" | "OrganizationRole.Scopes.Updated" | "OrganizationScope.Created" | "OrganizationScope.Deleted" | "OrganizationScope.Data.Updated" | "Identifier.Lockout" | null;
17177
- events: ("PostRegister" | "PostSignIn" | "PostSignInAdaptiveMfaTriggered" | "PostResetPassword" | "User.Created" | "User.Deleted" | "User.Data.Updated" | "User.SuspensionStatus.Updated" | "Role.Created" | "Role.Deleted" | "Role.Data.Updated" | "Role.Scopes.Updated" | "Scope.Created" | "Scope.Deleted" | "Scope.Data.Updated" | "Organization.Created" | "Organization.Deleted" | "Organization.Data.Updated" | "Organization.Membership.Updated" | "OrganizationRole.Created" | "OrganizationRole.Deleted" | "OrganizationRole.Data.Updated" | "OrganizationRole.Scopes.Updated" | "OrganizationScope.Created" | "OrganizationScope.Deleted" | "OrganizationScope.Data.Updated" | "Identifier.Lockout")[];
17699
+ event: "PostRegister" | "PostSignIn" | "PostSignInAdaptiveMfaTriggered" | "PostResetPassword" | "User.Created" | "User.Deleted" | "User.Data.Updated" | "User.SuspensionStatus.Updated" | "Role.Created" | "Role.Deleted" | "Role.Data.Updated" | "Role.Scopes.Updated" | "Scope.Created" | "Scope.Deleted" | "Scope.Data.Updated" | "Organization.Created" | "Organization.Deleted" | "Organization.Data.Updated" | "Organization.Membership.Updated" | "OrganizationRole.Created" | "OrganizationRole.Deleted" | "OrganizationRole.Data.Updated" | "OrganizationRole.Scopes.Updated" | "OrganizationScope.Created" | "OrganizationScope.Deleted" | "OrganizationScope.Data.Updated" | "Identifier.Lockout" | "Message.RateLimited" | null;
17700
+ events: ("PostRegister" | "PostSignIn" | "PostSignInAdaptiveMfaTriggered" | "PostResetPassword" | "User.Created" | "User.Deleted" | "User.Data.Updated" | "User.SuspensionStatus.Updated" | "Role.Created" | "Role.Deleted" | "Role.Data.Updated" | "Role.Scopes.Updated" | "Scope.Created" | "Scope.Deleted" | "Scope.Data.Updated" | "Organization.Created" | "Organization.Deleted" | "Organization.Data.Updated" | "Organization.Membership.Updated" | "OrganizationRole.Created" | "OrganizationRole.Deleted" | "OrganizationRole.Data.Updated" | "OrganizationRole.Scopes.Updated" | "OrganizationScope.Created" | "OrganizationScope.Deleted" | "OrganizationScope.Data.Updated" | "Identifier.Lockout" | "Message.RateLimited")[];
17178
17701
  config: {
17179
17702
  url: string;
17180
17703
  headers?: {
@@ -17237,8 +17760,8 @@ export interface operations {
17237
17760
  id: string;
17238
17761
  name: string;
17239
17762
  /** @enum {string|null} */
17240
- event: "PostRegister" | "PostSignIn" | "PostSignInAdaptiveMfaTriggered" | "PostResetPassword" | "User.Created" | "User.Deleted" | "User.Data.Updated" | "User.SuspensionStatus.Updated" | "Role.Created" | "Role.Deleted" | "Role.Data.Updated" | "Role.Scopes.Updated" | "Scope.Created" | "Scope.Deleted" | "Scope.Data.Updated" | "Organization.Created" | "Organization.Deleted" | "Organization.Data.Updated" | "Organization.Membership.Updated" | "OrganizationRole.Created" | "OrganizationRole.Deleted" | "OrganizationRole.Data.Updated" | "OrganizationRole.Scopes.Updated" | "OrganizationScope.Created" | "OrganizationScope.Deleted" | "OrganizationScope.Data.Updated" | "Identifier.Lockout" | null;
17241
- events: ("PostRegister" | "PostSignIn" | "PostSignInAdaptiveMfaTriggered" | "PostResetPassword" | "User.Created" | "User.Deleted" | "User.Data.Updated" | "User.SuspensionStatus.Updated" | "Role.Created" | "Role.Deleted" | "Role.Data.Updated" | "Role.Scopes.Updated" | "Scope.Created" | "Scope.Deleted" | "Scope.Data.Updated" | "Organization.Created" | "Organization.Deleted" | "Organization.Data.Updated" | "Organization.Membership.Updated" | "OrganizationRole.Created" | "OrganizationRole.Deleted" | "OrganizationRole.Data.Updated" | "OrganizationRole.Scopes.Updated" | "OrganizationScope.Created" | "OrganizationScope.Deleted" | "OrganizationScope.Data.Updated" | "Identifier.Lockout")[];
17763
+ event: "PostRegister" | "PostSignIn" | "PostSignInAdaptiveMfaTriggered" | "PostResetPassword" | "User.Created" | "User.Deleted" | "User.Data.Updated" | "User.SuspensionStatus.Updated" | "Role.Created" | "Role.Deleted" | "Role.Data.Updated" | "Role.Scopes.Updated" | "Scope.Created" | "Scope.Deleted" | "Scope.Data.Updated" | "Organization.Created" | "Organization.Deleted" | "Organization.Data.Updated" | "Organization.Membership.Updated" | "OrganizationRole.Created" | "OrganizationRole.Deleted" | "OrganizationRole.Data.Updated" | "OrganizationRole.Scopes.Updated" | "OrganizationScope.Created" | "OrganizationScope.Deleted" | "OrganizationScope.Data.Updated" | "Identifier.Lockout" | "Message.RateLimited" | null;
17764
+ events: ("PostRegister" | "PostSignIn" | "PostSignInAdaptiveMfaTriggered" | "PostResetPassword" | "User.Created" | "User.Deleted" | "User.Data.Updated" | "User.SuspensionStatus.Updated" | "Role.Created" | "Role.Deleted" | "Role.Data.Updated" | "Role.Scopes.Updated" | "Scope.Created" | "Scope.Deleted" | "Scope.Data.Updated" | "Organization.Created" | "Organization.Deleted" | "Organization.Data.Updated" | "Organization.Membership.Updated" | "OrganizationRole.Created" | "OrganizationRole.Deleted" | "OrganizationRole.Data.Updated" | "OrganizationRole.Scopes.Updated" | "OrganizationScope.Created" | "OrganizationScope.Deleted" | "OrganizationScope.Data.Updated" | "Identifier.Lockout" | "Message.RateLimited")[];
17242
17765
  config: {
17243
17766
  url: string;
17244
17767
  headers?: {
@@ -17356,9 +17879,9 @@ export interface operations {
17356
17879
  * @description Use `events` instead.
17357
17880
  * @enum {string|null}
17358
17881
  */
17359
- event?: "PostRegister" | "PostSignIn" | "PostSignInAdaptiveMfaTriggered" | "PostResetPassword" | "User.Created" | "User.Deleted" | "User.Data.Updated" | "User.SuspensionStatus.Updated" | "Role.Created" | "Role.Deleted" | "Role.Data.Updated" | "Role.Scopes.Updated" | "Scope.Created" | "Scope.Deleted" | "Scope.Data.Updated" | "Organization.Created" | "Organization.Deleted" | "Organization.Data.Updated" | "Organization.Membership.Updated" | "OrganizationRole.Created" | "OrganizationRole.Deleted" | "OrganizationRole.Data.Updated" | "OrganizationRole.Scopes.Updated" | "OrganizationScope.Created" | "OrganizationScope.Deleted" | "OrganizationScope.Data.Updated" | "Identifier.Lockout" | null;
17882
+ event?: "PostRegister" | "PostSignIn" | "PostSignInAdaptiveMfaTriggered" | "PostResetPassword" | "User.Created" | "User.Deleted" | "User.Data.Updated" | "User.SuspensionStatus.Updated" | "Role.Created" | "Role.Deleted" | "Role.Data.Updated" | "Role.Scopes.Updated" | "Scope.Created" | "Scope.Deleted" | "Scope.Data.Updated" | "Organization.Created" | "Organization.Deleted" | "Organization.Data.Updated" | "Organization.Membership.Updated" | "OrganizationRole.Created" | "OrganizationRole.Deleted" | "OrganizationRole.Data.Updated" | "OrganizationRole.Scopes.Updated" | "OrganizationScope.Created" | "OrganizationScope.Deleted" | "OrganizationScope.Data.Updated" | "Identifier.Lockout" | "Message.RateLimited" | null;
17360
17883
  /** @description An array of updated hook events. */
17361
- events?: ("PostRegister" | "PostSignIn" | "PostSignInAdaptiveMfaTriggered" | "PostResetPassword" | "User.Created" | "User.Deleted" | "User.Data.Updated" | "User.SuspensionStatus.Updated" | "Role.Created" | "Role.Deleted" | "Role.Data.Updated" | "Role.Scopes.Updated" | "Scope.Created" | "Scope.Deleted" | "Scope.Data.Updated" | "Organization.Created" | "Organization.Deleted" | "Organization.Data.Updated" | "Organization.Membership.Updated" | "OrganizationRole.Created" | "OrganizationRole.Deleted" | "OrganizationRole.Data.Updated" | "OrganizationRole.Scopes.Updated" | "OrganizationScope.Created" | "OrganizationScope.Deleted" | "OrganizationScope.Data.Updated" | "Identifier.Lockout")[];
17884
+ events?: ("PostRegister" | "PostSignIn" | "PostSignInAdaptiveMfaTriggered" | "PostResetPassword" | "User.Created" | "User.Deleted" | "User.Data.Updated" | "User.SuspensionStatus.Updated" | "Role.Created" | "Role.Deleted" | "Role.Data.Updated" | "Role.Scopes.Updated" | "Scope.Created" | "Scope.Deleted" | "Scope.Data.Updated" | "Organization.Created" | "Organization.Deleted" | "Organization.Data.Updated" | "Organization.Membership.Updated" | "OrganizationRole.Created" | "OrganizationRole.Deleted" | "OrganizationRole.Data.Updated" | "OrganizationRole.Scopes.Updated" | "OrganizationScope.Created" | "OrganizationScope.Deleted" | "OrganizationScope.Data.Updated" | "Identifier.Lockout" | "Message.RateLimited")[];
17362
17885
  config?: {
17363
17886
  url: string;
17364
17887
  headers?: {
@@ -17387,8 +17910,8 @@ export interface operations {
17387
17910
  id: string;
17388
17911
  name: string;
17389
17912
  /** @enum {string|null} */
17390
- event: "PostRegister" | "PostSignIn" | "PostSignInAdaptiveMfaTriggered" | "PostResetPassword" | "User.Created" | "User.Deleted" | "User.Data.Updated" | "User.SuspensionStatus.Updated" | "Role.Created" | "Role.Deleted" | "Role.Data.Updated" | "Role.Scopes.Updated" | "Scope.Created" | "Scope.Deleted" | "Scope.Data.Updated" | "Organization.Created" | "Organization.Deleted" | "Organization.Data.Updated" | "Organization.Membership.Updated" | "OrganizationRole.Created" | "OrganizationRole.Deleted" | "OrganizationRole.Data.Updated" | "OrganizationRole.Scopes.Updated" | "OrganizationScope.Created" | "OrganizationScope.Deleted" | "OrganizationScope.Data.Updated" | "Identifier.Lockout" | null;
17391
- events: ("PostRegister" | "PostSignIn" | "PostSignInAdaptiveMfaTriggered" | "PostResetPassword" | "User.Created" | "User.Deleted" | "User.Data.Updated" | "User.SuspensionStatus.Updated" | "Role.Created" | "Role.Deleted" | "Role.Data.Updated" | "Role.Scopes.Updated" | "Scope.Created" | "Scope.Deleted" | "Scope.Data.Updated" | "Organization.Created" | "Organization.Deleted" | "Organization.Data.Updated" | "Organization.Membership.Updated" | "OrganizationRole.Created" | "OrganizationRole.Deleted" | "OrganizationRole.Data.Updated" | "OrganizationRole.Scopes.Updated" | "OrganizationScope.Created" | "OrganizationScope.Deleted" | "OrganizationScope.Data.Updated" | "Identifier.Lockout")[];
17913
+ event: "PostRegister" | "PostSignIn" | "PostSignInAdaptiveMfaTriggered" | "PostResetPassword" | "User.Created" | "User.Deleted" | "User.Data.Updated" | "User.SuspensionStatus.Updated" | "Role.Created" | "Role.Deleted" | "Role.Data.Updated" | "Role.Scopes.Updated" | "Scope.Created" | "Scope.Deleted" | "Scope.Data.Updated" | "Organization.Created" | "Organization.Deleted" | "Organization.Data.Updated" | "Organization.Membership.Updated" | "OrganizationRole.Created" | "OrganizationRole.Deleted" | "OrganizationRole.Data.Updated" | "OrganizationRole.Scopes.Updated" | "OrganizationScope.Created" | "OrganizationScope.Deleted" | "OrganizationScope.Data.Updated" | "Identifier.Lockout" | "Message.RateLimited" | null;
17914
+ events: ("PostRegister" | "PostSignIn" | "PostSignInAdaptiveMfaTriggered" | "PostResetPassword" | "User.Created" | "User.Deleted" | "User.Data.Updated" | "User.SuspensionStatus.Updated" | "Role.Created" | "Role.Deleted" | "Role.Data.Updated" | "Role.Scopes.Updated" | "Scope.Created" | "Scope.Deleted" | "Scope.Data.Updated" | "Organization.Created" | "Organization.Deleted" | "Organization.Data.Updated" | "Organization.Membership.Updated" | "OrganizationRole.Created" | "OrganizationRole.Deleted" | "OrganizationRole.Data.Updated" | "OrganizationRole.Scopes.Updated" | "OrganizationScope.Created" | "OrganizationScope.Deleted" | "OrganizationScope.Data.Updated" | "Identifier.Lockout" | "Message.RateLimited")[];
17392
17915
  config: {
17393
17916
  url: string;
17394
17917
  headers?: {
@@ -17554,7 +18077,7 @@ export interface operations {
17554
18077
  content: {
17555
18078
  "application/json": {
17556
18079
  /** @description An array of hook events for testing. */
17557
- events: ("PostRegister" | "PostSignIn" | "PostSignInAdaptiveMfaTriggered" | "PostResetPassword" | "User.Created" | "User.Deleted" | "User.Data.Updated" | "User.SuspensionStatus.Updated" | "Role.Created" | "Role.Deleted" | "Role.Data.Updated" | "Role.Scopes.Updated" | "Scope.Created" | "Scope.Deleted" | "Scope.Data.Updated" | "Organization.Created" | "Organization.Deleted" | "Organization.Data.Updated" | "Organization.Membership.Updated" | "OrganizationRole.Created" | "OrganizationRole.Deleted" | "OrganizationRole.Data.Updated" | "OrganizationRole.Scopes.Updated" | "OrganizationScope.Created" | "OrganizationScope.Deleted" | "OrganizationScope.Data.Updated" | "Identifier.Lockout")[];
18080
+ events: ("PostRegister" | "PostSignIn" | "PostSignInAdaptiveMfaTriggered" | "PostResetPassword" | "User.Created" | "User.Deleted" | "User.Data.Updated" | "User.SuspensionStatus.Updated" | "Role.Created" | "Role.Deleted" | "Role.Data.Updated" | "Role.Scopes.Updated" | "Scope.Created" | "Scope.Deleted" | "Scope.Data.Updated" | "Organization.Created" | "Organization.Deleted" | "Organization.Data.Updated" | "Organization.Membership.Updated" | "OrganizationRole.Created" | "OrganizationRole.Deleted" | "OrganizationRole.Data.Updated" | "OrganizationRole.Scopes.Updated" | "OrganizationScope.Created" | "OrganizationScope.Deleted" | "OrganizationScope.Data.Updated" | "Identifier.Lockout" | "Message.RateLimited")[];
17558
18081
  /** @description The hook configuration for testing. */
17559
18082
  config: {
17560
18083
  url: string;
@@ -17643,8 +18166,8 @@ export interface operations {
17643
18166
  id: string;
17644
18167
  name: string;
17645
18168
  /** @enum {string|null} */
17646
- event: "PostRegister" | "PostSignIn" | "PostSignInAdaptiveMfaTriggered" | "PostResetPassword" | "User.Created" | "User.Deleted" | "User.Data.Updated" | "User.SuspensionStatus.Updated" | "Role.Created" | "Role.Deleted" | "Role.Data.Updated" | "Role.Scopes.Updated" | "Scope.Created" | "Scope.Deleted" | "Scope.Data.Updated" | "Organization.Created" | "Organization.Deleted" | "Organization.Data.Updated" | "Organization.Membership.Updated" | "OrganizationRole.Created" | "OrganizationRole.Deleted" | "OrganizationRole.Data.Updated" | "OrganizationRole.Scopes.Updated" | "OrganizationScope.Created" | "OrganizationScope.Deleted" | "OrganizationScope.Data.Updated" | "Identifier.Lockout" | null;
17647
- events: ("PostRegister" | "PostSignIn" | "PostSignInAdaptiveMfaTriggered" | "PostResetPassword" | "User.Created" | "User.Deleted" | "User.Data.Updated" | "User.SuspensionStatus.Updated" | "Role.Created" | "Role.Deleted" | "Role.Data.Updated" | "Role.Scopes.Updated" | "Scope.Created" | "Scope.Deleted" | "Scope.Data.Updated" | "Organization.Created" | "Organization.Deleted" | "Organization.Data.Updated" | "Organization.Membership.Updated" | "OrganizationRole.Created" | "OrganizationRole.Deleted" | "OrganizationRole.Data.Updated" | "OrganizationRole.Scopes.Updated" | "OrganizationScope.Created" | "OrganizationScope.Deleted" | "OrganizationScope.Data.Updated" | "Identifier.Lockout")[];
18169
+ event: "PostRegister" | "PostSignIn" | "PostSignInAdaptiveMfaTriggered" | "PostResetPassword" | "User.Created" | "User.Deleted" | "User.Data.Updated" | "User.SuspensionStatus.Updated" | "Role.Created" | "Role.Deleted" | "Role.Data.Updated" | "Role.Scopes.Updated" | "Scope.Created" | "Scope.Deleted" | "Scope.Data.Updated" | "Organization.Created" | "Organization.Deleted" | "Organization.Data.Updated" | "Organization.Membership.Updated" | "OrganizationRole.Created" | "OrganizationRole.Deleted" | "OrganizationRole.Data.Updated" | "OrganizationRole.Scopes.Updated" | "OrganizationScope.Created" | "OrganizationScope.Deleted" | "OrganizationScope.Data.Updated" | "Identifier.Lockout" | "Message.RateLimited" | null;
18170
+ events: ("PostRegister" | "PostSignIn" | "PostSignInAdaptiveMfaTriggered" | "PostResetPassword" | "User.Created" | "User.Deleted" | "User.Data.Updated" | "User.SuspensionStatus.Updated" | "Role.Created" | "Role.Deleted" | "Role.Data.Updated" | "Role.Scopes.Updated" | "Scope.Created" | "Scope.Deleted" | "Scope.Data.Updated" | "Organization.Created" | "Organization.Deleted" | "Organization.Data.Updated" | "Organization.Membership.Updated" | "OrganizationRole.Created" | "OrganizationRole.Deleted" | "OrganizationRole.Data.Updated" | "OrganizationRole.Scopes.Updated" | "OrganizationScope.Created" | "OrganizationScope.Deleted" | "OrganizationScope.Data.Updated" | "Identifier.Lockout" | "Message.RateLimited")[];
17648
18171
  config: {
17649
18172
  url: string;
17650
18173
  headers?: {
@@ -17735,6 +18258,13 @@ export interface operations {
17735
18258
  };
17736
18259
  content?: never;
17737
18260
  };
18261
+ /** @description Too Many Requests */
18262
+ 429: {
18263
+ headers: {
18264
+ [name: string]: unknown;
18265
+ };
18266
+ content?: never;
18267
+ };
17738
18268
  /** @description Not Implemented */
17739
18269
  501: {
17740
18270
  headers: {
@@ -17814,6 +18344,7 @@ export interface operations {
17814
18344
  status: string;
17815
18345
  allowUploadMimeTypes?: ("image/jpeg" | "image/png" | "image/gif" | "image/vnd.microsoft.icon" | "image/x-icon" | "image/svg+xml" | "image/tiff" | "image/webp" | "image/bmp" | "application/zip")[];
17816
18346
  maxUploadFileSize?: number;
18347
+ isExperienceAvatarUploadEnabled?: boolean;
17817
18348
  };
17818
18349
  };
17819
18350
  };
@@ -19498,6 +20029,13 @@ export interface operations {
19498
20029
  };
19499
20030
  content?: never;
19500
20031
  };
20032
+ /** @description Too Many Requests */
20033
+ 429: {
20034
+ headers: {
20035
+ [name: string]: unknown;
20036
+ };
20037
+ content?: never;
20038
+ };
19501
20039
  /** @description No email connector is configured for the tenant. */
19502
20040
  501: {
19503
20041
  headers: {
@@ -19557,6 +20095,13 @@ export interface operations {
19557
20095
  };
19558
20096
  content?: never;
19559
20097
  };
20098
+ /** @description Too Many Requests */
20099
+ 429: {
20100
+ headers: {
20101
+ [name: string]: unknown;
20102
+ };
20103
+ content?: never;
20104
+ };
19560
20105
  };
19561
20106
  };
19562
20107
  ReplaceOrganizationInvitationStatus: {
@@ -20083,6 +20628,10 @@ export interface operations {
20083
20628
  *
20084
20629
  * If not provided, all users will be returned. */
20085
20630
  q?: string;
20631
+ /** @description The organization role ID used to filter organization members.
20632
+ *
20633
+ * If not provided, all organization members will be returned. */
20634
+ organizationRoleId?: string;
20086
20635
  /** @description Page number (starts from 1). */
20087
20636
  page?: number;
20088
20637
  /** @description Entries per page. */
@@ -22596,6 +23145,8 @@ export interface operations {
22596
23145
  /** @enum {string} */
22597
23146
  mfa?: "Off" | "ReadOnly" | "Edit";
22598
23147
  /** @enum {string} */
23148
+ passkey?: "Off" | "ReadOnly" | "Edit";
23149
+ /** @enum {string} */
22599
23150
  session?: "Off" | "ReadOnly" | "Edit";
22600
23151
  };
22601
23152
  webauthnRelatedOrigins: string[];
@@ -22658,6 +23209,8 @@ export interface operations {
22658
23209
  /** @enum {string} */
22659
23210
  mfa?: "Off" | "ReadOnly" | "Edit";
22660
23211
  /** @enum {string} */
23212
+ passkey?: "Off" | "ReadOnly" | "Edit";
23213
+ /** @enum {string} */
22661
23214
  session?: "Off" | "ReadOnly" | "Edit";
22662
23215
  };
22663
23216
  /** @description The allowed domains for webauthn. */
@@ -22707,6 +23260,8 @@ export interface operations {
22707
23260
  /** @enum {string} */
22708
23261
  mfa?: "Off" | "ReadOnly" | "Edit";
22709
23262
  /** @enum {string} */
23263
+ passkey?: "Off" | "ReadOnly" | "Edit";
23264
+ /** @enum {string} */
22710
23265
  session?: "Off" | "ReadOnly" | "Edit";
22711
23266
  };
22712
23267
  webauthnRelatedOrigins: string[];
@@ -23096,6 +23651,8 @@ export interface operations {
23096
23651
  customData?: {
23097
23652
  [key: string]: unknown;
23098
23653
  };
23654
+ /** @description Whether app-level access control is enabled for this application. */
23655
+ appLevelAccessControlEnabled?: boolean;
23099
23656
  attributeMapping?: {
23100
23657
  sub?: string;
23101
23658
  name?: string;
@@ -25751,6 +26308,10 @@ export interface operations {
25751
26308
  blockSubaddressing?: boolean;
25752
26309
  customBlocklist?: string[];
25753
26310
  };
26311
+ verificationCodePolicy: {
26312
+ expirationDuration?: number;
26313
+ maxRetryAttempts?: number;
26314
+ };
25754
26315
  passkeySignIn: {
25755
26316
  enabled?: boolean;
25756
26317
  showPasskeyButton?: boolean;
@@ -25759,6 +26320,19 @@ export interface operations {
25759
26320
  signUpProfileFields: {
25760
26321
  name: string;
25761
26322
  }[] | null;
26323
+ passwordExpiration: {
26324
+ /** Format: false */
26325
+ enabled?: boolean;
26326
+ } | {
26327
+ /** Format: true */
26328
+ enabled: boolean;
26329
+ validPeriodDays: number;
26330
+ enabledAt?: number;
26331
+ };
26332
+ /** @description Validator function */
26333
+ usernamePolicy: {
26334
+ [key: string]: unknown;
26335
+ };
25762
26336
  socialConnectors: {
25763
26337
  id: string;
25764
26338
  target: string;
@@ -26081,6 +26655,10 @@ export interface operations {
26081
26655
  blockSubaddressing?: boolean;
26082
26656
  customBlocklist?: string[];
26083
26657
  };
26658
+ verificationCodePolicy: {
26659
+ expirationDuration?: number;
26660
+ maxRetryAttempts?: number;
26661
+ };
26084
26662
  passkeySignIn: {
26085
26663
  enabled?: boolean;
26086
26664
  showPasskeyButton?: boolean;
@@ -26089,6 +26667,19 @@ export interface operations {
26089
26667
  signUpProfileFields: {
26090
26668
  name: string;
26091
26669
  }[] | null;
26670
+ passwordExpiration: {
26671
+ /** Format: false */
26672
+ enabled?: boolean;
26673
+ } | {
26674
+ /** Format: true */
26675
+ enabled: boolean;
26676
+ validPeriodDays: number;
26677
+ enabledAt?: number;
26678
+ };
26679
+ /** @description Validator function */
26680
+ usernamePolicy: {
26681
+ [key: string]: unknown;
26682
+ };
26092
26683
  socialConnectors: {
26093
26684
  id: string;
26094
26685
  target: string;
@@ -26282,6 +26873,8 @@ export interface operations {
26282
26873
  /** @enum {string} */
26283
26874
  mfa?: "Off" | "ReadOnly" | "Edit";
26284
26875
  /** @enum {string} */
26876
+ passkey?: "Off" | "ReadOnly" | "Edit";
26877
+ /** @enum {string} */
26285
26878
  session?: "Off" | "ReadOnly" | "Edit";
26286
26879
  };
26287
26880
  webauthnRelatedOrigins: string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@logto/api",
3
- "version": "1.40.1",
3
+ "version": "1.41.0",
4
4
  "description": "Logto API types and clients.",
5
5
  "author": "Silverhand Inc. <contact@silverhand.io>",
6
6
  "homepage": "https://github.com/logto-io/logto#readme",
@@ -35,13 +35,13 @@
35
35
  "devDependencies": {
36
36
  "@silverhand/eslint-config": "6.0.1",
37
37
  "@silverhand/ts-config": "6.0.0",
38
- "@vitest/coverage-v8": "^3.1.1",
38
+ "@vitest/coverage-v8": "^4.1.8",
39
39
  "eslint": "^8.57.0",
40
40
  "lint-staged": "^15.0.0",
41
41
  "openapi-typescript": "^7.8.0",
42
42
  "prettier": "^3.5.3",
43
43
  "typescript": "^5.5.3",
44
- "vitest": "^3.1.1"
44
+ "vitest": "^4.1.8"
45
45
  },
46
46
  "eslintConfig": {
47
47
  "ignorePatterns": [