@linear/sdk 15.0.1 → 16.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2761,6 +2761,7 @@ export declare enum IntegrationService {
2761
2761
  JiraPersonal = "jiraPersonal",
2762
2762
  Loom = "loom",
2763
2763
  Notion = "notion",
2764
+ Opsgenie = "opsgenie",
2764
2765
  PagerDuty = "pagerDuty",
2765
2766
  Sentry = "sentry",
2766
2767
  Slack = "slack",
@@ -2784,6 +2785,7 @@ export declare type IntegrationSettings = {
2784
2785
  jira?: Maybe<JiraSettings>;
2785
2786
  jiraPersonal?: Maybe<JiraPersonalSettings>;
2786
2787
  notion?: Maybe<NotionSettings>;
2788
+ opsgenie?: Maybe<OpsgenieSettings>;
2787
2789
  pagerDuty?: Maybe<PagerDutySettings>;
2788
2790
  sentry?: Maybe<SentrySettings>;
2789
2791
  slack?: Maybe<SlackSettings>;
@@ -2803,6 +2805,7 @@ export declare type IntegrationSettingsInput = {
2803
2805
  jira?: Maybe<JiraSettingsInput>;
2804
2806
  jiraPersonal?: Maybe<JiraPersonalSettingsInput>;
2805
2807
  notion?: Maybe<NotionSettingsInput>;
2808
+ opsgenie?: Maybe<OpsgenieInput>;
2806
2809
  pagerDuty?: Maybe<PagerDutyInput>;
2807
2810
  sentry?: Maybe<SentrySettingsInput>;
2808
2811
  slack?: Maybe<SlackSettingsInput>;
@@ -4650,6 +4653,10 @@ export declare type Mutation = {
4650
4653
  * @deprecated Not available.
4651
4654
  */
4652
4655
  integrationLoom: IntegrationPayload;
4656
+ /** [INTERNAL] Integrates the organization with Opsgenie. */
4657
+ integrationOpsgenieConnect: IntegrationPayload;
4658
+ /** [INTERNAL] Refresh Opsgenie schedule mappings. */
4659
+ integrationOpsgenieRefreshScheduleMappings: IntegrationPayload;
4653
4660
  /** [INTERNAL] Integrates the organization with PagerDuty. */
4654
4661
  integrationPagerDutyConnect: IntegrationPayload;
4655
4662
  /** [INTERNAL] Refresh PagerDuty schedule mappings. */
@@ -5288,6 +5295,9 @@ export declare type MutationIntegrationJiraPersonalArgs = {
5288
5295
  export declare type MutationIntegrationJiraUpdateArgs = {
5289
5296
  input: JiraUpdateInput;
5290
5297
  };
5298
+ export declare type MutationIntegrationOpsgenieConnectArgs = {
5299
+ apiKey: Scalars["String"];
5300
+ };
5291
5301
  export declare type MutationIntegrationPagerDutyConnectArgs = {
5292
5302
  code: Scalars["String"];
5293
5303
  redirectUri: Scalars["String"];
@@ -6578,6 +6588,16 @@ export declare type OnboardingCustomerSurvey = {
6578
6588
  companyRole?: Maybe<Scalars["String"]>;
6579
6589
  companySize?: Maybe<Scalars["String"]>;
6580
6590
  };
6591
+ export declare type OpsgenieInput = {
6592
+ /** The date when the Opsgenie API failed with an unauthorized error. */
6593
+ apiFailedWithUnauthorizedErrorAt: Scalars["DateTime"];
6594
+ };
6595
+ /** Opsgenie specific settings. */
6596
+ export declare type OpsgenieSettings = {
6597
+ __typename?: "OpsgenieSettings";
6598
+ /** The date when the Opsgenie API failed with an unauthorized error. */
6599
+ apiFailedWithUnauthorizedErrorAt: Scalars["DateTime"];
6600
+ };
6581
6601
  /** An organization. Organizations are root-level objects that contain user accounts and teams. */
6582
6602
  export declare type Organization = Node & {
6583
6603
  __typename?: "Organization";
@@ -6962,32 +6982,14 @@ export declare type PageInfo = {
6962
6982
  startCursor?: Maybe<Scalars["String"]>;
6963
6983
  };
6964
6984
  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"];
6985
+ /** The date when the PagerDuty API failed with an unauthorized error. */
6986
+ apiFailedWithUnauthorizedErrorAt: Scalars["DateTime"];
6985
6987
  };
6986
6988
  /** PagerDuty specific settings. */
6987
6989
  export declare type PagerDutySettings = {
6988
6990
  __typename?: "PagerDutySettings";
6989
- /** Metadata about a PagerDuty schedule. */
6990
- scheduleMapping: Array<PagerDutyScheduleInfo>;
6991
+ /** The date when the PagerDuty API failed with an unauthorized error. */
6992
+ apiFailedWithUnauthorizedErrorAt: Scalars["DateTime"];
6991
6993
  };
6992
6994
  /** How to treat NULL values, whether they should appear first or last */
6993
6995
  export declare enum PaginationNulls {
@@ -8706,6 +8708,7 @@ export declare type QueryIssueFigmaFileKeySearchArgs = {
8706
8708
  orderBy?: Maybe<PaginationOrderBy>;
8707
8709
  };
8708
8710
  export declare type QueryIssueFilterSuggestionArgs = {
8711
+ projectId?: Maybe<Scalars["String"]>;
8709
8712
  prompt: Scalars["String"];
8710
8713
  };
8711
8714
  export declare type QueryIssueImportCheckCsvArgs = {
@@ -9671,8 +9674,6 @@ export declare type Team = Node & {
9671
9674
  issueEstimationType: Scalars["String"];
9672
9675
  /** Whether issues without priority should be sorted first. */
9673
9676
  issueOrderingNoPriorityFirst: Scalars["Boolean"];
9674
- /** [DEPRECATED] Whether to move issues to bottom of the column when changing state. Use setIssueSortOrderOnStateChange instead. */
9675
- issueSortOrderDefaultToBottom: Scalars["Boolean"];
9676
9677
  /** Issues associated with the team. */
9677
9678
  issues: IssueConnection;
9678
9679
  /** [INTERNAL] Whether new users should join this team by default. */
@@ -9919,8 +9920,6 @@ export declare type TeamCreateInput = {
9919
9920
  issueEstimationType?: Maybe<Scalars["String"]>;
9920
9921
  /** Whether issues without priority should be sorted first. */
9921
9922
  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
9923
  /** The key of the team. If not given, the key will be generated based on the name of the team. */
9925
9924
  key?: Maybe<Scalars["String"]>;
9926
9925
  /** The workflow state into which issues are moved when they are marked as a duplicate of another issue. */
@@ -10161,8 +10160,6 @@ export declare type TeamUpdateInput = {
10161
10160
  issueEstimationType?: Maybe<Scalars["String"]>;
10162
10161
  /** Whether issues without priority should be sorted first. */
10163
10162
  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
10163
  /** Whether new users should join this team by default. Mutation restricted to workspace admins! */
10167
10164
  joinByDefault?: Maybe<Scalars["Boolean"]>;
10168
10165
  /** The key of the team. */
@@ -12330,7 +12327,7 @@ export declare type AuthOrganizationFragment = {
12330
12327
  } & Pick<AuthOrganization, "allowedAuthServices" | "previousUrlKeys" | "serviceId" | "logoUrl" | "name" | "urlKey" | "deletionRequestedAt" | "id" | "samlEnabled" | "scimEnabled" | "userCount">;
12331
12328
  export declare type TeamFragment = {
12332
12329
  __typename: "Team";
12333
- } & Pick<Team, "cycleIssueAutoAssignCompleted" | "cycleLockToActive" | "cycleIssueAutoAssignStarted" | "cycleCalenderUrl" | "upcomingCycleCount" | "issueCount" | "autoArchivePeriod" | "autoClosePeriod" | "autoCloseStateId" | "cycleCooldownTime" | "cycleStartDay" | "cycleDuration" | "icon" | "defaultTemplateForMembersId" | "defaultTemplateForNonMembersId" | "issueEstimationType" | "updatedAt" | "color" | "description" | "name" | "key" | "archivedAt" | "createdAt" | "timezone" | "id" | "inviteHash" | "defaultIssueEstimate" | "setIssueSortOrderOnStateChange" | "requirePriorityToLeaveTriage" | "issueOrderingNoPriorityFirst" | "private" | "cyclesEnabled" | "issueEstimationExtended" | "issueEstimationAllowZero" | "groupIssueHistory" | "slackIssueComments" | "slackNewIssue" | "slackIssueStatuses" | "triageEnabled" | "issueSortOrderDefaultToBottom"> & {
12330
+ } & Pick<Team, "cycleIssueAutoAssignCompleted" | "cycleLockToActive" | "cycleIssueAutoAssignStarted" | "cycleCalenderUrl" | "upcomingCycleCount" | "issueCount" | "autoArchivePeriod" | "autoClosePeriod" | "autoCloseStateId" | "cycleCooldownTime" | "cycleStartDay" | "cycleDuration" | "icon" | "defaultTemplateForMembersId" | "defaultTemplateForNonMembersId" | "issueEstimationType" | "updatedAt" | "color" | "description" | "name" | "key" | "archivedAt" | "createdAt" | "timezone" | "id" | "inviteHash" | "defaultIssueEstimate" | "setIssueSortOrderOnStateChange" | "requirePriorityToLeaveTriage" | "issueOrderingNoPriorityFirst" | "private" | "cyclesEnabled" | "issueEstimationExtended" | "issueEstimationAllowZero" | "groupIssueHistory" | "slackIssueComments" | "slackNewIssue" | "slackIssueStatuses" | "triageEnabled"> & {
12334
12331
  integrationsSettings?: Maybe<{
12335
12332
  __typename?: "IntegrationsSettings";
12336
12333
  } & Pick<IntegrationsSettings, "id">>;
@@ -12500,9 +12497,6 @@ export declare type TeamRepoMappingFragment = {
12500
12497
  export declare type JiraProjectDataFragment = {
12501
12498
  __typename: "JiraProjectData";
12502
12499
  } & Pick<JiraProjectData, "id" | "key" | "name">;
12503
- export declare type PagerDutyScheduleInfoFragment = {
12504
- __typename: "PagerDutyScheduleInfo";
12505
- } & Pick<PagerDutyScheduleInfo, "scheduleId" | "scheduleName" | "url">;
12506
12500
  export declare type GitHubPersonalSettingsFragment = {
12507
12501
  __typename: "GitHubPersonalSettings";
12508
12502
  } & Pick<GitHubPersonalSettings, "login">;
@@ -12694,13 +12688,12 @@ export declare type UploadFileFragment = {
12694
12688
  __typename?: "UploadFileHeader";
12695
12689
  } & UploadFileHeaderFragment>;
12696
12690
  };
12691
+ export declare type OpsgenieSettingsFragment = {
12692
+ __typename: "OpsgenieSettings";
12693
+ } & Pick<OpsgenieSettings, "apiFailedWithUnauthorizedErrorAt">;
12697
12694
  export declare type PagerDutySettingsFragment = {
12698
12695
  __typename: "PagerDutySettings";
12699
- } & {
12700
- scheduleMapping: Array<{
12701
- __typename?: "PagerDutyScheduleInfo";
12702
- } & PagerDutyScheduleInfoFragment>;
12703
- };
12696
+ } & Pick<PagerDutySettings, "apiFailedWithUnauthorizedErrorAt">;
12704
12697
  export declare type UserAuthorizedApplicationFragment = {
12705
12698
  __typename: "UserAuthorizedApplication";
12706
12699
  } & Pick<UserAuthorizedApplication, "name" | "approvalErrorCode" | "imageUrl" | "description" | "developer" | "id" | "clientId" | "developerUrl" | "webhooksEnabled" | "createdByLinear" | "isAuthorized">;
@@ -12776,6 +12769,9 @@ export declare type IntegrationSettingsFragment = {
12776
12769
  notion?: Maybe<{
12777
12770
  __typename?: "NotionSettings";
12778
12771
  } & NotionSettingsFragment>;
12772
+ opsgenie?: Maybe<{
12773
+ __typename?: "OpsgenieSettings";
12774
+ } & OpsgenieSettingsFragment>;
12779
12775
  pagerDuty?: Maybe<{
12780
12776
  __typename?: "PagerDutySettings";
12781
12777
  } & PagerDutySettingsFragment>;
@@ -15192,6 +15188,7 @@ export declare type IssueFigmaFileKeySearchQuery = {
15192
15188
  } & IssueConnectionFragment;
15193
15189
  };
15194
15190
  export declare type IssueFilterSuggestionQueryVariables = Exact<{
15191
+ projectId?: Maybe<Scalars["String"]>;
15195
15192
  prompt: Scalars["String"];
15196
15193
  }>;
15197
15194
  export declare type IssueFilterSuggestionQuery = {
@@ -19166,7 +19163,7 @@ export declare const JiraLinearMappingFragmentDoc: DocumentNode<JiraLinearMappin
19166
19163
  export declare const JiraSettingsFragmentDoc: DocumentNode<JiraSettingsFragment, unknown>;
19167
19164
  export declare const JiraPersonalSettingsFragmentDoc: DocumentNode<JiraPersonalSettingsFragment, unknown>;
19168
19165
  export declare const NotionSettingsFragmentDoc: DocumentNode<NotionSettingsFragment, unknown>;
19169
- export declare const PagerDutyScheduleInfoFragmentDoc: DocumentNode<PagerDutyScheduleInfoFragment, unknown>;
19166
+ export declare const OpsgenieSettingsFragmentDoc: DocumentNode<OpsgenieSettingsFragment, unknown>;
19170
19167
  export declare const PagerDutySettingsFragmentDoc: DocumentNode<PagerDutySettingsFragment, unknown>;
19171
19168
  export declare const SentrySettingsFragmentDoc: DocumentNode<SentrySettingsFragment, unknown>;
19172
19169
  export declare const SlackSettingsFragmentDoc: DocumentNode<SlackSettingsFragment, unknown>;
@@ -19797,6 +19794,7 @@ export declare const IssueFigmaFileKeySearchDocument: DocumentNode<IssueFigmaFil
19797
19794
  orderBy?: Maybe<PaginationOrderBy> | undefined;
19798
19795
  }>>;
19799
19796
  export declare const IssueFilterSuggestionDocument: DocumentNode<IssueFilterSuggestionQuery, Exact<{
19797
+ projectId?: Maybe<string> | undefined;
19800
19798
  prompt: Scalars["String"];
19801
19799
  }>>;
19802
19800
  export declare const IssueImportCheckCsvDocument: DocumentNode<IssueImportCheckCsvQuery, Exact<{