@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
|
@@ -1238,47 +1238,47 @@ declare const signOn: MaybeContext<BuildRESTFunction<typeof signOn$1> & typeof s
|
|
|
1238
1238
|
declare const logout: MaybeContext<BuildRESTFunction<typeof logout$1> & typeof logout$1>;
|
|
1239
1239
|
declare const verify: MaybeContext<BuildRESTFunction<typeof verify$1> & typeof verify$1>;
|
|
1240
1240
|
|
|
1241
|
-
type context$
|
|
1242
|
-
type context$
|
|
1243
|
-
type context$
|
|
1244
|
-
type context$
|
|
1245
|
-
type context$
|
|
1246
|
-
type context$
|
|
1247
|
-
type context$
|
|
1248
|
-
type context$
|
|
1249
|
-
type context$
|
|
1250
|
-
type context$
|
|
1251
|
-
type context$
|
|
1252
|
-
type context$
|
|
1253
|
-
type context$
|
|
1254
|
-
type context$
|
|
1255
|
-
type context$
|
|
1256
|
-
type context$
|
|
1257
|
-
type context$
|
|
1258
|
-
type context$
|
|
1259
|
-
type context$
|
|
1260
|
-
type context$
|
|
1261
|
-
type context$
|
|
1262
|
-
type context$
|
|
1263
|
-
type context$
|
|
1264
|
-
type context$
|
|
1265
|
-
type context$
|
|
1266
|
-
type context$
|
|
1267
|
-
type context$
|
|
1268
|
-
type context$
|
|
1269
|
-
type context$
|
|
1270
|
-
type context$
|
|
1271
|
-
declare const context$
|
|
1272
|
-
declare const context$
|
|
1273
|
-
declare const context$
|
|
1274
|
-
declare const context$
|
|
1275
|
-
declare const context$
|
|
1276
|
-
declare const context$
|
|
1277
|
-
declare const context$
|
|
1278
|
-
declare const context$
|
|
1279
|
-
declare const context$
|
|
1280
|
-
declare namespace context$
|
|
1281
|
-
export { type Address$2 as Address, AddressTag$2 as AddressTag, type AddressWrapper$2 as AddressWrapper, type context$
|
|
1241
|
+
type context$4_Authentication = Authentication;
|
|
1242
|
+
type context$4_CallVerifyData = CallVerifyData;
|
|
1243
|
+
type context$4_CaptchaToken = CaptchaToken;
|
|
1244
|
+
type context$4_CaptchaTokenTokenOneOf = CaptchaTokenTokenOneOf;
|
|
1245
|
+
type context$4_ChangePasswordRequest = ChangePasswordRequest;
|
|
1246
|
+
type context$4_ChangePasswordResponse = ChangePasswordResponse;
|
|
1247
|
+
type context$4_EmailVerifyData = EmailVerifyData;
|
|
1248
|
+
type context$4_LoginCallbackOptions = LoginCallbackOptions;
|
|
1249
|
+
type context$4_LoginCallbackRequest = LoginCallbackRequest;
|
|
1250
|
+
type context$4_LoginId = LoginId;
|
|
1251
|
+
type context$4_LoginIdTypeOneOf = LoginIdTypeOneOf;
|
|
1252
|
+
type context$4_LoginV2Options = LoginV2Options;
|
|
1253
|
+
type context$4_LoginV2Request = LoginV2Request;
|
|
1254
|
+
type context$4_LoginWithIdpConnectionIdentifiers = LoginWithIdpConnectionIdentifiers;
|
|
1255
|
+
type context$4_LoginWithIdpConnectionOptions = LoginWithIdpConnectionOptions;
|
|
1256
|
+
type context$4_LoginWithIdpConnectionRequest = LoginWithIdpConnectionRequest;
|
|
1257
|
+
type context$4_LoginWithIdpConnectionTokenParamsOptions = LoginWithIdpConnectionTokenParamsOptions;
|
|
1258
|
+
type context$4_LoginWithIdpConnectionTokenParamsRequest = LoginWithIdpConnectionTokenParamsRequest;
|
|
1259
|
+
type context$4_LogoutOptions = LogoutOptions;
|
|
1260
|
+
type context$4_LogoutRequest = LogoutRequest;
|
|
1261
|
+
type context$4_RegisterV2Options = RegisterV2Options;
|
|
1262
|
+
type context$4_RegisterV2Request = RegisterV2Request;
|
|
1263
|
+
type context$4_SignOnOptions = SignOnOptions;
|
|
1264
|
+
type context$4_SignOnRequest = SignOnRequest;
|
|
1265
|
+
type context$4_SignOnResponse = SignOnResponse;
|
|
1266
|
+
type context$4_SignOnResponseNonNullableFields = SignOnResponseNonNullableFields;
|
|
1267
|
+
type context$4_SmsVerifyData = SmsVerifyData;
|
|
1268
|
+
type context$4_TotpVerifyData = TotpVerifyData;
|
|
1269
|
+
type context$4_VerifyOptions = VerifyOptions;
|
|
1270
|
+
type context$4_VerifyRequestFactorDataOneOf = VerifyRequestFactorDataOneOf;
|
|
1271
|
+
declare const context$4_changePassword: typeof changePassword;
|
|
1272
|
+
declare const context$4_loginCallback: typeof loginCallback;
|
|
1273
|
+
declare const context$4_loginV2: typeof loginV2;
|
|
1274
|
+
declare const context$4_loginWithIdpConnection: typeof loginWithIdpConnection;
|
|
1275
|
+
declare const context$4_loginWithIdpConnectionTokenParams: typeof loginWithIdpConnectionTokenParams;
|
|
1276
|
+
declare const context$4_logout: typeof logout;
|
|
1277
|
+
declare const context$4_registerV2: typeof registerV2;
|
|
1278
|
+
declare const context$4_signOn: typeof signOn;
|
|
1279
|
+
declare const context$4_verify: typeof verify;
|
|
1280
|
+
declare namespace context$4 {
|
|
1281
|
+
export { type Address$2 as Address, AddressTag$2 as AddressTag, type AddressWrapper$2 as AddressWrapper, type context$4_Authentication as Authentication, type AuthenticatorConnection$2 as AuthenticatorConnection, type context$4_CallVerifyData as CallVerifyData, type context$4_CaptchaToken as CaptchaToken, type context$4_CaptchaTokenTokenOneOf as CaptchaTokenTokenOneOf, type context$4_ChangePasswordRequest as ChangePasswordRequest, type context$4_ChangePasswordResponse as ChangePasswordResponse, type Connection$2 as Connection, type ConnectionTypeOneOf$2 as ConnectionTypeOneOf, type CustomField$2 as CustomField, type CustomValue$2 as CustomValue, type CustomValueValueOneOf$2 as CustomValueValueOneOf, type Email$3 as Email, EmailTag$2 as EmailTag, type context$4_EmailVerifyData as EmailVerifyData, type Factor$2 as Factor, FactorType$2 as FactorType, type HeadersEntry$1 as HeadersEntry, type Identity$2 as Identity, type IdentityProfile$2 as IdentityProfile, type IdpConnection$2 as IdpConnection, type ListValue$2 as ListValue, type context$4_LoginCallbackOptions as LoginCallbackOptions, type context$4_LoginCallbackRequest as LoginCallbackRequest, type context$4_LoginId as LoginId, type context$4_LoginIdTypeOneOf as LoginIdTypeOneOf, type context$4_LoginV2Options as LoginV2Options, type context$4_LoginV2Request as LoginV2Request, type context$4_LoginWithIdpConnectionIdentifiers as LoginWithIdpConnectionIdentifiers, type context$4_LoginWithIdpConnectionOptions as LoginWithIdpConnectionOptions, type context$4_LoginWithIdpConnectionRequest as LoginWithIdpConnectionRequest, type context$4_LoginWithIdpConnectionTokenParamsOptions as LoginWithIdpConnectionTokenParamsOptions, type context$4_LoginWithIdpConnectionTokenParamsRequest as LoginWithIdpConnectionTokenParamsRequest, type context$4_LogoutOptions as LogoutOptions, type context$4_LogoutRequest as LogoutRequest, type MapValue$2 as MapValue, type Metadata$2 as Metadata, type MfaChallengeData$2 as MfaChallengeData, type PathParametersEntry$1 as PathParametersEntry, type Phone$2 as Phone, PhoneTag$2 as PhoneTag, PrivacyStatus$2 as PrivacyStatus, type QueryParametersEntry$1 as QueryParametersEntry, type RawHttpRequest$1 as RawHttpRequest, type RawHttpResponse$1 as RawHttpResponse, type RawHttpResponseNonNullableFields$1 as RawHttpResponseNonNullableFields, Reason$2 as Reason, type context$4_RegisterV2Options as RegisterV2Options, type context$4_RegisterV2Request as RegisterV2Request, type RequireMfaData$2 as RequireMfaData, type SecondaryEmail$2 as SecondaryEmail, type context$4_SignOnOptions as SignOnOptions, type context$4_SignOnRequest as SignOnRequest, type context$4_SignOnResponse as SignOnResponse, type context$4_SignOnResponseNonNullableFields as SignOnResponseNonNullableFields, type context$4_SmsVerifyData as SmsVerifyData, type StateMachineResponse$2 as StateMachineResponse, type StateMachineResponseNonNullableFields$2 as StateMachineResponseNonNullableFields, type StateMachineResponseStateDataOneOf$2 as StateMachineResponseStateDataOneOf, StateType$2 as StateType, Status$2 as Status, StatusName$2 as StatusName, type StatusV2$2 as StatusV2, TenantType$1 as TenantType, type context$4_TotpVerifyData as TotpVerifyData, type V1CustomValue$2 as V1CustomValue, type V1CustomValueValueOneOf$2 as V1CustomValueValueOneOf, type V1Factor$2 as V1Factor, type V1ListValue$2 as V1ListValue, type V1MapValue$2 as V1MapValue, type VerificationChallenge$2 as VerificationChallenge, type context$4_VerifyOptions as VerifyOptions, type VerifyRequest$1 as VerifyRequest, type context$4_VerifyRequestFactorDataOneOf as VerifyRequestFactorDataOneOf, context$4_changePassword as changePassword, context$4_loginCallback as loginCallback, context$4_loginV2 as loginV2, context$4_loginWithIdpConnection as loginWithIdpConnection, context$4_loginWithIdpConnectionTokenParams as loginWithIdpConnectionTokenParams, context$4_logout as logout, context$4_registerV2 as registerV2, context$4_signOn as signOn, context$4_verify as verify };
|
|
1282
1282
|
}
|
|
1283
1283
|
|
|
1284
1284
|
/** Recovery token proto is the saved data on the recovery token. */
|
|
@@ -1832,24 +1832,24 @@ declare const sendRecoveryEmail: MaybeContext<BuildRESTFunction<typeof sendRecov
|
|
|
1832
1832
|
declare const sendActivationEmail: MaybeContext<BuildRESTFunction<typeof sendActivationEmail$1> & typeof sendActivationEmail$1>;
|
|
1833
1833
|
declare const recover: MaybeContext<BuildRESTFunction<typeof recover$1> & typeof recover$1>;
|
|
1834
1834
|
|
|
1835
|
-
type context$
|
|
1836
|
-
type context$
|
|
1837
|
-
type context$
|
|
1838
|
-
type context$
|
|
1839
|
-
type context$
|
|
1840
|
-
type context$
|
|
1841
|
-
type context$
|
|
1842
|
-
type context$
|
|
1843
|
-
type context$
|
|
1844
|
-
type context$
|
|
1845
|
-
type context$
|
|
1846
|
-
type context$
|
|
1847
|
-
declare const context$
|
|
1848
|
-
declare const context$
|
|
1849
|
-
declare const context$
|
|
1850
|
-
declare const context$
|
|
1851
|
-
declare namespace context$
|
|
1852
|
-
export { type Address$1 as Address, AddressTag$1 as AddressTag, type AddressWrapper$1 as AddressWrapper, type AuthenticatorConnection$1 as AuthenticatorConnection, type Connection$1 as Connection, type ConnectionTypeOneOf$1 as ConnectionTypeOneOf, type CustomField$1 as CustomField, type CustomValue$1 as CustomValue, type CustomValueValueOneOf$1 as CustomValueValueOneOf, type Email$2 as Email, type context$
|
|
1835
|
+
type context$3_EmailOptions = EmailOptions;
|
|
1836
|
+
type context$3_RecoverOptions = RecoverOptions;
|
|
1837
|
+
type context$3_RecoverRequest = RecoverRequest;
|
|
1838
|
+
type context$3_RecoveryToken = RecoveryToken;
|
|
1839
|
+
type context$3_Redirect = Redirect;
|
|
1840
|
+
type context$3_SendActivationEmailOptions = SendActivationEmailOptions;
|
|
1841
|
+
type context$3_SendActivationEmailRequest = SendActivationEmailRequest;
|
|
1842
|
+
type context$3_SendActivationEmailResponse = SendActivationEmailResponse;
|
|
1843
|
+
type context$3_SendRecoveryEmailOptions = SendRecoveryEmailOptions;
|
|
1844
|
+
type context$3_SendRecoveryEmailRequest = SendRecoveryEmailRequest;
|
|
1845
|
+
type context$3_SendRecoveryEmailResponse = SendRecoveryEmailResponse;
|
|
1846
|
+
type context$3_TenantType = TenantType;
|
|
1847
|
+
declare const context$3_TenantType: typeof TenantType;
|
|
1848
|
+
declare const context$3_recover: typeof recover;
|
|
1849
|
+
declare const context$3_sendActivationEmail: typeof sendActivationEmail;
|
|
1850
|
+
declare const context$3_sendRecoveryEmail: typeof sendRecoveryEmail;
|
|
1851
|
+
declare namespace context$3 {
|
|
1852
|
+
export { type Address$1 as Address, AddressTag$1 as AddressTag, type AddressWrapper$1 as AddressWrapper, type AuthenticatorConnection$1 as AuthenticatorConnection, type Connection$1 as Connection, type ConnectionTypeOneOf$1 as ConnectionTypeOneOf, type CustomField$1 as CustomField, type CustomValue$1 as CustomValue, type CustomValueValueOneOf$1 as CustomValueValueOneOf, type Email$2 as Email, type context$3_EmailOptions as EmailOptions, EmailTag$1 as EmailTag, type Factor$1 as Factor, FactorType$1 as FactorType, type Identity$1 as Identity, type IdentityProfile$1 as IdentityProfile, type IdpConnection$1 as IdpConnection, type ListValue$1 as ListValue, type MapValue$1 as MapValue, type Metadata$1 as Metadata, type MfaChallengeData$1 as MfaChallengeData, type Phone$1 as Phone, PhoneTag$1 as PhoneTag, PrivacyStatus$1 as PrivacyStatus, Reason$1 as Reason, type context$3_RecoverOptions as RecoverOptions, type context$3_RecoverRequest as RecoverRequest, type context$3_RecoveryToken as RecoveryToken, type context$3_Redirect as Redirect, type RequireMfaData$1 as RequireMfaData, type SecondaryEmail$1 as SecondaryEmail, type context$3_SendActivationEmailOptions as SendActivationEmailOptions, type context$3_SendActivationEmailRequest as SendActivationEmailRequest, type context$3_SendActivationEmailResponse as SendActivationEmailResponse, type context$3_SendRecoveryEmailOptions as SendRecoveryEmailOptions, type context$3_SendRecoveryEmailRequest as SendRecoveryEmailRequest, type context$3_SendRecoveryEmailResponse as SendRecoveryEmailResponse, type StateMachineResponse$1 as StateMachineResponse, type StateMachineResponseNonNullableFields$1 as StateMachineResponseNonNullableFields, type StateMachineResponseStateDataOneOf$1 as StateMachineResponseStateDataOneOf, StateType$1 as StateType, Status$1 as Status, StatusName$1 as StatusName, type StatusV2$1 as StatusV2, context$3_TenantType as TenantType, type V1CustomValue$1 as V1CustomValue, type V1CustomValueValueOneOf$1 as V1CustomValueValueOneOf, type V1Factor$1 as V1Factor, type V1ListValue$1 as V1ListValue, type V1MapValue$1 as V1MapValue, type VerificationChallenge$1 as VerificationChallenge, context$3_recover as recover, context$3_sendActivationEmail as sendActivationEmail, context$3_sendRecoveryEmail as sendRecoveryEmail };
|
|
1853
1853
|
}
|
|
1854
1854
|
|
|
1855
1855
|
interface StartResponse {
|
|
@@ -2378,69 +2378,69 @@ declare const start: MaybeContext<BuildRESTFunction<typeof start$1> & typeof sta
|
|
|
2378
2378
|
declare const verifyDuringAuthentication: MaybeContext<BuildRESTFunction<typeof verifyDuringAuthentication$1> & typeof verifyDuringAuthentication$1>;
|
|
2379
2379
|
declare const resendDuringAuthentication: MaybeContext<BuildRESTFunction<typeof resendDuringAuthentication$1> & typeof resendDuringAuthentication$1>;
|
|
2380
2380
|
|
|
2381
|
-
type context$
|
|
2382
|
-
type context$
|
|
2383
|
-
declare const context$
|
|
2384
|
-
type context$
|
|
2385
|
-
type context$
|
|
2386
|
-
type context$
|
|
2387
|
-
type context$
|
|
2388
|
-
type context$
|
|
2389
|
-
type context$
|
|
2390
|
-
type context$
|
|
2391
|
-
type context$
|
|
2392
|
-
declare const context$
|
|
2393
|
-
type context$
|
|
2394
|
-
type context$
|
|
2395
|
-
declare const context$
|
|
2396
|
-
type context$
|
|
2397
|
-
type context$
|
|
2398
|
-
type context$
|
|
2399
|
-
type context$
|
|
2400
|
-
type context$
|
|
2401
|
-
type context$
|
|
2402
|
-
type context$
|
|
2403
|
-
type context$
|
|
2404
|
-
type context$
|
|
2405
|
-
declare const context$
|
|
2406
|
-
type context$
|
|
2407
|
-
declare const context$
|
|
2408
|
-
type context$
|
|
2409
|
-
declare const context$
|
|
2410
|
-
type context$
|
|
2411
|
-
type context$
|
|
2412
|
-
type context$
|
|
2413
|
-
type context$
|
|
2414
|
-
type context$
|
|
2415
|
-
type context$
|
|
2416
|
-
type context$
|
|
2417
|
-
type context$
|
|
2418
|
-
type context$
|
|
2419
|
-
type context$
|
|
2420
|
-
type context$
|
|
2421
|
-
declare const context$
|
|
2422
|
-
type context$
|
|
2423
|
-
declare const context$
|
|
2424
|
-
type context$
|
|
2425
|
-
declare const context$
|
|
2426
|
-
type context$
|
|
2427
|
-
type context$
|
|
2428
|
-
declare const context$
|
|
2429
|
-
type context$
|
|
2430
|
-
type context$
|
|
2431
|
-
type context$
|
|
2432
|
-
type context$
|
|
2433
|
-
type context$
|
|
2434
|
-
type context$
|
|
2435
|
-
type context$
|
|
2436
|
-
type context$
|
|
2437
|
-
type context$
|
|
2438
|
-
type context$
|
|
2439
|
-
declare const context$
|
|
2440
|
-
declare const context$
|
|
2441
|
-
declare const context$
|
|
2442
|
-
declare namespace context$
|
|
2443
|
-
export { type context$
|
|
2381
|
+
type context$2_Address = Address;
|
|
2382
|
+
type context$2_AddressTag = AddressTag;
|
|
2383
|
+
declare const context$2_AddressTag: typeof AddressTag;
|
|
2384
|
+
type context$2_AddressWrapper = AddressWrapper;
|
|
2385
|
+
type context$2_AuthenticatorConnection = AuthenticatorConnection;
|
|
2386
|
+
type context$2_Connection = Connection;
|
|
2387
|
+
type context$2_ConnectionTypeOneOf = ConnectionTypeOneOf;
|
|
2388
|
+
type context$2_CustomField = CustomField;
|
|
2389
|
+
type context$2_CustomValue = CustomValue;
|
|
2390
|
+
type context$2_CustomValueValueOneOf = CustomValueValueOneOf;
|
|
2391
|
+
type context$2_EmailTag = EmailTag;
|
|
2392
|
+
declare const context$2_EmailTag: typeof EmailTag;
|
|
2393
|
+
type context$2_Factor = Factor;
|
|
2394
|
+
type context$2_FactorType = FactorType;
|
|
2395
|
+
declare const context$2_FactorType: typeof FactorType;
|
|
2396
|
+
type context$2_Identity = Identity;
|
|
2397
|
+
type context$2_IdentityProfile = IdentityProfile;
|
|
2398
|
+
type context$2_IdpConnection = IdpConnection;
|
|
2399
|
+
type context$2_ListValue = ListValue;
|
|
2400
|
+
type context$2_MapValue = MapValue;
|
|
2401
|
+
type context$2_Metadata = Metadata;
|
|
2402
|
+
type context$2_MfaChallengeData = MfaChallengeData;
|
|
2403
|
+
type context$2_Phone = Phone;
|
|
2404
|
+
type context$2_PhoneTag = PhoneTag;
|
|
2405
|
+
declare const context$2_PhoneTag: typeof PhoneTag;
|
|
2406
|
+
type context$2_PrivacyStatus = PrivacyStatus;
|
|
2407
|
+
declare const context$2_PrivacyStatus: typeof PrivacyStatus;
|
|
2408
|
+
type context$2_Reason = Reason;
|
|
2409
|
+
declare const context$2_Reason: typeof Reason;
|
|
2410
|
+
type context$2_RequireMfaData = RequireMfaData;
|
|
2411
|
+
type context$2_ResendDuringAuthenticationRequest = ResendDuringAuthenticationRequest;
|
|
2412
|
+
type context$2_SecondaryEmail = SecondaryEmail;
|
|
2413
|
+
type context$2_StartOptions = StartOptions;
|
|
2414
|
+
type context$2_StartRequest = StartRequest;
|
|
2415
|
+
type context$2_StartResponse = StartResponse;
|
|
2416
|
+
type context$2_StartResponseNonNullableFields = StartResponseNonNullableFields;
|
|
2417
|
+
type context$2_StateMachineResponse = StateMachineResponse;
|
|
2418
|
+
type context$2_StateMachineResponseNonNullableFields = StateMachineResponseNonNullableFields;
|
|
2419
|
+
type context$2_StateMachineResponseStateDataOneOf = StateMachineResponseStateDataOneOf;
|
|
2420
|
+
type context$2_StateType = StateType;
|
|
2421
|
+
declare const context$2_StateType: typeof StateType;
|
|
2422
|
+
type context$2_Status = Status;
|
|
2423
|
+
declare const context$2_Status: typeof Status;
|
|
2424
|
+
type context$2_StatusName = StatusName;
|
|
2425
|
+
declare const context$2_StatusName: typeof StatusName;
|
|
2426
|
+
type context$2_StatusV2 = StatusV2;
|
|
2427
|
+
type context$2_Target = Target;
|
|
2428
|
+
declare const context$2_Target: typeof Target;
|
|
2429
|
+
type context$2_V1CustomValue = V1CustomValue;
|
|
2430
|
+
type context$2_V1CustomValueValueOneOf = V1CustomValueValueOneOf;
|
|
2431
|
+
type context$2_V1Factor = V1Factor;
|
|
2432
|
+
type context$2_V1ListValue = V1ListValue;
|
|
2433
|
+
type context$2_V1MapValue = V1MapValue;
|
|
2434
|
+
type context$2_VerificationChallenge = VerificationChallenge;
|
|
2435
|
+
type context$2_VerifyDuringAuthenticationOptions = VerifyDuringAuthenticationOptions;
|
|
2436
|
+
type context$2_VerifyDuringAuthenticationRequest = VerifyDuringAuthenticationRequest;
|
|
2437
|
+
type context$2_VerifyRequest = VerifyRequest;
|
|
2438
|
+
type context$2_VerifyResponse = VerifyResponse;
|
|
2439
|
+
declare const context$2_resendDuringAuthentication: typeof resendDuringAuthentication;
|
|
2440
|
+
declare const context$2_start: typeof start;
|
|
2441
|
+
declare const context$2_verifyDuringAuthentication: typeof verifyDuringAuthentication;
|
|
2442
|
+
declare namespace context$2 {
|
|
2443
|
+
export { type context$2_Address as Address, context$2_AddressTag as AddressTag, type context$2_AddressWrapper as AddressWrapper, type context$2_AuthenticatorConnection as AuthenticatorConnection, type context$2_Connection as Connection, type context$2_ConnectionTypeOneOf as ConnectionTypeOneOf, type context$2_CustomField as CustomField, type context$2_CustomValue as CustomValue, type context$2_CustomValueValueOneOf as CustomValueValueOneOf, type Email$1 as Email, context$2_EmailTag as EmailTag, type context$2_Factor as Factor, context$2_FactorType as FactorType, type context$2_Identity as Identity, type context$2_IdentityProfile as IdentityProfile, type context$2_IdpConnection as IdpConnection, type context$2_ListValue as ListValue, type context$2_MapValue as MapValue, type context$2_Metadata as Metadata, type context$2_MfaChallengeData as MfaChallengeData, type context$2_Phone as Phone, context$2_PhoneTag as PhoneTag, context$2_PrivacyStatus as PrivacyStatus, context$2_Reason as Reason, type context$2_RequireMfaData as RequireMfaData, type context$2_ResendDuringAuthenticationRequest as ResendDuringAuthenticationRequest, type context$2_SecondaryEmail as SecondaryEmail, type context$2_StartOptions as StartOptions, type context$2_StartRequest as StartRequest, type context$2_StartResponse as StartResponse, type context$2_StartResponseNonNullableFields as StartResponseNonNullableFields, type context$2_StateMachineResponse as StateMachineResponse, type context$2_StateMachineResponseNonNullableFields as StateMachineResponseNonNullableFields, type context$2_StateMachineResponseStateDataOneOf as StateMachineResponseStateDataOneOf, context$2_StateType as StateType, context$2_Status as Status, context$2_StatusName as StatusName, type context$2_StatusV2 as StatusV2, context$2_Target as Target, type context$2_V1CustomValue as V1CustomValue, type context$2_V1CustomValueValueOneOf as V1CustomValueValueOneOf, type context$2_V1Factor as V1Factor, type context$2_V1ListValue as V1ListValue, type context$2_V1MapValue as V1MapValue, type context$2_VerificationChallenge as VerificationChallenge, type context$2_VerifyDuringAuthenticationOptions as VerifyDuringAuthenticationOptions, type context$2_VerifyDuringAuthenticationRequest as VerifyDuringAuthenticationRequest, type context$2_VerifyRequest as VerifyRequest, type context$2_VerifyResponse as VerifyResponse, context$2_resendDuringAuthentication as resendDuringAuthentication, context$2_start as start, context$2_verifyDuringAuthentication as verifyDuringAuthentication };
|
|
2444
2444
|
}
|
|
2445
2445
|
|
|
2446
2446
|
interface AccountV2 {
|
|
@@ -2524,9 +2524,9 @@ interface GetUserAccountsRequest {
|
|
|
2524
2524
|
/** the user id that his accounts we query */
|
|
2525
2525
|
userId?: string;
|
|
2526
2526
|
/** Limited to max 20 at a single request */
|
|
2527
|
-
paging?: Paging
|
|
2527
|
+
paging?: Paging;
|
|
2528
2528
|
}
|
|
2529
|
-
interface Paging
|
|
2529
|
+
interface Paging {
|
|
2530
2530
|
/** Number of items to load. */
|
|
2531
2531
|
limit?: number | null;
|
|
2532
2532
|
/** Number of items to skip in the current sort order. */
|
|
@@ -2537,7 +2537,7 @@ interface AccountsResponse {
|
|
|
2537
2537
|
}
|
|
2538
2538
|
interface GetMyUserAccountsRequest {
|
|
2539
2539
|
/** Limited to max 20 at a single request */
|
|
2540
|
-
paging?: Paging
|
|
2540
|
+
paging?: Paging;
|
|
2541
2541
|
}
|
|
2542
2542
|
interface GetAccountRequest {
|
|
2543
2543
|
/** the account id that it's data should be retrieved */
|
|
@@ -2554,7 +2554,7 @@ interface GetAccountsRequest {
|
|
|
2554
2554
|
}
|
|
2555
2555
|
interface CreateAccountRequest {
|
|
2556
2556
|
/** The user to create under the new account, with the roles defined in `roles`. */
|
|
2557
|
-
user: User
|
|
2557
|
+
user: User;
|
|
2558
2558
|
/**
|
|
2559
2559
|
* Roles to be assigned to the user in the new account. To retrieve all available roles, call Get Roles Info in the Users API.
|
|
2560
2560
|
* Default: OWNER.
|
|
@@ -2562,7 +2562,7 @@ interface CreateAccountRequest {
|
|
|
2562
2562
|
roles?: string[] | null;
|
|
2563
2563
|
}
|
|
2564
2564
|
/** A User to be created under an implicitly provided accountId: must have a unique email. */
|
|
2565
|
-
interface User
|
|
2565
|
+
interface User {
|
|
2566
2566
|
/** User's unique email address details. Required. */
|
|
2567
2567
|
email?: Email;
|
|
2568
2568
|
/** User's single sign on identity, when the user is identified via SSO authentication response token params, as specified by [OpenID Connect](https://openid.net/developers/how-connect-works/) (aka. OIDC) protocol. */
|
|
@@ -2715,9 +2715,9 @@ interface GetParentAccountInfoRequest {
|
|
|
2715
2715
|
}
|
|
2716
2716
|
interface GetParentAccountInfoResponse {
|
|
2717
2717
|
/** The info of the parent account, if the account has a parent */
|
|
2718
|
-
parentAccountInfo?: AccountInfo
|
|
2718
|
+
parentAccountInfo?: AccountInfo;
|
|
2719
2719
|
}
|
|
2720
|
-
interface AccountInfo
|
|
2720
|
+
interface AccountInfo {
|
|
2721
2721
|
/** The name of the account */
|
|
2722
2722
|
name?: string | null;
|
|
2723
2723
|
/** The url of the image of the account */
|
|
@@ -2725,7 +2725,7 @@ interface AccountInfo$2 {
|
|
|
2725
2725
|
}
|
|
2726
2726
|
interface GetSubAccountsRequest {
|
|
2727
2727
|
/** Offset-based pagination for the response. Default page size is 20, max page size is 50 */
|
|
2728
|
-
paging?: Paging
|
|
2728
|
+
paging?: Paging;
|
|
2729
2729
|
}
|
|
2730
2730
|
interface GetSubAccountsResponse {
|
|
2731
2731
|
/** The sub accounts of the target account */
|
|
@@ -2752,7 +2752,7 @@ interface ListChildAccountsRequest {
|
|
|
2752
2752
|
* Paging options to limit and offset the number of items.
|
|
2753
2753
|
* Default: 20. Max: 50.
|
|
2754
2754
|
*/
|
|
2755
|
-
paging?: Paging
|
|
2755
|
+
paging?: Paging;
|
|
2756
2756
|
}
|
|
2757
2757
|
interface ListChildAccountsResponse {
|
|
2758
2758
|
/** The requested child accounts. */
|
|
@@ -2785,7 +2785,7 @@ interface ListChildAccountsOptions {
|
|
|
2785
2785
|
* Paging options to limit and offset the number of items.
|
|
2786
2786
|
* Default: 20. Max: 50.
|
|
2787
2787
|
*/
|
|
2788
|
-
paging?: Paging
|
|
2788
|
+
paging?: Paging;
|
|
2789
2789
|
}
|
|
2790
2790
|
|
|
2791
2791
|
declare function createAccount$1(httpClient: HttpClient): CreateAccountSignature;
|
|
@@ -2798,7 +2798,7 @@ interface CreateAccountSignature {
|
|
|
2798
2798
|
* @param - The user to create under the new account, with the roles defined in `roles`.
|
|
2799
2799
|
* @param - Filter options.
|
|
2800
2800
|
*/
|
|
2801
|
-
(user: User
|
|
2801
|
+
(user: User, options?: CreateAccountOptions | undefined): Promise<CreateAccountResponse & CreateAccountResponseNonNullableFields>;
|
|
2802
2802
|
}
|
|
2803
2803
|
declare function listChildAccounts$1(httpClient: HttpClient): ListChildAccountsSignature;
|
|
2804
2804
|
interface ListChildAccountsSignature {
|
|
@@ -2815,895 +2815,62 @@ interface ListChildAccountsSignature {
|
|
|
2815
2815
|
declare const createAccount: MaybeContext<BuildRESTFunction<typeof createAccount$1> & typeof createAccount$1>;
|
|
2816
2816
|
declare const listChildAccounts: MaybeContext<BuildRESTFunction<typeof listChildAccounts$1> & typeof listChildAccounts$1>;
|
|
2817
2817
|
|
|
2818
|
-
type context$
|
|
2819
|
-
type context$
|
|
2820
|
-
type context$
|
|
2821
|
-
type context$
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
type context$
|
|
2825
|
-
type context$
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
type context$
|
|
2829
|
-
type context$
|
|
2830
|
-
type context$
|
|
2831
|
-
type context$
|
|
2832
|
-
type context$
|
|
2833
|
-
type context$
|
|
2834
|
-
type context$
|
|
2835
|
-
type context$
|
|
2836
|
-
type context$
|
|
2837
|
-
type context$
|
|
2838
|
-
type context$
|
|
2839
|
-
type context$
|
|
2840
|
-
type context$
|
|
2841
|
-
type context$
|
|
2842
|
-
type context$
|
|
2843
|
-
type context$
|
|
2844
|
-
type context$
|
|
2845
|
-
type context$
|
|
2846
|
-
type context$
|
|
2847
|
-
type context$
|
|
2848
|
-
type context$
|
|
2849
|
-
type context$
|
|
2850
|
-
type context$
|
|
2851
|
-
type context$
|
|
2852
|
-
type context$
|
|
2853
|
-
type context$
|
|
2854
|
-
type context$
|
|
2855
|
-
type context$
|
|
2856
|
-
type context$
|
|
2857
|
-
type context$
|
|
2858
|
-
type context$
|
|
2859
|
-
type context$
|
|
2860
|
-
type context$
|
|
2861
|
-
type context$
|
|
2862
|
-
type context$
|
|
2863
|
-
type context$
|
|
2864
|
-
type context$
|
|
2865
|
-
type context$
|
|
2866
|
-
type context$
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
/**
|
|
2875
|
-
* Invite ID.
|
|
2876
|
-
* @readonly
|
|
2877
|
-
*/
|
|
2878
|
-
_id?: string;
|
|
2879
|
-
/**
|
|
2880
|
-
* Account ID.
|
|
2881
|
-
* @readonly
|
|
2882
|
-
*/
|
|
2883
|
-
accountId?: string;
|
|
2884
|
-
/** Email address where the invite was sent. */
|
|
2885
|
-
email?: string;
|
|
2886
|
-
/**
|
|
2887
|
-
* Deprecated. Use `policyIds`.
|
|
2888
|
-
* @deprecated
|
|
2889
|
-
*/
|
|
2890
|
-
role?: string;
|
|
2891
|
-
/**
|
|
2892
|
-
* Deprecated. Use `inviterAccountId`.
|
|
2893
|
-
* @readonly
|
|
2894
|
-
* @deprecated
|
|
2895
|
-
*/
|
|
2896
|
-
inviterId?: string;
|
|
2897
|
-
/**
|
|
2898
|
-
* Invite status.
|
|
2899
|
-
*
|
|
2900
|
-
* Supported values:
|
|
2901
|
-
* - **Pending:** The invite has been sent and is valid, waiting for the user's response.
|
|
2902
|
-
* - **Used:** The invite has been accepted.
|
|
2903
|
-
* - **Deleted:** The invite has been deleted or revoked.
|
|
2904
|
-
* - **Declined:** The user has declined the invite.
|
|
2905
|
-
* - **Expired:** The invite has expired without being accepted.
|
|
2906
|
-
*/
|
|
2907
|
-
status?: InviteStatus$3;
|
|
2908
|
-
/** Link to accept the invite. */
|
|
2909
|
-
acceptLink?: string;
|
|
2910
|
-
/**
|
|
2911
|
-
* Inviting account ID.
|
|
2912
|
-
* @readonly
|
|
2913
|
-
*/
|
|
2914
|
-
inviterAccountId?: string;
|
|
2915
|
-
/**
|
|
2916
|
-
* Account ID that accepted the invite. Populated only once the invite is accepted.
|
|
2917
|
-
* @readonly
|
|
2918
|
-
*/
|
|
2919
|
-
acceptedByAccountId?: string | null;
|
|
2920
|
-
/** Date the invite was created. */
|
|
2921
|
-
dateCreated?: Date | null;
|
|
2922
|
-
/** Role IDs included in the invite. */
|
|
2923
|
-
policyIds?: string[];
|
|
2924
|
-
/** Date the invite was last updated. */
|
|
2925
|
-
dateUpdated?: Date | null;
|
|
2926
|
-
/** Assets the users are invited to join. */
|
|
2927
|
-
assignments?: InviteResourceAssignment$1[];
|
|
2928
|
-
/** Invite expiration date. */
|
|
2929
|
-
expirationDate?: Date | null;
|
|
2930
|
-
}
|
|
2931
|
-
/** Invite status stating whether the invite was accepted, waiting to be accepted, deleted etc.. */
|
|
2932
|
-
declare enum InviteStatus$3 {
|
|
2933
|
-
Pending = "Pending",
|
|
2934
|
-
Used = "Used",
|
|
2935
|
-
Deleted = "Deleted",
|
|
2936
|
-
Declined = "Declined",
|
|
2937
|
-
Expired = "Expired"
|
|
2938
|
-
}
|
|
2939
|
-
interface InviteResourceAssignment$1 {
|
|
2940
|
-
/** Role ID. */
|
|
2941
|
-
policyId?: string;
|
|
2942
|
-
/** Resources the user will be able to access. */
|
|
2943
|
-
assignments?: InviteAssignment$1[];
|
|
2944
|
-
}
|
|
2945
|
-
interface InviteAssignment$1 {
|
|
2946
|
-
/** Full name of resource to be assigned. */
|
|
2947
|
-
fullNameResource?: FullNameResource$1;
|
|
2948
|
-
}
|
|
2949
|
-
interface FullNameResource$1 extends FullNameResourceResourceContextOneOf$1 {
|
|
2950
|
-
/** Specific site details. */
|
|
2951
|
-
siteContext?: SiteResourceContext$1;
|
|
2952
|
-
/** Specific account details. */
|
|
2953
|
-
accountContext?: AccountResourceContext$1;
|
|
2954
|
-
}
|
|
2955
|
-
/** @oneof */
|
|
2956
|
-
interface FullNameResourceResourceContextOneOf$1 {
|
|
2957
|
-
/** Specific site details. */
|
|
2958
|
-
siteContext?: SiteResourceContext$1;
|
|
2959
|
-
/** Specific account details. */
|
|
2960
|
-
accountContext?: AccountResourceContext$1;
|
|
2961
|
-
}
|
|
2962
|
-
/** 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) */
|
|
2963
|
-
interface SiteResourceContext$1 {
|
|
2964
|
-
/** Site ID. */
|
|
2965
|
-
metasiteId?: string;
|
|
2966
|
-
}
|
|
2967
|
-
/** 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) */
|
|
2968
|
-
interface AccountResourceContext$1 {
|
|
2969
|
-
/** Account ID. */
|
|
2970
|
-
accountId?: string;
|
|
2971
|
-
}
|
|
2972
|
-
interface OrganizationResourceContext$1 {
|
|
2973
|
-
}
|
|
2974
|
-
/**
|
|
2975
|
-
* A custom resource. Is used to represent some asset that is not a direct resource context (site or account), but something custom.
|
|
2976
|
-
* For example: payment method, blog post, domain, logo.
|
|
2977
|
-
*/
|
|
2978
|
-
interface Resource$2 {
|
|
2979
|
-
/** The resource id. */
|
|
2980
|
-
_id?: string | null;
|
|
2981
|
-
/** The resource type */
|
|
2982
|
-
type?: string | null;
|
|
2983
|
-
}
|
|
2984
|
-
interface PolicyCondition$1 {
|
|
2985
|
-
/** The type of the condition */
|
|
2986
|
-
condition?: ConditionType$1;
|
|
2987
|
-
}
|
|
2988
|
-
interface ConditionType$1 extends ConditionTypeOfOneOf$1 {
|
|
2989
|
-
/** @deprecated */
|
|
2990
|
-
simpleCondition?: SimpleCondition$1;
|
|
2991
|
-
/** A logic combination between several conditions, with an operator between them */
|
|
2992
|
-
joinedConditions?: JoinedCondition$1;
|
|
2993
|
-
/** @deprecated */
|
|
2994
|
-
environmentCondition?: EnvironmentCondition$1;
|
|
2995
|
-
/** A single condition */
|
|
2996
|
-
condition?: Condition$2;
|
|
2997
|
-
}
|
|
2998
|
-
/** @oneof */
|
|
2999
|
-
interface ConditionTypeOfOneOf$1 {
|
|
3000
|
-
/** @deprecated */
|
|
3001
|
-
simpleCondition?: SimpleCondition$1;
|
|
3002
|
-
/** A logic combination between several conditions, with an operator between them */
|
|
3003
|
-
joinedConditions?: JoinedCondition$1;
|
|
3004
|
-
/** @deprecated */
|
|
3005
|
-
environmentCondition?: EnvironmentCondition$1;
|
|
3006
|
-
/** A single condition */
|
|
3007
|
-
condition?: Condition$2;
|
|
3008
|
-
}
|
|
3009
|
-
interface SimpleCondition$1 {
|
|
3010
|
-
attrName?: string;
|
|
3011
|
-
value?: SimpleConditionValue$1;
|
|
3012
|
-
op?: SimpleConditionOperator$1;
|
|
3013
|
-
conditionModelId?: string;
|
|
3014
|
-
}
|
|
3015
|
-
interface SimpleConditionValue$1 extends SimpleConditionValueValueOneOf$1 {
|
|
3016
|
-
attrName?: string;
|
|
3017
|
-
stringValue?: string;
|
|
3018
|
-
boolValue?: boolean;
|
|
3019
|
-
}
|
|
3020
|
-
/** @oneof */
|
|
3021
|
-
interface SimpleConditionValueValueOneOf$1 {
|
|
3022
|
-
attrName?: string;
|
|
3023
|
-
stringValue?: string;
|
|
3024
|
-
boolValue?: boolean;
|
|
3025
|
-
}
|
|
3026
|
-
declare enum SimpleConditionOperator$1 {
|
|
3027
|
-
UNKNOWN_SIMPLE_OP = "UNKNOWN_SIMPLE_OP",
|
|
3028
|
-
EQUAL = "EQUAL"
|
|
3029
|
-
}
|
|
3030
|
-
interface JoinedCondition$1 {
|
|
3031
|
-
/** The operator that should be used when evaluating the condition */
|
|
3032
|
-
op?: JoinedConditionOperator$1;
|
|
3033
|
-
/** The conditions that should be evaluated, and then joined using the operator provided */
|
|
3034
|
-
conditions?: ConditionType$1[];
|
|
3035
|
-
}
|
|
3036
|
-
declare enum JoinedConditionOperator$1 {
|
|
3037
|
-
UNKNOWN_JOIN_OP = "UNKNOWN_JOIN_OP",
|
|
3038
|
-
OR = "OR",
|
|
3039
|
-
AND = "AND"
|
|
3040
|
-
}
|
|
3041
|
-
interface EnvironmentCondition$1 extends EnvironmentConditionConditionOneOf$1 {
|
|
3042
|
-
experimentCondition?: ExperimentCondition$1;
|
|
3043
|
-
}
|
|
3044
|
-
/** @oneof */
|
|
3045
|
-
interface EnvironmentConditionConditionOneOf$1 {
|
|
3046
|
-
experimentCondition?: ExperimentCondition$1;
|
|
3047
|
-
}
|
|
3048
|
-
interface ExperimentCondition$1 {
|
|
3049
|
-
spec?: string;
|
|
3050
|
-
fallbackValue?: string;
|
|
3051
|
-
expectedValue?: string;
|
|
3052
|
-
}
|
|
3053
|
-
interface Condition$2 {
|
|
3054
|
-
/** The unique identifier of the condition model. Indicates which actions the condition is working on */
|
|
3055
|
-
conditionModelId?: string;
|
|
3056
|
-
/** The operator that should be evaluated */
|
|
3057
|
-
operator?: ConditionOperator$1;
|
|
3058
|
-
}
|
|
3059
|
-
interface ConditionOperator$1 extends ConditionOperatorOperatorsOneOf$1 {
|
|
3060
|
-
/** Comparison of equality - will be evaluated to true if the given parties are equal */
|
|
3061
|
-
equals?: EqualOperator$1;
|
|
3062
|
-
/** Regex operator - will be evaluated to true if the given value matches the provided regex */
|
|
3063
|
-
like?: LikeOperator$1;
|
|
3064
|
-
/** Petri experiment - will be evaluated using petri. */
|
|
3065
|
-
experiment?: ExperimentOperator$1;
|
|
3066
|
-
/** Operator that indicates a dependency on another subject being allowed to perform something. */
|
|
3067
|
-
dependOn?: DependOnOperator$1;
|
|
3068
|
-
}
|
|
3069
|
-
/** @oneof */
|
|
3070
|
-
interface ConditionOperatorOperatorsOneOf$1 {
|
|
3071
|
-
/** Comparison of equality - will be evaluated to true if the given parties are equal */
|
|
3072
|
-
equals?: EqualOperator$1;
|
|
3073
|
-
/** Regex operator - will be evaluated to true if the given value matches the provided regex */
|
|
3074
|
-
like?: LikeOperator$1;
|
|
3075
|
-
/** Petri experiment - will be evaluated using petri. */
|
|
3076
|
-
experiment?: ExperimentOperator$1;
|
|
3077
|
-
/** Operator that indicates a dependency on another subject being allowed to perform something. */
|
|
3078
|
-
dependOn?: DependOnOperator$1;
|
|
3079
|
-
}
|
|
3080
|
-
interface EqualOperator$1 {
|
|
3081
|
-
/** The attribute which should be compared. The attribute will be first evaluated to a value, and then compared the other side (attribute/value) */
|
|
3082
|
-
attrName?: string;
|
|
3083
|
-
/** The value to compare to. If the two parties are equal - we will return true. */
|
|
3084
|
-
value?: ConditionValue$1;
|
|
3085
|
-
}
|
|
3086
|
-
interface ConditionValue$1 extends ConditionValueValueOneOf$1 {
|
|
3087
|
-
/** an attribute. We'll first retrieve the value of the attribute (from the request or from pre-indexed values), and then compare to what it needs to be compared with. */
|
|
3088
|
-
attrName?: string;
|
|
3089
|
-
/** a value with a string type. Will be compared to the attribute provided, and be true only if they match the operator. */
|
|
3090
|
-
stringValue?: string;
|
|
3091
|
-
/** a value with a boolean type. Will be compared to the attribute provided, and be true only if they match the operator. */
|
|
3092
|
-
boolValue?: boolean;
|
|
3093
|
-
}
|
|
3094
|
-
/** @oneof */
|
|
3095
|
-
interface ConditionValueValueOneOf$1 {
|
|
3096
|
-
/** an attribute. We'll first retrieve the value of the attribute (from the request or from pre-indexed values), and then compare to what it needs to be compared with. */
|
|
3097
|
-
attrName?: string;
|
|
3098
|
-
/** a value with a string type. Will be compared to the attribute provided, and be true only if they match the operator. */
|
|
3099
|
-
stringValue?: string;
|
|
3100
|
-
/** a value with a boolean type. Will be compared to the attribute provided, and be true only if they match the operator. */
|
|
3101
|
-
boolValue?: boolean;
|
|
3102
|
-
}
|
|
3103
|
-
interface LikeOperator$1 {
|
|
3104
|
-
/** The attribute which should be compared. The attribute will be first evaluated to a value, and then compared the regex values provided. */
|
|
3105
|
-
attrName?: string;
|
|
3106
|
-
/** The regex values which the attribute value should be evaluated on. If the attribute value matches at least one of the regular expressions provided - we will return true */
|
|
3107
|
-
values?: string[];
|
|
3108
|
-
}
|
|
3109
|
-
interface ExperimentOperator$1 {
|
|
3110
|
-
/** The spec to conduct the experiment on. */
|
|
3111
|
-
spec?: string;
|
|
3112
|
-
/** The value to use if the experiment could not be conducted */
|
|
3113
|
-
fallbackValue?: string;
|
|
3114
|
-
/** The expected value of the experiment conduction. If it matches the actual value - true will be returned. Otherwise - false. */
|
|
3115
|
-
expectedValue?: string;
|
|
3116
|
-
}
|
|
3117
|
-
/** Implies that the policy takes affect only if the depend on subject is permitted as well. */
|
|
3118
|
-
interface DependOnOperator$1 {
|
|
3119
|
-
/** The subject on which the current entry depends on. If the subject is allowed to perform what the query was about - the condition will be evaluated to true. Otherwise - false */
|
|
3120
|
-
dependOnSubject?: Subject$2;
|
|
3121
|
-
}
|
|
3122
|
-
interface Subject$2 {
|
|
3123
|
-
/** ID of identity assigned to the asset. */
|
|
3124
|
-
_id?: string;
|
|
3125
|
-
/** Type of identity assigned to the asset. Supported subject types include user IDs, account IDs, and app IDs. */
|
|
3126
|
-
subjectType?: SubjectType$3;
|
|
3127
|
-
/** Context of identity assigned to the asset. For example, a `subjectType` = `USER` will have `context` = `ACCOUNT`. */
|
|
3128
|
-
context?: SubjectContext$2;
|
|
3129
|
-
}
|
|
3130
|
-
declare enum SubjectType$3 {
|
|
3131
|
-
UNKNOWN = "UNKNOWN",
|
|
3132
|
-
ACCOUNT = "ACCOUNT",
|
|
3133
|
-
USER = "USER",
|
|
3134
|
-
USER_GROUP = "USER_GROUP",
|
|
3135
|
-
MEMBER_GROUP = "MEMBER_GROUP",
|
|
3136
|
-
VISITOR_GROUP = "VISITOR_GROUP",
|
|
3137
|
-
EXTERNAL_APP = "EXTERNAL_APP",
|
|
3138
|
-
ACCOUNT_GROUP = "ACCOUNT_GROUP",
|
|
3139
|
-
WIX_APP = "WIX_APP"
|
|
3140
|
-
}
|
|
3141
|
-
interface SubjectContext$2 {
|
|
3142
|
-
_id?: string;
|
|
3143
|
-
contextType?: SubjectContextType$2;
|
|
3144
|
-
}
|
|
3145
|
-
declare enum SubjectContextType$2 {
|
|
3146
|
-
UNKNOWN_CTX = "UNKNOWN_CTX",
|
|
3147
|
-
ORG_CTX = "ORG_CTX",
|
|
3148
|
-
ACCOUNT_CTX = "ACCOUNT_CTX"
|
|
3149
|
-
}
|
|
3150
|
-
interface GetAccountInvitesRequest {
|
|
3151
|
-
}
|
|
3152
|
-
interface GetAccountInvitesResponse {
|
|
3153
|
-
invites?: AccountInvite$1[];
|
|
3154
|
-
}
|
|
3155
|
-
interface GetAccountInviteRequest {
|
|
3156
|
-
_id?: string;
|
|
3157
|
-
}
|
|
3158
|
-
interface GetAccountInviteResponse {
|
|
3159
|
-
invite?: AccountInvite$1;
|
|
3160
|
-
}
|
|
3161
|
-
interface AccountInviteRequest {
|
|
3162
|
-
role?: string;
|
|
3163
|
-
email?: string;
|
|
3164
|
-
policyIds?: string[];
|
|
3165
|
-
}
|
|
3166
|
-
interface AccountInviteResponse {
|
|
3167
|
-
invite?: AccountInvite$1;
|
|
3168
|
-
}
|
|
3169
|
-
interface CreateInviteRequest {
|
|
3170
|
-
/** Array of potential team members' email addresses and their corresponding assignments (how they will be assigned when they accept the invite). */
|
|
3171
|
-
subjectsAssignments: SubjectInviteAssignments[];
|
|
3172
|
-
/** Language of emails to send. Relevant only for recipients that don't currently have a Wix user ID. Default: Site owner's language. */
|
|
3173
|
-
defaultEmailLanguage?: string | null;
|
|
3174
|
-
}
|
|
3175
|
-
interface SubjectInviteAssignments {
|
|
3176
|
-
/** Invitee's email address. */
|
|
3177
|
-
subjectEmail?: string;
|
|
3178
|
-
/** 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. */
|
|
3179
|
-
assignments?: InviteResourceAssignment$1[];
|
|
3180
|
-
}
|
|
3181
|
-
interface CreateInviteResponse {
|
|
3182
|
-
/** Invites that were sent successfully. */
|
|
3183
|
-
successfulInvites?: AccountInvite$1[];
|
|
3184
|
-
/** Invites that failed. */
|
|
3185
|
-
failedInvites?: InviteFailure[];
|
|
3186
|
-
}
|
|
3187
|
-
interface InviteFailure {
|
|
3188
|
-
/** Email address of the failed invite. */
|
|
3189
|
-
subjectEmail?: string;
|
|
3190
|
-
/** Error description. */
|
|
3191
|
-
errorMessage?: string;
|
|
3192
|
-
}
|
|
3193
|
-
interface BulkAccountInviteRequest {
|
|
3194
|
-
role?: string;
|
|
3195
|
-
emails?: string[];
|
|
3196
|
-
policyIds?: string[];
|
|
3197
|
-
}
|
|
3198
|
-
interface BulkAccountInviteResponse {
|
|
3199
|
-
invites?: AccountInvite$1[];
|
|
3200
|
-
failedEmails?: string[];
|
|
3201
|
-
}
|
|
3202
|
-
interface ResendAccountInviteRequest {
|
|
3203
|
-
inviteId?: string;
|
|
3204
|
-
/** The language of emails that will be used only for recipients that don't have a user, in case this parameter is unspecified, the sender's language will be used instead */
|
|
3205
|
-
defaultEmailLanguage?: string | null;
|
|
3206
|
-
}
|
|
3207
|
-
interface AcceptAccountInviteRequest {
|
|
3208
|
-
inviteToken?: string;
|
|
3209
|
-
}
|
|
3210
|
-
interface AcceptAccountInviteResponse {
|
|
3211
|
-
}
|
|
3212
|
-
interface RevokeAccountInviteRequest {
|
|
3213
|
-
inviteId?: string;
|
|
3214
|
-
}
|
|
3215
|
-
interface RevokeAccountInviteResponse {
|
|
3216
|
-
}
|
|
3217
|
-
interface UpdateAccountInviteRequest {
|
|
3218
|
-
inviteId?: string;
|
|
3219
|
-
role?: string;
|
|
3220
|
-
policyIds?: string[];
|
|
3221
|
-
}
|
|
3222
|
-
interface UpdateAccountInviteResponse {
|
|
3223
|
-
}
|
|
3224
|
-
interface UpdateAccountInviteAssignmentsRequest {
|
|
3225
|
-
inviteId?: string;
|
|
3226
|
-
assignments?: InviteResourceAssignment$1[];
|
|
3227
|
-
}
|
|
3228
|
-
interface UpdateAccountInviteAssignmentsResponse {
|
|
3229
|
-
}
|
|
3230
|
-
interface ParseAccountInviteTokenRequest {
|
|
3231
|
-
inviteToken?: string;
|
|
3232
|
-
}
|
|
3233
|
-
interface ParseAccountInviteTokenResponse {
|
|
3234
|
-
inviteId?: string;
|
|
3235
|
-
accountId?: string;
|
|
3236
|
-
status?: InviteStatus$3;
|
|
3237
|
-
}
|
|
3238
|
-
interface SiteResourceContextNonNullableFields {
|
|
3239
|
-
metasiteId: string;
|
|
3240
|
-
}
|
|
3241
|
-
interface AccountResourceContextNonNullableFields {
|
|
3242
|
-
accountId: string;
|
|
3243
|
-
}
|
|
3244
|
-
interface FullNameResourceNonNullableFields {
|
|
3245
|
-
siteContext?: SiteResourceContextNonNullableFields;
|
|
3246
|
-
accountContext?: AccountResourceContextNonNullableFields;
|
|
3247
|
-
}
|
|
3248
|
-
interface SimpleConditionValueNonNullableFields {
|
|
3249
|
-
attrName: string;
|
|
3250
|
-
stringValue: string;
|
|
3251
|
-
boolValue: boolean;
|
|
3252
|
-
}
|
|
3253
|
-
interface SimpleConditionNonNullableFields {
|
|
3254
|
-
attrName: string;
|
|
3255
|
-
value?: SimpleConditionValueNonNullableFields;
|
|
3256
|
-
op: SimpleConditionOperator$1;
|
|
3257
|
-
conditionModelId: string;
|
|
3258
|
-
}
|
|
3259
|
-
interface JoinedConditionNonNullableFields {
|
|
3260
|
-
op: JoinedConditionOperator$1;
|
|
3261
|
-
conditions: ConditionTypeNonNullableFields[];
|
|
3262
|
-
}
|
|
3263
|
-
interface ExperimentConditionNonNullableFields {
|
|
3264
|
-
spec: string;
|
|
3265
|
-
fallbackValue: string;
|
|
3266
|
-
expectedValue: string;
|
|
3267
|
-
}
|
|
3268
|
-
interface EnvironmentConditionNonNullableFields {
|
|
3269
|
-
experimentCondition?: ExperimentConditionNonNullableFields;
|
|
3270
|
-
}
|
|
3271
|
-
interface ConditionValueNonNullableFields {
|
|
3272
|
-
attrName: string;
|
|
3273
|
-
stringValue: string;
|
|
3274
|
-
boolValue: boolean;
|
|
3275
|
-
}
|
|
3276
|
-
interface EqualOperatorNonNullableFields {
|
|
3277
|
-
attrName: string;
|
|
3278
|
-
value?: ConditionValueNonNullableFields;
|
|
3279
|
-
}
|
|
3280
|
-
interface LikeOperatorNonNullableFields {
|
|
3281
|
-
attrName: string;
|
|
3282
|
-
values: string[];
|
|
3283
|
-
}
|
|
3284
|
-
interface ExperimentOperatorNonNullableFields {
|
|
3285
|
-
spec: string;
|
|
3286
|
-
fallbackValue: string;
|
|
3287
|
-
expectedValue: string;
|
|
3288
|
-
}
|
|
3289
|
-
interface SubjectContextNonNullableFields {
|
|
3290
|
-
_id: string;
|
|
3291
|
-
contextType: SubjectContextType$2;
|
|
3292
|
-
}
|
|
3293
|
-
interface SubjectNonNullableFields {
|
|
3294
|
-
_id: string;
|
|
3295
|
-
subjectType: SubjectType$3;
|
|
3296
|
-
context?: SubjectContextNonNullableFields;
|
|
3297
|
-
}
|
|
3298
|
-
interface DependOnOperatorNonNullableFields {
|
|
3299
|
-
dependOnSubject?: SubjectNonNullableFields;
|
|
3300
|
-
}
|
|
3301
|
-
interface ConditionOperatorNonNullableFields {
|
|
3302
|
-
equals?: EqualOperatorNonNullableFields;
|
|
3303
|
-
like?: LikeOperatorNonNullableFields;
|
|
3304
|
-
experiment?: ExperimentOperatorNonNullableFields;
|
|
3305
|
-
dependOn?: DependOnOperatorNonNullableFields;
|
|
3306
|
-
}
|
|
3307
|
-
interface ConditionNonNullableFields {
|
|
3308
|
-
conditionModelId: string;
|
|
3309
|
-
operator?: ConditionOperatorNonNullableFields;
|
|
3310
|
-
}
|
|
3311
|
-
interface ConditionTypeNonNullableFields {
|
|
3312
|
-
simpleCondition?: SimpleConditionNonNullableFields;
|
|
3313
|
-
joinedConditions?: JoinedConditionNonNullableFields;
|
|
3314
|
-
environmentCondition?: EnvironmentConditionNonNullableFields;
|
|
3315
|
-
condition?: ConditionNonNullableFields;
|
|
3316
|
-
}
|
|
3317
|
-
interface PolicyConditionNonNullableFields {
|
|
3318
|
-
condition?: ConditionTypeNonNullableFields;
|
|
3319
|
-
}
|
|
3320
|
-
interface InviteAssignmentNonNullableFields {
|
|
3321
|
-
fullNameResource?: FullNameResourceNonNullableFields;
|
|
3322
|
-
condition?: PolicyConditionNonNullableFields;
|
|
3323
|
-
}
|
|
3324
|
-
interface InviteResourceAssignmentNonNullableFields {
|
|
3325
|
-
policyId: string;
|
|
3326
|
-
assignments: InviteAssignmentNonNullableFields[];
|
|
3327
|
-
}
|
|
3328
|
-
interface AccountInviteNonNullableFields {
|
|
3329
|
-
_id: string;
|
|
3330
|
-
accountId: string;
|
|
3331
|
-
email: string;
|
|
3332
|
-
role: string;
|
|
3333
|
-
inviterId: string;
|
|
3334
|
-
status: InviteStatus$3;
|
|
3335
|
-
acceptLink: string;
|
|
3336
|
-
inviterAccountId: string;
|
|
3337
|
-
policyIds: string[];
|
|
3338
|
-
assignments: InviteResourceAssignmentNonNullableFields[];
|
|
3339
|
-
}
|
|
3340
|
-
interface InviteFailureNonNullableFields {
|
|
3341
|
-
subjectEmail: string;
|
|
3342
|
-
errorMessage: string;
|
|
3343
|
-
}
|
|
3344
|
-
interface CreateInviteResponseNonNullableFields {
|
|
3345
|
-
successfulInvites: AccountInviteNonNullableFields[];
|
|
3346
|
-
failedInvites: InviteFailureNonNullableFields[];
|
|
3347
|
-
}
|
|
3348
|
-
interface CreateInviteOptions {
|
|
3349
|
-
/** Language of emails to send. Relevant only for recipients that don't currently have a Wix user ID. Default: Site owner's language. */
|
|
3350
|
-
defaultEmailLanguage?: string | null;
|
|
3351
|
-
}
|
|
3352
|
-
|
|
3353
|
-
declare function createInvite$1(httpClient: HttpClient): CreateInviteSignature;
|
|
3354
|
-
interface CreateInviteSignature {
|
|
3355
|
-
/**
|
|
3356
|
-
* Creates and sends invite emails to a list of potential team members, inviting them to become team members of the requesting account.
|
|
3357
|
-
* The invites may be limited to a specific resource (site or other asset).
|
|
3358
|
-
* Maximum 50 invitees can be specified per call.
|
|
3359
|
-
*
|
|
3360
|
-
* > **Important**: This call requires an account level API key and cannot be authenticated with the standard authorization header. API keys are currently available to selected beta users only.
|
|
3361
|
-
* @param - Array of potential team members' email addresses and their corresponding assignments (how they will be assigned when they accept the invite).
|
|
3362
|
-
* @param - Filter options.
|
|
3363
|
-
*/
|
|
3364
|
-
(subjectsAssignments: SubjectInviteAssignments[], options?: CreateInviteOptions | undefined): Promise<CreateInviteResponse & CreateInviteResponseNonNullableFields>;
|
|
3365
|
-
}
|
|
3366
|
-
|
|
3367
|
-
declare const createInvite: MaybeContext<BuildRESTFunction<typeof createInvite$1> & typeof createInvite$1>;
|
|
3368
|
-
|
|
3369
|
-
type context$4_AcceptAccountInviteRequest = AcceptAccountInviteRequest;
|
|
3370
|
-
type context$4_AcceptAccountInviteResponse = AcceptAccountInviteResponse;
|
|
3371
|
-
type context$4_AccountInviteRequest = AccountInviteRequest;
|
|
3372
|
-
type context$4_AccountInviteResponse = AccountInviteResponse;
|
|
3373
|
-
type context$4_BulkAccountInviteRequest = BulkAccountInviteRequest;
|
|
3374
|
-
type context$4_BulkAccountInviteResponse = BulkAccountInviteResponse;
|
|
3375
|
-
type context$4_CreateInviteOptions = CreateInviteOptions;
|
|
3376
|
-
type context$4_CreateInviteRequest = CreateInviteRequest;
|
|
3377
|
-
type context$4_CreateInviteResponse = CreateInviteResponse;
|
|
3378
|
-
type context$4_CreateInviteResponseNonNullableFields = CreateInviteResponseNonNullableFields;
|
|
3379
|
-
type context$4_GetAccountInviteRequest = GetAccountInviteRequest;
|
|
3380
|
-
type context$4_GetAccountInviteResponse = GetAccountInviteResponse;
|
|
3381
|
-
type context$4_GetAccountInvitesRequest = GetAccountInvitesRequest;
|
|
3382
|
-
type context$4_GetAccountInvitesResponse = GetAccountInvitesResponse;
|
|
3383
|
-
type context$4_InviteFailure = InviteFailure;
|
|
3384
|
-
type context$4_ParseAccountInviteTokenRequest = ParseAccountInviteTokenRequest;
|
|
3385
|
-
type context$4_ParseAccountInviteTokenResponse = ParseAccountInviteTokenResponse;
|
|
3386
|
-
type context$4_ResendAccountInviteRequest = ResendAccountInviteRequest;
|
|
3387
|
-
type context$4_RevokeAccountInviteRequest = RevokeAccountInviteRequest;
|
|
3388
|
-
type context$4_RevokeAccountInviteResponse = RevokeAccountInviteResponse;
|
|
3389
|
-
type context$4_SubjectInviteAssignments = SubjectInviteAssignments;
|
|
3390
|
-
type context$4_UpdateAccountInviteAssignmentsRequest = UpdateAccountInviteAssignmentsRequest;
|
|
3391
|
-
type context$4_UpdateAccountInviteAssignmentsResponse = UpdateAccountInviteAssignmentsResponse;
|
|
3392
|
-
type context$4_UpdateAccountInviteRequest = UpdateAccountInviteRequest;
|
|
3393
|
-
type context$4_UpdateAccountInviteResponse = UpdateAccountInviteResponse;
|
|
3394
|
-
declare const context$4_createInvite: typeof createInvite;
|
|
3395
|
-
declare namespace context$4 {
|
|
3396
|
-
export { type context$4_AcceptAccountInviteRequest as AcceptAccountInviteRequest, type context$4_AcceptAccountInviteResponse as AcceptAccountInviteResponse, type AccountInvite$1 as AccountInvite, type context$4_AccountInviteRequest as AccountInviteRequest, type context$4_AccountInviteResponse as AccountInviteResponse, type AccountResourceContext$1 as AccountResourceContext, type context$4_BulkAccountInviteRequest as BulkAccountInviteRequest, type context$4_BulkAccountInviteResponse as BulkAccountInviteResponse, type Condition$2 as Condition, type ConditionOperator$1 as ConditionOperator, type ConditionOperatorOperatorsOneOf$1 as ConditionOperatorOperatorsOneOf, type ConditionType$1 as ConditionType, type ConditionTypeOfOneOf$1 as ConditionTypeOfOneOf, type ConditionValue$1 as ConditionValue, type ConditionValueValueOneOf$1 as ConditionValueValueOneOf, type context$4_CreateInviteOptions as CreateInviteOptions, type context$4_CreateInviteRequest as CreateInviteRequest, type context$4_CreateInviteResponse as CreateInviteResponse, type context$4_CreateInviteResponseNonNullableFields as CreateInviteResponseNonNullableFields, type DependOnOperator$1 as DependOnOperator, type EnvironmentCondition$1 as EnvironmentCondition, type EnvironmentConditionConditionOneOf$1 as EnvironmentConditionConditionOneOf, type EqualOperator$1 as EqualOperator, type ExperimentCondition$1 as ExperimentCondition, type ExperimentOperator$1 as ExperimentOperator, type FullNameResource$1 as FullNameResource, type FullNameResourceResourceContextOneOf$1 as FullNameResourceResourceContextOneOf, type context$4_GetAccountInviteRequest as GetAccountInviteRequest, type context$4_GetAccountInviteResponse as GetAccountInviteResponse, type context$4_GetAccountInvitesRequest as GetAccountInvitesRequest, type context$4_GetAccountInvitesResponse as GetAccountInvitesResponse, type InviteAssignment$1 as InviteAssignment, type context$4_InviteFailure as InviteFailure, type InviteResourceAssignment$1 as InviteResourceAssignment, InviteStatus$3 as InviteStatus, type JoinedCondition$1 as JoinedCondition, JoinedConditionOperator$1 as JoinedConditionOperator, type LikeOperator$1 as LikeOperator, type OrganizationResourceContext$1 as OrganizationResourceContext, type context$4_ParseAccountInviteTokenRequest as ParseAccountInviteTokenRequest, type context$4_ParseAccountInviteTokenResponse as ParseAccountInviteTokenResponse, type PolicyCondition$1 as PolicyCondition, type context$4_ResendAccountInviteRequest as ResendAccountInviteRequest, type Resource$2 as Resource, type context$4_RevokeAccountInviteRequest as RevokeAccountInviteRequest, type context$4_RevokeAccountInviteResponse as RevokeAccountInviteResponse, type SimpleCondition$1 as SimpleCondition, SimpleConditionOperator$1 as SimpleConditionOperator, type SimpleConditionValue$1 as SimpleConditionValue, type SimpleConditionValueValueOneOf$1 as SimpleConditionValueValueOneOf, type SiteResourceContext$1 as SiteResourceContext, type Subject$2 as Subject, type SubjectContext$2 as SubjectContext, SubjectContextType$2 as SubjectContextType, type context$4_SubjectInviteAssignments as SubjectInviteAssignments, SubjectType$3 as SubjectType, type context$4_UpdateAccountInviteAssignmentsRequest as UpdateAccountInviteAssignmentsRequest, type context$4_UpdateAccountInviteAssignmentsResponse as UpdateAccountInviteAssignmentsResponse, type context$4_UpdateAccountInviteRequest as UpdateAccountInviteRequest, type context$4_UpdateAccountInviteResponse as UpdateAccountInviteResponse, context$4_createInvite as createInvite };
|
|
3397
|
-
}
|
|
3398
|
-
|
|
3399
|
-
interface SiteInvite$1 {
|
|
3400
|
-
/**
|
|
3401
|
-
* Invite ID.
|
|
3402
|
-
* @readonly
|
|
3403
|
-
*/
|
|
3404
|
-
_id?: string;
|
|
3405
|
-
/**
|
|
3406
|
-
* Site ID the user is invited to as a collaborator.
|
|
3407
|
-
* @readonly
|
|
3408
|
-
*/
|
|
3409
|
-
siteId?: string;
|
|
3410
|
-
/** Email address where the invite was sent. */
|
|
3411
|
-
email?: string;
|
|
3412
|
-
/** Role IDs included in the invite. */
|
|
3413
|
-
policyIds?: string[];
|
|
3414
|
-
/**
|
|
3415
|
-
* Deprecated. Use `inviterAccountId`.
|
|
3416
|
-
* @readonly
|
|
3417
|
-
* @deprecated
|
|
3418
|
-
*/
|
|
3419
|
-
inviterId?: string;
|
|
3420
|
-
/**
|
|
3421
|
-
* Invite Status.
|
|
3422
|
-
*
|
|
3423
|
-
* Supported values:
|
|
3424
|
-
* - **Pending:** The invite has been sent and is valid, waiting for the user's response.
|
|
3425
|
-
* - **Used:** The invite has been accepted.
|
|
3426
|
-
* - **Deleted:** The invite has been deleted or revoked.
|
|
3427
|
-
* - **Declined:** The user declined the invite.
|
|
3428
|
-
* - **Expired:** The invite has expired without being accepted.
|
|
3429
|
-
*/
|
|
3430
|
-
status?: InviteStatus$2;
|
|
3431
|
-
/** Link to accept the invite. */
|
|
3432
|
-
acceptLink?: string;
|
|
3433
|
-
/**
|
|
3434
|
-
* Inviting account ID.
|
|
3435
|
-
* @readonly
|
|
3436
|
-
*/
|
|
3437
|
-
inviterAccountId?: string;
|
|
3438
|
-
/**
|
|
3439
|
-
* Account ID that accepted the invite. Populated only once the invite is accepted.
|
|
3440
|
-
* @readonly
|
|
3441
|
-
*/
|
|
3442
|
-
acceptedByAccountId?: string | null;
|
|
3443
|
-
/** Date the invite was created. */
|
|
3444
|
-
dateCreated?: Date | null;
|
|
3445
|
-
/** User's Wix Bookings staff ID, if relevant. */
|
|
3446
|
-
staffId?: string | null;
|
|
3447
|
-
/** Invite expiration date */
|
|
3448
|
-
expirationDate?: Date | null;
|
|
3449
|
-
}
|
|
3450
|
-
/** Invite status stating whether the invite was accepted, waiting to be accepted, deleted etc.. */
|
|
3451
|
-
declare enum InviteStatus$2 {
|
|
3452
|
-
Pending = "Pending",
|
|
3453
|
-
Used = "Used",
|
|
3454
|
-
Deleted = "Deleted",
|
|
3455
|
-
Declined = "Declined",
|
|
3456
|
-
Expired = "Expired"
|
|
3457
|
-
}
|
|
3458
|
-
interface GetSiteInvitesRequest {
|
|
3459
|
-
}
|
|
3460
|
-
interface GetSiteInvitesResponse {
|
|
3461
|
-
invites?: SiteInvite$1[];
|
|
3462
|
-
}
|
|
3463
|
-
interface QuerySiteInvitesRequest {
|
|
3464
|
-
/**
|
|
3465
|
-
* Supports only `filter` field with
|
|
3466
|
-
* `"filter" : {
|
|
3467
|
-
* "acceptedByAccountId":{"$in": [<id1>, <id2>, ...]}
|
|
3468
|
-
* }`
|
|
3469
|
-
*/
|
|
3470
|
-
query?: QueryV2;
|
|
3471
|
-
}
|
|
3472
|
-
interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
3473
|
-
/** Paging options to limit and skip the number of items. */
|
|
3474
|
-
paging?: Paging$1;
|
|
3475
|
-
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
3476
|
-
cursorPaging?: CursorPaging;
|
|
3477
|
-
/**
|
|
3478
|
-
* Filter object.
|
|
3479
|
-
*
|
|
3480
|
-
* Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
|
|
3481
|
-
*/
|
|
3482
|
-
filter?: Record<string, any> | null;
|
|
3483
|
-
/**
|
|
3484
|
-
* Sort object.
|
|
3485
|
-
*
|
|
3486
|
-
* Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
|
|
3487
|
-
*/
|
|
3488
|
-
sort?: Sorting[];
|
|
3489
|
-
/** Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned. */
|
|
3490
|
-
fields?: string[];
|
|
3491
|
-
/** Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned. */
|
|
3492
|
-
fieldsets?: string[];
|
|
3493
|
-
}
|
|
3494
|
-
/** @oneof */
|
|
3495
|
-
interface QueryV2PagingMethodOneOf {
|
|
3496
|
-
/** Paging options to limit and skip the number of items. */
|
|
3497
|
-
paging?: Paging$1;
|
|
3498
|
-
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
3499
|
-
cursorPaging?: CursorPaging;
|
|
3500
|
-
}
|
|
3501
|
-
interface Sorting {
|
|
3502
|
-
/** Name of the field to sort by. */
|
|
3503
|
-
fieldName?: string;
|
|
3504
|
-
/** Sort order. */
|
|
3505
|
-
order?: SortOrder;
|
|
3506
|
-
}
|
|
3507
|
-
declare enum SortOrder {
|
|
3508
|
-
ASC = "ASC",
|
|
3509
|
-
DESC = "DESC"
|
|
3510
|
-
}
|
|
3511
|
-
interface Paging$1 {
|
|
3512
|
-
/** Number of items to load. */
|
|
3513
|
-
limit?: number | null;
|
|
3514
|
-
/** Number of items to skip in the current sort order. */
|
|
3515
|
-
offset?: number | null;
|
|
3516
|
-
}
|
|
3517
|
-
interface CursorPaging {
|
|
3518
|
-
/** Maximum number of items to return in the results. */
|
|
3519
|
-
limit?: number | null;
|
|
3520
|
-
/**
|
|
3521
|
-
* Pointer to the next or previous page in the list of results.
|
|
3522
|
-
*
|
|
3523
|
-
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
3524
|
-
* Not relevant for the first request.
|
|
3525
|
-
*/
|
|
3526
|
-
cursor?: string | null;
|
|
3527
|
-
}
|
|
3528
|
-
interface QuerySiteInvitesResponse {
|
|
3529
|
-
invites?: SiteInvite$1[];
|
|
3530
|
-
}
|
|
3531
|
-
interface GetSiteInviteRequest {
|
|
3532
|
-
_id?: string;
|
|
3533
|
-
}
|
|
3534
|
-
interface GetSiteInviteResponse {
|
|
3535
|
-
invite?: SiteInvite$1;
|
|
3536
|
-
}
|
|
3537
|
-
interface SiteInviteRequest {
|
|
3538
|
-
/** The role ids to be assigned */
|
|
3539
|
-
policyIds?: string[];
|
|
3540
|
-
/** Invitee email */
|
|
3541
|
-
email?: string;
|
|
3542
|
-
/** The language of emails that will be used only for recipients that don't have a user, in case this parameter is unspecified, the sender's language will be used instead */
|
|
3543
|
-
defaultEmailLanguage?: string | null;
|
|
3544
|
-
}
|
|
3545
|
-
interface SiteInviteResponse {
|
|
3546
|
-
/** Invites that were sent. */
|
|
3547
|
-
invite?: SiteInvite$1;
|
|
3548
|
-
}
|
|
3549
|
-
interface BulkSiteInviteRequest {
|
|
3550
|
-
/** Role IDs, referred to as policy IDs, to assign to the contributors. */
|
|
3551
|
-
policyIds: string[];
|
|
3552
|
-
/** Email addresses to which the invites should be sent. */
|
|
3553
|
-
emails: string[];
|
|
3554
|
-
/** Details explaining the purpose of the invite. */
|
|
3555
|
-
invitePurpose?: string | null;
|
|
3556
|
-
/** Language of emails to send. Relevant only for recipients that don't currently have a Wix user ID. Default: Site owner's language. */
|
|
3557
|
-
defaultEmailLanguage?: string | null;
|
|
3558
|
-
}
|
|
3559
|
-
interface BulkSiteInviteResponse {
|
|
3560
|
-
/** Invites that were sent successfully. */
|
|
3561
|
-
invites?: SiteInvite$1[];
|
|
3562
|
-
/** Invites that failed. */
|
|
3563
|
-
failedEmails?: string[];
|
|
3564
|
-
}
|
|
3565
|
-
interface ResendSiteInviteRequest {
|
|
3566
|
-
/** Invite ID. */
|
|
3567
|
-
inviteId: string;
|
|
3568
|
-
/** Language of emails to send. Relevant only for recipients that don't currently have a Wix user ID. Default: Site owner's language. */
|
|
3569
|
-
defaultEmailLanguage?: string | null;
|
|
3570
|
-
}
|
|
3571
|
-
interface AcceptSiteInviteRequest {
|
|
3572
|
-
inviteToken?: string;
|
|
3573
|
-
}
|
|
3574
|
-
interface AcceptSiteInviteResponse {
|
|
3575
|
-
}
|
|
3576
|
-
interface RevokeSiteInviteRequest {
|
|
3577
|
-
/** Invite ID. */
|
|
3578
|
-
inviteId: string;
|
|
3579
|
-
}
|
|
3580
|
-
interface RevokeSiteInviteResponse {
|
|
3581
|
-
}
|
|
3582
|
-
interface UpdateSiteInviteRequest {
|
|
3583
|
-
inviteId?: string;
|
|
3584
|
-
policyIds?: string[];
|
|
3585
|
-
staffId?: string | null;
|
|
3586
|
-
}
|
|
3587
|
-
interface UpdateSiteInviteResponse {
|
|
3588
|
-
}
|
|
3589
|
-
interface GetContributorLimitRequest {
|
|
3590
|
-
}
|
|
3591
|
-
interface GetContributorLimitResponse {
|
|
3592
|
-
contributorLimitation?: ContributorLimitation;
|
|
3593
|
-
}
|
|
3594
|
-
interface ContributorLimitation {
|
|
3595
|
-
contributorLimit?: number;
|
|
3596
|
-
leftInvites?: number;
|
|
3597
|
-
}
|
|
3598
|
-
interface ParseSiteInviteTokenRequest {
|
|
3599
|
-
inviteToken?: string;
|
|
3600
|
-
}
|
|
3601
|
-
interface ParseSiteInviteTokenResponse {
|
|
3602
|
-
inviteId?: string;
|
|
3603
|
-
siteId?: string;
|
|
3604
|
-
status?: InviteStatus$2;
|
|
3605
|
-
}
|
|
3606
|
-
interface SiteInviteNonNullableFields {
|
|
3607
|
-
_id: string;
|
|
3608
|
-
siteId: string;
|
|
3609
|
-
email: string;
|
|
3610
|
-
policyIds: string[];
|
|
3611
|
-
inviterId: string;
|
|
3612
|
-
status: InviteStatus$2;
|
|
3613
|
-
acceptLink: string;
|
|
3614
|
-
inviterAccountId: string;
|
|
3615
|
-
}
|
|
3616
|
-
interface BulkSiteInviteResponseNonNullableFields {
|
|
3617
|
-
invites: SiteInviteNonNullableFields[];
|
|
3618
|
-
failedEmails: string[];
|
|
3619
|
-
}
|
|
3620
|
-
interface SiteInviteResponseNonNullableFields {
|
|
3621
|
-
invite?: SiteInviteNonNullableFields;
|
|
3622
|
-
}
|
|
3623
|
-
interface BulkInviteOptions {
|
|
3624
|
-
/** Email addresses to which the invites should be sent. */
|
|
3625
|
-
emails: string[];
|
|
3626
|
-
/** Details explaining the purpose of the invite. */
|
|
3627
|
-
invitePurpose?: string | null;
|
|
3628
|
-
/** Language of emails to send. Relevant only for recipients that don't currently have a Wix user ID. Default: Site owner's language. */
|
|
3629
|
-
defaultEmailLanguage?: string | null;
|
|
3630
|
-
}
|
|
3631
|
-
interface ResendInviteOptions {
|
|
3632
|
-
/** Language of emails to send. Relevant only for recipients that don't currently have a Wix user ID. Default: Site owner's language. */
|
|
3633
|
-
defaultEmailLanguage?: string | null;
|
|
3634
|
-
}
|
|
3635
|
-
|
|
3636
|
-
declare function bulkInvite$1(httpClient: HttpClient): BulkInviteSignature;
|
|
3637
|
-
interface BulkInviteSignature {
|
|
3638
|
-
/**
|
|
3639
|
-
* Creates and sends emails inviting potential site contributors to become contributors in the requesting site.
|
|
3640
|
-
* > **Important**: This call requires an account level API key and cannot be authenticated with the standard authorization header. API keys are currently available to selected beta users only.
|
|
3641
|
-
* @param - Role IDs, referred to as policy IDs, to assign to the contributors.
|
|
3642
|
-
* @param - Filter options.
|
|
3643
|
-
*/
|
|
3644
|
-
(policyIds: string[], options?: BulkInviteOptions | undefined): Promise<BulkSiteInviteResponse & BulkSiteInviteResponseNonNullableFields>;
|
|
3645
|
-
}
|
|
3646
|
-
declare function resendInvite$1(httpClient: HttpClient): ResendInviteSignature;
|
|
3647
|
-
interface ResendInviteSignature {
|
|
3648
|
-
/**
|
|
3649
|
-
* Resends the email invitation to a potential site contributor.
|
|
3650
|
-
* > **Important**: This call requires an account level API key and cannot be authenticated with the standard authorization header. API keys are currently available to selected beta users only.
|
|
3651
|
-
* @param - Invite ID.
|
|
3652
|
-
* @param - Filter options.
|
|
3653
|
-
*/
|
|
3654
|
-
(inviteId: string, options?: ResendInviteOptions | undefined): Promise<SiteInviteResponse & SiteInviteResponseNonNullableFields>;
|
|
3655
|
-
}
|
|
3656
|
-
declare function revokeInvite$1(httpClient: HttpClient): RevokeInviteSignature;
|
|
3657
|
-
interface RevokeInviteSignature {
|
|
3658
|
-
/**
|
|
3659
|
-
* Revokes a pending site contributor invite.
|
|
3660
|
-
* > **Important**: This call requires an account level API key and cannot be authenticated with the standard authorization header. API keys are currently available to selected beta users only.
|
|
3661
|
-
* @param - Invite ID.
|
|
3662
|
-
*/
|
|
3663
|
-
(inviteId: string): Promise<void>;
|
|
3664
|
-
}
|
|
3665
|
-
|
|
3666
|
-
declare const bulkInvite: MaybeContext<BuildRESTFunction<typeof bulkInvite$1> & typeof bulkInvite$1>;
|
|
3667
|
-
declare const resendInvite: MaybeContext<BuildRESTFunction<typeof resendInvite$1> & typeof resendInvite$1>;
|
|
3668
|
-
declare const revokeInvite: MaybeContext<BuildRESTFunction<typeof revokeInvite$1> & typeof revokeInvite$1>;
|
|
3669
|
-
|
|
3670
|
-
type context$3_AcceptSiteInviteRequest = AcceptSiteInviteRequest;
|
|
3671
|
-
type context$3_AcceptSiteInviteResponse = AcceptSiteInviteResponse;
|
|
3672
|
-
type context$3_BulkInviteOptions = BulkInviteOptions;
|
|
3673
|
-
type context$3_BulkSiteInviteRequest = BulkSiteInviteRequest;
|
|
3674
|
-
type context$3_BulkSiteInviteResponse = BulkSiteInviteResponse;
|
|
3675
|
-
type context$3_BulkSiteInviteResponseNonNullableFields = BulkSiteInviteResponseNonNullableFields;
|
|
3676
|
-
type context$3_ContributorLimitation = ContributorLimitation;
|
|
3677
|
-
type context$3_CursorPaging = CursorPaging;
|
|
3678
|
-
type context$3_GetContributorLimitRequest = GetContributorLimitRequest;
|
|
3679
|
-
type context$3_GetContributorLimitResponse = GetContributorLimitResponse;
|
|
3680
|
-
type context$3_GetSiteInviteRequest = GetSiteInviteRequest;
|
|
3681
|
-
type context$3_GetSiteInviteResponse = GetSiteInviteResponse;
|
|
3682
|
-
type context$3_GetSiteInvitesRequest = GetSiteInvitesRequest;
|
|
3683
|
-
type context$3_GetSiteInvitesResponse = GetSiteInvitesResponse;
|
|
3684
|
-
type context$3_ParseSiteInviteTokenRequest = ParseSiteInviteTokenRequest;
|
|
3685
|
-
type context$3_ParseSiteInviteTokenResponse = ParseSiteInviteTokenResponse;
|
|
3686
|
-
type context$3_QuerySiteInvitesRequest = QuerySiteInvitesRequest;
|
|
3687
|
-
type context$3_QuerySiteInvitesResponse = QuerySiteInvitesResponse;
|
|
3688
|
-
type context$3_QueryV2 = QueryV2;
|
|
3689
|
-
type context$3_QueryV2PagingMethodOneOf = QueryV2PagingMethodOneOf;
|
|
3690
|
-
type context$3_ResendInviteOptions = ResendInviteOptions;
|
|
3691
|
-
type context$3_ResendSiteInviteRequest = ResendSiteInviteRequest;
|
|
3692
|
-
type context$3_RevokeSiteInviteRequest = RevokeSiteInviteRequest;
|
|
3693
|
-
type context$3_RevokeSiteInviteResponse = RevokeSiteInviteResponse;
|
|
3694
|
-
type context$3_SiteInviteRequest = SiteInviteRequest;
|
|
3695
|
-
type context$3_SiteInviteResponse = SiteInviteResponse;
|
|
3696
|
-
type context$3_SiteInviteResponseNonNullableFields = SiteInviteResponseNonNullableFields;
|
|
3697
|
-
type context$3_SortOrder = SortOrder;
|
|
3698
|
-
declare const context$3_SortOrder: typeof SortOrder;
|
|
3699
|
-
type context$3_Sorting = Sorting;
|
|
3700
|
-
type context$3_UpdateSiteInviteRequest = UpdateSiteInviteRequest;
|
|
3701
|
-
type context$3_UpdateSiteInviteResponse = UpdateSiteInviteResponse;
|
|
3702
|
-
declare const context$3_bulkInvite: typeof bulkInvite;
|
|
3703
|
-
declare const context$3_resendInvite: typeof resendInvite;
|
|
3704
|
-
declare const context$3_revokeInvite: typeof revokeInvite;
|
|
3705
|
-
declare namespace context$3 {
|
|
3706
|
-
export { type context$3_AcceptSiteInviteRequest as AcceptSiteInviteRequest, type context$3_AcceptSiteInviteResponse as AcceptSiteInviteResponse, type context$3_BulkInviteOptions as BulkInviteOptions, type context$3_BulkSiteInviteRequest as BulkSiteInviteRequest, type context$3_BulkSiteInviteResponse as BulkSiteInviteResponse, type context$3_BulkSiteInviteResponseNonNullableFields as BulkSiteInviteResponseNonNullableFields, type context$3_ContributorLimitation as ContributorLimitation, type context$3_CursorPaging as CursorPaging, type context$3_GetContributorLimitRequest as GetContributorLimitRequest, type context$3_GetContributorLimitResponse as GetContributorLimitResponse, type context$3_GetSiteInviteRequest as GetSiteInviteRequest, type context$3_GetSiteInviteResponse as GetSiteInviteResponse, type context$3_GetSiteInvitesRequest as GetSiteInvitesRequest, type context$3_GetSiteInvitesResponse as GetSiteInvitesResponse, InviteStatus$2 as InviteStatus, type Paging$1 as Paging, type context$3_ParseSiteInviteTokenRequest as ParseSiteInviteTokenRequest, type context$3_ParseSiteInviteTokenResponse as ParseSiteInviteTokenResponse, type context$3_QuerySiteInvitesRequest as QuerySiteInvitesRequest, type context$3_QuerySiteInvitesResponse as QuerySiteInvitesResponse, type context$3_QueryV2 as QueryV2, type context$3_QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOf, type context$3_ResendInviteOptions as ResendInviteOptions, type context$3_ResendSiteInviteRequest as ResendSiteInviteRequest, type context$3_RevokeSiteInviteRequest as RevokeSiteInviteRequest, type context$3_RevokeSiteInviteResponse as RevokeSiteInviteResponse, type SiteInvite$1 as SiteInvite, type context$3_SiteInviteRequest as SiteInviteRequest, type context$3_SiteInviteResponse as SiteInviteResponse, type context$3_SiteInviteResponseNonNullableFields as SiteInviteResponseNonNullableFields, context$3_SortOrder as SortOrder, type context$3_Sorting as Sorting, type context$3_UpdateSiteInviteRequest as UpdateSiteInviteRequest, type context$3_UpdateSiteInviteResponse as UpdateSiteInviteResponse, context$3_bulkInvite as bulkInvite, context$3_resendInvite as resendInvite, context$3_revokeInvite as revokeInvite };
|
|
2818
|
+
type context$1_Account = Account;
|
|
2819
|
+
type context$1_AccountInfo = AccountInfo;
|
|
2820
|
+
type context$1_AccountProperties = AccountProperties;
|
|
2821
|
+
type context$1_AccountResponse = AccountResponse;
|
|
2822
|
+
type context$1_AccountStatus = AccountStatus;
|
|
2823
|
+
declare const context$1_AccountStatus: typeof AccountStatus;
|
|
2824
|
+
type context$1_AccountV2 = AccountV2;
|
|
2825
|
+
type context$1_AccountsResponse = AccountsResponse;
|
|
2826
|
+
type context$1_CoBranding = CoBranding;
|
|
2827
|
+
declare const context$1_CoBranding: typeof CoBranding;
|
|
2828
|
+
type context$1_CreateAccountAndAssignUserRequest = CreateAccountAndAssignUserRequest;
|
|
2829
|
+
type context$1_CreateAccountForMyUserRequest = CreateAccountForMyUserRequest;
|
|
2830
|
+
type context$1_CreateAccountOptions = CreateAccountOptions;
|
|
2831
|
+
type context$1_CreateAccountRequest = CreateAccountRequest;
|
|
2832
|
+
type context$1_CreateAccountResponse = CreateAccountResponse;
|
|
2833
|
+
type context$1_CreateAccountResponseNonNullableFields = CreateAccountResponseNonNullableFields;
|
|
2834
|
+
type context$1_CreateAccountTenantRequest = CreateAccountTenantRequest;
|
|
2835
|
+
type context$1_CreateAccountTenantResponse = CreateAccountTenantResponse;
|
|
2836
|
+
type context$1_DeleteAccountRequest = DeleteAccountRequest;
|
|
2837
|
+
type context$1_Email = Email;
|
|
2838
|
+
type context$1_EmptyResponse = EmptyResponse;
|
|
2839
|
+
type context$1_GetAccountRequest = GetAccountRequest;
|
|
2840
|
+
type context$1_GetAccountsRequest = GetAccountsRequest;
|
|
2841
|
+
type context$1_GetMyAccountRequest = GetMyAccountRequest;
|
|
2842
|
+
type context$1_GetMyUserAccountsRequest = GetMyUserAccountsRequest;
|
|
2843
|
+
type context$1_GetParentAccountInfoRequest = GetParentAccountInfoRequest;
|
|
2844
|
+
type context$1_GetParentAccountInfoResponse = GetParentAccountInfoResponse;
|
|
2845
|
+
type context$1_GetSubAccountsRequest = GetSubAccountsRequest;
|
|
2846
|
+
type context$1_GetSubAccountsResponse = GetSubAccountsResponse;
|
|
2847
|
+
type context$1_GetUserAccountRequest = GetUserAccountRequest;
|
|
2848
|
+
type context$1_GetUserAccountsRequest = GetUserAccountsRequest;
|
|
2849
|
+
type context$1_IsTeamRequest = IsTeamRequest;
|
|
2850
|
+
type context$1_IsTeamResponse = IsTeamResponse;
|
|
2851
|
+
type context$1_ListChildAccountsOptions = ListChildAccountsOptions;
|
|
2852
|
+
type context$1_ListChildAccountsRequest = ListChildAccountsRequest;
|
|
2853
|
+
type context$1_ListChildAccountsResponse = ListChildAccountsResponse;
|
|
2854
|
+
type context$1_ListChildAccountsResponseNonNullableFields = ListChildAccountsResponseNonNullableFields;
|
|
2855
|
+
type context$1_MarkAccountFlagRequest = MarkAccountFlagRequest;
|
|
2856
|
+
type context$1_MarkAccountFlagRequestFlagOneOf = MarkAccountFlagRequestFlagOneOf;
|
|
2857
|
+
type context$1_Paging = Paging;
|
|
2858
|
+
type context$1_PagingMetadata = PagingMetadata;
|
|
2859
|
+
type context$1_RemoveParent = RemoveParent;
|
|
2860
|
+
type context$1_SetIsReadOnlyAccountRequest = SetIsReadOnlyAccountRequest;
|
|
2861
|
+
type context$1_SsoIdentity = SsoIdentity;
|
|
2862
|
+
type context$1_SubAccountInfo = SubAccountInfo;
|
|
2863
|
+
type context$1_UpdateAccountRequest = UpdateAccountRequest;
|
|
2864
|
+
type context$1_UpdateParentAccountRequest = UpdateParentAccountRequest;
|
|
2865
|
+
type context$1_UpdateParentAccountRequestUpdateOneOf = UpdateParentAccountRequestUpdateOneOf;
|
|
2866
|
+
type context$1_UpdateParentAccountResponse = UpdateParentAccountResponse;
|
|
2867
|
+
type context$1_UpdateSlugRequest = UpdateSlugRequest;
|
|
2868
|
+
type context$1_User = User;
|
|
2869
|
+
type context$1_UserDetails = UserDetails;
|
|
2870
|
+
declare const context$1_createAccount: typeof createAccount;
|
|
2871
|
+
declare const context$1_listChildAccounts: typeof listChildAccounts;
|
|
2872
|
+
declare namespace context$1 {
|
|
2873
|
+
export { type context$1_Account as Account, type context$1_AccountInfo as AccountInfo, type context$1_AccountProperties as AccountProperties, type context$1_AccountResponse as AccountResponse, context$1_AccountStatus as AccountStatus, type context$1_AccountV2 as AccountV2, type context$1_AccountsResponse as AccountsResponse, context$1_CoBranding as CoBranding, type context$1_CreateAccountAndAssignUserRequest as CreateAccountAndAssignUserRequest, type context$1_CreateAccountForMyUserRequest as CreateAccountForMyUserRequest, type context$1_CreateAccountOptions as CreateAccountOptions, type context$1_CreateAccountRequest as CreateAccountRequest, type context$1_CreateAccountResponse as CreateAccountResponse, type context$1_CreateAccountResponseNonNullableFields as CreateAccountResponseNonNullableFields, type context$1_CreateAccountTenantRequest as CreateAccountTenantRequest, type context$1_CreateAccountTenantResponse as CreateAccountTenantResponse, type context$1_DeleteAccountRequest as DeleteAccountRequest, type context$1_Email as Email, type context$1_EmptyResponse as EmptyResponse, type context$1_GetAccountRequest as GetAccountRequest, type context$1_GetAccountsRequest as GetAccountsRequest, type context$1_GetMyAccountRequest as GetMyAccountRequest, type context$1_GetMyUserAccountsRequest as GetMyUserAccountsRequest, type context$1_GetParentAccountInfoRequest as GetParentAccountInfoRequest, type context$1_GetParentAccountInfoResponse as GetParentAccountInfoResponse, type context$1_GetSubAccountsRequest as GetSubAccountsRequest, type context$1_GetSubAccountsResponse as GetSubAccountsResponse, type context$1_GetUserAccountRequest as GetUserAccountRequest, type context$1_GetUserAccountsRequest as GetUserAccountsRequest, type context$1_IsTeamRequest as IsTeamRequest, type context$1_IsTeamResponse as IsTeamResponse, type context$1_ListChildAccountsOptions as ListChildAccountsOptions, type context$1_ListChildAccountsRequest as ListChildAccountsRequest, type context$1_ListChildAccountsResponse as ListChildAccountsResponse, type context$1_ListChildAccountsResponseNonNullableFields as ListChildAccountsResponseNonNullableFields, type context$1_MarkAccountFlagRequest as MarkAccountFlagRequest, type context$1_MarkAccountFlagRequestFlagOneOf as MarkAccountFlagRequestFlagOneOf, type context$1_Paging as Paging, type context$1_PagingMetadata as PagingMetadata, type context$1_RemoveParent as RemoveParent, type context$1_SetIsReadOnlyAccountRequest as SetIsReadOnlyAccountRequest, type context$1_SsoIdentity as SsoIdentity, type context$1_SubAccountInfo as SubAccountInfo, type context$1_UpdateAccountRequest as UpdateAccountRequest, type context$1_UpdateParentAccountRequest as UpdateParentAccountRequest, type context$1_UpdateParentAccountRequestUpdateOneOf as UpdateParentAccountRequestUpdateOneOf, type context$1_UpdateParentAccountResponse as UpdateParentAccountResponse, type context$1_UpdateSlugRequest as UpdateSlugRequest, type context$1_User as User, type context$1_UserDetails as UserDetails, context$1_createAccount as createAccount, context$1_listChildAccounts as listChildAccounts };
|
|
3707
2874
|
}
|
|
3708
2875
|
|
|
3709
2876
|
interface RefreshToken {
|
|
@@ -3839,7 +3006,7 @@ interface RevokeRefreshTokenResponse {
|
|
|
3839
3006
|
interface TokenInfoResponse {
|
|
3840
3007
|
active?: boolean;
|
|
3841
3008
|
/** subject type. */
|
|
3842
|
-
subjectType?: SubjectType
|
|
3009
|
+
subjectType?: SubjectType;
|
|
3843
3010
|
/** subject id */
|
|
3844
3011
|
subjectId?: string;
|
|
3845
3012
|
/** Expiration time of the token */
|
|
@@ -3857,7 +3024,7 @@ interface TokenInfoResponse {
|
|
|
3857
3024
|
/** Vendor Product Id */
|
|
3858
3025
|
vendorProductId?: string | null;
|
|
3859
3026
|
}
|
|
3860
|
-
declare enum SubjectType
|
|
3027
|
+
declare enum SubjectType {
|
|
3861
3028
|
/** unknown subject type */
|
|
3862
3029
|
UNKNOWN = "UNKNOWN",
|
|
3863
3030
|
/** user subject type */
|
|
@@ -3951,7 +3118,7 @@ interface RawHttpResponseNonNullableFields {
|
|
|
3951
3118
|
}
|
|
3952
3119
|
interface TokenInfoResponseNonNullableFields {
|
|
3953
3120
|
active: boolean;
|
|
3954
|
-
subjectType: SubjectType
|
|
3121
|
+
subjectType: SubjectType;
|
|
3955
3122
|
subjectId: string;
|
|
3956
3123
|
clientId: string;
|
|
3957
3124
|
}
|
|
@@ -4006,1818 +3173,42 @@ interface TokenInfoSignature {
|
|
|
4006
3173
|
declare const token: MaybeContext<BuildRESTFunction<typeof token$1> & typeof token$1>;
|
|
4007
3174
|
declare const tokenInfo: MaybeContext<BuildRESTFunction<typeof tokenInfo$1> & typeof tokenInfo$1>;
|
|
4008
3175
|
|
|
4009
|
-
type
|
|
4010
|
-
type
|
|
4011
|
-
type
|
|
4012
|
-
type
|
|
4013
|
-
type
|
|
4014
|
-
type
|
|
4015
|
-
type
|
|
4016
|
-
type
|
|
4017
|
-
type
|
|
4018
|
-
type
|
|
4019
|
-
type
|
|
4020
|
-
type
|
|
4021
|
-
type
|
|
4022
|
-
type
|
|
4023
|
-
type
|
|
4024
|
-
type
|
|
4025
|
-
type
|
|
4026
|
-
type
|
|
4027
|
-
type
|
|
4028
|
-
type
|
|
4029
|
-
type
|
|
4030
|
-
type
|
|
4031
|
-
type
|
|
4032
|
-
type
|
|
4033
|
-
type
|
|
4034
|
-
type
|
|
4035
|
-
type context$2_TokenInfoOptions = TokenInfoOptions;
|
|
4036
|
-
type context$2_TokenInfoResponse = TokenInfoResponse;
|
|
4037
|
-
type context$2_TokenInfoResponseNonNullableFields = TokenInfoResponseNonNullableFields;
|
|
4038
|
-
type context$2_TokenOptions = TokenOptions;
|
|
4039
|
-
declare const context$2_token: typeof token;
|
|
4040
|
-
declare const context$2_tokenInfo: typeof tokenInfo;
|
|
4041
|
-
declare namespace context$2 {
|
|
4042
|
-
export { type context$2_ActionEvent as ActionEvent, type context$2_AuthorizeRequest as AuthorizeRequest, type context$2_DeviceCodeRequest as DeviceCodeRequest, type context$2_DeviceCodeResponse as DeviceCodeResponse, type context$2_DeviceVerifyRequest as DeviceVerifyRequest, type context$2_DeviceVerifyResponse as DeviceVerifyResponse, type context$2_DeviceVerifyV2Request as DeviceVerifyV2Request, type context$2_DeviceVerifyV2Response as DeviceVerifyV2Response, type context$2_DomainEvent as DomainEvent, type context$2_DomainEventBodyOneOf as DomainEventBodyOneOf, type context$2_Empty as Empty, type context$2_EntityCreatedEvent as EntityCreatedEvent, type context$2_EntityDeletedEvent as EntityDeletedEvent, type context$2_EntityUpdatedEvent as EntityUpdatedEvent, type context$2_HeadersEntry as HeadersEntry, type context$2_InvalidateUserCodeRequest as InvalidateUserCodeRequest, type context$2_InvalidateUserCodeResponse as InvalidateUserCodeResponse, type context$2_PathParametersEntry as PathParametersEntry, type context$2_QueryParametersEntry as QueryParametersEntry, type context$2_RawHttpRequest as RawHttpRequest, type context$2_RawHttpResponse as RawHttpResponse, type context$2_RawHttpResponseNonNullableFields as RawHttpResponseNonNullableFields, type context$2_RefreshToken as RefreshToken, type context$2_RestoreInfo as RestoreInfo, type context$2_RevokeRefreshTokenRequest as RevokeRefreshTokenRequest, type context$2_RevokeRefreshTokenResponse as RevokeRefreshTokenResponse, SubjectType$2 as SubjectType, type context$2_TokenInfoOptions as TokenInfoOptions, type context$2_TokenInfoResponse as TokenInfoResponse, type context$2_TokenInfoResponseNonNullableFields as TokenInfoResponseNonNullableFields, type context$2_TokenOptions as TokenOptions, context$2_token as token, context$2_tokenInfo as tokenInfo };
|
|
4043
|
-
}
|
|
4044
|
-
|
|
4045
|
-
interface User$1 {
|
|
4046
|
-
/** User ID. */
|
|
4047
|
-
_id?: string;
|
|
4048
|
-
/**
|
|
4049
|
-
* Deprecated.
|
|
4050
|
-
* @deprecated
|
|
4051
|
-
*/
|
|
4052
|
-
roles?: string[];
|
|
4053
|
-
/** User's email address. */
|
|
4054
|
-
email?: string;
|
|
4055
|
-
/** User's name. */
|
|
4056
|
-
name?: Name$1;
|
|
4057
|
-
/** URL to user's profile image, when provided. */
|
|
4058
|
-
profileImage?: string | null;
|
|
4059
|
-
/** Date the user joined the team. */
|
|
4060
|
-
joinedTeamAt?: Date | null;
|
|
4061
|
-
/**
|
|
4062
|
-
* Deprecated.
|
|
4063
|
-
* @deprecated
|
|
4064
|
-
*/
|
|
4065
|
-
policyIds?: string[];
|
|
4066
|
-
/** Resources the user can access. */
|
|
4067
|
-
assignments?: Assignment$1[];
|
|
4068
|
-
}
|
|
4069
|
-
interface Name$1 {
|
|
4070
|
-
/** User's first name. */
|
|
4071
|
-
firstName?: string;
|
|
4072
|
-
/** User's last name. */
|
|
4073
|
-
lastName?: string;
|
|
4074
|
-
}
|
|
4075
|
-
interface Assignment$1 {
|
|
4076
|
-
/** Role assigned to the user. */
|
|
4077
|
-
policy?: AssignedPolicy$1;
|
|
4078
|
-
/** Unique ID for this specific assignment. */
|
|
4079
|
-
assignmentId?: string;
|
|
4080
|
-
/** Identity assigned to the asset in an assignment, referred to as subject. Supported subjects include user IDs, account IDs, and app IDs. */
|
|
4081
|
-
subject?: Subject$1;
|
|
4082
|
-
}
|
|
4083
|
-
interface AssignedPolicy$1 {
|
|
4084
|
-
/** Role ID. */
|
|
4085
|
-
policyId?: string;
|
|
4086
|
-
/** Role title. */
|
|
4087
|
-
title?: string | null;
|
|
4088
|
-
/** Role description. */
|
|
4089
|
-
description?: string | null;
|
|
4090
|
-
}
|
|
4091
|
-
interface Restriction$1 extends RestrictionRestrictionsOneOf$1 {
|
|
4092
|
-
/**
|
|
4093
|
-
* Deprecated.
|
|
4094
|
-
* @deprecated
|
|
4095
|
-
*/
|
|
4096
|
-
resource?: ApiResource;
|
|
4097
|
-
/** List of conditions restricting the user's access. Currently only folder conditions are supported. */
|
|
4098
|
-
conditions?: Conditions$1;
|
|
4099
|
-
/** Site where the assignment restrictions apply. */
|
|
4100
|
-
site?: SiteRestriction$1;
|
|
4101
|
-
}
|
|
4102
|
-
/** @oneof */
|
|
4103
|
-
interface RestrictionRestrictionsOneOf$1 {
|
|
4104
|
-
/**
|
|
4105
|
-
* Deprecated.
|
|
4106
|
-
* @deprecated
|
|
4107
|
-
*/
|
|
4108
|
-
resource?: ApiResource;
|
|
4109
|
-
/** List of conditions restricting the user's access. Currently only folder conditions are supported. */
|
|
4110
|
-
conditions?: Conditions$1;
|
|
4111
|
-
/** Site where the assignment restrictions apply. */
|
|
4112
|
-
site?: SiteRestriction$1;
|
|
4113
|
-
}
|
|
4114
|
-
interface ApiResource {
|
|
4115
|
-
/** Resource type. */
|
|
4116
|
-
resourceType?: ResourceType$1;
|
|
4117
|
-
/** Resource ID. */
|
|
4118
|
-
_id?: string;
|
|
4119
|
-
value?: string | null;
|
|
4120
|
-
}
|
|
4121
|
-
declare enum ResourceType$1 {
|
|
4122
|
-
UNKNOWN_RESOURCE_TYPE = "UNKNOWN_RESOURCE_TYPE",
|
|
4123
|
-
SITE = "SITE"
|
|
4124
|
-
}
|
|
4125
|
-
interface Conditions$1 {
|
|
4126
|
-
/** List of conditions. */
|
|
4127
|
-
conditions?: ApiCondition[];
|
|
4128
|
-
}
|
|
4129
|
-
interface ApiCondition {
|
|
4130
|
-
/** Condition type. */
|
|
4131
|
-
conditionType?: ConditionAttributeType$1;
|
|
4132
|
-
/** Condition ID. */
|
|
4133
|
-
_id?: string;
|
|
4134
|
-
/** Expected value of the condition. When `conditionType` = "FOLDER", this is the folder path. */
|
|
4135
|
-
value?: string | null;
|
|
4136
|
-
}
|
|
4137
|
-
declare enum ConditionAttributeType$1 {
|
|
4138
|
-
UNKNOWN_CONDITION_TYPE = "UNKNOWN_CONDITION_TYPE",
|
|
4139
|
-
FOLDER = "FOLDER"
|
|
4140
|
-
}
|
|
4141
|
-
interface SiteRestriction$1 {
|
|
4142
|
-
/** Site ID. */
|
|
4143
|
-
_id?: string;
|
|
4144
|
-
/** Site name. */
|
|
4145
|
-
value?: string | null;
|
|
4146
|
-
}
|
|
4147
|
-
interface CompanionResource$1 {
|
|
4148
|
-
/** Asset ID (referred to here as resource ID). */
|
|
4149
|
-
_id?: string;
|
|
4150
|
-
/** Asset type (referred to here as resource type). as predefined in the authorization system */
|
|
4151
|
-
resourceType?: string;
|
|
4152
|
-
}
|
|
4153
|
-
interface Subject$1 {
|
|
4154
|
-
/** ID of identity assigned to the asset. */
|
|
4155
|
-
_id?: string;
|
|
4156
|
-
/** Type of identity assigned to the asset. Supported subject types include user IDs, account IDs, and app IDs. */
|
|
4157
|
-
subjectType?: SubjectType$1;
|
|
4158
|
-
/** Context of identity assigned to the asset. For example, a `subjectType` = `USER` will have `context` = `ACCOUNT`. */
|
|
4159
|
-
context?: SubjectContext$1;
|
|
4160
|
-
}
|
|
4161
|
-
declare enum SubjectType$1 {
|
|
4162
|
-
UNKNOWN = "UNKNOWN",
|
|
4163
|
-
ACCOUNT = "ACCOUNT",
|
|
4164
|
-
USER = "USER",
|
|
4165
|
-
USER_GROUP = "USER_GROUP",
|
|
4166
|
-
MEMBER_GROUP = "MEMBER_GROUP",
|
|
4167
|
-
VISITOR_GROUP = "VISITOR_GROUP",
|
|
4168
|
-
EXTERNAL_APP = "EXTERNAL_APP",
|
|
4169
|
-
ACCOUNT_GROUP = "ACCOUNT_GROUP",
|
|
4170
|
-
WIX_APP = "WIX_APP"
|
|
4171
|
-
}
|
|
4172
|
-
interface SubjectContext$1 {
|
|
4173
|
-
_id?: string;
|
|
4174
|
-
contextType?: SubjectContextType$1;
|
|
4175
|
-
}
|
|
4176
|
-
declare enum SubjectContextType$1 {
|
|
4177
|
-
UNKNOWN_CTX = "UNKNOWN_CTX",
|
|
4178
|
-
ORG_CTX = "ORG_CTX",
|
|
4179
|
-
ACCOUNT_CTX = "ACCOUNT_CTX"
|
|
4180
|
-
}
|
|
4181
|
-
interface GetTeamRequest {
|
|
4182
|
-
/** @deprecated */
|
|
4183
|
-
usersLimit?: number | null;
|
|
4184
|
-
/** The locale of the request. Defaults to en */
|
|
4185
|
-
locale?: string | null;
|
|
4186
|
-
paging?: Paging;
|
|
4187
|
-
}
|
|
4188
|
-
interface Paging {
|
|
4189
|
-
/** Number of items to load. */
|
|
4190
|
-
limit?: number | null;
|
|
4191
|
-
/** Number of items to skip in the current sort order. */
|
|
4192
|
-
offset?: number | null;
|
|
4193
|
-
}
|
|
4194
|
-
interface GetTeamResponse {
|
|
4195
|
-
users?: User$1[];
|
|
4196
|
-
invites?: AccountInvite[];
|
|
4197
|
-
accountInfo?: AccountInfo$1;
|
|
4198
|
-
permissions?: string[];
|
|
4199
|
-
userId?: string;
|
|
4200
|
-
targetAccountId?: string;
|
|
4201
|
-
policies?: ApiPolicy[];
|
|
4202
|
-
totalUsersInAccount?: string;
|
|
4203
|
-
predefinedRoles?: PredefinedRoles$1;
|
|
4204
|
-
}
|
|
4205
|
-
interface AccountInvite {
|
|
4206
|
-
/**
|
|
4207
|
-
* Invite ID.
|
|
4208
|
-
* @readonly
|
|
4209
|
-
*/
|
|
4210
|
-
_id?: string;
|
|
4211
|
-
/**
|
|
4212
|
-
* Account ID.
|
|
4213
|
-
* @readonly
|
|
4214
|
-
*/
|
|
4215
|
-
accountId?: string;
|
|
4216
|
-
/** Email address where the invite was sent. */
|
|
4217
|
-
email?: string;
|
|
4218
|
-
/**
|
|
4219
|
-
* Deprecated. Use `policyIds`.
|
|
4220
|
-
* @deprecated
|
|
4221
|
-
*/
|
|
4222
|
-
role?: string;
|
|
4223
|
-
/**
|
|
4224
|
-
* Deprecated. Use `inviterAccountId`.
|
|
4225
|
-
* @readonly
|
|
4226
|
-
* @deprecated
|
|
4227
|
-
*/
|
|
4228
|
-
inviterId?: string;
|
|
4229
|
-
/**
|
|
4230
|
-
* Invite status.
|
|
4231
|
-
*
|
|
4232
|
-
* Supported values:
|
|
4233
|
-
* - **Pending:** The invite has been sent and is valid, waiting for the user's response.
|
|
4234
|
-
* - **Used:** The invite has been accepted.
|
|
4235
|
-
* - **Deleted:** The invite has been deleted or revoked.
|
|
4236
|
-
* - **Declined:** The user has declined the invite.
|
|
4237
|
-
* - **Expired:** The invite has expired without being accepted.
|
|
4238
|
-
*/
|
|
4239
|
-
status?: InviteStatus$1;
|
|
4240
|
-
/** Link to accept the invite. */
|
|
4241
|
-
acceptLink?: string;
|
|
4242
|
-
/**
|
|
4243
|
-
* Inviting account ID.
|
|
4244
|
-
* @readonly
|
|
4245
|
-
*/
|
|
4246
|
-
inviterAccountId?: string;
|
|
4247
|
-
/**
|
|
4248
|
-
* Account ID that accepted the invite. Populated only once the invite is accepted.
|
|
4249
|
-
* @readonly
|
|
4250
|
-
*/
|
|
4251
|
-
acceptedByAccountId?: string | null;
|
|
4252
|
-
/** Date the invite was created. */
|
|
4253
|
-
dateCreated?: Date | null;
|
|
4254
|
-
/** Role IDs included in the invite. */
|
|
4255
|
-
policyIds?: string[];
|
|
4256
|
-
/** Date the invite was last updated. */
|
|
4257
|
-
dateUpdated?: Date | null;
|
|
4258
|
-
/** Assets the users are invited to join. */
|
|
4259
|
-
assignments?: InviteResourceAssignment[];
|
|
4260
|
-
/** Invite expiration date. */
|
|
4261
|
-
expirationDate?: Date | null;
|
|
4262
|
-
}
|
|
4263
|
-
/** Invite status stating whether the invite was accepted, waiting to be accepted, deleted etc.. */
|
|
4264
|
-
declare enum InviteStatus$1 {
|
|
4265
|
-
Pending = "Pending",
|
|
4266
|
-
Used = "Used",
|
|
4267
|
-
Deleted = "Deleted",
|
|
4268
|
-
Declined = "Declined",
|
|
4269
|
-
Expired = "Expired"
|
|
4270
|
-
}
|
|
4271
|
-
interface InviteResourceAssignment {
|
|
4272
|
-
/** Role ID. */
|
|
4273
|
-
policyId?: string;
|
|
4274
|
-
/** Resources the user will be able to access. */
|
|
4275
|
-
assignments?: InviteAssignment[];
|
|
4276
|
-
}
|
|
4277
|
-
interface InviteAssignment {
|
|
4278
|
-
/** Full name of resource to be assigned. */
|
|
4279
|
-
fullNameResource?: FullNameResource;
|
|
4280
|
-
}
|
|
4281
|
-
interface FullNameResource extends FullNameResourceResourceContextOneOf {
|
|
4282
|
-
/** Specific site details. */
|
|
4283
|
-
siteContext?: SiteResourceContext;
|
|
4284
|
-
/** Specific account details. */
|
|
4285
|
-
accountContext?: AccountResourceContext;
|
|
4286
|
-
}
|
|
4287
|
-
/** @oneof */
|
|
4288
|
-
interface FullNameResourceResourceContextOneOf {
|
|
4289
|
-
/** Specific site details. */
|
|
4290
|
-
siteContext?: SiteResourceContext;
|
|
4291
|
-
/** Specific account details. */
|
|
4292
|
-
accountContext?: AccountResourceContext;
|
|
4293
|
-
}
|
|
4294
|
-
/** 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) */
|
|
4295
|
-
interface SiteResourceContext {
|
|
4296
|
-
/** Site ID. */
|
|
4297
|
-
metasiteId?: string;
|
|
4298
|
-
}
|
|
4299
|
-
/** 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) */
|
|
4300
|
-
interface AccountResourceContext {
|
|
4301
|
-
/** Account ID. */
|
|
4302
|
-
accountId?: string;
|
|
4303
|
-
}
|
|
4304
|
-
interface OrganizationResourceContext {
|
|
4305
|
-
}
|
|
4306
|
-
/**
|
|
4307
|
-
* A custom resource. Is used to represent some asset that is not a direct resource context (site or account), but something custom.
|
|
4308
|
-
* For example: payment method, blog post, domain, logo.
|
|
4309
|
-
*/
|
|
4310
|
-
interface Resource$1 {
|
|
4311
|
-
/** The resource id. */
|
|
4312
|
-
_id?: string | null;
|
|
4313
|
-
/** The resource type */
|
|
4314
|
-
type?: string | null;
|
|
4315
|
-
}
|
|
4316
|
-
interface PolicyCondition {
|
|
4317
|
-
/** The type of the condition */
|
|
4318
|
-
condition?: ConditionType;
|
|
4319
|
-
}
|
|
4320
|
-
interface ConditionType extends ConditionTypeOfOneOf {
|
|
4321
|
-
/** @deprecated */
|
|
4322
|
-
simpleCondition?: SimpleCondition;
|
|
4323
|
-
/** A logic combination between several conditions, with an operator between them */
|
|
4324
|
-
joinedConditions?: JoinedCondition;
|
|
4325
|
-
/** @deprecated */
|
|
4326
|
-
environmentCondition?: EnvironmentCondition;
|
|
4327
|
-
/** A single condition */
|
|
4328
|
-
condition?: Condition$1;
|
|
4329
|
-
}
|
|
4330
|
-
/** @oneof */
|
|
4331
|
-
interface ConditionTypeOfOneOf {
|
|
4332
|
-
/** @deprecated */
|
|
4333
|
-
simpleCondition?: SimpleCondition;
|
|
4334
|
-
/** A logic combination between several conditions, with an operator between them */
|
|
4335
|
-
joinedConditions?: JoinedCondition;
|
|
4336
|
-
/** @deprecated */
|
|
4337
|
-
environmentCondition?: EnvironmentCondition;
|
|
4338
|
-
/** A single condition */
|
|
4339
|
-
condition?: Condition$1;
|
|
4340
|
-
}
|
|
4341
|
-
interface SimpleCondition {
|
|
4342
|
-
attrName?: string;
|
|
4343
|
-
value?: SimpleConditionValue;
|
|
4344
|
-
op?: SimpleConditionOperator;
|
|
4345
|
-
conditionModelId?: string;
|
|
4346
|
-
}
|
|
4347
|
-
interface SimpleConditionValue extends SimpleConditionValueValueOneOf {
|
|
4348
|
-
attrName?: string;
|
|
4349
|
-
stringValue?: string;
|
|
4350
|
-
boolValue?: boolean;
|
|
4351
|
-
}
|
|
4352
|
-
/** @oneof */
|
|
4353
|
-
interface SimpleConditionValueValueOneOf {
|
|
4354
|
-
attrName?: string;
|
|
4355
|
-
stringValue?: string;
|
|
4356
|
-
boolValue?: boolean;
|
|
4357
|
-
}
|
|
4358
|
-
declare enum SimpleConditionOperator {
|
|
4359
|
-
UNKNOWN_SIMPLE_OP = "UNKNOWN_SIMPLE_OP",
|
|
4360
|
-
EQUAL = "EQUAL"
|
|
4361
|
-
}
|
|
4362
|
-
interface JoinedCondition {
|
|
4363
|
-
/** The operator that should be used when evaluating the condition */
|
|
4364
|
-
op?: JoinedConditionOperator;
|
|
4365
|
-
/** The conditions that should be evaluated, and then joined using the operator provided */
|
|
4366
|
-
conditions?: ConditionType[];
|
|
4367
|
-
}
|
|
4368
|
-
declare enum JoinedConditionOperator {
|
|
4369
|
-
UNKNOWN_JOIN_OP = "UNKNOWN_JOIN_OP",
|
|
4370
|
-
OR = "OR",
|
|
4371
|
-
AND = "AND"
|
|
4372
|
-
}
|
|
4373
|
-
interface EnvironmentCondition extends EnvironmentConditionConditionOneOf {
|
|
4374
|
-
experimentCondition?: ExperimentCondition;
|
|
4375
|
-
}
|
|
4376
|
-
/** @oneof */
|
|
4377
|
-
interface EnvironmentConditionConditionOneOf {
|
|
4378
|
-
experimentCondition?: ExperimentCondition;
|
|
4379
|
-
}
|
|
4380
|
-
interface ExperimentCondition {
|
|
4381
|
-
spec?: string;
|
|
4382
|
-
fallbackValue?: string;
|
|
4383
|
-
expectedValue?: string;
|
|
4384
|
-
}
|
|
4385
|
-
interface Condition$1 {
|
|
4386
|
-
/** The unique identifier of the condition model. Indicates which actions the condition is working on */
|
|
4387
|
-
conditionModelId?: string;
|
|
4388
|
-
/** The operator that should be evaluated */
|
|
4389
|
-
operator?: ConditionOperator;
|
|
4390
|
-
}
|
|
4391
|
-
interface ConditionOperator extends ConditionOperatorOperatorsOneOf {
|
|
4392
|
-
/** Comparison of equality - will be evaluated to true if the given parties are equal */
|
|
4393
|
-
equals?: EqualOperator;
|
|
4394
|
-
/** Regex operator - will be evaluated to true if the given value matches the provided regex */
|
|
4395
|
-
like?: LikeOperator;
|
|
4396
|
-
/** Petri experiment - will be evaluated using petri. */
|
|
4397
|
-
experiment?: ExperimentOperator;
|
|
4398
|
-
/** Operator that indicates a dependency on another subject being allowed to perform something. */
|
|
4399
|
-
dependOn?: DependOnOperator;
|
|
4400
|
-
}
|
|
4401
|
-
/** @oneof */
|
|
4402
|
-
interface ConditionOperatorOperatorsOneOf {
|
|
4403
|
-
/** Comparison of equality - will be evaluated to true if the given parties are equal */
|
|
4404
|
-
equals?: EqualOperator;
|
|
4405
|
-
/** Regex operator - will be evaluated to true if the given value matches the provided regex */
|
|
4406
|
-
like?: LikeOperator;
|
|
4407
|
-
/** Petri experiment - will be evaluated using petri. */
|
|
4408
|
-
experiment?: ExperimentOperator;
|
|
4409
|
-
/** Operator that indicates a dependency on another subject being allowed to perform something. */
|
|
4410
|
-
dependOn?: DependOnOperator;
|
|
4411
|
-
}
|
|
4412
|
-
interface EqualOperator {
|
|
4413
|
-
/** The attribute which should be compared. The attribute will be first evaluated to a value, and then compared the other side (attribute/value) */
|
|
4414
|
-
attrName?: string;
|
|
4415
|
-
/** The value to compare to. If the two parties are equal - we will return true. */
|
|
4416
|
-
value?: ConditionValue;
|
|
4417
|
-
}
|
|
4418
|
-
interface ConditionValue extends ConditionValueValueOneOf {
|
|
4419
|
-
/** an attribute. We'll first retrieve the value of the attribute (from the request or from pre-indexed values), and then compare to what it needs to be compared with. */
|
|
4420
|
-
attrName?: string;
|
|
4421
|
-
/** a value with a string type. Will be compared to the attribute provided, and be true only if they match the operator. */
|
|
4422
|
-
stringValue?: string;
|
|
4423
|
-
/** a value with a boolean type. Will be compared to the attribute provided, and be true only if they match the operator. */
|
|
4424
|
-
boolValue?: boolean;
|
|
4425
|
-
}
|
|
4426
|
-
/** @oneof */
|
|
4427
|
-
interface ConditionValueValueOneOf {
|
|
4428
|
-
/** an attribute. We'll first retrieve the value of the attribute (from the request or from pre-indexed values), and then compare to what it needs to be compared with. */
|
|
4429
|
-
attrName?: string;
|
|
4430
|
-
/** a value with a string type. Will be compared to the attribute provided, and be true only if they match the operator. */
|
|
4431
|
-
stringValue?: string;
|
|
4432
|
-
/** a value with a boolean type. Will be compared to the attribute provided, and be true only if they match the operator. */
|
|
4433
|
-
boolValue?: boolean;
|
|
4434
|
-
}
|
|
4435
|
-
interface LikeOperator {
|
|
4436
|
-
/** The attribute which should be compared. The attribute will be first evaluated to a value, and then compared the regex values provided. */
|
|
4437
|
-
attrName?: string;
|
|
4438
|
-
/** The regex values which the attribute value should be evaluated on. If the attribute value matches at least one of the regular expressions provided - we will return true */
|
|
4439
|
-
values?: string[];
|
|
4440
|
-
}
|
|
4441
|
-
interface ExperimentOperator {
|
|
4442
|
-
/** The spec to conduct the experiment on. */
|
|
4443
|
-
spec?: string;
|
|
4444
|
-
/** The value to use if the experiment could not be conducted */
|
|
4445
|
-
fallbackValue?: string;
|
|
4446
|
-
/** The expected value of the experiment conduction. If it matches the actual value - true will be returned. Otherwise - false. */
|
|
4447
|
-
expectedValue?: string;
|
|
4448
|
-
}
|
|
4449
|
-
/** Implies that the policy takes affect only if the depend on subject is permitted as well. */
|
|
4450
|
-
interface DependOnOperator {
|
|
4451
|
-
/** The subject on which the current entry depends on. If the subject is allowed to perform what the query was about - the condition will be evaluated to true. Otherwise - false */
|
|
4452
|
-
dependOnSubject?: Subject$1;
|
|
4453
|
-
}
|
|
4454
|
-
interface AccountInfo$1 {
|
|
4455
|
-
accountName?: string;
|
|
4456
|
-
accountImage?: string;
|
|
4457
|
-
isTeam?: boolean;
|
|
4458
|
-
}
|
|
4459
|
-
interface ApiPolicy {
|
|
4460
|
-
_id?: string;
|
|
4461
|
-
description?: string | null;
|
|
4462
|
-
name?: string | null;
|
|
4463
|
-
isCustom?: boolean;
|
|
4464
|
-
scopes?: string[];
|
|
4465
|
-
}
|
|
4466
|
-
interface PredefinedRoles$1 {
|
|
4467
|
-
roles?: PredefinedRole$1[];
|
|
4468
|
-
}
|
|
4469
|
-
interface PredefinedRole$1 {
|
|
4470
|
-
titleKey?: string;
|
|
4471
|
-
roles?: Role$1[];
|
|
4472
|
-
title?: string | null;
|
|
4473
|
-
areaId?: string;
|
|
4474
|
-
}
|
|
4475
|
-
interface Role$1 {
|
|
4476
|
-
_id?: string;
|
|
4477
|
-
deprecatedKey?: string;
|
|
4478
|
-
/** @deprecated */
|
|
4479
|
-
titleKey?: string;
|
|
4480
|
-
/** @deprecated */
|
|
4481
|
-
descriptionKey?: string;
|
|
4482
|
-
deprecated?: boolean;
|
|
4483
|
-
restrictFromLevel?: string;
|
|
4484
|
-
experiments?: string[];
|
|
4485
|
-
appDefIds?: string[];
|
|
4486
|
-
title?: string | null;
|
|
4487
|
-
description?: string | null;
|
|
4488
|
-
isCustom?: boolean;
|
|
4489
|
-
scopes?: string[];
|
|
4490
|
-
availableResourceTypes?: ResourceType$1[];
|
|
4491
|
-
availableConditions?: ConditionAttributeType$1[];
|
|
4492
|
-
limitToEditorTypes?: string[];
|
|
4493
|
-
}
|
|
4494
|
-
interface ChangeRoleRequest {
|
|
4495
|
-
/** User ID. */
|
|
4496
|
-
_id?: string;
|
|
4497
|
-
/**
|
|
4498
|
-
* Deprecated. Use `policyIds`.
|
|
4499
|
-
* @deprecated
|
|
4500
|
-
*/
|
|
4501
|
-
role?: string;
|
|
4502
|
-
/** Role IDs to be assigned. */
|
|
4503
|
-
policyIds?: string[];
|
|
4504
|
-
}
|
|
4505
|
-
interface ChangeRoleResponse {
|
|
4506
|
-
}
|
|
4507
|
-
interface RemoveMemberRequest {
|
|
4508
|
-
/** User ID of the team member to remove. */
|
|
4509
|
-
userId: string;
|
|
4510
|
-
}
|
|
4511
|
-
interface RemoveMemberResponse {
|
|
4512
|
-
}
|
|
4513
|
-
interface GetUsersRequest {
|
|
4514
|
-
/** The number of items to load */
|
|
4515
|
-
limit?: number | null;
|
|
4516
|
-
/** number of items to skip in the current sort order */
|
|
4517
|
-
offset?: number | null;
|
|
4518
|
-
}
|
|
4519
|
-
interface GetUsersResponse {
|
|
4520
|
-
users?: User$1[];
|
|
4521
|
-
}
|
|
4522
|
-
interface GetScopesRequest {
|
|
4523
|
-
/** The locale of the request. Defaults to en */
|
|
4524
|
-
locale?: string | null;
|
|
4525
|
-
}
|
|
4526
|
-
interface GetScopesResponse {
|
|
4527
|
-
scopeAreas?: ScopeArea[];
|
|
4528
|
-
}
|
|
4529
|
-
interface ScopeArea {
|
|
4530
|
-
title?: string;
|
|
4531
|
-
appDefIds?: string[];
|
|
4532
|
-
scopes?: PermissionScope[];
|
|
4533
|
-
restrictFromLevel?: ScopeLevel;
|
|
4534
|
-
}
|
|
4535
|
-
interface PermissionScope {
|
|
4536
|
-
_id?: string;
|
|
4537
|
-
title?: string;
|
|
4538
|
-
description?: string;
|
|
4539
|
-
level?: ScopeLevel;
|
|
4540
|
-
experiments?: string[];
|
|
4541
|
-
dependantScopes?: string[];
|
|
4542
|
-
restrictFromLevel?: ScopeLevel;
|
|
4543
|
-
deprecated?: boolean | null;
|
|
4544
|
-
/** The visibility of the scope for the caller */
|
|
4545
|
-
visibility?: Visibility;
|
|
4546
|
-
appDefIds?: string[];
|
|
4547
|
-
}
|
|
4548
|
-
declare enum ScopeLevel {
|
|
4549
|
-
None = "None",
|
|
4550
|
-
SITE = "SITE",
|
|
4551
|
-
ACCOUNT = "ACCOUNT"
|
|
4552
|
-
}
|
|
4553
|
-
declare enum Visibility {
|
|
4554
|
-
/** The scope should be visible to the caller */
|
|
4555
|
-
VISIBLE = "VISIBLE",
|
|
4556
|
-
/** The scope shouldn't be visible for the caller, because the capability that blocks it is turned on for the caller */
|
|
4557
|
-
BLOCKED_BY_CAPABILITY = "BLOCKED_BY_CAPABILITY"
|
|
4558
|
-
}
|
|
4559
|
-
interface GetPeopleRequest {
|
|
4560
|
-
resource?: PeopleResource;
|
|
4561
|
-
peopleType?: PeopleType;
|
|
4562
|
-
paging?: Paging;
|
|
4563
|
-
/** The locale of the request. Defaults to en */
|
|
4564
|
-
locale?: string | null;
|
|
4565
|
-
}
|
|
4566
|
-
interface PeopleResource extends PeopleResourceResourceTypeOneOf {
|
|
4567
|
-
site?: string;
|
|
4568
|
-
folder?: FolderResource;
|
|
4569
|
-
}
|
|
4570
|
-
/** @oneof */
|
|
4571
|
-
interface PeopleResourceResourceTypeOneOf {
|
|
4572
|
-
site?: string;
|
|
4573
|
-
folder?: FolderResource;
|
|
4574
|
-
}
|
|
4575
|
-
interface FolderResource {
|
|
4576
|
-
folderId?: string;
|
|
4577
|
-
folderFullPath?: string;
|
|
4578
|
-
}
|
|
4579
|
-
declare enum PeopleType {
|
|
4580
|
-
UNDEF_PEOPLE_TYPE = "UNDEF_PEOPLE_TYPE",
|
|
4581
|
-
CONTRIBUTOR = "CONTRIBUTOR",
|
|
4582
|
-
TEAM_MEMBER = "TEAM_MEMBER"
|
|
4583
|
-
}
|
|
4584
|
-
interface GetPeopleResponse {
|
|
4585
|
-
people?: People;
|
|
4586
|
-
}
|
|
4587
|
-
interface People {
|
|
4588
|
-
people?: Person[];
|
|
4589
|
-
totalPeople?: number;
|
|
4590
|
-
}
|
|
4591
|
-
interface Person extends PersonPersonOneOf {
|
|
4592
|
-
contributor?: Contributor$1;
|
|
4593
|
-
teamMember?: TeamMember;
|
|
4594
|
-
}
|
|
4595
|
-
/** @oneof */
|
|
4596
|
-
interface PersonPersonOneOf {
|
|
4597
|
-
contributor?: Contributor$1;
|
|
4598
|
-
teamMember?: TeamMember;
|
|
4599
|
-
}
|
|
4600
|
-
interface Contributor$1 {
|
|
4601
|
-
/** Contributor's metadata. */
|
|
4602
|
-
metaData?: PersonMetaData$1;
|
|
4603
|
-
/** Whether the contributor account is a team account. */
|
|
4604
|
-
isTeam?: boolean | null;
|
|
4605
|
-
/** Date that the contributor joined the site. */
|
|
4606
|
-
joinedAt?: Date | null;
|
|
4607
|
-
/** Email address that received the invite. */
|
|
4608
|
-
invitedEmail?: string | null;
|
|
4609
|
-
/** Whether the contributor account is a client account. */
|
|
4610
|
-
isClient?: boolean | null;
|
|
4611
|
-
/**
|
|
4612
|
-
* Contributor's user ID.
|
|
4613
|
-
* @readonly
|
|
4614
|
-
*/
|
|
4615
|
-
_id?: string;
|
|
4616
|
-
}
|
|
4617
|
-
interface PersonMetaData$1 {
|
|
4618
|
-
/** Contributor's account ID. */
|
|
4619
|
-
_id?: string;
|
|
4620
|
-
/** Contributor's full name. */
|
|
4621
|
-
fullName?: string | null;
|
|
4622
|
-
/** URL for contributor's profile image. */
|
|
4623
|
-
imageUrl?: string | null;
|
|
4624
|
-
/** Contributor's email address. */
|
|
4625
|
-
email?: string | null;
|
|
4626
|
-
/** Contributor's access to assets and their assigned role (`policy`) for that asset. */
|
|
4627
|
-
assignments?: Assignment$1[];
|
|
4628
|
-
}
|
|
4629
|
-
interface TeamMember {
|
|
4630
|
-
metaData?: PersonMetaData$1;
|
|
4631
|
-
}
|
|
4632
|
-
interface GetTeamV2Response {
|
|
4633
|
-
users?: User$1[];
|
|
4634
|
-
totalUsersInAccount?: string;
|
|
4635
|
-
}
|
|
4636
|
-
interface GetTeamInvitesRequest {
|
|
4637
|
-
/** The locale of the request. Defaults to en */
|
|
4638
|
-
locale?: string | null;
|
|
4639
|
-
}
|
|
4640
|
-
interface GetTeamInvitesResponse {
|
|
4641
|
-
invites?: Invite[];
|
|
4642
|
-
}
|
|
4643
|
-
interface Invite {
|
|
4644
|
-
/** @readonly */
|
|
4645
|
-
_id?: string;
|
|
4646
|
-
/** @readonly */
|
|
4647
|
-
accountId?: string;
|
|
4648
|
-
email?: string;
|
|
4649
|
-
status?: InviteStatus$1;
|
|
4650
|
-
acceptLink?: string;
|
|
4651
|
-
dateCreated?: Date | null;
|
|
4652
|
-
dateUpdated?: Date | null;
|
|
4653
|
-
assignments?: ApiInviteAssignment[];
|
|
4654
|
-
/** Invite expiration date */
|
|
4655
|
-
expirationDate?: Date | null;
|
|
4656
|
-
}
|
|
4657
|
-
interface ApiInviteAssignment {
|
|
4658
|
-
policy?: AssignedPolicy$1;
|
|
4659
|
-
restrictions?: Restriction$1;
|
|
4660
|
-
}
|
|
4661
|
-
interface GetPoliciesRequest {
|
|
4662
|
-
/** The locale of the request. Defaults to en */
|
|
4663
|
-
locale?: string | null;
|
|
4664
|
-
/** Areas filter to include only roles from areas that pass this filter. When not provided, roles from all areas will be returned */
|
|
4665
|
-
areasFilter?: AreasFilter;
|
|
4666
|
-
/** Role level filter to include only roles that are not restricted from the requested resource level (site/account). When set to ALL, all levels are returned */
|
|
4667
|
-
roleLevel?: RoleLevel;
|
|
4668
|
-
}
|
|
4669
|
-
interface AreasFilter {
|
|
4670
|
-
/** A list of role area ids, to filter only roles belonging to these areas */
|
|
4671
|
-
areaIds?: string[];
|
|
4672
|
-
}
|
|
4673
|
-
declare enum RoleLevel {
|
|
4674
|
-
ALL = "ALL",
|
|
4675
|
-
SITE_LEVEL = "SITE_LEVEL",
|
|
4676
|
-
ACCOUNT_LEVEL = "ACCOUNT_LEVEL"
|
|
4677
|
-
}
|
|
4678
|
-
interface GetPoliciesResponse {
|
|
4679
|
-
policies?: PredefinedRoles$1;
|
|
4680
|
-
}
|
|
4681
|
-
interface SearchTeamRequest {
|
|
4682
|
-
/** Free text to search for within team member name and email address fields. */
|
|
4683
|
-
query?: string | null;
|
|
4684
|
-
/** Sort data. */
|
|
4685
|
-
orderBy?: Ordering[];
|
|
4686
|
-
/**
|
|
4687
|
-
* Filter object. Supported values: `inviteType` and `roleId`. For example, `{'inviteType': {'$eq': 'Expired'}}`.
|
|
4688
|
-
* See [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language) for more information.
|
|
4689
|
-
*/
|
|
4690
|
-
filter?: Record<string, any> | null;
|
|
4691
|
-
/**
|
|
4692
|
-
* A list of facets to return in the response. Facets count the items within logical groupings.
|
|
4693
|
-
* See [Filters and Facets: An Explainer](https://medium.com/@westontt/filters-and-facets-an-explainer-3b73a9538eca) for more information.
|
|
4694
|
-
*/
|
|
4695
|
-
facets?: FacetType[];
|
|
4696
|
-
/** Pagination. */
|
|
4697
|
-
paging?: Paging;
|
|
4698
|
-
}
|
|
4699
|
-
interface Ordering {
|
|
4700
|
-
/** Field to sort by. */
|
|
4701
|
-
fieldName?: OrderField;
|
|
4702
|
-
/** Sort order. */
|
|
4703
|
-
direction?: Direction;
|
|
4704
|
-
}
|
|
4705
|
-
declare enum OrderField {
|
|
4706
|
-
/** For internal use. */
|
|
4707
|
-
Undefined = "Undefined",
|
|
4708
|
-
/** Team member name. */
|
|
4709
|
-
Name = "Name",
|
|
4710
|
-
/** Date team member joined the account. */
|
|
4711
|
-
JoinedAt = "JoinedAt"
|
|
4712
|
-
}
|
|
4713
|
-
declare enum Direction {
|
|
4714
|
-
/** For internal use. */
|
|
4715
|
-
UninitializedDirection = "UninitializedDirection",
|
|
4716
|
-
/** Ascending. */
|
|
4717
|
-
ASC = "ASC",
|
|
4718
|
-
/** Descending. */
|
|
4719
|
-
DESC = "DESC"
|
|
4720
|
-
}
|
|
4721
|
-
declare enum FacetType {
|
|
4722
|
-
Undefined = "Undefined",
|
|
4723
|
-
/** How many team members with each role */
|
|
4724
|
-
Roles = "Roles",
|
|
4725
|
-
/** How many team members by invite status */
|
|
4726
|
-
InviteStatus = "InviteStatus",
|
|
4727
|
-
/** How many team members in total in the account */
|
|
4728
|
-
Users = "Users"
|
|
4729
|
-
}
|
|
4730
|
-
interface SearchTeamResponse {
|
|
4731
|
-
/** List of facets, as requested. */
|
|
4732
|
-
facets?: Facet[];
|
|
4733
|
-
/** Existing team members and invites sent to join the account. */
|
|
4734
|
-
teamMembers?: TeamMemberV3[];
|
|
4735
|
-
}
|
|
4736
|
-
interface Facet {
|
|
4737
|
-
/** Facet type. */
|
|
4738
|
-
facetType?: FacetType;
|
|
4739
|
-
/** Values and their counters. Values with count = 0 are not returned. */
|
|
4740
|
-
values?: FacetValue[];
|
|
4741
|
-
}
|
|
4742
|
-
interface FacetValue {
|
|
4743
|
-
/** Supported values: `Roles`, `InviteStatus`, `Users`. */
|
|
4744
|
-
value?: string;
|
|
4745
|
-
/** Number of existing items for the value. */
|
|
4746
|
-
count?: number;
|
|
4747
|
-
}
|
|
4748
|
-
interface TeamMemberV3 extends TeamMemberV3MembersOneOf {
|
|
4749
|
-
/** Existing team member data. */
|
|
4750
|
-
user?: UserV3;
|
|
4751
|
-
/** Invited team member data. */
|
|
4752
|
-
invite?: InviteV3;
|
|
4753
|
-
}
|
|
4754
|
-
/** @oneof */
|
|
4755
|
-
interface TeamMemberV3MembersOneOf {
|
|
4756
|
-
/** Existing team member data. */
|
|
4757
|
-
user?: UserV3;
|
|
4758
|
-
/** Invited team member data. */
|
|
4759
|
-
invite?: InviteV3;
|
|
4760
|
-
}
|
|
4761
|
-
interface UserV3 {
|
|
4762
|
-
/** User ID. */
|
|
4763
|
-
_id?: string;
|
|
4764
|
-
/** User's email address. */
|
|
4765
|
-
email?: string | null;
|
|
4766
|
-
/** User's name, when provided. */
|
|
4767
|
-
name?: Name$1;
|
|
4768
|
-
/** URL to user's profile image, when provided. */
|
|
4769
|
-
profileImage?: string | null;
|
|
4770
|
-
/** Date the user joined the team. */
|
|
4771
|
-
joinedTeamAt?: Date | null;
|
|
4772
|
-
/** Mapping of the user's access to an asset and their assigned role. */
|
|
4773
|
-
assignments?: AssignmentV3[];
|
|
4774
|
-
}
|
|
4775
|
-
interface AssignmentV3 {
|
|
4776
|
-
/** Role assigned to the user. To retrieve all available roles, call Get Roles Info. */
|
|
4777
|
-
policyId?: string | null;
|
|
4778
|
-
/**
|
|
4779
|
-
* Unique ID for this specific assignment.
|
|
4780
|
-
* @readonly
|
|
4781
|
-
*/
|
|
4782
|
-
assignmentId?: string | null;
|
|
4783
|
-
/** 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. */
|
|
4784
|
-
restrictions?: Restriction$1;
|
|
4785
|
-
/** Identity assigned to the asset in an assignment, referred to as subject. Supported subjects include user IDs, account IDs, and app IDs. */
|
|
4786
|
-
subject?: AssignedSubject;
|
|
4787
|
-
}
|
|
4788
|
-
interface AssignedSubject {
|
|
4789
|
-
/**
|
|
4790
|
-
* Identity ID.
|
|
4791
|
-
* @readonly
|
|
4792
|
-
*/
|
|
4793
|
-
_id?: string;
|
|
4794
|
-
/** Identity type. */
|
|
4795
|
-
subjectType?: SubjectType$1;
|
|
4796
|
-
}
|
|
4797
|
-
interface InviteV3 {
|
|
4798
|
-
/**
|
|
4799
|
-
* Invite ID.
|
|
4800
|
-
* @readonly
|
|
4801
|
-
*/
|
|
4802
|
-
_id?: string;
|
|
4803
|
-
/** Invitee's email address. */
|
|
4804
|
-
email?: string | null;
|
|
4805
|
-
/** Invite status. */
|
|
4806
|
-
status?: InviteStatus$1;
|
|
4807
|
-
/** URL of direct link to accept the invite. */
|
|
4808
|
-
acceptLink?: string | null;
|
|
4809
|
-
/** Date the invite was created. */
|
|
4810
|
-
dateCreated?: Date | null;
|
|
4811
|
-
/** Date the invite was last updated. */
|
|
4812
|
-
dateUpdated?: Date | null;
|
|
4813
|
-
/** A list of assignments that will be applied to the invitees when they accept the invite. */
|
|
4814
|
-
assignments?: InviteAssignmentV3[];
|
|
4815
|
-
/** Invite expiration date. */
|
|
4816
|
-
expirationDate?: Date | null;
|
|
4817
|
-
}
|
|
4818
|
-
interface InviteAssignmentV3 {
|
|
4819
|
-
/** Role ID that will be assigned once the invite is accepted. */
|
|
4820
|
-
policyId?: string | null;
|
|
4821
|
-
/** Assets where the user will be assigned access. When empty, the role covers all assets, with no restrictions to specific sites or folders. */
|
|
4822
|
-
restrictions?: Restriction$1;
|
|
4823
|
-
}
|
|
4824
|
-
interface GetRolesRequest {
|
|
4825
|
-
/** The locale of the predefined roles names and descriptions. Defaults to English */
|
|
4826
|
-
locale?: string | null;
|
|
4827
|
-
}
|
|
4828
|
-
interface GetRolesResponse {
|
|
4829
|
-
/** The predefined roles (by areas) */
|
|
4830
|
-
predefinedRolesAreas?: PredefinedRolesArea[];
|
|
4831
|
-
/** The custom roles */
|
|
4832
|
-
customRoles?: CustomRole[];
|
|
4833
|
-
}
|
|
4834
|
-
interface PredefinedRolesArea {
|
|
4835
|
-
/** The id of the area (e.g "Blog") */
|
|
4836
|
-
areaId?: string;
|
|
4837
|
-
/** The translated area title, according to the request locale, or the original title if translation failed */
|
|
4838
|
-
title?: string;
|
|
4839
|
-
/** The predefined roles belonging to this area */
|
|
4840
|
-
roles?: PredefinedRoleV2[];
|
|
4841
|
-
}
|
|
4842
|
-
interface PredefinedRoleV2 {
|
|
4843
|
-
/** The policy id of this role */
|
|
4844
|
-
_id?: string;
|
|
4845
|
-
/** The title of this role, translated according to the request locale, or the original title if translation failed */
|
|
4846
|
-
title?: string;
|
|
4847
|
-
/** The description of this role, translated according to the request locale, or the original description if translation failed */
|
|
4848
|
-
description?: string;
|
|
4849
|
-
/** The permission-scopes this role's policy contains */
|
|
4850
|
-
scopes?: string[];
|
|
4851
|
-
/** Indicates if the role is deprecated (shouldn't be granted, and only exists for backward compatability) */
|
|
4852
|
-
deprecated?: boolean;
|
|
4853
|
-
/** Indicates if this role should be restricted from assignments of a specific resource type (if RoleLevelRestriction = None, there is no restriction) */
|
|
4854
|
-
restrictFromLevel?: RoleLevelRestriction;
|
|
4855
|
-
/** Experiments that should be open for this role to be visible */
|
|
4856
|
-
experiments?: string[];
|
|
4857
|
-
/** Applications that should be installed for this role to be visible */
|
|
4858
|
-
appDefIds?: string[];
|
|
4859
|
-
/** Editor types this role should be limited to (if empty, available in all editors) */
|
|
4860
|
-
limitToEditorTypes?: EditorType[];
|
|
4861
|
-
/** The visibility of the role */
|
|
4862
|
-
visibility?: RoleVisibility;
|
|
4863
|
-
}
|
|
4864
|
-
declare enum RoleLevelRestriction {
|
|
4865
|
-
NoRestriction = "NoRestriction",
|
|
4866
|
-
Site = "Site",
|
|
4867
|
-
Account = "Account"
|
|
4868
|
-
}
|
|
4869
|
-
declare enum EditorType {
|
|
4870
|
-
UNINITIALIZED = "UNINITIALIZED",
|
|
4871
|
-
EDITORX = "EDITORX",
|
|
4872
|
-
BLOCKS = "BLOCKS",
|
|
4873
|
-
STUDIO = "STUDIO"
|
|
4874
|
-
}
|
|
4875
|
-
declare enum RoleVisibility {
|
|
4876
|
-
/** the role should be visible to the caller */
|
|
4877
|
-
Visible = "Visible",
|
|
4878
|
-
/** the role should be disabled for the caller, because it contains permissions the caller wasn't granted on the call context (site/account) */
|
|
4879
|
-
Disabled_Dependency = "Disabled_Dependency",
|
|
4880
|
-
/** the role should be disabled for the caller, because the role's capability is disabled for the caller */
|
|
4881
|
-
Disabled_Capability = "Disabled_Capability"
|
|
4882
|
-
}
|
|
4883
|
-
interface CustomRole {
|
|
4884
|
-
/** The policy this role grants */
|
|
4885
|
-
policy?: ApiPolicy;
|
|
4886
|
-
/** The visibility of the role */
|
|
4887
|
-
visibility?: RoleVisibility;
|
|
4888
|
-
}
|
|
4889
|
-
interface GetRolesInfoRequest {
|
|
4890
|
-
/** Language of predefined roles names and descriptions to return, in ISO 639 format. Default: `en`. */
|
|
4891
|
-
locale?: string | null;
|
|
4892
|
-
/** Roles to return. */
|
|
4893
|
-
filter?: RolesInfoFilter;
|
|
4894
|
-
}
|
|
4895
|
-
interface RolesInfoFilter {
|
|
4896
|
-
/** Role level to return. Default: ALL. */
|
|
4897
|
-
roleLevel?: RoleLevel;
|
|
4898
|
-
/** Filter for editor-specific roles. Default: ALL. */
|
|
4899
|
-
editorTypes?: EditorType[];
|
|
4900
|
-
}
|
|
4901
|
-
interface GetRolesInfoResponse {
|
|
4902
|
-
/** Predefined roles. */
|
|
4903
|
-
predefinedRoles?: RoleInfo[];
|
|
4904
|
-
/** Custom roles. */
|
|
4905
|
-
customRoles?: RoleInfo[];
|
|
4906
|
-
}
|
|
4907
|
-
interface RoleInfo {
|
|
4908
|
-
/** Role ID. */
|
|
4909
|
-
_id?: string;
|
|
4910
|
-
/** Role title, translated according to the request locale. If translation fails, the original title is returned. */
|
|
4911
|
-
title?: string;
|
|
4912
|
-
/** Role description, translated according to the request locale. If translation fails, the original description is returned. */
|
|
4913
|
-
description?: string;
|
|
4914
|
-
/** Whether this role is restricted from accessing a specific resource type. Default: `NoRestriction`. */
|
|
4915
|
-
restrictFromLevel?: RoleLevelRestriction;
|
|
4916
|
-
}
|
|
4917
|
-
interface CreateCustomRoleRequest {
|
|
4918
|
-
/** The custom role to create */
|
|
4919
|
-
role?: Policy$1;
|
|
4920
|
-
}
|
|
4921
|
-
interface Policy$1 {
|
|
4922
|
-
/** @readonly */
|
|
4923
|
-
_id?: string | null;
|
|
4924
|
-
name?: string | null;
|
|
4925
|
-
description?: string | null;
|
|
4926
|
-
/** @readonly */
|
|
4927
|
-
status?: string;
|
|
4928
|
-
policyType?: PolicyType;
|
|
4929
|
-
statements?: PolicyStatement[];
|
|
4930
|
-
}
|
|
4931
|
-
declare enum PolicyType {
|
|
4932
|
-
UNKNOWN_STATUS = "UNKNOWN_STATUS",
|
|
4933
|
-
PREDEFINED = "PREDEFINED",
|
|
4934
|
-
CUSTOM = "CUSTOM",
|
|
4935
|
-
INLINE_CUSTOM = "INLINE_CUSTOM"
|
|
4936
|
-
}
|
|
4937
|
-
interface PolicyStatement {
|
|
4938
|
-
/** @readonly */
|
|
4939
|
-
_id?: string | null;
|
|
4940
|
-
permissions?: string[];
|
|
4941
|
-
scopes?: string[];
|
|
4942
|
-
effect?: Effect;
|
|
4943
|
-
condition?: PolicyCondition;
|
|
4944
|
-
}
|
|
4945
|
-
declare enum Effect {
|
|
4946
|
-
UNKNOWN_EFFECT = "UNKNOWN_EFFECT",
|
|
4947
|
-
ALLOW = "ALLOW",
|
|
4948
|
-
DENY = "DENY"
|
|
4949
|
-
}
|
|
4950
|
-
interface CreateCustomRoleResponse {
|
|
4951
|
-
/** The newly created custom role */
|
|
4952
|
-
roleCreated?: Policy$1;
|
|
4953
|
-
}
|
|
4954
|
-
interface ChangeRoleV2Request {
|
|
4955
|
-
/** ID of team member being affected. */
|
|
4956
|
-
userId?: string;
|
|
4957
|
-
/** New assignments, including roles, to apply to the team member in this account. To retrieve all available roles, call Get Roles Info. */
|
|
4958
|
-
roles?: AssignmentV3[];
|
|
4959
|
-
/** Existing assignment IDs to remove. To retrieve all existing assignment IDs for a team member, call Search Team. */
|
|
4960
|
-
assignmentIdsToReplace?: string[];
|
|
4961
|
-
}
|
|
4962
|
-
interface ChangeRoleV2Response {
|
|
4963
|
-
/** New roles assigned to the given team member. */
|
|
4964
|
-
roles?: AssignmentV3[];
|
|
4965
|
-
}
|
|
4966
|
-
interface UpdateTeamMemberAssignmentsRequest {
|
|
4967
|
-
/** ID of team member being affected. */
|
|
4968
|
-
userId: string;
|
|
4969
|
-
/** New assignments to apply to the team member in this account. */
|
|
4970
|
-
newAssignments: AssignmentV3[];
|
|
4971
|
-
/** Existing assignment IDs to remove. To retrieve all existing assignment IDs for a team member, call Search Team. */
|
|
4972
|
-
assignmentIdsToRemove: string[];
|
|
4973
|
-
}
|
|
4974
|
-
interface UpdateTeamMemberAssignmentsResponse {
|
|
4975
|
-
/** The new assignments, assigned to the given team member. */
|
|
4976
|
-
assignments?: AssignmentV3[];
|
|
4977
|
-
}
|
|
4978
|
-
interface GetSubjectsAssignmentsRequest {
|
|
4979
|
-
/** The locale of the request. Defaults to en */
|
|
4980
|
-
locale?: string | null;
|
|
4981
|
-
/** list of subjects */
|
|
4982
|
-
subjects?: Subject$1[];
|
|
4983
|
-
}
|
|
4984
|
-
interface GetSubjectsAssignmentsResponse {
|
|
4985
|
-
/** list of subjects with assignments */
|
|
4986
|
-
subjectsAssignments?: SubjectAssignments[];
|
|
4987
|
-
}
|
|
4988
|
-
interface SubjectAssignments {
|
|
4989
|
-
subject?: Subject$1;
|
|
4990
|
-
assignments?: Assignment$1[];
|
|
4991
|
-
}
|
|
4992
|
-
interface FacetValueNonNullableFields {
|
|
4993
|
-
value: string;
|
|
4994
|
-
count: number;
|
|
4995
|
-
}
|
|
4996
|
-
interface FacetNonNullableFields {
|
|
4997
|
-
facetType: FacetType;
|
|
4998
|
-
values: FacetValueNonNullableFields[];
|
|
4999
|
-
}
|
|
5000
|
-
interface NameNonNullableFields {
|
|
5001
|
-
firstName: string;
|
|
5002
|
-
lastName: string;
|
|
5003
|
-
}
|
|
5004
|
-
interface ApiResourceNonNullableFields {
|
|
5005
|
-
resourceType: ResourceType$1;
|
|
5006
|
-
_id: string;
|
|
5007
|
-
}
|
|
5008
|
-
interface ApiConditionNonNullableFields {
|
|
5009
|
-
conditionType: ConditionAttributeType$1;
|
|
5010
|
-
_id: string;
|
|
5011
|
-
}
|
|
5012
|
-
interface ConditionsNonNullableFields {
|
|
5013
|
-
conditions: ApiConditionNonNullableFields[];
|
|
5014
|
-
}
|
|
5015
|
-
interface CompanionResourceNonNullableFields {
|
|
5016
|
-
_id: string;
|
|
5017
|
-
resourceType: string;
|
|
5018
|
-
}
|
|
5019
|
-
interface SiteRestrictionNonNullableFields {
|
|
5020
|
-
_id: string;
|
|
5021
|
-
resource?: CompanionResourceNonNullableFields;
|
|
5022
|
-
}
|
|
5023
|
-
interface RestrictionNonNullableFields {
|
|
5024
|
-
resource?: ApiResourceNonNullableFields;
|
|
5025
|
-
conditions?: ConditionsNonNullableFields;
|
|
5026
|
-
site?: SiteRestrictionNonNullableFields;
|
|
5027
|
-
}
|
|
5028
|
-
interface AssignedSubjectNonNullableFields {
|
|
5029
|
-
_id: string;
|
|
5030
|
-
subjectType: SubjectType$1;
|
|
5031
|
-
}
|
|
5032
|
-
interface AssignmentV3NonNullableFields {
|
|
5033
|
-
restrictions?: RestrictionNonNullableFields;
|
|
5034
|
-
subject?: AssignedSubjectNonNullableFields;
|
|
5035
|
-
}
|
|
5036
|
-
interface UserV3NonNullableFields {
|
|
5037
|
-
_id: string;
|
|
5038
|
-
name?: NameNonNullableFields;
|
|
5039
|
-
assignments: AssignmentV3NonNullableFields[];
|
|
5040
|
-
}
|
|
5041
|
-
interface InviteAssignmentV3NonNullableFields {
|
|
5042
|
-
restrictions?: RestrictionNonNullableFields;
|
|
5043
|
-
}
|
|
5044
|
-
interface InviteV3NonNullableFields {
|
|
5045
|
-
_id: string;
|
|
5046
|
-
status: InviteStatus$1;
|
|
5047
|
-
assignments: InviteAssignmentV3NonNullableFields[];
|
|
5048
|
-
}
|
|
5049
|
-
interface TeamMemberV3NonNullableFields {
|
|
5050
|
-
user?: UserV3NonNullableFields;
|
|
5051
|
-
invite?: InviteV3NonNullableFields;
|
|
5052
|
-
}
|
|
5053
|
-
interface SearchTeamResponseNonNullableFields {
|
|
5054
|
-
facets: FacetNonNullableFields[];
|
|
5055
|
-
teamMembers: TeamMemberV3NonNullableFields[];
|
|
5056
|
-
}
|
|
5057
|
-
interface RoleInfoNonNullableFields {
|
|
5058
|
-
_id: string;
|
|
5059
|
-
title: string;
|
|
5060
|
-
description: string;
|
|
5061
|
-
restrictFromLevel: RoleLevelRestriction;
|
|
5062
|
-
}
|
|
5063
|
-
interface GetRolesInfoResponseNonNullableFields {
|
|
5064
|
-
predefinedRoles: RoleInfoNonNullableFields[];
|
|
5065
|
-
customRoles: RoleInfoNonNullableFields[];
|
|
5066
|
-
}
|
|
5067
|
-
interface UpdateTeamMemberAssignmentsResponseNonNullableFields {
|
|
5068
|
-
assignments: AssignmentV3NonNullableFields[];
|
|
5069
|
-
}
|
|
5070
|
-
interface SearchTeamOptions {
|
|
5071
|
-
/** Free text to search for within team member name and email address fields. */
|
|
5072
|
-
query?: string | null;
|
|
5073
|
-
/** Sort data. */
|
|
5074
|
-
orderBy?: Ordering[];
|
|
5075
|
-
/**
|
|
5076
|
-
* Filter object. Supported values: `inviteType` and `roleId`. For example, `{'inviteType': {'$eq': 'Expired'}}`.
|
|
5077
|
-
* See [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language) for more information.
|
|
5078
|
-
*/
|
|
5079
|
-
filter?: Record<string, any> | null;
|
|
5080
|
-
/**
|
|
5081
|
-
* A list of facets to return in the response. Facets count the items within logical groupings.
|
|
5082
|
-
* See [Filters and Facets: An Explainer](https://medium.com/@westontt/filters-and-facets-an-explainer-3b73a9538eca) for more information.
|
|
5083
|
-
*/
|
|
5084
|
-
facets?: FacetType[];
|
|
5085
|
-
/** Pagination. */
|
|
5086
|
-
paging?: Paging;
|
|
5087
|
-
}
|
|
5088
|
-
interface GetRolesInfoOptions {
|
|
5089
|
-
/** Language of predefined roles names and descriptions to return, in ISO 639 format. Default: `en`. */
|
|
5090
|
-
locale?: string | null;
|
|
5091
|
-
/** Roles to return. */
|
|
5092
|
-
filter?: RolesInfoFilter;
|
|
5093
|
-
}
|
|
5094
|
-
interface UpdateTeamMemberAssignmentsOptions {
|
|
5095
|
-
/** New assignments to apply to the team member in this account. */
|
|
5096
|
-
newAssignments: AssignmentV3[];
|
|
5097
|
-
/** Existing assignment IDs to remove. To retrieve all existing assignment IDs for a team member, call Search Team. */
|
|
5098
|
-
assignmentIdsToRemove: string[];
|
|
5099
|
-
}
|
|
5100
|
-
|
|
5101
|
-
declare function removeMember$1(httpClient: HttpClient): RemoveMemberSignature;
|
|
5102
|
-
interface RemoveMemberSignature {
|
|
5103
|
-
/**
|
|
5104
|
-
* Removes a team member from the requesting account.
|
|
5105
|
-
* > **Important**: This call requires an account level API key and cannot be authenticated with the standard authorization header. API keys are currently available to selected beta users only.
|
|
5106
|
-
* @param - User ID of the team member to remove.
|
|
5107
|
-
*/
|
|
5108
|
-
(userId: string): Promise<void>;
|
|
5109
|
-
}
|
|
5110
|
-
declare function searchTeam$1(httpClient: HttpClient): SearchTeamSignature;
|
|
5111
|
-
interface SearchTeamSignature {
|
|
5112
|
-
/**
|
|
5113
|
-
* Retrieves all team members of the requesting account, based on the provided filters and free text queries.
|
|
5114
|
-
* > **Important**: This call requires an account level API key and cannot be authenticated with the standard authorization header. API keys are currently available to selected beta users only.
|
|
5115
|
-
*/
|
|
5116
|
-
(options?: SearchTeamOptions | undefined): Promise<SearchTeamResponse & SearchTeamResponseNonNullableFields>;
|
|
5117
|
-
}
|
|
5118
|
-
declare function getRolesInfo$1(httpClient: HttpClient): GetRolesInfoSignature;
|
|
5119
|
-
interface GetRolesInfoSignature {
|
|
5120
|
-
/**
|
|
5121
|
-
* Retrieves all available roles in the requesting account, including predefined and custom roles.
|
|
5122
|
-
* > **Important**: This call requires an account level API key and cannot be authenticated with the standard authorization header. API keys are currently available to selected beta users only.
|
|
5123
|
-
*/
|
|
5124
|
-
(options?: GetRolesInfoOptions | undefined): Promise<GetRolesInfoResponse & GetRolesInfoResponseNonNullableFields>;
|
|
5125
|
-
}
|
|
5126
|
-
declare function updateTeamMemberAssignments$1(httpClient: HttpClient): UpdateTeamMemberAssignmentsSignature;
|
|
5127
|
-
interface UpdateTeamMemberAssignmentsSignature {
|
|
5128
|
-
/**
|
|
5129
|
-
* Updates the assignments of roles and conditions for an existing team member. Changing assignments changes the team member’s access to account assets.
|
|
5130
|
-
* > **Important**: This call requires an account level API key and cannot be authenticated with the standard authorization header. API keys are currently available to selected beta users only.
|
|
5131
|
-
* @param - ID of team member being affected.
|
|
5132
|
-
*/
|
|
5133
|
-
(userId: string, options: UpdateTeamMemberAssignmentsOptions): Promise<UpdateTeamMemberAssignmentsResponse & UpdateTeamMemberAssignmentsResponseNonNullableFields>;
|
|
5134
|
-
}
|
|
5135
|
-
|
|
5136
|
-
declare const removeMember: MaybeContext<BuildRESTFunction<typeof removeMember$1> & typeof removeMember$1>;
|
|
5137
|
-
declare const searchTeam: MaybeContext<BuildRESTFunction<typeof searchTeam$1> & typeof searchTeam$1>;
|
|
5138
|
-
declare const getRolesInfo: MaybeContext<BuildRESTFunction<typeof getRolesInfo$1> & typeof getRolesInfo$1>;
|
|
5139
|
-
declare const updateTeamMemberAssignments: MaybeContext<BuildRESTFunction<typeof updateTeamMemberAssignments$1> & typeof updateTeamMemberAssignments$1>;
|
|
5140
|
-
|
|
5141
|
-
type context$1_AccountInvite = AccountInvite;
|
|
5142
|
-
type context$1_AccountResourceContext = AccountResourceContext;
|
|
5143
|
-
type context$1_ApiCondition = ApiCondition;
|
|
5144
|
-
type context$1_ApiInviteAssignment = ApiInviteAssignment;
|
|
5145
|
-
type context$1_ApiPolicy = ApiPolicy;
|
|
5146
|
-
type context$1_ApiResource = ApiResource;
|
|
5147
|
-
type context$1_AreasFilter = AreasFilter;
|
|
5148
|
-
type context$1_AssignedSubject = AssignedSubject;
|
|
5149
|
-
type context$1_AssignmentV3 = AssignmentV3;
|
|
5150
|
-
type context$1_ChangeRoleRequest = ChangeRoleRequest;
|
|
5151
|
-
type context$1_ChangeRoleResponse = ChangeRoleResponse;
|
|
5152
|
-
type context$1_ChangeRoleV2Request = ChangeRoleV2Request;
|
|
5153
|
-
type context$1_ChangeRoleV2Response = ChangeRoleV2Response;
|
|
5154
|
-
type context$1_ConditionOperator = ConditionOperator;
|
|
5155
|
-
type context$1_ConditionOperatorOperatorsOneOf = ConditionOperatorOperatorsOneOf;
|
|
5156
|
-
type context$1_ConditionType = ConditionType;
|
|
5157
|
-
type context$1_ConditionTypeOfOneOf = ConditionTypeOfOneOf;
|
|
5158
|
-
type context$1_ConditionValue = ConditionValue;
|
|
5159
|
-
type context$1_ConditionValueValueOneOf = ConditionValueValueOneOf;
|
|
5160
|
-
type context$1_CreateCustomRoleRequest = CreateCustomRoleRequest;
|
|
5161
|
-
type context$1_CreateCustomRoleResponse = CreateCustomRoleResponse;
|
|
5162
|
-
type context$1_CustomRole = CustomRole;
|
|
5163
|
-
type context$1_DependOnOperator = DependOnOperator;
|
|
5164
|
-
type context$1_Direction = Direction;
|
|
5165
|
-
declare const context$1_Direction: typeof Direction;
|
|
5166
|
-
type context$1_EditorType = EditorType;
|
|
5167
|
-
declare const context$1_EditorType: typeof EditorType;
|
|
5168
|
-
type context$1_Effect = Effect;
|
|
5169
|
-
declare const context$1_Effect: typeof Effect;
|
|
5170
|
-
type context$1_EnvironmentCondition = EnvironmentCondition;
|
|
5171
|
-
type context$1_EnvironmentConditionConditionOneOf = EnvironmentConditionConditionOneOf;
|
|
5172
|
-
type context$1_EqualOperator = EqualOperator;
|
|
5173
|
-
type context$1_ExperimentCondition = ExperimentCondition;
|
|
5174
|
-
type context$1_ExperimentOperator = ExperimentOperator;
|
|
5175
|
-
type context$1_Facet = Facet;
|
|
5176
|
-
type context$1_FacetType = FacetType;
|
|
5177
|
-
declare const context$1_FacetType: typeof FacetType;
|
|
5178
|
-
type context$1_FacetValue = FacetValue;
|
|
5179
|
-
type context$1_FolderResource = FolderResource;
|
|
5180
|
-
type context$1_FullNameResource = FullNameResource;
|
|
5181
|
-
type context$1_FullNameResourceResourceContextOneOf = FullNameResourceResourceContextOneOf;
|
|
5182
|
-
type context$1_GetPeopleRequest = GetPeopleRequest;
|
|
5183
|
-
type context$1_GetPeopleResponse = GetPeopleResponse;
|
|
5184
|
-
type context$1_GetPoliciesRequest = GetPoliciesRequest;
|
|
5185
|
-
type context$1_GetPoliciesResponse = GetPoliciesResponse;
|
|
5186
|
-
type context$1_GetRolesInfoOptions = GetRolesInfoOptions;
|
|
5187
|
-
type context$1_GetRolesInfoRequest = GetRolesInfoRequest;
|
|
5188
|
-
type context$1_GetRolesInfoResponse = GetRolesInfoResponse;
|
|
5189
|
-
type context$1_GetRolesInfoResponseNonNullableFields = GetRolesInfoResponseNonNullableFields;
|
|
5190
|
-
type context$1_GetRolesRequest = GetRolesRequest;
|
|
5191
|
-
type context$1_GetRolesResponse = GetRolesResponse;
|
|
5192
|
-
type context$1_GetScopesRequest = GetScopesRequest;
|
|
5193
|
-
type context$1_GetScopesResponse = GetScopesResponse;
|
|
5194
|
-
type context$1_GetSubjectsAssignmentsRequest = GetSubjectsAssignmentsRequest;
|
|
5195
|
-
type context$1_GetSubjectsAssignmentsResponse = GetSubjectsAssignmentsResponse;
|
|
5196
|
-
type context$1_GetTeamInvitesRequest = GetTeamInvitesRequest;
|
|
5197
|
-
type context$1_GetTeamInvitesResponse = GetTeamInvitesResponse;
|
|
5198
|
-
type context$1_GetTeamRequest = GetTeamRequest;
|
|
5199
|
-
type context$1_GetTeamResponse = GetTeamResponse;
|
|
5200
|
-
type context$1_GetTeamV2Response = GetTeamV2Response;
|
|
5201
|
-
type context$1_GetUsersRequest = GetUsersRequest;
|
|
5202
|
-
type context$1_GetUsersResponse = GetUsersResponse;
|
|
5203
|
-
type context$1_Invite = Invite;
|
|
5204
|
-
type context$1_InviteAssignment = InviteAssignment;
|
|
5205
|
-
type context$1_InviteAssignmentV3 = InviteAssignmentV3;
|
|
5206
|
-
type context$1_InviteResourceAssignment = InviteResourceAssignment;
|
|
5207
|
-
type context$1_InviteV3 = InviteV3;
|
|
5208
|
-
type context$1_JoinedCondition = JoinedCondition;
|
|
5209
|
-
type context$1_JoinedConditionOperator = JoinedConditionOperator;
|
|
5210
|
-
declare const context$1_JoinedConditionOperator: typeof JoinedConditionOperator;
|
|
5211
|
-
type context$1_LikeOperator = LikeOperator;
|
|
5212
|
-
type context$1_OrderField = OrderField;
|
|
5213
|
-
declare const context$1_OrderField: typeof OrderField;
|
|
5214
|
-
type context$1_Ordering = Ordering;
|
|
5215
|
-
type context$1_OrganizationResourceContext = OrganizationResourceContext;
|
|
5216
|
-
type context$1_Paging = Paging;
|
|
5217
|
-
type context$1_People = People;
|
|
5218
|
-
type context$1_PeopleResource = PeopleResource;
|
|
5219
|
-
type context$1_PeopleResourceResourceTypeOneOf = PeopleResourceResourceTypeOneOf;
|
|
5220
|
-
type context$1_PeopleType = PeopleType;
|
|
5221
|
-
declare const context$1_PeopleType: typeof PeopleType;
|
|
5222
|
-
type context$1_PermissionScope = PermissionScope;
|
|
5223
|
-
type context$1_Person = Person;
|
|
5224
|
-
type context$1_PersonPersonOneOf = PersonPersonOneOf;
|
|
5225
|
-
type context$1_PolicyCondition = PolicyCondition;
|
|
5226
|
-
type context$1_PolicyStatement = PolicyStatement;
|
|
5227
|
-
type context$1_PolicyType = PolicyType;
|
|
5228
|
-
declare const context$1_PolicyType: typeof PolicyType;
|
|
5229
|
-
type context$1_PredefinedRoleV2 = PredefinedRoleV2;
|
|
5230
|
-
type context$1_PredefinedRolesArea = PredefinedRolesArea;
|
|
5231
|
-
type context$1_RemoveMemberRequest = RemoveMemberRequest;
|
|
5232
|
-
type context$1_RemoveMemberResponse = RemoveMemberResponse;
|
|
5233
|
-
type context$1_RoleInfo = RoleInfo;
|
|
5234
|
-
type context$1_RoleLevel = RoleLevel;
|
|
5235
|
-
declare const context$1_RoleLevel: typeof RoleLevel;
|
|
5236
|
-
type context$1_RoleLevelRestriction = RoleLevelRestriction;
|
|
5237
|
-
declare const context$1_RoleLevelRestriction: typeof RoleLevelRestriction;
|
|
5238
|
-
type context$1_RoleVisibility = RoleVisibility;
|
|
5239
|
-
declare const context$1_RoleVisibility: typeof RoleVisibility;
|
|
5240
|
-
type context$1_RolesInfoFilter = RolesInfoFilter;
|
|
5241
|
-
type context$1_ScopeArea = ScopeArea;
|
|
5242
|
-
type context$1_ScopeLevel = ScopeLevel;
|
|
5243
|
-
declare const context$1_ScopeLevel: typeof ScopeLevel;
|
|
5244
|
-
type context$1_SearchTeamOptions = SearchTeamOptions;
|
|
5245
|
-
type context$1_SearchTeamRequest = SearchTeamRequest;
|
|
5246
|
-
type context$1_SearchTeamResponse = SearchTeamResponse;
|
|
5247
|
-
type context$1_SearchTeamResponseNonNullableFields = SearchTeamResponseNonNullableFields;
|
|
5248
|
-
type context$1_SimpleCondition = SimpleCondition;
|
|
5249
|
-
type context$1_SimpleConditionOperator = SimpleConditionOperator;
|
|
5250
|
-
declare const context$1_SimpleConditionOperator: typeof SimpleConditionOperator;
|
|
5251
|
-
type context$1_SimpleConditionValue = SimpleConditionValue;
|
|
5252
|
-
type context$1_SimpleConditionValueValueOneOf = SimpleConditionValueValueOneOf;
|
|
5253
|
-
type context$1_SiteResourceContext = SiteResourceContext;
|
|
5254
|
-
type context$1_SubjectAssignments = SubjectAssignments;
|
|
5255
|
-
type context$1_TeamMember = TeamMember;
|
|
5256
|
-
type context$1_TeamMemberV3 = TeamMemberV3;
|
|
5257
|
-
type context$1_TeamMemberV3MembersOneOf = TeamMemberV3MembersOneOf;
|
|
5258
|
-
type context$1_UpdateTeamMemberAssignmentsOptions = UpdateTeamMemberAssignmentsOptions;
|
|
5259
|
-
type context$1_UpdateTeamMemberAssignmentsRequest = UpdateTeamMemberAssignmentsRequest;
|
|
5260
|
-
type context$1_UpdateTeamMemberAssignmentsResponse = UpdateTeamMemberAssignmentsResponse;
|
|
5261
|
-
type context$1_UpdateTeamMemberAssignmentsResponseNonNullableFields = UpdateTeamMemberAssignmentsResponseNonNullableFields;
|
|
5262
|
-
type context$1_UserV3 = UserV3;
|
|
5263
|
-
type context$1_Visibility = Visibility;
|
|
5264
|
-
declare const context$1_Visibility: typeof Visibility;
|
|
5265
|
-
declare const context$1_getRolesInfo: typeof getRolesInfo;
|
|
5266
|
-
declare const context$1_removeMember: typeof removeMember;
|
|
5267
|
-
declare const context$1_searchTeam: typeof searchTeam;
|
|
5268
|
-
declare const context$1_updateTeamMemberAssignments: typeof updateTeamMemberAssignments;
|
|
5269
|
-
declare namespace context$1 {
|
|
5270
|
-
export { type AccountInfo$1 as AccountInfo, type context$1_AccountInvite as AccountInvite, type context$1_AccountResourceContext as AccountResourceContext, type context$1_ApiCondition as ApiCondition, type context$1_ApiInviteAssignment as ApiInviteAssignment, type context$1_ApiPolicy as ApiPolicy, type context$1_ApiResource as ApiResource, type context$1_AreasFilter as AreasFilter, type AssignedPolicy$1 as AssignedPolicy, type context$1_AssignedSubject as AssignedSubject, type Assignment$1 as Assignment, type context$1_AssignmentV3 as AssignmentV3, type context$1_ChangeRoleRequest as ChangeRoleRequest, type context$1_ChangeRoleResponse as ChangeRoleResponse, type context$1_ChangeRoleV2Request as ChangeRoleV2Request, type context$1_ChangeRoleV2Response as ChangeRoleV2Response, type CompanionResource$1 as CompanionResource, type Condition$1 as Condition, ConditionAttributeType$1 as ConditionAttributeType, type context$1_ConditionOperator as ConditionOperator, type context$1_ConditionOperatorOperatorsOneOf as ConditionOperatorOperatorsOneOf, type context$1_ConditionType as ConditionType, type context$1_ConditionTypeOfOneOf as ConditionTypeOfOneOf, type context$1_ConditionValue as ConditionValue, type context$1_ConditionValueValueOneOf as ConditionValueValueOneOf, type Conditions$1 as Conditions, type Contributor$1 as Contributor, type context$1_CreateCustomRoleRequest as CreateCustomRoleRequest, type context$1_CreateCustomRoleResponse as CreateCustomRoleResponse, type context$1_CustomRole as CustomRole, type context$1_DependOnOperator as DependOnOperator, context$1_Direction as Direction, context$1_EditorType as EditorType, context$1_Effect as Effect, type context$1_EnvironmentCondition as EnvironmentCondition, type context$1_EnvironmentConditionConditionOneOf as EnvironmentConditionConditionOneOf, type context$1_EqualOperator as EqualOperator, type context$1_ExperimentCondition as ExperimentCondition, type context$1_ExperimentOperator as ExperimentOperator, type context$1_Facet as Facet, context$1_FacetType as FacetType, type context$1_FacetValue as FacetValue, type context$1_FolderResource as FolderResource, type context$1_FullNameResource as FullNameResource, type context$1_FullNameResourceResourceContextOneOf as FullNameResourceResourceContextOneOf, type context$1_GetPeopleRequest as GetPeopleRequest, type context$1_GetPeopleResponse as GetPeopleResponse, type context$1_GetPoliciesRequest as GetPoliciesRequest, type context$1_GetPoliciesResponse as GetPoliciesResponse, type context$1_GetRolesInfoOptions as GetRolesInfoOptions, type context$1_GetRolesInfoRequest as GetRolesInfoRequest, type context$1_GetRolesInfoResponse as GetRolesInfoResponse, type context$1_GetRolesInfoResponseNonNullableFields as GetRolesInfoResponseNonNullableFields, type context$1_GetRolesRequest as GetRolesRequest, type context$1_GetRolesResponse as GetRolesResponse, type context$1_GetScopesRequest as GetScopesRequest, type context$1_GetScopesResponse as GetScopesResponse, type context$1_GetSubjectsAssignmentsRequest as GetSubjectsAssignmentsRequest, type context$1_GetSubjectsAssignmentsResponse as GetSubjectsAssignmentsResponse, type context$1_GetTeamInvitesRequest as GetTeamInvitesRequest, type context$1_GetTeamInvitesResponse as GetTeamInvitesResponse, type context$1_GetTeamRequest as GetTeamRequest, type context$1_GetTeamResponse as GetTeamResponse, type context$1_GetTeamV2Response as GetTeamV2Response, type context$1_GetUsersRequest as GetUsersRequest, type context$1_GetUsersResponse as GetUsersResponse, type context$1_Invite as Invite, type context$1_InviteAssignment as InviteAssignment, type context$1_InviteAssignmentV3 as InviteAssignmentV3, type context$1_InviteResourceAssignment as InviteResourceAssignment, InviteStatus$1 as InviteStatus, type context$1_InviteV3 as InviteV3, type context$1_JoinedCondition as JoinedCondition, context$1_JoinedConditionOperator as JoinedConditionOperator, type context$1_LikeOperator as LikeOperator, type Name$1 as Name, context$1_OrderField as OrderField, type context$1_Ordering as Ordering, type context$1_OrganizationResourceContext as OrganizationResourceContext, type context$1_Paging as Paging, type context$1_People as People, type context$1_PeopleResource as PeopleResource, type context$1_PeopleResourceResourceTypeOneOf as PeopleResourceResourceTypeOneOf, context$1_PeopleType as PeopleType, type context$1_PermissionScope as PermissionScope, type context$1_Person as Person, type PersonMetaData$1 as PersonMetaData, type context$1_PersonPersonOneOf as PersonPersonOneOf, type Policy$1 as Policy, type context$1_PolicyCondition as PolicyCondition, type context$1_PolicyStatement as PolicyStatement, context$1_PolicyType as PolicyType, type PredefinedRole$1 as PredefinedRole, type context$1_PredefinedRoleV2 as PredefinedRoleV2, type PredefinedRoles$1 as PredefinedRoles, type context$1_PredefinedRolesArea as PredefinedRolesArea, type context$1_RemoveMemberRequest as RemoveMemberRequest, type context$1_RemoveMemberResponse as RemoveMemberResponse, type Resource$1 as Resource, ResourceType$1 as ResourceType, type Restriction$1 as Restriction, type RestrictionRestrictionsOneOf$1 as RestrictionRestrictionsOneOf, type Role$1 as Role, type context$1_RoleInfo as RoleInfo, context$1_RoleLevel as RoleLevel, context$1_RoleLevelRestriction as RoleLevelRestriction, context$1_RoleVisibility as RoleVisibility, type context$1_RolesInfoFilter as RolesInfoFilter, type context$1_ScopeArea as ScopeArea, context$1_ScopeLevel as ScopeLevel, type context$1_SearchTeamOptions as SearchTeamOptions, type context$1_SearchTeamRequest as SearchTeamRequest, type context$1_SearchTeamResponse as SearchTeamResponse, type context$1_SearchTeamResponseNonNullableFields as SearchTeamResponseNonNullableFields, type context$1_SimpleCondition as SimpleCondition, context$1_SimpleConditionOperator as SimpleConditionOperator, type context$1_SimpleConditionValue as SimpleConditionValue, type context$1_SimpleConditionValueValueOneOf as SimpleConditionValueValueOneOf, type context$1_SiteResourceContext as SiteResourceContext, type SiteRestriction$1 as SiteRestriction, type Subject$1 as Subject, type context$1_SubjectAssignments as SubjectAssignments, type SubjectContext$1 as SubjectContext, SubjectContextType$1 as SubjectContextType, SubjectType$1 as SubjectType, type context$1_TeamMember as TeamMember, type context$1_TeamMemberV3 as TeamMemberV3, type context$1_TeamMemberV3MembersOneOf as TeamMemberV3MembersOneOf, type context$1_UpdateTeamMemberAssignmentsOptions as UpdateTeamMemberAssignmentsOptions, type context$1_UpdateTeamMemberAssignmentsRequest as UpdateTeamMemberAssignmentsRequest, type context$1_UpdateTeamMemberAssignmentsResponse as UpdateTeamMemberAssignmentsResponse, type context$1_UpdateTeamMemberAssignmentsResponseNonNullableFields as UpdateTeamMemberAssignmentsResponseNonNullableFields, type User$1 as User, type context$1_UserV3 as UserV3, context$1_Visibility as Visibility, context$1_getRolesInfo as getRolesInfo, context$1_removeMember as removeMember, context$1_searchTeam as searchTeam, context$1_updateTeamMemberAssignments as updateTeamMemberAssignments };
|
|
5271
|
-
}
|
|
5272
|
-
|
|
5273
|
-
interface Contributor {
|
|
5274
|
-
/** Contributor's metadata. */
|
|
5275
|
-
metaData?: PersonMetaData;
|
|
5276
|
-
/** Whether the contributor account is a team account. */
|
|
5277
|
-
isTeam?: boolean | null;
|
|
5278
|
-
/** Date that the contributor joined the site. */
|
|
5279
|
-
joinedAt?: Date | null;
|
|
5280
|
-
/** Email address that received the invite. */
|
|
5281
|
-
invitedEmail?: string | null;
|
|
5282
|
-
/** Whether the contributor account is a client account. */
|
|
5283
|
-
isClient?: boolean | null;
|
|
5284
|
-
/**
|
|
5285
|
-
* Contributor's user ID.
|
|
5286
|
-
* @readonly
|
|
5287
|
-
*/
|
|
5288
|
-
_id?: string;
|
|
5289
|
-
}
|
|
5290
|
-
interface PersonMetaData {
|
|
5291
|
-
/** Contributor's account ID. */
|
|
5292
|
-
_id?: string;
|
|
5293
|
-
/** Contributor's full name. */
|
|
5294
|
-
fullName?: string | null;
|
|
5295
|
-
/** URL for contributor's profile image. */
|
|
5296
|
-
imageUrl?: string | null;
|
|
5297
|
-
/** Contributor's email address. */
|
|
5298
|
-
email?: string | null;
|
|
5299
|
-
/** Contributor's access to assets and their assigned role (`policy`) for that asset. */
|
|
5300
|
-
assignments?: Assignment[];
|
|
5301
|
-
}
|
|
5302
|
-
interface Assignment {
|
|
5303
|
-
/** Role assigned to the user. */
|
|
5304
|
-
policy?: AssignedPolicy;
|
|
5305
|
-
/** Unique ID for this specific assignment. */
|
|
5306
|
-
assignmentId?: string;
|
|
5307
|
-
/** Identity assigned to the asset in an assignment, referred to as subject. Supported subjects include user IDs, account IDs, and app IDs. */
|
|
5308
|
-
subject?: Subject;
|
|
5309
|
-
}
|
|
5310
|
-
interface AssignedPolicy {
|
|
5311
|
-
/** Role ID. */
|
|
5312
|
-
policyId?: string;
|
|
5313
|
-
/** Role title. */
|
|
5314
|
-
title?: string | null;
|
|
5315
|
-
/** Role description. */
|
|
5316
|
-
description?: string | null;
|
|
5317
|
-
}
|
|
5318
|
-
interface Restriction extends RestrictionRestrictionsOneOf {
|
|
5319
|
-
/**
|
|
5320
|
-
* Deprecated.
|
|
5321
|
-
* @deprecated
|
|
5322
|
-
*/
|
|
5323
|
-
resource?: Resource;
|
|
5324
|
-
/** List of conditions restricting the user's access. Currently only folder conditions are supported. */
|
|
5325
|
-
conditions?: Conditions;
|
|
5326
|
-
/** Site where the assignment restrictions apply. */
|
|
5327
|
-
site?: SiteRestriction;
|
|
5328
|
-
}
|
|
5329
|
-
/** @oneof */
|
|
5330
|
-
interface RestrictionRestrictionsOneOf {
|
|
5331
|
-
/**
|
|
5332
|
-
* Deprecated.
|
|
5333
|
-
* @deprecated
|
|
5334
|
-
*/
|
|
5335
|
-
resource?: Resource;
|
|
5336
|
-
/** List of conditions restricting the user's access. Currently only folder conditions are supported. */
|
|
5337
|
-
conditions?: Conditions;
|
|
5338
|
-
/** Site where the assignment restrictions apply. */
|
|
5339
|
-
site?: SiteRestriction;
|
|
5340
|
-
}
|
|
5341
|
-
interface Resource {
|
|
5342
|
-
/** Resource type. */
|
|
5343
|
-
resourceType?: ResourceType;
|
|
5344
|
-
/** Resource ID. */
|
|
5345
|
-
_id?: string;
|
|
5346
|
-
value?: string | null;
|
|
5347
|
-
}
|
|
5348
|
-
declare enum ResourceType {
|
|
5349
|
-
UNKNOWN_RESOURCE_TYPE = "UNKNOWN_RESOURCE_TYPE",
|
|
5350
|
-
SITE = "SITE"
|
|
5351
|
-
}
|
|
5352
|
-
interface Conditions {
|
|
5353
|
-
/** List of conditions. */
|
|
5354
|
-
conditions?: Condition[];
|
|
5355
|
-
}
|
|
5356
|
-
interface Condition {
|
|
5357
|
-
/** Condition type. */
|
|
5358
|
-
conditionType?: ConditionAttributeType;
|
|
5359
|
-
/** Condition ID. */
|
|
5360
|
-
_id?: string;
|
|
5361
|
-
/** Expected value of the condition. When `conditionType` = "FOLDER", this is the folder path. */
|
|
5362
|
-
value?: string | null;
|
|
5363
|
-
}
|
|
5364
|
-
declare enum ConditionAttributeType {
|
|
5365
|
-
UNKNOWN_CONDITION_TYPE = "UNKNOWN_CONDITION_TYPE",
|
|
5366
|
-
FOLDER = "FOLDER"
|
|
5367
|
-
}
|
|
5368
|
-
interface SiteRestriction {
|
|
5369
|
-
/** Site ID. */
|
|
5370
|
-
_id?: string;
|
|
5371
|
-
/** Site name. */
|
|
5372
|
-
value?: string | null;
|
|
5373
|
-
}
|
|
5374
|
-
interface CompanionResource {
|
|
5375
|
-
/** Asset ID (referred to here as resource ID). */
|
|
5376
|
-
_id?: string;
|
|
5377
|
-
/** Asset type (referred to here as resource type). as predefined in the authorization system */
|
|
5378
|
-
resourceType?: string;
|
|
5379
|
-
}
|
|
5380
|
-
interface Subject {
|
|
5381
|
-
/** ID of identity assigned to the asset. */
|
|
5382
|
-
_id?: string;
|
|
5383
|
-
/** Type of identity assigned to the asset. Supported subject types include user IDs, account IDs, and app IDs. */
|
|
5384
|
-
subjectType?: SubjectType;
|
|
5385
|
-
/** Context of identity assigned to the asset. For example, a `subjectType` = `USER` will have `context` = `ACCOUNT`. */
|
|
5386
|
-
context?: SubjectContext;
|
|
5387
|
-
}
|
|
5388
|
-
declare enum SubjectType {
|
|
5389
|
-
UNKNOWN = "UNKNOWN",
|
|
5390
|
-
ACCOUNT = "ACCOUNT",
|
|
5391
|
-
USER = "USER",
|
|
5392
|
-
USER_GROUP = "USER_GROUP",
|
|
5393
|
-
MEMBER_GROUP = "MEMBER_GROUP",
|
|
5394
|
-
VISITOR_GROUP = "VISITOR_GROUP",
|
|
5395
|
-
EXTERNAL_APP = "EXTERNAL_APP",
|
|
5396
|
-
ACCOUNT_GROUP = "ACCOUNT_GROUP",
|
|
5397
|
-
WIX_APP = "WIX_APP"
|
|
5398
|
-
}
|
|
5399
|
-
interface SubjectContext {
|
|
5400
|
-
_id?: string;
|
|
5401
|
-
contextType?: SubjectContextType;
|
|
5402
|
-
}
|
|
5403
|
-
declare enum SubjectContextType {
|
|
5404
|
-
UNKNOWN_CTX = "UNKNOWN_CTX",
|
|
5405
|
-
ORG_CTX = "ORG_CTX",
|
|
5406
|
-
ACCOUNT_CTX = "ACCOUNT_CTX"
|
|
5407
|
-
}
|
|
5408
|
-
interface GetSiteContributorsRequest {
|
|
5409
|
-
/** The locale of the request. Defaults to en-us */
|
|
5410
|
-
locale?: string | null;
|
|
5411
|
-
}
|
|
5412
|
-
interface GetSiteContributorsResponse {
|
|
5413
|
-
users?: User[];
|
|
5414
|
-
teams?: Team[];
|
|
5415
|
-
invites?: SiteInvite[];
|
|
5416
|
-
policies?: Policy[];
|
|
5417
|
-
permissions?: string[];
|
|
5418
|
-
userId?: string;
|
|
5419
|
-
loggedInAccountId?: string;
|
|
5420
|
-
pendingOwner?: PendingOwner;
|
|
5421
|
-
contributorLimit?: ContributorLimit;
|
|
5422
|
-
predefinedRoles?: PredefinedRoles;
|
|
5423
|
-
}
|
|
5424
|
-
interface User {
|
|
5425
|
-
/** User ID. */
|
|
5426
|
-
_id?: string;
|
|
5427
|
-
/**
|
|
5428
|
-
* Deprecated.
|
|
5429
|
-
* @deprecated
|
|
5430
|
-
*/
|
|
5431
|
-
roles?: string[];
|
|
5432
|
-
/** User's email address. */
|
|
5433
|
-
email?: string;
|
|
5434
|
-
/** User's name. */
|
|
5435
|
-
name?: Name;
|
|
5436
|
-
/** URL to user's profile image, when provided. */
|
|
5437
|
-
profileImage?: string | null;
|
|
5438
|
-
/** Date the user joined the team. */
|
|
5439
|
-
joinedTeamAt?: Date | null;
|
|
5440
|
-
/**
|
|
5441
|
-
* Deprecated.
|
|
5442
|
-
* @deprecated
|
|
5443
|
-
*/
|
|
5444
|
-
policyIds?: string[];
|
|
5445
|
-
/** Resources the user can access. */
|
|
5446
|
-
assignments?: Assignment[];
|
|
5447
|
-
}
|
|
5448
|
-
interface Name {
|
|
5449
|
-
/** User's first name. */
|
|
5450
|
-
firstName?: string;
|
|
5451
|
-
/** User's last name. */
|
|
5452
|
-
lastName?: string;
|
|
5453
|
-
}
|
|
5454
|
-
interface Team {
|
|
5455
|
-
accountId?: string;
|
|
5456
|
-
accountInfo?: AccountInfo;
|
|
5457
|
-
policyIds?: string[];
|
|
5458
|
-
joinedAt?: Date | null;
|
|
5459
|
-
}
|
|
5460
|
-
interface AccountInfo {
|
|
5461
|
-
accountName?: string;
|
|
5462
|
-
accountImage?: string;
|
|
5463
|
-
isTeam?: boolean;
|
|
5464
|
-
}
|
|
5465
|
-
interface SiteInvite {
|
|
5466
|
-
/**
|
|
5467
|
-
* Invite ID.
|
|
5468
|
-
* @readonly
|
|
5469
|
-
*/
|
|
5470
|
-
_id?: string;
|
|
5471
|
-
/**
|
|
5472
|
-
* Site ID the user is invited to as a collaborator.
|
|
5473
|
-
* @readonly
|
|
5474
|
-
*/
|
|
5475
|
-
siteId?: string;
|
|
5476
|
-
/** Email address where the invite was sent. */
|
|
5477
|
-
email?: string;
|
|
5478
|
-
/** Role IDs included in the invite. */
|
|
5479
|
-
policyIds?: string[];
|
|
5480
|
-
/**
|
|
5481
|
-
* Deprecated. Use `inviterAccountId`.
|
|
5482
|
-
* @readonly
|
|
5483
|
-
* @deprecated
|
|
5484
|
-
*/
|
|
5485
|
-
inviterId?: string;
|
|
5486
|
-
/**
|
|
5487
|
-
* Invite Status.
|
|
5488
|
-
*
|
|
5489
|
-
* Supported values:
|
|
5490
|
-
* - **Pending:** The invite has been sent and is valid, waiting for the user's response.
|
|
5491
|
-
* - **Used:** The invite has been accepted.
|
|
5492
|
-
* - **Deleted:** The invite has been deleted or revoked.
|
|
5493
|
-
* - **Declined:** The user declined the invite.
|
|
5494
|
-
* - **Expired:** The invite has expired without being accepted.
|
|
5495
|
-
*/
|
|
5496
|
-
status?: InviteStatus;
|
|
5497
|
-
/** Link to accept the invite. */
|
|
5498
|
-
acceptLink?: string;
|
|
5499
|
-
/**
|
|
5500
|
-
* Inviting account ID.
|
|
5501
|
-
* @readonly
|
|
5502
|
-
*/
|
|
5503
|
-
inviterAccountId?: string;
|
|
5504
|
-
/**
|
|
5505
|
-
* Account ID that accepted the invite. Populated only once the invite is accepted.
|
|
5506
|
-
* @readonly
|
|
5507
|
-
*/
|
|
5508
|
-
acceptedByAccountId?: string | null;
|
|
5509
|
-
/** Date the invite was created. */
|
|
5510
|
-
dateCreated?: Date | null;
|
|
5511
|
-
/** User's Wix Bookings staff ID, if relevant. */
|
|
5512
|
-
staffId?: string | null;
|
|
5513
|
-
/** Invite expiration date */
|
|
5514
|
-
expirationDate?: Date | null;
|
|
5515
|
-
}
|
|
5516
|
-
/** Invite status stating whether the invite was accepted, waiting to be accepted, deleted etc.. */
|
|
5517
|
-
declare enum InviteStatus {
|
|
5518
|
-
Pending = "Pending",
|
|
5519
|
-
Used = "Used",
|
|
5520
|
-
Deleted = "Deleted",
|
|
5521
|
-
Declined = "Declined",
|
|
5522
|
-
Expired = "Expired"
|
|
5523
|
-
}
|
|
5524
|
-
interface Policy {
|
|
5525
|
-
_id?: string;
|
|
5526
|
-
description?: string | null;
|
|
5527
|
-
name?: string | null;
|
|
5528
|
-
isCustom?: boolean;
|
|
5529
|
-
scopes?: string[];
|
|
5530
|
-
}
|
|
5531
|
-
interface PendingOwner {
|
|
5532
|
-
email?: string;
|
|
5533
|
-
expirationDate?: Date | null;
|
|
5534
|
-
acceptLink?: string;
|
|
5535
|
-
}
|
|
5536
|
-
interface ContributorLimit {
|
|
5537
|
-
contributorLimit?: number;
|
|
5538
|
-
}
|
|
5539
|
-
interface PredefinedRoles {
|
|
5540
|
-
roles?: PredefinedRole[];
|
|
5541
|
-
}
|
|
5542
|
-
interface PredefinedRole {
|
|
5543
|
-
titleKey?: string;
|
|
5544
|
-
roles?: Role[];
|
|
5545
|
-
title?: string | null;
|
|
5546
|
-
areaId?: string;
|
|
5547
|
-
}
|
|
5548
|
-
interface Role {
|
|
5549
|
-
_id?: string;
|
|
5550
|
-
deprecatedKey?: string;
|
|
5551
|
-
/** @deprecated */
|
|
5552
|
-
titleKey?: string;
|
|
5553
|
-
/** @deprecated */
|
|
5554
|
-
descriptionKey?: string;
|
|
5555
|
-
deprecated?: boolean;
|
|
5556
|
-
restrictFromLevel?: string;
|
|
5557
|
-
experiments?: string[];
|
|
5558
|
-
appDefIds?: string[];
|
|
5559
|
-
title?: string | null;
|
|
5560
|
-
description?: string | null;
|
|
5561
|
-
isCustom?: boolean;
|
|
5562
|
-
scopes?: string[];
|
|
5563
|
-
availableResourceTypes?: ResourceType[];
|
|
5564
|
-
availableConditions?: ConditionAttributeType[];
|
|
5565
|
-
limitToEditorTypes?: string[];
|
|
5566
|
-
}
|
|
5567
|
-
interface GetSiteContributorsV2Request {
|
|
5568
|
-
/** The locale of the request. Defaults to en-us. */
|
|
5569
|
-
locale?: string | null;
|
|
5570
|
-
}
|
|
5571
|
-
interface GetSiteContributorsV2Response {
|
|
5572
|
-
/** List of contributors of the given site. */
|
|
5573
|
-
contributors?: Contributor[];
|
|
5574
|
-
/** List of invites to contribute to the given site. */
|
|
5575
|
-
invites?: SiteInvite[];
|
|
5576
|
-
/** Quota information for contributors on the given site. */
|
|
5577
|
-
contributorsQuota?: ContributorsQuota;
|
|
5578
|
-
}
|
|
5579
|
-
interface ContributorsQuota extends ContributorsQuotaOptionsOneOf {
|
|
5580
|
-
/** Limited contributors quota details. */
|
|
5581
|
-
limitedOptions?: LimitedOptions;
|
|
5582
|
-
/** Type of contributors quota */
|
|
5583
|
-
type?: Type;
|
|
5584
|
-
}
|
|
5585
|
-
/** @oneof */
|
|
5586
|
-
interface ContributorsQuotaOptionsOneOf {
|
|
5587
|
-
/** Limited contributors quota details. */
|
|
5588
|
-
limitedOptions?: LimitedOptions;
|
|
5589
|
-
}
|
|
5590
|
-
/** Enum to represent different types of contributors quota. */
|
|
5591
|
-
declare enum Type {
|
|
5592
|
-
UNKNOWN = "UNKNOWN",
|
|
5593
|
-
LIMITED = "LIMITED",
|
|
5594
|
-
UNLIMITED = "UNLIMITED"
|
|
5595
|
-
}
|
|
5596
|
-
/** Details for a limited contributors quota. */
|
|
5597
|
-
interface LimitedOptions {
|
|
5598
|
-
/** Maximum number of contributors allowed. */
|
|
5599
|
-
limit?: number;
|
|
5600
|
-
/** Number of accepted or pending invitations. */
|
|
5601
|
-
used?: number;
|
|
5602
|
-
}
|
|
5603
|
-
interface HandleSiteTransferRequest {
|
|
5604
|
-
originalOwnerAccountId?: string;
|
|
5605
|
-
newOwnerAccountId?: string;
|
|
5606
|
-
metaSiteId?: string;
|
|
5607
|
-
keepOriginalOwnerAsContributor?: boolean;
|
|
5608
|
-
}
|
|
5609
|
-
interface HandleSiteTransferResponse {
|
|
5610
|
-
}
|
|
5611
|
-
interface GetCurrentUserRolesRequest {
|
|
5612
|
-
/** The locale of the request. Defaults to en-us */
|
|
5613
|
-
locale?: string | null;
|
|
5614
|
-
}
|
|
5615
|
-
interface GetCurrentUserRolesResponse {
|
|
5616
|
-
roles?: LocalizedRole[];
|
|
5617
|
-
}
|
|
5618
|
-
interface LocalizedRole {
|
|
5619
|
-
name?: string;
|
|
5620
|
-
description?: string | null;
|
|
5621
|
-
}
|
|
5622
|
-
interface BulkGetUserRolesOnSiteRequest {
|
|
5623
|
-
users?: UserSubject[];
|
|
5624
|
-
/** The locale of the request. Defaults to en-us */
|
|
5625
|
-
locale?: string | null;
|
|
5626
|
-
}
|
|
5627
|
-
interface UserSubject {
|
|
5628
|
-
userId?: string;
|
|
5629
|
-
accountId?: string;
|
|
5630
|
-
}
|
|
5631
|
-
interface BulkGetUserRolesOnSiteResponse {
|
|
5632
|
-
userRoles?: UserLocalizedRoles[];
|
|
5633
|
-
}
|
|
5634
|
-
interface UserLocalizedRoles {
|
|
5635
|
-
user?: UserSubject;
|
|
5636
|
-
roles?: LocalizedRole[];
|
|
5637
|
-
}
|
|
5638
|
-
interface ChangeContributorRoleRequest {
|
|
5639
|
-
/** Contributor's account ID. */
|
|
5640
|
-
accountId: string;
|
|
5641
|
-
/** New roles to assign to the contributor on the site. */
|
|
5642
|
-
newRoles: SiteRoleAssignment[];
|
|
5643
|
-
}
|
|
5644
|
-
interface SiteRoleAssignment {
|
|
5645
|
-
/** 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. */
|
|
5646
|
-
roleId?: string;
|
|
5647
|
-
/**
|
|
5648
|
-
* Assignment ID mapping the role to the contributor on the site.
|
|
5649
|
-
* @readonly
|
|
5650
|
-
*/
|
|
5651
|
-
assignmentId?: string;
|
|
5652
|
-
}
|
|
5653
|
-
interface ChangeContributorRoleResponse {
|
|
5654
|
-
/** New roles assigned to the contributor on the site. */
|
|
5655
|
-
newAssignedRoles?: SiteRoleAssignment[];
|
|
5656
|
-
}
|
|
5657
|
-
interface QuerySiteContributorsRequest {
|
|
5658
|
-
filter?: QuerySiteContributorsFilter;
|
|
5659
|
-
}
|
|
5660
|
-
interface QuerySiteContributorsFilter {
|
|
5661
|
-
/** 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. */
|
|
5662
|
-
policyIds?: string[];
|
|
5663
|
-
}
|
|
5664
|
-
declare enum FieldSet {
|
|
5665
|
-
UNKNOWN = "UNKNOWN",
|
|
5666
|
-
/** Include only `account_id` and `account_owner_id` fields. */
|
|
5667
|
-
META_DATA = "META_DATA"
|
|
5668
|
-
}
|
|
5669
|
-
interface QuerySiteContributorsResponse {
|
|
5670
|
-
/** List of site contributors. */
|
|
5671
|
-
contributors?: ContributorV2[];
|
|
5672
|
-
}
|
|
5673
|
-
interface ContributorV2 {
|
|
5674
|
-
/** Contributor's account ID. */
|
|
5675
|
-
accountId?: string | null;
|
|
5676
|
-
/** User ID of the owner of the account that the contributor has joined. */
|
|
5677
|
-
accountOwnerId?: string | null;
|
|
5678
|
-
}
|
|
5679
|
-
interface GetContributorsQuotaRequest {
|
|
5680
|
-
}
|
|
5681
|
-
interface GetContributorsQuotaResponse {
|
|
5682
|
-
/** Quota information for contributors on the given site. */
|
|
5683
|
-
contributorsQuota?: ContributorsQuota;
|
|
5684
|
-
}
|
|
5685
|
-
interface GetAppContributorsRequest {
|
|
5686
|
-
appId?: string;
|
|
5687
|
-
/** The locale of the request. Defaults to en-us. */
|
|
5688
|
-
locale?: string | null;
|
|
5689
|
-
}
|
|
5690
|
-
interface GetAppContributorsResponse {
|
|
5691
|
-
contributors?: Contributor[];
|
|
5692
|
-
invites?: AppInvite[];
|
|
5693
|
-
}
|
|
5694
|
-
interface AppInvite {
|
|
5695
|
-
/** @readonly */
|
|
5696
|
-
_id?: string;
|
|
5697
|
-
/** TODO: amitis - remove this comment after the next merge */
|
|
5698
|
-
destEmail?: string;
|
|
5699
|
-
/** @readonly */
|
|
5700
|
-
status?: string;
|
|
5701
|
-
/** @readonly */
|
|
5702
|
-
acceptLink?: string;
|
|
5703
|
-
invitePurpose?: string | null;
|
|
5704
|
-
policies?: AssignedPolicy[];
|
|
5705
|
-
/** @readonly */
|
|
5706
|
-
expirationDate?: Date | null;
|
|
5707
|
-
/** @readonly */
|
|
5708
|
-
dateCreated?: Date | null;
|
|
5709
|
-
/** @readonly */
|
|
5710
|
-
dateUpdated?: Date | null;
|
|
5711
|
-
}
|
|
5712
|
-
interface SiteRoleAssignmentNonNullableFields {
|
|
5713
|
-
roleId: string;
|
|
5714
|
-
assignmentId: string;
|
|
5715
|
-
}
|
|
5716
|
-
interface ChangeContributorRoleResponseNonNullableFields {
|
|
5717
|
-
newAssignedRoles: SiteRoleAssignmentNonNullableFields[];
|
|
5718
|
-
}
|
|
5719
|
-
interface ChangeRoleOptions {
|
|
5720
|
-
/** New roles to assign to the contributor on the site. */
|
|
5721
|
-
newRoles: SiteRoleAssignment[];
|
|
5722
|
-
}
|
|
5723
|
-
interface QuerySiteContributorsOptions {
|
|
5724
|
-
filter?: QuerySiteContributorsFilter;
|
|
5725
|
-
}
|
|
5726
|
-
|
|
5727
|
-
declare function changeRole$1(httpClient: HttpClient): ChangeRoleSignature;
|
|
5728
|
-
interface ChangeRoleSignature {
|
|
5729
|
-
/**
|
|
5730
|
-
* Overrides all the roles of a contributor for the specified site.
|
|
5731
|
-
* @param - Contributor's account ID.
|
|
5732
|
-
* @param - Filter options. The `newRoles` field **must** be passed.
|
|
5733
|
-
*/
|
|
5734
|
-
(accountId: string, options: ChangeRoleOptions): Promise<ChangeContributorRoleResponse & ChangeContributorRoleResponseNonNullableFields>;
|
|
5735
|
-
}
|
|
5736
|
-
declare function querySiteContributors$1(httpClient: HttpClient): QuerySiteContributorsSignature;
|
|
5737
|
-
interface QuerySiteContributorsSignature {
|
|
5738
|
-
/**
|
|
5739
|
-
* Retrieves a list of contributors for the specified site, given the provided filters.
|
|
5740
|
-
* @param - Filter options.
|
|
5741
|
-
*/
|
|
5742
|
-
(options?: QuerySiteContributorsOptions | undefined): Promise<QuerySiteContributorsResponse>;
|
|
5743
|
-
}
|
|
5744
|
-
|
|
5745
|
-
declare const changeRole: MaybeContext<BuildRESTFunction<typeof changeRole$1> & typeof changeRole$1>;
|
|
5746
|
-
declare const querySiteContributors: MaybeContext<BuildRESTFunction<typeof querySiteContributors$1> & typeof querySiteContributors$1>;
|
|
5747
|
-
|
|
5748
|
-
type context_AccountInfo = AccountInfo;
|
|
5749
|
-
type context_AppInvite = AppInvite;
|
|
5750
|
-
type context_AssignedPolicy = AssignedPolicy;
|
|
5751
|
-
type context_Assignment = Assignment;
|
|
5752
|
-
type context_BulkGetUserRolesOnSiteRequest = BulkGetUserRolesOnSiteRequest;
|
|
5753
|
-
type context_BulkGetUserRolesOnSiteResponse = BulkGetUserRolesOnSiteResponse;
|
|
5754
|
-
type context_ChangeContributorRoleRequest = ChangeContributorRoleRequest;
|
|
5755
|
-
type context_ChangeContributorRoleResponse = ChangeContributorRoleResponse;
|
|
5756
|
-
type context_ChangeContributorRoleResponseNonNullableFields = ChangeContributorRoleResponseNonNullableFields;
|
|
5757
|
-
type context_ChangeRoleOptions = ChangeRoleOptions;
|
|
5758
|
-
type context_CompanionResource = CompanionResource;
|
|
5759
|
-
type context_Condition = Condition;
|
|
5760
|
-
type context_ConditionAttributeType = ConditionAttributeType;
|
|
5761
|
-
declare const context_ConditionAttributeType: typeof ConditionAttributeType;
|
|
5762
|
-
type context_Conditions = Conditions;
|
|
5763
|
-
type context_Contributor = Contributor;
|
|
5764
|
-
type context_ContributorLimit = ContributorLimit;
|
|
5765
|
-
type context_ContributorV2 = ContributorV2;
|
|
5766
|
-
type context_ContributorsQuota = ContributorsQuota;
|
|
5767
|
-
type context_ContributorsQuotaOptionsOneOf = ContributorsQuotaOptionsOneOf;
|
|
5768
|
-
type context_FieldSet = FieldSet;
|
|
5769
|
-
declare const context_FieldSet: typeof FieldSet;
|
|
5770
|
-
type context_GetAppContributorsRequest = GetAppContributorsRequest;
|
|
5771
|
-
type context_GetAppContributorsResponse = GetAppContributorsResponse;
|
|
5772
|
-
type context_GetContributorsQuotaRequest = GetContributorsQuotaRequest;
|
|
5773
|
-
type context_GetContributorsQuotaResponse = GetContributorsQuotaResponse;
|
|
5774
|
-
type context_GetCurrentUserRolesRequest = GetCurrentUserRolesRequest;
|
|
5775
|
-
type context_GetCurrentUserRolesResponse = GetCurrentUserRolesResponse;
|
|
5776
|
-
type context_GetSiteContributorsRequest = GetSiteContributorsRequest;
|
|
5777
|
-
type context_GetSiteContributorsResponse = GetSiteContributorsResponse;
|
|
5778
|
-
type context_GetSiteContributorsV2Request = GetSiteContributorsV2Request;
|
|
5779
|
-
type context_GetSiteContributorsV2Response = GetSiteContributorsV2Response;
|
|
5780
|
-
type context_HandleSiteTransferRequest = HandleSiteTransferRequest;
|
|
5781
|
-
type context_HandleSiteTransferResponse = HandleSiteTransferResponse;
|
|
5782
|
-
type context_InviteStatus = InviteStatus;
|
|
5783
|
-
declare const context_InviteStatus: typeof InviteStatus;
|
|
5784
|
-
type context_LimitedOptions = LimitedOptions;
|
|
5785
|
-
type context_LocalizedRole = LocalizedRole;
|
|
5786
|
-
type context_Name = Name;
|
|
5787
|
-
type context_PendingOwner = PendingOwner;
|
|
5788
|
-
type context_PersonMetaData = PersonMetaData;
|
|
5789
|
-
type context_Policy = Policy;
|
|
5790
|
-
type context_PredefinedRole = PredefinedRole;
|
|
5791
|
-
type context_PredefinedRoles = PredefinedRoles;
|
|
5792
|
-
type context_QuerySiteContributorsFilter = QuerySiteContributorsFilter;
|
|
5793
|
-
type context_QuerySiteContributorsOptions = QuerySiteContributorsOptions;
|
|
5794
|
-
type context_QuerySiteContributorsRequest = QuerySiteContributorsRequest;
|
|
5795
|
-
type context_QuerySiteContributorsResponse = QuerySiteContributorsResponse;
|
|
5796
|
-
type context_Resource = Resource;
|
|
5797
|
-
type context_ResourceType = ResourceType;
|
|
5798
|
-
declare const context_ResourceType: typeof ResourceType;
|
|
5799
|
-
type context_Restriction = Restriction;
|
|
5800
|
-
type context_RestrictionRestrictionsOneOf = RestrictionRestrictionsOneOf;
|
|
5801
|
-
type context_Role = Role;
|
|
5802
|
-
type context_SiteInvite = SiteInvite;
|
|
5803
|
-
type context_SiteRestriction = SiteRestriction;
|
|
5804
|
-
type context_SiteRoleAssignment = SiteRoleAssignment;
|
|
5805
|
-
type context_Subject = Subject;
|
|
5806
|
-
type context_SubjectContext = SubjectContext;
|
|
5807
|
-
type context_SubjectContextType = SubjectContextType;
|
|
5808
|
-
declare const context_SubjectContextType: typeof SubjectContextType;
|
|
3176
|
+
type context_ActionEvent = ActionEvent;
|
|
3177
|
+
type context_AuthorizeRequest = AuthorizeRequest;
|
|
3178
|
+
type context_DeviceCodeRequest = DeviceCodeRequest;
|
|
3179
|
+
type context_DeviceCodeResponse = DeviceCodeResponse;
|
|
3180
|
+
type context_DeviceVerifyRequest = DeviceVerifyRequest;
|
|
3181
|
+
type context_DeviceVerifyResponse = DeviceVerifyResponse;
|
|
3182
|
+
type context_DeviceVerifyV2Request = DeviceVerifyV2Request;
|
|
3183
|
+
type context_DeviceVerifyV2Response = DeviceVerifyV2Response;
|
|
3184
|
+
type context_DomainEvent = DomainEvent;
|
|
3185
|
+
type context_DomainEventBodyOneOf = DomainEventBodyOneOf;
|
|
3186
|
+
type context_Empty = Empty;
|
|
3187
|
+
type context_EntityCreatedEvent = EntityCreatedEvent;
|
|
3188
|
+
type context_EntityDeletedEvent = EntityDeletedEvent;
|
|
3189
|
+
type context_EntityUpdatedEvent = EntityUpdatedEvent;
|
|
3190
|
+
type context_HeadersEntry = HeadersEntry;
|
|
3191
|
+
type context_InvalidateUserCodeRequest = InvalidateUserCodeRequest;
|
|
3192
|
+
type context_InvalidateUserCodeResponse = InvalidateUserCodeResponse;
|
|
3193
|
+
type context_PathParametersEntry = PathParametersEntry;
|
|
3194
|
+
type context_QueryParametersEntry = QueryParametersEntry;
|
|
3195
|
+
type context_RawHttpRequest = RawHttpRequest;
|
|
3196
|
+
type context_RawHttpResponse = RawHttpResponse;
|
|
3197
|
+
type context_RawHttpResponseNonNullableFields = RawHttpResponseNonNullableFields;
|
|
3198
|
+
type context_RefreshToken = RefreshToken;
|
|
3199
|
+
type context_RestoreInfo = RestoreInfo;
|
|
3200
|
+
type context_RevokeRefreshTokenRequest = RevokeRefreshTokenRequest;
|
|
3201
|
+
type context_RevokeRefreshTokenResponse = RevokeRefreshTokenResponse;
|
|
5809
3202
|
type context_SubjectType = SubjectType;
|
|
5810
3203
|
declare const context_SubjectType: typeof SubjectType;
|
|
5811
|
-
type
|
|
5812
|
-
type
|
|
5813
|
-
|
|
5814
|
-
type
|
|
5815
|
-
|
|
5816
|
-
|
|
5817
|
-
declare const context_changeRole: typeof changeRole;
|
|
5818
|
-
declare const context_querySiteContributors: typeof querySiteContributors;
|
|
3204
|
+
type context_TokenInfoOptions = TokenInfoOptions;
|
|
3205
|
+
type context_TokenInfoResponse = TokenInfoResponse;
|
|
3206
|
+
type context_TokenInfoResponseNonNullableFields = TokenInfoResponseNonNullableFields;
|
|
3207
|
+
type context_TokenOptions = TokenOptions;
|
|
3208
|
+
declare const context_token: typeof token;
|
|
3209
|
+
declare const context_tokenInfo: typeof tokenInfo;
|
|
5819
3210
|
declare namespace context {
|
|
5820
|
-
export { type
|
|
3211
|
+
export { type context_ActionEvent as ActionEvent, type context_AuthorizeRequest as AuthorizeRequest, type context_DeviceCodeRequest as DeviceCodeRequest, type context_DeviceCodeResponse as DeviceCodeResponse, type context_DeviceVerifyRequest as DeviceVerifyRequest, type context_DeviceVerifyResponse as DeviceVerifyResponse, type context_DeviceVerifyV2Request as DeviceVerifyV2Request, type context_DeviceVerifyV2Response as DeviceVerifyV2Response, type context_DomainEvent as DomainEvent, type context_DomainEventBodyOneOf as DomainEventBodyOneOf, type context_Empty as Empty, type context_EntityCreatedEvent as EntityCreatedEvent, type context_EntityDeletedEvent as EntityDeletedEvent, type context_EntityUpdatedEvent as EntityUpdatedEvent, type context_HeadersEntry as HeadersEntry, type context_InvalidateUserCodeRequest as InvalidateUserCodeRequest, type context_InvalidateUserCodeResponse as InvalidateUserCodeResponse, type context_PathParametersEntry as PathParametersEntry, type context_QueryParametersEntry as QueryParametersEntry, type context_RawHttpRequest as RawHttpRequest, type context_RawHttpResponse as RawHttpResponse, type context_RawHttpResponseNonNullableFields as RawHttpResponseNonNullableFields, type context_RefreshToken as RefreshToken, type context_RestoreInfo as RestoreInfo, type context_RevokeRefreshTokenRequest as RevokeRefreshTokenRequest, type context_RevokeRefreshTokenResponse as RevokeRefreshTokenResponse, context_SubjectType as SubjectType, type context_TokenInfoOptions as TokenInfoOptions, type context_TokenInfoResponse as TokenInfoResponse, type context_TokenInfoResponseNonNullableFields as TokenInfoResponseNonNullableFields, type context_TokenOptions as TokenOptions, context_token as token, context_tokenInfo as tokenInfo };
|
|
5821
3212
|
}
|
|
5822
3213
|
|
|
5823
|
-
export { context$
|
|
3214
|
+
export { context$1 as account, context$4 as authentication, context as oauth, context$3 as recovery, context$2 as verification };
|