@wix/identity 1.0.92 → 1.0.94
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 +1 -0
- package/build/cjs/context.js +2 -1
- package/build/cjs/context.js.map +1 -1
- package/build/cjs/index.d.ts +2 -1
- package/build/cjs/index.js +3 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/meta.d.ts +1 -0
- package/build/cjs/meta.js +2 -1
- package/build/cjs/meta.js.map +1 -1
- package/build/es/context.d.ts +1 -0
- package/build/es/context.js +1 -0
- package/build/es/context.js.map +1 -1
- package/build/es/index.d.ts +2 -1
- package/build/es/index.js +2 -1
- package/build/es/index.js.map +1 -1
- package/build/es/meta.d.ts +1 -0
- package/build/es/meta.js +1 -0
- package/build/es/meta.js.map +1 -1
- package/package.json +5 -4
- package/type-bundles/context.bundle.d.ts +1702 -505
- package/type-bundles/index.bundle.d.ts +1702 -505
- package/type-bundles/meta.bundle.d.ts +857 -92
|
@@ -1190,7 +1190,7 @@ interface SignOnResponseNonNullableFields {
|
|
|
1190
1190
|
identity?: IdentityNonNullableFields$4;
|
|
1191
1191
|
}
|
|
1192
1192
|
|
|
1193
|
-
type __PublicMethodMetaInfo$
|
|
1193
|
+
type __PublicMethodMetaInfo$8<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$7<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$8<'POST', {}, RegisterV2Request, RegisterV2Request$1, StateMachineResponse$4 & StateMachineResponseNonNullableFields$4, StateMachineResponse$5 & StateMachineResponseNonNullableFields$5>;
|
|
1204
|
+
declare function loginV2(): __PublicMethodMetaInfo$8<'POST', {}, LoginV2Request, LoginV2Request$1, StateMachineResponse$4 & StateMachineResponseNonNullableFields$4, StateMachineResponse$5 & StateMachineResponseNonNullableFields$5>;
|
|
1205
|
+
declare function changePassword(): __PublicMethodMetaInfo$8<'POST', {}, ChangePasswordRequest, ChangePasswordRequest$1, ChangePasswordResponse, ChangePasswordResponse$1>;
|
|
1206
|
+
declare function loginWithIdpConnection(): __PublicMethodMetaInfo$8<'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$8<'GET', {}, LoginCallbackRequest, LoginCallbackRequest$1, RawHttpResponse$2 & RawHttpResponseNonNullableFields$2, RawHttpResponse$3 & RawHttpResponseNonNullableFields$3>;
|
|
1211
|
+
declare function loginWithIdpConnectionTokenParams(): __PublicMethodMetaInfo$8<'POST', {}, LoginWithIdpConnectionTokenParamsRequest, LoginWithIdpConnectionTokenParamsRequest$1, StateMachineResponse$4 & StateMachineResponseNonNullableFields$4, StateMachineResponse$5 & StateMachineResponseNonNullableFields$5>;
|
|
1212
|
+
declare function signOn(): __PublicMethodMetaInfo$8<'POST', {}, SignOnRequest, SignOnRequest$1, SignOnResponse & SignOnResponseNonNullableFields, SignOnResponse$1 & SignOnResponseNonNullableFields$1>;
|
|
1213
|
+
declare function logout(): __PublicMethodMetaInfo$8<'GET', {}, LogoutRequest, LogoutRequest$1, RawHttpResponse$2 & RawHttpResponseNonNullableFields$2, RawHttpResponse$3 & RawHttpResponseNonNullableFields$3>;
|
|
1214
|
+
declare function verify(): __PublicMethodMetaInfo$8<'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$8_changePassword: typeof changePassword;
|
|
1219
|
+
declare const meta$8_loginCallback: typeof loginCallback;
|
|
1220
|
+
declare const meta$8_loginV2: typeof loginV2;
|
|
1221
|
+
declare const meta$8_loginWithIdpConnection: typeof loginWithIdpConnection;
|
|
1222
|
+
declare const meta$8_loginWithIdpConnectionTokenParams: typeof loginWithIdpConnectionTokenParams;
|
|
1223
|
+
declare const meta$8_logout: typeof logout;
|
|
1224
|
+
declare const meta$8_registerV2: typeof registerV2;
|
|
1225
|
+
declare const meta$8_signOn: typeof signOn;
|
|
1226
|
+
declare const meta$8_verify: typeof verify;
|
|
1227
|
+
declare namespace meta$8 {
|
|
1228
|
+
export { type __PublicMethodMetaInfo$8 as __PublicMethodMetaInfo, meta$8_changePassword as changePassword, meta$8_loginCallback as loginCallback, meta$8_loginV2 as loginV2, meta$8_loginWithIdpConnection as loginWithIdpConnection, meta$8_loginWithIdpConnectionTokenParams as loginWithIdpConnectionTokenParams, meta$8_logout as logout, meta$8_registerV2 as registerV2, meta$8_signOn as signOn, meta$8_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$7<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$6<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$7<'POST', {}, SendRecoveryEmailRequest, SendRecoveryEmailRequest$1, SendRecoveryEmailResponse, SendRecoveryEmailResponse$1>;
|
|
2192
|
+
declare function sendActivationEmail(): __PublicMethodMetaInfo$7<'POST', {}, SendActivationEmailRequest, SendActivationEmailRequest$1, SendActivationEmailResponse, SendActivationEmailResponse$1>;
|
|
2193
|
+
declare function recover(): __PublicMethodMetaInfo$7<'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$7_recover: typeof recover;
|
|
2196
|
+
declare const meta$7_sendActivationEmail: typeof sendActivationEmail;
|
|
2197
|
+
declare const meta$7_sendRecoveryEmail: typeof sendRecoveryEmail;
|
|
2198
|
+
declare namespace meta$7 {
|
|
2199
|
+
export { type __PublicMethodMetaInfo$7 as __PublicMethodMetaInfo, meta$7_recover as recover, meta$7_sendActivationEmail as sendActivationEmail, meta$7_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$6<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$5<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$6<'POST', {}, StartRequest, StartRequest$1, StartResponse & StartResponseNonNullableFields, StartResponse$1 & StartResponseNonNullableFields$1>;
|
|
3151
|
+
declare function verifyDuringAuthentication(): __PublicMethodMetaInfo$6<'POST', {}, VerifyDuringAuthenticationRequest, VerifyDuringAuthenticationRequest$1, StateMachineResponse & StateMachineResponseNonNullableFields, StateMachineResponse$1 & StateMachineResponseNonNullableFields$1>;
|
|
3152
|
+
declare function resendDuringAuthentication(): __PublicMethodMetaInfo$6<'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$6_resendDuringAuthentication: typeof resendDuringAuthentication;
|
|
3155
|
+
declare const meta$6_start: typeof start;
|
|
3156
|
+
declare const meta$6_verifyDuringAuthentication: typeof verifyDuringAuthentication;
|
|
3157
|
+
declare namespace meta$6 {
|
|
3158
|
+
export { type __PublicMethodMetaInfo$6 as __PublicMethodMetaInfo, meta$6_resendDuringAuthentication as resendDuringAuthentication, meta$6_start as start, meta$6_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$3 {
|
|
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$3;
|
|
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$2 {
|
|
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$2;
|
|
3342
3342
|
}
|
|
3343
3343
|
interface ListChildAccountsResponse {
|
|
3344
3344
|
/** The requested child accounts. */
|
|
@@ -3356,7 +3356,7 @@ interface ListChildAccountsResponseNonNullableFields {
|
|
|
3356
3356
|
childAccounts: AccountV2NonNullableFields[];
|
|
3357
3357
|
}
|
|
3358
3358
|
|
|
3359
|
-
type __PublicMethodMetaInfo$
|
|
3359
|
+
type __PublicMethodMetaInfo$5<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
3360
3360
|
getUrl: (context: any) => string;
|
|
3361
3361
|
httpMethod: K;
|
|
3362
3362
|
path: string;
|
|
@@ -3366,13 +3366,13 @@ type __PublicMethodMetaInfo$4<K = string, M = unknown, T = unknown, S = unknown,
|
|
|
3366
3366
|
__responseType: Q;
|
|
3367
3367
|
__originalResponseType: R;
|
|
3368
3368
|
};
|
|
3369
|
-
declare function createAccount(): __PublicMethodMetaInfo$
|
|
3370
|
-
declare function listChildAccounts(): __PublicMethodMetaInfo$
|
|
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
3371
|
|
|
3372
|
-
declare const meta$
|
|
3373
|
-
declare const meta$
|
|
3374
|
-
declare namespace meta$
|
|
3375
|
-
export { type __PublicMethodMetaInfo$
|
|
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
3376
|
}
|
|
3377
3377
|
|
|
3378
3378
|
interface AccountInvite$1 {
|
|
@@ -3409,7 +3409,7 @@ interface AccountInvite$1 {
|
|
|
3409
3409
|
* - **Declined:** The user has declined the invite.
|
|
3410
3410
|
* - **Expired:** The invite has expired without being accepted.
|
|
3411
3411
|
*/
|
|
3412
|
-
status?: InviteStatus$
|
|
3412
|
+
status?: InviteStatus$5;
|
|
3413
3413
|
/** Link to accept the invite. */
|
|
3414
3414
|
acceptLink?: string;
|
|
3415
3415
|
/**
|
|
@@ -3434,7 +3434,7 @@ interface AccountInvite$1 {
|
|
|
3434
3434
|
expirationDate?: Date | null;
|
|
3435
3435
|
}
|
|
3436
3436
|
/** Invite status stating whether the invite was accepted, waiting to be accepted, deleted etc.. */
|
|
3437
|
-
declare enum InviteStatus$
|
|
3437
|
+
declare enum InviteStatus$5 {
|
|
3438
3438
|
Pending = "Pending",
|
|
3439
3439
|
Used = "Used",
|
|
3440
3440
|
Deleted = "Deleted",
|
|
@@ -3483,7 +3483,7 @@ declare enum JoinedConditionOperator$1 {
|
|
|
3483
3483
|
OR = "OR",
|
|
3484
3484
|
AND = "AND"
|
|
3485
3485
|
}
|
|
3486
|
-
declare enum SubjectType$
|
|
3486
|
+
declare enum SubjectType$5 {
|
|
3487
3487
|
UNKNOWN = "UNKNOWN",
|
|
3488
3488
|
ACCOUNT = "ACCOUNT",
|
|
3489
3489
|
USER = "USER",
|
|
@@ -3580,7 +3580,7 @@ interface SubjectContextNonNullableFields$1 {
|
|
|
3580
3580
|
}
|
|
3581
3581
|
interface SubjectNonNullableFields$1 {
|
|
3582
3582
|
id: string;
|
|
3583
|
-
subjectType: SubjectType$
|
|
3583
|
+
subjectType: SubjectType$5;
|
|
3584
3584
|
context?: SubjectContextNonNullableFields$1;
|
|
3585
3585
|
}
|
|
3586
3586
|
interface DependOnOperatorNonNullableFields$1 {
|
|
@@ -3619,7 +3619,7 @@ interface AccountInviteNonNullableFields$1 {
|
|
|
3619
3619
|
email: string;
|
|
3620
3620
|
role: string;
|
|
3621
3621
|
inviterId: string;
|
|
3622
|
-
status: InviteStatus$
|
|
3622
|
+
status: InviteStatus$5;
|
|
3623
3623
|
acceptLink: string;
|
|
3624
3624
|
inviterAccountId: string;
|
|
3625
3625
|
policyIds: string[];
|
|
@@ -3668,7 +3668,7 @@ interface AccountInvite {
|
|
|
3668
3668
|
* - **Declined:** The user has declined the invite.
|
|
3669
3669
|
* - **Expired:** The invite has expired without being accepted.
|
|
3670
3670
|
*/
|
|
3671
|
-
status?: InviteStatus$
|
|
3671
|
+
status?: InviteStatus$4;
|
|
3672
3672
|
/** Link to accept the invite. */
|
|
3673
3673
|
acceptLink?: string;
|
|
3674
3674
|
/**
|
|
@@ -3693,7 +3693,7 @@ interface AccountInvite {
|
|
|
3693
3693
|
expirationDate?: Date | null;
|
|
3694
3694
|
}
|
|
3695
3695
|
/** Invite status stating whether the invite was accepted, waiting to be accepted, deleted etc.. */
|
|
3696
|
-
declare enum InviteStatus$
|
|
3696
|
+
declare enum InviteStatus$4 {
|
|
3697
3697
|
Pending = "Pending",
|
|
3698
3698
|
Used = "Used",
|
|
3699
3699
|
Deleted = "Deleted",
|
|
@@ -3742,7 +3742,7 @@ declare enum JoinedConditionOperator {
|
|
|
3742
3742
|
OR = "OR",
|
|
3743
3743
|
AND = "AND"
|
|
3744
3744
|
}
|
|
3745
|
-
declare enum SubjectType$
|
|
3745
|
+
declare enum SubjectType$4 {
|
|
3746
3746
|
UNKNOWN = "UNKNOWN",
|
|
3747
3747
|
ACCOUNT = "ACCOUNT",
|
|
3748
3748
|
USER = "USER",
|
|
@@ -3839,7 +3839,7 @@ interface SubjectContextNonNullableFields {
|
|
|
3839
3839
|
}
|
|
3840
3840
|
interface SubjectNonNullableFields {
|
|
3841
3841
|
_id: string;
|
|
3842
|
-
subjectType: SubjectType$
|
|
3842
|
+
subjectType: SubjectType$4;
|
|
3843
3843
|
context?: SubjectContextNonNullableFields;
|
|
3844
3844
|
}
|
|
3845
3845
|
interface DependOnOperatorNonNullableFields {
|
|
@@ -3878,7 +3878,7 @@ interface AccountInviteNonNullableFields {
|
|
|
3878
3878
|
email: string;
|
|
3879
3879
|
role: string;
|
|
3880
3880
|
inviterId: string;
|
|
3881
|
-
status: InviteStatus$
|
|
3881
|
+
status: InviteStatus$4;
|
|
3882
3882
|
acceptLink: string;
|
|
3883
3883
|
inviterAccountId: string;
|
|
3884
3884
|
policyIds: string[];
|
|
@@ -3893,7 +3893,7 @@ interface CreateInviteResponseNonNullableFields {
|
|
|
3893
3893
|
failedInvites: InviteFailureNonNullableFields[];
|
|
3894
3894
|
}
|
|
3895
3895
|
|
|
3896
|
-
type __PublicMethodMetaInfo$
|
|
3896
|
+
type __PublicMethodMetaInfo$4<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
3897
3897
|
getUrl: (context: any) => string;
|
|
3898
3898
|
httpMethod: K;
|
|
3899
3899
|
path: string;
|
|
@@ -3903,11 +3903,11 @@ type __PublicMethodMetaInfo$3<K = string, M = unknown, T = unknown, S = unknown,
|
|
|
3903
3903
|
__responseType: Q;
|
|
3904
3904
|
__originalResponseType: R;
|
|
3905
3905
|
};
|
|
3906
|
-
declare function createInvite(): __PublicMethodMetaInfo$
|
|
3906
|
+
declare function createInvite(): __PublicMethodMetaInfo$4<'POST', {}, CreateInviteRequest, CreateInviteRequest$1, CreateInviteResponse & CreateInviteResponseNonNullableFields, CreateInviteResponse$1 & CreateInviteResponseNonNullableFields$1>;
|
|
3907
3907
|
|
|
3908
|
-
declare const meta$
|
|
3909
|
-
declare namespace meta$
|
|
3910
|
-
export { type __PublicMethodMetaInfo$
|
|
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
3911
|
}
|
|
3912
3912
|
|
|
3913
3913
|
interface SiteInvite$1 {
|
|
@@ -3941,7 +3941,7 @@ interface SiteInvite$1 {
|
|
|
3941
3941
|
* - **Declined:** The user declined the invite.
|
|
3942
3942
|
* - **Expired:** The invite has expired without being accepted.
|
|
3943
3943
|
*/
|
|
3944
|
-
status?: InviteStatus$
|
|
3944
|
+
status?: InviteStatus$3;
|
|
3945
3945
|
/** Link to accept the invite. */
|
|
3946
3946
|
acceptLink?: string;
|
|
3947
3947
|
/**
|
|
@@ -3962,7 +3962,7 @@ interface SiteInvite$1 {
|
|
|
3962
3962
|
expirationDate?: Date | null;
|
|
3963
3963
|
}
|
|
3964
3964
|
/** Invite status stating whether the invite was accepted, waiting to be accepted, deleted etc.. */
|
|
3965
|
-
declare enum InviteStatus$
|
|
3965
|
+
declare enum InviteStatus$3 {
|
|
3966
3966
|
Pending = "Pending",
|
|
3967
3967
|
Used = "Used",
|
|
3968
3968
|
Deleted = "Deleted",
|
|
@@ -4007,7 +4007,7 @@ interface SiteInviteNonNullableFields$1 {
|
|
|
4007
4007
|
email: string;
|
|
4008
4008
|
policyIds: string[];
|
|
4009
4009
|
inviterId: string;
|
|
4010
|
-
status: InviteStatus$
|
|
4010
|
+
status: InviteStatus$3;
|
|
4011
4011
|
acceptLink: string;
|
|
4012
4012
|
inviterAccountId: string;
|
|
4013
4013
|
}
|
|
@@ -4050,7 +4050,7 @@ interface SiteInvite {
|
|
|
4050
4050
|
* - **Declined:** The user declined the invite.
|
|
4051
4051
|
* - **Expired:** The invite has expired without being accepted.
|
|
4052
4052
|
*/
|
|
4053
|
-
status?: InviteStatus;
|
|
4053
|
+
status?: InviteStatus$2;
|
|
4054
4054
|
/** Link to accept the invite. */
|
|
4055
4055
|
acceptLink?: string;
|
|
4056
4056
|
/**
|
|
@@ -4071,7 +4071,7 @@ interface SiteInvite {
|
|
|
4071
4071
|
expirationDate?: Date | null;
|
|
4072
4072
|
}
|
|
4073
4073
|
/** Invite status stating whether the invite was accepted, waiting to be accepted, deleted etc.. */
|
|
4074
|
-
declare enum InviteStatus {
|
|
4074
|
+
declare enum InviteStatus$2 {
|
|
4075
4075
|
Pending = "Pending",
|
|
4076
4076
|
Used = "Used",
|
|
4077
4077
|
Deleted = "Deleted",
|
|
@@ -4116,7 +4116,7 @@ interface SiteInviteNonNullableFields {
|
|
|
4116
4116
|
email: string;
|
|
4117
4117
|
policyIds: string[];
|
|
4118
4118
|
inviterId: string;
|
|
4119
|
-
status: InviteStatus;
|
|
4119
|
+
status: InviteStatus$2;
|
|
4120
4120
|
acceptLink: string;
|
|
4121
4121
|
inviterAccountId: string;
|
|
4122
4122
|
}
|
|
@@ -4128,7 +4128,7 @@ interface SiteInviteResponseNonNullableFields {
|
|
|
4128
4128
|
invite?: SiteInviteNonNullableFields;
|
|
4129
4129
|
}
|
|
4130
4130
|
|
|
4131
|
-
type __PublicMethodMetaInfo$
|
|
4131
|
+
type __PublicMethodMetaInfo$3<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
4132
4132
|
getUrl: (context: any) => string;
|
|
4133
4133
|
httpMethod: K;
|
|
4134
4134
|
path: string;
|
|
@@ -4138,19 +4138,19 @@ type __PublicMethodMetaInfo$2<K = string, M = unknown, T = unknown, S = unknown,
|
|
|
4138
4138
|
__responseType: Q;
|
|
4139
4139
|
__originalResponseType: R;
|
|
4140
4140
|
};
|
|
4141
|
-
declare function bulkInvite(): __PublicMethodMetaInfo$
|
|
4142
|
-
declare function resendInvite(): __PublicMethodMetaInfo$
|
|
4141
|
+
declare function bulkInvite(): __PublicMethodMetaInfo$3<'POST', {}, BulkSiteInviteRequest, BulkSiteInviteRequest$1, BulkSiteInviteResponse & BulkSiteInviteResponseNonNullableFields, BulkSiteInviteResponse$1 & BulkSiteInviteResponseNonNullableFields$1>;
|
|
4142
|
+
declare function resendInvite(): __PublicMethodMetaInfo$3<'POST', {
|
|
4143
4143
|
inviteId: string;
|
|
4144
4144
|
}, ResendSiteInviteRequest, ResendSiteInviteRequest$1, SiteInviteResponse & SiteInviteResponseNonNullableFields, SiteInviteResponse$1 & SiteInviteResponseNonNullableFields$1>;
|
|
4145
|
-
declare function revokeInvite(): __PublicMethodMetaInfo$
|
|
4145
|
+
declare function revokeInvite(): __PublicMethodMetaInfo$3<'POST', {
|
|
4146
4146
|
inviteId: string;
|
|
4147
4147
|
}, RevokeSiteInviteRequest, RevokeSiteInviteRequest$1, RevokeSiteInviteResponse, RevokeSiteInviteResponse$1>;
|
|
4148
4148
|
|
|
4149
|
-
declare const meta$
|
|
4150
|
-
declare const meta$
|
|
4151
|
-
declare const meta$
|
|
4152
|
-
declare namespace meta$
|
|
4153
|
-
export { type __PublicMethodMetaInfo$
|
|
4149
|
+
declare const meta$3_bulkInvite: typeof bulkInvite;
|
|
4150
|
+
declare const meta$3_resendInvite: typeof resendInvite;
|
|
4151
|
+
declare const meta$3_revokeInvite: typeof revokeInvite;
|
|
4152
|
+
declare namespace meta$3 {
|
|
4153
|
+
export { type __PublicMethodMetaInfo$3 as __PublicMethodMetaInfo, meta$3_bulkInvite as bulkInvite, meta$3_resendInvite as resendInvite, meta$3_revokeInvite as revokeInvite };
|
|
4154
4154
|
}
|
|
4155
4155
|
|
|
4156
4156
|
interface RawHttpResponse$1 {
|
|
@@ -4182,7 +4182,7 @@ interface QueryParametersEntry$1 {
|
|
|
4182
4182
|
interface TokenInfoResponse$1 {
|
|
4183
4183
|
active?: boolean;
|
|
4184
4184
|
/** subject type. */
|
|
4185
|
-
subjectType?: SubjectType$
|
|
4185
|
+
subjectType?: SubjectType$3;
|
|
4186
4186
|
/** subject id */
|
|
4187
4187
|
subjectId?: string;
|
|
4188
4188
|
/** Expiration time of the token */
|
|
@@ -4200,7 +4200,7 @@ interface TokenInfoResponse$1 {
|
|
|
4200
4200
|
/** Vendor Product Id */
|
|
4201
4201
|
vendorProductId?: string | null;
|
|
4202
4202
|
}
|
|
4203
|
-
declare enum SubjectType$
|
|
4203
|
+
declare enum SubjectType$3 {
|
|
4204
4204
|
/** unknown subject type */
|
|
4205
4205
|
UNKNOWN = "UNKNOWN",
|
|
4206
4206
|
/** user subject type */
|
|
@@ -4222,7 +4222,7 @@ interface RawHttpResponseNonNullableFields$1 {
|
|
|
4222
4222
|
}
|
|
4223
4223
|
interface TokenInfoResponseNonNullableFields$1 {
|
|
4224
4224
|
active: boolean;
|
|
4225
|
-
subjectType: SubjectType$
|
|
4225
|
+
subjectType: SubjectType$3;
|
|
4226
4226
|
subjectId: string;
|
|
4227
4227
|
clientId: string;
|
|
4228
4228
|
}
|
|
@@ -4256,7 +4256,7 @@ interface QueryParametersEntry {
|
|
|
4256
4256
|
interface TokenInfoResponse {
|
|
4257
4257
|
active?: boolean;
|
|
4258
4258
|
/** subject type. */
|
|
4259
|
-
subjectType?: SubjectType;
|
|
4259
|
+
subjectType?: SubjectType$2;
|
|
4260
4260
|
/** subject id */
|
|
4261
4261
|
subjectId?: string;
|
|
4262
4262
|
/** Expiration time of the token */
|
|
@@ -4274,7 +4274,7 @@ interface TokenInfoResponse {
|
|
|
4274
4274
|
/** Vendor Product Id */
|
|
4275
4275
|
vendorProductId?: string | null;
|
|
4276
4276
|
}
|
|
4277
|
-
declare enum SubjectType {
|
|
4277
|
+
declare enum SubjectType$2 {
|
|
4278
4278
|
/** unknown subject type */
|
|
4279
4279
|
UNKNOWN = "UNKNOWN",
|
|
4280
4280
|
/** user subject type */
|
|
@@ -4296,11 +4296,772 @@ interface RawHttpResponseNonNullableFields {
|
|
|
4296
4296
|
}
|
|
4297
4297
|
interface TokenInfoResponseNonNullableFields {
|
|
4298
4298
|
active: boolean;
|
|
4299
|
-
subjectType: SubjectType;
|
|
4299
|
+
subjectType: SubjectType$2;
|
|
4300
4300
|
subjectId: string;
|
|
4301
4301
|
clientId: string;
|
|
4302
4302
|
}
|
|
4303
4303
|
|
|
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
|
+
|
|
4304
5065
|
type __PublicMethodMetaInfo$1<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
4305
5066
|
getUrl: (context: any) => string;
|
|
4306
5067
|
httpMethod: K;
|
|
@@ -4311,13 +5072,17 @@ type __PublicMethodMetaInfo$1<K = string, M = unknown, T = unknown, S = unknown,
|
|
|
4311
5072
|
__responseType: Q;
|
|
4312
5073
|
__originalResponseType: R;
|
|
4313
5074
|
};
|
|
4314
|
-
declare function
|
|
4315
|
-
declare function
|
|
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>;
|
|
4316
5079
|
|
|
4317
|
-
declare const meta$
|
|
4318
|
-
declare const meta$
|
|
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;
|
|
4319
5084
|
declare namespace meta$1 {
|
|
4320
|
-
export { type __PublicMethodMetaInfo$1 as __PublicMethodMetaInfo, meta$
|
|
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 };
|
|
4321
5086
|
}
|
|
4322
5087
|
|
|
4323
5088
|
interface ChangeContributorRoleRequest$1 {
|
|
@@ -4428,4 +5193,4 @@ declare namespace meta {
|
|
|
4428
5193
|
export { type meta___PublicMethodMetaInfo as __PublicMethodMetaInfo, meta_changeRole as changeRole, meta_querySiteContributors as querySiteContributors };
|
|
4429
5194
|
}
|
|
4430
5195
|
|
|
4431
|
-
export { meta$
|
|
5196
|
+
export { meta$5 as account, meta$4 as accountInvite, meta$8 as authentication, meta as contributor, meta$2 as oauth, meta$7 as recovery, meta$3 as siteInvite, meta$1 as user, meta$6 as verification };
|