@wix/identity 1.0.97 → 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.
- package/build/cjs/context.d.ts +0 -1
- package/build/cjs/context.js +1 -2
- package/build/cjs/context.js.map +1 -1
- package/build/cjs/index.d.ts +1 -2
- package/build/cjs/index.js +1 -3
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/meta.d.ts +0 -1
- package/build/cjs/meta.js +1 -2
- package/build/cjs/meta.js.map +1 -1
- package/build/es/context.d.ts +0 -1
- package/build/es/context.js +0 -1
- package/build/es/context.js.map +1 -1
- package/build/es/index.d.ts +1 -2
- package/build/es/index.js +1 -2
- package/build/es/index.js.map +1 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -1
- package/build/es/meta.js.map +1 -1
- package/package.json +2 -3
- package/type-bundles/context.bundle.d.ts +128 -557
- package/type-bundles/index.bundle.d.ts +128 -557
- package/type-bundles/meta.bundle.d.ts +50 -267
|
@@ -247,7 +247,7 @@ interface Identity$5 {
|
|
|
247
247
|
*/
|
|
248
248
|
metadata?: Metadata$5;
|
|
249
249
|
/** Identity email address. */
|
|
250
|
-
email?: Email$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$4<K = string, M = unknown, T = unknown, S = unknown,
|
|
|
1200
1200
|
__responseType: Q;
|
|
1201
1201
|
__originalResponseType: R;
|
|
1202
1202
|
};
|
|
1203
|
-
declare function registerV2(): __PublicMethodMetaInfo$
|
|
1204
|
-
declare function loginV2(): __PublicMethodMetaInfo$
|
|
1205
|
-
declare function changePassword(): __PublicMethodMetaInfo$
|
|
1206
|
-
declare function loginWithIdpConnection(): __PublicMethodMetaInfo$
|
|
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$
|
|
1211
|
-
declare function loginWithIdpConnectionTokenParams(): __PublicMethodMetaInfo$
|
|
1212
|
-
declare function signOn(): __PublicMethodMetaInfo$
|
|
1213
|
-
declare function logout(): __PublicMethodMetaInfo$
|
|
1214
|
-
declare function verify(): __PublicMethodMetaInfo$
|
|
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$
|
|
1219
|
-
declare const meta$
|
|
1220
|
-
declare const meta$
|
|
1221
|
-
declare const meta$
|
|
1222
|
-
declare const meta$
|
|
1223
|
-
declare const meta$
|
|
1224
|
-
declare const meta$
|
|
1225
|
-
declare const meta$
|
|
1226
|
-
declare const meta$
|
|
1227
|
-
declare namespace meta$
|
|
1228
|
-
export { type __PublicMethodMetaInfo$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$3<K = string, M = unknown, T = unknown, S = unknown,
|
|
|
2188
2188
|
__responseType: Q;
|
|
2189
2189
|
__originalResponseType: R;
|
|
2190
2190
|
};
|
|
2191
|
-
declare function sendRecoveryEmail(): __PublicMethodMetaInfo$
|
|
2192
|
-
declare function sendActivationEmail(): __PublicMethodMetaInfo$
|
|
2193
|
-
declare function recover(): __PublicMethodMetaInfo$
|
|
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$
|
|
2196
|
-
declare const meta$
|
|
2197
|
-
declare const meta$
|
|
2198
|
-
declare namespace meta$
|
|
2199
|
-
export { type __PublicMethodMetaInfo$
|
|
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$
|
|
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$
|
|
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
|
|
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
|
|
2954
|
+
interface Email {
|
|
2955
2955
|
address?: string;
|
|
2956
2956
|
isVerified?: boolean;
|
|
2957
2957
|
}
|
|
@@ -3137,225 +3137,6 @@ interface StateMachineResponseNonNullableFields {
|
|
|
3137
3137
|
identity?: IdentityNonNullableFields;
|
|
3138
3138
|
}
|
|
3139
3139
|
|
|
3140
|
-
type __PublicMethodMetaInfo$2<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$2<'POST', {}, StartRequest, StartRequest$1, StartResponse & StartResponseNonNullableFields, StartResponse$1 & StartResponseNonNullableFields$1>;
|
|
3151
|
-
declare function verifyDuringAuthentication(): __PublicMethodMetaInfo$2<'POST', {}, VerifyDuringAuthenticationRequest, VerifyDuringAuthenticationRequest$1, StateMachineResponse & StateMachineResponseNonNullableFields, StateMachineResponse$1 & StateMachineResponseNonNullableFields$1>;
|
|
3152
|
-
declare function resendDuringAuthentication(): __PublicMethodMetaInfo$2<'POST', {}, ResendDuringAuthenticationRequest, ResendDuringAuthenticationRequest$1, StateMachineResponse & StateMachineResponseNonNullableFields, StateMachineResponse$1 & StateMachineResponseNonNullableFields$1>;
|
|
3153
|
-
|
|
3154
|
-
declare const meta$2_resendDuringAuthentication: typeof resendDuringAuthentication;
|
|
3155
|
-
declare const meta$2_start: typeof start;
|
|
3156
|
-
declare const meta$2_verifyDuringAuthentication: typeof verifyDuringAuthentication;
|
|
3157
|
-
declare namespace meta$2 {
|
|
3158
|
-
export { type __PublicMethodMetaInfo$2 as __PublicMethodMetaInfo, meta$2_resendDuringAuthentication as resendDuringAuthentication, meta$2_start as start, meta$2_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
3140
|
type __PublicMethodMetaInfo$1<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
3360
3141
|
getUrl: (context: any) => string;
|
|
3361
3142
|
httpMethod: K;
|
|
@@ -3366,13 +3147,15 @@ type __PublicMethodMetaInfo$1<K = string, M = unknown, T = unknown, S = unknown,
|
|
|
3366
3147
|
__responseType: Q;
|
|
3367
3148
|
__originalResponseType: R;
|
|
3368
3149
|
};
|
|
3369
|
-
declare function
|
|
3370
|
-
declare function
|
|
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>;
|
|
3371
3153
|
|
|
3372
|
-
declare const meta$
|
|
3373
|
-
declare const meta$
|
|
3154
|
+
declare const meta$1_resendDuringAuthentication: typeof resendDuringAuthentication;
|
|
3155
|
+
declare const meta$1_start: typeof start;
|
|
3156
|
+
declare const meta$1_verifyDuringAuthentication: typeof verifyDuringAuthentication;
|
|
3374
3157
|
declare namespace meta$1 {
|
|
3375
|
-
export { type __PublicMethodMetaInfo$1 as __PublicMethodMetaInfo, meta$
|
|
3158
|
+
export { type __PublicMethodMetaInfo$1 as __PublicMethodMetaInfo, meta$1_resendDuringAuthentication as resendDuringAuthentication, meta$1_start as start, meta$1_verifyDuringAuthentication as verifyDuringAuthentication };
|
|
3376
3159
|
}
|
|
3377
3160
|
|
|
3378
3161
|
interface RawHttpResponse$1 {
|
|
@@ -3543,4 +3326,4 @@ declare namespace meta {
|
|
|
3543
3326
|
export { type meta___PublicMethodMetaInfo as __PublicMethodMetaInfo, meta_token as token, meta_tokenInfo as tokenInfo };
|
|
3544
3327
|
}
|
|
3545
3328
|
|
|
3546
|
-
export { meta$
|
|
3329
|
+
export { meta$3 as authentication, meta as oauth, meta$2 as recovery, meta$1 as verification };
|