@felixgeelhaar/jira-sdk 0.3.0 → 1.0.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 (46) hide show
  1. package/README.md +214 -374
  2. package/dist/auth/index.cjs +400 -0
  3. package/dist/auth/index.cjs.map +1 -0
  4. package/dist/auth/index.d.cts +192 -0
  5. package/dist/auth/index.d.ts +192 -0
  6. package/dist/auth/index.js +386 -0
  7. package/dist/auth/index.js.map +1 -0
  8. package/dist/errors/index.cjs +272 -0
  9. package/dist/errors/index.cjs.map +1 -0
  10. package/dist/errors/index.d.cts +203 -0
  11. package/dist/errors/index.d.ts +203 -0
  12. package/dist/errors/index.js +254 -0
  13. package/dist/errors/index.js.map +1 -0
  14. package/dist/http-client-BSzRYQZa.d.cts +317 -0
  15. package/dist/http-client-erRvYNs-.d.ts +317 -0
  16. package/dist/index.cjs +9541 -13612
  17. package/dist/index.cjs.map +1 -1
  18. package/dist/index.d.cts +1242 -76
  19. package/dist/index.d.ts +1242 -76
  20. package/dist/index.js +9118 -13450
  21. package/dist/index.js.map +1 -1
  22. package/dist/schemas/index.cjs +2429 -13094
  23. package/dist/schemas/index.cjs.map +1 -1
  24. package/dist/schemas/index.d.cts +351 -13
  25. package/dist/schemas/index.d.ts +351 -13
  26. package/dist/schemas/index.js +2096 -13052
  27. package/dist/schemas/index.js.map +1 -1
  28. package/dist/services/index.cjs +6346 -13497
  29. package/dist/services/index.cjs.map +1 -1
  30. package/dist/services/index.d.cts +3828 -358
  31. package/dist/services/index.d.ts +3828 -358
  32. package/dist/services/index.js +6330 -13504
  33. package/dist/services/index.js.map +1 -1
  34. package/dist/transport/index.cjs +1016 -0
  35. package/dist/transport/index.cjs.map +1 -0
  36. package/dist/transport/index.d.cts +372 -0
  37. package/dist/transport/index.d.ts +372 -0
  38. package/dist/transport/index.js +997 -0
  39. package/dist/transport/index.js.map +1 -0
  40. package/dist/types-E6djPHpW.d.cts +95 -0
  41. package/dist/types-E6djPHpW.d.ts +95 -0
  42. package/dist/webhook-Bn8gme6Y.d.cts +6959 -0
  43. package/dist/webhook-Bn8gme6Y.d.ts +6959 -0
  44. package/package.json +73 -27
  45. package/dist/project-B1UelBH4.d.cts +0 -1810
  46. package/dist/project-B1UelBH4.d.ts +0 -1810
@@ -1,12 +1,170 @@
1
1
  import { z } from 'zod';
2
- export { J as AddAttachmentResponse, H as AddAttachmentResponseSchema, q as AddCommentInput, A as AddCommentInputSchema, O as AddWorklogInput, N as AddWorklogInputSchema, B as Attachment, F as AttachmentMetadata, E as AttachmentMetadataSchema, z as AttachmentSchema, p as Comment, o as CommentSchema, n as CommentVisibility, m as CommentVisibilitySchema, u as CommentsPage, t as CommentsPageSchema, f as CreateIssueFields, C as CreateIssueFieldsSchema, h as CreateIssueInput, g as CreateIssueInputSchema, a3 as CreateIssueLinkInput, a2 as CreateIssueLinkInputSchema, k as CreateIssueResponse, j as CreateIssueResponseSchema, ai as CreateProjectInput, ah as CreateProjectInputSchema, y as DoTransitionInput, D as DoTransitionInputSchema, l as GetIssueOptions, G as GetIssueOptionsSchema, ao as GetProjectsOptions, an as GetProjectsOptionsSchema, e as Issue, c as IssueFields, b as IssueFieldsSchema, a1 as IssueLink, a0 as IssueLinkSchema, X as IssueLinkType, V as IssueLinkTypeSchema, a5 as IssueLinkTypesResponse, a4 as IssueLinkTypesResponseSchema, a as IssueRef, I as IssueRefSchema, d as IssueSchema, $ as LinkedIssue, Z as LinkedIssueFields, Y as LinkedIssueFieldsSchema, _ as LinkedIssueSchema, ag as Project, ae as ProjectRef, ad as ProjectRefSchema, af as ProjectSchema, am as ProjectSearchResult, al as ProjectSearchResultSchema, v as Transition, T as TransitionSchema, x as TransitionsResponse, w as TransitionsResponseSchema, s as UpdateCommentInput, r as UpdateCommentInputSchema, i as UpdateIssueInput, U as UpdateIssueInputSchema, ak as UpdateProjectInput, aj as UpdateProjectInputSchema, Q as UpdateWorklogInput, P as UpdateWorklogInputSchema, ac as Watchers, ab as WatchersSchema, M as Worklog, L as WorklogSchema, K as WorklogVisibility, W as WorklogVisibilitySchema, S as WorklogsPage, R as WorklogsPageSchema, a6 as blocksLinkType, a9 as causesLinkType, aa as clonesLinkType, a7 as duplicatesLinkType, a8 as relatesToLinkType } from '../project-B1UelBH4.js';
3
- import '@felixgeelhaar/sdk-core';
2
+ import { W as Attachment, X as AttachmentMetadata, aw as Comment, dU as Issue, ik as Worklog, A as AdfDocument, E as AdfOrString } from '../webhook-Bn8gme6Y.js';
3
+ export { b as AccountType, c as AccountTypeSchema, d as AddActorInput, e as AddActorInputSchema, f as AddAttachmentResponse, g as AddAttachmentResponseSchema, h as AddCommentInput, i as AddCommentInputSchema, j as AddGadgetInput, k as AddGadgetInputSchema, l as AddGroupUserOptions, m as AddGroupUserOptionsSchema, n as AddIssueTypesToSchemeInput, o as AddIssueTypesToSchemeInputSchema, p as AddNotificationInput, q as AddNotificationInputSchema, r as AddNotificationsRequest, s as AddNotificationsRequestSchema, t as AddScreenFieldInput, u as AddScreenFieldInputSchema, v as AddSharePermissionInput, w as AddSharePermissionInputSchema, x as AddWorklogInput, y as AddWorklogInputSchema, z as AdfDocumentSchema, B as AdfMark, C as AdfMarkSchema, a as AdfNode, D as AdfNodeSchema, F as AdfOrStringSchema, G as AgileIssue, H as AgileIssueFields, I as AgileIssueFieldsSchema, J as AgileIssuePage, K as AgileIssuePageSchema, L as AgileIssueSchema, M as AllPermissionsResponse, N as AllPermissionsResponseSchema, O as AnalysisInput, P as AnalysisInputSchema, Q as AnalysisResult, R as AnalysisResultSchema, S as ApplicationProperty, T as ApplicationPropertySchema, U as AssociateContextProjectsInput, V as AssociateContextProjectsInputSchema, Y as AttachmentMetadataSchema, Z as AttachmentSchema, _ as AuditAssociatedItem, $ as AuditAssociatedItemSchema, a0 as AuditChangedValue, a1 as AuditChangedValueSchema, a2 as AuditListOptions, a3 as AuditListOptionsSchema, a4 as AuditObjectItem, a5 as AuditObjectItemSchema, a6 as AuditRecord, a7 as AuditRecordPage, a8 as AuditRecordPageSchema, a9 as AuditRecordSchema, aa as AvatarUrls, ab as AvatarUrlsSchema, ac as Board, ad as BoardFilter, ae as BoardFilterSchema, af as BoardLocation, ag as BoardLocationSchema, ah as BoardPage, ai as BoardPageSchema, aj as BoardSchema, ak as BoardType, al as BoardTypeSchema, am as BulkGetGroupsOptions, an as BulkGetGroupsOptionsSchema, ao as BulkOperationError, ap as BulkOperationErrorSchema, aq as BulkOperationProgress, ar as BulkOperationProgressSchema, as as BulkOperationResult, at as BulkOperationResultSchema, au as BulkOperationStatus, av as BulkOperationStatusValue, ax as CommentSchema, ay as CommentVisibility, az as CommentVisibilitySchema, aA as CommentsPage, aB as CommentsPageSchema, aC as Complexity, aD as ComplexitySchema, aE as ComponentAssigneeType, aF as ComponentAssigneeTypeSchema, aG as ContextProjectMapping, aH as ContextProjectMappingListResponse, aI as ContextProjectMappingListResponseSchema, aJ as ContextProjectMappingSchema, aK as CreateBoardInput, aL as CreateBoardInputSchema, aM as CreateComponentInput, aN as CreateComponentInputSchema, aO as CreateDashboardInput, aP as CreateDashboardInputSchema, aQ as CreateFieldContextInput, aR as CreateFieldContextInputSchema, aS as CreateFieldInput, aT as CreateFieldInputSchema, aU as CreateFieldOptionInput, aV as CreateFieldOptionInputSchema, aW as CreateFieldOptionsRequest, aX as CreateFieldOptionsRequestSchema, aY as CreateFieldOptionsResponse, aZ as CreateFieldOptionsResponseSchema, a_ as CreateFilterInput, a$ as CreateFilterInputSchema, b0 as CreateGroupInput, b1 as CreateGroupInputSchema, b2 as CreateIssueFields, b3 as CreateIssueFieldsSchema, b4 as CreateIssueInput, b5 as CreateIssueInputSchema, b6 as CreateIssueLinkInput, b7 as CreateIssueLinkInputSchema, b8 as CreateIssueLinkTypeInput, b9 as CreateIssueLinkTypeInputSchema, ba as CreateIssueResponse, bb as CreateIssueResponseSchema, bc as CreateIssueTypeInput, bd as CreateIssueTypeInputSchema, be as CreateIssueTypeSchemeInput, bf as CreateIssueTypeSchemeInputSchema, bg as CreateIssuesInput, bh as CreateIssuesInputSchema, bi as CreateIssuesResult, bj as CreateIssuesResultSchema, bk as CreateNotificationSchemeInput, bl as CreateNotificationSchemeInputSchema, bm as CreatePermissionSchemeInput, bn as CreatePermissionSchemeInputSchema, bo as CreatePriorityInput, bp as CreatePriorityInputSchema, bq as CreateProjectInput, br as CreateProjectInputSchema, bs as CreateResolutionInput, bt as CreateResolutionInputSchema, bu as CreateScreenInput, bv as CreateScreenInputSchema, bw as CreateScreenTabInput, bx as CreateScreenTabInputSchema, by as CreateSprintInput, bz as CreateSprintInputSchema, bA as CreateVersionInput, bB as CreateVersionInputSchema, bC as CreateWebhookInput, bD as CreateWebhookInputSchema, bE as CreateWorkflowSchemeInput, bF as CreateWorkflowSchemeInputSchema, bG as CreatedIssue, bH as CreatedIssueSchema, bI as CurrentUser, bJ as CurrentUserSchema, bK as Dashboard, bL as DashboardGadget, bM as DashboardGadgetList, bN as DashboardGadgetListSchema, bO as DashboardGadgetSchema, bP as DashboardListResult, bQ as DashboardListResultSchema, bR as DashboardOwner, bS as DashboardOwnerSchema, bT as DashboardSchema, bU as DashboardSharePermission, bV as DashboardSharePermissionInput, bW as DashboardSharePermissionInputSchema, bX as DashboardSharePermissionSchema, bY as DefaultShareScope, bZ as DefaultShareScopeSchema, b_ as DeleteGroupOptions, b$ as DeleteGroupOptionsSchema, c0 as DeleteIssuesInput, c1 as DeleteIssuesInputSchema, c2 as DoTransitionInput, c3 as DoTransitionInputSchema, c4 as DynamicModules, c5 as DynamicModulesSchema, c6 as ElementErrors, c7 as ElementErrorsSchema, c8 as EntityProperty, c9 as EntityPropertySchema, ca as Epic, cb as EpicColor, cc as EpicColorSchema, cd as EpicPage, ce as EpicPageSchema, cf as EpicSchema, cg as EvaluationError, ch as EvaluationErrorSchema, ci as EvaluationInput, cj as EvaluationInputSchema, ck as EvaluationMeta, cl as EvaluationMetaSchema, cm as EvaluationResult, cn as EvaluationResultSchema, co as ExpressionAnalysis, cp as ExpressionAnalysisSchema, cq as FailedWebhook, cr as FailedWebhookPage, cs as FailedWebhookPageSchema, ct as FailedWebhookSchema, cu as Field, cv as FieldConfigScheme, cw as FieldConfigSchemeSchema, cx as FieldContext, cy as FieldContextListResponse, cz as FieldContextListResponseSchema, cA as FieldContextSchema, cB as FieldOperation, cC as FieldOperationSchema, cD as FieldOption, cE as FieldOptionListResponse, cF as FieldOptionListResponseSchema, cG as FieldOptionSchema, cH as FieldSchema, cI as FieldSchemaDefinition, cJ as FieldSchemaDefinitionSchema, cK as FieldScope, cL as FieldScopeProject, cM as FieldScopeProjectSchema, cN as FieldScopeSchema, cO as FieldUsage, cP as FieldUsageSchema, cQ as Filter, cR as FilterGroupRef, cS as FilterGroupRefSchema, cT as FilterOwner, cU as FilterOwnerSchema, cV as FilterPermission, cW as FilterPermissionInput, cX as FilterPermissionInputSchema, cY as FilterPermissionSchema, cZ as FilterPermissionType, c_ as FilterPermissionTypeSchema, c$ as FilterProjectRef, d0 as FilterProjectRefSchema, d1 as FilterRoleRef, d2 as FilterRoleRefSchema, d3 as FilterSchema, d4 as FilterSearchResult, d5 as FilterSearchResultSchema, d6 as FilterShareScope, d7 as FilterShareScopeSchema, d8 as FilterSubscription, d9 as FilterSubscriptionSchema, da as FilterSubscriptions, db as FilterSubscriptionsSchema, dc as FindGroupsOptions, dd as FindGroupsOptionsSchema, de as GetBacklogOptions, df as GetBoardEpicsOptions, dg as GetBoardSprintsOptions, dh as GetBoardsOptions, di as GetContextProjectMappingsOptions, dj as GetContextProjectMappingsOptionsSchema, dk as GetFilterOptions, dl as GetGroupMembersOptions, dm as GetGroupMembersOptionsSchema, dn as GetGroupOptions, dp as GetGroupOptionsSchema, dq as GetIssueOptions, dr as GetIssueOptionsSchema, ds as GetIssueTypeSchemeMappingsOptions, dt as GetIssueTypeSchemeMappingsOptionsSchema, du as GetMyFiltersOptions, dv as GetPermissionSchemeOptions, dw as GetPermissionSchemeOptionsSchema, dx as GetProjectsOptions, dy as GetProjectsOptionsSchema, dz as GetWorkflowTransitionsOptions, dA as Group, dB as GroupMemberPage, dC as GroupMemberPageSchema, dD as GroupPage, dE as GroupPageSchema, dF as GroupPickerResult, dG as GroupPickerResultSchema, dH as GroupSchema, dI as GroupUser, dJ as GroupUserSchema, dK as GroupUsers, dL as GroupUsersSchema, dM as HealthCheck, dN as HealthCheckSchema, dO as HistoryMetadata, dP as HistoryMetadataActor, dQ as HistoryMetadataActorSchema, dR as HistoryMetadataCause, dS as HistoryMetadataCauseSchema, dT as HistoryMetadataSchema, dV as IssueFields, dW as IssueFieldsSchema, dX as IssueLink, dY as IssueLinkSchema, dZ as IssueLinkType, d_ as IssueLinkTypeSchema, d$ as IssueLinkTypesResponse, e0 as IssueLinkTypesResponseSchema, e1 as IssueRef, e2 as IssueRefSchema, e3 as IssueSchema, e4 as IssueSecuritySchemesResponse, e5 as IssueSecuritySchemesResponseSchema, e6 as IssueTypeDetails, e7 as IssueTypeDetailsSchema, e8 as IssueTypeScheme, e9 as IssueTypeSchemeListResponse, ea as IssueTypeSchemeListResponseSchema, eb as IssueTypeSchemeMapping, ec as IssueTypeSchemeMappingListResponse, ed as IssueTypeSchemeMappingListResponseSchema, ee as IssueTypeSchemeMappingSchema, ef as IssueTypeSchemeSchema, eg as IssueTypeScope, eh as IssueTypeScopeProject, ei as IssueTypeScopeProjectSchema, ej as IssueTypeScopeSchema, ek as IssueUpdate, el as IssueUpdateSchema, em as JiraConfiguration, en as JiraConfigurationSchema, eo as LabelPage, ep as LabelPageSchema, eq as LabelSuggestions, er as LabelSuggestionsSchema, es as LinkedIssue, et as LinkedIssueFields, eu as LinkedIssueFieldsSchema, ev as LinkedIssueSchema, ew as ListDashboardsOptions, ex as ListFiltersOptions, ey as ListIssueTypeSchemesOptions, ez as ListIssueTypeSchemesOptionsSchema, eA as ListLabelsOptions, eB as ListNotificationSchemesOptions, eC as ListNotificationSchemesOptionsSchema, eD as ListPermissionSchemesOptions, eE as ListPermissionSchemesOptionsSchema, eF as ListScreensOptions, eG as ListWorkflowSchemesOptions, eH as ListWorkflowsOptions, eI as MAX_BULK_ISSUES, eJ as MoveIssuesToSprintInput, eK as MoveIssuesToSprintInputSchema, eL as MyPermissions, eM as MyPermissionsOptions, eN as MyPermissionsOptionsSchema, eO as MyPermissionsSchema, eP as Notification, eQ as NotificationEvent, eR as NotificationEventSchema, eS as NotificationField, eT as NotificationFieldSchema, eU as NotificationGroup, eV as NotificationGroupSchema, eW as NotificationProjectRole, eX as NotificationProjectRoleSchema, eY as NotificationSchema, eZ as NotificationScheme, e_ as NotificationSchemeItem, e$ as NotificationSchemeItemSchema, f0 as NotificationSchemePage, f1 as NotificationSchemePageSchema, f2 as NotificationSchemeSchema, f3 as NotificationTarget, f4 as NotificationTargetSchema, f5 as NotificationUser, f6 as NotificationUserSchema, f7 as Permission, f8 as PermissionGrant, f9 as PermissionGrantInput, fa as PermissionGrantInputSchema, fb as PermissionGrantSchema, fc as PermissionHolder, fd as PermissionHolderInput, fe as PermissionHolderInputSchema, ff as PermissionHolderSchema, fg as PermissionSchema, fh as PermissionScheme, fi as PermissionSchemeSchema, fj as PermissionSchemesResponse, fk as PermissionSchemesResponseSchema, fl as PermissionStatus, fm as PermissionStatusSchema, fn as PreferenceValue, fo as PreferenceValueSchema, fp as Priority, fq as PrioritySchema, fr as Project, fs as ProjectComponent, ft as ProjectComponentSchema, fu as ProjectComponents, fv as ProjectComponentsSchema, fw as ProjectRef, fx as ProjectRefSchema, fy as ProjectRole, fz as ProjectRoleActor, fA as ProjectRoleActorGroup, fB as ProjectRoleActorGroupSchema, fC as ProjectRoleActorSchema, fD as ProjectRoleActorType, fE as ProjectRoleActorTypeSchema, fF as ProjectRoleActorUser, fG as ProjectRoleActorUserSchema, fH as ProjectRoleSchema, fI as ProjectRoleScope, fJ as ProjectRoleScopeProject, fK as ProjectRoleScopeProjectSchema, fL as ProjectRoleScopeSchema, fM as ProjectRoles, fN as ProjectRolesSchema, fO as ProjectSchema, fP as ProjectSearchResult, fQ as ProjectSearchResultSchema, fR as ProjectVersion, fS as ProjectVersionSchema, fT as ProjectVersions, fU as ProjectVersionsSchema, fV as PublishedWorkflowId, fW as PublishedWorkflowIdSchema, fX as RemoveContextProjectsInput, fY as RemoveContextProjectsInputSchema, fZ as RemoveGroupUserOptions, f_ as RemoveGroupUserOptionsSchema, f$ as Resolution, g0 as ResolutionSchema, g1 as Screen, g2 as ScreenField, g3 as ScreenFieldSchema, g4 as ScreenListResult, g5 as ScreenListResultSchema, g6 as ScreenProject, g7 as ScreenProjectSchema, g8 as ScreenSchema, g9 as ScreenScope, ga as ScreenScopeSchema, gb as ScreenTab, gc as ScreenTabSchema, gd as SecurityLevel, ge as SecurityLevelSchema, gf as SecurityScheme, gg as SecuritySchemeSchema, gh as SendNotificationInput, gi as SendNotificationInputSchema, gj as ServerInfo, gk as ServerInfoSchema, gl as SetApplicationPropertyInput, gm as SetApplicationPropertyInputSchema, gn as SetUserPreferencesInput, go as SetUserPreferencesInputSchema, gp as Sprint, gq as SprintPage, gr as SprintPageSchema, gs as SprintSchema, gt as SprintState, gu as SprintStateSchema, gv as TERMINAL_BULK_OPERATION_STATUSES, gw as TimeTrackingConfiguration, gx as TimeTrackingConfigurationSchema, gy as TimeTrackingCreateWorklogInput, gz as TimeTrackingCreateWorklogInputSchema, gA as TimeTrackingProvider, gB as TimeTrackingProviderSchema, gC as TimeTrackingUpdateWorklogInput, gD as TimeTrackingUpdateWorklogInputSchema, gE as Transition, gF as TransitionSchema, gG as TransitionsResponse, gH as TransitionsResponseSchema, gI as UpdateCommentInput, gJ as UpdateCommentInputSchema, gK as UpdateComponentInput, gL as UpdateComponentInputSchema, gM as UpdateDashboardInput, gN as UpdateDashboardInputSchema, gO as UpdateFieldContextInput, gP as UpdateFieldContextInputSchema, gQ as UpdateFieldInput, gR as UpdateFieldInputSchema, gS as UpdateFilterInput, gT as UpdateFilterInputSchema, gU as UpdateGadgetInput, gV as UpdateGadgetInputSchema, gW as UpdateIssueInput, gX as UpdateIssueInputSchema, gY as UpdateIssueLinkTypeInput, gZ as UpdateIssueLinkTypeInputSchema, g_ as UpdateIssueTypeInput, g$ as UpdateIssueTypeInputSchema, h0 as UpdateIssueTypeSchemeInput, h1 as UpdateIssueTypeSchemeInputSchema, h2 as UpdateNotificationSchemeInput, h3 as UpdateNotificationSchemeInputSchema, h4 as UpdatePermissionSchemeInput, h5 as UpdatePermissionSchemeInputSchema, h6 as UpdatePriorityInput, h7 as UpdatePriorityInputSchema, h8 as UpdateProjectInput, h9 as UpdateProjectInputSchema, ha as UpdateResolutionInput, hb as UpdateResolutionInputSchema, hc as UpdateScreenInput, hd as UpdateScreenInputSchema, he as UpdateScreenTabInput, hf as UpdateScreenTabInputSchema, hg as UpdateSprintInput, hh as UpdateSprintInputSchema, hi as UpdateTimeTrackingConfigurationInput, hj as UpdateTimeTrackingConfigurationInputSchema, hk as UpdateVersionInput, hl as UpdateVersionInputSchema, hm as UpdateWebhookInput, hn as UpdateWebhookInputSchema, ho as UpdateWorkflowSchemeInput, hp as UpdateWorkflowSchemeInputSchema, hq as UpdateWorklogInput, hr as UpdateWorklogInputSchema, hs as User, ht as UserGroupItem, hu as UserGroupItemSchema, hv as UserGroups, hw as UserGroupsSchema, hx as UserInput, hy as UserInputSchema, hz as UserPreferences, hA as UserPreferencesSchema, hB as UserRef, hC as UserRefSchema, hD as UserSchema, hE as WaitForCompletionOptions, hF as Watchers, hG as WatchersSchema, hH as Webhook, hI as WebhookError, hJ as WebhookErrorSchema, hK as WebhookListOptions, hL as WebhookListOptionsSchema, hM as WebhookPage, hN as WebhookPageSchema, hO as WebhookRefreshResponse, hP as WebhookRefreshResponseSchema, hQ as WebhookRegistrationResponse, hR as WebhookRegistrationResponseSchema, hS as WebhookRegistrationResult, hT as WebhookRegistrationResultSchema, hU as WebhookSchema, hV as Workflow, hW as WorkflowDoTransitionInput, hX as WorkflowDoTransitionInputSchema, hY as WorkflowFieldInfo, hZ as WorkflowFieldInfoSchema, h_ as WorkflowFieldSchema, h$ as WorkflowFieldSchemaSchema, i0 as WorkflowSchema, i1 as WorkflowScheme, i2 as WorkflowSchemeIssueTypeInput, i3 as WorkflowSchemeIssueTypeInputSchema, i4 as WorkflowSchemeListResult, i5 as WorkflowSchemeListResultSchema, i6 as WorkflowSchemeSchema, i7 as WorkflowSchemeUser, i8 as WorkflowSchemeUserSchema, i9 as WorkflowSearchResult, ia as WorkflowSearchResultSchema, ib as WorkflowStatus, ic as WorkflowStatusCategory, id as WorkflowStatusCategorySchema, ie as WorkflowStatusSchema, ig as WorkflowTransition, ih as WorkflowTransitionSchema, ii as WorkflowTransitionsResponse, ij as WorkflowTransitionsResponseSchema, il as WorklogListOptions, im as WorklogProperty, io as WorklogPropertySchema, ip as WorklogSchema, iq as WorklogVisibility, ir as WorklogVisibilitySchema, is as WorklogsPage, it as WorklogsPageSchema, iu as adfToText, iv as blocksLinkType, iw as causesLinkType, ix as clonesLinkType, iy as duplicatesLinkType, iz as relatesToLinkType, iA as textToAdf } from '../webhook-Bn8gme6Y.js';
4
+
5
+ /**
6
+ * Colors a dashboard gadget can be rendered in
7
+ */
8
+ declare const GadgetColorSchema: z.ZodEnum<{
9
+ blue: "blue";
10
+ red: "red";
11
+ yellow: "yellow";
12
+ green: "green";
13
+ cyan: "cyan";
14
+ purple: "purple";
15
+ gray: "gray";
16
+ white: "white";
17
+ }>;
18
+ type GadgetColor = z.infer<typeof GadgetColorSchema>;
19
+ /**
20
+ * Position of a gadget on the dashboard grid
21
+ */
22
+ declare const GadgetPositionSchema: z.ZodObject<{
23
+ row: z.ZodNumber;
24
+ column: z.ZodNumber;
25
+ }, z.core.$strip>;
26
+ type GadgetPosition = z.infer<typeof GadgetPositionSchema>;
27
+ /**
28
+ * Minimal project reference inside a dashboard share permission
29
+ */
30
+ declare const DashboardProjectRefSchema: z.ZodObject<{
31
+ id: z.ZodOptional<z.ZodString>;
32
+ key: z.ZodOptional<z.ZodString>;
33
+ name: z.ZodOptional<z.ZodString>;
34
+ }, z.core.$loose>;
35
+ type DashboardProjectRef = z.infer<typeof DashboardProjectRefSchema>;
36
+ /**
37
+ * Project role reference inside a dashboard share permission
38
+ */
39
+ declare const DashboardRoleRefSchema: z.ZodObject<{
40
+ id: z.ZodOptional<z.ZodString>;
41
+ name: z.ZodOptional<z.ZodString>;
42
+ }, z.core.$loose>;
43
+ type DashboardRoleRef = z.infer<typeof DashboardRoleRefSchema>;
44
+ /**
45
+ * Group reference inside a dashboard share permission
46
+ */
47
+ declare const DashboardGroupRefSchema: z.ZodObject<{
48
+ name: z.ZodOptional<z.ZodString>;
49
+ groupId: z.ZodOptional<z.ZodString>;
50
+ }, z.core.$loose>;
51
+ type DashboardGroupRef = z.infer<typeof DashboardGroupRefSchema>;
52
+
53
+ /**
54
+ * Standard pagination parameters for Jira API requests
55
+ */
56
+ declare const PaginationParamsSchema: z.ZodObject<{
57
+ startAt: z.ZodDefault<z.ZodNumber>;
58
+ maxResults: z.ZodDefault<z.ZodNumber>;
59
+ }, z.core.$strip>;
60
+ type PaginationParams = z.infer<typeof PaginationParamsSchema>;
61
+ /**
62
+ * Standard paginated response wrapper
63
+ */
64
+ declare function createPaginatedResponseSchema<T extends z.ZodType>(itemSchema: T): z.ZodObject<{
65
+ startAt: z.ZodNumber;
66
+ maxResults: z.ZodNumber;
67
+ total: z.ZodNumber;
68
+ isLast: z.ZodOptional<z.ZodBoolean>;
69
+ values: z.ZodArray<T>;
70
+ }>;
71
+ interface PaginatedResponse<T> {
72
+ startAt: number;
73
+ maxResults: number;
74
+ total: number;
75
+ isLast?: boolean;
76
+ values: T[];
77
+ }
78
+ /**
79
+ * Search-specific pagination (uses 'issues' instead of 'values')
80
+ */
81
+ declare const SearchPaginationSchema: z.ZodObject<{
82
+ startAt: z.ZodNumber;
83
+ maxResults: z.ZodNumber;
84
+ total: z.ZodNumber;
85
+ }, z.core.$strip>;
86
+ type SearchPagination = z.infer<typeof SearchPaginationSchema>;
87
+
88
+ /**
89
+ * Jira datetime format: "2024-01-15T10:30:00.000+0000"
90
+ * Also supports standard ISO 8601 format.
91
+ *
92
+ * Note: Returns the datetime as a string to avoid timezone issues.
93
+ * Use `parseJiraDateTime()` to convert to a Date object when needed.
94
+ */
95
+ declare const JiraDateTimeSchema: z.ZodString;
96
+ type JiraDateTime = z.infer<typeof JiraDateTimeSchema>;
97
+ /**
98
+ * Jira date format (YYYY-MM-DD)
99
+ *
100
+ * Note: Returns the date as a string to avoid timezone issues.
101
+ * Use `parseJiraDate()` to convert to a Date object when needed.
102
+ */
103
+ declare const JiraDateSchema: z.ZodString;
104
+ type JiraDate = z.infer<typeof JiraDateSchema>;
105
+ /**
106
+ * A datetime that may be null or absent entirely.
107
+ *
108
+ * Both are needed. Jira returns `null` for an unset date (an unresolved issue
109
+ * has `"resolutiondate": null`), and omits the key altogether when the caller
110
+ * narrows `fields`. This was previously only `.nullable()`, so any response
111
+ * that omitted a date key failed validation — which is every narrowed-`fields`
112
+ * request, across the 16 places this schema is used.
113
+ */
114
+ declare const OptionalJiraDateTimeSchema: z.ZodOptional<z.ZodNullable<z.ZodString>>;
115
+ type OptionalJiraDateTime = z.infer<typeof OptionalJiraDateTimeSchema>;
116
+ /**
117
+ * Convert a Date to Jira datetime string
118
+ */
119
+ declare function toJiraDateTime(date: Date): string;
120
+ /**
121
+ * Convert a Date to Jira date string (YYYY-MM-DD)
122
+ */
123
+ declare function toJiraDate(date: Date): string;
124
+
125
+ /**
126
+ * Basic self-referencing link
127
+ */
128
+ declare const SelfLinkSchema: z.ZodObject<{
129
+ self: z.ZodOptional<z.ZodURL>;
130
+ }, z.core.$strip>;
131
+ type SelfLink = z.infer<typeof SelfLinkSchema>;
132
+ /**
133
+ * Link with ID
134
+ */
135
+ declare const IdLinkSchema: z.ZodObject<{
136
+ self: z.ZodOptional<z.ZodURL>;
137
+ id: z.ZodString;
138
+ }, z.core.$strip>;
139
+ type IdLink = z.infer<typeof IdLinkSchema>;
140
+ /**
141
+ * Named link (common for components, versions, etc.)
142
+ */
143
+ declare const NamedLinkSchema: z.ZodObject<{
144
+ self: z.ZodOptional<z.ZodURL>;
145
+ id: z.ZodString;
146
+ name: z.ZodString;
147
+ description: z.ZodOptional<z.ZodString>;
148
+ }, z.core.$strip>;
149
+ type NamedLink = z.infer<typeof NamedLinkSchema>;
150
+ /**
151
+ * Web link
152
+ */
153
+ declare const WebLinkSchema: z.ZodObject<{
154
+ url: z.ZodURL;
155
+ title: z.ZodOptional<z.ZodString>;
156
+ icon: z.ZodOptional<z.ZodObject<{
157
+ url16x16: z.ZodOptional<z.ZodURL>;
158
+ title: z.ZodOptional<z.ZodString>;
159
+ }, z.core.$strip>>;
160
+ }, z.core.$strip>;
161
+ type WebLink = z.infer<typeof WebLinkSchema>;
4
162
 
5
163
  /**
6
164
  * Issue Type
7
165
  */
8
166
  declare const IssueTypeSchema: z.ZodObject<{
9
- self: z.ZodURL;
167
+ self: z.ZodOptional<z.ZodURL>;
10
168
  id: z.ZodString;
11
169
  name: z.ZodString;
12
170
  description: z.ZodOptional<z.ZodString>;
@@ -29,7 +187,7 @@ type IssueTypeInput = z.infer<typeof IssueTypeInputSchema>;
29
187
  * Status Category
30
188
  */
31
189
  declare const StatusCategorySchema: z.ZodObject<{
32
- self: z.ZodURL;
190
+ self: z.ZodOptional<z.ZodURL>;
33
191
  id: z.ZodNumber;
34
192
  key: z.ZodString;
35
193
  colorName: z.ZodString;
@@ -40,13 +198,13 @@ type StatusCategory = z.infer<typeof StatusCategorySchema>;
40
198
  * Issue Status
41
199
  */
42
200
  declare const IssueStatusSchema: z.ZodObject<{
43
- self: z.ZodURL;
201
+ self: z.ZodOptional<z.ZodURL>;
44
202
  id: z.ZodString;
45
203
  name: z.ZodString;
46
204
  description: z.ZodOptional<z.ZodString>;
47
205
  iconUrl: z.ZodOptional<z.ZodURL>;
48
206
  statusCategory: z.ZodOptional<z.ZodObject<{
49
- self: z.ZodURL;
207
+ self: z.ZodOptional<z.ZodURL>;
50
208
  id: z.ZodNumber;
51
209
  key: z.ZodString;
52
210
  colorName: z.ZodString;
@@ -58,7 +216,7 @@ type IssueStatus = z.infer<typeof IssueStatusSchema>;
58
216
  * Issue Priority
59
217
  */
60
218
  declare const IssuePrioritySchema: z.ZodObject<{
61
- self: z.ZodURL;
219
+ self: z.ZodOptional<z.ZodURL>;
62
220
  id: z.ZodString;
63
221
  name: z.ZodString;
64
222
  description: z.ZodOptional<z.ZodString>;
@@ -78,7 +236,7 @@ type PriorityInput = z.infer<typeof PriorityInputSchema>;
78
236
  * Issue Resolution
79
237
  */
80
238
  declare const IssueResolutionSchema: z.ZodObject<{
81
- self: z.ZodURL;
239
+ self: z.ZodOptional<z.ZodURL>;
82
240
  id: z.ZodString;
83
241
  name: z.ZodString;
84
242
  description: z.ZodOptional<z.ZodString>;
@@ -97,7 +255,7 @@ type ResolutionInput = z.infer<typeof ResolutionInputSchema>;
97
255
  * Project reference in issue
98
256
  */
99
257
  declare const IssueProjectSchema: z.ZodObject<{
100
- self: z.ZodURL;
258
+ self: z.ZodOptional<z.ZodURL>;
101
259
  id: z.ZodString;
102
260
  key: z.ZodString;
103
261
  name: z.ZodString;
@@ -128,7 +286,7 @@ type ProjectInput = z.infer<typeof ProjectInputSchema>;
128
286
  * Component
129
287
  */
130
288
  declare const ComponentSchema: z.ZodObject<{
131
- self: z.ZodURL;
289
+ self: z.ZodOptional<z.ZodURL>;
132
290
  id: z.ZodString;
133
291
  name: z.ZodString;
134
292
  description: z.ZodOptional<z.ZodString>;
@@ -147,7 +305,7 @@ type ComponentInput = z.infer<typeof ComponentInputSchema>;
147
305
  * Version (Fix Version / Affects Version)
148
306
  */
149
307
  declare const VersionSchema: z.ZodObject<{
150
- self: z.ZodURL;
308
+ self: z.ZodOptional<z.ZodURL>;
151
309
  id: z.ZodString;
152
310
  name: z.ZodString;
153
311
  description: z.ZodOptional<z.ZodString>;
@@ -168,11 +326,191 @@ declare const VersionInputSchema: z.ZodUnion<readonly [z.ZodObject<{
168
326
  }, z.core.$strip>]>;
169
327
  type VersionInput = z.infer<typeof VersionInputSchema>;
170
328
 
329
+ /**
330
+ * Get the issue description as plain text.
331
+ *
332
+ * Handles ADF documents, plain strings, `null` and missing fields alike.
333
+ *
334
+ * @param issue - Issue to read from
335
+ * @returns Plain-text description, or an empty string when unset
336
+ */
337
+ declare function getDescriptionText(issue: Issue | null | undefined): string;
338
+ /**
339
+ * Get the issue environment field as plain text.
340
+ *
341
+ * @param issue - Issue to read from
342
+ * @returns Plain-text environment, or an empty string when unset
343
+ */
344
+ declare function getEnvironmentText(issue: Issue | null | undefined): string;
345
+ /**
346
+ * Get a comment body as plain text.
347
+ *
348
+ * @param comment - Comment to read from
349
+ * @returns Plain-text body, or an empty string when unset
350
+ */
351
+ declare function getCommentBodyText(comment: Comment | null | undefined): string;
352
+ /**
353
+ * Get a worklog comment as plain text.
354
+ *
355
+ * @param worklog - Worklog to read from
356
+ * @returns Plain-text comment, or an empty string when unset
357
+ */
358
+ declare function getWorklogCommentText(worklog: Worklog | null | undefined): string;
359
+ /**
360
+ * Get the issue creation timestamp as a `Date`.
361
+ *
362
+ * @param issue - Issue to read from
363
+ * @returns Creation date, or `undefined` when unset or unparseable
364
+ */
365
+ declare function getCreatedDate(issue: Issue | null | undefined): Date | undefined;
366
+ /**
367
+ * Get the issue last-updated timestamp as a `Date`.
368
+ *
369
+ * @param issue - Issue to read from
370
+ * @returns Updated date, or `undefined` when unset or unparseable
371
+ */
372
+ declare function getUpdatedDate(issue: Issue | null | undefined): Date | undefined;
373
+ /**
374
+ * Get the issue resolution timestamp as a `Date`.
375
+ *
376
+ * @param issue - Issue to read from
377
+ * @returns Resolution date, or `undefined` when the issue is unresolved
378
+ */
379
+ declare function getResolutionDate(issue: Issue | null | undefined): Date | undefined;
380
+ /**
381
+ * Get the issue due date as a `Date`.
382
+ *
383
+ * Jira stores `duedate` as a bare `YYYY-MM-DD` string, which JavaScript parses
384
+ * as UTC midnight.
385
+ *
386
+ * @param issue - Issue to read from
387
+ * @returns Due date, or `undefined` when unset
388
+ */
389
+ declare function getDueDate(issue: Issue | null | undefined): Date | undefined;
390
+ /**
391
+ * Get a comment's creation timestamp as a `Date`.
392
+ *
393
+ * @param comment - Comment to read from
394
+ * @returns Creation date, or `undefined` when unset
395
+ */
396
+ declare function getCommentCreatedDate(comment: Comment | null | undefined): Date | undefined;
397
+ /**
398
+ * Get a comment's last-updated timestamp as a `Date`.
399
+ *
400
+ * @param comment - Comment to read from
401
+ * @returns Updated date, or `undefined` when unset
402
+ */
403
+ declare function getCommentUpdatedDate(comment: Comment | null | undefined): Date | undefined;
404
+ /**
405
+ * Get an attachment's creation timestamp as a `Date`.
406
+ *
407
+ * @param attachment - Attachment (or attachment metadata) to read from
408
+ * @returns Creation date, or `undefined` when unset
409
+ */
410
+ declare function getAttachmentCreatedDate(attachment: Attachment | AttachmentMetadata | null | undefined): Date | undefined;
411
+ /**
412
+ * Get a worklog's start timestamp as a `Date`.
413
+ *
414
+ * @param worklog - Worklog to read from
415
+ * @returns Start date, or `undefined` when unset
416
+ */
417
+ declare function getWorklogStartedDate(worklog: Worklog | null | undefined): Date | undefined;
418
+
419
+ /**
420
+ * ADF-aware setters for issue and comment inputs.
421
+ *
422
+ * Jira Cloud v3 rejects plain strings for rich-text fields (description,
423
+ * environment, comment bodies) — they must be Atlassian Document Format
424
+ * documents. These helpers mirror Go's `SetDescriptionText` / `SetDescription`
425
+ * / `SetEnvironmentText` / `SetEnvironment` / `SetBodyText` / `SetBody`, but
426
+ * return a new object instead of mutating in place, which fits the immutable
427
+ * plain-object style the schemas use.
428
+ *
429
+ * @example
430
+ * ```typescript
431
+ * await client.issues.create({
432
+ * fields: setDescriptionText(
433
+ * { project: { key: 'PROJ' }, summary: 'Bug', issuetype: { name: 'Bug' } },
434
+ * 'Steps to reproduce:\n\n1. Open the app'
435
+ * ),
436
+ * });
437
+ * ```
438
+ */
439
+ /**
440
+ * Set the description from plain text, converting it to an ADF document.
441
+ *
442
+ * @param fields - Issue fields to copy
443
+ * @param text - Plain text (blank-line separated paragraphs)
444
+ * @returns A new fields object with `description` set to an ADF document
445
+ */
446
+ declare function setDescriptionText<T extends object>(fields: T, text: string): T & {
447
+ description: AdfDocument;
448
+ };
449
+ /**
450
+ * Set the description from an existing ADF document.
451
+ *
452
+ * @param fields - Issue fields to copy
453
+ * @param document - ADF document
454
+ * @returns A new fields object with `description` set
455
+ */
456
+ declare function setDescription<T extends object>(fields: T, document: AdfDocument): T & {
457
+ description: AdfDocument;
458
+ };
459
+ /**
460
+ * Set the environment field from plain text, converting it to an ADF document.
461
+ *
462
+ * @param fields - Issue fields to copy
463
+ * @param text - Plain text (blank-line separated paragraphs)
464
+ * @returns A new fields object with `environment` set to an ADF document
465
+ */
466
+ declare function setEnvironmentText<T extends object>(fields: T, text: string): T & {
467
+ environment: AdfDocument;
468
+ };
469
+ /**
470
+ * Set the environment field from an existing ADF document.
471
+ *
472
+ * @param fields - Issue fields to copy
473
+ * @param document - ADF document
474
+ * @returns A new fields object with `environment` set
475
+ */
476
+ declare function setEnvironment<T extends object>(fields: T, document: AdfDocument): T & {
477
+ environment: AdfDocument;
478
+ };
479
+ /**
480
+ * Set a comment (or worklog) body from plain text, converting it to ADF.
481
+ *
482
+ * @param input - Comment input to copy
483
+ * @param text - Plain text (blank-line separated paragraphs)
484
+ * @returns A new input object with `body` set to an ADF document
485
+ */
486
+ declare function setBodyText<T extends {
487
+ body: AdfOrString;
488
+ }>(input: T, text: string): T;
489
+ /**
490
+ * Set a comment body from an existing ADF document.
491
+ *
492
+ * @param input - Comment input to copy
493
+ * @param document - ADF document
494
+ * @returns A new input object with `body` set
495
+ */
496
+ declare function setBody<T extends {
497
+ body: AdfOrString;
498
+ }>(input: T, document: AdfDocument): T;
499
+ /**
500
+ * Build a comment input from plain text.
501
+ *
502
+ * @param text - Plain text body
503
+ * @returns An `AddCommentInput`-shaped object with an ADF body
504
+ */
505
+ declare function commentInputFromText(text: string): {
506
+ body: AdfDocument;
507
+ };
508
+
171
509
  /**
172
510
  * Project Category
173
511
  */
174
512
  declare const ProjectCategorySchema: z.ZodObject<{
175
- self: z.ZodURL;
513
+ self: z.ZodOptional<z.ZodURL>;
176
514
  id: z.ZodString;
177
515
  name: z.ZodString;
178
516
  description: z.ZodOptional<z.ZodString>;
@@ -220,4 +558,4 @@ declare const InsightSchema: z.ZodObject<{
220
558
  }, z.core.$strip>;
221
559
  type Insight = z.infer<typeof InsightSchema>;
222
560
 
223
- export { type Component, type ComponentInput, ComponentInputSchema, ComponentSchema, type Insight, InsightSchema, type IssuePriority, IssuePrioritySchema, type IssueProject, IssueProjectSchema, type IssueResolution, IssueResolutionSchema, type IssueStatus, IssueStatusSchema, type IssueType, type IssueTypeInput, IssueTypeInputSchema, IssueTypeSchema, type PriorityInput, PriorityInputSchema, type ProjectCategory, ProjectCategorySchema, type ProjectInput, ProjectInputSchema, type ProjectLead, ProjectLeadSchema, type ProjectStyle, ProjectStyleSchema, type ProjectType, ProjectTypeSchema, type ResolutionInput, ResolutionInputSchema, type StatusCategory, StatusCategorySchema, type Version, type VersionInput, VersionInputSchema, VersionSchema };
561
+ export { AdfDocument, AdfOrString, Attachment, AttachmentMetadata, Comment, type Component, type ComponentInput, ComponentInputSchema, ComponentSchema, type DashboardGroupRef, DashboardGroupRefSchema, type DashboardProjectRef, DashboardProjectRefSchema, type DashboardRoleRef, DashboardRoleRefSchema, type GadgetColor, GadgetColorSchema, type GadgetPosition, GadgetPositionSchema, type IdLink, IdLinkSchema, type Insight, InsightSchema, Issue, type IssuePriority, IssuePrioritySchema, type IssueProject, IssueProjectSchema, type IssueResolution, IssueResolutionSchema, type IssueStatus, IssueStatusSchema, type IssueType, type IssueTypeInput, IssueTypeInputSchema, IssueTypeSchema, type JiraDate, JiraDateSchema, type JiraDateTime, JiraDateTimeSchema, type NamedLink, NamedLinkSchema, type OptionalJiraDateTime, OptionalJiraDateTimeSchema, type PaginatedResponse, type PaginationParams, PaginationParamsSchema, type PriorityInput, PriorityInputSchema, type ProjectCategory, ProjectCategorySchema, type ProjectInput, ProjectInputSchema, type ProjectLead, ProjectLeadSchema, type ProjectStyle, ProjectStyleSchema, type ProjectType, ProjectTypeSchema, type ResolutionInput, ResolutionInputSchema, type SearchPagination, SearchPaginationSchema, type SelfLink, SelfLinkSchema, type StatusCategory, StatusCategorySchema, type Version, type VersionInput, VersionInputSchema, VersionSchema, type WebLink, WebLinkSchema, Worklog, commentInputFromText, createPaginatedResponseSchema, getAttachmentCreatedDate, getCommentBodyText, getCommentCreatedDate, getCommentUpdatedDate, getCreatedDate, getDescriptionText, getDueDate, getEnvironmentText, getResolutionDate, getUpdatedDate, getWorklogCommentText, getWorklogStartedDate, setBody, setBodyText, setDescription, setDescriptionText, setEnvironment, setEnvironmentText, toJiraDate, toJiraDateTime };