@resolution/organizations-api-client 0.15.8 → 0.15.9

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 (31) hide show
  1. package/lib/openapi/organizations/BaseOrganizationsApiClient.d.ts +5 -5
  2. package/lib/openapi/organizations/BaseOrganizationsApiClient.js +15 -1
  3. package/lib/openapi/organizations/BaseOrganizationsApiClient.js.map +1 -1
  4. package/lib/openapi/organizations/models/common.d.ts +39 -4
  5. package/lib/openapi/organizations/models/common.js +6 -2
  6. package/lib/openapi/organizations/models/common.js.map +1 -1
  7. package/lib/openapi/organizations/models/directory.d.ts +0 -203
  8. package/lib/openapi/organizations/models/directory.js +0 -59
  9. package/lib/openapi/organizations/models/directory.js.map +1 -1
  10. package/lib/openapi/organizations/models/groups.d.ts +68 -5
  11. package/lib/openapi/organizations/models/groups.js +18 -1
  12. package/lib/openapi/organizations/models/groups.js.map +1 -1
  13. package/lib/openapi/organizations/models/users.d.ts +337 -5
  14. package/lib/openapi/organizations/models/users.js +87 -2
  15. package/lib/openapi/organizations/models/users.js.map +1 -1
  16. package/lib/openapi/organizations/services/DirectoryService.d.ts +3 -607
  17. package/lib/openapi/organizations/services/DirectoryService.js +0 -550
  18. package/lib/openapi/organizations/services/DirectoryService.js.map +1 -1
  19. package/lib/openapi/organizations/services/DomainsService.d.ts +4 -4
  20. package/lib/openapi/organizations/services/EventsService.d.ts +8 -8
  21. package/lib/openapi/organizations/services/GroupsService.d.ts +605 -17
  22. package/lib/openapi/organizations/services/GroupsService.js +466 -0
  23. package/lib/openapi/organizations/services/GroupsService.js.map +1 -1
  24. package/lib/openapi/organizations/services/OrgsService.d.ts +2 -2
  25. package/lib/openapi/organizations/services/PoliciesService.d.ts +18 -18
  26. package/lib/openapi/organizations/services/UsersService.d.ts +542 -26
  27. package/lib/openapi/organizations/services/UsersService.js +488 -8
  28. package/lib/openapi/organizations/services/UsersService.js.map +1 -1
  29. package/lib/openapi/organizations/services/ValidateService.d.ts +2 -2
  30. package/lib/openapi/organizations/services/WorkspacesService.d.ts +2 -2
  31. package/package.json +3 -3
@@ -18,181 +18,6 @@ const zod_1 = require("zod");
18
18
  class DirectoryService extends CommonHttpService_1.CommonHttpService {
19
19
  constructor() {
20
20
  super(...arguments);
21
- /**
22
- * **The API is available for customers using the [new user management experience
23
- * only](https://community.atlassian.com/t5/Atlassian-Access-articles/User-management-for-cloud-admins-just-got-easier/ba-p/1576592)**.
24
- *
25
- * This API can be used to grant Platform Roles to a user.
26
- *
27
- * @path POST `/v1/orgs/{orgId}/users/{userId}/roles/assign`
28
- * @see https://developer.atlassian.com/cloud/admin/organization/rest/api-group-directory#api-v1-orgs-orgid-users-userid-roles-assign-post
29
- * @param params
30
- */
31
- this.assignRole = ({ orgId, userId, roleApiRequest }) => {
32
- return this.getClientInstance().request({
33
- path: "/v1/orgs/{orgId}/users/{userId}/roles/assign",
34
- method: "POST",
35
- pathParams: {
36
- orgId,
37
- userId
38
- },
39
- headers: {
40
- "Content-Type": "application/json"
41
- },
42
- body: roleApiRequest
43
- }).then(commonHttpClient.discardResult);
44
- };
45
- /**
46
- * **The API is available for customers using the [new user management experience
47
- * only](https://community.atlassian.com/t5/Atlassian-Access-articles/User-management-for-cloud-admins-just-got-easier/ba-p/1576592)**.
48
- *
49
- * Assign roles that grant product access to groups. Please note that this
50
- * operation adheres to eventual consistency, and it might take up to 30 seconds
51
- * for changes to take effect.
52
- *
53
- * @returns Roles were successfully added to the group
54
- * @path POST `/v1/orgs/{orgId}/directory/groups/{groupId}/roles/assign`
55
- * @see https://developer.atlassian.com/cloud/admin/organization/rest/api-group-directory#api-v1-orgs-orgid-directory-groups-groupid-roles-assign-post
56
- * @param params
57
- */
58
- this.assignRoleToGroup = ({ orgId, groupId, groupRoleAssignmentInput }) => {
59
- return this.getClientInstance().request({
60
- path: "/v1/orgs/{orgId}/directory/groups/{groupId}/roles/assign",
61
- method: "POST",
62
- pathParams: {
63
- orgId,
64
- groupId
65
- },
66
- headers: {
67
- "Content-Type": "application/json"
68
- },
69
- body: groupRoleAssignmentInput
70
- }).then(this.getClientInstance().responseHandler({
71
- 202: {
72
- "application/json": "json"
73
- }
74
- })).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("DirectoryService.assignRoleToGroup.response"))).then(commonHttpClient.getBody);
75
- };
76
- /**
77
- * **The API is available for customers using the new user management experience
78
- * only. Learn more about the [new user management
79
- * experience](https://community.atlassian.com/t5/Atlassian-Access-articles/User-management-for-cloud-admins-just-got-easier/ba-p/1576592).**
80
- *
81
- * This API will:
82
- * - Delete a group from the organization's directory.
83
- * - Delete the permissions, content access, notification schemes, and roles
84
- * granted to the users.
85
- *
86
- * This API will not:
87
- * - Delete groups that are synchronized through SCIM. To delete these groups, you
88
- * will need to delete them within your external identity provider. Learn more
89
- * about [configuring user provisioning with an identity
90
- * provider](https://support.atlassian.com/provisioning-users/docs/configure-user-provisioning-with-an-identity-provider/).
91
- * - Delete a group if it’s marked as a [default
92
- * group](https://support.atlassian.com/user-management/docs/default-groups-and-permissions).
93
- * - Delete `site-admin` group and therefore revoke org-admin role from a user.
94
- * - Delete a group if it contains users (unless forced).
95
- *
96
- * Learn the fastest way to call the API with a detailed
97
- * [tutorial](https://developer.atlassian.com/cloud/admin/organization/delete-group/#delete-group).
98
- *
99
- * @returns Group was successfully deleted from organization's directory.
100
- * @path DELETE `/v1/orgs/{orgId}/directory/groups/{groupId}`
101
- * @see https://developer.atlassian.com/cloud/admin/organization/rest/api-group-directory#api-v1-orgs-orgid-directory-groups-groupid-delete
102
- * @param params
103
- */
104
- this.deleteV1OrgsOrgIdDirectoryGroupsGroupId = ({ orgId, groupId, forceIfNotEmpty }) => {
105
- return this.getClientInstance().request({
106
- path: "/v1/orgs/{orgId}/directory/groups/{groupId}",
107
- method: "DELETE",
108
- pathParams: {
109
- orgId,
110
- groupId
111
- },
112
- query: {
113
- forceIfNotEmpty
114
- }
115
- }).then(this.getClientInstance().responseHandler({
116
- 200: {
117
- "application/json": "json"
118
- }
119
- })).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("DirectoryService.undefined.response"))).then(commonHttpClient.getBody);
120
- };
121
- /**
122
- * **The API is available for customers using the new user management experience
123
- * only. Learn more about the [new user management
124
- * experience](https://community.atlassian.com/t5/Atlassian-Access-articles/User-management-for-cloud-admins-just-got-easier/ba-p/1576592).**
125
- *
126
- * This API will:
127
- * - Remove user from a group.
128
- * - Remove multiple permissions for user at once.
129
- * - Easily manage permissions, content access, notification schemes, and roles.
130
- *
131
- * This API will not:
132
- * - Make modifications to group memberships that are synchronized through SCIM.
133
- * To make changes to these memberships, you will need to modify them within your
134
- * external identity provider. Learn more about [configuring user provisioning
135
- * with an identity
136
- * provider](https://support.atlassian.com/provisioning-users/docs/configure-user-provisioning-with-an-identity-provider/).
137
- * - Modify `site-admin` group and therefore revoke org-admin role from a user.
138
- *
139
- * Learn the fastest way to call the API with a detailed
140
- * [tutorial](https://developer.atlassian.com/cloud/admin/organization/remove-user-to-group/).
141
- *
142
- * @returns User was successfully removed from the group in the organization directory.
143
- * @path DELETE `/v1/orgs/{orgId}/directory/groups/{groupId}/memberships/{accountId}`
144
- * @see https://developer.atlassian.com/cloud/admin/organization/rest/api-group-directory#api-v1-orgs-orgid-directory-groups-groupid-memberships-accountid-delete
145
- * @param params
146
- */
147
- this.deleteV1OrgsOrgIdDirectoryGroupsGroupIdMembershipsAccountId = ({ orgId, groupId, accountId }) => {
148
- return this.getClientInstance().request({
149
- path: "/v1/orgs/{orgId}/directory/groups/{groupId}/memberships/{accountId}",
150
- method: "DELETE",
151
- pathParams: {
152
- orgId,
153
- groupId,
154
- accountId
155
- }
156
- }).then(this.getClientInstance().responseHandler({
157
- 200: {
158
- "application/json": "json"
159
- }
160
- })).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("DirectoryService.undefined.response"))).then(commonHttpClient.getBody);
161
- };
162
- /**
163
- * **The API is available for customers using the new user management experience
164
- * only.** Learn more about the [new user management
165
- * experience](https://community.atlassian.com/t5/Atlassian-Access-articles/User-management-for-cloud-admins-just-got-easier/ba-p/1576592).
166
- *
167
- * Specifications:
168
- * - Remove user access to products listed in Atlassian Administration.
169
- * - Remove users from **Users** and **Groups** in **Directory**.
170
- * - Make product licenses available for active users.
171
- *
172
- * The users are not removed immediately; instead, they are placed in a queue for
173
- * deletion. Please note that it may take some time for all users to be completely
174
- * removed.
175
- *
176
- * Users with emails whose domain is claimed can still be found in **Managed
177
- * accounts** in **Directory**.
178
- *
179
- * Learn the fastest way to call the API with a detailed
180
- * [tutorial](https://developer.atlassian.com/cloud/admin/organization/remove-user/).
181
- *
182
- * @path DELETE `/v1/orgs/{orgId}/directory/users/{accountId}`
183
- * @see https://developer.atlassian.com/cloud/admin/organization/rest/api-group-directory#api-v1-orgs-orgid-directory-users-accountid-delete
184
- * @param params
185
- */
186
- this.deleteV1OrgsOrgIdDirectoryUsersAccountId = ({ orgId, accountId }) => {
187
- return this.getClientInstance().request({
188
- path: "/v1/orgs/{orgId}/directory/users/{accountId}",
189
- method: "DELETE",
190
- pathParams: {
191
- orgId,
192
- accountId
193
- }
194
- }).then(commonHttpClient.discardResult);
195
- };
196
21
  /**
197
22
  * Returns a page of directories in an organization that match the supplied
198
23
  * parameters.
@@ -225,383 +50,8 @@ class DirectoryService extends CommonHttpService_1.CommonHttpService {
225
50
  }
226
51
  })).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("DirectoryService.getDirectoriesForOrg.response"))).then(commonHttpClient.getBody);
227
52
  };
228
- /**
229
- * **Additional response parameters of the API (for e.g., `added_to_org`) are
230
- * available only to customers using the new user management experience.** Learn
231
- * more about the [new user management
232
- * experience](https://community.atlassian.com/t5/Atlassian-Access-articles/User-management-for-cloud-admins-just-got-easier/ba-p/1576592).
233
- *
234
- * Specifications:
235
- * - Return a user’s last active date for each product listed in Atlassian
236
- * Administration.
237
- * - Active is defined as viewing a product's page for a minimum of 2 seconds.
238
- * - The data for the last activity may be delayed by up to 24 hours.
239
- * - If the user has not accessed a product, the `product_access` response field
240
- * will be empty.
241
- *
242
- * Learn the fastest way to call the API with a detailed
243
- * [tutorial](https://developer.atlassian.com/cloud/admin/organization/user-last-active-dates/).
244
- *
245
- * @returns Successful operation
246
- * @path GET `/v1/orgs/{orgId}/directory/users/{accountId}/last-active-dates`
247
- * @see https://developer.atlassian.com/cloud/admin/organization/rest/api-group-directory#api-v1-orgs-orgid-directory-users-accountid-last-active-dates-get
248
- * @param params
249
- */
250
- this.getV1OrgsOrgIdDirectoryUsersAccountIdLastActiveDates = ({ orgId, accountId, cursor }) => {
251
- return this.getClientInstance().request({
252
- path: "/v1/orgs/{orgId}/directory/users/{accountId}/last-active-dates",
253
- method: "GET",
254
- pathParams: {
255
- orgId,
256
- accountId
257
- },
258
- query: {
259
- cursor
260
- }
261
- }).then(this.getClientInstance().responseHandler({
262
- 200: {
263
- "application/json": "json"
264
- }
265
- })).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("DirectoryService.undefined.response"))).then(commonHttpClient.getBody);
266
- };
267
- /**
268
- * **The API is available for customers using the new user management experience
269
- * only. Learn more about the [new user management
270
- * experience](https://community.atlassian.com/t5/Atlassian-Access-articles/User-management-for-cloud-admins-just-got-easier/ba-p/1576592).**
271
- *
272
- * This API will:
273
- * - Create a group in the organization's directory.
274
- * - Create a collection of users that you can use to easily manage permissions,
275
- * content access, notification schemes, and roles.
276
- *
277
- * **The creation of new groups using existing group names is not permitted.**
278
- *
279
- * Learn the fastest way to call the API with a detailed
280
- * [tutorial](https://developer.atlassian.com/cloud/admin/organization/create-group/#create-group).
281
- *
282
- * @returns Request to create group was successfully accepted and will be eventually created in the organization directory.
283
- * @path POST `/v1/orgs/{orgId}/directory/groups`
284
- * @see https://developer.atlassian.com/cloud/admin/organization/rest/api-group-directory#api-v1-orgs-orgid-directory-groups-post
285
- * @param params
286
- */
287
- this.postV1OrgsOrgIdDirectoryGroups = ({ orgId, createGroupInput }) => {
288
- return this.getClientInstance().request({
289
- path: "/v1/orgs/{orgId}/directory/groups",
290
- method: "POST",
291
- pathParams: {
292
- orgId
293
- },
294
- headers: {
295
- "Content-Type": "application/json"
296
- },
297
- body: createGroupInput
298
- }).then(this.getClientInstance().responseHandler({
299
- 200: {
300
- "application/json": "json"
301
- }
302
- })).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("DirectoryService.undefined.response"))).then(commonHttpClient.getBody);
303
- };
304
- /**
305
- * **The API is available for customers using the new user management experience
306
- * only. Learn more about the [new user management
307
- * experience](https://community.atlassian.com/t5/Atlassian-Access-articles/User-management-for-cloud-admins-just-got-easier/ba-p/1576592).**
308
- *
309
- * This API will:
310
- * - Add user to a group.
311
- * - Assign multiple permissions to user at once.
312
- * - Easily manage permissions, content access, notification schemes, and roles.
313
- *
314
- * This API will not:
315
- * - Make modifications to group memberships that are synchronized through SCIM.
316
- * To make changes to these memberships, you will need to modify them within your
317
- * external identity provider. Learn more about [configuring user provisioning
318
- * with an identity
319
- * provider](https://support.atlassian.com/provisioning-users/docs/configure-user-provisioning-with-an-identity-provider/).
320
- * - Add a user to a group that gives access to a product which is breaching it's
321
- * license limit.\
322
- * To make these changes, you will need to [remove
323
- * users](https://developer.atlassian.com/cloud/admin/organization/rest/api-group-directory/#api-v1-orgs-orgid-directory-groups-groupid-memberships-accountid-delete)
324
- * from the group or
325
- * [suspend
326
- * users](https://developer.atlassian.com/cloud/admin/organization/rest/api-group-directory/#api-v1-orgs-orgid-directory-users-accountid-suspend-access-post)
327
- * that are in the group first.\
328
- * You can also [manage your
329
- * subscription](https://support.atlassian.com/subscriptions-and-billing/resources/)
330
- * for the breaching product to increase your license limits.
331
- * - Add a user to any group when your organisation has too many products that are
332
- * breaching their license limits.
333
- *
334
- * Learn the fastest way to call the API with a detailed
335
- * [tutorial](https://developer.atlassian.com/cloud/admin/organization/add-user-to-group/).
336
- *
337
- * @returns User was successfully added to the group in the organization directory.
338
- * @path POST `/v1/orgs/{orgId}/directory/groups/{groupId}/memberships`
339
- * @see https://developer.atlassian.com/cloud/admin/organization/rest/api-group-directory#api-v1-orgs-orgid-directory-groups-groupid-memberships-post
340
- * @param params
341
- */
342
- this.postV1OrgsOrgIdDirectoryGroupsGroupIdMemberships = ({ orgId, groupId, addGroupMembershipInput }) => {
343
- return this.getClientInstance().request({
344
- path: "/v1/orgs/{orgId}/directory/groups/{groupId}/memberships",
345
- method: "POST",
346
- pathParams: {
347
- orgId,
348
- groupId
349
- },
350
- headers: {
351
- "Content-Type": "application/json"
352
- },
353
- body: addGroupMembershipInput
354
- }).then(this.getClientInstance().responseHandler({
355
- 200: {
356
- "application/json": "json"
357
- }
358
- })).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("DirectoryService.undefined.response"))).then(commonHttpClient.getBody);
359
- };
360
- /**
361
- * **The API is available for customers using the new user management experience
362
- * only.** Learn more about the [new user management
363
- * experience](https://community.atlassian.com/t5/Atlassian-Access-articles/User-management-for-cloud-admins-just-got-easier/ba-p/1576592).
364
- *
365
- * This API will:
366
- * - Restore access of an existing user to products listed in Atlassian
367
- * Administration.
368
- * - Retract the suspend user action.
369
- *
370
- * This API will not:
371
- * - Restore access to a user when they have access to a product which is
372
- * breaching it's license limit.\
373
- * To make these changes, you will need to [remove
374
- * users](https://developer.atlassian.com/cloud/admin/organization/rest/api-group-directory/#api-v1-orgs-orgid-directory-groups-groupid-memberships-accountid-delete)
375
- * from the group or
376
- * [suspend
377
- * users](https://developer.atlassian.com/cloud/admin/organization/rest/api-group-directory/#api-v1-orgs-orgid-directory-users-accountid-suspend-access-post)
378
- * that are in the group first.\
379
- * You can also [manage your
380
- * subscription](https://support.atlassian.com/subscriptions-and-billing/resources/)
381
- * for the breaching product to increase your license limits.
382
- * - Restore access to any user when your organisation has too many products that
383
- * are breaching their license limits.
384
- *
385
- * Learn the fastest way to call the API with a detailed
386
- * [tutorial](https://developer.atlassian.com/cloud/admin/organization/restore-user/).
387
- *
388
- * @returns User's access is successfully restored in the organization directory.
389
- * @path POST `/v1/orgs/{orgId}/directory/users/{accountId}/restore-access`
390
- * @see https://developer.atlassian.com/cloud/admin/organization/rest/api-group-directory#api-v1-orgs-orgid-directory-users-accountid-restore-access-post
391
- * @param params
392
- */
393
- this.postV1OrgsOrgIdDirectoryUsersAccountIdRestoreAccess = ({ orgId, accountId }) => {
394
- return this.getClientInstance().request({
395
- path: "/v1/orgs/{orgId}/directory/users/{accountId}/restore-access",
396
- method: "POST",
397
- pathParams: {
398
- orgId,
399
- accountId
400
- }
401
- }).then(this.getClientInstance().responseHandler({
402
- 200: {
403
- "application/json": "json"
404
- }
405
- })).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("DirectoryService.undefined.response"))).then(commonHttpClient.getBody);
406
- };
407
- /**
408
- * **The API is available for customers using the new user management experience
409
- * only.** Learn more about the [new user management
410
- * experience](https://community.atlassian.com/t5/Atlassian-Access-articles/User-management-for-cloud-admins-just-got-easier/ba-p/1576592).
411
- *
412
- * Specifications:
413
- * - Suspend user access to products listed in Atlassian Administration while
414
- * keeping the account active.
415
- * - Make product licenses available for active users.
416
- * - Maintain respective users in **Groups** for easy restoration.
417
- *
418
- * User access can be restored anytime via the [Restore access
419
- * API](https://developer.atlassian.com/cloud/admin/organization/rest/api-group-directory/#api-v1-orgs-orgid-directory-users-accountid-restore-access-post)
420
- *
421
- * Learn the fastest way to call the API with a detailed
422
- * [tutorial](https://developer.atlassian.com/cloud/admin/organization/suspend-user/).
423
- *
424
- * @returns User was successfully suspended in the organization directory.
425
- * @path POST `/v1/orgs/{orgId}/directory/users/{accountId}/suspend-access`
426
- * @see https://developer.atlassian.com/cloud/admin/organization/rest/api-group-directory#api-v1-orgs-orgid-directory-users-accountid-suspend-access-post
427
- * @param params
428
- */
429
- this.postV1OrgsOrgIdDirectoryUsersAccountIdSuspendAccess = ({ orgId, accountId }) => {
430
- return this.getClientInstance().request({
431
- path: "/v1/orgs/{orgId}/directory/users/{accountId}/suspend-access",
432
- method: "POST",
433
- pathParams: {
434
- orgId,
435
- accountId
436
- }
437
- }).then(this.getClientInstance().responseHandler({
438
- 200: {
439
- "application/json": "json"
440
- }
441
- })).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("DirectoryService.undefined.response"))).then(commonHttpClient.getBody);
442
- };
443
- /**
444
- * **The API is presently accessible exclusively to customers who hold a paid
445
- * subscription.**
446
- *
447
- * **The API is available for customers using the [new user management experience
448
- * only](https://community.atlassian.com/t5/Atlassian-Access-articles/User-management-for-cloud-admins-just-got-easier/ba-p/1576592)**.
449
- *
450
- * This API will:
451
- * - invite user to org and add them to the directory
452
- * - assign a role for a given resource
453
- * - send email if the sendNotification field is set true with optional custom
454
- * message for the email
455
- *
456
- * This API will not:
457
- * - add users to group
458
- *
459
- * @returns Invitation successfully sent
460
- * @path POST `/v1/orgs/{orgId}/users/invite`
461
- * @see https://developer.atlassian.com/cloud/admin/organization/rest/api-group-directory#api-v1-orgs-orgid-users-invite-post
462
- * @param params
463
- */
464
- this.postV1OrgsOrgIdUsersInvite = ({ orgId, inviteApiRequest }) => {
465
- return this.getClientInstance().request({
466
- path: "/v1/orgs/{orgId}/users/invite",
467
- method: "POST",
468
- pathParams: {
469
- orgId
470
- },
471
- headers: {
472
- "Content-Type": "application/json"
473
- },
474
- body: inviteApiRequest
475
- }).then(this.getClientInstance().responseHandler({
476
- 202: {
477
- "application/json": "json"
478
- }
479
- })).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("DirectoryService.undefined.response"))).then(commonHttpClient.getBody);
480
- };
481
- /**
482
- * **The API is available for customers using the [new user management experience
483
- * only](https://community.atlassian.com/t5/Atlassian-Access-articles/User-management-for-cloud-admins-just-got-easier/ba-p/1576592)**.
484
- *
485
- * This API can be used to revoke Platform Roles from a user.
486
- *
487
- * @path POST `/v1/orgs/{orgId}/users/{userId}/roles/revoke`
488
- * @see https://developer.atlassian.com/cloud/admin/organization/rest/api-group-directory#api-v1-orgs-orgid-users-userid-roles-revoke-post
489
- * @param params
490
- */
491
- this.revokeRole = ({ orgId, userId, roleApiRequest }) => {
492
- return this.getClientInstance().request({
493
- path: "/v1/orgs/{orgId}/users/{userId}/roles/revoke",
494
- method: "POST",
495
- pathParams: {
496
- orgId,
497
- userId
498
- },
499
- headers: {
500
- "Content-Type": "application/json"
501
- },
502
- body: roleApiRequest
503
- }).then(commonHttpClient.discardResult);
504
- };
505
- /**
506
- * **The API is available for customers using the [new user management experience
507
- * only](https://community.atlassian.com/t5/Atlassian-Access-articles/User-management-for-cloud-admins-just-got-easier/ba-p/1576592)**.
508
- *
509
- * Revoke roles that provide product access to groups. It's important to note that
510
- * this operation follows eventual consistency principles and may require up to 30
511
- * seconds to take effect.
512
- *
513
- * @returns Roles were successfully removed from the group
514
- * @path POST `/v1/orgs/{orgId}/directory/groups/{groupId}/roles/revoke`
515
- * @see https://developer.atlassian.com/cloud/admin/organization/rest/api-group-directory#api-v1-orgs-orgid-directory-groups-groupid-roles-revoke-post
516
- * @param params
517
- */
518
- this.revokeRoleToGroup = ({ orgId, groupId, groupRoleAssignmentInput }) => {
519
- return this.getClientInstance().request({
520
- path: "/v1/orgs/{orgId}/directory/groups/{groupId}/roles/revoke",
521
- method: "POST",
522
- pathParams: {
523
- orgId,
524
- groupId
525
- },
526
- headers: {
527
- "Content-Type": "application/json"
528
- },
529
- body: groupRoleAssignmentInput
530
- }).then(this.getClientInstance().responseHandler({
531
- 202: {
532
- "application/json": "json"
533
- }
534
- })).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("DirectoryService.revokeRoleToGroup.response"))).then(commonHttpClient.getBody);
535
- };
536
53
  }
537
54
  static initialize() {
538
- validationSchemaStorage_1.validationSchemaStorage.registerExtensible("DirectoryService.undefined.response", zod_1.z.object({
539
- status: zod_1.z.literal(200),
540
- mediaType: zod_1.z.literal("application/json"),
541
- body: zod_1.z.object({
542
- message: zod_1.z.string().optional(),
543
- groupId: zod_1.z.string().optional()
544
- }).catchall(zod_1.z.unknown())
545
- }).describe("DirectoryService.undefined.response"));
546
- validationSchemaStorage_1.validationSchemaStorage.registerExtensible("DirectoryService.undefined.response", zod_1.z.object({
547
- status: zod_1.z.literal(200),
548
- mediaType: zod_1.z.literal("application/json"),
549
- body: zod_1.z.object({
550
- message: zod_1.z.string().optional()
551
- }).catchall(zod_1.z.unknown())
552
- }).describe("DirectoryService.undefined.response"));
553
- validationSchemaStorage_1.validationSchemaStorage.registerExtensible("DirectoryService.undefined.response", zod_1.z.object({
554
- status: zod_1.z.literal(200),
555
- mediaType: zod_1.z.literal("application/json"),
556
- body: zod_1.z.object({
557
- message: zod_1.z.string().optional()
558
- }).catchall(zod_1.z.unknown())
559
- }).describe("DirectoryService.undefined.response"));
560
- validationSchemaStorage_1.validationSchemaStorage.registerExtensible("DirectoryService.undefined.response", zod_1.z.object({
561
- status: zod_1.z.literal(200),
562
- mediaType: zod_1.z.literal("application/json"),
563
- body: zod_1.z.object({
564
- message: zod_1.z.string().optional()
565
- }).catchall(zod_1.z.unknown())
566
- }).describe("DirectoryService.undefined.response"));
567
- validationSchemaStorage_1.validationSchemaStorage.registerExtensible("DirectoryService.assignRoleToGroup.response", zod_1.z.object({
568
- status: zod_1.z.literal(202),
569
- mediaType: zod_1.z.literal("application/json"),
570
- body: zod_1.z.object({
571
- message: zod_1.z.string()
572
- }).catchall(zod_1.z.unknown())
573
- }).describe("DirectoryService.assignRoleToGroup.response"));
574
- validationSchemaStorage_1.validationSchemaStorage.registerExtensible("DirectoryService.revokeRoleToGroup.response", zod_1.z.object({
575
- status: zod_1.z.literal(202),
576
- mediaType: zod_1.z.literal("application/json"),
577
- body: zod_1.z.object({
578
- message: zod_1.z.string()
579
- }).catchall(zod_1.z.unknown())
580
- }).describe("DirectoryService.revokeRoleToGroup.response"));
581
- validationSchemaStorage_1.validationSchemaStorage.registerExtensible("DirectoryService.undefined.response", zod_1.z.object({
582
- status: zod_1.z.literal(200),
583
- mediaType: zod_1.z.literal("application/json"),
584
- body: validationSchemaStorage_1.validationSchemaStorage.lazy("UserProductAccessActivityPage")
585
- }).describe("DirectoryService.undefined.response"));
586
- validationSchemaStorage_1.validationSchemaStorage.registerExtensible("DirectoryService.undefined.response", zod_1.z.object({
587
- status: zod_1.z.literal(200),
588
- mediaType: zod_1.z.literal("application/json"),
589
- body: zod_1.z.object({
590
- message: zod_1.z.string().optional()
591
- }).catchall(zod_1.z.unknown())
592
- }).describe("DirectoryService.undefined.response"));
593
- validationSchemaStorage_1.validationSchemaStorage.registerExtensible("DirectoryService.undefined.response", zod_1.z.object({
594
- status: zod_1.z.literal(200),
595
- mediaType: zod_1.z.literal("application/json"),
596
- body: zod_1.z.object({
597
- message: zod_1.z.string().optional()
598
- }).catchall(zod_1.z.unknown())
599
- }).describe("DirectoryService.undefined.response"));
600
- validationSchemaStorage_1.validationSchemaStorage.registerExtensible("DirectoryService.undefined.response", zod_1.z.object({
601
- status: zod_1.z.literal(202),
602
- mediaType: zod_1.z.literal("application/json"),
603
- body: zod_1.z.array(zod_1.z.string())
604
- }).describe("DirectoryService.undefined.response"));
605
55
  validationSchemaStorage_1.validationSchemaStorage.registerExtensible("DirectoryService.getDirectoriesForOrg.response", zod_1.z.object({
606
56
  status: zod_1.z.literal(200),
607
57
  mediaType: zod_1.z.literal("application/json"),
@@ -1 +1 @@
1
- {"version":3,"file":"DirectoryService.js","sourceRoot":"","sources":["../../../../src/openapi/organizations/services/DirectoryService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,gEAAgE;AAChE,oE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MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,GAAG,CAAC;YACtB,SAAS,EAAE,OAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;YACxC,IAAI,EAAE,OAAC,CAAC,MAAM,CAAC;gBACb,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;aAC/B,CAAC,CAAC,QAAQ,CAAC,OAAC,CAAC,OAAO,EAAE,CAAC;SACzB,CAAC,CAAC,QAAQ,CAAC,qCAAqC,CAAC,CAAC,CAAC;QACpD,iDAAuB,CAAC,kBAAkB,CAAC,qCAAqC,EAAE,OAAC,CAAC,MAAM,CAAC;YACzF,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,GAAG,CAAC;YACtB,SAAS,EAAE,OAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;YACxC,IAAI,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;SAC1B,CAAC,CAAC,QAAQ,CAAC,qCAAqC,CAAC,CAAC,CAAC;QACpD,iDAAuB,CAAC,kBAAkB,CAAC,gDAAgD,EAAE,OAAC,CAAC,MAAM,CAAC;YACpG,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,GAAG,CAAC;YACtB,SAAS,EAAE,OAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;YACxC,IAAI,EAAE,iDAAuB,CAAC,IAAI,CAAC,iCAAiC,CAAC;SACtE,CAAC,CAAC,QAAQ,CAAC,gDAAgD,CAAC,CAAC,CAAC;QAC/D,iDAAuB,CAAC,YAAY,CAAC,CAAC,8CAAkC,CAAC,CAAC,CAAC;IAC7E,CAAC;CACF;AA9iCD,4CA8iCC"}
1
+ {"version":3,"file":"DirectoryService.js","sourceRoot":"","sources":["../../../../src/openapi/organizations/services/DirectoryService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,gEAAgE;AAChE,oEAAiE;AACjE,mDAA+G;AAC/G,w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;IAC7E,CAAC;CACF;AAzFD,4CAyFC"}
@@ -20,8 +20,8 @@ export declare class DomainsService extends CommonHttpService {
20
20
  */
21
21
  getDomainById: ({ orgId, domainId }: {
22
22
  /**
23
- * Your organization is identified by a Unique ID. You get your organization ID
24
- * and Organization API key simultaneously.
23
+ * Your organization has a unique ID. Find this ID in your Atlassian
24
+ * Administration URL or when you create your API key.
25
25
  */
26
26
  orgId: string;
27
27
  /** ID of the domain to return */
@@ -40,8 +40,8 @@ export declare class DomainsService extends CommonHttpService {
40
40
  */
41
41
  getDomains: ({ orgId, cursor }: {
42
42
  /**
43
- * Your organization is identified by a Unique ID. You get your organization ID
44
- * and Organization API key simultaneously.
43
+ * Your organization has a unique ID. Find this ID in your Atlassian
44
+ * Administration URL or when you create your API key.
45
45
  */
46
46
  orgId: string;
47
47
  /** Sets the starting point for the page of results to return. */