@wix/identity 1.0.96 → 1.0.98

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.
@@ -247,7 +247,7 @@ interface Identity$5 {
247
247
  */
248
248
  metadata?: Metadata$5;
249
249
  /** Identity email address. */
250
- email?: Email$7;
250
+ email?: Email$5;
251
251
  /** Identity's current status. */
252
252
  status?: StatusV2$5;
253
253
  /** filled by pre registered spi */
@@ -290,7 +290,7 @@ interface Metadata$5 {
290
290
  */
291
291
  tags?: string[];
292
292
  }
293
- interface Email$7 {
293
+ interface Email$5 {
294
294
  address?: string;
295
295
  isVerified?: boolean;
296
296
  }
@@ -843,7 +843,7 @@ interface Identity$4 {
843
843
  */
844
844
  metadata?: Metadata$4;
845
845
  /** Identity email address. */
846
- email?: Email$6;
846
+ email?: Email$4;
847
847
  /** Identity's current status. */
848
848
  status?: StatusV2$4;
849
849
  /** filled by pre registered spi */
@@ -886,7 +886,7 @@ interface Metadata$4 {
886
886
  */
887
887
  tags?: string[];
888
888
  }
889
- interface Email$6 {
889
+ interface Email$4 {
890
890
  address?: string;
891
891
  isVerified?: boolean;
892
892
  }
@@ -1190,7 +1190,7 @@ interface SignOnResponseNonNullableFields {
1190
1190
  identity?: IdentityNonNullableFields$4;
1191
1191
  }
1192
1192
 
1193
- type __PublicMethodMetaInfo$5<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
1193
+ type __PublicMethodMetaInfo$3<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
1194
1194
  getUrl: (context: any) => string;
1195
1195
  httpMethod: K;
1196
1196
  path: string;
@@ -1200,32 +1200,32 @@ type __PublicMethodMetaInfo$5<K = string, M = unknown, T = unknown, S = unknown,
1200
1200
  __responseType: Q;
1201
1201
  __originalResponseType: R;
1202
1202
  };
1203
- declare function registerV2(): __PublicMethodMetaInfo$5<'POST', {}, RegisterV2Request, RegisterV2Request$1, StateMachineResponse$4 & StateMachineResponseNonNullableFields$4, StateMachineResponse$5 & StateMachineResponseNonNullableFields$5>;
1204
- declare function loginV2(): __PublicMethodMetaInfo$5<'POST', {}, LoginV2Request, LoginV2Request$1, StateMachineResponse$4 & StateMachineResponseNonNullableFields$4, StateMachineResponse$5 & StateMachineResponseNonNullableFields$5>;
1205
- declare function changePassword(): __PublicMethodMetaInfo$5<'POST', {}, ChangePasswordRequest, ChangePasswordRequest$1, ChangePasswordResponse, ChangePasswordResponse$1>;
1206
- declare function loginWithIdpConnection(): __PublicMethodMetaInfo$5<'GET', {
1203
+ declare function registerV2(): __PublicMethodMetaInfo$3<'POST', {}, RegisterV2Request, RegisterV2Request$1, StateMachineResponse$4 & StateMachineResponseNonNullableFields$4, StateMachineResponse$5 & StateMachineResponseNonNullableFields$5>;
1204
+ declare function loginV2(): __PublicMethodMetaInfo$3<'POST', {}, LoginV2Request, LoginV2Request$1, StateMachineResponse$4 & StateMachineResponseNonNullableFields$4, StateMachineResponse$5 & StateMachineResponseNonNullableFields$5>;
1205
+ declare function changePassword(): __PublicMethodMetaInfo$3<'POST', {}, ChangePasswordRequest, ChangePasswordRequest$1, ChangePasswordResponse, ChangePasswordResponse$1>;
1206
+ declare function loginWithIdpConnection(): __PublicMethodMetaInfo$3<'GET', {
1207
1207
  tenantId: string;
1208
1208
  idpConnectionId: string;
1209
1209
  }, LoginWithIdpConnectionRequest, LoginWithIdpConnectionRequest$1, RawHttpResponse$2 & RawHttpResponseNonNullableFields$2, RawHttpResponse$3 & RawHttpResponseNonNullableFields$3>;
1210
- declare function loginCallback(): __PublicMethodMetaInfo$5<'GET', {}, LoginCallbackRequest, LoginCallbackRequest$1, RawHttpResponse$2 & RawHttpResponseNonNullableFields$2, RawHttpResponse$3 & RawHttpResponseNonNullableFields$3>;
1211
- declare function loginWithIdpConnectionTokenParams(): __PublicMethodMetaInfo$5<'POST', {}, LoginWithIdpConnectionTokenParamsRequest, LoginWithIdpConnectionTokenParamsRequest$1, StateMachineResponse$4 & StateMachineResponseNonNullableFields$4, StateMachineResponse$5 & StateMachineResponseNonNullableFields$5>;
1212
- declare function signOn(): __PublicMethodMetaInfo$5<'POST', {}, SignOnRequest, SignOnRequest$1, SignOnResponse & SignOnResponseNonNullableFields, SignOnResponse$1 & SignOnResponseNonNullableFields$1>;
1213
- declare function logout(): __PublicMethodMetaInfo$5<'GET', {}, LogoutRequest, LogoutRequest$1, RawHttpResponse$2 & RawHttpResponseNonNullableFields$2, RawHttpResponse$3 & RawHttpResponseNonNullableFields$3>;
1214
- declare function verify(): __PublicMethodMetaInfo$5<'POST', {
1210
+ declare function loginCallback(): __PublicMethodMetaInfo$3<'GET', {}, LoginCallbackRequest, LoginCallbackRequest$1, RawHttpResponse$2 & RawHttpResponseNonNullableFields$2, RawHttpResponse$3 & RawHttpResponseNonNullableFields$3>;
1211
+ declare function loginWithIdpConnectionTokenParams(): __PublicMethodMetaInfo$3<'POST', {}, LoginWithIdpConnectionTokenParamsRequest, LoginWithIdpConnectionTokenParamsRequest$1, StateMachineResponse$4 & StateMachineResponseNonNullableFields$4, StateMachineResponse$5 & StateMachineResponseNonNullableFields$5>;
1212
+ declare function signOn(): __PublicMethodMetaInfo$3<'POST', {}, SignOnRequest, SignOnRequest$1, SignOnResponse & SignOnResponseNonNullableFields, SignOnResponse$1 & SignOnResponseNonNullableFields$1>;
1213
+ declare function logout(): __PublicMethodMetaInfo$3<'GET', {}, LogoutRequest, LogoutRequest$1, RawHttpResponse$2 & RawHttpResponseNonNullableFields$2, RawHttpResponse$3 & RawHttpResponseNonNullableFields$3>;
1214
+ declare function verify(): __PublicMethodMetaInfo$3<'POST', {
1215
1215
  factorType: string;
1216
1216
  }, VerifyRequest, VerifyRequest$1, StateMachineResponse$4 & StateMachineResponseNonNullableFields$4, StateMachineResponse$5 & StateMachineResponseNonNullableFields$5>;
1217
1217
 
1218
- declare const meta$5_changePassword: typeof changePassword;
1219
- declare const meta$5_loginCallback: typeof loginCallback;
1220
- declare const meta$5_loginV2: typeof loginV2;
1221
- declare const meta$5_loginWithIdpConnection: typeof loginWithIdpConnection;
1222
- declare const meta$5_loginWithIdpConnectionTokenParams: typeof loginWithIdpConnectionTokenParams;
1223
- declare const meta$5_logout: typeof logout;
1224
- declare const meta$5_registerV2: typeof registerV2;
1225
- declare const meta$5_signOn: typeof signOn;
1226
- declare const meta$5_verify: typeof verify;
1227
- declare namespace meta$5 {
1228
- export { type __PublicMethodMetaInfo$5 as __PublicMethodMetaInfo, meta$5_changePassword as changePassword, meta$5_loginCallback as loginCallback, meta$5_loginV2 as loginV2, meta$5_loginWithIdpConnection as loginWithIdpConnection, meta$5_loginWithIdpConnectionTokenParams as loginWithIdpConnectionTokenParams, meta$5_logout as logout, meta$5_registerV2 as registerV2, meta$5_signOn as signOn, meta$5_verify as verify };
1218
+ declare const meta$3_changePassword: typeof changePassword;
1219
+ declare const meta$3_loginCallback: typeof loginCallback;
1220
+ declare const meta$3_loginV2: typeof loginV2;
1221
+ declare const meta$3_loginWithIdpConnection: typeof loginWithIdpConnection;
1222
+ declare const meta$3_loginWithIdpConnectionTokenParams: typeof loginWithIdpConnectionTokenParams;
1223
+ declare const meta$3_logout: typeof logout;
1224
+ declare const meta$3_registerV2: typeof registerV2;
1225
+ declare const meta$3_signOn: typeof signOn;
1226
+ declare const meta$3_verify: typeof verify;
1227
+ declare namespace meta$3 {
1228
+ export { type __PublicMethodMetaInfo$3 as __PublicMethodMetaInfo, meta$3_changePassword as changePassword, meta$3_loginCallback as loginCallback, meta$3_loginV2 as loginV2, meta$3_loginWithIdpConnection as loginWithIdpConnection, meta$3_loginWithIdpConnectionTokenParams as loginWithIdpConnectionTokenParams, meta$3_logout as logout, meta$3_registerV2 as registerV2, meta$3_signOn as signOn, meta$3_verify as verify };
1229
1229
  }
1230
1230
 
1231
1231
  interface SendRecoveryEmailRequest$1 {
@@ -1328,7 +1328,7 @@ interface Identity$3 {
1328
1328
  */
1329
1329
  metadata?: Metadata$3;
1330
1330
  /** Identity email address. */
1331
- email?: Email$5;
1331
+ email?: Email$3;
1332
1332
  /** Identity's current status. */
1333
1333
  status?: StatusV2$3;
1334
1334
  /** filled by pre registered spi */
@@ -1524,7 +1524,7 @@ interface Metadata$3 {
1524
1524
  */
1525
1525
  tags?: string[];
1526
1526
  }
1527
- interface Email$5 {
1527
+ interface Email$3 {
1528
1528
  address?: string;
1529
1529
  isVerified?: boolean;
1530
1530
  }
@@ -1803,7 +1803,7 @@ interface Identity$2 {
1803
1803
  */
1804
1804
  metadata?: Metadata$2;
1805
1805
  /** Identity email address. */
1806
- email?: Email$4;
1806
+ email?: Email$2;
1807
1807
  /** Identity's current status. */
1808
1808
  status?: StatusV2$2;
1809
1809
  /** filled by pre registered spi */
@@ -1999,7 +1999,7 @@ interface Metadata$2 {
1999
1999
  */
2000
2000
  tags?: string[];
2001
2001
  }
2002
- interface Email$4 {
2002
+ interface Email$2 {
2003
2003
  address?: string;
2004
2004
  isVerified?: boolean;
2005
2005
  }
@@ -2178,7 +2178,7 @@ interface StateMachineResponseNonNullableFields$2 {
2178
2178
  identity?: IdentityNonNullableFields$2;
2179
2179
  }
2180
2180
 
2181
- type __PublicMethodMetaInfo$4<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
2181
+ type __PublicMethodMetaInfo$2<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
2182
2182
  getUrl: (context: any) => string;
2183
2183
  httpMethod: K;
2184
2184
  path: string;
@@ -2188,15 +2188,15 @@ type __PublicMethodMetaInfo$4<K = string, M = unknown, T = unknown, S = unknown,
2188
2188
  __responseType: Q;
2189
2189
  __originalResponseType: R;
2190
2190
  };
2191
- declare function sendRecoveryEmail(): __PublicMethodMetaInfo$4<'POST', {}, SendRecoveryEmailRequest, SendRecoveryEmailRequest$1, SendRecoveryEmailResponse, SendRecoveryEmailResponse$1>;
2192
- declare function sendActivationEmail(): __PublicMethodMetaInfo$4<'POST', {}, SendActivationEmailRequest, SendActivationEmailRequest$1, SendActivationEmailResponse, SendActivationEmailResponse$1>;
2193
- declare function recover(): __PublicMethodMetaInfo$4<'POST', {}, RecoverRequest, RecoverRequest$1, StateMachineResponse$2 & StateMachineResponseNonNullableFields$2, StateMachineResponse$3 & StateMachineResponseNonNullableFields$3>;
2191
+ declare function sendRecoveryEmail(): __PublicMethodMetaInfo$2<'POST', {}, SendRecoveryEmailRequest, SendRecoveryEmailRequest$1, SendRecoveryEmailResponse, SendRecoveryEmailResponse$1>;
2192
+ declare function sendActivationEmail(): __PublicMethodMetaInfo$2<'POST', {}, SendActivationEmailRequest, SendActivationEmailRequest$1, SendActivationEmailResponse, SendActivationEmailResponse$1>;
2193
+ declare function recover(): __PublicMethodMetaInfo$2<'POST', {}, RecoverRequest, RecoverRequest$1, StateMachineResponse$2 & StateMachineResponseNonNullableFields$2, StateMachineResponse$3 & StateMachineResponseNonNullableFields$3>;
2194
2194
 
2195
- declare const meta$4_recover: typeof recover;
2196
- declare const meta$4_sendActivationEmail: typeof sendActivationEmail;
2197
- declare const meta$4_sendRecoveryEmail: typeof sendRecoveryEmail;
2198
- declare namespace meta$4 {
2199
- export { type __PublicMethodMetaInfo$4 as __PublicMethodMetaInfo, meta$4_recover as recover, meta$4_sendActivationEmail as sendActivationEmail, meta$4_sendRecoveryEmail as sendRecoveryEmail };
2195
+ declare const meta$2_recover: typeof recover;
2196
+ declare const meta$2_sendActivationEmail: typeof sendActivationEmail;
2197
+ declare const meta$2_sendRecoveryEmail: typeof sendRecoveryEmail;
2198
+ declare namespace meta$2 {
2199
+ export { type __PublicMethodMetaInfo$2 as __PublicMethodMetaInfo, meta$2_recover as recover, meta$2_sendActivationEmail as sendActivationEmail, meta$2_sendRecoveryEmail as sendRecoveryEmail };
2200
2200
  }
2201
2201
 
2202
2202
  interface StartResponse$1 {
@@ -2286,7 +2286,7 @@ interface Identity$1 {
2286
2286
  */
2287
2287
  metadata?: Metadata$1;
2288
2288
  /** Identity email address. */
2289
- email?: Email$3;
2289
+ email?: Email$1;
2290
2290
  /** Identity's current status. */
2291
2291
  status?: StatusV2$1;
2292
2292
  /** filled by pre registered spi */
@@ -2482,7 +2482,7 @@ interface Metadata$1 {
2482
2482
  */
2483
2483
  tags?: string[];
2484
2484
  }
2485
- interface Email$3 {
2485
+ interface Email$1 {
2486
2486
  address?: string;
2487
2487
  isVerified?: boolean;
2488
2488
  }
@@ -2755,7 +2755,7 @@ interface Identity {
2755
2755
  */
2756
2756
  metadata?: Metadata;
2757
2757
  /** Identity email address. */
2758
- email?: Email$2;
2758
+ email?: Email;
2759
2759
  /** Identity's current status. */
2760
2760
  status?: StatusV2;
2761
2761
  /** filled by pre registered spi */
@@ -2951,7 +2951,7 @@ interface Metadata {
2951
2951
  */
2952
2952
  tags?: string[];
2953
2953
  }
2954
- interface Email$2 {
2954
+ interface Email {
2955
2955
  address?: string;
2956
2956
  isVerified?: boolean;
2957
2957
  }
@@ -3137,462 +3137,6 @@ interface StateMachineResponseNonNullableFields {
3137
3137
  identity?: IdentityNonNullableFields;
3138
3138
  }
3139
3139
 
3140
- type __PublicMethodMetaInfo$3<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
3141
- getUrl: (context: any) => string;
3142
- httpMethod: K;
3143
- path: string;
3144
- pathParams: M;
3145
- __requestType: T;
3146
- __originalRequestType: S;
3147
- __responseType: Q;
3148
- __originalResponseType: R;
3149
- };
3150
- declare function start(): __PublicMethodMetaInfo$3<'POST', {}, StartRequest, StartRequest$1, StartResponse & StartResponseNonNullableFields, StartResponse$1 & StartResponseNonNullableFields$1>;
3151
- declare function verifyDuringAuthentication(): __PublicMethodMetaInfo$3<'POST', {}, VerifyDuringAuthenticationRequest, VerifyDuringAuthenticationRequest$1, StateMachineResponse & StateMachineResponseNonNullableFields, StateMachineResponse$1 & StateMachineResponseNonNullableFields$1>;
3152
- declare function resendDuringAuthentication(): __PublicMethodMetaInfo$3<'POST', {}, ResendDuringAuthenticationRequest, ResendDuringAuthenticationRequest$1, StateMachineResponse & StateMachineResponseNonNullableFields, StateMachineResponse$1 & StateMachineResponseNonNullableFields$1>;
3153
-
3154
- declare const meta$3_resendDuringAuthentication: typeof resendDuringAuthentication;
3155
- declare const meta$3_start: typeof start;
3156
- declare const meta$3_verifyDuringAuthentication: typeof verifyDuringAuthentication;
3157
- declare namespace meta$3 {
3158
- export { type __PublicMethodMetaInfo$3 as __PublicMethodMetaInfo, meta$3_resendDuringAuthentication as resendDuringAuthentication, meta$3_start as start, meta$3_verifyDuringAuthentication as verifyDuringAuthentication };
3159
- }
3160
-
3161
- interface AccountV2$1 {
3162
- /** Account ID. */
3163
- accountId?: string;
3164
- }
3165
- interface Paging$1 {
3166
- /** Number of items to load. */
3167
- limit?: number | null;
3168
- /** Number of items to skip in the current sort order. */
3169
- offset?: number | null;
3170
- }
3171
- interface CreateAccountRequest$1 {
3172
- /** The user to create under the new account, with the roles defined in `roles`. */
3173
- user: User$1;
3174
- /**
3175
- * Roles to be assigned to the user in the new account. To retrieve all available roles, call Get Roles Info in the Users API.
3176
- * Default: OWNER.
3177
- */
3178
- roles?: string[] | null;
3179
- }
3180
- /** A User to be created under an implicitly provided accountId: must have a unique email. */
3181
- interface User$1 {
3182
- /** User's unique email address details. Required. */
3183
- email?: Email$1;
3184
- /** 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. */
3185
- ssoIdentities?: SsoIdentity$1[];
3186
- /** Additional user details. */
3187
- userDetails?: UserDetails$1;
3188
- }
3189
- /** User's email address. */
3190
- interface Email$1 {
3191
- /** User's email address. */
3192
- emailAddress?: string;
3193
- /** Whether the caller has verified the user's email address. */
3194
- isVerified?: boolean;
3195
- }
3196
- /** Single Sign On (aka. SSO) identity; user is identified via SSO authentication response token params, as specified by OpenID Connect (aka. OIDC) protocol */
3197
- interface SsoIdentity$1 {
3198
- /** An SSO setting (URLs, clientId, secret, etc. as required by OIDC protocol) for a specific Identity-Provider (aka. IdP) for a specific Wix account. */
3199
- ssoId?: string;
3200
- /**
3201
- * User ID as stored in IdP. For example a "sub" claim of OIDC protocol,
3202
- * or any other alternative, specified by IdP (Identity Provider).
3203
- */
3204
- userId?: string;
3205
- }
3206
- /** additional user details */
3207
- interface UserDetails$1 {
3208
- /** User's first name. */
3209
- firstName?: string | null;
3210
- /** User's last name. */
3211
- lastName?: string | null;
3212
- /** URL to location of user's profile picture. */
3213
- profilePictureUrl?: string | null;
3214
- /** User's preferred language in [ISO 639-1:2002](https://en.wikipedia.org/wiki/ISO_639-1) format. For example, "en", "es". */
3215
- language?: string | null;
3216
- /**
3217
- * Original Client IP from which a request was made.
3218
- * 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.
3219
- * Wix checks this IP against the [OFAC sanctioned countries](https://ofac.treasury.gov/sanctions-programs-and-country-information).
3220
- */
3221
- clientIp?: string | null;
3222
- }
3223
- interface CreateAccountResponse$1 {
3224
- /** The created account. */
3225
- account?: AccountV2$1;
3226
- }
3227
- interface PagingMetadata$1 {
3228
- /** Number of items returned in the response. */
3229
- count?: number | null;
3230
- /** Offset that was requested. */
3231
- offset?: number | null;
3232
- /** Total number of items that match the query. */
3233
- total?: number | null;
3234
- /** Flag that indicates the server failed to calculate the `total` field. */
3235
- tooManyToCount?: boolean | null;
3236
- }
3237
- interface ListChildAccountsRequest$1 {
3238
- /**
3239
- * Paging options to limit and offset the number of items.
3240
- * Default: 20. Max: 50.
3241
- */
3242
- paging?: Paging$1;
3243
- }
3244
- interface ListChildAccountsResponse$1 {
3245
- /** The requested child accounts. */
3246
- childAccounts?: AccountV2$1[];
3247
- /** Metadata of the response pagination. */
3248
- pagingMetadata?: PagingMetadata$1;
3249
- }
3250
- interface AccountV2NonNullableFields$1 {
3251
- accountId: string;
3252
- }
3253
- interface CreateAccountResponseNonNullableFields$1 {
3254
- account?: AccountV2NonNullableFields$1;
3255
- }
3256
- interface ListChildAccountsResponseNonNullableFields$1 {
3257
- childAccounts: AccountV2NonNullableFields$1[];
3258
- }
3259
-
3260
- interface AccountV2 {
3261
- /** Account ID. */
3262
- accountId?: string;
3263
- }
3264
- interface Paging {
3265
- /** Number of items to load. */
3266
- limit?: number | null;
3267
- /** Number of items to skip in the current sort order. */
3268
- offset?: number | null;
3269
- }
3270
- interface CreateAccountRequest {
3271
- /** The user to create under the new account, with the roles defined in `roles`. */
3272
- user: User;
3273
- /**
3274
- * Roles to be assigned to the user in the new account. To retrieve all available roles, call Get Roles Info in the Users API.
3275
- * Default: OWNER.
3276
- */
3277
- roles?: string[] | null;
3278
- }
3279
- /** A User to be created under an implicitly provided accountId: must have a unique email. */
3280
- interface User {
3281
- /** User's unique email address details. Required. */
3282
- email?: Email;
3283
- /** 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. */
3284
- ssoIdentities?: SsoIdentity[];
3285
- /** Additional user details. */
3286
- userDetails?: UserDetails;
3287
- }
3288
- /** User's email address. */
3289
- interface Email {
3290
- /** User's email address. */
3291
- emailAddress?: string;
3292
- /** Whether the caller has verified the user's email address. */
3293
- isVerified?: boolean;
3294
- }
3295
- /** Single Sign On (aka. SSO) identity; user is identified via SSO authentication response token params, as specified by OpenID Connect (aka. OIDC) protocol */
3296
- interface SsoIdentity {
3297
- /** An SSO setting (URLs, clientId, secret, etc. as required by OIDC protocol) for a specific Identity-Provider (aka. IdP) for a specific Wix account. */
3298
- ssoId?: string;
3299
- /**
3300
- * User ID as stored in IdP. For example a "sub" claim of OIDC protocol,
3301
- * or any other alternative, specified by IdP (Identity Provider).
3302
- */
3303
- userId?: string;
3304
- }
3305
- /** additional user details */
3306
- interface UserDetails {
3307
- /** User's first name. */
3308
- firstName?: string | null;
3309
- /** User's last name. */
3310
- lastName?: string | null;
3311
- /** URL to location of user's profile picture. */
3312
- profilePictureUrl?: string | null;
3313
- /** User's preferred language in [ISO 639-1:2002](https://en.wikipedia.org/wiki/ISO_639-1) format. For example, "en", "es". */
3314
- language?: string | null;
3315
- /**
3316
- * Original Client IP from which a request was made.
3317
- * 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.
3318
- * Wix checks this IP against the [OFAC sanctioned countries](https://ofac.treasury.gov/sanctions-programs-and-country-information).
3319
- */
3320
- clientIp?: string | null;
3321
- }
3322
- interface CreateAccountResponse {
3323
- /** The created account. */
3324
- account?: AccountV2;
3325
- }
3326
- interface PagingMetadata {
3327
- /** Number of items returned in the response. */
3328
- count?: number | null;
3329
- /** Offset that was requested. */
3330
- offset?: number | null;
3331
- /** Total number of items that match the query. */
3332
- total?: number | null;
3333
- /** Flag that indicates the server failed to calculate the `total` field. */
3334
- tooManyToCount?: boolean | null;
3335
- }
3336
- interface ListChildAccountsRequest {
3337
- /**
3338
- * Paging options to limit and offset the number of items.
3339
- * Default: 20. Max: 50.
3340
- */
3341
- paging?: Paging;
3342
- }
3343
- interface ListChildAccountsResponse {
3344
- /** The requested child accounts. */
3345
- childAccounts?: AccountV2[];
3346
- /** Metadata of the response pagination. */
3347
- pagingMetadata?: PagingMetadata;
3348
- }
3349
- interface AccountV2NonNullableFields {
3350
- accountId: string;
3351
- }
3352
- interface CreateAccountResponseNonNullableFields {
3353
- account?: AccountV2NonNullableFields;
3354
- }
3355
- interface ListChildAccountsResponseNonNullableFields {
3356
- childAccounts: AccountV2NonNullableFields[];
3357
- }
3358
-
3359
- type __PublicMethodMetaInfo$2<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
3360
- getUrl: (context: any) => string;
3361
- httpMethod: K;
3362
- path: string;
3363
- pathParams: M;
3364
- __requestType: T;
3365
- __originalRequestType: S;
3366
- __responseType: Q;
3367
- __originalResponseType: R;
3368
- };
3369
- declare function createAccount(): __PublicMethodMetaInfo$2<'POST', {}, CreateAccountRequest, CreateAccountRequest$1, CreateAccountResponse & CreateAccountResponseNonNullableFields, CreateAccountResponse$1 & CreateAccountResponseNonNullableFields$1>;
3370
- declare function listChildAccounts(): __PublicMethodMetaInfo$2<'GET', {}, ListChildAccountsRequest, ListChildAccountsRequest$1, ListChildAccountsResponse & ListChildAccountsResponseNonNullableFields, ListChildAccountsResponse$1 & ListChildAccountsResponseNonNullableFields$1>;
3371
-
3372
- declare const meta$2_createAccount: typeof createAccount;
3373
- declare const meta$2_listChildAccounts: typeof listChildAccounts;
3374
- declare namespace meta$2 {
3375
- export { type __PublicMethodMetaInfo$2 as __PublicMethodMetaInfo, meta$2_createAccount as createAccount, meta$2_listChildAccounts as listChildAccounts };
3376
- }
3377
-
3378
- interface SiteInvite$1 {
3379
- /**
3380
- * Invite ID.
3381
- * @readonly
3382
- */
3383
- id?: string;
3384
- /**
3385
- * Site ID the user is invited to as a collaborator.
3386
- * @readonly
3387
- */
3388
- siteId?: string;
3389
- /** Email address where the invite was sent. */
3390
- email?: string;
3391
- /** Role IDs included in the invite. */
3392
- policyIds?: string[];
3393
- /**
3394
- * Deprecated. Use `inviterAccountId`.
3395
- * @readonly
3396
- * @deprecated
3397
- */
3398
- inviterId?: string;
3399
- /**
3400
- * Invite Status.
3401
- *
3402
- * Supported values:
3403
- * - **Pending:** The invite has been sent and is valid, waiting for the user's response.
3404
- * - **Used:** The invite has been accepted.
3405
- * - **Deleted:** The invite has been deleted or revoked.
3406
- * - **Declined:** The user declined the invite.
3407
- * - **Expired:** The invite has expired without being accepted.
3408
- */
3409
- status?: InviteStatus$1;
3410
- /** Link to accept the invite. */
3411
- acceptLink?: string;
3412
- /**
3413
- * Inviting account ID.
3414
- * @readonly
3415
- */
3416
- inviterAccountId?: string;
3417
- /**
3418
- * Account ID that accepted the invite. Populated only once the invite is accepted.
3419
- * @readonly
3420
- */
3421
- acceptedByAccountId?: string | null;
3422
- /** Date the invite was created. */
3423
- dateCreated?: Date | null;
3424
- /** User's Wix Bookings staff ID, if relevant. */
3425
- staffId?: string | null;
3426
- /** Invite expiration date */
3427
- expirationDate?: Date | null;
3428
- }
3429
- /** Invite status stating whether the invite was accepted, waiting to be accepted, deleted etc.. */
3430
- declare enum InviteStatus$1 {
3431
- Pending = "Pending",
3432
- Used = "Used",
3433
- Deleted = "Deleted",
3434
- Declined = "Declined",
3435
- Expired = "Expired"
3436
- }
3437
- interface SiteInviteResponse$1 {
3438
- /** Invites that were sent. */
3439
- invite?: SiteInvite$1;
3440
- }
3441
- interface BulkSiteInviteRequest$1 {
3442
- /** Role IDs, referred to as policy IDs, to assign to the contributors. */
3443
- policyIds: string[];
3444
- /** Email addresses to which the invites should be sent. */
3445
- emails: string[];
3446
- /** Details explaining the purpose of the invite. */
3447
- invitePurpose?: string | null;
3448
- /** Language of emails to send. Relevant only for recipients that don't currently have a Wix user ID. Default: Site owner's language. */
3449
- defaultEmailLanguage?: string | null;
3450
- }
3451
- interface BulkSiteInviteResponse$1 {
3452
- /** Invites that were sent successfully. */
3453
- invites?: SiteInvite$1[];
3454
- /** Invites that failed. */
3455
- failedEmails?: string[];
3456
- }
3457
- interface ResendSiteInviteRequest$1 {
3458
- /** Invite ID. */
3459
- inviteId: string;
3460
- /** Language of emails to send. Relevant only for recipients that don't currently have a Wix user ID. Default: Site owner's language. */
3461
- defaultEmailLanguage?: string | null;
3462
- }
3463
- interface RevokeSiteInviteRequest$1 {
3464
- /** Invite ID. */
3465
- inviteId: string;
3466
- }
3467
- interface RevokeSiteInviteResponse$1 {
3468
- }
3469
- interface SiteInviteNonNullableFields$1 {
3470
- id: string;
3471
- siteId: string;
3472
- email: string;
3473
- policyIds: string[];
3474
- inviterId: string;
3475
- status: InviteStatus$1;
3476
- acceptLink: string;
3477
- inviterAccountId: string;
3478
- }
3479
- interface BulkSiteInviteResponseNonNullableFields$1 {
3480
- invites: SiteInviteNonNullableFields$1[];
3481
- failedEmails: string[];
3482
- }
3483
- interface SiteInviteResponseNonNullableFields$1 {
3484
- invite?: SiteInviteNonNullableFields$1;
3485
- }
3486
-
3487
- interface SiteInvite {
3488
- /**
3489
- * Invite ID.
3490
- * @readonly
3491
- */
3492
- _id?: string;
3493
- /**
3494
- * Site ID the user is invited to as a collaborator.
3495
- * @readonly
3496
- */
3497
- siteId?: string;
3498
- /** Email address where the invite was sent. */
3499
- email?: string;
3500
- /** Role IDs included in the invite. */
3501
- policyIds?: string[];
3502
- /**
3503
- * Deprecated. Use `inviterAccountId`.
3504
- * @readonly
3505
- * @deprecated
3506
- */
3507
- inviterId?: string;
3508
- /**
3509
- * Invite Status.
3510
- *
3511
- * Supported values:
3512
- * - **Pending:** The invite has been sent and is valid, waiting for the user's response.
3513
- * - **Used:** The invite has been accepted.
3514
- * - **Deleted:** The invite has been deleted or revoked.
3515
- * - **Declined:** The user declined the invite.
3516
- * - **Expired:** The invite has expired without being accepted.
3517
- */
3518
- status?: InviteStatus;
3519
- /** Link to accept the invite. */
3520
- acceptLink?: string;
3521
- /**
3522
- * Inviting account ID.
3523
- * @readonly
3524
- */
3525
- inviterAccountId?: string;
3526
- /**
3527
- * Account ID that accepted the invite. Populated only once the invite is accepted.
3528
- * @readonly
3529
- */
3530
- acceptedByAccountId?: string | null;
3531
- /** Date the invite was created. */
3532
- dateCreated?: Date | null;
3533
- /** User's Wix Bookings staff ID, if relevant. */
3534
- staffId?: string | null;
3535
- /** Invite expiration date */
3536
- expirationDate?: Date | null;
3537
- }
3538
- /** Invite status stating whether the invite was accepted, waiting to be accepted, deleted etc.. */
3539
- declare enum InviteStatus {
3540
- Pending = "Pending",
3541
- Used = "Used",
3542
- Deleted = "Deleted",
3543
- Declined = "Declined",
3544
- Expired = "Expired"
3545
- }
3546
- interface SiteInviteResponse {
3547
- /** Invites that were sent. */
3548
- invite?: SiteInvite;
3549
- }
3550
- interface BulkSiteInviteRequest {
3551
- /** Role IDs, referred to as policy IDs, to assign to the contributors. */
3552
- policyIds: string[];
3553
- /** Email addresses to which the invites should be sent. */
3554
- emails: string[];
3555
- /** Details explaining the purpose of the invite. */
3556
- invitePurpose?: string | null;
3557
- /** Language of emails to send. Relevant only for recipients that don't currently have a Wix user ID. Default: Site owner's language. */
3558
- defaultEmailLanguage?: string | null;
3559
- }
3560
- interface BulkSiteInviteResponse {
3561
- /** Invites that were sent successfully. */
3562
- invites?: SiteInvite[];
3563
- /** Invites that failed. */
3564
- failedEmails?: string[];
3565
- }
3566
- interface ResendSiteInviteRequest {
3567
- /** Invite ID. */
3568
- inviteId: string;
3569
- /** Language of emails to send. Relevant only for recipients that don't currently have a Wix user ID. Default: Site owner's language. */
3570
- defaultEmailLanguage?: string | null;
3571
- }
3572
- interface RevokeSiteInviteRequest {
3573
- /** Invite ID. */
3574
- inviteId: string;
3575
- }
3576
- interface RevokeSiteInviteResponse {
3577
- }
3578
- interface SiteInviteNonNullableFields {
3579
- _id: string;
3580
- siteId: string;
3581
- email: string;
3582
- policyIds: string[];
3583
- inviterId: string;
3584
- status: InviteStatus;
3585
- acceptLink: string;
3586
- inviterAccountId: string;
3587
- }
3588
- interface BulkSiteInviteResponseNonNullableFields {
3589
- invites: SiteInviteNonNullableFields[];
3590
- failedEmails: string[];
3591
- }
3592
- interface SiteInviteResponseNonNullableFields {
3593
- invite?: SiteInviteNonNullableFields;
3594
- }
3595
-
3596
3140
  type __PublicMethodMetaInfo$1<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
3597
3141
  getUrl: (context: any) => string;
3598
3142
  httpMethod: K;
@@ -3603,19 +3147,15 @@ type __PublicMethodMetaInfo$1<K = string, M = unknown, T = unknown, S = unknown,
3603
3147
  __responseType: Q;
3604
3148
  __originalResponseType: R;
3605
3149
  };
3606
- declare function bulkInvite(): __PublicMethodMetaInfo$1<'POST', {}, BulkSiteInviteRequest, BulkSiteInviteRequest$1, BulkSiteInviteResponse & BulkSiteInviteResponseNonNullableFields, BulkSiteInviteResponse$1 & BulkSiteInviteResponseNonNullableFields$1>;
3607
- declare function resendInvite(): __PublicMethodMetaInfo$1<'POST', {
3608
- inviteId: string;
3609
- }, ResendSiteInviteRequest, ResendSiteInviteRequest$1, SiteInviteResponse & SiteInviteResponseNonNullableFields, SiteInviteResponse$1 & SiteInviteResponseNonNullableFields$1>;
3610
- declare function revokeInvite(): __PublicMethodMetaInfo$1<'POST', {
3611
- inviteId: string;
3612
- }, RevokeSiteInviteRequest, RevokeSiteInviteRequest$1, RevokeSiteInviteResponse, RevokeSiteInviteResponse$1>;
3150
+ declare function start(): __PublicMethodMetaInfo$1<'POST', {}, StartRequest, StartRequest$1, StartResponse & StartResponseNonNullableFields, StartResponse$1 & StartResponseNonNullableFields$1>;
3151
+ declare function verifyDuringAuthentication(): __PublicMethodMetaInfo$1<'POST', {}, VerifyDuringAuthenticationRequest, VerifyDuringAuthenticationRequest$1, StateMachineResponse & StateMachineResponseNonNullableFields, StateMachineResponse$1 & StateMachineResponseNonNullableFields$1>;
3152
+ declare function resendDuringAuthentication(): __PublicMethodMetaInfo$1<'POST', {}, ResendDuringAuthenticationRequest, ResendDuringAuthenticationRequest$1, StateMachineResponse & StateMachineResponseNonNullableFields, StateMachineResponse$1 & StateMachineResponseNonNullableFields$1>;
3613
3153
 
3614
- declare const meta$1_bulkInvite: typeof bulkInvite;
3615
- declare const meta$1_resendInvite: typeof resendInvite;
3616
- declare const meta$1_revokeInvite: typeof revokeInvite;
3154
+ declare const meta$1_resendDuringAuthentication: typeof resendDuringAuthentication;
3155
+ declare const meta$1_start: typeof start;
3156
+ declare const meta$1_verifyDuringAuthentication: typeof verifyDuringAuthentication;
3617
3157
  declare namespace meta$1 {
3618
- export { type __PublicMethodMetaInfo$1 as __PublicMethodMetaInfo, meta$1_bulkInvite as bulkInvite, meta$1_resendInvite as resendInvite, meta$1_revokeInvite as revokeInvite };
3158
+ export { type __PublicMethodMetaInfo$1 as __PublicMethodMetaInfo, meta$1_resendDuringAuthentication as resendDuringAuthentication, meta$1_start as start, meta$1_verifyDuringAuthentication as verifyDuringAuthentication };
3619
3159
  }
3620
3160
 
3621
3161
  interface RawHttpResponse$1 {
@@ -3786,4 +3326,4 @@ declare namespace meta {
3786
3326
  export { type meta___PublicMethodMetaInfo as __PublicMethodMetaInfo, meta_token as token, meta_tokenInfo as tokenInfo };
3787
3327
  }
3788
3328
 
3789
- export { meta$2 as account, meta$5 as authentication, meta as oauth, meta$4 as recovery, meta$1 as siteInvite, meta$3 as verification };
3329
+ export { meta$3 as authentication, meta as oauth, meta$2 as recovery, meta$1 as verification };