@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.
@@ -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 index_d$8_Authentication = Authentication;
1242
- type index_d$8_CallVerifyData = CallVerifyData;
1243
- type index_d$8_CaptchaToken = CaptchaToken;
1244
- type index_d$8_CaptchaTokenTokenOneOf = CaptchaTokenTokenOneOf;
1245
- type index_d$8_ChangePasswordRequest = ChangePasswordRequest;
1246
- type index_d$8_ChangePasswordResponse = ChangePasswordResponse;
1247
- type index_d$8_EmailVerifyData = EmailVerifyData;
1248
- type index_d$8_LoginCallbackOptions = LoginCallbackOptions;
1249
- type index_d$8_LoginCallbackRequest = LoginCallbackRequest;
1250
- type index_d$8_LoginId = LoginId;
1251
- type index_d$8_LoginIdTypeOneOf = LoginIdTypeOneOf;
1252
- type index_d$8_LoginV2Options = LoginV2Options;
1253
- type index_d$8_LoginV2Request = LoginV2Request;
1254
- type index_d$8_LoginWithIdpConnectionIdentifiers = LoginWithIdpConnectionIdentifiers;
1255
- type index_d$8_LoginWithIdpConnectionOptions = LoginWithIdpConnectionOptions;
1256
- type index_d$8_LoginWithIdpConnectionRequest = LoginWithIdpConnectionRequest;
1257
- type index_d$8_LoginWithIdpConnectionTokenParamsOptions = LoginWithIdpConnectionTokenParamsOptions;
1258
- type index_d$8_LoginWithIdpConnectionTokenParamsRequest = LoginWithIdpConnectionTokenParamsRequest;
1259
- type index_d$8_LogoutOptions = LogoutOptions;
1260
- type index_d$8_LogoutRequest = LogoutRequest;
1261
- type index_d$8_RegisterV2Options = RegisterV2Options;
1262
- type index_d$8_RegisterV2Request = RegisterV2Request;
1263
- type index_d$8_SignOnOptions = SignOnOptions;
1264
- type index_d$8_SignOnRequest = SignOnRequest;
1265
- type index_d$8_SignOnResponse = SignOnResponse;
1266
- type index_d$8_SignOnResponseNonNullableFields = SignOnResponseNonNullableFields;
1267
- type index_d$8_SmsVerifyData = SmsVerifyData;
1268
- type index_d$8_TotpVerifyData = TotpVerifyData;
1269
- type index_d$8_VerifyOptions = VerifyOptions;
1270
- type index_d$8_VerifyRequestFactorDataOneOf = VerifyRequestFactorDataOneOf;
1271
- declare const index_d$8_changePassword: typeof changePassword;
1272
- declare const index_d$8_loginCallback: typeof loginCallback;
1273
- declare const index_d$8_loginV2: typeof loginV2;
1274
- declare const index_d$8_loginWithIdpConnection: typeof loginWithIdpConnection;
1275
- declare const index_d$8_loginWithIdpConnectionTokenParams: typeof loginWithIdpConnectionTokenParams;
1276
- declare const index_d$8_logout: typeof logout;
1277
- declare const index_d$8_registerV2: typeof registerV2;
1278
- declare const index_d$8_signOn: typeof signOn;
1279
- declare const index_d$8_verify: typeof verify;
1280
- declare namespace index_d$8 {
1281
- export { type Address$2 as Address, AddressTag$2 as AddressTag, type AddressWrapper$2 as AddressWrapper, type index_d$8_Authentication as Authentication, type AuthenticatorConnection$2 as AuthenticatorConnection, type index_d$8_CallVerifyData as CallVerifyData, type index_d$8_CaptchaToken as CaptchaToken, type index_d$8_CaptchaTokenTokenOneOf as CaptchaTokenTokenOneOf, type index_d$8_ChangePasswordRequest as ChangePasswordRequest, type index_d$8_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 index_d$8_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 index_d$8_LoginCallbackOptions as LoginCallbackOptions, type index_d$8_LoginCallbackRequest as LoginCallbackRequest, type index_d$8_LoginId as LoginId, type index_d$8_LoginIdTypeOneOf as LoginIdTypeOneOf, type index_d$8_LoginV2Options as LoginV2Options, type index_d$8_LoginV2Request as LoginV2Request, type index_d$8_LoginWithIdpConnectionIdentifiers as LoginWithIdpConnectionIdentifiers, type index_d$8_LoginWithIdpConnectionOptions as LoginWithIdpConnectionOptions, type index_d$8_LoginWithIdpConnectionRequest as LoginWithIdpConnectionRequest, type index_d$8_LoginWithIdpConnectionTokenParamsOptions as LoginWithIdpConnectionTokenParamsOptions, type index_d$8_LoginWithIdpConnectionTokenParamsRequest as LoginWithIdpConnectionTokenParamsRequest, type index_d$8_LogoutOptions as LogoutOptions, type index_d$8_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 index_d$8_RegisterV2Options as RegisterV2Options, type index_d$8_RegisterV2Request as RegisterV2Request, type RequireMfaData$2 as RequireMfaData, type SecondaryEmail$2 as SecondaryEmail, type index_d$8_SignOnOptions as SignOnOptions, type index_d$8_SignOnRequest as SignOnRequest, type index_d$8_SignOnResponse as SignOnResponse, type index_d$8_SignOnResponseNonNullableFields as SignOnResponseNonNullableFields, type index_d$8_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 index_d$8_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 index_d$8_VerifyOptions as VerifyOptions, type VerifyRequest$1 as VerifyRequest, type index_d$8_VerifyRequestFactorDataOneOf as VerifyRequestFactorDataOneOf, index_d$8_changePassword as changePassword, index_d$8_loginCallback as loginCallback, index_d$8_loginV2 as loginV2, index_d$8_loginWithIdpConnection as loginWithIdpConnection, index_d$8_loginWithIdpConnectionTokenParams as loginWithIdpConnectionTokenParams, index_d$8_logout as logout, index_d$8_registerV2 as registerV2, index_d$8_signOn as signOn, index_d$8_verify as verify };
1241
+ type index_d$4_Authentication = Authentication;
1242
+ type index_d$4_CallVerifyData = CallVerifyData;
1243
+ type index_d$4_CaptchaToken = CaptchaToken;
1244
+ type index_d$4_CaptchaTokenTokenOneOf = CaptchaTokenTokenOneOf;
1245
+ type index_d$4_ChangePasswordRequest = ChangePasswordRequest;
1246
+ type index_d$4_ChangePasswordResponse = ChangePasswordResponse;
1247
+ type index_d$4_EmailVerifyData = EmailVerifyData;
1248
+ type index_d$4_LoginCallbackOptions = LoginCallbackOptions;
1249
+ type index_d$4_LoginCallbackRequest = LoginCallbackRequest;
1250
+ type index_d$4_LoginId = LoginId;
1251
+ type index_d$4_LoginIdTypeOneOf = LoginIdTypeOneOf;
1252
+ type index_d$4_LoginV2Options = LoginV2Options;
1253
+ type index_d$4_LoginV2Request = LoginV2Request;
1254
+ type index_d$4_LoginWithIdpConnectionIdentifiers = LoginWithIdpConnectionIdentifiers;
1255
+ type index_d$4_LoginWithIdpConnectionOptions = LoginWithIdpConnectionOptions;
1256
+ type index_d$4_LoginWithIdpConnectionRequest = LoginWithIdpConnectionRequest;
1257
+ type index_d$4_LoginWithIdpConnectionTokenParamsOptions = LoginWithIdpConnectionTokenParamsOptions;
1258
+ type index_d$4_LoginWithIdpConnectionTokenParamsRequest = LoginWithIdpConnectionTokenParamsRequest;
1259
+ type index_d$4_LogoutOptions = LogoutOptions;
1260
+ type index_d$4_LogoutRequest = LogoutRequest;
1261
+ type index_d$4_RegisterV2Options = RegisterV2Options;
1262
+ type index_d$4_RegisterV2Request = RegisterV2Request;
1263
+ type index_d$4_SignOnOptions = SignOnOptions;
1264
+ type index_d$4_SignOnRequest = SignOnRequest;
1265
+ type index_d$4_SignOnResponse = SignOnResponse;
1266
+ type index_d$4_SignOnResponseNonNullableFields = SignOnResponseNonNullableFields;
1267
+ type index_d$4_SmsVerifyData = SmsVerifyData;
1268
+ type index_d$4_TotpVerifyData = TotpVerifyData;
1269
+ type index_d$4_VerifyOptions = VerifyOptions;
1270
+ type index_d$4_VerifyRequestFactorDataOneOf = VerifyRequestFactorDataOneOf;
1271
+ declare const index_d$4_changePassword: typeof changePassword;
1272
+ declare const index_d$4_loginCallback: typeof loginCallback;
1273
+ declare const index_d$4_loginV2: typeof loginV2;
1274
+ declare const index_d$4_loginWithIdpConnection: typeof loginWithIdpConnection;
1275
+ declare const index_d$4_loginWithIdpConnectionTokenParams: typeof loginWithIdpConnectionTokenParams;
1276
+ declare const index_d$4_logout: typeof logout;
1277
+ declare const index_d$4_registerV2: typeof registerV2;
1278
+ declare const index_d$4_signOn: typeof signOn;
1279
+ declare const index_d$4_verify: typeof verify;
1280
+ declare namespace index_d$4 {
1281
+ export { type Address$2 as Address, AddressTag$2 as AddressTag, type AddressWrapper$2 as AddressWrapper, type index_d$4_Authentication as Authentication, type AuthenticatorConnection$2 as AuthenticatorConnection, type index_d$4_CallVerifyData as CallVerifyData, type index_d$4_CaptchaToken as CaptchaToken, type index_d$4_CaptchaTokenTokenOneOf as CaptchaTokenTokenOneOf, type index_d$4_ChangePasswordRequest as ChangePasswordRequest, type index_d$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 index_d$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 index_d$4_LoginCallbackOptions as LoginCallbackOptions, type index_d$4_LoginCallbackRequest as LoginCallbackRequest, type index_d$4_LoginId as LoginId, type index_d$4_LoginIdTypeOneOf as LoginIdTypeOneOf, type index_d$4_LoginV2Options as LoginV2Options, type index_d$4_LoginV2Request as LoginV2Request, type index_d$4_LoginWithIdpConnectionIdentifiers as LoginWithIdpConnectionIdentifiers, type index_d$4_LoginWithIdpConnectionOptions as LoginWithIdpConnectionOptions, type index_d$4_LoginWithIdpConnectionRequest as LoginWithIdpConnectionRequest, type index_d$4_LoginWithIdpConnectionTokenParamsOptions as LoginWithIdpConnectionTokenParamsOptions, type index_d$4_LoginWithIdpConnectionTokenParamsRequest as LoginWithIdpConnectionTokenParamsRequest, type index_d$4_LogoutOptions as LogoutOptions, type index_d$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 index_d$4_RegisterV2Options as RegisterV2Options, type index_d$4_RegisterV2Request as RegisterV2Request, type RequireMfaData$2 as RequireMfaData, type SecondaryEmail$2 as SecondaryEmail, type index_d$4_SignOnOptions as SignOnOptions, type index_d$4_SignOnRequest as SignOnRequest, type index_d$4_SignOnResponse as SignOnResponse, type index_d$4_SignOnResponseNonNullableFields as SignOnResponseNonNullableFields, type index_d$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 index_d$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 index_d$4_VerifyOptions as VerifyOptions, type VerifyRequest$1 as VerifyRequest, type index_d$4_VerifyRequestFactorDataOneOf as VerifyRequestFactorDataOneOf, index_d$4_changePassword as changePassword, index_d$4_loginCallback as loginCallback, index_d$4_loginV2 as loginV2, index_d$4_loginWithIdpConnection as loginWithIdpConnection, index_d$4_loginWithIdpConnectionTokenParams as loginWithIdpConnectionTokenParams, index_d$4_logout as logout, index_d$4_registerV2 as registerV2, index_d$4_signOn as signOn, index_d$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 index_d$7_EmailOptions = EmailOptions;
1836
- type index_d$7_RecoverOptions = RecoverOptions;
1837
- type index_d$7_RecoverRequest = RecoverRequest;
1838
- type index_d$7_RecoveryToken = RecoveryToken;
1839
- type index_d$7_Redirect = Redirect;
1840
- type index_d$7_SendActivationEmailOptions = SendActivationEmailOptions;
1841
- type index_d$7_SendActivationEmailRequest = SendActivationEmailRequest;
1842
- type index_d$7_SendActivationEmailResponse = SendActivationEmailResponse;
1843
- type index_d$7_SendRecoveryEmailOptions = SendRecoveryEmailOptions;
1844
- type index_d$7_SendRecoveryEmailRequest = SendRecoveryEmailRequest;
1845
- type index_d$7_SendRecoveryEmailResponse = SendRecoveryEmailResponse;
1846
- type index_d$7_TenantType = TenantType;
1847
- declare const index_d$7_TenantType: typeof TenantType;
1848
- declare const index_d$7_recover: typeof recover;
1849
- declare const index_d$7_sendActivationEmail: typeof sendActivationEmail;
1850
- declare const index_d$7_sendRecoveryEmail: typeof sendRecoveryEmail;
1851
- declare namespace index_d$7 {
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 index_d$7_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 index_d$7_RecoverOptions as RecoverOptions, type index_d$7_RecoverRequest as RecoverRequest, type index_d$7_RecoveryToken as RecoveryToken, type index_d$7_Redirect as Redirect, type RequireMfaData$1 as RequireMfaData, type SecondaryEmail$1 as SecondaryEmail, type index_d$7_SendActivationEmailOptions as SendActivationEmailOptions, type index_d$7_SendActivationEmailRequest as SendActivationEmailRequest, type index_d$7_SendActivationEmailResponse as SendActivationEmailResponse, type index_d$7_SendRecoveryEmailOptions as SendRecoveryEmailOptions, type index_d$7_SendRecoveryEmailRequest as SendRecoveryEmailRequest, type index_d$7_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, index_d$7_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, index_d$7_recover as recover, index_d$7_sendActivationEmail as sendActivationEmail, index_d$7_sendRecoveryEmail as sendRecoveryEmail };
1835
+ type index_d$3_EmailOptions = EmailOptions;
1836
+ type index_d$3_RecoverOptions = RecoverOptions;
1837
+ type index_d$3_RecoverRequest = RecoverRequest;
1838
+ type index_d$3_RecoveryToken = RecoveryToken;
1839
+ type index_d$3_Redirect = Redirect;
1840
+ type index_d$3_SendActivationEmailOptions = SendActivationEmailOptions;
1841
+ type index_d$3_SendActivationEmailRequest = SendActivationEmailRequest;
1842
+ type index_d$3_SendActivationEmailResponse = SendActivationEmailResponse;
1843
+ type index_d$3_SendRecoveryEmailOptions = SendRecoveryEmailOptions;
1844
+ type index_d$3_SendRecoveryEmailRequest = SendRecoveryEmailRequest;
1845
+ type index_d$3_SendRecoveryEmailResponse = SendRecoveryEmailResponse;
1846
+ type index_d$3_TenantType = TenantType;
1847
+ declare const index_d$3_TenantType: typeof TenantType;
1848
+ declare const index_d$3_recover: typeof recover;
1849
+ declare const index_d$3_sendActivationEmail: typeof sendActivationEmail;
1850
+ declare const index_d$3_sendRecoveryEmail: typeof sendRecoveryEmail;
1851
+ declare namespace index_d$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 index_d$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 index_d$3_RecoverOptions as RecoverOptions, type index_d$3_RecoverRequest as RecoverRequest, type index_d$3_RecoveryToken as RecoveryToken, type index_d$3_Redirect as Redirect, type RequireMfaData$1 as RequireMfaData, type SecondaryEmail$1 as SecondaryEmail, type index_d$3_SendActivationEmailOptions as SendActivationEmailOptions, type index_d$3_SendActivationEmailRequest as SendActivationEmailRequest, type index_d$3_SendActivationEmailResponse as SendActivationEmailResponse, type index_d$3_SendRecoveryEmailOptions as SendRecoveryEmailOptions, type index_d$3_SendRecoveryEmailRequest as SendRecoveryEmailRequest, type index_d$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, index_d$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, index_d$3_recover as recover, index_d$3_sendActivationEmail as sendActivationEmail, index_d$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 index_d$6_Address = Address;
2382
- type index_d$6_AddressTag = AddressTag;
2383
- declare const index_d$6_AddressTag: typeof AddressTag;
2384
- type index_d$6_AddressWrapper = AddressWrapper;
2385
- type index_d$6_AuthenticatorConnection = AuthenticatorConnection;
2386
- type index_d$6_Connection = Connection;
2387
- type index_d$6_ConnectionTypeOneOf = ConnectionTypeOneOf;
2388
- type index_d$6_CustomField = CustomField;
2389
- type index_d$6_CustomValue = CustomValue;
2390
- type index_d$6_CustomValueValueOneOf = CustomValueValueOneOf;
2391
- type index_d$6_EmailTag = EmailTag;
2392
- declare const index_d$6_EmailTag: typeof EmailTag;
2393
- type index_d$6_Factor = Factor;
2394
- type index_d$6_FactorType = FactorType;
2395
- declare const index_d$6_FactorType: typeof FactorType;
2396
- type index_d$6_Identity = Identity;
2397
- type index_d$6_IdentityProfile = IdentityProfile;
2398
- type index_d$6_IdpConnection = IdpConnection;
2399
- type index_d$6_ListValue = ListValue;
2400
- type index_d$6_MapValue = MapValue;
2401
- type index_d$6_Metadata = Metadata;
2402
- type index_d$6_MfaChallengeData = MfaChallengeData;
2403
- type index_d$6_Phone = Phone;
2404
- type index_d$6_PhoneTag = PhoneTag;
2405
- declare const index_d$6_PhoneTag: typeof PhoneTag;
2406
- type index_d$6_PrivacyStatus = PrivacyStatus;
2407
- declare const index_d$6_PrivacyStatus: typeof PrivacyStatus;
2408
- type index_d$6_Reason = Reason;
2409
- declare const index_d$6_Reason: typeof Reason;
2410
- type index_d$6_RequireMfaData = RequireMfaData;
2411
- type index_d$6_ResendDuringAuthenticationRequest = ResendDuringAuthenticationRequest;
2412
- type index_d$6_SecondaryEmail = SecondaryEmail;
2413
- type index_d$6_StartOptions = StartOptions;
2414
- type index_d$6_StartRequest = StartRequest;
2415
- type index_d$6_StartResponse = StartResponse;
2416
- type index_d$6_StartResponseNonNullableFields = StartResponseNonNullableFields;
2417
- type index_d$6_StateMachineResponse = StateMachineResponse;
2418
- type index_d$6_StateMachineResponseNonNullableFields = StateMachineResponseNonNullableFields;
2419
- type index_d$6_StateMachineResponseStateDataOneOf = StateMachineResponseStateDataOneOf;
2420
- type index_d$6_StateType = StateType;
2421
- declare const index_d$6_StateType: typeof StateType;
2422
- type index_d$6_Status = Status;
2423
- declare const index_d$6_Status: typeof Status;
2424
- type index_d$6_StatusName = StatusName;
2425
- declare const index_d$6_StatusName: typeof StatusName;
2426
- type index_d$6_StatusV2 = StatusV2;
2427
- type index_d$6_Target = Target;
2428
- declare const index_d$6_Target: typeof Target;
2429
- type index_d$6_V1CustomValue = V1CustomValue;
2430
- type index_d$6_V1CustomValueValueOneOf = V1CustomValueValueOneOf;
2431
- type index_d$6_V1Factor = V1Factor;
2432
- type index_d$6_V1ListValue = V1ListValue;
2433
- type index_d$6_V1MapValue = V1MapValue;
2434
- type index_d$6_VerificationChallenge = VerificationChallenge;
2435
- type index_d$6_VerifyDuringAuthenticationOptions = VerifyDuringAuthenticationOptions;
2436
- type index_d$6_VerifyDuringAuthenticationRequest = VerifyDuringAuthenticationRequest;
2437
- type index_d$6_VerifyRequest = VerifyRequest;
2438
- type index_d$6_VerifyResponse = VerifyResponse;
2439
- declare const index_d$6_resendDuringAuthentication: typeof resendDuringAuthentication;
2440
- declare const index_d$6_start: typeof start;
2441
- declare const index_d$6_verifyDuringAuthentication: typeof verifyDuringAuthentication;
2442
- declare namespace index_d$6 {
2443
- export { type index_d$6_Address as Address, index_d$6_AddressTag as AddressTag, type index_d$6_AddressWrapper as AddressWrapper, type index_d$6_AuthenticatorConnection as AuthenticatorConnection, type index_d$6_Connection as Connection, type index_d$6_ConnectionTypeOneOf as ConnectionTypeOneOf, type index_d$6_CustomField as CustomField, type index_d$6_CustomValue as CustomValue, type index_d$6_CustomValueValueOneOf as CustomValueValueOneOf, type Email$1 as Email, index_d$6_EmailTag as EmailTag, type index_d$6_Factor as Factor, index_d$6_FactorType as FactorType, type index_d$6_Identity as Identity, type index_d$6_IdentityProfile as IdentityProfile, type index_d$6_IdpConnection as IdpConnection, type index_d$6_ListValue as ListValue, type index_d$6_MapValue as MapValue, type index_d$6_Metadata as Metadata, type index_d$6_MfaChallengeData as MfaChallengeData, type index_d$6_Phone as Phone, index_d$6_PhoneTag as PhoneTag, index_d$6_PrivacyStatus as PrivacyStatus, index_d$6_Reason as Reason, type index_d$6_RequireMfaData as RequireMfaData, type index_d$6_ResendDuringAuthenticationRequest as ResendDuringAuthenticationRequest, type index_d$6_SecondaryEmail as SecondaryEmail, type index_d$6_StartOptions as StartOptions, type index_d$6_StartRequest as StartRequest, type index_d$6_StartResponse as StartResponse, type index_d$6_StartResponseNonNullableFields as StartResponseNonNullableFields, type index_d$6_StateMachineResponse as StateMachineResponse, type index_d$6_StateMachineResponseNonNullableFields as StateMachineResponseNonNullableFields, type index_d$6_StateMachineResponseStateDataOneOf as StateMachineResponseStateDataOneOf, index_d$6_StateType as StateType, index_d$6_Status as Status, index_d$6_StatusName as StatusName, type index_d$6_StatusV2 as StatusV2, index_d$6_Target as Target, type index_d$6_V1CustomValue as V1CustomValue, type index_d$6_V1CustomValueValueOneOf as V1CustomValueValueOneOf, type index_d$6_V1Factor as V1Factor, type index_d$6_V1ListValue as V1ListValue, type index_d$6_V1MapValue as V1MapValue, type index_d$6_VerificationChallenge as VerificationChallenge, type index_d$6_VerifyDuringAuthenticationOptions as VerifyDuringAuthenticationOptions, type index_d$6_VerifyDuringAuthenticationRequest as VerifyDuringAuthenticationRequest, type index_d$6_VerifyRequest as VerifyRequest, type index_d$6_VerifyResponse as VerifyResponse, index_d$6_resendDuringAuthentication as resendDuringAuthentication, index_d$6_start as start, index_d$6_verifyDuringAuthentication as verifyDuringAuthentication };
2381
+ type index_d$2_Address = Address;
2382
+ type index_d$2_AddressTag = AddressTag;
2383
+ declare const index_d$2_AddressTag: typeof AddressTag;
2384
+ type index_d$2_AddressWrapper = AddressWrapper;
2385
+ type index_d$2_AuthenticatorConnection = AuthenticatorConnection;
2386
+ type index_d$2_Connection = Connection;
2387
+ type index_d$2_ConnectionTypeOneOf = ConnectionTypeOneOf;
2388
+ type index_d$2_CustomField = CustomField;
2389
+ type index_d$2_CustomValue = CustomValue;
2390
+ type index_d$2_CustomValueValueOneOf = CustomValueValueOneOf;
2391
+ type index_d$2_EmailTag = EmailTag;
2392
+ declare const index_d$2_EmailTag: typeof EmailTag;
2393
+ type index_d$2_Factor = Factor;
2394
+ type index_d$2_FactorType = FactorType;
2395
+ declare const index_d$2_FactorType: typeof FactorType;
2396
+ type index_d$2_Identity = Identity;
2397
+ type index_d$2_IdentityProfile = IdentityProfile;
2398
+ type index_d$2_IdpConnection = IdpConnection;
2399
+ type index_d$2_ListValue = ListValue;
2400
+ type index_d$2_MapValue = MapValue;
2401
+ type index_d$2_Metadata = Metadata;
2402
+ type index_d$2_MfaChallengeData = MfaChallengeData;
2403
+ type index_d$2_Phone = Phone;
2404
+ type index_d$2_PhoneTag = PhoneTag;
2405
+ declare const index_d$2_PhoneTag: typeof PhoneTag;
2406
+ type index_d$2_PrivacyStatus = PrivacyStatus;
2407
+ declare const index_d$2_PrivacyStatus: typeof PrivacyStatus;
2408
+ type index_d$2_Reason = Reason;
2409
+ declare const index_d$2_Reason: typeof Reason;
2410
+ type index_d$2_RequireMfaData = RequireMfaData;
2411
+ type index_d$2_ResendDuringAuthenticationRequest = ResendDuringAuthenticationRequest;
2412
+ type index_d$2_SecondaryEmail = SecondaryEmail;
2413
+ type index_d$2_StartOptions = StartOptions;
2414
+ type index_d$2_StartRequest = StartRequest;
2415
+ type index_d$2_StartResponse = StartResponse;
2416
+ type index_d$2_StartResponseNonNullableFields = StartResponseNonNullableFields;
2417
+ type index_d$2_StateMachineResponse = StateMachineResponse;
2418
+ type index_d$2_StateMachineResponseNonNullableFields = StateMachineResponseNonNullableFields;
2419
+ type index_d$2_StateMachineResponseStateDataOneOf = StateMachineResponseStateDataOneOf;
2420
+ type index_d$2_StateType = StateType;
2421
+ declare const index_d$2_StateType: typeof StateType;
2422
+ type index_d$2_Status = Status;
2423
+ declare const index_d$2_Status: typeof Status;
2424
+ type index_d$2_StatusName = StatusName;
2425
+ declare const index_d$2_StatusName: typeof StatusName;
2426
+ type index_d$2_StatusV2 = StatusV2;
2427
+ type index_d$2_Target = Target;
2428
+ declare const index_d$2_Target: typeof Target;
2429
+ type index_d$2_V1CustomValue = V1CustomValue;
2430
+ type index_d$2_V1CustomValueValueOneOf = V1CustomValueValueOneOf;
2431
+ type index_d$2_V1Factor = V1Factor;
2432
+ type index_d$2_V1ListValue = V1ListValue;
2433
+ type index_d$2_V1MapValue = V1MapValue;
2434
+ type index_d$2_VerificationChallenge = VerificationChallenge;
2435
+ type index_d$2_VerifyDuringAuthenticationOptions = VerifyDuringAuthenticationOptions;
2436
+ type index_d$2_VerifyDuringAuthenticationRequest = VerifyDuringAuthenticationRequest;
2437
+ type index_d$2_VerifyRequest = VerifyRequest;
2438
+ type index_d$2_VerifyResponse = VerifyResponse;
2439
+ declare const index_d$2_resendDuringAuthentication: typeof resendDuringAuthentication;
2440
+ declare const index_d$2_start: typeof start;
2441
+ declare const index_d$2_verifyDuringAuthentication: typeof verifyDuringAuthentication;
2442
+ declare namespace index_d$2 {
2443
+ export { type index_d$2_Address as Address, index_d$2_AddressTag as AddressTag, type index_d$2_AddressWrapper as AddressWrapper, type index_d$2_AuthenticatorConnection as AuthenticatorConnection, type index_d$2_Connection as Connection, type index_d$2_ConnectionTypeOneOf as ConnectionTypeOneOf, type index_d$2_CustomField as CustomField, type index_d$2_CustomValue as CustomValue, type index_d$2_CustomValueValueOneOf as CustomValueValueOneOf, type Email$1 as Email, index_d$2_EmailTag as EmailTag, type index_d$2_Factor as Factor, index_d$2_FactorType as FactorType, type index_d$2_Identity as Identity, type index_d$2_IdentityProfile as IdentityProfile, type index_d$2_IdpConnection as IdpConnection, type index_d$2_ListValue as ListValue, type index_d$2_MapValue as MapValue, type index_d$2_Metadata as Metadata, type index_d$2_MfaChallengeData as MfaChallengeData, type index_d$2_Phone as Phone, index_d$2_PhoneTag as PhoneTag, index_d$2_PrivacyStatus as PrivacyStatus, index_d$2_Reason as Reason, type index_d$2_RequireMfaData as RequireMfaData, type index_d$2_ResendDuringAuthenticationRequest as ResendDuringAuthenticationRequest, type index_d$2_SecondaryEmail as SecondaryEmail, type index_d$2_StartOptions as StartOptions, type index_d$2_StartRequest as StartRequest, type index_d$2_StartResponse as StartResponse, type index_d$2_StartResponseNonNullableFields as StartResponseNonNullableFields, type index_d$2_StateMachineResponse as StateMachineResponse, type index_d$2_StateMachineResponseNonNullableFields as StateMachineResponseNonNullableFields, type index_d$2_StateMachineResponseStateDataOneOf as StateMachineResponseStateDataOneOf, index_d$2_StateType as StateType, index_d$2_Status as Status, index_d$2_StatusName as StatusName, type index_d$2_StatusV2 as StatusV2, index_d$2_Target as Target, type index_d$2_V1CustomValue as V1CustomValue, type index_d$2_V1CustomValueValueOneOf as V1CustomValueValueOneOf, type index_d$2_V1Factor as V1Factor, type index_d$2_V1ListValue as V1ListValue, type index_d$2_V1MapValue as V1MapValue, type index_d$2_VerificationChallenge as VerificationChallenge, type index_d$2_VerifyDuringAuthenticationOptions as VerifyDuringAuthenticationOptions, type index_d$2_VerifyDuringAuthenticationRequest as VerifyDuringAuthenticationRequest, type index_d$2_VerifyRequest as VerifyRequest, type index_d$2_VerifyResponse as VerifyResponse, index_d$2_resendDuringAuthentication as resendDuringAuthentication, index_d$2_start as start, index_d$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$2;
2527
+ paging?: Paging;
2528
2528
  }
2529
- interface Paging$2 {
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$2;
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$2;
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$2 {
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$2;
2718
+ parentAccountInfo?: AccountInfo;
2719
2719
  }
2720
- interface AccountInfo$2 {
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$2;
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$2;
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$2;
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$2, options?: CreateAccountOptions | undefined): Promise<CreateAccountResponse & CreateAccountResponseNonNullableFields>;
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 index_d$5_Account = Account;
2819
- type index_d$5_AccountProperties = AccountProperties;
2820
- type index_d$5_AccountResponse = AccountResponse;
2821
- type index_d$5_AccountStatus = AccountStatus;
2822
- declare const index_d$5_AccountStatus: typeof AccountStatus;
2823
- type index_d$5_AccountV2 = AccountV2;
2824
- type index_d$5_AccountsResponse = AccountsResponse;
2825
- type index_d$5_CoBranding = CoBranding;
2826
- declare const index_d$5_CoBranding: typeof CoBranding;
2827
- type index_d$5_CreateAccountAndAssignUserRequest = CreateAccountAndAssignUserRequest;
2828
- type index_d$5_CreateAccountForMyUserRequest = CreateAccountForMyUserRequest;
2829
- type index_d$5_CreateAccountOptions = CreateAccountOptions;
2830
- type index_d$5_CreateAccountRequest = CreateAccountRequest;
2831
- type index_d$5_CreateAccountResponse = CreateAccountResponse;
2832
- type index_d$5_CreateAccountResponseNonNullableFields = CreateAccountResponseNonNullableFields;
2833
- type index_d$5_CreateAccountTenantRequest = CreateAccountTenantRequest;
2834
- type index_d$5_CreateAccountTenantResponse = CreateAccountTenantResponse;
2835
- type index_d$5_DeleteAccountRequest = DeleteAccountRequest;
2836
- type index_d$5_Email = Email;
2837
- type index_d$5_EmptyResponse = EmptyResponse;
2838
- type index_d$5_GetAccountRequest = GetAccountRequest;
2839
- type index_d$5_GetAccountsRequest = GetAccountsRequest;
2840
- type index_d$5_GetMyAccountRequest = GetMyAccountRequest;
2841
- type index_d$5_GetMyUserAccountsRequest = GetMyUserAccountsRequest;
2842
- type index_d$5_GetParentAccountInfoRequest = GetParentAccountInfoRequest;
2843
- type index_d$5_GetParentAccountInfoResponse = GetParentAccountInfoResponse;
2844
- type index_d$5_GetSubAccountsRequest = GetSubAccountsRequest;
2845
- type index_d$5_GetSubAccountsResponse = GetSubAccountsResponse;
2846
- type index_d$5_GetUserAccountRequest = GetUserAccountRequest;
2847
- type index_d$5_GetUserAccountsRequest = GetUserAccountsRequest;
2848
- type index_d$5_IsTeamRequest = IsTeamRequest;
2849
- type index_d$5_IsTeamResponse = IsTeamResponse;
2850
- type index_d$5_ListChildAccountsOptions = ListChildAccountsOptions;
2851
- type index_d$5_ListChildAccountsRequest = ListChildAccountsRequest;
2852
- type index_d$5_ListChildAccountsResponse = ListChildAccountsResponse;
2853
- type index_d$5_ListChildAccountsResponseNonNullableFields = ListChildAccountsResponseNonNullableFields;
2854
- type index_d$5_MarkAccountFlagRequest = MarkAccountFlagRequest;
2855
- type index_d$5_MarkAccountFlagRequestFlagOneOf = MarkAccountFlagRequestFlagOneOf;
2856
- type index_d$5_PagingMetadata = PagingMetadata;
2857
- type index_d$5_RemoveParent = RemoveParent;
2858
- type index_d$5_SetIsReadOnlyAccountRequest = SetIsReadOnlyAccountRequest;
2859
- type index_d$5_SsoIdentity = SsoIdentity;
2860
- type index_d$5_SubAccountInfo = SubAccountInfo;
2861
- type index_d$5_UpdateAccountRequest = UpdateAccountRequest;
2862
- type index_d$5_UpdateParentAccountRequest = UpdateParentAccountRequest;
2863
- type index_d$5_UpdateParentAccountRequestUpdateOneOf = UpdateParentAccountRequestUpdateOneOf;
2864
- type index_d$5_UpdateParentAccountResponse = UpdateParentAccountResponse;
2865
- type index_d$5_UpdateSlugRequest = UpdateSlugRequest;
2866
- type index_d$5_UserDetails = UserDetails;
2867
- declare const index_d$5_createAccount: typeof createAccount;
2868
- declare const index_d$5_listChildAccounts: typeof listChildAccounts;
2869
- declare namespace index_d$5 {
2870
- export { type index_d$5_Account as Account, type AccountInfo$2 as AccountInfo, type index_d$5_AccountProperties as AccountProperties, type index_d$5_AccountResponse as AccountResponse, index_d$5_AccountStatus as AccountStatus, type index_d$5_AccountV2 as AccountV2, type index_d$5_AccountsResponse as AccountsResponse, index_d$5_CoBranding as CoBranding, type index_d$5_CreateAccountAndAssignUserRequest as CreateAccountAndAssignUserRequest, type index_d$5_CreateAccountForMyUserRequest as CreateAccountForMyUserRequest, type index_d$5_CreateAccountOptions as CreateAccountOptions, type index_d$5_CreateAccountRequest as CreateAccountRequest, type index_d$5_CreateAccountResponse as CreateAccountResponse, type index_d$5_CreateAccountResponseNonNullableFields as CreateAccountResponseNonNullableFields, type index_d$5_CreateAccountTenantRequest as CreateAccountTenantRequest, type index_d$5_CreateAccountTenantResponse as CreateAccountTenantResponse, type index_d$5_DeleteAccountRequest as DeleteAccountRequest, type index_d$5_Email as Email, type index_d$5_EmptyResponse as EmptyResponse, type index_d$5_GetAccountRequest as GetAccountRequest, type index_d$5_GetAccountsRequest as GetAccountsRequest, type index_d$5_GetMyAccountRequest as GetMyAccountRequest, type index_d$5_GetMyUserAccountsRequest as GetMyUserAccountsRequest, type index_d$5_GetParentAccountInfoRequest as GetParentAccountInfoRequest, type index_d$5_GetParentAccountInfoResponse as GetParentAccountInfoResponse, type index_d$5_GetSubAccountsRequest as GetSubAccountsRequest, type index_d$5_GetSubAccountsResponse as GetSubAccountsResponse, type index_d$5_GetUserAccountRequest as GetUserAccountRequest, type index_d$5_GetUserAccountsRequest as GetUserAccountsRequest, type index_d$5_IsTeamRequest as IsTeamRequest, type index_d$5_IsTeamResponse as IsTeamResponse, type index_d$5_ListChildAccountsOptions as ListChildAccountsOptions, type index_d$5_ListChildAccountsRequest as ListChildAccountsRequest, type index_d$5_ListChildAccountsResponse as ListChildAccountsResponse, type index_d$5_ListChildAccountsResponseNonNullableFields as ListChildAccountsResponseNonNullableFields, type index_d$5_MarkAccountFlagRequest as MarkAccountFlagRequest, type index_d$5_MarkAccountFlagRequestFlagOneOf as MarkAccountFlagRequestFlagOneOf, type Paging$2 as Paging, type index_d$5_PagingMetadata as PagingMetadata, type index_d$5_RemoveParent as RemoveParent, type index_d$5_SetIsReadOnlyAccountRequest as SetIsReadOnlyAccountRequest, type index_d$5_SsoIdentity as SsoIdentity, type index_d$5_SubAccountInfo as SubAccountInfo, type index_d$5_UpdateAccountRequest as UpdateAccountRequest, type index_d$5_UpdateParentAccountRequest as UpdateParentAccountRequest, type index_d$5_UpdateParentAccountRequestUpdateOneOf as UpdateParentAccountRequestUpdateOneOf, type index_d$5_UpdateParentAccountResponse as UpdateParentAccountResponse, type index_d$5_UpdateSlugRequest as UpdateSlugRequest, type User$2 as User, type index_d$5_UserDetails as UserDetails, index_d$5_createAccount as createAccount, index_d$5_listChildAccounts as listChildAccounts };
2871
- }
2872
-
2873
- interface AccountInvite$1 {
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 index_d$4_AcceptAccountInviteRequest = AcceptAccountInviteRequest;
3370
- type index_d$4_AcceptAccountInviteResponse = AcceptAccountInviteResponse;
3371
- type index_d$4_AccountInviteRequest = AccountInviteRequest;
3372
- type index_d$4_AccountInviteResponse = AccountInviteResponse;
3373
- type index_d$4_BulkAccountInviteRequest = BulkAccountInviteRequest;
3374
- type index_d$4_BulkAccountInviteResponse = BulkAccountInviteResponse;
3375
- type index_d$4_CreateInviteOptions = CreateInviteOptions;
3376
- type index_d$4_CreateInviteRequest = CreateInviteRequest;
3377
- type index_d$4_CreateInviteResponse = CreateInviteResponse;
3378
- type index_d$4_CreateInviteResponseNonNullableFields = CreateInviteResponseNonNullableFields;
3379
- type index_d$4_GetAccountInviteRequest = GetAccountInviteRequest;
3380
- type index_d$4_GetAccountInviteResponse = GetAccountInviteResponse;
3381
- type index_d$4_GetAccountInvitesRequest = GetAccountInvitesRequest;
3382
- type index_d$4_GetAccountInvitesResponse = GetAccountInvitesResponse;
3383
- type index_d$4_InviteFailure = InviteFailure;
3384
- type index_d$4_ParseAccountInviteTokenRequest = ParseAccountInviteTokenRequest;
3385
- type index_d$4_ParseAccountInviteTokenResponse = ParseAccountInviteTokenResponse;
3386
- type index_d$4_ResendAccountInviteRequest = ResendAccountInviteRequest;
3387
- type index_d$4_RevokeAccountInviteRequest = RevokeAccountInviteRequest;
3388
- type index_d$4_RevokeAccountInviteResponse = RevokeAccountInviteResponse;
3389
- type index_d$4_SubjectInviteAssignments = SubjectInviteAssignments;
3390
- type index_d$4_UpdateAccountInviteAssignmentsRequest = UpdateAccountInviteAssignmentsRequest;
3391
- type index_d$4_UpdateAccountInviteAssignmentsResponse = UpdateAccountInviteAssignmentsResponse;
3392
- type index_d$4_UpdateAccountInviteRequest = UpdateAccountInviteRequest;
3393
- type index_d$4_UpdateAccountInviteResponse = UpdateAccountInviteResponse;
3394
- declare const index_d$4_createInvite: typeof createInvite;
3395
- declare namespace index_d$4 {
3396
- export { type index_d$4_AcceptAccountInviteRequest as AcceptAccountInviteRequest, type index_d$4_AcceptAccountInviteResponse as AcceptAccountInviteResponse, type AccountInvite$1 as AccountInvite, type index_d$4_AccountInviteRequest as AccountInviteRequest, type index_d$4_AccountInviteResponse as AccountInviteResponse, type AccountResourceContext$1 as AccountResourceContext, type index_d$4_BulkAccountInviteRequest as BulkAccountInviteRequest, type index_d$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 index_d$4_CreateInviteOptions as CreateInviteOptions, type index_d$4_CreateInviteRequest as CreateInviteRequest, type index_d$4_CreateInviteResponse as CreateInviteResponse, type index_d$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 index_d$4_GetAccountInviteRequest as GetAccountInviteRequest, type index_d$4_GetAccountInviteResponse as GetAccountInviteResponse, type index_d$4_GetAccountInvitesRequest as GetAccountInvitesRequest, type index_d$4_GetAccountInvitesResponse as GetAccountInvitesResponse, type InviteAssignment$1 as InviteAssignment, type index_d$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 index_d$4_ParseAccountInviteTokenRequest as ParseAccountInviteTokenRequest, type index_d$4_ParseAccountInviteTokenResponse as ParseAccountInviteTokenResponse, type PolicyCondition$1 as PolicyCondition, type index_d$4_ResendAccountInviteRequest as ResendAccountInviteRequest, type Resource$2 as Resource, type index_d$4_RevokeAccountInviteRequest as RevokeAccountInviteRequest, type index_d$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 index_d$4_SubjectInviteAssignments as SubjectInviteAssignments, SubjectType$3 as SubjectType, type index_d$4_UpdateAccountInviteAssignmentsRequest as UpdateAccountInviteAssignmentsRequest, type index_d$4_UpdateAccountInviteAssignmentsResponse as UpdateAccountInviteAssignmentsResponse, type index_d$4_UpdateAccountInviteRequest as UpdateAccountInviteRequest, type index_d$4_UpdateAccountInviteResponse as UpdateAccountInviteResponse, index_d$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 index_d$3_AcceptSiteInviteRequest = AcceptSiteInviteRequest;
3671
- type index_d$3_AcceptSiteInviteResponse = AcceptSiteInviteResponse;
3672
- type index_d$3_BulkInviteOptions = BulkInviteOptions;
3673
- type index_d$3_BulkSiteInviteRequest = BulkSiteInviteRequest;
3674
- type index_d$3_BulkSiteInviteResponse = BulkSiteInviteResponse;
3675
- type index_d$3_BulkSiteInviteResponseNonNullableFields = BulkSiteInviteResponseNonNullableFields;
3676
- type index_d$3_ContributorLimitation = ContributorLimitation;
3677
- type index_d$3_CursorPaging = CursorPaging;
3678
- type index_d$3_GetContributorLimitRequest = GetContributorLimitRequest;
3679
- type index_d$3_GetContributorLimitResponse = GetContributorLimitResponse;
3680
- type index_d$3_GetSiteInviteRequest = GetSiteInviteRequest;
3681
- type index_d$3_GetSiteInviteResponse = GetSiteInviteResponse;
3682
- type index_d$3_GetSiteInvitesRequest = GetSiteInvitesRequest;
3683
- type index_d$3_GetSiteInvitesResponse = GetSiteInvitesResponse;
3684
- type index_d$3_ParseSiteInviteTokenRequest = ParseSiteInviteTokenRequest;
3685
- type index_d$3_ParseSiteInviteTokenResponse = ParseSiteInviteTokenResponse;
3686
- type index_d$3_QuerySiteInvitesRequest = QuerySiteInvitesRequest;
3687
- type index_d$3_QuerySiteInvitesResponse = QuerySiteInvitesResponse;
3688
- type index_d$3_QueryV2 = QueryV2;
3689
- type index_d$3_QueryV2PagingMethodOneOf = QueryV2PagingMethodOneOf;
3690
- type index_d$3_ResendInviteOptions = ResendInviteOptions;
3691
- type index_d$3_ResendSiteInviteRequest = ResendSiteInviteRequest;
3692
- type index_d$3_RevokeSiteInviteRequest = RevokeSiteInviteRequest;
3693
- type index_d$3_RevokeSiteInviteResponse = RevokeSiteInviteResponse;
3694
- type index_d$3_SiteInviteRequest = SiteInviteRequest;
3695
- type index_d$3_SiteInviteResponse = SiteInviteResponse;
3696
- type index_d$3_SiteInviteResponseNonNullableFields = SiteInviteResponseNonNullableFields;
3697
- type index_d$3_SortOrder = SortOrder;
3698
- declare const index_d$3_SortOrder: typeof SortOrder;
3699
- type index_d$3_Sorting = Sorting;
3700
- type index_d$3_UpdateSiteInviteRequest = UpdateSiteInviteRequest;
3701
- type index_d$3_UpdateSiteInviteResponse = UpdateSiteInviteResponse;
3702
- declare const index_d$3_bulkInvite: typeof bulkInvite;
3703
- declare const index_d$3_resendInvite: typeof resendInvite;
3704
- declare const index_d$3_revokeInvite: typeof revokeInvite;
3705
- declare namespace index_d$3 {
3706
- export { type index_d$3_AcceptSiteInviteRequest as AcceptSiteInviteRequest, type index_d$3_AcceptSiteInviteResponse as AcceptSiteInviteResponse, type index_d$3_BulkInviteOptions as BulkInviteOptions, type index_d$3_BulkSiteInviteRequest as BulkSiteInviteRequest, type index_d$3_BulkSiteInviteResponse as BulkSiteInviteResponse, type index_d$3_BulkSiteInviteResponseNonNullableFields as BulkSiteInviteResponseNonNullableFields, type index_d$3_ContributorLimitation as ContributorLimitation, type index_d$3_CursorPaging as CursorPaging, type index_d$3_GetContributorLimitRequest as GetContributorLimitRequest, type index_d$3_GetContributorLimitResponse as GetContributorLimitResponse, type index_d$3_GetSiteInviteRequest as GetSiteInviteRequest, type index_d$3_GetSiteInviteResponse as GetSiteInviteResponse, type index_d$3_GetSiteInvitesRequest as GetSiteInvitesRequest, type index_d$3_GetSiteInvitesResponse as GetSiteInvitesResponse, InviteStatus$2 as InviteStatus, type Paging$1 as Paging, type index_d$3_ParseSiteInviteTokenRequest as ParseSiteInviteTokenRequest, type index_d$3_ParseSiteInviteTokenResponse as ParseSiteInviteTokenResponse, type index_d$3_QuerySiteInvitesRequest as QuerySiteInvitesRequest, type index_d$3_QuerySiteInvitesResponse as QuerySiteInvitesResponse, type index_d$3_QueryV2 as QueryV2, type index_d$3_QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOf, type index_d$3_ResendInviteOptions as ResendInviteOptions, type index_d$3_ResendSiteInviteRequest as ResendSiteInviteRequest, type index_d$3_RevokeSiteInviteRequest as RevokeSiteInviteRequest, type index_d$3_RevokeSiteInviteResponse as RevokeSiteInviteResponse, type SiteInvite$1 as SiteInvite, type index_d$3_SiteInviteRequest as SiteInviteRequest, type index_d$3_SiteInviteResponse as SiteInviteResponse, type index_d$3_SiteInviteResponseNonNullableFields as SiteInviteResponseNonNullableFields, index_d$3_SortOrder as SortOrder, type index_d$3_Sorting as Sorting, type index_d$3_UpdateSiteInviteRequest as UpdateSiteInviteRequest, type index_d$3_UpdateSiteInviteResponse as UpdateSiteInviteResponse, index_d$3_bulkInvite as bulkInvite, index_d$3_resendInvite as resendInvite, index_d$3_revokeInvite as revokeInvite };
2818
+ type index_d$1_Account = Account;
2819
+ type index_d$1_AccountInfo = AccountInfo;
2820
+ type index_d$1_AccountProperties = AccountProperties;
2821
+ type index_d$1_AccountResponse = AccountResponse;
2822
+ type index_d$1_AccountStatus = AccountStatus;
2823
+ declare const index_d$1_AccountStatus: typeof AccountStatus;
2824
+ type index_d$1_AccountV2 = AccountV2;
2825
+ type index_d$1_AccountsResponse = AccountsResponse;
2826
+ type index_d$1_CoBranding = CoBranding;
2827
+ declare const index_d$1_CoBranding: typeof CoBranding;
2828
+ type index_d$1_CreateAccountAndAssignUserRequest = CreateAccountAndAssignUserRequest;
2829
+ type index_d$1_CreateAccountForMyUserRequest = CreateAccountForMyUserRequest;
2830
+ type index_d$1_CreateAccountOptions = CreateAccountOptions;
2831
+ type index_d$1_CreateAccountRequest = CreateAccountRequest;
2832
+ type index_d$1_CreateAccountResponse = CreateAccountResponse;
2833
+ type index_d$1_CreateAccountResponseNonNullableFields = CreateAccountResponseNonNullableFields;
2834
+ type index_d$1_CreateAccountTenantRequest = CreateAccountTenantRequest;
2835
+ type index_d$1_CreateAccountTenantResponse = CreateAccountTenantResponse;
2836
+ type index_d$1_DeleteAccountRequest = DeleteAccountRequest;
2837
+ type index_d$1_Email = Email;
2838
+ type index_d$1_EmptyResponse = EmptyResponse;
2839
+ type index_d$1_GetAccountRequest = GetAccountRequest;
2840
+ type index_d$1_GetAccountsRequest = GetAccountsRequest;
2841
+ type index_d$1_GetMyAccountRequest = GetMyAccountRequest;
2842
+ type index_d$1_GetMyUserAccountsRequest = GetMyUserAccountsRequest;
2843
+ type index_d$1_GetParentAccountInfoRequest = GetParentAccountInfoRequest;
2844
+ type index_d$1_GetParentAccountInfoResponse = GetParentAccountInfoResponse;
2845
+ type index_d$1_GetSubAccountsRequest = GetSubAccountsRequest;
2846
+ type index_d$1_GetSubAccountsResponse = GetSubAccountsResponse;
2847
+ type index_d$1_GetUserAccountRequest = GetUserAccountRequest;
2848
+ type index_d$1_GetUserAccountsRequest = GetUserAccountsRequest;
2849
+ type index_d$1_IsTeamRequest = IsTeamRequest;
2850
+ type index_d$1_IsTeamResponse = IsTeamResponse;
2851
+ type index_d$1_ListChildAccountsOptions = ListChildAccountsOptions;
2852
+ type index_d$1_ListChildAccountsRequest = ListChildAccountsRequest;
2853
+ type index_d$1_ListChildAccountsResponse = ListChildAccountsResponse;
2854
+ type index_d$1_ListChildAccountsResponseNonNullableFields = ListChildAccountsResponseNonNullableFields;
2855
+ type index_d$1_MarkAccountFlagRequest = MarkAccountFlagRequest;
2856
+ type index_d$1_MarkAccountFlagRequestFlagOneOf = MarkAccountFlagRequestFlagOneOf;
2857
+ type index_d$1_Paging = Paging;
2858
+ type index_d$1_PagingMetadata = PagingMetadata;
2859
+ type index_d$1_RemoveParent = RemoveParent;
2860
+ type index_d$1_SetIsReadOnlyAccountRequest = SetIsReadOnlyAccountRequest;
2861
+ type index_d$1_SsoIdentity = SsoIdentity;
2862
+ type index_d$1_SubAccountInfo = SubAccountInfo;
2863
+ type index_d$1_UpdateAccountRequest = UpdateAccountRequest;
2864
+ type index_d$1_UpdateParentAccountRequest = UpdateParentAccountRequest;
2865
+ type index_d$1_UpdateParentAccountRequestUpdateOneOf = UpdateParentAccountRequestUpdateOneOf;
2866
+ type index_d$1_UpdateParentAccountResponse = UpdateParentAccountResponse;
2867
+ type index_d$1_UpdateSlugRequest = UpdateSlugRequest;
2868
+ type index_d$1_User = User;
2869
+ type index_d$1_UserDetails = UserDetails;
2870
+ declare const index_d$1_createAccount: typeof createAccount;
2871
+ declare const index_d$1_listChildAccounts: typeof listChildAccounts;
2872
+ declare namespace index_d$1 {
2873
+ export { type index_d$1_Account as Account, type index_d$1_AccountInfo as AccountInfo, type index_d$1_AccountProperties as AccountProperties, type index_d$1_AccountResponse as AccountResponse, index_d$1_AccountStatus as AccountStatus, type index_d$1_AccountV2 as AccountV2, type index_d$1_AccountsResponse as AccountsResponse, index_d$1_CoBranding as CoBranding, type index_d$1_CreateAccountAndAssignUserRequest as CreateAccountAndAssignUserRequest, type index_d$1_CreateAccountForMyUserRequest as CreateAccountForMyUserRequest, type index_d$1_CreateAccountOptions as CreateAccountOptions, type index_d$1_CreateAccountRequest as CreateAccountRequest, type index_d$1_CreateAccountResponse as CreateAccountResponse, type index_d$1_CreateAccountResponseNonNullableFields as CreateAccountResponseNonNullableFields, type index_d$1_CreateAccountTenantRequest as CreateAccountTenantRequest, type index_d$1_CreateAccountTenantResponse as CreateAccountTenantResponse, type index_d$1_DeleteAccountRequest as DeleteAccountRequest, type index_d$1_Email as Email, type index_d$1_EmptyResponse as EmptyResponse, type index_d$1_GetAccountRequest as GetAccountRequest, type index_d$1_GetAccountsRequest as GetAccountsRequest, type index_d$1_GetMyAccountRequest as GetMyAccountRequest, type index_d$1_GetMyUserAccountsRequest as GetMyUserAccountsRequest, type index_d$1_GetParentAccountInfoRequest as GetParentAccountInfoRequest, type index_d$1_GetParentAccountInfoResponse as GetParentAccountInfoResponse, type index_d$1_GetSubAccountsRequest as GetSubAccountsRequest, type index_d$1_GetSubAccountsResponse as GetSubAccountsResponse, type index_d$1_GetUserAccountRequest as GetUserAccountRequest, type index_d$1_GetUserAccountsRequest as GetUserAccountsRequest, type index_d$1_IsTeamRequest as IsTeamRequest, type index_d$1_IsTeamResponse as IsTeamResponse, type index_d$1_ListChildAccountsOptions as ListChildAccountsOptions, type index_d$1_ListChildAccountsRequest as ListChildAccountsRequest, type index_d$1_ListChildAccountsResponse as ListChildAccountsResponse, type index_d$1_ListChildAccountsResponseNonNullableFields as ListChildAccountsResponseNonNullableFields, type index_d$1_MarkAccountFlagRequest as MarkAccountFlagRequest, type index_d$1_MarkAccountFlagRequestFlagOneOf as MarkAccountFlagRequestFlagOneOf, type index_d$1_Paging as Paging, type index_d$1_PagingMetadata as PagingMetadata, type index_d$1_RemoveParent as RemoveParent, type index_d$1_SetIsReadOnlyAccountRequest as SetIsReadOnlyAccountRequest, type index_d$1_SsoIdentity as SsoIdentity, type index_d$1_SubAccountInfo as SubAccountInfo, type index_d$1_UpdateAccountRequest as UpdateAccountRequest, type index_d$1_UpdateParentAccountRequest as UpdateParentAccountRequest, type index_d$1_UpdateParentAccountRequestUpdateOneOf as UpdateParentAccountRequestUpdateOneOf, type index_d$1_UpdateParentAccountResponse as UpdateParentAccountResponse, type index_d$1_UpdateSlugRequest as UpdateSlugRequest, type index_d$1_User as User, type index_d$1_UserDetails as UserDetails, index_d$1_createAccount as createAccount, index_d$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$2;
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$2 {
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$2;
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 index_d$2_ActionEvent = ActionEvent;
4010
- type index_d$2_AuthorizeRequest = AuthorizeRequest;
4011
- type index_d$2_DeviceCodeRequest = DeviceCodeRequest;
4012
- type index_d$2_DeviceCodeResponse = DeviceCodeResponse;
4013
- type index_d$2_DeviceVerifyRequest = DeviceVerifyRequest;
4014
- type index_d$2_DeviceVerifyResponse = DeviceVerifyResponse;
4015
- type index_d$2_DeviceVerifyV2Request = DeviceVerifyV2Request;
4016
- type index_d$2_DeviceVerifyV2Response = DeviceVerifyV2Response;
4017
- type index_d$2_DomainEvent = DomainEvent;
4018
- type index_d$2_DomainEventBodyOneOf = DomainEventBodyOneOf;
4019
- type index_d$2_Empty = Empty;
4020
- type index_d$2_EntityCreatedEvent = EntityCreatedEvent;
4021
- type index_d$2_EntityDeletedEvent = EntityDeletedEvent;
4022
- type index_d$2_EntityUpdatedEvent = EntityUpdatedEvent;
4023
- type index_d$2_HeadersEntry = HeadersEntry;
4024
- type index_d$2_InvalidateUserCodeRequest = InvalidateUserCodeRequest;
4025
- type index_d$2_InvalidateUserCodeResponse = InvalidateUserCodeResponse;
4026
- type index_d$2_PathParametersEntry = PathParametersEntry;
4027
- type index_d$2_QueryParametersEntry = QueryParametersEntry;
4028
- type index_d$2_RawHttpRequest = RawHttpRequest;
4029
- type index_d$2_RawHttpResponse = RawHttpResponse;
4030
- type index_d$2_RawHttpResponseNonNullableFields = RawHttpResponseNonNullableFields;
4031
- type index_d$2_RefreshToken = RefreshToken;
4032
- type index_d$2_RestoreInfo = RestoreInfo;
4033
- type index_d$2_RevokeRefreshTokenRequest = RevokeRefreshTokenRequest;
4034
- type index_d$2_RevokeRefreshTokenResponse = RevokeRefreshTokenResponse;
4035
- type index_d$2_TokenInfoOptions = TokenInfoOptions;
4036
- type index_d$2_TokenInfoResponse = TokenInfoResponse;
4037
- type index_d$2_TokenInfoResponseNonNullableFields = TokenInfoResponseNonNullableFields;
4038
- type index_d$2_TokenOptions = TokenOptions;
4039
- declare const index_d$2_token: typeof token;
4040
- declare const index_d$2_tokenInfo: typeof tokenInfo;
4041
- declare namespace index_d$2 {
4042
- export { type index_d$2_ActionEvent as ActionEvent, type index_d$2_AuthorizeRequest as AuthorizeRequest, type index_d$2_DeviceCodeRequest as DeviceCodeRequest, type index_d$2_DeviceCodeResponse as DeviceCodeResponse, type index_d$2_DeviceVerifyRequest as DeviceVerifyRequest, type index_d$2_DeviceVerifyResponse as DeviceVerifyResponse, type index_d$2_DeviceVerifyV2Request as DeviceVerifyV2Request, type index_d$2_DeviceVerifyV2Response as DeviceVerifyV2Response, type index_d$2_DomainEvent as DomainEvent, type index_d$2_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d$2_Empty as Empty, type index_d$2_EntityCreatedEvent as EntityCreatedEvent, type index_d$2_EntityDeletedEvent as EntityDeletedEvent, type index_d$2_EntityUpdatedEvent as EntityUpdatedEvent, type index_d$2_HeadersEntry as HeadersEntry, type index_d$2_InvalidateUserCodeRequest as InvalidateUserCodeRequest, type index_d$2_InvalidateUserCodeResponse as InvalidateUserCodeResponse, type index_d$2_PathParametersEntry as PathParametersEntry, type index_d$2_QueryParametersEntry as QueryParametersEntry, type index_d$2_RawHttpRequest as RawHttpRequest, type index_d$2_RawHttpResponse as RawHttpResponse, type index_d$2_RawHttpResponseNonNullableFields as RawHttpResponseNonNullableFields, type index_d$2_RefreshToken as RefreshToken, type index_d$2_RestoreInfo as RestoreInfo, type index_d$2_RevokeRefreshTokenRequest as RevokeRefreshTokenRequest, type index_d$2_RevokeRefreshTokenResponse as RevokeRefreshTokenResponse, SubjectType$2 as SubjectType, type index_d$2_TokenInfoOptions as TokenInfoOptions, type index_d$2_TokenInfoResponse as TokenInfoResponse, type index_d$2_TokenInfoResponseNonNullableFields as TokenInfoResponseNonNullableFields, type index_d$2_TokenOptions as TokenOptions, index_d$2_token as token, index_d$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 index_d$1_AccountInvite = AccountInvite;
5142
- type index_d$1_AccountResourceContext = AccountResourceContext;
5143
- type index_d$1_ApiCondition = ApiCondition;
5144
- type index_d$1_ApiInviteAssignment = ApiInviteAssignment;
5145
- type index_d$1_ApiPolicy = ApiPolicy;
5146
- type index_d$1_ApiResource = ApiResource;
5147
- type index_d$1_AreasFilter = AreasFilter;
5148
- type index_d$1_AssignedSubject = AssignedSubject;
5149
- type index_d$1_AssignmentV3 = AssignmentV3;
5150
- type index_d$1_ChangeRoleRequest = ChangeRoleRequest;
5151
- type index_d$1_ChangeRoleResponse = ChangeRoleResponse;
5152
- type index_d$1_ChangeRoleV2Request = ChangeRoleV2Request;
5153
- type index_d$1_ChangeRoleV2Response = ChangeRoleV2Response;
5154
- type index_d$1_ConditionOperator = ConditionOperator;
5155
- type index_d$1_ConditionOperatorOperatorsOneOf = ConditionOperatorOperatorsOneOf;
5156
- type index_d$1_ConditionType = ConditionType;
5157
- type index_d$1_ConditionTypeOfOneOf = ConditionTypeOfOneOf;
5158
- type index_d$1_ConditionValue = ConditionValue;
5159
- type index_d$1_ConditionValueValueOneOf = ConditionValueValueOneOf;
5160
- type index_d$1_CreateCustomRoleRequest = CreateCustomRoleRequest;
5161
- type index_d$1_CreateCustomRoleResponse = CreateCustomRoleResponse;
5162
- type index_d$1_CustomRole = CustomRole;
5163
- type index_d$1_DependOnOperator = DependOnOperator;
5164
- type index_d$1_Direction = Direction;
5165
- declare const index_d$1_Direction: typeof Direction;
5166
- type index_d$1_EditorType = EditorType;
5167
- declare const index_d$1_EditorType: typeof EditorType;
5168
- type index_d$1_Effect = Effect;
5169
- declare const index_d$1_Effect: typeof Effect;
5170
- type index_d$1_EnvironmentCondition = EnvironmentCondition;
5171
- type index_d$1_EnvironmentConditionConditionOneOf = EnvironmentConditionConditionOneOf;
5172
- type index_d$1_EqualOperator = EqualOperator;
5173
- type index_d$1_ExperimentCondition = ExperimentCondition;
5174
- type index_d$1_ExperimentOperator = ExperimentOperator;
5175
- type index_d$1_Facet = Facet;
5176
- type index_d$1_FacetType = FacetType;
5177
- declare const index_d$1_FacetType: typeof FacetType;
5178
- type index_d$1_FacetValue = FacetValue;
5179
- type index_d$1_FolderResource = FolderResource;
5180
- type index_d$1_FullNameResource = FullNameResource;
5181
- type index_d$1_FullNameResourceResourceContextOneOf = FullNameResourceResourceContextOneOf;
5182
- type index_d$1_GetPeopleRequest = GetPeopleRequest;
5183
- type index_d$1_GetPeopleResponse = GetPeopleResponse;
5184
- type index_d$1_GetPoliciesRequest = GetPoliciesRequest;
5185
- type index_d$1_GetPoliciesResponse = GetPoliciesResponse;
5186
- type index_d$1_GetRolesInfoOptions = GetRolesInfoOptions;
5187
- type index_d$1_GetRolesInfoRequest = GetRolesInfoRequest;
5188
- type index_d$1_GetRolesInfoResponse = GetRolesInfoResponse;
5189
- type index_d$1_GetRolesInfoResponseNonNullableFields = GetRolesInfoResponseNonNullableFields;
5190
- type index_d$1_GetRolesRequest = GetRolesRequest;
5191
- type index_d$1_GetRolesResponse = GetRolesResponse;
5192
- type index_d$1_GetScopesRequest = GetScopesRequest;
5193
- type index_d$1_GetScopesResponse = GetScopesResponse;
5194
- type index_d$1_GetSubjectsAssignmentsRequest = GetSubjectsAssignmentsRequest;
5195
- type index_d$1_GetSubjectsAssignmentsResponse = GetSubjectsAssignmentsResponse;
5196
- type index_d$1_GetTeamInvitesRequest = GetTeamInvitesRequest;
5197
- type index_d$1_GetTeamInvitesResponse = GetTeamInvitesResponse;
5198
- type index_d$1_GetTeamRequest = GetTeamRequest;
5199
- type index_d$1_GetTeamResponse = GetTeamResponse;
5200
- type index_d$1_GetTeamV2Response = GetTeamV2Response;
5201
- type index_d$1_GetUsersRequest = GetUsersRequest;
5202
- type index_d$1_GetUsersResponse = GetUsersResponse;
5203
- type index_d$1_Invite = Invite;
5204
- type index_d$1_InviteAssignment = InviteAssignment;
5205
- type index_d$1_InviteAssignmentV3 = InviteAssignmentV3;
5206
- type index_d$1_InviteResourceAssignment = InviteResourceAssignment;
5207
- type index_d$1_InviteV3 = InviteV3;
5208
- type index_d$1_JoinedCondition = JoinedCondition;
5209
- type index_d$1_JoinedConditionOperator = JoinedConditionOperator;
5210
- declare const index_d$1_JoinedConditionOperator: typeof JoinedConditionOperator;
5211
- type index_d$1_LikeOperator = LikeOperator;
5212
- type index_d$1_OrderField = OrderField;
5213
- declare const index_d$1_OrderField: typeof OrderField;
5214
- type index_d$1_Ordering = Ordering;
5215
- type index_d$1_OrganizationResourceContext = OrganizationResourceContext;
5216
- type index_d$1_Paging = Paging;
5217
- type index_d$1_People = People;
5218
- type index_d$1_PeopleResource = PeopleResource;
5219
- type index_d$1_PeopleResourceResourceTypeOneOf = PeopleResourceResourceTypeOneOf;
5220
- type index_d$1_PeopleType = PeopleType;
5221
- declare const index_d$1_PeopleType: typeof PeopleType;
5222
- type index_d$1_PermissionScope = PermissionScope;
5223
- type index_d$1_Person = Person;
5224
- type index_d$1_PersonPersonOneOf = PersonPersonOneOf;
5225
- type index_d$1_PolicyCondition = PolicyCondition;
5226
- type index_d$1_PolicyStatement = PolicyStatement;
5227
- type index_d$1_PolicyType = PolicyType;
5228
- declare const index_d$1_PolicyType: typeof PolicyType;
5229
- type index_d$1_PredefinedRoleV2 = PredefinedRoleV2;
5230
- type index_d$1_PredefinedRolesArea = PredefinedRolesArea;
5231
- type index_d$1_RemoveMemberRequest = RemoveMemberRequest;
5232
- type index_d$1_RemoveMemberResponse = RemoveMemberResponse;
5233
- type index_d$1_RoleInfo = RoleInfo;
5234
- type index_d$1_RoleLevel = RoleLevel;
5235
- declare const index_d$1_RoleLevel: typeof RoleLevel;
5236
- type index_d$1_RoleLevelRestriction = RoleLevelRestriction;
5237
- declare const index_d$1_RoleLevelRestriction: typeof RoleLevelRestriction;
5238
- type index_d$1_RoleVisibility = RoleVisibility;
5239
- declare const index_d$1_RoleVisibility: typeof RoleVisibility;
5240
- type index_d$1_RolesInfoFilter = RolesInfoFilter;
5241
- type index_d$1_ScopeArea = ScopeArea;
5242
- type index_d$1_ScopeLevel = ScopeLevel;
5243
- declare const index_d$1_ScopeLevel: typeof ScopeLevel;
5244
- type index_d$1_SearchTeamOptions = SearchTeamOptions;
5245
- type index_d$1_SearchTeamRequest = SearchTeamRequest;
5246
- type index_d$1_SearchTeamResponse = SearchTeamResponse;
5247
- type index_d$1_SearchTeamResponseNonNullableFields = SearchTeamResponseNonNullableFields;
5248
- type index_d$1_SimpleCondition = SimpleCondition;
5249
- type index_d$1_SimpleConditionOperator = SimpleConditionOperator;
5250
- declare const index_d$1_SimpleConditionOperator: typeof SimpleConditionOperator;
5251
- type index_d$1_SimpleConditionValue = SimpleConditionValue;
5252
- type index_d$1_SimpleConditionValueValueOneOf = SimpleConditionValueValueOneOf;
5253
- type index_d$1_SiteResourceContext = SiteResourceContext;
5254
- type index_d$1_SubjectAssignments = SubjectAssignments;
5255
- type index_d$1_TeamMember = TeamMember;
5256
- type index_d$1_TeamMemberV3 = TeamMemberV3;
5257
- type index_d$1_TeamMemberV3MembersOneOf = TeamMemberV3MembersOneOf;
5258
- type index_d$1_UpdateTeamMemberAssignmentsOptions = UpdateTeamMemberAssignmentsOptions;
5259
- type index_d$1_UpdateTeamMemberAssignmentsRequest = UpdateTeamMemberAssignmentsRequest;
5260
- type index_d$1_UpdateTeamMemberAssignmentsResponse = UpdateTeamMemberAssignmentsResponse;
5261
- type index_d$1_UpdateTeamMemberAssignmentsResponseNonNullableFields = UpdateTeamMemberAssignmentsResponseNonNullableFields;
5262
- type index_d$1_UserV3 = UserV3;
5263
- type index_d$1_Visibility = Visibility;
5264
- declare const index_d$1_Visibility: typeof Visibility;
5265
- declare const index_d$1_getRolesInfo: typeof getRolesInfo;
5266
- declare const index_d$1_removeMember: typeof removeMember;
5267
- declare const index_d$1_searchTeam: typeof searchTeam;
5268
- declare const index_d$1_updateTeamMemberAssignments: typeof updateTeamMemberAssignments;
5269
- declare namespace index_d$1 {
5270
- export { type AccountInfo$1 as AccountInfo, type index_d$1_AccountInvite as AccountInvite, type index_d$1_AccountResourceContext as AccountResourceContext, type index_d$1_ApiCondition as ApiCondition, type index_d$1_ApiInviteAssignment as ApiInviteAssignment, type index_d$1_ApiPolicy as ApiPolicy, type index_d$1_ApiResource as ApiResource, type index_d$1_AreasFilter as AreasFilter, type AssignedPolicy$1 as AssignedPolicy, type index_d$1_AssignedSubject as AssignedSubject, type Assignment$1 as Assignment, type index_d$1_AssignmentV3 as AssignmentV3, type index_d$1_ChangeRoleRequest as ChangeRoleRequest, type index_d$1_ChangeRoleResponse as ChangeRoleResponse, type index_d$1_ChangeRoleV2Request as ChangeRoleV2Request, type index_d$1_ChangeRoleV2Response as ChangeRoleV2Response, type CompanionResource$1 as CompanionResource, type Condition$1 as Condition, ConditionAttributeType$1 as ConditionAttributeType, type index_d$1_ConditionOperator as ConditionOperator, type index_d$1_ConditionOperatorOperatorsOneOf as ConditionOperatorOperatorsOneOf, type index_d$1_ConditionType as ConditionType, type index_d$1_ConditionTypeOfOneOf as ConditionTypeOfOneOf, type index_d$1_ConditionValue as ConditionValue, type index_d$1_ConditionValueValueOneOf as ConditionValueValueOneOf, type Conditions$1 as Conditions, type Contributor$1 as Contributor, type index_d$1_CreateCustomRoleRequest as CreateCustomRoleRequest, type index_d$1_CreateCustomRoleResponse as CreateCustomRoleResponse, type index_d$1_CustomRole as CustomRole, type index_d$1_DependOnOperator as DependOnOperator, index_d$1_Direction as Direction, index_d$1_EditorType as EditorType, index_d$1_Effect as Effect, type index_d$1_EnvironmentCondition as EnvironmentCondition, type index_d$1_EnvironmentConditionConditionOneOf as EnvironmentConditionConditionOneOf, type index_d$1_EqualOperator as EqualOperator, type index_d$1_ExperimentCondition as ExperimentCondition, type index_d$1_ExperimentOperator as ExperimentOperator, type index_d$1_Facet as Facet, index_d$1_FacetType as FacetType, type index_d$1_FacetValue as FacetValue, type index_d$1_FolderResource as FolderResource, type index_d$1_FullNameResource as FullNameResource, type index_d$1_FullNameResourceResourceContextOneOf as FullNameResourceResourceContextOneOf, type index_d$1_GetPeopleRequest as GetPeopleRequest, type index_d$1_GetPeopleResponse as GetPeopleResponse, type index_d$1_GetPoliciesRequest as GetPoliciesRequest, type index_d$1_GetPoliciesResponse as GetPoliciesResponse, type index_d$1_GetRolesInfoOptions as GetRolesInfoOptions, type index_d$1_GetRolesInfoRequest as GetRolesInfoRequest, type index_d$1_GetRolesInfoResponse as GetRolesInfoResponse, type index_d$1_GetRolesInfoResponseNonNullableFields as GetRolesInfoResponseNonNullableFields, type index_d$1_GetRolesRequest as GetRolesRequest, type index_d$1_GetRolesResponse as GetRolesResponse, type index_d$1_GetScopesRequest as GetScopesRequest, type index_d$1_GetScopesResponse as GetScopesResponse, type index_d$1_GetSubjectsAssignmentsRequest as GetSubjectsAssignmentsRequest, type index_d$1_GetSubjectsAssignmentsResponse as GetSubjectsAssignmentsResponse, type index_d$1_GetTeamInvitesRequest as GetTeamInvitesRequest, type index_d$1_GetTeamInvitesResponse as GetTeamInvitesResponse, type index_d$1_GetTeamRequest as GetTeamRequest, type index_d$1_GetTeamResponse as GetTeamResponse, type index_d$1_GetTeamV2Response as GetTeamV2Response, type index_d$1_GetUsersRequest as GetUsersRequest, type index_d$1_GetUsersResponse as GetUsersResponse, type index_d$1_Invite as Invite, type index_d$1_InviteAssignment as InviteAssignment, type index_d$1_InviteAssignmentV3 as InviteAssignmentV3, type index_d$1_InviteResourceAssignment as InviteResourceAssignment, InviteStatus$1 as InviteStatus, type index_d$1_InviteV3 as InviteV3, type index_d$1_JoinedCondition as JoinedCondition, index_d$1_JoinedConditionOperator as JoinedConditionOperator, type index_d$1_LikeOperator as LikeOperator, type Name$1 as Name, index_d$1_OrderField as OrderField, type index_d$1_Ordering as Ordering, type index_d$1_OrganizationResourceContext as OrganizationResourceContext, type index_d$1_Paging as Paging, type index_d$1_People as People, type index_d$1_PeopleResource as PeopleResource, type index_d$1_PeopleResourceResourceTypeOneOf as PeopleResourceResourceTypeOneOf, index_d$1_PeopleType as PeopleType, type index_d$1_PermissionScope as PermissionScope, type index_d$1_Person as Person, type PersonMetaData$1 as PersonMetaData, type index_d$1_PersonPersonOneOf as PersonPersonOneOf, type Policy$1 as Policy, type index_d$1_PolicyCondition as PolicyCondition, type index_d$1_PolicyStatement as PolicyStatement, index_d$1_PolicyType as PolicyType, type PredefinedRole$1 as PredefinedRole, type index_d$1_PredefinedRoleV2 as PredefinedRoleV2, type PredefinedRoles$1 as PredefinedRoles, type index_d$1_PredefinedRolesArea as PredefinedRolesArea, type index_d$1_RemoveMemberRequest as RemoveMemberRequest, type index_d$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 index_d$1_RoleInfo as RoleInfo, index_d$1_RoleLevel as RoleLevel, index_d$1_RoleLevelRestriction as RoleLevelRestriction, index_d$1_RoleVisibility as RoleVisibility, type index_d$1_RolesInfoFilter as RolesInfoFilter, type index_d$1_ScopeArea as ScopeArea, index_d$1_ScopeLevel as ScopeLevel, type index_d$1_SearchTeamOptions as SearchTeamOptions, type index_d$1_SearchTeamRequest as SearchTeamRequest, type index_d$1_SearchTeamResponse as SearchTeamResponse, type index_d$1_SearchTeamResponseNonNullableFields as SearchTeamResponseNonNullableFields, type index_d$1_SimpleCondition as SimpleCondition, index_d$1_SimpleConditionOperator as SimpleConditionOperator, type index_d$1_SimpleConditionValue as SimpleConditionValue, type index_d$1_SimpleConditionValueValueOneOf as SimpleConditionValueValueOneOf, type index_d$1_SiteResourceContext as SiteResourceContext, type SiteRestriction$1 as SiteRestriction, type Subject$1 as Subject, type index_d$1_SubjectAssignments as SubjectAssignments, type SubjectContext$1 as SubjectContext, SubjectContextType$1 as SubjectContextType, SubjectType$1 as SubjectType, type index_d$1_TeamMember as TeamMember, type index_d$1_TeamMemberV3 as TeamMemberV3, type index_d$1_TeamMemberV3MembersOneOf as TeamMemberV3MembersOneOf, type index_d$1_UpdateTeamMemberAssignmentsOptions as UpdateTeamMemberAssignmentsOptions, type index_d$1_UpdateTeamMemberAssignmentsRequest as UpdateTeamMemberAssignmentsRequest, type index_d$1_UpdateTeamMemberAssignmentsResponse as UpdateTeamMemberAssignmentsResponse, type index_d$1_UpdateTeamMemberAssignmentsResponseNonNullableFields as UpdateTeamMemberAssignmentsResponseNonNullableFields, type User$1 as User, type index_d$1_UserV3 as UserV3, index_d$1_Visibility as Visibility, index_d$1_getRolesInfo as getRolesInfo, index_d$1_removeMember as removeMember, index_d$1_searchTeam as searchTeam, index_d$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 index_d_AccountInfo = AccountInfo;
5749
- type index_d_AppInvite = AppInvite;
5750
- type index_d_AssignedPolicy = AssignedPolicy;
5751
- type index_d_Assignment = Assignment;
5752
- type index_d_BulkGetUserRolesOnSiteRequest = BulkGetUserRolesOnSiteRequest;
5753
- type index_d_BulkGetUserRolesOnSiteResponse = BulkGetUserRolesOnSiteResponse;
5754
- type index_d_ChangeContributorRoleRequest = ChangeContributorRoleRequest;
5755
- type index_d_ChangeContributorRoleResponse = ChangeContributorRoleResponse;
5756
- type index_d_ChangeContributorRoleResponseNonNullableFields = ChangeContributorRoleResponseNonNullableFields;
5757
- type index_d_ChangeRoleOptions = ChangeRoleOptions;
5758
- type index_d_CompanionResource = CompanionResource;
5759
- type index_d_Condition = Condition;
5760
- type index_d_ConditionAttributeType = ConditionAttributeType;
5761
- declare const index_d_ConditionAttributeType: typeof ConditionAttributeType;
5762
- type index_d_Conditions = Conditions;
5763
- type index_d_Contributor = Contributor;
5764
- type index_d_ContributorLimit = ContributorLimit;
5765
- type index_d_ContributorV2 = ContributorV2;
5766
- type index_d_ContributorsQuota = ContributorsQuota;
5767
- type index_d_ContributorsQuotaOptionsOneOf = ContributorsQuotaOptionsOneOf;
5768
- type index_d_FieldSet = FieldSet;
5769
- declare const index_d_FieldSet: typeof FieldSet;
5770
- type index_d_GetAppContributorsRequest = GetAppContributorsRequest;
5771
- type index_d_GetAppContributorsResponse = GetAppContributorsResponse;
5772
- type index_d_GetContributorsQuotaRequest = GetContributorsQuotaRequest;
5773
- type index_d_GetContributorsQuotaResponse = GetContributorsQuotaResponse;
5774
- type index_d_GetCurrentUserRolesRequest = GetCurrentUserRolesRequest;
5775
- type index_d_GetCurrentUserRolesResponse = GetCurrentUserRolesResponse;
5776
- type index_d_GetSiteContributorsRequest = GetSiteContributorsRequest;
5777
- type index_d_GetSiteContributorsResponse = GetSiteContributorsResponse;
5778
- type index_d_GetSiteContributorsV2Request = GetSiteContributorsV2Request;
5779
- type index_d_GetSiteContributorsV2Response = GetSiteContributorsV2Response;
5780
- type index_d_HandleSiteTransferRequest = HandleSiteTransferRequest;
5781
- type index_d_HandleSiteTransferResponse = HandleSiteTransferResponse;
5782
- type index_d_InviteStatus = InviteStatus;
5783
- declare const index_d_InviteStatus: typeof InviteStatus;
5784
- type index_d_LimitedOptions = LimitedOptions;
5785
- type index_d_LocalizedRole = LocalizedRole;
5786
- type index_d_Name = Name;
5787
- type index_d_PendingOwner = PendingOwner;
5788
- type index_d_PersonMetaData = PersonMetaData;
5789
- type index_d_Policy = Policy;
5790
- type index_d_PredefinedRole = PredefinedRole;
5791
- type index_d_PredefinedRoles = PredefinedRoles;
5792
- type index_d_QuerySiteContributorsFilter = QuerySiteContributorsFilter;
5793
- type index_d_QuerySiteContributorsOptions = QuerySiteContributorsOptions;
5794
- type index_d_QuerySiteContributorsRequest = QuerySiteContributorsRequest;
5795
- type index_d_QuerySiteContributorsResponse = QuerySiteContributorsResponse;
5796
- type index_d_Resource = Resource;
5797
- type index_d_ResourceType = ResourceType;
5798
- declare const index_d_ResourceType: typeof ResourceType;
5799
- type index_d_Restriction = Restriction;
5800
- type index_d_RestrictionRestrictionsOneOf = RestrictionRestrictionsOneOf;
5801
- type index_d_Role = Role;
5802
- type index_d_SiteInvite = SiteInvite;
5803
- type index_d_SiteRestriction = SiteRestriction;
5804
- type index_d_SiteRoleAssignment = SiteRoleAssignment;
5805
- type index_d_Subject = Subject;
5806
- type index_d_SubjectContext = SubjectContext;
5807
- type index_d_SubjectContextType = SubjectContextType;
5808
- declare const index_d_SubjectContextType: typeof SubjectContextType;
3176
+ type index_d_ActionEvent = ActionEvent;
3177
+ type index_d_AuthorizeRequest = AuthorizeRequest;
3178
+ type index_d_DeviceCodeRequest = DeviceCodeRequest;
3179
+ type index_d_DeviceCodeResponse = DeviceCodeResponse;
3180
+ type index_d_DeviceVerifyRequest = DeviceVerifyRequest;
3181
+ type index_d_DeviceVerifyResponse = DeviceVerifyResponse;
3182
+ type index_d_DeviceVerifyV2Request = DeviceVerifyV2Request;
3183
+ type index_d_DeviceVerifyV2Response = DeviceVerifyV2Response;
3184
+ type index_d_DomainEvent = DomainEvent;
3185
+ type index_d_DomainEventBodyOneOf = DomainEventBodyOneOf;
3186
+ type index_d_Empty = Empty;
3187
+ type index_d_EntityCreatedEvent = EntityCreatedEvent;
3188
+ type index_d_EntityDeletedEvent = EntityDeletedEvent;
3189
+ type index_d_EntityUpdatedEvent = EntityUpdatedEvent;
3190
+ type index_d_HeadersEntry = HeadersEntry;
3191
+ type index_d_InvalidateUserCodeRequest = InvalidateUserCodeRequest;
3192
+ type index_d_InvalidateUserCodeResponse = InvalidateUserCodeResponse;
3193
+ type index_d_PathParametersEntry = PathParametersEntry;
3194
+ type index_d_QueryParametersEntry = QueryParametersEntry;
3195
+ type index_d_RawHttpRequest = RawHttpRequest;
3196
+ type index_d_RawHttpResponse = RawHttpResponse;
3197
+ type index_d_RawHttpResponseNonNullableFields = RawHttpResponseNonNullableFields;
3198
+ type index_d_RefreshToken = RefreshToken;
3199
+ type index_d_RestoreInfo = RestoreInfo;
3200
+ type index_d_RevokeRefreshTokenRequest = RevokeRefreshTokenRequest;
3201
+ type index_d_RevokeRefreshTokenResponse = RevokeRefreshTokenResponse;
5809
3202
  type index_d_SubjectType = SubjectType;
5810
3203
  declare const index_d_SubjectType: typeof SubjectType;
5811
- type index_d_Team = Team;
5812
- type index_d_Type = Type;
5813
- declare const index_d_Type: typeof Type;
5814
- type index_d_User = User;
5815
- type index_d_UserLocalizedRoles = UserLocalizedRoles;
5816
- type index_d_UserSubject = UserSubject;
5817
- declare const index_d_changeRole: typeof changeRole;
5818
- declare const index_d_querySiteContributors: typeof querySiteContributors;
3204
+ type index_d_TokenInfoOptions = TokenInfoOptions;
3205
+ type index_d_TokenInfoResponse = TokenInfoResponse;
3206
+ type index_d_TokenInfoResponseNonNullableFields = TokenInfoResponseNonNullableFields;
3207
+ type index_d_TokenOptions = TokenOptions;
3208
+ declare const index_d_token: typeof token;
3209
+ declare const index_d_tokenInfo: typeof tokenInfo;
5819
3210
  declare namespace index_d {
5820
- export { type index_d_AccountInfo as AccountInfo, type index_d_AppInvite as AppInvite, type index_d_AssignedPolicy as AssignedPolicy, type index_d_Assignment as Assignment, type index_d_BulkGetUserRolesOnSiteRequest as BulkGetUserRolesOnSiteRequest, type index_d_BulkGetUserRolesOnSiteResponse as BulkGetUserRolesOnSiteResponse, type index_d_ChangeContributorRoleRequest as ChangeContributorRoleRequest, type index_d_ChangeContributorRoleResponse as ChangeContributorRoleResponse, type index_d_ChangeContributorRoleResponseNonNullableFields as ChangeContributorRoleResponseNonNullableFields, type index_d_ChangeRoleOptions as ChangeRoleOptions, type index_d_CompanionResource as CompanionResource, type index_d_Condition as Condition, index_d_ConditionAttributeType as ConditionAttributeType, type index_d_Conditions as Conditions, type index_d_Contributor as Contributor, type index_d_ContributorLimit as ContributorLimit, type index_d_ContributorV2 as ContributorV2, type index_d_ContributorsQuota as ContributorsQuota, type index_d_ContributorsQuotaOptionsOneOf as ContributorsQuotaOptionsOneOf, index_d_FieldSet as FieldSet, type index_d_GetAppContributorsRequest as GetAppContributorsRequest, type index_d_GetAppContributorsResponse as GetAppContributorsResponse, type index_d_GetContributorsQuotaRequest as GetContributorsQuotaRequest, type index_d_GetContributorsQuotaResponse as GetContributorsQuotaResponse, type index_d_GetCurrentUserRolesRequest as GetCurrentUserRolesRequest, type index_d_GetCurrentUserRolesResponse as GetCurrentUserRolesResponse, type index_d_GetSiteContributorsRequest as GetSiteContributorsRequest, type index_d_GetSiteContributorsResponse as GetSiteContributorsResponse, type index_d_GetSiteContributorsV2Request as GetSiteContributorsV2Request, type index_d_GetSiteContributorsV2Response as GetSiteContributorsV2Response, type index_d_HandleSiteTransferRequest as HandleSiteTransferRequest, type index_d_HandleSiteTransferResponse as HandleSiteTransferResponse, index_d_InviteStatus as InviteStatus, type index_d_LimitedOptions as LimitedOptions, type index_d_LocalizedRole as LocalizedRole, type index_d_Name as Name, type index_d_PendingOwner as PendingOwner, type index_d_PersonMetaData as PersonMetaData, type index_d_Policy as Policy, type index_d_PredefinedRole as PredefinedRole, type index_d_PredefinedRoles as PredefinedRoles, type index_d_QuerySiteContributorsFilter as QuerySiteContributorsFilter, type index_d_QuerySiteContributorsOptions as QuerySiteContributorsOptions, type index_d_QuerySiteContributorsRequest as QuerySiteContributorsRequest, type index_d_QuerySiteContributorsResponse as QuerySiteContributorsResponse, type index_d_Resource as Resource, index_d_ResourceType as ResourceType, type index_d_Restriction as Restriction, type index_d_RestrictionRestrictionsOneOf as RestrictionRestrictionsOneOf, type index_d_Role as Role, type index_d_SiteInvite as SiteInvite, type index_d_SiteRestriction as SiteRestriction, type index_d_SiteRoleAssignment as SiteRoleAssignment, type index_d_Subject as Subject, type index_d_SubjectContext as SubjectContext, index_d_SubjectContextType as SubjectContextType, index_d_SubjectType as SubjectType, type index_d_Team as Team, index_d_Type as Type, type index_d_User as User, type index_d_UserLocalizedRoles as UserLocalizedRoles, type index_d_UserSubject as UserSubject, index_d_changeRole as changeRole, index_d_querySiteContributors as querySiteContributors };
3211
+ export { type index_d_ActionEvent as ActionEvent, type index_d_AuthorizeRequest as AuthorizeRequest, type index_d_DeviceCodeRequest as DeviceCodeRequest, type index_d_DeviceCodeResponse as DeviceCodeResponse, type index_d_DeviceVerifyRequest as DeviceVerifyRequest, type index_d_DeviceVerifyResponse as DeviceVerifyResponse, type index_d_DeviceVerifyV2Request as DeviceVerifyV2Request, type index_d_DeviceVerifyV2Response as DeviceVerifyV2Response, type index_d_DomainEvent as DomainEvent, type index_d_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d_Empty as Empty, type index_d_EntityCreatedEvent as EntityCreatedEvent, type index_d_EntityDeletedEvent as EntityDeletedEvent, type index_d_EntityUpdatedEvent as EntityUpdatedEvent, type index_d_HeadersEntry as HeadersEntry, type index_d_InvalidateUserCodeRequest as InvalidateUserCodeRequest, type index_d_InvalidateUserCodeResponse as InvalidateUserCodeResponse, type index_d_PathParametersEntry as PathParametersEntry, type index_d_QueryParametersEntry as QueryParametersEntry, type index_d_RawHttpRequest as RawHttpRequest, type index_d_RawHttpResponse as RawHttpResponse, type index_d_RawHttpResponseNonNullableFields as RawHttpResponseNonNullableFields, type index_d_RefreshToken as RefreshToken, type index_d_RestoreInfo as RestoreInfo, type index_d_RevokeRefreshTokenRequest as RevokeRefreshTokenRequest, type index_d_RevokeRefreshTokenResponse as RevokeRefreshTokenResponse, index_d_SubjectType as SubjectType, type index_d_TokenInfoOptions as TokenInfoOptions, type index_d_TokenInfoResponse as TokenInfoResponse, type index_d_TokenInfoResponseNonNullableFields as TokenInfoResponseNonNullableFields, type index_d_TokenOptions as TokenOptions, index_d_token as token, index_d_tokenInfo as tokenInfo };
5821
3212
  }
5822
3213
 
5823
- export { index_d$5 as account, index_d$4 as accountInvite, index_d$8 as authentication, index_d as contributor, index_d$2 as oauth, index_d$7 as recovery, index_d$3 as siteInvite, index_d$1 as user, index_d$6 as verification };
3214
+ export { index_d$1 as account, index_d$4 as authentication, index_d as oauth, index_d$3 as recovery, index_d$2 as verification };