@wix/auto_sdk_user-management_users 1.0.13 → 1.0.15
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/index.d.ts +48 -0
- package/build/{identity-roles-v1-user-users.universal-CDCph1O2.d.mts → cjs/index.typings.d.ts} +44 -1
- package/build/cjs/index.typings.js +589 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/{internal → cjs}/meta.d.ts +2 -1
- package/build/es/index.d.mts +48 -0
- package/build/{identity-roles-v1-user-users.universal-CDCph1O2.d.ts → es/index.typings.d.mts} +44 -1
- package/build/es/index.typings.mjs +541 -0
- package/build/es/index.typings.mjs.map +1 -0
- package/build/{internal → es}/meta.d.mts +2 -1
- package/build/es/package.json +3 -0
- package/build/internal/{index.d.ts → cjs/index.d.ts} +2 -2
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/{identity-roles-v1-user-users.universal-Drs4mXpg.d.mts → cjs/index.typings.d.ts} +58 -1
- package/build/internal/cjs/index.typings.js +589 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/{meta.d.ts → internal/cjs/meta.d.ts} +2 -1
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/{index.d.mts → es/index.d.mts} +2 -2
- package/build/internal/es/index.mjs.map +1 -0
- package/build/internal/{identity-roles-v1-user-users.universal-Drs4mXpg.d.ts → es/index.typings.d.mts} +58 -1
- package/build/internal/es/index.typings.mjs +541 -0
- package/build/internal/es/index.typings.mjs.map +1 -0
- package/build/{meta.d.mts → internal/es/meta.d.mts} +2 -1
- package/build/internal/es/meta.mjs.map +1 -0
- package/package.json +11 -11
- package/build/index.d.mts +0 -48
- package/build/index.d.ts +0 -48
- package/build/index.js.map +0 -1
- package/build/index.mjs.map +0 -1
- package/build/meta.js.map +0 -1
- package/build/meta.mjs.map +0 -1
- /package/build/{index.js → cjs/index.js} +0 -0
- /package/build/{internal → cjs}/index.js.map +0 -0
- /package/build/{internal → cjs}/meta.js +0 -0
- /package/build/{internal → cjs}/meta.js.map +0 -0
- /package/build/{index.mjs → es/index.mjs} +0 -0
- /package/build/{internal → es}/index.mjs.map +0 -0
- /package/build/{internal → es}/meta.mjs +0 -0
- /package/build/{internal → es}/meta.mjs.map +0 -0
- /package/build/internal/{index.js → cjs/index.js} +0 -0
- /package/build/{meta.js → internal/cjs/meta.js} +0 -0
- /package/build/internal/{index.mjs → es/index.mjs} +0 -0
- /package/build/{meta.mjs → internal/es/meta.mjs} +0 -0
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { HttpClient, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
|
+
import { SearchTeamOptions, SearchTeamResponse, GetRolesInfoOptions, GetRolesInfoResponse, UpdateTeamMemberAssignmentsOptions, UpdateTeamMemberAssignmentsResponse } from './index.typings.js';
|
|
3
|
+
export { AccountInfo, AccountInvite, AccountResourceContext, ApiCondition, ApiInviteAssignment, ApiPolicy, ApiResource, AreasFilter, AssignedPolicy, AssignedSubject, Assignment, AssignmentV3, ChangeRoleRequest, ChangeRoleResponse, ChangeRoleV2Options, ChangeRoleV2Request, ChangeRoleV2Response, CompanionResource, Condition, ConditionAttributeType, ConditionOperator, ConditionOperatorOperatorsOneOf, ConditionType, ConditionTypeOfOneOf, ConditionValue, ConditionValueValueOneOf, Conditions, Contributor, CreateCustomRoleRequest, CreateCustomRoleResponse, CustomRole, CustomRoleV2, DependOnOperator, Direction, EditorType, Effect, EnvironmentCondition, EnvironmentConditionConditionOneOf, EqualOperator, ExperimentCondition, ExperimentOperator, Facet, FacetType, FacetValue, FolderResource, FullNameResource, FullNameResourceResourceContextOneOf, GetPeopleRequest, GetPeopleResponse, GetPoliciesRequest, GetPoliciesResponse, GetRolesInfoRequest, GetRolesRequest, GetRolesResponse, GetRolesV2Request, GetRolesV2Response, GetScopesRequest, GetScopesResponse, GetSubjectsAssignmentsRequest, GetSubjectsAssignmentsResponse, GetTeamInvitesRequest, GetTeamInvitesResponse, GetTeamRequest, GetTeamResponse, GetTeamV2Response, GetUsersRequest, GetUsersResponse, Host, Invite, InviteAssignment, InviteAssignmentV3, InviteResourceAssignment, InviteStatus, InviteV3, JoinedCondition, JoinedConditionOperator, LikeOperator, LocationsRestriction, Name, OrderField, Ordering, OrganizationResourceContext, Paging, People, PeopleResource, PeopleResourceResourceTypeOneOf, PeopleType, PermissionScope, Person, PersonMetaData, PersonPersonOneOf, Policy, PolicyCondition, PolicyStatement, PolicyType, PredefinedRole, PredefinedRoleV2, PredefinedRoles, PredefinedRolesArea, PredefinedRolesAreaV2, RemoveMemberRequest, RemoveMemberResponse, Resource, ResourceType, Restriction, RestrictionRestrictionsOneOf, Role, RoleInfo, RoleInfoV2, RoleLevel, RoleLevelRestriction, RoleVisibility, RolesInfoFilter, ScopeArea, ScopeLevel, SearchTeamRequest, SimpleCondition, SimpleConditionOperator, SimpleConditionValue, SimpleConditionValueValueOneOf, SiteResourceContext, SiteRestriction, Subject, SubjectAssignments, SubjectContext, SubjectContextType, SubjectType, TeamMember, TeamMemberV3, TeamMemberV3MembersOneOf, UpdateTeamMemberAssignmentsRequest, User, UserV3, Visibility } from './index.typings.js';
|
|
4
|
+
|
|
5
|
+
declare function removeMember$1(httpClient: HttpClient): RemoveMemberSignature;
|
|
6
|
+
interface RemoveMemberSignature {
|
|
7
|
+
/**
|
|
8
|
+
* Removes a team member from the requesting account.
|
|
9
|
+
* > **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.
|
|
10
|
+
* @param - User ID of the team member to remove.
|
|
11
|
+
*/
|
|
12
|
+
(userId: string): Promise<void>;
|
|
13
|
+
}
|
|
14
|
+
declare function searchTeam$1(httpClient: HttpClient): SearchTeamSignature;
|
|
15
|
+
interface SearchTeamSignature {
|
|
16
|
+
/**
|
|
17
|
+
* Retrieves all team members of the requesting account, based on the provided filters and free text queries.
|
|
18
|
+
* > **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.
|
|
19
|
+
* @param - Filter options.
|
|
20
|
+
*/
|
|
21
|
+
(options?: SearchTeamOptions | undefined): Promise<SearchTeamResponse>;
|
|
22
|
+
}
|
|
23
|
+
declare function getRolesInfo$1(httpClient: HttpClient): GetRolesInfoSignature;
|
|
24
|
+
interface GetRolesInfoSignature {
|
|
25
|
+
/**
|
|
26
|
+
* Retrieves all available roles in the requesting account, including predefined and custom roles.
|
|
27
|
+
* > **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.
|
|
28
|
+
* @param - Filter options.
|
|
29
|
+
*/
|
|
30
|
+
(options?: GetRolesInfoOptions | undefined): Promise<GetRolesInfoResponse>;
|
|
31
|
+
}
|
|
32
|
+
declare function updateTeamMemberAssignments$1(httpClient: HttpClient): UpdateTeamMemberAssignmentsSignature;
|
|
33
|
+
interface UpdateTeamMemberAssignmentsSignature {
|
|
34
|
+
/**
|
|
35
|
+
* Updates the assignments of roles and conditions for an existing team member. Changing assignments changes the team member’s access to account assets.
|
|
36
|
+
* > **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.
|
|
37
|
+
* @param - ID of team member being affected.
|
|
38
|
+
* @param - Filter options. The `assignmentIdsToRemove` and `newAssignments` fields **must** be passed.
|
|
39
|
+
*/
|
|
40
|
+
(userId: string, options: UpdateTeamMemberAssignmentsOptions): Promise<UpdateTeamMemberAssignmentsResponse>;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
declare const removeMember: MaybeContext<BuildRESTFunction<typeof removeMember$1> & typeof removeMember$1>;
|
|
44
|
+
declare const searchTeam: MaybeContext<BuildRESTFunction<typeof searchTeam$1> & typeof searchTeam$1>;
|
|
45
|
+
declare const getRolesInfo: MaybeContext<BuildRESTFunction<typeof getRolesInfo$1> & typeof getRolesInfo$1>;
|
|
46
|
+
declare const updateTeamMemberAssignments: MaybeContext<BuildRESTFunction<typeof updateTeamMemberAssignments$1> & typeof updateTeamMemberAssignments$1>;
|
|
47
|
+
|
|
48
|
+
export { GetRolesInfoOptions, GetRolesInfoResponse, SearchTeamOptions, SearchTeamResponse, UpdateTeamMemberAssignmentsOptions, UpdateTeamMemberAssignmentsResponse, getRolesInfo, removeMember, searchTeam, updateTeamMemberAssignments };
|
package/build/{identity-roles-v1-user-users.universal-CDCph1O2.d.mts → cjs/index.typings.d.ts}
RENAMED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { NonNullablePaths } from '@wix/sdk-types';
|
|
2
|
+
|
|
1
3
|
interface User {
|
|
2
4
|
/** User ID. */
|
|
3
5
|
_id?: string;
|
|
@@ -1141,6 +1143,24 @@ interface CustomRoleV2 {
|
|
|
1141
1143
|
/** Whether this role is assigned to the current user */
|
|
1142
1144
|
assigned?: boolean;
|
|
1143
1145
|
}
|
|
1146
|
+
/**
|
|
1147
|
+
* Removes a team member from the requesting account.
|
|
1148
|
+
* > **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.
|
|
1149
|
+
* @param userId - User ID of the team member to remove.
|
|
1150
|
+
* @public
|
|
1151
|
+
* @requiredField userId
|
|
1152
|
+
* @permissionId team.delete-member
|
|
1153
|
+
* @fqn com.wixpress.roles.management.api.RolesManagementService.RemoveMember
|
|
1154
|
+
*/
|
|
1155
|
+
declare function removeMember(userId: string): Promise<void>;
|
|
1156
|
+
/**
|
|
1157
|
+
* Retrieves all team members of the requesting account, based on the provided filters and free text queries.
|
|
1158
|
+
* > **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.
|
|
1159
|
+
* @public
|
|
1160
|
+
* @param options - Filter options.
|
|
1161
|
+
* @fqn com.wixpress.roles.management.api.RolesManagementService.SearchTeam
|
|
1162
|
+
*/
|
|
1163
|
+
declare function searchTeam(options?: SearchTeamOptions): Promise<NonNullablePaths<SearchTeamResponse, `facets` | `facets.${number}.facetType` | `teamMembers` | `teamMembers.${number}.user._id` | `teamMembers.${number}.user.name.firstName` | `teamMembers.${number}.user.name.lastName` | `teamMembers.${number}.invite._id` | `teamMembers.${number}.invite.status`>>;
|
|
1144
1164
|
interface SearchTeamOptions {
|
|
1145
1165
|
/** Free text to search for within team member name and email address fields. */
|
|
1146
1166
|
query?: string | null;
|
|
@@ -1159,6 +1179,15 @@ interface SearchTeamOptions {
|
|
|
1159
1179
|
/** Pagination. */
|
|
1160
1180
|
paging?: Paging;
|
|
1161
1181
|
}
|
|
1182
|
+
/**
|
|
1183
|
+
* Retrieves all available roles in the requesting account, including predefined and custom roles.
|
|
1184
|
+
* > **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.
|
|
1185
|
+
* @public
|
|
1186
|
+
* @param options - Filter options.
|
|
1187
|
+
* @permissionId ACCOUNT_ROLES.GET_ROLES
|
|
1188
|
+
* @fqn com.wixpress.roles.management.api.RolesManagementService.GetRolesInfo
|
|
1189
|
+
*/
|
|
1190
|
+
declare function getRolesInfo(options?: GetRolesInfoOptions): Promise<NonNullablePaths<GetRolesInfoResponse, `predefinedRoles` | `predefinedRoles.${number}._id` | `predefinedRoles.${number}.title` | `predefinedRoles.${number}.description` | `predefinedRoles.${number}.restrictFromLevel` | `customRoles` | `customRoles.${number}._id` | `customRoles.${number}.title` | `customRoles.${number}.description` | `customRoles.${number}.restrictFromLevel`>>;
|
|
1162
1191
|
interface GetRolesInfoOptions {
|
|
1163
1192
|
/** Language of predefined roles names and descriptions to return, in ISO 639 format. Default: `en`. */
|
|
1164
1193
|
locale?: string | null;
|
|
@@ -1171,6 +1200,20 @@ interface ChangeRoleV2Options {
|
|
|
1171
1200
|
/** Existing assignment IDs to remove. To retrieve all existing assignment IDs for a team member, call Search Team. */
|
|
1172
1201
|
assignmentIdsToReplace: string[];
|
|
1173
1202
|
}
|
|
1203
|
+
/**
|
|
1204
|
+
* Updates the assignments of roles and conditions for an existing team member. Changing assignments changes the team member’s access to account assets.
|
|
1205
|
+
* > **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.
|
|
1206
|
+
* @param userId - ID of team member being affected.
|
|
1207
|
+
* @public
|
|
1208
|
+
* @requiredField options
|
|
1209
|
+
* @requiredField options.assignmentIdsToRemove
|
|
1210
|
+
* @requiredField options.newAssignments
|
|
1211
|
+
* @requiredField userId
|
|
1212
|
+
* @param options - Filter options. The `assignmentIdsToRemove` and `newAssignments` fields **must** be passed.
|
|
1213
|
+
* @permissionId team.manage-team-member-roles
|
|
1214
|
+
* @fqn com.wixpress.roles.management.api.RolesManagementService.UpdateTeamMemberAssignments
|
|
1215
|
+
*/
|
|
1216
|
+
declare function updateTeamMemberAssignments(userId: string, options: NonNullablePaths<UpdateTeamMemberAssignmentsOptions, `assignmentIdsToRemove` | `newAssignments`>): Promise<NonNullablePaths<UpdateTeamMemberAssignmentsResponse, `assignments` | `assignments.${number}.restrictions.resource.resourceType` | `assignments.${number}.restrictions.resource._id` | `assignments.${number}.restrictions.site._id` | `assignments.${number}.subject._id` | `assignments.${number}.subject.subjectType`>>;
|
|
1174
1217
|
interface UpdateTeamMemberAssignmentsOptions {
|
|
1175
1218
|
/**
|
|
1176
1219
|
* New assignments to apply to the team member in this account.
|
|
@@ -1185,4 +1228,4 @@ interface UpdateTeamMemberAssignmentsOptions {
|
|
|
1185
1228
|
assignmentIdsToRemove: string[];
|
|
1186
1229
|
}
|
|
1187
1230
|
|
|
1188
|
-
export { type
|
|
1231
|
+
export { type AccountInfo, type AccountInvite, type AccountResourceContext, type ApiCondition, type ApiInviteAssignment, type ApiPolicy, type ApiResource, type AreasFilter, type AssignedPolicy, type AssignedSubject, type Assignment, type AssignmentV3, type ChangeRoleRequest, type ChangeRoleResponse, type ChangeRoleV2Options, type ChangeRoleV2Request, type ChangeRoleV2Response, type CompanionResource, type Condition, ConditionAttributeType, type ConditionAttributeTypeWithLiterals, type ConditionOperator, type ConditionOperatorOperatorsOneOf, type ConditionType, type ConditionTypeOfOneOf, type ConditionValue, type ConditionValueValueOneOf, type Conditions, type Contributor, type CreateCustomRoleRequest, type CreateCustomRoleResponse, type CustomRole, type CustomRoleV2, type DependOnOperator, Direction, type DirectionWithLiterals, EditorType, type EditorTypeWithLiterals, Effect, type EffectWithLiterals, type EnvironmentCondition, type EnvironmentConditionConditionOneOf, type EqualOperator, type ExperimentCondition, type ExperimentOperator, type Facet, FacetType, type FacetTypeWithLiterals, type FacetValue, type FolderResource, type FullNameResource, type FullNameResourceResourceContextOneOf, type GetPeopleRequest, type GetPeopleResponse, type GetPoliciesRequest, type GetPoliciesResponse, type GetRolesInfoOptions, type GetRolesInfoRequest, type GetRolesInfoResponse, type GetRolesRequest, type GetRolesResponse, type GetRolesV2Request, type GetRolesV2Response, type GetScopesRequest, type GetScopesResponse, type GetSubjectsAssignmentsRequest, type GetSubjectsAssignmentsResponse, type GetTeamInvitesRequest, type GetTeamInvitesResponse, type GetTeamRequest, type GetTeamResponse, type GetTeamV2Response, type GetUsersRequest, type GetUsersResponse, Host, type HostWithLiterals, type Invite, type InviteAssignment, type InviteAssignmentV3, type InviteResourceAssignment, InviteStatus, type InviteStatusWithLiterals, type InviteV3, type JoinedCondition, JoinedConditionOperator, type JoinedConditionOperatorWithLiterals, type LikeOperator, type LocationsRestriction, type Name, OrderField, type OrderFieldWithLiterals, type Ordering, type OrganizationResourceContext, type Paging, type People, type PeopleResource, type PeopleResourceResourceTypeOneOf, PeopleType, type PeopleTypeWithLiterals, type PermissionScope, type Person, type PersonMetaData, type PersonPersonOneOf, type Policy, type PolicyCondition, type PolicyStatement, PolicyType, type PolicyTypeWithLiterals, type PredefinedRole, type PredefinedRoleV2, type PredefinedRoles, type PredefinedRolesArea, type PredefinedRolesAreaV2, type RemoveMemberRequest, type RemoveMemberResponse, type Resource, ResourceType, type ResourceTypeWithLiterals, type Restriction, type RestrictionRestrictionsOneOf, type Role, type RoleInfo, type RoleInfoV2, RoleLevel, RoleLevelRestriction, type RoleLevelRestrictionWithLiterals, type RoleLevelWithLiterals, RoleVisibility, type RoleVisibilityWithLiterals, type RolesInfoFilter, type ScopeArea, ScopeLevel, type ScopeLevelWithLiterals, type SearchTeamOptions, type SearchTeamRequest, type SearchTeamResponse, type SimpleCondition, SimpleConditionOperator, type SimpleConditionOperatorWithLiterals, type SimpleConditionValue, type SimpleConditionValueValueOneOf, type SiteResourceContext, type SiteRestriction, type Subject, type SubjectAssignments, type SubjectContext, SubjectContextType, type SubjectContextTypeWithLiterals, SubjectType, type SubjectTypeWithLiterals, type TeamMember, type TeamMemberV3, type TeamMemberV3MembersOneOf, type UpdateTeamMemberAssignmentsOptions, type UpdateTeamMemberAssignmentsRequest, type UpdateTeamMemberAssignmentsResponse, type User, type UserV3, Visibility, type VisibilityWithLiterals, getRolesInfo, removeMember, searchTeam, updateTeamMemberAssignments };
|