@wix/auto_sdk_user-management_users 1.0.21 → 1.0.23

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.
@@ -122,21 +122,33 @@ declare enum RoleLevel {
122
122
  /** @enumType */
123
123
  type RoleLevelWithLiterals = RoleLevel | 'ALL' | 'SITE_LEVEL' | 'ACCOUNT_LEVEL';
124
124
  interface SearchTeamRequest {
125
- /** Free text to search for within team member name and email address fields. */
125
+ /**
126
+ * Free text to match in searchable fields.
127
+ *
128
+ * For example, search for specific values in
129
+ * `name` or `email`.
130
+ */
126
131
  query?: string | null;
127
- /** Sort data. */
132
+ /** Field name and order to sort by. */
128
133
  orderBy?: Ordering[];
129
134
  /**
130
- * Filter object. Supported values: `inviteType` and `roleId`. For example, `{'inviteType': {'$eq': 'Expired'}}`.
131
- * See [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language) for more information.
135
+ * Filter object for narrowing search results.
136
+ *
137
+ * For example, to return only users with a specific role: `{"filter": {"roleId": "6600344420111308827"}}`
138
+ *
139
+ * See API Query Language ([SDK](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/api-query-language) | [REST](https://dev.wix.com/docs/rest/articles/get-started/api-query-language))
140
+ * for more information.
141
+ *
142
+ * Supported values: `inviteType` and `roleId`.
132
143
  */
133
144
  filter?: Record<string, any> | null;
134
145
  /**
135
- * A list of facets to return in the response. Facets count the items within logical groupings.
136
- * See [Filters and Facets: An Explainer](https://medium.com/@westontt/filters-and-facets-an-explainer-3b73a9538eca) for more information.
146
+ * Group data into categories (facets) and return the total count for each category.
147
+ *
148
+ * For example, use `facets` to aggregate search results by team member, invite status, or role.
137
149
  */
138
150
  facets?: FacetTypeWithLiterals[];
139
- /** Pagination. */
151
+ /** Paging options. */
140
152
  paging?: Paging;
141
153
  }
142
154
  interface Ordering {
@@ -146,52 +158,54 @@ interface Ordering {
146
158
  direction?: DirectionWithLiterals;
147
159
  }
148
160
  declare enum OrderField {
149
- /** For internal use. */
150
- Undefined = "Undefined",
151
161
  /** Team member name. */
152
162
  Name = "Name",
153
163
  /** Date team member joined the account. */
154
164
  JoinedAt = "JoinedAt"
155
165
  }
156
166
  /** @enumType */
157
- type OrderFieldWithLiterals = OrderField | 'Undefined' | 'Name' | 'JoinedAt';
167
+ type OrderFieldWithLiterals = OrderField | 'Name' | 'JoinedAt';
158
168
  declare enum Direction {
159
- /** For internal use. */
160
- UninitializedDirection = "UninitializedDirection",
161
169
  /** Ascending. */
162
170
  ASC = "ASC",
163
171
  /** Descending. */
164
172
  DESC = "DESC"
165
173
  }
166
174
  /** @enumType */
167
- type DirectionWithLiterals = Direction | 'UninitializedDirection' | 'ASC' | 'DESC';
175
+ type DirectionWithLiterals = Direction | 'ASC' | 'DESC';
168
176
  declare enum FacetType {
169
- Undefined = "Undefined",
170
- /** How many team members with each role */
177
+ /** Total team members with each role. */
171
178
  Roles = "Roles",
172
- /** How many team members by invite status */
179
+ /**
180
+ * Total team members by invite ([SDK](https://dev.wix.com/docs/sdk/account-level-modules/user-management/account-invites/introduction) | [REST](https://dev.wix.com/docs/rest/account-level/user-management/accounts/account-invites/account-invite-object))
181
+ * `status`.
182
+ */
173
183
  InviteStatus = "InviteStatus",
174
- /** How many team members in total in the account */
184
+ /** Total team members. */
175
185
  Users = "Users"
176
186
  }
177
187
  /** @enumType */
178
- type FacetTypeWithLiterals = FacetType | 'Undefined' | 'Roles' | 'InviteStatus' | 'Users';
188
+ type FacetTypeWithLiterals = FacetType | 'Roles' | 'InviteStatus' | 'Users';
179
189
  interface SearchTeamResponse {
180
- /** List of facets, as requested. */
190
+ /** Retrieved facets as specified in the request. */
181
191
  facets?: Facet[];
182
- /** Existing team members and invites sent to join the account. */
192
+ /**
193
+ * Retrieved team members and sent invites that match the search criteria specified in the request.
194
+ *
195
+ * Each file includes all standard `user` and `invite` information.
196
+ */
183
197
  teamMembers?: TeamMemberV3[];
184
198
  }
185
199
  interface Facet {
186
- /** Facet type. */
200
+ /** Type of facet. */
187
201
  facetType?: FacetTypeWithLiterals;
188
- /** Values and their counters. Values with count = 0 are not returned. */
202
+ /** Values and the amount of each. Values with a count of `0` aren't returned. */
189
203
  values?: FacetValue[];
190
204
  }
191
205
  interface FacetValue {
192
206
  /** Supported values: `Roles`, `InviteStatus`, `Users`. */
193
207
  value?: string;
194
- /** Number of existing items for the value. */
208
+ /** Number of existing items for the `value`. */
195
209
  count?: number;
196
210
  }
197
211
  interface TeamMemberV3 extends TeamMemberV3MembersOneOf {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../meta.ts","../../../src/identity-roles-v1-user-users.http.ts","../../../src/identity-roles-v1-user-users.meta.ts"],"sourcesContent":["export * from './src/identity-roles-v1-user-users.meta.js';\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveComWixpressRolesManagementApiRolesManagementServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/contributors/accept',\n destPath: '/contributors/accept',\n },\n {\n srcPath: '/roles-management-web',\n destPath: '',\n },\n {\n srcPath: '/team/accept',\n destPath: '/team/accept',\n },\n {\n srcPath: '/_api/roles-management-web',\n destPath: '',\n },\n {\n srcPath: '/app/accept',\n destPath: '/app/accept',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/roles-management-web',\n destPath: '',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/roles-management-web',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/roles-management-web',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/roles-management-web',\n destPath: '',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/roles-management-web',\n destPath: '',\n },\n {\n srcPath: '/roles-management-web',\n destPath: '',\n },\n {\n srcPath: '/contributors/accept',\n destPath: '/contributors/accept',\n },\n {\n srcPath: '/team/accept',\n destPath: '/team/accept',\n },\n ],\n 'dev._base_domain_': [\n {\n srcPath: '/_api/roles-management-web',\n destPath: '',\n },\n ],\n 'platform.rise.ai': [\n {\n srcPath: '/v2/contributors',\n destPath: '/v2/contributors',\n },\n {\n srcPath: '/contributor/change/role',\n destPath: '/contributor/change/role',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/roles-management',\n destPath: '',\n },\n {\n srcPath: '/roles-management-web',\n destPath: '',\n },\n {\n srcPath: '/roles-management/roles',\n destPath: '/roles',\n },\n {\n srcPath: '/roles-management/team',\n destPath: '/team',\n },\n {\n srcPath: '/roles-management/v3/team',\n destPath: '/v3/team',\n },\n {\n srcPath: '/roles-management/v2/team',\n destPath: '/v2/team',\n },\n {\n srcPath: '/roles-management/contributor/change',\n destPath: '/contributor/change',\n },\n {\n srcPath: '/roles-management/v2/contributors',\n destPath: '/v2/contributors',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_user-management_users';\n\n/**\n * Removes a team member from the requesting account.\n * > **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.\n */\nexport function removeMember(payload: object): RequestOptionsFactory<any> {\n function __removeMember({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.identity.roles.v1.user',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.roles.management.api.RolesManagementService.RemoveMember',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressRolesManagementApiRolesManagementServiceUrl({\n protoPath: '/team/remove',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __removeMember;\n}\n\n/**\n * Retrieves all team members of the requesting account, based on the provided filters and free text queries.\n * > **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.\n */\nexport function searchTeam(payload: object): RequestOptionsFactory<any> {\n function __searchTeam({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.identity.roles.v1.user',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.roles.management.api.RolesManagementService.SearchTeam',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressRolesManagementApiRolesManagementServiceUrl({\n protoPath: '/v3/team/search',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'teamMembers.user.joinedTeamAt' },\n { path: 'teamMembers.invite.dateCreated' },\n { path: 'teamMembers.invite.dateUpdated' },\n { path: 'teamMembers.invite.expirationDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __searchTeam;\n}\n\n/**\n * Retrieves all available roles in the requesting account, including predefined and custom roles.\n * > **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.\n */\nexport function getRolesInfo(payload: object): RequestOptionsFactory<any> {\n function __getRolesInfo({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.identity.roles.v1.user',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.roles.management.api.RolesManagementService.GetRolesInfo',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressRolesManagementApiRolesManagementServiceUrl({\n protoPath: '/roles',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getRolesInfo;\n}\n\n/**\n * Updates the roles and conditions for an existing team member. Changing roles changes the team member's access to account assets.\n * > **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.\n */\nexport function changeRoleV2(payload: object): RequestOptionsFactory<any> {\n function __changeRoleV2({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.identity.roles.v1.user',\n method: 'PATCH' as any,\n methodFqn:\n 'com.wixpress.roles.management.api.RolesManagementService.ChangeRoleV2',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressRolesManagementApiRolesManagementServiceUrl({\n protoPath: '/v2/team/roles',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __changeRoleV2;\n}\n\n/**\n * Updates the assignments of roles and conditions for an existing team member. Changing assignments changes the team member’s access to account assets.\n * > **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.\n */\nexport function updateTeamMemberAssignments(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateTeamMemberAssignments({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.identity.roles.v1.user',\n method: 'PATCH' as any,\n methodFqn:\n 'com.wixpress.roles.management.api.RolesManagementService.UpdateTeamMemberAssignments',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressRolesManagementApiRolesManagementServiceUrl({\n protoPath: '/v2/team/assignments',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __updateTeamMemberAssignments;\n}\n","import * as ambassadorWixIdentityRolesV1User from './identity-roles-v1-user-users.http.js';\nimport * as ambassadorWixIdentityRolesV1UserTypes from './identity-roles-v1-user-users.types.js';\nimport * as ambassadorWixIdentityRolesV1UserUniversalTypes from './identity-roles-v1-user-users.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function removeMember(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixIdentityRolesV1UserUniversalTypes.RemoveMemberRequest,\n ambassadorWixIdentityRolesV1UserTypes.RemoveMemberRequest,\n ambassadorWixIdentityRolesV1UserUniversalTypes.RemoveMemberResponse,\n ambassadorWixIdentityRolesV1UserTypes.RemoveMemberResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixIdentityRolesV1User.removeMember(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/team/remove',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function searchTeam(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixIdentityRolesV1UserUniversalTypes.SearchTeamRequest,\n ambassadorWixIdentityRolesV1UserTypes.SearchTeamRequest,\n ambassadorWixIdentityRolesV1UserUniversalTypes.SearchTeamResponse,\n ambassadorWixIdentityRolesV1UserTypes.SearchTeamResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixIdentityRolesV1User.searchTeam(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v3/team/search',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getRolesInfo(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixIdentityRolesV1UserUniversalTypes.GetRolesInfoRequest,\n ambassadorWixIdentityRolesV1UserTypes.GetRolesInfoRequest,\n ambassadorWixIdentityRolesV1UserUniversalTypes.GetRolesInfoResponse,\n ambassadorWixIdentityRolesV1UserTypes.GetRolesInfoResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixIdentityRolesV1User.getRolesInfo(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/roles',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function changeRoleV2(): __PublicMethodMetaInfo<\n 'PATCH',\n {},\n ambassadorWixIdentityRolesV1UserUniversalTypes.ChangeRoleV2Request,\n ambassadorWixIdentityRolesV1UserTypes.ChangeRoleV2Request,\n ambassadorWixIdentityRolesV1UserUniversalTypes.ChangeRoleV2Response,\n ambassadorWixIdentityRolesV1UserTypes.ChangeRoleV2Response\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixIdentityRolesV1User.changeRoleV2(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v2/team/roles',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updateTeamMemberAssignments(): __PublicMethodMetaInfo<\n 'PATCH',\n {},\n ambassadorWixIdentityRolesV1UserUniversalTypes.UpdateTeamMemberAssignmentsRequest,\n ambassadorWixIdentityRolesV1UserTypes.UpdateTeamMemberAssignmentsRequest,\n ambassadorWixIdentityRolesV1UserUniversalTypes.UpdateTeamMemberAssignmentsResponse,\n ambassadorWixIdentityRolesV1UserTypes.UpdateTeamMemberAssignmentsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixIdentityRolesV1User.updateTeamMemberAssignments(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v2/team/assignments',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,sBAAAA;AAAA,EAAA,oBAAAC;AAAA,EAAA,oBAAAC;AAAA,EAAA,kBAAAC;AAAA,EAAA,mCAAAC;AAAA;AAAA;;;ACAA,0BAAkC;AAClC,uBAAqD;AACrD,6BAA+B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,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,+BAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBAC6B,4BAA4B,OAAO;AAEtE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["changeRoleV2","getRolesInfo","removeMember","searchTeam","updateTeamMemberAssignments","import_rest_modules","payload","removeMember","searchTeam","getRolesInfo","changeRoleV2","updateTeamMemberAssignments"]}
1
+ {"version":3,"sources":["../../../meta.ts","../../../src/identity-roles-v1-user-users.http.ts","../../../src/identity-roles-v1-user-users.meta.ts"],"sourcesContent":["export * from './src/identity-roles-v1-user-users.meta.js';\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveComWixpressRolesManagementApiRolesManagementServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/contributors/accept',\n destPath: '/contributors/accept',\n },\n {\n srcPath: '/roles-management-web',\n destPath: '',\n },\n {\n srcPath: '/team/accept',\n destPath: '/team/accept',\n },\n {\n srcPath: '/_api/roles-management-web',\n destPath: '',\n },\n {\n srcPath: '/app/accept',\n destPath: '/app/accept',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/roles-management-web',\n destPath: '',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/roles-management-web',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/roles-management-web',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/roles-management-web',\n destPath: '',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/roles-management-web',\n destPath: '',\n },\n {\n srcPath: '/roles-management-web',\n destPath: '',\n },\n {\n srcPath: '/contributors/accept',\n destPath: '/contributors/accept',\n },\n {\n srcPath: '/team/accept',\n destPath: '/team/accept',\n },\n ],\n 'dev._base_domain_': [\n {\n srcPath: '/_api/roles-management-web',\n destPath: '',\n },\n ],\n 'platform.rise.ai': [\n {\n srcPath: '/v2/contributors',\n destPath: '/v2/contributors',\n },\n {\n srcPath: '/contributor/change/role',\n destPath: '/contributor/change/role',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/roles-management',\n destPath: '',\n },\n {\n srcPath: '/roles-management-web',\n destPath: '',\n },\n {\n srcPath: '/roles-management/roles',\n destPath: '/roles',\n },\n {\n srcPath: '/roles-management/team',\n destPath: '/team',\n },\n {\n srcPath: '/roles-management/v3/team',\n destPath: '/v3/team',\n },\n {\n srcPath: '/roles-management/v2/team',\n destPath: '/v2/team',\n },\n {\n srcPath: '/roles-management/contributor/change',\n destPath: '/contributor/change',\n },\n {\n srcPath: '/roles-management/v2/contributors',\n destPath: '/v2/contributors',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_user-management_users';\n\n/**\n * Removes a team member from the requesting account.\n * > **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.\n */\nexport function removeMember(payload: object): RequestOptionsFactory<any> {\n function __removeMember({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.identity.roles.v1.user',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.roles.management.api.RolesManagementService.RemoveMember',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressRolesManagementApiRolesManagementServiceUrl({\n protoPath: '/team/remove',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __removeMember;\n}\n\n/**\n * Retrieves a list of all team members of the requesting account with the specified filtering, sorting, and paging.\n *\n * > **Important**: This call requires an account level API key and can't be authenticated with the standard authorization header. API keys are currently available to selected beta users only.\n *\n * ## Filters\n *\n * When using filters for dates, you must use\n * [UTC time](https://en.wikipedia.org/wiki/Coordinated_Universal_Time).\n *\n * ## See also\n *\n * To learn about working with *Search* methods, see\n * _API Query Language_\n * ([SDK](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/api-query-language) | [REST](https://dev.wix.com/docs/rest/articles/get-started/api-query-language))\n * and *Sorting and Paging*\n * ([SDK](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/api-query-language#the-sort-array) | [REST](https://dev.wix.com/docs/rest/articles/get-started/sorting-and-paging)).\n */\nexport function searchTeam(payload: object): RequestOptionsFactory<any> {\n function __searchTeam({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.identity.roles.v1.user',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.roles.management.api.RolesManagementService.SearchTeam',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressRolesManagementApiRolesManagementServiceUrl({\n protoPath: '/v3/team/search',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'teamMembers.user.joinedTeamAt' },\n { path: 'teamMembers.invite.dateCreated' },\n { path: 'teamMembers.invite.dateUpdated' },\n { path: 'teamMembers.invite.expirationDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __searchTeam;\n}\n\n/**\n * Retrieves all available roles in the requesting account, including predefined and custom roles.\n * > **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.\n */\nexport function getRolesInfo(payload: object): RequestOptionsFactory<any> {\n function __getRolesInfo({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.identity.roles.v1.user',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.roles.management.api.RolesManagementService.GetRolesInfo',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressRolesManagementApiRolesManagementServiceUrl({\n protoPath: '/roles',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getRolesInfo;\n}\n\n/**\n * Updates the roles and conditions for an existing team member. Changing roles changes the team member's access to account assets.\n * > **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.\n */\nexport function changeRoleV2(payload: object): RequestOptionsFactory<any> {\n function __changeRoleV2({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.identity.roles.v1.user',\n method: 'PATCH' as any,\n methodFqn:\n 'com.wixpress.roles.management.api.RolesManagementService.ChangeRoleV2',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressRolesManagementApiRolesManagementServiceUrl({\n protoPath: '/v2/team/roles',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __changeRoleV2;\n}\n\n/**\n * Updates the assignments of roles and conditions for an existing team member. Changing assignments changes the team member’s access to account assets.\n * > **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.\n */\nexport function updateTeamMemberAssignments(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateTeamMemberAssignments({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.identity.roles.v1.user',\n method: 'PATCH' as any,\n methodFqn:\n 'com.wixpress.roles.management.api.RolesManagementService.UpdateTeamMemberAssignments',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressRolesManagementApiRolesManagementServiceUrl({\n protoPath: '/v2/team/assignments',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __updateTeamMemberAssignments;\n}\n","import * as ambassadorWixIdentityRolesV1User from './identity-roles-v1-user-users.http.js';\nimport * as ambassadorWixIdentityRolesV1UserTypes from './identity-roles-v1-user-users.types.js';\nimport * as ambassadorWixIdentityRolesV1UserUniversalTypes from './identity-roles-v1-user-users.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function removeMember(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixIdentityRolesV1UserUniversalTypes.RemoveMemberRequest,\n ambassadorWixIdentityRolesV1UserTypes.RemoveMemberRequest,\n ambassadorWixIdentityRolesV1UserUniversalTypes.RemoveMemberResponse,\n ambassadorWixIdentityRolesV1UserTypes.RemoveMemberResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixIdentityRolesV1User.removeMember(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/team/remove',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function searchTeam(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixIdentityRolesV1UserUniversalTypes.SearchTeamRequest,\n ambassadorWixIdentityRolesV1UserTypes.SearchTeamRequest,\n ambassadorWixIdentityRolesV1UserUniversalTypes.SearchTeamResponse,\n ambassadorWixIdentityRolesV1UserTypes.SearchTeamResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixIdentityRolesV1User.searchTeam(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v3/team/search',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getRolesInfo(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixIdentityRolesV1UserUniversalTypes.GetRolesInfoRequest,\n ambassadorWixIdentityRolesV1UserTypes.GetRolesInfoRequest,\n ambassadorWixIdentityRolesV1UserUniversalTypes.GetRolesInfoResponse,\n ambassadorWixIdentityRolesV1UserTypes.GetRolesInfoResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixIdentityRolesV1User.getRolesInfo(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/roles',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function changeRoleV2(): __PublicMethodMetaInfo<\n 'PATCH',\n {},\n ambassadorWixIdentityRolesV1UserUniversalTypes.ChangeRoleV2Request,\n ambassadorWixIdentityRolesV1UserTypes.ChangeRoleV2Request,\n ambassadorWixIdentityRolesV1UserUniversalTypes.ChangeRoleV2Response,\n ambassadorWixIdentityRolesV1UserTypes.ChangeRoleV2Response\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixIdentityRolesV1User.changeRoleV2(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v2/team/roles',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updateTeamMemberAssignments(): __PublicMethodMetaInfo<\n 'PATCH',\n {},\n ambassadorWixIdentityRolesV1UserUniversalTypes.UpdateTeamMemberAssignmentsRequest,\n ambassadorWixIdentityRolesV1UserTypes.UpdateTeamMemberAssignmentsRequest,\n ambassadorWixIdentityRolesV1UserUniversalTypes.UpdateTeamMemberAssignmentsResponse,\n ambassadorWixIdentityRolesV1UserTypes.UpdateTeamMemberAssignmentsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixIdentityRolesV1User.updateTeamMemberAssignments(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v2/team/assignments',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,sBAAAA;AAAA,EAAA,oBAAAC;AAAA,EAAA,oBAAAC;AAAA,EAAA,kBAAAC;AAAA,EAAA,mCAAAC;AAAA;AAAA;;;ACAA,0BAAkC;AAClC,uBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,8DACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,yBAAyB;AAAA,MACvB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF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QAAM,UAAU,CAAC;AAEjB,QAAM,oBAC6B,aAAa,OAAO;AAEvD,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,gBAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBAC6B,aAAa,OAAO;AAEvD,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,+BAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBAC6B,4BAA4B,OAAO;AAEtE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["changeRoleV2","getRolesInfo","removeMember","searchTeam","updateTeamMemberAssignments","import_rest_modules","payload","removeMember","searchTeam","getRolesInfo","changeRoleV2","updateTeamMemberAssignments"]}
@@ -1,6 +1,6 @@
1
1
  import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
2
2
  import { SearchTeamOptions, SearchTeamResponse, GetRolesInfoOptions, GetRolesInfoResponse, ChangeRoleV2Options, ChangeRoleV2Response, UpdateTeamMemberAssignmentsOptions, UpdateTeamMemberAssignmentsResponse } from './index.typings.mjs';
3
- export { AccountInfo, AccountInvite, AccountResourceContext, ApiCondition, ApiInviteAssignment, ApiPolicy, ApiResource, AreasFilter, AssignedPolicy, AssignedSubject, Assignment, AssignmentV3, ChangeRoleRequest, ChangeRoleResponse, ChangeRoleV2Request, 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, GetScopesByRoleRequest, GetScopesByRoleResponse, GetScopesRequest, GetScopesResponse, GetScopesV2Request, GetScopesV2Response, 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, PermissionScopeV2, 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, ScopeAreaV2, ScopeLevel, SearchTeamRequest, SimpleCondition, SimpleConditionOperator, SimpleConditionValue, SimpleConditionValueValueOneOf, SiteResourceContext, SiteRestriction, Subject, SubjectAssignments, SubjectContext, SubjectContextType, SubjectType, TeamMember, TeamMemberV3, TeamMemberV3MembersOneOf, UpdateTeamMemberAssignmentsRequest, User, UserV3, Visibility } from './index.typings.mjs';
3
+ export { AccountInfo, AccountInvite, AccountResourceContext, ApiCondition, ApiInviteAssignment, ApiPolicy, ApiResource, AreasFilter, AssignedPolicy, AssignedSubject, Assignment, AssignmentV3, ChangeRoleRequest, ChangeRoleResponse, ChangeRoleV2Request, CompanionResource, Condition, ConditionAttributeType, ConditionAttributeTypeWithLiterals, ConditionOperator, ConditionOperatorOperatorsOneOf, ConditionType, ConditionTypeOfOneOf, ConditionValue, ConditionValueValueOneOf, Conditions, Contributor, CreateCustomRoleRequest, CreateCustomRoleResponse, CustomRole, CustomRoleV2, DependOnOperator, Direction, DirectionWithLiterals, EditorType, EditorTypeWithLiterals, Effect, EffectWithLiterals, EnvironmentCondition, EnvironmentConditionConditionOneOf, EqualOperator, ExperimentCondition, ExperimentOperator, Facet, FacetType, FacetTypeWithLiterals, FacetValue, FolderResource, FullNameResource, FullNameResourceResourceContextOneOf, GetPeopleRequest, GetPeopleResponse, GetPoliciesRequest, GetPoliciesResponse, GetRolesInfoRequest, GetRolesRequest, GetRolesResponse, GetRolesV2Request, GetRolesV2Response, GetScopesByRoleRequest, GetScopesByRoleResponse, GetScopesRequest, GetScopesResponse, GetScopesV2Request, GetScopesV2Response, GetSubjectsAssignmentsRequest, GetSubjectsAssignmentsResponse, GetTeamInvitesRequest, GetTeamInvitesResponse, GetTeamRequest, GetTeamResponse, GetTeamV2Response, GetUsersRequest, GetUsersResponse, Host, HostWithLiterals, Invite, InviteAssignment, InviteAssignmentV3, InviteResourceAssignment, InviteStatus, InviteStatusWithLiterals, InviteV3, JoinedCondition, JoinedConditionOperator, JoinedConditionOperatorWithLiterals, LikeOperator, LocationsRestriction, Name, OrderField, OrderFieldWithLiterals, Ordering, OrganizationResourceContext, Paging, People, PeopleResource, PeopleResourceResourceTypeOneOf, PeopleType, PeopleTypeWithLiterals, PermissionScope, PermissionScopeV2, Person, PersonMetaData, PersonPersonOneOf, Policy, PolicyCondition, PolicyStatement, PolicyType, PolicyTypeWithLiterals, PredefinedRole, PredefinedRoleV2, PredefinedRoles, PredefinedRolesArea, PredefinedRolesAreaV2, RemoveMemberRequest, RemoveMemberResponse, Resource, ResourceType, ResourceTypeWithLiterals, Restriction, RestrictionRestrictionsOneOf, Role, RoleInfo, RoleInfoV2, RoleLevel, RoleLevelRestriction, RoleLevelRestrictionWithLiterals, RoleLevelWithLiterals, RoleVisibility, RoleVisibilityWithLiterals, RolesInfoFilter, ScopeArea, ScopeAreaV2, ScopeLevel, ScopeLevelWithLiterals, SearchTeamRequest, SimpleCondition, SimpleConditionOperator, SimpleConditionOperatorWithLiterals, SimpleConditionValue, SimpleConditionValueValueOneOf, SiteResourceContext, SiteRestriction, Subject, SubjectAssignments, SubjectContext, SubjectContextType, SubjectContextTypeWithLiterals, SubjectType, SubjectTypeWithLiterals, TeamMember, TeamMemberV3, TeamMemberV3MembersOneOf, UpdateTeamMemberAssignmentsRequest, User, UserV3, Visibility, VisibilityWithLiterals } from './index.typings.mjs';
4
4
 
5
5
  declare function removeMember$1(httpClient: HttpClient): RemoveMemberSignature;
6
6
  interface RemoveMemberSignature {
@@ -14,11 +14,25 @@ interface RemoveMemberSignature {
14
14
  declare function searchTeam$1(httpClient: HttpClient): SearchTeamSignature;
15
15
  interface SearchTeamSignature {
16
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.
17
+ * Retrieves a list of all team members of the requesting account with the specified filtering, sorting, and paging.
18
+ *
19
+ * > **Important**: This call requires an account level API key and can't be authenticated with the standard authorization header. API keys are currently available to selected beta users only.
20
+ *
21
+ * ## Filters
22
+ *
23
+ * When using filters for dates, you must use
24
+ * [UTC time](https://en.wikipedia.org/wiki/Coordinated_Universal_Time).
25
+ *
26
+ * ## See also
27
+ *
28
+ * To learn about working with *Search* methods, see
29
+ * _API Query Language_
30
+ * ([SDK](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/api-query-language) | [REST](https://dev.wix.com/docs/rest/articles/get-started/api-query-language))
31
+ * and *Sorting and Paging*
32
+ * ([SDK](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/api-query-language#the-sort-array) | [REST](https://dev.wix.com/docs/rest/articles/get-started/sorting-and-paging)).
19
33
  * @param - Filter options.
20
34
  */
21
- (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`>>;
35
+ (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`, 6>>;
22
36
  }
23
37
  declare function getRolesInfo$1(httpClient: HttpClient): GetRolesInfoSignature;
24
38
  interface GetRolesInfoSignature {
@@ -27,7 +41,7 @@ interface GetRolesInfoSignature {
27
41
  * > **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
42
  * @param - Filter options.
29
43
  */
30
- (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`>>;
44
+ (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`, 4>>;
31
45
  }
32
46
  /** @internal */
33
47
  declare function changeRoleV2$1(httpClient: HttpClient): ChangeRoleV2Signature;
@@ -37,7 +51,7 @@ interface ChangeRoleV2Signature {
37
51
  * > **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.
38
52
  * @param - ID of team member being affected.
39
53
  */
40
- (userId: string, options: NonNullablePaths<ChangeRoleV2Options, `assignmentIdsToReplace` | `roles`>): Promise<NonNullablePaths<ChangeRoleV2Response, `roles` | `roles.${number}.restrictions.resource.resourceType` | `roles.${number}.restrictions.resource._id` | `roles.${number}.restrictions.site._id` | `roles.${number}.subject._id` | `roles.${number}.subject.subjectType`>>;
54
+ (userId: string, options: NonNullablePaths<ChangeRoleV2Options, `assignmentIdsToReplace` | `roles`, 2>): Promise<NonNullablePaths<ChangeRoleV2Response, `roles` | `roles.${number}.restrictions.resource.resourceType` | `roles.${number}.restrictions.resource._id` | `roles.${number}.restrictions.site._id` | `roles.${number}.subject._id` | `roles.${number}.subject.subjectType`, 6>>;
41
55
  }
42
56
  declare function updateTeamMemberAssignments$1(httpClient: HttpClient): UpdateTeamMemberAssignmentsSignature;
43
57
  interface UpdateTeamMemberAssignmentsSignature {
@@ -47,7 +61,7 @@ interface UpdateTeamMemberAssignmentsSignature {
47
61
  * @param - ID of team member being affected.
48
62
  * @param - Filter options. The `assignmentIdsToRemove` and `newAssignments` fields **must** be passed.
49
63
  */
50
- (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`>>;
64
+ (userId: string, options: NonNullablePaths<UpdateTeamMemberAssignmentsOptions, `assignmentIdsToRemove` | `newAssignments`, 2>): 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`, 6>>;
51
65
  }
52
66
 
53
67
  declare const removeMember: MaybeContext<BuildRESTFunction<typeof removeMember$1> & typeof removeMember$1>;
@@ -313,19 +313,16 @@ var RoleLevel = /* @__PURE__ */ ((RoleLevel2) => {
313
313
  return RoleLevel2;
314
314
  })(RoleLevel || {});
315
315
  var OrderField = /* @__PURE__ */ ((OrderField2) => {
316
- OrderField2["Undefined"] = "Undefined";
317
316
  OrderField2["Name"] = "Name";
318
317
  OrderField2["JoinedAt"] = "JoinedAt";
319
318
  return OrderField2;
320
319
  })(OrderField || {});
321
320
  var Direction = /* @__PURE__ */ ((Direction2) => {
322
- Direction2["UninitializedDirection"] = "UninitializedDirection";
323
321
  Direction2["ASC"] = "ASC";
324
322
  Direction2["DESC"] = "DESC";
325
323
  return Direction2;
326
324
  })(Direction || {});
327
325
  var FacetType = /* @__PURE__ */ ((FacetType2) => {
328
- FacetType2["Undefined"] = "Undefined";
329
326
  FacetType2["Roles"] = "Roles";
330
327
  FacetType2["InviteStatus"] = "InviteStatus";
331
328
  FacetType2["Users"] = "Users";