import { $ as AgentSessionFragment, $_ as UserSettingsPayloadFragment, $a as DocumentContentHistoryPayloadFragment, $c as IntegrationsSettingsPayloadFragment, $d as OrganizationCancelDeletePayloadFragment, $f as ProjectLabelWebhookPayloadFragment, $g as Team_ReleasePipelinesQueryVariables, $h as SearchDocuments_ArchivePayloadQueryVariables, $i as CustomerNeedWebhookPayloadFragment, $l as IssueRelationType, $m as ReleasePipelineByAccessKey_StagesQueryVariables, $n as ArchiveIssueMutationVariables, $o as Favorite_ChildrenQueryVariables, $p as Project_DocumentsQueryVariables, $r as CommentCreateInput, $s as InitiativeTab, $t as AiConversationPromptPartFragment, $u as Issue_StateHistoryQueryVariables, $v as WorkflowTrigger, A_ as UpdateTeamMutationVariables, Aa as CycleNotificationSubscriptionFragment, Ac as IntegrationFragment, Ad as NotificationSubscriptionConnectionFragment, Af as PaidSubscriptionFragment, Ag as TeamMembershipConnectionFragment, Ah as Release_HistoryQueryVariables, Ai as CustomViewNotificationSubscriptionFragment, Al as IssueImportPayloadFragment, Am as ReactionWebhookPayloadFragment, An as AiConversationSuggestValuesToolCallFragment, Ao as EntityExternalLinkPayloadFragment, Ap as ProjectStatusFragment, Ar as AttachmentLinkUrlMutationVariables, As as ImageUploadFromUrlPayloadFragment, At as AiConversationEventPartFragment, Au as IssueVcsBranchSearch_FormerNeedsQueryVariables, Av as Viewer_TeamMembershipsQueryVariables, B as AgentActivityFragment, B_ as UserContextViewType, Ba as Day, Bc as IntegrationRequestPayloadFragment, Bd as OAuthApplicationCreatePayloadFragment, Bf as ProjectConnectionFragment, Bg as TeamResourceSectionFragment, Bh as RoadmapPayloadFragment, Bi as CustomerCreateInput, Bl as IssueLabel_ChildrenQueryVariables, Bm as ReleaseHistoryConnectionFragment, Bn as AiConversationUpdateEntityToolCallFragment, Bo as ExternalSyncService, Bp as ProjectUpdateFragment, Br as AuditEntryFragment, Bs as InitiativeLabelConnectionFragment, Bt as AiConversationHandoffToCodingSessionToolCallFragment, Bu as IssueWithDescriptionChildWebhookPayloadFragment, Bv as WelcomeMessageFragment, C as EntityWebhookPayloadWithUnknownEntityData, C_ as TriageResponsibilityPayloadFragment, Ca as CustomerWebhookPayloadFragment, Cc as Initiative_LinksQueryVariables, Cd as NotificationDeliveryPreferencesChannelFragment, Cf as Organization_UsersQueryVariables, Cg as SuspendUserMutationVariables, Ch as ReleaseSyncInput, Ci as CreateProjectUpdateReminderMutationVariables, Cl as IssueImportCreateClubhouseMutationVariables, Cm as PushSubscriptionTestQueryVariables, Cn as AiConversationSearchEntitiesToolCallResultFragment, Co as EmojiCreateInput, Cp as ProjectSearchPayloadFragment, Cr as AttachmentLinkGitHubIssueMutationVariables, Cs as GitLabTestConnectionPayloadFragment, Ct as AiConversationEntityCardWidgetFragment, Cu as IssueUnsubscribeMutationVariables, Cv as ViewPreferencesUpdateInput, D_ as UpdateCommentMutationVariables, Da as CycleConnectionFragment, Dc as IntegrationActorWebhookPayloadFragment, Dd as NotificationEntityInput, Df as PaginationNulls, Dg as TeamConnectionFragment, Dh as ReleaseUpdateInput, Di as CustomViewCreateInput, Dl as IssueImportDeletePayloadFragment, Dm as ReactionCreateInput, Dn as AiConversationSubscribeToEventToolCallArgsType, Do as EntityExternalLinkConnectionFragment, Dp as ProjectStatusConnectionFragment, Dr as AttachmentLinkJiraIssueMutationVariables, Ds as GuidanceRuleWebhookPayloadFragment, Dt as AiConversationEntityListWidgetArgsFragment, Du as IssueVcsBranchSearch_CommentsQueryVariables, Dv as Viewer_CreatedIssuesQueryVariables, E_ as UnsuspendUserMutationVariables, Ea as CycleChildWebhookPayloadFragment, Ec as InitiativesQueryVariables, Ed as NotificationDeliveryPreferencesScheduleFragment, Ef as PageInfoFragment, Eg as TeamChildWebhookPayloadFragment, Eh as ReleaseUpdateByPipelineInputBase, Ei as CustomViewConnectionFragment, El as IssueImportCreateJiraMutationVariables, Em as RateLimitResultPayloadFragment, En as AiConversationSubscribeToEventToolCallArgsKind, Eo as EmojisQueryVariables, Ep as ProjectStatusChildWebhookPayloadFragment, Er as AttachmentLinkIntercomMutationVariables, Es as GoogleUserAccountAuthInput, Et as AiConversationEntityListWidgetArgsEntitiesType, Eu as IssueVcsBranchSearch_ChildrenQueryVariables, Ev as Viewer_AssignedIssuesQueryVariables, F as AgentActivityActionContentFragment, F_ as UsageAlertNotificationFragment, Fa as CycleWebhookPayloadFragment, Fc as IntegrationHasScopesPayloadFragment, Fd as NotificationSubscriptionsQueryVariables, Ff as ProductIntelligenceScope, Fg as TeamMembershipsQueryVariables, Fh as RepositorySuggestionsPayloadFragment, Fi as CustomView_IssuesQueryVariables, Fl as IssueLabelCreateInput, Fm as ReleaseCompleteInput, Fn as AiConversationTranscribeMediaToolCallFragment, Fo as EventTrackingPayloadFragment, Fp as ProjectTab, Fr as AttachmentWebhookPayloadFragment, Fs as InitiativeCreateInput, Ft as AiConversationGetPullRequestDiffToolCallFragment, Fu as IssueVcsBranchSearch_RelationsQueryVariables, Fv as WebhookFragment, G as AgentActivityThoughtContentFragment, G_ as UserPayloadFragment, Ga as DeletePayloadFragment, Gc as IntegrationTemplateConnectionFragment, Gd as OAuthApplicationRotateWebhookSecretPayloadFragment, Gf as ProjectHistoryConnectionFragment, Gg as TeamWithParentWebhookPayloadFragment, Gh as RoadmapToProjectUpdateInput, Gi as CustomerNeedCreateFromAttachmentInput, Gl as IssueNotificationFragment, Gm as ReleaseNoteGenerationStatus, Gn as AiConversationWidgetPartFragment, Go as FacetConnectionFragment, Gp as ProjectUpdateReminderPayloadFragment, Gr as AuthResolverResponseFragment, Gs as InitiativePayloadFragment, Gt as AiConversationInvokeMcpToolToolCallFragment, Gu as Issue_FormerAttachmentsQueryVariables, Gv as WorkflowStateChildWebhookPayloadFragment, H as AgentActivityPromptContentFragment, H_ as UserFlagUpdateOperation, Ha as DeleteIntegrationMutationVariables, Hc as IntegrationSlackMutationVariables, Hd as OAuthApplicationFragment, Hf as ProjectFilterSuggestionPayloadFragment, Hg as TeamRoleType, Hh as RoadmapToProjectCreateInput, Hi as CustomerNeedArchivePayloadFragment, Hl as IssueLabelsQueryVariables, Hm as ReleaseNoteConnectionFragment, Hn as AiConversationWebSearchToolCallFragment, Ho as ExternalUserConnectionFragment, Hp as ProjectUpdateInput, Hr as AuditEntryWebhookPayloadFragment, Hs as InitiativeLabelWebhookPayloadFragment, Ht as AiConversationInvokeMcpToolToolCallArgsFragment, Hu as Issue_ChildrenQueryVariables, Hv as WorkflowCronJobDefinitionFragment, I as AgentActivityConnectionFragment, I_ as UserActorWebhookPayloadFragment, Ia as Cycle_IssuesQueryVariables, Ic as IntegrationIntercomMutationVariables, Id as NotificationUpdateInput, If as ProjectArchivePayloadFragment, Ig as TeamNotificationSubscriptionFragment, Ih as RoadmapArchivePayloadFragment, Ii as CustomView_ProjectsQueryVariables, Il as IssueLabelFragment, Im as ReleaseCompleteInputBase, In as AiConversationTranscribeVideoToolCallFragment, Io as ExternalEntityInfoFragment, Ip as ProjectUpdateArchivePayloadFragment, Ir as AttachmentsForUrlQueryVariables, Is as InitiativeFragment, It as AiConversationGetPullRequestFileToolCallArgsFragment, Iu as IssueVcsBranchSearch_ReleasesQueryVariables, Iv as WebhookPayloadFragment, J as AgentSessionConnectionFragment, J_ as UserSettingsCustomThemeFragment, Ja as DocumentChildWebhookPayloadFragment, Jc as IntegrationTemplatePayloadFragment, Jd as OauthClientActorWebhookPayloadFragment, Jf as ProjectLabelConnectionFragment, Jg as Team_IssuesQueryVariables, Jh as Roadmap_ProjectsQueryVariables, Ji as CustomerNeedNotificationFragment, Jl as IssueRelationConnectionFragment, Jm as ReleaseNoteWebhookPayloadFragment, Jn as AiPromptType, Jo as FavoriteConnectionFragment, Jp as ProjectUpdate_CommentsQueryVariables, Jr as AuthenticationSessionType, Js as InitiativeRelationFragment, Jt as AiConversationNavigateToPageToolCallFragment, Ju as Issue_InverseRelationsQueryVariables, Jv as WorkflowStateFragment, K as AgentActivityType, K_ as UserRoleType, Ka as DeleteTeamMembershipMutationVariables, Kc as IntegrationTemplateCreateInput, Kd as OAuthAuthorizationWebhookPayloadFragment, Kf as ProjectHistoryFragment, Kg as Team_CyclesQueryVariables, Kh as RoadmapToProjectsQueryVariables, Ki as CustomerNeedCreateInput, Kl as IssuePayloadFragment, Km as ReleaseNotePayloadFragment, Kn as AiPromptProgressStatus, Ko as FacetFragment, Kp as ProjectUpdateUpdateInput, Kr as AuthUserFragment, Ks as InitiativeRelationConnectionFragment, Kt as AiConversationNavigateToPageToolCallArgsEntitiesFragment, Ku as Issue_FormerNeedsQueryVariables, Kv as WorkflowStateConnectionFragment, L as AgentActivityCreateInput, L_ as UserAdminPayloadFragment, La as Cycle_UncompletedIssuesUponCloseQueryVariables, Lc as IntegrationJiraPersonalMutationVariables, Ld as NotificationsQueryVariables, Lf as ProjectAttachmentConnectionFragment, Lg as TeamOriginWebhookPayloadFragment, Lh as RoadmapConnectionFragment, Li as CustomViewsQueryVariables, Ll as IssueLabelPayloadFragment, Lm as ReleaseConnectionFragment, Ln as AiConversationUnsubscribeFromEventToolCallArgsFragment, Lo as ExternalEntityInfoGithubMetadataFragment, Lp as ProjectUpdateChildWebhookPayloadFragment, Lr as AttachmentsQueryVariables, Ls as InitiativeHistoryConnectionFragment, Lt as AiConversationGetPullRequestFileToolCallFragment, Lu as IssueVcsBranchSearch_StateHistoryQueryVariables, Lv as WebhookRotateSecretPayloadFragment, M as ActorBotFragment, M_ as UploadFileHeaderFragment, Ma as CyclePeriod, Mc as IntegrationGithubConnectMutationVariables, Md as NotificationSubscriptionFragment, Mf as PipelineTab, Mg as TeamMembershipFragment, Mh as Release_LinksQueryVariables, Mi as CustomViewSuggestionPayloadFragment, Ml as IssueImportUpdateInput, Mm as RefreshGoogleSheetsDataMutationVariables, Mn as AiConversationTool, Mo as EntityFragment, Mp as ProjectStatusType, Mr as AttachmentPayloadFragment, Ms as InitiativeArchivePayloadFragment, Mt as AiConversationGetPullRequestCheckLogsToolCallArgsFragment, Mu as IssueVcsBranchSearch_InverseRelationsQueryVariables, Mv as WebhookConnectionFragment, N as AdministrableTeamsQueryVariables, N_ as UploadPayloadFragment, Na as CycleShiftAllInput, Nc as IntegrationGithubRemoveCodeAccessPayloadFragment, Nd as NotificationSubscriptionPayloadFragment, Nf as PostNotificationFragment, Ng as TeamMembershipPayloadFragment, Nh as ReleasesQueryVariables, Ni as CustomViewUpdateInput, Nl as IssueLabelChildWebhookPayloadFragment, Nm as ReleaseArchivePayloadFragment, Nn as AiConversationToolCallPartFragment, No as EntityWebhookPayloadFragment, Np as ProjectStatusUpdateInput, Nr as AttachmentSourcesPayloadFragment, Ns as InitiativeChildWebhookPayloadFragment, Nt as AiConversationGetPullRequestCheckLogsToolCallFragment, Nu as IssueVcsBranchSearch_LabelsQueryVariables, Nv as WebhookCreateInput, O_ as UpdateCustomerNeedMutationVariables, Oa as CycleCreateInput, Oc as IntegrationChildWebhookPayloadFragment, Od as NotificationFragment, Of as PaginationOrderBy, Og as TeamCreateInput, Oh as ReleaseWebhookPayloadFragment, Oi as CustomViewFragment, Ol as IssueImportFragment, Om as ReactionFragment, On as AiConversationSubscribeToEventToolCallFragment, Oo as EntityExternalLinkCreateInput, Op as ProjectStatusCountPayloadFragment, Or as AttachmentLinkSalesforceMutationVariables, Os as IdentityProviderFragment, Ot as AiConversationEntityListWidgetFragment, Ou as IssueVcsBranchSearch_DocumentsQueryVariables, Ov as Viewer_DelegatedIssuesQueryVariables, P as AgentActivitiesQueryVariables, P_ as UsageAlertFragment, Pa as CycleUpdateInput, Pc as IntegrationGitlabConnectMutationVariables, Pd as NotificationSubscriptionUpdateInput, Pf as PostType, Pg as TeamMembershipUpdateInput, Ph as RepositorySuggestionFragment, Pi as CustomView_InitiativesQueryVariables, Pl as IssueLabelConnectionFragment, Pm as ReleaseChannel, Pn as AiConversationToolDisplayInfoFragment, Po as EventTrackingInput, Pp as ProjectStatusesQueryVariables, Pr as AttachmentUpdateInput, Ps as InitiativeConnectionFragment, Pt as AiConversationGetPullRequestDiffToolCallArgsFragment, Pu as IssueVcsBranchSearch_NeedsQueryVariables, Pv as WebhookFailureEventFragment, Q as AgentSessionExternalLinkFragment, Q_ as UserSettingsFragment, Qa as DocumentContentFragment, Qc as IntegrationsSettingsFragment, Qd as OrganizationAcceptedOrExpiredInviteDetailsPayloadFragment, Qf as ProjectLabelUpdateInput, Qg as Team_ProjectsQueryVariables, Qh as SearchDocumentsQueryVariables, Qi as CustomerNeedUpdatePayloadFragment, Ql as IssueRelationPayloadFragment, Qm as ReleasePipelineByAccessKey_ReleasesQueryVariables, Qn as ApplicationFragment, Qo as FavoriteUpdateInput, Qp as Project_CommentsQueryVariables, Qr as CommentConnectionFragment, Qs as InitiativeStatus, Qt as AiConversationPartType, Qu as Issue_ReleasesQueryVariables, Qv as WorkflowStatesQueryVariables, R as AgentActivityElicitationContentFragment, R_ as UserChildWebhookPayloadFragment, Ra as CyclesQueryVariables, Rc as IntegrationPayloadFragment, Rd as OAuthAppWebhookPayloadFragment, Rf as ProjectAttachmentFragment, Rg as TeamPayloadFragment, Rh as RoadmapCreateInput, Ri as CustomerChildWebhookPayloadFragment, Rl as IssueLabelUpdateInput, Rm as ReleaseCreateInput, Rn as AiConversationUnsubscribeFromEventToolCallFragment, Ro as ExternalEntityInfoJiraMetadataFragment, Rp as ProjectUpdateConnectionFragment, Rr as AuditEntriesQueryVariables, Rs as InitiativeHistoryFragment, Rt as AiConversationGetSlackConversationHistoryToolCallFragment, Ru as IssueVcsBranchSearch_SubscribersQueryVariables, Rv as WebhookUpdateInput, S as EntityWebhookPayloadWithReactionData, S_ as TriageResponsibilityManualSelectionFragment, Sa as CustomerVisibilityMode, Sc as Initiative_InitiativeUpdatesQueryVariables, Sd as NotificationConnectionFragment, Sf as Organization_TemplatesQueryVariables, Sg as SummaryGenerationStatus, Sh as ReleaseStagesQueryVariables, Si as CreateProjectMutationVariables, Sl as IssueImportCreateAsanaMutationVariables, Sm as PushSubscriptionTestPayloadFragment, Sn as AiConversationSearchEntitiesToolCallResultEntitiesFragment, So as EmojiConnectionFragment, Sp as ProjectRelationsQueryVariables, Sr as AttachmentLinkFrontMutationVariables, Ss as GitLabIntegrationCreatePayloadFragment, St as AiConversationEntityCardWidgetArgsType, Su as IssueUnassignedFromYouNotificationWebhookPayloadFragment, Sv as ViewPreferencesType, T_ as TriageRuleErrorType, Ta as CycleArchivePayloadFragment, Tc as Initiative_SubInitiativesQueryVariables, Td as NotificationDeliveryPreferencesFragment, Tf as OtherNotificationWebhookPayloadFragment, Tg as TeamArchivePayloadFragment, Th as ReleaseUpdateByPipelineInput, Ti as CustomResourceWebhookPayloadFragment, Tl as IssueImportCreateGithubMutationVariables, Tm as RateLimitPayloadFragment, Tn as AiConversationSubscribeToEventToolCallArgsFragment, To as EmojiPayloadFragment, Tp as ProjectStatusArchivePayloadFragment, Tr as AttachmentLinkGitLabMrMutationVariables, Ts as GithubOrgType, Tt as AiConversationEntityListWidgetArgsEntitiesFragment, Tu as IssueVcsBranchSearch_AttachmentsQueryVariables, Tv as ViewType, U as AgentActivityResponseContentFragment, U_ as UserFragment, Ua as DeleteIssueMutationVariables, Uc as IntegrationSlackPostMutationVariables, Ud as OAuthApplicationPayloadFragment, Uf as ProjectFilterSuggestionQueryVariables, Ug as TeamUpdateInput, Uh as RoadmapToProjectFragment, Ui as CustomerNeedChildWebhookPayloadFragment, Ul as IssueMentionNotificationWebhookPayloadFragment, Um as ReleaseNoteCreateInput, Un as AiConversationWidgetDisplayInfoFragment, Uo as ExternalUserFragment, Up as ProjectUpdatePayloadFragment, Ur as AuthIdentityProviderFragment, Us as InitiativeNotificationFragment, Ut as AiConversationInvokeMcpToolToolCallArgsServerFragment, Uu as Issue_CommentsQueryVariables, Uv as WorkflowDefinitionFragment, V as AgentActivityPayloadFragment, V_ as UserFlagType, Va as DeleteCustomerNeedMutationVariables, Vc as IntegrationService, Vd as OAuthApplicationDistribution, Vf as ProjectCreateInput, Vg as TeamRetirementSubTeamHandling, Vh as RoadmapToProjectConnectionFragment, Vi as CustomerFragment, Vl as IssueLabel_IssuesQueryVariables, Vm as ReleaseHistoryFragment, Vn as AiConversationWebSearchToolCallArgsFragment, Vo as ExternalUserChildWebhookPayloadFragment, Vp as ProjectUpdateHealthType, Vr as AuditEntryTypeFragment, Vs as InitiativeLabelFragment, Vt as AiConversationInitialSource, Vu as Issue_AttachmentsQueryVariables, Vv as WelcomeMessageNotificationFragment, W as AgentActivitySignal, W_ as UserNotificationSubscriptionFragment, Wa as DeleteOrganizationInput, Wc as IntegrationSlackWorkspaceNamePayloadFragment, Wd as OAuthApplicationRotateSecretPayloadFragment, Wf as ProjectFragment, Wg as TeamVisibility, Wh as RoadmapToProjectPayloadFragment, Wi as CustomerNeedConnectionFragment, Wl as IssueNewCommentNotificationWebhookPayloadFragment, Wm as ReleaseNoteFragment, Wn as AiConversationWidgetName, Wo as ExternalUsersQueryVariables, Wp as ProjectUpdateReminderFrequency, Wr as AuthOrganizationFragment, Ws as InitiativeNotificationSubscriptionFragment, Wt as AiConversationInvokeMcpToolToolCallArgsToolFragment, Wu as Issue_DocumentsQueryVariables, Wv as WorkflowStateArchivePayloadFragment, X as AgentSessionCreateOnIssue, X_ as UserSettingsFlagsResetMutationVariables, Xa as DocumentContentChildWebhookPayloadFragment, Xc as IntegrationsQueryVariables, Xd as OauthClientApprovalNotificationFragment, Xf as ProjectLabelFragment, Xg as Team_MembersQueryVariables, Xh as SLADayCountType, Xi as CustomerNeedQueryVariables, Xl as IssueRelationFragment, Xm as ReleasePayloadFragment, Xn as AppUserNotificationWebhookPayloadFragment, Xo as FavoriteFragment, Xp as ProjectWebhookPayloadFragment, Xr as CandidateRepository, Xs as InitiativeRelationUpdateInput, Xt as AiConversationPartMetadataFragment, Xu as Issue_NeedsQueryVariables, Xv as WorkflowStateUpdateInput, Y as AgentSessionCreateOnComment, Y_ as UserSettingsFlagPayloadFragment, Ya as DocumentConnectionFragment, Yc as IntegrationTemplatesQueryVariables, Yd as OauthClientApprovalFragment, Yf as ProjectLabelCreateInput, Yg as Team_LabelsQueryVariables, Yh as RoadmapsQueryVariables, Yi as CustomerNeedPayloadFragment, Yl as IssueRelationCreateInput, Ym as ReleaseNotesQueryVariables, Yn as AirbyteConfigurationInput, Yo as FavoriteCreateInput, Yp as ProjectUpdatesQueryVariables, Yr as BaseWebhookPayloadFragment, Ys as InitiativeRelationPayloadFragment, Yt as AiConversationNavigateToPageToolCallResultFragment, Yu as Issue_LabelsQueryVariables, Yv as WorkflowStatePayloadFragment, Z as AgentSessionEventWebhookPayloadFragment, Z_ as UserSettingsFlagsResetPayloadFragment, Za as DocumentContentDraftFragment, Zc as IntegrationsSettingsCreateInput, Zd as OauthClientChildWebhookPayloadFragment, Zf as ProjectLabelPayloadFragment, Zg as Team_MembershipsQueryVariables, Zh as Scalars, Zi as CustomerNeedUpdateInput, Zl as IssueRelationHistoryPayloadFragment, Zm as ReleasePipelineArchivePayloadFragment, Zn as AppUserTeamAccessChangedWebhookPayloadFragment, Zo as FavoritePayloadFragment, Zp as Project_AttachmentsQueryVariables, Zr as CommentChildWebhookPayloadFragment, Zs as InitiativeRelationsQueryVariables, Zt as AiConversationPartPhase, Zu as Issue_RelationsQueryVariables, Zv as WorkflowState_IssuesQueryVariables, _ as EntityWebhookPayloadWithInitiativeUpdateData, __ as TriageResponsibilitiesQueryVariables, _a as CustomerTierPayloadFragment, _c as InitiativeUpdate_CommentsQueryVariables, _d as NotificationBatchActionPayloadFragment, _f as OrganizationUpdateInput, _g as SsoUrlFromEmailQueryVariables, _h as ReleaseStageFragment, _i as CreateCsvExportReportMutationVariables, _l as IssueHistoryFragment, _m as PullRequestReviewTool, _n as AiConversationRetryPullRequestCheckToolCallArgsFragment, _o as EmailIntakeAddressUpdateInput, _p as ProjectRelationConnectionFragment, _r as AttachmentIssue_RelationsQueryVariables, _s as GitHubCommitIntegrationPayloadFragment, _t as AiConversationCreateEntityToolCallFragment, _u as IssueToReleaseConnectionFragment, _v as ViewPreferencesCreateInput, a_ as TemplateCreateInput, aa as CustomerStatusChildWebhookPayloadFragment, ac as InitiativeToProjectsQueryVariables, ad as LatestReleaseByAccessKey_HistoryQueryVariables, af as OrganizationInviteConnectionFragment, ag as SemanticSearchQueryVariables, ah as ReleasePipelinePayloadFragment, ai as CommentWebhookPayloadFragment, al as IssueBatchPayloadFragment, am as Project_IssuesQueryVariables, an as AiConversationQueryViewToolCallArgsFragment, ao as DocumentSearchPayloadFragment, ap as ProjectMilestoneCreateInput, ar as AttachmentCreateInput, as as FrequencyResolutionType, at as AgentSessionUpdateExternalUrlInput, au as IssueSearchResultFragment, av as UserSettings_ThemeQueryVariables, b as EntityWebhookPayloadWithProjectData, b_ as TriageResponsibilityCreateInput, ba as CustomerUpdateInput, bc as Initiative_DocumentsQueryVariables, bd as NotificationChannel, bf as Organization_ProjectLabelsQueryVariables, bg as SuccessPayloadFragment, bh as ReleaseStageUpdateInput, bi as CreateIssueLabelMutationVariables, bl as IssueHistoryWorkflowMetadataFragment, bm as PushSubscriptionFragment, bn as AiConversationSearchEntitiesToolCallArgsFragment, bo as EmailUserAccountAuthChallengeInput, bp as ProjectRelationPayloadFragment, br as AttachmentIssue_SubscribersQueryVariables, bs as GitHubIntegrationConnectDetailsFragment, bt as AiConversationEntityCardWidgetArgsAction, bu as IssueToReleasePayloadFragment, bv as ViewPreferencesPayloadFragment, c as EntityWebhookPayloadWithAttachmentData, c_ as TemplateUpdateInput, ca as CustomerStatusFragment, cc as InitiativeUpdateConnectionFragment, cd as LogoutAllSessionsMutationVariables, cf as OrganizationInviteFullDetailsPayloadFragment, cg as SendStrategy, ch as ReleasePipeline_ReleasesQueryVariables, ci as Comment_CreatedIssuesQueryVariables, cl as IssueCommentReactionNotificationWebhookPayloadFragment, cm as Project_NeedsQueryVariables, cn as AiConversationQueryViewToolCallFragment, co as DocumentWebhookPayloadFragment, cp as ProjectMilestoneMoveProjectTeamsFragment, cr as AttachmentIssue_ChildrenQueryVariables, cs as GitAutomationStateCreateInput, ct as AgentSession_ActivitiesQueryVariables, cu as IssueSharingPolicy, cv as UserUpdateInput, d as EntityWebhookPayloadWithCustomerData, d_ as TimeScheduleEntryFragment, da as CustomerStatusUpdateInput, dc as InitiativeUpdateHealthType, dd as LogoutResponseFragment, df as OrganizationInviteUpdateInput, dg as SlaConfigurationFragment, dh as ReleasePipelinesQueryVariables, di as Comment_DocumentContent_WelcomeMessageQueryVariables, dl as IssueEmojiReactionNotificationWebhookPayloadFragment, dm as Project_RelationsQueryVariables, dn as AiConversationResearchToolCallFragment, do as DraftConnectionFragment, dp as ProjectMilestoneUpdateInput, dr as AttachmentIssue_FormerAttachmentsQueryVariables, ds as GitAutomationStateUpdateInput, dt as AiConversationBaseToolCallFragment, du as IssueStateSpanFragment, dv as User_CreatedIssuesQueryVariables, e_ as Team_StatesQueryVariables, ea as CustomerNeed_ProjectAttachmentQueryVariables, ec as InitiativeToProjectConnectionFragment, ed as Issue_SubscribersQueryVariables, ef as OrganizationDeletePayloadFragment, eg as SearchIssuesQueryVariables, eh as ReleasePipelineByAccessKey_TeamsQueryVariables, ei as CommentFragment, el as IntegrationsSettingsUpdateInput, em as Project_ExternalLinksQueryVariables, en as AiConversationQueryActivityToolCallArgsFragment, eo as DocumentContentHistoryTypeFragment, ep as ProjectLabel_ChildrenQueryVariables, er as ArchivePayloadFragment, es as FavoritesQueryVariables, et as AgentSessionPayloadFragment, eu as IssueRelationUpdateInput, ev as UserSettingsThemeDeviceType, ey as WorkflowTriggerType, f as EntityWebhookPayloadWithCustomerNeedData, f_ as TimeScheduleFragment, fa as CustomerStatusesQueryVariables, fc as InitiativeUpdateInput, fd as MicrosoftTeamsChannelFragment, ff as OrganizationInvitesQueryVariables, fg as SlaStatus, fh as ReleaseSearchQueryVariables, fi as Comment_ExternalThreadQueryVariables, fl as IssueFigmaFileKeySearchQueryVariables, fm as Project_TeamsQueryVariables, fn as AiConversationResearchToolCallResultFragment, fo as DraftFragment, fp as ProjectMilestone_IssuesQueryVariables, fr as AttachmentIssue_FormerNeedsQueryVariables, fs as GitAutomationStates, ft as AiConversationBaseWidgetFragment, fu as IssueStatusChangedNotificationWebhookPayloadFragment, fv as User_DelegatedIssuesQueryVariables, g as EntityWebhookPayloadWithInitiativeData, g_ as TokenUserAccountAuthInput, ga as CustomerTierFragment, gc as InitiativeUpdateWebhookPayloadFragment, gd as NotificationArchivePayloadFragment, gf as OrganizationStartTrialPayloadFragment, gg as SlackChannelType, gh as ReleaseStageCreateInput, gi as ContextViewType, gl as IssueHistoryConnectionFragment, gm as PullRequestNotificationFragment, gn as AiConversationRetrieveEntitiesToolCallFragment, go as EmailIntakeAddressType, gp as ProjectPayloadFragment, gr as AttachmentIssue_NeedsQueryVariables, gs as GitAutomationTargetBranchUpdateInput, gt as AiConversationCreateEntityToolCallArgsFragment, gu as IssueTitleSuggestionFromCustomerRequestPayloadFragment, gv as UsersQueryVariables, h as EntityWebhookPayloadWithEntityData, h_ as TimeSchedulesQueryVariables, ha as CustomerTierCreateInput, hc as InitiativeUpdateUpdateInput, hd as NodeFragment, hf as OrganizationStartTrialInput, hg as SlackChannelNameMappingFragment, hh as ReleaseStageConnectionFragment, hi as ContactPayloadFragment, hl as IssueFragment, hm as PullRequestMergeMethod, hn as AiConversationRetrieveEntitiesToolCallArgsFragment, ho as EmailIntakeAddressPayloadFragment, hp as ProjectNotificationSubscriptionFragment, hr as AttachmentIssue_LabelsQueryVariables, hs as GitAutomationTargetBranchPayloadFragment, ht as AiConversationCodeIntelligenceToolCallFragment, hu as IssueSuggestionType, hv as User_TeamsQueryVariables, i as LinearWebhookClient, i_ as TemplateConnectionFragment, ia as CustomerPayloadFragment, ic as InitiativeToProjectUpdateInput, id as LatestReleaseByAccessKey_DocumentsQueryVariables, if as OrganizationFragment, ig as SemanticSearchPayloadFragment, ih as ReleasePipelineFragment, ii as CommentUpdateInput, il as IssueBatchCreateInput, im as Project_InverseRelationsQueryVariables, in as AiConversationQueryUpdatesToolCallFragment, io as DocumentPayloadFragment, ip as ProjectMilestoneConnectionFragment, ir as AttachmentConnectionFragment, is as FileUploadMutationVariables, it as AgentSessionType, iu as IssueSearchQueryVariables, iv as UserSettingsUpdateInput, j_ as UploadFileFragment, ja as CyclePayloadFragment, jc as IntegrationGitHubPersonalMutationVariables, jd as NotificationSubscriptionCreateInput, jf as PasskeyLoginStartResponseFragment, jg as TeamMembershipCreateInput, jh as Release_IssuesQueryVariables, ji as CustomViewPayloadFragment, jl as IssueImportSyncCheckPayloadFragment, jm as RecentReleasesByAccessKeyQueryVariables, jn as AiConversationTextPartFragment, jo as EntityExternalLinkUpdateInput, jp as ProjectStatusPayloadFragment, jr as AttachmentLinkZendeskMutationVariables, js as ImportFileUploadMutationVariables, jt as AiConversationGetMicrosoftTeamsConversationHistoryToolCallFragment, ju as IssueVcsBranchSearch_HistoryQueryVariables, jv as Viewer_TeamsQueryVariables, k_ as UpdateIssueLabelMutationVariables, ka as CycleFragment, kc as IntegrationConnectionFragment, kd as NotificationPayloadFragment, kf as PaginationSortOrder, kg as TeamFragment, kh as Release_DocumentsQueryVariables, ki as CustomViewHasSubscribersPayloadFragment, kl as IssueImportJqlCheckPayloadFragment, km as ReactionPayloadFragment, kn as AiConversationSuggestValuesToolCallArgsFragment, ko as EntityExternalLinkFragment, kp as ProjectStatusCreateInput, kr as AttachmentLinkSlackMutationVariables, ks as IdentityProviderType, kt as AiConversationErrorPartFragment, ku as IssueVcsBranchSearch_FormerAttachmentsQueryVariables, kv as Viewer_DraftsQueryVariables, l as EntityWebhookPayloadWithAuditEntryData, l_ as TimeScheduleConnectionFragment, la as CustomerStatusPayloadFragment, lc as InitiativeUpdateCreateInput, ld as LogoutMutationVariables, lf as OrganizationInvitePayloadFragment, lg as SesDomainIdentityDnsRecordFragment, lh as ReleasePipeline_StagesQueryVariables, li as Comment_DocumentContentQueryVariables, ll as IssueConnectionFragment, lm as Project_ProjectMilestonesQueryVariables, ln as AiConversationReasoningPartFragment, lo as Document_CommentsQueryVariables, lp as ProjectMilestonePayloadFragment, lr as AttachmentIssue_CommentsQueryVariables, ls as GitAutomationStateFragment, lt as AgentSessionsQueryVariables, lu as IssueSlaWebhookPayloadFragment, lv as UserWebhookPayloadFragment, m as EntityWebhookPayloadWithDocumentData, m_ as TimeScheduleUpdateInput, ma as CustomerTierConnectionFragment, mc as InitiativeUpdateReminderPayloadFragment, md as MicrosoftTeamsTeamFragment, mf as OrganizationPayloadFragment, mg as SlackChannelConnectPayloadFragment, mh as ReleaseStageChildWebhookPayloadFragment, mi as ContactCreateInput, ml as IssueFilterSuggestionQueryVariables, mm as PullRequestCheckPresentation, mn as AiConversationRestoreEntityToolCallFragment, mo as EmailIntakeAddressFragment, mp as ProjectNotificationFragment, mr as AttachmentIssue_InverseRelationsQueryVariables, ms as GitAutomationTargetBranchFragment, mt as AiConversationCodeIntelligenceToolCallArgsFragment, mu as IssueSuggestionState, mv as User_TeamMembershipsQueryVariables, n_ as Team_WebhooksQueryVariables, na as CustomerNotificationFragment, nc as InitiativeToProjectFragment, nd as JiraFetchProjectStatusesPayloadFragment, nf as OrganizationDomainFragment, ng as SearchProjectsQueryVariables, nh as ReleasePipelineConnectionFragment, ni as CommentQueryVariables, nl as IssueArchivePayloadFragment, nm as Project_InitiativeToProjectsQueryVariables, nn as AiConversationQueryUpdatesToolCallArgsFragment, no as DocumentFragment, np as ProjectLabelsQueryVariables, nr as ArchiveResponseFragment, ns as FetchDataPayloadFragment, nt as AgentSessionToPullRequestConnectionFragment, nu as IssueRepositorySuggestionsQueryVariables, nv as UserSettingsThemeMode, ny as _generated_documents_d_exports, o as AppUserNotificationWebhookPayloadWithNotification, o_ as TemplateFragment, oa as CustomerStatusConnectionFragment, oc as InitiativeUpdateArchivePayloadFragment, od as LatestReleaseByAccessKey_IssuesQueryVariables, of as OrganizationInviteCreateInput, og as SemanticSearchResultFragment, oh as ReleasePipelineType, oi as Comment_BotActorQueryVariables, ol as IssueChildWebhookPayloadFragment, om as Project_LabelsQueryVariables, on as AiConversationQueryViewToolCallArgsMode, oo as DocumentSearchResultFragment, op as ProjectMilestoneFragment, or as AttachmentFragment, os as FrontAttachmentPayloadFragment, ot as AgentSessionUpdateInput, ou as IssueSharedAccessDisallowedField, ov as UserSettings_Theme_CustomQueryVariables, p as EntityWebhookPayloadWithCycleData, p_ as TimeSchedulePayloadFragment, pa as CustomerTierChildWebhookPayloadFragment, pc as InitiativeUpdatePayloadFragment, pd as MicrosoftTeamsChannelsPayloadFragment, pf as OrganizationOriginWebhookPayloadFragment, pg as SlackAsksTeamSettingsFragment, ph as ReleaseStageArchivePayloadFragment, pi as CommentsQueryVariables, pl as IssueFilterSuggestionPayloadFragment, pm as ProjectsQueryVariables, pn as AiConversationRestoreEntityToolCallArgsFragment, po as EmailIntakeAddressCreateInput, pp as ProjectMilestonesQueryVariables, pr as AttachmentIssue_HistoryQueryVariables, ps as GitAutomationTargetBranchCreateInput, pt as AiConversationClientPlatform, pu as IssueSubscribeMutationVariables, pv as User_DraftsQueryVariables, q as AgentActivityWebhookPayloadFragment, q_ as UserSettingsCustomSidebarThemeFragment, qa as DocumentArchivePayloadFragment, qc as IntegrationTemplateFragment, qd as OAuthClientApprovalStatus, qf as ProjectLabelChildWebhookPayloadFragment, qg as Team_GitAutomationStatesQueryVariables, qh as RoadmapUpdateInput, qi as CustomerNeedFragment, ql as IssuePriorityValueFragment, qm as ReleaseNoteUpdateInput, qn as AiPromptRulesFragment, qo as FacetPageSource, qp as ProjectUpdateWebhookPayloadFragment, qr as AuthenticationSessionResponseFragment, qs as InitiativeRelationCreateInput, qt as AiConversationNavigateToPageToolCallArgsFragment, qu as Issue_HistoryQueryVariables, qv as WorkflowStateCreateInput, r_ as TeamsQueryVariables, ra as CustomerNotificationSubscriptionFragment, rc as InitiativeToProjectPayloadFragment, rd as LabelNotificationSubscriptionFragment, rf as OrganizationExistsPayloadFragment, rg as SearchProjects_ArchivePayloadQueryVariables, rh as ReleasePipelineCreateInput, ri as CommentResolveMutationVariables, rl as IssueAssignedToYouNotificationWebhookPayloadFragment, rm as Project_InitiativesQueryVariables, rn as AiConversationQueryUpdatesToolCallArgsUpdateType, ro as DocumentNotificationFragment, rp as ProjectMilestoneChildWebhookPayloadFragment, rr as AsksChannelConnectPayloadFragment, rs as FileUploadDeletePayloadFragment, rt as AgentSessionToPullRequestFragment, ru as IssueSearchPayloadFragment, rv as UserSettingsThemePreset, s_ as TemplatePayloadFragment, sa as CustomerStatusCreateInput, sc as InitiativeUpdateChildWebhookPayloadFragment, sd as LatestReleaseByAccessKey_LinksQueryVariables, sf as OrganizationInviteFragment, sg as SemanticSearchResultType, sh as ReleasePipelineUpdateInput, si as Comment_ChildrenQueryVariables, sl as IssueCommentMentionNotificationWebhookPayloadFragment, sm as Project_MembersQueryVariables, sn as AiConversationQueryViewToolCallArgsViewFragment, so as DocumentUpdateInput, sp as ProjectMilestoneMoveIssueToTeamFragment, sr as AttachmentIssue_AttachmentsQueryVariables, ss as GitAutomationStateConnectionFragment, st as AgentSessionWebhookPayloadFragment, su as IssueSharedAccessFragment, sv as UserSettings_Theme_Custom_SidebarQueryVariables, t_ as Team_TemplatesQueryVariables, ta as CustomerNeedsQueryVariables, tc as InitiativeToProjectCreateInput, td as IssuesQueryVariables, tf as OrganizationDomainAuthType, tg as SearchIssues_ArchivePayloadQueryVariables, th as ReleasePipelineChildWebhookPayloadFragment, ti as CommentPayloadFragment, tl as IntercomSettingsInput, tm as Project_HistoryQueryVariables, tn as AiConversationQueryActivityToolCallFragment, to as DocumentCreateInput, tp as ProjectLabel_ProjectsQueryVariables, tr as ArchiveProjectMutationVariables, ts as FeedSummarySchedule, tt as AgentSessionStatus, tu as IssueRelationsQueryVariables, tv as UserSettingsThemeFragment, ty as WorkflowType, u as EntityWebhookPayloadWithCommentData, u_ as TimeScheduleCreateInput, ua as CustomerStatusType, uc as InitiativeUpdateFragment, ud as LogoutOtherSessionsMutationVariables, uf as OrganizationInviteStatus, ug as SesDomainIdentityFragment, uh as ReleasePipeline_TeamsQueryVariables, ui as Comment_DocumentContent_AiPromptRulesQueryVariables, ul as IssueCreateInput, um as Project_ProjectUpdatesQueryVariables, un as AiConversationResearchToolCallArgsFragment, uo as DocumentsQueryVariables, up as ProjectMilestoneStatus, ur as AttachmentIssue_DocumentsQueryVariables, us as GitAutomationStatePayloadFragment, ut as AiConversationBasePartFragment, uu as IssueStateSpanConnectionFragment, uv as User_AssignedIssuesQueryVariables, v as EntityWebhookPayloadWithIssueData, v_ as TriageResponsibilityAction, va as CustomerTierUpdateInput, vc as InitiativeUpdatesQueryVariables, vd as NotificationCategory, vf as Organization_IntegrationsQueryVariables, vg as SsoUrlFromEmailResponseFragment, vh as ReleaseStagePayloadFragment, vi as CreateCsvExportReportPayloadFragment, vl as IssueHistoryTriageRuleErrorFragment, vm as PullRequestStatus, vn as AiConversationRetryPullRequestCheckToolCallFragment, vo as EmailUnsubscribeInput, vp as ProjectRelationCreateInput, vr as AttachmentIssue_ReleasesQueryVariables, vs as GitHubEnterpriseServerInstallVerificationPayloadFragment, vt as AiConversationDeleteEntityToolCallArgsFragment, vu as IssueToReleaseCreateInput, vv as ViewPreferencesFragment, w as EntityWebhookPayloadWithUserData, w_ as TriageResponsibilityUpdateInput, wa as CustomersQueryVariables, wc as Initiative_ProjectsQueryVariables, wd as NotificationDeliveryPreferencesDayFragment, wf as OtherNotificationType, wg as SyncedExternalThreadFragment, wh as ReleaseSyncInputBase, wi as CreateTeamMutationVariables, wl as IssueImportCreateCsvJiraMutationVariables, wm as PushSubscriptionType, wn as AiConversationStatus, wo as EmojiFragment, wp as ProjectSearchResultFragment, wr as AttachmentLinkGitHubPrMutationVariables, ws as GitLinkKind, wt as AiConversationEntityListWidgetArgsAction, wu as IssueUpdateInput, wv as ViewPreferencesValuesFragment, x as EntityWebhookPayloadWithProjectUpdateData, x_ as TriageResponsibilityFragment, xa as CustomerUpsertInput, xc as Initiative_HistoryQueryVariables, xd as NotificationChannelPreferencesFragment, xf as Organization_TeamsQueryVariables, xg as SummaryFragment, xh as ReleaseStage_ReleasesQueryVariables, xi as CreateIssueRelationMutationVariables, xl as IssueImportCheckPayloadFragment, xm as PushSubscriptionPayloadFragment, xn as AiConversationSearchEntitiesToolCallFragment, xo as EmailUserAccountAuthChallengeResponseFragment, xp as ProjectRelationUpdateInput, xr as AttachmentLinkDiscordMutationVariables, xs as GitHubRemoveCodeAccessAction, xt as AiConversationEntityCardWidgetArgsFragment, xu as IssueToReleasesQueryVariables, xv as ViewPreferencesProjectLabelGroupColumnFragment, y as EntityWebhookPayloadWithIssueLabelData, y_ as TriageResponsibilityConnectionFragment, ya as CustomerTiersQueryVariables, yc as InitiativeWebhookPayloadFragment, yd as NotificationCategoryPreferencesFragment, yf as Organization_LabelsQueryVariables, yg as SubscriptionFragment, yh as ReleaseStageType, yi as CreateInitiativeUpdateReminderMutationVariables, yl as IssueHistoryTriageRuleMetadataFragment, ym as PushSubscriptionCreateInput, yn as AiConversationSearchDocumentationToolCallFragment, yo as EmailUnsubscribePayloadFragment, yp as ProjectRelationFragment, yr as AttachmentIssue_StateHistoryQueryVariables, ys as GitHubEnterpriseServerPayloadFragment, yt as AiConversationDeleteEntityToolCallFragment, yu as IssueToReleaseFragment, yv as ViewPreferencesInitiativeLabelGroupColumnFragment, z as AgentActivityErrorContentFragment, z_ as UserConnectionFragment, za as DateResolutionType, zc as IntegrationRequestInput, zd as OAuthApplicationArchivePayloadFragment, zf as ProjectChildWebhookPayloadFragment, zg as TeamPinnedResourceFragment, zh as RoadmapFragment, zi as CustomerConnectionFragment, zl as IssueLabelWebhookPayloadFragment, zm as ReleaseFragment, zn as AiConversationUpdateEntityToolCallArgsFragment, zo as ExternalEntitySlackMetadataFragment, zp as ProjectUpdateCreateInput, zr as AuditEntryConnectionFragment, zs as InitiativeLabelChildWebhookPayloadFragment, zt as AiConversationHandoffToCodingSessionToolCallArgsFragment, zu as IssueWebhookPayloadFragment, zv as WebhooksQueryVariables } from "./index-vVBYACFF.mjs"; //#region src/types.d.ts /** * Input options for creating a Linear Client */ interface LinearClientOptions extends RequestInit { /** Personal api token generated from https://linear.app/settings/account/security */ apiKey?: string; /** The access token returned from oauth endpoints configured in https://linear.app/settings/account/security */ accessToken?: string; /** The url to the Linear graphql api */ apiUrl?: string; } /** * Validated LinearGraphQLClient options */ interface LinearClientParsedOptions extends RequestInit { /** The url to the Linear graphql api defaulted to production */ apiUrl: string; } /** * The raw response from the Linear GraphQL Client */ interface LinearRawResponse { /** The returned data */ data?: Data; /** Any extensions returned by the Linear API */ extensions?: unknown; /** Response headers */ headers?: Headers; /** Response status */ status?: number; /** An error message */ error?: string; /** Any GraphQL errors returned by the Linear API */ errors?: LinearGraphQLErrorRaw[]; } /** * The error types returned by the Linear API */ declare enum LinearErrorType { "FeatureNotAccessible" = "FeatureNotAccessible", "InvalidInput" = "InvalidInput", "Ratelimited" = "Ratelimited", "NetworkError" = "NetworkError", "AuthenticationError" = "AuthenticationError", "Forbidden" = "Forbidden", "BootstrapError" = "BootstrapError", "Unknown" = "Unknown", "InternalError" = "InternalError", "Other" = "Other", "UserError" = "UserError", "GraphqlError" = "GraphqlError", "LockTimeout" = "LockTimeout", "UsageLimitExceeded" = "UsageLimitExceeded", } /** * One of potentially many raw graphql errors returned by the Linear API */ interface LinearGraphQLErrorRaw { /** The error type */ message?: LinearErrorType; /** The path to the graphql node at which the error occured */ path?: string[]; extensions?: { /** The error type */ type?: LinearErrorType; /** If caused by the user input */ userError?: boolean; /** A friendly error message */ userPresentableMessage?: string; }; } /** * Description of a GraphQL request used in error handling */ interface GraphQLRequestContext> { query: string; variables?: Variables; } /** * The raw error returned by the Linear API */ interface LinearErrorRaw { /** Error name if available */ name?: string; /** Error message if available */ message?: string; /** Error information for the request */ request?: GraphQLRequestContext>; /** Error information for the response */ response?: LinearRawResponse; } //#endregion //#region src/graphql-client.d.ts /** * Identical class to graphql-request ClientError * Ensures parseLinearError is compatible with custom graphql-request clients * * @param response the raw response from the Linear API * @param request information about the request resulting in the error */ declare class GraphQLClientError> extends Error { response: LinearRawResponse; request: GraphQLRequestContext; constructor(response: LinearRawResponse, request: GraphQLRequestContext); private static extractMessage; } /** * Create an isomorphic GraphQL client * Originally forked from graphql-request to remove the external dependency * * @param url base url to send the request to * @param options the request options */ declare class LinearGraphQLClient { private url; private options; constructor(url: string, options?: RequestInit); rawRequest>(query: string, variables?: Variables, requestHeaders?: RequestInit["headers"]): Promise>; /** * Send a GraphQL document to the server. */ request>(document: string, variables?: Variables, requestHeaders?: RequestInit["headers"]): Promise; setHeaders(headers: RequestInit["headers"]): LinearGraphQLClient; /** * Attach a header to the client. All subsequent requests will have this header. */ setHeader(key: string, value: string): LinearGraphQLClient; } //#endregion //#region src/_generated_sdk.d.ts /** The function for calling the graphql client */ type LinearRequest = >(doc: string, variables?: Variables) => Promise; /** * Base class to provide a request function * * @param request - function to call the graphql client */ declare class Request { protected _request: LinearRequest; constructor(request: LinearRequest); /** * Helper to paginate over all pages of a given connection query. * @param fn The query to paginate * @param args The arguments to pass to the query */ paginate(fn: (variables: U) => LinearFetch>, args: U): Promise; } /** Fetch return type wrapped in a promise */ type LinearFetch = Promise; /** * Variables required for pagination * Follows the Relay spec */ type LinearConnectionVariables = { after?: string | null; before?: string | null; first?: number | null; last?: number | null; }; /** * Connection models containing a list of nodes and pagination information * Follows the Relay spec */ declare class LinearConnection extends Request { pageInfo: PageInfo; nodes: Node$1[]; constructor(request: LinearRequest); } /** * The base connection class to provide pagination * Follows the Relay spec * * @param request - function to call the graphql client * @param fetch - Function to refetch the connection given different pagination variables * @param nodes - The list of models to initialize the connection * @param pageInfo - The pagination information to initialize the connection */ declare class Connection extends LinearConnection { private _fetch; constructor(request: LinearRequest, fetch: (variables?: LinearConnectionVariables) => LinearFetch | undefined>, nodes: Node$1[], pageInfo: PageInfo); /** Add nodes to the end of the existing nodes */ private _appendNodes; /** Add nodes to the start of the existing nodes */ private _prependNodes; /** Update the pagination end cursor */ private _appendPageInfo; /** Update the pagination start cursor */ private _prependPageInfo; /** Fetch the next page of results and append to nodes */ fetchNext(): Promise; /** Fetch the previous page of results and prepend to nodes */ fetchPrevious(): Promise; } /** * A bot actor representing a non-human entity that performed an action, such as an integration (GitHub, Slack, Zendesk), an AI assistant, or an automated workflow. Bot actors are displayed in activity feeds and history to indicate when changes were made by applications rather than users. * * @param request - function to call the graphql client * @param data - L.ActorBotFragment response data */ declare class ActorBot extends Request { constructor(request: LinearRequest, data: ActorBotFragment); /** A URL pointing to the avatar image representing this bot, typically the integration's logo or icon. */ avatarUrl?: string | null; /** A unique identifier for the bot actor. */ id?: string | null; /** The display name of the bot. */ name?: string | null; /** A more specific classification within the bot type, providing additional context about the integration or application variant. */ subType?: string | null; /** The source type of the bot, identifying the application or integration (e.g., 'github', 'slack', 'workflow', 'ai'). */ type: string; /** The display name of the external user on behalf of whom the bot acted. Shown when an integration action was triggered by a specific person in the external system. */ userDisplayName?: string | null; } /** * An activity performed by or directed at an AI coding agent during a session. Activities represent the observable steps of an agent's work, including thoughts, actions (tool calls), responses, prompts from users, errors, and elicitation requests. Each activity belongs to an agent session and is associated with the user who initiated it. * * @param request - function to call the graphql client * @param data - L.AgentActivityFragment response data */ declare class AgentActivity extends Request { private _agentSession; private _sourceComment?; private _user; constructor(request: LinearRequest, data: AgentActivityFragment); /** The time at which the entity was archived. Null if the entity has not been archived. */ archivedAt?: Date | null; /** The time at which the entity was created. */ createdAt: Date; /** Whether the activity is ephemeral, and should disappear after the next agent activity. */ ephemeral: boolean; /** The unique identifier of the entity. */ id: string; /** Metadata about this agent activity's signal. */ signalMetadata?: Record | null; /** Metadata about the external source that created this agent activity. */ sourceMetadata?: Record | null; /** * The last time at which the entity was meaningfully updated. This is the same as the creation time if the entity hasn't * been updated after creation. */ updatedAt: Date; /** An optional modifier that provides additional instructions on how the activity should be interpreted. */ signal?: AgentActivitySignal | null; /** The content of the activity, which varies by type (thought, action, response, prompt, error, or elicitation). */ content: AgentActivityFragment["content"]; /** The agent session this activity belongs to. */ get agentSession(): LinearFetch | undefined; /** The ID of agent session this activity belongs to. */ get agentSessionId(): string | undefined; /** The source comment this activity is linked to. Null if the activity was not triggered by a comment. */ get sourceComment(): LinearFetch | undefined; /** The ID of source comment this activity is linked to. null if the activity was not triggered by a comment. */ get sourceCommentId(): string | undefined; /** The user who created this agent activity. */ get user(): LinearFetch | undefined; /** The ID of user who created this agent activity. */ get userId(): string | undefined; /** Creates an agent activity. */ create(input: AgentActivityCreateInput): LinearFetch; } /** * Content for an action activity (tool call or action). * * @param request - function to call the graphql client * @param data - L.AgentActivityActionContentFragment response data */ declare class AgentActivityActionContent extends Request { constructor(request: LinearRequest, data: AgentActivityActionContentFragment); /** The action being performed. */ action: string; /** The parameters for the action, e.g. a file path, a keyword, etc. */ parameter: string; /** The result of the action in Markdown format. */ result?: string | null; /** The type of activity. */ type: AgentActivityType; } /** * AgentActivityConnection model * * @param request - function to call the graphql client * @param fetch - function to trigger a refetch of this AgentActivityConnection model * @param data - AgentActivityConnection response data */ declare class AgentActivityConnection extends Connection { constructor(request: LinearRequest, fetch: (connection?: LinearConnectionVariables) => LinearFetch | undefined>, data: AgentActivityConnectionFragment); } /** * Content for an elicitation activity. * * @param request - function to call the graphql client * @param data - L.AgentActivityElicitationContentFragment response data */ declare class AgentActivityElicitationContent extends Request { constructor(request: LinearRequest, data: AgentActivityElicitationContentFragment); /** The elicitation message in Markdown format. */ body: string; /** The type of activity. */ type: AgentActivityType; } /** * Content for an error activity. * * @param request - function to call the graphql client * @param data - L.AgentActivityErrorContentFragment response data */ declare class AgentActivityErrorContent extends Request { constructor(request: LinearRequest, data: AgentActivityErrorContentFragment); /** The error message in Markdown format. */ body: string; /** The type of activity. */ type: AgentActivityType; } /** * The result of an agent activity mutation. * * @param request - function to call the graphql client * @param data - L.AgentActivityPayloadFragment response data */ declare class AgentActivityPayload extends Request { private _agentActivity; constructor(request: LinearRequest, data: AgentActivityPayloadFragment); /** The identifier of the last sync operation. */ lastSyncId: number; /** Whether the operation was successful. */ success: boolean; /** The agent activity that was created or updated. */ get agentActivity(): LinearFetch | undefined; /** The ID of agent activity that was created or updated. */ get agentActivityId(): string | undefined; } /** * Content for a prompt activity. * * @param request - function to call the graphql client * @param data - L.AgentActivityPromptContentFragment response data */ declare class AgentActivityPromptContent extends Request { constructor(request: LinearRequest, data: AgentActivityPromptContentFragment); /** A message requesting additional information or action from user. */ body: string; /** The type of activity. */ type: AgentActivityType; } /** * Content for a response activity. * * @param request - function to call the graphql client * @param data - L.AgentActivityResponseContentFragment response data */ declare class AgentActivityResponseContent extends Request { constructor(request: LinearRequest, data: AgentActivityResponseContentFragment); /** The response content in Markdown format. */ body: string; /** The type of activity. */ type: AgentActivityType; } /** * Content for a thought activity. * * @param request - function to call the graphql client * @param data - L.AgentActivityThoughtContentFragment response data */ declare class AgentActivityThoughtContent extends Request { constructor(request: LinearRequest, data: AgentActivityThoughtContentFragment); /** The thought content in Markdown format. */ body: string; /** The type of activity. */ type: AgentActivityType; } /** * Payload for an agent activity webhook. * * @param data - L.AgentActivityWebhookPayloadFragment response data */ declare class AgentActivityWebhookPayload { constructor(data: AgentActivityWebhookPayloadFragment); /** The ID of the agent session that this activity belongs to. */ agentSessionId: string; /** The time at which the entity was archived. */ archivedAt?: string | null; /** The content of the agent activity. */ content: Scalars["JSONObject"]; /** The time at which the entity was created. */ createdAt: string; /** The ID of the entity. */ id: string; /** An optional modifier that provides additional instructions on how the activity should be interpreted. */ signal?: string | null; /** Metadata about this agent activity's signal. */ signalMetadata?: Scalars["JSONObject"] | null; /** The ID of the comment this activity is linked to. */ sourceCommentId?: string | null; /** The time at which the entity was updated. */ updatedAt: string; /** The ID of the user who created this agent activity. */ userId: string; /** The user who created this agent activity. */ user: UserChildWebhookPayload; } /** * A session representing an AI coding agent's work on an issue or conversation. Agent sessions track the lifecycle of an agent's engagement, from creation through active work to completion or dismissal. Each session is associated with an agent user (the bot), optionally a human creator, an issue, and a comment thread where the agent posts updates. Sessions contain activities that record the agent's observable steps and can be linked to pull requests created during the work. * * @param request - function to call the graphql client * @param data - L.AgentSessionFragment response data */ declare class AgentSession extends Request { private _appUser; private _comment?; private _creator?; private _dismissedBy?; private _issue?; private _sourceComment?; constructor(request: LinearRequest, data: AgentSessionFragment); /** The time at which the entity was archived. Null if the entity has not been archived. */ archivedAt?: Date | null; /** The entity contexts this session is related to, such as issues or projects referenced in direct chat sessions. Used to provide contextual awareness to the agent. */ context: Record; /** The time at which the entity was created. */ createdAt: Date; /** The time a user dismissed this agent session. When dismissed, the agent is removed as delegate from the associated issue. Null if the session has not been dismissed. */ dismissedAt?: Date | null; /** The time the agent session completed. Null if the session is still in progress or was dismissed before completion. */ endedAt?: Date | null; /** The URL of an external agent-hosted page associated with this session. */ externalLink?: string | null; /** URLs of external resources associated with this session. */ externalUrls: Record; /** The unique identifier of the entity. */ id: string; /** A dynamically updated plan describing the agent's execution strategy, including steps to be taken and their current status. Updated as the agent progresses through its work. Null if no plan has been set. */ plan?: Record | null; /** The agent session's unique URL slug. */ slugId: string; /** Metadata about the external source that created this agent session. */ sourceMetadata?: Record | null; /** The time the agent session transitioned to active status and began work. Null if the session has not yet started. */ startedAt?: Date | null; /** A human-readable summary of the work performed in this session. Null if no summary has been generated yet. */ summary?: string | null; /** * The last time at which the entity was meaningfully updated. This is the same as the creation time if the entity hasn't * been updated after creation. */ updatedAt: Date; /** The URL to the agent session page in the Linear app. Null for direct chat sessions without an associated issue. */ url?: string | null; /** External links associated with this session. */ externalLinks: AgentSessionExternalLink[]; /** The current status of the agent session, such as pending, active, awaiting input, complete, error, or stale. */ status: AgentSessionStatus; /** [DEPRECATED] The type of the agent session. */ type?: AgentSessionType | null; /** The agent user that is associated with this agent session. */ get appUser(): LinearFetch | undefined; /** The ID of agent user that is associated with this agent session. */ get appUserId(): string | undefined; /** The comment this agent session is associated with. */ get comment(): LinearFetch | undefined; /** The ID of comment this agent session is associated with. */ get commentId(): string | undefined; /** The human user responsible for the agent session. Null if the session was initiated via automation or by an agent user, with no responsible human user. */ get creator(): LinearFetch | undefined; /** The ID of human user responsible for the agent session. null if the session was initiated via automation or by an agent user, with no responsible human user. */ get creatorId(): string | undefined; /** The user who dismissed the agent session. Automatically set when dismissedAt is updated. Null if the session has not been dismissed. */ get dismissedBy(): LinearFetch | undefined; /** The ID of user who dismissed the agent session. automatically set when dismissedat is updated. null if the session has not been dismissed. */ get dismissedById(): string | undefined; /** The issue this agent session is associated with. */ get issue(): LinearFetch | undefined; /** The ID of issue this agent session is associated with. */ get issueId(): string | undefined; /** The comment that this agent session was spawned from, if from a different thread. */ get sourceComment(): LinearFetch | undefined; /** The ID of comment that this agent session was spawned from, if from a different thread. */ get sourceCommentId(): string | undefined; /** Activities associated with this agent session. */ activities(variables?: Omit): LinearFetch; /** Updates an agent session. */ update(input: AgentSessionUpdateInput): LinearFetch; } /** * AgentSessionConnection model * * @param request - function to call the graphql client * @param fetch - function to trigger a refetch of this AgentSessionConnection model * @param data - AgentSessionConnection response data */ declare class AgentSessionConnection extends Connection { constructor(request: LinearRequest, fetch: (connection?: LinearConnectionVariables) => LinearFetch | undefined>, data: AgentSessionConnectionFragment); } /** * Payload for agent session webhook events. * * @param data - L.AgentSessionEventWebhookPayloadFragment response data */ declare class AgentSessionEventWebhookPayload { constructor(data: AgentSessionEventWebhookPayloadFragment); /** The type of action that triggered the webhook. */ action: string; /** ID of the app user the agent session belongs to. */ appUserId: string; /** The time the payload was created. */ createdAt: Date; /** ID of the OAuth client the app user is tied to. */ oauthClientId: string; /** ID of the organization for which the webhook belongs to. */ organizationId: string; /** A formatted prompt string containing the relevant context for the agent session, including issue details, comments, and guidance. Present only for `created` events. */ promptContext?: string | null; /** The type of resource. */ type: string; /** The ID of the webhook that sent this event. */ webhookId: string; /** Unix timestamp in milliseconds when the webhook was sent. */ webhookTimestamp: number; /** Guidance to inform the agent's behavior, which comes from configuration at the level of the workspace, parent teams, and/or current team for this session. The nearest team-specific guidance should take highest precendence. */ guidance?: GuidanceRuleWebhookPayload[] | null; /** The previous comments in the thread before this agent was mentioned and the session was initiated, if any. Present only for `created` events where the session was initiated by mentioning the agent in a child comment of a thread. */ previousComments?: CommentChildWebhookPayload[] | null; /** The agent activity that was created. */ agentActivity?: AgentActivityWebhookPayload | null; /** The agent session that the event belongs to. */ agentSession: AgentSessionWebhookPayload; } /** * An external link associated with an agent session. * * @param request - function to call the graphql client * @param data - L.AgentSessionExternalLinkFragment response data */ declare class AgentSessionExternalLink extends Request { constructor(request: LinearRequest, data: AgentSessionExternalLinkFragment); /** Label for the link. */ label: string; /** The URL of the external resource. */ url: string; } /** * AgentSessionPayload model * * @param request - function to call the graphql client * @param data - L.AgentSessionPayloadFragment response data */ declare class AgentSessionPayload extends Request { private _agentSession; constructor(request: LinearRequest, data: AgentSessionPayloadFragment); /** The identifier of the last sync operation. */ lastSyncId: number; /** Whether the operation was successful. */ success: boolean; /** The agent session that was created or updated. */ get agentSession(): LinearFetch | undefined; /** The ID of agent session that was created or updated. */ get agentSessionId(): string | undefined; } /** * A link between an agent session and a pull request created or associated during that session. This join entity tracks which pull requests were produced by or connected to a coding agent's work session, and handles backfilling links when pull requests are synced after the agent has already recorded the URL. * * @param request - function to call the graphql client * @param data - L.AgentSessionToPullRequestFragment response data */ declare class AgentSessionToPullRequest extends Request { private _agentSession; constructor(request: LinearRequest, data: AgentSessionToPullRequestFragment); /** The time at which the entity was archived. Null if the entity has not been archived. */ archivedAt?: Date | null; /** The time at which the entity was created. */ createdAt: Date; /** The unique identifier of the entity. */ id: string; /** * The last time at which the entity was meaningfully updated. This is the same as the creation time if the entity hasn't * been updated after creation. */ updatedAt: Date; /** The agent session that the pull request is associated with. */ get agentSession(): LinearFetch | undefined; /** The ID of agent session that the pull request is associated with. */ get agentSessionId(): string | undefined; } /** * AgentSessionToPullRequestConnection model * * @param request - function to call the graphql client * @param fetch - function to trigger a refetch of this AgentSessionToPullRequestConnection model * @param data - AgentSessionToPullRequestConnection response data */ declare class AgentSessionToPullRequestConnection extends Connection { constructor(request: LinearRequest, fetch: (connection?: LinearConnectionVariables) => LinearFetch | undefined>, data: AgentSessionToPullRequestConnectionFragment); } /** * Payload for an agent session webhook. * * @param data - L.AgentSessionWebhookPayloadFragment response data */ declare class AgentSessionWebhookPayload { constructor(data: AgentSessionWebhookPayloadFragment); /** The ID of the agent that the agent session belongs to. */ appUserId: string; /** The time at which the entity was archived. */ archivedAt?: string | null; /** The ID of the root comment of the thread this agent session is attached to. */ commentId?: string | null; /** The time at which the entity was created. */ createdAt: string; /** The ID of the human user responsible for the agent session. Unset if the session was initiated via automation or by an agent user, with no responsible human user. */ creatorId?: string | null; /** The time the agent session ended. */ endedAt?: string | null; /** The ID of the entity. */ id: string; /** The ID of the issue this agent session is associated with. */ issueId?: string | null; /** The ID of the organization that the agent session belongs to. */ organizationId: string; /** The ID of the comment that this agent session was spawned from, if from a different thread. */ sourceCommentId?: string | null; /** Metadata about the external source that created this agent session. */ sourceMetadata?: Scalars["JSONObject"] | null; /** The time the agent session started working. */ startedAt?: string | null; /** The current status of the agent session. */ status: string; /** A summary of the activities in this session. */ summary?: string | null; /** The type of the agent session. */ type: string; /** The time at which the entity was updated. */ updatedAt: string; /** The URL of the agent session. */ url?: string | null; /** The root comment of the thread this agent session is attached to. */ comment?: CommentChildWebhookPayload | null; /** The human user responsible for the agent session. Unset if the session was initiated via automation or by an agent user, with no responsible human user. */ creator?: UserChildWebhookPayload | null; /** The issue this agent session is associated with. */ issue?: IssueWithDescriptionChildWebhookPayload | null; } /** * A base part in an AI conversation. * * @param request - function to call the graphql client * @param data - L.AiConversationBasePartFragment response data */ declare class AiConversationBasePart extends Request { constructor(request: LinearRequest, data: AiConversationBasePartFragment); /** The ID of the part. */ id: string; /** The metadata of the part. */ metadata: AiConversationPartMetadata; /** The type of the part. */ type: AiConversationPartType; } /** * AiConversationBaseToolCall model * * @param request - function to call the graphql client * @param data - L.AiConversationBaseToolCallFragment response data */ declare class AiConversationBaseToolCall extends Request { constructor(request: LinearRequest, data: AiConversationBaseToolCallFragment); /** The arguments of the tool call. */ rawArgs?: Record | null; /** The result of the tool call. */ rawResult?: Record | null; displayInfo: AiConversationToolDisplayInfo; /** The name of the tool that was called. */ name: AiConversationTool; } /** * AiConversationBaseWidget model * * @param request - function to call the graphql client * @param data - L.AiConversationBaseWidgetFragment response data */ declare class AiConversationBaseWidget extends Request { constructor(request: LinearRequest, data: AiConversationBaseWidgetFragment); /** The arguments of the widget. */ rawArgs?: Record | null; /** Display information for the widget, including ProseMirror and Markdown representations. */ displayInfo?: AiConversationWidgetDisplayInfo | null; /** The name of the widget. */ name: AiConversationWidgetName; } /** * AiConversationCodeIntelligenceToolCall model * * @param request - function to call the graphql client * @param data - L.AiConversationCodeIntelligenceToolCallFragment response data */ declare class AiConversationCodeIntelligenceToolCall extends Request { constructor(request: LinearRequest, data: AiConversationCodeIntelligenceToolCallFragment); /** The arguments of the tool call. */ rawArgs?: Record | null; /** The result of the tool call. */ rawResult?: Record | null; /** The arguments to the tool call. */ args?: AiConversationCodeIntelligenceToolCallArgs | null; displayInfo: AiConversationToolDisplayInfo; /** The name of the tool that was called. */ name: AiConversationTool; } /** * AiConversationCodeIntelligenceToolCallArgs model * * @param request - function to call the graphql client * @param data - L.AiConversationCodeIntelligenceToolCallArgsFragment response data */ declare class AiConversationCodeIntelligenceToolCallArgs extends Request { constructor(request: LinearRequest, data: AiConversationCodeIntelligenceToolCallArgsFragment); question: string; } /** * AiConversationCreateEntityToolCall model * * @param request - function to call the graphql client * @param data - L.AiConversationCreateEntityToolCallFragment response data */ declare class AiConversationCreateEntityToolCall extends Request { constructor(request: LinearRequest, data: AiConversationCreateEntityToolCallFragment); /** The arguments of the tool call. */ rawArgs?: Record | null; /** The result of the tool call. */ rawResult?: Record | null; /** The arguments to the tool call. */ args?: AiConversationCreateEntityToolCallArgs | null; displayInfo: AiConversationToolDisplayInfo; /** The name of the tool that was called. */ name: AiConversationTool; } /** * AiConversationCreateEntityToolCallArgs model * * @param request - function to call the graphql client * @param data - L.AiConversationCreateEntityToolCallArgsFragment response data */ declare class AiConversationCreateEntityToolCallArgs extends Request { constructor(request: LinearRequest, data: AiConversationCreateEntityToolCallArgsFragment); count?: number | null; type: string; } /** * AiConversationDeleteEntityToolCall model * * @param request - function to call the graphql client * @param data - L.AiConversationDeleteEntityToolCallFragment response data */ declare class AiConversationDeleteEntityToolCall extends Request { constructor(request: LinearRequest, data: AiConversationDeleteEntityToolCallFragment); /** The arguments of the tool call. */ rawArgs?: Record | null; /** The result of the tool call. */ rawResult?: Record | null; /** The arguments to the tool call. */ args?: AiConversationDeleteEntityToolCallArgs | null; displayInfo: AiConversationToolDisplayInfo; /** The name of the tool that was called. */ name: AiConversationTool; } /** * AiConversationDeleteEntityToolCallArgs model * * @param request - function to call the graphql client * @param data - L.AiConversationDeleteEntityToolCallArgsFragment response data */ declare class AiConversationDeleteEntityToolCallArgs extends Request { constructor(request: LinearRequest, data: AiConversationDeleteEntityToolCallArgsFragment); entity: AiConversationSearchEntitiesToolCallResultEntities; } /** * AiConversationEntityCardWidget model * * @param request - function to call the graphql client * @param data - L.AiConversationEntityCardWidgetFragment response data */ declare class AiConversationEntityCardWidget extends Request { constructor(request: LinearRequest, data: AiConversationEntityCardWidgetFragment); /** The arguments of the widget. */ rawArgs?: Record | null; /** The arguments to the widget. */ args?: AiConversationEntityCardWidgetArgs | null; /** Display information for the widget, including ProseMirror and Markdown representations. */ displayInfo?: AiConversationWidgetDisplayInfo | null; /** The name of the widget. */ name: AiConversationWidgetName; } /** * AiConversationEntityCardWidgetArgs model * * @param request - function to call the graphql client * @param data - L.AiConversationEntityCardWidgetArgsFragment response data */ declare class AiConversationEntityCardWidgetArgs extends Request { constructor(request: LinearRequest, data: AiConversationEntityCardWidgetArgsFragment); /** The UUID of the entity to display */ id: string; /** @deprecated Optional note to display about the entity */ note?: string | null; /** The action performed on the entity (leave empty if just found) */ action?: AiConversationEntityCardWidgetArgsAction | null; } /** * AiConversationEntityListWidget model * * @param request - function to call the graphql client * @param data - L.AiConversationEntityListWidgetFragment response data */ declare class AiConversationEntityListWidget extends Request { constructor(request: LinearRequest, data: AiConversationEntityListWidgetFragment); /** The arguments of the widget. */ rawArgs?: Record | null; /** The arguments to the widget. */ args?: AiConversationEntityListWidgetArgs | null; /** Display information for the widget, including ProseMirror and Markdown representations. */ displayInfo?: AiConversationWidgetDisplayInfo | null; /** The name of the widget. */ name: AiConversationWidgetName; } /** * AiConversationEntityListWidgetArgs model * * @param request - function to call the graphql client * @param data - L.AiConversationEntityListWidgetArgsFragment response data */ declare class AiConversationEntityListWidgetArgs extends Request { constructor(request: LinearRequest, data: AiConversationEntityListWidgetArgsFragment); /** Total number of entities in the list */ count?: number | null; entities: AiConversationEntityListWidgetArgsEntities[]; /** The action performed on the entities (leave empty if just found) */ action?: AiConversationEntityListWidgetArgsAction | null; } /** * AiConversationEntityListWidgetArgsEntities model * * @param request - function to call the graphql client * @param data - L.AiConversationEntityListWidgetArgsEntitiesFragment response data */ declare class AiConversationEntityListWidgetArgsEntities extends Request { constructor(request: LinearRequest, data: AiConversationEntityListWidgetArgsEntitiesFragment); /** Entity UUID */ id: string; /** @deprecated Optional note to display about the entity */ note?: string | null; } /** * An error part in an AI conversation. * * @param request - function to call the graphql client * @param data - L.AiConversationErrorPartFragment response data */ declare class AiConversationErrorPart extends Request { constructor(request: LinearRequest, data: AiConversationErrorPartFragment); /** The ID of the part. */ id: string; /** The user-facing error message for the failed AI response. */ message: string; /** The metadata of the part. */ metadata: AiConversationPartMetadata; /** The type of the part. */ type: AiConversationPartType; } /** * An event part in an AI conversation. * * @param request - function to call the graphql client * @param data - L.AiConversationEventPartFragment response data */ declare class AiConversationEventPart extends Request { constructor(request: LinearRequest, data: AiConversationEventPartFragment); /** The Markdown body of the event part. */ body: string; /** The data of the event part. */ bodyData: Scalars["JSONObject"]; /** The ID of the part. */ id: string; /** The ID of the subscription to resolve when this event is delivered. */ subscriptionId?: string | null; /** The metadata of the part. */ metadata: AiConversationPartMetadata; /** The type of the part. */ type: AiConversationPartType; } /** * AiConversationGetMicrosoftTeamsConversationHistoryToolCall model * * @param request - function to call the graphql client * @param data - L.AiConversationGetMicrosoftTeamsConversationHistoryToolCallFragment response data */ declare class AiConversationGetMicrosoftTeamsConversationHistoryToolCall extends Request { constructor(request: LinearRequest, data: AiConversationGetMicrosoftTeamsConversationHistoryToolCallFragment); /** The arguments of the tool call. */ rawArgs?: Record | null; /** The result of the tool call. */ rawResult?: Record | null; displayInfo: AiConversationToolDisplayInfo; /** The name of the tool that was called. */ name: AiConversationTool; } /** * AiConversationGetPullRequestCheckLogsToolCall model * * @param request - function to call the graphql client * @param data - L.AiConversationGetPullRequestCheckLogsToolCallFragment response data */ declare class AiConversationGetPullRequestCheckLogsToolCall extends Request { constructor(request: LinearRequest, data: AiConversationGetPullRequestCheckLogsToolCallFragment); /** The arguments of the tool call. */ rawArgs?: Record | null; /** The result of the tool call. */ rawResult?: Record | null; /** The arguments to the tool call. */ args?: AiConversationGetPullRequestCheckLogsToolCallArgs | null; displayInfo: AiConversationToolDisplayInfo; /** The name of the tool that was called. */ name: AiConversationTool; } /** * AiConversationGetPullRequestCheckLogsToolCallArgs model * * @param request - function to call the graphql client * @param data - L.AiConversationGetPullRequestCheckLogsToolCallArgsFragment response data */ declare class AiConversationGetPullRequestCheckLogsToolCallArgs extends Request { constructor(request: LinearRequest, data: AiConversationGetPullRequestCheckLogsToolCallArgsFragment); checkName: string; workflowName?: string | null; entity: AiConversationSearchEntitiesToolCallResultEntities; } /** * AiConversationGetPullRequestDiffToolCall model * * @param request - function to call the graphql client * @param data - L.AiConversationGetPullRequestDiffToolCallFragment response data */ declare class AiConversationGetPullRequestDiffToolCall extends Request { constructor(request: LinearRequest, data: AiConversationGetPullRequestDiffToolCallFragment); /** The arguments of the tool call. */ rawArgs?: Record | null; /** The result of the tool call. */ rawResult?: Record | null; /** The arguments to the tool call. */ args?: AiConversationGetPullRequestDiffToolCallArgs | null; displayInfo: AiConversationToolDisplayInfo; /** The name of the tool that was called. */ name: AiConversationTool; } /** * AiConversationGetPullRequestDiffToolCallArgs model * * @param request - function to call the graphql client * @param data - L.AiConversationGetPullRequestDiffToolCallArgsFragment response data */ declare class AiConversationGetPullRequestDiffToolCallArgs extends Request { constructor(request: LinearRequest, data: AiConversationGetPullRequestDiffToolCallArgsFragment); entity: AiConversationSearchEntitiesToolCallResultEntities; } /** * AiConversationGetPullRequestFileToolCall model * * @param request - function to call the graphql client * @param data - L.AiConversationGetPullRequestFileToolCallFragment response data */ declare class AiConversationGetPullRequestFileToolCall extends Request { constructor(request: LinearRequest, data: AiConversationGetPullRequestFileToolCallFragment); /** The arguments of the tool call. */ rawArgs?: Record | null; /** The result of the tool call. */ rawResult?: Record | null; /** The arguments to the tool call. */ args?: AiConversationGetPullRequestFileToolCallArgs | null; displayInfo: AiConversationToolDisplayInfo; /** The name of the tool that was called. */ name: AiConversationTool; } /** * AiConversationGetPullRequestFileToolCallArgs model * * @param request - function to call the graphql client * @param data - L.AiConversationGetPullRequestFileToolCallArgsFragment response data */ declare class AiConversationGetPullRequestFileToolCallArgs extends Request { constructor(request: LinearRequest, data: AiConversationGetPullRequestFileToolCallArgsFragment); path: string; entity: AiConversationSearchEntitiesToolCallResultEntities; } /** * AiConversationGetSlackConversationHistoryToolCall model * * @param request - function to call the graphql client * @param data - L.AiConversationGetSlackConversationHistoryToolCallFragment response data */ declare class AiConversationGetSlackConversationHistoryToolCall extends Request { constructor(request: LinearRequest, data: AiConversationGetSlackConversationHistoryToolCallFragment); /** The arguments of the tool call. */ rawArgs?: Record | null; /** The result of the tool call. */ rawResult?: Record | null; displayInfo: AiConversationToolDisplayInfo; /** The name of the tool that was called. */ name: AiConversationTool; } /** * AiConversationHandoffToCodingSessionToolCall model * * @param request - function to call the graphql client * @param data - L.AiConversationHandoffToCodingSessionToolCallFragment response data */ declare class AiConversationHandoffToCodingSessionToolCall extends Request { constructor(request: LinearRequest, data: AiConversationHandoffToCodingSessionToolCallFragment); /** The arguments of the tool call. */ rawArgs?: Record | null; /** The result of the tool call. */ rawResult?: Record | null; /** The arguments to the tool call. */ args?: AiConversationHandoffToCodingSessionToolCallArgs | null; displayInfo: AiConversationToolDisplayInfo; /** The name of the tool that was called. */ name: AiConversationTool; } /** * AiConversationHandoffToCodingSessionToolCallArgs model * * @param request - function to call the graphql client * @param data - L.AiConversationHandoffToCodingSessionToolCallArgsFragment response data */ declare class AiConversationHandoffToCodingSessionToolCallArgs extends Request { constructor(request: LinearRequest, data: AiConversationHandoffToCodingSessionToolCallArgsFragment); instructions?: string | null; entity: AiConversationSearchEntitiesToolCallResultEntities; } /** * AiConversationInvokeMcpToolToolCall model * * @param request - function to call the graphql client * @param data - L.AiConversationInvokeMcpToolToolCallFragment response data */ declare class AiConversationInvokeMcpToolToolCall extends Request { constructor(request: LinearRequest, data: AiConversationInvokeMcpToolToolCallFragment); /** The arguments of the tool call. */ rawArgs?: Record | null; /** The result of the tool call. */ rawResult?: Record | null; /** The arguments to the tool call. */ args?: AiConversationInvokeMcpToolToolCallArgs | null; displayInfo: AiConversationToolDisplayInfo; /** The name of the tool that was called. */ name: AiConversationTool; } /** * AiConversationInvokeMcpToolToolCallArgs model * * @param request - function to call the graphql client * @param data - L.AiConversationInvokeMcpToolToolCallArgsFragment response data */ declare class AiConversationInvokeMcpToolToolCallArgs extends Request { constructor(request: LinearRequest, data: AiConversationInvokeMcpToolToolCallArgsFragment); server: AiConversationInvokeMcpToolToolCallArgsServer; tool: AiConversationInvokeMcpToolToolCallArgsTool; } /** * AiConversationInvokeMcpToolToolCallArgsServer model * * @param request - function to call the graphql client * @param data - L.AiConversationInvokeMcpToolToolCallArgsServerFragment response data */ declare class AiConversationInvokeMcpToolToolCallArgsServer extends Request { constructor(request: LinearRequest, data: AiConversationInvokeMcpToolToolCallArgsServerFragment); integrationId: string; name: string; title?: string | null; } /** * AiConversationInvokeMcpToolToolCallArgsTool model * * @param request - function to call the graphql client * @param data - L.AiConversationInvokeMcpToolToolCallArgsToolFragment response data */ declare class AiConversationInvokeMcpToolToolCallArgsTool extends Request { constructor(request: LinearRequest, data: AiConversationInvokeMcpToolToolCallArgsToolFragment); name: string; title?: string | null; } /** * AiConversationNavigateToPageToolCall model * * @param request - function to call the graphql client * @param data - L.AiConversationNavigateToPageToolCallFragment response data */ declare class AiConversationNavigateToPageToolCall extends Request { constructor(request: LinearRequest, data: AiConversationNavigateToPageToolCallFragment); /** The arguments of the tool call. */ rawArgs?: Record | null; /** The result of the tool call. */ rawResult?: Record | null; /** The arguments to the tool call. */ args?: AiConversationNavigateToPageToolCallArgs | null; displayInfo: AiConversationToolDisplayInfo; /** The result of the tool call. */ result?: AiConversationNavigateToPageToolCallResult | null; /** The name of the tool that was called. */ name: AiConversationTool; } /** * AiConversationNavigateToPageToolCallArgs model * * @param request - function to call the graphql client * @param data - L.AiConversationNavigateToPageToolCallArgsFragment response data */ declare class AiConversationNavigateToPageToolCallArgs extends Request { constructor(request: LinearRequest, data: AiConversationNavigateToPageToolCallArgsFragment); entities: AiConversationNavigateToPageToolCallArgsEntities[]; } /** * AiConversationNavigateToPageToolCallArgsEntities model * * @param request - function to call the graphql client * @param data - L.AiConversationNavigateToPageToolCallArgsEntitiesFragment response data */ declare class AiConversationNavigateToPageToolCallArgsEntities extends Request { constructor(request: LinearRequest, data: AiConversationNavigateToPageToolCallArgsEntitiesFragment); entityType: string; uuid: string; } /** * AiConversationNavigateToPageToolCallResult model * * @param request - function to call the graphql client * @param data - L.AiConversationNavigateToPageToolCallResultFragment response data */ declare class AiConversationNavigateToPageToolCallResult extends Request { constructor(request: LinearRequest, data: AiConversationNavigateToPageToolCallResultFragment); urls: string[]; } /** * Metadata about a part in an AI conversation. * * @param request - function to call the graphql client * @param data - L.AiConversationPartMetadataFragment response data */ declare class AiConversationPartMetadata extends Request { constructor(request: LinearRequest, data: AiConversationPartMetadataFragment); /** The time when the part ended, as an ISO 8601 string. */ endedAt?: string | null; /** The eval log ID of the part. */ evalLogId?: string | null; /** AI feedback state for this part. */ feedback?: Scalars["JSONObject"] | null; /** The time when the part started, as an ISO 8601 string. */ startedAt?: string | null; /** The turn ID of the part. */ turnId: string; /** The phase during which the part was generated. */ phase?: AiConversationPartPhase | null; } /** * A prompt part in an AI conversation. * * @param request - function to call the graphql client * @param data - L.AiConversationPromptPartFragment response data */ declare class AiConversationPromptPart extends Request { private _user?; constructor(request: LinearRequest, data: AiConversationPromptPartFragment); /** The Markdown body of the prompt part. */ body: string; /** The data of the prompt part. */ bodyData: Scalars["JSONObject"]; /** The ID of the part. */ id: string; /** The metadata of the part. */ metadata: AiConversationPartMetadata; /** The type of the part. */ type: AiConversationPartType; /** The user who created the prompt part. */ get user(): LinearFetch | undefined; /** The ID of user who created the prompt part. */ get userId(): string | undefined; } /** * AiConversationQueryActivityToolCall model * * @param request - function to call the graphql client * @param data - L.AiConversationQueryActivityToolCallFragment response data */ declare class AiConversationQueryActivityToolCall extends Request { constructor(request: LinearRequest, data: AiConversationQueryActivityToolCallFragment); /** The arguments of the tool call. */ rawArgs?: Record | null; /** The result of the tool call. */ rawResult?: Record | null; /** The arguments to the tool call. */ args?: AiConversationQueryActivityToolCallArgs | null; displayInfo: AiConversationToolDisplayInfo; /** The name of the tool that was called. */ name: AiConversationTool; } /** * AiConversationQueryActivityToolCallArgs model * * @param request - function to call the graphql client * @param data - L.AiConversationQueryActivityToolCallArgsFragment response data */ declare class AiConversationQueryActivityToolCallArgs extends Request { constructor(request: LinearRequest, data: AiConversationQueryActivityToolCallArgsFragment); entities?: AiConversationSearchEntitiesToolCallResultEntities[] | null; } /** * AiConversationQueryUpdatesToolCall model * * @param request - function to call the graphql client * @param data - L.AiConversationQueryUpdatesToolCallFragment response data */ declare class AiConversationQueryUpdatesToolCall extends Request { constructor(request: LinearRequest, data: AiConversationQueryUpdatesToolCallFragment); /** The arguments of the tool call. */ rawArgs?: Record | null; /** The result of the tool call. */ rawResult?: Record | null; /** The arguments to the tool call. */ args?: AiConversationQueryUpdatesToolCallArgs | null; displayInfo: AiConversationToolDisplayInfo; /** The name of the tool that was called. */ name: AiConversationTool; } /** * AiConversationQueryUpdatesToolCallArgs model * * @param request - function to call the graphql client * @param data - L.AiConversationQueryUpdatesToolCallArgsFragment response data */ declare class AiConversationQueryUpdatesToolCallArgs extends Request { constructor(request: LinearRequest, data: AiConversationQueryUpdatesToolCallArgsFragment); entity?: AiConversationSearchEntitiesToolCallResultEntities | null; updateType: AiConversationQueryUpdatesToolCallArgsUpdateType; } /** * AiConversationQueryViewToolCall model * * @param request - function to call the graphql client * @param data - L.AiConversationQueryViewToolCallFragment response data */ declare class AiConversationQueryViewToolCall extends Request { constructor(request: LinearRequest, data: AiConversationQueryViewToolCallFragment); /** The arguments of the tool call. */ rawArgs?: Record | null; /** The result of the tool call. */ rawResult?: Record | null; /** The arguments to the tool call. */ args?: AiConversationQueryViewToolCallArgs | null; displayInfo: AiConversationToolDisplayInfo; /** The name of the tool that was called. */ name: AiConversationTool; } /** * AiConversationQueryViewToolCallArgs model * * @param request - function to call the graphql client * @param data - L.AiConversationQueryViewToolCallArgsFragment response data */ declare class AiConversationQueryViewToolCallArgs extends Request { constructor(request: LinearRequest, data: AiConversationQueryViewToolCallArgsFragment); filter?: string | null; view: AiConversationQueryViewToolCallArgsView; mode: AiConversationQueryViewToolCallArgsMode; } /** * AiConversationQueryViewToolCallArgsView model * * @param request - function to call the graphql client * @param data - L.AiConversationQueryViewToolCallArgsViewFragment response data */ declare class AiConversationQueryViewToolCallArgsView extends Request { constructor(request: LinearRequest, data: AiConversationQueryViewToolCallArgsViewFragment); predefinedView?: string | null; type: string; group?: AiConversationSearchEntitiesToolCallResultEntities | null; } /** * A reasoning part in an AI conversation. * * @param request - function to call the graphql client * @param data - L.AiConversationReasoningPartFragment response data */ declare class AiConversationReasoningPart extends Request { constructor(request: LinearRequest, data: AiConversationReasoningPartFragment); /** The Markdown body of the reasoning part. */ body: string; /** The data of the reasoning part. */ bodyData: Scalars["JSONObject"]; /** The ID of the part. */ id: string; /** The title of the reasoning part. */ title?: string | null; /** The metadata of the part. */ metadata: AiConversationPartMetadata; /** The type of the part. */ type: AiConversationPartType; } /** * AiConversationResearchToolCall model * * @param request - function to call the graphql client * @param data - L.AiConversationResearchToolCallFragment response data */ declare class AiConversationResearchToolCall extends Request { constructor(request: LinearRequest, data: AiConversationResearchToolCallFragment); /** The arguments of the tool call. */ rawArgs?: Record | null; /** The result of the tool call. */ rawResult?: Record | null; /** The arguments to the tool call. */ args?: AiConversationResearchToolCallArgs | null; displayInfo: AiConversationToolDisplayInfo; /** The result of the tool call. */ result?: AiConversationResearchToolCallResult | null; /** The name of the tool that was called. */ name: AiConversationTool; } /** * AiConversationResearchToolCallArgs model * * @param request - function to call the graphql client * @param data - L.AiConversationResearchToolCallArgsFragment response data */ declare class AiConversationResearchToolCallArgs extends Request { constructor(request: LinearRequest, data: AiConversationResearchToolCallArgsFragment); context: string; query: string; subjects?: AiConversationSearchEntitiesToolCallResultEntities[] | null; } /** * AiConversationResearchToolCallResult model * * @param request - function to call the graphql client * @param data - L.AiConversationResearchToolCallResultFragment response data */ declare class AiConversationResearchToolCallResult extends Request { constructor(request: LinearRequest, data: AiConversationResearchToolCallResultFragment); progressId?: string | null; } /** * AiConversationRestoreEntityToolCall model * * @param request - function to call the graphql client * @param data - L.AiConversationRestoreEntityToolCallFragment response data */ declare class AiConversationRestoreEntityToolCall extends Request { constructor(request: LinearRequest, data: AiConversationRestoreEntityToolCallFragment); /** The arguments of the tool call. */ rawArgs?: Record | null; /** The result of the tool call. */ rawResult?: Record | null; /** The arguments to the tool call. */ args?: AiConversationRestoreEntityToolCallArgs | null; displayInfo: AiConversationToolDisplayInfo; /** The name of the tool that was called. */ name: AiConversationTool; } /** * AiConversationRestoreEntityToolCallArgs model * * @param request - function to call the graphql client * @param data - L.AiConversationRestoreEntityToolCallArgsFragment response data */ declare class AiConversationRestoreEntityToolCallArgs extends Request { constructor(request: LinearRequest, data: AiConversationRestoreEntityToolCallArgsFragment); entity: AiConversationSearchEntitiesToolCallResultEntities; } /** * AiConversationRetrieveEntitiesToolCall model * * @param request - function to call the graphql client * @param data - L.AiConversationRetrieveEntitiesToolCallFragment response data */ declare class AiConversationRetrieveEntitiesToolCall extends Request { constructor(request: LinearRequest, data: AiConversationRetrieveEntitiesToolCallFragment); /** The arguments of the tool call. */ rawArgs?: Record | null; /** The result of the tool call. */ rawResult?: Record | null; /** The arguments to the tool call. */ args?: AiConversationRetrieveEntitiesToolCallArgs | null; displayInfo: AiConversationToolDisplayInfo; /** The name of the tool that was called. */ name: AiConversationTool; } /** * AiConversationRetrieveEntitiesToolCallArgs model * * @param request - function to call the graphql client * @param data - L.AiConversationRetrieveEntitiesToolCallArgsFragment response data */ declare class AiConversationRetrieveEntitiesToolCallArgs extends Request { constructor(request: LinearRequest, data: AiConversationRetrieveEntitiesToolCallArgsFragment); entities: AiConversationSearchEntitiesToolCallResultEntities[]; } /** * AiConversationRetryPullRequestCheckToolCall model * * @param request - function to call the graphql client * @param data - L.AiConversationRetryPullRequestCheckToolCallFragment response data */ declare class AiConversationRetryPullRequestCheckToolCall extends Request { constructor(request: LinearRequest, data: AiConversationRetryPullRequestCheckToolCallFragment); /** The arguments of the tool call. */ rawArgs?: Record | null; /** The result of the tool call. */ rawResult?: Record | null; /** The arguments to the tool call. */ args?: AiConversationRetryPullRequestCheckToolCallArgs | null; displayInfo: AiConversationToolDisplayInfo; /** The name of the tool that was called. */ name: AiConversationTool; } /** * AiConversationRetryPullRequestCheckToolCallArgs model * * @param request - function to call the graphql client * @param data - L.AiConversationRetryPullRequestCheckToolCallArgsFragment response data */ declare class AiConversationRetryPullRequestCheckToolCallArgs extends Request { constructor(request: LinearRequest, data: AiConversationRetryPullRequestCheckToolCallArgsFragment); checkName: string; workflowName?: string | null; entity: AiConversationSearchEntitiesToolCallResultEntities; } /** * AiConversationSearchDocumentationToolCall model * * @param request - function to call the graphql client * @param data - L.AiConversationSearchDocumentationToolCallFragment response data */ declare class AiConversationSearchDocumentationToolCall extends Request { constructor(request: LinearRequest, data: AiConversationSearchDocumentationToolCallFragment); /** The arguments of the tool call. */ rawArgs?: Record | null; /** The result of the tool call. */ rawResult?: Record | null; displayInfo: AiConversationToolDisplayInfo; /** The name of the tool that was called. */ name: AiConversationTool; } /** * AiConversationSearchEntitiesToolCall model * * @param request - function to call the graphql client * @param data - L.AiConversationSearchEntitiesToolCallFragment response data */ declare class AiConversationSearchEntitiesToolCall extends Request { constructor(request: LinearRequest, data: AiConversationSearchEntitiesToolCallFragment); /** The arguments of the tool call. */ rawArgs?: Record | null; /** The result of the tool call. */ rawResult?: Record | null; /** The arguments to the tool call. */ args?: AiConversationSearchEntitiesToolCallArgs | null; displayInfo: AiConversationToolDisplayInfo; /** The result of the tool call. */ result?: AiConversationSearchEntitiesToolCallResult | null; /** The name of the tool that was called. */ name: AiConversationTool; } /** * AiConversationSearchEntitiesToolCallArgs model * * @param request - function to call the graphql client * @param data - L.AiConversationSearchEntitiesToolCallArgsFragment response data */ declare class AiConversationSearchEntitiesToolCallArgs extends Request { constructor(request: LinearRequest, data: AiConversationSearchEntitiesToolCallArgsFragment); queries: string[]; type?: string | null; } /** * AiConversationSearchEntitiesToolCallResult model * * @param request - function to call the graphql client * @param data - L.AiConversationSearchEntitiesToolCallResultFragment response data */ declare class AiConversationSearchEntitiesToolCallResult extends Request { constructor(request: LinearRequest, data: AiConversationSearchEntitiesToolCallResultFragment); entities: AiConversationSearchEntitiesToolCallResultEntities[]; } /** * AiConversationSearchEntitiesToolCallResultEntities model * * @param request - function to call the graphql client * @param data - L.AiConversationSearchEntitiesToolCallResultEntitiesFragment response data */ declare class AiConversationSearchEntitiesToolCallResultEntities extends Request { constructor(request: LinearRequest, data: AiConversationSearchEntitiesToolCallResultEntitiesFragment); id: string; type: string; } /** * AiConversationSubscribeToEventToolCall model * * @param request - function to call the graphql client * @param data - L.AiConversationSubscribeToEventToolCallFragment response data */ declare class AiConversationSubscribeToEventToolCall extends Request { constructor(request: LinearRequest, data: AiConversationSubscribeToEventToolCallFragment); /** The arguments of the tool call. */ rawArgs?: Record | null; /** The result of the tool call. */ rawResult?: Record | null; /** The arguments to the tool call. */ args?: AiConversationSubscribeToEventToolCallArgs | null; displayInfo: AiConversationToolDisplayInfo; /** The name of the tool that was called. */ name: AiConversationTool; } /** * AiConversationSubscribeToEventToolCallArgs model * * @param request - function to call the graphql client * @param data - L.AiConversationSubscribeToEventToolCallArgsFragment response data */ declare class AiConversationSubscribeToEventToolCallArgs extends Request { constructor(request: LinearRequest, data: AiConversationSubscribeToEventToolCallArgsFragment); endsAt?: string | null; message?: string | null; subscriptionId?: string | null; kind?: AiConversationSubscribeToEventToolCallArgsKind | null; type: AiConversationSubscribeToEventToolCallArgsType; } /** * AiConversationSuggestValuesToolCall model * * @param request - function to call the graphql client * @param data - L.AiConversationSuggestValuesToolCallFragment response data */ declare class AiConversationSuggestValuesToolCall extends Request { constructor(request: LinearRequest, data: AiConversationSuggestValuesToolCallFragment); /** The arguments of the tool call. */ rawArgs?: Record | null; /** The result of the tool call. */ rawResult?: Record | null; /** The arguments to the tool call. */ args?: AiConversationSuggestValuesToolCallArgs | null; displayInfo: AiConversationToolDisplayInfo; /** The name of the tool that was called. */ name: AiConversationTool; } /** * AiConversationSuggestValuesToolCallArgs model * * @param request - function to call the graphql client * @param data - L.AiConversationSuggestValuesToolCallArgsFragment response data */ declare class AiConversationSuggestValuesToolCallArgs extends Request { constructor(request: LinearRequest, data: AiConversationSuggestValuesToolCallArgsFragment); field: string; query?: string | null; } /** * A text part in an AI conversation. * * @param request - function to call the graphql client * @param data - L.AiConversationTextPartFragment response data */ declare class AiConversationTextPart extends Request { constructor(request: LinearRequest, data: AiConversationTextPartFragment); /** The Markdown body of the text part. */ body: string; /** The data of the text part. */ bodyData: Scalars["JSONObject"]; /** The ID of the part. */ id: string; /** The metadata of the part. */ metadata: AiConversationPartMetadata; /** The type of the part. */ type: AiConversationPartType; } /** * A tool call part in an AI conversation. * * @param request - function to call the graphql client * @param data - L.AiConversationToolCallPartFragment response data */ declare class AiConversationToolCallPart extends Request { constructor(request: LinearRequest, data: AiConversationToolCallPartFragment); /** The ID of the part. */ id: string; /** The metadata of the part. */ metadata: AiConversationPartMetadata; /** The type of the part. */ type: AiConversationPartType; /** The tool call part. */ toolCall: AiConversationToolCallPartFragment["toolCall"]; } /** * AiConversationToolDisplayInfo model * * @param request - function to call the graphql client * @param data - L.AiConversationToolDisplayInfoFragment response data */ declare class AiConversationToolDisplayInfo extends Request { constructor(request: LinearRequest, data: AiConversationToolDisplayInfoFragment); activeLabel: string; detail?: string | null; icon: string; inactiveLabel: string; result?: string | null; } /** * AiConversationTranscribeMediaToolCall model * * @param request - function to call the graphql client * @param data - L.AiConversationTranscribeMediaToolCallFragment response data */ declare class AiConversationTranscribeMediaToolCall extends Request { constructor(request: LinearRequest, data: AiConversationTranscribeMediaToolCallFragment); /** The arguments of the tool call. */ rawArgs?: Record | null; /** The result of the tool call. */ rawResult?: Record | null; displayInfo: AiConversationToolDisplayInfo; /** The name of the tool that was called. */ name: AiConversationTool; } /** * AiConversationTranscribeVideoToolCall model * * @param request - function to call the graphql client * @param data - L.AiConversationTranscribeVideoToolCallFragment response data */ declare class AiConversationTranscribeVideoToolCall extends Request { constructor(request: LinearRequest, data: AiConversationTranscribeVideoToolCallFragment); /** The arguments of the tool call. */ rawArgs?: Record | null; /** The result of the tool call. */ rawResult?: Record | null; displayInfo: AiConversationToolDisplayInfo; /** The name of the tool that was called. */ name: AiConversationTool; } /** * AiConversationUnsubscribeFromEventToolCall model * * @param request - function to call the graphql client * @param data - L.AiConversationUnsubscribeFromEventToolCallFragment response data */ declare class AiConversationUnsubscribeFromEventToolCall extends Request { constructor(request: LinearRequest, data: AiConversationUnsubscribeFromEventToolCallFragment); /** The arguments of the tool call. */ rawArgs?: Record | null; /** The result of the tool call. */ rawResult?: Record | null; /** The arguments to the tool call. */ args?: AiConversationUnsubscribeFromEventToolCallArgs | null; displayInfo: AiConversationToolDisplayInfo; /** The name of the tool that was called. */ name: AiConversationTool; } /** * AiConversationUnsubscribeFromEventToolCallArgs model * * @param request - function to call the graphql client * @param data - L.AiConversationUnsubscribeFromEventToolCallArgsFragment response data */ declare class AiConversationUnsubscribeFromEventToolCallArgs extends Request { constructor(request: LinearRequest, data: AiConversationUnsubscribeFromEventToolCallArgsFragment); message?: string | null; subscriptionId: string; } /** * AiConversationUpdateEntityToolCall model * * @param request - function to call the graphql client * @param data - L.AiConversationUpdateEntityToolCallFragment response data */ declare class AiConversationUpdateEntityToolCall extends Request { constructor(request: LinearRequest, data: AiConversationUpdateEntityToolCallFragment); /** The arguments of the tool call. */ rawArgs?: Record | null; /** The result of the tool call. */ rawResult?: Record | null; /** The arguments to the tool call. */ args?: AiConversationUpdateEntityToolCallArgs | null; displayInfo: AiConversationToolDisplayInfo; /** The name of the tool that was called. */ name: AiConversationTool; } /** * AiConversationUpdateEntityToolCallArgs model * * @param request - function to call the graphql client * @param data - L.AiConversationUpdateEntityToolCallArgsFragment response data */ declare class AiConversationUpdateEntityToolCallArgs extends Request { constructor(request: LinearRequest, data: AiConversationUpdateEntityToolCallArgsFragment); entities?: AiConversationSearchEntitiesToolCallResultEntities[] | null; entity?: AiConversationSearchEntitiesToolCallResultEntities | null; } /** * AiConversationWebSearchToolCall model * * @param request - function to call the graphql client * @param data - L.AiConversationWebSearchToolCallFragment response data */ declare class AiConversationWebSearchToolCall extends Request { constructor(request: LinearRequest, data: AiConversationWebSearchToolCallFragment); /** The arguments of the tool call. */ rawArgs?: Record | null; /** The result of the tool call. */ rawResult?: Record | null; /** The arguments to the tool call. */ args?: AiConversationWebSearchToolCallArgs | null; displayInfo: AiConversationToolDisplayInfo; /** The name of the tool that was called. */ name: AiConversationTool; } /** * AiConversationWebSearchToolCallArgs model * * @param request - function to call the graphql client * @param data - L.AiConversationWebSearchToolCallArgsFragment response data */ declare class AiConversationWebSearchToolCallArgs extends Request { constructor(request: LinearRequest, data: AiConversationWebSearchToolCallArgsFragment); query?: string | null; url?: string | null; } /** * AiConversationWidgetDisplayInfo model * * @param request - function to call the graphql client * @param data - L.AiConversationWidgetDisplayInfoFragment response data */ declare class AiConversationWidgetDisplayInfo extends Request { constructor(request: LinearRequest, data: AiConversationWidgetDisplayInfoFragment); /** The Markdown representation of the widget content. */ body: string; /** The ProseMirror data representation of the widget content. */ bodyData: Scalars["JSONObject"]; } /** * A widget part in an AI conversation. * * @param request - function to call the graphql client * @param data - L.AiConversationWidgetPartFragment response data */ declare class AiConversationWidgetPart extends Request { constructor(request: LinearRequest, data: AiConversationWidgetPartFragment); /** The ID of the part. */ id: string; /** The metadata of the part. */ metadata: AiConversationPartMetadata; /** The type of the part. */ type: AiConversationPartType; /** The widget. */ widget: AiConversationWidgetPartFragment["widget"]; } /** * Custom rules that guide AI behavior for a specific scope. Rules can be defined at the workspace level, team level, integration level, or user level, and are applied hierarchically (workspace rules first, then parent team rules, then team rules). Rules contain structured content that instructs the AI assistant on how to handle specific types of prompts, such as coding agent guidance or triage intelligence configuration. * * @param request - function to call the graphql client * @param data - L.AiPromptRulesFragment response data */ declare class AiPromptRules extends Request { private _updatedBy?; constructor(request: LinearRequest, data: AiPromptRulesFragment); /** The time at which the entity was archived. Null if the entity has not been archived. */ archivedAt?: Date | null; /** The time at which the entity was created. */ createdAt: Date; /** The unique identifier of the entity. */ id: string; /** * The last time at which the entity was meaningfully updated. This is the same as the creation time if the entity hasn't * been updated after creation. */ updatedAt: Date; /** The user who last updated the AI prompt rules. */ get updatedBy(): LinearFetch | undefined; /** The ID of user who last updated the ai prompt rules. */ get updatedById(): string | undefined; } /** * Payload for app user notification webhook events. * * @param data - L.AppUserNotificationWebhookPayloadFragment response data */ declare class AppUserNotificationWebhookPayload { constructor(data: AppUserNotificationWebhookPayloadFragment); /** The type of action that triggered the webhook. */ action: string; /** ID of the app user the notification is for. */ appUserId: string; /** The time the payload was created. */ createdAt: Date; /** ID of the OAuth client the app user is tied to. */ oauthClientId: string; /** ID of the organization for which the webhook belongs to. */ organizationId: string; /** The type of resource. */ type: string; /** The ID of the webhook that sent this event. */ webhookId: string; /** Unix timestamp in milliseconds when the webhook was sent. */ webhookTimestamp: number; } /** * Payload for app user team access change webhook events. * * @param data - L.AppUserTeamAccessChangedWebhookPayloadFragment response data */ declare class AppUserTeamAccessChangedWebhookPayload { constructor(data: AppUserTeamAccessChangedWebhookPayloadFragment); /** The type of action that triggered the webhook. */ action: string; /** IDs of the teams the app user was added to. */ addedTeamIds: string[]; /** ID of the app user the notification is for. */ appUserId: string; /** Whether the app user can access all public teams. */ canAccessAllPublicTeams: boolean; /** The time the payload was created. */ createdAt: Date; /** ID of the OAuth client the app user is tied to. */ oauthClientId: string; /** ID of the organization for which the webhook belongs to. */ organizationId: string; /** IDs of the teams the app user was removed from. */ removedTeamIds: string[]; /** The type of resource. */ type: string; /** The ID of the webhook that sent this event. */ webhookId: string; /** Unix timestamp in milliseconds when the webhook was sent. */ webhookTimestamp: number; } /** * Public-facing information about an OAuth application. Contains only the fields that are safe to display to users during the authorization flow, excluding sensitive data like client secrets and internal configuration. * * @param request - function to call the graphql client * @param data - L.ApplicationFragment response data */ declare class Application extends Request { constructor(request: LinearRequest, data: ApplicationFragment); /** OAuth application's client ID. */ clientId: string; /** Information about the application. */ description?: string | null; /** Name of the developer. */ developer: string; /** URL of the developer's website, homepage, or documentation. */ developerUrl: string; /** OAuth application's ID. */ id: string; /** Image of the application. */ imageUrl?: string | null; /** Application name. */ name: string; } /** * A generic payload return from entity archive or deletion mutations. * * @param request - function to call the graphql client * @param data - L.ArchivePayloadFragment response data */ declare class ArchivePayload extends Request { constructor(request: LinearRequest, data: ArchivePayloadFragment); /** The identifier of the last sync operation. */ lastSyncId: number; /** Whether the operation was successful. */ success: boolean; } /** * Contains requested archived model objects. * * @param request - function to call the graphql client * @param data - L.ArchiveResponseFragment response data */ declare class ArchiveResponse extends Request { constructor(request: LinearRequest, data: ArchiveResponseFragment); /** A JSON serialized collection of model objects loaded from the archive */ archive: string; /** The version of the remote database. Incremented by 1 for each migration run on the database. */ databaseVersion: number; /** Whether the dependencies for the model objects are included in the archive. */ includesDependencies: string[]; /** The total number of entities in the archive. */ totalCount: number; } /** * AsksChannelConnectPayload model * * @param request - function to call the graphql client * @param data - L.AsksChannelConnectPayloadFragment response data */ declare class AsksChannelConnectPayload extends Request { private _integration?; constructor(request: LinearRequest, data: AsksChannelConnectPayloadFragment); /** Whether the bot needs to be manually added to the channel. */ addBot: boolean; /** The identifier of the last sync operation. */ lastSyncId: number; /** Whether the operation was successful. */ success: boolean; /** GitHub-specific details for the operation. Populated by GitHub-related mutations only. */ gitHub?: GitHubIntegrationConnectDetails | null; /** The new Asks Slack channel mapping for the connected channel. */ mapping: SlackChannelNameMapping; /** The integration that was created or updated. */ get integration(): LinearFetch | undefined; /** The ID of integration that was created or updated. */ get integrationId(): string | undefined; } /** * An attachment linking external content to an issue. Attachments represent connections to external resources such as GitHub pull requests, Slack messages, Zendesk tickets, Figma files, Sentry issues, Intercom conversations, and plain URLs. Each attachment has a title and subtitle displayed in the Linear UI, a URL serving as both the link destination and unique identifier per issue, and optional metadata specific to the source integration. * * @param request - function to call the graphql client * @param data - L.AttachmentFragment response data */ declare class Attachment extends Request { private _creator?; private _externalUserCreator?; private _issue; private _originalIssue?; constructor(request: LinearRequest, data: AttachmentFragment); /** The time at which the entity was archived. Null if the entity has not been archived. */ archivedAt?: Date | null; /** The body data of the attachment, if any. */ bodyData?: string | null; /** The time at which the entity was created. */ createdAt: Date; /** Whether attachments from the same source application should be visually grouped together in the Linear issue detail view. */ groupBySource: boolean; /** The unique identifier of the entity. */ id: string; /** Integration-specific metadata for this attachment. The schema varies by source type and may include fields such as pull request status, review counts, commit information, ticket status, or other data from the external system. */ metadata: Scalars["JSONObject"]; /** Information about the source which created the attachment. */ source?: Scalars["JSONObject"] | null; /** The source type of the attachment, derived from the source metadata. Returns the integration type (e.g., 'github', 'slack', 'zendesk') or 'unknown' if no source is set. */ sourceType?: string | null; /** Content for the subtitle line in the Linear attachment widget. */ subtitle?: string | null; /** Content for the title line in the Linear attachment widget. */ title: string; /** * The last time at which the entity was meaningfully updated. This is the same as the creation time if the entity hasn't * been updated after creation. */ updatedAt: Date; /** The URL of the external resource this attachment links to. Also serves as a unique identifier for the attachment within an issue; no two attachments on the same issue can share the same URL. */ url: string; /** The creator of the attachment. */ get creator(): LinearFetch | undefined; /** The ID of creator of the attachment. */ get creatorId(): string | undefined; /** The non-Linear user who created the attachment. */ get externalUserCreator(): LinearFetch | undefined; /** The ID of non-linear user who created the attachment. */ get externalUserCreatorId(): string | undefined; /** The issue this attachment belongs to. */ get issue(): LinearFetch | undefined; /** The ID of issue this attachment belongs to. */ get issueId(): string | undefined; /** The issue this attachment was originally created on. Null if the attachment hasn't been moved. */ get originalIssue(): LinearFetch | undefined; /** The ID of issue this attachment was originally created on. null if the attachment hasn't been moved. */ get originalIssueId(): string | undefined; /** Creates a new attachment, or updates existing if the same `url` and `issueId` is used. To create an integration-aware attachment, use the integration-specific mutations such as `attachmentLinkZendesk`, `attachmentLinkSlack`, or `attachmentLinkURL` instead. */ create(input: AttachmentCreateInput): LinearFetch; /** Deletes an issue attachment. */ delete(): LinearFetch; /** Updates an existing issue attachment. */ update(input: AttachmentUpdateInput): LinearFetch; } /** * AttachmentConnection model * * @param request - function to call the graphql client * @param fetch - function to trigger a refetch of this AttachmentConnection model * @param data - AttachmentConnection response data */ declare class AttachmentConnection extends Connection { constructor(request: LinearRequest, fetch: (connection?: LinearConnectionVariables) => LinearFetch | undefined>, data: AttachmentConnectionFragment); } /** * The result of an attachment mutation. * * @param request - function to call the graphql client * @param data - L.AttachmentPayloadFragment response data */ declare class AttachmentPayload extends Request { private _attachment; constructor(request: LinearRequest, data: AttachmentPayloadFragment); /** The identifier of the last sync operation. */ lastSyncId: number; /** Whether the operation was successful. */ success: boolean; /** The issue attachment that was created. */ get attachment(): LinearFetch | undefined; /** The ID of issue attachment that was created. */ get attachmentId(): string | undefined; } /** * The result of an attachment sources query. * * @param request - function to call the graphql client * @param data - L.AttachmentSourcesPayloadFragment response data */ declare class AttachmentSourcesPayload extends Request { constructor(request: LinearRequest, data: AttachmentSourcesPayloadFragment); /** A unique list of all source types used in this workspace. */ sources: Scalars["JSONObject"]; } /** * Payload for an attachment webhook. * * @param data - L.AttachmentWebhookPayloadFragment response data */ declare class AttachmentWebhookPayload { constructor(data: AttachmentWebhookPayloadFragment); /** The time at which the entity was archived. */ archivedAt?: string | null; /** The time at which the entity was created. */ createdAt: string; /** The ID of the creator of the attachment. */ creatorId?: string | null; /** The ID of the non-Linear user who created the attachment. */ externalUserCreatorId?: string | null; /** Whether attachments for the same source application should be grouped in the Linear UI. */ groupBySource: boolean; /** The ID of the entity. */ id: string; /** The ID of the issue this attachment belongs to. */ issueId: string; /** Custom metadata related to the attachment. */ metadata: Scalars["JSONObject"]; /** The ID of the issue this attachment belonged to originally. */ originalIssueId?: string | null; /** Information about the source which created the attachment. */ source?: Scalars["JSONObject"] | null; /** The source type of the attachment. */ sourceType?: string | null; /** Optional subtitle of the attachment. */ subtitle?: string | null; /** The title of the attachment. */ title: string; /** The time at which the entity was updated. */ updatedAt: string; /** The URL of the attachment. */ url: string; } /** * A workspace audit log entry recording a security or compliance-relevant action. Audit entries capture who performed an action, when, from what IP address and country, and include type-specific metadata. The audit log is partitioned by time for performance and is accessible only to workspace administrators. Examples of audited actions include user authentication events, permission changes, data exports, and workspace setting modifications. * * @param request - function to call the graphql client * @param data - L.AuditEntryFragment response data */ declare class AuditEntry extends Request { private _actor?; constructor(request: LinearRequest, data: AuditEntryFragment); /** The ID of the user that caused the audit entry to be created. */ actorId?: string | null; /** The time at which the entity was archived. Null if the entity has not been archived. */ archivedAt?: Date | null; /** The ISO 3166-1 alpha-2 country code derived from the request IP address. Null if geo-location could not be determined. */ countryCode?: string | null; /** The time at which the entity was created. */ createdAt: Date; /** The unique identifier of the entity. */ id: string; /** The IP address of the actor at the time the audited action was performed. Null if the IP was not captured. */ ip?: string | null; /** Additional metadata related to the audit entry. */ metadata?: Scalars["JSONObject"] | null; /** Additional information related to the request which performed the action. */ requestInformation?: Scalars["JSONObject"] | null; /** The type of audited action (e.g., user authentication, permission change, data export, setting modification). */ type: string; /** * The last time at which the entity was meaningfully updated. This is the same as the creation time if the entity hasn't * been updated after creation. */ updatedAt: Date; /** The user that caused the audit entry to be created. */ get actor(): LinearFetch | undefined; /** The workspace the audit log belongs to. */ get organization(): LinearFetch; } /** * AuditEntryConnection model * * @param request - function to call the graphql client * @param fetch - function to trigger a refetch of this AuditEntryConnection model * @param data - AuditEntryConnection response data */ declare class AuditEntryConnection extends Connection { constructor(request: LinearRequest, fetch: (connection?: LinearConnectionVariables) => LinearFetch | undefined>, data: AuditEntryConnectionFragment); } /** * AuditEntryType model * * @param request - function to call the graphql client * @param data - L.AuditEntryTypeFragment response data */ declare class AuditEntryType extends Request { constructor(request: LinearRequest, data: AuditEntryTypeFragment); /** Description of the audit entry type. */ description: string; /** The audit entry type. */ type: string; } /** * Payload for an audit entry webhook. * * @param data - L.AuditEntryWebhookPayloadFragment response data */ declare class AuditEntryWebhookPayload { constructor(data: AuditEntryWebhookPayloadFragment); /** The ID of the user that caused the audit entry to be created. */ actorId?: string | null; /** The time at which the entity was archived. */ archivedAt?: string | null; /** Country code of request resulting to audit entry. */ countryCode?: string | null; /** The time at which the entity was created. */ createdAt: string; /** The ID of the entity. */ id: string; /** IP from actor when entry was recorded. */ ip?: string | null; /** Additional metadata related to the audit entry. */ metadata?: Scalars["JSONObject"] | null; /** The ID of the organization that the audit entry belongs to. */ organizationId: string; /** Additional information related to the request which performed the action. */ requestInformation?: Scalars["JSONObject"] | null; /** The type of the audit entry. */ type: string; /** The time at which the entity was updated. */ updatedAt: string; } /** * An identity provider. * * @param request - function to call the graphql client * @param data - L.AuthIdentityProviderFragment response data */ declare class AuthIdentityProvider extends Request { constructor(request: LinearRequest, data: AuthIdentityProviderFragment); /** The time at which the entity was created. */ createdAt: Date; /** Whether the identity provider is the default identity provider migrated from organization level settings. */ defaultMigrated: boolean; /** The unique identifier of the entity. */ id: string; /** The issuer's custom entity ID. */ issuerEntityId?: string | null; /** The SAML priority used to pick default workspace in SAML SP initiated flow, when same domain is claimed for SAML by multiple workspaces. Lower priority value means higher preference. */ priority?: number | null; /** Whether SAML authentication is enabled for organization. */ samlEnabled: boolean; /** Whether SCIM provisioning is enabled for organization. */ scimEnabled: boolean; /** The service provider (Linear) custom entity ID. Defaults to https://auth.linear.app/sso */ spEntityId?: string | null; /** Binding method for authentication call. Can be either `post` (default) or `redirect`. */ ssoBinding?: string | null; /** Sign in endpoint URL for the identity provider. */ ssoEndpoint?: string | null; /** The algorithm of the Signing Certificate. Can be one of `sha1`, `sha256` (default), or `sha512`. */ ssoSignAlgo?: string | null; /** X.509 Signing Certificate in string form. */ ssoSigningCert?: string | null; /** The type of identity provider. */ type: IdentityProviderType; } /** * An organization. Organizations are root-level objects that contain users and teams. * * @param request - function to call the graphql client * @param data - L.AuthOrganizationFragment response data */ declare class AuthOrganization extends Request { constructor(request: LinearRequest, data: AuthOrganizationFragment); /** Allowed authentication providers, empty array means all are allowed */ allowedAuthServices: string[]; /** An approximate count of users, updated once per day. */ approximateUserCount: number; /** Authentication settings for the organization. */ authSettings: Scalars["JSONObject"]; /** The cell the organization is hosted in. */ cell: string; /** The time at which the entity was created. */ createdAt: Date; /** The time at which deletion of the organization was requested. */ deletionRequestedAt?: Date | null; /** Whether the organization is enabled. Used as a superuser tool to lock down the org. */ enabled: boolean; /** Whether to hide other organizations for new users signing up with email domains claimed by this organization. */ hideNonPrimaryOrganizations: boolean; /** The unique identifier of the entity. */ id: string; /** The organization's logo URL. */ logoUrl?: string | null; /** The organization's name. */ name: string; /** Previously used URL keys for the organization (last 3 are kept and redirected). */ previousUrlKeys: string[]; /** The region the organization is hosted in. */ region: string; /** Whether SAML authentication is enabled for organization. */ samlEnabled: boolean; /** Whether SCIM provisioning is enabled for organization. */ scimEnabled: boolean; /** The email domain or URL key for the organization. */ serviceId: string; /** The organization's unique URL key. */ urlKey: string; userCount?: number | null; /** The feature release channel the organization belongs to. */ releaseChannel: ReleaseChannel; } /** * AuthResolverResponse model * * @param request - function to call the graphql client * @param data - L.AuthResolverResponseFragment response data */ declare class AuthResolverResponse extends Request { constructor(request: LinearRequest, data: AuthResolverResponseFragment); /** Should the signup flow allow access for the domain. */ allowDomainAccess?: boolean | null; /** Email for the authenticated account. */ email: string; /** User account ID. */ id: string; /** ID of the organization last accessed by the user. */ lastUsedOrganizationId?: string | null; /** The authentication service used for the current session (e.g., google, email, saml). */ service?: string | null; /** Application token. */ token?: string | null; /** List of organizations allowing this user account to join automatically. */ availableOrganizations?: AuthOrganization[] | null; /** List of organization available to this user account but locked due to the current auth method. */ lockedOrganizations?: AuthOrganization[] | null; /** List of locked users that are locked by login restrictions */ lockedUsers: AuthUser[]; /** List of active users that belong to the user account. */ users: AuthUser[]; } /** * A user that has access to the the resources of an organization. * * @param request - function to call the graphql client * @param data - L.AuthUserFragment response data */ declare class AuthUser extends Request { constructor(request: LinearRequest, data: AuthUserFragment); /** Whether the user is active. */ active: boolean; /** An URL to the user's avatar image. */ avatarUrl?: string | null; /** The time at which the entity was created. */ createdAt: Date; /** The user's display (nick) name. Unique within each organization. */ displayName: string; /** The user's email address. */ email: string; id: string; /** The user's full name. */ name: string; /** The ID of the OAuth client that created the user. */ oauthClientId?: string | null; /** User account ID the user belongs to. */ userAccountId: string; /** Organization the user belongs to. */ organization: AuthOrganization; /** Whether the user is an organization admin or guest on a database level. */ role: UserRoleType; } /** * Information about an active authentication session, including the device, location, and timestamps for when it was created and last used. * * @param request - function to call the graphql client * @param data - L.AuthenticationSessionResponseFragment response data */ declare class AuthenticationSessionResponse extends Request { constructor(request: LinearRequest, data: AuthenticationSessionResponseFragment); /** Used web browser. */ browserType?: string | null; /** Client used for the session */ client?: string | null; /** Country codes of all seen locations. */ countryCodes: string[]; /** The time at which the entity was created. */ createdAt: Date; /** Detailed name of the session including version information, derived from the user agent. */ detailedName: string; id: string; /** IP address. */ ip?: string | null; /** Whether this session is the one used to make the current API request. */ isCurrentSession: boolean; /** When was the session last seen */ lastActiveAt?: Date | null; /** Human readable location */ location?: string | null; /** Location city name. */ locationCity?: string | null; /** Location country name. */ locationCountry?: string | null; /** Location country code. */ locationCountryCode?: string | null; /** Location region code. */ locationRegionCode?: string | null; /** Name of the session, derived from the client and operating system */ name: string; /** Operating system used for the session */ operatingSystem?: string | null; /** Service used for logging in. */ service?: string | null; /** Date when the session was last updated. */ updatedAt: Date; /** Session's user-agent. */ userAgent?: string | null; /** Type of application used to authenticate. */ type: AuthenticationSessionType; } /** * Base fields for all webhook payloads. * * @param data - L.BaseWebhookPayloadFragment response data */ declare class BaseWebhookPayload { constructor(data: BaseWebhookPayloadFragment); /** The time the payload was created. */ createdAt: Date; /** ID of the organization for which the webhook belongs to. */ organizationId: string; /** The ID of the webhook that sent this event. */ webhookId: string; /** Unix timestamp in milliseconds when the webhook was sent. */ webhookTimestamp: number; } /** * A comment associated with an issue, project update, initiative update, document content, post, project, or initiative. Comments support rich text (ProseMirror), emoji reactions, and threaded replies via parentId. Comments can be created by workspace users or by external users through integrations (e.g., Slack, Intercom). Each comment belongs to exactly one parent entity. * * @param request - function to call the graphql client * @param data - L.CommentFragment response data */ declare class Comment extends Request { private _agentSession?; private _externalUser?; private _initiative?; private _initiativeUpdate?; private _issue?; private _parent?; private _project?; private _projectUpdate?; private _resolvingComment?; private _resolvingUser?; private _user?; constructor(request: LinearRequest, data: CommentFragment); /** The time at which the entity was archived. Null if the entity has not been archived. */ archivedAt?: Date | null; /** The comment content in markdown format. This is a derived representation of the canonical bodyData ProseMirror content. */ body: string; /** The time at which the entity was created. */ createdAt: Date; /** The ID of the document content that the comment is associated with. Null if the comment belongs to a different parent entity type. */ documentContentId?: string | null; /** The time the comment was last edited by its author. Null if the comment has not been edited since creation. */ editedAt?: Date | null; /** The unique identifier of the entity. */ id: string; /** The ID of the initiative that the comment is associated with. Null if the comment belongs to a different parent entity type. */ initiativeId?: string | null; /** The ID of the initiative update that the comment is associated with. Null if the comment belongs to a different parent entity type. */ initiativeUpdateId?: string | null; /** The ID of the issue that the comment is associated with. Null if the comment belongs to a different parent entity type. */ issueId?: string | null; /** The ID of the parent comment under which the current comment is nested. Null for top-level comments. */ parentId?: string | null; /** The ID of the project that the comment is associated with. Null if the comment belongs to a different parent entity type. */ projectId?: string | null; /** The ID of the project update that the comment is associated with. Null if the comment belongs to a different parent entity type. */ projectUpdateId?: string | null; /** The text that this comment references, used for inline comments on documents or issue descriptions. Null for standard comments that do not quote specific text. */ quotedText?: string | null; /** Emoji reaction summary for this comment, grouped by emoji type. Each entry contains the emoji name, count, and the IDs of users who reacted. */ reactionData: Scalars["JSONObject"]; /** The time when the comment thread was resolved. Null if the thread is unresolved. */ resolvedAt?: Date | null; /** The ID of the child comment that resolved this thread. Null if the thread is unresolved. */ resolvingCommentId?: string | null; /** * The last time at which the entity was meaningfully updated. This is the same as the creation time if the entity hasn't * been updated after creation. */ updatedAt: Date; /** Comment's URL. */ url: string; /** Reactions associated with the comment. */ reactions: Reaction[]; /** The external services the comment is synced with. */ syncedWith?: ExternalEntityInfo[] | null; /** The bot that created the comment. */ botActor?: ActorBot | null; /** The document content that the comment is associated with. Null if the comment belongs to a different parent entity type. Used for inline comments on documents. */ documentContent?: DocumentContent | null; /** The external thread that the comment is synced with. */ externalThread?: SyncedExternalThread | null; /** Agent session associated with this comment. */ get agentSession(): LinearFetch | undefined; /** The ID of agent session associated with this comment. */ get agentSessionId(): string | undefined; /** The external user who wrote the comment, when the comment was created through an integration such as Slack or Intercom. Null for comments created by workspace users. */ get externalUser(): LinearFetch | undefined; /** The ID of external user who wrote the comment, when the comment was created through an integration such as slack or intercom. null for comments created by workspace users. */ get externalUserId(): string | undefined; /** The initiative that the comment is associated with. Null if the comment belongs to a different parent entity type. */ get initiative(): LinearFetch | undefined; /** The initiative update that the comment is associated with. Null if the comment belongs to a different parent entity type. */ get initiativeUpdate(): LinearFetch | undefined; /** The issue that the comment is associated with. Null if the comment belongs to a different parent entity type. */ get issue(): LinearFetch | undefined; /** The parent comment under which the current comment is nested. Null for top-level comments that are not replies. */ get parent(): LinearFetch | undefined; /** The project that the comment is associated with. Used for project-level discussion threads. Null if the comment belongs to a different parent entity type. */ get project(): LinearFetch | undefined; /** The project update that the comment is associated with. Null if the comment belongs to a different parent entity type. */ get projectUpdate(): LinearFetch | undefined; /** The child comment that resolved this thread. Only set on top-level (parent) comments. Null if the thread is unresolved. */ get resolvingComment(): LinearFetch | undefined; /** The user that resolved the comment thread. Null if the thread has not been resolved or if this is not a top-level comment. */ get resolvingUser(): LinearFetch | undefined; /** The ID of user that resolved the comment thread. null if the thread has not been resolved or if this is not a top-level comment. */ get resolvingUserId(): string | undefined; /** The user who wrote the comment. Null for comments created by integrations or bots without a user association. */ get user(): LinearFetch | undefined; /** The ID of user who wrote the comment. null for comments created by integrations or bots without a user association. */ get userId(): string | undefined; /** The children of the comment. */ children(variables?: Comment_ChildrenQueryVariables): LinearFetch; /** Issues created from this comment. */ createdIssues(variables?: Comment_CreatedIssuesQueryVariables): LinearFetch; /** Creates a new comment. */ create(input: CommentCreateInput): LinearFetch; /** Deletes a comment. */ delete(): LinearFetch; /** Updates a comment. */ update(input: CommentUpdateInput, variables?: Omit): LinearFetch; } /** * Certain properties of a comment. * * @param data - L.CommentChildWebhookPayloadFragment response data */ declare class CommentChildWebhookPayload { constructor(data: CommentChildWebhookPayloadFragment); /** The body of the comment. */ body: string; /** The ID of the document content this comment belongs to. */ documentContentId?: string | null; /** The ID of the comment. */ id: string; /** The ID of the initiative update this comment belongs to. */ initiativeUpdateId?: string | null; /** The ID of the issue this comment belongs to. */ issueId?: string | null; /** The ID of the project update this comment belongs to. */ projectUpdateId?: string | null; /** The ID of the user who created this comment. */ userId?: string | null; } /** * CommentConnection model * * @param request - function to call the graphql client * @param fetch - function to trigger a refetch of this CommentConnection model * @param data - CommentConnection response data */ declare class CommentConnection extends Connection { constructor(request: LinearRequest, fetch: (connection?: LinearConnectionVariables) => LinearFetch | undefined>, data: CommentConnectionFragment); } /** * The result of a comment mutation. * * @param request - function to call the graphql client * @param data - L.CommentPayloadFragment response data */ declare class CommentPayload extends Request { private _comment; constructor(request: LinearRequest, data: CommentPayloadFragment); /** The identifier of the last sync operation. */ lastSyncId: number; /** Whether the operation was successful. */ success: boolean; /** The comment that was created or updated. */ get comment(): LinearFetch | undefined; /** The ID of comment that was created or updated. */ get commentId(): string | undefined; } /** * Payload for a comment webhook. * * @param data - L.CommentWebhookPayloadFragment response data */ declare class CommentWebhookPayload { constructor(data: CommentWebhookPayloadFragment); /** The time at which the entity was archived. */ archivedAt?: string | null; /** The body of the comment. */ body: string; /** The bot actor data for this comment. */ botActor?: string | null; /** The time at which the entity was created. */ createdAt: string; /** The ID of the document content this comment belongs to. */ documentContentId?: string | null; /** When the comment was last edited. */ editedAt?: string | null; /** The ID of the external user who created this comment. */ externalUserId?: string | null; /** The ID of the entity. */ id: string; /** The ID of the initiative update this comment belongs to. */ initiativeUpdateId?: string | null; /** The ID of the issue this comment belongs to. */ issueId?: string | null; /** The ID of the parent comment. */ parentId?: string | null; /** The ID of the post this comment belongs to. */ postId?: string | null; /** The ID of the project update this comment belongs to. */ projectUpdateId?: string | null; /** The quoted text in this comment. */ quotedText?: string | null; /** The reaction data for this comment. */ reactionData: Scalars["JSONObject"]; /** When the comment was resolved. */ resolvedAt?: string | null; /** The ID of the comment that resolved this comment. */ resolvingCommentId?: string | null; /** The ID of the user who resolved this comment. */ resolvingUserId?: string | null; /** The entity this comment is synced with. */ syncedWith?: Scalars["JSONObject"] | null; /** The time at which the entity was updated. */ updatedAt: string; /** The ID of the user who created this comment. */ userId?: string | null; /** The document content for this comment. */ documentContent?: DocumentContentChildWebhookPayload | null; /** The external user who created this comment. */ externalUser?: ExternalUserChildWebhookPayload | null; /** The initiative update this comment belongs to. */ initiativeUpdate?: InitiativeUpdateChildWebhookPayload | null; /** The issue this comment belongs to. */ issue?: IssueChildWebhookPayload | null; /** The parent comment. */ parent?: CommentChildWebhookPayload | null; /** The project update this comment belongs to. */ projectUpdate?: ProjectUpdateChildWebhookPayload | null; /** The user who created this comment. */ user?: UserChildWebhookPayload | null; } /** * Return type for contact mutations. * * @param request - function to call the graphql client * @param data - L.ContactPayloadFragment response data */ declare class ContactPayload extends Request { constructor(request: LinearRequest, data: ContactPayloadFragment); /** Whether the operation was successful. */ success: boolean; } /** * The payload returned by the createCsvExportReport mutation. * * @param request - function to call the graphql client * @param data - L.CreateCsvExportReportPayloadFragment response data */ declare class CreateCsvExportReportPayload extends Request { constructor(request: LinearRequest, data: CreateCsvExportReportPayloadFragment); /** Whether the operation was successful. */ success: boolean; } /** * Payload for custom webhook resource events. * * @param data - L.CustomResourceWebhookPayloadFragment response data */ declare class CustomResourceWebhookPayload { constructor(data: CustomResourceWebhookPayloadFragment); /** The type of action that triggered the webhook. */ action: string; /** The time the payload was created. */ createdAt: Date; /** ID of the organization for which the webhook belongs to. */ organizationId: string; /** The type of resource. */ type: string; /** The ID of the webhook that sent this event. */ webhookId: string; /** Unix timestamp in milliseconds when the webhook was sent. */ webhookTimestamp: number; } /** * A custom view built from a saved filter, sort, and grouping configuration. Views can be personal (visible only to the owner) or shared with the entire workspace. They define which issues, projects, initiatives, or feed items are displayed and how they are organized. Views can optionally be scoped to a team, project, or initiative. * * @param request - function to call the graphql client * @param data - L.CustomViewFragment response data */ declare class CustomView extends Request { private _creator; private _owner; private _team?; private _updatedBy?; constructor(request: LinearRequest, data: CustomViewFragment); /** The time at which the entity was archived. Null if the entity has not been archived. */ archivedAt?: Date | null; /** The hex color code of the custom view icon. */ color?: string | null; /** The time at which the entity was created. */ createdAt: Date; /** The description of the custom view. */ description?: string | null; /** The filter applied to feed items in the custom view. When set, this view displays feed items (updates) instead of issues. */ feedItemFilterData?: Scalars["JSONObject"] | null; /** The structured filter applied to issues in the custom view. Used when the view's modelName is "Issue". */ filterData: Scalars["JSONObject"]; /** The legacy serialized filters applied to issues in the custom view. */ filters: Scalars["JSONObject"]; /** The icon of the custom view. Can be an emoji or a decorative icon identifier. */ icon?: string | null; /** The unique identifier of the entity. */ id: string; /** The filter applied to initiatives in the custom view. When set, this view displays initiatives instead of issues. */ initiativeFilterData?: Scalars["JSONObject"] | null; /** The entity type this view displays. Determined by which filter is set: "Project" if projectFilterData is set, "Initiative" if initiativeFilterData is set, "FeedItem" if feedItemFilterData is set, or "Issue" by default. */ modelName: string; /** The name of the custom view, displayed in the sidebar and navigation. */ name: string; /** The filter applied to projects in the custom view. When set, this view displays projects instead of issues. */ projectFilterData?: Scalars["JSONObject"] | null; /** Whether the custom view is shared with everyone in the organization. Shared views appear in the workspace sidebar for all members. Personal (non-shared) views are only visible to their owner. */ shared: boolean; /** The custom view's unique URL slug, used to construct human-readable URLs. Automatically generated on creation. */ slugId: string; /** * The last time at which the entity was meaningfully updated. This is the same as the creation time if the entity hasn't * been updated after creation. */ updatedAt: Date; /** The workspace-level default view preferences for this custom view, if any have been set. */ organizationViewPreferences?: ViewPreferences | null; /** The current user's personal view preferences for this custom view, if they have set any. */ userViewPreferences?: ViewPreferences | null; /** The computed view preferences values for this custom view, merging organization defaults with user overrides and system defaults. Use this for the effective display settings rather than reading raw preferences directly. */ viewPreferencesValues?: ViewPreferencesValues | null; /** The user who originally created the custom view. */ get creator(): LinearFetch | undefined; /** The ID of user who originally created the custom view. */ get creatorId(): string | undefined; /** The workspace of the custom view. */ get organization(): LinearFetch; /** The user who owns the custom view. For personal views, only the owner can see and edit the view. */ get owner(): LinearFetch | undefined; /** The ID of user who owns the custom view. for personal views, only the owner can see and edit the view. */ get ownerId(): string | undefined; /** The team that the custom view is scoped to. Null if the view is workspace-wide or scoped to a project/initiative instead. */ get team(): LinearFetch | undefined; /** The ID of team that the custom view is scoped to. null if the view is workspace-wide or scoped to a project/initiative instead. */ get teamId(): string | undefined; /** The user who last updated the custom view. Null if the updater's account has been deleted. */ get updatedBy(): LinearFetch | undefined; /** The ID of user who last updated the custom view. null if the updater's account has been deleted. */ get updatedById(): string | undefined; /** Initiatives matching the custom view's initiative filter. Returns an empty connection if the view's modelName is not "Initiative". */ initiatives(variables?: Omit): LinearFetch; /** Issues matching the custom view's issue filter. Returns an empty connection if the view's modelName is not "Issue". */ issues(variables?: Omit): LinearFetch; /** Projects matching the custom view's project filter. Returns an empty connection if the view's modelName is not "Project". */ projects(variables?: Omit): LinearFetch; /** Creates a new custom view. */ create(input: CustomViewCreateInput): LinearFetch; /** Deletes a custom view. */ delete(): LinearFetch; /** Updates a custom view. */ update(input: CustomViewUpdateInput): LinearFetch; } /** * CustomViewConnection model * * @param request - function to call the graphql client * @param fetch - function to trigger a refetch of this CustomViewConnection model * @param data - CustomViewConnection response data */ declare class CustomViewConnection extends Connection { constructor(request: LinearRequest, fetch: (connection?: LinearConnectionVariables) => LinearFetch | undefined>, data: CustomViewConnectionFragment); } /** * The result of a custom view subscribers check. * * @param request - function to call the graphql client * @param data - L.CustomViewHasSubscribersPayloadFragment response data */ declare class CustomViewHasSubscribersPayload extends Request { constructor(request: LinearRequest, data: CustomViewHasSubscribersPayloadFragment); /** Whether the custom view has subscribers. */ hasSubscribers: boolean; } /** * A notification subscription scoped to a specific custom view. The subscriber receives notifications for events matching the custom view's filter criteria. * * @param request - function to call the graphql client * @param data - L.CustomViewNotificationSubscriptionFragment response data */ declare class CustomViewNotificationSubscription extends Request { private _customView; private _customer?; private _cycle?; private _initiative?; private _label?; private _project?; private _subscriber; private _team?; private _user?; constructor(request: LinearRequest, data: CustomViewNotificationSubscriptionFragment); /** Whether the subscription is active. When inactive, no notifications are generated from this subscription even though it still exists. */ active: boolean; /** The time at which the entity was archived. Null if the entity has not been archived. */ archivedAt?: Date | null; /** The time at which the entity was created. */ createdAt: Date; /** The unique identifier of the entity. */ id: string; /** The notification event types that this subscription will deliver to the subscriber. */ notificationSubscriptionTypes: string[]; /** * The last time at which the entity was meaningfully updated. This is the same as the creation time if the entity hasn't * been updated after creation. */ updatedAt: Date; /** The type of contextual view (e.g., active issues, backlog) that further scopes a team notification subscription. Null if the subscription is not associated with a specific view type. */ contextViewType?: ContextViewType | null; /** The type of user-specific view that further scopes a user notification subscription. Null if the subscription is not associated with a user view type. */ userContextViewType?: UserContextViewType | null; /** The custom view subscribed to. */ get customView(): LinearFetch | undefined; /** The ID of custom view subscribed to. */ get customViewId(): string | undefined; /** The customer that this notification subscription is scoped to. Null if the subscription targets a different entity type. */ get customer(): LinearFetch | undefined; /** The ID of customer that this notification subscription is scoped to. null if the subscription targets a different entity type. */ get customerId(): string | undefined; /** The cycle that this notification subscription is scoped to. Null if the subscription targets a different entity type. */ get cycle(): LinearFetch | undefined; /** The ID of cycle that this notification subscription is scoped to. null if the subscription targets a different entity type. */ get cycleId(): string | undefined; /** The initiative that this notification subscription is scoped to. Null if the subscription targets a different entity type. */ get initiative(): LinearFetch | undefined; /** The ID of initiative that this notification subscription is scoped to. null if the subscription targets a different entity type. */ get initiativeId(): string | undefined; /** The issue label that this notification subscription is scoped to. Null if the subscription targets a different entity type. */ get label(): LinearFetch | undefined; /** The ID of issue label that this notification subscription is scoped to. null if the subscription targets a different entity type. */ get labelId(): string | undefined; /** The project that this notification subscription is scoped to. Null if the subscription targets a different entity type. */ get project(): LinearFetch | undefined; /** The ID of project that this notification subscription is scoped to. null if the subscription targets a different entity type. */ get projectId(): string | undefined; /** The user who will receive notifications from this subscription. */ get subscriber(): LinearFetch | undefined; /** The ID of user who will receive notifications from this subscription. */ get subscriberId(): string | undefined; /** The team that this notification subscription is scoped to. Null if the subscription targets a different entity type. */ get team(): LinearFetch | undefined; /** The ID of team that this notification subscription is scoped to. null if the subscription targets a different entity type. */ get teamId(): string | undefined; /** The user that this notification subscription is scoped to, for user-specific view subscriptions. Null if the subscription targets a different entity type. */ get user(): LinearFetch | undefined; /** The ID of user that this notification subscription is scoped to, for user-specific view subscriptions. null if the subscription targets a different entity type. */ get userId(): string | undefined; } /** * The result of a custom view mutation. * * @param request - function to call the graphql client * @param data - L.CustomViewPayloadFragment response data */ declare class CustomViewPayload extends Request { private _customView; constructor(request: LinearRequest, data: CustomViewPayloadFragment); /** The identifier of the last sync operation. */ lastSyncId: number; /** Whether the operation was successful. */ success: boolean; /** The custom view that was created or updated. */ get customView(): LinearFetch | undefined; /** The ID of custom view that was created or updated. */ get customViewId(): string | undefined; } /** * The result of a custom view suggestion query. * * @param request - function to call the graphql client * @param data - L.CustomViewSuggestionPayloadFragment response data */ declare class CustomViewSuggestionPayload extends Request { constructor(request: LinearRequest, data: CustomViewSuggestionPayloadFragment); /** The suggested view description. */ description?: string | null; /** The suggested view icon. */ icon?: string | null; /** The suggested view name. */ name?: string | null; } /** * A customer organization tracked in Linear's customer management system. Customers represent external companies or organizations whose product requests and feedback are captured as customer needs, which can be linked to issues and projects. Customers can be associated with domains, external system IDs, Slack channels, and managed by integrations such as Intercom or Salesforce. * * @param request - function to call the graphql client * @param data - L.CustomerFragment response data */ declare class Customer extends Request { private _integration?; private _owner?; private _status; private _tier?; constructor(request: LinearRequest, data: CustomerFragment); /** The approximate count of customer needs (requests) associated with this customer. This is a denormalized counter and may not reflect the exact count at all times. */ approximateNeedCount: number; /** The time at which the entity was archived. Null if the entity has not been archived. */ archivedAt?: Date | null; /** The time at which the entity was created. */ createdAt: Date; /** The email domains associated with this customer (e.g., 'acme.com'). Used to automatically match incoming requests to this customer. Public email domains (e.g., gmail.com) are not allowed. Domains must be unique across all customers in the workspace. */ domains: string[]; /** Identifiers for this customer in external systems (e.g., CRM IDs from Intercom, Salesforce, or HubSpot). Used for matching customers during integration syncs and upsert operations. External IDs must be unique across customers in the workspace. */ externalIds: string[]; /** The unique identifier of the entity. */ id: string; /** URL of the customer's logo image. Null if no logo has been uploaded. */ logoUrl?: string | null; /** The primary external source ID when a customer has data from multiple external systems. Must be one of the values in the externalIds array. Null if the customer has zero or one external source. */ mainSourceId?: string | null; /** The display name of the customer organization. */ name: string; /** The annual revenue generated by this customer. Null if revenue data has not been provided. May be synced from an external data source such as a CRM integration. */ revenue?: number | null; /** The number of employees or seats at the customer organization. Null if size data has not been provided. May be synced from an external data source such as a CRM integration. */ size?: number | null; /** The ID of the Slack channel linked to this customer for communication. Null if no Slack channel has been associated. Must be unique across all customers in the workspace. */ slackChannelId?: string | null; /** A unique, human-readable URL slug for the customer. Automatically generated and used in customer page URLs. */ slugId: string; /** * The last time at which the entity was meaningfully updated. This is the same as the creation time if the entity hasn't * been updated after creation. */ updatedAt: Date; /** The URL of the customer's page in the Linear application. */ url: string; /** The list of customer needs (product requests and feedback) associated with this customer. */ needs: CustomerNeed[]; /** The integration that manages this customer's data (e.g., Intercom, Salesforce). Null if the customer is not managed by any data source integration. */ get integration(): LinearFetch | undefined; /** The ID of integration that manages this customer's data (e.g., intercom, salesforce). null if the customer is not managed by any data source integration. */ get integrationId(): string | undefined; /** The workspace member assigned as the owner of this customer. Null if no owner has been assigned. App users cannot be set as customer owners. */ get owner(): LinearFetch | undefined; /** The ID of workspace member assigned as the owner of this customer. null if no owner has been assigned. app users cannot be set as customer owners. */ get ownerId(): string | undefined; /** The current lifecycle status of the customer. Defaults to the first status by position when a customer is created without an explicit status. */ get status(): LinearFetch | undefined; /** The ID of current lifecycle status of the customer. defaults to the first status by position when a customer is created without an explicit status. */ get statusId(): string | undefined; /** The tier or segment assigned to this customer for prioritization (e.g., Enterprise, Pro, Free). Null if no tier has been assigned. */ get tier(): LinearFetch | undefined; /** The ID of tier or segment assigned to this customer for prioritization (e.g., enterprise, pro, free). null if no tier has been assigned. */ get tierId(): string | undefined; /** Creates a new customer. */ create(input: CustomerCreateInput): LinearFetch; /** Deletes a customer. */ delete(): LinearFetch; /** Updates an existing customer. */ update(input: CustomerUpdateInput): LinearFetch; } /** * Certain properties of a customer. * * @param data - L.CustomerChildWebhookPayloadFragment response data */ declare class CustomerChildWebhookPayload { constructor(data: CustomerChildWebhookPayloadFragment); /** The domains associated with this customer. */ domains: string[]; /** The ids of the customers in external systems. */ externalIds: string[]; /** The ID of the customer. */ id: string; /** The name of the customer. */ name: string; } /** * CustomerConnection model * * @param request - function to call the graphql client * @param fetch - function to trigger a refetch of this CustomerConnection model * @param data - CustomerConnection response data */ declare class CustomerConnection extends Connection { constructor(request: LinearRequest, fetch: (connection?: LinearConnectionVariables) => LinearFetch | undefined>, data: CustomerConnectionFragment); } /** * A customer need represents a specific product request or piece of feedback from a customer. Customer needs serve as the bridge between customer feedback and engineering work by linking a customer to an issue or project, optionally with a comment or attachment providing additional context. Needs can be created manually, from integrations, or from intake sources like email. * * @param request - function to call the graphql client * @param data - L.CustomerNeedFragment response data */ declare class CustomerNeed extends Request { private _attachment?; private _comment?; private _creator?; private _customer?; private _issue?; private _originalIssue?; private _project?; constructor(request: LinearRequest, data: CustomerNeedFragment); /** The time at which the entity was archived. Null if the entity has not been archived. */ archivedAt?: Date | null; /** The body content of the need in Markdown format. Used to capture manual input about needs that cannot be directly tied to an attachment. Null if the need's content comes from an attached source. */ body?: string | null; /** The effective Markdown content shown for this customer need. Returns the manually stored body when present, otherwise falls back to content extracted from the source attachment. Null if no content is available. */ content?: string | null; /** The time at which the entity was created. */ createdAt: Date; /** The unique identifier of the entity. */ id: string; /** Whether the customer need is important or not. 0 = Not important, 1 = Important. */ priority: number; /** * The last time at which the entity was meaningfully updated. This is the same as the creation time if the entity hasn't * been updated after creation. */ updatedAt: Date; /** The URL of the source attachment linked to this need, if any. Returns the URL from either the issue attachment or project attachment. Null if the need has no attached source. */ url?: string | null; /** The project attachment linked to this need. Populated when the need originates from an intake source or when a URL is manually provided for a project-level need. Provides a link back to the original source of the customer feedback. Mutually exclusive with attachment. */ projectAttachment?: ProjectAttachment | null; /** The issue attachment linked to this need. Populated when the need originates from an intake source (e.g., Slack, Intercom) or when a URL is manually provided. Provides a link back to the original source of the customer feedback. Mutually exclusive with projectAttachment. */ get attachment(): LinearFetch | undefined; /** The ID of issue attachment linked to this need. populated when the need originates from an intake source (e.g., slack, intercom) or when a url is manually provided. provides a link back to the original source of the customer feedback. mutually exclusive with projectattachment. */ get attachmentId(): string | undefined; /** An optional comment providing additional context for this need. Null if the need was not created from or associated with a specific comment. */ get comment(): LinearFetch | undefined; /** The ID of an optional comment providing additional context for this need. null if the need was not created from or associated with a specific comment. */ get commentId(): string | undefined; /** The user who manually created this customer need. Null for needs created automatically by integrations or intake sources. */ get creator(): LinearFetch | undefined; /** The ID of user who manually created this customer need. null for needs created automatically by integrations or intake sources. */ get creatorId(): string | undefined; /** The customer organization this need belongs to. Null if the need has not yet been associated with a customer. */ get customer(): LinearFetch | undefined; /** The ID of customer organization this need belongs to. null if the need has not yet been associated with a customer. */ get customerId(): string | undefined; /** The issue this need is linked to. Either issueId or projectId must be set. When set, the need's projectId is denormalized from the issue's project. */ get issue(): LinearFetch | undefined; /** The ID of issue this need is linked to. either issueid or projectid must be set. when set, the need's projectid is denormalized from the issue's project. */ get issueId(): string | undefined; /** The issue this customer need was originally created on, before being moved to a different issue or project. Null if the customer need has not been moved from its original location. */ get originalIssue(): LinearFetch | undefined; /** The ID of issue this customer need was originally created on, before being moved to a different issue or project. null if the customer need has not been moved from its original location. */ get originalIssueId(): string | undefined; /** The project this need is linked to. For issue-based needs, this is denormalized from the issue's project. For project-only needs, this is set directly. */ get project(): LinearFetch | undefined; /** The ID of project this need is linked to. for issue-based needs, this is denormalized from the issue's project. for project-only needs, this is set directly. */ get projectId(): string | undefined; /** Archives a customer need. */ archive(): LinearFetch; /** Creates a new customer need. */ create(input: CustomerNeedCreateInput): LinearFetch; /** Deletes a customer need. */ delete(variables?: Omit): LinearFetch; /** Unarchives a customer need. */ unarchive(): LinearFetch; /** Updates an existing customer need. Supports moving the need to a different issue or project, changing priority, updating the body content, and managing the attached source URL. */ update(input: CustomerNeedUpdateInput, variables?: Omit): LinearFetch; } /** * A generic payload return from entity archive mutations. * * @param request - function to call the graphql client * @param data - L.CustomerNeedArchivePayloadFragment response data */ declare class CustomerNeedArchivePayload extends Request { private _entity?; constructor(request: LinearRequest, data: CustomerNeedArchivePayloadFragment); /** The identifier of the last sync operation. */ lastSyncId: number; /** Whether the operation was successful. */ success: boolean; /** The archived/unarchived entity. Null if entity was deleted. */ get entity(): LinearFetch | undefined; /** The ID of archived/unarchived entity. null if entity was deleted. */ get entityId(): string | undefined; } /** * Certain properties of a customer need. * * @param data - L.CustomerNeedChildWebhookPayloadFragment response data */ declare class CustomerNeedChildWebhookPayload { constructor(data: CustomerNeedChildWebhookPayloadFragment); /** The ID of the attachment this need is referencing. */ attachmentId?: string | null; /** The ID of the customer that this need is attached to. */ customerId?: string | null; /** The ID of the customer need. */ id: string; /** The ID of the issue this need is referencing. */ issueId?: string | null; /** The ID of the project this need is referencing. */ projectId?: string | null; } /** * CustomerNeedConnection model * * @param request - function to call the graphql client * @param fetch - function to trigger a refetch of this CustomerNeedConnection model * @param data - CustomerNeedConnection response data */ declare class CustomerNeedConnection extends Connection { constructor(request: LinearRequest, fetch: (connection?: LinearConnectionVariables) => LinearFetch | undefined>, data: CustomerNeedConnectionFragment); } /** * A notification related to a customer need (request), such as creation, resolution, or being marked as important. * * @param request - function to call the graphql client * @param data - L.CustomerNeedNotificationFragment response data */ declare class CustomerNeedNotification extends Request { private _actor?; private _customerNeed; private _externalUserActor?; private _relatedIssue?; private _relatedProject?; private _user; constructor(request: LinearRequest, data: CustomerNeedNotificationFragment); /** The time at which the entity was archived. Null if the entity has not been archived. */ archivedAt?: Date | null; /** The time at which the entity was created. */ createdAt: Date; /** Related customer need. */ customerNeedId: string; /** The time at which an email reminder for this notification was sent to the user. Null if no email reminder has been sent. */ emailedAt?: Date | null; /** The unique identifier of the entity. */ id: string; /** The time at which the user marked the notification as read. Null if the notification is unread. */ readAt?: Date | null; /** The time until which a notification is snoozed. After this time, the notification reappears in the user's inbox. Null if the notification is not currently snoozed. */ snoozedUntilAt?: Date | null; /** Notification type. Determines the kind of event that triggered this notification and which associated entity fields will be populated. */ type: string; /** The time at which a notification was unsnoozed. Null if the notification has not been unsnoozed. */ unsnoozedAt?: Date | null; /** * The last time at which the entity was meaningfully updated. This is the same as the creation time if the entity hasn't * been updated after creation. */ updatedAt: Date; /** The bot that caused the notification. */ botActor?: ActorBot | null; /** The category of the notification. */ category: NotificationCategory; /** The user that caused the notification. Null if the notification was triggered by a non-user actor such as an integration, external user, or system event. */ get actor(): LinearFetch | undefined; /** The ID of user that caused the notification. null if the notification was triggered by a non-user actor such as an integration, external user, or system event. */ get actorId(): string | undefined; /** The customer need related to the notification. */ get customerNeed(): LinearFetch | undefined; /** The external user that caused the notification. Populated when the notification was triggered by an external user (e.g., a commenter from a connected integration like Slack or GitHub) rather than a Linear workspace member. */ get externalUserActor(): LinearFetch | undefined; /** The ID of external user that caused the notification. populated when the notification was triggered by an external user (e.g., a commenter from a connected integration like slack or github) rather than a linear workspace member. */ get externalUserActorId(): string | undefined; /** The issue related to the notification. */ get relatedIssue(): LinearFetch | undefined; /** The ID of issue related to the notification. */ get relatedIssueId(): string | undefined; /** The project related to the notification. */ get relatedProject(): LinearFetch | undefined; /** The ID of project related to the notification. */ get relatedProjectId(): string | undefined; /** The recipient user of this notification. */ get user(): LinearFetch | undefined; /** The ID of recipient user of this notification. */ get userId(): string | undefined; } /** * Return type for customer need mutations. * * @param request - function to call the graphql client * @param data - L.CustomerNeedPayloadFragment response data */ declare class CustomerNeedPayload extends Request { private _need; constructor(request: LinearRequest, data: CustomerNeedPayloadFragment); /** The identifier of the last sync operation. */ lastSyncId: number; /** Whether the operation was successful. */ success: boolean; /** The customer need entity that was created or updated by the mutation. */ get need(): LinearFetch | undefined; /** The ID of customer need entity that was created or updated by the mutation. */ get needId(): string | undefined; } /** * Return type for customer need update mutations, including any related needs that were also updated. * * @param request - function to call the graphql client * @param data - L.CustomerNeedUpdatePayloadFragment response data */ declare class CustomerNeedUpdatePayload extends Request { private _need; constructor(request: LinearRequest, data: CustomerNeedUpdatePayloadFragment); /** The identifier of the last sync operation. */ lastSyncId: number; /** Whether the operation was successful. */ success: boolean; /** Additional customer needs from the same customer on the same issue/project that were updated when applyPriorityToRelatedNeeds was set. */ updatedRelatedNeeds: CustomerNeed[]; /** The customer need entity that was created or updated by the mutation. */ get need(): LinearFetch | undefined; /** The ID of customer need entity that was created or updated by the mutation. */ get needId(): string | undefined; } /** * Payload for a customer need webhook. * * @param data - L.CustomerNeedWebhookPayloadFragment response data */ declare class CustomerNeedWebhookPayload { constructor(data: CustomerNeedWebhookPayloadFragment); /** The time at which the entity was archived. */ archivedAt?: string | null; /** The ID of the attachment this need is referencing. */ attachmentId?: string | null; /** The body of the need in Markdown format. */ body?: string | null; /** The ID of the comment this need is referencing. */ commentId?: string | null; /** The time at which the entity was created. */ createdAt: string; /** The ID of the creator of the customer need. */ creatorId?: string | null; /** The ID of the customer that this need is attached to. */ customerId?: string | null; /** The ID of the entity. */ id: string; /** The ID of the issue this need is referencing. */ issueId?: string | null; /** The issue ID this customer need was originally created on. Will be undefined if the customer need hasn't been moved. */ originalIssueId?: string | null; /** The priority of the need. */ priority: number; /** The ID of the project attachment this need is referencing. */ projectAttachmentId?: string | null; /** The ID of the project this need is referencing. */ projectId?: string | null; /** The time at which the entity was updated. */ updatedAt: string; /** The attachment this need is referencing. */ attachment?: AttachmentWebhookPayload | null; /** The customer that this need is attached to. */ customer?: CustomerChildWebhookPayload | null; /** The issue this need is referencing. */ issue?: IssueChildWebhookPayload | null; /** The project this need is referencing. */ project?: ProjectChildWebhookPayload | null; } /** * A notification related to a customer, such as being added as the customer owner. * * @param request - function to call the graphql client * @param data - L.CustomerNotificationFragment response data */ declare class CustomerNotification extends Request { private _actor?; private _customer; private _externalUserActor?; private _user; constructor(request: LinearRequest, data: CustomerNotificationFragment); /** The time at which the entity was archived. Null if the entity has not been archived. */ archivedAt?: Date | null; /** The time at which the entity was created. */ createdAt: Date; /** Related customer. */ customerId: string; /** The time at which an email reminder for this notification was sent to the user. Null if no email reminder has been sent. */ emailedAt?: Date | null; /** The unique identifier of the entity. */ id: string; /** The time at which the user marked the notification as read. Null if the notification is unread. */ readAt?: Date | null; /** The time until which a notification is snoozed. After this time, the notification reappears in the user's inbox. Null if the notification is not currently snoozed. */ snoozedUntilAt?: Date | null; /** Notification type. Determines the kind of event that triggered this notification and which associated entity fields will be populated. */ type: string; /** The time at which a notification was unsnoozed. Null if the notification has not been unsnoozed. */ unsnoozedAt?: Date | null; /** * The last time at which the entity was meaningfully updated. This is the same as the creation time if the entity hasn't * been updated after creation. */ updatedAt: Date; /** The bot that caused the notification. */ botActor?: ActorBot | null; /** The category of the notification. */ category: NotificationCategory; /** The user that caused the notification. Null if the notification was triggered by a non-user actor such as an integration, external user, or system event. */ get actor(): LinearFetch | undefined; /** The ID of user that caused the notification. null if the notification was triggered by a non-user actor such as an integration, external user, or system event. */ get actorId(): string | undefined; /** The customer related to the notification. */ get customer(): LinearFetch | undefined; /** The external user that caused the notification. Populated when the notification was triggered by an external user (e.g., a commenter from a connected integration like Slack or GitHub) rather than a Linear workspace member. */ get externalUserActor(): LinearFetch | undefined; /** The ID of external user that caused the notification. populated when the notification was triggered by an external user (e.g., a commenter from a connected integration like slack or github) rather than a linear workspace member. */ get externalUserActorId(): string | undefined; /** The recipient user of this notification. */ get user(): LinearFetch | undefined; /** The ID of recipient user of this notification. */ get userId(): string | undefined; } /** * A notification subscription scoped to a specific customer. The subscriber receives notifications for events related to this customer, such as new customer needs or ownership changes. * * @param request - function to call the graphql client * @param data - L.CustomerNotificationSubscriptionFragment response data */ declare class CustomerNotificationSubscription extends Request { private _customView?; private _customer; private _cycle?; private _initiative?; private _label?; private _project?; private _subscriber; private _team?; private _user?; constructor(request: LinearRequest, data: CustomerNotificationSubscriptionFragment); /** Whether the subscription is active. When inactive, no notifications are generated from this subscription even though it still exists. */ active: boolean; /** The time at which the entity was archived. Null if the entity has not been archived. */ archivedAt?: Date | null; /** The time at which the entity was created. */ createdAt: Date; /** The unique identifier of the entity. */ id: string; /** The notification event types that this subscription will deliver to the subscriber. */ notificationSubscriptionTypes: string[]; /** * The last time at which the entity was meaningfully updated. This is the same as the creation time if the entity hasn't * been updated after creation. */ updatedAt: Date; /** The type of contextual view (e.g., active issues, backlog) that further scopes a team notification subscription. Null if the subscription is not associated with a specific view type. */ contextViewType?: ContextViewType | null; /** The type of user-specific view that further scopes a user notification subscription. Null if the subscription is not associated with a user view type. */ userContextViewType?: UserContextViewType | null; /** The custom view that this notification subscription is scoped to. Null if the subscription targets a different entity type. */ get customView(): LinearFetch | undefined; /** The ID of custom view that this notification subscription is scoped to. null if the subscription targets a different entity type. */ get customViewId(): string | undefined; /** The customer subscribed to. */ get customer(): LinearFetch | undefined; /** The ID of customer subscribed to. */ get customerId(): string | undefined; /** The cycle that this notification subscription is scoped to. Null if the subscription targets a different entity type. */ get cycle(): LinearFetch | undefined; /** The ID of cycle that this notification subscription is scoped to. null if the subscription targets a different entity type. */ get cycleId(): string | undefined; /** The initiative that this notification subscription is scoped to. Null if the subscription targets a different entity type. */ get initiative(): LinearFetch | undefined; /** The ID of initiative that this notification subscription is scoped to. null if the subscription targets a different entity type. */ get initiativeId(): string | undefined; /** The issue label that this notification subscription is scoped to. Null if the subscription targets a different entity type. */ get label(): LinearFetch | undefined; /** The ID of issue label that this notification subscription is scoped to. null if the subscription targets a different entity type. */ get labelId(): string | undefined; /** The project that this notification subscription is scoped to. Null if the subscription targets a different entity type. */ get project(): LinearFetch | undefined; /** The ID of project that this notification subscription is scoped to. null if the subscription targets a different entity type. */ get projectId(): string | undefined; /** The user who will receive notifications from this subscription. */ get subscriber(): LinearFetch | undefined; /** The ID of user who will receive notifications from this subscription. */ get subscriberId(): string | undefined; /** The team that this notification subscription is scoped to. Null if the subscription targets a different entity type. */ get team(): LinearFetch | undefined; /** The ID of team that this notification subscription is scoped to. null if the subscription targets a different entity type. */ get teamId(): string | undefined; /** The user that this notification subscription is scoped to, for user-specific view subscriptions. Null if the subscription targets a different entity type. */ get user(): LinearFetch | undefined; /** The ID of user that this notification subscription is scoped to, for user-specific view subscriptions. null if the subscription targets a different entity type. */ get userId(): string | undefined; } /** * Return type for customer mutations. * * @param request - function to call the graphql client * @param data - L.CustomerPayloadFragment response data */ declare class CustomerPayload extends Request { private _customer; constructor(request: LinearRequest, data: CustomerPayloadFragment); /** The identifier of the last sync operation. */ lastSyncId: number; /** Whether the operation was successful. */ success: boolean; /** The customer entity that was created or updated by the mutation. */ get customer(): LinearFetch | undefined; /** The ID of customer entity that was created or updated by the mutation. */ get customerId(): string | undefined; } /** * A workspace-defined lifecycle status for customers (e.g., Active, Churned, Trial). Customer statuses are ordered by position and displayed with a color in the UI. Every workspace has at least one status, and a default status is assigned to new customers when none is specified. * * @param request - function to call the graphql client * @param data - L.CustomerStatusFragment response data */ declare class CustomerStatus extends Request { constructor(request: LinearRequest, data: CustomerStatusFragment); /** The time at which the entity was archived. Null if the entity has not been archived. */ archivedAt?: Date | null; /** The color of the status indicator in the UI, as a HEX string (e.g., '#ff0000'). */ color: string; /** The time at which the entity was created. */ createdAt: Date; /** An optional description explaining what this status represents in the customer lifecycle. */ description?: string | null; /** The user-facing display name of the status shown in the UI. Defaults to the internal name if not explicitly set. */ displayName: string; /** The unique identifier of the entity. */ id: string; /** The internal name of the status. Used as the default display name if no displayName is explicitly set. */ name: string; /** The sort position of the status in the workspace's customer lifecycle flow. Lower values appear first. Collisions are automatically resolved by redistributing positions. */ position: number; /** * The last time at which the entity was meaningfully updated. This is the same as the creation time if the entity hasn't * been updated after creation. */ updatedAt: Date; /** [Deprecated] The type of the customer status. Always returns null as statuses are no longer grouped by type. */ type?: CustomerStatusType | null; /** Creates a new customer status. */ create(input: CustomerStatusCreateInput): LinearFetch; /** Deletes a customer status. Cannot delete the last remaining status in a workspace, and the status must not be in use by any customers. */ delete(): LinearFetch; /** Updates a customer status. */ update(input: CustomerStatusUpdateInput): LinearFetch; } /** * Certain properties of a customer status. * * @param data - L.CustomerStatusChildWebhookPayloadFragment response data */ declare class CustomerStatusChildWebhookPayload { constructor(data: CustomerStatusChildWebhookPayloadFragment); /** The color of the customer status. */ color: string; /** The description of the customer status. */ description?: string | null; /** The display name of the customer status. */ displayName: string; /** The ID of the customer status. */ id: string; /** The name of the customer status. */ name: string; /** The type of the customer status. */ type?: string | null; } /** * CustomerStatusConnection model * * @param request - function to call the graphql client * @param fetch - function to trigger a refetch of this CustomerStatusConnection model * @param data - CustomerStatusConnection response data */ declare class CustomerStatusConnection extends Connection { constructor(request: LinearRequest, fetch: (connection?: LinearConnectionVariables) => LinearFetch | undefined>, data: CustomerStatusConnectionFragment); } /** * Return type for customer status mutations. * * @param request - function to call the graphql client * @param data - L.CustomerStatusPayloadFragment response data */ declare class CustomerStatusPayload extends Request { private _status; constructor(request: LinearRequest, data: CustomerStatusPayloadFragment); /** The identifier of the last sync operation. */ lastSyncId: number; /** Whether the operation was successful. */ success: boolean; /** The customer status entity that was created or updated by the mutation. */ get status(): LinearFetch | undefined; /** The ID of customer status entity that was created or updated by the mutation. */ get statusId(): string | undefined; } /** * A workspace-defined tier or segment for categorizing customers (e.g., Enterprise, Pro, Free). Customer tiers are used for prioritization and filtering, are ordered by position, and displayed with a color in the UI. Tier names are unique within a workspace. * * @param request - function to call the graphql client * @param data - L.CustomerTierFragment response data */ declare class CustomerTier extends Request { constructor(request: LinearRequest, data: CustomerTierFragment); /** The time at which the entity was archived. Null if the entity has not been archived. */ archivedAt?: Date | null; /** The color of the tier indicator in the UI, as a HEX string (e.g., '#ff0000'). */ color: string; /** The time at which the entity was created. */ createdAt: Date; /** An optional description explaining what this tier represents and its intended use for customer segmentation. */ description?: string | null; /** The user-facing display name of the tier shown in the UI. Defaults to the internal name if not explicitly set. */ displayName: string; /** The unique identifier of the entity. */ id: string; /** The internal name of the tier. Must be unique within the workspace. Used as the default display name if no displayName is explicitly set. */ name: string; /** The sort position of the tier in the workspace's customer tier ordering. Lower values appear first. Collisions are automatically resolved by redistributing positions. */ position: number; /** * The last time at which the entity was meaningfully updated. This is the same as the creation time if the entity hasn't * been updated after creation. */ updatedAt: Date; /** Creates a new customer tier. */ create(input: CustomerTierCreateInput): LinearFetch; /** Deletes a customer tier. The tier must not be in use by any customers. */ delete(): LinearFetch; /** Updates a customer tier. */ update(input: CustomerTierUpdateInput): LinearFetch; } /** * Certain properties of a customer tier. * * @param data - L.CustomerTierChildWebhookPayloadFragment response data */ declare class CustomerTierChildWebhookPayload { constructor(data: CustomerTierChildWebhookPayloadFragment); /** The color of the customer tier. */ color: string; /** The description of the customer tier. */ description?: string | null; /** The display name of the customer tier. */ displayName: string; /** The ID of the customer tier. */ id: string; /** The name of the customer tier. */ name: string; } /** * CustomerTierConnection model * * @param request - function to call the graphql client * @param fetch - function to trigger a refetch of this CustomerTierConnection model * @param data - CustomerTierConnection response data */ declare class CustomerTierConnection extends Connection { constructor(request: LinearRequest, fetch: (connection?: LinearConnectionVariables) => LinearFetch | undefined>, data: CustomerTierConnectionFragment); } /** * Return type for customer tier mutations. * * @param request - function to call the graphql client * @param data - L.CustomerTierPayloadFragment response data */ declare class CustomerTierPayload extends Request { private _tier; constructor(request: LinearRequest, data: CustomerTierPayloadFragment); /** The identifier of the last sync operation. */ lastSyncId: number; /** Whether the operation was successful. */ success: boolean; /** The customer tier entity that was created or updated by the mutation. */ get tier(): LinearFetch | undefined; /** The ID of customer tier entity that was created or updated by the mutation. */ get tierId(): string | undefined; } /** * Payload for a customer webhook. * * @param data - L.CustomerWebhookPayloadFragment response data */ declare class CustomerWebhookPayload { constructor(data: CustomerWebhookPayloadFragment); /** The approximate number of needs of the customer. */ approximateNeedCount: number; /** The time at which the entity was archived. */ archivedAt?: string | null; /** The time at which the entity was created. */ createdAt: string; /** The domains associated with this customer. */ domains: string[]; /** The ids of the customers in external systems. */ externalIds: string[]; /** The ID of the entity. */ id: string; /** The customer's logo URL. */ logoUrl?: string | null; /** The ID of the main source, when a customer has multiple sources. Must be one of externalIds. */ mainSourceId?: string | null; /** The name of the customer. */ name: string; /** The ID of the user who owns the customer. */ ownerId?: string | null; /** The annual revenue generated by the customer. */ revenue?: number | null; /** The size of the customer. */ size?: number | null; /** The ID of the Slack channel used to interact with the customer. */ slackChannelId?: string | null; /** The customer's unique URL slug. */ slugId: string; /** The ID of the customer status. */ statusId?: string | null; /** The ID of the customer tier. */ tierId?: string | null; /** The time at which the entity was updated. */ updatedAt: string; /** The URL of the customer. */ url: string; /** The customer status. */ status?: CustomerStatusChildWebhookPayload | null; /** The customer tier. */ tier?: CustomerTierChildWebhookPayload | null; } /** * A time-boxed iteration (similar to a sprint) used for planning and tracking work. Cycles belong to a team and have defined start and end dates. Issues are assigned to cycles for time-based planning, and progress is tracked via completed, in-progress, and total scope. Cycles are automatically completed when their end date passes, and uncompleted issues can be carried over to the next cycle. * * @param request - function to call the graphql client * @param data - L.CycleFragment response data */ declare class Cycle extends Request { private _inheritedFrom?; private _team; constructor(request: LinearRequest, data: CycleFragment); /** The time at which the entity was archived. Null if the entity has not been archived. */ archivedAt?: Date | null; /** The time at which the cycle was automatically archived by the auto-pruning process. Null if the cycle has not been auto-archived. */ autoArchivedAt?: Date | null; /** The completion time of the cycle. If null, the cycle has not been completed yet. A cycle is completed either when its end date passes or when it is manually completed early. */ completedAt?: Date | null; /** The number of completed issues in the cycle after each day. Each entry corresponds to the same day index as issueCountHistory. */ completedIssueCountHistory: number[]; /** The number of completed estimation points after each day. Used together with scopeHistory for burndown charts. */ completedScopeHistory: number[]; /** The time at which the entity was created. */ createdAt: Date; /** The description of the cycle. */ description?: string | null; /** The end date and time of the cycle. When a cycle is completed prematurely, this is updated to match the completion time. When cycles are disabled, both endsAt and completedAt are set to the current time. */ endsAt: Date; /** The unique identifier of the entity. */ id: string; /** The number of in-progress estimation points after each day. Tracks work that has been started but not yet completed. */ inProgressScopeHistory: number[]; /** Whether the cycle is currently active. A cycle is active if the current time is between its start and end dates and it has not been completed. */ isActive: boolean; /** Whether the cycle has not yet started. True if the cycle's start date is in the future. */ isFuture: boolean; /** Whether this cycle is the next upcoming (not yet started) cycle for the team. */ isNext: boolean; /** Whether the cycle's end date has passed. */ isPast: boolean; /** Whether this cycle is the most recently completed cycle for the team. */ isPrevious: boolean; /** The total number of issues in the cycle after each day. Each entry represents a snapshot at the end of that day, forming the basis for burndown charts. */ issueCountHistory: number[]; /** The custom name of the cycle. If not set, the cycle is displayed using its number (e.g., "Cycle 5"). */ name?: string | null; /** The auto-incrementing number of the cycle, unique within its team. This value is assigned automatically by the database and cannot be set on creation. */ number: number; /** The overall progress of the cycle as a number between 0 and 1. Calculated as (completed estimate points + 0.25 * in-progress estimate points) / total estimate points. Returns 0 if no estimate points exist. */ progress: number; /** The total number of estimation points (scope) in the cycle after each day. Used for scope-based burndown charts. */ scopeHistory: number[]; /** The start date and time of the cycle. */ startsAt: Date; /** * The last time at which the entity was meaningfully updated. This is the same as the creation time if the entity hasn't * been updated after creation. */ updatedAt: Date; /** The parent cycle this cycle was inherited from. When a parent team creates cycles, sub-teams automatically receive corresponding inherited cycles. */ get inheritedFrom(): LinearFetch | undefined; /** The ID of parent cycle this cycle was inherited from. when a parent team creates cycles, sub-teams automatically receive corresponding inherited cycles. */ get inheritedFromId(): string | undefined; /** The team that the cycle belongs to. Each cycle is scoped to exactly one team. */ get team(): LinearFetch | undefined; /** The ID of team that the cycle belongs to. each cycle is scoped to exactly one team. */ get teamId(): string | undefined; /** Issues that are currently assigned to this cycle. */ issues(variables?: Omit): LinearFetch; /** Issues that were still open (not completed) when the cycle was closed. These issues may have been moved to the next cycle. */ uncompletedIssuesUponClose(variables?: Omit): LinearFetch; /** Archives a cycle. All issues currently assigned to the cycle are unlinked from it before archiving. */ archive(): LinearFetch; /** Creates a new cycle. */ create(input: CycleCreateInput): LinearFetch; /** Updates a cycle. */ update(input: CycleUpdateInput): LinearFetch; } /** * A generic payload return from entity archive mutations. * * @param request - function to call the graphql client * @param data - L.CycleArchivePayloadFragment response data */ declare class CycleArchivePayload extends Request { private _entity?; constructor(request: LinearRequest, data: CycleArchivePayloadFragment); /** The identifier of the last sync operation. */ lastSyncId: number; /** Whether the operation was successful. */ success: boolean; /** The archived/unarchived entity. Null if entity was deleted. */ get entity(): LinearFetch | undefined; /** The ID of archived/unarchived entity. null if entity was deleted. */ get entityId(): string | undefined; } /** * Certain properties of a cycle. * * @param data - L.CycleChildWebhookPayloadFragment response data */ declare class CycleChildWebhookPayload { constructor(data: CycleChildWebhookPayloadFragment); /** The end date of the cycle. */ endsAt: string; /** The ID of the cycle. */ id: string; /** The name of the cycle. */ name?: string | null; /** The number of the cycle. */ number: number; /** The start date of the cycle. */ startsAt: string; } /** * CycleConnection model * * @param request - function to call the graphql client * @param fetch - function to trigger a refetch of this CycleConnection model * @param data - CycleConnection response data */ declare class CycleConnection extends Connection { constructor(request: LinearRequest, fetch: (connection?: LinearConnectionVariables) => LinearFetch | undefined>, data: CycleConnectionFragment); } /** * A notification subscription scoped to a specific cycle. The subscriber receives notifications for events related to issues in this cycle. * * @param request - function to call the graphql client * @param data - L.CycleNotificationSubscriptionFragment response data */ declare class CycleNotificationSubscription extends Request { private _customView?; private _customer?; private _cycle; private _initiative?; private _label?; private _project?; private _subscriber; private _team?; private _user?; constructor(request: LinearRequest, data: CycleNotificationSubscriptionFragment); /** Whether the subscription is active. When inactive, no notifications are generated from this subscription even though it still exists. */ active: boolean; /** The time at which the entity was archived. Null if the entity has not been archived. */ archivedAt?: Date | null; /** The time at which the entity was created. */ createdAt: Date; /** The unique identifier of the entity. */ id: string; /** The notification event types that this subscription will deliver to the subscriber. */ notificationSubscriptionTypes: string[]; /** * The last time at which the entity was meaningfully updated. This is the same as the creation time if the entity hasn't * been updated after creation. */ updatedAt: Date; /** The type of contextual view (e.g., active issues, backlog) that further scopes a team notification subscription. Null if the subscription is not associated with a specific view type. */ contextViewType?: ContextViewType | null; /** The type of user-specific view that further scopes a user notification subscription. Null if the subscription is not associated with a user view type. */ userContextViewType?: UserContextViewType | null; /** The custom view that this notification subscription is scoped to. Null if the subscription targets a different entity type. */ get customView(): LinearFetch | undefined; /** The ID of custom view that this notification subscription is scoped to. null if the subscription targets a different entity type. */ get customViewId(): string | undefined; /** The customer that this notification subscription is scoped to. Null if the subscription targets a different entity type. */ get customer(): LinearFetch | undefined; /** The ID of customer that this notification subscription is scoped to. null if the subscription targets a different entity type. */ get customerId(): string | undefined; /** The cycle subscribed to. */ get cycle(): LinearFetch | undefined; /** The ID of cycle subscribed to. */ get cycleId(): string | undefined; /** The initiative that this notification subscription is scoped to. Null if the subscription targets a different entity type. */ get initiative(): LinearFetch | undefined; /** The ID of initiative that this notification subscription is scoped to. null if the subscription targets a different entity type. */ get initiativeId(): string | undefined; /** The issue label that this notification subscription is scoped to. Null if the subscription targets a different entity type. */ get label(): LinearFetch | undefined; /** The ID of issue label that this notification subscription is scoped to. null if the subscription targets a different entity type. */ get labelId(): string | undefined; /** The project that this notification subscription is scoped to. Null if the subscription targets a different entity type. */ get project(): LinearFetch | undefined; /** The ID of project that this notification subscription is scoped to. null if the subscription targets a different entity type. */ get projectId(): string | undefined; /** The user who will receive notifications from this subscription. */ get subscriber(): LinearFetch | undefined; /** The ID of user who will receive notifications from this subscription. */ get subscriberId(): string | undefined; /** The team that this notification subscription is scoped to. Null if the subscription targets a different entity type. */ get team(): LinearFetch | undefined; /** The ID of team that this notification subscription is scoped to. null if the subscription targets a different entity type. */ get teamId(): string | undefined; /** The user that this notification subscription is scoped to, for user-specific view subscriptions. Null if the subscription targets a different entity type. */ get user(): LinearFetch | undefined; /** The ID of user that this notification subscription is scoped to, for user-specific view subscriptions. null if the subscription targets a different entity type. */ get userId(): string | undefined; } /** * The payload returned by cycle mutations. * * @param request - function to call the graphql client * @param data - L.CyclePayloadFragment response data */ declare class CyclePayload extends Request { private _cycle?; constructor(request: LinearRequest, data: CyclePayloadFragment); /** The identifier of the last sync operation. */ lastSyncId: number; /** Whether the operation was successful. */ success: boolean; /** The cycle that was created or updated. */ get cycle(): LinearFetch | undefined; /** The ID of cycle that was created or updated. */ get cycleId(): string | undefined; } /** * Payload for a cycle webhook. * * @param data - L.CycleWebhookPayloadFragment response data */ declare class CycleWebhookPayload { constructor(data: CycleWebhookPayloadFragment); /** The time at which the entity was archived. */ archivedAt?: string | null; /** The time at which the cycle was automatically archived by the auto pruning process. */ autoArchivedAt?: string | null; /** The completion time of the cycle. If null, the cycle hasn't been completed. */ completedAt?: string | null; /** The number of completed issues in the cycle after each day. */ completedIssueCountHistory: number[]; /** The number of completed estimation points after each day. */ completedScopeHistory: number[]; /** The time at which the entity was created. */ createdAt: string; /** The cycle's description. */ description?: string | null; /** The end date of the cycle. */ endsAt: string; /** The ID of the entity. */ id: string; /** The number of in progress estimation points after each day. */ inProgressScopeHistory: number[]; /** The ID of the cycle inherited from. */ inheritedFromId?: string | null; /** The total number of issues in the cycle after each day. */ issueCountHistory: number[]; /** The name of the cycle. */ name?: string | null; /** The number of the cycle. */ number: number; /** The total number of estimation points after each day. */ scopeHistory: number[]; /** The start date of the cycle. */ startsAt: string; /** The team ID of the cycle. */ teamId: string; /** The IDs of the uncompleted issues upon close. */ uncompletedIssuesUponCloseIds: string[]; /** The time at which the entity was updated. */ updatedAt: string; } /** * A generic payload return from entity deletion mutations. * * @param request - function to call the graphql client * @param data - L.DeletePayloadFragment response data */ declare class DeletePayload extends Request { constructor(request: LinearRequest, data: DeletePayloadFragment); /** The identifier of the deleted entity. */ entityId: string; /** The identifier of the last sync operation. */ lastSyncId: number; /** Whether the operation was successful. */ success: boolean; } /** * A rich-text document that lives within a project, initiative, team, issue, release, or cycle. Documents support collaborative editing via ProseMirror/Yjs and store their content in a separate DocumentContent entity. Each document is associated with exactly one parent entity. * * @param request - function to call the graphql client * @param data - L.DocumentFragment response data */ declare class Document extends Request { private _creator?; private _initiative?; private _issue?; private _lastAppliedTemplate?; private _project?; private _release?; private _updatedBy?; constructor(request: LinearRequest, data: DocumentFragment); /** The time at which the entity was archived. Null if the entity has not been archived. */ archivedAt?: Date | null; /** The hex color of the document icon. Null if no custom color has been set. */ color?: string | null; /** The document's content in markdown format. */ content?: string | null; /** The time at which the entity was created. */ createdAt: Date; /** The ID of the document content associated with the document. */ documentContentId?: string | null; /** The time at which the document was hidden from the default view. Null if the document has not been hidden. */ hiddenAt?: Date | null; /** The icon of the document, either a decorative icon type or an emoji string. Null if no icon has been set. */ icon?: string | null; /** The unique identifier of the entity. */ id: string; /** The document's unique URL slug, used to construct human-readable URLs. */ slugId: string; /** The sort order of the document in its parent entity's resources list. This order is shared with other resource types such as external links. */ sortOrder: number; /** The title of the document. An empty string indicates an untitled document. */ title: string; /** A flag that indicates whether the document is in the trash bin. Trashed documents are archived and can be restored. */ trashed?: boolean | null; /** * The last time at which the entity was meaningfully updated. This is the same as the creation time if the entity hasn't * been updated after creation. */ updatedAt: Date; /** The canonical url for the document. */ url: string; /** The user who created the document. Null if the creator's account has been deleted. */ get creator(): LinearFetch | undefined; /** The ID of user who created the document. null if the creator's account has been deleted. */ get creatorId(): string | undefined; /** The initiative that the document is associated with. Null if the document belongs to a different parent entity type. */ get initiative(): LinearFetch | undefined; /** The ID of initiative that the document is associated with. null if the document belongs to a different parent entity type. */ get initiativeId(): string | undefined; /** The issue that the document is associated with. Null if the document belongs to a different parent entity type. */ get issue(): LinearFetch | undefined; /** The ID of issue that the document is associated with. null if the document belongs to a different parent entity type. */ get issueId(): string | undefined; /** The last template that was applied to this document. Null if no template has been applied. */ get lastAppliedTemplate(): LinearFetch