@linear/sdk 15.0.1 → 17.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -573,7 +573,7 @@ export declare type AuthUser = {
573
573
  name: Scalars["String"];
574
574
  /** Organization the user belongs to. */
575
575
  organization: AuthOrganization;
576
- /** User account id the user belongs to. */
576
+ /** User account ID the user belongs to. */
577
577
  userAccountId: Scalars["String"];
578
578
  };
579
579
  /** User authentication session. */
@@ -1047,6 +1047,7 @@ export declare type CustomViewIssuesArgs = {
1047
1047
  includeArchived?: Maybe<Scalars["Boolean"]>;
1048
1048
  last?: Maybe<Scalars["Int"]>;
1049
1049
  orderBy?: Maybe<PaginationOrderBy>;
1050
+ sort?: Maybe<Array<IssueSortInput>>;
1050
1051
  };
1051
1052
  export declare type CustomViewConnection = {
1052
1053
  __typename?: "CustomViewConnection";
@@ -1801,15 +1802,6 @@ export declare type EmailIntakeAddressUpdateInput = {
1801
1802
  /** Whether the email address is currently enabled. If set to false, the email address will be disabled and no longer accept incoming emails. */
1802
1803
  enabled: Scalars["Boolean"];
1803
1804
  };
1804
- export declare type EmailSubscribeInput = {
1805
- /** [INTERNAL] Email to subscribe. */
1806
- email: Scalars["String"];
1807
- };
1808
- export declare type EmailSubscribePayload = {
1809
- __typename?: "EmailSubscribePayload";
1810
- /** [INTERNAL] Whether the operation was successful. */
1811
- success: Scalars["Boolean"];
1812
- };
1813
1805
  export declare type EmailUnsubscribeInput = {
1814
1806
  /** The user's email validation token. */
1815
1807
  token: Scalars["String"];
@@ -2761,6 +2753,7 @@ export declare enum IntegrationService {
2761
2753
  JiraPersonal = "jiraPersonal",
2762
2754
  Loom = "loom",
2763
2755
  Notion = "notion",
2756
+ Opsgenie = "opsgenie",
2764
2757
  PagerDuty = "pagerDuty",
2765
2758
  Sentry = "sentry",
2766
2759
  Slack = "slack",
@@ -2784,6 +2777,7 @@ export declare type IntegrationSettings = {
2784
2777
  jira?: Maybe<JiraSettings>;
2785
2778
  jiraPersonal?: Maybe<JiraPersonalSettings>;
2786
2779
  notion?: Maybe<NotionSettings>;
2780
+ opsgenie?: Maybe<OpsgenieSettings>;
2787
2781
  pagerDuty?: Maybe<PagerDutySettings>;
2788
2782
  sentry?: Maybe<SentrySettings>;
2789
2783
  slack?: Maybe<SlackSettings>;
@@ -2803,6 +2797,7 @@ export declare type IntegrationSettingsInput = {
2803
2797
  jira?: Maybe<JiraSettingsInput>;
2804
2798
  jiraPersonal?: Maybe<JiraPersonalSettingsInput>;
2805
2799
  notion?: Maybe<NotionSettingsInput>;
2800
+ opsgenie?: Maybe<OpsgenieInput>;
2806
2801
  pagerDuty?: Maybe<PagerDutyInput>;
2807
2802
  sentry?: Maybe<SentrySettingsInput>;
2808
2803
  slack?: Maybe<SlackSettingsInput>;
@@ -4502,7 +4497,7 @@ export declare type Mutation = {
4502
4497
  attachmentLinkURL: AttachmentPayload;
4503
4498
  /** Link an existing Zendesk ticket to an issue. */
4504
4499
  attachmentLinkZendesk: AttachmentPayload;
4505
- /** Unsyncs an existing synced Slack attachment. */
4500
+ /** [DEPRECATED] Unsyncs an existing synced Slack attachment. */
4506
4501
  attachmentUnsyncSlack: AttachmentPayload;
4507
4502
  /** Updates an existing issue attachment. */
4508
4503
  attachmentUpdate: AttachmentPayload;
@@ -4554,8 +4549,6 @@ export declare type Mutation = {
4554
4549
  emailIntakeAddressRotate: EmailIntakeAddressPayload;
4555
4550
  /** Updates an existing email intake address. */
4556
4551
  emailIntakeAddressUpdate: EmailIntakeAddressPayload;
4557
- /** [INTERNAL] Subscribes the email to the newsletter. */
4558
- emailSubscribe: EmailSubscribePayload;
4559
4552
  /** Authenticates a user account via email and authentication token. */
4560
4553
  emailTokenUserAccountAuth: AuthResolverResponse;
4561
4554
  /** Unsubscribes the user from one type of emails. */
@@ -4650,6 +4643,10 @@ export declare type Mutation = {
4650
4643
  * @deprecated Not available.
4651
4644
  */
4652
4645
  integrationLoom: IntegrationPayload;
4646
+ /** [INTERNAL] Integrates the organization with Opsgenie. */
4647
+ integrationOpsgenieConnect: IntegrationPayload;
4648
+ /** [INTERNAL] Refresh Opsgenie schedule mappings. */
4649
+ integrationOpsgenieRefreshScheduleMappings: IntegrationPayload;
4653
4650
  /** [INTERNAL] Integrates the organization with PagerDuty. */
4654
4651
  integrationPagerDutyConnect: IntegrationPayload;
4655
4652
  /** [INTERNAL] Refresh PagerDuty schedule mappings. */
@@ -5142,9 +5139,6 @@ export declare type MutationEmailIntakeAddressUpdateArgs = {
5142
5139
  id: Scalars["String"];
5143
5140
  input: EmailIntakeAddressUpdateInput;
5144
5141
  };
5145
- export declare type MutationEmailSubscribeArgs = {
5146
- input: EmailSubscribeInput;
5147
- };
5148
5142
  export declare type MutationEmailTokenUserAccountAuthArgs = {
5149
5143
  input: TokenUserAccountAuthInput;
5150
5144
  };
@@ -5288,6 +5282,9 @@ export declare type MutationIntegrationJiraPersonalArgs = {
5288
5282
  export declare type MutationIntegrationJiraUpdateArgs = {
5289
5283
  input: JiraUpdateInput;
5290
5284
  };
5285
+ export declare type MutationIntegrationOpsgenieConnectArgs = {
5286
+ apiKey: Scalars["String"];
5287
+ };
5291
5288
  export declare type MutationIntegrationPagerDutyConnectArgs = {
5292
5289
  code: Scalars["String"];
5293
5290
  redirectUri: Scalars["String"];
@@ -6578,6 +6575,16 @@ export declare type OnboardingCustomerSurvey = {
6578
6575
  companyRole?: Maybe<Scalars["String"]>;
6579
6576
  companySize?: Maybe<Scalars["String"]>;
6580
6577
  };
6578
+ export declare type OpsgenieInput = {
6579
+ /** The date when the Opsgenie API failed with an unauthorized error. */
6580
+ apiFailedWithUnauthorizedErrorAt: Scalars["DateTime"];
6581
+ };
6582
+ /** Opsgenie specific settings. */
6583
+ export declare type OpsgenieSettings = {
6584
+ __typename?: "OpsgenieSettings";
6585
+ /** The date when the Opsgenie API failed with an unauthorized error. */
6586
+ apiFailedWithUnauthorizedErrorAt: Scalars["DateTime"];
6587
+ };
6581
6588
  /** An organization. Organizations are root-level objects that contain user accounts and teams. */
6582
6589
  export declare type Organization = Node & {
6583
6590
  __typename?: "Organization";
@@ -6962,32 +6969,14 @@ export declare type PageInfo = {
6962
6969
  startCursor?: Maybe<Scalars["String"]>;
6963
6970
  };
6964
6971
  export declare type PagerDutyInput = {
6965
- /** Metadata about a PagerDuty schedule. */
6966
- scheduleMapping: Array<PagerDutyScheduleInfoInput>;
6967
- };
6968
- /** Metadata about a PagerDuty schedule. */
6969
- export declare type PagerDutyScheduleInfo = {
6970
- __typename?: "PagerDutyScheduleInfo";
6971
- /** The PagerDuty schedule id. */
6972
- scheduleId: Scalars["String"];
6973
- /** The PagerDuty schedule name. */
6974
- scheduleName: Scalars["String"];
6975
- /** The URL of the schedule in PagerDuty's web app. */
6976
- url: Scalars["String"];
6977
- };
6978
- export declare type PagerDutyScheduleInfoInput = {
6979
- /** The PagerDuty schedule id. */
6980
- scheduleId: Scalars["String"];
6981
- /** The PagerDuty schedule name. */
6982
- scheduleName: Scalars["String"];
6983
- /** The URL of the schedule in PagerDuty's web app. */
6984
- url: Scalars["String"];
6972
+ /** The date when the PagerDuty API failed with an unauthorized error. */
6973
+ apiFailedWithUnauthorizedErrorAt: Scalars["DateTime"];
6985
6974
  };
6986
6975
  /** PagerDuty specific settings. */
6987
6976
  export declare type PagerDutySettings = {
6988
6977
  __typename?: "PagerDutySettings";
6989
- /** Metadata about a PagerDuty schedule. */
6990
- scheduleMapping: Array<PagerDutyScheduleInfo>;
6978
+ /** The date when the PagerDuty API failed with an unauthorized error. */
6979
+ apiFailedWithUnauthorizedErrorAt: Scalars["DateTime"];
6991
6980
  };
6992
6981
  /** How to treat NULL values, whether they should appear first or last */
6993
6982
  export declare enum PaginationNulls {
@@ -8706,6 +8695,7 @@ export declare type QueryIssueFigmaFileKeySearchArgs = {
8706
8695
  orderBy?: Maybe<PaginationOrderBy>;
8707
8696
  };
8708
8697
  export declare type QueryIssueFilterSuggestionArgs = {
8698
+ projectId?: Maybe<Scalars["String"]>;
8709
8699
  prompt: Scalars["String"];
8710
8700
  };
8711
8701
  export declare type QueryIssueImportCheckCsvArgs = {
@@ -9671,7 +9661,10 @@ export declare type Team = Node & {
9671
9661
  issueEstimationType: Scalars["String"];
9672
9662
  /** Whether issues without priority should be sorted first. */
9673
9663
  issueOrderingNoPriorityFirst: Scalars["Boolean"];
9674
- /** [DEPRECATED] Whether to move issues to bottom of the column when changing state. Use setIssueSortOrderOnStateChange instead. */
9664
+ /**
9665
+ * [DEPRECATED] Whether to move issues to bottom of the column when changing state.
9666
+ * @deprecated Use setIssueSortOrderOnStateChange instead.
9667
+ */
9675
9668
  issueSortOrderDefaultToBottom: Scalars["Boolean"];
9676
9669
  /** Issues associated with the team. */
9677
9670
  issues: IssueConnection;
@@ -9919,8 +9912,6 @@ export declare type TeamCreateInput = {
9919
9912
  issueEstimationType?: Maybe<Scalars["String"]>;
9920
9913
  /** Whether issues without priority should be sorted first. */
9921
9914
  issueOrderingNoPriorityFirst?: Maybe<Scalars["Boolean"]>;
9922
- /** [DEPRECATED] Whether to move issues to bottom of the column when changing state. Use setIssueSortOrderOnStateChange instead. */
9923
- issueSortOrderDefaultToBottom?: Maybe<Scalars["Boolean"]>;
9924
9915
  /** The key of the team. If not given, the key will be generated based on the name of the team. */
9925
9916
  key?: Maybe<Scalars["String"]>;
9926
9917
  /** The workflow state into which issues are moved when they are marked as a duplicate of another issue. */
@@ -10161,8 +10152,6 @@ export declare type TeamUpdateInput = {
10161
10152
  issueEstimationType?: Maybe<Scalars["String"]>;
10162
10153
  /** Whether issues without priority should be sorted first. */
10163
10154
  issueOrderingNoPriorityFirst?: Maybe<Scalars["Boolean"]>;
10164
- /** [DEPRECATED] Whether to move issues to bottom of the column when changing state. Use setIssueSortOrderOnStateChange instead. */
10165
- issueSortOrderDefaultToBottom?: Maybe<Scalars["Boolean"]>;
10166
10155
  /** Whether new users should join this team by default. Mutation restricted to workspace admins! */
10167
10156
  joinByDefault?: Maybe<Scalars["Boolean"]>;
10168
10157
  /** The key of the team. */
@@ -10898,7 +10887,20 @@ export declare type UserSettings = Node & {
10898
10887
  notificationPreferences: Scalars["JSONObject"];
10899
10888
  /** Whether to show full user names instead of display names. */
10900
10889
  showFullUserNames: Scalars["Boolean"];
10901
- /** The email types the user has unsubscribed from. */
10890
+ /** Whether this user is subscribed to changelog email or not. */
10891
+ subscribedToChangelog: Scalars["Boolean"];
10892
+ /** Whether this user is subscribed to DPA emails or not. */
10893
+ subscribedToDPA: Scalars["Boolean"];
10894
+ /** Whether this user is subscribed to invite accepted emails or not. */
10895
+ subscribedToInviteAccepted: Scalars["Boolean"];
10896
+ /** Whether this user is subscribed to privacy and legal update emails or not. */
10897
+ subscribedToPrivacyLegalUpdates: Scalars["Boolean"];
10898
+ /** Whether this user is subscribed to unread notifications reminder emails or not. */
10899
+ subscribedToUnreadNotificationsReminder: Scalars["Boolean"];
10900
+ /**
10901
+ * The email types the user has unsubscribed from.
10902
+ * @deprecated Use individual subscription fields instead.
10903
+ */
10902
10904
  unsubscribedFrom: Array<Scalars["String"]>;
10903
10905
  /**
10904
10906
  * The last time at which the entity was meaningfully updated, i.e. for all changes of syncable properties except those
@@ -10941,6 +10943,16 @@ export declare type UserSettingsUpdateInput = {
10941
10943
  notificationPreferences?: Maybe<Scalars["JSONObject"]>;
10942
10944
  /** The user's settings. */
10943
10945
  settings?: Maybe<Scalars["JSONObject"]>;
10946
+ /** Whether this user is subscribed to changelog email or not. */
10947
+ subscribedToChangelog?: Maybe<Scalars["Boolean"]>;
10948
+ /** Whether this user is subscribed to DPA emails or not. */
10949
+ subscribedToDPA?: Maybe<Scalars["Boolean"]>;
10950
+ /** Whether this user is subscribed to invite accepted emails or not. */
10951
+ subscribedToInviteAccepted?: Maybe<Scalars["Boolean"]>;
10952
+ /** Whether this user is subscribed to privacy and legal update emails or not. */
10953
+ subscribedToPrivacyLegalUpdates?: Maybe<Scalars["Boolean"]>;
10954
+ /** Whether this user is subscribed to email notifications reminder or not. */
10955
+ subscribedToUnreadNotificationsReminder?: Maybe<Scalars["Boolean"]>;
10944
10956
  /** The types of emails the user has unsubscribed from. */
10945
10957
  unsubscribedFrom?: Maybe<Array<Scalars["String"]>>;
10946
10958
  /** [Internal] The user's usage warning history. */
@@ -12500,9 +12512,6 @@ export declare type TeamRepoMappingFragment = {
12500
12512
  export declare type JiraProjectDataFragment = {
12501
12513
  __typename: "JiraProjectData";
12502
12514
  } & Pick<JiraProjectData, "id" | "key" | "name">;
12503
- export declare type PagerDutyScheduleInfoFragment = {
12504
- __typename: "PagerDutyScheduleInfo";
12505
- } & Pick<PagerDutyScheduleInfo, "scheduleId" | "scheduleName" | "url">;
12506
12515
  export declare type GitHubPersonalSettingsFragment = {
12507
12516
  __typename: "GitHubPersonalSettings";
12508
12517
  } & Pick<GitHubPersonalSettings, "login">;
@@ -12694,13 +12703,12 @@ export declare type UploadFileFragment = {
12694
12703
  __typename?: "UploadFileHeader";
12695
12704
  } & UploadFileHeaderFragment>;
12696
12705
  };
12706
+ export declare type OpsgenieSettingsFragment = {
12707
+ __typename: "OpsgenieSettings";
12708
+ } & Pick<OpsgenieSettings, "apiFailedWithUnauthorizedErrorAt">;
12697
12709
  export declare type PagerDutySettingsFragment = {
12698
12710
  __typename: "PagerDutySettings";
12699
- } & {
12700
- scheduleMapping: Array<{
12701
- __typename?: "PagerDutyScheduleInfo";
12702
- } & PagerDutyScheduleInfoFragment>;
12703
- };
12711
+ } & Pick<PagerDutySettings, "apiFailedWithUnauthorizedErrorAt">;
12704
12712
  export declare type UserAuthorizedApplicationFragment = {
12705
12713
  __typename: "UserAuthorizedApplication";
12706
12714
  } & Pick<UserAuthorizedApplication, "name" | "approvalErrorCode" | "imageUrl" | "description" | "developer" | "id" | "clientId" | "developerUrl" | "webhooksEnabled" | "createdByLinear" | "isAuthorized">;
@@ -12776,6 +12784,9 @@ export declare type IntegrationSettingsFragment = {
12776
12784
  notion?: Maybe<{
12777
12785
  __typename?: "NotionSettings";
12778
12786
  } & NotionSettingsFragment>;
12787
+ opsgenie?: Maybe<{
12788
+ __typename?: "OpsgenieSettings";
12789
+ } & OpsgenieSettingsFragment>;
12779
12790
  pagerDuty?: Maybe<{
12780
12791
  __typename?: "PagerDutySettings";
12781
12792
  } & PagerDutySettingsFragment>;
@@ -12810,7 +12821,7 @@ export declare type PaidSubscriptionFragment = {
12810
12821
  };
12811
12822
  export declare type UserSettingsFragment = {
12812
12823
  __typename: "UserSettings";
12813
- } & Pick<UserSettings, "calendarHash" | "unsubscribedFrom" | "updatedAt" | "notificationPreferences" | "archivedAt" | "createdAt" | "id" | "showFullUserNames"> & {
12824
+ } & Pick<UserSettings, "calendarHash" | "unsubscribedFrom" | "updatedAt" | "notificationPreferences" | "archivedAt" | "createdAt" | "id" | "subscribedToDPA" | "subscribedToChangelog" | "subscribedToInviteAccepted" | "subscribedToPrivacyLegalUpdates" | "subscribedToUnreadNotificationsReminder" | "showFullUserNames"> & {
12814
12825
  user: {
12815
12826
  __typename?: "User";
12816
12827
  } & Pick<User, "id">;
@@ -14678,6 +14689,7 @@ export declare type CustomView_IssuesQueryVariables = Exact<{
14678
14689
  includeArchived?: Maybe<Scalars["Boolean"]>;
14679
14690
  last?: Maybe<Scalars["Int"]>;
14680
14691
  orderBy?: Maybe<PaginationOrderBy>;
14692
+ sort?: Maybe<Array<IssueSortInput> | IssueSortInput>;
14681
14693
  }>;
14682
14694
  export declare type CustomView_IssuesQuery = {
14683
14695
  __typename?: "Query";
@@ -15192,6 +15204,7 @@ export declare type IssueFigmaFileKeySearchQuery = {
15192
15204
  } & IssueConnectionFragment;
15193
15205
  };
15194
15206
  export declare type IssueFilterSuggestionQueryVariables = Exact<{
15207
+ projectId?: Maybe<Scalars["String"]>;
15195
15208
  prompt: Scalars["String"];
15196
15209
  }>;
15197
15210
  export declare type IssueFilterSuggestionQuery = {
@@ -19166,7 +19179,7 @@ export declare const JiraLinearMappingFragmentDoc: DocumentNode<JiraLinearMappin
19166
19179
  export declare const JiraSettingsFragmentDoc: DocumentNode<JiraSettingsFragment, unknown>;
19167
19180
  export declare const JiraPersonalSettingsFragmentDoc: DocumentNode<JiraPersonalSettingsFragment, unknown>;
19168
19181
  export declare const NotionSettingsFragmentDoc: DocumentNode<NotionSettingsFragment, unknown>;
19169
- export declare const PagerDutyScheduleInfoFragmentDoc: DocumentNode<PagerDutyScheduleInfoFragment, unknown>;
19182
+ export declare const OpsgenieSettingsFragmentDoc: DocumentNode<OpsgenieSettingsFragment, unknown>;
19170
19183
  export declare const PagerDutySettingsFragmentDoc: DocumentNode<PagerDutySettingsFragment, unknown>;
19171
19184
  export declare const SentrySettingsFragmentDoc: DocumentNode<SentrySettingsFragment, unknown>;
19172
19185
  export declare const SlackSettingsFragmentDoc: DocumentNode<SlackSettingsFragment, unknown>;
@@ -19573,6 +19586,7 @@ export declare const CustomView_IssuesDocument: DocumentNode<CustomView_IssuesQu
19573
19586
  includeArchived?: Maybe<boolean> | undefined;
19574
19587
  last?: Maybe<number> | undefined;
19575
19588
  orderBy?: Maybe<PaginationOrderBy> | undefined;
19589
+ sort?: Maybe<IssueSortInput | IssueSortInput[]> | undefined;
19576
19590
  }>>;
19577
19591
  export declare const CustomViewHasSubscribersDocument: DocumentNode<CustomViewHasSubscribersQuery, Exact<{
19578
19592
  id: Scalars["String"];
@@ -19797,6 +19811,7 @@ export declare const IssueFigmaFileKeySearchDocument: DocumentNode<IssueFigmaFil
19797
19811
  orderBy?: Maybe<PaginationOrderBy> | undefined;
19798
19812
  }>>;
19799
19813
  export declare const IssueFilterSuggestionDocument: DocumentNode<IssueFilterSuggestionQuery, Exact<{
19814
+ projectId?: Maybe<string> | undefined;
19800
19815
  prompt: Scalars["String"];
19801
19816
  }>>;
19802
19817
  export declare const IssueImportCheckCsvDocument: DocumentNode<IssueImportCheckCsvQuery, Exact<{