@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.
@@ -545,6 +545,8 @@ interface IdentityProfile$2 {
545
545
  position?: string | null;
546
546
  /** Profile birthdate - ISO-8601 extended local date format (YYYY-MM-DD). */
547
547
  birthdate?: string | null;
548
+ /** slug */
549
+ slug?: string | null;
548
550
  }
549
551
  declare enum PrivacyStatus$2 {
550
552
  UNDEFINED = "UNDEFINED",
@@ -661,7 +663,9 @@ interface CaptchaTokenTokenOneOf {
661
663
  InvisibleRecaptcha?: string;
662
664
  NoCaptcha?: string;
663
665
  }
664
- interface StateMachineResponse$2 {
666
+ interface StateMachineResponse$2 extends StateMachineResponseStateDataOneOf$2 {
667
+ requireMfaData?: RequireMfaData$2;
668
+ mfaChallengeData?: MfaChallengeData$2;
665
669
  /** The current state of the login or registration process. */
666
670
  state?: StateType$2;
667
671
  /** If state is `SUCCESS`, a session token. */
@@ -673,6 +677,11 @@ interface StateMachineResponse$2 {
673
677
  /** additional_data = 5; //TBD */
674
678
  additionalData?: Record<string, CustomValue$2>;
675
679
  }
680
+ /** @oneof */
681
+ interface StateMachineResponseStateDataOneOf$2 {
682
+ requireMfaData?: RequireMfaData$2;
683
+ mfaChallengeData?: MfaChallengeData$2;
684
+ }
676
685
  declare enum StateType$2 {
677
686
  /** Initial unknown state. */
678
687
  UNKNOWN_STATE = "UNKNOWN_STATE",
@@ -687,18 +696,12 @@ declare enum StateType$2 {
687
696
  REQUIRE_EMAIL_VERIFICATION = "REQUIRE_EMAIL_VERIFICATION",
688
697
  /** State that indicates checking that the status is not one of the `invalidStates` before proceeding. */
689
698
  STATUS_CHECK = "STATUS_CHECK",
690
- REQUIRE_MFA = "REQUIRE_MFA"
699
+ REQUIRE_MFA = "REQUIRE_MFA",
700
+ MFA_CHALLENGE = "MFA_CHALLENGE"
691
701
  }
692
702
  interface Identity$2 {
693
703
  /** Identity ID */
694
704
  _id?: string | null;
695
- /**
696
- * Identifiers
697
- * @deprecated Identifiers
698
- * @replacedBy email
699
- * @targetRemovalDate 2023-05-01
700
- */
701
- identifiers?: Identifier$2[];
702
705
  /**
703
706
  * Represents the current state of an item. Each time the item is modified, its `revision` changes.
704
707
  * For an update operation to succeed, you MUST pass the latest revision.
@@ -724,7 +727,7 @@ interface Identity$2 {
724
727
  */
725
728
  metadata?: Metadata$2;
726
729
  /** Identity email address. */
727
- email?: Email$2;
730
+ email?: Email$3;
728
731
  /** Identity's current status. */
729
732
  status?: StatusV2$2;
730
733
  /** filled by pre registered spi */
@@ -735,15 +738,6 @@ interface Identity$2 {
735
738
  */
736
739
  factors?: Factor$2[];
737
740
  }
738
- interface Identifier$2 extends IdentifierValueOneOf$2 {
739
- email?: string;
740
- userName?: string;
741
- }
742
- /** @oneof */
743
- interface IdentifierValueOneOf$2 {
744
- email?: string;
745
- userName?: string;
746
- }
747
741
  interface Connection$2 extends ConnectionTypeOneOf$2 {
748
742
  /** IDP connection. */
749
743
  idpConnection?: IdpConnection$2;
@@ -776,7 +770,7 @@ interface Metadata$2 {
776
770
  */
777
771
  tags?: string[];
778
772
  }
779
- interface Email$2 {
773
+ interface Email$3 {
780
774
  address?: string;
781
775
  isVerified?: boolean;
782
776
  }
@@ -855,6 +849,20 @@ interface MapValue$2 {
855
849
  /** Mapped custom value. */
856
850
  value?: Record<string, CustomValue$2>;
857
851
  }
852
+ interface RequireMfaData$2 {
853
+ availableFactors?: V1Factor$2[];
854
+ }
855
+ interface V1Factor$2 {
856
+ factorType?: FactorType$2;
857
+ }
858
+ interface MfaChallengeData$2 {
859
+ factorType?: FactorType$2;
860
+ verificationChallengeData?: VerificationChallenge$2;
861
+ availableFactors?: V1Factor$2[];
862
+ }
863
+ interface VerificationChallenge$2 {
864
+ hint?: string | null;
865
+ }
858
866
  interface LoginV2Request {
859
867
  /** Identifier of identity logging in. */
860
868
  loginId: LoginId;
@@ -956,9 +964,35 @@ interface LogoutRequest {
956
964
  /** caller identifier */
957
965
  clientId?: string | null;
958
966
  }
959
- interface IdentifierNonNullableFields$2 {
960
- email: string;
961
- userName: string;
967
+ interface VerifyRequest$1 extends VerifyRequestFactorDataOneOf {
968
+ smsData?: OtpVerificationData;
969
+ callData?: OtpVerificationData;
970
+ emailData?: OtpVerificationData;
971
+ totpData?: OtpVerificationData;
972
+ /** TODO: is this a reasonable maxLength? */
973
+ stateToken?: string;
974
+ factorType: FactorType$2;
975
+ rememberThisDevice?: boolean;
976
+ }
977
+ /** @oneof */
978
+ interface VerifyRequestFactorDataOneOf {
979
+ smsData?: OtpVerificationData;
980
+ callData?: OtpVerificationData;
981
+ emailData?: OtpVerificationData;
982
+ totpData?: OtpVerificationData;
983
+ }
984
+ interface OtpVerificationData {
985
+ code?: string | null;
986
+ }
987
+ interface V1FactorNonNullableFields$2 {
988
+ factorType: FactorType$2;
989
+ }
990
+ interface RequireMfaDataNonNullableFields$2 {
991
+ availableFactors: V1FactorNonNullableFields$2[];
992
+ }
993
+ interface MfaChallengeDataNonNullableFields$2 {
994
+ factorType: FactorType$2;
995
+ availableFactors: V1FactorNonNullableFields$2[];
962
996
  }
963
997
  interface IdpConnectionNonNullableFields$2 {
964
998
  idpConnectionId: string;
@@ -1022,7 +1056,6 @@ interface FactorNonNullableFields$2 {
1022
1056
  status: Status$2;
1023
1057
  }
1024
1058
  interface IdentityNonNullableFields$2 {
1025
- identifiers: IdentifierNonNullableFields$2[];
1026
1059
  connections: ConnectionNonNullableFields$2[];
1027
1060
  identityProfile?: IdentityProfileNonNullableFields$2;
1028
1061
  metadata?: MetadataNonNullableFields$2;
@@ -1031,6 +1064,8 @@ interface IdentityNonNullableFields$2 {
1031
1064
  factors: FactorNonNullableFields$2[];
1032
1065
  }
1033
1066
  interface StateMachineResponseNonNullableFields$2 {
1067
+ requireMfaData?: RequireMfaDataNonNullableFields$2;
1068
+ mfaChallengeData?: MfaChallengeDataNonNullableFields$2;
1034
1069
  state: StateType$2;
1035
1070
  identity?: IdentityNonNullableFields$2;
1036
1071
  }
@@ -1082,15 +1117,6 @@ interface LoginWithIdpConnectionOptions {
1082
1117
  visitorId?: string | null;
1083
1118
  bsi?: string | null;
1084
1119
  }
1085
- interface LoginWithIdpConnectionCallbackOptions {
1086
- body?: Uint8Array;
1087
- pathParams?: PathParametersEntry$1[];
1088
- queryParams?: QueryParametersEntry$1[];
1089
- headers?: HeadersEntry$1[];
1090
- method?: string;
1091
- rawPath?: string;
1092
- rawQuery?: string;
1093
- }
1094
1120
  interface LoginCallbackOptions {
1095
1121
  /** state that that received on the redirect */
1096
1122
  state?: string;
@@ -1117,6 +1143,15 @@ interface LogoutOptions {
1117
1143
  /** caller identifier */
1118
1144
  clientId?: string | null;
1119
1145
  }
1146
+ interface VerifyOptions extends VerifyRequestFactorDataOneOf {
1147
+ /** TODO: is this a reasonable maxLength? */
1148
+ stateToken?: string;
1149
+ rememberThisDevice?: boolean;
1150
+ smsData?: OtpVerificationData;
1151
+ callData?: OtpVerificationData;
1152
+ emailData?: OtpVerificationData;
1153
+ totpData?: OtpVerificationData;
1154
+ }
1120
1155
 
1121
1156
  declare function registerV2$1(httpClient: HttpClient): RegisterV2Signature;
1122
1157
  interface RegisterV2Signature {
@@ -1156,13 +1191,6 @@ interface LoginWithIdpConnectionSignature {
1156
1191
  /** @param - The type of the tenant the caller wants to login into */
1157
1192
  (identifiers: LoginWithIdpConnectionIdentifiers, tenantType: TenantType$1, options?: LoginWithIdpConnectionOptions | undefined): Promise<RawHttpResponse$1 & RawHttpResponseNonNullableFields$1>;
1158
1193
  }
1159
- declare function loginWithIdpConnectionCallback$1(httpClient: HttpClient): LoginWithIdpConnectionCallbackSignature;
1160
- interface LoginWithIdpConnectionCallbackSignature {
1161
- /**
1162
- * REQUIRES path params `tenant_type`, `tenant_id` and `idp_connection_id`
1163
- */
1164
- (options?: LoginWithIdpConnectionCallbackOptions | undefined): Promise<RawHttpResponse$1 & RawHttpResponseNonNullableFields$1>;
1165
- }
1166
1194
  declare function loginCallback$1(httpClient: HttpClient): LoginCallbackSignature;
1167
1195
  interface LoginCallbackSignature {
1168
1196
  /** */
@@ -1185,53 +1213,60 @@ interface LogoutSignature {
1185
1213
  */
1186
1214
  (options?: LogoutOptions | undefined): Promise<RawHttpResponse$1 & RawHttpResponseNonNullableFields$1>;
1187
1215
  }
1216
+ declare function verify$1(httpClient: HttpClient): VerifySignature;
1217
+ interface VerifySignature {
1218
+ /** */
1219
+ (factorType: FactorType$2, options?: VerifyOptions | undefined): Promise<StateMachineResponse$2 & StateMachineResponseNonNullableFields$2>;
1220
+ }
1188
1221
 
1189
1222
  declare const registerV2: MaybeContext<BuildRESTFunction<typeof registerV2$1> & typeof registerV2$1>;
1190
1223
  declare const loginV2: MaybeContext<BuildRESTFunction<typeof loginV2$1> & typeof loginV2$1>;
1191
1224
  declare const changePassword: MaybeContext<BuildRESTFunction<typeof changePassword$1> & typeof changePassword$1>;
1192
1225
  declare const loginWithIdpConnection: MaybeContext<BuildRESTFunction<typeof loginWithIdpConnection$1> & typeof loginWithIdpConnection$1>;
1193
- declare const loginWithIdpConnectionCallback: MaybeContext<BuildRESTFunction<typeof loginWithIdpConnectionCallback$1> & typeof loginWithIdpConnectionCallback$1>;
1194
1226
  declare const loginCallback: MaybeContext<BuildRESTFunction<typeof loginCallback$1> & typeof loginCallback$1>;
1195
1227
  declare const loginWithIdpConnectionTokenParams: MaybeContext<BuildRESTFunction<typeof loginWithIdpConnectionTokenParams$1> & typeof loginWithIdpConnectionTokenParams$1>;
1196
1228
  declare const signOn: MaybeContext<BuildRESTFunction<typeof signOn$1> & typeof signOn$1>;
1197
1229
  declare const logout: MaybeContext<BuildRESTFunction<typeof logout$1> & typeof logout$1>;
1230
+ declare const verify: MaybeContext<BuildRESTFunction<typeof verify$1> & typeof verify$1>;
1198
1231
 
1199
- type index_d$6_Authentication = Authentication;
1200
- type index_d$6_CaptchaToken = CaptchaToken;
1201
- type index_d$6_CaptchaTokenTokenOneOf = CaptchaTokenTokenOneOf;
1202
- type index_d$6_ChangePasswordRequest = ChangePasswordRequest;
1203
- type index_d$6_ChangePasswordResponse = ChangePasswordResponse;
1204
- type index_d$6_LoginCallbackOptions = LoginCallbackOptions;
1205
- type index_d$6_LoginCallbackRequest = LoginCallbackRequest;
1206
- type index_d$6_LoginId = LoginId;
1207
- type index_d$6_LoginIdTypeOneOf = LoginIdTypeOneOf;
1208
- type index_d$6_LoginV2Options = LoginV2Options;
1209
- type index_d$6_LoginV2Request = LoginV2Request;
1210
- type index_d$6_LoginWithIdpConnectionCallbackOptions = LoginWithIdpConnectionCallbackOptions;
1211
- type index_d$6_LoginWithIdpConnectionIdentifiers = LoginWithIdpConnectionIdentifiers;
1212
- type index_d$6_LoginWithIdpConnectionOptions = LoginWithIdpConnectionOptions;
1213
- type index_d$6_LoginWithIdpConnectionRequest = LoginWithIdpConnectionRequest;
1214
- type index_d$6_LoginWithIdpConnectionTokenParamsOptions = LoginWithIdpConnectionTokenParamsOptions;
1215
- type index_d$6_LoginWithIdpConnectionTokenParamsRequest = LoginWithIdpConnectionTokenParamsRequest;
1216
- type index_d$6_LogoutOptions = LogoutOptions;
1217
- type index_d$6_LogoutRequest = LogoutRequest;
1218
- type index_d$6_RegisterV2Options = RegisterV2Options;
1219
- type index_d$6_RegisterV2Request = RegisterV2Request;
1220
- type index_d$6_SignOnOptions = SignOnOptions;
1221
- type index_d$6_SignOnRequest = SignOnRequest;
1222
- type index_d$6_SignOnResponse = SignOnResponse;
1223
- type index_d$6_SignOnResponseNonNullableFields = SignOnResponseNonNullableFields;
1224
- declare const index_d$6_changePassword: typeof changePassword;
1225
- declare const index_d$6_loginCallback: typeof loginCallback;
1226
- declare const index_d$6_loginV2: typeof loginV2;
1227
- declare const index_d$6_loginWithIdpConnection: typeof loginWithIdpConnection;
1228
- declare const index_d$6_loginWithIdpConnectionCallback: typeof loginWithIdpConnectionCallback;
1229
- declare const index_d$6_loginWithIdpConnectionTokenParams: typeof loginWithIdpConnectionTokenParams;
1230
- declare const index_d$6_logout: typeof logout;
1231
- declare const index_d$6_registerV2: typeof registerV2;
1232
- declare const index_d$6_signOn: typeof signOn;
1233
- declare namespace index_d$6 {
1234
- export { type Address$2 as Address, AddressTag$2 as AddressTag, type AddressWrapper$2 as AddressWrapper, type index_d$6_Authentication as Authentication, type AuthenticatorConnection$2 as AuthenticatorConnection, type index_d$6_CaptchaToken as CaptchaToken, type index_d$6_CaptchaTokenTokenOneOf as CaptchaTokenTokenOneOf, type index_d$6_ChangePasswordRequest as ChangePasswordRequest, type index_d$6_ChangePasswordResponse as ChangePasswordResponse, type Connection$2 as Connection, type ConnectionTypeOneOf$2 as ConnectionTypeOneOf, type CustomField$2 as CustomField, type CustomValue$2 as CustomValue, type CustomValueValueOneOf$2 as CustomValueValueOneOf, type Email$2 as Email, EmailTag$2 as EmailTag, type Factor$2 as Factor, FactorType$2 as FactorType, type HeadersEntry$1 as HeadersEntry, type Identifier$2 as Identifier, type IdentifierValueOneOf$2 as IdentifierValueOneOf, type Identity$2 as Identity, type IdentityProfile$2 as IdentityProfile, type IdpConnection$2 as IdpConnection, type ListValue$2 as ListValue, type index_d$6_LoginCallbackOptions as LoginCallbackOptions, type index_d$6_LoginCallbackRequest as LoginCallbackRequest, type index_d$6_LoginId as LoginId, type index_d$6_LoginIdTypeOneOf as LoginIdTypeOneOf, type index_d$6_LoginV2Options as LoginV2Options, type index_d$6_LoginV2Request as LoginV2Request, type index_d$6_LoginWithIdpConnectionCallbackOptions as LoginWithIdpConnectionCallbackOptions, type index_d$6_LoginWithIdpConnectionIdentifiers as LoginWithIdpConnectionIdentifiers, type index_d$6_LoginWithIdpConnectionOptions as LoginWithIdpConnectionOptions, type index_d$6_LoginWithIdpConnectionRequest as LoginWithIdpConnectionRequest, type index_d$6_LoginWithIdpConnectionTokenParamsOptions as LoginWithIdpConnectionTokenParamsOptions, type index_d$6_LoginWithIdpConnectionTokenParamsRequest as LoginWithIdpConnectionTokenParamsRequest, type index_d$6_LogoutOptions as LogoutOptions, type index_d$6_LogoutRequest as LogoutRequest, type MapValue$2 as MapValue, type Metadata$2 as Metadata, type PathParametersEntry$1 as PathParametersEntry, type Phone$2 as Phone, PhoneTag$2 as PhoneTag, PrivacyStatus$2 as PrivacyStatus, type QueryParametersEntry$1 as QueryParametersEntry, type RawHttpRequest$1 as RawHttpRequest, type RawHttpResponse$1 as RawHttpResponse, type RawHttpResponseNonNullableFields$1 as RawHttpResponseNonNullableFields, Reason$2 as Reason, type index_d$6_RegisterV2Options as RegisterV2Options, type index_d$6_RegisterV2Request as RegisterV2Request, type SecondaryEmail$2 as SecondaryEmail, type index_d$6_SignOnOptions as SignOnOptions, type index_d$6_SignOnRequest as SignOnRequest, type index_d$6_SignOnResponse as SignOnResponse, type index_d$6_SignOnResponseNonNullableFields as SignOnResponseNonNullableFields, type StateMachineResponse$2 as StateMachineResponse, type StateMachineResponseNonNullableFields$2 as StateMachineResponseNonNullableFields, StateType$2 as StateType, Status$2 as Status, StatusName$2 as StatusName, type StatusV2$2 as StatusV2, TenantType$1 as TenantType, type V1CustomValue$2 as V1CustomValue, type V1CustomValueValueOneOf$2 as V1CustomValueValueOneOf, type V1ListValue$2 as V1ListValue, type V1MapValue$2 as V1MapValue, index_d$6_changePassword as changePassword, index_d$6_loginCallback as loginCallback, index_d$6_loginV2 as loginV2, index_d$6_loginWithIdpConnection as loginWithIdpConnection, index_d$6_loginWithIdpConnectionCallback as loginWithIdpConnectionCallback, index_d$6_loginWithIdpConnectionTokenParams as loginWithIdpConnectionTokenParams, index_d$6_logout as logout, index_d$6_registerV2 as registerV2, index_d$6_signOn as signOn };
1232
+ type index_d$7_Authentication = Authentication;
1233
+ type index_d$7_CaptchaToken = CaptchaToken;
1234
+ type index_d$7_CaptchaTokenTokenOneOf = CaptchaTokenTokenOneOf;
1235
+ type index_d$7_ChangePasswordRequest = ChangePasswordRequest;
1236
+ type index_d$7_ChangePasswordResponse = ChangePasswordResponse;
1237
+ type index_d$7_LoginCallbackOptions = LoginCallbackOptions;
1238
+ type index_d$7_LoginCallbackRequest = LoginCallbackRequest;
1239
+ type index_d$7_LoginId = LoginId;
1240
+ type index_d$7_LoginIdTypeOneOf = LoginIdTypeOneOf;
1241
+ type index_d$7_LoginV2Options = LoginV2Options;
1242
+ type index_d$7_LoginV2Request = LoginV2Request;
1243
+ type index_d$7_LoginWithIdpConnectionIdentifiers = LoginWithIdpConnectionIdentifiers;
1244
+ type index_d$7_LoginWithIdpConnectionOptions = LoginWithIdpConnectionOptions;
1245
+ type index_d$7_LoginWithIdpConnectionRequest = LoginWithIdpConnectionRequest;
1246
+ type index_d$7_LoginWithIdpConnectionTokenParamsOptions = LoginWithIdpConnectionTokenParamsOptions;
1247
+ type index_d$7_LoginWithIdpConnectionTokenParamsRequest = LoginWithIdpConnectionTokenParamsRequest;
1248
+ type index_d$7_LogoutOptions = LogoutOptions;
1249
+ type index_d$7_LogoutRequest = LogoutRequest;
1250
+ type index_d$7_OtpVerificationData = OtpVerificationData;
1251
+ type index_d$7_RegisterV2Options = RegisterV2Options;
1252
+ type index_d$7_RegisterV2Request = RegisterV2Request;
1253
+ type index_d$7_SignOnOptions = SignOnOptions;
1254
+ type index_d$7_SignOnRequest = SignOnRequest;
1255
+ type index_d$7_SignOnResponse = SignOnResponse;
1256
+ type index_d$7_SignOnResponseNonNullableFields = SignOnResponseNonNullableFields;
1257
+ type index_d$7_VerifyOptions = VerifyOptions;
1258
+ type index_d$7_VerifyRequestFactorDataOneOf = VerifyRequestFactorDataOneOf;
1259
+ declare const index_d$7_changePassword: typeof changePassword;
1260
+ declare const index_d$7_loginCallback: typeof loginCallback;
1261
+ declare const index_d$7_loginV2: typeof loginV2;
1262
+ declare const index_d$7_loginWithIdpConnection: typeof loginWithIdpConnection;
1263
+ declare const index_d$7_loginWithIdpConnectionTokenParams: typeof loginWithIdpConnectionTokenParams;
1264
+ declare const index_d$7_logout: typeof logout;
1265
+ declare const index_d$7_registerV2: typeof registerV2;
1266
+ declare const index_d$7_signOn: typeof signOn;
1267
+ declare const index_d$7_verify: typeof verify;
1268
+ declare namespace index_d$7 {
1269
+ export { type Address$2 as Address, AddressTag$2 as AddressTag, type AddressWrapper$2 as AddressWrapper, type index_d$7_Authentication as Authentication, type AuthenticatorConnection$2 as AuthenticatorConnection, type index_d$7_CaptchaToken as CaptchaToken, type index_d$7_CaptchaTokenTokenOneOf as CaptchaTokenTokenOneOf, type index_d$7_ChangePasswordRequest as ChangePasswordRequest, type index_d$7_ChangePasswordResponse as ChangePasswordResponse, type Connection$2 as Connection, type ConnectionTypeOneOf$2 as ConnectionTypeOneOf, type CustomField$2 as CustomField, type CustomValue$2 as CustomValue, type CustomValueValueOneOf$2 as CustomValueValueOneOf, type Email$3 as Email, EmailTag$2 as EmailTag, type Factor$2 as Factor, FactorType$2 as FactorType, type HeadersEntry$1 as HeadersEntry, type Identity$2 as Identity, type IdentityProfile$2 as IdentityProfile, type IdpConnection$2 as IdpConnection, type ListValue$2 as ListValue, type index_d$7_LoginCallbackOptions as LoginCallbackOptions, type index_d$7_LoginCallbackRequest as LoginCallbackRequest, type index_d$7_LoginId as LoginId, type index_d$7_LoginIdTypeOneOf as LoginIdTypeOneOf, type index_d$7_LoginV2Options as LoginV2Options, type index_d$7_LoginV2Request as LoginV2Request, type index_d$7_LoginWithIdpConnectionIdentifiers as LoginWithIdpConnectionIdentifiers, type index_d$7_LoginWithIdpConnectionOptions as LoginWithIdpConnectionOptions, type index_d$7_LoginWithIdpConnectionRequest as LoginWithIdpConnectionRequest, type index_d$7_LoginWithIdpConnectionTokenParamsOptions as LoginWithIdpConnectionTokenParamsOptions, type index_d$7_LoginWithIdpConnectionTokenParamsRequest as LoginWithIdpConnectionTokenParamsRequest, type index_d$7_LogoutOptions as LogoutOptions, type index_d$7_LogoutRequest as LogoutRequest, type MapValue$2 as MapValue, type Metadata$2 as Metadata, type MfaChallengeData$2 as MfaChallengeData, type index_d$7_OtpVerificationData as OtpVerificationData, type PathParametersEntry$1 as PathParametersEntry, type Phone$2 as Phone, PhoneTag$2 as PhoneTag, PrivacyStatus$2 as PrivacyStatus, type QueryParametersEntry$1 as QueryParametersEntry, type RawHttpRequest$1 as RawHttpRequest, type RawHttpResponse$1 as RawHttpResponse, type RawHttpResponseNonNullableFields$1 as RawHttpResponseNonNullableFields, Reason$2 as Reason, type index_d$7_RegisterV2Options as RegisterV2Options, type index_d$7_RegisterV2Request as RegisterV2Request, type RequireMfaData$2 as RequireMfaData, type SecondaryEmail$2 as SecondaryEmail, type index_d$7_SignOnOptions as SignOnOptions, type index_d$7_SignOnRequest as SignOnRequest, type index_d$7_SignOnResponse as SignOnResponse, type index_d$7_SignOnResponseNonNullableFields as SignOnResponseNonNullableFields, type StateMachineResponse$2 as StateMachineResponse, type StateMachineResponseNonNullableFields$2 as StateMachineResponseNonNullableFields, type StateMachineResponseStateDataOneOf$2 as StateMachineResponseStateDataOneOf, StateType$2 as StateType, Status$2 as Status, StatusName$2 as StatusName, type StatusV2$2 as StatusV2, TenantType$1 as TenantType, type V1CustomValue$2 as V1CustomValue, type V1CustomValueValueOneOf$2 as V1CustomValueValueOneOf, type V1Factor$2 as V1Factor, type V1ListValue$2 as V1ListValue, type V1MapValue$2 as V1MapValue, type VerificationChallenge$2 as VerificationChallenge, type index_d$7_VerifyOptions as VerifyOptions, type VerifyRequest$1 as VerifyRequest, type index_d$7_VerifyRequestFactorDataOneOf as VerifyRequestFactorDataOneOf, index_d$7_changePassword as changePassword, index_d$7_loginCallback as loginCallback, index_d$7_loginV2 as loginV2, index_d$7_loginWithIdpConnection as loginWithIdpConnection, index_d$7_loginWithIdpConnectionTokenParams as loginWithIdpConnectionTokenParams, index_d$7_logout as logout, index_d$7_registerV2 as registerV2, index_d$7_signOn as signOn, index_d$7_verify as verify };
1235
1270
  }
1236
1271
 
1237
1272
  /** Recovery token proto is the saved data on the recovery token. */
@@ -1304,7 +1339,9 @@ interface RecoverRequest {
1304
1339
  /** new password to set for the identity */
1305
1340
  password?: string | null;
1306
1341
  }
1307
- interface StateMachineResponse$1 {
1342
+ interface StateMachineResponse$1 extends StateMachineResponseStateDataOneOf$1 {
1343
+ requireMfaData?: RequireMfaData$1;
1344
+ mfaChallengeData?: MfaChallengeData$1;
1308
1345
  /** The current state of the login or registration process. */
1309
1346
  state?: StateType$1;
1310
1347
  /** If state is `SUCCESS`, a session token. */
@@ -1316,6 +1353,11 @@ interface StateMachineResponse$1 {
1316
1353
  /** additional_data = 5; //TBD */
1317
1354
  additionalData?: Record<string, CustomValue$1>;
1318
1355
  }
1356
+ /** @oneof */
1357
+ interface StateMachineResponseStateDataOneOf$1 {
1358
+ requireMfaData?: RequireMfaData$1;
1359
+ mfaChallengeData?: MfaChallengeData$1;
1360
+ }
1319
1361
  declare enum StateType$1 {
1320
1362
  /** Initial unknown state. */
1321
1363
  UNKNOWN_STATE = "UNKNOWN_STATE",
@@ -1330,18 +1372,12 @@ declare enum StateType$1 {
1330
1372
  REQUIRE_EMAIL_VERIFICATION = "REQUIRE_EMAIL_VERIFICATION",
1331
1373
  /** State that indicates checking that the status is not one of the `invalidStates` before proceeding. */
1332
1374
  STATUS_CHECK = "STATUS_CHECK",
1333
- REQUIRE_MFA = "REQUIRE_MFA"
1375
+ REQUIRE_MFA = "REQUIRE_MFA",
1376
+ MFA_CHALLENGE = "MFA_CHALLENGE"
1334
1377
  }
1335
1378
  interface Identity$1 {
1336
1379
  /** Identity ID */
1337
1380
  _id?: string | null;
1338
- /**
1339
- * Identifiers
1340
- * @deprecated Identifiers
1341
- * @replacedBy email
1342
- * @targetRemovalDate 2023-05-01
1343
- */
1344
- identifiers?: Identifier$1[];
1345
1381
  /**
1346
1382
  * Represents the current state of an item. Each time the item is modified, its `revision` changes.
1347
1383
  * For an update operation to succeed, you MUST pass the latest revision.
@@ -1367,7 +1403,7 @@ interface Identity$1 {
1367
1403
  */
1368
1404
  metadata?: Metadata$1;
1369
1405
  /** Identity email address. */
1370
- email?: Email$1;
1406
+ email?: Email$2;
1371
1407
  /** Identity's current status. */
1372
1408
  status?: StatusV2$1;
1373
1409
  /** filled by pre registered spi */
@@ -1378,15 +1414,6 @@ interface Identity$1 {
1378
1414
  */
1379
1415
  factors?: Factor$1[];
1380
1416
  }
1381
- interface Identifier$1 extends IdentifierValueOneOf$1 {
1382
- email?: string;
1383
- userName?: string;
1384
- }
1385
- /** @oneof */
1386
- interface IdentifierValueOneOf$1 {
1387
- email?: string;
1388
- userName?: string;
1389
- }
1390
1417
  interface Connection$1 extends ConnectionTypeOneOf$1 {
1391
1418
  /** IDP connection. */
1392
1419
  idpConnection?: IdpConnection$1;
@@ -1458,6 +1485,8 @@ interface IdentityProfile$1 {
1458
1485
  position?: string | null;
1459
1486
  /** Profile birthdate - ISO-8601 extended local date format (YYYY-MM-DD). */
1460
1487
  birthdate?: string | null;
1488
+ /** slug */
1489
+ slug?: string | null;
1461
1490
  }
1462
1491
  declare enum PrivacyStatus$1 {
1463
1492
  UNDEFINED = "UNDEFINED",
@@ -1570,7 +1599,7 @@ interface Metadata$1 {
1570
1599
  */
1571
1600
  tags?: string[];
1572
1601
  }
1573
- interface Email$1 {
1602
+ interface Email$2 {
1574
1603
  address?: string;
1575
1604
  isVerified?: boolean;
1576
1605
  }
@@ -1649,9 +1678,29 @@ interface MapValue$1 {
1649
1678
  /** Mapped custom value. */
1650
1679
  value?: Record<string, CustomValue$1>;
1651
1680
  }
1652
- interface IdentifierNonNullableFields$1 {
1653
- email: string;
1654
- userName: string;
1681
+ interface RequireMfaData$1 {
1682
+ availableFactors?: V1Factor$1[];
1683
+ }
1684
+ interface V1Factor$1 {
1685
+ factorType?: FactorType$1;
1686
+ }
1687
+ interface MfaChallengeData$1 {
1688
+ factorType?: FactorType$1;
1689
+ verificationChallengeData?: VerificationChallenge$1;
1690
+ availableFactors?: V1Factor$1[];
1691
+ }
1692
+ interface VerificationChallenge$1 {
1693
+ hint?: string | null;
1694
+ }
1695
+ interface V1FactorNonNullableFields$1 {
1696
+ factorType: FactorType$1;
1697
+ }
1698
+ interface RequireMfaDataNonNullableFields$1 {
1699
+ availableFactors: V1FactorNonNullableFields$1[];
1700
+ }
1701
+ interface MfaChallengeDataNonNullableFields$1 {
1702
+ factorType: FactorType$1;
1703
+ availableFactors: V1FactorNonNullableFields$1[];
1655
1704
  }
1656
1705
  interface IdpConnectionNonNullableFields$1 {
1657
1706
  idpConnectionId: string;
@@ -1715,7 +1764,6 @@ interface FactorNonNullableFields$1 {
1715
1764
  status: Status$1;
1716
1765
  }
1717
1766
  interface IdentityNonNullableFields$1 {
1718
- identifiers: IdentifierNonNullableFields$1[];
1719
1767
  connections: ConnectionNonNullableFields$1[];
1720
1768
  identityProfile?: IdentityProfileNonNullableFields$1;
1721
1769
  metadata?: MetadataNonNullableFields$1;
@@ -1724,6 +1772,8 @@ interface IdentityNonNullableFields$1 {
1724
1772
  factors: FactorNonNullableFields$1[];
1725
1773
  }
1726
1774
  interface StateMachineResponseNonNullableFields$1 {
1775
+ requireMfaData?: RequireMfaDataNonNullableFields$1;
1776
+ mfaChallengeData?: MfaChallengeDataNonNullableFields$1;
1727
1777
  state: StateType$1;
1728
1778
  identity?: IdentityNonNullableFields$1;
1729
1779
  }
@@ -1770,24 +1820,24 @@ declare const sendRecoveryEmail: MaybeContext<BuildRESTFunction<typeof sendRecov
1770
1820
  declare const sendActivationEmail: MaybeContext<BuildRESTFunction<typeof sendActivationEmail$1> & typeof sendActivationEmail$1>;
1771
1821
  declare const recover: MaybeContext<BuildRESTFunction<typeof recover$1> & typeof recover$1>;
1772
1822
 
1773
- type index_d$5_EmailOptions = EmailOptions;
1774
- type index_d$5_RecoverOptions = RecoverOptions;
1775
- type index_d$5_RecoverRequest = RecoverRequest;
1776
- type index_d$5_RecoveryToken = RecoveryToken;
1777
- type index_d$5_Redirect = Redirect;
1778
- type index_d$5_SendActivationEmailOptions = SendActivationEmailOptions;
1779
- type index_d$5_SendActivationEmailRequest = SendActivationEmailRequest;
1780
- type index_d$5_SendActivationEmailResponse = SendActivationEmailResponse;
1781
- type index_d$5_SendRecoveryEmailOptions = SendRecoveryEmailOptions;
1782
- type index_d$5_SendRecoveryEmailRequest = SendRecoveryEmailRequest;
1783
- type index_d$5_SendRecoveryEmailResponse = SendRecoveryEmailResponse;
1784
- type index_d$5_TenantType = TenantType;
1785
- declare const index_d$5_TenantType: typeof TenantType;
1786
- declare const index_d$5_recover: typeof recover;
1787
- declare const index_d$5_sendActivationEmail: typeof sendActivationEmail;
1788
- declare const index_d$5_sendRecoveryEmail: typeof sendRecoveryEmail;
1789
- declare namespace index_d$5 {
1790
- export { type Address$1 as Address, AddressTag$1 as AddressTag, type AddressWrapper$1 as AddressWrapper, type AuthenticatorConnection$1 as AuthenticatorConnection, type Connection$1 as Connection, type ConnectionTypeOneOf$1 as ConnectionTypeOneOf, type CustomField$1 as CustomField, type CustomValue$1 as CustomValue, type CustomValueValueOneOf$1 as CustomValueValueOneOf, type Email$1 as Email, type index_d$5_EmailOptions as EmailOptions, EmailTag$1 as EmailTag, type Factor$1 as Factor, FactorType$1 as FactorType, type Identifier$1 as Identifier, type IdentifierValueOneOf$1 as IdentifierValueOneOf, type Identity$1 as Identity, type IdentityProfile$1 as IdentityProfile, type IdpConnection$1 as IdpConnection, type ListValue$1 as ListValue, type MapValue$1 as MapValue, type Metadata$1 as Metadata, type Phone$1 as Phone, PhoneTag$1 as PhoneTag, PrivacyStatus$1 as PrivacyStatus, Reason$1 as Reason, type index_d$5_RecoverOptions as RecoverOptions, type index_d$5_RecoverRequest as RecoverRequest, type index_d$5_RecoveryToken as RecoveryToken, type index_d$5_Redirect as Redirect, type SecondaryEmail$1 as SecondaryEmail, type index_d$5_SendActivationEmailOptions as SendActivationEmailOptions, type index_d$5_SendActivationEmailRequest as SendActivationEmailRequest, type index_d$5_SendActivationEmailResponse as SendActivationEmailResponse, type index_d$5_SendRecoveryEmailOptions as SendRecoveryEmailOptions, type index_d$5_SendRecoveryEmailRequest as SendRecoveryEmailRequest, type index_d$5_SendRecoveryEmailResponse as SendRecoveryEmailResponse, type StateMachineResponse$1 as StateMachineResponse, type StateMachineResponseNonNullableFields$1 as StateMachineResponseNonNullableFields, StateType$1 as StateType, Status$1 as Status, StatusName$1 as StatusName, type StatusV2$1 as StatusV2, index_d$5_TenantType as TenantType, type V1CustomValue$1 as V1CustomValue, type V1CustomValueValueOneOf$1 as V1CustomValueValueOneOf, type V1ListValue$1 as V1ListValue, type V1MapValue$1 as V1MapValue, index_d$5_recover as recover, index_d$5_sendActivationEmail as sendActivationEmail, index_d$5_sendRecoveryEmail as sendRecoveryEmail };
1823
+ type index_d$6_EmailOptions = EmailOptions;
1824
+ type index_d$6_RecoverOptions = RecoverOptions;
1825
+ type index_d$6_RecoverRequest = RecoverRequest;
1826
+ type index_d$6_RecoveryToken = RecoveryToken;
1827
+ type index_d$6_Redirect = Redirect;
1828
+ type index_d$6_SendActivationEmailOptions = SendActivationEmailOptions;
1829
+ type index_d$6_SendActivationEmailRequest = SendActivationEmailRequest;
1830
+ type index_d$6_SendActivationEmailResponse = SendActivationEmailResponse;
1831
+ type index_d$6_SendRecoveryEmailOptions = SendRecoveryEmailOptions;
1832
+ type index_d$6_SendRecoveryEmailRequest = SendRecoveryEmailRequest;
1833
+ type index_d$6_SendRecoveryEmailResponse = SendRecoveryEmailResponse;
1834
+ type index_d$6_TenantType = TenantType;
1835
+ declare const index_d$6_TenantType: typeof TenantType;
1836
+ declare const index_d$6_recover: typeof recover;
1837
+ declare const index_d$6_sendActivationEmail: typeof sendActivationEmail;
1838
+ declare const index_d$6_sendRecoveryEmail: typeof sendRecoveryEmail;
1839
+ declare namespace index_d$6 {
1840
+ export { type Address$1 as Address, AddressTag$1 as AddressTag, type AddressWrapper$1 as AddressWrapper, type AuthenticatorConnection$1 as AuthenticatorConnection, type Connection$1 as Connection, type ConnectionTypeOneOf$1 as ConnectionTypeOneOf, type CustomField$1 as CustomField, type CustomValue$1 as CustomValue, type CustomValueValueOneOf$1 as CustomValueValueOneOf, type Email$2 as Email, type index_d$6_EmailOptions as EmailOptions, EmailTag$1 as EmailTag, type Factor$1 as Factor, FactorType$1 as FactorType, type Identity$1 as Identity, type IdentityProfile$1 as IdentityProfile, type IdpConnection$1 as IdpConnection, type ListValue$1 as ListValue, type MapValue$1 as MapValue, type Metadata$1 as Metadata, type MfaChallengeData$1 as MfaChallengeData, type Phone$1 as Phone, PhoneTag$1 as PhoneTag, PrivacyStatus$1 as PrivacyStatus, Reason$1 as Reason, type index_d$6_RecoverOptions as RecoverOptions, type index_d$6_RecoverRequest as RecoverRequest, type index_d$6_RecoveryToken as RecoveryToken, type index_d$6_Redirect as Redirect, type RequireMfaData$1 as RequireMfaData, type SecondaryEmail$1 as SecondaryEmail, type index_d$6_SendActivationEmailOptions as SendActivationEmailOptions, type index_d$6_SendActivationEmailRequest as SendActivationEmailRequest, type index_d$6_SendActivationEmailResponse as SendActivationEmailResponse, type index_d$6_SendRecoveryEmailOptions as SendRecoveryEmailOptions, type index_d$6_SendRecoveryEmailRequest as SendRecoveryEmailRequest, type index_d$6_SendRecoveryEmailResponse as SendRecoveryEmailResponse, type StateMachineResponse$1 as StateMachineResponse, type StateMachineResponseNonNullableFields$1 as StateMachineResponseNonNullableFields, type StateMachineResponseStateDataOneOf$1 as StateMachineResponseStateDataOneOf, StateType$1 as StateType, Status$1 as Status, StatusName$1 as StatusName, type StatusV2$1 as StatusV2, index_d$6_TenantType as TenantType, type V1CustomValue$1 as V1CustomValue, type V1CustomValueValueOneOf$1 as V1CustomValueValueOneOf, type V1Factor$1 as V1Factor, type V1ListValue$1 as V1ListValue, type V1MapValue$1 as V1MapValue, type VerificationChallenge$1 as VerificationChallenge, index_d$6_recover as recover, index_d$6_sendActivationEmail as sendActivationEmail, index_d$6_sendRecoveryEmail as sendRecoveryEmail };
1791
1841
  }
1792
1842
 
1793
1843
  interface StartResponse {
@@ -1821,7 +1871,9 @@ interface VerifyDuringAuthenticationRequest {
1821
1871
  /** A state token representing the `REQUIRE_EMAIL_VERIFICATION` state. */
1822
1872
  stateToken: string;
1823
1873
  }
1824
- interface StateMachineResponse {
1874
+ interface StateMachineResponse extends StateMachineResponseStateDataOneOf {
1875
+ requireMfaData?: RequireMfaData;
1876
+ mfaChallengeData?: MfaChallengeData;
1825
1877
  /** The current state of the login or registration process. */
1826
1878
  state?: StateType;
1827
1879
  /** If state is `SUCCESS`, a session token. */
@@ -1833,6 +1885,11 @@ interface StateMachineResponse {
1833
1885
  /** additional_data = 5; //TBD */
1834
1886
  additionalData?: Record<string, CustomValue>;
1835
1887
  }
1888
+ /** @oneof */
1889
+ interface StateMachineResponseStateDataOneOf {
1890
+ requireMfaData?: RequireMfaData;
1891
+ mfaChallengeData?: MfaChallengeData;
1892
+ }
1836
1893
  declare enum StateType {
1837
1894
  /** Initial unknown state. */
1838
1895
  UNKNOWN_STATE = "UNKNOWN_STATE",
@@ -1847,18 +1904,12 @@ declare enum StateType {
1847
1904
  REQUIRE_EMAIL_VERIFICATION = "REQUIRE_EMAIL_VERIFICATION",
1848
1905
  /** State that indicates checking that the status is not one of the `invalidStates` before proceeding. */
1849
1906
  STATUS_CHECK = "STATUS_CHECK",
1850
- REQUIRE_MFA = "REQUIRE_MFA"
1907
+ REQUIRE_MFA = "REQUIRE_MFA",
1908
+ MFA_CHALLENGE = "MFA_CHALLENGE"
1851
1909
  }
1852
1910
  interface Identity {
1853
1911
  /** Identity ID */
1854
1912
  _id?: string | null;
1855
- /**
1856
- * Identifiers
1857
- * @deprecated Identifiers
1858
- * @replacedBy email
1859
- * @targetRemovalDate 2023-05-01
1860
- */
1861
- identifiers?: Identifier[];
1862
1913
  /**
1863
1914
  * Represents the current state of an item. Each time the item is modified, its `revision` changes.
1864
1915
  * For an update operation to succeed, you MUST pass the latest revision.
@@ -1884,7 +1935,7 @@ interface Identity {
1884
1935
  */
1885
1936
  metadata?: Metadata;
1886
1937
  /** Identity email address. */
1887
- email?: Email;
1938
+ email?: Email$1;
1888
1939
  /** Identity's current status. */
1889
1940
  status?: StatusV2;
1890
1941
  /** filled by pre registered spi */
@@ -1895,15 +1946,6 @@ interface Identity {
1895
1946
  */
1896
1947
  factors?: Factor[];
1897
1948
  }
1898
- interface Identifier extends IdentifierValueOneOf {
1899
- email?: string;
1900
- userName?: string;
1901
- }
1902
- /** @oneof */
1903
- interface IdentifierValueOneOf {
1904
- email?: string;
1905
- userName?: string;
1906
- }
1907
1949
  interface Connection extends ConnectionTypeOneOf {
1908
1950
  /** IDP connection. */
1909
1951
  idpConnection?: IdpConnection;
@@ -1975,6 +2017,8 @@ interface IdentityProfile {
1975
2017
  position?: string | null;
1976
2018
  /** Profile birthdate - ISO-8601 extended local date format (YYYY-MM-DD). */
1977
2019
  birthdate?: string | null;
2020
+ /** slug */
2021
+ slug?: string | null;
1978
2022
  }
1979
2023
  declare enum PrivacyStatus {
1980
2024
  UNDEFINED = "UNDEFINED",
@@ -2087,7 +2131,7 @@ interface Metadata {
2087
2131
  */
2088
2132
  tags?: string[];
2089
2133
  }
2090
- interface Email {
2134
+ interface Email$1 {
2091
2135
  address?: string;
2092
2136
  isVerified?: boolean;
2093
2137
  }
@@ -2166,6 +2210,20 @@ interface MapValue {
2166
2210
  /** Mapped custom value. */
2167
2211
  value?: Record<string, CustomValue>;
2168
2212
  }
2213
+ interface RequireMfaData {
2214
+ availableFactors?: V1Factor[];
2215
+ }
2216
+ interface V1Factor {
2217
+ factorType?: FactorType;
2218
+ }
2219
+ interface MfaChallengeData {
2220
+ factorType?: FactorType;
2221
+ verificationChallengeData?: VerificationChallenge;
2222
+ availableFactors?: V1Factor[];
2223
+ }
2224
+ interface VerificationChallenge {
2225
+ hint?: string | null;
2226
+ }
2169
2227
  interface ResendDuringAuthenticationRequest {
2170
2228
  /** A state token representing the `REQUIRE_EMAIL_VERIFICATION` state. */
2171
2229
  stateToken: string;
@@ -2173,9 +2231,15 @@ interface ResendDuringAuthenticationRequest {
2173
2231
  interface StartResponseNonNullableFields {
2174
2232
  verificationId: string;
2175
2233
  }
2176
- interface IdentifierNonNullableFields {
2177
- email: string;
2178
- userName: string;
2234
+ interface V1FactorNonNullableFields {
2235
+ factorType: FactorType;
2236
+ }
2237
+ interface RequireMfaDataNonNullableFields {
2238
+ availableFactors: V1FactorNonNullableFields[];
2239
+ }
2240
+ interface MfaChallengeDataNonNullableFields {
2241
+ factorType: FactorType;
2242
+ availableFactors: V1FactorNonNullableFields[];
2179
2243
  }
2180
2244
  interface IdpConnectionNonNullableFields {
2181
2245
  idpConnectionId: string;
@@ -2239,7 +2303,6 @@ interface FactorNonNullableFields {
2239
2303
  status: Status;
2240
2304
  }
2241
2305
  interface IdentityNonNullableFields {
2242
- identifiers: IdentifierNonNullableFields[];
2243
2306
  connections: ConnectionNonNullableFields[];
2244
2307
  identityProfile?: IdentityProfileNonNullableFields;
2245
2308
  metadata?: MetadataNonNullableFields;
@@ -2248,6 +2311,8 @@ interface IdentityNonNullableFields {
2248
2311
  factors: FactorNonNullableFields[];
2249
2312
  }
2250
2313
  interface StateMachineResponseNonNullableFields {
2314
+ requireMfaData?: RequireMfaDataNonNullableFields;
2315
+ mfaChallengeData?: MfaChallengeDataNonNullableFields;
2251
2316
  state: StateType;
2252
2317
  identity?: IdentityNonNullableFields;
2253
2318
  }
@@ -2301,67 +2366,494 @@ declare const start: MaybeContext<BuildRESTFunction<typeof start$1> & typeof sta
2301
2366
  declare const verifyDuringAuthentication: MaybeContext<BuildRESTFunction<typeof verifyDuringAuthentication$1> & typeof verifyDuringAuthentication$1>;
2302
2367
  declare const resendDuringAuthentication: MaybeContext<BuildRESTFunction<typeof resendDuringAuthentication$1> & typeof resendDuringAuthentication$1>;
2303
2368
 
2304
- type index_d$4_Address = Address;
2305
- type index_d$4_AddressTag = AddressTag;
2306
- declare const index_d$4_AddressTag: typeof AddressTag;
2307
- type index_d$4_AddressWrapper = AddressWrapper;
2308
- type index_d$4_AuthenticatorConnection = AuthenticatorConnection;
2309
- type index_d$4_Connection = Connection;
2310
- type index_d$4_ConnectionTypeOneOf = ConnectionTypeOneOf;
2311
- type index_d$4_CustomField = CustomField;
2312
- type index_d$4_CustomValue = CustomValue;
2313
- type index_d$4_CustomValueValueOneOf = CustomValueValueOneOf;
2369
+ type index_d$5_Address = Address;
2370
+ type index_d$5_AddressTag = AddressTag;
2371
+ declare const index_d$5_AddressTag: typeof AddressTag;
2372
+ type index_d$5_AddressWrapper = AddressWrapper;
2373
+ type index_d$5_AuthenticatorConnection = AuthenticatorConnection;
2374
+ type index_d$5_Connection = Connection;
2375
+ type index_d$5_ConnectionTypeOneOf = ConnectionTypeOneOf;
2376
+ type index_d$5_CustomField = CustomField;
2377
+ type index_d$5_CustomValue = CustomValue;
2378
+ type index_d$5_CustomValueValueOneOf = CustomValueValueOneOf;
2379
+ type index_d$5_EmailTag = EmailTag;
2380
+ declare const index_d$5_EmailTag: typeof EmailTag;
2381
+ type index_d$5_Factor = Factor;
2382
+ type index_d$5_FactorType = FactorType;
2383
+ declare const index_d$5_FactorType: typeof FactorType;
2384
+ type index_d$5_Identity = Identity;
2385
+ type index_d$5_IdentityProfile = IdentityProfile;
2386
+ type index_d$5_IdpConnection = IdpConnection;
2387
+ type index_d$5_ListValue = ListValue;
2388
+ type index_d$5_MapValue = MapValue;
2389
+ type index_d$5_Metadata = Metadata;
2390
+ type index_d$5_MfaChallengeData = MfaChallengeData;
2391
+ type index_d$5_Phone = Phone;
2392
+ type index_d$5_PhoneTag = PhoneTag;
2393
+ declare const index_d$5_PhoneTag: typeof PhoneTag;
2394
+ type index_d$5_PrivacyStatus = PrivacyStatus;
2395
+ declare const index_d$5_PrivacyStatus: typeof PrivacyStatus;
2396
+ type index_d$5_Reason = Reason;
2397
+ declare const index_d$5_Reason: typeof Reason;
2398
+ type index_d$5_RequireMfaData = RequireMfaData;
2399
+ type index_d$5_ResendDuringAuthenticationRequest = ResendDuringAuthenticationRequest;
2400
+ type index_d$5_SecondaryEmail = SecondaryEmail;
2401
+ type index_d$5_StartOptions = StartOptions;
2402
+ type index_d$5_StartRequest = StartRequest;
2403
+ type index_d$5_StartResponse = StartResponse;
2404
+ type index_d$5_StartResponseNonNullableFields = StartResponseNonNullableFields;
2405
+ type index_d$5_StateMachineResponse = StateMachineResponse;
2406
+ type index_d$5_StateMachineResponseNonNullableFields = StateMachineResponseNonNullableFields;
2407
+ type index_d$5_StateMachineResponseStateDataOneOf = StateMachineResponseStateDataOneOf;
2408
+ type index_d$5_StateType = StateType;
2409
+ declare const index_d$5_StateType: typeof StateType;
2410
+ type index_d$5_Status = Status;
2411
+ declare const index_d$5_Status: typeof Status;
2412
+ type index_d$5_StatusName = StatusName;
2413
+ declare const index_d$5_StatusName: typeof StatusName;
2414
+ type index_d$5_StatusV2 = StatusV2;
2415
+ type index_d$5_Target = Target;
2416
+ declare const index_d$5_Target: typeof Target;
2417
+ type index_d$5_V1CustomValue = V1CustomValue;
2418
+ type index_d$5_V1CustomValueValueOneOf = V1CustomValueValueOneOf;
2419
+ type index_d$5_V1Factor = V1Factor;
2420
+ type index_d$5_V1ListValue = V1ListValue;
2421
+ type index_d$5_V1MapValue = V1MapValue;
2422
+ type index_d$5_VerificationChallenge = VerificationChallenge;
2423
+ type index_d$5_VerifyDuringAuthenticationOptions = VerifyDuringAuthenticationOptions;
2424
+ type index_d$5_VerifyDuringAuthenticationRequest = VerifyDuringAuthenticationRequest;
2425
+ type index_d$5_VerifyRequest = VerifyRequest;
2426
+ type index_d$5_VerifyResponse = VerifyResponse;
2427
+ declare const index_d$5_resendDuringAuthentication: typeof resendDuringAuthentication;
2428
+ declare const index_d$5_start: typeof start;
2429
+ declare const index_d$5_verifyDuringAuthentication: typeof verifyDuringAuthentication;
2430
+ declare namespace index_d$5 {
2431
+ export { type index_d$5_Address as Address, index_d$5_AddressTag as AddressTag, type index_d$5_AddressWrapper as AddressWrapper, type index_d$5_AuthenticatorConnection as AuthenticatorConnection, type index_d$5_Connection as Connection, type index_d$5_ConnectionTypeOneOf as ConnectionTypeOneOf, type index_d$5_CustomField as CustomField, type index_d$5_CustomValue as CustomValue, type index_d$5_CustomValueValueOneOf as CustomValueValueOneOf, type Email$1 as Email, index_d$5_EmailTag as EmailTag, type index_d$5_Factor as Factor, index_d$5_FactorType as FactorType, type index_d$5_Identity as Identity, type index_d$5_IdentityProfile as IdentityProfile, type index_d$5_IdpConnection as IdpConnection, type index_d$5_ListValue as ListValue, type index_d$5_MapValue as MapValue, type index_d$5_Metadata as Metadata, type index_d$5_MfaChallengeData as MfaChallengeData, type index_d$5_Phone as Phone, index_d$5_PhoneTag as PhoneTag, index_d$5_PrivacyStatus as PrivacyStatus, index_d$5_Reason as Reason, type index_d$5_RequireMfaData as RequireMfaData, type index_d$5_ResendDuringAuthenticationRequest as ResendDuringAuthenticationRequest, type index_d$5_SecondaryEmail as SecondaryEmail, type index_d$5_StartOptions as StartOptions, type index_d$5_StartRequest as StartRequest, type index_d$5_StartResponse as StartResponse, type index_d$5_StartResponseNonNullableFields as StartResponseNonNullableFields, type index_d$5_StateMachineResponse as StateMachineResponse, type index_d$5_StateMachineResponseNonNullableFields as StateMachineResponseNonNullableFields, type index_d$5_StateMachineResponseStateDataOneOf as StateMachineResponseStateDataOneOf, index_d$5_StateType as StateType, index_d$5_Status as Status, index_d$5_StatusName as StatusName, type index_d$5_StatusV2 as StatusV2, index_d$5_Target as Target, type index_d$5_V1CustomValue as V1CustomValue, type index_d$5_V1CustomValueValueOneOf as V1CustomValueValueOneOf, type index_d$5_V1Factor as V1Factor, type index_d$5_V1ListValue as V1ListValue, type index_d$5_V1MapValue as V1MapValue, type index_d$5_VerificationChallenge as VerificationChallenge, type index_d$5_VerifyDuringAuthenticationOptions as VerifyDuringAuthenticationOptions, type index_d$5_VerifyDuringAuthenticationRequest as VerifyDuringAuthenticationRequest, type index_d$5_VerifyRequest as VerifyRequest, type index_d$5_VerifyResponse as VerifyResponse, index_d$5_resendDuringAuthentication as resendDuringAuthentication, index_d$5_start as start, index_d$5_verifyDuringAuthentication as verifyDuringAuthentication };
2432
+ }
2433
+
2434
+ interface AccountV2 {
2435
+ /** Account ID. */
2436
+ accountId?: string;
2437
+ }
2438
+ interface GetUserAccountRequest {
2439
+ /** the user id that his account we query */
2440
+ userId?: string;
2441
+ }
2442
+ interface Account {
2443
+ /** Account ID. */
2444
+ accountId?: string;
2445
+ /** Account slug - used in the free URL prefix */
2446
+ slug?: string;
2447
+ /** Account name (display) */
2448
+ accountName?: string | null;
2449
+ /**
2450
+ * DEPRECATED field of account image
2451
+ * @deprecated
2452
+ */
2453
+ accountImg?: string | null;
2454
+ /** account status */
2455
+ status?: AccountStatus;
2456
+ /** account owner user id */
2457
+ accountOwner?: string;
2458
+ /** account extra properties */
2459
+ accountProperties?: AccountProperties;
2460
+ /** the account creation date */
2461
+ dateCreated?: Date | null;
2462
+ /** last time account was updated */
2463
+ dateUpdated?: Date | null;
2464
+ }
2465
+ /** enum with all available statuses of account */
2466
+ declare enum AccountStatus {
2467
+ ACTIVE = "ACTIVE",
2468
+ BLOCKED = "BLOCKED",
2469
+ DELETED = "DELETED"
2470
+ }
2471
+ /** All relevant account properties */
2472
+ interface AccountProperties {
2473
+ /** Whether this account is a team account. */
2474
+ isTeam?: boolean;
2475
+ /**
2476
+ * Account image (display)
2477
+ * relevant mainly for CoBranded accounts
2478
+ */
2479
+ accountImg?: string | null;
2480
+ /**
2481
+ * the account banner (display)
2482
+ * relevant mainly for CoBranded accounts
2483
+ */
2484
+ accountBanner?: string | null;
2485
+ /**
2486
+ * the account logo (display)
2487
+ * wll be shown as the account logo in the UI (top right corner, contributor list etc..)
2488
+ */
2489
+ accountLogo?: string | null;
2490
+ /**
2491
+ * account co branding flag (if exists)
2492
+ * an enum for CoBranding flag contains 4 possible options:
2493
+ * None - the account is not CoBranded
2494
+ * CoBranded - the account has a CoBranding flag
2495
+ * CoBranded_Customer_New - the account is a contributor of a CoBranded account. This account was created because of the contributor invite
2496
+ * CoBranded_Customer_Existing - the account is a contributor of a CoBranded account. This account was created before the invite of the contributor invite
2497
+ */
2498
+ coBranding?: CoBranding;
2499
+ /** account's website URL (shown on co branding customers sites) */
2500
+ websiteUrl?: string | null;
2501
+ /** the id of the parent account of this account, if it has a parent */
2502
+ parentAccountId?: string | null;
2503
+ }
2504
+ /** co branding flag options for account */
2505
+ declare enum CoBranding {
2506
+ None = "None",
2507
+ CoBranded = "CoBranded",
2508
+ CoBranded_Customer_New = "CoBranded_Customer_New",
2509
+ CoBranded_Customer_Existing = "CoBranded_Customer_Existing"
2510
+ }
2511
+ interface GetUserAccountsRequest {
2512
+ /** the user id that his accounts we query */
2513
+ userId?: string;
2514
+ /** Limited to max 20 at a single request */
2515
+ paging?: Paging$1;
2516
+ }
2517
+ interface Paging$1 {
2518
+ /** Number of items to load. */
2519
+ limit?: number | null;
2520
+ /** Number of items to skip in the current sort order. */
2521
+ offset?: number | null;
2522
+ }
2523
+ interface AccountsResponse {
2524
+ accounts?: Account[];
2525
+ }
2526
+ interface GetMyUserAccountsRequest {
2527
+ /** Limited to max 20 at a single request */
2528
+ paging?: Paging$1;
2529
+ }
2530
+ interface GetAccountRequest {
2531
+ /** the account id that it's data should be retrieved */
2532
+ accountId?: string;
2533
+ }
2534
+ interface AccountResponse {
2535
+ account?: Account;
2536
+ }
2537
+ interface GetMyAccountRequest {
2538
+ }
2539
+ interface GetAccountsRequest {
2540
+ /** the account id to retrieve */
2541
+ accountIds?: string[];
2542
+ }
2543
+ interface CreateAccountRequest {
2544
+ /** The user to create under the new account, with the roles defined in `roles`. */
2545
+ user: User$1;
2546
+ /**
2547
+ * Roles to be assigned to the user in the new account. To retrieve all available roles, call Get Roles Info in the Users API.
2548
+ * Default: OWNER.
2549
+ */
2550
+ roles?: string[] | null;
2551
+ }
2552
+ /** A User to be created under an implicitly provided accountId: must have a unique email. */
2553
+ interface User$1 {
2554
+ /** User's unique email address details. Required. */
2555
+ email?: Email;
2556
+ /** 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. */
2557
+ ssoIdentities?: SsoIdentity[];
2558
+ /** Additional user details. */
2559
+ userDetails?: UserDetails;
2560
+ }
2561
+ /** User's email address. */
2562
+ interface Email {
2563
+ /** User's email address. */
2564
+ emailAddress?: string;
2565
+ /** Whether the caller has verified the user's email address. */
2566
+ isVerified?: boolean;
2567
+ }
2568
+ /** Single Sign On (aka. SSO) identity; user is identified via SSO authentication response token params, as specified by OpenID Connect (aka. OIDC) protocol */
2569
+ interface SsoIdentity {
2570
+ /** An SSO setting (URLs, clientId, secret, etc. as required by OIDC protocol) for a specific Identity-Provider (aka. IdP) for a specific Wix account. */
2571
+ ssoId?: string;
2572
+ /**
2573
+ * User ID as stored in IdP. For example a "sub" claim of OIDC protocol,
2574
+ * or any other alternative, specified by IdP (Identity Provider).
2575
+ */
2576
+ userId?: string;
2577
+ }
2578
+ /** additional user details */
2579
+ interface UserDetails {
2580
+ /** User's first name. */
2581
+ firstName?: string | null;
2582
+ /** User's last name. */
2583
+ lastName?: string | null;
2584
+ /** URL to location of user's profile picture. */
2585
+ profilePictureUrl?: string | null;
2586
+ /** User's preferred language in [ISO 639-1:2002](https://en.wikipedia.org/wiki/ISO_639-1) format. For example, "en", "es". */
2587
+ language?: string | null;
2588
+ /**
2589
+ * Original Client IP from which a request was made.
2590
+ * 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.
2591
+ * Wix checks this IP against the [OFAC sanctioned countries](https://ofac.treasury.gov/sanctions-programs-and-country-information).
2592
+ */
2593
+ clientIp?: string | null;
2594
+ }
2595
+ interface CreateAccountResponse {
2596
+ /** The created account. */
2597
+ account?: AccountV2;
2598
+ }
2599
+ interface CreateAccountForMyUserRequest {
2600
+ /** the account name */
2601
+ accountName?: string | null;
2602
+ /** account image url */
2603
+ accountImg?: string | null;
2604
+ /** whether to mark the account as `studio` */
2605
+ studio?: boolean;
2606
+ }
2607
+ interface CreateAccountTenantRequest {
2608
+ slug?: string | null;
2609
+ }
2610
+ interface CreateAccountTenantResponse {
2611
+ account?: AccountV2;
2612
+ }
2613
+ interface CreateAccountAndAssignUserRequest {
2614
+ /** the user id for which we are creating the account */
2615
+ userId?: string;
2616
+ /** the user name of the user for which the account is created */
2617
+ userName?: string;
2618
+ /** the parent account of the created account */
2619
+ parentAccountId?: string | null;
2620
+ /** whether to mark the account as `studio` */
2621
+ studio?: boolean;
2622
+ }
2623
+ interface UpdateAccountRequest {
2624
+ /** the account id to update */
2625
+ accountId?: string;
2626
+ /**
2627
+ * DEPRECATED field of image
2628
+ * @deprecated
2629
+ */
2630
+ accountImg?: string | null;
2631
+ /** optional - new account name */
2632
+ accountName?: string | null;
2633
+ /**
2634
+ * the new properties for the account.
2635
+ * can be passed partially - and only relevant fields will be updated
2636
+ */
2637
+ accountProperties?: AccountProperties;
2638
+ }
2639
+ interface UpdateParentAccountRequest extends UpdateParentAccountRequestUpdateOneOf {
2640
+ /** Removes the parent account */
2641
+ remove?: RemoveParent;
2642
+ }
2643
+ /** @oneof */
2644
+ interface UpdateParentAccountRequestUpdateOneOf {
2645
+ /** Removes the parent account */
2646
+ remove?: RemoveParent;
2647
+ }
2648
+ interface RemoveParent {
2649
+ }
2650
+ interface UpdateParentAccountResponse {
2651
+ newParentAccountId?: string | null;
2652
+ }
2653
+ interface DeleteAccountRequest {
2654
+ /** the account id to delete */
2655
+ accountId?: string;
2656
+ /** will throw exception if trying to delete the account of the last user when the value is true */
2657
+ shouldNotDeleteLastAccount?: boolean;
2658
+ }
2659
+ interface EmptyResponse {
2660
+ }
2661
+ interface UpdateSlugRequest {
2662
+ /** account id */
2663
+ accountId?: string;
2664
+ /** new slug */
2665
+ newSlugName?: string;
2666
+ }
2667
+ interface IsTeamRequest {
2668
+ /** the account id to check if it's a team account */
2669
+ accountId?: string;
2670
+ }
2671
+ interface IsTeamResponse {
2672
+ /** true if the account is marked as a team account, false if not */
2673
+ isTeamAccount?: boolean;
2674
+ }
2675
+ interface MarkAccountFlagRequest extends MarkAccountFlagRequestFlagOneOf {
2676
+ /**
2677
+ * account co branding flag (if exists)
2678
+ * an enum for CoBranding flag contains 4 possible options:
2679
+ * None - the account is not CoBranded
2680
+ * CoBranded - the account has a CoBranding flag
2681
+ * CoBranded_Customer_New - the account is a contributor of a CoBranded account. This account was created because of the contributor invite
2682
+ * CoBranded_Customer_Existing - the account is a contributor of a CoBranded account. This account was created before the invite of the contributor invite
2683
+ */
2684
+ coBranding?: CoBranding;
2685
+ /** the account id to mark */
2686
+ accountId?: string;
2687
+ /** the inviting account id in case the flag is given by an invite */
2688
+ invitedByAccountId?: string | null;
2689
+ }
2690
+ /** @oneof */
2691
+ interface MarkAccountFlagRequestFlagOneOf {
2692
+ /**
2693
+ * account co branding flag (if exists)
2694
+ * an enum for CoBranding flag contains 4 possible options:
2695
+ * None - the account is not CoBranded
2696
+ * CoBranded - the account has a CoBranding flag
2697
+ * CoBranded_Customer_New - the account is a contributor of a CoBranded account. This account was created because of the contributor invite
2698
+ * CoBranded_Customer_Existing - the account is a contributor of a CoBranded account. This account was created before the invite of the contributor invite
2699
+ */
2700
+ coBranding?: CoBranding;
2701
+ }
2702
+ interface GetParentAccountInfoRequest {
2703
+ }
2704
+ interface GetParentAccountInfoResponse {
2705
+ /** The info of the parent account, if the account has a parent */
2706
+ parentAccountInfo?: AccountInfo$1;
2707
+ }
2708
+ interface AccountInfo$1 {
2709
+ /** The name of the account */
2710
+ name?: string | null;
2711
+ /** The url of the image of the account */
2712
+ image?: string | null;
2713
+ }
2714
+ interface GetSubAccountsRequest {
2715
+ /** Offset-based pagination for the response. Default page size is 20, max page size is 50 */
2716
+ paging?: Paging$1;
2717
+ }
2718
+ interface GetSubAccountsResponse {
2719
+ /** The sub accounts of the target account */
2720
+ subAccounts?: SubAccountInfo[];
2721
+ /** Metadata of the response pagination */
2722
+ pagingMetadata?: PagingMetadata;
2723
+ }
2724
+ interface SubAccountInfo {
2725
+ /** The id of the sub account */
2726
+ accountId?: string;
2727
+ }
2728
+ interface PagingMetadata {
2729
+ /** Number of items returned in the response. */
2730
+ count?: number | null;
2731
+ /** Offset that was requested. */
2732
+ offset?: number | null;
2733
+ /** Total number of items that match the query. */
2734
+ total?: number | null;
2735
+ /** Flag that indicates the server failed to calculate the `total` field. */
2736
+ tooManyToCount?: boolean | null;
2737
+ }
2738
+ interface ListChildAccountsRequest {
2739
+ /**
2740
+ * Paging options to limit and offset the number of items.
2741
+ * Default: 20. Max: 50.
2742
+ */
2743
+ paging?: Paging$1;
2744
+ }
2745
+ interface ListChildAccountsResponse {
2746
+ /** The requested child accounts. */
2747
+ childAccounts?: AccountV2[];
2748
+ /** Metadata of the response pagination. */
2749
+ pagingMetadata?: PagingMetadata;
2750
+ }
2751
+ interface SetIsReadOnlyAccountRequest {
2752
+ accountId?: string;
2753
+ isReadOnly?: boolean;
2754
+ }
2755
+ interface AccountV2NonNullableFields {
2756
+ accountId: string;
2757
+ }
2758
+ interface CreateAccountResponseNonNullableFields {
2759
+ account?: AccountV2NonNullableFields;
2760
+ }
2761
+ interface ListChildAccountsResponseNonNullableFields {
2762
+ childAccounts: AccountV2NonNullableFields[];
2763
+ }
2764
+ interface CreateAccountOptions {
2765
+ /**
2766
+ * Roles to be assigned to the user in the new account. To retrieve all available roles, call Get Roles Info in the Users API.
2767
+ * Default: OWNER.
2768
+ */
2769
+ roles?: string[] | null;
2770
+ }
2771
+ interface ListChildAccountsOptions {
2772
+ /**
2773
+ * Paging options to limit and offset the number of items.
2774
+ * Default: 20. Max: 50.
2775
+ */
2776
+ paging?: Paging$1;
2777
+ }
2778
+
2779
+ declare function createAccount$1(httpClient: HttpClient): CreateAccountSignature;
2780
+ interface CreateAccountSignature {
2781
+ /**
2782
+ * Creates a new Wix account, and creates a new Wix user as the account owner.
2783
+ * The newly created account is a child account of the account used to create it, making that account its parent.
2784
+ *
2785
+ * > **Important**: This call requires an account level API key and cannot be authenticated with the standard authorization header. API keys are currently available to selected beta users only.
2786
+ * @param - The user to create under the new account, with the roles defined in `roles`.
2787
+ */
2788
+ (user: User$1, options?: CreateAccountOptions | undefined): Promise<CreateAccountResponse & CreateAccountResponseNonNullableFields>;
2789
+ }
2790
+ declare function listChildAccounts$1(httpClient: HttpClient): ListChildAccountsSignature;
2791
+ interface ListChildAccountsSignature {
2792
+ /**
2793
+ * Retrieves a list of child account IDs for the requesting account.
2794
+ * If no child accounts exist, an empty list will be returned.
2795
+ *
2796
+ * > **Important**: This call requires an account level API key and cannot be authenticated with the standard authorization header. API keys are currently available to selected beta users only.
2797
+ */
2798
+ (options?: ListChildAccountsOptions | undefined): Promise<ListChildAccountsResponse & ListChildAccountsResponseNonNullableFields>;
2799
+ }
2800
+
2801
+ declare const createAccount: MaybeContext<BuildRESTFunction<typeof createAccount$1> & typeof createAccount$1>;
2802
+ declare const listChildAccounts: MaybeContext<BuildRESTFunction<typeof listChildAccounts$1> & typeof listChildAccounts$1>;
2803
+
2804
+ type index_d$4_Account = Account;
2805
+ type index_d$4_AccountProperties = AccountProperties;
2806
+ type index_d$4_AccountResponse = AccountResponse;
2807
+ type index_d$4_AccountStatus = AccountStatus;
2808
+ declare const index_d$4_AccountStatus: typeof AccountStatus;
2809
+ type index_d$4_AccountV2 = AccountV2;
2810
+ type index_d$4_AccountsResponse = AccountsResponse;
2811
+ type index_d$4_CoBranding = CoBranding;
2812
+ declare const index_d$4_CoBranding: typeof CoBranding;
2813
+ type index_d$4_CreateAccountAndAssignUserRequest = CreateAccountAndAssignUserRequest;
2814
+ type index_d$4_CreateAccountForMyUserRequest = CreateAccountForMyUserRequest;
2815
+ type index_d$4_CreateAccountOptions = CreateAccountOptions;
2816
+ type index_d$4_CreateAccountRequest = CreateAccountRequest;
2817
+ type index_d$4_CreateAccountResponse = CreateAccountResponse;
2818
+ type index_d$4_CreateAccountResponseNonNullableFields = CreateAccountResponseNonNullableFields;
2819
+ type index_d$4_CreateAccountTenantRequest = CreateAccountTenantRequest;
2820
+ type index_d$4_CreateAccountTenantResponse = CreateAccountTenantResponse;
2821
+ type index_d$4_DeleteAccountRequest = DeleteAccountRequest;
2314
2822
  type index_d$4_Email = Email;
2315
- type index_d$4_EmailTag = EmailTag;
2316
- declare const index_d$4_EmailTag: typeof EmailTag;
2317
- type index_d$4_Factor = Factor;
2318
- type index_d$4_FactorType = FactorType;
2319
- declare const index_d$4_FactorType: typeof FactorType;
2320
- type index_d$4_Identifier = Identifier;
2321
- type index_d$4_IdentifierValueOneOf = IdentifierValueOneOf;
2322
- type index_d$4_Identity = Identity;
2323
- type index_d$4_IdentityProfile = IdentityProfile;
2324
- type index_d$4_IdpConnection = IdpConnection;
2325
- type index_d$4_ListValue = ListValue;
2326
- type index_d$4_MapValue = MapValue;
2327
- type index_d$4_Metadata = Metadata;
2328
- type index_d$4_Phone = Phone;
2329
- type index_d$4_PhoneTag = PhoneTag;
2330
- declare const index_d$4_PhoneTag: typeof PhoneTag;
2331
- type index_d$4_PrivacyStatus = PrivacyStatus;
2332
- declare const index_d$4_PrivacyStatus: typeof PrivacyStatus;
2333
- type index_d$4_Reason = Reason;
2334
- declare const index_d$4_Reason: typeof Reason;
2335
- type index_d$4_ResendDuringAuthenticationRequest = ResendDuringAuthenticationRequest;
2336
- type index_d$4_SecondaryEmail = SecondaryEmail;
2337
- type index_d$4_StartOptions = StartOptions;
2338
- type index_d$4_StartRequest = StartRequest;
2339
- type index_d$4_StartResponse = StartResponse;
2340
- type index_d$4_StartResponseNonNullableFields = StartResponseNonNullableFields;
2341
- type index_d$4_StateMachineResponse = StateMachineResponse;
2342
- type index_d$4_StateMachineResponseNonNullableFields = StateMachineResponseNonNullableFields;
2343
- type index_d$4_StateType = StateType;
2344
- declare const index_d$4_StateType: typeof StateType;
2345
- type index_d$4_Status = Status;
2346
- declare const index_d$4_Status: typeof Status;
2347
- type index_d$4_StatusName = StatusName;
2348
- declare const index_d$4_StatusName: typeof StatusName;
2349
- type index_d$4_StatusV2 = StatusV2;
2350
- type index_d$4_Target = Target;
2351
- declare const index_d$4_Target: typeof Target;
2352
- type index_d$4_V1CustomValue = V1CustomValue;
2353
- type index_d$4_V1CustomValueValueOneOf = V1CustomValueValueOneOf;
2354
- type index_d$4_V1ListValue = V1ListValue;
2355
- type index_d$4_V1MapValue = V1MapValue;
2356
- type index_d$4_VerifyDuringAuthenticationOptions = VerifyDuringAuthenticationOptions;
2357
- type index_d$4_VerifyDuringAuthenticationRequest = VerifyDuringAuthenticationRequest;
2358
- type index_d$4_VerifyRequest = VerifyRequest;
2359
- type index_d$4_VerifyResponse = VerifyResponse;
2360
- declare const index_d$4_resendDuringAuthentication: typeof resendDuringAuthentication;
2361
- declare const index_d$4_start: typeof start;
2362
- declare const index_d$4_verifyDuringAuthentication: typeof verifyDuringAuthentication;
2823
+ type index_d$4_EmptyResponse = EmptyResponse;
2824
+ type index_d$4_GetAccountRequest = GetAccountRequest;
2825
+ type index_d$4_GetAccountsRequest = GetAccountsRequest;
2826
+ type index_d$4_GetMyAccountRequest = GetMyAccountRequest;
2827
+ type index_d$4_GetMyUserAccountsRequest = GetMyUserAccountsRequest;
2828
+ type index_d$4_GetParentAccountInfoRequest = GetParentAccountInfoRequest;
2829
+ type index_d$4_GetParentAccountInfoResponse = GetParentAccountInfoResponse;
2830
+ type index_d$4_GetSubAccountsRequest = GetSubAccountsRequest;
2831
+ type index_d$4_GetSubAccountsResponse = GetSubAccountsResponse;
2832
+ type index_d$4_GetUserAccountRequest = GetUserAccountRequest;
2833
+ type index_d$4_GetUserAccountsRequest = GetUserAccountsRequest;
2834
+ type index_d$4_IsTeamRequest = IsTeamRequest;
2835
+ type index_d$4_IsTeamResponse = IsTeamResponse;
2836
+ type index_d$4_ListChildAccountsOptions = ListChildAccountsOptions;
2837
+ type index_d$4_ListChildAccountsRequest = ListChildAccountsRequest;
2838
+ type index_d$4_ListChildAccountsResponse = ListChildAccountsResponse;
2839
+ type index_d$4_ListChildAccountsResponseNonNullableFields = ListChildAccountsResponseNonNullableFields;
2840
+ type index_d$4_MarkAccountFlagRequest = MarkAccountFlagRequest;
2841
+ type index_d$4_MarkAccountFlagRequestFlagOneOf = MarkAccountFlagRequestFlagOneOf;
2842
+ type index_d$4_PagingMetadata = PagingMetadata;
2843
+ type index_d$4_RemoveParent = RemoveParent;
2844
+ type index_d$4_SetIsReadOnlyAccountRequest = SetIsReadOnlyAccountRequest;
2845
+ type index_d$4_SsoIdentity = SsoIdentity;
2846
+ type index_d$4_SubAccountInfo = SubAccountInfo;
2847
+ type index_d$4_UpdateAccountRequest = UpdateAccountRequest;
2848
+ type index_d$4_UpdateParentAccountRequest = UpdateParentAccountRequest;
2849
+ type index_d$4_UpdateParentAccountRequestUpdateOneOf = UpdateParentAccountRequestUpdateOneOf;
2850
+ type index_d$4_UpdateParentAccountResponse = UpdateParentAccountResponse;
2851
+ type index_d$4_UpdateSlugRequest = UpdateSlugRequest;
2852
+ type index_d$4_UserDetails = UserDetails;
2853
+ declare const index_d$4_createAccount: typeof createAccount;
2854
+ declare const index_d$4_listChildAccounts: typeof listChildAccounts;
2363
2855
  declare namespace index_d$4 {
2364
- export { type index_d$4_Address as Address, index_d$4_AddressTag as AddressTag, type index_d$4_AddressWrapper as AddressWrapper, type index_d$4_AuthenticatorConnection as AuthenticatorConnection, type index_d$4_Connection as Connection, type index_d$4_ConnectionTypeOneOf as ConnectionTypeOneOf, type index_d$4_CustomField as CustomField, type index_d$4_CustomValue as CustomValue, type index_d$4_CustomValueValueOneOf as CustomValueValueOneOf, type index_d$4_Email as Email, index_d$4_EmailTag as EmailTag, type index_d$4_Factor as Factor, index_d$4_FactorType as FactorType, type index_d$4_Identifier as Identifier, type index_d$4_IdentifierValueOneOf as IdentifierValueOneOf, type index_d$4_Identity as Identity, type index_d$4_IdentityProfile as IdentityProfile, type index_d$4_IdpConnection as IdpConnection, type index_d$4_ListValue as ListValue, type index_d$4_MapValue as MapValue, type index_d$4_Metadata as Metadata, type index_d$4_Phone as Phone, index_d$4_PhoneTag as PhoneTag, index_d$4_PrivacyStatus as PrivacyStatus, index_d$4_Reason as Reason, type index_d$4_ResendDuringAuthenticationRequest as ResendDuringAuthenticationRequest, type index_d$4_SecondaryEmail as SecondaryEmail, type index_d$4_StartOptions as StartOptions, type index_d$4_StartRequest as StartRequest, type index_d$4_StartResponse as StartResponse, type index_d$4_StartResponseNonNullableFields as StartResponseNonNullableFields, type index_d$4_StateMachineResponse as StateMachineResponse, type index_d$4_StateMachineResponseNonNullableFields as StateMachineResponseNonNullableFields, index_d$4_StateType as StateType, index_d$4_Status as Status, index_d$4_StatusName as StatusName, type index_d$4_StatusV2 as StatusV2, index_d$4_Target as Target, type index_d$4_V1CustomValue as V1CustomValue, type index_d$4_V1CustomValueValueOneOf as V1CustomValueValueOneOf, type index_d$4_V1ListValue as V1ListValue, type index_d$4_V1MapValue as V1MapValue, type index_d$4_VerifyDuringAuthenticationOptions as VerifyDuringAuthenticationOptions, type index_d$4_VerifyDuringAuthenticationRequest as VerifyDuringAuthenticationRequest, type index_d$4_VerifyRequest as VerifyRequest, type index_d$4_VerifyResponse as VerifyResponse, index_d$4_resendDuringAuthentication as resendDuringAuthentication, index_d$4_start as start, index_d$4_verifyDuringAuthentication as verifyDuringAuthentication };
2856
+ export { type index_d$4_Account as Account, type AccountInfo$1 as AccountInfo, type index_d$4_AccountProperties as AccountProperties, type index_d$4_AccountResponse as AccountResponse, index_d$4_AccountStatus as AccountStatus, type index_d$4_AccountV2 as AccountV2, type index_d$4_AccountsResponse as AccountsResponse, index_d$4_CoBranding as CoBranding, type index_d$4_CreateAccountAndAssignUserRequest as CreateAccountAndAssignUserRequest, type index_d$4_CreateAccountForMyUserRequest as CreateAccountForMyUserRequest, type index_d$4_CreateAccountOptions as CreateAccountOptions, type index_d$4_CreateAccountRequest as CreateAccountRequest, type index_d$4_CreateAccountResponse as CreateAccountResponse, type index_d$4_CreateAccountResponseNonNullableFields as CreateAccountResponseNonNullableFields, type index_d$4_CreateAccountTenantRequest as CreateAccountTenantRequest, type index_d$4_CreateAccountTenantResponse as CreateAccountTenantResponse, type index_d$4_DeleteAccountRequest as DeleteAccountRequest, type index_d$4_Email as Email, type index_d$4_EmptyResponse as EmptyResponse, type index_d$4_GetAccountRequest as GetAccountRequest, type index_d$4_GetAccountsRequest as GetAccountsRequest, type index_d$4_GetMyAccountRequest as GetMyAccountRequest, type index_d$4_GetMyUserAccountsRequest as GetMyUserAccountsRequest, type index_d$4_GetParentAccountInfoRequest as GetParentAccountInfoRequest, type index_d$4_GetParentAccountInfoResponse as GetParentAccountInfoResponse, type index_d$4_GetSubAccountsRequest as GetSubAccountsRequest, type index_d$4_GetSubAccountsResponse as GetSubAccountsResponse, type index_d$4_GetUserAccountRequest as GetUserAccountRequest, type index_d$4_GetUserAccountsRequest as GetUserAccountsRequest, type index_d$4_IsTeamRequest as IsTeamRequest, type index_d$4_IsTeamResponse as IsTeamResponse, type index_d$4_ListChildAccountsOptions as ListChildAccountsOptions, type index_d$4_ListChildAccountsRequest as ListChildAccountsRequest, type index_d$4_ListChildAccountsResponse as ListChildAccountsResponse, type index_d$4_ListChildAccountsResponseNonNullableFields as ListChildAccountsResponseNonNullableFields, type index_d$4_MarkAccountFlagRequest as MarkAccountFlagRequest, type index_d$4_MarkAccountFlagRequestFlagOneOf as MarkAccountFlagRequestFlagOneOf, type Paging$1 as Paging, type index_d$4_PagingMetadata as PagingMetadata, type index_d$4_RemoveParent as RemoveParent, type index_d$4_SetIsReadOnlyAccountRequest as SetIsReadOnlyAccountRequest, type index_d$4_SsoIdentity as SsoIdentity, type index_d$4_SubAccountInfo as SubAccountInfo, type index_d$4_UpdateAccountRequest as UpdateAccountRequest, type index_d$4_UpdateParentAccountRequest as UpdateParentAccountRequest, type index_d$4_UpdateParentAccountRequestUpdateOneOf as UpdateParentAccountRequestUpdateOneOf, type index_d$4_UpdateParentAccountResponse as UpdateParentAccountResponse, type index_d$4_UpdateSlugRequest as UpdateSlugRequest, type User$1 as User, type index_d$4_UserDetails as UserDetails, index_d$4_createAccount as createAccount, index_d$4_listChildAccounts as listChildAccounts };
2365
2857
  }
2366
2858
 
2367
2859
  interface AccountInvite {
@@ -2853,6 +3345,7 @@ interface CreateInviteSignature {
2853
3345
  *
2854
3346
  * > **Important**: This call requires an account level API key and cannot be authenticated with the standard authorization header. API keys are currently available to selected beta users only.
2855
3347
  * @param - Array of potential team members' email addresses and their corresponding assignments (how they will be assigned when they accept the invite).
3348
+ * @param - Filter options.
2856
3349
  */
2857
3350
  (subjectsAssignments: SubjectInviteAssignments[], options?: CreateInviteOptions | undefined): Promise<CreateInviteResponse & CreateInviteResponseNonNullableFields>;
2858
3351
  }
@@ -3162,6 +3655,7 @@ interface BulkInviteSignature {
3162
3655
  * Creates and sends emails inviting potential site contributors to become contributors in the requesting site.
3163
3656
  * > **Important**: This call requires an account level API key and cannot be authenticated with the standard authorization header. API keys are currently available to selected beta users only.
3164
3657
  * @param - Role IDs, referred to as policy IDs, to assign to the contributors.
3658
+ * @param - Filter options.
3165
3659
  */
3166
3660
  (policyIds: string[], options?: BulkInviteOptions | undefined): Promise<BulkSiteInviteResponse & BulkSiteInviteResponseNonNullableFields>;
3167
3661
  }
@@ -3171,6 +3665,7 @@ interface ResendInviteSignature {
3171
3665
  * Resends the email invitation to a potential site contributor.
3172
3666
  * > **Important**: This call requires an account level API key and cannot be authenticated with the standard authorization header. API keys are currently available to selected beta users only.
3173
3667
  * @param - Invite ID.
3668
+ * @param - Filter options.
3174
3669
  */
3175
3670
  (inviteId: string, options?: ResendInviteOptions | undefined): Promise<SiteInviteResponse & SiteInviteResponseNonNullableFields>;
3176
3671
  }
@@ -4023,6 +4518,7 @@ interface ChangeRoleSignature {
4023
4518
  /**
4024
4519
  * Overrides all the roles of a contributor for the specified site.
4025
4520
  * @param - Contributor's account ID.
4521
+ * @param - Filter options. The `newRoles` field **must** be passed.
4026
4522
  */
4027
4523
  (accountId: string, options: ChangeRoleOptions): Promise<ChangeContributorRoleResponse & ChangeContributorRoleResponseNonNullableFields>;
4028
4524
  }
@@ -4030,6 +4526,7 @@ declare function querySiteContributors$1(httpClient: HttpClient): QuerySiteContr
4030
4526
  interface QuerySiteContributorsSignature {
4031
4527
  /**
4032
4528
  * Retrieves a list of contributors for the specified site, given the provided filters.
4529
+ * @param - Filter options.
4033
4530
  */
4034
4531
  (options?: QuerySiteContributorsOptions | undefined): Promise<QuerySiteContributorsResponse>;
4035
4532
  }
@@ -4112,4 +4609,4 @@ declare namespace index_d {
4112
4609
  export { type index_d_AccountInfo as AccountInfo, type index_d_AppInvite as AppInvite, type index_d_AssignedPolicy as AssignedPolicy, type index_d_Assignment as Assignment, type index_d_BulkGetUserRolesOnSiteRequest as BulkGetUserRolesOnSiteRequest, type index_d_BulkGetUserRolesOnSiteResponse as BulkGetUserRolesOnSiteResponse, type index_d_ChangeContributorRoleRequest as ChangeContributorRoleRequest, type index_d_ChangeContributorRoleResponse as ChangeContributorRoleResponse, type index_d_ChangeContributorRoleResponseNonNullableFields as ChangeContributorRoleResponseNonNullableFields, type index_d_ChangeRoleOptions as ChangeRoleOptions, type index_d_CompanionResource as CompanionResource, type index_d_Condition as Condition, index_d_ConditionAttributeType as ConditionAttributeType, type index_d_Conditions as Conditions, type index_d_Contributor as Contributor, type index_d_ContributorLimit as ContributorLimit, type index_d_ContributorV2 as ContributorV2, type index_d_ContributorsQuota as ContributorsQuota, type index_d_ContributorsQuotaOptionsOneOf as ContributorsQuotaOptionsOneOf, index_d_FieldSet as FieldSet, type index_d_GetAppContributorsRequest as GetAppContributorsRequest, type index_d_GetAppContributorsResponse as GetAppContributorsResponse, type index_d_GetContributorsQuotaRequest as GetContributorsQuotaRequest, type index_d_GetContributorsQuotaResponse as GetContributorsQuotaResponse, type index_d_GetCurrentUserRolesRequest as GetCurrentUserRolesRequest, type index_d_GetCurrentUserRolesResponse as GetCurrentUserRolesResponse, type index_d_GetSiteContributorsRequest as GetSiteContributorsRequest, type index_d_GetSiteContributorsResponse as GetSiteContributorsResponse, type index_d_GetSiteContributorsV2Request as GetSiteContributorsV2Request, type index_d_GetSiteContributorsV2Response as GetSiteContributorsV2Response, type index_d_HandleSiteTransferRequest as HandleSiteTransferRequest, type index_d_HandleSiteTransferResponse as HandleSiteTransferResponse, index_d_InviteStatus as InviteStatus, type index_d_LimitedOptions as LimitedOptions, type index_d_LocalizedRole as LocalizedRole, type index_d_Name as Name, type index_d_PendingOwner as PendingOwner, type index_d_PersonMetaData as PersonMetaData, type index_d_Policy as Policy, type index_d_PredefinedRole as PredefinedRole, type index_d_PredefinedRoles as PredefinedRoles, type index_d_QuerySiteContributorsFilter as QuerySiteContributorsFilter, type index_d_QuerySiteContributorsOptions as QuerySiteContributorsOptions, type index_d_QuerySiteContributorsRequest as QuerySiteContributorsRequest, type index_d_QuerySiteContributorsResponse as QuerySiteContributorsResponse, type index_d_Resource as Resource, index_d_ResourceType as ResourceType, type index_d_Restriction as Restriction, type index_d_RestrictionRestrictionsOneOf as RestrictionRestrictionsOneOf, type index_d_Role as Role, type index_d_SiteInvite as SiteInvite, type index_d_SiteRestriction as SiteRestriction, type index_d_SiteRoleAssignment as SiteRoleAssignment, type index_d_Subject as Subject, type index_d_SubjectContext as SubjectContext, index_d_SubjectContextType as SubjectContextType, index_d_SubjectType as SubjectType, type index_d_Team as Team, index_d_Type as Type, type index_d_User as User, type index_d_UserLocalizedRoles as UserLocalizedRoles, type index_d_UserSubject as UserSubject, index_d_changeRole as changeRole, index_d_querySiteContributors as querySiteContributors };
4113
4610
  }
4114
4611
 
4115
- export { index_d$3 as accountInvite, index_d$6 as authentication, index_d$1 as oauth, index_d$5 as recovery, index_d as rolesManagement, index_d$2 as siteInvite, index_d$4 as verification };
4612
+ export { index_d$4 as account, index_d$3 as accountInvite, index_d$7 as authentication, index_d as contributor, index_d$1 as oauth, index_d$6 as recovery, index_d$2 as siteInvite, index_d$5 as verification };