@resolution/organizations-api-client 0.14.0

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