import * as Category from "@distilled.cloud/core/category"; import { connectionField, errorFields, errorSpec, listField, objectField, root, rootConnection, rootLeaf, rootList, scalarField, type ErrorSpec, type FieldWithArgs, type Query, type TypeMeta, } from "@distilled.cloud/core/graphql"; import type * as Redacted from "effect/Redacted"; // AUTO-GENERATED by scripts/generate.ts. Do not edit. import * as S from "effect/Schema"; /** API key or access token missing or rejected. */ export class LinearAuthenticationError extends S.TaggedError()( "LinearAuthenticationError", errorFields, ).pipe(Category.withAuthError) {} const LinearAuthenticationErrorSpec: ErrorSpec = errorSpec( LinearAuthenticationError, "LinearAuthenticationError", [{ code: "AUTHENTICATION_ERROR" }], { global: true }, ); /** An argument or input field was rejected. */ export class LinearInvalidInput extends S.TaggedError()( "LinearInvalidInput", errorFields, ).pipe(Category.withBadRequestError) {} const LinearInvalidInputSpec: ErrorSpec = errorSpec( LinearInvalidInput, "LinearInvalidInput", [{ code: "INVALID_INPUT" }, { code: "INPUT_ERROR" }], { global: true }, ); /** An entity the operation references does not exist or is not visible to the token. */ export class LinearNotFound extends S.TaggedError()( "LinearNotFound", errorFields, ).pipe(Category.withNotFoundError) {} const LinearNotFoundSpec: ErrorSpec = errorSpec( LinearNotFound, "LinearNotFound", [{ code: "INPUT_ERROR", messageIncludes: "Entity not found" }], { global: true }, ); /** Request or complexity rate limit exceeded. Linear answers HTTP 400; the reset time is in the X-RateLimit-*-Reset headers. */ export class LinearRateLimited extends S.TaggedError()( "LinearRateLimited", errorFields, ).pipe(Category.withThrottlingError, Category.withRetryable({ throttling: true })) {} const LinearRateLimitedSpec: ErrorSpec = errorSpec( LinearRateLimited, "LinearRateLimited", [{ code: "RATELIMITED" }], { retryable: true, global: true }, ); /** The GraphQL document failed schema validation. */ export class LinearValidationError extends S.TaggedError()( "LinearValidationError", errorFields, ).pipe(Category.withBadRequestError) {} const LinearValidationErrorSpec: ErrorSpec = errorSpec( LinearValidationError, "LinearValidationError", [{ code: "GRAPHQL_VALIDATION_FAILED" }], { global: true }, ); /** Errors every Linear root field can return. */ export type LinearGlobalError = | LinearAuthenticationError | LinearInvalidInput | LinearNotFound | LinearRateLimited | LinearValidationError; const globalErrors: ReadonlyArray = [ LinearAuthenticationErrorSpec, LinearInvalidInputSpec, LinearNotFoundSpec, LinearRateLimitedSpec, LinearValidationErrorSpec, ]; /** Every typed error the Linear SDK declares. */ export type LinearError = | LinearAuthenticationError | LinearInvalidInput | LinearNotFound | LinearRateLimited | LinearValidationError; /** A modifier that provides additional instructions on how the activity should be interpreted. */ export type AgentActivitySignal = "stop" | "continue" | "auth" | "select"; /** The type of an agent activity. */ export type AgentActivityType = | "thought" | "action" | "response" | "elicitation" | "error" | "prompt"; /** The status of an agent session. */ export type AgentSessionStatus = | "pending" | "active" | "stopping" | "complete" | "awaitingInput" | "error" | "stale"; /** [DEPRECATED] The type of an agent session. */ export type AgentSessionType = "commentThread"; /** Application used for the session: web browser, desktop, iOS, or Android. */ export type AuthenticationSessionType = "web" | "desktop" | "ios" | "android"; /** A reason the workspace cannot trust content from the authenticated OAuth application for Coding Sessions. */ export type CodingSessionsDisabledReason = | "CODING_SESSIONS_DISABLED" | "TRUSTED_EXTERNAL_SOURCES_UNAVAILABLE" | "APP_NOT_TRUSTED"; /** A built-in team view used by notification subscriptions. */ export type ContextViewType = | "activeIssues" | "activeCycle" | "upcomingCycle" | "backlog" | "triage"; /** [DEPRECATED] A type of customer status. */ export type CustomerStatusType = "active" | "inactive"; /** When an issue was added relative to its cycle. */ export type CyclePeriod = "before" | "during" | "after"; /** By which resolution is a date defined. */ export type DateResolutionType = "month" | "quarter" | "halfYear" | "year"; /** The day of the week. */ export type Day = | "Sunday" | "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday"; /** A package registry a dependency file's packages can be looked up in. */ export type DependencyEcosystem = "npm"; /** What a user can do with a document: edit, comment, or view. */ export type DocumentShareRole = "edit" | "comment" | "view"; /** The health status carried by a project update or initiative update draft. */ export type DraftUpdateHealthType = "onTrack" | "atRisk" | "offTrack"; /** The type of the email address. */ export type EmailIntakeAddressType = "team" | "template" | "asks" | "asksWeb"; /** The service that syncs an external entity to Linear. */ export type ExternalSyncService = "jira" | "github" | "slack"; export type FacetPageSource = "projects" | "initiatives" | "teamIssues" | "feed"; /** Cadence to generate feed summary */ export type FeedSummarySchedule = "daily" | "weekly" | "never"; /** By which resolution is frequency defined. */ export type FrequencyResolutionType = "daily" | "weekly"; /** The Git events that can trigger an automation rule. Each value corresponds to a pull/merge request lifecycle event (e.g., branch created, PR opened for review, PR merged). */ export type GitAutomationStates = "draft" | "start" | "review" | "mergeable" | "merge"; /** Instruction for the client after attempting to remove code access from a GitHub integration. */ export type GitHubRemoveCodeAccessAction = "Done" | "InstallBasicApp"; /** [Internal] The kind of link between an issue and a pull request. */ export type GitLinkKind = "closes" | "contributes" | "links"; /** The type of identity provider. */ export type IdentityProviderType = "general" | "webForms"; /** Which users of the source service an import maps to Linear users. */ export type ImportUsersOption = "matchAndInvite" | "matchOnly" | "skip"; /** Initiative lifecycle stage, from proposed and planned through active to completed or canceled. */ export type InitiativeStatus = "Proposed" | "Planned" | "Active" | "Completed" | "Canceled"; /** Different tabs available inside an initiative. */ export type InitiativeTab = "overview" | "projects" | "updates"; /** The health type when the update is created. */ export type InitiativeUpdateHealthType = "onTrack" | "atRisk" | "offTrack"; /** The visibility of an initiative. Derived from its lead team; public when no lead team is assigned. */ export type InitiativeVisibility = "public" | "restricted" | "private"; /** Linear supported integration services. */ export type IntegrationService = | "airbyte" | "claudeSecurity" | "datadog" | "discord" | "figma" | "figmaPlugin" | "front" | "github" | "gong" | "githubEnterpriseServer" | "githubCommit" | "githubImport" | "githubPersonal" | "githubCodeAccessPersonal" | "gitlab" | "gitlabPersonal" | "origin" | "googleCalendarPersonal" | "googleSheets" | "intercom" | "jira" | "jiraPersonal" | "launchDarkly" | "launchDarklyPersonal" | "loom" | "notion" | "opsgenie" | "pagerDuty" | "salesforce" | "slack" | "slackAsks" | "asksWeb" | "slackCustomViewNotifications" | "slackOrgProjectUpdatesPost" | "slackOrgInitiativeUpdatesPost" | "slackPersonal" | "slackPost" | "slackProjectPost" | "slackProjectUpdatesPost" | "slackInitiativePost" | "sentry" | "zendesk" | "email" | "mcpServerPersonal" | "mcpServer" | "microsoftTeams" | "microsoftPersonal" | "microsoftTeamsProjectPost"; /** The type of the issue relation. */ export type IssueRelationType = "blocks" | "duplicate" | "related" | "similar"; /** Issue update fields that are disallowed for users with only shared access. */ export type IssueSharedAccessDisallowedField = | "projectId" | "teamId" | "cycleId" | "projectMilestoneId"; /** Policy controlling whether and by whom issues in a team can be shared with non-team-members. */ export type IssueSharingPolicy = "disabled" | "adminsOnly" | "allMembers"; /** Progress of the Jira project's latest import into Linear. */ export type JiraProjectImportStatus = | "none" | "queued" | "importing" | "imported" | "failed" | "expired" | "deleting"; /** Why one project of a Jira project migration failed its checks. */ export type JiraProjectMigrationErrorCode = | "invalidOptions" | "duplicateProject" | "projectNotFound" | "projectAlreadySyncing" | "projectSyncsWithAnotherTeam" | "projectBeingImported" | "importDeletionRunning" | "projectChanged" | "teamNotFound" | "teamNotAccessible" | "teamInheritsWorkflowStatuses" | "teamQuotaExceeded" | "legacySyncDirection" | "missingTeamCreationPermission" | "missingInvitePermission" | "missingJiraAccess" | "missingWebhookPermission" | "missingCreateIssuesPermission" | "projectNotReadable" | "invalidJql" | "noMatchingIssues" | "jiraAuthFailed" | "jiraRateLimited" | "jiraUnavailable"; /** The current synchronization state between a Jira project and its Linear team. */ export type JiraProjectSyncStatus = "bidirectional" | "jiraToLinear" | "afterImport" | "notSyncing"; /** The direction in which a Jira project syncs with its Linear team. */ export type JiraSyncDirection = "bidirectional" | "jiraToLinear" | "legacyJiraToLinear"; /** The selection mode of a label group. */ export type LabelGroupType = "singleSelect" | "multiSelect"; /** The categories of notifications a user can subscribe to. */ export type NotificationCategory = | "assignments" | "statusChanges" | "commentsAndReplies" | "mentions" | "reactions" | "subscriptions" | "documentChanges" | "postsAndUpdates" | "reminders" | "reviews" | "loops" | "appsAndIntegrations" | "triage" | "customers" | "feed" | "billing" | "system"; /** The delivery channels a user can receive notifications in. */ export type NotificationChannel = "desktop" | "mobile" | "email" | "slack"; /** The delivery target type that caused a notification to be sent. */ export type NotificationSubscriptionType = | "customer" | "customView" | "cycle" | "label" | "issue" | "oauthClientApproval" | "project" | "initiative" | "document" | "pullRequest" | "team" | "user" | "workflowDefinition"; /** Distribution setting for an OAuth application. */ export type OAuthApplicationDistribution = "private" | "public"; /** OAuth grant type supported by an OAuth application. */ export type OAuthApplicationGrantType = "authorization_code" | "client_credentials"; /** The admin decision for an OAuth application installation request. */ export type OAuthClientApprovalStatus = "requested" | "approved" | "denied"; /** What type of auth is the domain used for. */ export type OrganizationDomainAuthType = "saml" | "general"; /** Whether a workspace invitation is pending, accepted, or expired. */ export type OrganizationInviteStatus = "pending" | "accepted" | "expired"; /** The entity that a quota limit applies to. */ export type OrganizationQuotaScope = "workspace" | "team" | "project" | "initiative"; /** Whether null values sort before or after non-null values. */ export type PaginationNulls = "first" | "last"; /** The timestamp used to order a paginated list. Forward pagination returns the newest results first. */ export type PaginationOrderBy = "createdAt" | "updatedAt"; /** Whether values sort in ascending or descending order. */ export type PaginationSortOrder = "Ascending" | "Descending"; /** Different tabs available inside a release pipeline. */ export type PipelineTab = "releaseNotes" | "releases"; /** The status of a project milestone. */ export type ProjectMilestoneStatus = "unstarted" | "next" | "overdue" | "done"; /** A type of project status. */ export type ProjectStatusType = | "backlog" | "planned" | "started" | "paused" | "completed" | "canceled"; /** Different tabs available inside a project. */ export type ProjectTab = "customers" | "documents" | "issues" | "loops" | "updates"; /** The health type when the project update is created. */ export type ProjectUpdateHealthType = "onTrack" | "atRisk" | "offTrack"; /** The frequency at which to send project update reminders. */ export type ProjectUpdateReminderFrequency = "week" | "twoWeeks" | "month" | "never"; /** [ALPHA] The decision made by a pull request reviewer. */ export type PullRequestReviewerDecision = | "pending" | "commented" | "approved" | "changesRequested" | "dismissed"; /** The different push subscription types. */ export type PushSubscriptionType = "web" | "apple" | "appleDevelopment" | "firebase"; /** Features release channel. */ export type ReleaseChannel = | "development" | "internal" | "privateBeta" | "beta" | "preRelease" | "public"; /** The generation status of a release note's body content. */ export type ReleaseNoteGenerationStatus = "pending" | "completed"; /** How a pipeline creates and manages releases. Continuous pipelines create completed releases and reuse matching version and commit SHA pairs on repeated syncs. Scheduled pipelines accumulate issues into a started release that is explicitly completed. */ export type ReleasePipelineType = "continuous" | "scheduled"; /** The type of a release stage, which determines the release's lifecycle state. Types include planned, started, completed, and canceled. Each pipeline must have at least one stage of each type, though only started stages may have multiple instances. */ export type ReleaseStageType = "planned" | "started" | "completed" | "canceled"; /** Which day count to use for SLA calculations. */ export type SLADayCountType = "all" | "onlyBusinessDays"; /** Determines when timing begins for an SLA applied by a rule. */ export type SLAStartMode = "ruleMatch" | "issueCreation"; /** The type of the semantic search result. */ export type SemanticSearchResultType = "issue" | "project" | "initiative" | "document"; /** Whether to send notifications to connected desktop clients, push subscribers, or both. */ export type SendStrategy = "desktopThenPush" | "desktopAndPush" | "desktop" | "push"; /** An issue's SLA risk or outcome. Canceled issues and issues without an SLA have no status. */ export type SlaStatus = "Breached" | "HighRisk" | "MediumRisk" | "LowRisk" | "Completed" | "Failed"; /** The generation status of a summary. */ export type SummaryGenerationStatus = "pending" | "completed" | "failed"; /** All possible roles within a team in terms of access to team settings and operations. */ export type TeamRoleType = "owner" | "member"; /** The visibility of a team. A team can be public, private, or restricted within an enclosing private-team boundary. */ export type TeamVisibility = "public" | "restricted" | "private"; /** Which action should be taken after an issue is added to triage. */ export type TriageResponsibilityAction = "assign" | "notify"; /** The condition a usage alert was triggered by. */ export type UsageAlertType = "lowBalance" | "exhausted" | "expiringPromoCredit"; /** A built-in user view used by notification subscriptions. */ export type UserContextViewType = "assigned"; /** The types of flags that the user can have. */ export type UserFlagType = | "updatedSlackThreadSyncIntegration" | "completedOnboarding" | "desktopInstalled" | "teamsPageIntroductionDismissed" | "joinTeamIntroductionDismissed" | "desktopDownloadToastDismissed" | "emptyBacklogDismissed" | "emptyCustomViewsDismissed" | "emptyActiveIssuesDismissed" | "emptyMyIssuesDismissed" | "triageWelcomeDismissed" | "cycleWelcomeDismissed" | "projectWelcomeDismissed" | "projectBacklogWelcomeDismissed" | "projectUpdatesWelcomeDismissed" | "pulseWelcomeDismissed" | "analyticsWelcomeDismissed" | "insightsWelcomeDismissed" | "insightsHelpDismissed" | "figmaPromptDismissed" | "issueMovePromptCompleted" | "migrateThemePreference" | "listSelectionTip" | "emptyParagraphSlashCommandTip" | "editorSlashCommandUsed" | "canPlaySnake" | "canPlayTetris" | "importBannerDismissed" | "tryInvitePeopleDismissed" | "tryRoadmapsDismissed" | "tryCyclesDismissed" | "tryTriageDismissed" | "tryGithubDismissed" | "tryCursorDismissed" | "tryCodexDismissed" | "rewindBannerDismissed" | "helpIslandFeatureInsightsDismissed" | "dueDateShortcutMigration" | "slackCommentReactionTipShown" | "issueLabelSuggestionUsed" | "threadedCommentsNudgeIsSeen" | "desktopTabsOnboardingDismissed" | "milestoneOnboardingIsSeenAndDismissed" | "projectBoardOnboardingIsSeenAndDismissed" | "figmaPluginBannerDismissed" | "initiativesBannerDismissed" | "commandMenuClearShortcutTip" | "slackBotWelcomeMessageShown" | "slackAiFeedbackAcknowledgementShown" | "teamsBotWelcomeMessageShown" | "slackAgentPromoFromCreateNewIssueShown" | "agentExamplesDismissed" | "agentHomePageNotice" | "agentHomeHeadlineSeen" | "agentSharedSkillsPromoDismissed" | "agentSharedSkillsSplashAnimationSeen" | "agentLoopsPromoShown" | "loopEditRestrictionSpeedbumpShown" | "slackProjectChannelsPromoDismissed" | "slackProjectChannelsPromoShown" | "reviewsPromptToConnectGithubDismissed" | "workspaceSetupCompletedHidden" | "pinnedDocumentsEmptyStateDismissed" | "all"; /** Operations that can be applied to UserFlagType. */ export type UserFlagUpdateOperation = "incr" | "decr" | "clear" | "lock"; /** The different permission roles available to users in a workspace. */ export type UserRoleType = "owner" | "admin" | "guest" | "user" | "app"; /** Device type for theme */ export type UserSettingsThemeDeviceType = "desktop" | "mobileWeb"; /** Theme color mode */ export type UserSettingsThemeMode = "light" | "dark"; /** Theme preset options */ export type UserSettingsThemePreset = | "system" | "light" | "pureLight" | "dark" | "magicBlue" | "classicDark" | "custom"; /** The type of view preferences (either user or workspace level preferences). */ export type ViewPreferencesType = "organization" | "user"; /** The client view this custom view is targeting. */ export type ViewType = | "inbox" | "inboxPriority" | "inboxOther" | "myIssues" | "myIssuesCreatedByMe" | "myIssuesSubscribedTo" | "myIssuesActivity" | "myIssuesSharedWithMe" | "userProfile" | "userProfileCreatedByUser" | "userProfileDiffs" | "userProfileProjects" | "board" | "completedCycle" | "cycle" | "upcomingCycle" | "release" | "releaseOverviewIssues" | "continuousPipelineReleases" | "scheduledPipelineReleases" | "project" | "projectDocuments" | "label" | "triage" | "activeIssues" | "backlog" | "subIssues" | "subDocuments" | "allIssues" | "dashboards" | "customView" | "customViews" | "initiative" | "initiativeOverview" | "initiativeOverviewSubInitiatives" | "initiatives" | "initiativesAll" | "initiativesPlanned" | "initiativesProposed" | "initiativesCompleted" | "initiativesCanceled" | "projects" | "projectsAll" | "projectsBacklog" | "projectsClosed" | "projectLabel" | "initiativeLabel" | "search" | "splitSearch" | "teams" | "archive" | "quickView" | "issueIdentifiers" | "customers" | "customer" | "embeddedCustomerNeeds" | "projectCustomerNeeds" | "reviews" | "myReviews" | "createdReviews" | "agents" | "focus" | "feedAll" | "feedCreated" | "feedFollowing" | "feedPopular" | "workspaceMembers" | "myDocuments" | "sharedDocuments" | "recentDocuments" | "allDocuments" | "teamDocuments" | "workspaceDocuments" | "releasePipelines" | "automations" | "automationRunHistory" | "roadmapAll" | "roadmap" | "roadmaps" | "roadmapClosed" | "roadmapBacklog"; /** A webhook event stream resource type that an OAuth application can subscribe to. */ export type WebhookResourceType = | "AgentSessionEvent" | "Comment" | "CustomerNeed" | "Customer" | "Cycle" | "Document" | "Reaction" | "AppUserNotification" | "InitiativeUpdate" | "Initiative" | "IssueLabel" | "IssueSLA" | "Attachment" | "Issue" | "OAuthAuthorization" | "PermissionChange" | "ProjectLabel" | "ProjectUpdate" | "Project" | "ReleaseNote" | "Release" | "User"; /** How an update activates a workflow after its condition filters are evaluated. */ export type WorkflowActivationMode = | "conditionsStartedMatching" | "anyUpdate" | "watchedPropertyChanged" | "collectionChanged"; /** Who can edit a workflow within its existing access scope. */ export type WorkflowDefinitionEditAccess = "everyone" | "workspaceAdmins" | "teamOwners" | "owner"; /** The intelligence level used for a workflow run. auto lets Linear choose. */ export type WorkflowIntelligence = "auto" | "low" | "medium" | "high"; /** The event that starts a workflow, subject to its conditions and activation mode. */ export type WorkflowTrigger = | "entityCreated" | "entityUpdated" | "entityCreatedOrUpdated" | "entityRemoved" | "entityUnarchived" | "cycleStarted" | "cycleEnded" | "commentAdded" | "commentResolved" | "reviewSubmitted" | "addedToMergeQueue" | "removedFromMergeQueue" | "updatePosted" | "updateDue" | "chatMessagePosted" | "chatReactionAdded" | "customerRequestAdded" | "webhookReceived"; /** The entity or external source that supplies workflow events. */ export type WorkflowTriggerType = | "issue" | "project" | "document" | "initiative" | "team" | "release" | "cycle" | "schedule" | "webhook" | "chat" | "pullRequest" | "aiConversation" | "agentSession"; /** The purpose of an automation workflow. */ export type WorkflowType = | "sla" | "automation" | "viewSubscription" | "triage" | "triageAutomation" | "release"; /** Activity collection filtering options. */ export interface ActivityCollectionFilter { readonly id?: IDComparator | null | undefined; readonly createdAt?: DateComparator | null | undefined; readonly updatedAt?: DateComparator | null | undefined; readonly user?: UserFilter | null | undefined; readonly and?: ReadonlyArray | null | undefined; readonly or?: ReadonlyArray | null | undefined; readonly some?: ActivityFilter | null | undefined; readonly every?: ActivityFilter | null | undefined; readonly length?: NumberComparator | null | undefined; } /** Activity filtering options. */ export interface ActivityFilter { readonly id?: IDComparator | null | undefined; readonly createdAt?: DateComparator | null | undefined; readonly updatedAt?: DateComparator | null | undefined; readonly user?: UserFilter | null | undefined; readonly and?: ReadonlyArray | null | undefined; readonly or?: ReadonlyArray | null | undefined; } /** An activity to publish to a session owned by your authenticated agent app. Choose the content type for the step you want to show, and supply signalMetadata when using an auth or select signal. Linear creates user prompt activities itself; this input accepts only agent output. */ export interface AgentActivityCreateInput { readonly id?: string | null | undefined; readonly agentSessionId: string; readonly signal?: "stop" | "continue" | "auth" | "select" | null | undefined; readonly signalMetadata?: unknown | null | undefined; readonly contextualMetadata?: unknown | null | undefined; readonly content: unknown; readonly ephemeral?: boolean | null | undefined; } /** Filters agent activities by their session, content type, source comment, or common entity fields. Use agentSessionId with an equality comparison to read activities for one session; combine conditions with and or or for more specific results. */ export interface AgentActivityFilter { readonly id?: IDComparator | null | undefined; readonly createdAt?: DateComparator | null | undefined; readonly updatedAt?: DateComparator | null | undefined; readonly agentSessionId?: StringComparator | null | undefined; readonly type?: StringComparator | null | undefined; readonly sourceComment?: NullableCommentFilter | null | undefined; readonly and?: ReadonlyArray | null | undefined; readonly or?: ReadonlyArray | null | undefined; } /** Starts your agent on an existing issue comment thread. The comment must be an unarchived root comment with no existing session. Include external links if users should be able to follow the work in your application. */ export interface AgentSessionCreateOnComment { readonly commentId: string; readonly externalLink?: string | null | undefined; readonly externalUrls?: ReadonlyArray | null | undefined; } /** Starts your agent on an issue and creates a comment thread for the session. Supply the issue UUID or identifier, such as ENG-123. You can include labeled links to the agent's work outside Linear. */ export interface AgentSessionCreateOnIssue { readonly issueId: string; readonly externalLink?: string | null | undefined; readonly externalUrls?: ReadonlyArray | null | undefined; } /** A labeled link to work or context hosted outside Linear, such as the agent's own session page. URLs must use HTTP or HTTPS. Use distinct URLs within a list; the URL identifies the entry when adding or removing links. */ export interface AgentSessionExternalUrlInput { readonly url: string; readonly label: string; } /** Changes to the links shown for your agent session. Supply externalUrls to replace the whole list, or use addedExternalUrls, removedExternalUrls, or both for incremental changes. Do not combine replacement with incremental changes. Omitted fields remain unchanged. */ export interface AgentSessionUpdateExternalUrlInput { readonly externalLink?: string | null | undefined; readonly externalUrls?: ReadonlyArray | null | undefined; readonly addedExternalUrls?: ReadonlyArray | null | undefined; readonly removedExternalUrls?: ReadonlyArray | null | undefined; } /** Changes to a session owned by your agent app. Omitted fields keep their current values. Use summary for its display title, plan for its current steps, and the external URL fields for links to your application. A title-only update does not acknowledge a pending session; other updates can mark a pending or stale session active. */ export interface AgentSessionUpdateInput { readonly summary?: string | null | undefined; readonly externalLink?: string | null | undefined; readonly externalUrls?: ReadonlyArray | null | undefined; readonly addedExternalUrls?: ReadonlyArray | null | undefined; readonly removedExternalUrls?: ReadonlyArray | null | undefined; readonly plan?: unknown | null | undefined; } /** Instructions and optional display details for a new agent skill. body is required and accepts Markdown. Omit teamId to create a personal skill owned by the authenticated user, or supply a team UUID to make it available to that team. Team skills require the team's agent skill management permission. */ export interface AgentSkillCreateInput { readonly id?: string | null | undefined; readonly teamId?: string | null | undefined; readonly title?: string | null | undefined; readonly body: string; readonly icon?: string | null | undefined; readonly color?: string | null | undefined; } /** Filters agent skills by owner, workspace sharing, team, or common entity fields. A skill without a team can be personal or shared with the workspace; use shared to distinguish those cases. */ export interface AgentSkillFilter { readonly id?: IDComparator | null | undefined; readonly createdAt?: DateComparator | null | undefined; readonly updatedAt?: DateComparator | null | undefined; readonly ownerId?: IDComparator | null | undefined; readonly shared?: BooleanComparator | null | undefined; readonly team?: NullableTeamFilter | null | undefined; readonly and?: ReadonlyArray | null | undefined; readonly or?: ReadonlyArray | null | undefined; } /** Changes to an existing agent skill. Supply at least one field; omitted fields keep their current values. A supplied body replaces all instructions rather than appending to them. You cannot edit an inherited copy directly; update the skill on the team that owns its source. */ export interface AgentSkillUpdateInput { readonly teamId?: string | null | undefined; readonly body?: string | null | undefined; readonly title?: string | null | undefined; readonly icon?: string | null | undefined; readonly color?: string | null | undefined; } /** Registers a key that Airbyte can use to export workspace data. Generate and keep the key before calling this mutation; Linear stores its hash and does not return the original key. */ export interface AirbyteConfigurationInput { readonly apiKey: string | Redacted.Redacted; } /** Customer approximate need count sorting options. */ export interface ApproximateNeedCountSort { readonly nulls?: "first" | "last" | null | undefined; readonly order?: "Ascending" | "Descending" | null | undefined; } /** Issue assignee sorting options. */ export interface AssigneeSort { readonly nulls?: "first" | "last" | null | undefined; readonly order?: "Ascending" | "Descending" | null | undefined; } /** Conditions on a collection of attachments. Use some to require a matching item, every to check the whole collection, or length to check its size. Direct attachment fields act as some only when no and, or, some, every, or length clause is supplied. */ export interface AttachmentCollectionFilter { readonly id?: IDComparator | null | undefined; readonly createdAt?: DateComparator | null | undefined; readonly updatedAt?: DateComparator | null | undefined; readonly title?: StringComparator | null | undefined; readonly subtitle?: NullableStringComparator | null | undefined; readonly url?: StringComparator | null | undefined; readonly creator?: NullableUserFilter | null | undefined; readonly sourceType?: SourceTypeComparator | null | undefined; readonly and?: ReadonlyArray | null | undefined; readonly or?: ReadonlyArray | null | undefined; readonly some?: AttachmentFilter | null | undefined; readonly every?: AttachmentFilter | null | undefined; readonly length?: NumberComparator | null | undefined; } /** The URL and display details to attach to an issue. If that URL is already attached to the issue, the existing attachment is updated. A supplied commentBody creates a linked comment only when a new attachment is created. */ export interface AttachmentCreateInput { readonly id?: string | null | undefined; readonly title: string; readonly subtitle?: string | null | undefined; readonly url: string; readonly issueId: string; readonly iconUrl?: string | null | undefined; readonly metadata?: unknown | null | undefined; readonly groupBySource?: boolean | null | undefined; readonly commentBody?: string | null | undefined; readonly createAsUser?: string | null | undefined; readonly displayIconUrl?: string | null | undefined; } /** Conditions used to select attachments. Supplied fields are combined with AND; use `or` to accept alternatives and `and` to group conditions. */ export interface AttachmentFilter { readonly id?: IDComparator | null | undefined; readonly createdAt?: DateComparator | null | undefined; readonly updatedAt?: DateComparator | null | undefined; readonly title?: StringComparator | null | undefined; readonly subtitle?: NullableStringComparator | null | undefined; readonly url?: StringComparator | null | undefined; readonly creator?: NullableUserFilter | null | undefined; readonly sourceType?: SourceTypeComparator | null | undefined; readonly and?: ReadonlyArray | null | undefined; readonly or?: ReadonlyArray | null | undefined; } /** The display details to update on an existing attachment. title is required; omitted optional fields keep their values. Supplied metadata replaces the entire object. The attachment's URL and issue cannot be changed through this input. */ export interface AttachmentUpdateInput { readonly title: string; readonly subtitle?: string | null | undefined; readonly metadata?: unknown | null | undefined; readonly iconUrl?: string | null | undefined; } /** Filters audit events by action type, actor, request IP or country, and selected event metadata. Metadata filters match only events that recorded those particular keys; they do not search every resource mentioned by an event. */ export interface AuditEntryFilter { readonly id?: IDComparator | null | undefined; readonly createdAt?: DateComparator | null | undefined; readonly updatedAt?: DateComparator | null | undefined; readonly type?: StringComparator | null | undefined; readonly ip?: StringComparator | null | undefined; readonly countryCode?: StringComparator | null | undefined; readonly entityId?: StringComparator | null | undefined; readonly entityType?: StringComparator | null | undefined; readonly entityIdentifier?: StringComparator | null | undefined; readonly actor?: NullableUserFilter | null | undefined; readonly and?: ReadonlyArray | null | undefined; readonly or?: ReadonlyArray | null | undefined; } /** Filters a boolean field. Use `{ eq: true }` to require it to be enabled, or `{ eq: false }` to require it to be disabled. A missing value does not match either condition. */ export interface BooleanComparator { readonly eq?: boolean | null | undefined; readonly neq?: boolean | null | undefined; } /** A candidate code repository to consider when generating repository suggestions for an issue. */ export interface CandidateRepository { readonly repositoryFullName: string; readonly hostname: string; } /** Conditions on a collection of comments. Use some to require a matching item, every to check the whole collection, or length to check its size. Direct comment fields act as some only when no and, or, some, every, or length clause is supplied. */ export interface CommentCollectionFilter { readonly id?: IDComparator | null | undefined; readonly createdAt?: DateComparator | null | undefined; readonly updatedAt?: DateComparator | null | undefined; readonly body?: StringComparator | null | undefined; readonly user?: UserFilter | null | undefined; readonly issue?: NullableIssueFilter | null | undefined; readonly projectUpdate?: NullableProjectUpdateFilter | null | undefined; readonly initiativeUpdate?: NullableInitiativeUpdateFilter | null | undefined; readonly parent?: NullableCommentFilter | null | undefined; readonly documentContent?: NullableDocumentContentFilter | null | undefined; readonly project?: NullableProjectFilter | null | undefined; readonly initiative?: NullableInitiativeFilter | null | undefined; readonly reactions?: ReactionCollectionFilter | null | undefined; readonly needs?: CustomerNeedCollectionFilter | null | undefined; readonly and?: ReadonlyArray | null | undefined; readonly or?: ReadonlyArray | null | undefined; readonly some?: CommentFilter | null | undefined; readonly every?: CommentFilter | null | undefined; readonly length?: NumberComparator | null | undefined; } /** The Markdown body and destination for a new comment. Supply exactly one parent resource, such as issueId or documentContentId. To reply, also set parentId to the thread's root comment and use the same resource as that thread. */ export interface CommentCreateInput { readonly id?: string | null | undefined; readonly body?: string | null | undefined; readonly issueId?: string | null | undefined; readonly projectUpdateId?: string | null | undefined; readonly initiativeUpdateId?: string | null | undefined; readonly postId?: string | null | undefined; readonly documentContentId?: string | null | undefined; readonly projectId?: string | null | undefined; readonly initiativeId?: string | null | undefined; readonly parentId?: string | null | undefined; readonly createAsUser?: string | null | undefined; readonly displayIconUrl?: string | null | undefined; readonly createdAt?: string | null | undefined; readonly doNotSubscribeToIssue?: boolean | null | undefined; readonly createOnSyncedSlackThread?: boolean | null | undefined; readonly quotedText?: string | null | undefined; } /** Conditions used to select comments. Supplied fields are combined with AND; use `or` to accept alternatives and `and` to group conditions. */ export interface CommentFilter { readonly id?: IDComparator | null | undefined; readonly createdAt?: DateComparator | null | undefined; readonly updatedAt?: DateComparator | null | undefined; readonly body?: StringComparator | null | undefined; readonly user?: UserFilter | null | undefined; readonly issue?: NullableIssueFilter | null | undefined; readonly projectUpdate?: NullableProjectUpdateFilter | null | undefined; readonly initiativeUpdate?: NullableInitiativeUpdateFilter | null | undefined; readonly parent?: NullableCommentFilter | null | undefined; readonly documentContent?: NullableDocumentContentFilter | null | undefined; readonly project?: NullableProjectFilter | null | undefined; readonly initiative?: NullableInitiativeFilter | null | undefined; readonly reactions?: ReactionCollectionFilter | null | undefined; readonly needs?: CustomerNeedCollectionFilter | null | undefined; readonly and?: ReadonlyArray | null | undefined; readonly or?: ReadonlyArray | null | undefined; } /** The replacement Markdown body for an existing comment. Omit body to leave the content unchanged. quotedText is accepted by this input but is not currently applied by commentUpdate. */ export interface CommentUpdateInput { readonly body?: string | null | undefined; readonly quotedText?: string | null | undefined; } /** Issue completion date sorting options. */ export interface CompletedAtSort { readonly nulls?: "first" | "last" | null | undefined; readonly order?: "Ascending" | "Descending" | null | undefined; } /** A message to Linear support from the authenticated user. Choose a message category and provide the message itself. Optional device, browser, and client details help support understand the context. */ export interface ContactCreateInput { readonly type: string; readonly message: string; readonly operatingSystem?: string | null | undefined; readonly browser?: string | null | undefined; readonly device?: string | null | undefined; readonly clientVersion?: string | null | undefined; readonly disappointmentRating?: number | null | undefined; } /** [Internal] Comparator for content. */ export interface ContentComparator { readonly contains?: string | null | undefined; readonly notContains?: string | null | undefined; } /** Issue creation date sorting options. */ export interface CreatedAtSort { readonly nulls?: "first" | "last" | null | undefined; readonly order?: "Ascending" | "Descending" | null | undefined; } /** The name, scope, and filters for a saved view. The current user owns the new view, which is personal unless shared is true. Choose the filter field for the kind of items you want to show; an issue view with no filter matches all issues in its scope that the viewer can access. */ export interface CustomViewCreateInput { readonly id?: string | null | undefined; readonly name: string; readonly description?: string | null | undefined; readonly icon?: string | null | undefined; readonly color?: string | null | undefined; readonly teamId?: string | null | undefined; readonly projectId?: string | null | undefined; readonly initiativeId?: string | null | undefined; readonly ownerId?: string | null | undefined; readonly filterData?: IssueFilter | null | undefined; readonly projectFilterData?: ProjectFilter | null | undefined; readonly initiativeFilterData?: InitiativeFilter | null | undefined; readonly feedItemFilterData?: FeedItemFilter | null | undefined; readonly shared?: boolean | null | undefined; } /** Custom view creation date sorting options. */ export interface CustomViewCreatedAtSort { readonly nulls?: "first" | "last" | null | undefined; readonly order?: "Ascending" | "Descending" | null | undefined; } /** Conditions used to select saved views. Supplied fields are combined with AND; use `or` to accept alternatives and `and` to group conditions. */ export interface CustomViewFilter { readonly id?: IDComparator | null | undefined; readonly createdAt?: DateComparator | null | undefined; readonly updatedAt?: DateComparator | null | undefined; readonly name?: StringComparator | null | undefined; readonly modelName?: StringComparator | null | undefined; readonly team?: NullableTeamFilter | null | undefined; readonly creator?: UserFilter | null | undefined; readonly shared?: BooleanComparator | null | undefined; readonly hasFacet?: boolean | null | undefined; readonly and?: ReadonlyArray | null | undefined; readonly or?: ReadonlyArray | null | undefined; } /** Custom view name sorting options. */ export interface CustomViewNameSort { readonly nulls?: "first" | "last" | null | undefined; readonly order?: "Ascending" | "Descending" | null | undefined; } /** Custom view shared status sorting options. Ascending order puts shared views last. */ export interface CustomViewSharedSort { readonly nulls?: "first" | "last" | null | undefined; readonly order?: "Ascending" | "Descending" | null | undefined; } /** Sorts views by a single property. Supply exactly one sort option per entry. */ export interface CustomViewSortInput { readonly name?: CustomViewNameSort | null | undefined; readonly createdAt?: CustomViewCreatedAtSort | null | undefined; readonly shared?: CustomViewSharedSort | null | undefined; readonly updatedAt?: CustomViewUpdatedAtSort | null | undefined; } /** The changes to a saved view's name, appearance, scope, or filters. Omitted fields keep their values. Each supplied filter object replaces that saved filter rather than merging individual conditions. */ export interface CustomViewUpdateInput { readonly name?: string | null | undefined; readonly description?: string | null | undefined; readonly icon?: string | null | undefined; readonly color?: string | null | undefined; readonly teamId?: string | null | undefined; readonly ownerId?: string | null | undefined; readonly filterData?: IssueFilter | null | undefined; readonly projectFilterData?: ProjectFilter | null | undefined; readonly initiativeFilterData?: InitiativeFilter | null | undefined; readonly feedItemFilterData?: FeedItemFilter | null | undefined; readonly shared?: boolean | null | undefined; } /** Custom view update date sorting options. */ export interface CustomViewUpdatedAtSort { readonly nulls?: "first" | "last" | null | undefined; readonly order?: "Ascending" | "Descending" | null | undefined; } /** Issue customer count sorting options. */ export interface CustomerCountSort { readonly nulls?: "first" | "last" | null | undefined; readonly order?: "Ascending" | "Descending" | null | undefined; } /** The account details for a new customer. Provide its name, and optionally business domains or external-system IDs for matching requests. Domains and external IDs must be unique across customers in the workspace, including archived customers. */ export interface CustomerCreateInput { readonly id?: string | null | undefined; readonly name: string; readonly domains?: ReadonlyArray | null | undefined; readonly externalIds?: ReadonlyArray | null | undefined; readonly slackChannelId?: string | null | undefined; readonly ownerId?: string | null | undefined; readonly statusId?: string | null | undefined; readonly revenue?: number | null | undefined; readonly size?: number | null | undefined; readonly tierId?: string | null | undefined; readonly logoUrl?: string | null | undefined; readonly mainSourceId?: string | null | undefined; } /** Customer creation date sorting options. */ export interface CustomerCreatedAtSort { readonly nulls?: "first" | "last" | null | undefined; readonly order?: "Ascending" | "Descending" | null | undefined; } /** Filters customers by name, domains, owner, customer needs, revenue, size, status, or tier. Supplied conditions must match together; use and and or to combine nested filters. */ export interface CustomerFilter { readonly id?: IDComparator | null | undefined; readonly createdAt?: DateComparator | null | undefined; readonly updatedAt?: DateComparator | null | undefined; readonly name?: StringComparator | null | undefined; readonly slackChannelId?: StringComparator | null | undefined; readonly domains?: StringArrayComparator | null | undefined; readonly externalIds?: StringArrayComparator | null | undefined; readonly owner?: NullableUserFilter | null | undefined; readonly needs?: CustomerNeedCollectionFilter | null | undefined; readonly revenue?: NumberComparator | null | undefined; readonly size?: NumberComparator | null | undefined; readonly status?: CustomerStatusFilter | null | undefined; readonly tier?: CustomerTierFilter | null | undefined; readonly and?: ReadonlyArray | null | undefined; readonly or?: ReadonlyArray | null | undefined; } /** Issue customer important count sorting options. */ export interface CustomerImportantCountSort { readonly nulls?: "first" | "last" | null | undefined; readonly order?: "Ascending" | "Descending" | null | undefined; } /** Filters a related collection of customer needs. Use some or every to test its members and length to test its size, for example length: { eq: 0 } for an empty collection. Direct property filters act as some only when no collection clause is supplied. */ export interface CustomerNeedCollectionFilter { readonly id?: IDComparator | null | undefined; readonly createdAt?: DateComparator | null | undefined; readonly updatedAt?: DateComparator | null | undefined; readonly priority?: NumberComparator | null | undefined; readonly project?: NullableProjectFilter | null | undefined; readonly issue?: NullableIssueFilter | null | undefined; readonly comment?: NullableCommentFilter | null | undefined; readonly customer?: NullableCustomerFilter | null | undefined; readonly and?: ReadonlyArray | null | undefined; readonly or?: ReadonlyArray | null | undefined; readonly some?: CustomerNeedFilter | null | undefined; readonly every?: CustomerNeedFilter | null | undefined; readonly length?: NumberComparator | null | undefined; } /** Input for creating a customer need from an existing issue attachment. If the attachment already has an archived need, it will be unarchived instead. */ export interface CustomerNeedCreateFromAttachmentInput { readonly attachmentId: string; } /** The issue and optional customer details for a new request. Provide issueId when using the public API. You can include Markdown feedback and a source attachment, and identify the customer by either its UUID or external-system ID. */ export interface CustomerNeedCreateInput { readonly id?: string | null | undefined; readonly customerId?: string | null | undefined; readonly customerExternalId?: string | null | undefined; readonly issueId?: string | null | undefined; readonly commentId?: string | null | undefined; readonly attachmentId?: string | null | undefined; readonly priority?: number | null | undefined; readonly body?: string | null | undefined; readonly attachmentUrl?: string | null | undefined; readonly createAsUser?: string | null | undefined; readonly displayIconUrl?: string | null | undefined; readonly createdAt?: string | null | undefined; } /** Filters customer needs by priority or the linked customer, issue, project, or comment. Supplied conditions must match together; use and and or to combine nested filters. */ export interface CustomerNeedFilter { readonly id?: IDComparator | null | undefined; readonly createdAt?: DateComparator | null | undefined; readonly updatedAt?: DateComparator | null | undefined; readonly priority?: NumberComparator | null | undefined; readonly project?: NullableProjectFilter | null | undefined; readonly issue?: NullableIssueFilter | null | undefined; readonly comment?: NullableCommentFilter | null | undefined; readonly customer?: NullableCustomerFilter | null | undefined; readonly and?: ReadonlyArray | null | undefined; readonly or?: ReadonlyArray | null | undefined; } /** Changes to an existing customer request. Omit fields to keep their current values. Moving the request to another issue also moves its source attachment, and applyPriorityToRelatedNeeds can update other requests from the same customer. */ export interface CustomerNeedUpdateInput { readonly id?: string | null | undefined; readonly customerId?: string | null | undefined; readonly customerExternalId?: string | null | undefined; readonly issueId?: string | null | undefined; readonly priority?: number | null | undefined; readonly applyPriorityToRelatedNeeds?: boolean | null | undefined; readonly body?: string | null | undefined; readonly attachmentUrl?: string | null | undefined; } /** Issue customer revenue sorting options. */ export interface CustomerRevenueSort { readonly nulls?: "first" | "last" | null | undefined; readonly order?: "Ascending" | "Descending" | null | undefined; } /** Issue customer sorting options. */ export interface CustomerSort { readonly nulls?: "first" | "last" | null | undefined; readonly order?: "Ascending" | "Descending" | null | undefined; } /** Customer sorting options. */ export interface CustomerSortInput { readonly name?: NameSort | null | undefined; readonly createdAt?: CustomerCreatedAtSort | null | undefined; readonly owner?: OwnerSort | null | undefined; readonly status?: CustomerStatusSort | null | undefined; readonly revenue?: RevenueSort | null | undefined; readonly size?: SizeSort | null | undefined; readonly tier?: TierSort | null | undefined; readonly approximateNeedCount?: ApproximateNeedCountSort | null | undefined; } /** The name and display details for a new customer lifecycle status. Supply at least one of name or displayName; when name is omitted, displayName is used as its name. Omit position to add the status at the end. */ export interface CustomerStatusCreateInput { readonly id?: string | null | undefined; readonly name?: string | null | undefined; readonly color: string; readonly description?: string | null | undefined; readonly position?: number | null | undefined; readonly displayName?: string | null | undefined; } /** Filters customer statuses by name, type, display position, color, or description. Supplied conditions must match together; use and and or to combine nested filters. */ export interface CustomerStatusFilter { readonly id?: IDComparator | null | undefined; readonly createdAt?: DateComparator | null | undefined; readonly updatedAt?: DateComparator | null | undefined; readonly name?: StringComparator | null | undefined; readonly description?: StringComparator | null | undefined; readonly position?: NumberComparator | null | undefined; readonly type?: StringComparator | null | undefined; readonly color?: StringComparator | null | undefined; readonly and?: ReadonlyArray | null | undefined; readonly or?: ReadonlyArray | null | undefined; } /** Customer status sorting options. */ export interface CustomerStatusSort { readonly nulls?: "first" | "last" | null | undefined; readonly order?: "Ascending" | "Descending" | null | undefined; } /** Changes to a customer lifecycle status. Omitted fields keep their current values. The updated name or display name must not conflict with another status. */ export interface CustomerStatusUpdateInput { readonly name?: string | null | undefined; readonly color?: string | null | undefined; readonly description?: string | null | undefined; readonly position?: number | null | undefined; readonly displayName?: string | null | undefined; } /** The name and display details for a customer tier. Supply at least one of name or displayName; when name is omitted, displayName is used as its name. Omit position to add the tier at the end. */ export interface CustomerTierCreateInput { readonly id?: string | null | undefined; readonly name?: string | null | undefined; readonly color: string; readonly description?: string | null | undefined; readonly position?: number | null | undefined; readonly displayName?: string | null | undefined; } /** Filters customer tiers by display name, position, color, or description. Supplied conditions must match together; use and and or to combine nested filters. */ export interface CustomerTierFilter { readonly id?: IDComparator | null | undefined; readonly createdAt?: DateComparator | null | undefined; readonly updatedAt?: DateComparator | null | undefined; readonly null?: boolean | null | undefined; readonly displayName?: StringComparator | null | undefined; readonly description?: StringComparator | null | undefined; readonly position?: NumberComparator | null | undefined; readonly color?: StringComparator | null | undefined; readonly and?: ReadonlyArray | null | undefined; readonly or?: ReadonlyArray | null | undefined; } /** Changes to a customer tier. Omitted fields keep their current values. The updated name or display name must not conflict with another tier. */ export interface CustomerTierUpdateInput { readonly name?: string | null | undefined; readonly color?: string | null | undefined; readonly description?: string | null | undefined; readonly position?: number | null | undefined; readonly displayName?: string | null | undefined; } /** Changes to an existing customer. Omit fields to keep their values; domains and externalIds replace their respective lists. For integration-managed customers, fields controlled by the integration are ignored, and a request with no editable fields fails. */ export interface CustomerUpdateInput { readonly name?: string | null | undefined; readonly domains?: ReadonlyArray | null | undefined; readonly externalIds?: ReadonlyArray | null | undefined; readonly slackChannelId?: string | null | undefined; readonly ownerId?: string | null | undefined; readonly statusId?: string | null | undefined; readonly revenue?: number | null | undefined; readonly size?: number | null | undefined; readonly tierId?: string | null | undefined; readonly logoUrl?: string | null | undefined; readonly mainSourceId?: string | null | undefined; } /** Identifiers and account details for finding or creating a customer. Supply matching information through id, externalId, slackChannelId, or domains. If no match is found, name is required. Updates through this input can override integration-managed fields. */ export interface CustomerUpsertInput { readonly id?: string | null | undefined; readonly name?: string | null | undefined; readonly domains?: ReadonlyArray | null | undefined; readonly externalId?: string | null | undefined; readonly slackChannelId?: string | null | undefined; readonly ownerId?: string | null | undefined; readonly statusId?: string | null | undefined; readonly revenue?: number | null | undefined; readonly size?: number | null | undefined; readonly tierId?: string | null | undefined; readonly logoUrl?: string | null | undefined; readonly tierName?: string | null | undefined; } /** Legacy input for cycleCreate, which is no longer supported. */ export interface CycleCreateInput { readonly id?: string | null | undefined; readonly name?: string | null | undefined; readonly description?: string | null | undefined; readonly teamId: string; readonly startsAt: string; readonly endsAt: string; readonly completedAt?: string | null | undefined; } /** Conditions used to select cycles. Supplied fields are combined with AND; use `or` to accept alternatives and `and` to group conditions. */ export interface CycleFilter { readonly id?: IDComparator | null | undefined; readonly createdAt?: DateComparator | null | undefined; readonly updatedAt?: DateComparator | null | undefined; readonly number?: NumberComparator | null | undefined; readonly name?: StringComparator | null | undefined; readonly startsAt?: DateComparator | null | undefined; readonly endsAt?: DateComparator | null | undefined; readonly completedAt?: DateComparator | null | undefined; readonly isActive?: BooleanComparator | null | undefined; readonly isInCooldown?: BooleanComparator | null | undefined; readonly isNext?: BooleanComparator | null | undefined; readonly isPrevious?: BooleanComparator | null | undefined; readonly isFuture?: BooleanComparator | null | undefined; readonly isPast?: BooleanComparator | null | undefined; readonly team?: TeamFilter | null | undefined; readonly issues?: IssueCollectionFilter | null | undefined; readonly inheritedFromId?: IDComparator | null | undefined; readonly and?: ReadonlyArray | null | undefined; readonly or?: ReadonlyArray | null | undefined; } /** Conditions on when an issue joined its cycle relative to the cycle's schedule. This uses the recorded cycle assignment time, not the issue's creation time. */ export interface CyclePeriodComparator { readonly eq?: "before" | "during" | "after" | null | undefined; readonly neq?: "before" | "during" | "after" | null | undefined; readonly in?: ReadonlyArray<"before" | "during" | "after"> | null | undefined; readonly nin?: ReadonlyArray<"before" | "during" | "after"> | null | undefined; readonly null?: boolean | null | undefined; } /** Shift an upcoming cycle and all later cycles in its team by the same number of days. */ export interface CycleShiftAllInput { readonly id: string; readonly daysToShift: number; } /** Issue cycle sorting options. */ export interface CycleSort { readonly nulls?: "first" | "last" | null | undefined; readonly order?: "Ascending" | "Descending" | null | undefined; readonly currentCycleFirst?: boolean | null | undefined; } /** The changes to a cycle's name, description, or schedule. Omit fields you want to keep. Scheduling uses the team's time zone and may shorten adjacent cycles to avoid overlaps; inherited cycles must be changed on their parent team. */ export interface CycleUpdateInput { readonly name?: string | null | undefined; readonly description?: string | null | undefined; readonly startsAt?: string | null | undefined; readonly endsAt?: string | null | undefined; readonly completedAt?: string | null | undefined; } /** Compares timestamps at millisecond precision. Accepts ISO 8601 timestamps or durations relative to when the filter runs; `{ gte: "-P7D" }` includes times from seven days ago onward. Combine `gte` and `lt` for a time window. A YYYY-MM-DD value means midnight UTC, so equality with a date does not match the whole day. */ export interface DateComparator { readonly eq?: string | null | undefined; readonly neq?: string | null | undefined; readonly in?: ReadonlyArray | null | undefined; readonly nin?: ReadonlyArray | null | undefined; readonly lt?: string | null | undefined; readonly lte?: string | null | undefined; readonly gt?: string | null | undefined; readonly gte?: string | null | undefined; } /** Issue delegate sorting options. */ export interface DelegateSort { readonly nulls?: "first" | "last" | null | undefined; readonly order?: "Ascending" | "Descending" | null | undefined; } /** Input for confirming workspace deletion with a verification code. */ export interface DeleteOrganizationInput { readonly deletionCode: string; } /** An exact published package version to look up in a public registry. Provide the registry package name and version, including the scope in an npm name such as @scope/package. Version ranges and tags are not resolved to a version. */ export interface DependencyPackageInput { readonly ecosystem: "npm"; readonly name: string; readonly version: string; } /** The metadata and optional Markdown body for a new document. Choose exactly one container: a project, issue, or release. The document's UUID identifies its metadata, while a separate DocumentContent record holds its body. */ export interface DocumentCreateInput { readonly id?: string | null | undefined; readonly title: string; readonly icon?: string | null | undefined; readonly color?: string | null | undefined; readonly content?: string | null | undefined; readonly projectId?: string | null | undefined; readonly issueId?: string | null | undefined; readonly releaseId?: string | null | undefined; readonly lastAppliedTemplateId?: string | null | undefined; readonly ownerId?: string | null | undefined; readonly sortOrder?: number | null | undefined; } /** Document creation date sorting options. */ export interface DocumentCreatedAtSort { readonly nulls?: "first" | "last" | null | undefined; readonly order?: "Ascending" | "Descending" | null | undefined; } /** Document creator sorting options. */ export interface DocumentCreatorSort { readonly nulls?: "first" | "last" | null | undefined; readonly order?: "Ascending" | "Descending" | null | undefined; } /** Conditions used to select documents. Supplied fields are combined with AND; use `or` to accept alternatives and `and` to group conditions. */ export interface DocumentFilter { readonly id?: IDComparator | null | undefined; readonly createdAt?: DateComparator | null | undefined; readonly updatedAt?: DateComparator | null | undefined; readonly title?: StringComparator | null | undefined; readonly searchableContent?: ContentComparator | null | undefined; readonly slugId?: StringComparator | null | undefined; readonly creator?: UserFilter | null | undefined; readonly owner?: NullableUserFilter | null | undefined; readonly project?: ProjectFilter | null | undefined; readonly issue?: IssueFilter | null | undefined; readonly initiative?: InitiativeFilter | null | undefined; readonly team?: NullableTeamFilter | null | undefined; readonly cycle?: CycleFilter | null | undefined; readonly release?: ReleaseFilter | null | undefined; readonly parentDocument?: NullableDocumentFilter | null | undefined; readonly personalUser?: NullableUserFilter | null | undefined; readonly and?: ReadonlyArray | null | undefined; readonly or?: ReadonlyArray | null | undefined; } /** Document project sorting options. */ export interface DocumentProjectSort { readonly nulls?: "first" | "last" | null | undefined; readonly order?: "Ascending" | "Descending" | null | undefined; } /** Document sorting options. */ export interface DocumentSortInput { readonly title?: DocumentTitleSort | null | undefined; readonly creator?: DocumentCreatorSort | null | undefined; readonly project?: DocumentProjectSort | null | undefined; readonly createdAt?: DocumentCreatedAtSort | null | undefined; readonly updatedAt?: DocumentUpdatedAtSort | null | undefined; } /** Document title sorting options. */ export interface DocumentTitleSort { readonly nulls?: "first" | "last" | null | undefined; readonly order?: "Ascending" | "Descending" | null | undefined; } /** The metadata or Markdown content to change on a document. Omitted fields keep their values. Supplying a destination project, issue, or release moves the document out of its current container and can change who can access it. */ export interface DocumentUpdateInput { readonly title?: string | null | undefined; readonly icon?: string | null | undefined; readonly color?: string | null | undefined; readonly content?: string | null | undefined; readonly projectId?: string | null | undefined; readonly issueId?: string | null | undefined; readonly releaseId?: string | null | undefined; readonly lastAppliedTemplateId?: string | null | undefined; readonly ownerId?: string | null | undefined; readonly hiddenAt?: string | null | undefined; readonly sortOrder?: number | null | undefined; readonly trashed?: boolean | null | undefined; } /** Document update date sorting options. */ export interface DocumentUpdatedAtSort { readonly nulls?: "first" | "last" | null | undefined; readonly order?: "Ascending" | "Descending" | null | undefined; } /** Issue due date sorting options. */ export interface DueDateSort { readonly nulls?: "first" | "last" | null | undefined; readonly order?: "Ascending" | "Descending" | null | undefined; } /** Configuration for a team, template, or Asks intake address. Supply exactly one destination: teamId or templateId. Without type, Linear selects team or template from that destination. Choose asks explicitly to configure request replies and automatic messages; replies are disabled by default. asksWeb addresses are managed by the Asks web feature and cannot be created here. */ export interface EmailIntakeAddressCreateInput { readonly id?: string | null | undefined; readonly type?: "team" | "template" | "asks" | "asksWeb" | null | undefined; readonly forwardingEmailAddress?: string | null | undefined; readonly senderName?: string | null | undefined; readonly teamId?: string | null | undefined; readonly templateId?: string | null | undefined; readonly repliesEnabled?: boolean | null | undefined; readonly useUserNamesInReplies?: boolean | null | undefined; readonly issueCreatedAutoReplyEnabled?: boolean | null | undefined; readonly issueCreatedAutoReply?: string | null | undefined; readonly issueCompletedAutoReplyEnabled?: boolean | null | undefined; readonly issueCompletedAutoReply?: string | null | undefined; readonly issueCanceledAutoReplyEnabled?: boolean | null | undefined; readonly issueCanceledAutoReply?: string | null | undefined; readonly customerRequestsEnabled?: boolean | null | undefined; readonly reopenOnReply?: boolean | null | undefined; } /** Changes to an existing email intake address. Omitted fields keep their current values. Team and template addresses keep their original destination; only Asks addresses can switch teams or templates. When switching an Asks destination, clear the old destination with null and provide the new one so exactly one remains. Sender and forwarding settings require integration management permission. */ export interface EmailIntakeAddressUpdateInput { readonly enabled?: boolean | null | undefined; readonly forwardingEmailAddress?: string | null | undefined; readonly senderName?: string | null | undefined; readonly teamId?: string | null | undefined; readonly templateId?: string | null | undefined; readonly repliesEnabled?: boolean | null | undefined; readonly useUserNamesInReplies?: boolean | null | undefined; readonly issueCreatedAutoReplyEnabled?: boolean | null | undefined; readonly issueCreatedAutoReply?: string | null | undefined; readonly issueCompletedAutoReplyEnabled?: boolean | null | undefined; readonly issueCompletedAutoReply?: string | null | undefined; readonly issueCanceledAutoReplyEnabled?: boolean | null | undefined; readonly issueCanceledAutoReply?: string | null | undefined; readonly customerRequestsEnabled?: boolean | null | undefined; readonly reopenOnReply?: boolean | null | undefined; } /** An email category and the user ID and unsubscribe token from a Linear email. The token must match that user ID. This changes email preferences for the selected category; it does not remove workspace membership or change other notification channels. */ export interface EmailUnsubscribeInput { readonly type: string; readonly token: string | Redacted.Redacted; readonly userId: string; } /** Starts email sign-in for an account. Generate a clientAuthCode UUID and keep it in the client until sign-in finishes; you must send the same value when redeeming the emailed token. The response does not contain the token. */ export interface EmailUserAccountAuthChallengeInput { readonly email: string; readonly isDesktop?: boolean | null | undefined; readonly clientAuthCode?: string | null | undefined; readonly inviteLink?: string | null | undefined; readonly loginCodeOnly?: boolean | null | undefined; readonly challengeResponse?: string | null | undefined; readonly sessionId?: string | null | undefined; } /** The name and uploaded image for a custom workspace emoji. Upload the image to Linear first, then supply the resulting asset URL. */ export interface EmojiCreateInput { readonly id?: string | null | undefined; readonly name: string; readonly url: string; } /** Emoji creation date sorting options. */ export interface EmojiCreatedAtSort { readonly nulls?: "first" | "last" | null | undefined; readonly order?: "Ascending" | "Descending" | null | undefined; } /** Conditions used to select custom emoji. Supplied fields are combined with AND; use `or` to accept alternatives and `and` to group conditions. */ export interface EmojiFilter { readonly id?: IDComparator | null | undefined; readonly createdAt?: DateComparator | null | undefined; readonly updatedAt?: DateComparator | null | undefined; readonly name?: StringComparator | null | undefined; readonly and?: ReadonlyArray | null | undefined; readonly or?: ReadonlyArray | null | undefined; } /** Custom emoji sorting options. */ export interface EmojiSortInput { readonly createdAt?: EmojiCreatedAtSort | null | undefined; } /** A resource link to add to an initiative, project, or release. Provide url, label, and exactly one parent field. Initiative and project references accept UUIDs or their identifiers; releaseId accepts a UUID. Omit sortOrder to place the link after the parent's existing resources. */ export interface EntityExternalLinkCreateInput { readonly id?: string | null | undefined; readonly url: string; readonly label: string; readonly initiativeId?: string | null | undefined; readonly projectId?: string | null | undefined; readonly releaseId?: string | null | undefined; readonly sortOrder?: number | null | undefined; } /** Changes to an existing resource link's destination, display label, or position. Omitted fields remain unchanged. This input cannot move a link to another parent; create a new link under that parent and remove the old one if needed. */ export interface EntityExternalLinkUpdateInput { readonly url?: string | null | undefined; readonly label?: string | null | undefined; readonly sortOrder?: number | null | undefined; } /** Compares project or initiative IDs. Accepts UUIDs, generated identifiers, and custom identifiers in the current workspace. Unresolved identifiers match nothing in `eq` or `in` and are ignored in `neq` or `nin`. All supplied conditions must match. */ export interface EntityIdentifierIDComparator { readonly eq?: string | null | undefined; readonly neq?: string | null | undefined; readonly in?: ReadonlyArray | null | undefined; readonly nin?: ReadonlyArray | null | undefined; } /** Compares numeric issue estimates, using the values from each issue's team estimate scale. Use `{ null: true }` to find issues without an estimate. Without `and` or `or`, all supplied comparisons must match. When supplied, `and` or `or` replaces the direct comparisons; `and` takes precedence if both are present. */ export interface EstimateComparator { readonly eq?: number | null | undefined; readonly neq?: number | null | undefined; readonly in?: ReadonlyArray | null | undefined; readonly nin?: ReadonlyArray | null | undefined; readonly null?: boolean | null | undefined; readonly lt?: number | null | undefined; readonly lte?: number | null | undefined; readonly gt?: number | null | undefined; readonly gte?: number | null | undefined; readonly or?: ReadonlyArray | null | undefined; readonly and?: ReadonlyArray | null | undefined; } /** Issue estimate sorting options. */ export interface EstimateSort { readonly nulls?: "first" | "last" | null | undefined; readonly order?: "Ascending" | "Descending" | null | undefined; } /** Input for tracking an anonymous analytics event. */ export interface EventTrackingInput { readonly event: string; readonly properties?: unknown | null | undefined; readonly sessionId?: string | null | undefined; } /** A bookmark or folder to add to your sidebar. Supply exactly one target entity, folderName, or liveFolderPreset. parentId can place a bookmark in your own custom folder; folders cannot be nested. */ export interface FavoriteCreateInput { readonly id?: string | null | undefined; readonly folderName?: string | null | undefined; readonly liveFolderPreset?: string | null | undefined; readonly parentId?: string | null | undefined; readonly issueId?: string | null | undefined; readonly facetId?: string | null | undefined; readonly projectId?: string | null | undefined; readonly projectTab?: | "customers" | "documents" | "issues" | "loops" | "updates" | null | undefined; readonly predefinedViewType?: string | null | undefined; readonly predefinedViewTeamId?: string | null | undefined; readonly cycleId?: string | null | undefined; readonly customViewId?: string | null | undefined; readonly documentId?: string | null | undefined; readonly initiativeTab?: "overview" | "projects" | "updates" | null | undefined; readonly labelId?: string | null | undefined; readonly projectLabelId?: string | null | undefined; readonly userId?: string | null | undefined; readonly sortOrder?: number | null | undefined; readonly customerId?: string | null | undefined; readonly dashboardId?: string | null | undefined; readonly pullRequestId?: string | null | undefined; readonly releaseId?: string | null | undefined; readonly releasePipelineId?: string | null | undefined; readonly pipelineTab?: "releaseNotes" | "releases" | null | undefined; readonly releaseNoteId?: string | null | undefined; readonly teamId?: string | null | undefined; readonly workflowDefinitionId?: string | null | undefined; } /** Changes to a favorite you own. Omitted fields stay unchanged. Use parentId to move a bookmark into a custom folder or back to the top level; folders cannot be nested. */ export interface FavoriteUpdateInput { readonly sortOrder?: number | null | undefined; readonly parentId?: string | null | undefined; readonly folderName?: string | null | undefined; } /** Feed item filtering options */ export interface FeedItemFilter { readonly id?: IDComparator | null | undefined; readonly createdAt?: DateComparator | null | undefined; readonly updatedAt?: DateComparator | null | undefined; readonly author?: UserFilter | null | undefined; readonly updateType?: StringComparator | null | undefined; readonly updateHealth?: StringComparator | null | undefined; readonly projectUpdate?: ProjectUpdateFilter | null | undefined; readonly relatedInitiatives?: InitiativeCollectionFilter | null | undefined; readonly relatedTeams?: TeamCollectionFilter | null | undefined; readonly and?: ReadonlyArray | null | undefined; readonly or?: ReadonlyArray | null | undefined; } /** The team, Git event, and issue status for a new automation rule. Set targetBranchId to restrict the rule to a branch pattern. A branch-specific rule can use a null stateId to suppress the default automation; a default rule requires a status. */ export interface GitAutomationStateCreateInput { readonly id?: string | null | undefined; readonly teamId: string; readonly stateId?: string | null | undefined; readonly targetBranchId?: string | null | undefined; readonly event: "draft" | "start" | "review" | "mergeable" | "merge"; } /** Changes to an existing Git automation rule. Omitted fields remain unchanged. A null targetBranchId makes the rule a default, which requires a non-null stateId. */ export interface GitAutomationStateUpdateInput { readonly stateId?: string | null | undefined; readonly targetBranchId?: string | null | undefined; readonly event?: "draft" | "start" | "review" | "mergeable" | "merge" | null | undefined; } /** A target-branch pattern that groups a team's Git automation rules. By default the pattern is an exact branch name; set isRegex to true for an RE2 regular expression. */ export interface GitAutomationTargetBranchCreateInput { readonly id?: string | null | undefined; readonly teamId: string; readonly branchPattern: string; readonly isRegex?: boolean | null | undefined; } /** Changes to a target-branch pattern. Omitted fields keep their values. Changing the pattern or matching mode changes which pull requests use all automation rules linked to this definition. */ export interface GitAutomationTargetBranchUpdateInput { readonly branchPattern?: string | null | undefined; readonly isRegex?: boolean | null | undefined; } /** Input for exchanging a Google OAuth authorization code for a Linear session. */ export interface GoogleUserAccountAuthInput { readonly code: string; readonly redirectUri?: string | null | undefined; readonly timezone: string; readonly inviteLink?: string | null | undefined; readonly disallowSignup?: boolean | null | undefined; readonly sessionId?: string | null | undefined; } /** Compares resource UUIDs by equality or list membership. All supplied conditions must match. Use `in` to fetch a known set of resources; an empty `in` list matches nothing. Human-readable identifiers are accepted only by the entity-specific ID comparators. */ export interface IDComparator { readonly eq?: string | null | undefined; readonly neq?: string | null | undefined; readonly in?: ReadonlyArray | null | undefined; readonly nin?: ReadonlyArray | null | undefined; } /** Changes to a group of related inbox notifications. Supply read or snoozedUntilAt; omitted fields remain unchanged. */ export interface InboxNotificationUpdateInput { readonly read?: boolean | null | undefined; readonly snoozedUntilAt?: string | null | undefined; } /** Maps existing team states and labels when changing which resources the team inherits. */ export interface InheritanceEntityMapping { readonly workflowStates: unknown; readonly issueLabels?: unknown | null | undefined; readonly projectLabels?: unknown | null | undefined; } /** Filters a related collection of initiatives. Use some or every to test its members and length to test its size, for example length: { eq: 0 } for an empty collection. Direct property filters act as some only when no collection clause is supplied. */ export interface InitiativeCollectionFilter { readonly id?: EntityIdentifierIDComparator | null | undefined; readonly createdAt?: DateComparator | null | undefined; readonly updatedAt?: DateComparator | null | undefined; readonly name?: StringComparator | null | undefined; readonly slugId?: StringComparator | null | undefined; readonly customIdentifier?: NullableStringComparator | null | undefined; readonly creator?: NullableUserFilter | null | undefined; readonly status?: StringComparator | null | undefined; readonly priority?: NullableNumberComparator | null | undefined; readonly teams?: TeamCollectionFilter | null | undefined; readonly leadTeam?: NullableTeamFilter | null | undefined; readonly owner?: NullableUserFilter | null | undefined; readonly targetDate?: NullableDateComparator | null | undefined; readonly startedAt?: NullableDateComparator | null | undefined; readonly completedAt?: NullableDateComparator | null | undefined; readonly canceledAt?: NullableDateComparator | null | undefined; readonly health?: StringComparator | null | undefined; readonly healthWithAge?: StringComparator | null | undefined; readonly activityType?: StringComparator | null | undefined; readonly ancestors?: InitiativeCollectionFilter | null | undefined; readonly labels?: InitiativeLabelCollectionFilter | null | undefined; readonly projects?: ProjectCollectionFilter | null | undefined; readonly initiativeUpdates?: InitiativeUpdatesCollectionFilter | null | undefined; readonly and?: ReadonlyArray | null | undefined; readonly or?: ReadonlyArray | null | undefined; readonly some?: InitiativeFilter | null | undefined; readonly every?: InitiativeFilter | null | undefined; readonly length?: NumberComparator | null | undefined; } /** The details for a new initiative. Provide a name and optionally an owner, lead team, overview, and target date. Projects are linked separately with initiativeToProjectCreate. */ export interface InitiativeCreateInput { readonly id?: string | null | undefined; readonly name: string; readonly description?: string | null | undefined; readonly ownerId?: string | null | undefined; readonly leadTeamId?: string | null | undefined; readonly sortOrder?: number | null | undefined; readonly prioritySortOrder?: number | null | undefined; readonly color?: string | null | undefined; readonly icon?: string | null | undefined; readonly status?: "Proposed" | "Planned" | "Active" | "Completed" | "Canceled" | null | undefined; readonly targetDate?: string | null | undefined; readonly targetDateResolution?: "month" | "quarter" | "halfYear" | "year" | null | undefined; readonly content?: string | null | undefined; readonly priority?: number | null | undefined; readonly labelIds?: ReadonlyArray | null | undefined; } /** Initiative creation date sorting options. */ export interface InitiativeCreatedAtSort { readonly nulls?: "first" | "last" | null | undefined; readonly order?: "Ascending" | "Descending" | null | undefined; } /** Filters initiatives by status, health, dates, ownership, labels, hierarchy, or related projects. Supplied conditions must match together; use and and or to combine nested filters. */ export interface InitiativeFilter { readonly id?: EntityIdentifierIDComparator | null | undefined; readonly createdAt?: DateComparator | null | undefined; readonly updatedAt?: DateComparator | null | undefined; readonly name?: StringComparator | null | undefined; readonly slugId?: StringComparator | null | undefined; readonly customIdentifier?: NullableStringComparator | null | undefined; readonly creator?: NullableUserFilter | null | undefined; readonly status?: StringComparator | null | undefined; readonly priority?: NullableNumberComparator | null | undefined; readonly teams?: TeamCollectionFilter | null | undefined; readonly leadTeam?: NullableTeamFilter | null | undefined; readonly owner?: NullableUserFilter | null | undefined; readonly targetDate?: NullableDateComparator | null | undefined; readonly startedAt?: NullableDateComparator | null | undefined; readonly completedAt?: NullableDateComparator | null | undefined; readonly canceledAt?: NullableDateComparator | null | undefined; readonly health?: StringComparator | null | undefined; readonly healthWithAge?: StringComparator | null | undefined; readonly activityType?: StringComparator | null | undefined; readonly ancestors?: InitiativeCollectionFilter | null | undefined; readonly labels?: InitiativeLabelCollectionFilter | null | undefined; readonly projects?: ProjectCollectionFilter | null | undefined; readonly initiativeUpdates?: InitiativeUpdatesCollectionFilter | null | undefined; readonly and?: ReadonlyArray | null | undefined; readonly or?: ReadonlyArray | null | undefined; } /** Initiative health sorting options. */ export interface InitiativeHealthSort { readonly nulls?: "first" | "last" | null | undefined; readonly order?: "Ascending" | "Descending" | null | undefined; } /** Initiative health update date sorting options. */ export interface InitiativeHealthUpdatedAtSort { readonly nulls?: "first" | "last" | null | undefined; readonly order?: "Ascending" | "Descending" | null | undefined; } /** Filters a related collection of initiative labels. Use some or every to test its members and length to test its size, for example length: { eq: 0 } for an empty collection. Direct property filters act as some only when no collection clause is supplied. */ export interface InitiativeLabelCollectionFilter { readonly id?: IDComparator | null | undefined; readonly createdAt?: DateComparator | null | undefined; readonly updatedAt?: DateComparator | null | undefined; readonly name?: StringComparator | null | undefined; readonly isGroup?: BooleanComparator | null | undefined; readonly creator?: NullableUserFilter | null | undefined; readonly parent?: InitiativeLabelFilter | null | undefined; readonly null?: boolean | null | undefined; readonly and?: ReadonlyArray | null | undefined; readonly or?: ReadonlyArray | null | undefined; readonly some?: InitiativeLabelCollectionFilter | null | undefined; readonly every?: InitiativeLabelFilter | null | undefined; readonly length?: NumberComparator | null | undefined; } /** Input for creating a new initiative label. A name is required. The label is created as a workspace-level label available to all initiatives. */ export interface InitiativeLabelCreateInput { readonly id?: string | null | undefined; readonly name: string; readonly description?: string | null | undefined; readonly color?: string | null | undefined; readonly parentId?: string | null | undefined; readonly isGroup?: boolean | null | undefined; readonly retiredAt?: string | null | undefined; readonly groupType?: "singleSelect" | "multiSelect" | null | undefined; } /** Filters initiative labels by name, creator, or parent label group. Supplied conditions must match together; use and and or to combine nested filters. */ export interface InitiativeLabelFilter { readonly id?: IDComparator | null | undefined; readonly createdAt?: DateComparator | null | undefined; readonly updatedAt?: DateComparator | null | undefined; readonly name?: StringComparator | null | undefined; readonly isGroup?: BooleanComparator | null | undefined; readonly creator?: NullableUserFilter | null | undefined; readonly parent?: InitiativeLabelFilter | null | undefined; readonly and?: ReadonlyArray | null | undefined; readonly or?: ReadonlyArray | null | undefined; } /** Input for updating an existing initiative label. All fields are optional; only provided fields will be updated. */ export interface InitiativeLabelUpdateInput { readonly name?: string | null | undefined; readonly description?: string | null | undefined; readonly parentId?: string | null | undefined; readonly color?: string | null | undefined; readonly isGroup?: boolean | null | undefined; readonly retiredAt?: string | null | undefined; readonly groupType?: "singleSelect" | "multiSelect" | null | undefined; } /** Initiative manual sorting options. */ export interface InitiativeManualSort { readonly nulls?: "first" | "last" | null | undefined; readonly order?: "Ascending" | "Descending" | null | undefined; } /** Initiative name sorting options. */ export interface InitiativeNameSort { readonly nulls?: "first" | "last" | null | undefined; readonly order?: "Ascending" | "Descending" | null | undefined; } /** Initiative owner sorting options. */ export interface InitiativeOwnerSort { readonly nulls?: "first" | "last" | null | undefined; readonly order?: "Ascending" | "Descending" | null | undefined; } /** Initiative priority sorting options. */ export interface InitiativePrioritySort { readonly nulls?: "first" | "last" | null | undefined; readonly order?: "Ascending" | "Descending" | null | undefined; readonly noPriorityFirst?: boolean | null | undefined; } /** The parent and child initiatives for a new hierarchy link. Both must be accessible and unarchived, and the workspace must support sub-initiatives. The link cannot create a cycle or exceed the hierarchy's nesting limit. */ export interface InitiativeRelationCreateInput { readonly id?: string | null | undefined; readonly initiativeId: string; readonly relatedInitiativeId: string; readonly sortOrder?: number | null | undefined; } /** Changes to the ordering of an existing parent-child link. Omit sortOrder to leave it unchanged. The parent and child cannot be changed through this input; create a new relation to move an initiative. */ export interface InitiativeRelationUpdateInput { readonly sortOrder?: number | null | undefined; } /** Initiative sorting options. */ export interface InitiativeSortInput { readonly name?: InitiativeNameSort | null | undefined; readonly manual?: InitiativeManualSort | null | undefined; readonly updatedAt?: InitiativeUpdatedAtSort | null | undefined; readonly createdAt?: InitiativeCreatedAtSort | null | undefined; readonly targetDate?: InitiativeTargetDateSort | null | undefined; readonly health?: InitiativeHealthSort | null | undefined; readonly healthUpdatedAt?: InitiativeHealthUpdatedAtSort | null | undefined; readonly owner?: InitiativeOwnerSort | null | undefined; readonly priority?: InitiativePrioritySort | null | undefined; } /** Initiative target date sorting options. */ export interface InitiativeTargetDateSort { readonly nulls?: "first" | "last" | null | undefined; readonly order?: "Ascending" | "Descending" | null | undefined; } /** The project and initiative to link, with an optional position for the project. Both must be active and editable. The project must not already belong to that initiative or to one of its ancestors or descendants. */ export interface InitiativeToProjectCreateInput { readonly id?: string | null | undefined; readonly projectId: string; readonly initiativeId: string; readonly sortOrder?: number | null | undefined; } /** Changes to a project's ordering within an initiative. This input does not move the project to another initiative; create or delete associations for that. */ export interface InitiativeToProjectUpdateInput { readonly sortOrder?: number | null | undefined; } /** The initiative, Markdown message, and optional health for a new status report. The current user becomes the author and the initiative's projects are captured automatically. Provide body when using the public API. */ export interface InitiativeUpdateCreateInput { readonly id?: string | null | undefined; readonly body?: string | null | undefined; readonly health?: "onTrack" | "atRisk" | "offTrack" | null | undefined; readonly initiativeId: string; readonly isDiffHidden?: boolean | null | undefined; } /** Filters initiative updates by author, initiative, or reactions. Supplied conditions must match together; use and and or to combine nested filters. */ export interface InitiativeUpdateFilter { readonly id?: IDComparator | null | undefined; readonly createdAt?: DateComparator | null | undefined; readonly updatedAt?: DateComparator | null | undefined; readonly user?: UserFilter | null | undefined; readonly initiative?: InitiativeFilter | null | undefined; readonly reactions?: ReactionCollectionFilter | null | undefined; readonly and?: ReadonlyArray | null | undefined; readonly or?: ReadonlyArray | null | undefined; } /** Initiative fields to change. Omitted fields remain unchanged. */ export interface InitiativeUpdateInput { readonly name?: string | null | undefined; readonly description?: string | null | undefined; readonly ownerId?: string | null | undefined; readonly leadTeamId?: string | null | undefined; readonly sortOrder?: number | null | undefined; readonly prioritySortOrder?: number | null | undefined; readonly color?: string | null | undefined; readonly icon?: string | null | undefined; readonly targetDate?: string | null | undefined; readonly status?: "Proposed" | "Planned" | "Active" | "Completed" | "Canceled" | null | undefined; readonly targetDateResolution?: "month" | "quarter" | "halfYear" | "year" | null | undefined; readonly trashed?: boolean | null | undefined; readonly content?: string | null | undefined; readonly updateReminderFrequencyInWeeks?: number | null | undefined; readonly updateReminderFrequency?: number | null | undefined; readonly frequencyResolution?: "daily" | "weekly" | null | undefined; readonly updateRemindersDay?: | "Sunday" | "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday" | null | undefined; readonly updateRemindersHour?: number | null | undefined; readonly priority?: number | null | undefined; readonly labelIds?: ReadonlyArray | null | undefined; } /** Changes to an initiative update. Omitted fields remain unchanged. Only the author or a user with workspace entity management permission can edit it. */ export interface InitiativeUpdateUpdateInput { readonly body?: string | null | undefined; readonly health?: "onTrack" | "atRisk" | "offTrack" | null | undefined; } /** Initiative update date sorting options. */ export interface InitiativeUpdatedAtSort { readonly nulls?: "first" | "last" | null | undefined; readonly order?: "Ascending" | "Descending" | null | undefined; } /** Filters a related collection of initiative updates. Use some or every to test its members and length to test its size, for example length: { eq: 0 } for an empty collection. Direct property filters act as some only when no collection clause is supplied. */ export interface InitiativeUpdatesCollectionFilter { readonly id?: IDComparator | null | undefined; readonly createdAt?: DateComparator | null | undefined; readonly updatedAt?: DateComparator | null | undefined; readonly and?: ReadonlyArray | null | undefined; readonly or?: ReadonlyArray | null | undefined; readonly some?: InitiativeUpdatesFilter | null | undefined; readonly every?: InitiativeUpdatesFilter | null | undefined; readonly length?: NumberComparator | null | undefined; } /** Filters initiative updates by ID or creation and update timestamps. Supplied conditions must match together; use and and or to combine nested filters. */ export interface InitiativeUpdatesFilter { readonly id?: IDComparator | null | undefined; readonly createdAt?: DateComparator | null | undefined; readonly updatedAt?: DateComparator | null | undefined; readonly and?: ReadonlyArray | null | undefined; readonly or?: ReadonlyArray | null | undefined; } /** Input for requesting a currently unavailable integration. */ export interface IntegrationRequestInput { readonly email?: string | null | undefined; readonly name: string; } /** Links an existing issue template to an integration. Slack Asks requires foreignEntityId to identify a configured intake destination and only accepts team templates. Intercom, Slack, Zendesk, and Salesforce also accept workspace templates, with up to ten linked templates per integration. */ export interface IntegrationTemplateCreateInput { readonly id?: string | null | undefined; readonly integrationId: string; readonly templateId: string; readonly foreignEntityId?: string | null | undefined; } /** Creates notification preferences for exactly one destination: teamId, projectId, initiativeId, or customViewId. Supply booleans for the events you want to enable; null is not accepted. contextViewType can further scope team settings. These preferences need a connected integration to deliver messages and do not create a Slack or Microsoft Teams connection. */ export interface IntegrationsSettingsCreateInput { readonly slackIssueCreated?: boolean | null | undefined; readonly slackIssueAddedToView?: boolean | null | undefined; readonly slackIssueNewComment?: boolean | null | undefined; readonly slackIssueStatusChangedDone?: boolean | null | undefined; readonly slackIssueStatusChangedAll?: boolean | null | undefined; readonly slackProjectUpdateCreated?: boolean | null | undefined; readonly slackProjectCommentCreated?: boolean | null | undefined; readonly microsoftTeamsProjectUpdateCreated?: boolean | null | undefined; readonly slackProjectUpdateCreatedToTeam?: boolean | null | undefined; readonly slackProjectUpdateCreatedToWorkspace?: boolean | null | undefined; readonly slackInitiativeUpdateCreated?: boolean | null | undefined; readonly slackInitiativeCommentCreated?: boolean | null | undefined; readonly slackIssueAddedToTriage?: boolean | null | undefined; readonly slackIssueSlaHighRisk?: boolean | null | undefined; readonly slackIssueSlaBreached?: boolean | null | undefined; readonly id?: string | null | undefined; readonly teamId?: string | null | undefined; readonly projectId?: string | null | undefined; readonly initiativeId?: string | null | undefined; readonly customViewId?: string | null | undefined; readonly contextViewType?: | "activeIssues" | "activeCycle" | "upcomingCycle" | "backlog" | "triage" | null | undefined; } /** Changes selected notification preferences on an existing settings record. Send true to enable an event or false to disable it; omitted fields keep their current values and null is not accepted. The destination cannot be changed through this input. */ export interface IntegrationsSettingsUpdateInput { readonly slackIssueCreated?: boolean | null | undefined; readonly slackIssueAddedToView?: boolean | null | undefined; readonly slackIssueNewComment?: boolean | null | undefined; readonly slackIssueStatusChangedDone?: boolean | null | undefined; readonly slackIssueStatusChangedAll?: boolean | null | undefined; readonly slackProjectUpdateCreated?: boolean | null | undefined; readonly slackProjectCommentCreated?: boolean | null | undefined; readonly microsoftTeamsProjectUpdateCreated?: boolean | null | undefined; readonly slackProjectUpdateCreatedToTeam?: boolean | null | undefined; readonly slackProjectUpdateCreatedToWorkspace?: boolean | null | undefined; readonly slackInitiativeUpdateCreated?: boolean | null | undefined; readonly slackInitiativeCommentCreated?: boolean | null | undefined; readonly slackIssueAddedToTriage?: boolean | null | undefined; readonly slackIssueSlaHighRisk?: boolean | null | undefined; readonly slackIssueSlaBreached?: boolean | null | undefined; } /** Settings for notifications and issue intake through Intercom. Omitted fields stay unchanged on update. */ export interface IntercomSettingsInput { readonly sendNoteOnStatusChange?: boolean | null | undefined; readonly sendNoteOnComment?: boolean | null | undefined; readonly automateTicketReopeningOnCompletion?: boolean | null | undefined; readonly automateTicketReopeningOnCancellation?: boolean | null | undefined; readonly automateTicketReopeningOnComment?: boolean | null | undefined; readonly disableCustomerRequestsAutoCreation?: boolean | null | undefined; readonly automateTicketReopeningOnProjectCompletion?: boolean | null | undefined; readonly automateTicketReopeningOnProjectCancellation?: boolean | null | undefined; readonly enableAiIntake?: boolean | null | undefined; readonly enableAiIntakeAttachmentProcessing?: boolean | null | undefined; } /** The issues to create together in one request, from one to 50 issues. If one creation fails, the entire batch is rolled back. To create a parent and its sub-issues together, give the parent an id and place it before inputs that reference that id. */ export interface IssueBatchCreateInput { readonly issues: ReadonlyArray; } /** Conditions on a collection of issues. Use some to require a matching item, every to check the whole collection, or length to check its size. Direct issue fields act as some only when no and, or, some, every, or length clause is supplied. */ export interface IssueCollectionFilter { readonly id?: IssueIDComparator | null | undefined; readonly createdAt?: DateComparator | null | undefined; readonly updatedAt?: DateComparator | null | undefined; readonly number?: NumberComparator | null | undefined; readonly title?: StringComparator | null | undefined; readonly description?: NullableStringComparator | null | undefined; readonly priority?: NullableNumberComparator | null | undefined; readonly estimate?: EstimateComparator | null | undefined; readonly startedAt?: NullableDateComparator | null | undefined; readonly triagedAt?: NullableDateComparator | null | undefined; readonly completedAt?: NullableDateComparator | null | undefined; readonly canceledAt?: NullableDateComparator | null | undefined; readonly slaBreachesAt?: NullableDateComparator | null | undefined; readonly archivedAt?: NullableDateComparator | null | undefined; readonly autoClosedAt?: NullableDateComparator | null | undefined; readonly autoArchivedAt?: NullableDateComparator | null | undefined; readonly addedToCycleAt?: NullableDateComparator | null | undefined; readonly addedToCyclePeriod?: CyclePeriodComparator | null | undefined; readonly dueDate?: NullableTimelessDateComparator | null | undefined; readonly accumulatedStateUpdatedAt?: NullableDateComparator | null | undefined; readonly snoozedUntilAt?: NullableDateComparator | null | undefined; readonly assignee?: NullableUserFilter | null | undefined; readonly delegate?: NullableUserFilter | null | undefined; readonly lastAppliedTemplate?: NullableTemplateFilter | null | undefined; readonly recurringIssueTemplate?: NullableTemplateFilter | null | undefined; readonly sourceMetadata?: SourceMetadataComparator | null | undefined; readonly creator?: NullableUserFilter | null | undefined; readonly parent?: NullableIssueFilter | null | undefined; readonly snoozedBy?: NullableUserFilter | null | undefined; readonly labels?: IssueLabelCollectionFilter | null | undefined; readonly subscribers?: UserCollectionFilter | null | undefined; readonly hasSharedUsers?: RelationExistsComparator | null | undefined; readonly sharedWith?: UserCollectionFilter | null | undefined; readonly team?: TeamFilter | null | undefined; readonly projectMilestone?: NullableProjectMilestoneFilter | null | undefined; readonly comments?: CommentCollectionFilter | null | undefined; readonly activity?: ActivityCollectionFilter | null | undefined; readonly suggestions?: IssueSuggestionCollectionFilter | null | undefined; readonly cycle?: NullableCycleFilter | null | undefined; readonly project?: NullableProjectFilter | null | undefined; readonly state?: WorkflowStateFilter | null | undefined; readonly children?: IssueCollectionFilter | null | undefined; readonly attachments?: AttachmentCollectionFilter | null | undefined; readonly searchableContent?: ContentComparator | null | undefined; readonly hasRelatedRelations?: RelationExistsComparator | null | undefined; readonly hasDuplicateRelations?: RelationExistsComparator | null | undefined; readonly hasBlockedByRelations?: RelationExistsComparator | null | undefined; readonly hasBlockingRelations?: RelationExistsComparator | null | undefined; readonly hasSuggestedRelatedIssues?: RelationExistsComparator | null | undefined; readonly hasSuggestedSimilarIssues?: RelationExistsComparator | null | undefined; readonly hasSuggestedAssignees?: RelationExistsComparator | null | undefined; readonly hasSuggestedProjects?: RelationExistsComparator | null | undefined; readonly hasSuggestedLabels?: RelationExistsComparator | null | undefined; readonly hasSuggestedTeams?: RelationExistsComparator | null | undefined; readonly hasActiveAgentSessions?: RelationExistsComparator | null | undefined; readonly hasDismissedAgentSessions?: RelationExistsComparator | null | undefined; readonly hasErroredAgentSessions?: RelationExistsComparator | null | undefined; readonly hasMergedAgentPullRequests?: RelationExistsComparator | null | undefined; readonly slaStatus?: SlaStatusComparator | null | undefined; readonly reactions?: ReactionCollectionFilter | null | undefined; readonly needs?: CustomerNeedCollectionFilter | null | undefined; readonly releases?: ReleaseCollectionFilter | null | undefined; readonly customerCount?: NumberComparator | null | undefined; readonly customerImportantCount?: NumberComparator | null | undefined; readonly leadTime?: NullableDurationComparator | null | undefined; readonly cycleTime?: NullableDurationComparator | null | undefined; readonly ageTime?: NullableDurationComparator | null | undefined; readonly triageTime?: NullableDurationComparator | null | undefined; readonly and?: ReadonlyArray | null | undefined; readonly or?: ReadonlyArray | null | undefined; readonly some?: IssueFilter | null | undefined; readonly every?: IssueFilter | null | undefined; readonly length?: NumberComparator | null | undefined; } /** The details for a new issue. Choose a team and provide a title, or use templateId to take the title and other defaults from a template. A template can also create sub-issues; supplied field values override its defaults, while supplied labels are combined with the template's labels. */ export interface IssueCreateInput { readonly id?: string | null | undefined; readonly title?: string | null | undefined; readonly description?: string | null | undefined; readonly assigneeId?: string | null | undefined; readonly delegateId?: string | null | undefined; readonly parentId?: string | null | undefined; readonly priority?: number | null | undefined; readonly estimate?: number | null | undefined; readonly subscriberIds?: ReadonlyArray | null | undefined; readonly labelIds?: ReadonlyArray | null | undefined; readonly teamId: string; readonly cycleId?: string | null | undefined; readonly projectId?: string | null | undefined; readonly projectMilestoneId?: string | null | undefined; readonly lastAppliedTemplateId?: string | null | undefined; readonly stateId?: string | null | undefined; readonly referenceCommentId?: string | null | undefined; readonly sourceCommentId?: string | null | undefined; readonly sortOrder?: number | null | undefined; readonly prioritySortOrder?: number | null | undefined; readonly subIssueSortOrder?: number | null | undefined; readonly dueDate?: string | null | undefined; readonly createAsUser?: string | null | undefined; readonly displayIconUrl?: string | null | undefined; readonly preserveSortOrderOnCreate?: boolean | null | undefined; readonly createdAt?: string | null | undefined; readonly templateId?: string | null | undefined; readonly completedAt?: string | null | undefined; readonly slaType?: "all" | "onlyBusinessDays" | null | undefined; readonly useDefaultTemplate?: boolean | null | undefined; readonly releaseIds?: ReadonlyArray | null | undefined; } /** Conditions used to select issues. Supplied fields are combined with AND; use `or` to accept alternatives and `and` to group conditions. */ export interface IssueFilter { readonly id?: IssueIDComparator | null | undefined; readonly createdAt?: DateComparator | null | undefined; readonly updatedAt?: DateComparator | null | undefined; readonly number?: NumberComparator | null | undefined; readonly title?: StringComparator | null | undefined; readonly description?: NullableStringComparator | null | undefined; readonly priority?: NullableNumberComparator | null | undefined; readonly estimate?: EstimateComparator | null | undefined; readonly startedAt?: NullableDateComparator | null | undefined; readonly triagedAt?: NullableDateComparator | null | undefined; readonly completedAt?: NullableDateComparator | null | undefined; readonly canceledAt?: NullableDateComparator | null | undefined; readonly slaBreachesAt?: NullableDateComparator | null | undefined; readonly archivedAt?: NullableDateComparator | null | undefined; readonly autoClosedAt?: NullableDateComparator | null | undefined; readonly autoArchivedAt?: NullableDateComparator | null | undefined; readonly addedToCycleAt?: NullableDateComparator | null | undefined; readonly addedToCyclePeriod?: CyclePeriodComparator | null | undefined; readonly dueDate?: NullableTimelessDateComparator | null | undefined; readonly accumulatedStateUpdatedAt?: NullableDateComparator | null | undefined; readonly snoozedUntilAt?: NullableDateComparator | null | undefined; readonly assignee?: NullableUserFilter | null | undefined; readonly delegate?: NullableUserFilter | null | undefined; readonly lastAppliedTemplate?: NullableTemplateFilter | null | undefined; readonly recurringIssueTemplate?: NullableTemplateFilter | null | undefined; readonly sourceMetadata?: SourceMetadataComparator | null | undefined; readonly creator?: NullableUserFilter | null | undefined; readonly parent?: NullableIssueFilter | null | undefined; readonly snoozedBy?: NullableUserFilter | null | undefined; readonly labels?: IssueLabelCollectionFilter | null | undefined; readonly subscribers?: UserCollectionFilter | null | undefined; readonly hasSharedUsers?: RelationExistsComparator | null | undefined; readonly sharedWith?: UserCollectionFilter | null | undefined; readonly team?: TeamFilter | null | undefined; readonly projectMilestone?: NullableProjectMilestoneFilter | null | undefined; readonly comments?: CommentCollectionFilter | null | undefined; readonly activity?: ActivityCollectionFilter | null | undefined; readonly suggestions?: IssueSuggestionCollectionFilter | null | undefined; readonly cycle?: NullableCycleFilter | null | undefined; readonly project?: NullableProjectFilter | null | undefined; readonly state?: WorkflowStateFilter | null | undefined; readonly children?: IssueCollectionFilter | null | undefined; readonly attachments?: AttachmentCollectionFilter | null | undefined; readonly searchableContent?: ContentComparator | null | undefined; readonly hasRelatedRelations?: RelationExistsComparator | null | undefined; readonly hasDuplicateRelations?: RelationExistsComparator | null | undefined; readonly hasBlockedByRelations?: RelationExistsComparator | null | undefined; readonly hasBlockingRelations?: RelationExistsComparator | null | undefined; readonly hasSuggestedRelatedIssues?: RelationExistsComparator | null | undefined; readonly hasSuggestedSimilarIssues?: RelationExistsComparator | null | undefined; readonly hasSuggestedAssignees?: RelationExistsComparator | null | undefined; readonly hasSuggestedProjects?: RelationExistsComparator | null | undefined; readonly hasSuggestedLabels?: RelationExistsComparator | null | undefined; readonly hasSuggestedTeams?: RelationExistsComparator | null | undefined; readonly hasActiveAgentSessions?: RelationExistsComparator | null | undefined; readonly hasDismissedAgentSessions?: RelationExistsComparator | null | undefined; readonly hasErroredAgentSessions?: RelationExistsComparator | null | undefined; readonly hasMergedAgentPullRequests?: RelationExistsComparator | null | undefined; readonly slaStatus?: SlaStatusComparator | null | undefined; readonly reactions?: ReactionCollectionFilter | null | undefined; readonly needs?: CustomerNeedCollectionFilter | null | undefined; readonly releases?: ReleaseCollectionFilter | null | undefined; readonly customerCount?: NumberComparator | null | undefined; readonly customerImportantCount?: NumberComparator | null | undefined; readonly leadTime?: NullableDurationComparator | null | undefined; readonly cycleTime?: NullableDurationComparator | null | undefined; readonly ageTime?: NullableDurationComparator | null | undefined; readonly triageTime?: NullableDurationComparator | null | undefined; readonly and?: ReadonlyArray | null | undefined; readonly or?: ReadonlyArray | null | undefined; } /** Compares issue UUIDs or full identifiers such as `ENG-123` in the current workspace. Use the complete team prefix and number, not the number alone. Unresolved identifiers match nothing in `eq` or `in` and are ignored in `neq` or `nin`. All supplied conditions must match. */ export interface IssueIDComparator { readonly eq?: string | null | undefined; readonly neq?: string | null | undefined; readonly in?: ReadonlyArray | null | undefined; readonly nin?: ReadonlyArray | null | undefined; } /** The mapping choices to save on an import without starting processing. For external-service imports, mapping replaces the existing configuration, so include the choices you want to retain. */ export interface IssueImportUpdateInput { readonly mapping: unknown; } /** Conditions on a collection of labels. Use some to require a matching item, every to check the whole collection, or length to check its size. Direct label fields act as some only when no and, or, some, every, or length clause is supplied. */ export interface IssueLabelCollectionFilter { readonly id?: IDComparator | null | undefined; readonly createdAt?: DateComparator | null | undefined; readonly updatedAt?: DateComparator | null | undefined; readonly name?: StringComparator | null | undefined; readonly isGroup?: BooleanComparator | null | undefined; readonly creator?: NullableUserFilter | null | undefined; readonly team?: NullableTeamFilter | null | undefined; readonly parent?: IssueLabelFilter | null | undefined; readonly null?: boolean | null | undefined; readonly and?: ReadonlyArray | null | undefined; readonly or?: ReadonlyArray | null | undefined; readonly some?: IssueLabelFilter | null | undefined; readonly every?: IssueLabelFilter | null | undefined; readonly length?: NumberComparator | null | undefined; } /** The details for a new label or label group. Omit teamId to create a workspace label, or supply a team UUID to limit its scope. Set isGroup for a group and groupType for its selection behavior; regular labels can join a group through parentId. */ export interface IssueLabelCreateInput { readonly id?: string | null | undefined; readonly name: string; readonly description?: string | null | undefined; readonly color?: string | null | undefined; readonly parentId?: string | null | undefined; readonly isGroup?: boolean | null | undefined; readonly retiredAt?: string | null | undefined; readonly groupType?: "singleSelect" | "multiSelect" | null | undefined; readonly teamId?: string | null | undefined; } /** Conditions used to select labels. Supplied fields are combined with AND; use `or` to accept alternatives and `and` to group conditions. */ export interface IssueLabelFilter { readonly id?: IDComparator | null | undefined; readonly createdAt?: DateComparator | null | undefined; readonly updatedAt?: DateComparator | null | undefined; readonly name?: StringComparator | null | undefined; readonly isGroup?: BooleanComparator | null | undefined; readonly creator?: NullableUserFilter | null | undefined; readonly team?: NullableTeamFilter | null | undefined; readonly parent?: IssueLabelFilter | null | undefined; readonly and?: ReadonlyArray | null | undefined; readonly or?: ReadonlyArray | null | undefined; } /** The changes to a label or label group. Omitted fields keep their values. Update an inherited label at its source; changing a group's selection mode affects which combinations of child labels issues can use. */ export interface IssueLabelUpdateInput { readonly name?: string | null | undefined; readonly description?: string | null | undefined; readonly parentId?: string | null | undefined; readonly color?: string | null | undefined; readonly isGroup?: boolean | null | undefined; readonly retiredAt?: string | null | undefined; readonly groupType?: "singleSelect" | "multiSelect" | null | undefined; } /** A reference to an issue discovered during release sync, linking the issue identifier to the commit SHA where the reference was found. */ export interface IssueReferenceInput { readonly identifier: string; readonly commitSha: string; } /** The relationship to establish between two distinct issues. Both ends accept issue UUIDs or human-readable identifiers. Creating a relation replaces a conflicting relation between the pair; an identical relation is reused. A duplicate relation also merges the source issue into the target. */ export interface IssueRelationCreateInput { readonly id?: string | null | undefined; readonly type: "blocks" | "duplicate" | "related" | "similar"; readonly issueId: string; readonly relatedIssueId: string; } /** Changes to an existing relation's type or either end. Omit fields you want to keep. The resulting source and target must be distinct, and changing a duplicate relation can undo or trigger duplicate-merge behavior. */ export interface IssueRelationUpdateInput { readonly type?: string | null | undefined; readonly issueId?: string | null | undefined; readonly relatedIssueId?: string | null | undefined; } /** Issue sorting options. */ export interface IssueSortInput { readonly priority?: PrioritySort | null | undefined; readonly estimate?: EstimateSort | null | undefined; readonly title?: TitleSort | null | undefined; readonly label?: LabelSort | null | undefined; readonly labelGroup?: LabelGroupSort | null | undefined; readonly slaStatus?: SlaStatusSort | null | undefined; readonly createdAt?: CreatedAtSort | null | undefined; readonly updatedAt?: UpdatedAtSort | null | undefined; readonly completedAt?: CompletedAtSort | null | undefined; readonly dueDate?: DueDateSort | null | undefined; readonly cycle?: CycleSort | null | undefined; readonly milestone?: MilestoneSort | null | undefined; readonly assignee?: AssigneeSort | null | undefined; readonly delegate?: DelegateSort | null | undefined; readonly project?: ProjectSort | null | undefined; readonly team?: TeamSort | null | undefined; readonly manual?: ManualSort | null | undefined; readonly workflowState?: WorkflowStateSort | null | undefined; readonly customer?: CustomerSort | null | undefined; readonly customerRevenue?: CustomerRevenueSort | null | undefined; readonly customerCount?: CustomerCountSort | null | undefined; readonly customerImportantCount?: CustomerImportantCountSort | null | undefined; readonly rootIssue?: RootIssueSort | null | undefined; readonly linkCount?: LinkCountSort | null | undefined; readonly release?: ReleaseSort | null | undefined; } /** Filters issue creation and update events using the issue's values in the event. All supplied conditions must match. IDs must be UUIDs. Exclusions with `neq` or `nin` do not match an unset relationship, such as an unassigned issue. */ export interface IssueSubscriptionFilter { readonly teamId?: IDComparator | null | undefined; readonly projectId?: IDComparator | null | undefined; readonly assigneeId?: IDComparator | null | undefined; readonly stateId?: IDComparator | null | undefined; readonly parentId?: IDComparator | null | undefined; } /** IssueSuggestion collection filtering options. */ export interface IssueSuggestionCollectionFilter { readonly id?: IDComparator | null | undefined; readonly createdAt?: DateComparator | null | undefined; readonly updatedAt?: DateComparator | null | undefined; readonly type?: StringComparator | null | undefined; readonly state?: StringComparator | null | undefined; readonly suggestedUser?: NullableUserFilter | null | undefined; readonly suggestedProject?: NullableProjectFilter | null | undefined; readonly suggestedTeam?: NullableTeamFilter | null | undefined; readonly suggestedLabel?: IssueLabelFilter | null | undefined; readonly and?: ReadonlyArray | null | undefined; readonly or?: ReadonlyArray | null | undefined; readonly some?: IssueSuggestionFilter | null | undefined; readonly every?: IssueSuggestionFilter | null | undefined; readonly length?: NumberComparator | null | undefined; } /** IssueSuggestion filtering options. */ export interface IssueSuggestionFilter { readonly id?: IDComparator | null | undefined; readonly createdAt?: DateComparator | null | undefined; readonly updatedAt?: DateComparator | null | undefined; readonly type?: StringComparator | null | undefined; readonly state?: StringComparator | null | undefined; readonly suggestedUser?: NullableUserFilter | null | undefined; readonly suggestedProject?: NullableProjectFilter | null | undefined; readonly suggestedTeam?: NullableTeamFilter | null | undefined; readonly suggestedLabel?: IssueLabelFilter | null | undefined; readonly and?: ReadonlyArray | null | undefined; readonly or?: ReadonlyArray | null | undefined; } /** The issue and release to connect. Supply an issue UUID or human-readable identifier and the release UUID. Each pair can have only one active association. */ export interface IssueToReleaseCreateInput { readonly id?: string | null | undefined; readonly issueId: string; readonly releaseId: string; } /** The changes to make to an existing issue. Omit a field to keep its current value; each nullable field describes how to clear it. Lists such as labelIds and subscriberIds replace existing assignments, while addedLabelIds and removedLabelIds change only the specified labels. */ export interface IssueUpdateInput { readonly title?: string | null | undefined; readonly description?: string | null | undefined; readonly assigneeId?: string | null | undefined; readonly delegateId?: string | null | undefined; readonly parentId?: string | null | undefined; readonly priority?: number | null | undefined; readonly estimate?: number | null | undefined; readonly subscriberIds?: ReadonlyArray | null | undefined; readonly labelIds?: ReadonlyArray | null | undefined; readonly addedLabelIds?: ReadonlyArray | null | undefined; readonly removedLabelIds?: ReadonlyArray | null | undefined; readonly releaseIds?: ReadonlyArray | null | undefined; readonly addedReleaseIds?: ReadonlyArray | null | undefined; readonly removedReleaseIds?: ReadonlyArray | null | undefined; readonly teamId?: string | null | undefined; readonly cycleId?: string | null | undefined; readonly projectId?: string | null | undefined; readonly projectMilestoneId?: string | null | undefined; readonly lastAppliedTemplateId?: string | null | undefined; readonly stateId?: string | null | undefined; readonly sortOrder?: number | null | undefined; readonly prioritySortOrder?: number | null | undefined; readonly subIssueSortOrder?: number | null | undefined; readonly dueDate?: string | null | undefined; readonly inheritsSharedAccess?: boolean | null | undefined; readonly trashed?: boolean | null | undefined; readonly snoozedUntilAt?: string | null | undefined; readonly snoozedById?: string | null | undefined; readonly slaType?: "all" | "onlyBusinessDays" | null | undefined; readonly autoClosedByParentClosing?: boolean | null | undefined; } /** The Jira projects of one connected Jira site to migrate to Linear. */ export interface JiraProjectBatchMigrateInput { readonly integrationId: string; readonly projects: ReadonlyArray; } /** One Jira project to import, sync with a Linear team, or both. Give exactly one of externalId and key, and at least one of import and sync. An import can target an existing team or create one from teamName; sync without an import requires an existing team. If both are requested, synchronization starts after the import completes. */ export interface JiraProjectBatchMigrateProjectInput { readonly externalId?: string | null | undefined; readonly key?: string | null | undefined; readonly teamId?: string | null | undefined; readonly teamName?: string | null | undefined; readonly import?: JiraProjectMigrateImportInput | null | undefined; readonly sync?: JiraProjectMigrateSyncInput | null | undefined; } /** Filters Jira project records by their Linear integration, Jira project key, synced team, or common entity fields. Combine integrationId and key when the same project key may exist on more than one connected Jira site. */ export interface JiraProjectFilter { readonly id?: IDComparator | null | undefined; readonly createdAt?: DateComparator | null | undefined; readonly updatedAt?: DateComparator | null | undefined; readonly integrationId?: IDComparator | null | undefined; readonly key?: StringComparator | null | undefined; readonly team?: NullableTeamFilter | null | undefined; readonly and?: ReadonlyArray | null | undefined; readonly or?: ReadonlyArray | null | undefined; } /** Options for importing a Jira project's existing issues through its workspace integration. Choose whether to include stale or closed issues and how to map Jira users. This copies existing issues; ongoing synchronization is configured separately with sync. */ export interface JiraProjectMigrateImportInput { readonly jql?: string | null | undefined; readonly includeStaleIssues: boolean; readonly includeClosedIssues: boolean; readonly users: "matchAndInvite" | "matchOnly" | "skip"; } /** How a Jira project syncs with its team. */ export interface JiraProjectMigrateSyncInput { readonly syncDirection: "bidirectional" | "jiraToLinear" | "legacyJiraToLinear"; } /** Issue label-group sorting options. */ export interface LabelGroupSort { readonly nulls?: "first" | "last" | null | undefined; readonly order?: "Ascending" | "Descending" | null | undefined; readonly labelGroupId: string; } /** Issue label sorting options. */ export interface LabelSort { readonly nulls?: "first" | "last" | null | undefined; readonly order?: "Ascending" | "Descending" | null | undefined; } /** [ALPHA] Issue link count sorting options. */ export interface LinkCountSort { readonly nulls?: "first" | "last" | null | undefined; readonly order?: "Ascending" | "Descending" | null | undefined; } /** Issue manual sorting options. */ export interface ManualSort { readonly nulls?: "first" | "last" | null | undefined; readonly order?: "Ascending" | "Descending" | null | undefined; } /** Issue project milestone options. */ export interface MilestoneSort { readonly nulls?: "first" | "last" | null | undefined; readonly order?: "Ascending" | "Descending" | null | undefined; } /** Customer name sorting options. */ export interface NameSort { readonly nulls?: "first" | "last" | null | undefined; readonly order?: "Ascending" | "Descending" | null | undefined; } /** The notification categories and channels to change. Only supplied channel values are updated; omitted categories and channels keep their saved settings. Channel-wide preferences can still prevent delivery for an enabled category. */ export interface NotificationCategoryPreferencesInput { readonly assignments?: PartialNotificationChannelPreferencesInput | null | undefined; readonly statusChanges?: PartialNotificationChannelPreferencesInput | null | undefined; readonly commentsAndReplies?: PartialNotificationChannelPreferencesInput | null | undefined; readonly mentions?: PartialNotificationChannelPreferencesInput | null | undefined; readonly reactions?: PartialNotificationChannelPreferencesInput | null | undefined; readonly subscriptions?: PartialNotificationChannelPreferencesInput | null | undefined; readonly documentChanges?: PartialNotificationChannelPreferencesInput | null | undefined; readonly postsAndUpdates?: PartialNotificationChannelPreferencesInput | null | undefined; readonly reminders?: PartialNotificationChannelPreferencesInput | null | undefined; readonly reviews?: PartialNotificationChannelPreferencesInput | null | undefined; readonly loops?: PartialNotificationChannelPreferencesInput | null | undefined; readonly appsAndIntegrations?: PartialNotificationChannelPreferencesInput | null | undefined; readonly triage?: PartialNotificationChannelPreferencesInput | null | undefined; readonly customers?: PartialNotificationChannelPreferencesInput | null | undefined; readonly feed?: PartialNotificationChannelPreferencesInput | null | undefined; readonly billing?: PartialNotificationChannelPreferencesInput | null | undefined; } /** Delivery timing for a notification channel. A schedule limits when delivery is allowed; notificationChannelPreferences controls whether the channel is enabled. */ export interface NotificationDeliveryPreferencesChannelInput { readonly schedule?: NotificationDeliveryPreferencesScheduleInput | null | undefined; } /** Notification delivery window for one day, in the user's time zone. An empty object disables delivery for that day. */ export interface NotificationDeliveryPreferencesDayInput { readonly start?: string | null | undefined; readonly end?: string | null | undefined; } /** Mobile notification delivery preferences. Other channels do not support delivery schedules. */ export interface NotificationDeliveryPreferencesInput { readonly mobile?: NotificationDeliveryPreferencesChannelInput | null | undefined; } /** A weekly mobile notification schedule in your user time zone. Supply all seven days, using an empty object for days without delivery. Days with delivery must use the same start and end times. Set disabled to true to allow delivery at any time. */ export interface NotificationDeliveryPreferencesScheduleInput { readonly disabled?: boolean | null | undefined; readonly sunday: NotificationDeliveryPreferencesDayInput; readonly monday: NotificationDeliveryPreferencesDayInput; readonly tuesday: NotificationDeliveryPreferencesDayInput; readonly wednesday: NotificationDeliveryPreferencesDayInput; readonly thursday: NotificationDeliveryPreferencesDayInput; readonly friday: NotificationDeliveryPreferencesDayInput; readonly saturday: NotificationDeliveryPreferencesDayInput; } /** Identifies a specific entity whose related notifications should be targeted by a batch operation. Exactly one entity identifier should be provided. */ export interface NotificationEntityInput { readonly issueId?: string | null | undefined; readonly projectId?: string | null | undefined; readonly initiativeId?: string | null | undefined; readonly projectUpdateId?: string | null | undefined; readonly initiativeUpdateId?: string | null | undefined; readonly oauthClientApprovalId?: string | null | undefined; readonly id?: string | null | undefined; } /** Filters notifications by event type, subscription reason, or archive date. Supplied conditions must match together; use and and or to combine nested filters. */ export interface NotificationFilter { readonly id?: IDComparator | null | undefined; readonly createdAt?: DateComparator | null | undefined; readonly updatedAt?: DateComparator | null | undefined; readonly type?: StringComparator | null | undefined; readonly subscriptionType?: NotificationSubscriptionTypeComparator | null | undefined; readonly archivedAt?: DateComparator | null | undefined; readonly and?: ReadonlyArray | null | undefined; readonly or?: ReadonlyArray | null | undefined; } /** Input for creating a notification subscription. Exactly one target entity (customer, custom view, cycle, initiative, label, project, team, or user) must be specified along with the notification types to subscribe to. */ export interface NotificationSubscriptionCreateInput { readonly id?: string | null | undefined; readonly customerId?: string | null | undefined; readonly customViewId?: string | null | undefined; readonly cycleId?: string | null | undefined; readonly initiativeId?: string | null | undefined; readonly labelId?: string | null | undefined; readonly projectId?: string | null | undefined; readonly teamId?: string | null | undefined; readonly userId?: string | null | undefined; readonly contextViewType?: | "activeIssues" | "activeCycle" | "upcomingCycle" | "backlog" | "triage" | null | undefined; readonly userContextViewType?: "assigned" | null | undefined; readonly notificationSubscriptionTypes?: ReadonlyArray | null | undefined; readonly active?: boolean | null | undefined; readonly includeSubInitiativeUpdates?: boolean | null | undefined; } /** Comparator for notification subscription type. */ export interface NotificationSubscriptionTypeComparator { readonly eq?: | "customer" | "customView" | "cycle" | "label" | "issue" | "oauthClientApproval" | "project" | "initiative" | "document" | "pullRequest" | "team" | "user" | "workflowDefinition" | null | undefined; readonly neq?: | "customer" | "customView" | "cycle" | "label" | "issue" | "oauthClientApproval" | "project" | "initiative" | "document" | "pullRequest" | "team" | "user" | "workflowDefinition" | null | undefined; readonly in?: | ReadonlyArray< | "customer" | "customView" | "cycle" | "label" | "issue" | "oauthClientApproval" | "project" | "initiative" | "document" | "pullRequest" | "team" | "user" | "workflowDefinition" > | null | undefined; readonly nin?: | ReadonlyArray< | "customer" | "customView" | "cycle" | "label" | "issue" | "oauthClientApproval" | "project" | "initiative" | "document" | "pullRequest" | "team" | "user" | "workflowDefinition" > | null | undefined; } /** Changes to your subscription's event types, active state, or inclusion of sub-initiative updates. Omitted fields stay unchanged. The target entity and view cannot be changed. */ export interface NotificationSubscriptionUpdateInput { readonly includeSubInitiativeUpdates?: boolean | null | undefined; readonly notificationSubscriptionTypes?: ReadonlyArray | null | undefined; readonly active?: boolean | null | undefined; } /** Changes to one notification. Omitted fields remain unchanged; use inboxNotificationUpdate to update the related inbox group. */ export interface NotificationUpdateInput { readonly readAt?: string | null | undefined; readonly snoozedUntilAt?: string | null | undefined; readonly projectUpdateId?: string | null | undefined; readonly initiativeUpdateId?: string | null | undefined; } /** Conditions on an optional comment relation. Use null to test whether the relation is set, or supply comment fields to filter the related record. Combine conditions with `and` or `or`. */ export interface NullableCommentFilter { readonly id?: IDComparator | null | undefined; readonly createdAt?: DateComparator | null | undefined; readonly updatedAt?: DateComparator | null | undefined; readonly body?: StringComparator | null | undefined; readonly user?: UserFilter | null | undefined; readonly issue?: NullableIssueFilter | null | undefined; readonly projectUpdate?: NullableProjectUpdateFilter | null | undefined; readonly initiativeUpdate?: NullableInitiativeUpdateFilter | null | undefined; readonly parent?: NullableCommentFilter | null | undefined; readonly documentContent?: NullableDocumentContentFilter | null | undefined; readonly project?: NullableProjectFilter | null | undefined; readonly initiative?: NullableInitiativeFilter | null | undefined; readonly reactions?: ReactionCollectionFilter | null | undefined; readonly needs?: CustomerNeedCollectionFilter | null | undefined; readonly null?: boolean | null | undefined; readonly and?: ReadonlyArray | null | undefined; readonly or?: ReadonlyArray | null | undefined; } /** Filters an optional relation to customers. Use null to test whether the relation is set, or supply property conditions to filter the related object. */ export interface NullableCustomerFilter { readonly id?: IDComparator | null | undefined; readonly createdAt?: DateComparator | null | undefined; readonly updatedAt?: DateComparator | null | undefined; readonly name?: StringComparator | null | undefined; readonly slackChannelId?: StringComparator | null | undefined; readonly domains?: StringArrayComparator | null | undefined; readonly externalIds?: StringArrayComparator | null | undefined; readonly owner?: NullableUserFilter | null | undefined; readonly needs?: CustomerNeedCollectionFilter | null | undefined; readonly revenue?: NumberComparator | null | undefined; readonly size?: NumberComparator | null | undefined; readonly status?: CustomerStatusFilter | null | undefined; readonly tier?: CustomerTierFilter | null | undefined; readonly null?: boolean | null | undefined; readonly and?: ReadonlyArray | null | undefined; readonly or?: ReadonlyArray | null | undefined; } /** Conditions on an optional cycle relation. Use null to test whether the relation is set, or supply cycle fields to filter the related record. Combine conditions with `and` or `or`. */ export interface NullableCycleFilter { readonly id?: IDComparator | null | undefined; readonly createdAt?: DateComparator | null | undefined; readonly updatedAt?: DateComparator | null | undefined; readonly number?: NumberComparator | null | undefined; readonly name?: StringComparator | null | undefined; readonly startsAt?: DateComparator | null | undefined; readonly endsAt?: DateComparator | null | undefined; readonly completedAt?: DateComparator | null | undefined; readonly isActive?: BooleanComparator | null | undefined; readonly isInCooldown?: BooleanComparator | null | undefined; readonly isNext?: BooleanComparator | null | undefined; readonly isPrevious?: BooleanComparator | null | undefined; readonly isFuture?: BooleanComparator | null | undefined; readonly isPast?: BooleanComparator | null | undefined; readonly team?: TeamFilter | null | undefined; readonly issues?: IssueCollectionFilter | null | undefined; readonly inheritedFromId?: IDComparator | null | undefined; readonly null?: boolean | null | undefined; readonly and?: ReadonlyArray | null | undefined; readonly or?: ReadonlyArray | null | undefined; } /** Compares optional timestamps at millisecond precision. Accepts ISO 8601 timestamps or durations relative to when the filter runs, such as `-P7D`. Combine `gte` and `lt` for a time window. Use `{ null: true }` for missing timestamps; `nin` also includes missing values, while `neq` and range comparisons do not. */ export interface NullableDateComparator { readonly eq?: string | null | undefined; readonly neq?: string | null | undefined; readonly in?: ReadonlyArray | null | undefined; readonly nin?: ReadonlyArray | null | undefined; readonly null?: boolean | null | undefined; readonly lt?: string | null | undefined; readonly lte?: string | null | undefined; readonly gt?: string | null | undefined; readonly gte?: string | null | undefined; } /** Conditions on an optional document content relation. Use null to test whether the relation is set, or supply document content fields to filter the related record. Combine conditions with `and` or `or`. */ export interface NullableDocumentContentFilter { readonly id?: IDComparator | null | undefined; readonly createdAt?: DateComparator | null | undefined; readonly updatedAt?: DateComparator | null | undefined; readonly content?: NullableStringComparator | null | undefined; readonly project?: ProjectFilter | null | undefined; readonly initiative?: InitiativeFilter | null | undefined; readonly issue?: IssueFilter | null | undefined; readonly document?: DocumentFilter | null | undefined; readonly projectMilestone?: ProjectMilestoneFilter | null | undefined; readonly null?: boolean | null | undefined; readonly and?: ReadonlyArray | null | undefined; readonly or?: ReadonlyArray | null | undefined; } /** Conditions on an optional document relation. Use null to test whether the relation is set, or supply document fields to filter the related record. Combine conditions with `and` or `or`. */ export interface NullableDocumentFilter { readonly id?: IDComparator | null | undefined; readonly createdAt?: DateComparator | null | undefined; readonly updatedAt?: DateComparator | null | undefined; readonly title?: StringComparator | null | undefined; readonly searchableContent?: ContentComparator | null | undefined; readonly slugId?: StringComparator | null | undefined; readonly creator?: UserFilter | null | undefined; readonly owner?: NullableUserFilter | null | undefined; readonly project?: ProjectFilter | null | undefined; readonly issue?: IssueFilter | null | undefined; readonly initiative?: InitiativeFilter | null | undefined; readonly team?: NullableTeamFilter | null | undefined; readonly cycle?: CycleFilter | null | undefined; readonly release?: ReleaseFilter | null | undefined; readonly parentDocument?: NullableDocumentFilter | null | undefined; readonly personalUser?: NullableUserFilter | null | undefined; readonly null?: boolean | null | undefined; readonly and?: ReadonlyArray | null | undefined; readonly or?: ReadonlyArray | null | undefined; } /** Compares optional elapsed durations using ISO 8601 duration strings or numbers in milliseconds. All supplied conditions must match. Use `{ null: true }` for missing durations; `nin` also includes missing values, while `neq` and range comparisons do not. */ export interface NullableDurationComparator { readonly eq?: string | number | null | undefined; readonly neq?: string | number | null | undefined; readonly in?: ReadonlyArray | null | undefined; readonly nin?: ReadonlyArray | null | undefined; readonly null?: boolean | null | undefined; readonly lt?: string | number | null | undefined; readonly lte?: string | number | null | undefined; readonly gt?: string | number | null | undefined; readonly gte?: string | number | null | undefined; } /** Filters an optional relation to initiatives. Use null to test whether the relation is set, or supply property conditions to filter the related object. */ export interface NullableInitiativeFilter { readonly id?: EntityIdentifierIDComparator | null | undefined; readonly createdAt?: DateComparator | null | undefined; readonly updatedAt?: DateComparator | null | undefined; readonly name?: StringComparator | null | undefined; readonly slugId?: StringComparator | null | undefined; readonly customIdentifier?: NullableStringComparator | null | undefined; readonly creator?: NullableUserFilter | null | undefined; readonly status?: StringComparator | null | undefined; readonly priority?: NullableNumberComparator | null | undefined; readonly teams?: TeamCollectionFilter | null | undefined; readonly leadTeam?: NullableTeamFilter | null | undefined; readonly owner?: NullableUserFilter | null | undefined; readonly targetDate?: NullableDateComparator | null | undefined; readonly startedAt?: NullableDateComparator | null | undefined; readonly completedAt?: NullableDateComparator | null | undefined; readonly canceledAt?: NullableDateComparator | null | undefined; readonly health?: StringComparator | null | undefined; readonly healthWithAge?: StringComparator | null | undefined; readonly activityType?: StringComparator | null | undefined; readonly ancestors?: InitiativeCollectionFilter | null | undefined; readonly labels?: InitiativeLabelCollectionFilter | null | undefined; readonly projects?: ProjectCollectionFilter | null | undefined; readonly initiativeUpdates?: InitiativeUpdatesCollectionFilter | null | undefined; readonly null?: boolean | null | undefined; readonly and?: ReadonlyArray | null | undefined; readonly or?: ReadonlyArray | null | undefined; } /** Filters an optional relation to initiative updates. Use null to test whether the relation is set, or supply property conditions to filter the related object. */ export interface NullableInitiativeUpdateFilter { readonly id?: IDComparator | null | undefined; readonly createdAt?: DateComparator | null | undefined; readonly updatedAt?: DateComparator | null | undefined; readonly user?: UserFilter | null | undefined; readonly initiative?: InitiativeFilter | null | undefined; readonly reactions?: ReactionCollectionFilter | null | undefined; readonly null?: boolean | null | undefined; readonly and?: ReadonlyArray | null | undefined; readonly or?: ReadonlyArray | null | undefined; } /** Conditions on an optional issue relation. Use null to test whether the relation is set, or supply issue fields to filter the related record. Combine conditions with `and` or `or`. */ export interface NullableIssueFilter { readonly id?: IssueIDComparator | null | undefined; readonly createdAt?: DateComparator | null | undefined; readonly updatedAt?: DateComparator | null | undefined; readonly number?: NumberComparator | null | undefined; readonly title?: StringComparator | null | undefined; readonly description?: NullableStringComparator | null | undefined; readonly priority?: NullableNumberComparator | null | undefined; readonly estimate?: EstimateComparator | null | undefined; readonly startedAt?: NullableDateComparator | null | undefined; readonly triagedAt?: NullableDateComparator | null | undefined; readonly completedAt?: NullableDateComparator | null | undefined; readonly canceledAt?: NullableDateComparator | null | undefined; readonly slaBreachesAt?: NullableDateComparator | null | undefined; readonly archivedAt?: NullableDateComparator | null | undefined; readonly autoClosedAt?: NullableDateComparator | null | undefined; readonly autoArchivedAt?: NullableDateComparator | null | undefined; readonly addedToCycleAt?: NullableDateComparator | null | undefined; readonly addedToCyclePeriod?: CyclePeriodComparator | null | undefined; readonly dueDate?: NullableTimelessDateComparator | null | undefined; readonly accumulatedStateUpdatedAt?: NullableDateComparator | null | undefined; readonly snoozedUntilAt?: NullableDateComparator | null | undefined; readonly assignee?: NullableUserFilter | null | undefined; readonly delegate?: NullableUserFilter | null | undefined; readonly lastAppliedTemplate?: NullableTemplateFilter | null | undefined; readonly recurringIssueTemplate?: NullableTemplateFilter | null | undefined; readonly sourceMetadata?: SourceMetadataComparator | null | undefined; readonly creator?: NullableUserFilter | null | undefined; readonly parent?: NullableIssueFilter | null | undefined; readonly snoozedBy?: NullableUserFilter | null | undefined; readonly labels?: IssueLabelCollectionFilter | null | undefined; readonly subscribers?: UserCollectionFilter | null | undefined; readonly hasSharedUsers?: RelationExistsComparator | null | undefined; readonly sharedWith?: UserCollectionFilter | null | undefined; readonly team?: TeamFilter | null | undefined; readonly projectMilestone?: NullableProjectMilestoneFilter | null | undefined; readonly comments?: CommentCollectionFilter | null | undefined; readonly activity?: ActivityCollectionFilter | null | undefined; readonly suggestions?: IssueSuggestionCollectionFilter | null | undefined; readonly cycle?: NullableCycleFilter | null | undefined; readonly project?: NullableProjectFilter | null | undefined; readonly state?: WorkflowStateFilter | null | undefined; readonly children?: IssueCollectionFilter | null | undefined; readonly attachments?: AttachmentCollectionFilter | null | undefined; readonly searchableContent?: ContentComparator | null | undefined; readonly hasRelatedRelations?: RelationExistsComparator | null | undefined; readonly hasDuplicateRelations?: RelationExistsComparator | null | undefined; readonly hasBlockedByRelations?: RelationExistsComparator | null | undefined; readonly hasBlockingRelations?: RelationExistsComparator | null | undefined; readonly hasSuggestedRelatedIssues?: RelationExistsComparator | null | undefined; readonly hasSuggestedSimilarIssues?: RelationExistsComparator | null | undefined; readonly hasSuggestedAssignees?: RelationExistsComparator | null | undefined; readonly hasSuggestedProjects?: RelationExistsComparator | null | undefined; readonly hasSuggestedLabels?: RelationExistsComparator | null | undefined; readonly hasSuggestedTeams?: RelationExistsComparator | null | undefined; readonly hasActiveAgentSessions?: RelationExistsComparator | null | undefined; readonly hasDismissedAgentSessions?: RelationExistsComparator | null | undefined; readonly hasErroredAgentSessions?: RelationExistsComparator | null | undefined; readonly hasMergedAgentPullRequests?: RelationExistsComparator | null | undefined; readonly slaStatus?: SlaStatusComparator | null | undefined; readonly reactions?: ReactionCollectionFilter | null | undefined; readonly needs?: CustomerNeedCollectionFilter | null | undefined; readonly releases?: ReleaseCollectionFilter | null | undefined; readonly customerCount?: NumberComparator | null | undefined; readonly customerImportantCount?: NumberComparator | null | undefined; readonly leadTime?: NullableDurationComparator | null | undefined; readonly cycleTime?: NullableDurationComparator | null | undefined; readonly ageTime?: NullableDurationComparator | null | undefined; readonly triageTime?: NullableDurationComparator | null | undefined; readonly null?: boolean | null | undefined; readonly and?: ReadonlyArray | null | undefined; readonly or?: ReadonlyArray | null | undefined; } /** Compares optional numbers by equality, list membership, or range, with values between -2147483648 and 2147483647. Supplied conditions are combined with AND. Use `{ null: true }` for missing values or `{ null: false }` to require a value. `nin` includes missing values; `neq` and range comparisons do not. */ export interface NullableNumberComparator { readonly eq?: number | null | undefined; readonly neq?: number | null | undefined; readonly in?: ReadonlyArray | null | undefined; readonly nin?: ReadonlyArray | null | undefined; readonly null?: boolean | null | undefined; readonly lt?: number | null | undefined; readonly lte?: number | null | undefined; readonly gt?: number | null | undefined; readonly gte?: number | null | undefined; } /** Filters an optional relation to projects. Use null to test whether the relation is set, or supply property conditions to filter the related object. */ export interface NullableProjectFilter { readonly id?: EntityIdentifierIDComparator | null | undefined; readonly createdAt?: DateComparator | null | undefined; readonly updatedAt?: DateComparator | null | undefined; readonly name?: StringComparator | null | undefined; readonly slugId?: StringComparator | null | undefined; readonly customIdentifier?: NullableStringComparator | null | undefined; readonly state?: StringComparator | null | undefined; readonly status?: ProjectStatusFilter | null | undefined; readonly priority?: NullableNumberComparator | null | undefined; readonly labels?: ProjectLabelCollectionFilter | null | undefined; readonly searchableContent?: ContentComparator | null | undefined; readonly startedAt?: NullableDateComparator | null | undefined; readonly completedAt?: NullableDateComparator | null | undefined; readonly canceledAt?: NullableDateComparator | null | undefined; readonly startDate?: NullableDateComparator | null | undefined; readonly targetDate?: NullableDateComparator | null | undefined; readonly health?: StringComparator | null | undefined; readonly healthWithAge?: StringComparator | null | undefined; readonly activityType?: StringComparator | null | undefined; readonly hasRelatedRelations?: RelationExistsComparator | null | undefined; readonly hasDependedOnByRelations?: RelationExistsComparator | null | undefined; readonly hasDependsOnRelations?: RelationExistsComparator | null | undefined; readonly hasBlockedByRelations?: RelationExistsComparator | null | undefined; readonly hasBlockingRelations?: RelationExistsComparator | null | undefined; readonly hasViolatedRelations?: RelationExistsComparator | null | undefined; readonly projectUpdates?: ProjectUpdatesCollectionFilter | null | undefined; readonly creator?: UserFilter | null | undefined; readonly lead?: NullableUserFilter | null | undefined; readonly members?: UserCollectionFilter | null | undefined; readonly issues?: IssueCollectionFilter | null | undefined; readonly roadmaps?: RoadmapCollectionFilter | null | undefined; readonly initiatives?: InitiativeCollectionFilter | null | undefined; readonly projectMilestones?: ProjectMilestoneCollectionFilter | null | undefined; readonly completedProjectMilestones?: ProjectMilestoneCollectionFilter | null | undefined; readonly nextProjectMilestone?: ProjectMilestoneFilter | null | undefined; readonly accessibleTeams?: TeamCollectionFilter | null | undefined; readonly leadTeam?: NullableTeamFilter | null | undefined; readonly lastAppliedTemplate?: NullableTemplateFilter | null | undefined; readonly needs?: CustomerNeedCollectionFilter | null | undefined; readonly customerCount?: NumberComparator | null | undefined; readonly customerImportantCount?: NumberComparator | null | undefined; readonly null?: boolean | null | undefined; readonly and?: ReadonlyArray | null | undefined; readonly or?: ReadonlyArray | null | undefined; } /** Filters an optional relation to project milestones. Use null to test whether the relation is set, or supply property conditions to filter the related object. */ export interface NullableProjectMilestoneFilter { readonly id?: IDComparator | null | undefined; readonly createdAt?: DateComparator | null | undefined; readonly updatedAt?: DateComparator | null | undefined; readonly name?: NullableStringComparator | null | undefined; readonly targetDate?: NullableDateComparator | null | undefined; readonly project?: NullableProjectFilter | null | undefined; readonly null?: boolean | null | undefined; readonly and?: ReadonlyArray | null | undefined; readonly or?: ReadonlyArray | null | undefined; } /** Filters an optional relation to project updates. Use null to test whether the relation is set, or supply property conditions to filter the related object. */ export interface NullableProjectUpdateFilter { readonly id?: IDComparator | null | undefined; readonly createdAt?: DateComparator | null | undefined; readonly updatedAt?: DateComparator | null | undefined; readonly user?: UserFilter | null | undefined; readonly project?: ProjectFilter | null | undefined; readonly reactions?: ReactionCollectionFilter | null | undefined; readonly null?: boolean | null | undefined; readonly and?: ReadonlyArray | null | undefined; readonly or?: ReadonlyArray | null | undefined; } /** Compares optional text, with all supplied conditions combined with AND. Text is literal and case-sensitive unless the operator says otherwise. Use `{ null: true }` for missing values; an empty string is a set value. `nin` includes missing values, while other exclusions do not. Prefix, suffix, substring, and case-insensitive operators ignore empty strings. */ export interface NullableStringComparator { readonly eq?: string | null | undefined; readonly neq?: string | null | undefined; readonly in?: ReadonlyArray | null | undefined; readonly nin?: ReadonlyArray | null | undefined; readonly null?: boolean | null | undefined; readonly eqIgnoreCase?: string | null | undefined; readonly neqIgnoreCase?: string | null | undefined; readonly startsWith?: string | null | undefined; readonly startsWithIgnoreCase?: string | null | undefined; readonly notStartsWith?: string | null | undefined; readonly endsWith?: string | null | undefined; readonly notEndsWith?: string | null | undefined; readonly contains?: string | null | undefined; readonly containsIgnoreCase?: string | null | undefined; readonly notContains?: string | null | undefined; readonly notContainsIgnoreCase?: string | null | undefined; readonly containsIgnoreCaseAndAccent?: string | null | undefined; } /** Filters an optional relation to teams. Use null to test whether the relation is set, or supply property conditions to filter the related object. */ export interface NullableTeamFilter { readonly id?: IDComparator | null | undefined; readonly createdAt?: DateComparator | null | undefined; readonly updatedAt?: DateComparator | null | undefined; readonly name?: StringComparator | null | undefined; readonly key?: StringComparator | null | undefined; readonly description?: NullableStringComparator | null | undefined; readonly private?: BooleanComparator | null | undefined; readonly visibility?: TeamVisibilityComparator | null | undefined; readonly members?: UserCollectionFilter | null | undefined; readonly users?: UserCollectionFilter | null | undefined; readonly owners?: UserCollectionFilter | null | undefined; readonly retiredAt?: NullableDateComparator | null | undefined; readonly issues?: IssueCollectionFilter | null | undefined; readonly parent?: NullableTeamFilter | null | undefined; readonly ancestors?: TeamCollectionFilter | null | undefined; readonly restrictedBy?: NullableTeamFilter | null | undefined; readonly releasePipelines?: ReleasePipelineCollectionFilter | null | undefined; readonly null?: boolean | null | undefined; readonly and?: ReadonlyArray | null | undefined; readonly or?: ReadonlyArray | null | undefined; } /** Conditions on an optional template relation. Use null to test whether the relation is set, or supply template fields to filter the related record. Combine conditions with `and` or `or`. */ export interface NullableTemplateFilter { readonly id?: IDComparator | null | undefined; readonly createdAt?: DateComparator | null | undefined; readonly updatedAt?: DateComparator | null | undefined; readonly name?: StringComparator | null | undefined; readonly type?: StringComparator | null | undefined; readonly inheritedFromId?: IDComparator | null | undefined; readonly team?: NullableTeamFilter | null | undefined; readonly null?: boolean | null | undefined; readonly and?: ReadonlyArray | null | undefined; readonly or?: ReadonlyArray | null | undefined; } /** Compares optional calendar dates using YYYY-MM-DD strings or durations relative to the day the filter runs, such as `-P7D`. All supplied conditions must match. Use `{ null: true }` for missing dates; `nin` also includes missing values, while `neq` and range comparisons do not. */ export interface NullableTimelessDateComparator { readonly eq?: string | null | undefined; readonly neq?: string | null | undefined; readonly in?: ReadonlyArray | null | undefined; readonly nin?: ReadonlyArray | null | undefined; readonly null?: boolean | null | undefined; readonly lt?: string | null | undefined; readonly lte?: string | null | undefined; readonly gt?: string | null | undefined; readonly gte?: string | null | undefined; } /** Filters an optional relation to users. Use null to test whether the relation is set, or supply property conditions to filter the related object. */ export interface NullableUserFilter { readonly id?: IDComparator | null | undefined; readonly createdAt?: DateComparator | null | undefined; readonly updatedAt?: DateComparator | null | undefined; readonly name?: StringComparator | null | undefined; readonly displayName?: StringComparator | null | undefined; readonly email?: StringComparator | null | undefined; readonly active?: BooleanComparator | null | undefined; readonly assignedIssues?: IssueCollectionFilter | null | undefined; readonly admin?: BooleanComparator | null | undefined; readonly owner?: BooleanComparator | null | undefined; readonly invited?: BooleanComparator | null | undefined; readonly isInvited?: BooleanComparator | null | undefined; readonly app?: BooleanComparator | null | undefined; readonly isMe?: BooleanComparator | null | undefined; readonly null?: boolean | null | undefined; readonly and?: ReadonlyArray | null | undefined; readonly or?: ReadonlyArray | null | undefined; } /** Compares numbers by equality, list membership, or range. Values must be between -2147483648 and 2147483647; fields representing counts may require integers. For a numeric field, combine bounds such as `{ gte: 1, lt: 5 }` to include 1 through values below 5. Collection aggregates may accept only one comparison; see the aggregate field's description. */ export interface NumberComparator { readonly eq?: number | null | undefined; readonly neq?: number | null | undefined; readonly in?: ReadonlyArray | null | undefined; readonly nin?: ReadonlyArray | null | undefined; readonly lt?: number | null | undefined; readonly lte?: number | null | undefined; readonly gt?: number | null | undefined; readonly gte?: number | null | undefined; } /** Configuration for a private OAuth application owned by the current workspace and managed by your calling OAuth application. Provide its name, developer, and allowed redirect URIs. To receive webhooks, provide both a webhook URL and at least one resource type. Use an idempotencyKey when retrying creation. The caller needs OAuth authentication and workspace API management permission. */ export interface OAuthApplicationCreateInput { readonly name: string; readonly description?: string | null | undefined; readonly developer: string; readonly developerUrl?: string | null | undefined; readonly redirectUris: ReadonlyArray; readonly grantTypes?: | ReadonlyArray<"authorization_code" | "client_credentials"> | null | undefined; readonly requireTokenBinding?: boolean | null | undefined; readonly idempotencyKey?: string | null | undefined; readonly imageUrl?: string | null | undefined; readonly webhookUrl?: string | null | undefined; readonly webhookResourceTypes?: | ReadonlyArray< | "AgentSessionEvent" | "Comment" | "CustomerNeed" | "Customer" | "Cycle" | "Document" | "Reaction" | "AppUserNotification" | "InitiativeUpdate" | "Initiative" | "IssueLabel" | "IssueSLA" | "Attachment" | "Issue" | "OAuthAuthorization" | "PermissionChange" | "ProjectLabel" | "ProjectUpdate" | "Project" | "ReleaseNote" | "Release" | "User" > | null | undefined; } /** Changes to an application created by the calling OAuth application. Omitted properties remain unchanged; supplied redirectUris, grantTypes, and webhookResourceTypes replace their full lists. Enabling client_credentials or changing the webhook URL requires permission to manage the application's credentials, which depends on its private-team access. */ export interface OAuthApplicationUpdateInput { readonly name?: string | null | undefined; readonly description?: string | null | undefined; readonly developer?: string | null | undefined; readonly developerUrl?: string | null | undefined; readonly redirectUris?: ReadonlyArray | null | undefined; readonly grantTypes?: | ReadonlyArray<"authorization_code" | "client_credentials"> | null | undefined; readonly requireTokenBinding?: boolean | null | undefined; readonly imageUrl?: string | null | undefined; readonly webhookUrl?: string | null | undefined; readonly webhookEnabled?: boolean | null | undefined; readonly webhookResourceTypes?: | ReadonlyArray< | "AgentSessionEvent" | "Comment" | "CustomerNeed" | "Customer" | "Cycle" | "Document" | "Reaction" | "AppUserNotification" | "InitiativeUpdate" | "Initiative" | "IssueLabel" | "IssueSLA" | "Attachment" | "Issue" | "OAuthAuthorization" | "PermissionChange" | "ProjectLabel" | "ProjectUpdate" | "Project" | "ReleaseNote" | "Release" | "User" > | null | undefined; } /** Workspace authentication restrictions and sign-in behavior. Use allowedAuthServices to limit login providers and the bypass setting to control whether administrators can use other providers. */ export interface OrganizationAuthSettingsInput { readonly allowedAuthServices?: ReadonlyArray | null | undefined; readonly hideNonPrimaryOrganizations?: boolean | null | undefined; readonly disableAuthServiceBypass?: boolean | null | undefined; } /** The email address, workspace role, and optional teams for an invitation. The default role is user. Guest invitations require at least one team, and Free workspaces only accept the admin role. */ export interface OrganizationInviteCreateInput { readonly id?: string | null | undefined; readonly email: string; readonly role?: "owner" | "admin" | "guest" | "user" | "app" | null | undefined; readonly teamIds?: ReadonlyArray | null | undefined; } /** Changes the team memberships granted when this invitation is accepted. */ export interface OrganizationInviteUpdateInput { readonly teamIds: ReadonlyArray; } /** Filter public workspace quotas by key or scope. */ export interface OrganizationQuotaFilter { readonly key?: StringComparator | null | undefined; readonly scope?: StringComparator | null | undefined; readonly and?: ReadonlyArray | null | undefined; readonly or?: ReadonlyArray | null | undefined; } /** Minimum workspace roles required for individual actions, such as inviting members or creating API keys. These settings control who can perform the actions; they do not change users' assigned roles. */ export interface OrganizationSecuritySettingsInput { readonly adminManagementRole?: "owner" | "admin" | "guest" | "user" | "app" | null | undefined; readonly personalApiKeysRole?: "owner" | "admin" | "guest" | "user" | "app" | null | undefined; readonly invitationsRole?: "owner" | "admin" | "guest" | "user" | "app" | null | undefined; readonly teamCreationRole?: "owner" | "admin" | "guest" | "user" | "app" | null | undefined; readonly workspaceInitiativesRole?: | "owner" | "admin" | "guest" | "user" | "app" | null | undefined; readonly labelManagementRole?: "owner" | "admin" | "guest" | "user" | "app" | null | undefined; readonly apiSettingsRole?: "owner" | "admin" | "guest" | "user" | "app" | null | undefined; readonly templateManagementRole?: "owner" | "admin" | "guest" | "user" | "app" | null | undefined; readonly automationManagementRole?: | "owner" | "admin" | "guest" | "user" | "app" | null | undefined; readonly importRole?: "owner" | "admin" | "guest" | "user" | "app" | null | undefined; readonly agentGuidanceRole?: "owner" | "admin" | "guest" | "user" | "app" | null | undefined; readonly integrationCreationRole?: | "owner" | "admin" | "guest" | "user" | "app" | null | undefined; readonly pinnedViewManagementRole?: | "owner" | "admin" | "guest" | "user" | "app" | null | undefined; } /** Input for starting a workspace trial on a specific plan. */ export interface OrganizationStartTrialInput { readonly planType: string; } /** Changes to the workspace associated with your credentials. Omitted fields keep their current values. Most settings require workspace-settings permission, while update reminder schedules require schedule-management permission. */ export interface OrganizationUpdateInput { readonly name?: string | null | undefined; readonly logoUrl?: string | null | undefined; readonly urlKey?: string | null | undefined; readonly gitBranchFormat?: string | null | undefined; readonly gitLinkbackMessagesEnabled?: boolean | null | undefined; readonly gitPublicLinkbackMessagesEnabled?: boolean | null | undefined; readonly gitLinkbackDescriptionsEnabled?: boolean | null | undefined; readonly suggestedBranchNameEnabled?: boolean | null | undefined; readonly roadmapEnabled?: boolean | null | undefined; readonly projectUpdateReminderFrequencyInWeeks?: number | null | undefined; readonly projectUpdateRemindersDay?: | "Sunday" | "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday" | null | undefined; readonly projectUpdateRemindersHour?: number | null | undefined; readonly initiativeUpdateReminderFrequencyInWeeks?: number | null | undefined; readonly initiativeUpdateRemindersDay?: | "Sunday" | "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday" | null | undefined; readonly initiativeUpdateRemindersHour?: number | null | undefined; readonly fiscalYearStartMonth?: number | null | undefined; readonly defaultHomeView?: string | null | undefined; readonly defaultHomeViewTargetId?: string | null | undefined; readonly reducedPersonalInformation?: boolean | null | undefined; readonly oauthAppReview?: boolean | null | undefined; readonly restrictAgentInvocationToMembers?: boolean | null | undefined; readonly allowedFileUploadContentTypes?: ReadonlyArray | null | undefined; readonly feedEnabled?: boolean | null | undefined; readonly defaultFeedSummarySchedule?: "daily" | "weekly" | "never" | null | undefined; readonly aiDiscussionSummariesEnabled?: boolean | null | undefined; readonly aiThreadSummariesEnabled?: boolean | null | undefined; readonly pullRequestTourEnabled?: boolean | null | undefined; readonly pullRequestIssueMode?: string | null | undefined; readonly hipaaComplianceEnabled?: boolean | null | undefined; readonly securitySettings?: OrganizationSecuritySettingsInput | null | undefined; readonly authSettings?: OrganizationAuthSettingsInput | null | undefined; readonly slackProjectChannelIntegrationId?: string | null | undefined; readonly slackProjectChannelPrefix?: string | null | undefined; } /** Customer owner sorting options. */ export interface OwnerSort { readonly nulls?: "first" | "last" | null | undefined; readonly order?: "Ascending" | "Descending" | null | undefined; } /** Channel preferences to change. Omitted channels retain their current settings. */ export interface PartialNotificationChannelPreferencesInput { readonly mobile?: boolean | null | undefined; readonly desktop?: boolean | null | undefined; readonly email?: boolean | null | undefined; readonly slack?: boolean | null | undefined; } /** Issue priority sorting options. */ export interface PrioritySort { readonly nulls?: "first" | "last" | null | undefined; readonly order?: "Ascending" | "Descending" | null | undefined; readonly noPriorityFirst?: boolean | null | undefined; readonly usePrioritySortOrderTiebreaker?: boolean | null | undefined; } /** Filters a related collection of projects. Use some or every to test its members and length to test its size, for example length: { eq: 0 } for an empty collection. Direct property filters act as some only when no collection clause is supplied. */ export interface ProjectCollectionFilter { readonly id?: EntityIdentifierIDComparator | null | undefined; readonly createdAt?: DateComparator | null | undefined; readonly updatedAt?: DateComparator | null | undefined; readonly name?: StringComparator | null | undefined; readonly slugId?: StringComparator | null | undefined; readonly customIdentifier?: NullableStringComparator | null | undefined; readonly state?: StringComparator | null | undefined; readonly status?: ProjectStatusFilter | null | undefined; readonly priority?: NullableNumberComparator | null | undefined; readonly labels?: ProjectLabelCollectionFilter | null | undefined; readonly searchableContent?: ContentComparator | null | undefined; readonly startedAt?: NullableDateComparator | null | undefined; readonly completedAt?: NullableDateComparator | null | undefined; readonly canceledAt?: NullableDateComparator | null | undefined; readonly startDate?: NullableDateComparator | null | undefined; readonly targetDate?: NullableDateComparator | null | undefined; readonly health?: StringComparator | null | undefined; readonly healthWithAge?: StringComparator | null | undefined; readonly activityType?: StringComparator | null | undefined; readonly hasRelatedRelations?: RelationExistsComparator | null | undefined; readonly hasDependedOnByRelations?: RelationExistsComparator | null | undefined; readonly hasDependsOnRelations?: RelationExistsComparator | null | undefined; readonly hasBlockedByRelations?: RelationExistsComparator | null | undefined; readonly hasBlockingRelations?: RelationExistsComparator | null | undefined; readonly hasViolatedRelations?: RelationExistsComparator | null | undefined; readonly projectUpdates?: ProjectUpdatesCollectionFilter | null | undefined; readonly creator?: UserFilter | null | undefined; readonly lead?: NullableUserFilter | null | undefined; readonly members?: UserCollectionFilter | null | undefined; readonly issues?: IssueCollectionFilter | null | undefined; readonly roadmaps?: RoadmapCollectionFilter | null | undefined; readonly initiatives?: InitiativeCollectionFilter | null | undefined; readonly projectMilestones?: ProjectMilestoneCollectionFilter | null | undefined; readonly completedProjectMilestones?: ProjectMilestoneCollectionFilter | null | undefined; readonly nextProjectMilestone?: ProjectMilestoneFilter | null | undefined; readonly accessibleTeams?: TeamCollectionFilter | null | undefined; readonly leadTeam?: NullableTeamFilter | null | undefined; readonly lastAppliedTemplate?: NullableTemplateFilter | null | undefined; readonly needs?: CustomerNeedCollectionFilter | null | undefined; readonly customerCount?: NumberComparator | null | undefined; readonly customerImportantCount?: NumberComparator | null | undefined; readonly and?: ReadonlyArray | null | undefined; readonly or?: ReadonlyArray | null | undefined; readonly some?: ProjectFilter | null | undefined; readonly every?: ProjectFilter | null | undefined; readonly length?: NumberComparator | null | undefined; } /** The details for a new project. Provide a name and the teams that will own its issues. A project template can supply defaults and create related milestones or issues; see templateId for how template values and your input are combined. */ export interface ProjectCreateInput { readonly id?: string | null | undefined; readonly name: string; readonly icon?: string | null | undefined; readonly color?: string | null | undefined; readonly statusId?: string | null | undefined; readonly description?: string | null | undefined; readonly content?: string | null | undefined; readonly teamIds: ReadonlyArray; readonly convertedFromIssueId?: string | null | undefined; readonly lastAppliedTemplateId?: string | null | undefined; readonly templateId?: string | null | undefined; readonly useDefaultTemplate?: boolean | null | undefined; readonly leadId?: string | null | undefined; readonly memberIds?: ReadonlyArray | null | undefined; readonly startDate?: string | null | undefined; readonly startDateResolution?: "month" | "quarter" | "halfYear" | "year" | null | undefined; readonly targetDate?: string | null | undefined; readonly targetDateResolution?: "month" | "quarter" | "halfYear" | "year" | null | undefined; readonly sortOrder?: number | null | undefined; readonly prioritySortOrder?: number | null | undefined; readonly priority?: number | null | undefined; readonly labelIds?: ReadonlyArray | null | undefined; } /** Project creation date sorting options. */ export interface ProjectCreatedAtSort { readonly nulls?: "first" | "last" | null | undefined; readonly order?: "Ascending" | "Descending" | null | undefined; } /** Filters projects by status, health, dates, people, teams, milestones, dependencies, or customer needs. Supplied conditions must match together; use and and or to combine nested filters. */ export interface ProjectFilter { readonly id?: EntityIdentifierIDComparator | null | undefined; readonly createdAt?: DateComparator | null | undefined; readonly updatedAt?: DateComparator | null | undefined; readonly name?: StringComparator | null | undefined; readonly slugId?: StringComparator | null | undefined; readonly customIdentifier?: NullableStringComparator | null | undefined; readonly state?: StringComparator | null | undefined; readonly status?: ProjectStatusFilter | null | undefined; readonly priority?: NullableNumberComparator | null | undefined; readonly labels?: ProjectLabelCollectionFilter | null | undefined; readonly searchableContent?: ContentComparator | null | undefined; readonly startedAt?: NullableDateComparator | null | undefined; readonly completedAt?: NullableDateComparator | null | undefined; readonly canceledAt?: NullableDateComparator | null | undefined; readonly startDate?: NullableDateComparator | null | undefined; readonly targetDate?: NullableDateComparator | null | undefined; readonly health?: StringComparator | null | undefined; readonly healthWithAge?: StringComparator | null | undefined; readonly activityType?: StringComparator | null | undefined; readonly hasRelatedRelations?: RelationExistsComparator | null | undefined; readonly hasDependedOnByRelations?: RelationExistsComparator | null | undefined; readonly hasDependsOnRelations?: RelationExistsComparator | null | undefined; readonly hasBlockedByRelations?: RelationExistsComparator | null | undefined; readonly hasBlockingRelations?: RelationExistsComparator | null | undefined; readonly hasViolatedRelations?: RelationExistsComparator | null | undefined; readonly projectUpdates?: ProjectUpdatesCollectionFilter | null | undefined; readonly creator?: UserFilter | null | undefined; readonly lead?: NullableUserFilter | null | undefined; readonly members?: UserCollectionFilter | null | undefined; readonly issues?: IssueCollectionFilter | null | undefined; readonly roadmaps?: RoadmapCollectionFilter | null | undefined; readonly initiatives?: InitiativeCollectionFilter | null | undefined; readonly projectMilestones?: ProjectMilestoneCollectionFilter | null | undefined; readonly completedProjectMilestones?: ProjectMilestoneCollectionFilter | null | undefined; readonly nextProjectMilestone?: ProjectMilestoneFilter | null | undefined; readonly accessibleTeams?: TeamCollectionFilter | null | undefined; readonly leadTeam?: NullableTeamFilter | null | undefined; readonly lastAppliedTemplate?: NullableTemplateFilter | null | undefined; readonly needs?: CustomerNeedCollectionFilter | null | undefined; readonly customerCount?: NumberComparator | null | undefined; readonly customerImportantCount?: NumberComparator | null | undefined; readonly and?: ReadonlyArray | null | undefined; readonly or?: ReadonlyArray | null | undefined; } /** Project health sorting options. */ export interface ProjectHealthSort { readonly nulls?: "first" | "last" | null | undefined; readonly order?: "Ascending" | "Descending" | null | undefined; } /** Filters a related collection of project labels. Use some or every to test its members and length to test its size, for example length: { eq: 0 } for an empty collection. Direct property filters act as some only when no collection clause is supplied. */ export interface ProjectLabelCollectionFilter { readonly id?: IDComparator | null | undefined; readonly createdAt?: DateComparator | null | undefined; readonly updatedAt?: DateComparator | null | undefined; readonly name?: StringComparator | null | undefined; readonly isGroup?: BooleanComparator | null | undefined; readonly creator?: NullableUserFilter | null | undefined; readonly team?: NullableTeamFilter | null | undefined; readonly parent?: ProjectLabelFilter | null | undefined; readonly null?: boolean | null | undefined; readonly and?: ReadonlyArray | null | undefined; readonly or?: ReadonlyArray | null | undefined; readonly some?: ProjectLabelCollectionFilter | null | undefined; readonly every?: ProjectLabelFilter | null | undefined; readonly length?: NumberComparator | null | undefined; } /** A project label or label group to create. Omit teamId for a workspace label, or supply a team UUID to limit the label to that team and its inherited copies. Use parentId to place a label in a group; a group's children must share its scope. */ export interface ProjectLabelCreateInput { readonly id?: string | null | undefined; readonly name: string; readonly description?: string | null | undefined; readonly color?: string | null | undefined; readonly parentId?: string | null | undefined; readonly isGroup?: boolean | null | undefined; readonly retiredAt?: string | null | undefined; readonly groupType?: "singleSelect" | "multiSelect" | null | undefined; readonly teamId?: string | null | undefined; } /** Filters project labels by name, creator, team, or parent label group. Supplied conditions must match together; use and and or to combine nested filters. */ export interface ProjectLabelFilter { readonly id?: IDComparator | null | undefined; readonly createdAt?: DateComparator | null | undefined; readonly updatedAt?: DateComparator | null | undefined; readonly name?: StringComparator | null | undefined; readonly isGroup?: BooleanComparator | null | undefined; readonly creator?: NullableUserFilter | null | undefined; readonly team?: NullableTeamFilter | null | undefined; readonly parent?: ProjectLabelFilter | null | undefined; readonly and?: ReadonlyArray | null | undefined; readonly or?: ReadonlyArray | null | undefined; } /** Input for updating an existing project label. All fields are optional; only provided fields will be updated. */ export interface ProjectLabelUpdateInput { readonly name?: string | null | undefined; readonly description?: string | null | undefined; readonly parentId?: string | null | undefined; readonly color?: string | null | undefined; readonly isGroup?: boolean | null | undefined; readonly retiredAt?: string | null | undefined; readonly groupType?: "singleSelect" | "multiSelect" | null | undefined; } /** Project lead sorting options. */ export interface ProjectLeadSort { readonly nulls?: "first" | "last" | null | undefined; readonly order?: "Ascending" | "Descending" | null | undefined; } /** Project manual order sorting options. */ export interface ProjectManualSort { readonly nulls?: "first" | "last" | null | undefined; readonly order?: "Ascending" | "Descending" | null | undefined; } /** Filters a related collection of project milestones. Use some or every to test its members and length to test its size, for example length: { eq: 0 } for an empty collection. Direct property filters act as some only when no collection clause is supplied. */ export interface ProjectMilestoneCollectionFilter { readonly id?: IDComparator | null | undefined; readonly createdAt?: DateComparator | null | undefined; readonly updatedAt?: DateComparator | null | undefined; readonly name?: NullableStringComparator | null | undefined; readonly targetDate?: NullableDateComparator | null | undefined; readonly project?: NullableProjectFilter | null | undefined; readonly and?: ReadonlyArray | null | undefined; readonly or?: ReadonlyArray | null | undefined; readonly some?: ProjectMilestoneFilter | null | undefined; readonly every?: ProjectMilestoneFilter | null | undefined; readonly length?: NumberComparator | null | undefined; } /** The name and parent project for a new milestone, with optional description, target date, and ordering. The name must be unique among active milestones in that project. */ export interface ProjectMilestoneCreateInput { readonly id?: string | null | undefined; readonly name: string; readonly description?: string | null | undefined; readonly targetDate?: string | null | undefined; readonly projectId: string; readonly sortOrder?: number | null | undefined; } /** Filters project milestones by name, target date, or project. Supplied conditions must match together; use and and or to combine nested filters. */ export interface ProjectMilestoneFilter { readonly id?: IDComparator | null | undefined; readonly createdAt?: DateComparator | null | undefined; readonly updatedAt?: DateComparator | null | undefined; readonly name?: NullableStringComparator | null | undefined; readonly targetDate?: NullableDateComparator | null | undefined; readonly project?: NullableProjectFilter | null | undefined; readonly and?: ReadonlyArray | null | undefined; readonly or?: ReadonlyArray | null | undefined; } /** Changes to an existing milestone. Omit fields to keep their current values. A null targetDate clears the date, while an empty or null description leaves the existing description unchanged. */ export interface ProjectMilestoneUpdateInput { readonly name?: string | null | undefined; readonly description?: string | null | undefined; readonly targetDate?: string | null | undefined; readonly sortOrder?: number | null | undefined; readonly projectId?: string | null | undefined; } /** Project name sorting options. */ export interface ProjectNameSort { readonly nulls?: "first" | "last" | null | undefined; readonly order?: "Ascending" | "Descending" | null | undefined; } /** Project priority sorting options. */ export interface ProjectPrioritySort { readonly nulls?: "first" | "last" | null | undefined; readonly order?: "Ascending" | "Descending" | null | undefined; readonly noPriorityFirst?: boolean | null | undefined; } /** The two projects and anchor points for a new dependency. The projects must be different and editable. When an anchor type is milestone, provide the corresponding milestone UUID. */ export interface ProjectRelationCreateInput { readonly id?: string | null | undefined; readonly type: string; readonly projectId: string; readonly projectMilestoneId?: string | null | undefined; readonly anchorType: string; readonly relatedProjectId: string; readonly relatedProjectMilestoneId?: string | null | undefined; readonly relatedAnchorType: string; } /** Changes to an existing project dependency. Omitted fields keep their current values. The resulting projects and anchor points are validated together, so update a milestone reference when changing its anchor. */ export interface ProjectRelationUpdateInput { readonly type?: string | null | undefined; readonly projectId?: string | null | undefined; readonly projectMilestoneId?: string | null | undefined; readonly anchorType?: string | null | undefined; readonly relatedProjectId?: string | null | undefined; readonly relatedProjectMilestoneId?: string | null | undefined; readonly relatedAnchorType?: string | null | undefined; } /** Issue project sorting options. */ export interface ProjectSort { readonly nulls?: "first" | "last" | null | undefined; readonly order?: "Ascending" | "Descending" | null | undefined; } /** Project sorting options. */ export interface ProjectSortInput { readonly name?: ProjectNameSort | null | undefined; readonly status?: ProjectStatusSort | null | undefined; readonly priority?: ProjectPrioritySort | null | undefined; readonly manual?: ProjectManualSort | null | undefined; readonly targetDate?: TargetDateSort | null | undefined; readonly startDate?: StartDateSort | null | undefined; readonly createdAt?: ProjectCreatedAtSort | null | undefined; readonly updatedAt?: ProjectUpdatedAtSort | null | undefined; readonly health?: ProjectHealthSort | null | undefined; readonly lead?: ProjectLeadSort | null | undefined; } /** The name, color, lifecycle category, and position for a new project status. Use the category to define its lifecycle behavior and the name to describe the stage in your workflow. */ export interface ProjectStatusCreateInput { readonly id?: string | null | undefined; readonly name: string; readonly color: string; readonly description?: string | null | undefined; readonly position: number; readonly type: "backlog" | "planned" | "started" | "paused" | "completed" | "canceled"; readonly indefinite?: boolean | null | undefined; } /** Filters project statuses by name, lifecycle type, team, or projects using the status. Supplied conditions must match together; use and and or to combine nested filters. */ export interface ProjectStatusFilter { readonly id?: IDComparator | null | undefined; readonly createdAt?: DateComparator | null | undefined; readonly updatedAt?: DateComparator | null | undefined; readonly name?: StringComparator | null | undefined; readonly description?: StringComparator | null | undefined; readonly position?: NumberComparator | null | undefined; readonly type?: StringComparator | null | undefined; readonly team?: NullableTeamFilter | null | undefined; readonly projects?: ProjectCollectionFilter | null | undefined; readonly and?: ReadonlyArray | null | undefined; readonly or?: ReadonlyArray | null | undefined; } /** Project status sorting options. */ export interface ProjectStatusSort { readonly nulls?: "first" | "last" | null | undefined; readonly order?: "Ascending" | "Descending" | null | undefined; } /** Changes to an existing project status. Omitted fields keep their current values. Changing a shared status affects how projects using it are presented and classified. */ export interface ProjectStatusUpdateInput { readonly name?: string | null | undefined; readonly color?: string | null | undefined; readonly description?: string | null | undefined; readonly position?: number | null | undefined; readonly type?: | "backlog" | "planned" | "started" | "paused" | "completed" | "canceled" | null | undefined; readonly indefinite?: boolean | null | undefined; } /** The project, message, and optional health for a new status update. The current user becomes the author, and current project progress is captured automatically. Provide body when using the public API. */ export interface ProjectUpdateCreateInput { readonly id?: string | null | undefined; readonly body?: string | null | undefined; readonly projectId: string; readonly health?: "onTrack" | "atRisk" | "offTrack" | null | undefined; readonly isDiffHidden?: boolean | null | undefined; } /** Filters project updates by author, project, or reactions. Supplied conditions must match together; use and and or to combine nested filters. */ export interface ProjectUpdateFilter { readonly id?: IDComparator | null | undefined; readonly createdAt?: DateComparator | null | undefined; readonly updatedAt?: DateComparator | null | undefined; readonly user?: UserFilter | null | undefined; readonly project?: ProjectFilter | null | undefined; readonly reactions?: ReactionCollectionFilter | null | undefined; readonly and?: ReadonlyArray | null | undefined; readonly or?: ReadonlyArray | null | undefined; } /** Changes to a project. Omit a field to keep its current value. Lists replace the corresponding selections unless their description says otherwise; null only clears fields that explicitly support it. */ export interface ProjectUpdateInput { readonly statusId?: string | null | undefined; readonly name?: string | null | undefined; readonly description?: string | null | undefined; readonly content?: string | null | undefined; readonly convertedFromIssueId?: string | null | undefined; readonly lastAppliedTemplateId?: string | null | undefined; readonly icon?: string | null | undefined; readonly color?: string | null | undefined; readonly teamIds?: ReadonlyArray | null | undefined; readonly projectUpdateRemindersPausedUntilAt?: string | null | undefined; readonly updateReminderFrequencyInWeeks?: number | null | undefined; readonly updateReminderFrequency?: number | null | undefined; readonly frequencyResolution?: "daily" | "weekly" | null | undefined; readonly updateRemindersDay?: | "Sunday" | "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday" | null | undefined; readonly updateRemindersHour?: number | null | undefined; readonly leadId?: string | null | undefined; readonly memberIds?: ReadonlyArray | null | undefined; readonly startDate?: string | null | undefined; readonly startDateResolution?: "month" | "quarter" | "halfYear" | "year" | null | undefined; readonly targetDate?: string | null | undefined; readonly targetDateResolution?: "month" | "quarter" | "halfYear" | "year" | null | undefined; readonly completedAt?: string | null | undefined; readonly canceledAt?: string | null | undefined; readonly slackNewIssue?: boolean | null | undefined; readonly slackIssueComments?: boolean | null | undefined; readonly slackIssueStatuses?: boolean | null | undefined; readonly sortOrder?: number | null | undefined; readonly prioritySortOrder?: number | null | undefined; readonly trashed?: boolean | null | undefined; readonly priority?: number | null | undefined; readonly labelIds?: ReadonlyArray | null | undefined; } /** Changes to a published project update. Omitted fields keep their current values. Only the author or a user with permission to manage workspace entities can edit the update. */ export interface ProjectUpdateUpdateInput { readonly body?: string | null | undefined; readonly health?: "onTrack" | "atRisk" | "offTrack" | null | undefined; } /** Project update date sorting options. */ export interface ProjectUpdatedAtSort { readonly nulls?: "first" | "last" | null | undefined; readonly order?: "Ascending" | "Descending" | null | undefined; } /** Filters a related collection of project updates. Use some or every to test its members and length to test its size, for example length: { eq: 0 } for an empty collection. Direct property filters act as some only when no collection clause is supplied. */ export interface ProjectUpdatesCollectionFilter { readonly id?: IDComparator | null | undefined; readonly createdAt?: DateComparator | null | undefined; readonly updatedAt?: DateComparator | null | undefined; readonly health?: StringComparator | null | undefined; readonly and?: ReadonlyArray | null | undefined; readonly or?: ReadonlyArray | null | undefined; readonly some?: ProjectUpdatesFilter | null | undefined; readonly every?: ProjectUpdatesFilter | null | undefined; readonly length?: NumberComparator | null | undefined; } /** Filters project updates by health, ID, or creation and update timestamps. Supplied conditions must match together; use and and or to combine nested filters. */ export interface ProjectUpdatesFilter { readonly id?: IDComparator | null | undefined; readonly createdAt?: DateComparator | null | undefined; readonly updatedAt?: DateComparator | null | undefined; readonly health?: StringComparator | null | undefined; readonly and?: ReadonlyArray | null | undefined; readonly or?: ReadonlyArray | null | undefined; } /** Identifies a pull or merge request whose closing or contributing issues should be included in the release. Supplying a reference asserts that it shipped; sync does not wait for the imported pull request's merge status to catch up. */ export interface PullRequestReferenceInput { readonly repositoryOwner: string; readonly repositoryName: string; readonly number: number; } /** Input for creating a push subscription to receive push notifications on a device or browser. */ export interface PushSubscriptionCreateInput { readonly id?: string | null | undefined; readonly data: string; readonly type?: "web" | "apple" | "appleDevelopment" | "firebase" | null | undefined; } /** Conditions on a collection of reactions. Use some to require a matching item, every to check the whole collection, or length to check its size. Direct reaction fields act as some only when no and, or, some, every, or length clause is supplied. */ export interface ReactionCollectionFilter { readonly id?: IDComparator | null | undefined; readonly createdAt?: DateComparator | null | undefined; readonly updatedAt?: DateComparator | null | undefined; readonly emoji?: StringComparator | null | undefined; readonly customEmojiId?: IDComparator | null | undefined; readonly and?: ReadonlyArray | null | undefined; readonly or?: ReadonlyArray | null | undefined; readonly some?: ReactionFilter | null | undefined; readonly every?: ReactionFilter | null | undefined; readonly length?: NumberComparator | null | undefined; } /** The emoji and resource to react to as the current user. Supply exactly one target: an issue, comment, project update, or initiative update. Repeating the same emoji on the same resource returns your existing reaction. */ export interface ReactionCreateInput { readonly id?: string | null | undefined; readonly emoji: string; readonly commentId?: string | null | undefined; readonly projectUpdateId?: string | null | undefined; readonly initiativeUpdateId?: string | null | undefined; readonly issueId?: string | null | undefined; } /** Conditions used to select reactions. Supplied fields are combined with AND; use `or` to accept alternatives and `and` to group conditions. */ export interface ReactionFilter { readonly id?: IDComparator | null | undefined; readonly createdAt?: DateComparator | null | undefined; readonly updatedAt?: DateComparator | null | undefined; readonly emoji?: StringComparator | null | undefined; readonly customEmojiId?: IDComparator | null | undefined; readonly and?: ReadonlyArray | null | undefined; readonly or?: ReadonlyArray | null | undefined; } /** Tests whether any related records exist. */ export interface RelationExistsComparator { readonly eq?: boolean | null | undefined; readonly neq?: boolean | null | undefined; } /** Filters a related collection of releases. Use some or every to test its members and length to test its size, for example length: { eq: 0 } for an empty collection. Direct property filters act as some only when no collection clause is supplied. */ export interface ReleaseCollectionFilter { readonly id?: IDComparator | null | undefined; readonly createdAt?: DateComparator | null | undefined; readonly updatedAt?: DateComparator | null | undefined; readonly name?: StringComparator | null | undefined; readonly version?: StringComparator | null | undefined; readonly pipeline?: ReleasePipelineFilter | null | undefined; readonly stage?: ReleaseStageFilter | null | undefined; readonly completedAt?: NullableDateComparator | null | undefined; readonly hasReleaseNotes?: BooleanComparator | null | undefined; readonly and?: ReadonlyArray | null | undefined; readonly or?: ReadonlyArray | null | undefined; readonly some?: ReleaseFilter | null | undefined; readonly every?: ReleaseFilter | null | undefined; readonly length?: NumberComparator | null | undefined; } /** Selects a release in a pipeline to complete. Supply version to select a specific release, or omit it to use the latest started release. You can also update its name, description, and attached content as part of completion. */ export interface ReleaseCompleteInput { readonly version?: string | null | undefined; readonly commitSha?: string | null | undefined; readonly name?: string | null | undefined; readonly description?: string | null | undefined; readonly links?: ReadonlyArray | null | undefined; readonly documents?: ReadonlyArray | null | undefined; readonly releaseNotes?: ReleaseNoteInput | null | undefined; readonly pipelineId: string; } /** Base input for completing a release. Contains the optional version and commit SHA. The pipeline ID is provided separately or inferred from the access key. */ export interface ReleaseCompleteInputBase { readonly version?: string | null | undefined; readonly commitSha?: string | null | undefined; readonly name?: string | null | undefined; readonly description?: string | null | undefined; readonly links?: ReadonlyArray | null | undefined; readonly documents?: ReadonlyArray | null | undefined; readonly releaseNotes?: ReleaseNoteInput | null | undefined; } /** Details for a new release in an existing pipeline. Provide its name and pipeline; if stageId is omitted, continuous pipelines use their first completed stage and scheduled pipelines use their first started stage. Version labels must be unique within the pipeline. */ export interface ReleaseCreateInput { readonly id?: string | null | undefined; readonly name: string; readonly description?: string | null | undefined; readonly version?: string | null | undefined; readonly commitSha?: string | null | undefined; readonly pipelineId: string; readonly stageId?: string | null | undefined; readonly startDate?: string | null | undefined; readonly targetDate?: string | null | undefined; readonly createdAt?: string | null | undefined; readonly startedAt?: string | null | undefined; readonly completedAt?: string | null | undefined; } /** Diagnostic data captured during release sync, including inspected commits, discovered issue references, and pull request metadata. Stored on the release for debugging release association issues. */ export interface ReleaseDebugSinkInput { readonly inspectedShas: ReadonlyArray; readonly issues: unknown; readonly revertedIssues?: unknown | null | undefined; readonly pullRequests: ReadonlyArray; readonly includePaths?: ReadonlyArray | null | undefined; readonly includeSubjects?: ReadonlyArray | null | undefined; readonly issuePattern?: string | null | undefined; } /** A document to attach to the release. Existing documents on the release with the same title are updated in place. Bad rows (empty title, oversized title/body) are skipped with a warning rather than failing the release command. */ export interface ReleaseDocumentInput { readonly title: string; readonly content: string; } /** Filters releases by name, version, pipeline, stage, completion date, or release-note coverage. Supplied conditions must match together; use and and or to combine nested filters. */ export interface ReleaseFilter { readonly id?: IDComparator | null | undefined; readonly createdAt?: DateComparator | null | undefined; readonly updatedAt?: DateComparator | null | undefined; readonly name?: StringComparator | null | undefined; readonly version?: StringComparator | null | undefined; readonly pipeline?: ReleasePipelineFilter | null | undefined; readonly stage?: ReleaseStageFilter | null | undefined; readonly completedAt?: NullableDateComparator | null | undefined; readonly hasReleaseNotes?: BooleanComparator | null | undefined; readonly and?: ReadonlyArray | null | undefined; readonly or?: ReadonlyArray | null | undefined; } /** An external link to attach to the release. */ export interface ReleaseLinkInput { readonly url: string; readonly label?: string | null | undefined; } /** The pipeline, covered releases, and optional written content for a new release note. Select releases with releaseIds or with both range endpoints. All selected releases must belong to the pipeline; scheduled pipelines require exactly one. */ export interface ReleaseNoteCreateInput { readonly id?: string | null | undefined; readonly pipelineId: string; readonly releaseIds?: ReadonlyArray | null | undefined; readonly rangeFromReleaseId?: string | null | undefined; readonly rangeToReleaseId?: string | null | undefined; readonly title?: string | null | undefined; readonly content?: string | null | undefined; } /** Filters release notes by title, slug, pipeline, or covered releases. Supplied conditions must match together; use and and or to combine nested filters. */ export interface ReleaseNoteFilter { readonly id?: IDComparator | null | undefined; readonly createdAt?: DateComparator | null | undefined; readonly updatedAt?: DateComparator | null | undefined; readonly title?: StringComparator | null | undefined; readonly slugId?: StringComparator | null | undefined; readonly pipeline?: ReleasePipelineFilter | null | undefined; readonly release?: ReleaseFilter | null | undefined; readonly and?: ReadonlyArray | null | undefined; readonly or?: ReadonlyArray | null | undefined; } /** Release notes to attach to the release. Upserts the existing release notes that cover only this release. Bad input (empty title, oversized title/body) is skipped with a warning rather than failing the release command. */ export interface ReleaseNoteInput { readonly content: string; readonly title?: string | null | undefined; } /** Changes to a release note. Omitted fields keep their values. A supplied release selection replaces the previous selection; an empty content string clears the body, while null content leaves it unchanged. */ export interface ReleaseNoteUpdateInput { readonly releaseIds?: ReadonlyArray | null | undefined; readonly rangeFromReleaseId?: string | null | undefined; readonly rangeToReleaseId?: string | null | undefined; readonly title?: string | null | undefined; readonly content?: string | null | undefined; } /** Filters pipelines related to a team. Use some or every to test pipeline properties, or length to test how many pipelines are associated. Combine separate tests as entries in and; at one level, and takes precedence over or, then length, then every, then some or direct properties. */ export interface ReleasePipelineCollectionFilter { readonly id?: IDComparator | null | undefined; readonly createdAt?: DateComparator | null | undefined; readonly updatedAt?: DateComparator | null | undefined; readonly name?: StringComparator | null | undefined; readonly isProduction?: BooleanComparator | null | undefined; readonly type?: ReleasePipelineTypeComparator | null | undefined; readonly teams?: TeamCollectionFilter | null | undefined; readonly and?: ReadonlyArray | null | undefined; readonly or?: ReadonlyArray | null | undefined; readonly some?: ReleasePipelineFilter | null | undefined; readonly every?: ReleasePipelineFilter | null | undefined; readonly length?: NumberComparator | null | undefined; } /** Settings for a new release pipeline. Provide a name and optionally associate teams or choose a scheduled workflow. The pipeline is created with default stages; continuous is the default workflow. */ export interface ReleasePipelineCreateInput { readonly id?: string | null | undefined; readonly name: string; readonly slugId?: string | null | undefined; readonly type?: "continuous" | "scheduled" | null | undefined; readonly isProduction?: boolean | null | undefined; readonly autoGenerateReleaseNotesOnCompletion?: boolean | null | undefined; readonly rolloverIssuesOnCompletion?: boolean | null | undefined; readonly includePathPatterns?: ReadonlyArray | null | undefined; readonly teamIds?: ReadonlyArray | null | undefined; } /** Filters release pipelines by name, production status, pipeline type, or teams. Supplied conditions must match together; use and and or to combine nested filters. */ export interface ReleasePipelineFilter { readonly id?: IDComparator | null | undefined; readonly createdAt?: DateComparator | null | undefined; readonly updatedAt?: DateComparator | null | undefined; readonly name?: StringComparator | null | undefined; readonly isProduction?: BooleanComparator | null | undefined; readonly type?: ReleasePipelineTypeComparator | null | undefined; readonly teams?: TeamCollectionFilter | null | undefined; readonly and?: ReadonlyArray | null | undefined; readonly or?: ReadonlyArray | null | undefined; } /** Release pipeline name sorting options. */ export interface ReleasePipelineNameSort { readonly nulls?: "first" | "last" | null | undefined; readonly order?: "Ascending" | "Descending" | null | undefined; } /** Release pipeline sorting options. */ export interface ReleasePipelineSortInput { readonly name?: ReleasePipelineNameSort | null | undefined; } /** Comparator for release pipeline type. */ export interface ReleasePipelineTypeComparator { readonly eq?: "continuous" | "scheduled" | null | undefined; readonly neq?: "continuous" | "scheduled" | null | undefined; readonly in?: ReadonlyArray<"continuous" | "scheduled"> | null | undefined; readonly nin?: ReadonlyArray<"continuous" | "scheduled"> | null | undefined; readonly null?: boolean | null | undefined; } /** Changes to an existing release pipeline. Omitted fields keep their values. Team and path-pattern lists replace their current selections, while teams you cannot access are preserved. */ export interface ReleasePipelineUpdateInput { readonly name?: string | null | undefined; readonly slugId?: string | null | undefined; readonly type?: "continuous" | "scheduled" | null | undefined; readonly isProduction?: boolean | null | undefined; readonly autoGenerateReleaseNotesOnCompletion?: boolean | null | undefined; readonly rolloverIssuesOnCompletion?: boolean | null | undefined; readonly includePathPatterns?: ReadonlyArray | null | undefined; readonly teamIds?: ReadonlyArray | null | undefined; } /** Issue release sorting options. */ export interface ReleaseSort { readonly nulls?: "first" | "last" | null | undefined; readonly order?: "Ascending" | "Descending" | null | undefined; } /** Release sorting options. */ export interface ReleaseSortInput { readonly stage?: ReleaseStageSort | null | undefined; } /** The stage name, display color, type, and position within a pipeline. Custom stages use the started type. Other types use the pipeline's standard names and colors; only started stages can be frozen. */ export interface ReleaseStageCreateInput { readonly id?: string | null | undefined; readonly name: string; readonly color: string; readonly type: "planned" | "started" | "completed" | "canceled"; readonly position: number; readonly pipelineId: string; readonly frozen?: boolean | null | undefined; } /** Filters release stages by name or lifecycle type. Supplied conditions must match together; use and and or to combine nested filters. */ export interface ReleaseStageFilter { readonly id?: IDComparator | null | undefined; readonly createdAt?: DateComparator | null | undefined; readonly updatedAt?: DateComparator | null | undefined; readonly type?: ReleaseStageTypeComparator | null | undefined; readonly name?: StringComparator | null | undefined; readonly and?: ReadonlyArray | null | undefined; readonly or?: ReadonlyArray | null | undefined; } /** Release stage sorting options. */ export interface ReleaseStageSort { readonly nulls?: "first" | "last" | null | undefined; readonly order?: "Ascending" | "Descending" | null | undefined; } /** Comparator for release stage type. */ export interface ReleaseStageTypeComparator { readonly eq?: "planned" | "started" | "completed" | "canceled" | null | undefined; readonly neq?: "planned" | "started" | "completed" | "canceled" | null | undefined; readonly in?: ReadonlyArray<"planned" | "started" | "completed" | "canceled"> | null | undefined; readonly nin?: ReadonlyArray<"planned" | "started" | "completed" | "canceled"> | null | undefined; readonly null?: boolean | null | undefined; } /** Changes to a started stage. Other stage types cannot be edited; omitted fields remain unchanged. */ export interface ReleaseStageUpdateInput { readonly name?: string | null | undefined; readonly color?: string | null | undefined; readonly position?: number | null | undefined; readonly frozen?: boolean | null | undefined; } /** Release data to sync into a pipeline. Provide the pipeline identifier and commit SHA, then add issue or pull request references for work included in the release. Sync adds associations rather than replacing the existing issue list. */ export interface ReleaseSyncInput { readonly name?: string | null | undefined; readonly description?: string | null | undefined; readonly version?: string | null | undefined; readonly commitSha: string; readonly preserveStoredCommitSha?: boolean | null | undefined; readonly issueReferences?: ReadonlyArray | null | undefined; readonly revertedIssueReferences?: ReadonlyArray | null | undefined; readonly pullRequestReferences?: ReadonlyArray | null | undefined; readonly repository?: RepositoryDataInput | null | undefined; readonly debugSink?: ReleaseDebugSinkInput | null | undefined; readonly links?: ReadonlyArray | null | undefined; readonly documents?: ReadonlyArray | null | undefined; readonly releaseNotes?: ReleaseNoteInput | null | undefined; readonly pipelineId: string; } /** Release data for a sync operation: a commit SHA, optional issue and pull request references, and descriptive metadata. The pipeline is supplied by the containing input or access key. Existing issue associations are retained unless revertedIssueReferences removes them from a scheduled release. */ export interface ReleaseSyncInputBase { readonly name?: string | null | undefined; readonly description?: string | null | undefined; readonly version?: string | null | undefined; readonly commitSha: string; readonly preserveStoredCommitSha?: boolean | null | undefined; readonly issueReferences?: ReadonlyArray | null | undefined; readonly revertedIssueReferences?: ReadonlyArray | null | undefined; readonly pullRequestReferences?: ReadonlyArray | null | undefined; readonly repository?: RepositoryDataInput | null | undefined; readonly debugSink?: ReleaseDebugSinkInput | null | undefined; readonly links?: ReadonlyArray | null | undefined; readonly documents?: ReadonlyArray | null | undefined; readonly releaseNotes?: ReleaseNoteInput | null | undefined; } /** Selects a release by pipeline and optionally version. Without a version, the latest started release is used, or the planned release with the earliest target date when none is started. Supplied fields update that release; stage selects a stage by name. */ export interface ReleaseUpdateByPipelineInput { readonly version?: string | null | undefined; readonly stage?: string | null | undefined; readonly name?: string | null | undefined; readonly description?: string | null | undefined; readonly links?: ReadonlyArray | null | undefined; readonly documents?: ReadonlyArray | null | undefined; readonly releaseNotes?: ReleaseNoteInput | null | undefined; readonly pipelineId: string; } /** Base input for updating a release by pipeline. Contains optional version and stage name. The pipeline ID is provided separately or inferred from the access key. */ export interface ReleaseUpdateByPipelineInputBase { readonly version?: string | null | undefined; readonly stage?: string | null | undefined; readonly name?: string | null | undefined; readonly description?: string | null | undefined; readonly links?: ReadonlyArray | null | undefined; readonly documents?: ReadonlyArray | null | undefined; readonly releaseNotes?: ReleaseNoteInput | null | undefined; } /** Changes to a release selected by its ID. Omitted fields keep their values, and the release cannot move to another pipeline. Changing stageId updates lifecycle timestamps and may trigger issue rollover when completing a scheduled release. Backdating startedAt or completedAt before createdAt also moves createdAt back to the earliest lifecycle time. */ export interface ReleaseUpdateInput { readonly name?: string | null | undefined; readonly description?: string | null | undefined; readonly version?: string | null | undefined; readonly commitSha?: string | null | undefined; readonly stageId?: string | null | undefined; readonly startDate?: string | null | undefined; readonly targetDate?: string | null | undefined; readonly startedAt?: string | null | undefined; readonly completedAt?: string | null | undefined; readonly trashed?: boolean | null | undefined; } /** Metadata about the source code repository from which a release is being synced, including the hosting provider and repository coordinates. */ export interface RepositoryDataInput { readonly owner: string; readonly name: string; readonly provider: string; readonly url: string; } /** Customer revenue sorting options. */ export interface RevenueSort { readonly nulls?: "first" | "last" | null | undefined; readonly order?: "Ascending" | "Descending" | null | undefined; } /** Filters a related collection of legacy roadmaps. Use some or every to test its members and length to test its size, for example length: { eq: 0 } for an empty collection. Direct property filters act as some only when no collection clause is supplied. */ export interface RoadmapCollectionFilter { readonly id?: IDComparator | null | undefined; readonly createdAt?: DateComparator | null | undefined; readonly updatedAt?: DateComparator | null | undefined; readonly name?: StringComparator | null | undefined; readonly slugId?: StringComparator | null | undefined; readonly creator?: UserFilter | null | undefined; readonly and?: ReadonlyArray | null | undefined; readonly or?: ReadonlyArray | null | undefined; readonly some?: RoadmapFilter | null | undefined; readonly every?: RoadmapFilter | null | undefined; readonly length?: NumberComparator | null | undefined; } /** Legacy roadmap creation input. roadmapCreate is no longer supported; use initiativeCreate. */ export interface RoadmapCreateInput { readonly id?: string | null | undefined; readonly name: string; readonly description?: string | null | undefined; readonly ownerId?: string | null | undefined; readonly sortOrder?: number | null | undefined; readonly color?: string | null | undefined; } /** Filters legacy roadmaps by name, slug, or creator. Supplied conditions must match together; use and and or to combine nested filters. */ export interface RoadmapFilter { readonly id?: IDComparator | null | undefined; readonly createdAt?: DateComparator | null | undefined; readonly updatedAt?: DateComparator | null | undefined; readonly name?: StringComparator | null | undefined; readonly slugId?: StringComparator | null | undefined; readonly creator?: UserFilter | null | undefined; readonly and?: ReadonlyArray | null | undefined; readonly or?: ReadonlyArray | null | undefined; } /** Legacy roadmap association input. Use InitiativeToProjectCreateInput. */ export interface RoadmapToProjectCreateInput { readonly id?: string | null | undefined; readonly projectId: string; readonly roadmapId: string; readonly sortOrder?: number | null | undefined; } /** Legacy roadmap association update input. Use InitiativeToProjectUpdateInput. */ export interface RoadmapToProjectUpdateInput { readonly sortOrder?: number | null | undefined; } /** Legacy roadmap update input. roadmapUpdate is no longer supported; use initiativeUpdate. */ export interface RoadmapUpdateInput { readonly name?: string | null | undefined; readonly description?: string | null | undefined; readonly ownerId?: string | null | undefined; readonly sortOrder?: number | null | undefined; readonly color?: string | null | undefined; } /** Issue root-issue sorting options. */ export interface RootIssueSort { readonly nulls?: "first" | "last" | null | undefined; readonly order?: "Ascending" | "Descending" | null | undefined; readonly sort: IssueSortInput; } /** Additional conditions for each resource type in a semantic search. Each filter applies only to results of its own type; setting an issue filter does not exclude projects or documents. Use the types argument to restrict which resource types are searched. */ export interface SemanticSearchFilters { readonly issues?: IssueFilter | null | undefined; readonly projects?: ProjectFilter | null | undefined; readonly initiatives?: InitiativeFilter | null | undefined; readonly documents?: DocumentFilter | null | undefined; } /** Customer size sorting options. */ export interface SizeSort { readonly nulls?: "first" | "last" | null | undefined; readonly order?: "Ascending" | "Descending" | null | undefined; } /** Conditions on an issue's SLA state, such as whether it is at risk or has breached. Use the SlaStatus values rather than comparing the display text. */ export interface SlaStatusComparator { readonly eq?: | "Breached" | "HighRisk" | "MediumRisk" | "LowRisk" | "Completed" | "Failed" | null | undefined; readonly neq?: | "Breached" | "HighRisk" | "MediumRisk" | "LowRisk" | "Completed" | "Failed" | null | undefined; readonly in?: | ReadonlyArray<"Breached" | "HighRisk" | "MediumRisk" | "LowRisk" | "Completed" | "Failed"> | null | undefined; readonly nin?: | ReadonlyArray<"Breached" | "HighRisk" | "MediumRisk" | "LowRisk" | "Completed" | "Failed"> | null | undefined; readonly null?: boolean | null | undefined; } /** Issue SLA status sorting options. */ export interface SlaStatusSort { readonly nulls?: "first" | "last" | null | undefined; readonly order?: "Ascending" | "Descending" | null | undefined; } /** Filters how an issue was created. Match an integration or intake service through `subType`, or a creating workflow through `workflowDefinitionId`. Supplied conditions are combined with AND. The `null` condition tests for an external integration or intake source, so API-created and workflow-created issues can match `{ null: true }`. */ export interface SourceMetadataComparator { readonly null?: boolean | null | undefined; readonly subType?: SubTypeComparator | null | undefined; readonly workflowDefinitionId?: WorkflowDefinitionIdComparator | null | undefined; } /** Filters an attachment's source using literal string comparisons. Matches its stored source type and, for API queries, the linked URL's domain or hostname. For example, a domain filter can match links even when no integration source type is stored. Matching is case-sensitive unless the operator says otherwise. */ export interface SourceTypeComparator { readonly eq?: string | null | undefined; readonly neq?: string | null | undefined; readonly in?: ReadonlyArray | null | undefined; readonly nin?: ReadonlyArray | null | undefined; readonly eqIgnoreCase?: string | null | undefined; readonly neqIgnoreCase?: string | null | undefined; readonly startsWith?: string | null | undefined; readonly startsWithIgnoreCase?: string | null | undefined; readonly notStartsWith?: string | null | undefined; readonly endsWith?: string | null | undefined; readonly notEndsWith?: string | null | undefined; readonly contains?: string | null | undefined; readonly containsIgnoreCase?: string | null | undefined; readonly notContains?: string | null | undefined; readonly notContainsIgnoreCase?: string | null | undefined; readonly containsIgnoreCaseAndAccent?: string | null | undefined; } /** Project start date sorting options. */ export interface StartDateSort { readonly nulls?: "first" | "last" | null | undefined; readonly order?: "Ascending" | "Descending" | null | undefined; } /** Filters an array of strings by its length and contents. Combine `length` with either `some` or `every`; those two cannot be used together. Use `{ length: { eq: 0 } }` to find empty or missing arrays. See `StringItemComparator` for the set-based behavior of `in` and `nin`. */ export interface StringArrayComparator { readonly length?: NumberComparator | null | undefined; readonly every?: StringItemComparator | null | undefined; readonly some?: StringItemComparator | null | undefined; } /** Compares text literally, with all supplied conditions combined with AND. Matching is case-sensitive unless the operator says otherwise; `%` and `_` are ordinary characters, not wildcards. Use `eq` to match a full string or `containsIgnoreCase` to find text anywhere in it. Prefix, suffix, substring, and case-insensitive operators ignore empty strings. */ export interface StringComparator { readonly eq?: string | null | undefined; readonly neq?: string | null | undefined; readonly in?: ReadonlyArray | null | undefined; readonly nin?: ReadonlyArray | null | undefined; readonly eqIgnoreCase?: string | null | undefined; readonly neqIgnoreCase?: string | null | undefined; readonly startsWith?: string | null | undefined; readonly startsWithIgnoreCase?: string | null | undefined; readonly notStartsWith?: string | null | undefined; readonly endsWith?: string | null | undefined; readonly notEndsWith?: string | null | undefined; readonly contains?: string | null | undefined; readonly containsIgnoreCase?: string | null | undefined; readonly notContains?: string | null | undefined; readonly notContainsIgnoreCase?: string | null | undefined; readonly containsIgnoreCaseAndAccent?: string | null | undefined; } /** String conditions for array items. All conditions must pass, but `some` can match a different item for each. `some.in` tests overlap and `some.nin` requires none; `every.in` compares sets, ignoring order and duplicates, and `every.nin` rejects that set. Empty `in` or `nin` lists match nothing. Single-value conditions ignore empty strings. Empty arrays match `neq`, but no other equality or text condition. `containsIgnoreCaseAndAccent` has no effect on array items. */ export interface StringItemComparator { readonly eq?: string | null | undefined; readonly neq?: string | null | undefined; readonly in?: ReadonlyArray | null | undefined; readonly nin?: ReadonlyArray | null | undefined; readonly eqIgnoreCase?: string | null | undefined; readonly neqIgnoreCase?: string | null | undefined; readonly startsWith?: string | null | undefined; readonly startsWithIgnoreCase?: string | null | undefined; readonly notStartsWith?: string | null | undefined; readonly endsWith?: string | null | undefined; readonly notEndsWith?: string | null | undefined; readonly contains?: string | null | undefined; readonly containsIgnoreCase?: string | null | undefined; readonly notContains?: string | null | undefined; readonly notContainsIgnoreCase?: string | null | undefined; readonly containsIgnoreCaseAndAccent?: string | null | undefined; } /** Compares the integration or intake source recorded on an issue, such as `github`, `slack`, or `email`. Values are service identifiers, not display names. Use `{ null: true }` to find issues without an integration or intake subtype. */ export interface SubTypeComparator { readonly eq?: string | null | undefined; readonly neq?: string | null | undefined; readonly in?: ReadonlyArray | null | undefined; readonly nin?: ReadonlyArray | null | undefined; readonly null?: boolean | null | undefined; } /** Project target date sorting options. */ export interface TargetDateSort { readonly nulls?: "first" | "last" | null | undefined; readonly order?: "Ascending" | "Descending" | null | undefined; } /** Filters a related collection of teams. Use some or every to test its members and length to test its size, for example length: { eq: 0 } for an empty collection. Direct property filters act as some only when no collection clause is supplied. */ export interface TeamCollectionFilter { readonly id?: IDComparator | null | undefined; readonly createdAt?: DateComparator | null | undefined; readonly updatedAt?: DateComparator | null | undefined; readonly and?: ReadonlyArray | null | undefined; readonly or?: ReadonlyArray | null | undefined; readonly some?: TeamFilter | null | undefined; readonly every?: TeamFilter | null | undefined; readonly length?: NumberComparator | null | undefined; readonly parent?: NullableTeamFilter | null | undefined; readonly ancestors?: TeamCollectionFilter | null | undefined; } /** The name and initial settings for a new team. Omitted settings use the team defaults. When teamCreate copies settings from another team, the copied settings replace the corresponding input values, except an explicit private value. The current user becomes a member and, for private teams or plans with team owners, an owner. */ export interface TeamCreateInput { readonly id?: string | null | undefined; readonly name: string; readonly description?: string | null | undefined; readonly key?: string | null | undefined; readonly icon?: string | null | undefined; readonly color?: string | null | undefined; readonly cyclesEnabled?: boolean | null | undefined; readonly cycleStartDay?: number | null | undefined; readonly cycleDuration?: number | null | undefined; readonly cycleCooldownTime?: number | null | undefined; readonly cycleIssueAutoAssignStarted?: boolean | null | undefined; readonly cycleIssueAutoAssignCompleted?: boolean | null | undefined; readonly cycleLockToActive?: boolean | null | undefined; readonly upcomingCycleCount?: number | null | undefined; readonly triageEnabled?: boolean | null | undefined; readonly requirePriorityToLeaveTriage?: boolean | null | undefined; readonly timezone?: string | null | undefined; readonly inheritIssueEstimation?: boolean | null | undefined; readonly issueEstimationType?: string | null | undefined; readonly issueEstimationAllowZero?: boolean | null | undefined; readonly setIssueSortOrderOnStateChange?: string | null | undefined; readonly issueEstimationExtended?: boolean | null | undefined; readonly defaultIssueEstimate?: number | null | undefined; readonly groupIssueHistory?: boolean | null | undefined; readonly defaultTemplateForMembersId?: string | null | undefined; readonly defaultTemplateForNonMembersId?: string | null | undefined; readonly defaultProjectTemplateId?: string | null | undefined; readonly autoClosePeriod?: number | null | undefined; readonly autoCloseStateId?: string | null | undefined; readonly autoArchivePeriod?: number | null | undefined; readonly parentId?: string | null | undefined; readonly issueSharingEnabled?: boolean | null | undefined; readonly initiativesEnabled?: boolean | null | undefined; } /** Filters teams by name, key, visibility, retirement, people, hierarchy, issues, or release pipelines. Supplied conditions must match together; use and and or to combine nested filters. */ export interface TeamFilter { readonly id?: IDComparator | null | undefined; readonly createdAt?: DateComparator | null | undefined; readonly updatedAt?: DateComparator | null | undefined; readonly name?: StringComparator | null | undefined; readonly key?: StringComparator | null | undefined; readonly description?: NullableStringComparator | null | undefined; readonly private?: BooleanComparator | null | undefined; readonly visibility?: TeamVisibilityComparator | null | undefined; readonly members?: UserCollectionFilter | null | undefined; readonly users?: UserCollectionFilter | null | undefined; readonly owners?: UserCollectionFilter | null | undefined; readonly retiredAt?: NullableDateComparator | null | undefined; readonly issues?: IssueCollectionFilter | null | undefined; readonly parent?: NullableTeamFilter | null | undefined; readonly ancestors?: TeamCollectionFilter | null | undefined; readonly restrictedBy?: NullableTeamFilter | null | undefined; readonly releasePipelines?: ReleasePipelineCollectionFilter | null | undefined; readonly and?: ReadonlyArray | null | undefined; readonly or?: ReadonlyArray | null | undefined; } /** The user and team to connect with a new membership. The team must be active and the user must not already be a member. Regular workspace members also join ancestor teams; guest and application-user memberships do not propagate. */ export interface TeamMembershipCreateInput { readonly id?: string | null | undefined; readonly userId: string; readonly teamId: string; readonly sortOrder?: number | null | undefined; } /** Changes to a membership's personal team ordering. This input does not change the user, team, or ownership role; omit sortOrder to leave the position unchanged. */ export interface TeamMembershipUpdateInput { readonly sortOrder?: number | null | undefined; } /** Minimum team roles required for specific actions. Omitted permissions retain their current settings. */ export interface TeamSecuritySettingsInput { readonly issueSharing?: "owner" | "member" | null | undefined; readonly labelManagement?: "owner" | "member" | null | undefined; readonly memberManagement?: "owner" | "member" | null | undefined; readonly teamManagement?: "owner" | "member" | null | undefined; readonly templateManagement?: "owner" | "member" | null | undefined; readonly agentSkillsManagement?: "owner" | "member" | null | undefined; readonly automationManagement?: "owner" | "member" | null | undefined; readonly pinnedViewManagement?: "owner" | "member" | null | undefined; } /** Issue team sorting options. */ export interface TeamSort { readonly nulls?: "first" | "last" | null | undefined; readonly order?: "Ascending" | "Descending" | null | undefined; } /** Changes to a team's identity, workflow, or settings. Omitted fields keep their current values. Permissions are checked for the settings being changed, and some settings require workspace-level administration. */ export interface TeamUpdateInput { readonly name?: string | null | undefined; readonly description?: string | null | undefined; readonly key?: string | null | undefined; readonly icon?: string | null | undefined; readonly color?: string | null | undefined; readonly cyclesEnabled?: boolean | null | undefined; readonly cycleStartDay?: number | null | undefined; readonly cycleDuration?: number | null | undefined; readonly cycleCooldownTime?: number | null | undefined; readonly cycleIssueAutoAssignStarted?: boolean | null | undefined; readonly cycleIssueAutoAssignCompleted?: boolean | null | undefined; readonly cycleLockToActive?: boolean | null | undefined; readonly cycleEnabledStartDate?: string | null | undefined; readonly upcomingCycleCount?: number | null | undefined; readonly timezone?: string | null | undefined; readonly inheritIssueEstimation?: boolean | null | undefined; readonly issueEstimationType?: string | null | undefined; readonly issueEstimationAllowZero?: boolean | null | undefined; readonly setIssueSortOrderOnStateChange?: string | null | undefined; readonly issueEstimationExtended?: boolean | null | undefined; readonly defaultIssueEstimate?: number | null | undefined; readonly slackNewIssue?: boolean | null | undefined; readonly slackIssueComments?: boolean | null | undefined; readonly slackIssueStatuses?: boolean | null | undefined; readonly groupIssueHistory?: boolean | null | undefined; readonly aiThreadSummariesEnabled?: boolean | null | undefined; readonly aiDiscussionSummariesEnabled?: boolean | null | undefined; readonly defaultTemplateForMembersId?: string | null | undefined; readonly defaultTemplateForNonMembersId?: string | null | undefined; readonly defaultProjectTemplateId?: string | null | undefined; readonly private?: boolean | null | undefined; readonly triageEnabled?: boolean | null | undefined; readonly requirePriorityToLeaveTriage?: boolean | null | undefined; readonly defaultIssueStateId?: string | null | undefined; readonly autoClosePeriod?: number | null | undefined; readonly autoCloseStateId?: string | null | undefined; readonly autoCloseParentIssues?: boolean | null | undefined; readonly autoCloseChildIssues?: boolean | null | undefined; readonly autoArchivePeriod?: number | null | undefined; readonly joinByDefault?: boolean | null | undefined; readonly scimManaged?: boolean | null | undefined; readonly scimGroupName?: string | null | undefined; readonly parentId?: string | null | undefined; readonly issueSharingEnabled?: boolean | null | undefined; readonly initiativesEnabled?: boolean | null | undefined; readonly securitySettings?: TeamSecuritySettingsInput | null | undefined; readonly allMembersCanJoin?: boolean | null | undefined; readonly retiredAt?: string | null | undefined; } /** Filters teams by visibility: `public` teams have no private-team boundary, `restricted` teams inherit one from a parent, and `private` teams define their own. All supplied conditions must match. Filtering does not grant access to teams you cannot view. */ export interface TeamVisibilityComparator { readonly eq?: "public" | "restricted" | "private" | null | undefined; readonly neq?: "public" | "restricted" | "private" | null | undefined; readonly in?: ReadonlyArray<"public" | "restricted" | "private"> | null | undefined; readonly nin?: ReadonlyArray<"public" | "restricted" | "private"> | null | undefined; } /** The name, type, and configuration for a new template. Omit teamId to make it available across the workspace, or choose a team for a team template. Release-note templates instead require a release pipeline and are limited to one per pipeline. */ export interface TemplateCreateInput { readonly id?: string | null | undefined; readonly type: string; readonly teamId?: string | null | undefined; readonly pipelineId?: string | null | undefined; readonly name: string; readonly description?: string | null | undefined; readonly icon?: string | null | undefined; readonly color?: string | null | undefined; readonly templateData: unknown; readonly sortOrder?: number | null | undefined; } /** Conditions used to select templates. Supplied fields are combined with AND; use `or` to accept alternatives and `and` to group conditions. */ export interface TemplateFilter { readonly id?: IDComparator | null | undefined; readonly createdAt?: DateComparator | null | undefined; readonly updatedAt?: DateComparator | null | undefined; readonly name?: StringComparator | null | undefined; readonly type?: StringComparator | null | undefined; readonly inheritedFromId?: IDComparator | null | undefined; readonly team?: NullableTeamFilter | null | undefined; readonly and?: ReadonlyArray | null | undefined; readonly or?: ReadonlyArray | null | undefined; } /** The changes to a template's metadata, scope, or saved defaults. Omitted fields keep their values, but templateData replaces the whole configuration when supplied. The template's type cannot be changed through this input. */ export interface TemplateUpdateInput { readonly name?: string | null | undefined; readonly description?: string | null | undefined; readonly icon?: string | null | undefined; readonly color?: string | null | undefined; readonly teamId?: string | null | undefined; readonly templateData?: unknown | null | undefined; readonly sortOrder?: number | null | undefined; } /** Customer tier sorting options. */ export interface TierSort { readonly nulls?: "first" | "last" | null | undefined; readonly order?: "Ascending" | "Descending" | null | undefined; } /** [ALPHA] Upcoming shifts for displaying when each Linear user is next on call. nextShiftByUserId maps user UUIDs to startsAt and endsAt values. Each user must be accessible, and startsAt must be in the future, allowing one minute for request processing. This is display information; entries remains the source for current triage responsibility. */ export interface TimeScheduleConfigInput { readonly nextShiftByUserId: unknown; } /** A name and complete shift list for an API-managed on-call schedule. Provide at most 200 non-overlapping entries. If your system has its own schedule ID, store it in externalId so later calls can use timeScheduleUpsertExternal. The schedule can then be referenced by a team's triage responsibility. */ export interface TimeScheduleCreateInput { readonly id?: string | null | undefined; readonly name: string; readonly entries: ReadonlyArray; readonly externalId?: string | null | undefined; readonly externalUrl?: string | null | undefined; readonly config?: TimeScheduleConfigInput | null | undefined; } /** One shift with a start time, end time, and responsible user. Provide userId when the person is known in Linear, or userEmail as an external reference. The end cannot be earlier than the start, and shifts in the schedule must not overlap. Combine adjacent shifts for the same user and override into one entry. */ export interface TimeScheduleEntryInput { readonly userId?: string | null | undefined; readonly userEmail?: string | null | undefined; readonly startsAt: string; readonly endsAt: string; readonly overriddenUser?: TimeScheduleUserInput | null | undefined; } /** Changes to an API-managed schedule. Omitted fields remain unchanged, while entries replaces the complete shift list; use an empty list to clear all shifts. name, entries, externalId, and externalUrl do not accept null. config can be cleared with null. Integration-managed schedules must be refreshed from their integration instead. */ export interface TimeScheduleUpdateInput { readonly name?: string | null | undefined; readonly entries?: ReadonlyArray | null | undefined; readonly externalId?: string | null | undefined; readonly externalUrl?: string | null | undefined; readonly config?: TimeScheduleConfigInput | null | undefined; } /** A schedule participant identified by userId or an external userEmail reference. */ export interface TimeScheduleUserInput { readonly userId?: string | null | undefined; readonly userEmail?: string | null | undefined; } /** Issue title sorting options. */ export interface TitleSort { readonly nulls?: "first" | "last" | null | undefined; readonly order?: "Ascending" | "Descending" | null | undefined; } /** Credentials for completing an email or SAML sign-in flow. For email sign-in, send the token from the email and the clientAuthCode used to request it. SAML sign-in uses the token issued by its own flow and does not use clientAuthCode. */ export interface TokenUserAccountAuthInput { readonly email: string; readonly token: string | Redacted.Redacted; readonly timezone: string; readonly inviteLink?: string | null | undefined; readonly clientAuthCode?: string | null | undefined; } /** A rule for handling new triage issues in one team. Provide the team UUID, choose notify or assign, and supply exactly one of manualSelection or timeScheduleId. The team must not already have a triage responsibility, and the caller must have permission to manage it. */ export interface TriageResponsibilityCreateInput { readonly id?: string | null | undefined; readonly teamId: string; readonly action: string; readonly manualSelection?: TriageResponsibilityManualSelectionInput | null | undefined; readonly timeScheduleId?: string | null | undefined; } /** The ordered set of Linear users responsible for triage. With assign, Linear rotates through eligible users; with notify, it notifies eligible users in the selection. Supply user UUIDs, not email addresses. Invalid UUIDs are rejected, and IDs that do not resolve to users are removed; a nonempty list with no valid users is rejected. */ export interface TriageResponsibilityManualSelectionInput { readonly userIds: ReadonlyArray; } /** Changes to a team's triage rule. Omitted fields remain unchanged. Supplying manualSelection replaces the current time schedule; supplying timeScheduleId replaces the manual selection. Do not supply both. The team cannot be changed through this input. */ export interface TriageResponsibilityUpdateInput { readonly action?: string | null | undefined; readonly manualSelection?: TriageResponsibilityManualSelectionInput | null | undefined; readonly timeScheduleId?: string | null | undefined; } /** Issue update date sorting options. */ export interface UpdatedAtSort { readonly nulls?: "first" | "last" | null | undefined; readonly order?: "Ascending" | "Descending" | null | undefined; } /** Filters recorded usage alerts by the condition that triggered them and common entity fields. Filtering by type does not indicate whether the condition is still active; inspect resolvedAt on each result. */ export interface UsageAlertFilter { readonly id?: IDComparator | null | undefined; readonly createdAt?: DateComparator | null | undefined; readonly updatedAt?: DateComparator | null | undefined; readonly type?: UsageAlertTypeComparator | null | undefined; readonly and?: ReadonlyArray | null | undefined; readonly or?: ReadonlyArray | null | undefined; } /** Comparator for the condition a usage alert was triggered by. */ export interface UsageAlertTypeComparator { readonly eq?: "lowBalance" | "exhausted" | "expiringPromoCredit" | null | undefined; readonly neq?: "lowBalance" | "exhausted" | "expiringPromoCredit" | null | undefined; readonly in?: | ReadonlyArray<"lowBalance" | "exhausted" | "expiringPromoCredit"> | null | undefined; readonly nin?: | ReadonlyArray<"lowBalance" | "exhausted" | "expiringPromoCredit"> | null | undefined; } /** Filters a related collection of users. Use some or every to test its members and length to test its size, for example length: { eq: 0 } for an empty collection. Direct property filters act as some only when no collection clause is supplied. */ export interface UserCollectionFilter { readonly id?: IDComparator | null | undefined; readonly createdAt?: DateComparator | null | undefined; readonly updatedAt?: DateComparator | null | undefined; readonly name?: StringComparator | null | undefined; readonly displayName?: StringComparator | null | undefined; readonly email?: StringComparator | null | undefined; readonly active?: BooleanComparator | null | undefined; readonly assignedIssues?: IssueCollectionFilter | null | undefined; readonly admin?: BooleanComparator | null | undefined; readonly owner?: BooleanComparator | null | undefined; readonly invited?: BooleanComparator | null | undefined; readonly isInvited?: BooleanComparator | null | undefined; readonly app?: BooleanComparator | null | undefined; readonly isMe?: BooleanComparator | null | undefined; readonly and?: ReadonlyArray | null | undefined; readonly or?: ReadonlyArray | null | undefined; readonly some?: UserFilter | null | undefined; readonly every?: UserFilter | null | undefined; readonly length?: NumberComparator | null | undefined; } /** User display name sorting options. */ export interface UserDisplayNameSort { readonly nulls?: "first" | "last" | null | undefined; readonly order?: "Ascending" | "Descending" | null | undefined; } /** Filters users by identity, workspace role, active or invited state, or assigned issues. Supplied conditions must match together; use and and or to combine nested filters. */ export interface UserFilter { readonly id?: IDComparator | null | undefined; readonly createdAt?: DateComparator | null | undefined; readonly updatedAt?: DateComparator | null | undefined; readonly name?: StringComparator | null | undefined; readonly displayName?: StringComparator | null | undefined; readonly email?: StringComparator | null | undefined; readonly active?: BooleanComparator | null | undefined; readonly assignedIssues?: IssueCollectionFilter | null | undefined; readonly admin?: BooleanComparator | null | undefined; readonly owner?: BooleanComparator | null | undefined; readonly invited?: BooleanComparator | null | undefined; readonly isInvited?: BooleanComparator | null | undefined; readonly app?: BooleanComparator | null | undefined; readonly isMe?: BooleanComparator | null | undefined; readonly and?: ReadonlyArray | null | undefined; readonly or?: ReadonlyArray | null | undefined; } /** User name sorting options. */ export interface UserNameSort { readonly nulls?: "first" | "last" | null | undefined; readonly order?: "Ascending" | "Descending" | null | undefined; } /** Changes to notification and app preferences. Omitted fields keep their values. General settings merge by key, notification categories and channels merge with existing preferences, and delivery schedules use the replacement rules described on that field. */ export interface UserSettingsUpdateInput { readonly settings?: unknown | null | undefined; readonly subscribedToChangelog?: boolean | null | undefined; readonly subscribedToDPA?: boolean | null | undefined; readonly subscribedToInviteAccepted?: boolean | null | undefined; readonly subscribedToPrivacyLegalUpdates?: boolean | null | undefined; readonly subscribedToGeneralMarketingCommunications?: boolean | null | undefined; readonly notificationCategoryPreferences?: | NotificationCategoryPreferencesInput | null | undefined; readonly notificationChannelPreferences?: | PartialNotificationChannelPreferencesInput | null | undefined; readonly notificationDeliveryPreferences?: | NotificationDeliveryPreferencesInput | null | undefined; } /** User sorting options. */ export interface UserSortInput { readonly name?: UserNameSort | null | undefined; readonly displayName?: UserDisplayNameSort | null | undefined; } /** Changes to a user's profile. Omitted fields keep their values. You can update your own profile; changing another user requires member-management permission. Identity-provider rules can prevent name changes, and application accounts only accept name and displayName. */ export interface UserUpdateInput { readonly name?: string | null | undefined; readonly displayName?: string | null | undefined; readonly avatarUrl?: string | null | undefined; readonly description?: string | null | undefined; readonly title?: string | null | undefined; readonly statusEmoji?: string | null | undefined; readonly statusLabel?: string | null | undefined; readonly statusUntilAt?: string | null | undefined; readonly timezone?: string | null | undefined; } /** The view, scope, and display settings to save. Use type user for your personal overrides or organization for defaults shared in that scope. Entity-specific views require the corresponding ID, such as teamId for cycle views or customViewId for saved views. */ export interface ViewPreferencesCreateInput { readonly id?: string | null | undefined; readonly type: "organization" | "user"; readonly viewType: | "inbox" | "inboxPriority" | "inboxOther" | "myIssues" | "myIssuesCreatedByMe" | "myIssuesSubscribedTo" | "myIssuesActivity" | "myIssuesSharedWithMe" | "userProfile" | "userProfileCreatedByUser" | "userProfileDiffs" | "userProfileProjects" | "board" | "completedCycle" | "cycle" | "upcomingCycle" | "release" | "releaseOverviewIssues" | "continuousPipelineReleases" | "scheduledPipelineReleases" | "project" | "projectDocuments" | "label" | "triage" | "activeIssues" | "backlog" | "subIssues" | "subDocuments" | "allIssues" | "dashboards" | "customView" | "customViews" | "initiative" | "initiativeOverview" | "initiativeOverviewSubInitiatives" | "initiatives" | "initiativesAll" | "initiativesPlanned" | "initiativesProposed" | "initiativesCompleted" | "initiativesCanceled" | "projects" | "projectsAll" | "projectsBacklog" | "projectsClosed" | "projectLabel" | "initiativeLabel" | "search" | "splitSearch" | "teams" | "archive" | "quickView" | "issueIdentifiers" | "customers" | "customer" | "embeddedCustomerNeeds" | "projectCustomerNeeds" | "reviews" | "myReviews" | "createdReviews" | "agents" | "focus" | "feedAll" | "feedCreated" | "feedFollowing" | "feedPopular" | "workspaceMembers" | "myDocuments" | "sharedDocuments" | "recentDocuments" | "allDocuments" | "teamDocuments" | "workspaceDocuments" | "releasePipelines" | "automations" | "automationRunHistory" | "roadmapAll" | "roadmap" | "roadmaps" | "roadmapClosed" | "roadmapBacklog"; readonly preferences: unknown; readonly insights?: unknown | null | undefined; readonly teamId?: string | null | undefined; readonly projectId?: string | null | undefined; readonly labelId?: string | null | undefined; readonly projectLabelId?: string | null | undefined; readonly initiativeLabelId?: string | null | undefined; readonly releasePipelineId?: string | null | undefined; readonly customViewId?: string | null | undefined; readonly userId?: string | null | undefined; } /** The settings to replace on an existing preferences record. Omit preferences or insights to keep that whole object unchanged. When supplying either object, include the existing values you want to retain; its individual keys are not merged. */ export interface ViewPreferencesUpdateInput { readonly preferences?: unknown | null | undefined; readonly insights?: unknown | null | undefined; } /** The destination, event streams, and team scope for a new webhook. Provide a public HTTPS URL and at least one resource type. Choose a single teamId or set allPublicTeams to true; when allPublicTeams is true, teamId is ignored. Delivery is enabled by default, and Linear generates a signing secret if you omit one. */ export interface WebhookCreateInput { readonly label?: string | null | undefined; readonly id?: string | null | undefined; readonly enabled?: boolean | null | undefined; readonly secret?: string | Redacted.Redacted | null | undefined; readonly url: string; readonly resourceTypes: ReadonlyArray; readonly teamId?: string | null | undefined; readonly allPublicTeams?: boolean | null | undefined; } /** Changes to an existing webhook's destination, event streams, delivery state, or signing secret. Omitted fields keep their current values. resourceTypes replaces the whole subscription list. The team scope cannot be changed through this input; create a separate webhook when you need a different scope. */ export interface WebhookUpdateInput { readonly label?: string | null | undefined; readonly secret?: string | Redacted.Redacted | null | undefined; readonly enabled?: boolean | null | undefined; readonly url?: string | null | undefined; readonly resourceTypes?: ReadonlyArray | null | undefined; } /** Filters the workflow that created an issue, using its workflow definition ID. This describes creation provenance, not workflows that later updated the issue. `neq` and `nin` also match issues without a workflow source; use `{ null: false }` to require one. */ export interface WorkflowDefinitionIdComparator { readonly eq?: string | null | undefined; readonly neq?: string | null | undefined; readonly in?: ReadonlyArray | null | undefined; readonly nin?: ReadonlyArray | null | undefined; readonly null?: boolean | null | undefined; } /** The name, color, and category of a new issue status for a team. Choose the type carefully: it cannot be changed after creation. The name must be unique among active statuses of that type in the team. */ export interface WorkflowStateCreateInput { readonly id?: string | null | undefined; readonly type: string; readonly name: string; readonly color: string; readonly description?: string | null | undefined; readonly position?: number | null | undefined; readonly teamId: string; } /** Conditions used to select issue statuses. Supplied fields are combined with AND; use `or` to accept alternatives and `and` to group conditions. */ export interface WorkflowStateFilter { readonly id?: IDComparator | null | undefined; readonly createdAt?: DateComparator | null | undefined; readonly updatedAt?: DateComparator | null | undefined; readonly name?: StringComparator | null | undefined; readonly description?: StringComparator | null | undefined; readonly position?: NumberComparator | null | undefined; readonly type?: StringComparator | null | undefined; readonly team?: TeamFilter | null | undefined; readonly issues?: IssueCollectionFilter | null | undefined; readonly and?: ReadonlyArray | null | undefined; readonly or?: ReadonlyArray | null | undefined; } /** Issue workflow state sorting options. */ export interface WorkflowStateSort { readonly nulls?: "first" | "last" | null | undefined; readonly order?: "Ascending" | "Descending" | null | undefined; readonly closedIssuesOrderedByRecency?: boolean | null | undefined; readonly typeOnly?: boolean | null | undefined; } /** Changes to an issue status. Omitted fields keep their values. The status type and team cannot be changed. */ export interface WorkflowStateUpdateInput { readonly name?: string | null | undefined; readonly color?: string | null | undefined; readonly description?: string | null | undefined; readonly position?: number | null | undefined; } /** The content of one agent activity. Select __typename and use an inline fragment for the returned content type: thought reports progress, action describes work, response addresses the user, prompt comes from the user, error reports failure, and elicitation asks for input. Each variant also carries its AgentActivityType in type. */ export type AgentActivityContent = | AgentActivityThoughtContent | AgentActivityActionContent | AgentActivityResponseContent | AgentActivityPromptContent | AgentActivityErrorContent | AgentActivityElicitationContent; /** Service-specific metadata for an external entity linked to Linear. */ export type ExternalEntityInfoMetadata = | ExternalEntityInfoGithubMetadata | ExternalEntityInfoJiraMetadata | ExternalEntitySlackMetadata; /** The result of looking up a workspace invitation. Pending invitations return OrganizationInviteFullDetailsPayload; accepted or expired invitations return OrganizationAcceptedOrExpiredInviteDetailsPayload with only status. Select __typename and use inline fragments to read the fields available for that result. */ export type OrganizationInviteDetailsPayload = | OrganizationInviteFullDetailsPayload | OrganizationAcceptedOrExpiredInviteDetailsPayload; /** An access key for CI/CD integrations. Unlike personal API keys, access keys are not tied to a specific user's permissions but are scoped to an organization with specific capabilities and resource access (e.g., specific release pipelines). They support revocation with a grace period, allowing existing deployments to complete before the key becomes fully invalid. */ export interface AccessKey { readonly archivedAt: string | null; readonly createdAt: string; readonly creator: User | null; readonly id: string; readonly lastUsedAt: string | null; readonly organization: Organization; readonly revokedAt: string | null; readonly updatedAt: string; } /** A release returned using a release pipeline access key. */ export interface AccessKeyRelease { readonly archivedAt: string | null; readonly commitSha: string | null; readonly completedAt: string | null; readonly createdAt: string; readonly id: string; readonly name: string; readonly stage: AccessKeyReleaseStage; readonly url: string; readonly version: string | null; } /** The result of a release mutation using a release pipeline access key. */ export interface AccessKeyReleasePayload { readonly lastSyncId: number; readonly release: AccessKeyRelease; readonly success: boolean; } /** A release pipeline returned using a release pipeline access key. */ export interface AccessKeyReleasePipeline { readonly id: string; readonly includePathPatterns: ReadonlyArray; } /** A release stage returned using a release pipeline access key. */ export interface AccessKeyReleaseStage { readonly name: string; readonly type: "planned" | "started" | "completed" | "canceled"; } /** Display identity for an integration, application, or automation credited with an action. type and subType identify its source; userDisplayName can identify the person who triggered it externally. Built-in AI and workflow actions can use the shared Linear actor rather than a separate user account. */ export interface ActorBot { readonly avatarUrl: string | null; readonly id: string | null; readonly name: string | null; readonly subType: string | null; readonly type: string; readonly userDisplayName: string | null; } /** One message or action in an agent session. Use activities to show what your agent is doing and to read messages from users. The content type distinguishes progress updates, tool actions, responses, errors, and requests for input; a signal can modify how Linear handles that content. Access to an activity follows access to its session. */ export interface AgentActivity { readonly agentSession: AgentSession; readonly archivedAt: string | null; readonly content: | AgentActivityThoughtContent | AgentActivityActionContent | AgentActivityResponseContent | AgentActivityPromptContent | AgentActivityErrorContent | AgentActivityElicitationContent; readonly createdAt: string; readonly ephemeral: boolean; readonly id: string; readonly promptAuthor: User | null; readonly signal: "stop" | "continue" | "auth" | "select" | null; readonly signalMetadata: unknown | null; readonly sourceComment: Comment | null; readonly sourceMetadata: unknown | null; readonly updatedAt: string; readonly user: User; } /** A tool call or other action reported by the agent. action names the work and parameter describes its target or input. result is optional Markdown output from that action; this record describes work reported by the agent and does not invoke the tool itself. */ export interface AgentActivityActionContent { readonly action: string; readonly parameter: string; readonly result: string | null; readonly type: "thought" | "action" | "response" | "elicitation" | "error" | "prompt"; } /** A page of results. Read `nodes` for the resources, or `edges` if you also need a cursor for each result. Use `pageInfo` to fetch further pages; a connection may contain fewer results than the requested page size. */ export interface AgentActivityConnection { readonly edges: ReadonlyArray; readonly nodes: ReadonlyArray; readonly pageInfo: PageInfo; } /** A result and its pagination cursor. */ export interface AgentActivityEdge { readonly cursor: string; readonly node: AgentActivity; } /** A Markdown request for information or a decision from the user. Publishing it moves the session to awaiting input. The activity's signal and signalMetadata may specify an authentication request or a set of choices. */ export interface AgentActivityElicitationContent { readonly body: string; readonly type: "thought" | "action" | "response" | "elicitation" | "error" | "prompt"; } /** A failure reported by the agent, with a Markdown message and an optional reason code for specialized handling. Publishing this activity puts the session in its error state. */ export interface AgentActivityErrorContent { readonly body: string; readonly reasonCode: string | null; readonly type: "thought" | "action" | "response" | "elicitation" | "error" | "prompt"; } /** The result of an agent activity mutation. */ export interface AgentActivityPayload { readonly agentActivity: AgentActivity; readonly lastSyncId: number; readonly success: boolean; } /** A message sent by a user to the agent. */ export interface AgentActivityPromptContent { readonly body: string; readonly title: string | null; readonly type: "thought" | "action" | "response" | "elicitation" | "error" | "prompt"; } /** A Markdown response from the agent to the user. Publishing a response completes the current turn unless the activity has the continue signal, which keeps the agent active while showing the message. */ export interface AgentActivityResponseContent { readonly body: string; readonly type: "thought" | "action" | "response" | "elicitation" | "error" | "prompt"; } /** A progress message from the agent while it works. */ export interface AgentActivityThoughtContent { readonly body: string; readonly type: "thought" | "action" | "response" | "elicitation" | "error" | "prompt"; } /** A record of an agent's work and its conversation with users. A session belongs to one app user and may be linked to an issue or comment thread. Your agent publishes activities to report progress and results, and can attach external links and a plan. status reflects the latest activity, so the same session can complete a turn, receive more input, and become active again. */ export interface AgentSession { readonly activities: ReadonlyArray; readonly appUser: User; readonly archivedAt: string | null; readonly comment: Comment | null; readonly context: unknown; readonly createdAt: string; readonly creator: User | null; readonly dismissedAt: string | null; readonly dismissedBy: User | null; readonly endedAt: string | null; readonly externalLink: string | null; readonly externalLinks: ReadonlyArray; readonly externalUrls: unknown; readonly id: string; readonly issue: Issue | null; readonly plan: unknown | null; readonly slugId: string; readonly sourceComment: Comment | null; readonly sourceMetadata: unknown | null; readonly startedAt: string | null; readonly status: | "pending" | "active" | "stopping" | "complete" | "awaitingInput" | "error" | "stale"; readonly summary: string | null; readonly type: "commentThread" | null; readonly updatedAt: string; readonly url: string | null; } /** A page of results. Read `nodes` for the resources, or `edges` if you also need a cursor for each result. Use `pageInfo` to fetch further pages; a connection may contain fewer results than the requested page size. */ export interface AgentSessionConnection { readonly edges: ReadonlyArray; readonly nodes: ReadonlyArray; readonly pageInfo: PageInfo; } /** A result and its pagination cursor. */ export interface AgentSessionEdge { readonly cursor: string; readonly node: AgentSession; } /** An external link associated with an agent session. */ export interface AgentSessionExternalLink { readonly label: string; readonly url: string; } /** A notification about an agent session awaiting input, failing, or completing a turn. */ export interface AgentSessionNotification { readonly actor: User | null; readonly agentActivityId: string | null; readonly agentSessionId: string; readonly archivedAt: string | null; readonly botActor: ActorBot | null; readonly category: | "assignments" | "statusChanges" | "commentsAndReplies" | "mentions" | "reactions" | "subscriptions" | "documentChanges" | "postsAndUpdates" | "reminders" | "reviews" | "loops" | "appsAndIntegrations" | "triage" | "customers" | "feed" | "billing" | "system"; readonly createdAt: string; readonly emailedAt: string | null; readonly externalUserActor: ExternalUser | null; readonly id: string; readonly readAt: string | null; readonly snoozedUntilAt: string | null; readonly type: string; readonly unsnoozedAt: string | null; readonly updatedAt: string; readonly user: User; } /** The agent session created or updated by a mutation. */ export interface AgentSessionPayload { readonly agentSession: AgentSession; readonly lastSyncId: number; readonly success: boolean; } /** Reusable instructions that guide the Linear Agent when a user selects the skill. body contains the instructions, while title, icon, and color identify the skill in Linear. A skill may be personal, shared with a team, or shared with the workspace. Teams can inherit skills from a parent team; edit the source skill to change inherited copies. */ export interface AgentSkill { readonly archivedAt: string | null; readonly body: string; readonly color: string | null; readonly createdAt: string; readonly creator: User; readonly description: string | null; readonly icon: string | null; readonly id: string; readonly inheritedFrom: AgentSkill | null; readonly lastUpdatedBy: User | null; readonly lastUsedAt: string | null; readonly owner: User; readonly recentUsageCount: number; readonly shared: boolean; readonly slugId: string; readonly teamId: string | null; readonly title: string; readonly updatedAt: string; } /** A page of results. Read `nodes` for the resources, or `edges` if you also need a cursor for each result. Use `pageInfo` to fetch further pages; a connection may contain fewer results than the requested page size. */ export interface AgentSkillConnection { readonly edges: ReadonlyArray; readonly nodes: ReadonlyArray; readonly pageInfo: PageInfo; } /** A result and its pagination cursor. */ export interface AgentSkillEdge { readonly cursor: string; readonly node: AgentSkill; } /** The result of an agent skill mutation. */ export interface AgentSkillPayload { readonly agentSkill: AgentSkill; readonly lastSyncId: number; readonly success: boolean; } /** Saved guidance used when Linear prepares AI prompts for a workspace, team, project, integration, or user. This record identifies the guidance configuration and who last edited it; it is separate from an agent skill or an individual agent session. */ export interface AiPromptRules { readonly archivedAt: string | null; readonly createdAt: string; readonly id: string; readonly updatedAt: string; readonly updatedBy: User | null; } /** Public display information for an OAuth application, including its developer and branding. id identifies the application record; clientId is the identifier used in OAuth authorization requests. This object contains no client secret or access token. */ export interface Application { readonly clientId: string; readonly description: string | null; readonly developer: string; readonly developerUrl: string; readonly id: string; readonly imageUrl: string | null; readonly name: string; } /** The result of archiving, restoring, or deleting a resource. */ export interface ArchivePayload { readonly lastSyncId: number; readonly success: boolean; } /** Archived search results and related records serialized for Linear's client. External integrations can read the search connection's nodes instead. */ export interface ArchiveResponse { readonly archive: string; readonly databaseVersion: number; readonly includesDependencies: ReadonlyArray; readonly totalCount: number; } /** A recently archived integration. */ export interface ArchivedIntegrationPayload { readonly archivedAt: string; readonly codeAccess: boolean | null; readonly enterpriseUrl: string | null; readonly externalOrgId: string | null; readonly id: string; readonly orgAvatarUrl: string | null; readonly orgLogin: string | null; readonly service: string; } /** Connected Asks channel and whether the bot needs a manual invitation. */ export interface AsksChannelConnectPayload { readonly addBot: boolean; readonly gitHub: GitHubIntegrationConnectDetails | null; readonly integration: Integration | null; readonly lastSyncId: number; readonly mapping: SlackChannelNameMapping; readonly success: boolean; } /** A link from an issue to an external resource, such as a pull request, support ticket, design, or web page. The same URL can be attached to several issues, but only once per issue. Integration-created attachments can carry source-specific metadata and sync behavior beyond a basic link. */ export interface Attachment { readonly archivedAt: string | null; readonly bodyData: string | null; readonly createdAt: string; readonly creator: User | null; readonly externalUserCreator: ExternalUser | null; readonly groupBySource: boolean; readonly id: string; readonly issue: Issue; readonly metadata: unknown; readonly originalIssue: Issue | null; readonly source: unknown | null; readonly sourceType: string | null; readonly subtitle: string | null; readonly title: string; readonly updatedAt: string; readonly url: string; } /** A page of results. Read `nodes` for the resources, or `edges` if you also need a cursor for each result. Use `pageInfo` to fetch further pages; a connection may contain fewer results than the requested page size. */ export interface AttachmentConnection { readonly edges: ReadonlyArray; readonly nodes: ReadonlyArray; readonly pageInfo: PageInfo; } /** A result and its pagination cursor. */ export interface AttachmentEdge { readonly cursor: string; readonly node: Attachment; } /** The result of an attachment mutation. */ export interface AttachmentPayload { readonly attachment: Attachment; readonly lastSyncId: number; readonly success: boolean; } /** The result of an attachment sources query. */ export interface AttachmentSourcesPayload { readonly sources: unknown; } /** A workspace audit event, such as a sign-in, permission change, or export. Records the actor, request details, and action-specific metadata; requires audit log access. */ export interface AuditEntry { readonly actor: User | null; readonly actorId: string | null; readonly archivedAt: string | null; readonly countryCode: string | null; readonly createdAt: string; readonly id: string; readonly ip: string | null; readonly metadata: unknown | null; readonly organization: Organization | null; readonly requestInformation: unknown | null; readonly type: string; readonly updatedAt: string; } /** A page of results. Read `nodes` for the resources, or `edges` if you also need a cursor for each result. Use `pageInfo` to fetch further pages; a connection may contain fewer results than the requested page size. */ export interface AuditEntryConnection { readonly edges: ReadonlyArray; readonly nodes: ReadonlyArray; readonly pageInfo: PageInfo; } /** A result and its pagination cursor. */ export interface AuditEntryEdge { readonly cursor: string; readonly node: AuditEntry; } /** An audit event identifier and its meaning. */ export interface AuditEntryType { readonly description: string; readonly type: string; } /** A workspace as seen during sign-in and workspace discovery. Its ID identifies the workspace, while urlKey identifies its URL. Sign-in settings explain how an account may gain access; appearing in discovery results does not mean the account already has a membership. */ export interface AuthOrganization { readonly allowedAuthServices: ReadonlyArray; readonly approximateUserCount: number; readonly authSettings: unknown; readonly cell: string; readonly createdAt: string; readonly deletionRequestedAt: string | null; readonly enabled: boolean; readonly hideNonPrimaryOrganizations: boolean; readonly id: string; readonly logoUrl: string | null; readonly name: string; readonly previousUrlKeys: ReadonlyArray; readonly region: string; readonly releaseChannel: | "development" | "internal" | "privateBeta" | "beta" | "preRelease" | "public"; readonly samlEnabled: boolean; readonly scimEnabled: boolean; readonly serviceId: string; readonly urlKey: string; readonly userCount: number | null; } /** A signed-in account and the workspaces it can access or join. One account can have a separate user identity in each workspace: id is the account ID, while each users entry has its own workspace user ID. Locked entries require a different sign-in method. Authentication is carried by the session cookie, not the deprecated token field. */ export interface AuthResolverResponse { readonly allowDomainAccess: boolean | null; readonly availableOrganizations: ReadonlyArray | null; readonly email: string; readonly id: string; readonly lastUsedOrganizationId: string | null; readonly lockedOrganizations: ReadonlyArray | null; readonly lockedUsers: ReadonlyArray; readonly service: string | null; readonly token: string | null; readonly users: ReadonlyArray; } /** An account's user identity in one workspace, including its role and profile there. Use id when referring to this workspace membership; userAccountId links the same person's identities across workspaces. The organization field identifies the workspace for this user. */ export interface AuthUser { readonly active: boolean; readonly avatarUrl: string | null; readonly createdAt: string; readonly displayName: string; readonly email: string; readonly id: string; readonly name: string; readonly oauthClientId: string | null; readonly organization: AuthOrganization; readonly role: "owner" | "admin" | "guest" | "user" | "app"; readonly userAccountId: string; } /** A sign-in session for the authenticated account, with device details and the most recently recorded location and activity. Location is inferred from request IP information, and activity timestamps may lag the latest request. Use isCurrentSession to distinguish this request's session and id with logoutSession to revoke one. */ export interface AuthenticationSessionResponse { readonly browserType: string | null; readonly client: string | null; readonly countryCodes: ReadonlyArray; readonly createdAt: string; readonly detailedName: string; readonly id: string; readonly ip: string | null; readonly isCurrentSession: boolean; readonly lastActiveAt: string | null; readonly location: string | null; readonly locationCity: string | null; readonly locationCountry: string | null; readonly locationCountryCode: string | null; readonly locationRegionCode: string | null; readonly name: string; readonly operatingSystem: string | null; readonly service: string | null; readonly type: "web" | "desktop" | "ios" | "android"; readonly updatedAt: string; readonly userAgent: string | null; } /** [ALPHA] A code repository connected to the workspace from a supported version control provider (e.g., GitHub, GitLab). Normalizes repository metadata that was previously stored as JSONB on individual pull requests, providing a single source of truth for repository owner, name, visibility, and default branch. */ export interface CodeRepository { readonly archivedAt: string | null; readonly baseUrl: string; readonly createdAt: string; readonly defaultBranch: string; readonly externalOwnerId: string; readonly externalRepositoryId: string; readonly fullPath: string; readonly id: string; readonly name: string; readonly owner: string; readonly updatedAt: string; readonly visibility: string; } /** A message in a discussion on an issue, document, project, initiative, or update. A thread consists of a root comment and replies whose parent points to that root. Resolution belongs to the root comment; replies do not form additional nested threads. */ export interface Comment { readonly agentSession: AgentSession | null; readonly archivedAt: string | null; readonly body: string; readonly botActor: ActorBot | null; readonly children: ReadonlyArray; readonly createdAt: string; readonly createdIssues: ReadonlyArray; readonly documentContent: DocumentContent | null; readonly documentContentId: string | null; readonly editedAt: string | null; readonly externalThread: SyncedExternalThread | null; readonly externalUser: ExternalUser | null; readonly id: string; readonly initiative: Initiative | null; readonly initiativeId: string | null; readonly initiativeUpdate: InitiativeUpdate | null; readonly initiativeUpdateId: string | null; readonly issue: Issue | null; readonly issueId: string | null; readonly onBehalfOf: User | null; readonly parent: Comment | null; readonly parentId: string | null; readonly project: Project | null; readonly projectId: string | null; readonly projectUpdate: ProjectUpdate | null; readonly projectUpdateId: string | null; readonly quotedText: string | null; readonly reactionData: unknown; readonly reactions: ReadonlyArray; readonly resolvedAt: string | null; readonly resolvingComment: Comment | null; readonly resolvingCommentId: string | null; readonly resolvingUser: User | null; readonly syncedWith: ReadonlyArray | null; readonly updatedAt: string; readonly url: string; readonly user: User | null; } /** A page of results. Read `nodes` for the resources, or `edges` if you also need a cursor for each result. Use `pageInfo` to fetch further pages; a connection may contain fewer results than the requested page size. */ export interface CommentConnection { readonly edges: ReadonlyArray; readonly nodes: ReadonlyArray; readonly pageInfo: PageInfo; } /** A result and its pagination cursor. */ export interface CommentEdge { readonly cursor: string; readonly node: Comment; } /** The result of a comment mutation. */ export interface CommentPayload { readonly comment: Comment; readonly lastSyncId: number; readonly success: boolean; } /** Return type for contact mutations. */ export interface ContactPayload { readonly success: boolean; } /** Result of queuing a workspace CSV export. Success confirms scheduling; the download link is sent by email when ready. */ export interface CreateCsvExportReportPayload { readonly success: boolean; } /** A saved set of filters for issues, projects, initiatives, or updates. A view can be personal or shared and can be placed in a team, project, or initiative. Its filters choose the matching items; separate view preferences control how those items are grouped, sorted, and displayed. */ export interface CustomView { readonly archivedAt: string | null; readonly color: string | null; readonly createdAt: string; readonly creator: User; readonly description: string | null; readonly feedItemFilterData: unknown | null; readonly filterData: unknown; readonly filters: unknown; readonly icon: string | null; readonly id: string; readonly initiativeFilterData: unknown | null; readonly initiatives: ReadonlyArray; readonly issues: ReadonlyArray; readonly modelName: string; readonly name: string; readonly organization: Organization; readonly organizationViewPreferences: ViewPreferences | null; readonly owner: User; readonly projectFilterData: unknown | null; readonly projects: ReadonlyArray; readonly shared: boolean; readonly slugId: string; readonly team: Team | null; readonly updatedAt: string; readonly updatedBy: User | null; readonly userViewPreferences: ViewPreferences | null; readonly viewPreferencesValues: ViewPreferencesValues | null; } /** A page of results. Read `nodes` for the resources, or `edges` if you also need a cursor for each result. Use `pageInfo` to fetch further pages; a connection may contain fewer results than the requested page size. */ export interface CustomViewConnection { readonly edges: ReadonlyArray; readonly nodes: ReadonlyArray; readonly pageInfo: PageInfo; } /** A result and its pagination cursor. */ export interface CustomViewEdge { readonly cursor: string; readonly node: CustomView; } /** The result of a custom view subscribers check. */ export interface CustomViewHasSubscribersPayload { readonly hasSubscribers: boolean; } /** A notification subscription scoped to a specific custom view. The subscriber receives notifications for events matching the custom view's filter criteria. */ export interface CustomViewNotificationSubscription { readonly active: boolean; readonly archivedAt: string | null; readonly contextViewType: | "activeIssues" | "activeCycle" | "upcomingCycle" | "backlog" | "triage" | null; readonly createdAt: string; readonly customer: Customer | null; readonly customView: CustomView; readonly cycle: Cycle | null; readonly id: string; readonly includeSubInitiativeUpdates: boolean; readonly initiative: Initiative | null; readonly label: IssueLabel | null; readonly notificationSubscriptionTypes: ReadonlyArray; readonly project: Project | null; readonly subscriber: User; readonly team: Team | null; readonly updatedAt: string; readonly user: User | null; readonly userContextViewType: "assigned" | null; } /** The result of a custom view mutation. */ export interface CustomViewPayload { readonly customView: CustomView; readonly lastSyncId: number; readonly success: boolean; } /** A customer company whose requests help you prioritize work. Customer needs link its feedback to issues or projects, while status, tier, revenue, and size describe the account. Domains and external IDs match incoming requests and integration records to the same customer. */ export interface Customer { readonly approximateNeedCount: number; readonly archivedAt: string | null; readonly createdAt: string; readonly domains: ReadonlyArray; readonly externalIds: ReadonlyArray; readonly id: string; readonly integration: Integration | null; readonly logoUrl: string | null; readonly mainSourceId: string | null; readonly name: string; readonly needs: ReadonlyArray; readonly owner: User | null; readonly revenue: number | null; readonly size: number | null; readonly slackChannelId: string | null; readonly slugId: string; readonly status: CustomerStatus; readonly tier: CustomerTier | null; readonly updatedAt: string; readonly url: string; } /** A page of results. Read `nodes` for the resources, or `edges` if you also need a cursor for each result. Use `pageInfo` to fetch further pages; a connection may contain fewer results than the requested page size. */ export interface CustomerConnection { readonly edges: ReadonlyArray; readonly nodes: ReadonlyArray; readonly pageInfo: PageInfo; } /** A result and its pagination cursor. */ export interface CustomerEdge { readonly cursor: string; readonly node: Customer; } /** A request or piece of feedback associated with a customer and linked to an issue or project. It can include a written message, priority, and an attachment pointing to the original conversation. Multiple needs can connect the same customer to the same work, preserving each source of feedback. */ export interface CustomerNeed { readonly archivedAt: string | null; readonly attachment: Attachment | null; readonly body: string | null; readonly comment: Comment | null; readonly content: string | null; readonly createdAt: string; readonly creator: User | null; readonly customer: Customer | null; readonly id: string; readonly issue: Issue | null; readonly originalIssue: Issue | null; readonly priority: number; readonly project: Project | null; readonly projectAttachment: ProjectAttachment | null; readonly updatedAt: string; readonly url: string | null; } /** The result of archiving or restoring a resource. */ export interface CustomerNeedArchivePayload { readonly entity: CustomerNeed | null; readonly lastSyncId: number; readonly success: boolean; } /** A page of results. Read `nodes` for the resources, or `edges` if you also need a cursor for each result. Use `pageInfo` to fetch further pages; a connection may contain fewer results than the requested page size. */ export interface CustomerNeedConnection { readonly edges: ReadonlyArray; readonly nodes: ReadonlyArray; readonly pageInfo: PageInfo; } /** A result and its pagination cursor. */ export interface CustomerNeedEdge { readonly cursor: string; readonly node: CustomerNeed; } /** A notification related to a customer need (request), such as creation, resolution, or being marked as important. */ export interface CustomerNeedNotification { readonly actor: User | null; readonly archivedAt: string | null; readonly botActor: ActorBot | null; readonly category: | "assignments" | "statusChanges" | "commentsAndReplies" | "mentions" | "reactions" | "subscriptions" | "documentChanges" | "postsAndUpdates" | "reminders" | "reviews" | "loops" | "appsAndIntegrations" | "triage" | "customers" | "feed" | "billing" | "system"; readonly createdAt: string; readonly customerNeed: CustomerNeed; readonly customerNeedId: string; readonly emailedAt: string | null; readonly externalUserActor: ExternalUser | null; readonly id: string; readonly readAt: string | null; readonly relatedIssue: Issue | null; readonly relatedProject: Project | null; readonly snoozedUntilAt: string | null; readonly type: string; readonly unsnoozedAt: string | null; readonly updatedAt: string; readonly user: User; } /** Return type for customer need mutations. */ export interface CustomerNeedPayload { readonly lastSyncId: number; readonly need: CustomerNeed; readonly success: boolean; } /** Return type for customer need update mutations, including any related needs that were also updated. */ export interface CustomerNeedUpdatePayload { readonly lastSyncId: number; readonly need: CustomerNeed; readonly success: boolean; readonly updatedRelatedNeeds: ReadonlyArray; } /** A notification related to a customer, such as being added as the customer owner. */ export interface CustomerNotification { readonly actor: User | null; readonly archivedAt: string | null; readonly botActor: ActorBot | null; readonly category: | "assignments" | "statusChanges" | "commentsAndReplies" | "mentions" | "reactions" | "subscriptions" | "documentChanges" | "postsAndUpdates" | "reminders" | "reviews" | "loops" | "appsAndIntegrations" | "triage" | "customers" | "feed" | "billing" | "system"; readonly createdAt: string; readonly customer: Customer; readonly customerId: string; readonly emailedAt: string | null; readonly externalUserActor: ExternalUser | null; readonly id: string; readonly readAt: string | null; readonly snoozedUntilAt: string | null; readonly type: string; readonly unsnoozedAt: string | null; readonly updatedAt: string; readonly user: User; } /** 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. */ export interface CustomerNotificationSubscription { readonly active: boolean; readonly archivedAt: string | null; readonly contextViewType: | "activeIssues" | "activeCycle" | "upcomingCycle" | "backlog" | "triage" | null; readonly createdAt: string; readonly customer: Customer; readonly customView: CustomView | null; readonly cycle: Cycle | null; readonly id: string; readonly includeSubInitiativeUpdates: boolean; readonly initiative: Initiative | null; readonly label: IssueLabel | null; readonly notificationSubscriptionTypes: ReadonlyArray; readonly project: Project | null; readonly subscriber: User; readonly team: Team | null; readonly updatedAt: string; readonly user: User | null; readonly userContextViewType: "assigned" | null; } /** Return type for customer mutations. */ export interface CustomerPayload { readonly customer: Customer; readonly lastSyncId: number; readonly success: boolean; } /** A stage in your customer lifecycle, such as Trial, Active, or Churned. These statuses are defined for the workspace and assigned to customer records. The first status by position is the default for customers created without an explicit status. */ export interface CustomerStatus { readonly archivedAt: string | null; readonly color: string; readonly createdAt: string; readonly description: string | null; readonly displayName: string; readonly id: string; readonly name: string; readonly position: number; readonly type: "active" | "inactive" | null; readonly updatedAt: string; } /** A page of results. Read `nodes` for the resources, or `edges` if you also need a cursor for each result. Use `pageInfo` to fetch further pages; a connection may contain fewer results than the requested page size. */ export interface CustomerStatusConnection { readonly edges: ReadonlyArray; readonly nodes: ReadonlyArray; readonly pageInfo: PageInfo; } /** A result and its pagination cursor. */ export interface CustomerStatusEdge { readonly cursor: string; readonly node: CustomerStatus; } /** Return type for customer status mutations. */ export interface CustomerStatusPayload { readonly lastSyncId: number; readonly status: CustomerStatus; readonly success: boolean; } /** A workspace-defined customer segment, such as a service tier or account category. Assign tiers to customers to filter and prioritize their requests. Names identify the tiers, while position controls their display order. */ export interface CustomerTier { readonly archivedAt: string | null; readonly color: string; readonly createdAt: string; readonly description: string | null; readonly displayName: string; readonly id: string; readonly name: string; readonly position: number; readonly updatedAt: string; } /** A page of results. Read `nodes` for the resources, or `edges` if you also need a cursor for each result. Use `pageInfo` to fetch further pages; a connection may contain fewer results than the requested page size. */ export interface CustomerTierConnection { readonly edges: ReadonlyArray; readonly nodes: ReadonlyArray; readonly pageInfo: PageInfo; } /** A result and its pagination cursor. */ export interface CustomerTierEdge { readonly cursor: string; readonly node: CustomerTier; } /** Return type for customer tier mutations. */ export interface CustomerTierPayload { readonly lastSyncId: number; readonly success: boolean; readonly tier: CustomerTier; } /** A scheduled period of work for a team. Issues can belong to one cycle at a time, and unfinished work can move into the next cycle when the current one closes. Use the history arrays to track scope and completion over time, and progress for the cycle's current progress. */ export interface Cycle { readonly archivedAt: string | null; readonly autoArchivedAt: string | null; readonly completedAt: string | null; readonly completedIssueCountHistory: ReadonlyArray; readonly completedScopeHistory: ReadonlyArray; readonly createdAt: string; readonly description: string | null; readonly endsAt: string; readonly id: string; readonly inheritedFrom: Cycle | null; readonly inProgressScopeHistory: ReadonlyArray; readonly isActive: boolean; readonly isFuture: boolean; readonly isNext: boolean; readonly isPast: boolean; readonly isPrevious: boolean; readonly issueCountHistory: ReadonlyArray; readonly issues: ReadonlyArray; readonly name: string | null; readonly number: number; readonly progress: number; readonly scopeHistory: ReadonlyArray; readonly startsAt: string; readonly team: Team; readonly uncompletedIssuesUponClose: ReadonlyArray; readonly updatedAt: string; } /** The result of archiving or restoring a resource. */ export interface CycleArchivePayload { readonly entity: Cycle | null; readonly lastSyncId: number; readonly success: boolean; } /** A page of results. Read `nodes` for the resources, or `edges` if you also need a cursor for each result. Use `pageInfo` to fetch further pages; a connection may contain fewer results than the requested page size. */ export interface CycleConnection { readonly edges: ReadonlyArray; readonly nodes: ReadonlyArray; readonly pageInfo: PageInfo; } /** A result and its pagination cursor. */ export interface CycleEdge { readonly cursor: string; readonly node: Cycle; } /** A notification subscription scoped to a specific cycle. The subscriber receives notifications for events related to issues in this cycle. */ export interface CycleNotificationSubscription { readonly active: boolean; readonly archivedAt: string | null; readonly contextViewType: | "activeIssues" | "activeCycle" | "upcomingCycle" | "backlog" | "triage" | null; readonly createdAt: string; readonly customer: Customer | null; readonly customView: CustomView | null; readonly cycle: Cycle; readonly id: string; readonly includeSubInitiativeUpdates: boolean; readonly initiative: Initiative | null; readonly label: IssueLabel | null; readonly notificationSubscriptionTypes: ReadonlyArray; readonly project: Project | null; readonly subscriber: User; readonly team: Team | null; readonly updatedAt: string; readonly user: User | null; readonly userContextViewType: "assigned" | null; } /** The payload returned by cycle mutations. */ export interface CyclePayload { readonly cycle: Cycle | null; readonly lastSyncId: number; readonly success: boolean; } /** The result of a delete mutation. The mutation determines whether the resource is deleted immediately or scheduled for deletion. */ export interface DeletePayload { readonly entityId: string; readonly lastSyncId: number; readonly success: boolean; } /** Registry metadata for one dependency package version. */ export interface DependencyPackageMetadataResult { readonly license: string | null; readonly name: string; readonly publishedAt: string | null; readonly version: string; readonly weeklyDownloads: number | null; } /** A document for longer-form context, such as a project brief or an issue's supporting notes. Its metadata identifies the owner and containing resource, while content returns the body as Markdown. Access depends on both its location and any document sharing restrictions. */ export interface Document { readonly archivedAt: string | null; readonly color: string | null; readonly comments: ReadonlyArray; readonly content: string | null; readonly createdAt: string; readonly creator: User | null; readonly documentContentId: string | null; readonly hiddenAt: string | null; readonly icon: string | null; readonly id: string; readonly initiative: Initiative | null; readonly issue: Issue | null; readonly lastAppliedTemplate: Template | null; readonly owner: User | null; readonly project: Project | null; readonly release: Release | null; readonly slugId: string; readonly sortOrder: number; readonly subscribers: ReadonlyArray; readonly title: string; readonly trashed: boolean | null; readonly updatedAt: string; readonly updatedBy: User | null; readonly url: string; readonly workspaceAccess: "edit" | "comment" | "view" | null; } /** The result of archiving or restoring a resource. */ export interface DocumentArchivePayload { readonly entity: Document | null; readonly lastSyncId: number; readonly success: boolean; } /** A page of results. Read `nodes` for the resources, or `edges` if you also need a cursor for each result. Use `pageInfo` to fetch further pages; a connection may contain fewer results than the requested page size. */ export interface DocumentConnection { readonly edges: ReadonlyArray; readonly nodes: ReadonlyArray; readonly pageInfo: PageInfo; } /** The rich-text content of a resource, such as an issue description or document body, stored separately from that resource's metadata. Read content for Markdown that your integration can display or process. contentState is the serialized collaborative-editing state and is not Markdown. */ export interface DocumentContent { readonly aiPromptRules: AiPromptRules | null; readonly archivedAt: string | null; readonly content: string | null; readonly contentState: string | null; readonly createdAt: string; readonly document: Document | null; readonly id: string; readonly initiative: Initiative | null; readonly issue: Issue | null; readonly project: Project | null; readonly projectMilestone: ProjectMilestone | null; readonly restoredAt: string | null; readonly updatedAt: string; readonly welcomeMessage: WelcomeMessage | null; } /** A user's unpublished changes to a DocumentContent record. Each user can have one active draft for the same content, and the live body stays unchanged until the draft is applied. Use documentContentId to associate the draft with the resource being edited. */ export interface DocumentContentDraft { readonly archivedAt: string | null; readonly contentState: string; readonly createdAt: string; readonly documentContent: DocumentContent; readonly documentContentId: string; readonly id: string; readonly updatedAt: string; readonly user: User; readonly userId: string; } /** A saved version of rich-text content, with its capture time and contributors. */ export interface DocumentContentHistory { readonly actorIds: ReadonlyArray; readonly archivedAt: string | null; readonly contentDataSnapshotAt: string; readonly createdAt: string; readonly documentContent: DocumentContent; readonly id: string; readonly updatedAt: string; } /** Saved-version metadata for one DocumentContent record, ordered newest first. An empty history means no accessible saved versions were found. */ export interface DocumentContentHistoryPayload { readonly history: ReadonlyArray; readonly success: boolean; } /** Metadata for a saved version of rich-text content. The capture time identifies the content state, while actorIds identifies users whose edits contributed to it. This public type does not include the historical body. */ export interface DocumentContentHistoryType { readonly actorIds: ReadonlyArray | null; readonly contentDataSnapshotAt: string; readonly createdAt: string; readonly documentContentId: string; readonly id: string; } /** Unpublished changes to rich-text content contributed by automations. The live body stays unchanged until the revision is applied. The base and revision states let a compatible editor compare the proposal with the live content it was based on. */ export interface DocumentContentRevision { readonly archivedAt: string | null; readonly baseContentState: string; readonly contentHash: string | null; readonly contentState: string; readonly contributorWorkflowDefinitionIds: ReadonlyArray; readonly createdAt: string; readonly documentContent: DocumentContent; readonly documentContentId: string; readonly id: string; readonly summary: string | null; readonly summaryContentHash: string | null; readonly updatedAt: string; } /** A result and its pagination cursor. */ export interface DocumentEdge { readonly cursor: string; readonly node: Document; } /** A notification related to a document, such as comments, mentions, content changes, or document lifecycle events. */ export interface DocumentNotification { readonly actor: User | null; readonly archivedAt: string | null; readonly botActor: ActorBot | null; readonly category: | "assignments" | "statusChanges" | "commentsAndReplies" | "mentions" | "reactions" | "subscriptions" | "documentChanges" | "postsAndUpdates" | "reminders" | "reviews" | "loops" | "appsAndIntegrations" | "triage" | "customers" | "feed" | "billing" | "system"; readonly commentId: string | null; readonly createdAt: string; readonly documentId: string; readonly emailedAt: string | null; readonly externalUserActor: ExternalUser | null; readonly id: string; readonly parentCommentId: string | null; readonly reactionEmoji: string | null; readonly readAt: string | null; readonly snoozedUntilAt: string | null; readonly type: string; readonly unsnoozedAt: string | null; readonly updatedAt: string; readonly user: User; } /** The result of a document mutation. */ export interface DocumentPayload { readonly document: Document; readonly lastSyncId: number; readonly success: boolean; } /** A page of document search results. Read nodes for the matched documents and pageInfo to continue paging. totalCount is the size of the limited candidate set, not an exact workspace-wide match count. */ export interface DocumentSearchPayload { readonly archivePayload: ArchiveResponse; readonly edges: ReadonlyArray; readonly nodes: ReadonlyArray; readonly pageInfo: PageInfo; readonly totalCount: number; } /** A document returned by search, with the same fields as Document plus search metadata. The meaning of metadata.score depends on the query's ordering. */ export interface DocumentSearchResult { readonly archivedAt: string | null; readonly color: string | null; readonly comments: ReadonlyArray; readonly content: string | null; readonly createdAt: string; readonly creator: User | null; readonly documentContentId: string | null; readonly hiddenAt: string | null; readonly icon: string | null; readonly id: string; readonly initiative: Initiative | null; readonly issue: Issue | null; readonly lastAppliedTemplate: Template | null; readonly metadata: unknown; readonly owner: User | null; readonly project: Project | null; readonly release: Release | null; readonly slugId: string; readonly sortOrder: number; readonly subscribers: ReadonlyArray; readonly title: string; readonly trashed: boolean | null; readonly updatedAt: string; readonly updatedBy: User | null; readonly url: string; readonly workspaceAccess: "edit" | "comment" | "view" | null; } /** A result and its pagination cursor. */ export interface DocumentSearchResultEdge { readonly cursor: string; readonly node: DocumentSearchResult; } /** Unpublished content owned by a user and linked to one parent. Drafts are private to their owner and are removed when the corresponding content is published. */ export interface Draft { readonly archivedAt: string | null; readonly bodyData: unknown; readonly createdAt: string; readonly customerNeed: CustomerNeed | null; readonly data: unknown | null; readonly generationMetadata: DraftGenerationMetadata | null; readonly id: string; readonly initiative: Initiative | null; readonly initiativeUpdate: InitiativeUpdate | null; readonly isAutogenerated: boolean; readonly issue: Issue | null; readonly parentComment: Comment | null; readonly project: Project | null; readonly projectUpdate: ProjectUpdate | null; readonly team: Team | null; readonly updatedAt: string; readonly updateHealth: "onTrack" | "atRisk" | "offTrack" | null; readonly user: User; } /** A page of results. Read `nodes` for the resources, or `edges` if you also need a cursor for each result. Use `pageInfo` to fetch further pages; a connection may contain fewer results than the requested page size. */ export interface DraftConnection { readonly edges: ReadonlyArray; readonly nodes: ReadonlyArray; readonly pageInfo: PageInfo; } /** A result and its pagination cursor. */ export interface DraftEdge { readonly cursor: string; readonly node: Draft; } /** Metadata about AI-generated draft content. */ export interface DraftGenerationMetadata { readonly generatedAt: string; readonly generatedContent: unknown; readonly generationCount: number; } /** An address that routes incoming email into Linear issues. Team addresses use a team directly; template addresses use an issue template; Asks addresses add a request workflow with replies and optional automatic messages. Use emailAddress when configuring email forwarding or sending requests. address is only the routing token, and forwardingEmailAddress records the customer-facing address rather than configuring your mail provider. */ export interface EmailIntakeAddress { readonly address: string; readonly archivedAt: string | null; readonly createdAt: string; readonly creator: User | null; readonly customerRequestsEnabled: boolean; readonly emailAddress: string; readonly enabled: boolean; readonly forwardingEmailAddress: string | null; readonly id: string; readonly issueCanceledAutoReply: string | null; readonly issueCanceledAutoReplyEnabled: boolean; readonly issueCompletedAutoReply: string | null; readonly issueCompletedAutoReplyEnabled: boolean; readonly issueCreatedAutoReply: string | null; readonly issueCreatedAutoReplyEnabled: boolean; readonly lastUsedAt: string | null; readonly organization: Organization; readonly reopenOnReply: boolean; readonly repliesEnabled: boolean; readonly senderName: string | null; readonly sesDomainIdentity: SesDomainIdentity | null; readonly team: Team | null; readonly template: Template | null; readonly type: "team" | "template" | "asks" | "asksWeb"; readonly updatedAt: string; readonly useUserNamesInReplies: boolean; } /** A page of results. Read `nodes` for the resources, or `edges` if you also need a cursor for each result. Use `pageInfo` to fetch further pages; a connection may contain fewer results than the requested page size. */ export interface EmailIntakeAddressConnection { readonly edges: ReadonlyArray; readonly nodes: ReadonlyArray; readonly pageInfo: PageInfo; } /** A result and its pagination cursor. */ export interface EmailIntakeAddressEdge { readonly cursor: string; readonly node: EmailIntakeAddress; } /** The result of an email intake address mutation. */ export interface EmailIntakeAddressPayload { readonly emailIntakeAddress: EmailIntakeAddress; readonly lastSyncId: number; readonly success: boolean; } /** The result of requesting custom sending domain verification. */ export interface EmailIntakeAddressRefreshSesDomainStatusPayload { readonly success: boolean; } /** The result of an email unsubscribe mutation. */ export interface EmailUnsubscribePayload { readonly success: boolean; } /** Acknowledges an email sign-in challenge. The authentication token is sent by email and is not returned in this payload. A successful request does not by itself sign the account in. */ export interface EmailUserAccountAuthChallengeResponse { readonly authType: string; readonly success: boolean; } /** A custom image emoji available throughout a workspace. Use its name in reactions and its url to display the image. Standard Unicode emoji do not have Emoji records. */ export interface Emoji { readonly archivedAt: string | null; readonly createdAt: string; readonly creator: User | null; readonly id: string; readonly name: string; readonly organization: Organization; readonly source: string; readonly updatedAt: string; readonly url: string; } /** A page of results. Read `nodes` for the resources, or `edges` if you also need a cursor for each result. Use `pageInfo` to fetch further pages; a connection may contain fewer results than the requested page size. */ export interface EmojiConnection { readonly edges: ReadonlyArray; readonly nodes: ReadonlyArray; readonly pageInfo: PageInfo; } /** A result and its pagination cursor. */ export interface EmojiEdge { readonly cursor: string; readonly node: Emoji; } /** The result of a custom emoji mutation. */ export interface EmojiPayload { readonly emoji: Emoji; readonly lastSyncId: number; readonly success: boolean; } /** A workspace resource with a stable ID and lifecycle timestamps. An archived resource still exists, but is normally omitted from lists unless `includeArchived` is true. */ export interface Entity { readonly archivedAt: string | null; readonly createdAt: string; readonly id: string; readonly updatedAt: string; } /** A resource link that points from a Linear entity to content hosted elsewhere, such as a design file, dashboard, or external document. label is the text shown in Linear and url is the destination. Each link belongs to one parent, and sortOrder positions it alongside that parent's other links and documents. Removing the link does not delete the external resource. */ export interface EntityExternalLink { readonly archivedAt: string | null; readonly createdAt: string; readonly creator: User | null; readonly id: string; readonly initiative: Initiative | null; readonly label: string; readonly project: Project | null; readonly sortOrder: number; readonly updatedAt: string; readonly url: string; } /** A page of results. Read `nodes` for the resources, or `edges` if you also need a cursor for each result. Use `pageInfo` to fetch further pages; a connection may contain fewer results than the requested page size. */ export interface EntityExternalLinkConnection { readonly edges: ReadonlyArray; readonly nodes: ReadonlyArray; readonly pageInfo: PageInfo; } /** A result and its pagination cursor. */ export interface EntityExternalLinkEdge { readonly cursor: string; readonly node: EntityExternalLink; } /** The result of an entity external link mutation. */ export interface EntityExternalLinkPayload { readonly entityExternalLink: EntityExternalLink; readonly lastSyncId: number; readonly success: boolean; } /** Result of accepting an anonymous analytics event; success does not confirm delivery. */ export interface EventTrackingPayload { readonly success: boolean; } /** A reference from a Linear entity to a Jira issue or epic, GitHub issue, or Slack message. id belongs to the external service; metadata provides the identifiers or links needed to interpret it. This is a reference, not a full copy of the external record or a guarantee that it is still accessible. */ export interface ExternalEntityInfo { readonly id: string; readonly metadata: | ExternalEntityInfoGithubMetadata | ExternalEntityInfoJiraMetadata | ExternalEntitySlackMetadata | null; readonly service: "jira" | "github" | "slack"; } /** Repository and issue number for a linked GitHub issue. */ export interface ExternalEntityInfoGithubMetadata { readonly number: number | null; readonly owner: string | null; readonly repo: string | null; } /** Identifiers for a linked Jira issue or epic. */ export interface ExternalEntityInfoJiraMetadata { readonly issueKey: string | null; readonly issueTypeId: string | null; readonly projectId: string | null; } /** Channel and message details for a linked Slack message. */ export interface ExternalEntitySlackMetadata { readonly channelId: string | null; readonly channelName: string | null; readonly isFromSlack: boolean; readonly messageUrl: string | null; } /** A person or bot identified through an external service, such as Slack, Jira, or GitHub. Scoped to a workspace and used to attribute issues, comments, and reactions received through integrations. */ export interface ExternalUser { readonly archivedAt: string | null; readonly avatarUrl: string | null; readonly createdAt: string; readonly displayName: string; readonly email: string | null; readonly id: string; readonly lastSeen: string | null; readonly name: string; readonly organization: Organization; readonly updatedAt: string; } /** A page of results. Read `nodes` for the resources, or `edges` if you also need a cursor for each result. Use `pageInfo` to fetch further pages; a connection may contain fewer results than the requested page size. */ export interface ExternalUserConnection { readonly edges: ReadonlyArray; readonly nodes: ReadonlyArray; readonly pageInfo: PageInfo; } /** A result and its pagination cursor. */ export interface ExternalUserEdge { readonly cursor: string; readonly node: ExternalUser; } /** A facet representing a join between entities. Facets connect a custom view to an owning entity such as a project, initiative, team page, workspace page, or user feed. They control the order of views within their parent via the sortOrder field. Exactly one source entity and one target entity must be set. */ export interface Facet { readonly archivedAt: string | null; readonly createdAt: string; readonly id: string; readonly sortOrder: number; readonly sourceFeedUser: User | null; readonly sourceInitiative: Initiative | null; readonly sourceOrganization: Organization | null; readonly sourcePage: "projects" | "initiatives" | "teamIssues" | "feed" | null; readonly sourceProject: Project | null; readonly sourceTeam: Team | null; readonly targetCustomView: CustomView | null; readonly updatedAt: string; } /** A personal sidebar bookmark or folder. The type identifies the target, and the corresponding relation contains the bookmarked entity. Folders organize favorites without changing the underlying entities or other users' sidebars. */ export interface Favorite { readonly archivedAt: string | null; readonly children: ReadonlyArray; readonly createdAt: string; readonly customer: Customer | null; readonly customView: CustomView | null; readonly cycle: Cycle | null; readonly document: Document | null; readonly folderName: string | null; readonly id: string; readonly initiative: Initiative | null; readonly initiativeTab: "overview" | "projects" | "updates" | null; readonly issue: Issue | null; readonly label: IssueLabel | null; readonly liveFolderDefinition: unknown | null; readonly liveFolderPreset: string | null; readonly owner: User; readonly parent: Favorite | null; readonly pipelineTab: "releaseNotes" | "releases" | null; readonly predefinedViewTeam: Team | null; readonly predefinedViewType: string | null; readonly project: Project | null; readonly projectLabel: ProjectLabel | null; readonly projectTab: "customers" | "documents" | "issues" | "loops" | "updates" | null; readonly projectTeam: Team | null; readonly release: Release | null; readonly releaseNote: ReleaseNote | null; readonly releasePipeline: ReleasePipeline | null; readonly sortOrder: number; readonly team: Team | null; readonly type: string; readonly updatedAt: string; readonly url: string | null; readonly user: User | null; readonly workflowDefinition: WorkflowDefinition | null; } /** A page of results. Read `nodes` for the resources, or `edges` if you also need a cursor for each result. Use `pageInfo` to fetch further pages; a connection may contain fewer results than the requested page size. */ export interface FavoriteConnection { readonly edges: ReadonlyArray; readonly nodes: ReadonlyArray; readonly pageInfo: PageInfo; } /** A result and its pagination cursor. */ export interface FavoriteEdge { readonly cursor: string; readonly node: Favorite; } /** Return type for favorite mutations. */ export interface FavoritePayload { readonly favorite: Favorite; readonly lastSyncId: number; readonly success: boolean; } export interface FileUploadDeletePayload { readonly success: boolean; } /** The result of a Front attachment mutation. */ export interface FrontAttachmentPayload { readonly attachment: Attachment; readonly lastSyncId: number; readonly success: boolean; } /** A team rule that moves linked issues to an issue status after a Git event. A rule for a matching target branch overrides the team's default rule for that event. A branch-specific rule can have a null status to explicitly take no action. */ export interface GitAutomationState { readonly archivedAt: string | null; readonly branchPattern: string | null; readonly createdAt: string; readonly event: "draft" | "start" | "review" | "mergeable" | "merge"; readonly id: string; readonly state: WorkflowState | null; readonly targetBranch: GitAutomationTargetBranch | null; readonly team: Team; readonly updatedAt: string; } /** A page of results. Read `nodes` for the resources, or `edges` if you also need a cursor for each result. Use `pageInfo` to fetch further pages; a connection may contain fewer results than the requested page size. */ export interface GitAutomationStateConnection { readonly edges: ReadonlyArray; readonly nodes: ReadonlyArray; readonly pageInfo: PageInfo; } /** A result and its pagination cursor. */ export interface GitAutomationStateEdge { readonly cursor: string; readonly node: GitAutomationState; } /** The result of a git automation state mutation. */ export interface GitAutomationStatePayload { readonly gitAutomationState: GitAutomationState; readonly lastSyncId: number; readonly success: boolean; } /** A team's target-branch rule for Git automation. Exact names or regular expressions select pull request target branches; matching rules override defaults for the same event. */ export interface GitAutomationTargetBranch { readonly archivedAt: string | null; readonly automationStates: ReadonlyArray; readonly branchPattern: string; readonly createdAt: string; readonly id: string; readonly isRegex: boolean; readonly team: Team; readonly updatedAt: string; } /** The result of a git automation target branch mutation. */ export interface GitAutomationTargetBranchPayload { readonly lastSyncId: number; readonly success: boolean; readonly targetBranch: GitAutomationTargetBranch; } /** GitHub commit connection and its webhook verification secret. */ export interface GitHubCommitIntegrationPayload { readonly gitHub: GitHubIntegrationConnectDetails | null; readonly integration: Integration | null; readonly lastSyncId: number; readonly success: boolean; readonly webhookSecret: string; } /** Whether the GitHub Enterprise Server app has connected during setup. */ export interface GitHubEnterpriseServerInstallVerificationPayload { readonly success: boolean; } /** Connection record and URLs needed to finish GitHub Enterprise Server setup. */ export interface GitHubEnterpriseServerPayload { readonly gitHub: GitHubIntegrationConnectDetails | null; readonly installUrl: string; readonly integration: Integration | null; readonly lastSyncId: number; readonly setupUrl: string; readonly success: boolean; readonly webhookSecret: string; } /** GitHub-specific details that some integration mutations may return alongside the standard payload. Populated only by GitHub-related mutations. */ export interface GitHubIntegrationConnectDetails { readonly lostRepositoryNames: ReadonlyArray | null; } /** Result of connecting GitLab. On success, use webhookSecret to configure the GitLab webhook. If success is false, the integration was not created and error fields explain the failed token or connectivity check; webhookSecret is then an empty string. */ export interface GitLabIntegrationCreatePayload { readonly error: string | null; readonly errorRequest: string | null; readonly errorResponseBody: string | null; readonly errorResponseHeaders: string | null; readonly gitHub: GitHubIntegrationConnectDetails | null; readonly integration: Integration | null; readonly lastSyncId: number; readonly success: boolean; readonly webhookSecret: string; } /** GitLab connectivity check result, with diagnostic details when the check fails. */ export interface GitLabTestConnectionPayload { readonly error: string | null; readonly errorRequest: string | null; readonly errorResponseBody: string | null; readonly errorResponseHeaders: string | null; readonly gitHub: GitHubIntegrationConnectDetails | null; readonly integration: Integration | null; readonly lastSyncId: number; readonly success: boolean; } /** A GitHub team discovered through Linear's GitHub integration. GitHub teams can be requested as PR reviewers and mentioned in comments. Tracked separately from external users but shaped compatibly so the UI can render teams alongside users in assignment, review, and mention surfaces. */ export interface GithubTeam { readonly archivedAt: string | null; readonly avatarUrl: string | null; readonly createdAt: string; readonly description: string | null; readonly id: string; readonly lastSeen: string | null; readonly name: string; readonly organization: Organization; readonly slug: string; readonly updatedAt: string; } /** A SAML/SSO or web forms identity provider configuration for a workspace. Identity providers enable single sign-on authentication via SAML 2.0 and can optionally support SCIM for automated user provisioning and group-based role mapping. Each workspace can have a default general-purpose identity provider and additional web forms identity providers for Asks web authentication. */ export interface IdentityProvider { readonly allowNameChange: boolean; readonly archivedAt: string | null; readonly createdAt: string; readonly defaultMigrated: boolean; readonly id: string; readonly issuerEntityId: string | null; readonly priority: number | null; readonly samlEnabled: boolean; readonly scimEnabled: boolean; readonly spEntityId: string | null; readonly ssoBinding: string | null; readonly ssoEndpoint: string | null; readonly ssoSignAlgo: string | null; readonly ssoSigningCert: string | null; readonly ssoVerifiedAt: string | null; readonly type: "general" | "webForms"; readonly updatedAt: string; } /** The result of copying an external image into Linear storage. */ export interface ImageUploadFromUrlPayload { readonly lastSyncId: number; readonly success: boolean; readonly url: string | null; } /** Return type for inbox notification updates. */ export interface InboxNotificationUpdatePayload { readonly lastSyncId: number; readonly notification: Notification; readonly success: boolean; readonly updatedNotifications: ReadonlyArray; } /** A strategic goal supported by projects and, optionally, sub-initiatives. An initiative has its own owner, lifecycle status, target date, and written updates. Linking a project to an initiative does not change the project's teams or issue workflow. */ export interface Initiative { readonly archivedAt: string | null; readonly color: string | null; readonly completedAt: string | null; readonly content: string | null; readonly createdAt: string; readonly creator: User | null; readonly description: string | null; readonly documentContent: DocumentContent | null; readonly documents: ReadonlyArray; readonly frequencyResolution: "daily" | "weekly"; readonly health: "onTrack" | "atRisk" | "offTrack" | null; readonly healthUpdatedAt: string | null; readonly history: ReadonlyArray; readonly icon: string | null; readonly id: string; readonly initiativeUpdates: ReadonlyArray; readonly integrationsSettings: IntegrationsSettings | null; readonly labelIds: ReadonlyArray; readonly labels: ReadonlyArray; readonly lastUpdate: InitiativeUpdate | null; readonly leadTeam: Team | null; readonly links: ReadonlyArray; readonly name: string; readonly organization: Organization; readonly owner: User | null; readonly parentInitiative: Initiative | null; readonly priority: number; readonly prioritySortOrder: number; readonly projects: ReadonlyArray; readonly slugId: string; readonly sortOrder: number; readonly startedAt: string | null; readonly status: "Proposed" | "Planned" | "Active" | "Completed" | "Canceled"; readonly subInitiatives: ReadonlyArray; readonly targetDate: string | null; readonly targetDateResolution: "month" | "quarter" | "halfYear" | "year" | null; readonly trashed: boolean | null; readonly updatedAt: string; readonly updateReminderFrequency: number | null; readonly updateReminderFrequencyInWeeks: number | null; readonly updateRemindersDay: | "Sunday" | "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday" | null; readonly updateRemindersHour: number | null; readonly url: string; readonly visibility: "public" | "restricted" | "private"; } /** The result of archiving or restoring a resource. */ export interface InitiativeArchivePayload { readonly entity: Initiative | null; readonly lastSyncId: number; readonly success: boolean; } /** A page of results. Read `nodes` for the resources, or `edges` if you also need a cursor for each result. Use `pageInfo` to fetch further pages; a connection may contain fewer results than the requested page size. */ export interface InitiativeConnection { readonly edges: ReadonlyArray; readonly nodes: ReadonlyArray; readonly pageInfo: PageInfo; } /** A result and its pagination cursor. */ export interface InitiativeEdge { readonly cursor: string; readonly node: Initiative; } /** The result of an AI-generated initiative filter suggestion based on a text prompt. */ export interface InitiativeFilterSuggestionPayload { readonly filter: unknown | null; readonly logId: string | null; } /** A group of recorded changes to an initiative, including its properties and hierarchy. The entries JSON contains individual events ordered by event time. A record can gain entries over time, so use the entry timestamps when interpreting individual changes. */ export interface InitiativeHistory { readonly archivedAt: string | null; readonly createdAt: string; readonly entries: unknown; readonly id: string; readonly initiative: Initiative; readonly updatedAt: string; } /** A page of results. Read `nodes` for the resources, or `edges` if you also need a cursor for each result. Use `pageInfo` to fetch further pages; a connection may contain fewer results than the requested page size. */ export interface InitiativeHistoryConnection { readonly edges: ReadonlyArray; readonly nodes: ReadonlyArray; readonly pageInfo: PageInfo; } /** A result and its pagination cursor. */ export interface InitiativeHistoryEdge { readonly cursor: string; readonly node: InitiativeHistory; } /** A workspace label for categorizing initiatives. Labels can belong to groups; the group's selection mode controls how many child labels can be applied together. */ export interface InitiativeLabel { readonly archivedAt: string | null; readonly children: ReadonlyArray; readonly color: string; readonly createdAt: string; readonly creator: User | null; readonly description: string | null; readonly groupType: "singleSelect" | "multiSelect" | null; readonly id: string; readonly initiatives: ReadonlyArray; readonly isGroup: boolean; readonly lastAppliedAt: string | null; readonly name: string; readonly organization: Organization; readonly parent: InitiativeLabel | null; readonly retiredBy: User | null; readonly updatedAt: string; } /** A page of results. Read `nodes` for the resources, or `edges` if you also need a cursor for each result. Use `pageInfo` to fetch further pages; a connection may contain fewer results than the requested page size. */ export interface InitiativeLabelConnection { readonly edges: ReadonlyArray; readonly nodes: ReadonlyArray; readonly pageInfo: PageInfo; } /** A result and its pagination cursor. */ export interface InitiativeLabelEdge { readonly cursor: string; readonly node: InitiativeLabel; } /** The result of an initiative label mutation. */ export interface InitiativeLabelPayload { readonly initiativeLabel: InitiativeLabel; readonly lastSyncId: number; readonly success: boolean; } /** A notification related to an initiative, such as being added as owner, initiative updates, comments, or mentions. */ export interface InitiativeNotification { readonly actor: User | null; readonly archivedAt: string | null; readonly botActor: ActorBot | null; readonly category: | "assignments" | "statusChanges" | "commentsAndReplies" | "mentions" | "reactions" | "subscriptions" | "documentChanges" | "postsAndUpdates" | "reminders" | "reviews" | "loops" | "appsAndIntegrations" | "triage" | "customers" | "feed" | "billing" | "system"; readonly comment: Comment | null; readonly commentId: string | null; readonly createdAt: string; readonly document: Document | null; readonly emailedAt: string | null; readonly externalUserActor: ExternalUser | null; readonly id: string; readonly initiative: Initiative | null; readonly initiativeId: string; readonly initiativeUpdate: InitiativeUpdate | null; readonly initiativeUpdateId: string | null; readonly parentComment: Comment | null; readonly parentCommentId: string | null; readonly reactionEmoji: string | null; readonly readAt: string | null; readonly snoozedUntilAt: string | null; readonly type: string; readonly unsnoozedAt: string | null; readonly updatedAt: string; readonly user: User; } /** A notification subscription scoped to a specific initiative. The subscriber receives notifications for events related to this initiative, such as updates, comments, and ownership changes. */ export interface InitiativeNotificationSubscription { readonly active: boolean; readonly archivedAt: string | null; readonly contextViewType: | "activeIssues" | "activeCycle" | "upcomingCycle" | "backlog" | "triage" | null; readonly createdAt: string; readonly customer: Customer | null; readonly customView: CustomView | null; readonly cycle: Cycle | null; readonly id: string; readonly includeSubInitiativeUpdates: boolean; readonly initiative: Initiative; readonly label: IssueLabel | null; readonly notificationSubscriptionTypes: ReadonlyArray; readonly project: Project | null; readonly subscriber: User; readonly team: Team | null; readonly updatedAt: string; readonly user: User | null; readonly userContextViewType: "assigned" | null; } /** The payload returned by the initiative mutations. */ export interface InitiativePayload { readonly initiative: Initiative; readonly lastSyncId: number; readonly success: boolean; } /** A parent-child relation between two initiatives, forming a hierarchy. The initiative field is the parent and relatedInitiative is the child. Cycles and excessive nesting depth are prevented. */ export interface InitiativeRelation { readonly archivedAt: string | null; readonly createdAt: string; readonly id: string; readonly initiative: Initiative; readonly relatedInitiative: Initiative; readonly sortOrder: number; readonly updatedAt: string; readonly user: User | null; } /** A page of results. Read `nodes` for the resources, or `edges` if you also need a cursor for each result. Use `pageInfo` to fetch further pages; a connection may contain fewer results than the requested page size. */ export interface InitiativeRelationConnection { readonly edges: ReadonlyArray; readonly nodes: ReadonlyArray; readonly pageInfo: PageInfo; } /** A result and its pagination cursor. */ export interface InitiativeRelationEdge { readonly cursor: string; readonly node: InitiativeRelation; } /** The result of an initiative relation mutation. */ export interface InitiativeRelationPayload { readonly initiativeRelation: InitiativeRelation; readonly lastSyncId: number; readonly success: boolean; } /** The association that includes a project in an initiative and stores its manual ordering there. A project can support multiple initiatives, but cannot be linked to both an initiative and one of its ancestors or descendants. */ export interface InitiativeToProject { readonly archivedAt: string | null; readonly createdAt: string; readonly id: string; readonly initiative: Initiative; readonly project: Project; readonly sortOrder: string; readonly updatedAt: string; } /** A page of results. Read `nodes` for the resources, or `edges` if you also need a cursor for each result. Use `pageInfo` to fetch further pages; a connection may contain fewer results than the requested page size. */ export interface InitiativeToProjectConnection { readonly edges: ReadonlyArray; readonly nodes: ReadonlyArray; readonly pageInfo: PageInfo; } /** A result and its pagination cursor. */ export interface InitiativeToProjectEdge { readonly cursor: string; readonly node: InitiativeToProject; } /** The result of an initiative-to-project mutation. */ export interface InitiativeToProjectPayload { readonly initiativeToProject: InitiativeToProject; readonly lastSyncId: number; readonly success: boolean; } /** A published status report for an initiative. It combines a written message and reported health with a snapshot of the initiative's projects, so readers can see what changed since the previous update. */ export interface InitiativeUpdate { readonly archivedAt: string | null; readonly body: string; readonly commentCount: number; readonly comments: ReadonlyArray; readonly createdAt: string; readonly diff: unknown | null; readonly diffMarkdown: string | null; readonly editedAt: string | null; readonly health: "onTrack" | "atRisk" | "offTrack"; readonly id: string; readonly initiative: Initiative; readonly isDiffHidden: boolean; readonly isStale: boolean; readonly reactionData: unknown; readonly reactions: ReadonlyArray; readonly slugId: string; readonly updatedAt: string; readonly url: string; readonly user: User; } /** The result of archiving or restoring a resource. */ export interface InitiativeUpdateArchivePayload { readonly entity: InitiativeUpdate | null; readonly lastSyncId: number; readonly success: boolean; } /** A page of results. Read `nodes` for the resources, or `edges` if you also need a cursor for each result. Use `pageInfo` to fetch further pages; a connection may contain fewer results than the requested page size. */ export interface InitiativeUpdateConnection { readonly edges: ReadonlyArray; readonly nodes: ReadonlyArray; readonly pageInfo: PageInfo; } /** A result and its pagination cursor. */ export interface InitiativeUpdateEdge { readonly cursor: string; readonly node: InitiativeUpdate; } /** The result of an initiative update mutation. */ export interface InitiativeUpdatePayload { readonly initiativeUpdate: InitiativeUpdate; readonly lastSyncId: number; readonly success: boolean; } /** The result of an initiative update reminder mutation. */ export interface InitiativeUpdateReminderPayload { readonly lastSyncId: number; readonly success: boolean; } /** A configured connection between Linear and an external service. The service value distinguishes workspace connections, personal account connections, and destinations such as Slack notification channels. Connections can belong to a workspace, user, team, project, initiative, or view; the same provider can therefore have several integration records with different purposes. */ export interface Integration { readonly archivedAt: string | null; readonly createdAt: string; readonly creator: User; readonly id: string; readonly organization: Organization; readonly service: string; readonly team: Team | null; readonly updatedAt: string; } /** A page of results. Read `nodes` for the resources, or `edges` if you also need a cursor for each result. Use `pageInfo` to fetch further pages; a connection may contain fewer results than the requested page size. */ export interface IntegrationConnection { readonly edges: ReadonlyArray; readonly nodes: ReadonlyArray; readonly pageInfo: PageInfo; } /** A result and its pagination cursor. */ export interface IntegrationEdge { readonly cursor: string; readonly node: Integration; } /** Next step after removing GitHub code access. */ export interface IntegrationGithubRemoveCodeAccessPayload { readonly action: "Done" | "InstallBasicApp"; readonly lastSyncId: number; } /** Result of comparing requested scopes with the scopes stored for an integration. This does not contact the provider or test whether its token is still valid. */ export interface IntegrationHasScopesPayload { readonly hasAllScopes: boolean; readonly missingScopes: ReadonlyArray | null; } /** Result of an integration operation. Check success and any service-specific details before continuing setup. The integration can be absent on success, for example when the operation only disconnects a service or schedules work. */ export interface IntegrationPayload { readonly gitHub: GitHubIntegrationConnectDetails | null; readonly integration: Integration | null; readonly lastSyncId: number; readonly success: boolean; } /** The result of an integration request mutation. */ export interface IntegrationRequestPayload { readonly success: boolean; } /** Slack workspace name refreshed from Slack. */ export interface IntegrationSlackWorkspaceNamePayload { readonly name: string; readonly success: boolean; } /** A link that makes an existing issue template available through an integration. foreignEntityId can restrict the link to a provider resource such as a Slack channel. This record does not copy the template; removing the link leaves the template and integration in place. */ export interface IntegrationTemplate { readonly archivedAt: string | null; readonly createdAt: string; readonly foreignEntityId: string | null; readonly id: string; readonly integration: Integration; readonly template: Template; readonly updatedAt: string; } /** A page of results. Read `nodes` for the resources, or `edges` if you also need a cursor for each result. Use `pageInfo` to fetch further pages; a connection may contain fewer results than the requested page size. */ export interface IntegrationTemplateConnection { readonly edges: ReadonlyArray; readonly nodes: ReadonlyArray; readonly pageInfo: PageInfo; } /** A result and its pagination cursor. */ export interface IntegrationTemplateEdge { readonly cursor: string; readonly node: IntegrationTemplate; } /** The result of an integration template mutation. */ export interface IntegrationTemplatePayload { readonly integrationTemplate: IntegrationTemplate; readonly lastSyncId: number; readonly success: boolean; } /** Notification preferences for one team, project, initiative, or custom view. These settings decide which events are sent through that destination's Slack or Microsoft Teams connection; they do not establish the connection themselves. A team can also have separate preferences for a particular context view. */ export interface IntegrationsSettings { readonly archivedAt: string | null; readonly contextViewType: | "activeIssues" | "activeCycle" | "upcomingCycle" | "backlog" | "triage" | null; readonly createdAt: string; readonly id: string; readonly initiative: Initiative | null; readonly microsoftTeamsProjectUpdateCreated: boolean | null; readonly project: Project | null; readonly slackInitiativeCommentCreated: boolean | null; readonly slackInitiativeUpdateCreated: boolean | null; readonly slackIssueAddedToTriage: boolean | null; readonly slackIssueAddedToView: boolean | null; readonly slackIssueCreated: boolean | null; readonly slackIssueNewComment: boolean | null; readonly slackIssueSlaBreached: boolean | null; readonly slackIssueSlaHighRisk: boolean | null; readonly slackIssueStatusChangedAll: boolean | null; readonly slackIssueStatusChangedDone: boolean | null; readonly slackProjectCommentCreated: boolean | null; readonly slackProjectUpdateCreated: boolean | null; readonly slackProjectUpdateCreatedToTeam: boolean | null; readonly slackProjectUpdateCreatedToWorkspace: boolean | null; readonly team: Team | null; readonly updatedAt: string; } /** The created or updated integration notification preferences. */ export interface IntegrationsSettingsPayload { readonly integrationsSettings: IntegrationsSettings; readonly lastSyncId: number; readonly success: boolean; } /** An issue is a work item owned by a team, with a title and a status in that team's workflow. Use projects to group related work, cycles to plan when to work on it, and parent issues to organize sub-issues. The UUID stays the same when an issue moves between teams; its human-readable identifier changes. */ export interface Issue { readonly addedToCycleAt: string | null; readonly addedToProjectAt: string | null; readonly addedToTeamAt: string | null; readonly archivedAt: string | null; readonly asksExternalUserRequester: ExternalUser | null; readonly asksRequester: User | null; readonly assignee: User | null; readonly attachments: ReadonlyArray; readonly autoArchivedAt: string | null; readonly autoClosedAt: string | null; readonly boardOrder: number; readonly botActor: ActorBot | null; readonly branchName: string; readonly canceledAt: string | null; readonly children: ReadonlyArray; readonly comments: ReadonlyArray; readonly completedAt: string | null; readonly createdAt: string; readonly creator: User | null; readonly customerTicketCount: number; readonly cycle: Cycle | null; readonly delegate: User | null; readonly description: string | null; readonly documentContent: DocumentContent | null; readonly documents: ReadonlyArray; readonly dueDate: string | null; readonly estimate: number | null; readonly externalUserCreator: ExternalUser | null; readonly favorite: Favorite | null; readonly formerAttachments: ReadonlyArray; readonly formerNeeds: ReadonlyArray; readonly history: ReadonlyArray; readonly id: string; readonly identifier: string; readonly inheritsSharedAccess: boolean; readonly integrationSourceType: | "airbyte" | "claudeSecurity" | "datadog" | "discord" | "figma" | "figmaPlugin" | "front" | "github" | "gong" | "githubEnterpriseServer" | "githubCommit" | "githubImport" | "githubPersonal" | "githubCodeAccessPersonal" | "gitlab" | "gitlabPersonal" | "origin" | "googleCalendarPersonal" | "googleSheets" | "intercom" | "jira" | "jiraPersonal" | "launchDarkly" | "launchDarklyPersonal" | "loom" | "notion" | "opsgenie" | "pagerDuty" | "salesforce" | "slack" | "slackAsks" | "asksWeb" | "slackCustomViewNotifications" | "slackOrgProjectUpdatesPost" | "slackOrgInitiativeUpdatesPost" | "slackPersonal" | "slackPost" | "slackProjectPost" | "slackProjectUpdatesPost" | "slackInitiativePost" | "sentry" | "zendesk" | "email" | "mcpServerPersonal" | "mcpServer" | "microsoftTeams" | "microsoftPersonal" | "microsoftTeamsProjectPost" | null; readonly inverseRelations: ReadonlyArray; readonly labelIds: ReadonlyArray; readonly labels: ReadonlyArray; readonly lastAppliedTemplate: Template | null; readonly needs: ReadonlyArray; readonly number: number; readonly parent: Issue | null; readonly previousIdentifiers: ReadonlyArray; readonly priority: number; readonly priorityLabel: string; readonly prioritySortOrder: number; readonly project: Project | null; readonly projectMilestone: ProjectMilestone | null; readonly reactionData: unknown; readonly reactions: ReadonlyArray; readonly recurringIssueTemplate: Template | null; readonly relations: ReadonlyArray; readonly releases: ReadonlyArray; readonly sharedAccess: IssueSharedAccess; readonly slaBreachesAt: string | null; readonly slaHighRiskAt: string | null; readonly slaMediumRiskAt: string | null; readonly slaStartedAt: string | null; readonly slaType: string | null; readonly snoozedBy: User | null; readonly snoozedUntilAt: string | null; readonly sortOrder: number; readonly sourceComment: Comment | null; readonly startedAt: string | null; readonly startedTriageAt: string | null; readonly state: WorkflowState; readonly stateHistory: ReadonlyArray; readonly subIssueSortOrder: number | null; readonly subscribers: ReadonlyArray; readonly syncedWith: ReadonlyArray | null; readonly team: Team; readonly title: string; readonly trashed: boolean | null; readonly triagedAt: string | null; readonly updatedAt: string; readonly url: string; } /** The result of archiving or restoring a resource. */ export interface IssueArchivePayload { readonly entity: Issue | null; readonly lastSyncId: number; readonly success: boolean; } /** The result of creating or updating a batch of issues. The issues array contains the resulting issues, so you can read assigned identifiers and any values set by team defaults. */ export interface IssueBatchPayload { readonly issues: ReadonlyArray; readonly lastSyncId: number; readonly success: boolean; } /** A page of results. Read `nodes` for the resources, or `edges` if you also need a cursor for each result. Use `pageInfo` to fetch further pages; a connection may contain fewer results than the requested page size. */ export interface IssueConnection { readonly edges: ReadonlyArray; readonly nodes: ReadonlyArray; readonly pageInfo: PageInfo; } /** A result and its pagination cursor. */ export interface IssueEdge { readonly cursor: string; readonly node: Issue; } /** Suggested issue-view filters generated from a natural-language prompt. A suggestion can be absent when the prompt does not produce a filter. */ export interface IssueFilterSuggestionPayload { readonly filter: unknown | null; readonly logId: string | null; } /** A recorded change to an issue. Nearby changes can be grouped into one entry, and each from/to pair describes the previous and new value of a changed property. These entries are not full issue snapshots: null can mean the property did not change or that one side of a change was unset. Related records may also be unavailable after deletion. */ export interface IssueHistory { readonly actor: User | null; readonly actorId: string | null; readonly actors: ReadonlyArray | null; readonly addedLabelIds: ReadonlyArray | null; readonly addedLabels: ReadonlyArray | null; readonly addedToReleaseIds: ReadonlyArray | null; readonly addedToReleases: ReadonlyArray | null; readonly archived: boolean | null; readonly archivedAt: string | null; readonly attachment: Attachment | null; readonly attachmentId: string | null; readonly autoArchived: boolean | null; readonly autoClosed: boolean | null; readonly botActor: ActorBot | null; readonly createdAt: string; readonly customerNeedId: string | null; readonly descriptionUpdatedBy: ReadonlyArray | null; readonly fromAssignee: User | null; readonly fromAssigneeId: string | null; readonly fromCycle: Cycle | null; readonly fromCycleId: string | null; readonly fromDelegate: User | null; readonly fromDueDate: string | null; readonly fromEstimate: number | null; readonly fromParent: Issue | null; readonly fromParentId: string | null; readonly fromPriority: number | null; readonly fromProject: Project | null; readonly fromProjectId: string | null; readonly fromProjectMilestone: ProjectMilestone | null; readonly fromSlaBreached: boolean | null; readonly fromSlaBreachesAt: string | null; readonly fromSlaStartedAt: string | null; readonly fromSlaType: string | null; readonly fromState: WorkflowState | null; readonly fromStateId: string | null; readonly fromTeam: Team | null; readonly fromTeamId: string | null; readonly fromTitle: string | null; readonly id: string; readonly issue: Issue; readonly issueImport: IssueImport | null; readonly relationChanges: ReadonlyArray | null; readonly removedFromReleaseIds: ReadonlyArray | null; readonly removedFromReleases: ReadonlyArray | null; readonly removedLabelIds: ReadonlyArray | null; readonly removedLabels: ReadonlyArray | null; readonly toAssignee: User | null; readonly toAssigneeId: string | null; readonly toConvertedProject: Project | null; readonly toConvertedProjectId: string | null; readonly toCycle: Cycle | null; readonly toCycleId: string | null; readonly toDelegate: User | null; readonly toDueDate: string | null; readonly toEstimate: number | null; readonly toParent: Issue | null; readonly toParentId: string | null; readonly toPriority: number | null; readonly toProject: Project | null; readonly toProjectId: string | null; readonly toProjectMilestone: ProjectMilestone | null; readonly toSlaBreached: boolean | null; readonly toSlaBreachesAt: string | null; readonly toSlaStartedAt: string | null; readonly toSlaType: string | null; readonly toState: WorkflowState | null; readonly toStateId: string | null; readonly toTeam: Team | null; readonly toTeamId: string | null; readonly toTitle: string | null; readonly trashed: boolean | null; readonly triageResponsibilityAutoAssigned: boolean | null; readonly triageResponsibilityNotifiedUsers: ReadonlyArray | null; readonly triageResponsibilityTeam: Team | null; readonly updatedAt: string; readonly updatedDescription: boolean | null; } /** A page of results. Read `nodes` for the resources, or `edges` if you also need a cursor for each result. Use `pageInfo` to fetch further pages; a connection may contain fewer results than the requested page size. */ export interface IssueHistoryConnection { readonly edges: ReadonlyArray; readonly nodes: ReadonlyArray; readonly pageInfo: PageInfo; } /** A result and its pagination cursor. */ export interface IssueHistoryEdge { readonly cursor: string; readonly node: IssueHistory; } /** A job that brings issues and related data from another service into Linear. Import creation fetches the source data; mappings then choose how to create the Linear records. Processing continues asynchronously, so use status, progress, and error to follow the job rather than treating a mutation's success flag as completion. */ export interface IssueImport { readonly archivedAt: string | null; readonly createdAt: string; readonly creatorId: string | null; readonly csvFileUrl: string | null; readonly displayName: string; readonly error: string | null; readonly errorMetadata: unknown | null; readonly id: string; readonly mapping: unknown | null; readonly progress: number | null; readonly service: string; readonly serviceMetadata: unknown | null; readonly status: string; readonly teamName: string | null; readonly updatedAt: string; } /** The result of checking whether an import from an external service can proceed. */ export interface IssueImportCheckPayload { readonly success: boolean; } /** The import job scheduled for deletion, including removal of the data it created. */ export interface IssueImportDeletePayload { readonly issueImport: IssueImport | null; readonly lastSyncId: number; readonly success: boolean; } /** The result of validating a custom JQL query for a Jira import. */ export interface IssueImportJqlCheckPayload { readonly count: number | null; readonly error: string | null; readonly success: boolean; } /** The result of an issue import mutation, containing the import job and a success indicator. */ export interface IssueImportPayload { readonly issueImport: IssueImport | null; readonly lastSyncId: number; readonly success: boolean; } /** The result of checking whether an issue import can be synced with its source service after import completes. */ export interface IssueImportSyncCheckPayload { readonly canSync: boolean; readonly error: string | null; } /** A label for categorizing issues, such as Bug or Customer request. Labels can be available across the workspace or limited to a team, and can belong to groups that control whether one or several labels may be selected. Inherited labels are managed at their workspace or parent-team source. */ export interface IssueLabel { readonly archivedAt: string | null; readonly children: ReadonlyArray; readonly color: string; readonly createdAt: string; readonly creator: User | null; readonly description: string | null; readonly groupType: "singleSelect" | "multiSelect" | null; readonly id: string; readonly inheritedFrom: IssueLabel | null; readonly isGroup: boolean; readonly issues: ReadonlyArray; readonly lastAppliedAt: string | null; readonly name: string; readonly organization: Organization; readonly parent: IssueLabel | null; readonly retiredBy: User | null; readonly team: Team | null; readonly updatedAt: string; } /** A page of results. Read `nodes` for the resources, or `edges` if you also need a cursor for each result. Use `pageInfo` to fetch further pages; a connection may contain fewer results than the requested page size. */ export interface IssueLabelConnection { readonly edges: ReadonlyArray; readonly nodes: ReadonlyArray; readonly pageInfo: PageInfo; } /** A result and its pagination cursor. */ export interface IssueLabelEdge { readonly cursor: string; readonly node: IssueLabel; } /** The result of a label mutation, containing the created or updated label and a success indicator. */ export interface IssueLabelPayload { readonly issueLabel: IssueLabel; readonly lastSyncId: number; readonly success: boolean; } /** A notification related to an issue, such as assignment, comment, mention, status change, or priority change. */ export interface IssueNotification { readonly actor: User | null; readonly archivedAt: string | null; readonly botActor: ActorBot | null; readonly category: | "assignments" | "statusChanges" | "commentsAndReplies" | "mentions" | "reactions" | "subscriptions" | "documentChanges" | "postsAndUpdates" | "reminders" | "reviews" | "loops" | "appsAndIntegrations" | "triage" | "customers" | "feed" | "billing" | "system"; readonly comment: Comment | null; readonly commentId: string | null; readonly createdAt: string; readonly emailedAt: string | null; readonly externalUserActor: ExternalUser | null; readonly id: string; readonly issue: Issue; readonly issueId: string; readonly parentComment: Comment | null; readonly parentCommentId: string | null; readonly reactionEmoji: string | null; readonly readAt: string | null; readonly snoozedUntilAt: string | null; readonly subscriptions: ReadonlyArray | null; readonly team: Team; readonly type: string; readonly unsnoozedAt: string | null; readonly updatedAt: string; readonly user: User; } /** The result of an issue mutation. Read issue for the resulting values when the operation returns an issue; reminder creation can return success without an issue. */ export interface IssuePayload { readonly issue: Issue | null; readonly lastSyncId: number; readonly success: boolean; } /** A mapping of an issue priority value to its human-readable label. */ export interface IssuePriorityValue { readonly label: string; readonly priority: number; } /** A relationship between two issues, with issue as the source and relatedIssue as the target. For blocks, the source blocks the target; for duplicate, the source is a duplicate of the target. Related links have no meaningful direction, so read both an issue's relations and inverseRelations to find all its links. */ export interface IssueRelation { readonly archivedAt: string | null; readonly createdAt: string; readonly id: string; readonly issue: Issue; readonly relatedIssue: Issue; readonly type: string; readonly updatedAt: string; } /** A page of results. Read `nodes` for the resources, or `edges` if you also need a cursor for each result. Use `pageInfo` to fetch further pages; a connection may contain fewer results than the requested page size. */ export interface IssueRelationConnection { readonly edges: ReadonlyArray; readonly nodes: ReadonlyArray; readonly pageInfo: PageInfo; } /** A result and its pagination cursor. */ export interface IssueRelationEdge { readonly cursor: string; readonly node: IssueRelation; } /** A relation change and the identifier of the other issue. */ export interface IssueRelationHistoryPayload { readonly identifier: string; readonly type: string; } /** The issue relation created, updated, or reused by a mutation. */ export interface IssueRelationPayload { readonly issueRelation: IssueRelation; readonly lastSyncId: number; readonly success: boolean; } /** A page of issue search results. Read nodes for the matched issues and pageInfo to continue paging. totalCount describes the retrieved candidate set and can be larger than the results remaining after an issue filter is applied. */ export interface IssueSearchPayload { readonly archivePayload: ArchiveResponse; readonly edges: ReadonlyArray; readonly nodes: ReadonlyArray; readonly pageInfo: PageInfo; readonly totalCount: number; } /** An issue returned by search, with the same fields as Issue plus search metadata. The meaning of metadata.score depends on the query's ordering. */ export interface IssueSearchResult { readonly addedToCycleAt: string | null; readonly addedToProjectAt: string | null; readonly addedToTeamAt: string | null; readonly archivedAt: string | null; readonly asksExternalUserRequester: ExternalUser | null; readonly asksRequester: User | null; readonly assignee: User | null; readonly attachments: ReadonlyArray; readonly autoArchivedAt: string | null; readonly autoClosedAt: string | null; readonly boardOrder: number; readonly botActor: ActorBot | null; readonly branchName: string; readonly canceledAt: string | null; readonly children: ReadonlyArray; readonly comments: ReadonlyArray; readonly completedAt: string | null; readonly createdAt: string; readonly creator: User | null; readonly customerTicketCount: number; readonly cycle: Cycle | null; readonly delegate: User | null; readonly description: string | null; readonly documentContent: DocumentContent | null; readonly documents: ReadonlyArray; readonly dueDate: string | null; readonly estimate: number | null; readonly externalUserCreator: ExternalUser | null; readonly favorite: Favorite | null; readonly formerAttachments: ReadonlyArray; readonly formerNeeds: ReadonlyArray; readonly history: ReadonlyArray; readonly id: string; readonly identifier: string; readonly inheritsSharedAccess: boolean; readonly integrationSourceType: | "airbyte" | "claudeSecurity" | "datadog" | "discord" | "figma" | "figmaPlugin" | "front" | "github" | "gong" | "githubEnterpriseServer" | "githubCommit" | "githubImport" | "githubPersonal" | "githubCodeAccessPersonal" | "gitlab" | "gitlabPersonal" | "origin" | "googleCalendarPersonal" | "googleSheets" | "intercom" | "jira" | "jiraPersonal" | "launchDarkly" | "launchDarklyPersonal" | "loom" | "notion" | "opsgenie" | "pagerDuty" | "salesforce" | "slack" | "slackAsks" | "asksWeb" | "slackCustomViewNotifications" | "slackOrgProjectUpdatesPost" | "slackOrgInitiativeUpdatesPost" | "slackPersonal" | "slackPost" | "slackProjectPost" | "slackProjectUpdatesPost" | "slackInitiativePost" | "sentry" | "zendesk" | "email" | "mcpServerPersonal" | "mcpServer" | "microsoftTeams" | "microsoftPersonal" | "microsoftTeamsProjectPost" | null; readonly inverseRelations: ReadonlyArray; readonly labelIds: ReadonlyArray; readonly labels: ReadonlyArray; readonly lastAppliedTemplate: Template | null; readonly metadata: unknown; readonly needs: ReadonlyArray; readonly number: number; readonly parent: Issue | null; readonly previousIdentifiers: ReadonlyArray; readonly priority: number; readonly priorityLabel: string; readonly prioritySortOrder: number; readonly project: Project | null; readonly projectMilestone: ProjectMilestone | null; readonly reactionData: unknown; readonly reactions: ReadonlyArray; readonly recurringIssueTemplate: Template | null; readonly relations: ReadonlyArray; readonly releases: ReadonlyArray; readonly sharedAccess: IssueSharedAccess; readonly slaBreachesAt: string | null; readonly slaHighRiskAt: string | null; readonly slaMediumRiskAt: string | null; readonly slaStartedAt: string | null; readonly slaType: string | null; readonly snoozedBy: User | null; readonly snoozedUntilAt: string | null; readonly sortOrder: number; readonly sourceComment: Comment | null; readonly startedAt: string | null; readonly startedTriageAt: string | null; readonly state: WorkflowState; readonly stateHistory: ReadonlyArray; readonly subIssueSortOrder: number | null; readonly subscribers: ReadonlyArray; readonly syncedWith: ReadonlyArray | null; readonly team: Team; readonly title: string; readonly trashed: boolean | null; readonly triagedAt: string | null; readonly updatedAt: string; readonly url: string; } /** A result and its pagination cursor. */ export interface IssueSearchResultEdge { readonly cursor: string; readonly node: IssueSearchResult; } /** Metadata about an issue's shared access state, including which users the issue is shared with and any field restrictions for shared-only viewers. */ export interface IssueSharedAccess { readonly disallowedIssueFields: ReadonlyArray< "projectId" | "teamId" | "cycleId" | "projectMilestoneId" >; readonly isShared: boolean; readonly sharedWithCount: number; readonly sharedWithUsers: ReadonlyArray; readonly viewerHasOnlySharedAccess: boolean; } /** One continuous period during which an issue stayed in a particular status. Returning to the same status produces a separate span. Use startedAt and endedAt to calculate time spent in the status; the current span has no end time. */ export interface IssueStateSpan { readonly endedAt: string | null; readonly id: string; readonly startedAt: string; readonly state: WorkflowState | null; readonly stateId: string; } /** A page of results. Read `nodes` for the resources, or `edges` if you also need a cursor for each result. Use `pageInfo` to fetch further pages; a connection may contain fewer results than the requested page size. */ export interface IssueStateSpanConnection { readonly edges: ReadonlyArray; readonly nodes: ReadonlyArray; readonly pageInfo: PageInfo; } /** A result and its pagination cursor. */ export interface IssueStateSpanEdge { readonly cursor: string; readonly node: IssueStateSpan; } /** Return type for AI-generated issue title suggestions based on customer request content. */ export interface IssueTitleSuggestionFromCustomerRequestPayload { readonly lastSyncId: number; readonly title: string; } /** The association between one issue and one release. An issue can belong to several releases, with a separate link for each pair. The link's UUID is distinct from both the issue and release UUIDs. */ export interface IssueToRelease { readonly archivedAt: string | null; readonly createdAt: string; readonly id: string; readonly issue: Issue; readonly release: Release; readonly updatedAt: string; } /** A page of results. Read `nodes` for the resources, or `edges` if you also need a cursor for each result. Use `pageInfo` to fetch further pages; a connection may contain fewer results than the requested page size. */ export interface IssueToReleaseConnection { readonly edges: ReadonlyArray; readonly nodes: ReadonlyArray; readonly pageInfo: PageInfo; } /** A result and its pagination cursor. */ export interface IssueToReleaseEdge { readonly cursor: string; readonly node: IssueToRelease; } /** The created link between an issue and a release. */ export interface IssueToReleasePayload { readonly issueToRelease: IssueToRelease; readonly lastSyncId: number; readonly success: boolean; } /** A Linear record of a project on a connected Jira site that has been imported, synced with a team, or both. id is the Linear UUID; externalId and key identify the project in Jira. team describes the active sync destination, while linearTeam can also identify the destination of the latest import. Projects never imported or synced are not listed. */ export interface JiraProject { readonly archivedAt: string | null; readonly configurationError: string | null; readonly createdAt: string; readonly creator: User | null; readonly externalId: string; readonly id: string; readonly importedIssueCount: number | null; readonly importStatus: | "none" | "queued" | "importing" | "imported" | "failed" | "expired" | "deleting"; readonly integration: Integration; readonly isDefault: boolean; readonly key: string; readonly latestImport: IssueImport | null; readonly linearTeam: Team | null; readonly name: string; readonly syncDirection: "bidirectional" | "jiraToLinear" | "legacyJiraToLinear" | null; readonly syncEnabledAt: string | null; readonly syncStatus: "bidirectional" | "jiraToLinear" | "afterImport" | "notSyncing"; readonly team: Team | null; readonly updatedAt: string; } /** Results of starting a batch of Jira project migrations. Each project is checked independently, so successful projects can start even when success is false for the batch. Follow each project's jiraProject and issueImport to track the background work; retry only the failed projects. */ export interface JiraProjectBatchMigratePayload { readonly lastSyncId: number; readonly projects: ReadonlyArray; readonly success: boolean; } /** A page of results. Read `nodes` for the resources, or `edges` if you also need a cursor for each result. Use `pageInfo` to fetch further pages; a connection may contain fewer results than the requested page size. */ export interface JiraProjectConnection { readonly edges: ReadonlyArray; readonly nodes: ReadonlyArray; readonly pageInfo: PageInfo; } /** A result and its pagination cursor. */ export interface JiraProjectEdge { readonly cursor: string; readonly node: JiraProject; } /** Why one project of a Jira project migration failed its checks. */ export interface JiraProjectMigrationError { readonly code: | "invalidOptions" | "duplicateProject" | "projectNotFound" | "projectAlreadySyncing" | "projectSyncsWithAnotherTeam" | "projectBeingImported" | "importDeletionRunning" | "projectChanged" | "teamNotFound" | "teamNotAccessible" | "teamInheritsWorkflowStatuses" | "teamQuotaExceeded" | "legacySyncDirection" | "missingTeamCreationPermission" | "missingInvitePermission" | "missingJiraAccess" | "missingWebhookPermission" | "missingCreateIssuesPermission" | "projectNotReadable" | "invalidJql" | "noMatchingIssues" | "jiraAuthFailed" | "jiraRateLimited" | "jiraUnavailable"; readonly message: string; } /** The result for one project in a Jira migration request, identified by its zero-based index. success means the requested migration is running or was already running with the same settings, not that the import finished. error explains a failed check, and the returned records let you track progress. */ export interface JiraProjectMigrationResult { readonly error: JiraProjectMigrationError | null; readonly externalId: string | null; readonly index: number; readonly issueCount: number | null; readonly issueImport: IssueImport | null; readonly jiraProject: JiraProject | null; readonly key: string | null; readonly name: string | null; readonly success: boolean; } /** A notification subscription scoped to a specific issue label. The subscriber receives notifications for events related to issues with this label. */ export interface LabelNotificationSubscription { readonly active: boolean; readonly archivedAt: string | null; readonly contextViewType: | "activeIssues" | "activeCycle" | "upcomingCycle" | "backlog" | "triage" | null; readonly createdAt: string; readonly customer: Customer | null; readonly customView: CustomView | null; readonly cycle: Cycle | null; readonly id: string; readonly includeSubInitiativeUpdates: boolean; readonly initiative: Initiative | null; readonly label: IssueLabel; readonly notificationSubscriptionTypes: ReadonlyArray; readonly project: Project | null; readonly subscriber: User; readonly team: Team | null; readonly updatedAt: string; readonly user: User | null; readonly userContextViewType: "assigned" | null; } /** Result of signing out one or more sessions. */ export interface LogoutResponse { readonly success: boolean; } /** A resource with a stable, unique identifier. Use `id` to refer to the same resource across queries and mutations. */ export interface Node { readonly id: string; } /** An activity notification sent to a workspace member. Its concrete type identifies the related entity, while type identifies the event that occurred. Read, snooze, and archive states belong to the recipient. The inbox can group several related notifications into one item. */ export interface Notification { readonly actor: User | null; readonly archivedAt: string | null; readonly botActor: ActorBot | null; readonly category: | "assignments" | "statusChanges" | "commentsAndReplies" | "mentions" | "reactions" | "subscriptions" | "documentChanges" | "postsAndUpdates" | "reminders" | "reviews" | "loops" | "appsAndIntegrations" | "triage" | "customers" | "feed" | "billing" | "system"; readonly createdAt: string; readonly emailedAt: string | null; readonly externalUserActor: ExternalUser | null; readonly id: string; readonly readAt: string | null; readonly snoozedUntilAt: string | null; readonly type: string; readonly unsnoozedAt: string | null; readonly updatedAt: string; readonly user: User; } /** The result of archiving or restoring a resource. */ export interface NotificationArchivePayload { readonly entity: Notification | null; readonly lastSyncId: number; readonly success: boolean; } /** Return type for batch notification mutations that operate on multiple notifications at once. */ export interface NotificationBatchActionPayload { readonly lastSyncId: number; readonly notifications: ReadonlyArray; readonly success: boolean; } /** Effective notification preferences for each category and delivery channel, including defaults for preferences you have not set. A category must be enabled for its channel, and the channel itself must also be enabled, for delivery. */ export interface NotificationCategoryPreferences { readonly appsAndIntegrations: NotificationChannelPreferences; readonly assignments: NotificationChannelPreferences; readonly billing: NotificationChannelPreferences; readonly commentsAndReplies: NotificationChannelPreferences; readonly customers: NotificationChannelPreferences; readonly documentChanges: NotificationChannelPreferences; readonly feed: NotificationChannelPreferences; readonly loops: NotificationChannelPreferences; readonly mentions: NotificationChannelPreferences; readonly postsAndUpdates: NotificationChannelPreferences; readonly reactions: NotificationChannelPreferences; readonly reminders: NotificationChannelPreferences; readonly reviews: NotificationChannelPreferences; readonly statusChanges: NotificationChannelPreferences; readonly subscriptions: NotificationChannelPreferences; readonly system: NotificationChannelPreferences; readonly triage: NotificationChannelPreferences; } /** Whether each delivery channel is enabled. A notification also needs its category enabled for that channel. */ export interface NotificationChannelPreferences { readonly desktop: boolean; readonly email: boolean; readonly mobile: boolean; readonly slack: boolean; } /** A page of results. Read `nodes` for the resources, or `edges` if you also need a cursor for each result. Use `pageInfo` to fetch further pages; a connection may contain fewer results than the requested page size. */ export interface NotificationConnection { readonly edges: ReadonlyArray; readonly nodes: ReadonlyArray; readonly pageInfo: PageInfo; } /** Mobile notification delivery preferences. Other channels do not support delivery schedules. */ export interface NotificationDeliveryPreferences { readonly mobile: NotificationDeliveryPreferencesChannel | null; } /** Delivery timing for a notification channel. A schedule limits when delivery is allowed; notificationChannelPreferences controls whether the channel is enabled. */ export interface NotificationDeliveryPreferencesChannel { readonly notificationsDisabled: boolean | null; readonly schedule: NotificationDeliveryPreferencesSchedule | null; } /** Notification delivery window for one day, in the user's time zone. An empty object disables delivery for that day. */ export interface NotificationDeliveryPreferencesDay { readonly end: string | null; readonly start: string | null; } /** A weekly mobile notification schedule in your user time zone. Supply all seven days, using an empty object for days without delivery. Days with delivery must use the same start and end times. Set disabled to true to allow delivery at any time. */ export interface NotificationDeliveryPreferencesSchedule { readonly disabled: boolean | null; readonly friday: NotificationDeliveryPreferencesDay; readonly monday: NotificationDeliveryPreferencesDay; readonly saturday: NotificationDeliveryPreferencesDay; readonly sunday: NotificationDeliveryPreferencesDay; readonly thursday: NotificationDeliveryPreferencesDay; readonly tuesday: NotificationDeliveryPreferencesDay; readonly wednesday: NotificationDeliveryPreferencesDay; } /** A result and its pagination cursor. */ export interface NotificationEdge { readonly cursor: string; readonly node: Notification; } /** Return type for notification mutations. */ export interface NotificationPayload { readonly lastSyncId: number; readonly notification: Notification; readonly success: boolean; } /** A user's subscription to events for one entity or view. Matching events can generate notifications while the subscription is active; the user's notification preferences control how those notifications are delivered. The concrete subscription type identifies its target. */ export interface NotificationSubscription { readonly active: boolean; readonly archivedAt: string | null; readonly contextViewType: | "activeIssues" | "activeCycle" | "upcomingCycle" | "backlog" | "triage" | null; readonly createdAt: string; readonly customer: Customer | null; readonly customView: CustomView | null; readonly cycle: Cycle | null; readonly id: string; readonly includeSubInitiativeUpdates: boolean; readonly initiative: Initiative | null; readonly label: IssueLabel | null; readonly project: Project | null; readonly subscriber: User; readonly team: Team | null; readonly updatedAt: string; readonly user: User | null; readonly userContextViewType: "assigned" | null; } /** A page of results. Read `nodes` for the resources, or `edges` if you also need a cursor for each result. Use `pageInfo` to fetch further pages; a connection may contain fewer results than the requested page size. */ export interface NotificationSubscriptionConnection { readonly edges: ReadonlyArray; readonly nodes: ReadonlyArray; readonly pageInfo: PageInfo; } /** A result and its pagination cursor. */ export interface NotificationSubscriptionEdge { readonly cursor: string; readonly node: NotificationSubscription; } /** The result of a notification subscription mutation. */ export interface NotificationSubscriptionPayload { readonly lastSyncId: number; readonly notificationSubscription: NotificationSubscription; readonly success: boolean; } /** An OAuth application created and managed by another OAuth application through this API. id identifies the record for management mutations, while clientId identifies it in OAuth flows. The returned object includes branding, redirect URIs, grant capabilities, and webhook settings, but no secrets. Applications created here start private to the current workspace. */ export interface OAuthApplication { readonly clientId: string; readonly createdAt: string; readonly description: string | null; readonly developer: string; readonly developerUrl: string; readonly distribution: "private" | "public"; readonly grantTypes: ReadonlyArray<"authorization_code" | "client_credentials">; readonly id: string; readonly imageUrl: string | null; readonly name: string; readonly redirectUris: ReadonlyArray; readonly requireTokenBinding: boolean; readonly updatedAt: string; readonly webhookEnabled: boolean; readonly webhookResourceTypes: ReadonlyArray< | "AgentSessionEvent" | "Comment" | "CustomerNeed" | "Customer" | "Cycle" | "Document" | "Reaction" | "AppUserNotification" | "InitiativeUpdate" | "Initiative" | "IssueLabel" | "IssueSLA" | "Attachment" | "Issue" | "OAuthAuthorization" | "PermissionChange" | "ProjectLabel" | "ProjectUpdate" | "Project" | "ReleaseNote" | "Release" | "User" >; readonly webhookUrl: string | null; } /** The result of archiving an OAuth application. */ export interface OAuthApplicationArchivePayload { readonly success: boolean; } /** The authenticated OAuth application's trusted-source status for Coding Sessions in the token's workspace. Combines workspace availability with the application's trust setting. This status does not grant permissions or account for team and repository access. */ export interface OAuthApplicationCodingSessionTrustedSource { readonly disabledReason: | "CODING_SESSIONS_DISABLED" | "TRUSTED_EXTERNAL_SOURCES_UNAVAILABLE" | "APP_NOT_TRUSTED" | null; readonly enabled: boolean; } /** The result of creating an OAuth application. */ export interface OAuthApplicationCreatePayload { readonly application: OAuthApplication; readonly clientSecret: string | null; readonly success: boolean; readonly webhookSecret: string | null; } /** The result of an OAuth application mutation. */ export interface OAuthApplicationPayload { readonly application: OAuthApplication; readonly success: boolean; } /** The result of rotating an OAuth application's client secret. */ export interface OAuthApplicationRotateSecretPayload { readonly clientSecret: string; readonly success: boolean; } /** The result of rotating an OAuth application's webhook signing secret. */ export interface OAuthApplicationRotateWebhookSecretPayload { readonly success: boolean; readonly webhookSecret: string; } /** A request for a workspace administrator to approve installing an OAuth application with specified scopes. status records the decision on scopes; newlyRequestedScopes tracks additional permissions requested after an earlier approval. Approval permits the installation flow to continue but does not itself return an OAuth token. */ export interface OauthClientApproval { readonly archivedAt: string | null; readonly createdAt: string; readonly denyReason: string | null; readonly id: string; readonly newlyRequestedScopes: ReadonlyArray | null; readonly oauthClientId: string; readonly requesterId: string; readonly requestReason: string | null; readonly responderId: string | null; readonly scopes: ReadonlyArray; readonly status: "requested" | "approved" | "denied"; readonly updatedAt: string; } /** A notification related to an OAuth client approval request, sent to workspace admins when an application requests access. */ export interface OauthClientApprovalNotification { readonly actor: User | null; readonly archivedAt: string | null; readonly botActor: ActorBot | null; readonly category: | "assignments" | "statusChanges" | "commentsAndReplies" | "mentions" | "reactions" | "subscriptions" | "documentChanges" | "postsAndUpdates" | "reminders" | "reviews" | "loops" | "appsAndIntegrations" | "triage" | "customers" | "feed" | "billing" | "system"; readonly createdAt: string; readonly emailedAt: string | null; readonly externalUserActor: ExternalUser | null; readonly id: string; readonly oauthClientApproval: OauthClientApproval; readonly oauthClientApprovalId: string; readonly readAt: string | null; readonly snoozedUntilAt: string | null; readonly type: string; readonly unsnoozedAt: string | null; readonly updatedAt: string; readonly user: User; } /** Your Linear workspace, named Organization in the API. It contains teams, members, projects, and shared configuration such as security settings, integrations, and update schedules. The organization query returns the workspace associated with your credentials. */ export interface Organization { readonly aiDiscussionSummariesEnabled: boolean; readonly aiThreadSummariesEnabled: boolean; readonly allowedAuthServices: ReadonlyArray; readonly allowedFileUploadContentTypes: ReadonlyArray | null; readonly allowMembersToInvite: boolean | null; readonly archivedAt: string | null; readonly authSettings: unknown; readonly createdAt: string; readonly createdIssueCount: number; readonly customerCount: number; readonly customersConfiguration: unknown; readonly customersEnabled: boolean; readonly defaultFeedSummarySchedule: "daily" | "weekly" | "never" | null; readonly defaultHomeView: string | null; readonly defaultHomeViewTargetId: string | null; readonly deletionRequestedAt: string | null; readonly feedEnabled: boolean; readonly fiscalYearStartMonth: number; readonly gitBranchFormat: string | null; readonly gitLinkbackDescriptionsEnabled: boolean; readonly gitLinkbackMessagesEnabled: boolean; readonly gitPublicLinkbackMessagesEnabled: boolean; readonly hideNonPrimaryOrganizations: boolean; readonly hipaaComplianceEnabled: boolean; readonly id: string; readonly initiativeUpdateReminderFrequencyInWeeks: number | null; readonly initiativeUpdateRemindersDay: | "Sunday" | "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday"; readonly initiativeUpdateRemindersHour: number; readonly integrations: ReadonlyArray; readonly labels: ReadonlyArray; readonly logoUrl: string | null; readonly loops: ReadonlyArray; readonly name: string; readonly periodUploadVolume: number; readonly previousUrlKeys: ReadonlyArray; readonly projectLabels: ReadonlyArray; readonly projectStatuses: ReadonlyArray; readonly projectUpdateReminderFrequencyInWeeks: number | null; readonly projectUpdateRemindersDay: | "Sunday" | "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday"; readonly projectUpdateRemindersHour: number; readonly projectUpdatesReminderFrequency: "week" | "twoWeeks" | "month" | "never"; readonly pullRequestIssueMode: string; readonly pullRequestTourEnabled: boolean; readonly releaseChannel: | "development" | "internal" | "privateBeta" | "beta" | "preRelease" | "public"; readonly releasesEnabled: boolean; readonly restrictLabelManagementToAdmins: boolean | null; readonly restrictTeamCreationToAdmins: boolean | null; readonly roadmapEnabled: boolean; readonly samlEnabled: boolean; readonly scimEnabled: boolean; readonly securitySettings: unknown; readonly slackProjectChannelIntegration: Integration | null; readonly slackProjectChannelPrefix: string; readonly slaDayCount: "all" | "onlyBusinessDays"; readonly subscription: PaidSubscription | null; readonly suggestedBranchNameEnabled: boolean; readonly teams: ReadonlyArray; readonly templates: ReadonlyArray