@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.
Files changed (44) hide show
  1. package/build/cjs/index.d.ts +48 -0
  2. package/build/{identity-roles-v1-user-users.universal-CDCph1O2.d.mts → cjs/index.typings.d.ts} +44 -1
  3. package/build/cjs/index.typings.js +589 -0
  4. package/build/cjs/index.typings.js.map +1 -0
  5. package/build/{internal → cjs}/meta.d.ts +2 -1
  6. package/build/es/index.d.mts +48 -0
  7. package/build/{identity-roles-v1-user-users.universal-CDCph1O2.d.ts → es/index.typings.d.mts} +44 -1
  8. package/build/es/index.typings.mjs +541 -0
  9. package/build/es/index.typings.mjs.map +1 -0
  10. package/build/{internal → es}/meta.d.mts +2 -1
  11. package/build/es/package.json +3 -0
  12. package/build/internal/{index.d.ts → cjs/index.d.ts} +2 -2
  13. package/build/internal/cjs/index.js.map +1 -0
  14. package/build/internal/{identity-roles-v1-user-users.universal-Drs4mXpg.d.mts → cjs/index.typings.d.ts} +58 -1
  15. package/build/internal/cjs/index.typings.js +589 -0
  16. package/build/internal/cjs/index.typings.js.map +1 -0
  17. package/build/{meta.d.ts → internal/cjs/meta.d.ts} +2 -1
  18. package/build/internal/cjs/meta.js.map +1 -0
  19. package/build/internal/{index.d.mts → es/index.d.mts} +2 -2
  20. package/build/internal/es/index.mjs.map +1 -0
  21. package/build/internal/{identity-roles-v1-user-users.universal-Drs4mXpg.d.ts → es/index.typings.d.mts} +58 -1
  22. package/build/internal/es/index.typings.mjs +541 -0
  23. package/build/internal/es/index.typings.mjs.map +1 -0
  24. package/build/{meta.d.mts → internal/es/meta.d.mts} +2 -1
  25. package/build/internal/es/meta.mjs.map +1 -0
  26. package/package.json +11 -11
  27. package/build/index.d.mts +0 -48
  28. package/build/index.d.ts +0 -48
  29. package/build/index.js.map +0 -1
  30. package/build/index.mjs.map +0 -1
  31. package/build/meta.js.map +0 -1
  32. package/build/meta.mjs.map +0 -1
  33. /package/build/{index.js → cjs/index.js} +0 -0
  34. /package/build/{internal → cjs}/index.js.map +0 -0
  35. /package/build/{internal → cjs}/meta.js +0 -0
  36. /package/build/{internal → cjs}/meta.js.map +0 -0
  37. /package/build/{index.mjs → es/index.mjs} +0 -0
  38. /package/build/{internal → es}/index.mjs.map +0 -0
  39. /package/build/{internal → es}/meta.mjs +0 -0
  40. /package/build/{internal → es}/meta.mjs.map +0 -0
  41. /package/build/internal/{index.js → cjs/index.js} +0 -0
  42. /package/build/{meta.js → internal/cjs/meta.js} +0 -0
  43. /package/build/internal/{index.mjs → es/index.mjs} +0 -0
  44. /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 };
@@ -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 ConditionType as $, type Assignment as A, type AccountInvite as B, ConditionAttributeType as C, Direction as D, EditorType as E, FacetType as F, type GetRolesInfoOptions as G, Host as H, InviteStatus as I, JoinedConditionOperator as J, type InviteResourceAssignment as K, type LocationsRestriction as L, type InviteAssignment as M, type Name as N, OrderField as O, PeopleType as P, type FullNameResource as Q, ResourceType as R, type SearchTeamOptions as S, type FullNameResourceResourceContextOneOf as T, type UpdateTeamMemberAssignmentsOptions as U, Visibility as V, type SiteResourceContext as W, type AccountResourceContext as X, type OrganizationResourceContext as Y, type Resource as Z, type PolicyCondition as _, type SearchTeamResponse as a, type GetRolesResponse as a$, type ConditionTypeOfOneOf as a0, type SimpleCondition as a1, type SimpleConditionValue as a2, type SimpleConditionValueValueOneOf as a3, type JoinedCondition as a4, type EnvironmentCondition as a5, type EnvironmentConditionConditionOneOf as a6, type ExperimentCondition as a7, type Condition as a8, type ConditionOperator as a9, type GetPeopleResponse as aA, type People as aB, type Person as aC, type PersonPersonOneOf as aD, type Contributor as aE, type PersonMetaData as aF, type TeamMember as aG, type GetTeamV2Response as aH, type GetTeamInvitesRequest as aI, type GetTeamInvitesResponse as aJ, type Invite as aK, type ApiInviteAssignment as aL, type GetPoliciesRequest as aM, type AreasFilter as aN, type GetPoliciesResponse as aO, type SearchTeamRequest as aP, type Ordering as aQ, type Facet as aR, type FacetValue as aS, type TeamMemberV3 as aT, type TeamMemberV3MembersOneOf as aU, type UserV3 as aV, type AssignmentV3 as aW, type AssignedSubject as aX, type InviteV3 as aY, type InviteAssignmentV3 as aZ, type GetRolesRequest as a_, type ConditionOperatorOperatorsOneOf as aa, type EqualOperator as ab, type ConditionValue as ac, type ConditionValueValueOneOf as ad, type LikeOperator as ae, type ExperimentOperator as af, type DependOnOperator as ag, type AccountInfo as ah, type ApiPolicy as ai, type PredefinedRoles as aj, type PredefinedRole as ak, type Role as al, type ChangeRoleRequest as am, type ChangeRoleResponse as an, type RemoveMemberRequest as ao, type RemoveMemberResponse as ap, type GetUsersRequest as aq, type GetUsersResponse as ar, type GetScopesRequest as as, type GetScopesResponse as at, type ScopeArea as au, type PermissionScope as av, type GetPeopleRequest as aw, type PeopleResource as ax, type PeopleResourceResourceTypeOneOf as ay, type FolderResource as az, type GetRolesInfoResponse as b, type PredefinedRolesArea as b0, type PredefinedRoleV2 as b1, type CustomRole as b2, type GetRolesInfoRequest as b3, type RolesInfoFilter as b4, type RoleInfo as b5, type CreateCustomRoleRequest as b6, type Policy as b7, type PolicyStatement as b8, type CreateCustomRoleResponse as b9, type ChangeRoleV2Request as ba, type ChangeRoleV2Response as bb, type UpdateTeamMemberAssignmentsRequest as bc, type GetSubjectsAssignmentsRequest as bd, type GetSubjectsAssignmentsResponse as be, type SubjectAssignments as bf, type GetRolesV2Request as bg, type GetRolesV2Response as bh, type PredefinedRolesAreaV2 as bi, type RoleInfoV2 as bj, type CustomRoleV2 as bk, type ChangeRoleV2Options as bl, type UpdateTeamMemberAssignmentsResponse as c, SubjectType as d, SubjectContextType as e, SimpleConditionOperator as f, ScopeLevel as g, RoleLevel as h, RoleLevelRestriction as i, RoleVisibility as j, PolicyType as k, Effect as l, type User as m, type AssignedPolicy as n, type Restriction as o, type RestrictionRestrictionsOneOf as p, type ApiResource as q, type Conditions as r, type ApiCondition as s, type SiteRestriction as t, type CompanionResource as u, type Subject as v, type SubjectContext as w, type GetTeamRequest as x, type Paging as y, type GetTeamResponse as z };
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 };