@wix/identity 1.0.95 → 1.0.97
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 -4
- package/build/cjs/context.js +1 -5
- package/build/cjs/context.js.map +1 -1
- package/build/cjs/index.d.ts +1 -5
- package/build/cjs/index.js +1 -9
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/meta.d.ts +0 -4
- package/build/cjs/meta.js +1 -5
- package/build/cjs/meta.js.map +1 -1
- package/build/es/context.d.ts +0 -4
- package/build/es/context.js +0 -4
- package/build/es/context.js.map +1 -1
- package/build/es/index.d.ts +1 -5
- package/build/es/index.js +1 -5
- package/build/es/index.js.map +1 -1
- package/build/es/meta.d.ts +0 -4
- package/build/es/meta.js +0 -4
- package/build/es/meta.js.map +1 -1
- package/package.json +2 -6
- package/type-bundles/context.bundle.d.ts +226 -2835
- package/type-bundles/index.bundle.d.ts +226 -2835
- package/type-bundles/meta.bundle.d.ts +62 -1712
|
@@ -1190,7 +1190,7 @@ interface SignOnResponseNonNullableFields {
|
|
|
1190
1190
|
identity?: IdentityNonNullableFields$4;
|
|
1191
1191
|
}
|
|
1192
1192
|
|
|
1193
|
-
type __PublicMethodMetaInfo$
|
|
1193
|
+
type __PublicMethodMetaInfo$4<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$8<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$4<'POST', {}, RegisterV2Request, RegisterV2Request$1, StateMachineResponse$4 & StateMachineResponseNonNullableFields$4, StateMachineResponse$5 & StateMachineResponseNonNullableFields$5>;
|
|
1204
|
+
declare function loginV2(): __PublicMethodMetaInfo$4<'POST', {}, LoginV2Request, LoginV2Request$1, StateMachineResponse$4 & StateMachineResponseNonNullableFields$4, StateMachineResponse$5 & StateMachineResponseNonNullableFields$5>;
|
|
1205
|
+
declare function changePassword(): __PublicMethodMetaInfo$4<'POST', {}, ChangePasswordRequest, ChangePasswordRequest$1, ChangePasswordResponse, ChangePasswordResponse$1>;
|
|
1206
|
+
declare function loginWithIdpConnection(): __PublicMethodMetaInfo$4<'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$4<'GET', {}, LoginCallbackRequest, LoginCallbackRequest$1, RawHttpResponse$2 & RawHttpResponseNonNullableFields$2, RawHttpResponse$3 & RawHttpResponseNonNullableFields$3>;
|
|
1211
|
+
declare function loginWithIdpConnectionTokenParams(): __PublicMethodMetaInfo$4<'POST', {}, LoginWithIdpConnectionTokenParamsRequest, LoginWithIdpConnectionTokenParamsRequest$1, StateMachineResponse$4 & StateMachineResponseNonNullableFields$4, StateMachineResponse$5 & StateMachineResponseNonNullableFields$5>;
|
|
1212
|
+
declare function signOn(): __PublicMethodMetaInfo$4<'POST', {}, SignOnRequest, SignOnRequest$1, SignOnResponse & SignOnResponseNonNullableFields, SignOnResponse$1 & SignOnResponseNonNullableFields$1>;
|
|
1213
|
+
declare function logout(): __PublicMethodMetaInfo$4<'GET', {}, LogoutRequest, LogoutRequest$1, RawHttpResponse$2 & RawHttpResponseNonNullableFields$2, RawHttpResponse$3 & RawHttpResponseNonNullableFields$3>;
|
|
1214
|
+
declare function verify(): __PublicMethodMetaInfo$4<'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$4_changePassword: typeof changePassword;
|
|
1219
|
+
declare const meta$4_loginCallback: typeof loginCallback;
|
|
1220
|
+
declare const meta$4_loginV2: typeof loginV2;
|
|
1221
|
+
declare const meta$4_loginWithIdpConnection: typeof loginWithIdpConnection;
|
|
1222
|
+
declare const meta$4_loginWithIdpConnectionTokenParams: typeof loginWithIdpConnectionTokenParams;
|
|
1223
|
+
declare const meta$4_logout: typeof logout;
|
|
1224
|
+
declare const meta$4_registerV2: typeof registerV2;
|
|
1225
|
+
declare const meta$4_signOn: typeof signOn;
|
|
1226
|
+
declare const meta$4_verify: typeof verify;
|
|
1227
|
+
declare namespace meta$4 {
|
|
1228
|
+
export { type __PublicMethodMetaInfo$4 as __PublicMethodMetaInfo, meta$4_changePassword as changePassword, meta$4_loginCallback as loginCallback, meta$4_loginV2 as loginV2, meta$4_loginWithIdpConnection as loginWithIdpConnection, meta$4_loginWithIdpConnectionTokenParams as loginWithIdpConnectionTokenParams, meta$4_logout as logout, meta$4_registerV2 as registerV2, meta$4_signOn as signOn, meta$4_verify as verify };
|
|
1229
1229
|
}
|
|
1230
1230
|
|
|
1231
1231
|
interface SendRecoveryEmailRequest$1 {
|
|
@@ -2178,7 +2178,7 @@ interface StateMachineResponseNonNullableFields$2 {
|
|
|
2178
2178
|
identity?: IdentityNonNullableFields$2;
|
|
2179
2179
|
}
|
|
2180
2180
|
|
|
2181
|
-
type __PublicMethodMetaInfo$
|
|
2181
|
+
type __PublicMethodMetaInfo$3<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$7<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$3<'POST', {}, SendRecoveryEmailRequest, SendRecoveryEmailRequest$1, SendRecoveryEmailResponse, SendRecoveryEmailResponse$1>;
|
|
2192
|
+
declare function sendActivationEmail(): __PublicMethodMetaInfo$3<'POST', {}, SendActivationEmailRequest, SendActivationEmailRequest$1, SendActivationEmailResponse, SendActivationEmailResponse$1>;
|
|
2193
|
+
declare function recover(): __PublicMethodMetaInfo$3<'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$3_recover: typeof recover;
|
|
2196
|
+
declare const meta$3_sendActivationEmail: typeof sendActivationEmail;
|
|
2197
|
+
declare const meta$3_sendRecoveryEmail: typeof sendRecoveryEmail;
|
|
2198
|
+
declare namespace meta$3 {
|
|
2199
|
+
export { type __PublicMethodMetaInfo$3 as __PublicMethodMetaInfo, meta$3_recover as recover, meta$3_sendActivationEmail as sendActivationEmail, meta$3_sendRecoveryEmail as sendRecoveryEmail };
|
|
2200
2200
|
}
|
|
2201
2201
|
|
|
2202
2202
|
interface StartResponse$1 {
|
|
@@ -3137,7 +3137,7 @@ interface StateMachineResponseNonNullableFields {
|
|
|
3137
3137
|
identity?: IdentityNonNullableFields;
|
|
3138
3138
|
}
|
|
3139
3139
|
|
|
3140
|
-
type __PublicMethodMetaInfo$
|
|
3140
|
+
type __PublicMethodMetaInfo$2<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
3141
3141
|
getUrl: (context: any) => string;
|
|
3142
3142
|
httpMethod: K;
|
|
3143
3143
|
path: string;
|
|
@@ -3147,22 +3147,22 @@ type __PublicMethodMetaInfo$6<K = string, M = unknown, T = unknown, S = unknown,
|
|
|
3147
3147
|
__responseType: Q;
|
|
3148
3148
|
__originalResponseType: R;
|
|
3149
3149
|
};
|
|
3150
|
-
declare function start(): __PublicMethodMetaInfo$
|
|
3151
|
-
declare function verifyDuringAuthentication(): __PublicMethodMetaInfo$
|
|
3152
|
-
declare function resendDuringAuthentication(): __PublicMethodMetaInfo$
|
|
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
3153
|
|
|
3154
|
-
declare const meta$
|
|
3155
|
-
declare const meta$
|
|
3156
|
-
declare const meta$
|
|
3157
|
-
declare namespace meta$
|
|
3158
|
-
export { type __PublicMethodMetaInfo$
|
|
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
3159
|
}
|
|
3160
3160
|
|
|
3161
3161
|
interface AccountV2$1 {
|
|
3162
3162
|
/** Account ID. */
|
|
3163
3163
|
accountId?: string;
|
|
3164
3164
|
}
|
|
3165
|
-
interface Paging$
|
|
3165
|
+
interface Paging$1 {
|
|
3166
3166
|
/** Number of items to load. */
|
|
3167
3167
|
limit?: number | null;
|
|
3168
3168
|
/** Number of items to skip in the current sort order. */
|
|
@@ -3239,7 +3239,7 @@ interface ListChildAccountsRequest$1 {
|
|
|
3239
3239
|
* Paging options to limit and offset the number of items.
|
|
3240
3240
|
* Default: 20. Max: 50.
|
|
3241
3241
|
*/
|
|
3242
|
-
paging?: Paging$
|
|
3242
|
+
paging?: Paging$1;
|
|
3243
3243
|
}
|
|
3244
3244
|
interface ListChildAccountsResponse$1 {
|
|
3245
3245
|
/** The requested child accounts. */
|
|
@@ -3261,7 +3261,7 @@ interface AccountV2 {
|
|
|
3261
3261
|
/** Account ID. */
|
|
3262
3262
|
accountId?: string;
|
|
3263
3263
|
}
|
|
3264
|
-
interface Paging
|
|
3264
|
+
interface Paging {
|
|
3265
3265
|
/** Number of items to load. */
|
|
3266
3266
|
limit?: number | null;
|
|
3267
3267
|
/** Number of items to skip in the current sort order. */
|
|
@@ -3338,7 +3338,7 @@ interface ListChildAccountsRequest {
|
|
|
3338
3338
|
* Paging options to limit and offset the number of items.
|
|
3339
3339
|
* Default: 20. Max: 50.
|
|
3340
3340
|
*/
|
|
3341
|
-
paging?: Paging
|
|
3341
|
+
paging?: Paging;
|
|
3342
3342
|
}
|
|
3343
3343
|
interface ListChildAccountsResponse {
|
|
3344
3344
|
/** The requested child accounts. */
|
|
@@ -3356,779 +3356,7 @@ interface ListChildAccountsResponseNonNullableFields {
|
|
|
3356
3356
|
childAccounts: AccountV2NonNullableFields[];
|
|
3357
3357
|
}
|
|
3358
3358
|
|
|
3359
|
-
type __PublicMethodMetaInfo$
|
|
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$5<'POST', {}, CreateAccountRequest, CreateAccountRequest$1, CreateAccountResponse & CreateAccountResponseNonNullableFields, CreateAccountResponse$1 & CreateAccountResponseNonNullableFields$1>;
|
|
3370
|
-
declare function listChildAccounts(): __PublicMethodMetaInfo$5<'GET', {}, ListChildAccountsRequest, ListChildAccountsRequest$1, ListChildAccountsResponse & ListChildAccountsResponseNonNullableFields, ListChildAccountsResponse$1 & ListChildAccountsResponseNonNullableFields$1>;
|
|
3371
|
-
|
|
3372
|
-
declare const meta$5_createAccount: typeof createAccount;
|
|
3373
|
-
declare const meta$5_listChildAccounts: typeof listChildAccounts;
|
|
3374
|
-
declare namespace meta$5 {
|
|
3375
|
-
export { type __PublicMethodMetaInfo$5 as __PublicMethodMetaInfo, meta$5_createAccount as createAccount, meta$5_listChildAccounts as listChildAccounts };
|
|
3376
|
-
}
|
|
3377
|
-
|
|
3378
|
-
interface AccountInvite$1 {
|
|
3379
|
-
/**
|
|
3380
|
-
* Invite ID.
|
|
3381
|
-
* @readonly
|
|
3382
|
-
*/
|
|
3383
|
-
id?: string;
|
|
3384
|
-
/**
|
|
3385
|
-
* Account ID.
|
|
3386
|
-
* @readonly
|
|
3387
|
-
*/
|
|
3388
|
-
accountId?: string;
|
|
3389
|
-
/** Email address where the invite was sent. */
|
|
3390
|
-
email?: string;
|
|
3391
|
-
/**
|
|
3392
|
-
* Deprecated. Use `policyIds`.
|
|
3393
|
-
* @deprecated
|
|
3394
|
-
*/
|
|
3395
|
-
role?: string;
|
|
3396
|
-
/**
|
|
3397
|
-
* Deprecated. Use `inviterAccountId`.
|
|
3398
|
-
* @readonly
|
|
3399
|
-
* @deprecated
|
|
3400
|
-
*/
|
|
3401
|
-
inviterId?: string;
|
|
3402
|
-
/**
|
|
3403
|
-
* Invite status.
|
|
3404
|
-
*
|
|
3405
|
-
* Supported values:
|
|
3406
|
-
* - **Pending:** The invite has been sent and is valid, waiting for the user's response.
|
|
3407
|
-
* - **Used:** The invite has been accepted.
|
|
3408
|
-
* - **Deleted:** The invite has been deleted or revoked.
|
|
3409
|
-
* - **Declined:** The user has declined the invite.
|
|
3410
|
-
* - **Expired:** The invite has expired without being accepted.
|
|
3411
|
-
*/
|
|
3412
|
-
status?: InviteStatus$5;
|
|
3413
|
-
/** Link to accept the invite. */
|
|
3414
|
-
acceptLink?: string;
|
|
3415
|
-
/**
|
|
3416
|
-
* Inviting account ID.
|
|
3417
|
-
* @readonly
|
|
3418
|
-
*/
|
|
3419
|
-
inviterAccountId?: string;
|
|
3420
|
-
/**
|
|
3421
|
-
* Account ID that accepted the invite. Populated only once the invite is accepted.
|
|
3422
|
-
* @readonly
|
|
3423
|
-
*/
|
|
3424
|
-
acceptedByAccountId?: string | null;
|
|
3425
|
-
/** Date the invite was created. */
|
|
3426
|
-
dateCreated?: Date | null;
|
|
3427
|
-
/** Role IDs included in the invite. */
|
|
3428
|
-
policyIds?: string[];
|
|
3429
|
-
/** Date the invite was last updated. */
|
|
3430
|
-
dateUpdated?: Date | null;
|
|
3431
|
-
/** Assets the users are invited to join. */
|
|
3432
|
-
assignments?: InviteResourceAssignment$1[];
|
|
3433
|
-
/** Invite expiration date. */
|
|
3434
|
-
expirationDate?: Date | null;
|
|
3435
|
-
}
|
|
3436
|
-
/** Invite status stating whether the invite was accepted, waiting to be accepted, deleted etc.. */
|
|
3437
|
-
declare enum InviteStatus$5 {
|
|
3438
|
-
Pending = "Pending",
|
|
3439
|
-
Used = "Used",
|
|
3440
|
-
Deleted = "Deleted",
|
|
3441
|
-
Declined = "Declined",
|
|
3442
|
-
Expired = "Expired"
|
|
3443
|
-
}
|
|
3444
|
-
interface InviteResourceAssignment$1 {
|
|
3445
|
-
/** Role ID. */
|
|
3446
|
-
policyId?: string;
|
|
3447
|
-
/** Resources the user will be able to access. */
|
|
3448
|
-
assignments?: InviteAssignment$1[];
|
|
3449
|
-
}
|
|
3450
|
-
interface InviteAssignment$1 {
|
|
3451
|
-
/** Full name of resource to be assigned. */
|
|
3452
|
-
fullNameResource?: FullNameResource$1;
|
|
3453
|
-
}
|
|
3454
|
-
interface FullNameResource$1 extends FullNameResourceResourceContextOneOf$1 {
|
|
3455
|
-
/** Specific site details. */
|
|
3456
|
-
siteContext?: SiteResourceContext$1;
|
|
3457
|
-
/** Specific account details. */
|
|
3458
|
-
accountContext?: AccountResourceContext$1;
|
|
3459
|
-
}
|
|
3460
|
-
/** @oneof */
|
|
3461
|
-
interface FullNameResourceResourceContextOneOf$1 {
|
|
3462
|
-
/** Specific site details. */
|
|
3463
|
-
siteContext?: SiteResourceContext$1;
|
|
3464
|
-
/** Specific account details. */
|
|
3465
|
-
accountContext?: AccountResourceContext$1;
|
|
3466
|
-
}
|
|
3467
|
-
/** Site resource context. It indicates that the resource is under a site (can be the site itself or some asset of a site, like a blog post) */
|
|
3468
|
-
interface SiteResourceContext$1 {
|
|
3469
|
-
/** Site ID. */
|
|
3470
|
-
metasiteId?: string;
|
|
3471
|
-
}
|
|
3472
|
-
/** Account resource contexts. It indicates that the resource is under the account (can be the account itself or some asset of an account, like a logo or a domain) */
|
|
3473
|
-
interface AccountResourceContext$1 {
|
|
3474
|
-
/** Account ID. */
|
|
3475
|
-
accountId?: string;
|
|
3476
|
-
}
|
|
3477
|
-
declare enum SimpleConditionOperator$1 {
|
|
3478
|
-
UNKNOWN_SIMPLE_OP = "UNKNOWN_SIMPLE_OP",
|
|
3479
|
-
EQUAL = "EQUAL"
|
|
3480
|
-
}
|
|
3481
|
-
declare enum JoinedConditionOperator$1 {
|
|
3482
|
-
UNKNOWN_JOIN_OP = "UNKNOWN_JOIN_OP",
|
|
3483
|
-
OR = "OR",
|
|
3484
|
-
AND = "AND"
|
|
3485
|
-
}
|
|
3486
|
-
declare enum SubjectType$5 {
|
|
3487
|
-
UNKNOWN = "UNKNOWN",
|
|
3488
|
-
ACCOUNT = "ACCOUNT",
|
|
3489
|
-
USER = "USER",
|
|
3490
|
-
USER_GROUP = "USER_GROUP",
|
|
3491
|
-
MEMBER_GROUP = "MEMBER_GROUP",
|
|
3492
|
-
VISITOR_GROUP = "VISITOR_GROUP",
|
|
3493
|
-
EXTERNAL_APP = "EXTERNAL_APP",
|
|
3494
|
-
ACCOUNT_GROUP = "ACCOUNT_GROUP",
|
|
3495
|
-
WIX_APP = "WIX_APP"
|
|
3496
|
-
}
|
|
3497
|
-
declare enum SubjectContextType$1 {
|
|
3498
|
-
UNKNOWN_CTX = "UNKNOWN_CTX",
|
|
3499
|
-
ORG_CTX = "ORG_CTX",
|
|
3500
|
-
ACCOUNT_CTX = "ACCOUNT_CTX"
|
|
3501
|
-
}
|
|
3502
|
-
interface CreateInviteRequest$1 {
|
|
3503
|
-
/** Array of potential team members' email addresses and their corresponding assignments (how they will be assigned when they accept the invite). */
|
|
3504
|
-
subjectsAssignments: SubjectInviteAssignments$1[];
|
|
3505
|
-
/** Language of emails to send. Relevant only for recipients that don't currently have a Wix user ID. Default: Site owner's language. */
|
|
3506
|
-
defaultEmailLanguage?: string | null;
|
|
3507
|
-
}
|
|
3508
|
-
interface SubjectInviteAssignments$1 {
|
|
3509
|
-
/** Invitee's email address. */
|
|
3510
|
-
subjectEmail?: string;
|
|
3511
|
-
/** Mapping of roles (referred to here as policies) and assets (referred to here as resources) that will be assigned to the invitee when they accept the invite. When no resources are specified, the invitee will be given access to everything within the account. */
|
|
3512
|
-
assignments?: InviteResourceAssignment$1[];
|
|
3513
|
-
}
|
|
3514
|
-
interface CreateInviteResponse$1 {
|
|
3515
|
-
/** Invites that were sent successfully. */
|
|
3516
|
-
successfulInvites?: AccountInvite$1[];
|
|
3517
|
-
/** Invites that failed. */
|
|
3518
|
-
failedInvites?: InviteFailure$1[];
|
|
3519
|
-
}
|
|
3520
|
-
interface InviteFailure$1 {
|
|
3521
|
-
/** Email address of the failed invite. */
|
|
3522
|
-
subjectEmail?: string;
|
|
3523
|
-
/** Error description. */
|
|
3524
|
-
errorMessage?: string;
|
|
3525
|
-
}
|
|
3526
|
-
interface SiteResourceContextNonNullableFields$1 {
|
|
3527
|
-
metasiteId: string;
|
|
3528
|
-
}
|
|
3529
|
-
interface AccountResourceContextNonNullableFields$1 {
|
|
3530
|
-
accountId: string;
|
|
3531
|
-
}
|
|
3532
|
-
interface FullNameResourceNonNullableFields$1 {
|
|
3533
|
-
siteContext?: SiteResourceContextNonNullableFields$1;
|
|
3534
|
-
accountContext?: AccountResourceContextNonNullableFields$1;
|
|
3535
|
-
}
|
|
3536
|
-
interface SimpleConditionValueNonNullableFields$1 {
|
|
3537
|
-
attrName: string;
|
|
3538
|
-
stringValue: string;
|
|
3539
|
-
boolValue: boolean;
|
|
3540
|
-
}
|
|
3541
|
-
interface SimpleConditionNonNullableFields$1 {
|
|
3542
|
-
attrName: string;
|
|
3543
|
-
value?: SimpleConditionValueNonNullableFields$1;
|
|
3544
|
-
op: SimpleConditionOperator$1;
|
|
3545
|
-
conditionModelId: string;
|
|
3546
|
-
}
|
|
3547
|
-
interface JoinedConditionNonNullableFields$1 {
|
|
3548
|
-
op: JoinedConditionOperator$1;
|
|
3549
|
-
conditions: ConditionTypeNonNullableFields$1[];
|
|
3550
|
-
}
|
|
3551
|
-
interface ExperimentConditionNonNullableFields$1 {
|
|
3552
|
-
spec: string;
|
|
3553
|
-
fallbackValue: string;
|
|
3554
|
-
expectedValue: string;
|
|
3555
|
-
}
|
|
3556
|
-
interface EnvironmentConditionNonNullableFields$1 {
|
|
3557
|
-
experimentCondition?: ExperimentConditionNonNullableFields$1;
|
|
3558
|
-
}
|
|
3559
|
-
interface ConditionValueNonNullableFields$1 {
|
|
3560
|
-
attrName: string;
|
|
3561
|
-
stringValue: string;
|
|
3562
|
-
boolValue: boolean;
|
|
3563
|
-
}
|
|
3564
|
-
interface EqualOperatorNonNullableFields$1 {
|
|
3565
|
-
attrName: string;
|
|
3566
|
-
value?: ConditionValueNonNullableFields$1;
|
|
3567
|
-
}
|
|
3568
|
-
interface LikeOperatorNonNullableFields$1 {
|
|
3569
|
-
attrName: string;
|
|
3570
|
-
values: string[];
|
|
3571
|
-
}
|
|
3572
|
-
interface ExperimentOperatorNonNullableFields$1 {
|
|
3573
|
-
spec: string;
|
|
3574
|
-
fallbackValue: string;
|
|
3575
|
-
expectedValue: string;
|
|
3576
|
-
}
|
|
3577
|
-
interface SubjectContextNonNullableFields$1 {
|
|
3578
|
-
id: string;
|
|
3579
|
-
contextType: SubjectContextType$1;
|
|
3580
|
-
}
|
|
3581
|
-
interface SubjectNonNullableFields$1 {
|
|
3582
|
-
id: string;
|
|
3583
|
-
subjectType: SubjectType$5;
|
|
3584
|
-
context?: SubjectContextNonNullableFields$1;
|
|
3585
|
-
}
|
|
3586
|
-
interface DependOnOperatorNonNullableFields$1 {
|
|
3587
|
-
dependOnSubject?: SubjectNonNullableFields$1;
|
|
3588
|
-
}
|
|
3589
|
-
interface ConditionOperatorNonNullableFields$1 {
|
|
3590
|
-
equals?: EqualOperatorNonNullableFields$1;
|
|
3591
|
-
like?: LikeOperatorNonNullableFields$1;
|
|
3592
|
-
experiment?: ExperimentOperatorNonNullableFields$1;
|
|
3593
|
-
dependOn?: DependOnOperatorNonNullableFields$1;
|
|
3594
|
-
}
|
|
3595
|
-
interface ConditionNonNullableFields$1 {
|
|
3596
|
-
conditionModelId: string;
|
|
3597
|
-
operator?: ConditionOperatorNonNullableFields$1;
|
|
3598
|
-
}
|
|
3599
|
-
interface ConditionTypeNonNullableFields$1 {
|
|
3600
|
-
simpleCondition?: SimpleConditionNonNullableFields$1;
|
|
3601
|
-
joinedConditions?: JoinedConditionNonNullableFields$1;
|
|
3602
|
-
environmentCondition?: EnvironmentConditionNonNullableFields$1;
|
|
3603
|
-
condition?: ConditionNonNullableFields$1;
|
|
3604
|
-
}
|
|
3605
|
-
interface PolicyConditionNonNullableFields$1 {
|
|
3606
|
-
condition?: ConditionTypeNonNullableFields$1;
|
|
3607
|
-
}
|
|
3608
|
-
interface InviteAssignmentNonNullableFields$1 {
|
|
3609
|
-
fullNameResource?: FullNameResourceNonNullableFields$1;
|
|
3610
|
-
condition?: PolicyConditionNonNullableFields$1;
|
|
3611
|
-
}
|
|
3612
|
-
interface InviteResourceAssignmentNonNullableFields$1 {
|
|
3613
|
-
policyId: string;
|
|
3614
|
-
assignments: InviteAssignmentNonNullableFields$1[];
|
|
3615
|
-
}
|
|
3616
|
-
interface AccountInviteNonNullableFields$1 {
|
|
3617
|
-
id: string;
|
|
3618
|
-
accountId: string;
|
|
3619
|
-
email: string;
|
|
3620
|
-
role: string;
|
|
3621
|
-
inviterId: string;
|
|
3622
|
-
status: InviteStatus$5;
|
|
3623
|
-
acceptLink: string;
|
|
3624
|
-
inviterAccountId: string;
|
|
3625
|
-
policyIds: string[];
|
|
3626
|
-
assignments: InviteResourceAssignmentNonNullableFields$1[];
|
|
3627
|
-
}
|
|
3628
|
-
interface InviteFailureNonNullableFields$1 {
|
|
3629
|
-
subjectEmail: string;
|
|
3630
|
-
errorMessage: string;
|
|
3631
|
-
}
|
|
3632
|
-
interface CreateInviteResponseNonNullableFields$1 {
|
|
3633
|
-
successfulInvites: AccountInviteNonNullableFields$1[];
|
|
3634
|
-
failedInvites: InviteFailureNonNullableFields$1[];
|
|
3635
|
-
}
|
|
3636
|
-
|
|
3637
|
-
interface AccountInvite {
|
|
3638
|
-
/**
|
|
3639
|
-
* Invite ID.
|
|
3640
|
-
* @readonly
|
|
3641
|
-
*/
|
|
3642
|
-
_id?: string;
|
|
3643
|
-
/**
|
|
3644
|
-
* Account ID.
|
|
3645
|
-
* @readonly
|
|
3646
|
-
*/
|
|
3647
|
-
accountId?: string;
|
|
3648
|
-
/** Email address where the invite was sent. */
|
|
3649
|
-
email?: string;
|
|
3650
|
-
/**
|
|
3651
|
-
* Deprecated. Use `policyIds`.
|
|
3652
|
-
* @deprecated
|
|
3653
|
-
*/
|
|
3654
|
-
role?: string;
|
|
3655
|
-
/**
|
|
3656
|
-
* Deprecated. Use `inviterAccountId`.
|
|
3657
|
-
* @readonly
|
|
3658
|
-
* @deprecated
|
|
3659
|
-
*/
|
|
3660
|
-
inviterId?: string;
|
|
3661
|
-
/**
|
|
3662
|
-
* Invite status.
|
|
3663
|
-
*
|
|
3664
|
-
* Supported values:
|
|
3665
|
-
* - **Pending:** The invite has been sent and is valid, waiting for the user's response.
|
|
3666
|
-
* - **Used:** The invite has been accepted.
|
|
3667
|
-
* - **Deleted:** The invite has been deleted or revoked.
|
|
3668
|
-
* - **Declined:** The user has declined the invite.
|
|
3669
|
-
* - **Expired:** The invite has expired without being accepted.
|
|
3670
|
-
*/
|
|
3671
|
-
status?: InviteStatus$4;
|
|
3672
|
-
/** Link to accept the invite. */
|
|
3673
|
-
acceptLink?: string;
|
|
3674
|
-
/**
|
|
3675
|
-
* Inviting account ID.
|
|
3676
|
-
* @readonly
|
|
3677
|
-
*/
|
|
3678
|
-
inviterAccountId?: string;
|
|
3679
|
-
/**
|
|
3680
|
-
* Account ID that accepted the invite. Populated only once the invite is accepted.
|
|
3681
|
-
* @readonly
|
|
3682
|
-
*/
|
|
3683
|
-
acceptedByAccountId?: string | null;
|
|
3684
|
-
/** Date the invite was created. */
|
|
3685
|
-
dateCreated?: Date | null;
|
|
3686
|
-
/** Role IDs included in the invite. */
|
|
3687
|
-
policyIds?: string[];
|
|
3688
|
-
/** Date the invite was last updated. */
|
|
3689
|
-
dateUpdated?: Date | null;
|
|
3690
|
-
/** Assets the users are invited to join. */
|
|
3691
|
-
assignments?: InviteResourceAssignment[];
|
|
3692
|
-
/** Invite expiration date. */
|
|
3693
|
-
expirationDate?: Date | null;
|
|
3694
|
-
}
|
|
3695
|
-
/** Invite status stating whether the invite was accepted, waiting to be accepted, deleted etc.. */
|
|
3696
|
-
declare enum InviteStatus$4 {
|
|
3697
|
-
Pending = "Pending",
|
|
3698
|
-
Used = "Used",
|
|
3699
|
-
Deleted = "Deleted",
|
|
3700
|
-
Declined = "Declined",
|
|
3701
|
-
Expired = "Expired"
|
|
3702
|
-
}
|
|
3703
|
-
interface InviteResourceAssignment {
|
|
3704
|
-
/** Role ID. */
|
|
3705
|
-
policyId?: string;
|
|
3706
|
-
/** Resources the user will be able to access. */
|
|
3707
|
-
assignments?: InviteAssignment[];
|
|
3708
|
-
}
|
|
3709
|
-
interface InviteAssignment {
|
|
3710
|
-
/** Full name of resource to be assigned. */
|
|
3711
|
-
fullNameResource?: FullNameResource;
|
|
3712
|
-
}
|
|
3713
|
-
interface FullNameResource extends FullNameResourceResourceContextOneOf {
|
|
3714
|
-
/** Specific site details. */
|
|
3715
|
-
siteContext?: SiteResourceContext;
|
|
3716
|
-
/** Specific account details. */
|
|
3717
|
-
accountContext?: AccountResourceContext;
|
|
3718
|
-
}
|
|
3719
|
-
/** @oneof */
|
|
3720
|
-
interface FullNameResourceResourceContextOneOf {
|
|
3721
|
-
/** Specific site details. */
|
|
3722
|
-
siteContext?: SiteResourceContext;
|
|
3723
|
-
/** Specific account details. */
|
|
3724
|
-
accountContext?: AccountResourceContext;
|
|
3725
|
-
}
|
|
3726
|
-
/** Site resource context. It indicates that the resource is under a site (can be the site itself or some asset of a site, like a blog post) */
|
|
3727
|
-
interface SiteResourceContext {
|
|
3728
|
-
/** Site ID. */
|
|
3729
|
-
metasiteId?: string;
|
|
3730
|
-
}
|
|
3731
|
-
/** Account resource contexts. It indicates that the resource is under the account (can be the account itself or some asset of an account, like a logo or a domain) */
|
|
3732
|
-
interface AccountResourceContext {
|
|
3733
|
-
/** Account ID. */
|
|
3734
|
-
accountId?: string;
|
|
3735
|
-
}
|
|
3736
|
-
declare enum SimpleConditionOperator {
|
|
3737
|
-
UNKNOWN_SIMPLE_OP = "UNKNOWN_SIMPLE_OP",
|
|
3738
|
-
EQUAL = "EQUAL"
|
|
3739
|
-
}
|
|
3740
|
-
declare enum JoinedConditionOperator {
|
|
3741
|
-
UNKNOWN_JOIN_OP = "UNKNOWN_JOIN_OP",
|
|
3742
|
-
OR = "OR",
|
|
3743
|
-
AND = "AND"
|
|
3744
|
-
}
|
|
3745
|
-
declare enum SubjectType$4 {
|
|
3746
|
-
UNKNOWN = "UNKNOWN",
|
|
3747
|
-
ACCOUNT = "ACCOUNT",
|
|
3748
|
-
USER = "USER",
|
|
3749
|
-
USER_GROUP = "USER_GROUP",
|
|
3750
|
-
MEMBER_GROUP = "MEMBER_GROUP",
|
|
3751
|
-
VISITOR_GROUP = "VISITOR_GROUP",
|
|
3752
|
-
EXTERNAL_APP = "EXTERNAL_APP",
|
|
3753
|
-
ACCOUNT_GROUP = "ACCOUNT_GROUP",
|
|
3754
|
-
WIX_APP = "WIX_APP"
|
|
3755
|
-
}
|
|
3756
|
-
declare enum SubjectContextType {
|
|
3757
|
-
UNKNOWN_CTX = "UNKNOWN_CTX",
|
|
3758
|
-
ORG_CTX = "ORG_CTX",
|
|
3759
|
-
ACCOUNT_CTX = "ACCOUNT_CTX"
|
|
3760
|
-
}
|
|
3761
|
-
interface CreateInviteRequest {
|
|
3762
|
-
/** Array of potential team members' email addresses and their corresponding assignments (how they will be assigned when they accept the invite). */
|
|
3763
|
-
subjectsAssignments: SubjectInviteAssignments[];
|
|
3764
|
-
/** Language of emails to send. Relevant only for recipients that don't currently have a Wix user ID. Default: Site owner's language. */
|
|
3765
|
-
defaultEmailLanguage?: string | null;
|
|
3766
|
-
}
|
|
3767
|
-
interface SubjectInviteAssignments {
|
|
3768
|
-
/** Invitee's email address. */
|
|
3769
|
-
subjectEmail?: string;
|
|
3770
|
-
/** Mapping of roles (referred to here as policies) and assets (referred to here as resources) that will be assigned to the invitee when they accept the invite. When no resources are specified, the invitee will be given access to everything within the account. */
|
|
3771
|
-
assignments?: InviteResourceAssignment[];
|
|
3772
|
-
}
|
|
3773
|
-
interface CreateInviteResponse {
|
|
3774
|
-
/** Invites that were sent successfully. */
|
|
3775
|
-
successfulInvites?: AccountInvite[];
|
|
3776
|
-
/** Invites that failed. */
|
|
3777
|
-
failedInvites?: InviteFailure[];
|
|
3778
|
-
}
|
|
3779
|
-
interface InviteFailure {
|
|
3780
|
-
/** Email address of the failed invite. */
|
|
3781
|
-
subjectEmail?: string;
|
|
3782
|
-
/** Error description. */
|
|
3783
|
-
errorMessage?: string;
|
|
3784
|
-
}
|
|
3785
|
-
interface SiteResourceContextNonNullableFields {
|
|
3786
|
-
metasiteId: string;
|
|
3787
|
-
}
|
|
3788
|
-
interface AccountResourceContextNonNullableFields {
|
|
3789
|
-
accountId: string;
|
|
3790
|
-
}
|
|
3791
|
-
interface FullNameResourceNonNullableFields {
|
|
3792
|
-
siteContext?: SiteResourceContextNonNullableFields;
|
|
3793
|
-
accountContext?: AccountResourceContextNonNullableFields;
|
|
3794
|
-
}
|
|
3795
|
-
interface SimpleConditionValueNonNullableFields {
|
|
3796
|
-
attrName: string;
|
|
3797
|
-
stringValue: string;
|
|
3798
|
-
boolValue: boolean;
|
|
3799
|
-
}
|
|
3800
|
-
interface SimpleConditionNonNullableFields {
|
|
3801
|
-
attrName: string;
|
|
3802
|
-
value?: SimpleConditionValueNonNullableFields;
|
|
3803
|
-
op: SimpleConditionOperator;
|
|
3804
|
-
conditionModelId: string;
|
|
3805
|
-
}
|
|
3806
|
-
interface JoinedConditionNonNullableFields {
|
|
3807
|
-
op: JoinedConditionOperator;
|
|
3808
|
-
conditions: ConditionTypeNonNullableFields[];
|
|
3809
|
-
}
|
|
3810
|
-
interface ExperimentConditionNonNullableFields {
|
|
3811
|
-
spec: string;
|
|
3812
|
-
fallbackValue: string;
|
|
3813
|
-
expectedValue: string;
|
|
3814
|
-
}
|
|
3815
|
-
interface EnvironmentConditionNonNullableFields {
|
|
3816
|
-
experimentCondition?: ExperimentConditionNonNullableFields;
|
|
3817
|
-
}
|
|
3818
|
-
interface ConditionValueNonNullableFields {
|
|
3819
|
-
attrName: string;
|
|
3820
|
-
stringValue: string;
|
|
3821
|
-
boolValue: boolean;
|
|
3822
|
-
}
|
|
3823
|
-
interface EqualOperatorNonNullableFields {
|
|
3824
|
-
attrName: string;
|
|
3825
|
-
value?: ConditionValueNonNullableFields;
|
|
3826
|
-
}
|
|
3827
|
-
interface LikeOperatorNonNullableFields {
|
|
3828
|
-
attrName: string;
|
|
3829
|
-
values: string[];
|
|
3830
|
-
}
|
|
3831
|
-
interface ExperimentOperatorNonNullableFields {
|
|
3832
|
-
spec: string;
|
|
3833
|
-
fallbackValue: string;
|
|
3834
|
-
expectedValue: string;
|
|
3835
|
-
}
|
|
3836
|
-
interface SubjectContextNonNullableFields {
|
|
3837
|
-
_id: string;
|
|
3838
|
-
contextType: SubjectContextType;
|
|
3839
|
-
}
|
|
3840
|
-
interface SubjectNonNullableFields {
|
|
3841
|
-
_id: string;
|
|
3842
|
-
subjectType: SubjectType$4;
|
|
3843
|
-
context?: SubjectContextNonNullableFields;
|
|
3844
|
-
}
|
|
3845
|
-
interface DependOnOperatorNonNullableFields {
|
|
3846
|
-
dependOnSubject?: SubjectNonNullableFields;
|
|
3847
|
-
}
|
|
3848
|
-
interface ConditionOperatorNonNullableFields {
|
|
3849
|
-
equals?: EqualOperatorNonNullableFields;
|
|
3850
|
-
like?: LikeOperatorNonNullableFields;
|
|
3851
|
-
experiment?: ExperimentOperatorNonNullableFields;
|
|
3852
|
-
dependOn?: DependOnOperatorNonNullableFields;
|
|
3853
|
-
}
|
|
3854
|
-
interface ConditionNonNullableFields {
|
|
3855
|
-
conditionModelId: string;
|
|
3856
|
-
operator?: ConditionOperatorNonNullableFields;
|
|
3857
|
-
}
|
|
3858
|
-
interface ConditionTypeNonNullableFields {
|
|
3859
|
-
simpleCondition?: SimpleConditionNonNullableFields;
|
|
3860
|
-
joinedConditions?: JoinedConditionNonNullableFields;
|
|
3861
|
-
environmentCondition?: EnvironmentConditionNonNullableFields;
|
|
3862
|
-
condition?: ConditionNonNullableFields;
|
|
3863
|
-
}
|
|
3864
|
-
interface PolicyConditionNonNullableFields {
|
|
3865
|
-
condition?: ConditionTypeNonNullableFields;
|
|
3866
|
-
}
|
|
3867
|
-
interface InviteAssignmentNonNullableFields {
|
|
3868
|
-
fullNameResource?: FullNameResourceNonNullableFields;
|
|
3869
|
-
condition?: PolicyConditionNonNullableFields;
|
|
3870
|
-
}
|
|
3871
|
-
interface InviteResourceAssignmentNonNullableFields {
|
|
3872
|
-
policyId: string;
|
|
3873
|
-
assignments: InviteAssignmentNonNullableFields[];
|
|
3874
|
-
}
|
|
3875
|
-
interface AccountInviteNonNullableFields {
|
|
3876
|
-
_id: string;
|
|
3877
|
-
accountId: string;
|
|
3878
|
-
email: string;
|
|
3879
|
-
role: string;
|
|
3880
|
-
inviterId: string;
|
|
3881
|
-
status: InviteStatus$4;
|
|
3882
|
-
acceptLink: string;
|
|
3883
|
-
inviterAccountId: string;
|
|
3884
|
-
policyIds: string[];
|
|
3885
|
-
assignments: InviteResourceAssignmentNonNullableFields[];
|
|
3886
|
-
}
|
|
3887
|
-
interface InviteFailureNonNullableFields {
|
|
3888
|
-
subjectEmail: string;
|
|
3889
|
-
errorMessage: string;
|
|
3890
|
-
}
|
|
3891
|
-
interface CreateInviteResponseNonNullableFields {
|
|
3892
|
-
successfulInvites: AccountInviteNonNullableFields[];
|
|
3893
|
-
failedInvites: InviteFailureNonNullableFields[];
|
|
3894
|
-
}
|
|
3895
|
-
|
|
3896
|
-
type __PublicMethodMetaInfo$4<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
3897
|
-
getUrl: (context: any) => string;
|
|
3898
|
-
httpMethod: K;
|
|
3899
|
-
path: string;
|
|
3900
|
-
pathParams: M;
|
|
3901
|
-
__requestType: T;
|
|
3902
|
-
__originalRequestType: S;
|
|
3903
|
-
__responseType: Q;
|
|
3904
|
-
__originalResponseType: R;
|
|
3905
|
-
};
|
|
3906
|
-
declare function createInvite(): __PublicMethodMetaInfo$4<'POST', {}, CreateInviteRequest, CreateInviteRequest$1, CreateInviteResponse & CreateInviteResponseNonNullableFields, CreateInviteResponse$1 & CreateInviteResponseNonNullableFields$1>;
|
|
3907
|
-
|
|
3908
|
-
declare const meta$4_createInvite: typeof createInvite;
|
|
3909
|
-
declare namespace meta$4 {
|
|
3910
|
-
export { type __PublicMethodMetaInfo$4 as __PublicMethodMetaInfo, meta$4_createInvite as createInvite };
|
|
3911
|
-
}
|
|
3912
|
-
|
|
3913
|
-
interface SiteInvite$1 {
|
|
3914
|
-
/**
|
|
3915
|
-
* Invite ID.
|
|
3916
|
-
* @readonly
|
|
3917
|
-
*/
|
|
3918
|
-
id?: string;
|
|
3919
|
-
/**
|
|
3920
|
-
* Site ID the user is invited to as a collaborator.
|
|
3921
|
-
* @readonly
|
|
3922
|
-
*/
|
|
3923
|
-
siteId?: string;
|
|
3924
|
-
/** Email address where the invite was sent. */
|
|
3925
|
-
email?: string;
|
|
3926
|
-
/** Role IDs included in the invite. */
|
|
3927
|
-
policyIds?: string[];
|
|
3928
|
-
/**
|
|
3929
|
-
* Deprecated. Use `inviterAccountId`.
|
|
3930
|
-
* @readonly
|
|
3931
|
-
* @deprecated
|
|
3932
|
-
*/
|
|
3933
|
-
inviterId?: string;
|
|
3934
|
-
/**
|
|
3935
|
-
* Invite Status.
|
|
3936
|
-
*
|
|
3937
|
-
* Supported values:
|
|
3938
|
-
* - **Pending:** The invite has been sent and is valid, waiting for the user's response.
|
|
3939
|
-
* - **Used:** The invite has been accepted.
|
|
3940
|
-
* - **Deleted:** The invite has been deleted or revoked.
|
|
3941
|
-
* - **Declined:** The user declined the invite.
|
|
3942
|
-
* - **Expired:** The invite has expired without being accepted.
|
|
3943
|
-
*/
|
|
3944
|
-
status?: InviteStatus$3;
|
|
3945
|
-
/** Link to accept the invite. */
|
|
3946
|
-
acceptLink?: string;
|
|
3947
|
-
/**
|
|
3948
|
-
* Inviting account ID.
|
|
3949
|
-
* @readonly
|
|
3950
|
-
*/
|
|
3951
|
-
inviterAccountId?: string;
|
|
3952
|
-
/**
|
|
3953
|
-
* Account ID that accepted the invite. Populated only once the invite is accepted.
|
|
3954
|
-
* @readonly
|
|
3955
|
-
*/
|
|
3956
|
-
acceptedByAccountId?: string | null;
|
|
3957
|
-
/** Date the invite was created. */
|
|
3958
|
-
dateCreated?: Date | null;
|
|
3959
|
-
/** User's Wix Bookings staff ID, if relevant. */
|
|
3960
|
-
staffId?: string | null;
|
|
3961
|
-
/** Invite expiration date */
|
|
3962
|
-
expirationDate?: Date | null;
|
|
3963
|
-
}
|
|
3964
|
-
/** Invite status stating whether the invite was accepted, waiting to be accepted, deleted etc.. */
|
|
3965
|
-
declare enum InviteStatus$3 {
|
|
3966
|
-
Pending = "Pending",
|
|
3967
|
-
Used = "Used",
|
|
3968
|
-
Deleted = "Deleted",
|
|
3969
|
-
Declined = "Declined",
|
|
3970
|
-
Expired = "Expired"
|
|
3971
|
-
}
|
|
3972
|
-
interface SiteInviteResponse$1 {
|
|
3973
|
-
/** Invites that were sent. */
|
|
3974
|
-
invite?: SiteInvite$1;
|
|
3975
|
-
}
|
|
3976
|
-
interface BulkSiteInviteRequest$1 {
|
|
3977
|
-
/** Role IDs, referred to as policy IDs, to assign to the contributors. */
|
|
3978
|
-
policyIds: string[];
|
|
3979
|
-
/** Email addresses to which the invites should be sent. */
|
|
3980
|
-
emails: string[];
|
|
3981
|
-
/** Details explaining the purpose of the invite. */
|
|
3982
|
-
invitePurpose?: string | null;
|
|
3983
|
-
/** Language of emails to send. Relevant only for recipients that don't currently have a Wix user ID. Default: Site owner's language. */
|
|
3984
|
-
defaultEmailLanguage?: string | null;
|
|
3985
|
-
}
|
|
3986
|
-
interface BulkSiteInviteResponse$1 {
|
|
3987
|
-
/** Invites that were sent successfully. */
|
|
3988
|
-
invites?: SiteInvite$1[];
|
|
3989
|
-
/** Invites that failed. */
|
|
3990
|
-
failedEmails?: string[];
|
|
3991
|
-
}
|
|
3992
|
-
interface ResendSiteInviteRequest$1 {
|
|
3993
|
-
/** Invite ID. */
|
|
3994
|
-
inviteId: string;
|
|
3995
|
-
/** Language of emails to send. Relevant only for recipients that don't currently have a Wix user ID. Default: Site owner's language. */
|
|
3996
|
-
defaultEmailLanguage?: string | null;
|
|
3997
|
-
}
|
|
3998
|
-
interface RevokeSiteInviteRequest$1 {
|
|
3999
|
-
/** Invite ID. */
|
|
4000
|
-
inviteId: string;
|
|
4001
|
-
}
|
|
4002
|
-
interface RevokeSiteInviteResponse$1 {
|
|
4003
|
-
}
|
|
4004
|
-
interface SiteInviteNonNullableFields$1 {
|
|
4005
|
-
id: string;
|
|
4006
|
-
siteId: string;
|
|
4007
|
-
email: string;
|
|
4008
|
-
policyIds: string[];
|
|
4009
|
-
inviterId: string;
|
|
4010
|
-
status: InviteStatus$3;
|
|
4011
|
-
acceptLink: string;
|
|
4012
|
-
inviterAccountId: string;
|
|
4013
|
-
}
|
|
4014
|
-
interface BulkSiteInviteResponseNonNullableFields$1 {
|
|
4015
|
-
invites: SiteInviteNonNullableFields$1[];
|
|
4016
|
-
failedEmails: string[];
|
|
4017
|
-
}
|
|
4018
|
-
interface SiteInviteResponseNonNullableFields$1 {
|
|
4019
|
-
invite?: SiteInviteNonNullableFields$1;
|
|
4020
|
-
}
|
|
4021
|
-
|
|
4022
|
-
interface SiteInvite {
|
|
4023
|
-
/**
|
|
4024
|
-
* Invite ID.
|
|
4025
|
-
* @readonly
|
|
4026
|
-
*/
|
|
4027
|
-
_id?: string;
|
|
4028
|
-
/**
|
|
4029
|
-
* Site ID the user is invited to as a collaborator.
|
|
4030
|
-
* @readonly
|
|
4031
|
-
*/
|
|
4032
|
-
siteId?: string;
|
|
4033
|
-
/** Email address where the invite was sent. */
|
|
4034
|
-
email?: string;
|
|
4035
|
-
/** Role IDs included in the invite. */
|
|
4036
|
-
policyIds?: string[];
|
|
4037
|
-
/**
|
|
4038
|
-
* Deprecated. Use `inviterAccountId`.
|
|
4039
|
-
* @readonly
|
|
4040
|
-
* @deprecated
|
|
4041
|
-
*/
|
|
4042
|
-
inviterId?: string;
|
|
4043
|
-
/**
|
|
4044
|
-
* Invite Status.
|
|
4045
|
-
*
|
|
4046
|
-
* Supported values:
|
|
4047
|
-
* - **Pending:** The invite has been sent and is valid, waiting for the user's response.
|
|
4048
|
-
* - **Used:** The invite has been accepted.
|
|
4049
|
-
* - **Deleted:** The invite has been deleted or revoked.
|
|
4050
|
-
* - **Declined:** The user declined the invite.
|
|
4051
|
-
* - **Expired:** The invite has expired without being accepted.
|
|
4052
|
-
*/
|
|
4053
|
-
status?: InviteStatus$2;
|
|
4054
|
-
/** Link to accept the invite. */
|
|
4055
|
-
acceptLink?: string;
|
|
4056
|
-
/**
|
|
4057
|
-
* Inviting account ID.
|
|
4058
|
-
* @readonly
|
|
4059
|
-
*/
|
|
4060
|
-
inviterAccountId?: string;
|
|
4061
|
-
/**
|
|
4062
|
-
* Account ID that accepted the invite. Populated only once the invite is accepted.
|
|
4063
|
-
* @readonly
|
|
4064
|
-
*/
|
|
4065
|
-
acceptedByAccountId?: string | null;
|
|
4066
|
-
/** Date the invite was created. */
|
|
4067
|
-
dateCreated?: Date | null;
|
|
4068
|
-
/** User's Wix Bookings staff ID, if relevant. */
|
|
4069
|
-
staffId?: string | null;
|
|
4070
|
-
/** Invite expiration date */
|
|
4071
|
-
expirationDate?: Date | null;
|
|
4072
|
-
}
|
|
4073
|
-
/** Invite status stating whether the invite was accepted, waiting to be accepted, deleted etc.. */
|
|
4074
|
-
declare enum InviteStatus$2 {
|
|
4075
|
-
Pending = "Pending",
|
|
4076
|
-
Used = "Used",
|
|
4077
|
-
Deleted = "Deleted",
|
|
4078
|
-
Declined = "Declined",
|
|
4079
|
-
Expired = "Expired"
|
|
4080
|
-
}
|
|
4081
|
-
interface SiteInviteResponse {
|
|
4082
|
-
/** Invites that were sent. */
|
|
4083
|
-
invite?: SiteInvite;
|
|
4084
|
-
}
|
|
4085
|
-
interface BulkSiteInviteRequest {
|
|
4086
|
-
/** Role IDs, referred to as policy IDs, to assign to the contributors. */
|
|
4087
|
-
policyIds: string[];
|
|
4088
|
-
/** Email addresses to which the invites should be sent. */
|
|
4089
|
-
emails: string[];
|
|
4090
|
-
/** Details explaining the purpose of the invite. */
|
|
4091
|
-
invitePurpose?: string | null;
|
|
4092
|
-
/** Language of emails to send. Relevant only for recipients that don't currently have a Wix user ID. Default: Site owner's language. */
|
|
4093
|
-
defaultEmailLanguage?: string | null;
|
|
4094
|
-
}
|
|
4095
|
-
interface BulkSiteInviteResponse {
|
|
4096
|
-
/** Invites that were sent successfully. */
|
|
4097
|
-
invites?: SiteInvite[];
|
|
4098
|
-
/** Invites that failed. */
|
|
4099
|
-
failedEmails?: string[];
|
|
4100
|
-
}
|
|
4101
|
-
interface ResendSiteInviteRequest {
|
|
4102
|
-
/** Invite ID. */
|
|
4103
|
-
inviteId: string;
|
|
4104
|
-
/** Language of emails to send. Relevant only for recipients that don't currently have a Wix user ID. Default: Site owner's language. */
|
|
4105
|
-
defaultEmailLanguage?: string | null;
|
|
4106
|
-
}
|
|
4107
|
-
interface RevokeSiteInviteRequest {
|
|
4108
|
-
/** Invite ID. */
|
|
4109
|
-
inviteId: string;
|
|
4110
|
-
}
|
|
4111
|
-
interface RevokeSiteInviteResponse {
|
|
4112
|
-
}
|
|
4113
|
-
interface SiteInviteNonNullableFields {
|
|
4114
|
-
_id: string;
|
|
4115
|
-
siteId: string;
|
|
4116
|
-
email: string;
|
|
4117
|
-
policyIds: string[];
|
|
4118
|
-
inviterId: string;
|
|
4119
|
-
status: InviteStatus$2;
|
|
4120
|
-
acceptLink: string;
|
|
4121
|
-
inviterAccountId: string;
|
|
4122
|
-
}
|
|
4123
|
-
interface BulkSiteInviteResponseNonNullableFields {
|
|
4124
|
-
invites: SiteInviteNonNullableFields[];
|
|
4125
|
-
failedEmails: string[];
|
|
4126
|
-
}
|
|
4127
|
-
interface SiteInviteResponseNonNullableFields {
|
|
4128
|
-
invite?: SiteInviteNonNullableFields;
|
|
4129
|
-
}
|
|
4130
|
-
|
|
4131
|
-
type __PublicMethodMetaInfo$3<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
3359
|
+
type __PublicMethodMetaInfo$1<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
4132
3360
|
getUrl: (context: any) => string;
|
|
4133
3361
|
httpMethod: K;
|
|
4134
3362
|
path: string;
|
|
@@ -4138,19 +3366,13 @@ type __PublicMethodMetaInfo$3<K = string, M = unknown, T = unknown, S = unknown,
|
|
|
4138
3366
|
__responseType: Q;
|
|
4139
3367
|
__originalResponseType: R;
|
|
4140
3368
|
};
|
|
4141
|
-
declare function
|
|
4142
|
-
declare function
|
|
4143
|
-
inviteId: string;
|
|
4144
|
-
}, ResendSiteInviteRequest, ResendSiteInviteRequest$1, SiteInviteResponse & SiteInviteResponseNonNullableFields, SiteInviteResponse$1 & SiteInviteResponseNonNullableFields$1>;
|
|
4145
|
-
declare function revokeInvite(): __PublicMethodMetaInfo$3<'POST', {
|
|
4146
|
-
inviteId: string;
|
|
4147
|
-
}, RevokeSiteInviteRequest, RevokeSiteInviteRequest$1, RevokeSiteInviteResponse, RevokeSiteInviteResponse$1>;
|
|
3369
|
+
declare function createAccount(): __PublicMethodMetaInfo$1<'POST', {}, CreateAccountRequest, CreateAccountRequest$1, CreateAccountResponse & CreateAccountResponseNonNullableFields, CreateAccountResponse$1 & CreateAccountResponseNonNullableFields$1>;
|
|
3370
|
+
declare function listChildAccounts(): __PublicMethodMetaInfo$1<'GET', {}, ListChildAccountsRequest, ListChildAccountsRequest$1, ListChildAccountsResponse & ListChildAccountsResponseNonNullableFields, ListChildAccountsResponse$1 & ListChildAccountsResponseNonNullableFields$1>;
|
|
4148
3371
|
|
|
4149
|
-
declare const meta$
|
|
4150
|
-
declare const meta$
|
|
4151
|
-
declare
|
|
4152
|
-
|
|
4153
|
-
export { type __PublicMethodMetaInfo$3 as __PublicMethodMetaInfo, meta$3_bulkInvite as bulkInvite, meta$3_resendInvite as resendInvite, meta$3_revokeInvite as revokeInvite };
|
|
3372
|
+
declare const meta$1_createAccount: typeof createAccount;
|
|
3373
|
+
declare const meta$1_listChildAccounts: typeof listChildAccounts;
|
|
3374
|
+
declare namespace meta$1 {
|
|
3375
|
+
export { type __PublicMethodMetaInfo$1 as __PublicMethodMetaInfo, meta$1_createAccount as createAccount, meta$1_listChildAccounts as listChildAccounts };
|
|
4154
3376
|
}
|
|
4155
3377
|
|
|
4156
3378
|
interface RawHttpResponse$1 {
|
|
@@ -4182,7 +3404,7 @@ interface QueryParametersEntry$1 {
|
|
|
4182
3404
|
interface TokenInfoResponse$1 {
|
|
4183
3405
|
active?: boolean;
|
|
4184
3406
|
/** subject type. */
|
|
4185
|
-
subjectType?: SubjectType$
|
|
3407
|
+
subjectType?: SubjectType$1;
|
|
4186
3408
|
/** subject id */
|
|
4187
3409
|
subjectId?: string;
|
|
4188
3410
|
/** Expiration time of the token */
|
|
@@ -4200,7 +3422,7 @@ interface TokenInfoResponse$1 {
|
|
|
4200
3422
|
/** Vendor Product Id */
|
|
4201
3423
|
vendorProductId?: string | null;
|
|
4202
3424
|
}
|
|
4203
|
-
declare enum SubjectType$
|
|
3425
|
+
declare enum SubjectType$1 {
|
|
4204
3426
|
/** unknown subject type */
|
|
4205
3427
|
UNKNOWN = "UNKNOWN",
|
|
4206
3428
|
/** user subject type */
|
|
@@ -4222,7 +3444,7 @@ interface RawHttpResponseNonNullableFields$1 {
|
|
|
4222
3444
|
}
|
|
4223
3445
|
interface TokenInfoResponseNonNullableFields$1 {
|
|
4224
3446
|
active: boolean;
|
|
4225
|
-
subjectType: SubjectType$
|
|
3447
|
+
subjectType: SubjectType$1;
|
|
4226
3448
|
subjectId: string;
|
|
4227
3449
|
clientId: string;
|
|
4228
3450
|
}
|
|
@@ -4256,7 +3478,7 @@ interface QueryParametersEntry {
|
|
|
4256
3478
|
interface TokenInfoResponse {
|
|
4257
3479
|
active?: boolean;
|
|
4258
3480
|
/** subject type. */
|
|
4259
|
-
subjectType?: SubjectType
|
|
3481
|
+
subjectType?: SubjectType;
|
|
4260
3482
|
/** subject id */
|
|
4261
3483
|
subjectId?: string;
|
|
4262
3484
|
/** Expiration time of the token */
|
|
@@ -4274,7 +3496,7 @@ interface TokenInfoResponse {
|
|
|
4274
3496
|
/** Vendor Product Id */
|
|
4275
3497
|
vendorProductId?: string | null;
|
|
4276
3498
|
}
|
|
4277
|
-
declare enum SubjectType
|
|
3499
|
+
declare enum SubjectType {
|
|
4278
3500
|
/** unknown subject type */
|
|
4279
3501
|
UNKNOWN = "UNKNOWN",
|
|
4280
3502
|
/** user subject type */
|
|
@@ -4296,883 +3518,11 @@ interface RawHttpResponseNonNullableFields {
|
|
|
4296
3518
|
}
|
|
4297
3519
|
interface TokenInfoResponseNonNullableFields {
|
|
4298
3520
|
active: boolean;
|
|
4299
|
-
subjectType: SubjectType
|
|
3521
|
+
subjectType: SubjectType;
|
|
4300
3522
|
subjectId: string;
|
|
4301
3523
|
clientId: string;
|
|
4302
3524
|
}
|
|
4303
3525
|
|
|
4304
|
-
type __PublicMethodMetaInfo$2<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
4305
|
-
getUrl: (context: any) => string;
|
|
4306
|
-
httpMethod: K;
|
|
4307
|
-
path: string;
|
|
4308
|
-
pathParams: M;
|
|
4309
|
-
__requestType: T;
|
|
4310
|
-
__originalRequestType: S;
|
|
4311
|
-
__responseType: Q;
|
|
4312
|
-
__originalResponseType: R;
|
|
4313
|
-
};
|
|
4314
|
-
declare function token(): __PublicMethodMetaInfo$2<'POST', {}, RawHttpRequest, RawHttpRequest$1, RawHttpResponse & RawHttpResponseNonNullableFields, RawHttpResponse$1 & RawHttpResponseNonNullableFields$1>;
|
|
4315
|
-
declare function tokenInfo(): __PublicMethodMetaInfo$2<'POST', {}, RawHttpRequest, RawHttpRequest$1, TokenInfoResponse & TokenInfoResponseNonNullableFields, TokenInfoResponse$1 & TokenInfoResponseNonNullableFields$1>;
|
|
4316
|
-
|
|
4317
|
-
declare const meta$2_token: typeof token;
|
|
4318
|
-
declare const meta$2_tokenInfo: typeof tokenInfo;
|
|
4319
|
-
declare namespace meta$2 {
|
|
4320
|
-
export { type __PublicMethodMetaInfo$2 as __PublicMethodMetaInfo, meta$2_token as token, meta$2_tokenInfo as tokenInfo };
|
|
4321
|
-
}
|
|
4322
|
-
|
|
4323
|
-
interface Name$1 {
|
|
4324
|
-
/** User's first name. */
|
|
4325
|
-
firstName?: string;
|
|
4326
|
-
/** User's last name. */
|
|
4327
|
-
lastName?: string;
|
|
4328
|
-
}
|
|
4329
|
-
interface Restriction$1 extends RestrictionRestrictionsOneOf$1 {
|
|
4330
|
-
/**
|
|
4331
|
-
* Deprecated.
|
|
4332
|
-
* @deprecated
|
|
4333
|
-
*/
|
|
4334
|
-
resource?: ApiResource$1;
|
|
4335
|
-
/** List of conditions restricting the user's access. Currently only folder conditions are supported. */
|
|
4336
|
-
conditions?: Conditions$1;
|
|
4337
|
-
/** Site where the assignment restrictions apply. */
|
|
4338
|
-
site?: SiteRestriction$1;
|
|
4339
|
-
}
|
|
4340
|
-
/** @oneof */
|
|
4341
|
-
interface RestrictionRestrictionsOneOf$1 {
|
|
4342
|
-
/**
|
|
4343
|
-
* Deprecated.
|
|
4344
|
-
* @deprecated
|
|
4345
|
-
*/
|
|
4346
|
-
resource?: ApiResource$1;
|
|
4347
|
-
/** List of conditions restricting the user's access. Currently only folder conditions are supported. */
|
|
4348
|
-
conditions?: Conditions$1;
|
|
4349
|
-
/** Site where the assignment restrictions apply. */
|
|
4350
|
-
site?: SiteRestriction$1;
|
|
4351
|
-
}
|
|
4352
|
-
interface ApiResource$1 {
|
|
4353
|
-
/** Resource type. */
|
|
4354
|
-
resourceType?: ResourceType$1;
|
|
4355
|
-
/** Resource ID. */
|
|
4356
|
-
id?: string;
|
|
4357
|
-
value?: string | null;
|
|
4358
|
-
}
|
|
4359
|
-
declare enum ResourceType$1 {
|
|
4360
|
-
UNKNOWN_RESOURCE_TYPE = "UNKNOWN_RESOURCE_TYPE",
|
|
4361
|
-
SITE = "SITE"
|
|
4362
|
-
}
|
|
4363
|
-
interface Conditions$1 {
|
|
4364
|
-
/** List of conditions. */
|
|
4365
|
-
conditions?: ApiCondition$1[];
|
|
4366
|
-
}
|
|
4367
|
-
interface ApiCondition$1 {
|
|
4368
|
-
/** Condition type. */
|
|
4369
|
-
conditionType?: ConditionAttributeType$1;
|
|
4370
|
-
/** Condition ID. */
|
|
4371
|
-
id?: string;
|
|
4372
|
-
/** Expected value of the condition. When `conditionType` = "FOLDER", this is the folder path. */
|
|
4373
|
-
value?: string | null;
|
|
4374
|
-
}
|
|
4375
|
-
declare enum ConditionAttributeType$1 {
|
|
4376
|
-
UNKNOWN_CONDITION_TYPE = "UNKNOWN_CONDITION_TYPE",
|
|
4377
|
-
FOLDER = "FOLDER"
|
|
4378
|
-
}
|
|
4379
|
-
interface SiteRestriction$1 {
|
|
4380
|
-
/** Site ID. */
|
|
4381
|
-
id?: string;
|
|
4382
|
-
/** Site name. */
|
|
4383
|
-
value?: string | null;
|
|
4384
|
-
}
|
|
4385
|
-
declare enum SubjectType$1 {
|
|
4386
|
-
UNKNOWN = "UNKNOWN",
|
|
4387
|
-
ACCOUNT = "ACCOUNT",
|
|
4388
|
-
USER = "USER",
|
|
4389
|
-
USER_GROUP = "USER_GROUP",
|
|
4390
|
-
MEMBER_GROUP = "MEMBER_GROUP",
|
|
4391
|
-
VISITOR_GROUP = "VISITOR_GROUP",
|
|
4392
|
-
EXTERNAL_APP = "EXTERNAL_APP",
|
|
4393
|
-
ACCOUNT_GROUP = "ACCOUNT_GROUP",
|
|
4394
|
-
WIX_APP = "WIX_APP"
|
|
4395
|
-
}
|
|
4396
|
-
interface Paging$1 {
|
|
4397
|
-
/** Number of items to load. */
|
|
4398
|
-
limit?: number | null;
|
|
4399
|
-
/** Number of items to skip in the current sort order. */
|
|
4400
|
-
offset?: number | null;
|
|
4401
|
-
}
|
|
4402
|
-
/** Invite status stating whether the invite was accepted, waiting to be accepted, deleted etc.. */
|
|
4403
|
-
declare enum InviteStatus$1 {
|
|
4404
|
-
Pending = "Pending",
|
|
4405
|
-
Used = "Used",
|
|
4406
|
-
Deleted = "Deleted",
|
|
4407
|
-
Declined = "Declined",
|
|
4408
|
-
Expired = "Expired"
|
|
4409
|
-
}
|
|
4410
|
-
interface RemoveMemberRequest$1 {
|
|
4411
|
-
/** User ID of the team member to remove. */
|
|
4412
|
-
userId: string;
|
|
4413
|
-
}
|
|
4414
|
-
interface RemoveMemberResponse$1 {
|
|
4415
|
-
}
|
|
4416
|
-
declare enum RoleLevel$1 {
|
|
4417
|
-
ALL = "ALL",
|
|
4418
|
-
SITE_LEVEL = "SITE_LEVEL",
|
|
4419
|
-
ACCOUNT_LEVEL = "ACCOUNT_LEVEL"
|
|
4420
|
-
}
|
|
4421
|
-
interface SearchTeamRequest$1 {
|
|
4422
|
-
/** Free text to search for within team member name and email address fields. */
|
|
4423
|
-
query?: string | null;
|
|
4424
|
-
/** Sort data. */
|
|
4425
|
-
orderBy?: Ordering$1[];
|
|
4426
|
-
/**
|
|
4427
|
-
* Filter object. Supported values: `inviteType` and `roleId`. For example, `{'inviteType': {'$eq': 'Expired'}}`.
|
|
4428
|
-
* See [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language) for more information.
|
|
4429
|
-
*/
|
|
4430
|
-
filter?: Record<string, any> | null;
|
|
4431
|
-
/**
|
|
4432
|
-
* A list of facets to return in the response. Facets count the items within logical groupings.
|
|
4433
|
-
* See [Filters and Facets: An Explainer](https://medium.com/@westontt/filters-and-facets-an-explainer-3b73a9538eca) for more information.
|
|
4434
|
-
*/
|
|
4435
|
-
facets?: FacetType$1[];
|
|
4436
|
-
/** Pagination. */
|
|
4437
|
-
paging?: Paging$1;
|
|
4438
|
-
}
|
|
4439
|
-
interface Ordering$1 {
|
|
4440
|
-
/** Field to sort by. */
|
|
4441
|
-
fieldName?: OrderField$1;
|
|
4442
|
-
/** Sort order. */
|
|
4443
|
-
direction?: Direction$1;
|
|
4444
|
-
}
|
|
4445
|
-
declare enum OrderField$1 {
|
|
4446
|
-
/** For internal use. */
|
|
4447
|
-
Undefined = "Undefined",
|
|
4448
|
-
/** Team member name. */
|
|
4449
|
-
Name = "Name",
|
|
4450
|
-
/** Date team member joined the account. */
|
|
4451
|
-
JoinedAt = "JoinedAt"
|
|
4452
|
-
}
|
|
4453
|
-
declare enum Direction$1 {
|
|
4454
|
-
/** For internal use. */
|
|
4455
|
-
UninitializedDirection = "UninitializedDirection",
|
|
4456
|
-
/** Ascending. */
|
|
4457
|
-
ASC = "ASC",
|
|
4458
|
-
/** Descending. */
|
|
4459
|
-
DESC = "DESC"
|
|
4460
|
-
}
|
|
4461
|
-
declare enum FacetType$1 {
|
|
4462
|
-
Undefined = "Undefined",
|
|
4463
|
-
/** How many team members with each role */
|
|
4464
|
-
Roles = "Roles",
|
|
4465
|
-
/** How many team members by invite status */
|
|
4466
|
-
InviteStatus = "InviteStatus",
|
|
4467
|
-
/** How many team members in total in the account */
|
|
4468
|
-
Users = "Users"
|
|
4469
|
-
}
|
|
4470
|
-
interface SearchTeamResponse$1 {
|
|
4471
|
-
/** List of facets, as requested. */
|
|
4472
|
-
facets?: Facet$1[];
|
|
4473
|
-
/** Existing team members and invites sent to join the account. */
|
|
4474
|
-
teamMembers?: TeamMemberV3$1[];
|
|
4475
|
-
}
|
|
4476
|
-
interface Facet$1 {
|
|
4477
|
-
/** Facet type. */
|
|
4478
|
-
facetType?: FacetType$1;
|
|
4479
|
-
/** Values and their counters. Values with count = 0 are not returned. */
|
|
4480
|
-
values?: FacetValue$1[];
|
|
4481
|
-
}
|
|
4482
|
-
interface FacetValue$1 {
|
|
4483
|
-
/** Supported values: `Roles`, `InviteStatus`, `Users`. */
|
|
4484
|
-
value?: string;
|
|
4485
|
-
/** Number of existing items for the value. */
|
|
4486
|
-
count?: number;
|
|
4487
|
-
}
|
|
4488
|
-
interface TeamMemberV3$1 extends TeamMemberV3MembersOneOf$1 {
|
|
4489
|
-
/** Existing team member data. */
|
|
4490
|
-
user?: UserV3$1;
|
|
4491
|
-
/** Invited team member data. */
|
|
4492
|
-
invite?: InviteV3$1;
|
|
4493
|
-
}
|
|
4494
|
-
/** @oneof */
|
|
4495
|
-
interface TeamMemberV3MembersOneOf$1 {
|
|
4496
|
-
/** Existing team member data. */
|
|
4497
|
-
user?: UserV3$1;
|
|
4498
|
-
/** Invited team member data. */
|
|
4499
|
-
invite?: InviteV3$1;
|
|
4500
|
-
}
|
|
4501
|
-
interface UserV3$1 {
|
|
4502
|
-
/** User ID. */
|
|
4503
|
-
id?: string;
|
|
4504
|
-
/** User's email address. */
|
|
4505
|
-
email?: string | null;
|
|
4506
|
-
/** User's name, when provided. */
|
|
4507
|
-
name?: Name$1;
|
|
4508
|
-
/** URL to user's profile image, when provided. */
|
|
4509
|
-
profileImage?: string | null;
|
|
4510
|
-
/** Date the user joined the team. */
|
|
4511
|
-
joinedTeamAt?: Date | null;
|
|
4512
|
-
/** Mapping of the user's access to an asset and their assigned role. */
|
|
4513
|
-
assignments?: AssignmentV3$1[];
|
|
4514
|
-
}
|
|
4515
|
-
interface AssignmentV3$1 {
|
|
4516
|
-
/** Role assigned to the user. To retrieve all available roles, call Get Roles Info. */
|
|
4517
|
-
policyId?: string | null;
|
|
4518
|
-
/**
|
|
4519
|
-
* Unique ID for this specific assignment.
|
|
4520
|
-
* @readonly
|
|
4521
|
-
*/
|
|
4522
|
-
assignmentId?: string | null;
|
|
4523
|
-
/** The asset where a user is assigned access in an assignment. When empty, the role covers all assets, with no restrictions to specific sites or folders. */
|
|
4524
|
-
restrictions?: Restriction$1;
|
|
4525
|
-
/** Identity assigned to the asset in an assignment, referred to as subject. Supported subjects include user IDs, account IDs, and app IDs. */
|
|
4526
|
-
subject?: AssignedSubject$1;
|
|
4527
|
-
}
|
|
4528
|
-
interface AssignedSubject$1 {
|
|
4529
|
-
/**
|
|
4530
|
-
* Identity ID.
|
|
4531
|
-
* @readonly
|
|
4532
|
-
*/
|
|
4533
|
-
id?: string;
|
|
4534
|
-
/** Identity type. */
|
|
4535
|
-
subjectType?: SubjectType$1;
|
|
4536
|
-
}
|
|
4537
|
-
interface InviteV3$1 {
|
|
4538
|
-
/**
|
|
4539
|
-
* Invite ID.
|
|
4540
|
-
* @readonly
|
|
4541
|
-
*/
|
|
4542
|
-
id?: string;
|
|
4543
|
-
/** Invitee's email address. */
|
|
4544
|
-
email?: string | null;
|
|
4545
|
-
/** Invite status. */
|
|
4546
|
-
status?: InviteStatus$1;
|
|
4547
|
-
/** URL of direct link to accept the invite. */
|
|
4548
|
-
acceptLink?: string | null;
|
|
4549
|
-
/** Date the invite was created. */
|
|
4550
|
-
dateCreated?: Date | null;
|
|
4551
|
-
/** Date the invite was last updated. */
|
|
4552
|
-
dateUpdated?: Date | null;
|
|
4553
|
-
/** A list of assignments that will be applied to the invitees when they accept the invite. */
|
|
4554
|
-
assignments?: InviteAssignmentV3$1[];
|
|
4555
|
-
/** Invite expiration date. */
|
|
4556
|
-
expirationDate?: Date | null;
|
|
4557
|
-
}
|
|
4558
|
-
interface InviteAssignmentV3$1 {
|
|
4559
|
-
/** Role ID that will be assigned once the invite is accepted. */
|
|
4560
|
-
policyId?: string | null;
|
|
4561
|
-
/** Assets where the user will be assigned access. When empty, the role covers all assets, with no restrictions to specific sites or folders. */
|
|
4562
|
-
restrictions?: Restriction$1;
|
|
4563
|
-
}
|
|
4564
|
-
declare enum RoleLevelRestriction$1 {
|
|
4565
|
-
NoRestriction = "NoRestriction",
|
|
4566
|
-
Site = "Site",
|
|
4567
|
-
Account = "Account"
|
|
4568
|
-
}
|
|
4569
|
-
declare enum EditorType$1 {
|
|
4570
|
-
UNINITIALIZED = "UNINITIALIZED",
|
|
4571
|
-
EDITORX = "EDITORX",
|
|
4572
|
-
BLOCKS = "BLOCKS",
|
|
4573
|
-
STUDIO = "STUDIO"
|
|
4574
|
-
}
|
|
4575
|
-
interface GetRolesInfoRequest$1 {
|
|
4576
|
-
/** Language of predefined roles names and descriptions to return, in ISO 639 format. Default: `en`. */
|
|
4577
|
-
locale?: string | null;
|
|
4578
|
-
/** Roles to return. */
|
|
4579
|
-
filter?: RolesInfoFilter$1;
|
|
4580
|
-
}
|
|
4581
|
-
interface RolesInfoFilter$1 {
|
|
4582
|
-
/** Role level to return. Default: ALL. */
|
|
4583
|
-
roleLevel?: RoleLevel$1;
|
|
4584
|
-
/** Filter for editor-specific roles. Default: ALL. */
|
|
4585
|
-
editorTypes?: EditorType$1[];
|
|
4586
|
-
}
|
|
4587
|
-
interface GetRolesInfoResponse$1 {
|
|
4588
|
-
/** Predefined roles. */
|
|
4589
|
-
predefinedRoles?: RoleInfo$1[];
|
|
4590
|
-
/** Custom roles. */
|
|
4591
|
-
customRoles?: RoleInfo$1[];
|
|
4592
|
-
}
|
|
4593
|
-
interface RoleInfo$1 {
|
|
4594
|
-
/** Role ID. */
|
|
4595
|
-
id?: string;
|
|
4596
|
-
/** Role title, translated according to the request locale. If translation fails, the original title is returned. */
|
|
4597
|
-
title?: string;
|
|
4598
|
-
/** Role description, translated according to the request locale. If translation fails, the original description is returned. */
|
|
4599
|
-
description?: string;
|
|
4600
|
-
/** Whether this role is restricted from accessing a specific resource type. Default: `NoRestriction`. */
|
|
4601
|
-
restrictFromLevel?: RoleLevelRestriction$1;
|
|
4602
|
-
}
|
|
4603
|
-
interface UpdateTeamMemberAssignmentsRequest$1 {
|
|
4604
|
-
/** ID of team member being affected. */
|
|
4605
|
-
userId: string;
|
|
4606
|
-
/** New assignments to apply to the team member in this account. */
|
|
4607
|
-
newAssignments: AssignmentV3$1[];
|
|
4608
|
-
/** Existing assignment IDs to remove. To retrieve all existing assignment IDs for a team member, call Search Team. */
|
|
4609
|
-
assignmentIdsToRemove: string[];
|
|
4610
|
-
}
|
|
4611
|
-
interface UpdateTeamMemberAssignmentsResponse$1 {
|
|
4612
|
-
/** The new assignments, assigned to the given team member. */
|
|
4613
|
-
assignments?: AssignmentV3$1[];
|
|
4614
|
-
}
|
|
4615
|
-
interface FacetValueNonNullableFields$1 {
|
|
4616
|
-
value: string;
|
|
4617
|
-
count: number;
|
|
4618
|
-
}
|
|
4619
|
-
interface FacetNonNullableFields$1 {
|
|
4620
|
-
facetType: FacetType$1;
|
|
4621
|
-
values: FacetValueNonNullableFields$1[];
|
|
4622
|
-
}
|
|
4623
|
-
interface NameNonNullableFields$1 {
|
|
4624
|
-
firstName: string;
|
|
4625
|
-
lastName: string;
|
|
4626
|
-
}
|
|
4627
|
-
interface ApiResourceNonNullableFields$1 {
|
|
4628
|
-
resourceType: ResourceType$1;
|
|
4629
|
-
id: string;
|
|
4630
|
-
}
|
|
4631
|
-
interface ApiConditionNonNullableFields$1 {
|
|
4632
|
-
conditionType: ConditionAttributeType$1;
|
|
4633
|
-
id: string;
|
|
4634
|
-
}
|
|
4635
|
-
interface ConditionsNonNullableFields$1 {
|
|
4636
|
-
conditions: ApiConditionNonNullableFields$1[];
|
|
4637
|
-
}
|
|
4638
|
-
interface CompanionResourceNonNullableFields$1 {
|
|
4639
|
-
id: string;
|
|
4640
|
-
resourceType: string;
|
|
4641
|
-
}
|
|
4642
|
-
interface SiteRestrictionNonNullableFields$1 {
|
|
4643
|
-
id: string;
|
|
4644
|
-
resource?: CompanionResourceNonNullableFields$1;
|
|
4645
|
-
}
|
|
4646
|
-
interface RestrictionNonNullableFields$1 {
|
|
4647
|
-
resource?: ApiResourceNonNullableFields$1;
|
|
4648
|
-
conditions?: ConditionsNonNullableFields$1;
|
|
4649
|
-
site?: SiteRestrictionNonNullableFields$1;
|
|
4650
|
-
}
|
|
4651
|
-
interface AssignedSubjectNonNullableFields$1 {
|
|
4652
|
-
id: string;
|
|
4653
|
-
subjectType: SubjectType$1;
|
|
4654
|
-
}
|
|
4655
|
-
interface AssignmentV3NonNullableFields$1 {
|
|
4656
|
-
restrictions?: RestrictionNonNullableFields$1;
|
|
4657
|
-
subject?: AssignedSubjectNonNullableFields$1;
|
|
4658
|
-
}
|
|
4659
|
-
interface UserV3NonNullableFields$1 {
|
|
4660
|
-
id: string;
|
|
4661
|
-
name?: NameNonNullableFields$1;
|
|
4662
|
-
assignments: AssignmentV3NonNullableFields$1[];
|
|
4663
|
-
}
|
|
4664
|
-
interface InviteAssignmentV3NonNullableFields$1 {
|
|
4665
|
-
restrictions?: RestrictionNonNullableFields$1;
|
|
4666
|
-
}
|
|
4667
|
-
interface InviteV3NonNullableFields$1 {
|
|
4668
|
-
id: string;
|
|
4669
|
-
status: InviteStatus$1;
|
|
4670
|
-
assignments: InviteAssignmentV3NonNullableFields$1[];
|
|
4671
|
-
}
|
|
4672
|
-
interface TeamMemberV3NonNullableFields$1 {
|
|
4673
|
-
user?: UserV3NonNullableFields$1;
|
|
4674
|
-
invite?: InviteV3NonNullableFields$1;
|
|
4675
|
-
}
|
|
4676
|
-
interface SearchTeamResponseNonNullableFields$1 {
|
|
4677
|
-
facets: FacetNonNullableFields$1[];
|
|
4678
|
-
teamMembers: TeamMemberV3NonNullableFields$1[];
|
|
4679
|
-
}
|
|
4680
|
-
interface RoleInfoNonNullableFields$1 {
|
|
4681
|
-
id: string;
|
|
4682
|
-
title: string;
|
|
4683
|
-
description: string;
|
|
4684
|
-
restrictFromLevel: RoleLevelRestriction$1;
|
|
4685
|
-
}
|
|
4686
|
-
interface GetRolesInfoResponseNonNullableFields$1 {
|
|
4687
|
-
predefinedRoles: RoleInfoNonNullableFields$1[];
|
|
4688
|
-
customRoles: RoleInfoNonNullableFields$1[];
|
|
4689
|
-
}
|
|
4690
|
-
interface UpdateTeamMemberAssignmentsResponseNonNullableFields$1 {
|
|
4691
|
-
assignments: AssignmentV3NonNullableFields$1[];
|
|
4692
|
-
}
|
|
4693
|
-
|
|
4694
|
-
interface Name {
|
|
4695
|
-
/** User's first name. */
|
|
4696
|
-
firstName?: string;
|
|
4697
|
-
/** User's last name. */
|
|
4698
|
-
lastName?: string;
|
|
4699
|
-
}
|
|
4700
|
-
interface Restriction extends RestrictionRestrictionsOneOf {
|
|
4701
|
-
/**
|
|
4702
|
-
* Deprecated.
|
|
4703
|
-
* @deprecated
|
|
4704
|
-
*/
|
|
4705
|
-
resource?: ApiResource;
|
|
4706
|
-
/** List of conditions restricting the user's access. Currently only folder conditions are supported. */
|
|
4707
|
-
conditions?: Conditions;
|
|
4708
|
-
/** Site where the assignment restrictions apply. */
|
|
4709
|
-
site?: SiteRestriction;
|
|
4710
|
-
}
|
|
4711
|
-
/** @oneof */
|
|
4712
|
-
interface RestrictionRestrictionsOneOf {
|
|
4713
|
-
/**
|
|
4714
|
-
* Deprecated.
|
|
4715
|
-
* @deprecated
|
|
4716
|
-
*/
|
|
4717
|
-
resource?: ApiResource;
|
|
4718
|
-
/** List of conditions restricting the user's access. Currently only folder conditions are supported. */
|
|
4719
|
-
conditions?: Conditions;
|
|
4720
|
-
/** Site where the assignment restrictions apply. */
|
|
4721
|
-
site?: SiteRestriction;
|
|
4722
|
-
}
|
|
4723
|
-
interface ApiResource {
|
|
4724
|
-
/** Resource type. */
|
|
4725
|
-
resourceType?: ResourceType;
|
|
4726
|
-
/** Resource ID. */
|
|
4727
|
-
_id?: string;
|
|
4728
|
-
value?: string | null;
|
|
4729
|
-
}
|
|
4730
|
-
declare enum ResourceType {
|
|
4731
|
-
UNKNOWN_RESOURCE_TYPE = "UNKNOWN_RESOURCE_TYPE",
|
|
4732
|
-
SITE = "SITE"
|
|
4733
|
-
}
|
|
4734
|
-
interface Conditions {
|
|
4735
|
-
/** List of conditions. */
|
|
4736
|
-
conditions?: ApiCondition[];
|
|
4737
|
-
}
|
|
4738
|
-
interface ApiCondition {
|
|
4739
|
-
/** Condition type. */
|
|
4740
|
-
conditionType?: ConditionAttributeType;
|
|
4741
|
-
/** Condition ID. */
|
|
4742
|
-
_id?: string;
|
|
4743
|
-
/** Expected value of the condition. When `conditionType` = "FOLDER", this is the folder path. */
|
|
4744
|
-
value?: string | null;
|
|
4745
|
-
}
|
|
4746
|
-
declare enum ConditionAttributeType {
|
|
4747
|
-
UNKNOWN_CONDITION_TYPE = "UNKNOWN_CONDITION_TYPE",
|
|
4748
|
-
FOLDER = "FOLDER"
|
|
4749
|
-
}
|
|
4750
|
-
interface SiteRestriction {
|
|
4751
|
-
/** Site ID. */
|
|
4752
|
-
_id?: string;
|
|
4753
|
-
/** Site name. */
|
|
4754
|
-
value?: string | null;
|
|
4755
|
-
}
|
|
4756
|
-
declare enum SubjectType {
|
|
4757
|
-
UNKNOWN = "UNKNOWN",
|
|
4758
|
-
ACCOUNT = "ACCOUNT",
|
|
4759
|
-
USER = "USER",
|
|
4760
|
-
USER_GROUP = "USER_GROUP",
|
|
4761
|
-
MEMBER_GROUP = "MEMBER_GROUP",
|
|
4762
|
-
VISITOR_GROUP = "VISITOR_GROUP",
|
|
4763
|
-
EXTERNAL_APP = "EXTERNAL_APP",
|
|
4764
|
-
ACCOUNT_GROUP = "ACCOUNT_GROUP",
|
|
4765
|
-
WIX_APP = "WIX_APP"
|
|
4766
|
-
}
|
|
4767
|
-
interface Paging {
|
|
4768
|
-
/** Number of items to load. */
|
|
4769
|
-
limit?: number | null;
|
|
4770
|
-
/** Number of items to skip in the current sort order. */
|
|
4771
|
-
offset?: number | null;
|
|
4772
|
-
}
|
|
4773
|
-
/** Invite status stating whether the invite was accepted, waiting to be accepted, deleted etc.. */
|
|
4774
|
-
declare enum InviteStatus {
|
|
4775
|
-
Pending = "Pending",
|
|
4776
|
-
Used = "Used",
|
|
4777
|
-
Deleted = "Deleted",
|
|
4778
|
-
Declined = "Declined",
|
|
4779
|
-
Expired = "Expired"
|
|
4780
|
-
}
|
|
4781
|
-
interface RemoveMemberRequest {
|
|
4782
|
-
/** User ID of the team member to remove. */
|
|
4783
|
-
userId: string;
|
|
4784
|
-
}
|
|
4785
|
-
interface RemoveMemberResponse {
|
|
4786
|
-
}
|
|
4787
|
-
declare enum RoleLevel {
|
|
4788
|
-
ALL = "ALL",
|
|
4789
|
-
SITE_LEVEL = "SITE_LEVEL",
|
|
4790
|
-
ACCOUNT_LEVEL = "ACCOUNT_LEVEL"
|
|
4791
|
-
}
|
|
4792
|
-
interface SearchTeamRequest {
|
|
4793
|
-
/** Free text to search for within team member name and email address fields. */
|
|
4794
|
-
query?: string | null;
|
|
4795
|
-
/** Sort data. */
|
|
4796
|
-
orderBy?: Ordering[];
|
|
4797
|
-
/**
|
|
4798
|
-
* Filter object. Supported values: `inviteType` and `roleId`. For example, `{'inviteType': {'$eq': 'Expired'}}`.
|
|
4799
|
-
* See [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language) for more information.
|
|
4800
|
-
*/
|
|
4801
|
-
filter?: Record<string, any> | null;
|
|
4802
|
-
/**
|
|
4803
|
-
* A list of facets to return in the response. Facets count the items within logical groupings.
|
|
4804
|
-
* See [Filters and Facets: An Explainer](https://medium.com/@westontt/filters-and-facets-an-explainer-3b73a9538eca) for more information.
|
|
4805
|
-
*/
|
|
4806
|
-
facets?: FacetType[];
|
|
4807
|
-
/** Pagination. */
|
|
4808
|
-
paging?: Paging;
|
|
4809
|
-
}
|
|
4810
|
-
interface Ordering {
|
|
4811
|
-
/** Field to sort by. */
|
|
4812
|
-
fieldName?: OrderField;
|
|
4813
|
-
/** Sort order. */
|
|
4814
|
-
direction?: Direction;
|
|
4815
|
-
}
|
|
4816
|
-
declare enum OrderField {
|
|
4817
|
-
/** For internal use. */
|
|
4818
|
-
Undefined = "Undefined",
|
|
4819
|
-
/** Team member name. */
|
|
4820
|
-
Name = "Name",
|
|
4821
|
-
/** Date team member joined the account. */
|
|
4822
|
-
JoinedAt = "JoinedAt"
|
|
4823
|
-
}
|
|
4824
|
-
declare enum Direction {
|
|
4825
|
-
/** For internal use. */
|
|
4826
|
-
UninitializedDirection = "UninitializedDirection",
|
|
4827
|
-
/** Ascending. */
|
|
4828
|
-
ASC = "ASC",
|
|
4829
|
-
/** Descending. */
|
|
4830
|
-
DESC = "DESC"
|
|
4831
|
-
}
|
|
4832
|
-
declare enum FacetType {
|
|
4833
|
-
Undefined = "Undefined",
|
|
4834
|
-
/** How many team members with each role */
|
|
4835
|
-
Roles = "Roles",
|
|
4836
|
-
/** How many team members by invite status */
|
|
4837
|
-
InviteStatus = "InviteStatus",
|
|
4838
|
-
/** How many team members in total in the account */
|
|
4839
|
-
Users = "Users"
|
|
4840
|
-
}
|
|
4841
|
-
interface SearchTeamResponse {
|
|
4842
|
-
/** List of facets, as requested. */
|
|
4843
|
-
facets?: Facet[];
|
|
4844
|
-
/** Existing team members and invites sent to join the account. */
|
|
4845
|
-
teamMembers?: TeamMemberV3[];
|
|
4846
|
-
}
|
|
4847
|
-
interface Facet {
|
|
4848
|
-
/** Facet type. */
|
|
4849
|
-
facetType?: FacetType;
|
|
4850
|
-
/** Values and their counters. Values with count = 0 are not returned. */
|
|
4851
|
-
values?: FacetValue[];
|
|
4852
|
-
}
|
|
4853
|
-
interface FacetValue {
|
|
4854
|
-
/** Supported values: `Roles`, `InviteStatus`, `Users`. */
|
|
4855
|
-
value?: string;
|
|
4856
|
-
/** Number of existing items for the value. */
|
|
4857
|
-
count?: number;
|
|
4858
|
-
}
|
|
4859
|
-
interface TeamMemberV3 extends TeamMemberV3MembersOneOf {
|
|
4860
|
-
/** Existing team member data. */
|
|
4861
|
-
user?: UserV3;
|
|
4862
|
-
/** Invited team member data. */
|
|
4863
|
-
invite?: InviteV3;
|
|
4864
|
-
}
|
|
4865
|
-
/** @oneof */
|
|
4866
|
-
interface TeamMemberV3MembersOneOf {
|
|
4867
|
-
/** Existing team member data. */
|
|
4868
|
-
user?: UserV3;
|
|
4869
|
-
/** Invited team member data. */
|
|
4870
|
-
invite?: InviteV3;
|
|
4871
|
-
}
|
|
4872
|
-
interface UserV3 {
|
|
4873
|
-
/** User ID. */
|
|
4874
|
-
_id?: string;
|
|
4875
|
-
/** User's email address. */
|
|
4876
|
-
email?: string | null;
|
|
4877
|
-
/** User's name, when provided. */
|
|
4878
|
-
name?: Name;
|
|
4879
|
-
/** URL to user's profile image, when provided. */
|
|
4880
|
-
profileImage?: string | null;
|
|
4881
|
-
/** Date the user joined the team. */
|
|
4882
|
-
joinedTeamAt?: Date | null;
|
|
4883
|
-
/** Mapping of the user's access to an asset and their assigned role. */
|
|
4884
|
-
assignments?: AssignmentV3[];
|
|
4885
|
-
}
|
|
4886
|
-
interface AssignmentV3 {
|
|
4887
|
-
/** Role assigned to the user. To retrieve all available roles, call Get Roles Info. */
|
|
4888
|
-
policyId?: string | null;
|
|
4889
|
-
/**
|
|
4890
|
-
* Unique ID for this specific assignment.
|
|
4891
|
-
* @readonly
|
|
4892
|
-
*/
|
|
4893
|
-
assignmentId?: string | null;
|
|
4894
|
-
/** The asset where a user is assigned access in an assignment. When empty, the role covers all assets, with no restrictions to specific sites or folders. */
|
|
4895
|
-
restrictions?: Restriction;
|
|
4896
|
-
/** Identity assigned to the asset in an assignment, referred to as subject. Supported subjects include user IDs, account IDs, and app IDs. */
|
|
4897
|
-
subject?: AssignedSubject;
|
|
4898
|
-
}
|
|
4899
|
-
interface AssignedSubject {
|
|
4900
|
-
/**
|
|
4901
|
-
* Identity ID.
|
|
4902
|
-
* @readonly
|
|
4903
|
-
*/
|
|
4904
|
-
_id?: string;
|
|
4905
|
-
/** Identity type. */
|
|
4906
|
-
subjectType?: SubjectType;
|
|
4907
|
-
}
|
|
4908
|
-
interface InviteV3 {
|
|
4909
|
-
/**
|
|
4910
|
-
* Invite ID.
|
|
4911
|
-
* @readonly
|
|
4912
|
-
*/
|
|
4913
|
-
_id?: string;
|
|
4914
|
-
/** Invitee's email address. */
|
|
4915
|
-
email?: string | null;
|
|
4916
|
-
/** Invite status. */
|
|
4917
|
-
status?: InviteStatus;
|
|
4918
|
-
/** URL of direct link to accept the invite. */
|
|
4919
|
-
acceptLink?: string | null;
|
|
4920
|
-
/** Date the invite was created. */
|
|
4921
|
-
dateCreated?: Date | null;
|
|
4922
|
-
/** Date the invite was last updated. */
|
|
4923
|
-
dateUpdated?: Date | null;
|
|
4924
|
-
/** A list of assignments that will be applied to the invitees when they accept the invite. */
|
|
4925
|
-
assignments?: InviteAssignmentV3[];
|
|
4926
|
-
/** Invite expiration date. */
|
|
4927
|
-
expirationDate?: Date | null;
|
|
4928
|
-
}
|
|
4929
|
-
interface InviteAssignmentV3 {
|
|
4930
|
-
/** Role ID that will be assigned once the invite is accepted. */
|
|
4931
|
-
policyId?: string | null;
|
|
4932
|
-
/** Assets where the user will be assigned access. When empty, the role covers all assets, with no restrictions to specific sites or folders. */
|
|
4933
|
-
restrictions?: Restriction;
|
|
4934
|
-
}
|
|
4935
|
-
declare enum RoleLevelRestriction {
|
|
4936
|
-
NoRestriction = "NoRestriction",
|
|
4937
|
-
Site = "Site",
|
|
4938
|
-
Account = "Account"
|
|
4939
|
-
}
|
|
4940
|
-
declare enum EditorType {
|
|
4941
|
-
UNINITIALIZED = "UNINITIALIZED",
|
|
4942
|
-
EDITORX = "EDITORX",
|
|
4943
|
-
BLOCKS = "BLOCKS",
|
|
4944
|
-
STUDIO = "STUDIO"
|
|
4945
|
-
}
|
|
4946
|
-
interface GetRolesInfoRequest {
|
|
4947
|
-
/** Language of predefined roles names and descriptions to return, in ISO 639 format. Default: `en`. */
|
|
4948
|
-
locale?: string | null;
|
|
4949
|
-
/** Roles to return. */
|
|
4950
|
-
filter?: RolesInfoFilter;
|
|
4951
|
-
}
|
|
4952
|
-
interface RolesInfoFilter {
|
|
4953
|
-
/** Role level to return. Default: ALL. */
|
|
4954
|
-
roleLevel?: RoleLevel;
|
|
4955
|
-
/** Filter for editor-specific roles. Default: ALL. */
|
|
4956
|
-
editorTypes?: EditorType[];
|
|
4957
|
-
}
|
|
4958
|
-
interface GetRolesInfoResponse {
|
|
4959
|
-
/** Predefined roles. */
|
|
4960
|
-
predefinedRoles?: RoleInfo[];
|
|
4961
|
-
/** Custom roles. */
|
|
4962
|
-
customRoles?: RoleInfo[];
|
|
4963
|
-
}
|
|
4964
|
-
interface RoleInfo {
|
|
4965
|
-
/** Role ID. */
|
|
4966
|
-
_id?: string;
|
|
4967
|
-
/** Role title, translated according to the request locale. If translation fails, the original title is returned. */
|
|
4968
|
-
title?: string;
|
|
4969
|
-
/** Role description, translated according to the request locale. If translation fails, the original description is returned. */
|
|
4970
|
-
description?: string;
|
|
4971
|
-
/** Whether this role is restricted from accessing a specific resource type. Default: `NoRestriction`. */
|
|
4972
|
-
restrictFromLevel?: RoleLevelRestriction;
|
|
4973
|
-
}
|
|
4974
|
-
interface UpdateTeamMemberAssignmentsRequest {
|
|
4975
|
-
/** ID of team member being affected. */
|
|
4976
|
-
userId: string;
|
|
4977
|
-
/** New assignments to apply to the team member in this account. */
|
|
4978
|
-
newAssignments: AssignmentV3[];
|
|
4979
|
-
/** Existing assignment IDs to remove. To retrieve all existing assignment IDs for a team member, call Search Team. */
|
|
4980
|
-
assignmentIdsToRemove: string[];
|
|
4981
|
-
}
|
|
4982
|
-
interface UpdateTeamMemberAssignmentsResponse {
|
|
4983
|
-
/** The new assignments, assigned to the given team member. */
|
|
4984
|
-
assignments?: AssignmentV3[];
|
|
4985
|
-
}
|
|
4986
|
-
interface FacetValueNonNullableFields {
|
|
4987
|
-
value: string;
|
|
4988
|
-
count: number;
|
|
4989
|
-
}
|
|
4990
|
-
interface FacetNonNullableFields {
|
|
4991
|
-
facetType: FacetType;
|
|
4992
|
-
values: FacetValueNonNullableFields[];
|
|
4993
|
-
}
|
|
4994
|
-
interface NameNonNullableFields {
|
|
4995
|
-
firstName: string;
|
|
4996
|
-
lastName: string;
|
|
4997
|
-
}
|
|
4998
|
-
interface ApiResourceNonNullableFields {
|
|
4999
|
-
resourceType: ResourceType;
|
|
5000
|
-
_id: string;
|
|
5001
|
-
}
|
|
5002
|
-
interface ApiConditionNonNullableFields {
|
|
5003
|
-
conditionType: ConditionAttributeType;
|
|
5004
|
-
_id: string;
|
|
5005
|
-
}
|
|
5006
|
-
interface ConditionsNonNullableFields {
|
|
5007
|
-
conditions: ApiConditionNonNullableFields[];
|
|
5008
|
-
}
|
|
5009
|
-
interface CompanionResourceNonNullableFields {
|
|
5010
|
-
_id: string;
|
|
5011
|
-
resourceType: string;
|
|
5012
|
-
}
|
|
5013
|
-
interface SiteRestrictionNonNullableFields {
|
|
5014
|
-
_id: string;
|
|
5015
|
-
resource?: CompanionResourceNonNullableFields;
|
|
5016
|
-
}
|
|
5017
|
-
interface RestrictionNonNullableFields {
|
|
5018
|
-
resource?: ApiResourceNonNullableFields;
|
|
5019
|
-
conditions?: ConditionsNonNullableFields;
|
|
5020
|
-
site?: SiteRestrictionNonNullableFields;
|
|
5021
|
-
}
|
|
5022
|
-
interface AssignedSubjectNonNullableFields {
|
|
5023
|
-
_id: string;
|
|
5024
|
-
subjectType: SubjectType;
|
|
5025
|
-
}
|
|
5026
|
-
interface AssignmentV3NonNullableFields {
|
|
5027
|
-
restrictions?: RestrictionNonNullableFields;
|
|
5028
|
-
subject?: AssignedSubjectNonNullableFields;
|
|
5029
|
-
}
|
|
5030
|
-
interface UserV3NonNullableFields {
|
|
5031
|
-
_id: string;
|
|
5032
|
-
name?: NameNonNullableFields;
|
|
5033
|
-
assignments: AssignmentV3NonNullableFields[];
|
|
5034
|
-
}
|
|
5035
|
-
interface InviteAssignmentV3NonNullableFields {
|
|
5036
|
-
restrictions?: RestrictionNonNullableFields;
|
|
5037
|
-
}
|
|
5038
|
-
interface InviteV3NonNullableFields {
|
|
5039
|
-
_id: string;
|
|
5040
|
-
status: InviteStatus;
|
|
5041
|
-
assignments: InviteAssignmentV3NonNullableFields[];
|
|
5042
|
-
}
|
|
5043
|
-
interface TeamMemberV3NonNullableFields {
|
|
5044
|
-
user?: UserV3NonNullableFields;
|
|
5045
|
-
invite?: InviteV3NonNullableFields;
|
|
5046
|
-
}
|
|
5047
|
-
interface SearchTeamResponseNonNullableFields {
|
|
5048
|
-
facets: FacetNonNullableFields[];
|
|
5049
|
-
teamMembers: TeamMemberV3NonNullableFields[];
|
|
5050
|
-
}
|
|
5051
|
-
interface RoleInfoNonNullableFields {
|
|
5052
|
-
_id: string;
|
|
5053
|
-
title: string;
|
|
5054
|
-
description: string;
|
|
5055
|
-
restrictFromLevel: RoleLevelRestriction;
|
|
5056
|
-
}
|
|
5057
|
-
interface GetRolesInfoResponseNonNullableFields {
|
|
5058
|
-
predefinedRoles: RoleInfoNonNullableFields[];
|
|
5059
|
-
customRoles: RoleInfoNonNullableFields[];
|
|
5060
|
-
}
|
|
5061
|
-
interface UpdateTeamMemberAssignmentsResponseNonNullableFields {
|
|
5062
|
-
assignments: AssignmentV3NonNullableFields[];
|
|
5063
|
-
}
|
|
5064
|
-
|
|
5065
|
-
type __PublicMethodMetaInfo$1<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
5066
|
-
getUrl: (context: any) => string;
|
|
5067
|
-
httpMethod: K;
|
|
5068
|
-
path: string;
|
|
5069
|
-
pathParams: M;
|
|
5070
|
-
__requestType: T;
|
|
5071
|
-
__originalRequestType: S;
|
|
5072
|
-
__responseType: Q;
|
|
5073
|
-
__originalResponseType: R;
|
|
5074
|
-
};
|
|
5075
|
-
declare function removeMember(): __PublicMethodMetaInfo$1<'POST', {}, RemoveMemberRequest, RemoveMemberRequest$1, RemoveMemberResponse, RemoveMemberResponse$1>;
|
|
5076
|
-
declare function searchTeam(): __PublicMethodMetaInfo$1<'POST', {}, SearchTeamRequest, SearchTeamRequest$1, SearchTeamResponse & SearchTeamResponseNonNullableFields, SearchTeamResponse$1 & SearchTeamResponseNonNullableFields$1>;
|
|
5077
|
-
declare function getRolesInfo(): __PublicMethodMetaInfo$1<'GET', {}, GetRolesInfoRequest, GetRolesInfoRequest$1, GetRolesInfoResponse & GetRolesInfoResponseNonNullableFields, GetRolesInfoResponse$1 & GetRolesInfoResponseNonNullableFields$1>;
|
|
5078
|
-
declare function updateTeamMemberAssignments(): __PublicMethodMetaInfo$1<'PATCH', {}, UpdateTeamMemberAssignmentsRequest, UpdateTeamMemberAssignmentsRequest$1, UpdateTeamMemberAssignmentsResponse & UpdateTeamMemberAssignmentsResponseNonNullableFields, UpdateTeamMemberAssignmentsResponse$1 & UpdateTeamMemberAssignmentsResponseNonNullableFields$1>;
|
|
5079
|
-
|
|
5080
|
-
declare const meta$1_getRolesInfo: typeof getRolesInfo;
|
|
5081
|
-
declare const meta$1_removeMember: typeof removeMember;
|
|
5082
|
-
declare const meta$1_searchTeam: typeof searchTeam;
|
|
5083
|
-
declare const meta$1_updateTeamMemberAssignments: typeof updateTeamMemberAssignments;
|
|
5084
|
-
declare namespace meta$1 {
|
|
5085
|
-
export { type __PublicMethodMetaInfo$1 as __PublicMethodMetaInfo, meta$1_getRolesInfo as getRolesInfo, meta$1_removeMember as removeMember, meta$1_searchTeam as searchTeam, meta$1_updateTeamMemberAssignments as updateTeamMemberAssignments };
|
|
5086
|
-
}
|
|
5087
|
-
|
|
5088
|
-
interface ChangeContributorRoleRequest$1 {
|
|
5089
|
-
/** Contributor's account ID. */
|
|
5090
|
-
accountId: string;
|
|
5091
|
-
/** New roles to assign to the contributor on the site. */
|
|
5092
|
-
newRoles: SiteRoleAssignment$1[];
|
|
5093
|
-
}
|
|
5094
|
-
interface SiteRoleAssignment$1 {
|
|
5095
|
-
/** Role ID. Sometimes referred to as policy ID. See [Roles and Permissions](https://support.wix.com/en/article/roles-permissions-overview) for a list of available roles. */
|
|
5096
|
-
roleId?: string;
|
|
5097
|
-
/**
|
|
5098
|
-
* Assignment ID mapping the role to the contributor on the site.
|
|
5099
|
-
* @readonly
|
|
5100
|
-
*/
|
|
5101
|
-
assignmentId?: string;
|
|
5102
|
-
}
|
|
5103
|
-
interface ChangeContributorRoleResponse$1 {
|
|
5104
|
-
/** New roles assigned to the contributor on the site. */
|
|
5105
|
-
newAssignedRoles?: SiteRoleAssignment$1[];
|
|
5106
|
-
}
|
|
5107
|
-
interface QuerySiteContributorsRequest$1 {
|
|
5108
|
-
filter?: QuerySiteContributorsFilter$1;
|
|
5109
|
-
}
|
|
5110
|
-
interface QuerySiteContributorsFilter$1 {
|
|
5111
|
-
/** Role IDs (referred to here as policy IDs) to return. See [Roles and Permissions](https://support.wix.com/en/article/roles-permissions-overview) for available roles. */
|
|
5112
|
-
policyIds?: string[];
|
|
5113
|
-
}
|
|
5114
|
-
interface QuerySiteContributorsResponse$1 {
|
|
5115
|
-
/** List of site contributors. */
|
|
5116
|
-
contributors?: ContributorV2$1[];
|
|
5117
|
-
}
|
|
5118
|
-
interface ContributorV2$1 {
|
|
5119
|
-
/** Contributor's account ID. */
|
|
5120
|
-
accountId?: string | null;
|
|
5121
|
-
/** User ID of the owner of the account that the contributor has joined. */
|
|
5122
|
-
accountOwnerId?: string | null;
|
|
5123
|
-
}
|
|
5124
|
-
interface SiteRoleAssignmentNonNullableFields$1 {
|
|
5125
|
-
roleId: string;
|
|
5126
|
-
assignmentId: string;
|
|
5127
|
-
}
|
|
5128
|
-
interface ChangeContributorRoleResponseNonNullableFields$1 {
|
|
5129
|
-
newAssignedRoles: SiteRoleAssignmentNonNullableFields$1[];
|
|
5130
|
-
}
|
|
5131
|
-
|
|
5132
|
-
interface ChangeContributorRoleRequest {
|
|
5133
|
-
/** Contributor's account ID. */
|
|
5134
|
-
accountId: string;
|
|
5135
|
-
/** New roles to assign to the contributor on the site. */
|
|
5136
|
-
newRoles: SiteRoleAssignment[];
|
|
5137
|
-
}
|
|
5138
|
-
interface SiteRoleAssignment {
|
|
5139
|
-
/** Role ID. Sometimes referred to as policy ID. See [Roles and Permissions](https://support.wix.com/en/article/roles-permissions-overview) for a list of available roles. */
|
|
5140
|
-
roleId?: string;
|
|
5141
|
-
/**
|
|
5142
|
-
* Assignment ID mapping the role to the contributor on the site.
|
|
5143
|
-
* @readonly
|
|
5144
|
-
*/
|
|
5145
|
-
assignmentId?: string;
|
|
5146
|
-
}
|
|
5147
|
-
interface ChangeContributorRoleResponse {
|
|
5148
|
-
/** New roles assigned to the contributor on the site. */
|
|
5149
|
-
newAssignedRoles?: SiteRoleAssignment[];
|
|
5150
|
-
}
|
|
5151
|
-
interface QuerySiteContributorsRequest {
|
|
5152
|
-
filter?: QuerySiteContributorsFilter;
|
|
5153
|
-
}
|
|
5154
|
-
interface QuerySiteContributorsFilter {
|
|
5155
|
-
/** Role IDs (referred to here as policy IDs) to return. See [Roles and Permissions](https://support.wix.com/en/article/roles-permissions-overview) for available roles. */
|
|
5156
|
-
policyIds?: string[];
|
|
5157
|
-
}
|
|
5158
|
-
interface QuerySiteContributorsResponse {
|
|
5159
|
-
/** List of site contributors. */
|
|
5160
|
-
contributors?: ContributorV2[];
|
|
5161
|
-
}
|
|
5162
|
-
interface ContributorV2 {
|
|
5163
|
-
/** Contributor's account ID. */
|
|
5164
|
-
accountId?: string | null;
|
|
5165
|
-
/** User ID of the owner of the account that the contributor has joined. */
|
|
5166
|
-
accountOwnerId?: string | null;
|
|
5167
|
-
}
|
|
5168
|
-
interface SiteRoleAssignmentNonNullableFields {
|
|
5169
|
-
roleId: string;
|
|
5170
|
-
assignmentId: string;
|
|
5171
|
-
}
|
|
5172
|
-
interface ChangeContributorRoleResponseNonNullableFields {
|
|
5173
|
-
newAssignedRoles: SiteRoleAssignmentNonNullableFields[];
|
|
5174
|
-
}
|
|
5175
|
-
|
|
5176
3526
|
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
5177
3527
|
getUrl: (context: any) => string;
|
|
5178
3528
|
httpMethod: K;
|
|
@@ -5183,14 +3533,14 @@ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q
|
|
|
5183
3533
|
__responseType: Q;
|
|
5184
3534
|
__originalResponseType: R;
|
|
5185
3535
|
};
|
|
5186
|
-
declare function
|
|
5187
|
-
declare function
|
|
3536
|
+
declare function token(): __PublicMethodMetaInfo<'POST', {}, RawHttpRequest, RawHttpRequest$1, RawHttpResponse & RawHttpResponseNonNullableFields, RawHttpResponse$1 & RawHttpResponseNonNullableFields$1>;
|
|
3537
|
+
declare function tokenInfo(): __PublicMethodMetaInfo<'POST', {}, RawHttpRequest, RawHttpRequest$1, TokenInfoResponse & TokenInfoResponseNonNullableFields, TokenInfoResponse$1 & TokenInfoResponseNonNullableFields$1>;
|
|
5188
3538
|
|
|
5189
3539
|
type meta___PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = __PublicMethodMetaInfo<K, M, T, S, Q, R>;
|
|
5190
|
-
declare const
|
|
5191
|
-
declare const
|
|
3540
|
+
declare const meta_token: typeof token;
|
|
3541
|
+
declare const meta_tokenInfo: typeof tokenInfo;
|
|
5192
3542
|
declare namespace meta {
|
|
5193
|
-
export { type meta___PublicMethodMetaInfo as __PublicMethodMetaInfo,
|
|
3543
|
+
export { type meta___PublicMethodMetaInfo as __PublicMethodMetaInfo, meta_token as token, meta_tokenInfo as tokenInfo };
|
|
5194
3544
|
}
|
|
5195
3545
|
|
|
5196
|
-
export { meta$
|
|
3546
|
+
export { meta$1 as account, meta$4 as authentication, meta as oauth, meta$3 as recovery, meta$2 as verification };
|