@wix/user-management 1.0.1 → 1.0.2

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.
@@ -557,9 +557,9 @@ interface GetUserAccountsRequest {
557
557
  /** the user id that his accounts we query */
558
558
  userId?: string;
559
559
  /** Limited to max 20 at a single request */
560
- paging?: Paging$1;
560
+ paging?: Paging$2;
561
561
  }
562
- interface Paging$1 {
562
+ interface Paging$2 {
563
563
  /** Number of items to load. */
564
564
  limit?: number | null;
565
565
  /** Number of items to skip in the current sort order. */
@@ -570,7 +570,7 @@ interface AccountsResponse {
570
570
  }
571
571
  interface GetMyUserAccountsRequest {
572
572
  /** Limited to max 20 at a single request */
573
- paging?: Paging$1;
573
+ paging?: Paging$2;
574
574
  }
575
575
  interface GetAccountRequest {
576
576
  /** the account id that it's data should be retrieved */
@@ -587,7 +587,7 @@ interface GetAccountsRequest {
587
587
  }
588
588
  interface CreateAccountRequest {
589
589
  /** The user to create under the new account, with the roles defined in `roles`. */
590
- user: User$1;
590
+ user: User$2;
591
591
  /**
592
592
  * Roles to be assigned to the user in the new account. To retrieve all available roles, call Get Roles Info in the Users API.
593
593
  * Default: OWNER.
@@ -595,7 +595,7 @@ interface CreateAccountRequest {
595
595
  roles?: string[] | null;
596
596
  }
597
597
  /** A User to be created under an implicitly provided accountId: must have a unique email. */
598
- interface User$1 {
598
+ interface User$2 {
599
599
  /** User's unique email address details. Required. */
600
600
  email?: Email;
601
601
  /** 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. */
@@ -748,9 +748,9 @@ interface GetParentAccountInfoRequest {
748
748
  }
749
749
  interface GetParentAccountInfoResponse {
750
750
  /** The info of the parent account, if the account has a parent */
751
- parentAccountInfo?: AccountInfo$1;
751
+ parentAccountInfo?: AccountInfo$2;
752
752
  }
753
- interface AccountInfo$1 {
753
+ interface AccountInfo$2 {
754
754
  /** The name of the account */
755
755
  name?: string | null;
756
756
  /** The url of the image of the account */
@@ -758,7 +758,7 @@ interface AccountInfo$1 {
758
758
  }
759
759
  interface GetSubAccountsRequest {
760
760
  /** Offset-based pagination for the response. Default page size is 20, max page size is 50 */
761
- paging?: Paging$1;
761
+ paging?: Paging$2;
762
762
  }
763
763
  interface GetSubAccountsResponse {
764
764
  /** The sub accounts of the target account */
@@ -785,7 +785,7 @@ interface ListChildAccountsRequest {
785
785
  * Paging options to limit and offset the number of items.
786
786
  * Default: 20. Max: 50.
787
787
  */
788
- paging?: Paging$1;
788
+ paging?: Paging$2;
789
789
  }
790
790
  interface ListChildAccountsResponse {
791
791
  /** The requested child accounts. */
@@ -818,7 +818,7 @@ interface ListChildAccountsOptions {
818
818
  * Paging options to limit and offset the number of items.
819
819
  * Default: 20. Max: 50.
820
820
  */
821
- paging?: Paging$1;
821
+ paging?: Paging$2;
822
822
  }
823
823
 
824
824
  declare function createAccount$1(httpClient: HttpClient): CreateAccountSignature;
@@ -831,7 +831,7 @@ interface CreateAccountSignature {
831
831
  * @param - The user to create under the new account, with the roles defined in `roles`.
832
832
  * @param - Filter options.
833
833
  */
834
- (user: User$1, options?: CreateAccountOptions | undefined): Promise<CreateAccountResponse & CreateAccountResponseNonNullableFields>;
834
+ (user: User$2, options?: CreateAccountOptions | undefined): Promise<CreateAccountResponse & CreateAccountResponseNonNullableFields>;
835
835
  }
836
836
  declare function listChildAccounts$1(httpClient: HttpClient): ListChildAccountsSignature;
837
837
  interface ListChildAccountsSignature {
@@ -848,62 +848,62 @@ interface ListChildAccountsSignature {
848
848
  declare const createAccount: MaybeContext<BuildRESTFunction<typeof createAccount$1> & typeof createAccount$1>;
849
849
  declare const listChildAccounts: MaybeContext<BuildRESTFunction<typeof listChildAccounts$1> & typeof listChildAccounts$1>;
850
850
 
851
- type index_d$3_Account = Account;
852
- type index_d$3_AccountProperties = AccountProperties;
853
- type index_d$3_AccountResponse = AccountResponse;
854
- type index_d$3_AccountStatus = AccountStatus;
855
- declare const index_d$3_AccountStatus: typeof AccountStatus;
856
- type index_d$3_AccountV2 = AccountV2;
857
- type index_d$3_AccountsResponse = AccountsResponse;
858
- type index_d$3_CoBranding = CoBranding;
859
- declare const index_d$3_CoBranding: typeof CoBranding;
860
- type index_d$3_CreateAccountAndAssignUserRequest = CreateAccountAndAssignUserRequest;
861
- type index_d$3_CreateAccountForMyUserRequest = CreateAccountForMyUserRequest;
862
- type index_d$3_CreateAccountOptions = CreateAccountOptions;
863
- type index_d$3_CreateAccountRequest = CreateAccountRequest;
864
- type index_d$3_CreateAccountResponse = CreateAccountResponse;
865
- type index_d$3_CreateAccountResponseNonNullableFields = CreateAccountResponseNonNullableFields;
866
- type index_d$3_CreateAccountTenantRequest = CreateAccountTenantRequest;
867
- type index_d$3_CreateAccountTenantResponse = CreateAccountTenantResponse;
868
- type index_d$3_DeleteAccountRequest = DeleteAccountRequest;
869
- type index_d$3_Email = Email;
870
- type index_d$3_EmptyResponse = EmptyResponse;
871
- type index_d$3_GetAccountRequest = GetAccountRequest;
872
- type index_d$3_GetAccountsRequest = GetAccountsRequest;
873
- type index_d$3_GetMyAccountRequest = GetMyAccountRequest;
874
- type index_d$3_GetMyUserAccountsRequest = GetMyUserAccountsRequest;
875
- type index_d$3_GetParentAccountInfoRequest = GetParentAccountInfoRequest;
876
- type index_d$3_GetParentAccountInfoResponse = GetParentAccountInfoResponse;
877
- type index_d$3_GetSubAccountsRequest = GetSubAccountsRequest;
878
- type index_d$3_GetSubAccountsResponse = GetSubAccountsResponse;
879
- type index_d$3_GetUserAccountRequest = GetUserAccountRequest;
880
- type index_d$3_GetUserAccountsRequest = GetUserAccountsRequest;
881
- type index_d$3_IsTeamRequest = IsTeamRequest;
882
- type index_d$3_IsTeamResponse = IsTeamResponse;
883
- type index_d$3_ListChildAccountsOptions = ListChildAccountsOptions;
884
- type index_d$3_ListChildAccountsRequest = ListChildAccountsRequest;
885
- type index_d$3_ListChildAccountsResponse = ListChildAccountsResponse;
886
- type index_d$3_ListChildAccountsResponseNonNullableFields = ListChildAccountsResponseNonNullableFields;
887
- type index_d$3_MarkAccountFlagRequest = MarkAccountFlagRequest;
888
- type index_d$3_MarkAccountFlagRequestFlagOneOf = MarkAccountFlagRequestFlagOneOf;
889
- type index_d$3_PagingMetadata = PagingMetadata;
890
- type index_d$3_RemoveParent = RemoveParent;
891
- type index_d$3_SetIsReadOnlyAccountRequest = SetIsReadOnlyAccountRequest;
892
- type index_d$3_SsoIdentity = SsoIdentity;
893
- type index_d$3_SubAccountInfo = SubAccountInfo;
894
- type index_d$3_UpdateAccountRequest = UpdateAccountRequest;
895
- type index_d$3_UpdateParentAccountRequest = UpdateParentAccountRequest;
896
- type index_d$3_UpdateParentAccountRequestUpdateOneOf = UpdateParentAccountRequestUpdateOneOf;
897
- type index_d$3_UpdateParentAccountResponse = UpdateParentAccountResponse;
898
- type index_d$3_UpdateSlugRequest = UpdateSlugRequest;
899
- type index_d$3_UserDetails = UserDetails;
900
- declare const index_d$3_createAccount: typeof createAccount;
901
- declare const index_d$3_listChildAccounts: typeof listChildAccounts;
902
- declare namespace index_d$3 {
903
- export { type index_d$3_Account as Account, type AccountInfo$1 as AccountInfo, type index_d$3_AccountProperties as AccountProperties, type index_d$3_AccountResponse as AccountResponse, index_d$3_AccountStatus as AccountStatus, type index_d$3_AccountV2 as AccountV2, type index_d$3_AccountsResponse as AccountsResponse, index_d$3_CoBranding as CoBranding, type index_d$3_CreateAccountAndAssignUserRequest as CreateAccountAndAssignUserRequest, type index_d$3_CreateAccountForMyUserRequest as CreateAccountForMyUserRequest, type index_d$3_CreateAccountOptions as CreateAccountOptions, type index_d$3_CreateAccountRequest as CreateAccountRequest, type index_d$3_CreateAccountResponse as CreateAccountResponse, type index_d$3_CreateAccountResponseNonNullableFields as CreateAccountResponseNonNullableFields, type index_d$3_CreateAccountTenantRequest as CreateAccountTenantRequest, type index_d$3_CreateAccountTenantResponse as CreateAccountTenantResponse, type index_d$3_DeleteAccountRequest as DeleteAccountRequest, type index_d$3_Email as Email, type index_d$3_EmptyResponse as EmptyResponse, type index_d$3_GetAccountRequest as GetAccountRequest, type index_d$3_GetAccountsRequest as GetAccountsRequest, type index_d$3_GetMyAccountRequest as GetMyAccountRequest, type index_d$3_GetMyUserAccountsRequest as GetMyUserAccountsRequest, type index_d$3_GetParentAccountInfoRequest as GetParentAccountInfoRequest, type index_d$3_GetParentAccountInfoResponse as GetParentAccountInfoResponse, type index_d$3_GetSubAccountsRequest as GetSubAccountsRequest, type index_d$3_GetSubAccountsResponse as GetSubAccountsResponse, type index_d$3_GetUserAccountRequest as GetUserAccountRequest, type index_d$3_GetUserAccountsRequest as GetUserAccountsRequest, type index_d$3_IsTeamRequest as IsTeamRequest, type index_d$3_IsTeamResponse as IsTeamResponse, type index_d$3_ListChildAccountsOptions as ListChildAccountsOptions, type index_d$3_ListChildAccountsRequest as ListChildAccountsRequest, type index_d$3_ListChildAccountsResponse as ListChildAccountsResponse, type index_d$3_ListChildAccountsResponseNonNullableFields as ListChildAccountsResponseNonNullableFields, type index_d$3_MarkAccountFlagRequest as MarkAccountFlagRequest, type index_d$3_MarkAccountFlagRequestFlagOneOf as MarkAccountFlagRequestFlagOneOf, type Paging$1 as Paging, type index_d$3_PagingMetadata as PagingMetadata, type index_d$3_RemoveParent as RemoveParent, type index_d$3_SetIsReadOnlyAccountRequest as SetIsReadOnlyAccountRequest, type index_d$3_SsoIdentity as SsoIdentity, type index_d$3_SubAccountInfo as SubAccountInfo, type index_d$3_UpdateAccountRequest as UpdateAccountRequest, type index_d$3_UpdateParentAccountRequest as UpdateParentAccountRequest, type index_d$3_UpdateParentAccountRequestUpdateOneOf as UpdateParentAccountRequestUpdateOneOf, type index_d$3_UpdateParentAccountResponse as UpdateParentAccountResponse, type index_d$3_UpdateSlugRequest as UpdateSlugRequest, type User$1 as User, type index_d$3_UserDetails as UserDetails, index_d$3_createAccount as createAccount, index_d$3_listChildAccounts as listChildAccounts };
904
- }
905
-
906
- interface AccountInvite {
851
+ type index_d$4_Account = Account;
852
+ type index_d$4_AccountProperties = AccountProperties;
853
+ type index_d$4_AccountResponse = AccountResponse;
854
+ type index_d$4_AccountStatus = AccountStatus;
855
+ declare const index_d$4_AccountStatus: typeof AccountStatus;
856
+ type index_d$4_AccountV2 = AccountV2;
857
+ type index_d$4_AccountsResponse = AccountsResponse;
858
+ type index_d$4_CoBranding = CoBranding;
859
+ declare const index_d$4_CoBranding: typeof CoBranding;
860
+ type index_d$4_CreateAccountAndAssignUserRequest = CreateAccountAndAssignUserRequest;
861
+ type index_d$4_CreateAccountForMyUserRequest = CreateAccountForMyUserRequest;
862
+ type index_d$4_CreateAccountOptions = CreateAccountOptions;
863
+ type index_d$4_CreateAccountRequest = CreateAccountRequest;
864
+ type index_d$4_CreateAccountResponse = CreateAccountResponse;
865
+ type index_d$4_CreateAccountResponseNonNullableFields = CreateAccountResponseNonNullableFields;
866
+ type index_d$4_CreateAccountTenantRequest = CreateAccountTenantRequest;
867
+ type index_d$4_CreateAccountTenantResponse = CreateAccountTenantResponse;
868
+ type index_d$4_DeleteAccountRequest = DeleteAccountRequest;
869
+ type index_d$4_Email = Email;
870
+ type index_d$4_EmptyResponse = EmptyResponse;
871
+ type index_d$4_GetAccountRequest = GetAccountRequest;
872
+ type index_d$4_GetAccountsRequest = GetAccountsRequest;
873
+ type index_d$4_GetMyAccountRequest = GetMyAccountRequest;
874
+ type index_d$4_GetMyUserAccountsRequest = GetMyUserAccountsRequest;
875
+ type index_d$4_GetParentAccountInfoRequest = GetParentAccountInfoRequest;
876
+ type index_d$4_GetParentAccountInfoResponse = GetParentAccountInfoResponse;
877
+ type index_d$4_GetSubAccountsRequest = GetSubAccountsRequest;
878
+ type index_d$4_GetSubAccountsResponse = GetSubAccountsResponse;
879
+ type index_d$4_GetUserAccountRequest = GetUserAccountRequest;
880
+ type index_d$4_GetUserAccountsRequest = GetUserAccountsRequest;
881
+ type index_d$4_IsTeamRequest = IsTeamRequest;
882
+ type index_d$4_IsTeamResponse = IsTeamResponse;
883
+ type index_d$4_ListChildAccountsOptions = ListChildAccountsOptions;
884
+ type index_d$4_ListChildAccountsRequest = ListChildAccountsRequest;
885
+ type index_d$4_ListChildAccountsResponse = ListChildAccountsResponse;
886
+ type index_d$4_ListChildAccountsResponseNonNullableFields = ListChildAccountsResponseNonNullableFields;
887
+ type index_d$4_MarkAccountFlagRequest = MarkAccountFlagRequest;
888
+ type index_d$4_MarkAccountFlagRequestFlagOneOf = MarkAccountFlagRequestFlagOneOf;
889
+ type index_d$4_PagingMetadata = PagingMetadata;
890
+ type index_d$4_RemoveParent = RemoveParent;
891
+ type index_d$4_SetIsReadOnlyAccountRequest = SetIsReadOnlyAccountRequest;
892
+ type index_d$4_SsoIdentity = SsoIdentity;
893
+ type index_d$4_SubAccountInfo = SubAccountInfo;
894
+ type index_d$4_UpdateAccountRequest = UpdateAccountRequest;
895
+ type index_d$4_UpdateParentAccountRequest = UpdateParentAccountRequest;
896
+ type index_d$4_UpdateParentAccountRequestUpdateOneOf = UpdateParentAccountRequestUpdateOneOf;
897
+ type index_d$4_UpdateParentAccountResponse = UpdateParentAccountResponse;
898
+ type index_d$4_UpdateSlugRequest = UpdateSlugRequest;
899
+ type index_d$4_UserDetails = UserDetails;
900
+ declare const index_d$4_createAccount: typeof createAccount;
901
+ declare const index_d$4_listChildAccounts: typeof listChildAccounts;
902
+ declare namespace index_d$4 {
903
+ export { type index_d$4_Account as Account, type AccountInfo$2 as AccountInfo, type index_d$4_AccountProperties as AccountProperties, type index_d$4_AccountResponse as AccountResponse, index_d$4_AccountStatus as AccountStatus, type index_d$4_AccountV2 as AccountV2, type index_d$4_AccountsResponse as AccountsResponse, index_d$4_CoBranding as CoBranding, type index_d$4_CreateAccountAndAssignUserRequest as CreateAccountAndAssignUserRequest, type index_d$4_CreateAccountForMyUserRequest as CreateAccountForMyUserRequest, type index_d$4_CreateAccountOptions as CreateAccountOptions, type index_d$4_CreateAccountRequest as CreateAccountRequest, type index_d$4_CreateAccountResponse as CreateAccountResponse, type index_d$4_CreateAccountResponseNonNullableFields as CreateAccountResponseNonNullableFields, type index_d$4_CreateAccountTenantRequest as CreateAccountTenantRequest, type index_d$4_CreateAccountTenantResponse as CreateAccountTenantResponse, type index_d$4_DeleteAccountRequest as DeleteAccountRequest, type index_d$4_Email as Email, type index_d$4_EmptyResponse as EmptyResponse, type index_d$4_GetAccountRequest as GetAccountRequest, type index_d$4_GetAccountsRequest as GetAccountsRequest, type index_d$4_GetMyAccountRequest as GetMyAccountRequest, type index_d$4_GetMyUserAccountsRequest as GetMyUserAccountsRequest, type index_d$4_GetParentAccountInfoRequest as GetParentAccountInfoRequest, type index_d$4_GetParentAccountInfoResponse as GetParentAccountInfoResponse, type index_d$4_GetSubAccountsRequest as GetSubAccountsRequest, type index_d$4_GetSubAccountsResponse as GetSubAccountsResponse, type index_d$4_GetUserAccountRequest as GetUserAccountRequest, type index_d$4_GetUserAccountsRequest as GetUserAccountsRequest, type index_d$4_IsTeamRequest as IsTeamRequest, type index_d$4_IsTeamResponse as IsTeamResponse, type index_d$4_ListChildAccountsOptions as ListChildAccountsOptions, type index_d$4_ListChildAccountsRequest as ListChildAccountsRequest, type index_d$4_ListChildAccountsResponse as ListChildAccountsResponse, type index_d$4_ListChildAccountsResponseNonNullableFields as ListChildAccountsResponseNonNullableFields, type index_d$4_MarkAccountFlagRequest as MarkAccountFlagRequest, type index_d$4_MarkAccountFlagRequestFlagOneOf as MarkAccountFlagRequestFlagOneOf, type Paging$2 as Paging, type index_d$4_PagingMetadata as PagingMetadata, type index_d$4_RemoveParent as RemoveParent, type index_d$4_SetIsReadOnlyAccountRequest as SetIsReadOnlyAccountRequest, type index_d$4_SsoIdentity as SsoIdentity, type index_d$4_SubAccountInfo as SubAccountInfo, type index_d$4_UpdateAccountRequest as UpdateAccountRequest, type index_d$4_UpdateParentAccountRequest as UpdateParentAccountRequest, type index_d$4_UpdateParentAccountRequestUpdateOneOf as UpdateParentAccountRequestUpdateOneOf, type index_d$4_UpdateParentAccountResponse as UpdateParentAccountResponse, type index_d$4_UpdateSlugRequest as UpdateSlugRequest, type User$2 as User, type index_d$4_UserDetails as UserDetails, index_d$4_createAccount as createAccount, index_d$4_listChildAccounts as listChildAccounts };
904
+ }
905
+
906
+ interface AccountInvite$1 {
907
907
  /**
908
908
  * Invite ID.
909
909
  * @readonly
@@ -937,7 +937,7 @@ interface AccountInvite {
937
937
  * - **Declined:** The user has declined the invite.
938
938
  * - **Expired:** The invite has expired without being accepted.
939
939
  */
940
- status?: InviteStatus$2;
940
+ status?: InviteStatus$3;
941
941
  /** Link to accept the invite. */
942
942
  acceptLink?: string;
943
943
  /**
@@ -957,166 +957,166 @@ interface AccountInvite {
957
957
  /** Date the invite was last updated. */
958
958
  dateUpdated?: Date | null;
959
959
  /** Assets the users are invited to join. */
960
- assignments?: InviteResourceAssignment[];
960
+ assignments?: InviteResourceAssignment$1[];
961
961
  /** Invite expiration date. */
962
962
  expirationDate?: Date | null;
963
963
  }
964
964
  /** Invite status stating whether the invite was accepted, waiting to be accepted, deleted etc.. */
965
- declare enum InviteStatus$2 {
965
+ declare enum InviteStatus$3 {
966
966
  Pending = "Pending",
967
967
  Used = "Used",
968
968
  Deleted = "Deleted",
969
969
  Declined = "Declined",
970
970
  Expired = "Expired"
971
971
  }
972
- interface InviteResourceAssignment {
972
+ interface InviteResourceAssignment$1 {
973
973
  /** Role ID. */
974
974
  policyId?: string;
975
975
  /** Resources the user will be able to access. */
976
- assignments?: InviteAssignment[];
976
+ assignments?: InviteAssignment$1[];
977
977
  }
978
- interface InviteAssignment {
978
+ interface InviteAssignment$1 {
979
979
  /** Full name of resource to be assigned. */
980
- fullNameResource?: FullNameResource;
980
+ fullNameResource?: FullNameResource$1;
981
981
  }
982
- interface FullNameResource extends FullNameResourceResourceContextOneOf {
982
+ interface FullNameResource$1 extends FullNameResourceResourceContextOneOf$1 {
983
983
  /** Specific site details. */
984
- siteContext?: SiteResourceContext;
984
+ siteContext?: SiteResourceContext$1;
985
985
  /** Specific account details. */
986
- accountContext?: AccountResourceContext;
986
+ accountContext?: AccountResourceContext$1;
987
987
  }
988
988
  /** @oneof */
989
- interface FullNameResourceResourceContextOneOf {
989
+ interface FullNameResourceResourceContextOneOf$1 {
990
990
  /** Specific site details. */
991
- siteContext?: SiteResourceContext;
991
+ siteContext?: SiteResourceContext$1;
992
992
  /** Specific account details. */
993
- accountContext?: AccountResourceContext;
993
+ accountContext?: AccountResourceContext$1;
994
994
  }
995
995
  /** 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) */
996
- interface SiteResourceContext {
996
+ interface SiteResourceContext$1 {
997
997
  /** Site ID. */
998
998
  metasiteId?: string;
999
999
  }
1000
1000
  /** 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) */
1001
- interface AccountResourceContext {
1001
+ interface AccountResourceContext$1 {
1002
1002
  /** Account ID. */
1003
1003
  accountId?: string;
1004
1004
  }
1005
- interface OrganizationResourceContext {
1005
+ interface OrganizationResourceContext$1 {
1006
1006
  }
1007
1007
  /**
1008
1008
  * A custom resource. Is used to represent some asset that is not a direct resource context (site or account), but something custom.
1009
1009
  * For example: payment method, blog post, domain, logo.
1010
1010
  */
1011
- interface Resource$1 {
1011
+ interface Resource$2 {
1012
1012
  /** The resource id. */
1013
1013
  _id?: string | null;
1014
1014
  /** The resource type */
1015
1015
  type?: string | null;
1016
1016
  }
1017
- interface PolicyCondition {
1017
+ interface PolicyCondition$1 {
1018
1018
  /** The type of the condition */
1019
- condition?: ConditionType;
1019
+ condition?: ConditionType$1;
1020
1020
  }
1021
- interface ConditionType extends ConditionTypeOfOneOf {
1021
+ interface ConditionType$1 extends ConditionTypeOfOneOf$1 {
1022
1022
  /** @deprecated */
1023
- simpleCondition?: SimpleCondition;
1023
+ simpleCondition?: SimpleCondition$1;
1024
1024
  /** A logic combination between several conditions, with an operator between them */
1025
- joinedConditions?: JoinedCondition;
1025
+ joinedConditions?: JoinedCondition$1;
1026
1026
  /** @deprecated */
1027
- environmentCondition?: EnvironmentCondition;
1027
+ environmentCondition?: EnvironmentCondition$1;
1028
1028
  /** A single condition */
1029
- condition?: Condition$1;
1029
+ condition?: Condition$2;
1030
1030
  }
1031
1031
  /** @oneof */
1032
- interface ConditionTypeOfOneOf {
1032
+ interface ConditionTypeOfOneOf$1 {
1033
1033
  /** @deprecated */
1034
- simpleCondition?: SimpleCondition;
1034
+ simpleCondition?: SimpleCondition$1;
1035
1035
  /** A logic combination between several conditions, with an operator between them */
1036
- joinedConditions?: JoinedCondition;
1036
+ joinedConditions?: JoinedCondition$1;
1037
1037
  /** @deprecated */
1038
- environmentCondition?: EnvironmentCondition;
1038
+ environmentCondition?: EnvironmentCondition$1;
1039
1039
  /** A single condition */
1040
- condition?: Condition$1;
1040
+ condition?: Condition$2;
1041
1041
  }
1042
- interface SimpleCondition {
1042
+ interface SimpleCondition$1 {
1043
1043
  attrName?: string;
1044
- value?: SimpleConditionValue;
1045
- op?: SimpleConditionOperator;
1044
+ value?: SimpleConditionValue$1;
1045
+ op?: SimpleConditionOperator$1;
1046
1046
  conditionModelId?: string;
1047
1047
  }
1048
- interface SimpleConditionValue extends SimpleConditionValueValueOneOf {
1048
+ interface SimpleConditionValue$1 extends SimpleConditionValueValueOneOf$1 {
1049
1049
  attrName?: string;
1050
1050
  stringValue?: string;
1051
1051
  boolValue?: boolean;
1052
1052
  }
1053
1053
  /** @oneof */
1054
- interface SimpleConditionValueValueOneOf {
1054
+ interface SimpleConditionValueValueOneOf$1 {
1055
1055
  attrName?: string;
1056
1056
  stringValue?: string;
1057
1057
  boolValue?: boolean;
1058
1058
  }
1059
- declare enum SimpleConditionOperator {
1059
+ declare enum SimpleConditionOperator$1 {
1060
1060
  UNKNOWN_SIMPLE_OP = "UNKNOWN_SIMPLE_OP",
1061
1061
  EQUAL = "EQUAL"
1062
1062
  }
1063
- interface JoinedCondition {
1063
+ interface JoinedCondition$1 {
1064
1064
  /** The operator that should be used when evaluating the condition */
1065
- op?: JoinedConditionOperator;
1065
+ op?: JoinedConditionOperator$1;
1066
1066
  /** The conditions that should be evaluated, and then joined using the operator provided */
1067
- conditions?: ConditionType[];
1067
+ conditions?: ConditionType$1[];
1068
1068
  }
1069
- declare enum JoinedConditionOperator {
1069
+ declare enum JoinedConditionOperator$1 {
1070
1070
  UNKNOWN_JOIN_OP = "UNKNOWN_JOIN_OP",
1071
1071
  OR = "OR",
1072
1072
  AND = "AND"
1073
1073
  }
1074
- interface EnvironmentCondition extends EnvironmentConditionConditionOneOf {
1075
- experimentCondition?: ExperimentCondition;
1074
+ interface EnvironmentCondition$1 extends EnvironmentConditionConditionOneOf$1 {
1075
+ experimentCondition?: ExperimentCondition$1;
1076
1076
  }
1077
1077
  /** @oneof */
1078
- interface EnvironmentConditionConditionOneOf {
1079
- experimentCondition?: ExperimentCondition;
1078
+ interface EnvironmentConditionConditionOneOf$1 {
1079
+ experimentCondition?: ExperimentCondition$1;
1080
1080
  }
1081
- interface ExperimentCondition {
1081
+ interface ExperimentCondition$1 {
1082
1082
  spec?: string;
1083
1083
  fallbackValue?: string;
1084
1084
  expectedValue?: string;
1085
1085
  }
1086
- interface Condition$1 {
1086
+ interface Condition$2 {
1087
1087
  /** The unique identifier of the condition model. Indicates which actions the condition is working on */
1088
1088
  conditionModelId?: string;
1089
1089
  /** The operator that should be evaluated */
1090
- operator?: ConditionOperator;
1090
+ operator?: ConditionOperator$1;
1091
1091
  }
1092
- interface ConditionOperator extends ConditionOperatorOperatorsOneOf {
1092
+ interface ConditionOperator$1 extends ConditionOperatorOperatorsOneOf$1 {
1093
1093
  /** Comparison of equality - will be evaluated to true if the given parties are equal */
1094
- equals?: EqualOperator;
1094
+ equals?: EqualOperator$1;
1095
1095
  /** Regex operator - will be evaluated to true if the given value matches the provided regex */
1096
- like?: LikeOperator;
1096
+ like?: LikeOperator$1;
1097
1097
  /** Petri experiment - will be evaluated using petri. */
1098
- experiment?: ExperimentOperator;
1098
+ experiment?: ExperimentOperator$1;
1099
1099
  /** Operator that indicates a dependency on another subject being allowed to perform something. */
1100
- dependOn?: DependOnOperator;
1100
+ dependOn?: DependOnOperator$1;
1101
1101
  }
1102
1102
  /** @oneof */
1103
- interface ConditionOperatorOperatorsOneOf {
1103
+ interface ConditionOperatorOperatorsOneOf$1 {
1104
1104
  /** Comparison of equality - will be evaluated to true if the given parties are equal */
1105
- equals?: EqualOperator;
1105
+ equals?: EqualOperator$1;
1106
1106
  /** Regex operator - will be evaluated to true if the given value matches the provided regex */
1107
- like?: LikeOperator;
1107
+ like?: LikeOperator$1;
1108
1108
  /** Petri experiment - will be evaluated using petri. */
1109
- experiment?: ExperimentOperator;
1109
+ experiment?: ExperimentOperator$1;
1110
1110
  /** Operator that indicates a dependency on another subject being allowed to perform something. */
1111
- dependOn?: DependOnOperator;
1111
+ dependOn?: DependOnOperator$1;
1112
1112
  }
1113
- interface EqualOperator {
1113
+ interface EqualOperator$1 {
1114
1114
  /** The attribute which should be compared. The attribute will be first evaluated to a value, and then compared the other side (attribute/value) */
1115
1115
  attrName?: string;
1116
1116
  /** The value to compare to. If the two parties are equal - we will return true. */
1117
- value?: ConditionValue;
1117
+ value?: ConditionValue$1;
1118
1118
  }
1119
- interface ConditionValue extends ConditionValueValueOneOf {
1119
+ interface ConditionValue$1 extends ConditionValueValueOneOf$1 {
1120
1120
  /** 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. */
1121
1121
  attrName?: string;
1122
1122
  /** a value with a string type. Will be compared to the attribute provided, and be true only if they match the operator. */
@@ -1125,7 +1125,7 @@ interface ConditionValue extends ConditionValueValueOneOf {
1125
1125
  boolValue?: boolean;
1126
1126
  }
1127
1127
  /** @oneof */
1128
- interface ConditionValueValueOneOf {
1128
+ interface ConditionValueValueOneOf$1 {
1129
1129
  /** 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. */
1130
1130
  attrName?: string;
1131
1131
  /** a value with a string type. Will be compared to the attribute provided, and be true only if they match the operator. */
@@ -1133,13 +1133,13 @@ interface ConditionValueValueOneOf {
1133
1133
  /** a value with a boolean type. Will be compared to the attribute provided, and be true only if they match the operator. */
1134
1134
  boolValue?: boolean;
1135
1135
  }
1136
- interface LikeOperator {
1136
+ interface LikeOperator$1 {
1137
1137
  /** The attribute which should be compared. The attribute will be first evaluated to a value, and then compared the regex values provided. */
1138
1138
  attrName?: string;
1139
1139
  /** 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 */
1140
1140
  values?: string[];
1141
1141
  }
1142
- interface ExperimentOperator {
1142
+ interface ExperimentOperator$1 {
1143
1143
  /** The spec to conduct the experiment on. */
1144
1144
  spec?: string;
1145
1145
  /** The value to use if the experiment could not be conducted */
@@ -1148,19 +1148,19 @@ interface ExperimentOperator {
1148
1148
  expectedValue?: string;
1149
1149
  }
1150
1150
  /** Implies that the policy takes affect only if the depend on subject is permitted as well. */
1151
- interface DependOnOperator {
1151
+ interface DependOnOperator$1 {
1152
1152
  /** 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 */
1153
- dependOnSubject?: Subject$1;
1153
+ dependOnSubject?: Subject$2;
1154
1154
  }
1155
- interface Subject$1 {
1155
+ interface Subject$2 {
1156
1156
  /** ID of identity assigned to the asset. */
1157
1157
  _id?: string;
1158
1158
  /** Type of identity assigned to the asset. Supported subject types include user IDs, account IDs, and app IDs. */
1159
- subjectType?: SubjectType$1;
1159
+ subjectType?: SubjectType$2;
1160
1160
  /** Context of identity assigned to the asset. For example, a `subjectType` = `USER` will have `context` = `ACCOUNT`. */
1161
- context?: SubjectContext$1;
1161
+ context?: SubjectContext$2;
1162
1162
  }
1163
- declare enum SubjectType$1 {
1163
+ declare enum SubjectType$2 {
1164
1164
  UNKNOWN = "UNKNOWN",
1165
1165
  ACCOUNT = "ACCOUNT",
1166
1166
  USER = "USER",
@@ -1171,11 +1171,11 @@ declare enum SubjectType$1 {
1171
1171
  ACCOUNT_GROUP = "ACCOUNT_GROUP",
1172
1172
  WIX_APP = "WIX_APP"
1173
1173
  }
1174
- interface SubjectContext$1 {
1174
+ interface SubjectContext$2 {
1175
1175
  _id?: string;
1176
- contextType?: SubjectContextType$1;
1176
+ contextType?: SubjectContextType$2;
1177
1177
  }
1178
- declare enum SubjectContextType$1 {
1178
+ declare enum SubjectContextType$2 {
1179
1179
  UNKNOWN_CTX = "UNKNOWN_CTX",
1180
1180
  ORG_CTX = "ORG_CTX",
1181
1181
  ACCOUNT_CTX = "ACCOUNT_CTX"
@@ -1183,13 +1183,13 @@ declare enum SubjectContextType$1 {
1183
1183
  interface GetAccountInvitesRequest {
1184
1184
  }
1185
1185
  interface GetAccountInvitesResponse {
1186
- invites?: AccountInvite[];
1186
+ invites?: AccountInvite$1[];
1187
1187
  }
1188
1188
  interface GetAccountInviteRequest {
1189
1189
  _id?: string;
1190
1190
  }
1191
1191
  interface GetAccountInviteResponse {
1192
- invite?: AccountInvite;
1192
+ invite?: AccountInvite$1;
1193
1193
  }
1194
1194
  interface AccountInviteRequest {
1195
1195
  role?: string;
@@ -1197,7 +1197,7 @@ interface AccountInviteRequest {
1197
1197
  policyIds?: string[];
1198
1198
  }
1199
1199
  interface AccountInviteResponse {
1200
- invite?: AccountInvite;
1200
+ invite?: AccountInvite$1;
1201
1201
  }
1202
1202
  interface CreateInviteRequest {
1203
1203
  /** Array of potential team members' email addresses and their corresponding assignments (how they will be assigned when they accept the invite). */
@@ -1209,11 +1209,11 @@ interface SubjectInviteAssignments {
1209
1209
  /** Invitee's email address. */
1210
1210
  subjectEmail?: string;
1211
1211
  /** 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. */
1212
- assignments?: InviteResourceAssignment[];
1212
+ assignments?: InviteResourceAssignment$1[];
1213
1213
  }
1214
1214
  interface CreateInviteResponse {
1215
1215
  /** Invites that were sent successfully. */
1216
- successfulInvites?: AccountInvite[];
1216
+ successfulInvites?: AccountInvite$1[];
1217
1217
  /** Invites that failed. */
1218
1218
  failedInvites?: InviteFailure[];
1219
1219
  }
@@ -1229,7 +1229,7 @@ interface BulkAccountInviteRequest {
1229
1229
  policyIds?: string[];
1230
1230
  }
1231
1231
  interface BulkAccountInviteResponse {
1232
- invites?: AccountInvite[];
1232
+ invites?: AccountInvite$1[];
1233
1233
  failedEmails?: string[];
1234
1234
  }
1235
1235
  interface ResendAccountInviteRequest {
@@ -1256,7 +1256,7 @@ interface UpdateAccountInviteResponse {
1256
1256
  }
1257
1257
  interface UpdateAccountInviteAssignmentsRequest {
1258
1258
  inviteId?: string;
1259
- assignments?: InviteResourceAssignment[];
1259
+ assignments?: InviteResourceAssignment$1[];
1260
1260
  }
1261
1261
  interface UpdateAccountInviteAssignmentsResponse {
1262
1262
  }
@@ -1266,7 +1266,7 @@ interface ParseAccountInviteTokenRequest {
1266
1266
  interface ParseAccountInviteTokenResponse {
1267
1267
  inviteId?: string;
1268
1268
  accountId?: string;
1269
- status?: InviteStatus$2;
1269
+ status?: InviteStatus$3;
1270
1270
  }
1271
1271
  interface SiteResourceContextNonNullableFields {
1272
1272
  metasiteId: string;
@@ -1286,11 +1286,11 @@ interface SimpleConditionValueNonNullableFields {
1286
1286
  interface SimpleConditionNonNullableFields {
1287
1287
  attrName: string;
1288
1288
  value?: SimpleConditionValueNonNullableFields;
1289
- op: SimpleConditionOperator;
1289
+ op: SimpleConditionOperator$1;
1290
1290
  conditionModelId: string;
1291
1291
  }
1292
1292
  interface JoinedConditionNonNullableFields {
1293
- op: JoinedConditionOperator;
1293
+ op: JoinedConditionOperator$1;
1294
1294
  conditions: ConditionTypeNonNullableFields[];
1295
1295
  }
1296
1296
  interface ExperimentConditionNonNullableFields {
@@ -1321,11 +1321,11 @@ interface ExperimentOperatorNonNullableFields {
1321
1321
  }
1322
1322
  interface SubjectContextNonNullableFields {
1323
1323
  _id: string;
1324
- contextType: SubjectContextType$1;
1324
+ contextType: SubjectContextType$2;
1325
1325
  }
1326
1326
  interface SubjectNonNullableFields {
1327
1327
  _id: string;
1328
- subjectType: SubjectType$1;
1328
+ subjectType: SubjectType$2;
1329
1329
  context?: SubjectContextNonNullableFields;
1330
1330
  }
1331
1331
  interface DependOnOperatorNonNullableFields {
@@ -1364,7 +1364,7 @@ interface AccountInviteNonNullableFields {
1364
1364
  email: string;
1365
1365
  role: string;
1366
1366
  inviterId: string;
1367
- status: InviteStatus$2;
1367
+ status: InviteStatus$3;
1368
1368
  acceptLink: string;
1369
1369
  inviterAccountId: string;
1370
1370
  policyIds: string[];
@@ -1399,64 +1399,34 @@ interface CreateInviteSignature {
1399
1399
 
1400
1400
  declare const createInvite: MaybeContext<BuildRESTFunction<typeof createInvite$1> & typeof createInvite$1>;
1401
1401
 
1402
- type index_d$2_AcceptAccountInviteRequest = AcceptAccountInviteRequest;
1403
- type index_d$2_AcceptAccountInviteResponse = AcceptAccountInviteResponse;
1404
- type index_d$2_AccountInvite = AccountInvite;
1405
- type index_d$2_AccountInviteRequest = AccountInviteRequest;
1406
- type index_d$2_AccountInviteResponse = AccountInviteResponse;
1407
- type index_d$2_AccountResourceContext = AccountResourceContext;
1408
- type index_d$2_BulkAccountInviteRequest = BulkAccountInviteRequest;
1409
- type index_d$2_BulkAccountInviteResponse = BulkAccountInviteResponse;
1410
- type index_d$2_ConditionOperator = ConditionOperator;
1411
- type index_d$2_ConditionOperatorOperatorsOneOf = ConditionOperatorOperatorsOneOf;
1412
- type index_d$2_ConditionType = ConditionType;
1413
- type index_d$2_ConditionTypeOfOneOf = ConditionTypeOfOneOf;
1414
- type index_d$2_ConditionValue = ConditionValue;
1415
- type index_d$2_ConditionValueValueOneOf = ConditionValueValueOneOf;
1416
- type index_d$2_CreateInviteOptions = CreateInviteOptions;
1417
- type index_d$2_CreateInviteRequest = CreateInviteRequest;
1418
- type index_d$2_CreateInviteResponse = CreateInviteResponse;
1419
- type index_d$2_CreateInviteResponseNonNullableFields = CreateInviteResponseNonNullableFields;
1420
- type index_d$2_DependOnOperator = DependOnOperator;
1421
- type index_d$2_EnvironmentCondition = EnvironmentCondition;
1422
- type index_d$2_EnvironmentConditionConditionOneOf = EnvironmentConditionConditionOneOf;
1423
- type index_d$2_EqualOperator = EqualOperator;
1424
- type index_d$2_ExperimentCondition = ExperimentCondition;
1425
- type index_d$2_ExperimentOperator = ExperimentOperator;
1426
- type index_d$2_FullNameResource = FullNameResource;
1427
- type index_d$2_FullNameResourceResourceContextOneOf = FullNameResourceResourceContextOneOf;
1428
- type index_d$2_GetAccountInviteRequest = GetAccountInviteRequest;
1429
- type index_d$2_GetAccountInviteResponse = GetAccountInviteResponse;
1430
- type index_d$2_GetAccountInvitesRequest = GetAccountInvitesRequest;
1431
- type index_d$2_GetAccountInvitesResponse = GetAccountInvitesResponse;
1432
- type index_d$2_InviteAssignment = InviteAssignment;
1433
- type index_d$2_InviteFailure = InviteFailure;
1434
- type index_d$2_InviteResourceAssignment = InviteResourceAssignment;
1435
- type index_d$2_JoinedCondition = JoinedCondition;
1436
- type index_d$2_JoinedConditionOperator = JoinedConditionOperator;
1437
- declare const index_d$2_JoinedConditionOperator: typeof JoinedConditionOperator;
1438
- type index_d$2_LikeOperator = LikeOperator;
1439
- type index_d$2_OrganizationResourceContext = OrganizationResourceContext;
1440
- type index_d$2_ParseAccountInviteTokenRequest = ParseAccountInviteTokenRequest;
1441
- type index_d$2_ParseAccountInviteTokenResponse = ParseAccountInviteTokenResponse;
1442
- type index_d$2_PolicyCondition = PolicyCondition;
1443
- type index_d$2_ResendAccountInviteRequest = ResendAccountInviteRequest;
1444
- type index_d$2_RevokeAccountInviteRequest = RevokeAccountInviteRequest;
1445
- type index_d$2_RevokeAccountInviteResponse = RevokeAccountInviteResponse;
1446
- type index_d$2_SimpleCondition = SimpleCondition;
1447
- type index_d$2_SimpleConditionOperator = SimpleConditionOperator;
1448
- declare const index_d$2_SimpleConditionOperator: typeof SimpleConditionOperator;
1449
- type index_d$2_SimpleConditionValue = SimpleConditionValue;
1450
- type index_d$2_SimpleConditionValueValueOneOf = SimpleConditionValueValueOneOf;
1451
- type index_d$2_SiteResourceContext = SiteResourceContext;
1452
- type index_d$2_SubjectInviteAssignments = SubjectInviteAssignments;
1453
- type index_d$2_UpdateAccountInviteAssignmentsRequest = UpdateAccountInviteAssignmentsRequest;
1454
- type index_d$2_UpdateAccountInviteAssignmentsResponse = UpdateAccountInviteAssignmentsResponse;
1455
- type index_d$2_UpdateAccountInviteRequest = UpdateAccountInviteRequest;
1456
- type index_d$2_UpdateAccountInviteResponse = UpdateAccountInviteResponse;
1457
- declare const index_d$2_createInvite: typeof createInvite;
1458
- declare namespace index_d$2 {
1459
- export { type index_d$2_AcceptAccountInviteRequest as AcceptAccountInviteRequest, type index_d$2_AcceptAccountInviteResponse as AcceptAccountInviteResponse, type index_d$2_AccountInvite as AccountInvite, type index_d$2_AccountInviteRequest as AccountInviteRequest, type index_d$2_AccountInviteResponse as AccountInviteResponse, type index_d$2_AccountResourceContext as AccountResourceContext, type index_d$2_BulkAccountInviteRequest as BulkAccountInviteRequest, type index_d$2_BulkAccountInviteResponse as BulkAccountInviteResponse, type Condition$1 as Condition, type index_d$2_ConditionOperator as ConditionOperator, type index_d$2_ConditionOperatorOperatorsOneOf as ConditionOperatorOperatorsOneOf, type index_d$2_ConditionType as ConditionType, type index_d$2_ConditionTypeOfOneOf as ConditionTypeOfOneOf, type index_d$2_ConditionValue as ConditionValue, type index_d$2_ConditionValueValueOneOf as ConditionValueValueOneOf, type index_d$2_CreateInviteOptions as CreateInviteOptions, type index_d$2_CreateInviteRequest as CreateInviteRequest, type index_d$2_CreateInviteResponse as CreateInviteResponse, type index_d$2_CreateInviteResponseNonNullableFields as CreateInviteResponseNonNullableFields, type index_d$2_DependOnOperator as DependOnOperator, type index_d$2_EnvironmentCondition as EnvironmentCondition, type index_d$2_EnvironmentConditionConditionOneOf as EnvironmentConditionConditionOneOf, type index_d$2_EqualOperator as EqualOperator, type index_d$2_ExperimentCondition as ExperimentCondition, type index_d$2_ExperimentOperator as ExperimentOperator, type index_d$2_FullNameResource as FullNameResource, type index_d$2_FullNameResourceResourceContextOneOf as FullNameResourceResourceContextOneOf, type index_d$2_GetAccountInviteRequest as GetAccountInviteRequest, type index_d$2_GetAccountInviteResponse as GetAccountInviteResponse, type index_d$2_GetAccountInvitesRequest as GetAccountInvitesRequest, type index_d$2_GetAccountInvitesResponse as GetAccountInvitesResponse, type index_d$2_InviteAssignment as InviteAssignment, type index_d$2_InviteFailure as InviteFailure, type index_d$2_InviteResourceAssignment as InviteResourceAssignment, InviteStatus$2 as InviteStatus, type index_d$2_JoinedCondition as JoinedCondition, index_d$2_JoinedConditionOperator as JoinedConditionOperator, type index_d$2_LikeOperator as LikeOperator, type index_d$2_OrganizationResourceContext as OrganizationResourceContext, type index_d$2_ParseAccountInviteTokenRequest as ParseAccountInviteTokenRequest, type index_d$2_ParseAccountInviteTokenResponse as ParseAccountInviteTokenResponse, type index_d$2_PolicyCondition as PolicyCondition, type index_d$2_ResendAccountInviteRequest as ResendAccountInviteRequest, type Resource$1 as Resource, type index_d$2_RevokeAccountInviteRequest as RevokeAccountInviteRequest, type index_d$2_RevokeAccountInviteResponse as RevokeAccountInviteResponse, type index_d$2_SimpleCondition as SimpleCondition, index_d$2_SimpleConditionOperator as SimpleConditionOperator, type index_d$2_SimpleConditionValue as SimpleConditionValue, type index_d$2_SimpleConditionValueValueOneOf as SimpleConditionValueValueOneOf, type index_d$2_SiteResourceContext as SiteResourceContext, type Subject$1 as Subject, type SubjectContext$1 as SubjectContext, SubjectContextType$1 as SubjectContextType, type index_d$2_SubjectInviteAssignments as SubjectInviteAssignments, SubjectType$1 as SubjectType, type index_d$2_UpdateAccountInviteAssignmentsRequest as UpdateAccountInviteAssignmentsRequest, type index_d$2_UpdateAccountInviteAssignmentsResponse as UpdateAccountInviteAssignmentsResponse, type index_d$2_UpdateAccountInviteRequest as UpdateAccountInviteRequest, type index_d$2_UpdateAccountInviteResponse as UpdateAccountInviteResponse, index_d$2_createInvite as createInvite };
1402
+ type index_d$3_AcceptAccountInviteRequest = AcceptAccountInviteRequest;
1403
+ type index_d$3_AcceptAccountInviteResponse = AcceptAccountInviteResponse;
1404
+ type index_d$3_AccountInviteRequest = AccountInviteRequest;
1405
+ type index_d$3_AccountInviteResponse = AccountInviteResponse;
1406
+ type index_d$3_BulkAccountInviteRequest = BulkAccountInviteRequest;
1407
+ type index_d$3_BulkAccountInviteResponse = BulkAccountInviteResponse;
1408
+ type index_d$3_CreateInviteOptions = CreateInviteOptions;
1409
+ type index_d$3_CreateInviteRequest = CreateInviteRequest;
1410
+ type index_d$3_CreateInviteResponse = CreateInviteResponse;
1411
+ type index_d$3_CreateInviteResponseNonNullableFields = CreateInviteResponseNonNullableFields;
1412
+ type index_d$3_GetAccountInviteRequest = GetAccountInviteRequest;
1413
+ type index_d$3_GetAccountInviteResponse = GetAccountInviteResponse;
1414
+ type index_d$3_GetAccountInvitesRequest = GetAccountInvitesRequest;
1415
+ type index_d$3_GetAccountInvitesResponse = GetAccountInvitesResponse;
1416
+ type index_d$3_InviteFailure = InviteFailure;
1417
+ type index_d$3_ParseAccountInviteTokenRequest = ParseAccountInviteTokenRequest;
1418
+ type index_d$3_ParseAccountInviteTokenResponse = ParseAccountInviteTokenResponse;
1419
+ type index_d$3_ResendAccountInviteRequest = ResendAccountInviteRequest;
1420
+ type index_d$3_RevokeAccountInviteRequest = RevokeAccountInviteRequest;
1421
+ type index_d$3_RevokeAccountInviteResponse = RevokeAccountInviteResponse;
1422
+ type index_d$3_SubjectInviteAssignments = SubjectInviteAssignments;
1423
+ type index_d$3_UpdateAccountInviteAssignmentsRequest = UpdateAccountInviteAssignmentsRequest;
1424
+ type index_d$3_UpdateAccountInviteAssignmentsResponse = UpdateAccountInviteAssignmentsResponse;
1425
+ type index_d$3_UpdateAccountInviteRequest = UpdateAccountInviteRequest;
1426
+ type index_d$3_UpdateAccountInviteResponse = UpdateAccountInviteResponse;
1427
+ declare const index_d$3_createInvite: typeof createInvite;
1428
+ declare namespace index_d$3 {
1429
+ export { type index_d$3_AcceptAccountInviteRequest as AcceptAccountInviteRequest, type index_d$3_AcceptAccountInviteResponse as AcceptAccountInviteResponse, type AccountInvite$1 as AccountInvite, type index_d$3_AccountInviteRequest as AccountInviteRequest, type index_d$3_AccountInviteResponse as AccountInviteResponse, type AccountResourceContext$1 as AccountResourceContext, type index_d$3_BulkAccountInviteRequest as BulkAccountInviteRequest, type index_d$3_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$3_CreateInviteOptions as CreateInviteOptions, type index_d$3_CreateInviteRequest as CreateInviteRequest, type index_d$3_CreateInviteResponse as CreateInviteResponse, type index_d$3_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$3_GetAccountInviteRequest as GetAccountInviteRequest, type index_d$3_GetAccountInviteResponse as GetAccountInviteResponse, type index_d$3_GetAccountInvitesRequest as GetAccountInvitesRequest, type index_d$3_GetAccountInvitesResponse as GetAccountInvitesResponse, type InviteAssignment$1 as InviteAssignment, type index_d$3_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$3_ParseAccountInviteTokenRequest as ParseAccountInviteTokenRequest, type index_d$3_ParseAccountInviteTokenResponse as ParseAccountInviteTokenResponse, type PolicyCondition$1 as PolicyCondition, type index_d$3_ResendAccountInviteRequest as ResendAccountInviteRequest, type Resource$2 as Resource, type index_d$3_RevokeAccountInviteRequest as RevokeAccountInviteRequest, type index_d$3_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$3_SubjectInviteAssignments as SubjectInviteAssignments, SubjectType$2 as SubjectType, type index_d$3_UpdateAccountInviteAssignmentsRequest as UpdateAccountInviteAssignmentsRequest, type index_d$3_UpdateAccountInviteAssignmentsResponse as UpdateAccountInviteAssignmentsResponse, type index_d$3_UpdateAccountInviteRequest as UpdateAccountInviteRequest, type index_d$3_UpdateAccountInviteResponse as UpdateAccountInviteResponse, index_d$3_createInvite as createInvite };
1460
1430
  }
1461
1431
 
1462
1432
  interface SiteInvite$1 {
@@ -1490,7 +1460,7 @@ interface SiteInvite$1 {
1490
1460
  * - **Declined:** The user declined the invite.
1491
1461
  * - **Expired:** The invite has expired without being accepted.
1492
1462
  */
1493
- status?: InviteStatus$1;
1463
+ status?: InviteStatus$2;
1494
1464
  /** Link to accept the invite. */
1495
1465
  acceptLink?: string;
1496
1466
  /**
@@ -1511,7 +1481,7 @@ interface SiteInvite$1 {
1511
1481
  expirationDate?: Date | null;
1512
1482
  }
1513
1483
  /** Invite status stating whether the invite was accepted, waiting to be accepted, deleted etc.. */
1514
- declare enum InviteStatus$1 {
1484
+ declare enum InviteStatus$2 {
1515
1485
  Pending = "Pending",
1516
1486
  Used = "Used",
1517
1487
  Deleted = "Deleted",
@@ -1534,7 +1504,7 @@ interface QuerySiteInvitesRequest {
1534
1504
  }
1535
1505
  interface QueryV2 extends QueryV2PagingMethodOneOf {
1536
1506
  /** Paging options to limit and skip the number of items. */
1537
- paging?: Paging;
1507
+ paging?: Paging$1;
1538
1508
  /** 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`. */
1539
1509
  cursorPaging?: CursorPaging;
1540
1510
  /**
@@ -1557,7 +1527,7 @@ interface QueryV2 extends QueryV2PagingMethodOneOf {
1557
1527
  /** @oneof */
1558
1528
  interface QueryV2PagingMethodOneOf {
1559
1529
  /** Paging options to limit and skip the number of items. */
1560
- paging?: Paging;
1530
+ paging?: Paging$1;
1561
1531
  /** 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`. */
1562
1532
  cursorPaging?: CursorPaging;
1563
1533
  }
@@ -1571,7 +1541,7 @@ declare enum SortOrder {
1571
1541
  ASC = "ASC",
1572
1542
  DESC = "DESC"
1573
1543
  }
1574
- interface Paging {
1544
+ interface Paging$1 {
1575
1545
  /** Number of items to load. */
1576
1546
  limit?: number | null;
1577
1547
  /** Number of items to skip in the current sort order. */
@@ -1664,7 +1634,7 @@ interface ParseSiteInviteTokenRequest {
1664
1634
  interface ParseSiteInviteTokenResponse {
1665
1635
  inviteId?: string;
1666
1636
  siteId?: string;
1667
- status?: InviteStatus$1;
1637
+ status?: InviteStatus$2;
1668
1638
  }
1669
1639
  interface SiteInviteNonNullableFields {
1670
1640
  _id: string;
@@ -1672,7 +1642,7 @@ interface SiteInviteNonNullableFields {
1672
1642
  email: string;
1673
1643
  policyIds: string[];
1674
1644
  inviterId: string;
1675
- status: InviteStatus$1;
1645
+ status: InviteStatus$2;
1676
1646
  acceptLink: string;
1677
1647
  inviterAccountId: string;
1678
1648
  }
@@ -1730,44 +1700,1274 @@ declare const bulkInvite: MaybeContext<BuildRESTFunction<typeof bulkInvite$1> &
1730
1700
  declare const resendInvite: MaybeContext<BuildRESTFunction<typeof resendInvite$1> & typeof resendInvite$1>;
1731
1701
  declare const revokeInvite: MaybeContext<BuildRESTFunction<typeof revokeInvite$1> & typeof revokeInvite$1>;
1732
1702
 
1733
- type index_d$1_AcceptSiteInviteRequest = AcceptSiteInviteRequest;
1734
- type index_d$1_AcceptSiteInviteResponse = AcceptSiteInviteResponse;
1735
- type index_d$1_BulkInviteOptions = BulkInviteOptions;
1736
- type index_d$1_BulkSiteInviteRequest = BulkSiteInviteRequest;
1737
- type index_d$1_BulkSiteInviteResponse = BulkSiteInviteResponse;
1738
- type index_d$1_BulkSiteInviteResponseNonNullableFields = BulkSiteInviteResponseNonNullableFields;
1739
- type index_d$1_ContributorLimitation = ContributorLimitation;
1740
- type index_d$1_CursorPaging = CursorPaging;
1741
- type index_d$1_GetContributorLimitRequest = GetContributorLimitRequest;
1742
- type index_d$1_GetContributorLimitResponse = GetContributorLimitResponse;
1743
- type index_d$1_GetSiteInviteRequest = GetSiteInviteRequest;
1744
- type index_d$1_GetSiteInviteResponse = GetSiteInviteResponse;
1745
- type index_d$1_GetSiteInvitesRequest = GetSiteInvitesRequest;
1746
- type index_d$1_GetSiteInvitesResponse = GetSiteInvitesResponse;
1703
+ type index_d$2_AcceptSiteInviteRequest = AcceptSiteInviteRequest;
1704
+ type index_d$2_AcceptSiteInviteResponse = AcceptSiteInviteResponse;
1705
+ type index_d$2_BulkInviteOptions = BulkInviteOptions;
1706
+ type index_d$2_BulkSiteInviteRequest = BulkSiteInviteRequest;
1707
+ type index_d$2_BulkSiteInviteResponse = BulkSiteInviteResponse;
1708
+ type index_d$2_BulkSiteInviteResponseNonNullableFields = BulkSiteInviteResponseNonNullableFields;
1709
+ type index_d$2_ContributorLimitation = ContributorLimitation;
1710
+ type index_d$2_CursorPaging = CursorPaging;
1711
+ type index_d$2_GetContributorLimitRequest = GetContributorLimitRequest;
1712
+ type index_d$2_GetContributorLimitResponse = GetContributorLimitResponse;
1713
+ type index_d$2_GetSiteInviteRequest = GetSiteInviteRequest;
1714
+ type index_d$2_GetSiteInviteResponse = GetSiteInviteResponse;
1715
+ type index_d$2_GetSiteInvitesRequest = GetSiteInvitesRequest;
1716
+ type index_d$2_GetSiteInvitesResponse = GetSiteInvitesResponse;
1717
+ type index_d$2_ParseSiteInviteTokenRequest = ParseSiteInviteTokenRequest;
1718
+ type index_d$2_ParseSiteInviteTokenResponse = ParseSiteInviteTokenResponse;
1719
+ type index_d$2_QuerySiteInvitesRequest = QuerySiteInvitesRequest;
1720
+ type index_d$2_QuerySiteInvitesResponse = QuerySiteInvitesResponse;
1721
+ type index_d$2_QueryV2 = QueryV2;
1722
+ type index_d$2_QueryV2PagingMethodOneOf = QueryV2PagingMethodOneOf;
1723
+ type index_d$2_ResendInviteOptions = ResendInviteOptions;
1724
+ type index_d$2_ResendSiteInviteRequest = ResendSiteInviteRequest;
1725
+ type index_d$2_RevokeSiteInviteRequest = RevokeSiteInviteRequest;
1726
+ type index_d$2_RevokeSiteInviteResponse = RevokeSiteInviteResponse;
1727
+ type index_d$2_SiteInviteRequest = SiteInviteRequest;
1728
+ type index_d$2_SiteInviteResponse = SiteInviteResponse;
1729
+ type index_d$2_SiteInviteResponseNonNullableFields = SiteInviteResponseNonNullableFields;
1730
+ type index_d$2_SortOrder = SortOrder;
1731
+ declare const index_d$2_SortOrder: typeof SortOrder;
1732
+ type index_d$2_Sorting = Sorting;
1733
+ type index_d$2_UpdateSiteInviteRequest = UpdateSiteInviteRequest;
1734
+ type index_d$2_UpdateSiteInviteResponse = UpdateSiteInviteResponse;
1735
+ declare const index_d$2_bulkInvite: typeof bulkInvite;
1736
+ declare const index_d$2_resendInvite: typeof resendInvite;
1737
+ declare const index_d$2_revokeInvite: typeof revokeInvite;
1738
+ declare namespace index_d$2 {
1739
+ export { type index_d$2_AcceptSiteInviteRequest as AcceptSiteInviteRequest, type index_d$2_AcceptSiteInviteResponse as AcceptSiteInviteResponse, type index_d$2_BulkInviteOptions as BulkInviteOptions, type index_d$2_BulkSiteInviteRequest as BulkSiteInviteRequest, type index_d$2_BulkSiteInviteResponse as BulkSiteInviteResponse, type index_d$2_BulkSiteInviteResponseNonNullableFields as BulkSiteInviteResponseNonNullableFields, type index_d$2_ContributorLimitation as ContributorLimitation, type index_d$2_CursorPaging as CursorPaging, type index_d$2_GetContributorLimitRequest as GetContributorLimitRequest, type index_d$2_GetContributorLimitResponse as GetContributorLimitResponse, type index_d$2_GetSiteInviteRequest as GetSiteInviteRequest, type index_d$2_GetSiteInviteResponse as GetSiteInviteResponse, type index_d$2_GetSiteInvitesRequest as GetSiteInvitesRequest, type index_d$2_GetSiteInvitesResponse as GetSiteInvitesResponse, InviteStatus$2 as InviteStatus, type Paging$1 as Paging, type index_d$2_ParseSiteInviteTokenRequest as ParseSiteInviteTokenRequest, type index_d$2_ParseSiteInviteTokenResponse as ParseSiteInviteTokenResponse, type index_d$2_QuerySiteInvitesRequest as QuerySiteInvitesRequest, type index_d$2_QuerySiteInvitesResponse as QuerySiteInvitesResponse, type index_d$2_QueryV2 as QueryV2, type index_d$2_QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOf, type index_d$2_ResendInviteOptions as ResendInviteOptions, type index_d$2_ResendSiteInviteRequest as ResendSiteInviteRequest, type index_d$2_RevokeSiteInviteRequest as RevokeSiteInviteRequest, type index_d$2_RevokeSiteInviteResponse as RevokeSiteInviteResponse, type SiteInvite$1 as SiteInvite, type index_d$2_SiteInviteRequest as SiteInviteRequest, type index_d$2_SiteInviteResponse as SiteInviteResponse, type index_d$2_SiteInviteResponseNonNullableFields as SiteInviteResponseNonNullableFields, index_d$2_SortOrder as SortOrder, type index_d$2_Sorting as Sorting, type index_d$2_UpdateSiteInviteRequest as UpdateSiteInviteRequest, type index_d$2_UpdateSiteInviteResponse as UpdateSiteInviteResponse, index_d$2_bulkInvite as bulkInvite, index_d$2_resendInvite as resendInvite, index_d$2_revokeInvite as revokeInvite };
1740
+ }
1741
+
1742
+ interface User$1 {
1743
+ /** User ID. */
1744
+ _id?: string;
1745
+ /**
1746
+ * Deprecated.
1747
+ * @deprecated
1748
+ */
1749
+ roles?: string[];
1750
+ /** User's email address. */
1751
+ email?: string;
1752
+ /** User's name. */
1753
+ name?: Name$1;
1754
+ /** URL to user's profile image, when provided. */
1755
+ profileImage?: string | null;
1756
+ /** Date the user joined the team. */
1757
+ joinedTeamAt?: Date | null;
1758
+ /**
1759
+ * Deprecated.
1760
+ * @deprecated
1761
+ */
1762
+ policyIds?: string[];
1763
+ /** Resources the user can access. */
1764
+ assignments?: Assignment$1[];
1765
+ }
1766
+ interface Name$1 {
1767
+ /** User's first name. */
1768
+ firstName?: string;
1769
+ /** User's last name. */
1770
+ lastName?: string;
1771
+ }
1772
+ interface Assignment$1 {
1773
+ /** Role assigned to the user. */
1774
+ policy?: AssignedPolicy$1;
1775
+ /** Unique ID for this specific assignment. */
1776
+ assignmentId?: string;
1777
+ /** Identity assigned to the asset in an assignment, referred to as subject. Supported subjects include user IDs, account IDs, and app IDs. */
1778
+ subject?: Subject$1;
1779
+ }
1780
+ interface AssignedPolicy$1 {
1781
+ /** Role ID. */
1782
+ policyId?: string;
1783
+ /** Role title. */
1784
+ title?: string | null;
1785
+ /** Role description. */
1786
+ description?: string | null;
1787
+ }
1788
+ interface Restriction$1 extends RestrictionRestrictionsOneOf$1 {
1789
+ /**
1790
+ * Deprecated.
1791
+ * @deprecated
1792
+ */
1793
+ resource?: ApiResource;
1794
+ /** List of conditions restricting the user's access. Currently only folder conditions are supported. */
1795
+ conditions?: Conditions$1;
1796
+ /** Site where the assignment restrictions apply. */
1797
+ site?: SiteRestriction$1;
1798
+ }
1799
+ /** @oneof */
1800
+ interface RestrictionRestrictionsOneOf$1 {
1801
+ /**
1802
+ * Deprecated.
1803
+ * @deprecated
1804
+ */
1805
+ resource?: ApiResource;
1806
+ /** List of conditions restricting the user's access. Currently only folder conditions are supported. */
1807
+ conditions?: Conditions$1;
1808
+ /** Site where the assignment restrictions apply. */
1809
+ site?: SiteRestriction$1;
1810
+ }
1811
+ interface ApiResource {
1812
+ /** Resource type. */
1813
+ resourceType?: ResourceType$1;
1814
+ /** Resource ID. */
1815
+ _id?: string;
1816
+ value?: string | null;
1817
+ }
1818
+ declare enum ResourceType$1 {
1819
+ UNKNOWN_RESOURCE_TYPE = "UNKNOWN_RESOURCE_TYPE",
1820
+ SITE = "SITE"
1821
+ }
1822
+ interface Conditions$1 {
1823
+ /** List of conditions. */
1824
+ conditions?: ApiCondition[];
1825
+ }
1826
+ interface ApiCondition {
1827
+ /** Condition type. */
1828
+ conditionType?: ConditionAttributeType$1;
1829
+ /** Condition ID. */
1830
+ _id?: string;
1831
+ /** Expected value of the condition. When `conditionType` = "FOLDER", this is the folder path. */
1832
+ value?: string | null;
1833
+ }
1834
+ declare enum ConditionAttributeType$1 {
1835
+ UNKNOWN_CONDITION_TYPE = "UNKNOWN_CONDITION_TYPE",
1836
+ FOLDER = "FOLDER"
1837
+ }
1838
+ interface SiteRestriction$1 {
1839
+ /** Site ID. */
1840
+ _id?: string;
1841
+ /** Site name. */
1842
+ value?: string | null;
1843
+ }
1844
+ interface CompanionResource$1 {
1845
+ /** Asset ID (referred to here as resource ID). */
1846
+ _id?: string;
1847
+ /** Asset type (referred to here as resource type). as predefined in the authorization system */
1848
+ resourceType?: string;
1849
+ }
1850
+ interface Subject$1 {
1851
+ /** ID of identity assigned to the asset. */
1852
+ _id?: string;
1853
+ /** Type of identity assigned to the asset. Supported subject types include user IDs, account IDs, and app IDs. */
1854
+ subjectType?: SubjectType$1;
1855
+ /** Context of identity assigned to the asset. For example, a `subjectType` = `USER` will have `context` = `ACCOUNT`. */
1856
+ context?: SubjectContext$1;
1857
+ }
1858
+ declare enum SubjectType$1 {
1859
+ UNKNOWN = "UNKNOWN",
1860
+ ACCOUNT = "ACCOUNT",
1861
+ USER = "USER",
1862
+ USER_GROUP = "USER_GROUP",
1863
+ MEMBER_GROUP = "MEMBER_GROUP",
1864
+ VISITOR_GROUP = "VISITOR_GROUP",
1865
+ EXTERNAL_APP = "EXTERNAL_APP",
1866
+ ACCOUNT_GROUP = "ACCOUNT_GROUP",
1867
+ WIX_APP = "WIX_APP"
1868
+ }
1869
+ interface SubjectContext$1 {
1870
+ _id?: string;
1871
+ contextType?: SubjectContextType$1;
1872
+ }
1873
+ declare enum SubjectContextType$1 {
1874
+ UNKNOWN_CTX = "UNKNOWN_CTX",
1875
+ ORG_CTX = "ORG_CTX",
1876
+ ACCOUNT_CTX = "ACCOUNT_CTX"
1877
+ }
1878
+ interface GetTeamRequest {
1879
+ /** @deprecated */
1880
+ usersLimit?: number | null;
1881
+ /** The locale of the request. Defaults to en */
1882
+ locale?: string | null;
1883
+ paging?: Paging;
1884
+ }
1885
+ interface Paging {
1886
+ /** Number of items to load. */
1887
+ limit?: number | null;
1888
+ /** Number of items to skip in the current sort order. */
1889
+ offset?: number | null;
1890
+ }
1891
+ interface GetTeamResponse {
1892
+ users?: User$1[];
1893
+ invites?: AccountInvite[];
1894
+ accountInfo?: AccountInfo$1;
1895
+ permissions?: string[];
1896
+ userId?: string;
1897
+ targetAccountId?: string;
1898
+ policies?: ApiPolicy[];
1899
+ totalUsersInAccount?: string;
1900
+ predefinedRoles?: PredefinedRoles$1;
1901
+ }
1902
+ interface AccountInvite {
1903
+ /**
1904
+ * Invite ID.
1905
+ * @readonly
1906
+ */
1907
+ _id?: string;
1908
+ /**
1909
+ * Account ID.
1910
+ * @readonly
1911
+ */
1912
+ accountId?: string;
1913
+ /** Email address where the invite was sent. */
1914
+ email?: string;
1915
+ /**
1916
+ * Deprecated. Use `policyIds`.
1917
+ * @deprecated
1918
+ */
1919
+ role?: string;
1920
+ /**
1921
+ * Deprecated. Use `inviterAccountId`.
1922
+ * @readonly
1923
+ * @deprecated
1924
+ */
1925
+ inviterId?: string;
1926
+ /**
1927
+ * Invite status.
1928
+ *
1929
+ * Supported values:
1930
+ * - **Pending:** The invite has been sent and is valid, waiting for the user's response.
1931
+ * - **Used:** The invite has been accepted.
1932
+ * - **Deleted:** The invite has been deleted or revoked.
1933
+ * - **Declined:** The user has declined the invite.
1934
+ * - **Expired:** The invite has expired without being accepted.
1935
+ */
1936
+ status?: InviteStatus$1;
1937
+ /** Link to accept the invite. */
1938
+ acceptLink?: string;
1939
+ /**
1940
+ * Inviting account ID.
1941
+ * @readonly
1942
+ */
1943
+ inviterAccountId?: string;
1944
+ /**
1945
+ * Account ID that accepted the invite. Populated only once the invite is accepted.
1946
+ * @readonly
1947
+ */
1948
+ acceptedByAccountId?: string | null;
1949
+ /** Date the invite was created. */
1950
+ dateCreated?: Date | null;
1951
+ /** Role IDs included in the invite. */
1952
+ policyIds?: string[];
1953
+ /** Date the invite was last updated. */
1954
+ dateUpdated?: Date | null;
1955
+ /** Assets the users are invited to join. */
1956
+ assignments?: InviteResourceAssignment[];
1957
+ /** Invite expiration date. */
1958
+ expirationDate?: Date | null;
1959
+ }
1960
+ /** Invite status stating whether the invite was accepted, waiting to be accepted, deleted etc.. */
1961
+ declare enum InviteStatus$1 {
1962
+ Pending = "Pending",
1963
+ Used = "Used",
1964
+ Deleted = "Deleted",
1965
+ Declined = "Declined",
1966
+ Expired = "Expired"
1967
+ }
1968
+ interface InviteResourceAssignment {
1969
+ /** Role ID. */
1970
+ policyId?: string;
1971
+ /** Resources the user will be able to access. */
1972
+ assignments?: InviteAssignment[];
1973
+ }
1974
+ interface InviteAssignment {
1975
+ /** Full name of resource to be assigned. */
1976
+ fullNameResource?: FullNameResource;
1977
+ }
1978
+ interface FullNameResource extends FullNameResourceResourceContextOneOf {
1979
+ /** Specific site details. */
1980
+ siteContext?: SiteResourceContext;
1981
+ /** Specific account details. */
1982
+ accountContext?: AccountResourceContext;
1983
+ }
1984
+ /** @oneof */
1985
+ interface FullNameResourceResourceContextOneOf {
1986
+ /** Specific site details. */
1987
+ siteContext?: SiteResourceContext;
1988
+ /** Specific account details. */
1989
+ accountContext?: AccountResourceContext;
1990
+ }
1991
+ /** 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) */
1992
+ interface SiteResourceContext {
1993
+ /** Site ID. */
1994
+ metasiteId?: string;
1995
+ }
1996
+ /** 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) */
1997
+ interface AccountResourceContext {
1998
+ /** Account ID. */
1999
+ accountId?: string;
2000
+ }
2001
+ interface OrganizationResourceContext {
2002
+ }
2003
+ /**
2004
+ * A custom resource. Is used to represent some asset that is not a direct resource context (site or account), but something custom.
2005
+ * For example: payment method, blog post, domain, logo.
2006
+ */
2007
+ interface Resource$1 {
2008
+ /** The resource id. */
2009
+ _id?: string | null;
2010
+ /** The resource type */
2011
+ type?: string | null;
2012
+ }
2013
+ interface PolicyCondition {
2014
+ /** The type of the condition */
2015
+ condition?: ConditionType;
2016
+ }
2017
+ interface ConditionType extends ConditionTypeOfOneOf {
2018
+ /** @deprecated */
2019
+ simpleCondition?: SimpleCondition;
2020
+ /** A logic combination between several conditions, with an operator between them */
2021
+ joinedConditions?: JoinedCondition;
2022
+ /** @deprecated */
2023
+ environmentCondition?: EnvironmentCondition;
2024
+ /** A single condition */
2025
+ condition?: Condition$1;
2026
+ }
2027
+ /** @oneof */
2028
+ interface ConditionTypeOfOneOf {
2029
+ /** @deprecated */
2030
+ simpleCondition?: SimpleCondition;
2031
+ /** A logic combination between several conditions, with an operator between them */
2032
+ joinedConditions?: JoinedCondition;
2033
+ /** @deprecated */
2034
+ environmentCondition?: EnvironmentCondition;
2035
+ /** A single condition */
2036
+ condition?: Condition$1;
2037
+ }
2038
+ interface SimpleCondition {
2039
+ attrName?: string;
2040
+ value?: SimpleConditionValue;
2041
+ op?: SimpleConditionOperator;
2042
+ conditionModelId?: string;
2043
+ }
2044
+ interface SimpleConditionValue extends SimpleConditionValueValueOneOf {
2045
+ attrName?: string;
2046
+ stringValue?: string;
2047
+ boolValue?: boolean;
2048
+ }
2049
+ /** @oneof */
2050
+ interface SimpleConditionValueValueOneOf {
2051
+ attrName?: string;
2052
+ stringValue?: string;
2053
+ boolValue?: boolean;
2054
+ }
2055
+ declare enum SimpleConditionOperator {
2056
+ UNKNOWN_SIMPLE_OP = "UNKNOWN_SIMPLE_OP",
2057
+ EQUAL = "EQUAL"
2058
+ }
2059
+ interface JoinedCondition {
2060
+ /** The operator that should be used when evaluating the condition */
2061
+ op?: JoinedConditionOperator;
2062
+ /** The conditions that should be evaluated, and then joined using the operator provided */
2063
+ conditions?: ConditionType[];
2064
+ }
2065
+ declare enum JoinedConditionOperator {
2066
+ UNKNOWN_JOIN_OP = "UNKNOWN_JOIN_OP",
2067
+ OR = "OR",
2068
+ AND = "AND"
2069
+ }
2070
+ interface EnvironmentCondition extends EnvironmentConditionConditionOneOf {
2071
+ experimentCondition?: ExperimentCondition;
2072
+ }
2073
+ /** @oneof */
2074
+ interface EnvironmentConditionConditionOneOf {
2075
+ experimentCondition?: ExperimentCondition;
2076
+ }
2077
+ interface ExperimentCondition {
2078
+ spec?: string;
2079
+ fallbackValue?: string;
2080
+ expectedValue?: string;
2081
+ }
2082
+ interface Condition$1 {
2083
+ /** The unique identifier of the condition model. Indicates which actions the condition is working on */
2084
+ conditionModelId?: string;
2085
+ /** The operator that should be evaluated */
2086
+ operator?: ConditionOperator;
2087
+ }
2088
+ interface ConditionOperator extends ConditionOperatorOperatorsOneOf {
2089
+ /** Comparison of equality - will be evaluated to true if the given parties are equal */
2090
+ equals?: EqualOperator;
2091
+ /** Regex operator - will be evaluated to true if the given value matches the provided regex */
2092
+ like?: LikeOperator;
2093
+ /** Petri experiment - will be evaluated using petri. */
2094
+ experiment?: ExperimentOperator;
2095
+ /** Operator that indicates a dependency on another subject being allowed to perform something. */
2096
+ dependOn?: DependOnOperator;
2097
+ }
2098
+ /** @oneof */
2099
+ interface ConditionOperatorOperatorsOneOf {
2100
+ /** Comparison of equality - will be evaluated to true if the given parties are equal */
2101
+ equals?: EqualOperator;
2102
+ /** Regex operator - will be evaluated to true if the given value matches the provided regex */
2103
+ like?: LikeOperator;
2104
+ /** Petri experiment - will be evaluated using petri. */
2105
+ experiment?: ExperimentOperator;
2106
+ /** Operator that indicates a dependency on another subject being allowed to perform something. */
2107
+ dependOn?: DependOnOperator;
2108
+ }
2109
+ interface EqualOperator {
2110
+ /** The attribute which should be compared. The attribute will be first evaluated to a value, and then compared the other side (attribute/value) */
2111
+ attrName?: string;
2112
+ /** The value to compare to. If the two parties are equal - we will return true. */
2113
+ value?: ConditionValue;
2114
+ }
2115
+ interface ConditionValue extends ConditionValueValueOneOf {
2116
+ /** 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. */
2117
+ attrName?: string;
2118
+ /** a value with a string type. Will be compared to the attribute provided, and be true only if they match the operator. */
2119
+ stringValue?: string;
2120
+ /** a value with a boolean type. Will be compared to the attribute provided, and be true only if they match the operator. */
2121
+ boolValue?: boolean;
2122
+ }
2123
+ /** @oneof */
2124
+ interface ConditionValueValueOneOf {
2125
+ /** 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. */
2126
+ attrName?: string;
2127
+ /** a value with a string type. Will be compared to the attribute provided, and be true only if they match the operator. */
2128
+ stringValue?: string;
2129
+ /** a value with a boolean type. Will be compared to the attribute provided, and be true only if they match the operator. */
2130
+ boolValue?: boolean;
2131
+ }
2132
+ interface LikeOperator {
2133
+ /** The attribute which should be compared. The attribute will be first evaluated to a value, and then compared the regex values provided. */
2134
+ attrName?: string;
2135
+ /** 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 */
2136
+ values?: string[];
2137
+ }
2138
+ interface ExperimentOperator {
2139
+ /** The spec to conduct the experiment on. */
2140
+ spec?: string;
2141
+ /** The value to use if the experiment could not be conducted */
2142
+ fallbackValue?: string;
2143
+ /** The expected value of the experiment conduction. If it matches the actual value - true will be returned. Otherwise - false. */
2144
+ expectedValue?: string;
2145
+ }
2146
+ /** Implies that the policy takes affect only if the depend on subject is permitted as well. */
2147
+ interface DependOnOperator {
2148
+ /** 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 */
2149
+ dependOnSubject?: Subject$1;
2150
+ }
2151
+ interface AccountInfo$1 {
2152
+ accountName?: string;
2153
+ accountImage?: string;
2154
+ isTeam?: boolean;
2155
+ }
2156
+ interface ApiPolicy {
2157
+ _id?: string;
2158
+ description?: string | null;
2159
+ name?: string | null;
2160
+ isCustom?: boolean;
2161
+ scopes?: string[];
2162
+ }
2163
+ interface PredefinedRoles$1 {
2164
+ roles?: PredefinedRole$1[];
2165
+ }
2166
+ interface PredefinedRole$1 {
2167
+ titleKey?: string;
2168
+ roles?: Role$1[];
2169
+ title?: string | null;
2170
+ areaId?: string;
2171
+ }
2172
+ interface Role$1 {
2173
+ _id?: string;
2174
+ deprecatedKey?: string;
2175
+ /** @deprecated */
2176
+ titleKey?: string;
2177
+ /** @deprecated */
2178
+ descriptionKey?: string;
2179
+ deprecated?: boolean;
2180
+ restrictFromLevel?: string;
2181
+ experiments?: string[];
2182
+ appDefIds?: string[];
2183
+ title?: string | null;
2184
+ description?: string | null;
2185
+ isCustom?: boolean;
2186
+ scopes?: string[];
2187
+ availableResourceTypes?: ResourceType$1[];
2188
+ availableConditions?: ConditionAttributeType$1[];
2189
+ limitToEditorTypes?: string[];
2190
+ }
2191
+ interface ChangeRoleRequest {
2192
+ /** User ID. */
2193
+ _id?: string;
2194
+ /**
2195
+ * Deprecated. Use `policyIds`.
2196
+ * @deprecated
2197
+ */
2198
+ role?: string;
2199
+ /** Role IDs to be assigned. */
2200
+ policyIds?: string[];
2201
+ }
2202
+ interface ChangeRoleResponse {
2203
+ }
2204
+ interface RemoveMemberRequest {
2205
+ /** User ID of the team member to remove. */
2206
+ userId: string;
2207
+ }
2208
+ interface RemoveMemberResponse {
2209
+ }
2210
+ interface GetUsersRequest {
2211
+ /** The number of items to load */
2212
+ limit?: number | null;
2213
+ /** number of items to skip in the current sort order */
2214
+ offset?: number | null;
2215
+ }
2216
+ interface GetUsersResponse {
2217
+ users?: User$1[];
2218
+ }
2219
+ interface GetScopesRequest {
2220
+ /** The locale of the request. Defaults to en */
2221
+ locale?: string | null;
2222
+ }
2223
+ interface GetScopesResponse {
2224
+ scopeAreas?: ScopeArea[];
2225
+ }
2226
+ interface ScopeArea {
2227
+ title?: string;
2228
+ appDefIds?: string[];
2229
+ scopes?: PermissionScope[];
2230
+ restrictFromLevel?: ScopeLevel;
2231
+ }
2232
+ interface PermissionScope {
2233
+ _id?: string;
2234
+ title?: string;
2235
+ description?: string;
2236
+ level?: ScopeLevel;
2237
+ experiments?: string[];
2238
+ dependantScopes?: string[];
2239
+ restrictFromLevel?: ScopeLevel;
2240
+ deprecated?: boolean | null;
2241
+ /** The visibility of the scope for the caller */
2242
+ visibility?: Visibility;
2243
+ appDefIds?: string[];
2244
+ }
2245
+ declare enum ScopeLevel {
2246
+ None = "None",
2247
+ SITE = "SITE",
2248
+ ACCOUNT = "ACCOUNT"
2249
+ }
2250
+ declare enum Visibility {
2251
+ /** The scope should be visible to the caller */
2252
+ VISIBLE = "VISIBLE",
2253
+ /** The scope shouldn't be visible for the caller, because the capability that blocks it is turned on for the caller */
2254
+ BLOCKED_BY_CAPABILITY = "BLOCKED_BY_CAPABILITY"
2255
+ }
2256
+ interface GetPeopleRequest {
2257
+ resource?: PeopleResource;
2258
+ peopleType?: PeopleType;
2259
+ paging?: Paging;
2260
+ /** The locale of the request. Defaults to en */
2261
+ locale?: string | null;
2262
+ }
2263
+ interface PeopleResource extends PeopleResourceResourceTypeOneOf {
2264
+ site?: string;
2265
+ folder?: FolderResource;
2266
+ }
2267
+ /** @oneof */
2268
+ interface PeopleResourceResourceTypeOneOf {
2269
+ site?: string;
2270
+ folder?: FolderResource;
2271
+ }
2272
+ interface FolderResource {
2273
+ folderId?: string;
2274
+ folderFullPath?: string;
2275
+ }
2276
+ declare enum PeopleType {
2277
+ UNDEF_PEOPLE_TYPE = "UNDEF_PEOPLE_TYPE",
2278
+ CONTRIBUTOR = "CONTRIBUTOR",
2279
+ TEAM_MEMBER = "TEAM_MEMBER"
2280
+ }
2281
+ interface GetPeopleResponse {
2282
+ people?: People;
2283
+ }
2284
+ interface People {
2285
+ people?: Person[];
2286
+ totalPeople?: number;
2287
+ }
2288
+ interface Person extends PersonPersonOneOf {
2289
+ contributor?: Contributor$1;
2290
+ teamMember?: TeamMember;
2291
+ }
2292
+ /** @oneof */
2293
+ interface PersonPersonOneOf {
2294
+ contributor?: Contributor$1;
2295
+ teamMember?: TeamMember;
2296
+ }
2297
+ interface Contributor$1 {
2298
+ /** Contributor's metadata. */
2299
+ metaData?: PersonMetaData$1;
2300
+ /** Whether the contributor account is a team account. */
2301
+ isTeam?: boolean | null;
2302
+ /** Date that the contributor joined the site. */
2303
+ joinedAt?: Date | null;
2304
+ /** Email address that received the invite. */
2305
+ invitedEmail?: string | null;
2306
+ /** Whether the contributor account is a client account. */
2307
+ isClient?: boolean | null;
2308
+ /**
2309
+ * Contributor's user ID.
2310
+ * @readonly
2311
+ */
2312
+ _id?: string;
2313
+ }
2314
+ interface PersonMetaData$1 {
2315
+ /** Contributor's account ID. */
2316
+ _id?: string;
2317
+ /** Contributor's full name. */
2318
+ fullName?: string | null;
2319
+ /** URL for contributor's profile image. */
2320
+ imageUrl?: string | null;
2321
+ /** Contributor's email address. */
2322
+ email?: string | null;
2323
+ /** Contributor's access to assets and their assigned role (`policy`) for that asset. */
2324
+ assignments?: Assignment$1[];
2325
+ }
2326
+ interface TeamMember {
2327
+ metaData?: PersonMetaData$1;
2328
+ }
2329
+ interface GetTeamV2Response {
2330
+ users?: User$1[];
2331
+ totalUsersInAccount?: string;
2332
+ }
2333
+ interface GetTeamInvitesRequest {
2334
+ /** The locale of the request. Defaults to en */
2335
+ locale?: string | null;
2336
+ }
2337
+ interface GetTeamInvitesResponse {
2338
+ invites?: Invite[];
2339
+ }
2340
+ interface Invite {
2341
+ /** @readonly */
2342
+ _id?: string;
2343
+ /** @readonly */
2344
+ accountId?: string;
2345
+ email?: string;
2346
+ status?: InviteStatus$1;
2347
+ acceptLink?: string;
2348
+ dateCreated?: Date | null;
2349
+ dateUpdated?: Date | null;
2350
+ assignments?: ApiInviteAssignment[];
2351
+ /** Invite expiration date */
2352
+ expirationDate?: Date | null;
2353
+ }
2354
+ interface ApiInviteAssignment {
2355
+ policy?: AssignedPolicy$1;
2356
+ restrictions?: Restriction$1;
2357
+ }
2358
+ interface GetPoliciesRequest {
2359
+ /** The locale of the request. Defaults to en */
2360
+ locale?: string | null;
2361
+ /** Areas filter to include only roles from areas that pass this filter. When not provided, roles from all areas will be returned */
2362
+ areasFilter?: AreasFilter;
2363
+ /** 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 */
2364
+ roleLevel?: RoleLevel;
2365
+ }
2366
+ interface AreasFilter {
2367
+ /** A list of role area ids, to filter only roles belonging to these areas */
2368
+ areaIds?: string[];
2369
+ }
2370
+ declare enum RoleLevel {
2371
+ ALL = "ALL",
2372
+ SITE_LEVEL = "SITE_LEVEL",
2373
+ ACCOUNT_LEVEL = "ACCOUNT_LEVEL"
2374
+ }
2375
+ interface GetPoliciesResponse {
2376
+ policies?: PredefinedRoles$1;
2377
+ }
2378
+ interface SearchTeamRequest {
2379
+ /** Free text to search for within team member name and email address fields. */
2380
+ query?: string | null;
2381
+ /** Sort data. */
2382
+ orderBy?: Ordering[];
2383
+ /**
2384
+ * Filter object. Supported values: `inviteType` and `roleId`. For example, `{'inviteType': {'$eq': 'Expired'}}`.
2385
+ * See [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language) for more information.
2386
+ */
2387
+ filter?: Record<string, any> | null;
2388
+ /**
2389
+ * A list of facets to return in the response. Facets count the items within logical groupings.
2390
+ * See [Filters and Facets: An Explainer](https://medium.com/@westontt/filters-and-facets-an-explainer-3b73a9538eca) for more information.
2391
+ */
2392
+ facets?: FacetType[];
2393
+ /** Pagination. */
2394
+ paging?: Paging;
2395
+ }
2396
+ interface Ordering {
2397
+ /** Field to sort by. */
2398
+ fieldName?: OrderField;
2399
+ /** Sort order. */
2400
+ direction?: Direction;
2401
+ }
2402
+ declare enum OrderField {
2403
+ /** For internal use. */
2404
+ Undefined = "Undefined",
2405
+ /** Team member name. */
2406
+ Name = "Name",
2407
+ /** Date team member joined the account. */
2408
+ JoinedAt = "JoinedAt"
2409
+ }
2410
+ declare enum Direction {
2411
+ /** For internal use. */
2412
+ UninitializedDirection = "UninitializedDirection",
2413
+ /** Ascending. */
2414
+ ASC = "ASC",
2415
+ /** Descending. */
2416
+ DESC = "DESC"
2417
+ }
2418
+ declare enum FacetType {
2419
+ Undefined = "Undefined",
2420
+ /** How many team members with each role */
2421
+ Roles = "Roles",
2422
+ /** How many team members by invite status */
2423
+ InviteStatus = "InviteStatus",
2424
+ /** How many team members in total in the account */
2425
+ Users = "Users"
2426
+ }
2427
+ interface SearchTeamResponse {
2428
+ /** List of facets, as requested. */
2429
+ facets?: Facet[];
2430
+ /** Existing team members and invites sent to join the account. */
2431
+ teamMembers?: TeamMemberV3[];
2432
+ }
2433
+ interface Facet {
2434
+ /** Facet type. */
2435
+ facetType?: FacetType;
2436
+ /** Values and their counters. Values with count = 0 are not returned. */
2437
+ values?: FacetValue[];
2438
+ }
2439
+ interface FacetValue {
2440
+ /** Supported values: `Roles`, `InviteStatus`, `Users`. */
2441
+ value?: string;
2442
+ /** Number of existing items for the value. */
2443
+ count?: number;
2444
+ }
2445
+ interface TeamMemberV3 extends TeamMemberV3MembersOneOf {
2446
+ /** Existing team member data. */
2447
+ user?: UserV3;
2448
+ /** Invited team member data. */
2449
+ invite?: InviteV3;
2450
+ }
2451
+ /** @oneof */
2452
+ interface TeamMemberV3MembersOneOf {
2453
+ /** Existing team member data. */
2454
+ user?: UserV3;
2455
+ /** Invited team member data. */
2456
+ invite?: InviteV3;
2457
+ }
2458
+ interface UserV3 {
2459
+ /** User ID. */
2460
+ _id?: string;
2461
+ /** User's email address. */
2462
+ email?: string | null;
2463
+ /** User's name, when provided. */
2464
+ name?: Name$1;
2465
+ /** URL to user's profile image, when provided. */
2466
+ profileImage?: string | null;
2467
+ /** Date the user joined the team. */
2468
+ joinedTeamAt?: Date | null;
2469
+ /** Mapping of the user's access to an asset and their assigned role. */
2470
+ assignments?: AssignmentV3[];
2471
+ }
2472
+ interface AssignmentV3 {
2473
+ /** Role assigned to the user. To retrieve all available roles, call Get Roles Info. */
2474
+ policyId?: string | null;
2475
+ /**
2476
+ * Unique ID for this specific assignment.
2477
+ * @readonly
2478
+ */
2479
+ assignmentId?: string | null;
2480
+ /** 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. */
2481
+ restrictions?: Restriction$1;
2482
+ /** Identity assigned to the asset in an assignment, referred to as subject. Supported subjects include user IDs, account IDs, and app IDs. */
2483
+ subject?: AssignedSubject;
2484
+ }
2485
+ interface AssignedSubject {
2486
+ /**
2487
+ * Identity ID.
2488
+ * @readonly
2489
+ */
2490
+ _id?: string;
2491
+ /** Identity type. */
2492
+ subjectType?: SubjectType$1;
2493
+ }
2494
+ interface InviteV3 {
2495
+ /**
2496
+ * Invite ID.
2497
+ * @readonly
2498
+ */
2499
+ _id?: string;
2500
+ /** Invitee's email address. */
2501
+ email?: string | null;
2502
+ /** Invite status. */
2503
+ status?: InviteStatus$1;
2504
+ /** URL of direct link to accept the invite. */
2505
+ acceptLink?: string | null;
2506
+ /** Date the invite was created. */
2507
+ dateCreated?: Date | null;
2508
+ /** Date the invite was last updated. */
2509
+ dateUpdated?: Date | null;
2510
+ /** A list of assignments that will be applied to the invitees when they accept the invite. */
2511
+ assignments?: InviteAssignmentV3[];
2512
+ /** Invite expiration date. */
2513
+ expirationDate?: Date | null;
2514
+ }
2515
+ interface InviteAssignmentV3 {
2516
+ /** Role ID that will be assigned once the invite is accepted. */
2517
+ policyId?: string | null;
2518
+ /** Assets where the user will be assigned access. When empty, the role covers all assets, with no restrictions to specific sites or folders. */
2519
+ restrictions?: Restriction$1;
2520
+ }
2521
+ interface GetRolesRequest {
2522
+ /** The locale of the predefined roles names and descriptions. Defaults to English */
2523
+ locale?: string | null;
2524
+ }
2525
+ interface GetRolesResponse {
2526
+ /** The predefined roles (by areas) */
2527
+ predefinedRolesAreas?: PredefinedRolesArea[];
2528
+ /** The custom roles */
2529
+ customRoles?: CustomRole[];
2530
+ }
2531
+ interface PredefinedRolesArea {
2532
+ /** The id of the area (e.g "Blog") */
2533
+ areaId?: string;
2534
+ /** The translated area title, according to the request locale, or the original title if translation failed */
2535
+ title?: string;
2536
+ /** The predefined roles belonging to this area */
2537
+ roles?: PredefinedRoleV2[];
2538
+ }
2539
+ interface PredefinedRoleV2 {
2540
+ /** The policy id of this role */
2541
+ _id?: string;
2542
+ /** The title of this role, translated according to the request locale, or the original title if translation failed */
2543
+ title?: string;
2544
+ /** The description of this role, translated according to the request locale, or the original description if translation failed */
2545
+ description?: string;
2546
+ /** The permission-scopes this role's policy contains */
2547
+ scopes?: string[];
2548
+ /** Indicates if the role is deprecated (shouldn't be granted, and only exists for backward compatability) */
2549
+ deprecated?: boolean;
2550
+ /** Indicates if this role should be restricted from assignments of a specific resource type (if RoleLevelRestriction = None, there is no restriction) */
2551
+ restrictFromLevel?: RoleLevelRestriction;
2552
+ /** Experiments that should be open for this role to be visible */
2553
+ experiments?: string[];
2554
+ /** Applications that should be installed for this role to be visible */
2555
+ appDefIds?: string[];
2556
+ /** Editor types this role should be limited to (if empty, available in all editors) */
2557
+ limitToEditorTypes?: EditorType[];
2558
+ /** The visibility of the role */
2559
+ visibility?: RoleVisibility;
2560
+ }
2561
+ declare enum RoleLevelRestriction {
2562
+ NoRestriction = "NoRestriction",
2563
+ Site = "Site",
2564
+ Account = "Account"
2565
+ }
2566
+ declare enum EditorType {
2567
+ UNINITIALIZED = "UNINITIALIZED",
2568
+ EDITORX = "EDITORX",
2569
+ BLOCKS = "BLOCKS",
2570
+ STUDIO = "STUDIO"
2571
+ }
2572
+ declare enum RoleVisibility {
2573
+ /** the role should be visible to the caller */
2574
+ Visible = "Visible",
2575
+ /** the role should be disabled for the caller, because it contains permissions the caller wasn't granted on the call context (site/account) */
2576
+ Disabled_Dependency = "Disabled_Dependency",
2577
+ /** the role should be disabled for the caller, because the role's capability is disabled for the caller */
2578
+ Disabled_Capability = "Disabled_Capability"
2579
+ }
2580
+ interface CustomRole {
2581
+ /** The policy this role grants */
2582
+ policy?: ApiPolicy;
2583
+ /** The visibility of the role */
2584
+ visibility?: RoleVisibility;
2585
+ }
2586
+ interface GetRolesInfoRequest {
2587
+ /** Language of predefined roles names and descriptions to return, in ISO 639 format. Default: `en`. */
2588
+ locale?: string | null;
2589
+ /** Roles to return. */
2590
+ filter?: RolesInfoFilter;
2591
+ }
2592
+ interface RolesInfoFilter {
2593
+ /** Role level to return. Default: ALL. */
2594
+ roleLevel?: RoleLevel;
2595
+ /** Filter for editor-specific roles. Default: ALL. */
2596
+ editorTypes?: EditorType[];
2597
+ }
2598
+ interface GetRolesInfoResponse {
2599
+ /** Predefined roles. */
2600
+ predefinedRoles?: RoleInfo[];
2601
+ /** Custom roles. */
2602
+ customRoles?: RoleInfo[];
2603
+ }
2604
+ interface RoleInfo {
2605
+ /** Role ID. */
2606
+ _id?: string;
2607
+ /** Role title, translated according to the request locale. If translation fails, the original title is returned. */
2608
+ title?: string;
2609
+ /** Role description, translated according to the request locale. If translation fails, the original description is returned. */
2610
+ description?: string;
2611
+ /** Whether this role is restricted from accessing a specific resource type. Default: `NoRestriction`. */
2612
+ restrictFromLevel?: RoleLevelRestriction;
2613
+ }
2614
+ interface CreateCustomRoleRequest {
2615
+ /** The custom role to create */
2616
+ role?: Policy$1;
2617
+ }
2618
+ interface Policy$1 {
2619
+ /** @readonly */
2620
+ _id?: string | null;
2621
+ name?: string | null;
2622
+ description?: string | null;
2623
+ /** @readonly */
2624
+ status?: string;
2625
+ policyType?: PolicyType;
2626
+ statements?: PolicyStatement[];
2627
+ }
2628
+ declare enum PolicyType {
2629
+ UNKNOWN_STATUS = "UNKNOWN_STATUS",
2630
+ PREDEFINED = "PREDEFINED",
2631
+ CUSTOM = "CUSTOM",
2632
+ INLINE_CUSTOM = "INLINE_CUSTOM"
2633
+ }
2634
+ interface PolicyStatement {
2635
+ /** @readonly */
2636
+ _id?: string | null;
2637
+ permissions?: string[];
2638
+ scopes?: string[];
2639
+ effect?: Effect;
2640
+ condition?: PolicyCondition;
2641
+ }
2642
+ declare enum Effect {
2643
+ UNKNOWN_EFFECT = "UNKNOWN_EFFECT",
2644
+ ALLOW = "ALLOW",
2645
+ DENY = "DENY"
2646
+ }
2647
+ interface CreateCustomRoleResponse {
2648
+ /** The newly created custom role */
2649
+ roleCreated?: Policy$1;
2650
+ }
2651
+ interface ChangeRoleV2Request {
2652
+ /** ID of team member being affected. */
2653
+ userId?: string;
2654
+ /** New assignments, including roles, to apply to the team member in this account. To retrieve all available roles, call Get Roles Info. */
2655
+ roles?: AssignmentV3[];
2656
+ /** Existing assignment IDs to remove. To retrieve all existing assignment IDs for a team member, call Search Team. */
2657
+ assignmentIdsToReplace?: string[];
2658
+ }
2659
+ interface ChangeRoleV2Response {
2660
+ /** New roles assigned to the given team member. */
2661
+ roles?: AssignmentV3[];
2662
+ }
2663
+ interface UpdateTeamMemberAssignmentsRequest {
2664
+ /** ID of team member being affected. */
2665
+ userId: string;
2666
+ /** New assignments to apply to the team member in this account. */
2667
+ newAssignments: AssignmentV3[];
2668
+ /** Existing assignment IDs to remove. To retrieve all existing assignment IDs for a team member, call Search Team. */
2669
+ assignmentIdsToRemove: string[];
2670
+ }
2671
+ interface UpdateTeamMemberAssignmentsResponse {
2672
+ /** The new assignments, assigned to the given team member. */
2673
+ assignments?: AssignmentV3[];
2674
+ }
2675
+ interface GetSubjectsAssignmentsRequest {
2676
+ /** The locale of the request. Defaults to en */
2677
+ locale?: string | null;
2678
+ /** list of subjects */
2679
+ subjects?: Subject$1[];
2680
+ }
2681
+ interface GetSubjectsAssignmentsResponse {
2682
+ /** list of subjects with assignments */
2683
+ subjectsAssignments?: SubjectAssignments[];
2684
+ }
2685
+ interface SubjectAssignments {
2686
+ subject?: Subject$1;
2687
+ assignments?: Assignment$1[];
2688
+ }
2689
+ interface FacetValueNonNullableFields {
2690
+ value: string;
2691
+ count: number;
2692
+ }
2693
+ interface FacetNonNullableFields {
2694
+ facetType: FacetType;
2695
+ values: FacetValueNonNullableFields[];
2696
+ }
2697
+ interface NameNonNullableFields {
2698
+ firstName: string;
2699
+ lastName: string;
2700
+ }
2701
+ interface ApiResourceNonNullableFields {
2702
+ resourceType: ResourceType$1;
2703
+ _id: string;
2704
+ }
2705
+ interface ApiConditionNonNullableFields {
2706
+ conditionType: ConditionAttributeType$1;
2707
+ _id: string;
2708
+ }
2709
+ interface ConditionsNonNullableFields {
2710
+ conditions: ApiConditionNonNullableFields[];
2711
+ }
2712
+ interface CompanionResourceNonNullableFields {
2713
+ _id: string;
2714
+ resourceType: string;
2715
+ }
2716
+ interface SiteRestrictionNonNullableFields {
2717
+ _id: string;
2718
+ resource?: CompanionResourceNonNullableFields;
2719
+ }
2720
+ interface RestrictionNonNullableFields {
2721
+ resource?: ApiResourceNonNullableFields;
2722
+ conditions?: ConditionsNonNullableFields;
2723
+ site?: SiteRestrictionNonNullableFields;
2724
+ }
2725
+ interface AssignedSubjectNonNullableFields {
2726
+ _id: string;
2727
+ subjectType: SubjectType$1;
2728
+ }
2729
+ interface AssignmentV3NonNullableFields {
2730
+ restrictions?: RestrictionNonNullableFields;
2731
+ subject?: AssignedSubjectNonNullableFields;
2732
+ }
2733
+ interface UserV3NonNullableFields {
2734
+ _id: string;
2735
+ name?: NameNonNullableFields;
2736
+ assignments: AssignmentV3NonNullableFields[];
2737
+ }
2738
+ interface InviteAssignmentV3NonNullableFields {
2739
+ restrictions?: RestrictionNonNullableFields;
2740
+ }
2741
+ interface InviteV3NonNullableFields {
2742
+ _id: string;
2743
+ status: InviteStatus$1;
2744
+ assignments: InviteAssignmentV3NonNullableFields[];
2745
+ }
2746
+ interface TeamMemberV3NonNullableFields {
2747
+ user?: UserV3NonNullableFields;
2748
+ invite?: InviteV3NonNullableFields;
2749
+ }
2750
+ interface SearchTeamResponseNonNullableFields {
2751
+ facets: FacetNonNullableFields[];
2752
+ teamMembers: TeamMemberV3NonNullableFields[];
2753
+ }
2754
+ interface RoleInfoNonNullableFields {
2755
+ _id: string;
2756
+ title: string;
2757
+ description: string;
2758
+ restrictFromLevel: RoleLevelRestriction;
2759
+ }
2760
+ interface GetRolesInfoResponseNonNullableFields {
2761
+ predefinedRoles: RoleInfoNonNullableFields[];
2762
+ customRoles: RoleInfoNonNullableFields[];
2763
+ }
2764
+ interface UpdateTeamMemberAssignmentsResponseNonNullableFields {
2765
+ assignments: AssignmentV3NonNullableFields[];
2766
+ }
2767
+ interface SearchTeamOptions {
2768
+ /** Free text to search for within team member name and email address fields. */
2769
+ query?: string | null;
2770
+ /** Sort data. */
2771
+ orderBy?: Ordering[];
2772
+ /**
2773
+ * Filter object. Supported values: `inviteType` and `roleId`. For example, `{'inviteType': {'$eq': 'Expired'}}`.
2774
+ * See [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language) for more information.
2775
+ */
2776
+ filter?: Record<string, any> | null;
2777
+ /**
2778
+ * A list of facets to return in the response. Facets count the items within logical groupings.
2779
+ * See [Filters and Facets: An Explainer](https://medium.com/@westontt/filters-and-facets-an-explainer-3b73a9538eca) for more information.
2780
+ */
2781
+ facets?: FacetType[];
2782
+ /** Pagination. */
2783
+ paging?: Paging;
2784
+ }
2785
+ interface GetRolesInfoOptions {
2786
+ /** Language of predefined roles names and descriptions to return, in ISO 639 format. Default: `en`. */
2787
+ locale?: string | null;
2788
+ /** Roles to return. */
2789
+ filter?: RolesInfoFilter;
2790
+ }
2791
+ interface UpdateTeamMemberAssignmentsOptions {
2792
+ /** New assignments to apply to the team member in this account. */
2793
+ newAssignments: AssignmentV3[];
2794
+ /** Existing assignment IDs to remove. To retrieve all existing assignment IDs for a team member, call Search Team. */
2795
+ assignmentIdsToRemove: string[];
2796
+ }
2797
+
2798
+ declare function removeMember$1(httpClient: HttpClient): RemoveMemberSignature;
2799
+ interface RemoveMemberSignature {
2800
+ /**
2801
+ * Removes a team member from the requesting account.
2802
+ * > **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.
2803
+ * @param - User ID of the team member to remove.
2804
+ */
2805
+ (userId: string): Promise<void>;
2806
+ }
2807
+ declare function searchTeam$1(httpClient: HttpClient): SearchTeamSignature;
2808
+ interface SearchTeamSignature {
2809
+ /**
2810
+ * Retrieves all team members of the requesting account, based on the provided filters and free text queries.
2811
+ * > **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.
2812
+ * @param - Filter options.
2813
+ */
2814
+ (options?: SearchTeamOptions | undefined): Promise<SearchTeamResponse & SearchTeamResponseNonNullableFields>;
2815
+ }
2816
+ declare function getRolesInfo$1(httpClient: HttpClient): GetRolesInfoSignature;
2817
+ interface GetRolesInfoSignature {
2818
+ /**
2819
+ * Retrieves all available roles in the requesting account, including predefined and custom roles.
2820
+ * > **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.
2821
+ * @param - Filter options.
2822
+ */
2823
+ (options?: GetRolesInfoOptions | undefined): Promise<GetRolesInfoResponse & GetRolesInfoResponseNonNullableFields>;
2824
+ }
2825
+ declare function updateTeamMemberAssignments$1(httpClient: HttpClient): UpdateTeamMemberAssignmentsSignature;
2826
+ interface UpdateTeamMemberAssignmentsSignature {
2827
+ /**
2828
+ * Updates the assignments of roles and conditions for an existing team member. Changing assignments changes the team member’s access to account assets.
2829
+ * > **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.
2830
+ * @param - ID of team member being affected.
2831
+ * @param - Filter options. The `assignmentIdsToRemove` and `newAssignments` fields **must** be passed.
2832
+ */
2833
+ (userId: string, options: UpdateTeamMemberAssignmentsOptions): Promise<UpdateTeamMemberAssignmentsResponse & UpdateTeamMemberAssignmentsResponseNonNullableFields>;
2834
+ }
2835
+
2836
+ declare const removeMember: MaybeContext<BuildRESTFunction<typeof removeMember$1> & typeof removeMember$1>;
2837
+ declare const searchTeam: MaybeContext<BuildRESTFunction<typeof searchTeam$1> & typeof searchTeam$1>;
2838
+ declare const getRolesInfo: MaybeContext<BuildRESTFunction<typeof getRolesInfo$1> & typeof getRolesInfo$1>;
2839
+ declare const updateTeamMemberAssignments: MaybeContext<BuildRESTFunction<typeof updateTeamMemberAssignments$1> & typeof updateTeamMemberAssignments$1>;
2840
+
2841
+ type index_d$1_AccountInvite = AccountInvite;
2842
+ type index_d$1_AccountResourceContext = AccountResourceContext;
2843
+ type index_d$1_ApiCondition = ApiCondition;
2844
+ type index_d$1_ApiInviteAssignment = ApiInviteAssignment;
2845
+ type index_d$1_ApiPolicy = ApiPolicy;
2846
+ type index_d$1_ApiResource = ApiResource;
2847
+ type index_d$1_AreasFilter = AreasFilter;
2848
+ type index_d$1_AssignedSubject = AssignedSubject;
2849
+ type index_d$1_AssignmentV3 = AssignmentV3;
2850
+ type index_d$1_ChangeRoleRequest = ChangeRoleRequest;
2851
+ type index_d$1_ChangeRoleResponse = ChangeRoleResponse;
2852
+ type index_d$1_ChangeRoleV2Request = ChangeRoleV2Request;
2853
+ type index_d$1_ChangeRoleV2Response = ChangeRoleV2Response;
2854
+ type index_d$1_ConditionOperator = ConditionOperator;
2855
+ type index_d$1_ConditionOperatorOperatorsOneOf = ConditionOperatorOperatorsOneOf;
2856
+ type index_d$1_ConditionType = ConditionType;
2857
+ type index_d$1_ConditionTypeOfOneOf = ConditionTypeOfOneOf;
2858
+ type index_d$1_ConditionValue = ConditionValue;
2859
+ type index_d$1_ConditionValueValueOneOf = ConditionValueValueOneOf;
2860
+ type index_d$1_CreateCustomRoleRequest = CreateCustomRoleRequest;
2861
+ type index_d$1_CreateCustomRoleResponse = CreateCustomRoleResponse;
2862
+ type index_d$1_CustomRole = CustomRole;
2863
+ type index_d$1_DependOnOperator = DependOnOperator;
2864
+ type index_d$1_Direction = Direction;
2865
+ declare const index_d$1_Direction: typeof Direction;
2866
+ type index_d$1_EditorType = EditorType;
2867
+ declare const index_d$1_EditorType: typeof EditorType;
2868
+ type index_d$1_Effect = Effect;
2869
+ declare const index_d$1_Effect: typeof Effect;
2870
+ type index_d$1_EnvironmentCondition = EnvironmentCondition;
2871
+ type index_d$1_EnvironmentConditionConditionOneOf = EnvironmentConditionConditionOneOf;
2872
+ type index_d$1_EqualOperator = EqualOperator;
2873
+ type index_d$1_ExperimentCondition = ExperimentCondition;
2874
+ type index_d$1_ExperimentOperator = ExperimentOperator;
2875
+ type index_d$1_Facet = Facet;
2876
+ type index_d$1_FacetType = FacetType;
2877
+ declare const index_d$1_FacetType: typeof FacetType;
2878
+ type index_d$1_FacetValue = FacetValue;
2879
+ type index_d$1_FolderResource = FolderResource;
2880
+ type index_d$1_FullNameResource = FullNameResource;
2881
+ type index_d$1_FullNameResourceResourceContextOneOf = FullNameResourceResourceContextOneOf;
2882
+ type index_d$1_GetPeopleRequest = GetPeopleRequest;
2883
+ type index_d$1_GetPeopleResponse = GetPeopleResponse;
2884
+ type index_d$1_GetPoliciesRequest = GetPoliciesRequest;
2885
+ type index_d$1_GetPoliciesResponse = GetPoliciesResponse;
2886
+ type index_d$1_GetRolesInfoOptions = GetRolesInfoOptions;
2887
+ type index_d$1_GetRolesInfoRequest = GetRolesInfoRequest;
2888
+ type index_d$1_GetRolesInfoResponse = GetRolesInfoResponse;
2889
+ type index_d$1_GetRolesInfoResponseNonNullableFields = GetRolesInfoResponseNonNullableFields;
2890
+ type index_d$1_GetRolesRequest = GetRolesRequest;
2891
+ type index_d$1_GetRolesResponse = GetRolesResponse;
2892
+ type index_d$1_GetScopesRequest = GetScopesRequest;
2893
+ type index_d$1_GetScopesResponse = GetScopesResponse;
2894
+ type index_d$1_GetSubjectsAssignmentsRequest = GetSubjectsAssignmentsRequest;
2895
+ type index_d$1_GetSubjectsAssignmentsResponse = GetSubjectsAssignmentsResponse;
2896
+ type index_d$1_GetTeamInvitesRequest = GetTeamInvitesRequest;
2897
+ type index_d$1_GetTeamInvitesResponse = GetTeamInvitesResponse;
2898
+ type index_d$1_GetTeamRequest = GetTeamRequest;
2899
+ type index_d$1_GetTeamResponse = GetTeamResponse;
2900
+ type index_d$1_GetTeamV2Response = GetTeamV2Response;
2901
+ type index_d$1_GetUsersRequest = GetUsersRequest;
2902
+ type index_d$1_GetUsersResponse = GetUsersResponse;
2903
+ type index_d$1_Invite = Invite;
2904
+ type index_d$1_InviteAssignment = InviteAssignment;
2905
+ type index_d$1_InviteAssignmentV3 = InviteAssignmentV3;
2906
+ type index_d$1_InviteResourceAssignment = InviteResourceAssignment;
2907
+ type index_d$1_InviteV3 = InviteV3;
2908
+ type index_d$1_JoinedCondition = JoinedCondition;
2909
+ type index_d$1_JoinedConditionOperator = JoinedConditionOperator;
2910
+ declare const index_d$1_JoinedConditionOperator: typeof JoinedConditionOperator;
2911
+ type index_d$1_LikeOperator = LikeOperator;
2912
+ type index_d$1_OrderField = OrderField;
2913
+ declare const index_d$1_OrderField: typeof OrderField;
2914
+ type index_d$1_Ordering = Ordering;
2915
+ type index_d$1_OrganizationResourceContext = OrganizationResourceContext;
1747
2916
  type index_d$1_Paging = Paging;
1748
- type index_d$1_ParseSiteInviteTokenRequest = ParseSiteInviteTokenRequest;
1749
- type index_d$1_ParseSiteInviteTokenResponse = ParseSiteInviteTokenResponse;
1750
- type index_d$1_QuerySiteInvitesRequest = QuerySiteInvitesRequest;
1751
- type index_d$1_QuerySiteInvitesResponse = QuerySiteInvitesResponse;
1752
- type index_d$1_QueryV2 = QueryV2;
1753
- type index_d$1_QueryV2PagingMethodOneOf = QueryV2PagingMethodOneOf;
1754
- type index_d$1_ResendInviteOptions = ResendInviteOptions;
1755
- type index_d$1_ResendSiteInviteRequest = ResendSiteInviteRequest;
1756
- type index_d$1_RevokeSiteInviteRequest = RevokeSiteInviteRequest;
1757
- type index_d$1_RevokeSiteInviteResponse = RevokeSiteInviteResponse;
1758
- type index_d$1_SiteInviteRequest = SiteInviteRequest;
1759
- type index_d$1_SiteInviteResponse = SiteInviteResponse;
1760
- type index_d$1_SiteInviteResponseNonNullableFields = SiteInviteResponseNonNullableFields;
1761
- type index_d$1_SortOrder = SortOrder;
1762
- declare const index_d$1_SortOrder: typeof SortOrder;
1763
- type index_d$1_Sorting = Sorting;
1764
- type index_d$1_UpdateSiteInviteRequest = UpdateSiteInviteRequest;
1765
- type index_d$1_UpdateSiteInviteResponse = UpdateSiteInviteResponse;
1766
- declare const index_d$1_bulkInvite: typeof bulkInvite;
1767
- declare const index_d$1_resendInvite: typeof resendInvite;
1768
- declare const index_d$1_revokeInvite: typeof revokeInvite;
2917
+ type index_d$1_People = People;
2918
+ type index_d$1_PeopleResource = PeopleResource;
2919
+ type index_d$1_PeopleResourceResourceTypeOneOf = PeopleResourceResourceTypeOneOf;
2920
+ type index_d$1_PeopleType = PeopleType;
2921
+ declare const index_d$1_PeopleType: typeof PeopleType;
2922
+ type index_d$1_PermissionScope = PermissionScope;
2923
+ type index_d$1_Person = Person;
2924
+ type index_d$1_PersonPersonOneOf = PersonPersonOneOf;
2925
+ type index_d$1_PolicyCondition = PolicyCondition;
2926
+ type index_d$1_PolicyStatement = PolicyStatement;
2927
+ type index_d$1_PolicyType = PolicyType;
2928
+ declare const index_d$1_PolicyType: typeof PolicyType;
2929
+ type index_d$1_PredefinedRoleV2 = PredefinedRoleV2;
2930
+ type index_d$1_PredefinedRolesArea = PredefinedRolesArea;
2931
+ type index_d$1_RemoveMemberRequest = RemoveMemberRequest;
2932
+ type index_d$1_RemoveMemberResponse = RemoveMemberResponse;
2933
+ type index_d$1_RoleInfo = RoleInfo;
2934
+ type index_d$1_RoleLevel = RoleLevel;
2935
+ declare const index_d$1_RoleLevel: typeof RoleLevel;
2936
+ type index_d$1_RoleLevelRestriction = RoleLevelRestriction;
2937
+ declare const index_d$1_RoleLevelRestriction: typeof RoleLevelRestriction;
2938
+ type index_d$1_RoleVisibility = RoleVisibility;
2939
+ declare const index_d$1_RoleVisibility: typeof RoleVisibility;
2940
+ type index_d$1_RolesInfoFilter = RolesInfoFilter;
2941
+ type index_d$1_ScopeArea = ScopeArea;
2942
+ type index_d$1_ScopeLevel = ScopeLevel;
2943
+ declare const index_d$1_ScopeLevel: typeof ScopeLevel;
2944
+ type index_d$1_SearchTeamOptions = SearchTeamOptions;
2945
+ type index_d$1_SearchTeamRequest = SearchTeamRequest;
2946
+ type index_d$1_SearchTeamResponse = SearchTeamResponse;
2947
+ type index_d$1_SearchTeamResponseNonNullableFields = SearchTeamResponseNonNullableFields;
2948
+ type index_d$1_SimpleCondition = SimpleCondition;
2949
+ type index_d$1_SimpleConditionOperator = SimpleConditionOperator;
2950
+ declare const index_d$1_SimpleConditionOperator: typeof SimpleConditionOperator;
2951
+ type index_d$1_SimpleConditionValue = SimpleConditionValue;
2952
+ type index_d$1_SimpleConditionValueValueOneOf = SimpleConditionValueValueOneOf;
2953
+ type index_d$1_SiteResourceContext = SiteResourceContext;
2954
+ type index_d$1_SubjectAssignments = SubjectAssignments;
2955
+ type index_d$1_TeamMember = TeamMember;
2956
+ type index_d$1_TeamMemberV3 = TeamMemberV3;
2957
+ type index_d$1_TeamMemberV3MembersOneOf = TeamMemberV3MembersOneOf;
2958
+ type index_d$1_UpdateTeamMemberAssignmentsOptions = UpdateTeamMemberAssignmentsOptions;
2959
+ type index_d$1_UpdateTeamMemberAssignmentsRequest = UpdateTeamMemberAssignmentsRequest;
2960
+ type index_d$1_UpdateTeamMemberAssignmentsResponse = UpdateTeamMemberAssignmentsResponse;
2961
+ type index_d$1_UpdateTeamMemberAssignmentsResponseNonNullableFields = UpdateTeamMemberAssignmentsResponseNonNullableFields;
2962
+ type index_d$1_UserV3 = UserV3;
2963
+ type index_d$1_Visibility = Visibility;
2964
+ declare const index_d$1_Visibility: typeof Visibility;
2965
+ declare const index_d$1_getRolesInfo: typeof getRolesInfo;
2966
+ declare const index_d$1_removeMember: typeof removeMember;
2967
+ declare const index_d$1_searchTeam: typeof searchTeam;
2968
+ declare const index_d$1_updateTeamMemberAssignments: typeof updateTeamMemberAssignments;
1769
2969
  declare namespace index_d$1 {
1770
- export { type index_d$1_AcceptSiteInviteRequest as AcceptSiteInviteRequest, type index_d$1_AcceptSiteInviteResponse as AcceptSiteInviteResponse, type index_d$1_BulkInviteOptions as BulkInviteOptions, type index_d$1_BulkSiteInviteRequest as BulkSiteInviteRequest, type index_d$1_BulkSiteInviteResponse as BulkSiteInviteResponse, type index_d$1_BulkSiteInviteResponseNonNullableFields as BulkSiteInviteResponseNonNullableFields, type index_d$1_ContributorLimitation as ContributorLimitation, type index_d$1_CursorPaging as CursorPaging, type index_d$1_GetContributorLimitRequest as GetContributorLimitRequest, type index_d$1_GetContributorLimitResponse as GetContributorLimitResponse, type index_d$1_GetSiteInviteRequest as GetSiteInviteRequest, type index_d$1_GetSiteInviteResponse as GetSiteInviteResponse, type index_d$1_GetSiteInvitesRequest as GetSiteInvitesRequest, type index_d$1_GetSiteInvitesResponse as GetSiteInvitesResponse, InviteStatus$1 as InviteStatus, type index_d$1_Paging as Paging, type index_d$1_ParseSiteInviteTokenRequest as ParseSiteInviteTokenRequest, type index_d$1_ParseSiteInviteTokenResponse as ParseSiteInviteTokenResponse, type index_d$1_QuerySiteInvitesRequest as QuerySiteInvitesRequest, type index_d$1_QuerySiteInvitesResponse as QuerySiteInvitesResponse, type index_d$1_QueryV2 as QueryV2, type index_d$1_QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOf, type index_d$1_ResendInviteOptions as ResendInviteOptions, type index_d$1_ResendSiteInviteRequest as ResendSiteInviteRequest, type index_d$1_RevokeSiteInviteRequest as RevokeSiteInviteRequest, type index_d$1_RevokeSiteInviteResponse as RevokeSiteInviteResponse, type SiteInvite$1 as SiteInvite, type index_d$1_SiteInviteRequest as SiteInviteRequest, type index_d$1_SiteInviteResponse as SiteInviteResponse, type index_d$1_SiteInviteResponseNonNullableFields as SiteInviteResponseNonNullableFields, index_d$1_SortOrder as SortOrder, type index_d$1_Sorting as Sorting, type index_d$1_UpdateSiteInviteRequest as UpdateSiteInviteRequest, type index_d$1_UpdateSiteInviteResponse as UpdateSiteInviteResponse, index_d$1_bulkInvite as bulkInvite, index_d$1_resendInvite as resendInvite, index_d$1_revokeInvite as revokeInvite };
2970
+ 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 };
1771
2971
  }
1772
2972
 
1773
2973
  interface Contributor {
@@ -2320,4 +3520,4 @@ declare namespace index_d {
2320
3520
  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 };
2321
3521
  }
2322
3522
 
2323
- export { index_d$2 as accountInvites, index_d$3 as accounts, index_d as contributors, index_d$1 as siteInvites };
3523
+ export { index_d$3 as accountInvites, index_d$4 as accounts, index_d as contributors, index_d$2 as siteInvites, index_d$1 as users };