@resolution/jira-api-client 0.4.6 → 0.5.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 (83) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/README.md +27 -4
  3. package/lib/index.d.ts +13 -0
  4. package/lib/index.js +17 -1
  5. package/lib/index.js.map +1 -1
  6. package/lib/openapi/platform/BaseJiraPlatformApiClient.d.ts +1 -1
  7. package/lib/openapi/platform/BaseJiraPlatformApiClient.js +1 -1
  8. package/lib/openapi/platform/services/DashboardsService.d.ts +7 -1
  9. package/lib/openapi/platform/services/DashboardsService.js +4 -1
  10. package/lib/openapi/platform/services/DashboardsService.js.map +1 -1
  11. package/lib/openapi/platform/services/IssueSearchService.d.ts +8 -1
  12. package/lib/openapi/platform/services/IssueSearchService.js +2 -1
  13. package/lib/openapi/platform/services/IssueSearchService.js.map +1 -1
  14. package/lib/openapi/platform/services/IssuesService.d.ts +8 -1
  15. package/lib/openapi/platform/services/IssuesService.js +2 -1
  16. package/lib/openapi/platform/services/IssuesService.js.map +1 -1
  17. package/lib/openapi/platform/services/PermissionsService.d.ts +7 -0
  18. package/lib/openapi/platform/services/PermissionsService.js +7 -0
  19. package/lib/openapi/platform/services/PermissionsService.js.map +1 -1
  20. package/lib/openapi/serviceManagement/BaseJiraServiceManagementApiClient.d.ts +46 -0
  21. package/lib/openapi/serviceManagement/BaseJiraServiceManagementApiClient.js +78 -0
  22. package/lib/openapi/serviceManagement/BaseJiraServiceManagementApiClient.js.map +1 -0
  23. package/lib/openapi/serviceManagement/core/CommonHttpClient.d.ts +196 -0
  24. package/lib/openapi/serviceManagement/core/CommonHttpClient.js +390 -0
  25. package/lib/openapi/serviceManagement/core/CommonHttpClient.js.map +1 -0
  26. package/lib/openapi/serviceManagement/core/CommonHttpService.d.ts +9 -0
  27. package/lib/openapi/serviceManagement/core/CommonHttpService.js +29 -0
  28. package/lib/openapi/serviceManagement/core/CommonHttpService.js.map +1 -0
  29. package/lib/openapi/serviceManagement/core/CommonValidationSchemaStorage.d.ts +35 -0
  30. package/lib/openapi/serviceManagement/core/CommonValidationSchemaStorage.js +65 -0
  31. package/lib/openapi/serviceManagement/core/CommonValidationSchemaStorage.js.map +1 -0
  32. package/lib/openapi/serviceManagement/models/assets.d.ts +54 -0
  33. package/lib/openapi/serviceManagement/models/assets.js +60 -0
  34. package/lib/openapi/serviceManagement/models/assets.js.map +1 -0
  35. package/lib/openapi/serviceManagement/models/common.d.ts +228 -0
  36. package/lib/openapi/serviceManagement/models/common.js +172 -0
  37. package/lib/openapi/serviceManagement/models/common.js.map +1 -0
  38. package/lib/openapi/serviceManagement/models/customer.d.ts +30 -0
  39. package/lib/openapi/serviceManagement/models/customer.js +27 -0
  40. package/lib/openapi/serviceManagement/models/customer.js.map +1 -0
  41. package/lib/openapi/serviceManagement/models/info.d.ts +18 -0
  42. package/lib/openapi/serviceManagement/models/info.js +24 -0
  43. package/lib/openapi/serviceManagement/models/info.js.map +1 -0
  44. package/lib/openapi/serviceManagement/models/knowledgebase.d.ts +24 -0
  45. package/lib/openapi/serviceManagement/models/knowledgebase.js +32 -0
  46. package/lib/openapi/serviceManagement/models/knowledgebase.js.map +1 -0
  47. package/lib/openapi/serviceManagement/models/organization.d.ts +76 -0
  48. package/lib/openapi/serviceManagement/models/organization.js +65 -0
  49. package/lib/openapi/serviceManagement/models/organization.js.map +1 -0
  50. package/lib/openapi/serviceManagement/models/request.d.ts +594 -0
  51. package/lib/openapi/serviceManagement/models/request.js +516 -0
  52. package/lib/openapi/serviceManagement/models/request.js.map +1 -0
  53. package/lib/openapi/serviceManagement/models/servicedesk.d.ts +525 -0
  54. package/lib/openapi/serviceManagement/models/servicedesk.js +442 -0
  55. package/lib/openapi/serviceManagement/models/servicedesk.js.map +1 -0
  56. package/lib/openapi/serviceManagement/services/AssetsService.d.ts +61 -0
  57. package/lib/openapi/serviceManagement/services/AssetsService.js +113 -0
  58. package/lib/openapi/serviceManagement/services/AssetsService.js.map +1 -0
  59. package/lib/openapi/serviceManagement/services/CustomerService.d.ts +63 -0
  60. package/lib/openapi/serviceManagement/services/CustomerService.js +93 -0
  61. package/lib/openapi/serviceManagement/services/CustomerService.js.map +1 -0
  62. package/lib/openapi/serviceManagement/services/InfoService.d.ts +34 -0
  63. package/lib/openapi/serviceManagement/services/InfoService.js +71 -0
  64. package/lib/openapi/serviceManagement/services/InfoService.js.map +1 -0
  65. package/lib/openapi/serviceManagement/services/KnowledgebaseService.d.ts +81 -0
  66. package/lib/openapi/serviceManagement/services/KnowledgebaseService.js +106 -0
  67. package/lib/openapi/serviceManagement/services/KnowledgebaseService.js.map +1 -0
  68. package/lib/openapi/serviceManagement/services/OrganizationService.d.ts +589 -0
  69. package/lib/openapi/serviceManagement/services/OrganizationService.js +762 -0
  70. package/lib/openapi/serviceManagement/services/OrganizationService.js.map +1 -0
  71. package/lib/openapi/serviceManagement/services/RequestService.d.ts +2736 -0
  72. package/lib/openapi/serviceManagement/services/RequestService.js +3056 -0
  73. package/lib/openapi/serviceManagement/services/RequestService.js.map +1 -0
  74. package/lib/openapi/serviceManagement/services/RequesttypeService.d.ts +166 -0
  75. package/lib/openapi/serviceManagement/services/RequesttypeService.js +190 -0
  76. package/lib/openapi/serviceManagement/services/RequesttypeService.js.map +1 -0
  77. package/lib/openapi/serviceManagement/services/ServicedeskService.d.ts +1268 -0
  78. package/lib/openapi/serviceManagement/services/ServicedeskService.js +1510 -0
  79. package/lib/openapi/serviceManagement/services/ServicedeskService.js.map +1 -0
  80. package/lib/openapi/serviceManagement/validationSchemaStorage.d.ts +3 -0
  81. package/lib/openapi/serviceManagement/validationSchemaStorage.js +144 -0
  82. package/lib/openapi/serviceManagement/validationSchemaStorage.js.map +1 -0
  83. package/package.json +3 -3
@@ -0,0 +1,594 @@
1
+ import { type ZodTypeAny } from "zod";
2
+ import type { CommonValidationSchemaStorage } from "../core/CommonValidationSchemaStorage";
3
+ import { type DateDto, type JsonTypeBean, type PagedDtoUserDto, type PagedLinkDto, type RequestTypeDto, type SelfLinkDto, type ServiceDeskDto, type UserDto } from "./common";
4
+ /** Additional content of the comment */
5
+ export interface AdditionalCommentDto {
6
+ /** Content of the comment. */
7
+ body?: string;
8
+ }
9
+ export interface ApprovalDecisionRequestDto {
10
+ /** Response to the approval request. */
11
+ decision?: "approve" | "decline";
12
+ }
13
+ export interface ApprovalDto {
14
+ /** The REST API URL of the approval. */
15
+ _links?: SelfLinkDto;
16
+ /** Detailed list of the users who must provide a response to the approval. */
17
+ approvers?: ApproverDto[];
18
+ /**
19
+ * Indicates whether the user making the request is one of the approvers and can
20
+ * respond to the approval (true) or not (false).
21
+ */
22
+ canAnswerApproval?: boolean;
23
+ /** Date the approval was completed. */
24
+ completedDate?: DateDto;
25
+ /** Date the approval was created. */
26
+ createdDate?: DateDto;
27
+ /** Outcome of the approval, based on the approvals provided by all approvers. */
28
+ finalDecision?: "approved" | "declined" | "pending";
29
+ /** ID of the approval. */
30
+ id?: string;
31
+ /** Description of the approval being sought or provided. */
32
+ name?: string;
33
+ }
34
+ export interface ApproverDto {
35
+ /** Details of the User who is providing approval. */
36
+ approver?: UserDto;
37
+ /** Decision made by the approver. */
38
+ approverDecision?: "approved" | "declined" | "pending";
39
+ }
40
+ export interface AttachmentCreateDto {
41
+ /** Additional content of the comment */
42
+ additionalComment?: AdditionalCommentDto;
43
+ /** Controls whether the comment and its attachments are visible to customers */
44
+ public?: boolean;
45
+ /** List of IDs for the temporary attachments to be added to the customer request. */
46
+ temporaryAttachmentIds?: string[];
47
+ }
48
+ export interface AttachmentCreateResultDto {
49
+ /** List of the attachments added. */
50
+ attachments?: PagedDtoAttachmentDto;
51
+ /** Details of the comment included with the attachments. */
52
+ comment?: CommentDto;
53
+ }
54
+ export interface AttachmentDto {
55
+ /** Various URLs for the attachment. */
56
+ _links?: AttachmentLinkDto;
57
+ /** Details of the user who attached the file. */
58
+ author?: UserDto;
59
+ /** Date the attachment was added. */
60
+ created?: DateDto;
61
+ /** Filename of the item attached. */
62
+ filename?: string;
63
+ /** MIME type of the attachment. */
64
+ mimeType?: string;
65
+ /** Size of the attachment in bytes. */
66
+ size?: number;
67
+ }
68
+ /** Various URLs for the attachment. */
69
+ export interface AttachmentLinkDto {
70
+ /** URL for the attachment. */
71
+ content?: string;
72
+ /** REST API URL for the attachment */
73
+ jiraRest?: string;
74
+ self?: string;
75
+ /** URL for the attachment's thumbnail image. */
76
+ thumbnail?: string;
77
+ }
78
+ export interface CommentCreateDto {
79
+ /** Content of the comment. */
80
+ body?: string;
81
+ /** Indicates whether the comment is public (true) or private/internal (false). */
82
+ public?: boolean;
83
+ }
84
+ export interface CommentDto {
85
+ /**
86
+ * List of items that can be expanded in the response by specifying the expand
87
+ * query parameter.
88
+ */
89
+ _expands?: string[];
90
+ /** REST API URL link to the comment. */
91
+ _links?: SelfLinkDto;
92
+ /** List of the attachments included in the comment. */
93
+ attachments?: PagedDtoAttachmentDto;
94
+ /** Details of the customer who authored the comment. */
95
+ author?: UserDto;
96
+ /** Content of the comment. */
97
+ body?: string;
98
+ /** Date the comment was created. */
99
+ created?: DateDto;
100
+ /** ID of the comment. */
101
+ id?: string;
102
+ /** Indicates whether the comment is public (true) or private/internal (false). */
103
+ public?: boolean;
104
+ /** The rendered body of the comment. */
105
+ renderedBody?: RenderedValueDto;
106
+ }
107
+ export interface CsatFeedbackFullDto {
108
+ /** (Optional) The comment provided with this feedback. */
109
+ comment?: AdditionalCommentDto;
110
+ /**
111
+ * A numeric representation of the rating, this must be an integer value between 1
112
+ * and 5.
113
+ */
114
+ rating?: number;
115
+ /** Indicates the type of feedback, supported values: `csat`. */
116
+ type?: string;
117
+ }
118
+ /** Action of removing participants from a request. */
119
+ export interface CustomerRequestActionDto {
120
+ /** Indicates whether the user can undertake the action (true) or not (false). */
121
+ allowed?: boolean;
122
+ }
123
+ /** List of actions that the user can take on the request. */
124
+ export interface CustomerRequestActionsDto {
125
+ /** Action of adding attachments to a request. */
126
+ addAttachment?: CustomerRequestActionDto;
127
+ /** Action of adding comments to a request. */
128
+ addComment?: CustomerRequestActionDto;
129
+ /** Action of adding participants to a request. */
130
+ addParticipant?: CustomerRequestActionDto;
131
+ /** Action of removing participants from a request. */
132
+ removeParticipant?: CustomerRequestActionDto;
133
+ }
134
+ export interface CustomerRequestDto {
135
+ /**
136
+ * List of items that can be expanded in the response by specifying the expand
137
+ * query parameter.
138
+ */
139
+ _expands?: string[];
140
+ /** List of links associated with the request. */
141
+ _links?: CustomerRequestLinkDto;
142
+ /** List of actions that the user can take on the request. */
143
+ actions?: CustomerRequestActionsDto;
144
+ /** List of attachments included with the request. */
145
+ attachments?: PagedDtoAttachmentDto;
146
+ /** List of comments included with the request. */
147
+ comments?: PagedDtoCommentDto;
148
+ /** Date on which the request was created. */
149
+ createdDate?: DateDto;
150
+ /** Status of the request. */
151
+ currentStatus?: CustomerRequestStatusDto;
152
+ /** ID of the request, as the peer issue ID. */
153
+ issueId?: string;
154
+ /** Key of the request, as the peer issue key. */
155
+ issueKey?: string;
156
+ /** Expandable details of the customers participating in the request. */
157
+ participants?: PagedDtoUserDto;
158
+ /** Details of the customer reporting the request. */
159
+ reporter?: UserDto;
160
+ /**
161
+ * JSON map of Jira field IDs and their values representing the content of the
162
+ * request. This list does not include hidden fields.
163
+ */
164
+ requestFieldValues?: CustomerRequestFieldValueDto[];
165
+ /** Expandable details of the request type. */
166
+ requestType?: RequestTypeDto;
167
+ /** ID of the request type for the request. */
168
+ requestTypeId?: string;
169
+ /** Expandable details of the service desk. */
170
+ serviceDesk?: ServiceDeskDto;
171
+ /** ID of the service desk the request belongs to. */
172
+ serviceDeskId?: string;
173
+ /** Expandable details of the SLAs relating to the request. */
174
+ sla?: PagedDtoSlaInformationDto;
175
+ /** Expandable details of the request's status history. */
176
+ status?: PagedDtoCustomerRequestStatusDto;
177
+ }
178
+ export interface CustomerRequestFieldValueDto {
179
+ /** ID of the field. */
180
+ fieldId?: string;
181
+ /** Text label for the field. */
182
+ label?: string;
183
+ /** Value of the field rendered in the UI. */
184
+ renderedValue?: {
185
+ [key: string]: unknown;
186
+ };
187
+ /** Value of the field. */
188
+ value?: unknown;
189
+ }
190
+ /** List of links associated with the request. */
191
+ export interface CustomerRequestLinkDto {
192
+ /** Jira agent view URL for the request. */
193
+ agent?: string;
194
+ /** REST API URL for the request. */
195
+ jiraRest?: string;
196
+ self?: string;
197
+ /** Web URL for the request. */
198
+ web?: string;
199
+ }
200
+ /** Status of the request. */
201
+ export interface CustomerRequestStatusDto {
202
+ /** Name of the status condition. */
203
+ status?: string;
204
+ /** Status category the status belongs to. */
205
+ statusCategory?: "UNDEFINED" | "NEW" | "INDETERMINATE" | "DONE";
206
+ /** Date on which the status was attained. */
207
+ statusDate?: DateDto;
208
+ }
209
+ export interface CustomerTransitionDto {
210
+ /** ID of the transition. */
211
+ id?: string;
212
+ /** Name of the transition. */
213
+ name?: string;
214
+ }
215
+ export interface CustomerTransitionExecutionDto {
216
+ /** Comment explaining the reason for the transition. */
217
+ additionalComment?: AdditionalCommentDto;
218
+ /** ID of the transition to be performed. */
219
+ id?: string;
220
+ }
221
+ /** Duration remaining after the service was completed. */
222
+ export interface DurationDto {
223
+ /** Duration in a user-friendly text format. */
224
+ friendly?: string;
225
+ /** Duration in milliseconds. */
226
+ millis?: number;
227
+ }
228
+ /**
229
+ * (Experimental) Provides answers to the form associated with a request type that
230
+ * is attached to the request on creation. Jira fields should be omitted from
231
+ * `requestFieldValues` if they are linked to form answers. Form answers in ADF
232
+ * format should have `isAdfRequest` set to true. Form answers are not currently
233
+ * validated.
234
+ */
235
+ export interface Form extends Record<string, unknown> {
236
+ /**
237
+ * JSON mapping of form field answers containing form field IDs and corresponding
238
+ * values.
239
+ */
240
+ answers?: {
241
+ [key: string]: FormAnswer;
242
+ };
243
+ }
244
+ export interface FormAnswer {
245
+ /** Answer in Atlassian Document Format (ADF) */
246
+ adf?: JsonNode;
247
+ /** IDs of selected choices */
248
+ choices?: string[];
249
+ /** Answer in date format (yyyy-MM-dd) */
250
+ date?: string;
251
+ /**
252
+ * The IDs of files to be attached to the form that are obtained by calling the
253
+ * ‘attach temporary file’ endpoint on the corresponding service desk.
254
+ */
255
+ files?: string[];
256
+ /** Answer in free text format */
257
+ text?: string;
258
+ /** Answer in timestamp format (HH:mm) */
259
+ time?: string;
260
+ /** IDs of selected users */
261
+ users?: string[];
262
+ }
263
+ /** Answer in Atlassian Document Format (ADF) */
264
+ export interface JsonNode {
265
+ array?: boolean;
266
+ bigDecimal?: boolean;
267
+ bigInteger?: boolean;
268
+ bigIntegerValue?: number;
269
+ binary?: boolean;
270
+ binaryValue?: string[];
271
+ boolean?: boolean;
272
+ booleanValue?: boolean;
273
+ containerNode?: boolean;
274
+ decimalValue?: number;
275
+ double?: boolean;
276
+ doubleValue?: number;
277
+ elements?: {
278
+ [key: string]: unknown;
279
+ };
280
+ fieldNames?: {
281
+ [key: string]: unknown;
282
+ };
283
+ fields?: {
284
+ [key: string]: unknown;
285
+ };
286
+ floatingPointNumber?: boolean;
287
+ int?: boolean;
288
+ intValue?: number;
289
+ integralNumber?: boolean;
290
+ long?: boolean;
291
+ longValue?: number;
292
+ missingNode?: boolean;
293
+ null?: boolean;
294
+ number?: boolean;
295
+ numberType?: "INT" | "LONG" | "BIG_INTEGER" | "FLOAT" | "DOUBLE" | "BIG_DECIMAL";
296
+ numberValue?: number;
297
+ object?: boolean;
298
+ pojo?: boolean;
299
+ textValue?: string;
300
+ textual?: boolean;
301
+ valueAsBoolean?: boolean;
302
+ valueAsDouble?: number;
303
+ valueAsInt?: number;
304
+ valueAsLong?: number;
305
+ valueAsText?: string;
306
+ valueNode?: boolean;
307
+ }
308
+ export interface PagedDtoApprovalDto {
309
+ _expands?: string[];
310
+ /** List of the links relating to the page. */
311
+ _links?: PagedLinkDto;
312
+ /** Indicates if this is the last page of records (true) or not (false). */
313
+ isLastPage?: boolean;
314
+ /**
315
+ * Number of items to be returned per page, up to the maximum set for these
316
+ * objects in the current implementation.
317
+ */
318
+ limit?: number;
319
+ /** Number of items returned in the page. */
320
+ size?: number;
321
+ /** Index of the first item returned in the page. */
322
+ start?: number;
323
+ /** Details of the items included in the page. */
324
+ values?: ApprovalDto[];
325
+ }
326
+ /** List of attachments included with the request. */
327
+ export interface PagedDtoAttachmentDto {
328
+ _expands?: string[];
329
+ /** List of the links relating to the page. */
330
+ _links?: PagedLinkDto;
331
+ /** Indicates if this is the last page of records (true) or not (false). */
332
+ isLastPage?: boolean;
333
+ /**
334
+ * Number of items to be returned per page, up to the maximum set for these
335
+ * objects in the current implementation.
336
+ */
337
+ limit?: number;
338
+ /** Number of items returned in the page. */
339
+ size?: number;
340
+ /** Index of the first item returned in the page. */
341
+ start?: number;
342
+ /** Details of the items included in the page. */
343
+ values?: AttachmentDto[];
344
+ }
345
+ /** List of comments included with the request. */
346
+ export interface PagedDtoCommentDto {
347
+ _expands?: string[];
348
+ /** List of the links relating to the page. */
349
+ _links?: PagedLinkDto;
350
+ /** Indicates if this is the last page of records (true) or not (false). */
351
+ isLastPage?: boolean;
352
+ /**
353
+ * Number of items to be returned per page, up to the maximum set for these
354
+ * objects in the current implementation.
355
+ */
356
+ limit?: number;
357
+ /** Number of items returned in the page. */
358
+ size?: number;
359
+ /** Index of the first item returned in the page. */
360
+ start?: number;
361
+ /** Details of the items included in the page. */
362
+ values?: CommentDto[];
363
+ }
364
+ export interface PagedDtoCustomerRequestDto {
365
+ _expands?: string[];
366
+ /** List of the links relating to the page. */
367
+ _links?: PagedLinkDto;
368
+ /** Indicates if this is the last page of records (true) or not (false). */
369
+ isLastPage?: boolean;
370
+ /**
371
+ * Number of items to be returned per page, up to the maximum set for these
372
+ * objects in the current implementation.
373
+ */
374
+ limit?: number;
375
+ /** Number of items returned in the page. */
376
+ size?: number;
377
+ /** Index of the first item returned in the page. */
378
+ start?: number;
379
+ /** Details of the items included in the page. */
380
+ values?: CustomerRequestDto[];
381
+ }
382
+ /** Expandable details of the request's status history. */
383
+ export interface PagedDtoCustomerRequestStatusDto {
384
+ _expands?: string[];
385
+ /** List of the links relating to the page. */
386
+ _links?: PagedLinkDto;
387
+ /** Indicates if this is the last page of records (true) or not (false). */
388
+ isLastPage?: boolean;
389
+ /**
390
+ * Number of items to be returned per page, up to the maximum set for these
391
+ * objects in the current implementation.
392
+ */
393
+ limit?: number;
394
+ /** Number of items returned in the page. */
395
+ size?: number;
396
+ /** Index of the first item returned in the page. */
397
+ start?: number;
398
+ /** Details of the items included in the page. */
399
+ values?: CustomerRequestStatusDto[];
400
+ }
401
+ export interface PagedDtoCustomerTransitionDto {
402
+ _expands?: string[];
403
+ /** List of the links relating to the page. */
404
+ _links?: PagedLinkDto;
405
+ /** Indicates if this is the last page of records (true) or not (false). */
406
+ isLastPage?: boolean;
407
+ /**
408
+ * Number of items to be returned per page, up to the maximum set for these
409
+ * objects in the current implementation.
410
+ */
411
+ limit?: number;
412
+ /** Number of items returned in the page. */
413
+ size?: number;
414
+ /** Index of the first item returned in the page. */
415
+ start?: number;
416
+ /** Details of the items included in the page. */
417
+ values?: CustomerTransitionDto[];
418
+ }
419
+ /** Expandable details of the SLAs relating to the request. */
420
+ export interface PagedDtoSlaInformationDto {
421
+ _expands?: string[];
422
+ /** List of the links relating to the page. */
423
+ _links?: PagedLinkDto;
424
+ /** Indicates if this is the last page of records (true) or not (false). */
425
+ isLastPage?: boolean;
426
+ /**
427
+ * Number of items to be returned per page, up to the maximum set for these
428
+ * objects in the current implementation.
429
+ */
430
+ limit?: number;
431
+ /** Number of items returned in the page. */
432
+ size?: number;
433
+ /** Index of the first item returned in the page. */
434
+ start?: number;
435
+ /** Details of the items included in the page. */
436
+ values?: SlaInformationDto[];
437
+ }
438
+ /** The rendered body of the comment. */
439
+ export interface RenderedValueDto {
440
+ html?: string;
441
+ }
442
+ export interface RequestCreateDto {
443
+ /** (Experimental) Shows extra information for the request channel. */
444
+ channel?: string;
445
+ /**
446
+ * (Experimental) Provides answers to the form associated with a request type that
447
+ * is attached to the request on creation. Jira fields should be omitted from
448
+ * `requestFieldValues` if they are linked to form answers. Form answers in ADF
449
+ * format should have `isAdfRequest` set to true. Form answers are not currently
450
+ * validated.
451
+ */
452
+ form?: Form;
453
+ /**
454
+ * (Experimental) Whether to accept rich text fields in Atlassian Document Format
455
+ * (ADF).
456
+ */
457
+ isAdfRequest?: boolean;
458
+ /** The `accountId` of the customer that the request is being raised on behalf of. */
459
+ raiseOnBehalfOf?: string;
460
+ /**
461
+ * JSON map of Jira field IDs and their values representing the content of the
462
+ * request.
463
+ */
464
+ requestFieldValues?: {
465
+ [key: string]: unknown;
466
+ };
467
+ /**
468
+ * List of customers to participate in the request, as a list of `accountId`
469
+ * values.
470
+ */
471
+ requestParticipants?: string[];
472
+ /** ID of the request type for the request. */
473
+ requestTypeId?: string;
474
+ /** ID of the service desk in which to create the request. */
475
+ serviceDeskId?: string;
476
+ }
477
+ export interface RequestNotificationSubscriptionDto {
478
+ /**
479
+ * Indicates whether the user is subscribed (true) or not (false) to the request's
480
+ * notifications.
481
+ */
482
+ subscribed?: boolean;
483
+ }
484
+ export interface RequestParticipantUpdateDto {
485
+ /**
486
+ * List of users, specified by account IDs, to add to or remove as participants in
487
+ * the request.
488
+ */
489
+ accountIds?: string[];
490
+ /**
491
+ * This property is no longer available and will be removed from the documentation
492
+ * soon. See the [deprecation
493
+ * notice](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/)
494
+ * for details. Use `accountIds` instead.
495
+ */
496
+ usernames?: string[];
497
+ }
498
+ export interface RequestTypeFieldDto {
499
+ /** List of default values for the field. */
500
+ defaultValues?: RequestTypeFieldValueDto[];
501
+ /** Description of the field. */
502
+ description?: string;
503
+ /** ID of the field. */
504
+ fieldId?: string;
505
+ /** Jira specific implementation details for the field in the UI. */
506
+ jiraSchema?: JsonTypeBean;
507
+ /** Name of the field. */
508
+ name?: string;
509
+ /** List of preset values for the field. */
510
+ presetValues?: string[];
511
+ /** Indicates if the field is required (true) or not (false). */
512
+ required?: boolean;
513
+ /** List of valid values for the field. */
514
+ validValues?: RequestTypeFieldValueDto[];
515
+ visible?: boolean;
516
+ }
517
+ export interface RequestTypeFieldValueDto {
518
+ /** List of child fields. */
519
+ children?: RequestTypeFieldValueDto[];
520
+ /** Label for the field. */
521
+ label?: string;
522
+ /** Value of the field. */
523
+ value?: string;
524
+ }
525
+ /** Links to the request type's icons. */
526
+ export interface RequestTypeIconDto {
527
+ /** Map of the URLs for the request type icons. */
528
+ _links?: RequestTypeIconLinkDto;
529
+ /** ID of the request type icon. */
530
+ id?: string;
531
+ }
532
+ /** Map of the URLs for the request type icons. */
533
+ export interface RequestTypeIconLinkDto {
534
+ /** URLs for the request type icons. */
535
+ iconUrls?: {
536
+ [key: string]: string;
537
+ };
538
+ }
539
+ export interface SlaInformationCompletedCycleDto {
540
+ /**
541
+ * Time and date at which the SLA cycle breached in case of completed breached
542
+ * cycle or would have breached in case of non-breached completed cycle.
543
+ */
544
+ breachTime?: DateDto;
545
+ /** Indicates if the SLA (duration) was exceeded (true) or not (false). */
546
+ breached?: boolean;
547
+ /** Duration in which the service was completed. */
548
+ elapsedTime?: DurationDto;
549
+ /** Duration within which the service should have been completed. */
550
+ goalDuration?: DurationDto;
551
+ /** Duration remaining after the service was completed. */
552
+ remainingTime?: DurationDto;
553
+ /** Time and date at which the SLA cycle started. */
554
+ startTime?: DateDto;
555
+ /** Time and date at which the SLA cycle completed. */
556
+ stopTime?: DateDto;
557
+ }
558
+ export interface SlaInformationDto {
559
+ /** REST API URL for the SLA. */
560
+ _links?: SelfLinkDto;
561
+ /** List of completed cycles for the SLA. */
562
+ completedCycles?: SlaInformationCompletedCycleDto[];
563
+ /** ID of the Service Level Agreement (SLA). */
564
+ id?: string;
565
+ /** Description of the SLA. */
566
+ name?: string;
567
+ /** Details of the active cycle for the SLA. */
568
+ ongoingCycle?: SlaInformationOngoingCycleDto;
569
+ /** Format in which SLA is to be displayed in the UI */
570
+ slaDisplayFormat?: string;
571
+ }
572
+ /** Details of the active cycle for the SLA. */
573
+ export interface SlaInformationOngoingCycleDto {
574
+ /** Time and date at which the SLA cycle would have breached its limit. */
575
+ breachTime?: DateDto;
576
+ /** Indicates whether the SLA has been breached (true) or not (false). */
577
+ breached?: boolean;
578
+ /** Duration of the service. */
579
+ elapsedTime?: DurationDto;
580
+ /** Duration within which the service should be completed. */
581
+ goalDuration?: DurationDto;
582
+ /** Indicates whether the SLA is paused (true) or not (false). */
583
+ paused?: boolean;
584
+ /** Duration remaining in which to complete the service. */
585
+ remainingTime?: DurationDto;
586
+ /** Time and date at which the SLA cycle started. */
587
+ startTime?: DateDto;
588
+ /**
589
+ * Indicates whether the SLA it timed during calendared working hours only (true)
590
+ * or not (false).
591
+ */
592
+ withinCalendarHours?: boolean;
593
+ }
594
+ export declare function registerRequestValidationSchemas(validationSchemaStorage: CommonValidationSchemaStorage<ZodTypeAny>): void;