@resolution/jira-api-client 0.1.0 → 0.1.2

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 (201) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/package.json +10 -3
  3. package/.eslintrc.js +0 -3
  4. package/config/api-typescript-generator.config.ts +0 -91
  5. package/config/compare-schemas.ts +0 -307
  6. package/src/index.ts +0 -47
  7. package/src/openapi/platform/base-jira-platform-api-client.ts +0 -2298
  8. package/src/openapi/platform/core/common-http-client.ts +0 -723
  9. package/src/openapi/platform/core/common-http-service.ts +0 -22
  10. package/src/openapi/platform/core/common-validation-schema-storage.ts +0 -105
  11. package/src/openapi/platform/models/announcement-banner.ts +0 -59
  12. package/src/openapi/platform/models/app-data-policies.ts +0 -79
  13. package/src/openapi/platform/models/app-migration.ts +0 -172
  14. package/src/openapi/platform/models/app-properties.ts +0 -32
  15. package/src/openapi/platform/models/audit-records.ts +0 -140
  16. package/src/openapi/platform/models/avatars.ts +0 -48
  17. package/src/openapi/platform/models/classification-levels.ts +0 -58
  18. package/src/openapi/platform/models/common.ts +0 -2669
  19. package/src/openapi/platform/models/dashboards.ts +0 -849
  20. package/src/openapi/platform/models/dynamic-modules.ts +0 -121
  21. package/src/openapi/platform/models/filter-sharing.ts +0 -103
  22. package/src/openapi/platform/models/filters.ts +0 -319
  23. package/src/openapi/platform/models/group-and-user-picker.ts +0 -85
  24. package/src/openapi/platform/models/groups.ts +0 -247
  25. package/src/openapi/platform/models/issue-attachments.ts +0 -290
  26. package/src/openapi/platform/models/issue-comment-properties.ts +0 -27
  27. package/src/openapi/platform/models/issue-comments.ts +0 -91
  28. package/src/openapi/platform/models/issue-custom-field-configuration-apps.ts +0 -96
  29. package/src/openapi/platform/models/issue-custom-field-contexts.ts +0 -1072
  30. package/src/openapi/platform/models/issue-custom-field-options-apps.ts +0 -273
  31. package/src/openapi/platform/models/issue-custom-field-options.ts +0 -283
  32. package/src/openapi/platform/models/issue-custom-field-values-apps.ts +0 -118
  33. package/src/openapi/platform/models/issue-field-configurations.ts +0 -435
  34. package/src/openapi/platform/models/issue-fields.ts +0 -392
  35. package/src/openapi/platform/models/issue-link-types.ts +0 -28
  36. package/src/openapi/platform/models/issue-links.ts +0 -185
  37. package/src/openapi/platform/models/issue-notification-schemes.ts +0 -370
  38. package/src/openapi/platform/models/issue-priorities.ts +0 -196
  39. package/src/openapi/platform/models/issue-properties.ts +0 -259
  40. package/src/openapi/platform/models/issue-remote-links.ts +0 -207
  41. package/src/openapi/platform/models/issue-resolutions.ts +0 -180
  42. package/src/openapi/platform/models/issue-search.ts +0 -367
  43. package/src/openapi/platform/models/issue-security-level.ts +0 -76
  44. package/src/openapi/platform/models/issue-security-schemes.ts +0 -496
  45. package/src/openapi/platform/models/issue-type-schemes.ts +0 -290
  46. package/src/openapi/platform/models/issue-type-screen-schemes.ts +0 -286
  47. package/src/openapi/platform/models/issue-types.ts +0 -66
  48. package/src/openapi/platform/models/issue-votes.ts +0 -38
  49. package/src/openapi/platform/models/issue-watchers.ts +0 -67
  50. package/src/openapi/platform/models/issue-worklogs.ts +0 -190
  51. package/src/openapi/platform/models/issues.ts +0 -1268
  52. package/src/openapi/platform/models/jira-expressions.ts +0 -578
  53. package/src/openapi/platform/models/jira-settings.ts +0 -118
  54. package/src/openapi/platform/models/jql-functions-apps.ts +0 -128
  55. package/src/openapi/platform/models/jql.ts +0 -783
  56. package/src/openapi/platform/models/labels.ts +0 -42
  57. package/src/openapi/platform/models/license-metrics.ts +0 -68
  58. package/src/openapi/platform/models/myself.ts +0 -29
  59. package/src/openapi/platform/models/permission-schemes.ts +0 -89
  60. package/src/openapi/platform/models/permissions.ts +0 -308
  61. package/src/openapi/platform/models/priority-schemes.ts +0 -527
  62. package/src/openapi/platform/models/project-avatars.ts +0 -29
  63. package/src/openapi/platform/models/project-classification-levels.ts +0 -24
  64. package/src/openapi/platform/models/project-components.ts +0 -231
  65. package/src/openapi/platform/models/project-email.ts +0 -27
  66. package/src/openapi/platform/models/project-features.ts +0 -78
  67. package/src/openapi/platform/models/project-permission-schemes.ts +0 -43
  68. package/src/openapi/platform/models/project-role-actors.ts +0 -107
  69. package/src/openapi/platform/models/project-roles.ts +0 -76
  70. package/src/openapi/platform/models/project-types.ts +0 -36
  71. package/src/openapi/platform/models/project-versions.ts +0 -216
  72. package/src/openapi/platform/models/projects.ts +0 -429
  73. package/src/openapi/platform/models/screen-schemes.ts +0 -192
  74. package/src/openapi/platform/models/screen-tab-fields.ts +0 -45
  75. package/src/openapi/platform/models/screens.ts +0 -171
  76. package/src/openapi/platform/models/server-info.ts +0 -100
  77. package/src/openapi/platform/models/service-registry.ts +0 -68
  78. package/src/openapi/platform/models/status.ts +0 -229
  79. package/src/openapi/platform/models/time-tracking.ts +0 -38
  80. package/src/openapi/platform/models/ui-modifications-apps.ts +0 -229
  81. package/src/openapi/platform/models/user-search.ts +0 -69
  82. package/src/openapi/platform/models/users.ts +0 -121
  83. package/src/openapi/platform/models/webhooks.ts +0 -307
  84. package/src/openapi/platform/models/workflow-scheme-drafts.ts +0 -58
  85. package/src/openapi/platform/models/workflow-scheme-project-associations.ts +0 -68
  86. package/src/openapi/platform/models/workflow-schemes.ts +0 -545
  87. package/src/openapi/platform/models/workflow-transition-properties.ts +0 -33
  88. package/src/openapi/platform/models/workflow-transition-rules.ts +0 -261
  89. package/src/openapi/platform/models/workflows.ts +0 -1943
  90. package/src/openapi/platform/services/announcement-banner-service.ts +0 -142
  91. package/src/openapi/platform/services/app-data-policies-service.ts +0 -136
  92. package/src/openapi/platform/services/app-migration-service.ts +0 -289
  93. package/src/openapi/platform/services/app-properties-service.ts +0 -441
  94. package/src/openapi/platform/services/application-roles-service.ts +0 -247
  95. package/src/openapi/platform/services/audit-records-service.ts +0 -164
  96. package/src/openapi/platform/services/avatars-service.ts +0 -769
  97. package/src/openapi/platform/services/classification-levels-service.ts +0 -131
  98. package/src/openapi/platform/services/dashboards-service.ts +0 -1721
  99. package/src/openapi/platform/services/dynamic-modules-service.ts +0 -127
  100. package/src/openapi/platform/services/filter-sharing-service.ts +0 -687
  101. package/src/openapi/platform/services/filters-service.ts +0 -1901
  102. package/src/openapi/platform/services/group-and-user-picker-service.ts +0 -224
  103. package/src/openapi/platform/services/groups-service.ts +0 -751
  104. package/src/openapi/platform/services/issue-attachments-service.ts +0 -900
  105. package/src/openapi/platform/services/issue-comment-properties-service.ts +0 -324
  106. package/src/openapi/platform/services/issue-comments-service.ts +0 -812
  107. package/src/openapi/platform/services/issue-custom-field-configuration-apps-service.ts +0 -277
  108. package/src/openapi/platform/services/issue-custom-field-contexts-service.ts +0 -1339
  109. package/src/openapi/platform/services/issue-custom-field-options-apps-service.ts +0 -994
  110. package/src/openapi/platform/services/issue-custom-field-options-service.ts +0 -651
  111. package/src/openapi/platform/services/issue-custom-field-values-apps-service.ts +0 -201
  112. package/src/openapi/platform/services/issue-field-configurations-service.ts +0 -1294
  113. package/src/openapi/platform/services/issue-fields-service.ts +0 -837
  114. package/src/openapi/platform/services/issue-link-types-service.ts +0 -360
  115. package/src/openapi/platform/services/issue-links-service.ts +0 -345
  116. package/src/openapi/platform/services/issue-navigator-settings-service.ts +0 -119
  117. package/src/openapi/platform/services/issue-notification-schemes-service.ts +0 -1209
  118. package/src/openapi/platform/services/issue-priorities-service.ts +0 -575
  119. package/src/openapi/platform/services/issue-properties-service.ts +0 -606
  120. package/src/openapi/platform/services/issue-remote-links-service.ts +0 -597
  121. package/src/openapi/platform/services/issue-resolutions-service.ts +0 -534
  122. package/src/openapi/platform/services/issue-search-service.ts +0 -1139
  123. package/src/openapi/platform/services/issue-security-level-service.ts +0 -250
  124. package/src/openapi/platform/services/issue-security-schemes-service.ts +0 -1240
  125. package/src/openapi/platform/services/issue-type-properties-service.ts +0 -325
  126. package/src/openapi/platform/services/issue-type-schemes-service.ts +0 -940
  127. package/src/openapi/platform/services/issue-type-screen-schemes-service.ts +0 -994
  128. package/src/openapi/platform/services/issue-types-service.ts +0 -679
  129. package/src/openapi/platform/services/issue-votes-service.ts +0 -221
  130. package/src/openapi/platform/services/issue-watchers-service.ts +0 -331
  131. package/src/openapi/platform/services/issue-worklog-properties-service.ts +0 -348
  132. package/src/openapi/platform/services/issue-worklogs-service.ts +0 -1089
  133. package/src/openapi/platform/services/issues-service.ts +0 -3346
  134. package/src/openapi/platform/services/jira-expressions-service.ts +0 -407
  135. package/src/openapi/platform/services/jira-settings-service.ts +0 -415
  136. package/src/openapi/platform/services/jql-functions-apps-service.ts +0 -219
  137. package/src/openapi/platform/services/jql-service.ts +0 -896
  138. package/src/openapi/platform/services/labels-service.ts +0 -89
  139. package/src/openapi/platform/services/license-metrics-service.ts +0 -216
  140. package/src/openapi/platform/services/myself-service.ts +0 -520
  141. package/src/openapi/platform/services/permission-schemes-service.ts +0 -926
  142. package/src/openapi/platform/services/permissions-service.ts +0 -407
  143. package/src/openapi/platform/services/priority-schemes-service.ts +0 -1001
  144. package/src/openapi/platform/services/project-avatars-service.ts +0 -341
  145. package/src/openapi/platform/services/project-categories-service.ts +0 -318
  146. package/src/openapi/platform/services/project-classification-levels-service.ts +0 -232
  147. package/src/openapi/platform/services/project-components-service.ts +0 -1332
  148. package/src/openapi/platform/services/project-email-service.ts +0 -161
  149. package/src/openapi/platform/services/project-features-service.ts +0 -207
  150. package/src/openapi/platform/services/project-key-and-name-validation-service.ts +0 -200
  151. package/src/openapi/platform/services/project-permission-schemes-service.ts +0 -384
  152. package/src/openapi/platform/services/project-properties-service.ts +0 -320
  153. package/src/openapi/platform/services/project-role-actors-service.ts +0 -627
  154. package/src/openapi/platform/services/project-roles-service.ts +0 -867
  155. package/src/openapi/platform/services/project-types-service.ts +0 -297
  156. package/src/openapi/platform/services/project-versions-service.ts +0 -1287
  157. package/src/openapi/platform/services/projects-service.ts +0 -2196
  158. package/src/openapi/platform/services/screen-schemes-service.ts +0 -334
  159. package/src/openapi/platform/services/screen-tab-fields-service.ts +0 -276
  160. package/src/openapi/platform/services/screen-tabs-service.ts +0 -421
  161. package/src/openapi/platform/services/screens-service.ts +0 -528
  162. package/src/openapi/platform/services/server-info-service.ts +0 -88
  163. package/src/openapi/platform/services/service-registry-service.ts +0 -89
  164. package/src/openapi/platform/services/status-service.ts +0 -498
  165. package/src/openapi/platform/services/tasks-service.ts +0 -159
  166. package/src/openapi/platform/services/time-tracking-service.ts +0 -386
  167. package/src/openapi/platform/services/ui-modifications-apps-service.ts +0 -403
  168. package/src/openapi/platform/services/user-properties-service.ts +0 -413
  169. package/src/openapi/platform/services/user-search-service.ts +0 -1214
  170. package/src/openapi/platform/services/users-service.ts +0 -1108
  171. package/src/openapi/platform/services/webhooks-service.ts +0 -458
  172. package/src/openapi/platform/services/workflow-scheme-drafts-service.ts +0 -1313
  173. package/src/openapi/platform/services/workflow-scheme-project-associations-service.ts +0 -189
  174. package/src/openapi/platform/services/workflow-schemes-service.ts +0 -1617
  175. package/src/openapi/platform/services/workflow-status-categories-service.ts +0 -151
  176. package/src/openapi/platform/services/workflow-statuses-service.ts +0 -176
  177. package/src/openapi/platform/services/workflow-transition-properties-service.ts +0 -388
  178. package/src/openapi/platform/services/workflow-transition-rules-service.ts +0 -485
  179. package/src/openapi/platform/services/workflows-service.ts +0 -3477
  180. package/src/openapi/platform/validation-schema-storage.ts +0 -186
  181. package/src/openapi/software/base-jira-software-api-client.ts +0 -447
  182. package/src/openapi/software/core/common-http-client.ts +0 -723
  183. package/src/openapi/software/core/common-http-service.ts +0 -22
  184. package/src/openapi/software/core/common-validation-schema-storage.ts +0 -105
  185. package/src/openapi/software/models/board.ts +0 -918
  186. package/src/openapi/software/services/backlog-service.ts +0 -160
  187. package/src/openapi/software/services/board-service.ts +0 -4189
  188. package/src/openapi/software/services/builds-service.ts +0 -571
  189. package/src/openapi/software/services/deployments-service.ts +0 -403
  190. package/src/openapi/software/services/dev-ops-components-service.ts +0 -371
  191. package/src/openapi/software/services/development-information-service.ts +0 -2357
  192. package/src/openapi/software/services/epic-service.ts +0 -854
  193. package/src/openapi/software/services/feature-flags-service.ts +0 -303
  194. package/src/openapi/software/services/issue-service.ts +0 -529
  195. package/src/openapi/software/services/operations-service.ts +0 -741
  196. package/src/openapi/software/services/remote-links-service.ts +0 -653
  197. package/src/openapi/software/services/security-information-service.ts +0 -495
  198. package/src/openapi/software/services/sprint-service.ts +0 -969
  199. package/src/openapi/software/validation-schema-storage.ts +0 -186
  200. package/tsconfig.build.json +0 -7
  201. package/tsconfig.json +0 -4
@@ -1,1240 +0,0 @@
1
- // DO NOT EDIT!
2
- // This file is generated by "api-typescript-generator".
3
- // To update this file run "yarn build:openapi".
4
- import { z } from "zod";
5
-
6
- import * as commonHttpClient from "../core/common-http-client";
7
- import { CommonHttpService } from "../core/common-http-service";
8
- import {
9
- registerCommonValidationSchemas,
10
- type SecurityScheme,
11
- } from "../models/common";
12
- import {
13
- type AddSecuritySchemeLevelsRequestBean,
14
- type AssociateSecuritySchemeWithProjectDetails,
15
- type CreateIssueSecuritySchemeDetails,
16
- type PageBeanIssueSecuritySchemeToProjectMapping,
17
- type PageBeanSecurityLevel,
18
- type PageBeanSecurityLevelMember,
19
- type PageBeanSecuritySchemeWithProjects,
20
- registerIssueSecuritySchemesValidationSchemas,
21
- type SecuritySchemeId,
22
- type SecuritySchemeMembersRequest,
23
- type SecuritySchemes,
24
- type SetDefaultLevelsRequest,
25
- type UpdateIssueSecurityLevelDetails,
26
- type UpdateIssueSecuritySchemeRequestBean,
27
- } from "../models/issue-security-schemes";
28
- import { validationSchemaStorage } from "../validation-schema-storage";
29
- /**
30
- * This resource represents issue security schemes. Use it to get an issue
31
- * security scheme or a list of issue security schemes.
32
- *
33
- * Issue security schemes control which users or groups of users can view an
34
- * issue. When an issue security scheme is associated with a project, its security
35
- * levels can be applied to issues in that project. Sub-tasks also inherit the
36
- * security level of their parent issue.
37
- */
38
- export class IssueSecuritySchemesService extends CommonHttpService {
39
- /**
40
- * Adds levels and levels' members to the issue security scheme. You can add up to
41
- * 100 levels per request.
42
- *
43
- * **[Permissions](#permissions) required:** *Administer Jira* [global
44
- * permission](https://confluence.atlassian.com/x/x4dKLg).
45
- *
46
- * @returns Returned if the request is successful.
47
- * @path {PUT} /rest/api/3/issuesecurityschemes/{schemeId}/level
48
- */
49
- addSecurityLevel({
50
- schemeId,
51
- addSecuritySchemeLevelsRequestBean,
52
- }: {
53
- /** The ID of the issue security scheme. */
54
- schemeId: string;
55
- /**
56
- * @example {
57
- * "levels": [
58
- * {
59
- * "description": "First Level Description",
60
- * "isDefault": true,
61
- * "members": [
62
- * {
63
- * "type": "reporter"
64
- * },
65
- * {
66
- * "parameter": "jira-administrators",
67
- * "type": "group"
68
- * }
69
- * ],
70
- * "name": "First Level"
71
- * }
72
- * ]
73
- * }
74
- */
75
- addSecuritySchemeLevelsRequestBean: AddSecuritySchemeLevelsRequestBean;
76
- }): Promise<void> {
77
- return this.getClientInstance()
78
- .request({
79
- path: "/rest/api/3/issuesecurityschemes/{schemeId}/level",
80
- method: "PUT",
81
- pathParams: {
82
- schemeId,
83
- },
84
- headers: {
85
- "Content-Type": "application/json",
86
- },
87
- body: addSecuritySchemeLevelsRequestBean,
88
- })
89
- .then(
90
- this.getClientInstance().responseHandler({
91
- 204: {
92
- "application/json": "json",
93
- },
94
- }),
95
- )
96
- .then(
97
- commonHttpClient.castResponse<{
98
- status: 204;
99
- mediaType: "application/json";
100
- body: void;
101
- }>(),
102
- )
103
- .then(
104
- validationSchemaStorage.validator(
105
- "IssueSecuritySchemesService.addSecurityLevel.response",
106
- ),
107
- )
108
- .then(commonHttpClient.getBody);
109
- }
110
- /**
111
- * Adds members to the issue security level. You can add up to 100 members per
112
- * request.
113
- *
114
- * **[Permissions](#permissions) required:** *Administer Jira* [global
115
- * permission](https://confluence.atlassian.com/x/x4dKLg).
116
- *
117
- * @returns Returned if the request is successful.
118
- * @path {PUT} /rest/api/3/issuesecurityschemes/{schemeId}/level/{levelId}/member
119
- */
120
- addSecurityLevelMembers({
121
- schemeId,
122
- levelId,
123
- securitySchemeMembersRequest,
124
- }: {
125
- /** The ID of the issue security scheme. */
126
- schemeId: string;
127
- /** The ID of the issue security level. */
128
- levelId: string;
129
- /**
130
- * @example {
131
- * "members": [
132
- * {
133
- * "type": "reporter"
134
- * },
135
- * {
136
- * "parameter": "jira-administrators",
137
- * "type": "group"
138
- * }
139
- * ]
140
- * }
141
- */
142
- securitySchemeMembersRequest: SecuritySchemeMembersRequest;
143
- }): Promise<void> {
144
- return this.getClientInstance()
145
- .request({
146
- path: "/rest/api/3/issuesecurityschemes/{schemeId}/level/{levelId}/member",
147
- method: "PUT",
148
- pathParams: {
149
- schemeId,
150
- levelId,
151
- },
152
- headers: {
153
- "Content-Type": "application/json",
154
- },
155
- body: securitySchemeMembersRequest,
156
- })
157
- .then(
158
- this.getClientInstance().responseHandler({
159
- 204: {
160
- "application/json": "json",
161
- },
162
- }),
163
- )
164
- .then(
165
- commonHttpClient.castResponse<{
166
- status: 204;
167
- mediaType: "application/json";
168
- body: void;
169
- }>(),
170
- )
171
- .then(
172
- validationSchemaStorage.validator(
173
- "IssueSecuritySchemesService.addSecurityLevelMembers.response",
174
- ),
175
- )
176
- .then(commonHttpClient.getBody);
177
- }
178
- /**
179
- * Associates an issue security scheme with a project and remaps security levels
180
- * of issues to the new levels, if provided.
181
- *
182
- * This operation is [asynchronous](#async). Follow the `location` link in the
183
- * response to determine the status of the task and use [Get
184
- * task](#api-rest-api-3-task-taskId-get) to obtain subsequent updates.
185
- *
186
- * **[Permissions](#permissions) required:** *Administer Jira* [global
187
- * permission](https://confluence.atlassian.com/x/x4dKLg).
188
- *
189
- * @path {PUT} /rest/api/3/issuesecurityschemes/project
190
- */
191
- associateSchemesToProjects({
192
- associateSecuritySchemeWithProjectDetails,
193
- }: {
194
- /**
195
- * @example {
196
- * "oldToNewSecurityLevelMappings": [
197
- * {
198
- * "newLevelId": "30001",
199
- * "oldLevelId": "30000"
200
- * }
201
- * ],
202
- * "projectId": "10000",
203
- * "schemeId": "20000"
204
- * }
205
- */
206
- associateSecuritySchemeWithProjectDetails: AssociateSecuritySchemeWithProjectDetails;
207
- }): Promise<void> {
208
- return this.getClientInstance()
209
- .request({
210
- path: "/rest/api/3/issuesecurityschemes/project",
211
- method: "PUT",
212
- headers: {
213
- "Content-Type": "application/json",
214
- },
215
- body: associateSecuritySchemeWithProjectDetails,
216
- })
217
- .then(commonHttpClient.discardResult);
218
- }
219
- /**
220
- * Creates a security scheme with security scheme levels and levels' members. You
221
- * can create up to 100 security scheme levels and security scheme levels' members
222
- * per request.
223
- *
224
- * **[Permissions](#permissions) required:** *Administer Jira* [global
225
- * permission](https://confluence.atlassian.com/x/x4dKLg).
226
- *
227
- * @returns Returned if the request is successful.
228
- *
229
- * example: {
230
- * "id": "10001"
231
- * }
232
- * @path {POST} /rest/api/3/issuesecurityschemes
233
- */
234
- createIssueSecurityScheme({
235
- createIssueSecuritySchemeDetails,
236
- }: {
237
- /**
238
- * @example {
239
- * "description": "Newly created issue security scheme",
240
- * "levels": [
241
- * {
242
- * "description": "Newly created level",
243
- * "isDefault": true,
244
- * "members": [
245
- * {
246
- * "parameter": "administrators",
247
- * "type": "group"
248
- * }
249
- * ],
250
- * "name": "New level"
251
- * }
252
- * ],
253
- * "name": "New security scheme"
254
- * }
255
- */
256
- createIssueSecuritySchemeDetails: CreateIssueSecuritySchemeDetails;
257
- }): Promise<SecuritySchemeId> {
258
- return this.getClientInstance()
259
- .request({
260
- path: "/rest/api/3/issuesecurityschemes",
261
- method: "POST",
262
- headers: {
263
- "Content-Type": "application/json",
264
- },
265
- body: createIssueSecuritySchemeDetails,
266
- })
267
- .then(
268
- this.getClientInstance().responseHandler({
269
- 201: {
270
- "application/json": "json",
271
- },
272
- }),
273
- )
274
- .then(
275
- commonHttpClient.castResponse<{
276
- status: 201;
277
- mediaType: "application/json";
278
- body: SecuritySchemeId;
279
- }>(),
280
- )
281
- .then(
282
- validationSchemaStorage.validator(
283
- "IssueSecuritySchemesService.createIssueSecurityScheme.response",
284
- ),
285
- )
286
- .then(commonHttpClient.getBody);
287
- }
288
- /**
289
- * Deletes an issue security scheme.
290
- *
291
- * **[Permissions](#permissions) required:** *Administer Jira* [global
292
- * permission](https://confluence.atlassian.com/x/x4dKLg).
293
- *
294
- * @returns Returned if the request is successful.
295
- * @path {DELETE} /rest/api/3/issuesecurityschemes/{schemeId}
296
- */
297
- deleteSecurityScheme({
298
- schemeId,
299
- }: {
300
- /** The ID of the issue security scheme. */
301
- schemeId: string;
302
- }): Promise<void> {
303
- return this.getClientInstance()
304
- .request({
305
- path: "/rest/api/3/issuesecurityschemes/{schemeId}",
306
- method: "DELETE",
307
- pathParams: {
308
- schemeId,
309
- },
310
- })
311
- .then(
312
- this.getClientInstance().responseHandler({
313
- 204: {
314
- "application/json": "json",
315
- },
316
- }),
317
- )
318
- .then(
319
- commonHttpClient.castResponse<{
320
- status: 204;
321
- mediaType: "application/json";
322
- body: void;
323
- }>(),
324
- )
325
- .then(
326
- validationSchemaStorage.validator(
327
- "IssueSecuritySchemesService.deleteSecurityScheme.response",
328
- ),
329
- )
330
- .then(commonHttpClient.getBody);
331
- }
332
- /**
333
- * Returns an issue security scheme along with its security levels.
334
- *
335
- * **[Permissions](#permissions) required:**
336
- *
337
- * * *Administer Jira* [global
338
- * permission](https://confluence.atlassian.com/x/x4dKLg).
339
- * * *Administer Projects* [project
340
- * permission](https://confluence.atlassian.com/x/yodKLg) for a project that uses
341
- * the requested issue security scheme.
342
- *
343
- * @returns Returned if the request is successful.
344
- *
345
- * example: {
346
- * "defaultSecurityLevelId": 10021,
347
- * "description": "Description for the default issue security scheme",
348
- * "id": 10000,
349
- * "levels": [
350
- * {
351
- * "description": "Only the reporter and internal staff can see this issue.",
352
- * "id": "10021",
353
- * "name": "Reporter Only",
354
- * "self": "https://your-domain.atlassian.net/rest/api/3/securitylevel/10021"
355
- * }
356
- * ],
357
- * "name": "Default Issue Security Scheme",
358
- * "self":
359
- * "https://your-domain.atlassian.net/rest/api/3/issuesecurityschemes/10000"
360
- * }
361
- * @path {GET} /rest/api/3/issuesecurityschemes/{id}
362
- * @scopes-current manage:jira-project
363
- * @scopes-beta read:issue-security-level:jira, read:issue-security-scheme:jira
364
- */
365
- getIssueSecurityScheme({
366
- id,
367
- }: {
368
- /**
369
- * The ID of the issue security scheme. Use the [Get issue security
370
- * schemes](#api-rest-api-3-issuesecurityschemes-get) operation to get a list of
371
- * issue security scheme IDs.
372
- */
373
- id: number;
374
- }): Promise<SecurityScheme> {
375
- return this.getClientInstance()
376
- .request({
377
- path: "/rest/api/3/issuesecurityschemes/{id}",
378
- method: "GET",
379
- pathParams: {
380
- id,
381
- },
382
- })
383
- .then(
384
- this.getClientInstance().responseHandler({
385
- 200: {
386
- "application/json": "json",
387
- },
388
- }),
389
- )
390
- .then(
391
- commonHttpClient.castResponse<{
392
- status: 200;
393
- mediaType: "application/json";
394
- body: SecurityScheme;
395
- }>(),
396
- )
397
- .then(
398
- validationSchemaStorage.validator(
399
- "IssueSecuritySchemesService.getIssueSecurityScheme.response",
400
- ),
401
- )
402
- .then(commonHttpClient.getBody);
403
- }
404
- /**
405
- * Returns all [issue security schemes](https://confluence.atlassian.com/x/J4lKLg).
406
- *
407
- * **[Permissions](#permissions) required:** *Administer Jira* [global
408
- * permission](https://confluence.atlassian.com/x/x4dKLg).
409
- *
410
- * @returns Returned if the request is successful.
411
- *
412
- * example: {
413
- * "issueSecuritySchemes": [
414
- * {
415
- * "defaultSecurityLevelId": 10021,
416
- * "description": "Description for the default issue security scheme",
417
- * "id": 10000,
418
- * "name": "Default Issue Security Scheme",
419
- * "self":
420
- * "https://your-domain.atlassian.net/rest/api/3/issuesecurityschemes/10000"
421
- * }
422
- * ]
423
- * }
424
- * @path {GET} /rest/api/3/issuesecurityschemes
425
- * @scopes-current manage:jira-project
426
- * @scopes-beta read:issue-security-level:jira, read:issue-security-scheme:jira
427
- */
428
- getIssueSecuritySchemes(): Promise<SecuritySchemes> {
429
- return this.getClientInstance()
430
- .request({
431
- path: "/rest/api/3/issuesecurityschemes",
432
- method: "GET",
433
- })
434
- .then(
435
- this.getClientInstance().responseHandler({
436
- 200: {
437
- "application/json": "json",
438
- },
439
- }),
440
- )
441
- .then(
442
- commonHttpClient.castResponse<{
443
- status: 200;
444
- mediaType: "application/json";
445
- body: SecuritySchemes;
446
- }>(),
447
- )
448
- .then(
449
- validationSchemaStorage.validator(
450
- "IssueSecuritySchemesService.getIssueSecuritySchemes.response",
451
- ),
452
- )
453
- .then(commonHttpClient.getBody);
454
- }
455
- /**
456
- * Returns a [paginated](#pagination) list of issue security level members.
457
- *
458
- * Only issue security level members in the context of classic projects are
459
- * returned.
460
- *
461
- * Filtering using parameters is inclusive: if you specify both security scheme
462
- * IDs and level IDs, the result will include all issue security level members
463
- * from the specified schemes and levels.
464
- *
465
- * **[Permissions](#permissions) required:** *Administer Jira* [global
466
- * permission](https://confluence.atlassian.com/x/x4dKLg).
467
- *
468
- * @returns Returned if the request is successful.
469
- *
470
- * example: {
471
- * "isLast": true,
472
- * "maxResults": 100,
473
- * "startAt": 0,
474
- * "total": 3,
475
- * "values": [
476
- * {
477
- * "id": "10000",
478
- * "issueSecurityLevelId": "20010",
479
- * "issueSecuritySchemeId": "10010",
480
- * "holder": {
481
- * "expand": "group",
482
- * "type": "group"
483
- * }
484
- * }
485
- * ]
486
- * }
487
- * @path {GET} /rest/api/3/issuesecurityschemes/level/member
488
- * @scopes-current manage:jira-configuration
489
- * @scopes-beta read:issue-security-level:jira, read:issue-security-scheme:jira
490
- */
491
- getSecurityLevelMembers({
492
- startAt,
493
- maxResults,
494
- id,
495
- schemeId,
496
- levelId,
497
- expand,
498
- }: {
499
- /** The index of the first item to return in a page of results (page offset). */
500
- startAt?: string;
501
- /** The maximum number of items to return per page. */
502
- maxResults?: string;
503
- /**
504
- * The list of issue security level member IDs. To include multiple issue security
505
- * level members separate IDs with an ampersand: `id=10000&id=10001`.
506
- */
507
- id?: string[];
508
- /**
509
- * The list of issue security scheme IDs. To include multiple issue security
510
- * schemes separate IDs with an ampersand: `schemeId=10000&schemeId=10001`.
511
- */
512
- schemeId?: string[];
513
- /**
514
- * The list of issue security level IDs. To include multiple issue security levels
515
- * separate IDs with an ampersand: `levelId=10000&levelId=10001`.
516
- */
517
- levelId?: string[];
518
- /**
519
- * Use expand to include additional information in the response. This parameter
520
- * accepts a comma-separated list. Expand options include:
521
- *
522
- * * `all` Returns all expandable information
523
- * * `field` Returns information about the custom field granted the permission
524
- * * `group` Returns information about the group that is granted the permission
525
- * * `projectRole` Returns information about the project role granted the
526
- * permission
527
- * * `user` Returns information about the user who is granted the permission
528
- */
529
- expand?: string;
530
- }): Promise<PageBeanSecurityLevelMember> {
531
- return this.getClientInstance()
532
- .request({
533
- path: "/rest/api/3/issuesecurityschemes/level/member",
534
- method: "GET",
535
- query: {
536
- startAt,
537
- maxResults,
538
- id,
539
- schemeId,
540
- levelId,
541
- expand,
542
- },
543
- })
544
- .then(
545
- this.getClientInstance().responseHandler({
546
- 200: {
547
- "application/json": "json",
548
- },
549
- }),
550
- )
551
- .then(
552
- commonHttpClient.castResponse<{
553
- status: 200;
554
- mediaType: "application/json";
555
- body: PageBeanSecurityLevelMember;
556
- }>(),
557
- )
558
- .then(
559
- validationSchemaStorage.validator(
560
- "IssueSecuritySchemesService.getSecurityLevelMembers.response",
561
- ),
562
- )
563
- .then(commonHttpClient.getBody);
564
- }
565
- /**
566
- * Returns a [paginated](#pagination) list of issue security levels.
567
- *
568
- * Only issue security levels in the context of classic projects are returned.
569
- *
570
- * Filtering using IDs is inclusive: if you specify both security scheme IDs and
571
- * level IDs, the result will include both specified issue security levels and all
572
- * issue security levels from the specified schemes.
573
- *
574
- * **[Permissions](#permissions) required:** *Administer Jira* [global
575
- * permission](https://confluence.atlassian.com/x/x4dKLg).
576
- *
577
- * @returns Returned if the request is successful.
578
- *
579
- * example: {
580
- * "isLast": true,
581
- * "maxResults": 50,
582
- * "startAt": 0,
583
- * "total": 1,
584
- * "values": [
585
- * {
586
- * "description": "Only the reporter and internal staff can see this issue.",
587
- * "id": "10021",
588
- * "isDefault": true,
589
- * "issueSecuritySchemeId": "10001",
590
- * "name": "Reporter Only",
591
- * "self":
592
- * "https://your-domain.atlassian.net/rest/api/3/issuesecurityscheme/level?id=10021"
593
- * }
594
- * ]
595
- * }
596
- * @path {GET} /rest/api/3/issuesecurityschemes/level
597
- * @scopes-current manage:jira-configuration
598
- * @scopes-beta read:issue-security-level:jira, read:issue-security-scheme:jira
599
- */
600
- getSecurityLevels({
601
- startAt,
602
- maxResults,
603
- id,
604
- schemeId,
605
- onlyDefault,
606
- }: {
607
- /** The index of the first item to return in a page of results (page offset). */
608
- startAt?: string;
609
- /** The maximum number of items to return per page. */
610
- maxResults?: string;
611
- /**
612
- * The list of issue security scheme level IDs. To include multiple issue security
613
- * levels, separate IDs with an ampersand: `id=10000&id=10001`.
614
- */
615
- id?: string[];
616
- /**
617
- * The list of issue security scheme IDs. To include multiple issue security
618
- * schemes, separate IDs with an ampersand: `schemeId=10000&schemeId=10001`.
619
- */
620
- schemeId?: string[];
621
- /**
622
- * When set to true, returns multiple default levels for each security scheme
623
- * containing a default. If you provide scheme and level IDs not associated with
624
- * the default, returns an empty page. The default value is false.
625
- */
626
- onlyDefault?: boolean;
627
- }): Promise<PageBeanSecurityLevel> {
628
- return this.getClientInstance()
629
- .request({
630
- path: "/rest/api/3/issuesecurityschemes/level",
631
- method: "GET",
632
- query: {
633
- startAt,
634
- maxResults,
635
- id,
636
- schemeId,
637
- onlyDefault,
638
- },
639
- })
640
- .then(
641
- this.getClientInstance().responseHandler({
642
- 200: {
643
- "application/json": "json",
644
- },
645
- }),
646
- )
647
- .then(
648
- commonHttpClient.castResponse<{
649
- status: 200;
650
- mediaType: "application/json";
651
- body: PageBeanSecurityLevel;
652
- }>(),
653
- )
654
- .then(
655
- validationSchemaStorage.validator(
656
- "IssueSecuritySchemesService.getSecurityLevels.response",
657
- ),
658
- )
659
- .then(commonHttpClient.getBody);
660
- }
661
- /**
662
- * Deletes an issue security level.
663
- *
664
- * This operation is [asynchronous](#async). Follow the `location` link in the
665
- * response to determine the status of the task and use [Get
666
- * task](#api-rest-api-3-task-taskId-get) to obtain subsequent updates.
667
- *
668
- * **[Permissions](#permissions) required:** *Administer Jira* [global
669
- * permission](https://confluence.atlassian.com/x/x4dKLg).
670
- *
671
- * @path {DELETE} /rest/api/3/issuesecurityschemes/{schemeId}/level/{levelId}
672
- */
673
- removeLevel({
674
- schemeId,
675
- levelId,
676
- replaceWith,
677
- }: {
678
- /** The ID of the issue security scheme. */
679
- schemeId: string;
680
- /** The ID of the issue security level to remove. */
681
- levelId: string;
682
- /**
683
- * The ID of the issue security level that will replace the currently selected
684
- * level.
685
- */
686
- replaceWith?: string;
687
- }): Promise<void> {
688
- return this.getClientInstance()
689
- .request({
690
- path: "/rest/api/3/issuesecurityschemes/{schemeId}/level/{levelId}",
691
- method: "DELETE",
692
- pathParams: {
693
- schemeId,
694
- levelId,
695
- },
696
- query: {
697
- replaceWith,
698
- },
699
- })
700
- .then(commonHttpClient.discardResult);
701
- }
702
- /**
703
- * Removes an issue security level member from an issue security scheme.
704
- *
705
- * **[Permissions](#permissions) required:** *Administer Jira* [global
706
- * permission](https://confluence.atlassian.com/x/x4dKLg).
707
- *
708
- * @returns Returned if the request is successful.
709
- * @path {DELETE}
710
- * /rest/api/3/issuesecurityschemes/{schemeId}/level/{levelId}/member/{memberId}
711
- */
712
- removeMemberFromSecurityLevel({
713
- schemeId,
714
- levelId,
715
- memberId,
716
- }: {
717
- /** The ID of the issue security scheme. */
718
- schemeId: string;
719
- /** The ID of the issue security level. */
720
- levelId: string;
721
- /** The ID of the issue security level member to be removed. */
722
- memberId: string;
723
- }): Promise<void> {
724
- return this.getClientInstance()
725
- .request({
726
- path: "/rest/api/3/issuesecurityschemes/{schemeId}/level/{levelId}/member/{memberId}",
727
- method: "DELETE",
728
- pathParams: {
729
- schemeId,
730
- levelId,
731
- memberId,
732
- },
733
- })
734
- .then(
735
- this.getClientInstance().responseHandler({
736
- 204: {
737
- "application/json": "json",
738
- },
739
- }),
740
- )
741
- .then(
742
- commonHttpClient.castResponse<{
743
- status: 204;
744
- mediaType: "application/json";
745
- body: void;
746
- }>(),
747
- )
748
- .then(
749
- validationSchemaStorage.validator(
750
- "IssueSecuritySchemesService.removeMemberFromSecurityLevel.response",
751
- ),
752
- )
753
- .then(commonHttpClient.getBody);
754
- }
755
- /**
756
- * Returns a [paginated](#pagination) mapping of projects that are using security
757
- * schemes. You can provide either one or multiple security scheme IDs or project
758
- * IDs to filter by. If you don't provide any, this will return a list of all
759
- * mappings. Only issue security schemes in the context of classic projects are
760
- * supported. **[Permissions](#permissions) required:** *Administer Jira* [global
761
- * permission](https://confluence.atlassian.com/x/x4dKLg).
762
- *
763
- * @returns Returned if the request is successful.
764
- *
765
- * example: {
766
- * "issueSecuritySchemeId": "10000",
767
- * "projectId": "10000"
768
- * }
769
- * @path {GET} /rest/api/3/issuesecurityschemes/project
770
- */
771
- searchProjectsUsingSecuritySchemes({
772
- startAt,
773
- maxResults,
774
- issueSecuritySchemeId,
775
- projectId,
776
- }: {
777
- /** The index of the first item to return in a page of results (page offset). */
778
- startAt?: string;
779
- /** The maximum number of items to return per page. */
780
- maxResults?: string;
781
- /** The list of security scheme IDs to be filtered out. */
782
- issueSecuritySchemeId?: string[];
783
- /** The list of project IDs to be filtered out. */
784
- projectId?: string[];
785
- }): Promise<PageBeanIssueSecuritySchemeToProjectMapping> {
786
- return this.getClientInstance()
787
- .request({
788
- path: "/rest/api/3/issuesecurityschemes/project",
789
- method: "GET",
790
- query: {
791
- startAt,
792
- maxResults,
793
- issueSecuritySchemeId,
794
- projectId,
795
- },
796
- })
797
- .then(
798
- this.getClientInstance().responseHandler({
799
- 200: {
800
- "application/json": "json",
801
- },
802
- }),
803
- )
804
- .then(
805
- commonHttpClient.castResponse<{
806
- status: 200;
807
- mediaType: "application/json";
808
- body: PageBeanIssueSecuritySchemeToProjectMapping;
809
- }>(),
810
- )
811
- .then(
812
- validationSchemaStorage.validator(
813
- "IssueSecuritySchemesService.searchProjectsUsingSecuritySchemes.response",
814
- ),
815
- )
816
- .then(commonHttpClient.getBody);
817
- }
818
- /**
819
- * Returns a [paginated](#pagination) list of issue security schemes.
820
- * If you specify the project ID parameter, the result will contain issue security
821
- * schemes and related project IDs you filter by. Use \{@link
822
- * IssueSecuritySchemeResource\#searchProjectsUsingSecuritySchemes(String, String,
823
- * Set, Set)\} to obtain all projects related to scheme.
824
- *
825
- * Only issue security schemes in the context of classic projects are returned.
826
- *
827
- * **[Permissions](#permissions) required:** *Administer Jira* [global
828
- * permission](https://confluence.atlassian.com/x/x4dKLg).
829
- *
830
- * @returns Returned if the request is successful.
831
- *
832
- * example: {
833
- * "id": 10000,
834
- * "self":
835
- * "https://your-domain.atlassian.net/rest/api/3/issuesecurityscheme/10000",
836
- * "name": "Default scheme",
837
- * "description": "Default scheme description",
838
- * "defaultLevel": 10001,
839
- * "projectIds": [
840
- * 10002
841
- * ]
842
- * }
843
- * @path {GET} /rest/api/3/issuesecurityschemes/search
844
- * @scopes-current manage:jira-configuration
845
- * @scopes-beta read:issue-security-level:jira, read:issue-security-scheme:jira
846
- */
847
- searchSecuritySchemes({
848
- startAt,
849
- maxResults,
850
- id,
851
- projectId,
852
- }: {
853
- /** The index of the first item to return in a page of results (page offset). */
854
- startAt?: string;
855
- /** The maximum number of items to return per page. */
856
- maxResults?: string;
857
- /**
858
- * The list of issue security scheme IDs. To include multiple issue security
859
- * scheme IDs, separate IDs with an ampersand: `id=10000&id=10001`.
860
- */
861
- id?: string[];
862
- /**
863
- * The list of project IDs. To include multiple project IDs, separate IDs with an
864
- * ampersand: `projectId=10000&projectId=10001`.
865
- */
866
- projectId?: string[];
867
- }): Promise<PageBeanSecuritySchemeWithProjects> {
868
- return this.getClientInstance()
869
- .request({
870
- path: "/rest/api/3/issuesecurityschemes/search",
871
- method: "GET",
872
- query: {
873
- startAt,
874
- maxResults,
875
- id,
876
- projectId,
877
- },
878
- })
879
- .then(
880
- this.getClientInstance().responseHandler({
881
- 200: {
882
- "application/json": "json",
883
- },
884
- }),
885
- )
886
- .then(
887
- commonHttpClient.castResponse<{
888
- status: 200;
889
- mediaType: "application/json";
890
- body: PageBeanSecuritySchemeWithProjects;
891
- }>(),
892
- )
893
- .then(
894
- validationSchemaStorage.validator(
895
- "IssueSecuritySchemesService.searchSecuritySchemes.response",
896
- ),
897
- )
898
- .then(commonHttpClient.getBody);
899
- }
900
- /**
901
- * Sets default issue security levels for schemes.
902
- *
903
- * **[Permissions](#permissions) required:** *Administer Jira* [global
904
- * permission](https://confluence.atlassian.com/x/x4dKLg).
905
- *
906
- * @returns Returned if the request is successful.
907
- * @path {PUT} /rest/api/3/issuesecurityschemes/level/default
908
- */
909
- setDefaultLevels({
910
- setDefaultLevelsRequest,
911
- }: {
912
- /**
913
- * @example {
914
- * "defaultValues": [
915
- * {
916
- * "defaultLevelId": "20000",
917
- * "issueSecuritySchemeId": "10000"
918
- * },
919
- * {
920
- * "defaultLevelId": "30000",
921
- * "issueSecuritySchemeId": "12000"
922
- * }
923
- * ]
924
- * }
925
- */
926
- setDefaultLevelsRequest: SetDefaultLevelsRequest;
927
- }): Promise<void> {
928
- return this.getClientInstance()
929
- .request({
930
- path: "/rest/api/3/issuesecurityschemes/level/default",
931
- method: "PUT",
932
- headers: {
933
- "Content-Type": "application/json",
934
- },
935
- body: setDefaultLevelsRequest,
936
- })
937
- .then(
938
- this.getClientInstance().responseHandler({
939
- 204: {
940
- "application/json": "json",
941
- },
942
- }),
943
- )
944
- .then(
945
- commonHttpClient.castResponse<{
946
- status: 204;
947
- mediaType: "application/json";
948
- body: void;
949
- }>(),
950
- )
951
- .then(
952
- validationSchemaStorage.validator(
953
- "IssueSecuritySchemesService.setDefaultLevels.response",
954
- ),
955
- )
956
- .then(commonHttpClient.getBody);
957
- }
958
- /**
959
- * Updates the issue security scheme.
960
- *
961
- * **[Permissions](#permissions) required:** *Administer Jira* [global
962
- * permission](https://confluence.atlassian.com/x/x4dKLg).
963
- *
964
- * @returns Returned if the request is successful.
965
- * @path {PUT} /rest/api/3/issuesecurityschemes/{id}
966
- */
967
- updateIssueSecurityScheme({
968
- id,
969
- updateIssueSecuritySchemeRequestBean,
970
- }: {
971
- /** The ID of the issue security scheme. */
972
- id: string;
973
- /**
974
- * @example {
975
- * "description": "My issue security scheme description",
976
- * "name": "My issue security scheme name"
977
- * }
978
- */
979
- updateIssueSecuritySchemeRequestBean: UpdateIssueSecuritySchemeRequestBean;
980
- }): Promise<void> {
981
- return this.getClientInstance()
982
- .request({
983
- path: "/rest/api/3/issuesecurityschemes/{id}",
984
- method: "PUT",
985
- pathParams: {
986
- id,
987
- },
988
- headers: {
989
- "Content-Type": "application/json",
990
- },
991
- body: updateIssueSecuritySchemeRequestBean,
992
- })
993
- .then(
994
- this.getClientInstance().responseHandler({
995
- 204: {
996
- "application/json": "json",
997
- },
998
- }),
999
- )
1000
- .then(
1001
- commonHttpClient.castResponse<{
1002
- status: 204;
1003
- mediaType: "application/json";
1004
- body: void;
1005
- }>(),
1006
- )
1007
- .then(
1008
- validationSchemaStorage.validator(
1009
- "IssueSecuritySchemesService.updateIssueSecurityScheme.response",
1010
- ),
1011
- )
1012
- .then(commonHttpClient.getBody);
1013
- }
1014
- /**
1015
- * Updates the issue security level.
1016
- *
1017
- * **[Permissions](#permissions) required:** *Administer Jira* [global
1018
- * permission](https://confluence.atlassian.com/x/x4dKLg).
1019
- *
1020
- * @returns Returned if the request is successful.
1021
- * @path {PUT} /rest/api/3/issuesecurityschemes/{schemeId}/level/{levelId}
1022
- */
1023
- updateSecurityLevel({
1024
- schemeId,
1025
- levelId,
1026
- updateIssueSecurityLevelDetails,
1027
- }: {
1028
- /** The ID of the issue security scheme level belongs to. */
1029
- schemeId: string;
1030
- /** The ID of the issue security level to update. */
1031
- levelId: string;
1032
- /**
1033
- * @example {
1034
- * "description": "New level description",
1035
- * "name": "New level name"
1036
- * }
1037
- */
1038
- updateIssueSecurityLevelDetails: UpdateIssueSecurityLevelDetails;
1039
- }): Promise<void> {
1040
- return this.getClientInstance()
1041
- .request({
1042
- path: "/rest/api/3/issuesecurityschemes/{schemeId}/level/{levelId}",
1043
- method: "PUT",
1044
- pathParams: {
1045
- schemeId,
1046
- levelId,
1047
- },
1048
- headers: {
1049
- "Content-Type": "application/json",
1050
- },
1051
- body: updateIssueSecurityLevelDetails,
1052
- })
1053
- .then(
1054
- this.getClientInstance().responseHandler({
1055
- 204: {
1056
- "application/json": "json",
1057
- },
1058
- }),
1059
- )
1060
- .then(
1061
- commonHttpClient.castResponse<{
1062
- status: 204;
1063
- mediaType: "application/json";
1064
- body: void;
1065
- }>(),
1066
- )
1067
- .then(
1068
- validationSchemaStorage.validator(
1069
- "IssueSecuritySchemesService.updateSecurityLevel.response",
1070
- ),
1071
- )
1072
- .then(commonHttpClient.getBody);
1073
- }
1074
- static initialize() {
1075
- validationSchemaStorage.registerExtensible(
1076
- "IssueSecuritySchemesService.getIssueSecuritySchemes.response",
1077
- z
1078
- .object({
1079
- status: z.literal(200),
1080
- mediaType: z.literal("application/json"),
1081
- body: validationSchemaStorage.lazy("SecuritySchemes"),
1082
- })
1083
- .describe(
1084
- "IssueSecuritySchemesService.getIssueSecuritySchemes.response",
1085
- ),
1086
- );
1087
- validationSchemaStorage.registerExtensible(
1088
- "IssueSecuritySchemesService.createIssueSecurityScheme.response",
1089
- z
1090
- .object({
1091
- status: z.literal(201),
1092
- mediaType: z.literal("application/json"),
1093
- body: validationSchemaStorage.lazy("SecuritySchemeId"),
1094
- })
1095
- .describe(
1096
- "IssueSecuritySchemesService.createIssueSecurityScheme.response",
1097
- ),
1098
- );
1099
- validationSchemaStorage.registerExtensible(
1100
- "IssueSecuritySchemesService.getIssueSecurityScheme.response",
1101
- z
1102
- .object({
1103
- status: z.literal(200),
1104
- mediaType: z.literal("application/json"),
1105
- body: validationSchemaStorage.lazy("SecurityScheme"),
1106
- })
1107
- .describe(
1108
- "IssueSecuritySchemesService.getIssueSecurityScheme.response",
1109
- ),
1110
- );
1111
- validationSchemaStorage.registerExtensible(
1112
- "IssueSecuritySchemesService.updateIssueSecurityScheme.response",
1113
- z
1114
- .object({
1115
- status: z.literal(204),
1116
- mediaType: z.literal("application/json"),
1117
- body: z.unknown(),
1118
- })
1119
- .describe(
1120
- "IssueSecuritySchemesService.updateIssueSecurityScheme.response",
1121
- ),
1122
- );
1123
- validationSchemaStorage.registerExtensible(
1124
- "IssueSecuritySchemesService.deleteSecurityScheme.response",
1125
- z
1126
- .object({
1127
- status: z.literal(204),
1128
- mediaType: z.literal("application/json"),
1129
- body: z.unknown(),
1130
- })
1131
- .describe("IssueSecuritySchemesService.deleteSecurityScheme.response"),
1132
- );
1133
- validationSchemaStorage.registerExtensible(
1134
- "IssueSecuritySchemesService.addSecurityLevel.response",
1135
- z
1136
- .object({
1137
- status: z.literal(204),
1138
- mediaType: z.literal("application/json"),
1139
- body: z.unknown(),
1140
- })
1141
- .describe("IssueSecuritySchemesService.addSecurityLevel.response"),
1142
- );
1143
- validationSchemaStorage.registerExtensible(
1144
- "IssueSecuritySchemesService.updateSecurityLevel.response",
1145
- z
1146
- .object({
1147
- status: z.literal(204),
1148
- mediaType: z.literal("application/json"),
1149
- body: z.unknown(),
1150
- })
1151
- .describe("IssueSecuritySchemesService.updateSecurityLevel.response"),
1152
- );
1153
- validationSchemaStorage.registerExtensible(
1154
- "IssueSecuritySchemesService.addSecurityLevelMembers.response",
1155
- z
1156
- .object({
1157
- status: z.literal(204),
1158
- mediaType: z.literal("application/json"),
1159
- body: z.unknown(),
1160
- })
1161
- .describe(
1162
- "IssueSecuritySchemesService.addSecurityLevelMembers.response",
1163
- ),
1164
- );
1165
- validationSchemaStorage.registerExtensible(
1166
- "IssueSecuritySchemesService.removeMemberFromSecurityLevel.response",
1167
- z
1168
- .object({
1169
- status: z.literal(204),
1170
- mediaType: z.literal("application/json"),
1171
- body: z.unknown(),
1172
- })
1173
- .describe(
1174
- "IssueSecuritySchemesService.removeMemberFromSecurityLevel.response",
1175
- ),
1176
- );
1177
- validationSchemaStorage.registerExtensible(
1178
- "IssueSecuritySchemesService.getSecurityLevels.response",
1179
- z
1180
- .object({
1181
- status: z.literal(200),
1182
- mediaType: z.literal("application/json"),
1183
- body: validationSchemaStorage.lazy("PageBeanSecurityLevel"),
1184
- })
1185
- .describe("IssueSecuritySchemesService.getSecurityLevels.response"),
1186
- );
1187
- validationSchemaStorage.registerExtensible(
1188
- "IssueSecuritySchemesService.setDefaultLevels.response",
1189
- z
1190
- .object({
1191
- status: z.literal(204),
1192
- mediaType: z.literal("application/json"),
1193
- body: z.unknown(),
1194
- })
1195
- .describe("IssueSecuritySchemesService.setDefaultLevels.response"),
1196
- );
1197
- validationSchemaStorage.registerExtensible(
1198
- "IssueSecuritySchemesService.getSecurityLevelMembers.response",
1199
- z
1200
- .object({
1201
- status: z.literal(200),
1202
- mediaType: z.literal("application/json"),
1203
- body: validationSchemaStorage.lazy("PageBeanSecurityLevelMember"),
1204
- })
1205
- .describe(
1206
- "IssueSecuritySchemesService.getSecurityLevelMembers.response",
1207
- ),
1208
- );
1209
- validationSchemaStorage.registerExtensible(
1210
- "IssueSecuritySchemesService.searchProjectsUsingSecuritySchemes.response",
1211
- z
1212
- .object({
1213
- status: z.literal(200),
1214
- mediaType: z.literal("application/json"),
1215
- body: validationSchemaStorage.lazy(
1216
- "PageBeanIssueSecuritySchemeToProjectMapping",
1217
- ),
1218
- })
1219
- .describe(
1220
- "IssueSecuritySchemesService.searchProjectsUsingSecuritySchemes.response",
1221
- ),
1222
- );
1223
- validationSchemaStorage.registerExtensible(
1224
- "IssueSecuritySchemesService.searchSecuritySchemes.response",
1225
- z
1226
- .object({
1227
- status: z.literal(200),
1228
- mediaType: z.literal("application/json"),
1229
- body: validationSchemaStorage.lazy(
1230
- "PageBeanSecuritySchemeWithProjects",
1231
- ),
1232
- })
1233
- .describe("IssueSecuritySchemesService.searchSecuritySchemes.response"),
1234
- );
1235
- validationSchemaStorage.registerOnce([
1236
- registerIssueSecuritySchemesValidationSchemas,
1237
- registerCommonValidationSchemas,
1238
- ]);
1239
- }
1240
- }