@wix/identity 1.0.86 → 1.0.88

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.
@@ -65,6 +65,8 @@ interface IdentityProfile$5 {
65
65
  position?: string | null;
66
66
  /** Profile birthdate - ISO-8601 extended local date format (YYYY-MM-DD). */
67
67
  birthdate?: string | null;
68
+ /** slug */
69
+ slug?: string | null;
68
70
  }
69
71
  declare enum PrivacyStatus$5 {
70
72
  UNDEFINED = "UNDEFINED",
@@ -181,7 +183,9 @@ interface CaptchaTokenTokenOneOf$1 {
181
183
  InvisibleRecaptcha?: string;
182
184
  NoCaptcha?: string;
183
185
  }
184
- interface StateMachineResponse$5 {
186
+ interface StateMachineResponse$5 extends StateMachineResponseStateDataOneOf$5 {
187
+ requireMfaData?: RequireMfaData$5;
188
+ mfaChallengeData?: MfaChallengeData$5;
185
189
  /** The current state of the login or registration process. */
186
190
  state?: StateType$5;
187
191
  /** If state is `SUCCESS`, a session token. */
@@ -193,6 +197,11 @@ interface StateMachineResponse$5 {
193
197
  /** additional_data = 5; //TBD */
194
198
  additionalData?: Record<string, CustomValue$5>;
195
199
  }
200
+ /** @oneof */
201
+ interface StateMachineResponseStateDataOneOf$5 {
202
+ requireMfaData?: RequireMfaData$5;
203
+ mfaChallengeData?: MfaChallengeData$5;
204
+ }
196
205
  declare enum StateType$5 {
197
206
  /** Initial unknown state. */
198
207
  UNKNOWN_STATE = "UNKNOWN_STATE",
@@ -207,18 +216,12 @@ declare enum StateType$5 {
207
216
  REQUIRE_EMAIL_VERIFICATION = "REQUIRE_EMAIL_VERIFICATION",
208
217
  /** State that indicates checking that the status is not one of the `invalidStates` before proceeding. */
209
218
  STATUS_CHECK = "STATUS_CHECK",
210
- REQUIRE_MFA = "REQUIRE_MFA"
219
+ REQUIRE_MFA = "REQUIRE_MFA",
220
+ MFA_CHALLENGE = "MFA_CHALLENGE"
211
221
  }
212
222
  interface Identity$5 {
213
223
  /** Identity ID */
214
224
  id?: string | null;
215
- /**
216
- * Identifiers
217
- * @deprecated Identifiers
218
- * @replacedBy email
219
- * @targetRemovalDate 2023-05-01
220
- */
221
- identifiers?: Identifier$5[];
222
225
  /**
223
226
  * Represents the current state of an item. Each time the item is modified, its `revision` changes.
224
227
  * For an update operation to succeed, you MUST pass the latest revision.
@@ -244,7 +247,7 @@ interface Identity$5 {
244
247
  */
245
248
  metadata?: Metadata$5;
246
249
  /** Identity email address. */
247
- email?: Email$5;
250
+ email?: Email$7;
248
251
  /** Identity's current status. */
249
252
  status?: StatusV2$5;
250
253
  /** filled by pre registered spi */
@@ -255,15 +258,6 @@ interface Identity$5 {
255
258
  */
256
259
  factors?: Factor$5[];
257
260
  }
258
- interface Identifier$5 extends IdentifierValueOneOf$5 {
259
- email?: string;
260
- userName?: string;
261
- }
262
- /** @oneof */
263
- interface IdentifierValueOneOf$5 {
264
- email?: string;
265
- userName?: string;
266
- }
267
261
  interface Connection$5 extends ConnectionTypeOneOf$5 {
268
262
  /** IDP connection. */
269
263
  idpConnection?: IdpConnection$5;
@@ -296,7 +290,7 @@ interface Metadata$5 {
296
290
  */
297
291
  tags?: string[];
298
292
  }
299
- interface Email$5 {
293
+ interface Email$7 {
300
294
  address?: string;
301
295
  isVerified?: boolean;
302
296
  }
@@ -375,6 +369,20 @@ interface MapValue$5 {
375
369
  /** Mapped custom value. */
376
370
  value?: Record<string, CustomValue$5>;
377
371
  }
372
+ interface RequireMfaData$5 {
373
+ availableFactors?: V1Factor$5[];
374
+ }
375
+ interface V1Factor$5 {
376
+ factorType?: FactorType$5;
377
+ }
378
+ interface MfaChallengeData$5 {
379
+ factorType?: FactorType$5;
380
+ verificationChallengeData?: VerificationChallenge$5;
381
+ availableFactors?: V1Factor$5[];
382
+ }
383
+ interface VerificationChallenge$5 {
384
+ hint?: string | null;
385
+ }
378
386
  interface LoginV2Request$1 {
379
387
  /** Identifier of identity logging in. */
380
388
  loginId: LoginId$1;
@@ -424,23 +432,6 @@ interface HeadersEntry$3 {
424
432
  key?: string;
425
433
  value?: string;
426
434
  }
427
- interface RawHttpRequest$3 {
428
- body?: Uint8Array;
429
- pathParams?: PathParametersEntry$3[];
430
- queryParams?: QueryParametersEntry$3[];
431
- headers?: HeadersEntry$3[];
432
- method?: string;
433
- rawPath?: string;
434
- rawQuery?: string;
435
- }
436
- interface PathParametersEntry$3 {
437
- key?: string;
438
- value?: string;
439
- }
440
- interface QueryParametersEntry$3 {
441
- key?: string;
442
- value?: string;
443
- }
444
435
  interface LoginCallbackRequest$1 {
445
436
  /** state that that received on the redirect */
446
437
  state?: string;
@@ -476,9 +467,35 @@ interface LogoutRequest$1 {
476
467
  /** caller identifier */
477
468
  clientId?: string | null;
478
469
  }
479
- interface IdentifierNonNullableFields$5 {
480
- email: string;
481
- userName: string;
470
+ interface VerifyRequest$1 extends VerifyRequestFactorDataOneOf$1 {
471
+ smsData?: OtpVerificationData$1;
472
+ callData?: OtpVerificationData$1;
473
+ emailData?: OtpVerificationData$1;
474
+ totpData?: OtpVerificationData$1;
475
+ /** TODO: is this a reasonable maxLength? */
476
+ stateToken?: string;
477
+ factorType: FactorType$5;
478
+ rememberThisDevice?: boolean;
479
+ }
480
+ /** @oneof */
481
+ interface VerifyRequestFactorDataOneOf$1 {
482
+ smsData?: OtpVerificationData$1;
483
+ callData?: OtpVerificationData$1;
484
+ emailData?: OtpVerificationData$1;
485
+ totpData?: OtpVerificationData$1;
486
+ }
487
+ interface OtpVerificationData$1 {
488
+ code?: string | null;
489
+ }
490
+ interface V1FactorNonNullableFields$5 {
491
+ factorType: FactorType$5;
492
+ }
493
+ interface RequireMfaDataNonNullableFields$5 {
494
+ availableFactors: V1FactorNonNullableFields$5[];
495
+ }
496
+ interface MfaChallengeDataNonNullableFields$5 {
497
+ factorType: FactorType$5;
498
+ availableFactors: V1FactorNonNullableFields$5[];
482
499
  }
483
500
  interface IdpConnectionNonNullableFields$5 {
484
501
  idpConnectionId: string;
@@ -542,7 +559,6 @@ interface FactorNonNullableFields$5 {
542
559
  status: Status$5;
543
560
  }
544
561
  interface IdentityNonNullableFields$5 {
545
- identifiers: IdentifierNonNullableFields$5[];
546
562
  connections: ConnectionNonNullableFields$5[];
547
563
  identityProfile?: IdentityProfileNonNullableFields$5;
548
564
  metadata?: MetadataNonNullableFields$5;
@@ -551,6 +567,8 @@ interface IdentityNonNullableFields$5 {
551
567
  factors: FactorNonNullableFields$5[];
552
568
  }
553
569
  interface StateMachineResponseNonNullableFields$5 {
570
+ requireMfaData?: RequireMfaDataNonNullableFields$5;
571
+ mfaChallengeData?: MfaChallengeDataNonNullableFields$5;
554
572
  state: StateType$5;
555
573
  identity?: IdentityNonNullableFields$5;
556
574
  }
@@ -634,6 +652,8 @@ interface IdentityProfile$4 {
634
652
  position?: string | null;
635
653
  /** Profile birthdate - ISO-8601 extended local date format (YYYY-MM-DD). */
636
654
  birthdate?: string | null;
655
+ /** slug */
656
+ slug?: string | null;
637
657
  }
638
658
  declare enum PrivacyStatus$4 {
639
659
  UNDEFINED = "UNDEFINED",
@@ -750,7 +770,9 @@ interface CaptchaTokenTokenOneOf {
750
770
  InvisibleRecaptcha?: string;
751
771
  NoCaptcha?: string;
752
772
  }
753
- interface StateMachineResponse$4 {
773
+ interface StateMachineResponse$4 extends StateMachineResponseStateDataOneOf$4 {
774
+ requireMfaData?: RequireMfaData$4;
775
+ mfaChallengeData?: MfaChallengeData$4;
754
776
  /** The current state of the login or registration process. */
755
777
  state?: StateType$4;
756
778
  /** If state is `SUCCESS`, a session token. */
@@ -762,6 +784,11 @@ interface StateMachineResponse$4 {
762
784
  /** additional_data = 5; //TBD */
763
785
  additionalData?: Record<string, CustomValue$4>;
764
786
  }
787
+ /** @oneof */
788
+ interface StateMachineResponseStateDataOneOf$4 {
789
+ requireMfaData?: RequireMfaData$4;
790
+ mfaChallengeData?: MfaChallengeData$4;
791
+ }
765
792
  declare enum StateType$4 {
766
793
  /** Initial unknown state. */
767
794
  UNKNOWN_STATE = "UNKNOWN_STATE",
@@ -776,18 +803,12 @@ declare enum StateType$4 {
776
803
  REQUIRE_EMAIL_VERIFICATION = "REQUIRE_EMAIL_VERIFICATION",
777
804
  /** State that indicates checking that the status is not one of the `invalidStates` before proceeding. */
778
805
  STATUS_CHECK = "STATUS_CHECK",
779
- REQUIRE_MFA = "REQUIRE_MFA"
806
+ REQUIRE_MFA = "REQUIRE_MFA",
807
+ MFA_CHALLENGE = "MFA_CHALLENGE"
780
808
  }
781
809
  interface Identity$4 {
782
810
  /** Identity ID */
783
811
  _id?: string | null;
784
- /**
785
- * Identifiers
786
- * @deprecated Identifiers
787
- * @replacedBy email
788
- * @targetRemovalDate 2023-05-01
789
- */
790
- identifiers?: Identifier$4[];
791
812
  /**
792
813
  * Represents the current state of an item. Each time the item is modified, its `revision` changes.
793
814
  * For an update operation to succeed, you MUST pass the latest revision.
@@ -813,7 +834,7 @@ interface Identity$4 {
813
834
  */
814
835
  metadata?: Metadata$4;
815
836
  /** Identity email address. */
816
- email?: Email$4;
837
+ email?: Email$6;
817
838
  /** Identity's current status. */
818
839
  status?: StatusV2$4;
819
840
  /** filled by pre registered spi */
@@ -824,15 +845,6 @@ interface Identity$4 {
824
845
  */
825
846
  factors?: Factor$4[];
826
847
  }
827
- interface Identifier$4 extends IdentifierValueOneOf$4 {
828
- email?: string;
829
- userName?: string;
830
- }
831
- /** @oneof */
832
- interface IdentifierValueOneOf$4 {
833
- email?: string;
834
- userName?: string;
835
- }
836
848
  interface Connection$4 extends ConnectionTypeOneOf$4 {
837
849
  /** IDP connection. */
838
850
  idpConnection?: IdpConnection$4;
@@ -865,7 +877,7 @@ interface Metadata$4 {
865
877
  */
866
878
  tags?: string[];
867
879
  }
868
- interface Email$4 {
880
+ interface Email$6 {
869
881
  address?: string;
870
882
  isVerified?: boolean;
871
883
  }
@@ -944,6 +956,20 @@ interface MapValue$4 {
944
956
  /** Mapped custom value. */
945
957
  value?: Record<string, CustomValue$4>;
946
958
  }
959
+ interface RequireMfaData$4 {
960
+ availableFactors?: V1Factor$4[];
961
+ }
962
+ interface V1Factor$4 {
963
+ factorType?: FactorType$4;
964
+ }
965
+ interface MfaChallengeData$4 {
966
+ factorType?: FactorType$4;
967
+ verificationChallengeData?: VerificationChallenge$4;
968
+ availableFactors?: V1Factor$4[];
969
+ }
970
+ interface VerificationChallenge$4 {
971
+ hint?: string | null;
972
+ }
947
973
  interface LoginV2Request {
948
974
  /** Identifier of identity logging in. */
949
975
  loginId: LoginId;
@@ -993,23 +1019,6 @@ interface HeadersEntry$2 {
993
1019
  key?: string;
994
1020
  value?: string;
995
1021
  }
996
- interface RawHttpRequest$2 {
997
- body?: Uint8Array;
998
- pathParams?: PathParametersEntry$2[];
999
- queryParams?: QueryParametersEntry$2[];
1000
- headers?: HeadersEntry$2[];
1001
- method?: string;
1002
- rawPath?: string;
1003
- rawQuery?: string;
1004
- }
1005
- interface PathParametersEntry$2 {
1006
- key?: string;
1007
- value?: string;
1008
- }
1009
- interface QueryParametersEntry$2 {
1010
- key?: string;
1011
- value?: string;
1012
- }
1013
1022
  interface LoginCallbackRequest {
1014
1023
  /** state that that received on the redirect */
1015
1024
  state?: string;
@@ -1045,9 +1054,35 @@ interface LogoutRequest {
1045
1054
  /** caller identifier */
1046
1055
  clientId?: string | null;
1047
1056
  }
1048
- interface IdentifierNonNullableFields$4 {
1049
- email: string;
1050
- userName: string;
1057
+ interface VerifyRequest extends VerifyRequestFactorDataOneOf {
1058
+ smsData?: OtpVerificationData;
1059
+ callData?: OtpVerificationData;
1060
+ emailData?: OtpVerificationData;
1061
+ totpData?: OtpVerificationData;
1062
+ /** TODO: is this a reasonable maxLength? */
1063
+ stateToken?: string;
1064
+ factorType: FactorType$4;
1065
+ rememberThisDevice?: boolean;
1066
+ }
1067
+ /** @oneof */
1068
+ interface VerifyRequestFactorDataOneOf {
1069
+ smsData?: OtpVerificationData;
1070
+ callData?: OtpVerificationData;
1071
+ emailData?: OtpVerificationData;
1072
+ totpData?: OtpVerificationData;
1073
+ }
1074
+ interface OtpVerificationData {
1075
+ code?: string | null;
1076
+ }
1077
+ interface V1FactorNonNullableFields$4 {
1078
+ factorType: FactorType$4;
1079
+ }
1080
+ interface RequireMfaDataNonNullableFields$4 {
1081
+ availableFactors: V1FactorNonNullableFields$4[];
1082
+ }
1083
+ interface MfaChallengeDataNonNullableFields$4 {
1084
+ factorType: FactorType$4;
1085
+ availableFactors: V1FactorNonNullableFields$4[];
1051
1086
  }
1052
1087
  interface IdpConnectionNonNullableFields$4 {
1053
1088
  idpConnectionId: string;
@@ -1111,7 +1146,6 @@ interface FactorNonNullableFields$4 {
1111
1146
  status: Status$4;
1112
1147
  }
1113
1148
  interface IdentityNonNullableFields$4 {
1114
- identifiers: IdentifierNonNullableFields$4[];
1115
1149
  connections: ConnectionNonNullableFields$4[];
1116
1150
  identityProfile?: IdentityProfileNonNullableFields$4;
1117
1151
  metadata?: MetadataNonNullableFields$4;
@@ -1120,6 +1154,8 @@ interface IdentityNonNullableFields$4 {
1120
1154
  factors: FactorNonNullableFields$4[];
1121
1155
  }
1122
1156
  interface StateMachineResponseNonNullableFields$4 {
1157
+ requireMfaData?: RequireMfaDataNonNullableFields$4;
1158
+ mfaChallengeData?: MfaChallengeDataNonNullableFields$4;
1123
1159
  state: StateType$4;
1124
1160
  identity?: IdentityNonNullableFields$4;
1125
1161
  }
@@ -1136,7 +1172,7 @@ interface SignOnResponseNonNullableFields {
1136
1172
  identity?: IdentityNonNullableFields$4;
1137
1173
  }
1138
1174
 
1139
- type __PublicMethodMetaInfo$6<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
1175
+ type __PublicMethodMetaInfo$7<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
1140
1176
  getUrl: (context: any) => string;
1141
1177
  httpMethod: K;
1142
1178
  path: string;
@@ -1146,34 +1182,32 @@ type __PublicMethodMetaInfo$6<K = string, M = unknown, T = unknown, S = unknown,
1146
1182
  __responseType: Q;
1147
1183
  __originalResponseType: R;
1148
1184
  };
1149
- declare function registerV2(): __PublicMethodMetaInfo$6<'POST', {}, RegisterV2Request, RegisterV2Request$1, StateMachineResponse$4 & StateMachineResponseNonNullableFields$4, StateMachineResponse$5 & StateMachineResponseNonNullableFields$5>;
1150
- declare function loginV2(): __PublicMethodMetaInfo$6<'POST', {}, LoginV2Request, LoginV2Request$1, StateMachineResponse$4 & StateMachineResponseNonNullableFields$4, StateMachineResponse$5 & StateMachineResponseNonNullableFields$5>;
1151
- declare function changePassword(): __PublicMethodMetaInfo$6<'POST', {}, ChangePasswordRequest, ChangePasswordRequest$1, ChangePasswordResponse, ChangePasswordResponse$1>;
1152
- declare function loginWithIdpConnection(): __PublicMethodMetaInfo$6<'GET', {
1185
+ declare function registerV2(): __PublicMethodMetaInfo$7<'POST', {}, RegisterV2Request, RegisterV2Request$1, StateMachineResponse$4 & StateMachineResponseNonNullableFields$4, StateMachineResponse$5 & StateMachineResponseNonNullableFields$5>;
1186
+ declare function loginV2(): __PublicMethodMetaInfo$7<'POST', {}, LoginV2Request, LoginV2Request$1, StateMachineResponse$4 & StateMachineResponseNonNullableFields$4, StateMachineResponse$5 & StateMachineResponseNonNullableFields$5>;
1187
+ declare function changePassword(): __PublicMethodMetaInfo$7<'POST', {}, ChangePasswordRequest, ChangePasswordRequest$1, ChangePasswordResponse, ChangePasswordResponse$1>;
1188
+ declare function loginWithIdpConnection(): __PublicMethodMetaInfo$7<'GET', {
1153
1189
  tenantId: string;
1154
1190
  idpConnectionId: string;
1155
1191
  }, LoginWithIdpConnectionRequest, LoginWithIdpConnectionRequest$1, RawHttpResponse$2 & RawHttpResponseNonNullableFields$2, RawHttpResponse$3 & RawHttpResponseNonNullableFields$3>;
1156
- declare function loginWithIdpConnectionCallback(): __PublicMethodMetaInfo$6<'GET', {
1157
- tenantType: string;
1158
- tenantId: string;
1159
- idpConnectionId: string;
1160
- }, RawHttpRequest$2, RawHttpRequest$3, RawHttpResponse$2 & RawHttpResponseNonNullableFields$2, RawHttpResponse$3 & RawHttpResponseNonNullableFields$3>;
1161
- declare function loginCallback(): __PublicMethodMetaInfo$6<'GET', {}, LoginCallbackRequest, LoginCallbackRequest$1, RawHttpResponse$2 & RawHttpResponseNonNullableFields$2, RawHttpResponse$3 & RawHttpResponseNonNullableFields$3>;
1162
- declare function loginWithIdpConnectionTokenParams(): __PublicMethodMetaInfo$6<'POST', {}, LoginWithIdpConnectionTokenParamsRequest, LoginWithIdpConnectionTokenParamsRequest$1, StateMachineResponse$4 & StateMachineResponseNonNullableFields$4, StateMachineResponse$5 & StateMachineResponseNonNullableFields$5>;
1163
- declare function signOn(): __PublicMethodMetaInfo$6<'POST', {}, SignOnRequest, SignOnRequest$1, SignOnResponse & SignOnResponseNonNullableFields, SignOnResponse$1 & SignOnResponseNonNullableFields$1>;
1164
- declare function logout(): __PublicMethodMetaInfo$6<'GET', {}, LogoutRequest, LogoutRequest$1, RawHttpResponse$2 & RawHttpResponseNonNullableFields$2, RawHttpResponse$3 & RawHttpResponseNonNullableFields$3>;
1192
+ declare function loginCallback(): __PublicMethodMetaInfo$7<'GET', {}, LoginCallbackRequest, LoginCallbackRequest$1, RawHttpResponse$2 & RawHttpResponseNonNullableFields$2, RawHttpResponse$3 & RawHttpResponseNonNullableFields$3>;
1193
+ declare function loginWithIdpConnectionTokenParams(): __PublicMethodMetaInfo$7<'POST', {}, LoginWithIdpConnectionTokenParamsRequest, LoginWithIdpConnectionTokenParamsRequest$1, StateMachineResponse$4 & StateMachineResponseNonNullableFields$4, StateMachineResponse$5 & StateMachineResponseNonNullableFields$5>;
1194
+ declare function signOn(): __PublicMethodMetaInfo$7<'POST', {}, SignOnRequest, SignOnRequest$1, SignOnResponse & SignOnResponseNonNullableFields, SignOnResponse$1 & SignOnResponseNonNullableFields$1>;
1195
+ declare function logout(): __PublicMethodMetaInfo$7<'GET', {}, LogoutRequest, LogoutRequest$1, RawHttpResponse$2 & RawHttpResponseNonNullableFields$2, RawHttpResponse$3 & RawHttpResponseNonNullableFields$3>;
1196
+ declare function verify(): __PublicMethodMetaInfo$7<'POST', {
1197
+ factorType: string;
1198
+ }, VerifyRequest, VerifyRequest$1, StateMachineResponse$4 & StateMachineResponseNonNullableFields$4, StateMachineResponse$5 & StateMachineResponseNonNullableFields$5>;
1165
1199
 
1166
- declare const meta$6_changePassword: typeof changePassword;
1167
- declare const meta$6_loginCallback: typeof loginCallback;
1168
- declare const meta$6_loginV2: typeof loginV2;
1169
- declare const meta$6_loginWithIdpConnection: typeof loginWithIdpConnection;
1170
- declare const meta$6_loginWithIdpConnectionCallback: typeof loginWithIdpConnectionCallback;
1171
- declare const meta$6_loginWithIdpConnectionTokenParams: typeof loginWithIdpConnectionTokenParams;
1172
- declare const meta$6_logout: typeof logout;
1173
- declare const meta$6_registerV2: typeof registerV2;
1174
- declare const meta$6_signOn: typeof signOn;
1175
- declare namespace meta$6 {
1176
- export { type __PublicMethodMetaInfo$6 as __PublicMethodMetaInfo, meta$6_changePassword as changePassword, meta$6_loginCallback as loginCallback, meta$6_loginV2 as loginV2, meta$6_loginWithIdpConnection as loginWithIdpConnection, meta$6_loginWithIdpConnectionCallback as loginWithIdpConnectionCallback, meta$6_loginWithIdpConnectionTokenParams as loginWithIdpConnectionTokenParams, meta$6_logout as logout, meta$6_registerV2 as registerV2, meta$6_signOn as signOn };
1200
+ declare const meta$7_changePassword: typeof changePassword;
1201
+ declare const meta$7_loginCallback: typeof loginCallback;
1202
+ declare const meta$7_loginV2: typeof loginV2;
1203
+ declare const meta$7_loginWithIdpConnection: typeof loginWithIdpConnection;
1204
+ declare const meta$7_loginWithIdpConnectionTokenParams: typeof loginWithIdpConnectionTokenParams;
1205
+ declare const meta$7_logout: typeof logout;
1206
+ declare const meta$7_registerV2: typeof registerV2;
1207
+ declare const meta$7_signOn: typeof signOn;
1208
+ declare const meta$7_verify: typeof verify;
1209
+ declare namespace meta$7 {
1210
+ export { type __PublicMethodMetaInfo$7 as __PublicMethodMetaInfo, meta$7_changePassword as changePassword, meta$7_loginCallback as loginCallback, meta$7_loginV2 as loginV2, meta$7_loginWithIdpConnection as loginWithIdpConnection, meta$7_loginWithIdpConnectionTokenParams as loginWithIdpConnectionTokenParams, meta$7_logout as logout, meta$7_registerV2 as registerV2, meta$7_signOn as signOn, meta$7_verify as verify };
1177
1211
  }
1178
1212
 
1179
1213
  interface SendRecoveryEmailRequest$1 {
@@ -1212,7 +1246,9 @@ interface RecoverRequest$1 {
1212
1246
  /** new password to set for the identity */
1213
1247
  password?: string | null;
1214
1248
  }
1215
- interface StateMachineResponse$3 {
1249
+ interface StateMachineResponse$3 extends StateMachineResponseStateDataOneOf$3 {
1250
+ requireMfaData?: RequireMfaData$3;
1251
+ mfaChallengeData?: MfaChallengeData$3;
1216
1252
  /** The current state of the login or registration process. */
1217
1253
  state?: StateType$3;
1218
1254
  /** If state is `SUCCESS`, a session token. */
@@ -1224,6 +1260,11 @@ interface StateMachineResponse$3 {
1224
1260
  /** additional_data = 5; //TBD */
1225
1261
  additionalData?: Record<string, CustomValue$3>;
1226
1262
  }
1263
+ /** @oneof */
1264
+ interface StateMachineResponseStateDataOneOf$3 {
1265
+ requireMfaData?: RequireMfaData$3;
1266
+ mfaChallengeData?: MfaChallengeData$3;
1267
+ }
1227
1268
  declare enum StateType$3 {
1228
1269
  /** Initial unknown state. */
1229
1270
  UNKNOWN_STATE = "UNKNOWN_STATE",
@@ -1238,18 +1279,12 @@ declare enum StateType$3 {
1238
1279
  REQUIRE_EMAIL_VERIFICATION = "REQUIRE_EMAIL_VERIFICATION",
1239
1280
  /** State that indicates checking that the status is not one of the `invalidStates` before proceeding. */
1240
1281
  STATUS_CHECK = "STATUS_CHECK",
1241
- REQUIRE_MFA = "REQUIRE_MFA"
1282
+ REQUIRE_MFA = "REQUIRE_MFA",
1283
+ MFA_CHALLENGE = "MFA_CHALLENGE"
1242
1284
  }
1243
1285
  interface Identity$3 {
1244
1286
  /** Identity ID */
1245
1287
  id?: string | null;
1246
- /**
1247
- * Identifiers
1248
- * @deprecated Identifiers
1249
- * @replacedBy email
1250
- * @targetRemovalDate 2023-05-01
1251
- */
1252
- identifiers?: Identifier$3[];
1253
1288
  /**
1254
1289
  * Represents the current state of an item. Each time the item is modified, its `revision` changes.
1255
1290
  * For an update operation to succeed, you MUST pass the latest revision.
@@ -1275,7 +1310,7 @@ interface Identity$3 {
1275
1310
  */
1276
1311
  metadata?: Metadata$3;
1277
1312
  /** Identity email address. */
1278
- email?: Email$3;
1313
+ email?: Email$5;
1279
1314
  /** Identity's current status. */
1280
1315
  status?: StatusV2$3;
1281
1316
  /** filled by pre registered spi */
@@ -1286,15 +1321,6 @@ interface Identity$3 {
1286
1321
  */
1287
1322
  factors?: Factor$3[];
1288
1323
  }
1289
- interface Identifier$3 extends IdentifierValueOneOf$3 {
1290
- email?: string;
1291
- userName?: string;
1292
- }
1293
- /** @oneof */
1294
- interface IdentifierValueOneOf$3 {
1295
- email?: string;
1296
- userName?: string;
1297
- }
1298
1324
  interface Connection$3 extends ConnectionTypeOneOf$3 {
1299
1325
  /** IDP connection. */
1300
1326
  idpConnection?: IdpConnection$3;
@@ -1366,6 +1392,8 @@ interface IdentityProfile$3 {
1366
1392
  position?: string | null;
1367
1393
  /** Profile birthdate - ISO-8601 extended local date format (YYYY-MM-DD). */
1368
1394
  birthdate?: string | null;
1395
+ /** slug */
1396
+ slug?: string | null;
1369
1397
  }
1370
1398
  declare enum PrivacyStatus$3 {
1371
1399
  UNDEFINED = "UNDEFINED",
@@ -1478,7 +1506,7 @@ interface Metadata$3 {
1478
1506
  */
1479
1507
  tags?: string[];
1480
1508
  }
1481
- interface Email$3 {
1509
+ interface Email$5 {
1482
1510
  address?: string;
1483
1511
  isVerified?: boolean;
1484
1512
  }
@@ -1557,9 +1585,29 @@ interface MapValue$3 {
1557
1585
  /** Mapped custom value. */
1558
1586
  value?: Record<string, CustomValue$3>;
1559
1587
  }
1560
- interface IdentifierNonNullableFields$3 {
1561
- email: string;
1562
- userName: string;
1588
+ interface RequireMfaData$3 {
1589
+ availableFactors?: V1Factor$3[];
1590
+ }
1591
+ interface V1Factor$3 {
1592
+ factorType?: FactorType$3;
1593
+ }
1594
+ interface MfaChallengeData$3 {
1595
+ factorType?: FactorType$3;
1596
+ verificationChallengeData?: VerificationChallenge$3;
1597
+ availableFactors?: V1Factor$3[];
1598
+ }
1599
+ interface VerificationChallenge$3 {
1600
+ hint?: string | null;
1601
+ }
1602
+ interface V1FactorNonNullableFields$3 {
1603
+ factorType: FactorType$3;
1604
+ }
1605
+ interface RequireMfaDataNonNullableFields$3 {
1606
+ availableFactors: V1FactorNonNullableFields$3[];
1607
+ }
1608
+ interface MfaChallengeDataNonNullableFields$3 {
1609
+ factorType: FactorType$3;
1610
+ availableFactors: V1FactorNonNullableFields$3[];
1563
1611
  }
1564
1612
  interface IdpConnectionNonNullableFields$3 {
1565
1613
  idpConnectionId: string;
@@ -1623,7 +1671,6 @@ interface FactorNonNullableFields$3 {
1623
1671
  status: Status$3;
1624
1672
  }
1625
1673
  interface IdentityNonNullableFields$3 {
1626
- identifiers: IdentifierNonNullableFields$3[];
1627
1674
  connections: ConnectionNonNullableFields$3[];
1628
1675
  identityProfile?: IdentityProfileNonNullableFields$3;
1629
1676
  metadata?: MetadataNonNullableFields$3;
@@ -1632,6 +1679,8 @@ interface IdentityNonNullableFields$3 {
1632
1679
  factors: FactorNonNullableFields$3[];
1633
1680
  }
1634
1681
  interface StateMachineResponseNonNullableFields$3 {
1682
+ requireMfaData?: RequireMfaDataNonNullableFields$3;
1683
+ mfaChallengeData?: MfaChallengeDataNonNullableFields$3;
1635
1684
  state: StateType$3;
1636
1685
  identity?: IdentityNonNullableFields$3;
1637
1686
  }
@@ -1672,7 +1721,9 @@ interface RecoverRequest {
1672
1721
  /** new password to set for the identity */
1673
1722
  password?: string | null;
1674
1723
  }
1675
- interface StateMachineResponse$2 {
1724
+ interface StateMachineResponse$2 extends StateMachineResponseStateDataOneOf$2 {
1725
+ requireMfaData?: RequireMfaData$2;
1726
+ mfaChallengeData?: MfaChallengeData$2;
1676
1727
  /** The current state of the login or registration process. */
1677
1728
  state?: StateType$2;
1678
1729
  /** If state is `SUCCESS`, a session token. */
@@ -1684,6 +1735,11 @@ interface StateMachineResponse$2 {
1684
1735
  /** additional_data = 5; //TBD */
1685
1736
  additionalData?: Record<string, CustomValue$2>;
1686
1737
  }
1738
+ /** @oneof */
1739
+ interface StateMachineResponseStateDataOneOf$2 {
1740
+ requireMfaData?: RequireMfaData$2;
1741
+ mfaChallengeData?: MfaChallengeData$2;
1742
+ }
1687
1743
  declare enum StateType$2 {
1688
1744
  /** Initial unknown state. */
1689
1745
  UNKNOWN_STATE = "UNKNOWN_STATE",
@@ -1698,18 +1754,12 @@ declare enum StateType$2 {
1698
1754
  REQUIRE_EMAIL_VERIFICATION = "REQUIRE_EMAIL_VERIFICATION",
1699
1755
  /** State that indicates checking that the status is not one of the `invalidStates` before proceeding. */
1700
1756
  STATUS_CHECK = "STATUS_CHECK",
1701
- REQUIRE_MFA = "REQUIRE_MFA"
1757
+ REQUIRE_MFA = "REQUIRE_MFA",
1758
+ MFA_CHALLENGE = "MFA_CHALLENGE"
1702
1759
  }
1703
1760
  interface Identity$2 {
1704
1761
  /** Identity ID */
1705
1762
  _id?: string | null;
1706
- /**
1707
- * Identifiers
1708
- * @deprecated Identifiers
1709
- * @replacedBy email
1710
- * @targetRemovalDate 2023-05-01
1711
- */
1712
- identifiers?: Identifier$2[];
1713
1763
  /**
1714
1764
  * Represents the current state of an item. Each time the item is modified, its `revision` changes.
1715
1765
  * For an update operation to succeed, you MUST pass the latest revision.
@@ -1735,7 +1785,7 @@ interface Identity$2 {
1735
1785
  */
1736
1786
  metadata?: Metadata$2;
1737
1787
  /** Identity email address. */
1738
- email?: Email$2;
1788
+ email?: Email$4;
1739
1789
  /** Identity's current status. */
1740
1790
  status?: StatusV2$2;
1741
1791
  /** filled by pre registered spi */
@@ -1746,15 +1796,6 @@ interface Identity$2 {
1746
1796
  */
1747
1797
  factors?: Factor$2[];
1748
1798
  }
1749
- interface Identifier$2 extends IdentifierValueOneOf$2 {
1750
- email?: string;
1751
- userName?: string;
1752
- }
1753
- /** @oneof */
1754
- interface IdentifierValueOneOf$2 {
1755
- email?: string;
1756
- userName?: string;
1757
- }
1758
1799
  interface Connection$2 extends ConnectionTypeOneOf$2 {
1759
1800
  /** IDP connection. */
1760
1801
  idpConnection?: IdpConnection$2;
@@ -1826,6 +1867,8 @@ interface IdentityProfile$2 {
1826
1867
  position?: string | null;
1827
1868
  /** Profile birthdate - ISO-8601 extended local date format (YYYY-MM-DD). */
1828
1869
  birthdate?: string | null;
1870
+ /** slug */
1871
+ slug?: string | null;
1829
1872
  }
1830
1873
  declare enum PrivacyStatus$2 {
1831
1874
  UNDEFINED = "UNDEFINED",
@@ -1938,7 +1981,7 @@ interface Metadata$2 {
1938
1981
  */
1939
1982
  tags?: string[];
1940
1983
  }
1941
- interface Email$2 {
1984
+ interface Email$4 {
1942
1985
  address?: string;
1943
1986
  isVerified?: boolean;
1944
1987
  }
@@ -2017,9 +2060,29 @@ interface MapValue$2 {
2017
2060
  /** Mapped custom value. */
2018
2061
  value?: Record<string, CustomValue$2>;
2019
2062
  }
2020
- interface IdentifierNonNullableFields$2 {
2021
- email: string;
2022
- userName: string;
2063
+ interface RequireMfaData$2 {
2064
+ availableFactors?: V1Factor$2[];
2065
+ }
2066
+ interface V1Factor$2 {
2067
+ factorType?: FactorType$2;
2068
+ }
2069
+ interface MfaChallengeData$2 {
2070
+ factorType?: FactorType$2;
2071
+ verificationChallengeData?: VerificationChallenge$2;
2072
+ availableFactors?: V1Factor$2[];
2073
+ }
2074
+ interface VerificationChallenge$2 {
2075
+ hint?: string | null;
2076
+ }
2077
+ interface V1FactorNonNullableFields$2 {
2078
+ factorType: FactorType$2;
2079
+ }
2080
+ interface RequireMfaDataNonNullableFields$2 {
2081
+ availableFactors: V1FactorNonNullableFields$2[];
2082
+ }
2083
+ interface MfaChallengeDataNonNullableFields$2 {
2084
+ factorType: FactorType$2;
2085
+ availableFactors: V1FactorNonNullableFields$2[];
2023
2086
  }
2024
2087
  interface IdpConnectionNonNullableFields$2 {
2025
2088
  idpConnectionId: string;
@@ -2083,7 +2146,6 @@ interface FactorNonNullableFields$2 {
2083
2146
  status: Status$2;
2084
2147
  }
2085
2148
  interface IdentityNonNullableFields$2 {
2086
- identifiers: IdentifierNonNullableFields$2[];
2087
2149
  connections: ConnectionNonNullableFields$2[];
2088
2150
  identityProfile?: IdentityProfileNonNullableFields$2;
2089
2151
  metadata?: MetadataNonNullableFields$2;
@@ -2092,11 +2154,13 @@ interface IdentityNonNullableFields$2 {
2092
2154
  factors: FactorNonNullableFields$2[];
2093
2155
  }
2094
2156
  interface StateMachineResponseNonNullableFields$2 {
2157
+ requireMfaData?: RequireMfaDataNonNullableFields$2;
2158
+ mfaChallengeData?: MfaChallengeDataNonNullableFields$2;
2095
2159
  state: StateType$2;
2096
2160
  identity?: IdentityNonNullableFields$2;
2097
2161
  }
2098
2162
 
2099
- type __PublicMethodMetaInfo$5<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
2163
+ type __PublicMethodMetaInfo$6<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
2100
2164
  getUrl: (context: any) => string;
2101
2165
  httpMethod: K;
2102
2166
  path: string;
@@ -2106,15 +2170,15 @@ type __PublicMethodMetaInfo$5<K = string, M = unknown, T = unknown, S = unknown,
2106
2170
  __responseType: Q;
2107
2171
  __originalResponseType: R;
2108
2172
  };
2109
- declare function sendRecoveryEmail(): __PublicMethodMetaInfo$5<'POST', {}, SendRecoveryEmailRequest, SendRecoveryEmailRequest$1, SendRecoveryEmailResponse, SendRecoveryEmailResponse$1>;
2110
- declare function sendActivationEmail(): __PublicMethodMetaInfo$5<'POST', {}, SendActivationEmailRequest, SendActivationEmailRequest$1, SendActivationEmailResponse, SendActivationEmailResponse$1>;
2111
- declare function recover(): __PublicMethodMetaInfo$5<'POST', {}, RecoverRequest, RecoverRequest$1, StateMachineResponse$2 & StateMachineResponseNonNullableFields$2, StateMachineResponse$3 & StateMachineResponseNonNullableFields$3>;
2173
+ declare function sendRecoveryEmail(): __PublicMethodMetaInfo$6<'POST', {}, SendRecoveryEmailRequest, SendRecoveryEmailRequest$1, SendRecoveryEmailResponse, SendRecoveryEmailResponse$1>;
2174
+ declare function sendActivationEmail(): __PublicMethodMetaInfo$6<'POST', {}, SendActivationEmailRequest, SendActivationEmailRequest$1, SendActivationEmailResponse, SendActivationEmailResponse$1>;
2175
+ declare function recover(): __PublicMethodMetaInfo$6<'POST', {}, RecoverRequest, RecoverRequest$1, StateMachineResponse$2 & StateMachineResponseNonNullableFields$2, StateMachineResponse$3 & StateMachineResponseNonNullableFields$3>;
2112
2176
 
2113
- declare const meta$5_recover: typeof recover;
2114
- declare const meta$5_sendActivationEmail: typeof sendActivationEmail;
2115
- declare const meta$5_sendRecoveryEmail: typeof sendRecoveryEmail;
2116
- declare namespace meta$5 {
2117
- export { type __PublicMethodMetaInfo$5 as __PublicMethodMetaInfo, meta$5_recover as recover, meta$5_sendActivationEmail as sendActivationEmail, meta$5_sendRecoveryEmail as sendRecoveryEmail };
2177
+ declare const meta$6_recover: typeof recover;
2178
+ declare const meta$6_sendActivationEmail: typeof sendActivationEmail;
2179
+ declare const meta$6_sendRecoveryEmail: typeof sendRecoveryEmail;
2180
+ declare namespace meta$6 {
2181
+ export { type __PublicMethodMetaInfo$6 as __PublicMethodMetaInfo, meta$6_recover as recover, meta$6_sendActivationEmail as sendActivationEmail, meta$6_sendRecoveryEmail as sendRecoveryEmail };
2118
2182
  }
2119
2183
 
2120
2184
  interface StartResponse$1 {
@@ -2140,7 +2204,9 @@ interface VerifyDuringAuthenticationRequest$1 {
2140
2204
  /** A state token representing the `REQUIRE_EMAIL_VERIFICATION` state. */
2141
2205
  stateToken: string;
2142
2206
  }
2143
- interface StateMachineResponse$1 {
2207
+ interface StateMachineResponse$1 extends StateMachineResponseStateDataOneOf$1 {
2208
+ requireMfaData?: RequireMfaData$1;
2209
+ mfaChallengeData?: MfaChallengeData$1;
2144
2210
  /** The current state of the login or registration process. */
2145
2211
  state?: StateType$1;
2146
2212
  /** If state is `SUCCESS`, a session token. */
@@ -2152,6 +2218,11 @@ interface StateMachineResponse$1 {
2152
2218
  /** additional_data = 5; //TBD */
2153
2219
  additionalData?: Record<string, CustomValue$1>;
2154
2220
  }
2221
+ /** @oneof */
2222
+ interface StateMachineResponseStateDataOneOf$1 {
2223
+ requireMfaData?: RequireMfaData$1;
2224
+ mfaChallengeData?: MfaChallengeData$1;
2225
+ }
2155
2226
  declare enum StateType$1 {
2156
2227
  /** Initial unknown state. */
2157
2228
  UNKNOWN_STATE = "UNKNOWN_STATE",
@@ -2166,18 +2237,12 @@ declare enum StateType$1 {
2166
2237
  REQUIRE_EMAIL_VERIFICATION = "REQUIRE_EMAIL_VERIFICATION",
2167
2238
  /** State that indicates checking that the status is not one of the `invalidStates` before proceeding. */
2168
2239
  STATUS_CHECK = "STATUS_CHECK",
2169
- REQUIRE_MFA = "REQUIRE_MFA"
2240
+ REQUIRE_MFA = "REQUIRE_MFA",
2241
+ MFA_CHALLENGE = "MFA_CHALLENGE"
2170
2242
  }
2171
2243
  interface Identity$1 {
2172
2244
  /** Identity ID */
2173
2245
  id?: string | null;
2174
- /**
2175
- * Identifiers
2176
- * @deprecated Identifiers
2177
- * @replacedBy email
2178
- * @targetRemovalDate 2023-05-01
2179
- */
2180
- identifiers?: Identifier$1[];
2181
2246
  /**
2182
2247
  * Represents the current state of an item. Each time the item is modified, its `revision` changes.
2183
2248
  * For an update operation to succeed, you MUST pass the latest revision.
@@ -2203,7 +2268,7 @@ interface Identity$1 {
2203
2268
  */
2204
2269
  metadata?: Metadata$1;
2205
2270
  /** Identity email address. */
2206
- email?: Email$1;
2271
+ email?: Email$3;
2207
2272
  /** Identity's current status. */
2208
2273
  status?: StatusV2$1;
2209
2274
  /** filled by pre registered spi */
@@ -2214,15 +2279,6 @@ interface Identity$1 {
2214
2279
  */
2215
2280
  factors?: Factor$1[];
2216
2281
  }
2217
- interface Identifier$1 extends IdentifierValueOneOf$1 {
2218
- email?: string;
2219
- userName?: string;
2220
- }
2221
- /** @oneof */
2222
- interface IdentifierValueOneOf$1 {
2223
- email?: string;
2224
- userName?: string;
2225
- }
2226
2282
  interface Connection$1 extends ConnectionTypeOneOf$1 {
2227
2283
  /** IDP connection. */
2228
2284
  idpConnection?: IdpConnection$1;
@@ -2294,6 +2350,8 @@ interface IdentityProfile$1 {
2294
2350
  position?: string | null;
2295
2351
  /** Profile birthdate - ISO-8601 extended local date format (YYYY-MM-DD). */
2296
2352
  birthdate?: string | null;
2353
+ /** slug */
2354
+ slug?: string | null;
2297
2355
  }
2298
2356
  declare enum PrivacyStatus$1 {
2299
2357
  UNDEFINED = "UNDEFINED",
@@ -2406,7 +2464,7 @@ interface Metadata$1 {
2406
2464
  */
2407
2465
  tags?: string[];
2408
2466
  }
2409
- interface Email$1 {
2467
+ interface Email$3 {
2410
2468
  address?: string;
2411
2469
  isVerified?: boolean;
2412
2470
  }
@@ -2485,6 +2543,20 @@ interface MapValue$1 {
2485
2543
  /** Mapped custom value. */
2486
2544
  value?: Record<string, CustomValue$1>;
2487
2545
  }
2546
+ interface RequireMfaData$1 {
2547
+ availableFactors?: V1Factor$1[];
2548
+ }
2549
+ interface V1Factor$1 {
2550
+ factorType?: FactorType$1;
2551
+ }
2552
+ interface MfaChallengeData$1 {
2553
+ factorType?: FactorType$1;
2554
+ verificationChallengeData?: VerificationChallenge$1;
2555
+ availableFactors?: V1Factor$1[];
2556
+ }
2557
+ interface VerificationChallenge$1 {
2558
+ hint?: string | null;
2559
+ }
2488
2560
  interface ResendDuringAuthenticationRequest$1 {
2489
2561
  /** A state token representing the `REQUIRE_EMAIL_VERIFICATION` state. */
2490
2562
  stateToken: string;
@@ -2492,9 +2564,15 @@ interface ResendDuringAuthenticationRequest$1 {
2492
2564
  interface StartResponseNonNullableFields$1 {
2493
2565
  verificationId: string;
2494
2566
  }
2495
- interface IdentifierNonNullableFields$1 {
2496
- email: string;
2497
- userName: string;
2567
+ interface V1FactorNonNullableFields$1 {
2568
+ factorType: FactorType$1;
2569
+ }
2570
+ interface RequireMfaDataNonNullableFields$1 {
2571
+ availableFactors: V1FactorNonNullableFields$1[];
2572
+ }
2573
+ interface MfaChallengeDataNonNullableFields$1 {
2574
+ factorType: FactorType$1;
2575
+ availableFactors: V1FactorNonNullableFields$1[];
2498
2576
  }
2499
2577
  interface IdpConnectionNonNullableFields$1 {
2500
2578
  idpConnectionId: string;
@@ -2558,7 +2636,6 @@ interface FactorNonNullableFields$1 {
2558
2636
  status: Status$1;
2559
2637
  }
2560
2638
  interface IdentityNonNullableFields$1 {
2561
- identifiers: IdentifierNonNullableFields$1[];
2562
2639
  connections: ConnectionNonNullableFields$1[];
2563
2640
  identityProfile?: IdentityProfileNonNullableFields$1;
2564
2641
  metadata?: MetadataNonNullableFields$1;
@@ -2567,6 +2644,8 @@ interface IdentityNonNullableFields$1 {
2567
2644
  factors: FactorNonNullableFields$1[];
2568
2645
  }
2569
2646
  interface StateMachineResponseNonNullableFields$1 {
2647
+ requireMfaData?: RequireMfaDataNonNullableFields$1;
2648
+ mfaChallengeData?: MfaChallengeDataNonNullableFields$1;
2570
2649
  state: StateType$1;
2571
2650
  identity?: IdentityNonNullableFields$1;
2572
2651
  }
@@ -2594,7 +2673,9 @@ interface VerifyDuringAuthenticationRequest {
2594
2673
  /** A state token representing the `REQUIRE_EMAIL_VERIFICATION` state. */
2595
2674
  stateToken: string;
2596
2675
  }
2597
- interface StateMachineResponse {
2676
+ interface StateMachineResponse extends StateMachineResponseStateDataOneOf {
2677
+ requireMfaData?: RequireMfaData;
2678
+ mfaChallengeData?: MfaChallengeData;
2598
2679
  /** The current state of the login or registration process. */
2599
2680
  state?: StateType;
2600
2681
  /** If state is `SUCCESS`, a session token. */
@@ -2606,6 +2687,11 @@ interface StateMachineResponse {
2606
2687
  /** additional_data = 5; //TBD */
2607
2688
  additionalData?: Record<string, CustomValue>;
2608
2689
  }
2690
+ /** @oneof */
2691
+ interface StateMachineResponseStateDataOneOf {
2692
+ requireMfaData?: RequireMfaData;
2693
+ mfaChallengeData?: MfaChallengeData;
2694
+ }
2609
2695
  declare enum StateType {
2610
2696
  /** Initial unknown state. */
2611
2697
  UNKNOWN_STATE = "UNKNOWN_STATE",
@@ -2620,18 +2706,12 @@ declare enum StateType {
2620
2706
  REQUIRE_EMAIL_VERIFICATION = "REQUIRE_EMAIL_VERIFICATION",
2621
2707
  /** State that indicates checking that the status is not one of the `invalidStates` before proceeding. */
2622
2708
  STATUS_CHECK = "STATUS_CHECK",
2623
- REQUIRE_MFA = "REQUIRE_MFA"
2709
+ REQUIRE_MFA = "REQUIRE_MFA",
2710
+ MFA_CHALLENGE = "MFA_CHALLENGE"
2624
2711
  }
2625
2712
  interface Identity {
2626
2713
  /** Identity ID */
2627
2714
  _id?: string | null;
2628
- /**
2629
- * Identifiers
2630
- * @deprecated Identifiers
2631
- * @replacedBy email
2632
- * @targetRemovalDate 2023-05-01
2633
- */
2634
- identifiers?: Identifier[];
2635
2715
  /**
2636
2716
  * Represents the current state of an item. Each time the item is modified, its `revision` changes.
2637
2717
  * For an update operation to succeed, you MUST pass the latest revision.
@@ -2657,7 +2737,7 @@ interface Identity {
2657
2737
  */
2658
2738
  metadata?: Metadata;
2659
2739
  /** Identity email address. */
2660
- email?: Email;
2740
+ email?: Email$2;
2661
2741
  /** Identity's current status. */
2662
2742
  status?: StatusV2;
2663
2743
  /** filled by pre registered spi */
@@ -2668,15 +2748,6 @@ interface Identity {
2668
2748
  */
2669
2749
  factors?: Factor[];
2670
2750
  }
2671
- interface Identifier extends IdentifierValueOneOf {
2672
- email?: string;
2673
- userName?: string;
2674
- }
2675
- /** @oneof */
2676
- interface IdentifierValueOneOf {
2677
- email?: string;
2678
- userName?: string;
2679
- }
2680
2751
  interface Connection extends ConnectionTypeOneOf {
2681
2752
  /** IDP connection. */
2682
2753
  idpConnection?: IdpConnection;
@@ -2748,6 +2819,8 @@ interface IdentityProfile {
2748
2819
  position?: string | null;
2749
2820
  /** Profile birthdate - ISO-8601 extended local date format (YYYY-MM-DD). */
2750
2821
  birthdate?: string | null;
2822
+ /** slug */
2823
+ slug?: string | null;
2751
2824
  }
2752
2825
  declare enum PrivacyStatus {
2753
2826
  UNDEFINED = "UNDEFINED",
@@ -2860,7 +2933,7 @@ interface Metadata {
2860
2933
  */
2861
2934
  tags?: string[];
2862
2935
  }
2863
- interface Email {
2936
+ interface Email$2 {
2864
2937
  address?: string;
2865
2938
  isVerified?: boolean;
2866
2939
  }
@@ -2939,6 +3012,20 @@ interface MapValue {
2939
3012
  /** Mapped custom value. */
2940
3013
  value?: Record<string, CustomValue>;
2941
3014
  }
3015
+ interface RequireMfaData {
3016
+ availableFactors?: V1Factor[];
3017
+ }
3018
+ interface V1Factor {
3019
+ factorType?: FactorType;
3020
+ }
3021
+ interface MfaChallengeData {
3022
+ factorType?: FactorType;
3023
+ verificationChallengeData?: VerificationChallenge;
3024
+ availableFactors?: V1Factor[];
3025
+ }
3026
+ interface VerificationChallenge {
3027
+ hint?: string | null;
3028
+ }
2942
3029
  interface ResendDuringAuthenticationRequest {
2943
3030
  /** A state token representing the `REQUIRE_EMAIL_VERIFICATION` state. */
2944
3031
  stateToken: string;
@@ -2946,9 +3033,15 @@ interface ResendDuringAuthenticationRequest {
2946
3033
  interface StartResponseNonNullableFields {
2947
3034
  verificationId: string;
2948
3035
  }
2949
- interface IdentifierNonNullableFields {
2950
- email: string;
2951
- userName: string;
3036
+ interface V1FactorNonNullableFields {
3037
+ factorType: FactorType;
3038
+ }
3039
+ interface RequireMfaDataNonNullableFields {
3040
+ availableFactors: V1FactorNonNullableFields[];
3041
+ }
3042
+ interface MfaChallengeDataNonNullableFields {
3043
+ factorType: FactorType;
3044
+ availableFactors: V1FactorNonNullableFields[];
2952
3045
  }
2953
3046
  interface IdpConnectionNonNullableFields {
2954
3047
  idpConnectionId: string;
@@ -3012,7 +3105,6 @@ interface FactorNonNullableFields {
3012
3105
  status: Status;
3013
3106
  }
3014
3107
  interface IdentityNonNullableFields {
3015
- identifiers: IdentifierNonNullableFields[];
3016
3108
  connections: ConnectionNonNullableFields[];
3017
3109
  identityProfile?: IdentityProfileNonNullableFields;
3018
3110
  metadata?: MetadataNonNullableFields;
@@ -3021,10 +3113,231 @@ interface IdentityNonNullableFields {
3021
3113
  factors: FactorNonNullableFields[];
3022
3114
  }
3023
3115
  interface StateMachineResponseNonNullableFields {
3116
+ requireMfaData?: RequireMfaDataNonNullableFields;
3117
+ mfaChallengeData?: MfaChallengeDataNonNullableFields;
3024
3118
  state: StateType;
3025
3119
  identity?: IdentityNonNullableFields;
3026
3120
  }
3027
3121
 
3122
+ type __PublicMethodMetaInfo$5<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
3123
+ getUrl: (context: any) => string;
3124
+ httpMethod: K;
3125
+ path: string;
3126
+ pathParams: M;
3127
+ __requestType: T;
3128
+ __originalRequestType: S;
3129
+ __responseType: Q;
3130
+ __originalResponseType: R;
3131
+ };
3132
+ declare function start(): __PublicMethodMetaInfo$5<'POST', {}, StartRequest, StartRequest$1, StartResponse & StartResponseNonNullableFields, StartResponse$1 & StartResponseNonNullableFields$1>;
3133
+ declare function verifyDuringAuthentication(): __PublicMethodMetaInfo$5<'POST', {}, VerifyDuringAuthenticationRequest, VerifyDuringAuthenticationRequest$1, StateMachineResponse & StateMachineResponseNonNullableFields, StateMachineResponse$1 & StateMachineResponseNonNullableFields$1>;
3134
+ declare function resendDuringAuthentication(): __PublicMethodMetaInfo$5<'POST', {}, ResendDuringAuthenticationRequest, ResendDuringAuthenticationRequest$1, StateMachineResponse & StateMachineResponseNonNullableFields, StateMachineResponse$1 & StateMachineResponseNonNullableFields$1>;
3135
+
3136
+ declare const meta$5_resendDuringAuthentication: typeof resendDuringAuthentication;
3137
+ declare const meta$5_start: typeof start;
3138
+ declare const meta$5_verifyDuringAuthentication: typeof verifyDuringAuthentication;
3139
+ declare namespace meta$5 {
3140
+ export { type __PublicMethodMetaInfo$5 as __PublicMethodMetaInfo, meta$5_resendDuringAuthentication as resendDuringAuthentication, meta$5_start as start, meta$5_verifyDuringAuthentication as verifyDuringAuthentication };
3141
+ }
3142
+
3143
+ interface AccountV2$1 {
3144
+ /** Account ID. */
3145
+ accountId?: string;
3146
+ }
3147
+ interface Paging$1 {
3148
+ /** Number of items to load. */
3149
+ limit?: number | null;
3150
+ /** Number of items to skip in the current sort order. */
3151
+ offset?: number | null;
3152
+ }
3153
+ interface CreateAccountRequest$1 {
3154
+ /** The user to create under the new account, with the roles defined in `roles`. */
3155
+ user: User$1;
3156
+ /**
3157
+ * Roles to be assigned to the user in the new account. To retrieve all available roles, call Get Roles Info in the Users API.
3158
+ * Default: OWNER.
3159
+ */
3160
+ roles?: string[] | null;
3161
+ }
3162
+ /** A User to be created under an implicitly provided accountId: must have a unique email. */
3163
+ interface User$1 {
3164
+ /** User's unique email address details. Required. */
3165
+ email?: Email$1;
3166
+ /** User's single sign on identity, when the user is identified via SSO authentication response token params, as specified by [OpenID Connect](https://openid.net/developers/how-connect-works/) (aka. OIDC) protocol. */
3167
+ ssoIdentities?: SsoIdentity$1[];
3168
+ /** Additional user details. */
3169
+ userDetails?: UserDetails$1;
3170
+ }
3171
+ /** User's email address. */
3172
+ interface Email$1 {
3173
+ /** User's email address. */
3174
+ emailAddress?: string;
3175
+ /** Whether the caller has verified the user's email address. */
3176
+ isVerified?: boolean;
3177
+ }
3178
+ /** Single Sign On (aka. SSO) identity; user is identified via SSO authentication response token params, as specified by OpenID Connect (aka. OIDC) protocol */
3179
+ interface SsoIdentity$1 {
3180
+ /** An SSO setting (URLs, clientId, secret, etc. as required by OIDC protocol) for a specific Identity-Provider (aka. IdP) for a specific Wix account. */
3181
+ ssoId?: string;
3182
+ /**
3183
+ * User ID as stored in IdP. For example a "sub" claim of OIDC protocol,
3184
+ * or any other alternative, specified by IdP (Identity Provider).
3185
+ */
3186
+ userId?: string;
3187
+ }
3188
+ /** additional user details */
3189
+ interface UserDetails$1 {
3190
+ /** User's first name. */
3191
+ firstName?: string | null;
3192
+ /** User's last name. */
3193
+ lastName?: string | null;
3194
+ /** URL to location of user's profile picture. */
3195
+ profilePictureUrl?: string | null;
3196
+ /** User's preferred language in [ISO 639-1:2002](https://en.wikipedia.org/wiki/ISO_639-1) format. For example, "en", "es". */
3197
+ language?: string | null;
3198
+ /**
3199
+ * Original Client IP from which a request was made.
3200
+ * This is useful in case where a createUser API is called by some server call, which, in turn, has been called by some client from another IP.
3201
+ * Wix checks this IP against the [OFAC sanctioned countries](https://ofac.treasury.gov/sanctions-programs-and-country-information).
3202
+ */
3203
+ clientIp?: string | null;
3204
+ }
3205
+ interface CreateAccountResponse$1 {
3206
+ /** The created account. */
3207
+ account?: AccountV2$1;
3208
+ }
3209
+ interface PagingMetadata$1 {
3210
+ /** Number of items returned in the response. */
3211
+ count?: number | null;
3212
+ /** Offset that was requested. */
3213
+ offset?: number | null;
3214
+ /** Total number of items that match the query. */
3215
+ total?: number | null;
3216
+ /** Flag that indicates the server failed to calculate the `total` field. */
3217
+ tooManyToCount?: boolean | null;
3218
+ }
3219
+ interface ListChildAccountsRequest$1 {
3220
+ /**
3221
+ * Paging options to limit and offset the number of items.
3222
+ * Default: 20. Max: 50.
3223
+ */
3224
+ paging?: Paging$1;
3225
+ }
3226
+ interface ListChildAccountsResponse$1 {
3227
+ /** The requested child accounts. */
3228
+ childAccounts?: AccountV2$1[];
3229
+ /** Metadata of the response pagination. */
3230
+ pagingMetadata?: PagingMetadata$1;
3231
+ }
3232
+ interface AccountV2NonNullableFields$1 {
3233
+ accountId: string;
3234
+ }
3235
+ interface CreateAccountResponseNonNullableFields$1 {
3236
+ account?: AccountV2NonNullableFields$1;
3237
+ }
3238
+ interface ListChildAccountsResponseNonNullableFields$1 {
3239
+ childAccounts: AccountV2NonNullableFields$1[];
3240
+ }
3241
+
3242
+ interface AccountV2 {
3243
+ /** Account ID. */
3244
+ accountId?: string;
3245
+ }
3246
+ interface Paging {
3247
+ /** Number of items to load. */
3248
+ limit?: number | null;
3249
+ /** Number of items to skip in the current sort order. */
3250
+ offset?: number | null;
3251
+ }
3252
+ interface CreateAccountRequest {
3253
+ /** The user to create under the new account, with the roles defined in `roles`. */
3254
+ user: User;
3255
+ /**
3256
+ * Roles to be assigned to the user in the new account. To retrieve all available roles, call Get Roles Info in the Users API.
3257
+ * Default: OWNER.
3258
+ */
3259
+ roles?: string[] | null;
3260
+ }
3261
+ /** A User to be created under an implicitly provided accountId: must have a unique email. */
3262
+ interface User {
3263
+ /** User's unique email address details. Required. */
3264
+ email?: Email;
3265
+ /** User's single sign on identity, when the user is identified via SSO authentication response token params, as specified by [OpenID Connect](https://openid.net/developers/how-connect-works/) (aka. OIDC) protocol. */
3266
+ ssoIdentities?: SsoIdentity[];
3267
+ /** Additional user details. */
3268
+ userDetails?: UserDetails;
3269
+ }
3270
+ /** User's email address. */
3271
+ interface Email {
3272
+ /** User's email address. */
3273
+ emailAddress?: string;
3274
+ /** Whether the caller has verified the user's email address. */
3275
+ isVerified?: boolean;
3276
+ }
3277
+ /** Single Sign On (aka. SSO) identity; user is identified via SSO authentication response token params, as specified by OpenID Connect (aka. OIDC) protocol */
3278
+ interface SsoIdentity {
3279
+ /** An SSO setting (URLs, clientId, secret, etc. as required by OIDC protocol) for a specific Identity-Provider (aka. IdP) for a specific Wix account. */
3280
+ ssoId?: string;
3281
+ /**
3282
+ * User ID as stored in IdP. For example a "sub" claim of OIDC protocol,
3283
+ * or any other alternative, specified by IdP (Identity Provider).
3284
+ */
3285
+ userId?: string;
3286
+ }
3287
+ /** additional user details */
3288
+ interface UserDetails {
3289
+ /** User's first name. */
3290
+ firstName?: string | null;
3291
+ /** User's last name. */
3292
+ lastName?: string | null;
3293
+ /** URL to location of user's profile picture. */
3294
+ profilePictureUrl?: string | null;
3295
+ /** User's preferred language in [ISO 639-1:2002](https://en.wikipedia.org/wiki/ISO_639-1) format. For example, "en", "es". */
3296
+ language?: string | null;
3297
+ /**
3298
+ * Original Client IP from which a request was made.
3299
+ * This is useful in case where a createUser API is called by some server call, which, in turn, has been called by some client from another IP.
3300
+ * Wix checks this IP against the [OFAC sanctioned countries](https://ofac.treasury.gov/sanctions-programs-and-country-information).
3301
+ */
3302
+ clientIp?: string | null;
3303
+ }
3304
+ interface CreateAccountResponse {
3305
+ /** The created account. */
3306
+ account?: AccountV2;
3307
+ }
3308
+ interface PagingMetadata {
3309
+ /** Number of items returned in the response. */
3310
+ count?: number | null;
3311
+ /** Offset that was requested. */
3312
+ offset?: number | null;
3313
+ /** Total number of items that match the query. */
3314
+ total?: number | null;
3315
+ /** Flag that indicates the server failed to calculate the `total` field. */
3316
+ tooManyToCount?: boolean | null;
3317
+ }
3318
+ interface ListChildAccountsRequest {
3319
+ /**
3320
+ * Paging options to limit and offset the number of items.
3321
+ * Default: 20. Max: 50.
3322
+ */
3323
+ paging?: Paging;
3324
+ }
3325
+ interface ListChildAccountsResponse {
3326
+ /** The requested child accounts. */
3327
+ childAccounts?: AccountV2[];
3328
+ /** Metadata of the response pagination. */
3329
+ pagingMetadata?: PagingMetadata;
3330
+ }
3331
+ interface AccountV2NonNullableFields {
3332
+ accountId: string;
3333
+ }
3334
+ interface CreateAccountResponseNonNullableFields {
3335
+ account?: AccountV2NonNullableFields;
3336
+ }
3337
+ interface ListChildAccountsResponseNonNullableFields {
3338
+ childAccounts: AccountV2NonNullableFields[];
3339
+ }
3340
+
3028
3341
  type __PublicMethodMetaInfo$4<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
3029
3342
  getUrl: (context: any) => string;
3030
3343
  httpMethod: K;
@@ -3035,15 +3348,13 @@ type __PublicMethodMetaInfo$4<K = string, M = unknown, T = unknown, S = unknown,
3035
3348
  __responseType: Q;
3036
3349
  __originalResponseType: R;
3037
3350
  };
3038
- declare function start(): __PublicMethodMetaInfo$4<'POST', {}, StartRequest, StartRequest$1, StartResponse & StartResponseNonNullableFields, StartResponse$1 & StartResponseNonNullableFields$1>;
3039
- declare function verifyDuringAuthentication(): __PublicMethodMetaInfo$4<'POST', {}, VerifyDuringAuthenticationRequest, VerifyDuringAuthenticationRequest$1, StateMachineResponse & StateMachineResponseNonNullableFields, StateMachineResponse$1 & StateMachineResponseNonNullableFields$1>;
3040
- declare function resendDuringAuthentication(): __PublicMethodMetaInfo$4<'POST', {}, ResendDuringAuthenticationRequest, ResendDuringAuthenticationRequest$1, StateMachineResponse & StateMachineResponseNonNullableFields, StateMachineResponse$1 & StateMachineResponseNonNullableFields$1>;
3351
+ declare function createAccount(): __PublicMethodMetaInfo$4<'POST', {}, CreateAccountRequest, CreateAccountRequest$1, CreateAccountResponse & CreateAccountResponseNonNullableFields, CreateAccountResponse$1 & CreateAccountResponseNonNullableFields$1>;
3352
+ declare function listChildAccounts(): __PublicMethodMetaInfo$4<'GET', {}, ListChildAccountsRequest, ListChildAccountsRequest$1, ListChildAccountsResponse & ListChildAccountsResponseNonNullableFields, ListChildAccountsResponse$1 & ListChildAccountsResponseNonNullableFields$1>;
3041
3353
 
3042
- declare const meta$4_resendDuringAuthentication: typeof resendDuringAuthentication;
3043
- declare const meta$4_start: typeof start;
3044
- declare const meta$4_verifyDuringAuthentication: typeof verifyDuringAuthentication;
3354
+ declare const meta$4_createAccount: typeof createAccount;
3355
+ declare const meta$4_listChildAccounts: typeof listChildAccounts;
3045
3356
  declare namespace meta$4 {
3046
- export { type __PublicMethodMetaInfo$4 as __PublicMethodMetaInfo, meta$4_resendDuringAuthentication as resendDuringAuthentication, meta$4_start as start, meta$4_verifyDuringAuthentication as verifyDuringAuthentication };
3357
+ export { type __PublicMethodMetaInfo$4 as __PublicMethodMetaInfo, meta$4_createAccount as createAccount, meta$4_listChildAccounts as listChildAccounts };
3047
3358
  }
3048
3359
 
3049
3360
  interface AccountInvite$1 {
@@ -4099,4 +4410,4 @@ declare namespace meta {
4099
4410
  export { type meta___PublicMethodMetaInfo as __PublicMethodMetaInfo, meta_changeRole as changeRole, meta_querySiteContributors as querySiteContributors };
4100
4411
  }
4101
4412
 
4102
- export { meta$3 as accountInvite, meta$6 as authentication, meta$1 as oauth, meta$5 as recovery, meta as rolesManagement, meta$2 as siteInvite, meta$4 as verification };
4413
+ export { meta$4 as account, meta$3 as accountInvite, meta$7 as authentication, meta as contributor, meta$1 as oauth, meta$6 as recovery, meta$2 as siteInvite, meta$5 as verification };