@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.
- package/build/cjs/context.d.ts +1 -0
- package/build/cjs/context.js +2 -1
- package/build/cjs/context.js.map +1 -1
- package/build/cjs/index.d.ts +2 -1
- package/build/cjs/index.js +3 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/meta.d.ts +1 -0
- package/build/cjs/meta.js +2 -1
- package/build/cjs/meta.js.map +1 -1
- package/build/es/context.d.ts +1 -0
- package/build/es/context.js +1 -0
- package/build/es/context.js.map +1 -1
- package/build/es/index.d.ts +2 -1
- package/build/es/index.js +2 -1
- package/build/es/index.js.map +1 -1
- package/build/es/meta.d.ts +1 -0
- package/build/es/meta.js +1 -0
- package/build/es/meta.js.map +1 -1
- package/package.json +4 -3
- package/type-bundles/context.bundle.d.ts +1453 -253
- package/type-bundles/index.bundle.d.ts +1453 -253
- package/type-bundles/meta.bundle.d.ts +806 -41
|
@@ -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$
|
|
560
|
+
paging?: Paging$2;
|
|
561
561
|
}
|
|
562
|
-
interface Paging$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
751
|
+
parentAccountInfo?: AccountInfo$2;
|
|
752
752
|
}
|
|
753
|
-
interface AccountInfo$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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 context$
|
|
852
|
-
type context$
|
|
853
|
-
type context$
|
|
854
|
-
type context$
|
|
855
|
-
declare const context$
|
|
856
|
-
type context$
|
|
857
|
-
type context$
|
|
858
|
-
type context$
|
|
859
|
-
declare const context$
|
|
860
|
-
type context$
|
|
861
|
-
type context$
|
|
862
|
-
type context$
|
|
863
|
-
type context$
|
|
864
|
-
type context$
|
|
865
|
-
type context$
|
|
866
|
-
type context$
|
|
867
|
-
type context$
|
|
868
|
-
type context$
|
|
869
|
-
type context$
|
|
870
|
-
type context$
|
|
871
|
-
type context$
|
|
872
|
-
type context$
|
|
873
|
-
type context$
|
|
874
|
-
type context$
|
|
875
|
-
type context$
|
|
876
|
-
type context$
|
|
877
|
-
type context$
|
|
878
|
-
type context$
|
|
879
|
-
type context$
|
|
880
|
-
type context$
|
|
881
|
-
type context$
|
|
882
|
-
type context$
|
|
883
|
-
type context$
|
|
884
|
-
type context$
|
|
885
|
-
type context$
|
|
886
|
-
type context$
|
|
887
|
-
type context$
|
|
888
|
-
type context$
|
|
889
|
-
type context$
|
|
890
|
-
type context$
|
|
891
|
-
type context$
|
|
892
|
-
type context$
|
|
893
|
-
type context$
|
|
894
|
-
type context$
|
|
895
|
-
type context$
|
|
896
|
-
type context$
|
|
897
|
-
type context$
|
|
898
|
-
type context$
|
|
899
|
-
type context$
|
|
900
|
-
declare const context$
|
|
901
|
-
declare const context$
|
|
902
|
-
declare namespace context$
|
|
903
|
-
export { type context$
|
|
904
|
-
}
|
|
905
|
-
|
|
906
|
-
interface AccountInvite {
|
|
851
|
+
type context$4_Account = Account;
|
|
852
|
+
type context$4_AccountProperties = AccountProperties;
|
|
853
|
+
type context$4_AccountResponse = AccountResponse;
|
|
854
|
+
type context$4_AccountStatus = AccountStatus;
|
|
855
|
+
declare const context$4_AccountStatus: typeof AccountStatus;
|
|
856
|
+
type context$4_AccountV2 = AccountV2;
|
|
857
|
+
type context$4_AccountsResponse = AccountsResponse;
|
|
858
|
+
type context$4_CoBranding = CoBranding;
|
|
859
|
+
declare const context$4_CoBranding: typeof CoBranding;
|
|
860
|
+
type context$4_CreateAccountAndAssignUserRequest = CreateAccountAndAssignUserRequest;
|
|
861
|
+
type context$4_CreateAccountForMyUserRequest = CreateAccountForMyUserRequest;
|
|
862
|
+
type context$4_CreateAccountOptions = CreateAccountOptions;
|
|
863
|
+
type context$4_CreateAccountRequest = CreateAccountRequest;
|
|
864
|
+
type context$4_CreateAccountResponse = CreateAccountResponse;
|
|
865
|
+
type context$4_CreateAccountResponseNonNullableFields = CreateAccountResponseNonNullableFields;
|
|
866
|
+
type context$4_CreateAccountTenantRequest = CreateAccountTenantRequest;
|
|
867
|
+
type context$4_CreateAccountTenantResponse = CreateAccountTenantResponse;
|
|
868
|
+
type context$4_DeleteAccountRequest = DeleteAccountRequest;
|
|
869
|
+
type context$4_Email = Email;
|
|
870
|
+
type context$4_EmptyResponse = EmptyResponse;
|
|
871
|
+
type context$4_GetAccountRequest = GetAccountRequest;
|
|
872
|
+
type context$4_GetAccountsRequest = GetAccountsRequest;
|
|
873
|
+
type context$4_GetMyAccountRequest = GetMyAccountRequest;
|
|
874
|
+
type context$4_GetMyUserAccountsRequest = GetMyUserAccountsRequest;
|
|
875
|
+
type context$4_GetParentAccountInfoRequest = GetParentAccountInfoRequest;
|
|
876
|
+
type context$4_GetParentAccountInfoResponse = GetParentAccountInfoResponse;
|
|
877
|
+
type context$4_GetSubAccountsRequest = GetSubAccountsRequest;
|
|
878
|
+
type context$4_GetSubAccountsResponse = GetSubAccountsResponse;
|
|
879
|
+
type context$4_GetUserAccountRequest = GetUserAccountRequest;
|
|
880
|
+
type context$4_GetUserAccountsRequest = GetUserAccountsRequest;
|
|
881
|
+
type context$4_IsTeamRequest = IsTeamRequest;
|
|
882
|
+
type context$4_IsTeamResponse = IsTeamResponse;
|
|
883
|
+
type context$4_ListChildAccountsOptions = ListChildAccountsOptions;
|
|
884
|
+
type context$4_ListChildAccountsRequest = ListChildAccountsRequest;
|
|
885
|
+
type context$4_ListChildAccountsResponse = ListChildAccountsResponse;
|
|
886
|
+
type context$4_ListChildAccountsResponseNonNullableFields = ListChildAccountsResponseNonNullableFields;
|
|
887
|
+
type context$4_MarkAccountFlagRequest = MarkAccountFlagRequest;
|
|
888
|
+
type context$4_MarkAccountFlagRequestFlagOneOf = MarkAccountFlagRequestFlagOneOf;
|
|
889
|
+
type context$4_PagingMetadata = PagingMetadata;
|
|
890
|
+
type context$4_RemoveParent = RemoveParent;
|
|
891
|
+
type context$4_SetIsReadOnlyAccountRequest = SetIsReadOnlyAccountRequest;
|
|
892
|
+
type context$4_SsoIdentity = SsoIdentity;
|
|
893
|
+
type context$4_SubAccountInfo = SubAccountInfo;
|
|
894
|
+
type context$4_UpdateAccountRequest = UpdateAccountRequest;
|
|
895
|
+
type context$4_UpdateParentAccountRequest = UpdateParentAccountRequest;
|
|
896
|
+
type context$4_UpdateParentAccountRequestUpdateOneOf = UpdateParentAccountRequestUpdateOneOf;
|
|
897
|
+
type context$4_UpdateParentAccountResponse = UpdateParentAccountResponse;
|
|
898
|
+
type context$4_UpdateSlugRequest = UpdateSlugRequest;
|
|
899
|
+
type context$4_UserDetails = UserDetails;
|
|
900
|
+
declare const context$4_createAccount: typeof createAccount;
|
|
901
|
+
declare const context$4_listChildAccounts: typeof listChildAccounts;
|
|
902
|
+
declare namespace context$4 {
|
|
903
|
+
export { type context$4_Account as Account, type AccountInfo$2 as AccountInfo, type context$4_AccountProperties as AccountProperties, type context$4_AccountResponse as AccountResponse, context$4_AccountStatus as AccountStatus, type context$4_AccountV2 as AccountV2, type context$4_AccountsResponse as AccountsResponse, context$4_CoBranding as CoBranding, type context$4_CreateAccountAndAssignUserRequest as CreateAccountAndAssignUserRequest, type context$4_CreateAccountForMyUserRequest as CreateAccountForMyUserRequest, type context$4_CreateAccountOptions as CreateAccountOptions, type context$4_CreateAccountRequest as CreateAccountRequest, type context$4_CreateAccountResponse as CreateAccountResponse, type context$4_CreateAccountResponseNonNullableFields as CreateAccountResponseNonNullableFields, type context$4_CreateAccountTenantRequest as CreateAccountTenantRequest, type context$4_CreateAccountTenantResponse as CreateAccountTenantResponse, type context$4_DeleteAccountRequest as DeleteAccountRequest, type context$4_Email as Email, type context$4_EmptyResponse as EmptyResponse, type context$4_GetAccountRequest as GetAccountRequest, type context$4_GetAccountsRequest as GetAccountsRequest, type context$4_GetMyAccountRequest as GetMyAccountRequest, type context$4_GetMyUserAccountsRequest as GetMyUserAccountsRequest, type context$4_GetParentAccountInfoRequest as GetParentAccountInfoRequest, type context$4_GetParentAccountInfoResponse as GetParentAccountInfoResponse, type context$4_GetSubAccountsRequest as GetSubAccountsRequest, type context$4_GetSubAccountsResponse as GetSubAccountsResponse, type context$4_GetUserAccountRequest as GetUserAccountRequest, type context$4_GetUserAccountsRequest as GetUserAccountsRequest, type context$4_IsTeamRequest as IsTeamRequest, type context$4_IsTeamResponse as IsTeamResponse, type context$4_ListChildAccountsOptions as ListChildAccountsOptions, type context$4_ListChildAccountsRequest as ListChildAccountsRequest, type context$4_ListChildAccountsResponse as ListChildAccountsResponse, type context$4_ListChildAccountsResponseNonNullableFields as ListChildAccountsResponseNonNullableFields, type context$4_MarkAccountFlagRequest as MarkAccountFlagRequest, type context$4_MarkAccountFlagRequestFlagOneOf as MarkAccountFlagRequestFlagOneOf, type Paging$2 as Paging, type context$4_PagingMetadata as PagingMetadata, type context$4_RemoveParent as RemoveParent, type context$4_SetIsReadOnlyAccountRequest as SetIsReadOnlyAccountRequest, type context$4_SsoIdentity as SsoIdentity, type context$4_SubAccountInfo as SubAccountInfo, type context$4_UpdateAccountRequest as UpdateAccountRequest, type context$4_UpdateParentAccountRequest as UpdateParentAccountRequest, type context$4_UpdateParentAccountRequestUpdateOneOf as UpdateParentAccountRequestUpdateOneOf, type context$4_UpdateParentAccountResponse as UpdateParentAccountResponse, type context$4_UpdateSlugRequest as UpdateSlugRequest, type User$2 as User, type context$4_UserDetails as UserDetails, context$4_createAccount as createAccount, context$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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
1153
|
+
dependOnSubject?: Subject$2;
|
|
1154
1154
|
}
|
|
1155
|
-
interface Subject$
|
|
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$
|
|
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$
|
|
1161
|
+
context?: SubjectContext$2;
|
|
1162
1162
|
}
|
|
1163
|
-
declare enum SubjectType$
|
|
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$
|
|
1174
|
+
interface SubjectContext$2 {
|
|
1175
1175
|
_id?: string;
|
|
1176
|
-
contextType?: SubjectContextType$
|
|
1176
|
+
contextType?: SubjectContextType$2;
|
|
1177
1177
|
}
|
|
1178
|
-
declare enum SubjectContextType$
|
|
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$
|
|
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$
|
|
1324
|
+
contextType: SubjectContextType$2;
|
|
1325
1325
|
}
|
|
1326
1326
|
interface SubjectNonNullableFields {
|
|
1327
1327
|
_id: string;
|
|
1328
|
-
subjectType: SubjectType$
|
|
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$
|
|
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 context$
|
|
1403
|
-
type context$
|
|
1404
|
-
type context$
|
|
1405
|
-
type context$
|
|
1406
|
-
type context$
|
|
1407
|
-
type context$
|
|
1408
|
-
type context$
|
|
1409
|
-
type context$
|
|
1410
|
-
type context$
|
|
1411
|
-
type context$
|
|
1412
|
-
type context$
|
|
1413
|
-
type context$
|
|
1414
|
-
type context$
|
|
1415
|
-
type context$
|
|
1416
|
-
type context$
|
|
1417
|
-
type context$
|
|
1418
|
-
type context$
|
|
1419
|
-
type context$
|
|
1420
|
-
type context$
|
|
1421
|
-
type context$
|
|
1422
|
-
type context$
|
|
1423
|
-
type context$
|
|
1424
|
-
type context$
|
|
1425
|
-
type context$
|
|
1426
|
-
type context$
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
type context$
|
|
1430
|
-
type context$2_GetAccountInvitesRequest = GetAccountInvitesRequest;
|
|
1431
|
-
type context$2_GetAccountInvitesResponse = GetAccountInvitesResponse;
|
|
1432
|
-
type context$2_InviteAssignment = InviteAssignment;
|
|
1433
|
-
type context$2_InviteFailure = InviteFailure;
|
|
1434
|
-
type context$2_InviteResourceAssignment = InviteResourceAssignment;
|
|
1435
|
-
type context$2_JoinedCondition = JoinedCondition;
|
|
1436
|
-
type context$2_JoinedConditionOperator = JoinedConditionOperator;
|
|
1437
|
-
declare const context$2_JoinedConditionOperator: typeof JoinedConditionOperator;
|
|
1438
|
-
type context$2_LikeOperator = LikeOperator;
|
|
1439
|
-
type context$2_OrganizationResourceContext = OrganizationResourceContext;
|
|
1440
|
-
type context$2_ParseAccountInviteTokenRequest = ParseAccountInviteTokenRequest;
|
|
1441
|
-
type context$2_ParseAccountInviteTokenResponse = ParseAccountInviteTokenResponse;
|
|
1442
|
-
type context$2_PolicyCondition = PolicyCondition;
|
|
1443
|
-
type context$2_ResendAccountInviteRequest = ResendAccountInviteRequest;
|
|
1444
|
-
type context$2_RevokeAccountInviteRequest = RevokeAccountInviteRequest;
|
|
1445
|
-
type context$2_RevokeAccountInviteResponse = RevokeAccountInviteResponse;
|
|
1446
|
-
type context$2_SimpleCondition = SimpleCondition;
|
|
1447
|
-
type context$2_SimpleConditionOperator = SimpleConditionOperator;
|
|
1448
|
-
declare const context$2_SimpleConditionOperator: typeof SimpleConditionOperator;
|
|
1449
|
-
type context$2_SimpleConditionValue = SimpleConditionValue;
|
|
1450
|
-
type context$2_SimpleConditionValueValueOneOf = SimpleConditionValueValueOneOf;
|
|
1451
|
-
type context$2_SiteResourceContext = SiteResourceContext;
|
|
1452
|
-
type context$2_SubjectInviteAssignments = SubjectInviteAssignments;
|
|
1453
|
-
type context$2_UpdateAccountInviteAssignmentsRequest = UpdateAccountInviteAssignmentsRequest;
|
|
1454
|
-
type context$2_UpdateAccountInviteAssignmentsResponse = UpdateAccountInviteAssignmentsResponse;
|
|
1455
|
-
type context$2_UpdateAccountInviteRequest = UpdateAccountInviteRequest;
|
|
1456
|
-
type context$2_UpdateAccountInviteResponse = UpdateAccountInviteResponse;
|
|
1457
|
-
declare const context$2_createInvite: typeof createInvite;
|
|
1458
|
-
declare namespace context$2 {
|
|
1459
|
-
export { type context$2_AcceptAccountInviteRequest as AcceptAccountInviteRequest, type context$2_AcceptAccountInviteResponse as AcceptAccountInviteResponse, type context$2_AccountInvite as AccountInvite, type context$2_AccountInviteRequest as AccountInviteRequest, type context$2_AccountInviteResponse as AccountInviteResponse, type context$2_AccountResourceContext as AccountResourceContext, type context$2_BulkAccountInviteRequest as BulkAccountInviteRequest, type context$2_BulkAccountInviteResponse as BulkAccountInviteResponse, type Condition$1 as Condition, type context$2_ConditionOperator as ConditionOperator, type context$2_ConditionOperatorOperatorsOneOf as ConditionOperatorOperatorsOneOf, type context$2_ConditionType as ConditionType, type context$2_ConditionTypeOfOneOf as ConditionTypeOfOneOf, type context$2_ConditionValue as ConditionValue, type context$2_ConditionValueValueOneOf as ConditionValueValueOneOf, type context$2_CreateInviteOptions as CreateInviteOptions, type context$2_CreateInviteRequest as CreateInviteRequest, type context$2_CreateInviteResponse as CreateInviteResponse, type context$2_CreateInviteResponseNonNullableFields as CreateInviteResponseNonNullableFields, type context$2_DependOnOperator as DependOnOperator, type context$2_EnvironmentCondition as EnvironmentCondition, type context$2_EnvironmentConditionConditionOneOf as EnvironmentConditionConditionOneOf, type context$2_EqualOperator as EqualOperator, type context$2_ExperimentCondition as ExperimentCondition, type context$2_ExperimentOperator as ExperimentOperator, type context$2_FullNameResource as FullNameResource, type context$2_FullNameResourceResourceContextOneOf as FullNameResourceResourceContextOneOf, type context$2_GetAccountInviteRequest as GetAccountInviteRequest, type context$2_GetAccountInviteResponse as GetAccountInviteResponse, type context$2_GetAccountInvitesRequest as GetAccountInvitesRequest, type context$2_GetAccountInvitesResponse as GetAccountInvitesResponse, type context$2_InviteAssignment as InviteAssignment, type context$2_InviteFailure as InviteFailure, type context$2_InviteResourceAssignment as InviteResourceAssignment, InviteStatus$2 as InviteStatus, type context$2_JoinedCondition as JoinedCondition, context$2_JoinedConditionOperator as JoinedConditionOperator, type context$2_LikeOperator as LikeOperator, type context$2_OrganizationResourceContext as OrganizationResourceContext, type context$2_ParseAccountInviteTokenRequest as ParseAccountInviteTokenRequest, type context$2_ParseAccountInviteTokenResponse as ParseAccountInviteTokenResponse, type context$2_PolicyCondition as PolicyCondition, type context$2_ResendAccountInviteRequest as ResendAccountInviteRequest, type Resource$1 as Resource, type context$2_RevokeAccountInviteRequest as RevokeAccountInviteRequest, type context$2_RevokeAccountInviteResponse as RevokeAccountInviteResponse, type context$2_SimpleCondition as SimpleCondition, context$2_SimpleConditionOperator as SimpleConditionOperator, type context$2_SimpleConditionValue as SimpleConditionValue, type context$2_SimpleConditionValueValueOneOf as SimpleConditionValueValueOneOf, type context$2_SiteResourceContext as SiteResourceContext, type Subject$1 as Subject, type SubjectContext$1 as SubjectContext, SubjectContextType$1 as SubjectContextType, type context$2_SubjectInviteAssignments as SubjectInviteAssignments, SubjectType$1 as SubjectType, type context$2_UpdateAccountInviteAssignmentsRequest as UpdateAccountInviteAssignmentsRequest, type context$2_UpdateAccountInviteAssignmentsResponse as UpdateAccountInviteAssignmentsResponse, type context$2_UpdateAccountInviteRequest as UpdateAccountInviteRequest, type context$2_UpdateAccountInviteResponse as UpdateAccountInviteResponse, context$2_createInvite as createInvite };
|
|
1402
|
+
type context$3_AcceptAccountInviteRequest = AcceptAccountInviteRequest;
|
|
1403
|
+
type context$3_AcceptAccountInviteResponse = AcceptAccountInviteResponse;
|
|
1404
|
+
type context$3_AccountInviteRequest = AccountInviteRequest;
|
|
1405
|
+
type context$3_AccountInviteResponse = AccountInviteResponse;
|
|
1406
|
+
type context$3_BulkAccountInviteRequest = BulkAccountInviteRequest;
|
|
1407
|
+
type context$3_BulkAccountInviteResponse = BulkAccountInviteResponse;
|
|
1408
|
+
type context$3_CreateInviteOptions = CreateInviteOptions;
|
|
1409
|
+
type context$3_CreateInviteRequest = CreateInviteRequest;
|
|
1410
|
+
type context$3_CreateInviteResponse = CreateInviteResponse;
|
|
1411
|
+
type context$3_CreateInviteResponseNonNullableFields = CreateInviteResponseNonNullableFields;
|
|
1412
|
+
type context$3_GetAccountInviteRequest = GetAccountInviteRequest;
|
|
1413
|
+
type context$3_GetAccountInviteResponse = GetAccountInviteResponse;
|
|
1414
|
+
type context$3_GetAccountInvitesRequest = GetAccountInvitesRequest;
|
|
1415
|
+
type context$3_GetAccountInvitesResponse = GetAccountInvitesResponse;
|
|
1416
|
+
type context$3_InviteFailure = InviteFailure;
|
|
1417
|
+
type context$3_ParseAccountInviteTokenRequest = ParseAccountInviteTokenRequest;
|
|
1418
|
+
type context$3_ParseAccountInviteTokenResponse = ParseAccountInviteTokenResponse;
|
|
1419
|
+
type context$3_ResendAccountInviteRequest = ResendAccountInviteRequest;
|
|
1420
|
+
type context$3_RevokeAccountInviteRequest = RevokeAccountInviteRequest;
|
|
1421
|
+
type context$3_RevokeAccountInviteResponse = RevokeAccountInviteResponse;
|
|
1422
|
+
type context$3_SubjectInviteAssignments = SubjectInviteAssignments;
|
|
1423
|
+
type context$3_UpdateAccountInviteAssignmentsRequest = UpdateAccountInviteAssignmentsRequest;
|
|
1424
|
+
type context$3_UpdateAccountInviteAssignmentsResponse = UpdateAccountInviteAssignmentsResponse;
|
|
1425
|
+
type context$3_UpdateAccountInviteRequest = UpdateAccountInviteRequest;
|
|
1426
|
+
type context$3_UpdateAccountInviteResponse = UpdateAccountInviteResponse;
|
|
1427
|
+
declare const context$3_createInvite: typeof createInvite;
|
|
1428
|
+
declare namespace context$3 {
|
|
1429
|
+
export { type context$3_AcceptAccountInviteRequest as AcceptAccountInviteRequest, type context$3_AcceptAccountInviteResponse as AcceptAccountInviteResponse, type AccountInvite$1 as AccountInvite, type context$3_AccountInviteRequest as AccountInviteRequest, type context$3_AccountInviteResponse as AccountInviteResponse, type AccountResourceContext$1 as AccountResourceContext, type context$3_BulkAccountInviteRequest as BulkAccountInviteRequest, type context$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 context$3_CreateInviteOptions as CreateInviteOptions, type context$3_CreateInviteRequest as CreateInviteRequest, type context$3_CreateInviteResponse as CreateInviteResponse, type context$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 context$3_GetAccountInviteRequest as GetAccountInviteRequest, type context$3_GetAccountInviteResponse as GetAccountInviteResponse, type context$3_GetAccountInvitesRequest as GetAccountInvitesRequest, type context$3_GetAccountInvitesResponse as GetAccountInvitesResponse, type InviteAssignment$1 as InviteAssignment, type context$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 context$3_ParseAccountInviteTokenRequest as ParseAccountInviteTokenRequest, type context$3_ParseAccountInviteTokenResponse as ParseAccountInviteTokenResponse, type PolicyCondition$1 as PolicyCondition, type context$3_ResendAccountInviteRequest as ResendAccountInviteRequest, type Resource$2 as Resource, type context$3_RevokeAccountInviteRequest as RevokeAccountInviteRequest, type context$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 context$3_SubjectInviteAssignments as SubjectInviteAssignments, SubjectType$2 as SubjectType, type context$3_UpdateAccountInviteAssignmentsRequest as UpdateAccountInviteAssignmentsRequest, type context$3_UpdateAccountInviteAssignmentsResponse as UpdateAccountInviteAssignmentsResponse, type context$3_UpdateAccountInviteRequest as UpdateAccountInviteRequest, type context$3_UpdateAccountInviteResponse as UpdateAccountInviteResponse, context$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$
|
|
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$
|
|
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$
|
|
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$
|
|
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 context$
|
|
1734
|
-
type context$
|
|
1735
|
-
type context$
|
|
1736
|
-
type context$
|
|
1737
|
-
type context$
|
|
1738
|
-
type context$
|
|
1739
|
-
type context$
|
|
1740
|
-
type context$
|
|
1741
|
-
type context$
|
|
1742
|
-
type context$
|
|
1743
|
-
type context$
|
|
1744
|
-
type context$
|
|
1745
|
-
type context$
|
|
1746
|
-
type context$
|
|
1703
|
+
type context$2_AcceptSiteInviteRequest = AcceptSiteInviteRequest;
|
|
1704
|
+
type context$2_AcceptSiteInviteResponse = AcceptSiteInviteResponse;
|
|
1705
|
+
type context$2_BulkInviteOptions = BulkInviteOptions;
|
|
1706
|
+
type context$2_BulkSiteInviteRequest = BulkSiteInviteRequest;
|
|
1707
|
+
type context$2_BulkSiteInviteResponse = BulkSiteInviteResponse;
|
|
1708
|
+
type context$2_BulkSiteInviteResponseNonNullableFields = BulkSiteInviteResponseNonNullableFields;
|
|
1709
|
+
type context$2_ContributorLimitation = ContributorLimitation;
|
|
1710
|
+
type context$2_CursorPaging = CursorPaging;
|
|
1711
|
+
type context$2_GetContributorLimitRequest = GetContributorLimitRequest;
|
|
1712
|
+
type context$2_GetContributorLimitResponse = GetContributorLimitResponse;
|
|
1713
|
+
type context$2_GetSiteInviteRequest = GetSiteInviteRequest;
|
|
1714
|
+
type context$2_GetSiteInviteResponse = GetSiteInviteResponse;
|
|
1715
|
+
type context$2_GetSiteInvitesRequest = GetSiteInvitesRequest;
|
|
1716
|
+
type context$2_GetSiteInvitesResponse = GetSiteInvitesResponse;
|
|
1717
|
+
type context$2_ParseSiteInviteTokenRequest = ParseSiteInviteTokenRequest;
|
|
1718
|
+
type context$2_ParseSiteInviteTokenResponse = ParseSiteInviteTokenResponse;
|
|
1719
|
+
type context$2_QuerySiteInvitesRequest = QuerySiteInvitesRequest;
|
|
1720
|
+
type context$2_QuerySiteInvitesResponse = QuerySiteInvitesResponse;
|
|
1721
|
+
type context$2_QueryV2 = QueryV2;
|
|
1722
|
+
type context$2_QueryV2PagingMethodOneOf = QueryV2PagingMethodOneOf;
|
|
1723
|
+
type context$2_ResendInviteOptions = ResendInviteOptions;
|
|
1724
|
+
type context$2_ResendSiteInviteRequest = ResendSiteInviteRequest;
|
|
1725
|
+
type context$2_RevokeSiteInviteRequest = RevokeSiteInviteRequest;
|
|
1726
|
+
type context$2_RevokeSiteInviteResponse = RevokeSiteInviteResponse;
|
|
1727
|
+
type context$2_SiteInviteRequest = SiteInviteRequest;
|
|
1728
|
+
type context$2_SiteInviteResponse = SiteInviteResponse;
|
|
1729
|
+
type context$2_SiteInviteResponseNonNullableFields = SiteInviteResponseNonNullableFields;
|
|
1730
|
+
type context$2_SortOrder = SortOrder;
|
|
1731
|
+
declare const context$2_SortOrder: typeof SortOrder;
|
|
1732
|
+
type context$2_Sorting = Sorting;
|
|
1733
|
+
type context$2_UpdateSiteInviteRequest = UpdateSiteInviteRequest;
|
|
1734
|
+
type context$2_UpdateSiteInviteResponse = UpdateSiteInviteResponse;
|
|
1735
|
+
declare const context$2_bulkInvite: typeof bulkInvite;
|
|
1736
|
+
declare const context$2_resendInvite: typeof resendInvite;
|
|
1737
|
+
declare const context$2_revokeInvite: typeof revokeInvite;
|
|
1738
|
+
declare namespace context$2 {
|
|
1739
|
+
export { type context$2_AcceptSiteInviteRequest as AcceptSiteInviteRequest, type context$2_AcceptSiteInviteResponse as AcceptSiteInviteResponse, type context$2_BulkInviteOptions as BulkInviteOptions, type context$2_BulkSiteInviteRequest as BulkSiteInviteRequest, type context$2_BulkSiteInviteResponse as BulkSiteInviteResponse, type context$2_BulkSiteInviteResponseNonNullableFields as BulkSiteInviteResponseNonNullableFields, type context$2_ContributorLimitation as ContributorLimitation, type context$2_CursorPaging as CursorPaging, type context$2_GetContributorLimitRequest as GetContributorLimitRequest, type context$2_GetContributorLimitResponse as GetContributorLimitResponse, type context$2_GetSiteInviteRequest as GetSiteInviteRequest, type context$2_GetSiteInviteResponse as GetSiteInviteResponse, type context$2_GetSiteInvitesRequest as GetSiteInvitesRequest, type context$2_GetSiteInvitesResponse as GetSiteInvitesResponse, InviteStatus$2 as InviteStatus, type Paging$1 as Paging, type context$2_ParseSiteInviteTokenRequest as ParseSiteInviteTokenRequest, type context$2_ParseSiteInviteTokenResponse as ParseSiteInviteTokenResponse, type context$2_QuerySiteInvitesRequest as QuerySiteInvitesRequest, type context$2_QuerySiteInvitesResponse as QuerySiteInvitesResponse, type context$2_QueryV2 as QueryV2, type context$2_QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOf, type context$2_ResendInviteOptions as ResendInviteOptions, type context$2_ResendSiteInviteRequest as ResendSiteInviteRequest, type context$2_RevokeSiteInviteRequest as RevokeSiteInviteRequest, type context$2_RevokeSiteInviteResponse as RevokeSiteInviteResponse, type SiteInvite$1 as SiteInvite, type context$2_SiteInviteRequest as SiteInviteRequest, type context$2_SiteInviteResponse as SiteInviteResponse, type context$2_SiteInviteResponseNonNullableFields as SiteInviteResponseNonNullableFields, context$2_SortOrder as SortOrder, type context$2_Sorting as Sorting, type context$2_UpdateSiteInviteRequest as UpdateSiteInviteRequest, type context$2_UpdateSiteInviteResponse as UpdateSiteInviteResponse, context$2_bulkInvite as bulkInvite, context$2_resendInvite as resendInvite, context$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 context$1_AccountInvite = AccountInvite;
|
|
2842
|
+
type context$1_AccountResourceContext = AccountResourceContext;
|
|
2843
|
+
type context$1_ApiCondition = ApiCondition;
|
|
2844
|
+
type context$1_ApiInviteAssignment = ApiInviteAssignment;
|
|
2845
|
+
type context$1_ApiPolicy = ApiPolicy;
|
|
2846
|
+
type context$1_ApiResource = ApiResource;
|
|
2847
|
+
type context$1_AreasFilter = AreasFilter;
|
|
2848
|
+
type context$1_AssignedSubject = AssignedSubject;
|
|
2849
|
+
type context$1_AssignmentV3 = AssignmentV3;
|
|
2850
|
+
type context$1_ChangeRoleRequest = ChangeRoleRequest;
|
|
2851
|
+
type context$1_ChangeRoleResponse = ChangeRoleResponse;
|
|
2852
|
+
type context$1_ChangeRoleV2Request = ChangeRoleV2Request;
|
|
2853
|
+
type context$1_ChangeRoleV2Response = ChangeRoleV2Response;
|
|
2854
|
+
type context$1_ConditionOperator = ConditionOperator;
|
|
2855
|
+
type context$1_ConditionOperatorOperatorsOneOf = ConditionOperatorOperatorsOneOf;
|
|
2856
|
+
type context$1_ConditionType = ConditionType;
|
|
2857
|
+
type context$1_ConditionTypeOfOneOf = ConditionTypeOfOneOf;
|
|
2858
|
+
type context$1_ConditionValue = ConditionValue;
|
|
2859
|
+
type context$1_ConditionValueValueOneOf = ConditionValueValueOneOf;
|
|
2860
|
+
type context$1_CreateCustomRoleRequest = CreateCustomRoleRequest;
|
|
2861
|
+
type context$1_CreateCustomRoleResponse = CreateCustomRoleResponse;
|
|
2862
|
+
type context$1_CustomRole = CustomRole;
|
|
2863
|
+
type context$1_DependOnOperator = DependOnOperator;
|
|
2864
|
+
type context$1_Direction = Direction;
|
|
2865
|
+
declare const context$1_Direction: typeof Direction;
|
|
2866
|
+
type context$1_EditorType = EditorType;
|
|
2867
|
+
declare const context$1_EditorType: typeof EditorType;
|
|
2868
|
+
type context$1_Effect = Effect;
|
|
2869
|
+
declare const context$1_Effect: typeof Effect;
|
|
2870
|
+
type context$1_EnvironmentCondition = EnvironmentCondition;
|
|
2871
|
+
type context$1_EnvironmentConditionConditionOneOf = EnvironmentConditionConditionOneOf;
|
|
2872
|
+
type context$1_EqualOperator = EqualOperator;
|
|
2873
|
+
type context$1_ExperimentCondition = ExperimentCondition;
|
|
2874
|
+
type context$1_ExperimentOperator = ExperimentOperator;
|
|
2875
|
+
type context$1_Facet = Facet;
|
|
2876
|
+
type context$1_FacetType = FacetType;
|
|
2877
|
+
declare const context$1_FacetType: typeof FacetType;
|
|
2878
|
+
type context$1_FacetValue = FacetValue;
|
|
2879
|
+
type context$1_FolderResource = FolderResource;
|
|
2880
|
+
type context$1_FullNameResource = FullNameResource;
|
|
2881
|
+
type context$1_FullNameResourceResourceContextOneOf = FullNameResourceResourceContextOneOf;
|
|
2882
|
+
type context$1_GetPeopleRequest = GetPeopleRequest;
|
|
2883
|
+
type context$1_GetPeopleResponse = GetPeopleResponse;
|
|
2884
|
+
type context$1_GetPoliciesRequest = GetPoliciesRequest;
|
|
2885
|
+
type context$1_GetPoliciesResponse = GetPoliciesResponse;
|
|
2886
|
+
type context$1_GetRolesInfoOptions = GetRolesInfoOptions;
|
|
2887
|
+
type context$1_GetRolesInfoRequest = GetRolesInfoRequest;
|
|
2888
|
+
type context$1_GetRolesInfoResponse = GetRolesInfoResponse;
|
|
2889
|
+
type context$1_GetRolesInfoResponseNonNullableFields = GetRolesInfoResponseNonNullableFields;
|
|
2890
|
+
type context$1_GetRolesRequest = GetRolesRequest;
|
|
2891
|
+
type context$1_GetRolesResponse = GetRolesResponse;
|
|
2892
|
+
type context$1_GetScopesRequest = GetScopesRequest;
|
|
2893
|
+
type context$1_GetScopesResponse = GetScopesResponse;
|
|
2894
|
+
type context$1_GetSubjectsAssignmentsRequest = GetSubjectsAssignmentsRequest;
|
|
2895
|
+
type context$1_GetSubjectsAssignmentsResponse = GetSubjectsAssignmentsResponse;
|
|
2896
|
+
type context$1_GetTeamInvitesRequest = GetTeamInvitesRequest;
|
|
2897
|
+
type context$1_GetTeamInvitesResponse = GetTeamInvitesResponse;
|
|
2898
|
+
type context$1_GetTeamRequest = GetTeamRequest;
|
|
2899
|
+
type context$1_GetTeamResponse = GetTeamResponse;
|
|
2900
|
+
type context$1_GetTeamV2Response = GetTeamV2Response;
|
|
2901
|
+
type context$1_GetUsersRequest = GetUsersRequest;
|
|
2902
|
+
type context$1_GetUsersResponse = GetUsersResponse;
|
|
2903
|
+
type context$1_Invite = Invite;
|
|
2904
|
+
type context$1_InviteAssignment = InviteAssignment;
|
|
2905
|
+
type context$1_InviteAssignmentV3 = InviteAssignmentV3;
|
|
2906
|
+
type context$1_InviteResourceAssignment = InviteResourceAssignment;
|
|
2907
|
+
type context$1_InviteV3 = InviteV3;
|
|
2908
|
+
type context$1_JoinedCondition = JoinedCondition;
|
|
2909
|
+
type context$1_JoinedConditionOperator = JoinedConditionOperator;
|
|
2910
|
+
declare const context$1_JoinedConditionOperator: typeof JoinedConditionOperator;
|
|
2911
|
+
type context$1_LikeOperator = LikeOperator;
|
|
2912
|
+
type context$1_OrderField = OrderField;
|
|
2913
|
+
declare const context$1_OrderField: typeof OrderField;
|
|
2914
|
+
type context$1_Ordering = Ordering;
|
|
2915
|
+
type context$1_OrganizationResourceContext = OrganizationResourceContext;
|
|
1747
2916
|
type context$1_Paging = Paging;
|
|
1748
|
-
type context$
|
|
1749
|
-
type context$
|
|
1750
|
-
type context$
|
|
1751
|
-
type context$
|
|
1752
|
-
|
|
1753
|
-
type context$
|
|
1754
|
-
type context$
|
|
1755
|
-
type context$
|
|
1756
|
-
type context$
|
|
1757
|
-
type context$
|
|
1758
|
-
type context$
|
|
1759
|
-
|
|
1760
|
-
type context$
|
|
1761
|
-
type context$
|
|
1762
|
-
|
|
1763
|
-
type context$
|
|
1764
|
-
type context$
|
|
1765
|
-
type context$
|
|
1766
|
-
declare const context$
|
|
1767
|
-
|
|
1768
|
-
declare const context$
|
|
2917
|
+
type context$1_People = People;
|
|
2918
|
+
type context$1_PeopleResource = PeopleResource;
|
|
2919
|
+
type context$1_PeopleResourceResourceTypeOneOf = PeopleResourceResourceTypeOneOf;
|
|
2920
|
+
type context$1_PeopleType = PeopleType;
|
|
2921
|
+
declare const context$1_PeopleType: typeof PeopleType;
|
|
2922
|
+
type context$1_PermissionScope = PermissionScope;
|
|
2923
|
+
type context$1_Person = Person;
|
|
2924
|
+
type context$1_PersonPersonOneOf = PersonPersonOneOf;
|
|
2925
|
+
type context$1_PolicyCondition = PolicyCondition;
|
|
2926
|
+
type context$1_PolicyStatement = PolicyStatement;
|
|
2927
|
+
type context$1_PolicyType = PolicyType;
|
|
2928
|
+
declare const context$1_PolicyType: typeof PolicyType;
|
|
2929
|
+
type context$1_PredefinedRoleV2 = PredefinedRoleV2;
|
|
2930
|
+
type context$1_PredefinedRolesArea = PredefinedRolesArea;
|
|
2931
|
+
type context$1_RemoveMemberRequest = RemoveMemberRequest;
|
|
2932
|
+
type context$1_RemoveMemberResponse = RemoveMemberResponse;
|
|
2933
|
+
type context$1_RoleInfo = RoleInfo;
|
|
2934
|
+
type context$1_RoleLevel = RoleLevel;
|
|
2935
|
+
declare const context$1_RoleLevel: typeof RoleLevel;
|
|
2936
|
+
type context$1_RoleLevelRestriction = RoleLevelRestriction;
|
|
2937
|
+
declare const context$1_RoleLevelRestriction: typeof RoleLevelRestriction;
|
|
2938
|
+
type context$1_RoleVisibility = RoleVisibility;
|
|
2939
|
+
declare const context$1_RoleVisibility: typeof RoleVisibility;
|
|
2940
|
+
type context$1_RolesInfoFilter = RolesInfoFilter;
|
|
2941
|
+
type context$1_ScopeArea = ScopeArea;
|
|
2942
|
+
type context$1_ScopeLevel = ScopeLevel;
|
|
2943
|
+
declare const context$1_ScopeLevel: typeof ScopeLevel;
|
|
2944
|
+
type context$1_SearchTeamOptions = SearchTeamOptions;
|
|
2945
|
+
type context$1_SearchTeamRequest = SearchTeamRequest;
|
|
2946
|
+
type context$1_SearchTeamResponse = SearchTeamResponse;
|
|
2947
|
+
type context$1_SearchTeamResponseNonNullableFields = SearchTeamResponseNonNullableFields;
|
|
2948
|
+
type context$1_SimpleCondition = SimpleCondition;
|
|
2949
|
+
type context$1_SimpleConditionOperator = SimpleConditionOperator;
|
|
2950
|
+
declare const context$1_SimpleConditionOperator: typeof SimpleConditionOperator;
|
|
2951
|
+
type context$1_SimpleConditionValue = SimpleConditionValue;
|
|
2952
|
+
type context$1_SimpleConditionValueValueOneOf = SimpleConditionValueValueOneOf;
|
|
2953
|
+
type context$1_SiteResourceContext = SiteResourceContext;
|
|
2954
|
+
type context$1_SubjectAssignments = SubjectAssignments;
|
|
2955
|
+
type context$1_TeamMember = TeamMember;
|
|
2956
|
+
type context$1_TeamMemberV3 = TeamMemberV3;
|
|
2957
|
+
type context$1_TeamMemberV3MembersOneOf = TeamMemberV3MembersOneOf;
|
|
2958
|
+
type context$1_UpdateTeamMemberAssignmentsOptions = UpdateTeamMemberAssignmentsOptions;
|
|
2959
|
+
type context$1_UpdateTeamMemberAssignmentsRequest = UpdateTeamMemberAssignmentsRequest;
|
|
2960
|
+
type context$1_UpdateTeamMemberAssignmentsResponse = UpdateTeamMemberAssignmentsResponse;
|
|
2961
|
+
type context$1_UpdateTeamMemberAssignmentsResponseNonNullableFields = UpdateTeamMemberAssignmentsResponseNonNullableFields;
|
|
2962
|
+
type context$1_UserV3 = UserV3;
|
|
2963
|
+
type context$1_Visibility = Visibility;
|
|
2964
|
+
declare const context$1_Visibility: typeof Visibility;
|
|
2965
|
+
declare const context$1_getRolesInfo: typeof getRolesInfo;
|
|
2966
|
+
declare const context$1_removeMember: typeof removeMember;
|
|
2967
|
+
declare const context$1_searchTeam: typeof searchTeam;
|
|
2968
|
+
declare const context$1_updateTeamMemberAssignments: typeof updateTeamMemberAssignments;
|
|
1769
2969
|
declare namespace context$1 {
|
|
1770
|
-
export { type context$
|
|
2970
|
+
export { type AccountInfo$1 as AccountInfo, type context$1_AccountInvite as AccountInvite, type context$1_AccountResourceContext as AccountResourceContext, type context$1_ApiCondition as ApiCondition, type context$1_ApiInviteAssignment as ApiInviteAssignment, type context$1_ApiPolicy as ApiPolicy, type context$1_ApiResource as ApiResource, type context$1_AreasFilter as AreasFilter, type AssignedPolicy$1 as AssignedPolicy, type context$1_AssignedSubject as AssignedSubject, type Assignment$1 as Assignment, type context$1_AssignmentV3 as AssignmentV3, type context$1_ChangeRoleRequest as ChangeRoleRequest, type context$1_ChangeRoleResponse as ChangeRoleResponse, type context$1_ChangeRoleV2Request as ChangeRoleV2Request, type context$1_ChangeRoleV2Response as ChangeRoleV2Response, type CompanionResource$1 as CompanionResource, type Condition$1 as Condition, ConditionAttributeType$1 as ConditionAttributeType, type context$1_ConditionOperator as ConditionOperator, type context$1_ConditionOperatorOperatorsOneOf as ConditionOperatorOperatorsOneOf, type context$1_ConditionType as ConditionType, type context$1_ConditionTypeOfOneOf as ConditionTypeOfOneOf, type context$1_ConditionValue as ConditionValue, type context$1_ConditionValueValueOneOf as ConditionValueValueOneOf, type Conditions$1 as Conditions, type Contributor$1 as Contributor, type context$1_CreateCustomRoleRequest as CreateCustomRoleRequest, type context$1_CreateCustomRoleResponse as CreateCustomRoleResponse, type context$1_CustomRole as CustomRole, type context$1_DependOnOperator as DependOnOperator, context$1_Direction as Direction, context$1_EditorType as EditorType, context$1_Effect as Effect, type context$1_EnvironmentCondition as EnvironmentCondition, type context$1_EnvironmentConditionConditionOneOf as EnvironmentConditionConditionOneOf, type context$1_EqualOperator as EqualOperator, type context$1_ExperimentCondition as ExperimentCondition, type context$1_ExperimentOperator as ExperimentOperator, type context$1_Facet as Facet, context$1_FacetType as FacetType, type context$1_FacetValue as FacetValue, type context$1_FolderResource as FolderResource, type context$1_FullNameResource as FullNameResource, type context$1_FullNameResourceResourceContextOneOf as FullNameResourceResourceContextOneOf, type context$1_GetPeopleRequest as GetPeopleRequest, type context$1_GetPeopleResponse as GetPeopleResponse, type context$1_GetPoliciesRequest as GetPoliciesRequest, type context$1_GetPoliciesResponse as GetPoliciesResponse, type context$1_GetRolesInfoOptions as GetRolesInfoOptions, type context$1_GetRolesInfoRequest as GetRolesInfoRequest, type context$1_GetRolesInfoResponse as GetRolesInfoResponse, type context$1_GetRolesInfoResponseNonNullableFields as GetRolesInfoResponseNonNullableFields, type context$1_GetRolesRequest as GetRolesRequest, type context$1_GetRolesResponse as GetRolesResponse, type context$1_GetScopesRequest as GetScopesRequest, type context$1_GetScopesResponse as GetScopesResponse, type context$1_GetSubjectsAssignmentsRequest as GetSubjectsAssignmentsRequest, type context$1_GetSubjectsAssignmentsResponse as GetSubjectsAssignmentsResponse, type context$1_GetTeamInvitesRequest as GetTeamInvitesRequest, type context$1_GetTeamInvitesResponse as GetTeamInvitesResponse, type context$1_GetTeamRequest as GetTeamRequest, type context$1_GetTeamResponse as GetTeamResponse, type context$1_GetTeamV2Response as GetTeamV2Response, type context$1_GetUsersRequest as GetUsersRequest, type context$1_GetUsersResponse as GetUsersResponse, type context$1_Invite as Invite, type context$1_InviteAssignment as InviteAssignment, type context$1_InviteAssignmentV3 as InviteAssignmentV3, type context$1_InviteResourceAssignment as InviteResourceAssignment, InviteStatus$1 as InviteStatus, type context$1_InviteV3 as InviteV3, type context$1_JoinedCondition as JoinedCondition, context$1_JoinedConditionOperator as JoinedConditionOperator, type context$1_LikeOperator as LikeOperator, type Name$1 as Name, context$1_OrderField as OrderField, type context$1_Ordering as Ordering, type context$1_OrganizationResourceContext as OrganizationResourceContext, type context$1_Paging as Paging, type context$1_People as People, type context$1_PeopleResource as PeopleResource, type context$1_PeopleResourceResourceTypeOneOf as PeopleResourceResourceTypeOneOf, context$1_PeopleType as PeopleType, type context$1_PermissionScope as PermissionScope, type context$1_Person as Person, type PersonMetaData$1 as PersonMetaData, type context$1_PersonPersonOneOf as PersonPersonOneOf, type Policy$1 as Policy, type context$1_PolicyCondition as PolicyCondition, type context$1_PolicyStatement as PolicyStatement, context$1_PolicyType as PolicyType, type PredefinedRole$1 as PredefinedRole, type context$1_PredefinedRoleV2 as PredefinedRoleV2, type PredefinedRoles$1 as PredefinedRoles, type context$1_PredefinedRolesArea as PredefinedRolesArea, type context$1_RemoveMemberRequest as RemoveMemberRequest, type context$1_RemoveMemberResponse as RemoveMemberResponse, type Resource$1 as Resource, ResourceType$1 as ResourceType, type Restriction$1 as Restriction, type RestrictionRestrictionsOneOf$1 as RestrictionRestrictionsOneOf, type Role$1 as Role, type context$1_RoleInfo as RoleInfo, context$1_RoleLevel as RoleLevel, context$1_RoleLevelRestriction as RoleLevelRestriction, context$1_RoleVisibility as RoleVisibility, type context$1_RolesInfoFilter as RolesInfoFilter, type context$1_ScopeArea as ScopeArea, context$1_ScopeLevel as ScopeLevel, type context$1_SearchTeamOptions as SearchTeamOptions, type context$1_SearchTeamRequest as SearchTeamRequest, type context$1_SearchTeamResponse as SearchTeamResponse, type context$1_SearchTeamResponseNonNullableFields as SearchTeamResponseNonNullableFields, type context$1_SimpleCondition as SimpleCondition, context$1_SimpleConditionOperator as SimpleConditionOperator, type context$1_SimpleConditionValue as SimpleConditionValue, type context$1_SimpleConditionValueValueOneOf as SimpleConditionValueValueOneOf, type context$1_SiteResourceContext as SiteResourceContext, type SiteRestriction$1 as SiteRestriction, type Subject$1 as Subject, type context$1_SubjectAssignments as SubjectAssignments, type SubjectContext$1 as SubjectContext, SubjectContextType$1 as SubjectContextType, SubjectType$1 as SubjectType, type context$1_TeamMember as TeamMember, type context$1_TeamMemberV3 as TeamMemberV3, type context$1_TeamMemberV3MembersOneOf as TeamMemberV3MembersOneOf, type context$1_UpdateTeamMemberAssignmentsOptions as UpdateTeamMemberAssignmentsOptions, type context$1_UpdateTeamMemberAssignmentsRequest as UpdateTeamMemberAssignmentsRequest, type context$1_UpdateTeamMemberAssignmentsResponse as UpdateTeamMemberAssignmentsResponse, type context$1_UpdateTeamMemberAssignmentsResponseNonNullableFields as UpdateTeamMemberAssignmentsResponseNonNullableFields, type User$1 as User, type context$1_UserV3 as UserV3, context$1_Visibility as Visibility, context$1_getRolesInfo as getRolesInfo, context$1_removeMember as removeMember, context$1_searchTeam as searchTeam, context$1_updateTeamMemberAssignments as updateTeamMemberAssignments };
|
|
1771
2971
|
}
|
|
1772
2972
|
|
|
1773
2973
|
interface Contributor {
|
|
@@ -2320,4 +3520,4 @@ declare namespace context {
|
|
|
2320
3520
|
export { type context_AccountInfo as AccountInfo, type context_AppInvite as AppInvite, type context_AssignedPolicy as AssignedPolicy, type context_Assignment as Assignment, type context_BulkGetUserRolesOnSiteRequest as BulkGetUserRolesOnSiteRequest, type context_BulkGetUserRolesOnSiteResponse as BulkGetUserRolesOnSiteResponse, type context_ChangeContributorRoleRequest as ChangeContributorRoleRequest, type context_ChangeContributorRoleResponse as ChangeContributorRoleResponse, type context_ChangeContributorRoleResponseNonNullableFields as ChangeContributorRoleResponseNonNullableFields, type context_ChangeRoleOptions as ChangeRoleOptions, type context_CompanionResource as CompanionResource, type context_Condition as Condition, context_ConditionAttributeType as ConditionAttributeType, type context_Conditions as Conditions, type context_Contributor as Contributor, type context_ContributorLimit as ContributorLimit, type context_ContributorV2 as ContributorV2, type context_ContributorsQuota as ContributorsQuota, type context_ContributorsQuotaOptionsOneOf as ContributorsQuotaOptionsOneOf, context_FieldSet as FieldSet, type context_GetAppContributorsRequest as GetAppContributorsRequest, type context_GetAppContributorsResponse as GetAppContributorsResponse, type context_GetContributorsQuotaRequest as GetContributorsQuotaRequest, type context_GetContributorsQuotaResponse as GetContributorsQuotaResponse, type context_GetCurrentUserRolesRequest as GetCurrentUserRolesRequest, type context_GetCurrentUserRolesResponse as GetCurrentUserRolesResponse, type context_GetSiteContributorsRequest as GetSiteContributorsRequest, type context_GetSiteContributorsResponse as GetSiteContributorsResponse, type context_GetSiteContributorsV2Request as GetSiteContributorsV2Request, type context_GetSiteContributorsV2Response as GetSiteContributorsV2Response, type context_HandleSiteTransferRequest as HandleSiteTransferRequest, type context_HandleSiteTransferResponse as HandleSiteTransferResponse, context_InviteStatus as InviteStatus, type context_LimitedOptions as LimitedOptions, type context_LocalizedRole as LocalizedRole, type context_Name as Name, type context_PendingOwner as PendingOwner, type context_PersonMetaData as PersonMetaData, type context_Policy as Policy, type context_PredefinedRole as PredefinedRole, type context_PredefinedRoles as PredefinedRoles, type context_QuerySiteContributorsFilter as QuerySiteContributorsFilter, type context_QuerySiteContributorsOptions as QuerySiteContributorsOptions, type context_QuerySiteContributorsRequest as QuerySiteContributorsRequest, type context_QuerySiteContributorsResponse as QuerySiteContributorsResponse, type context_Resource as Resource, context_ResourceType as ResourceType, type context_Restriction as Restriction, type context_RestrictionRestrictionsOneOf as RestrictionRestrictionsOneOf, type context_Role as Role, type context_SiteInvite as SiteInvite, type context_SiteRestriction as SiteRestriction, type context_SiteRoleAssignment as SiteRoleAssignment, type context_Subject as Subject, type context_SubjectContext as SubjectContext, context_SubjectContextType as SubjectContextType, context_SubjectType as SubjectType, type context_Team as Team, context_Type as Type, type context_User as User, type context_UserLocalizedRoles as UserLocalizedRoles, type context_UserSubject as UserSubject, context_changeRole as changeRole, context_querySiteContributors as querySiteContributors };
|
|
2321
3521
|
}
|
|
2322
3522
|
|
|
2323
|
-
export { context$
|
|
3523
|
+
export { context$3 as accountInvites, context$4 as accounts, context as contributors, context$2 as siteInvites, context$1 as users };
|