@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.
@@ -608,7 +608,7 @@ export declare class AuthUser extends Request {
608
608
  id: string;
609
609
  /** The user's full name. */
610
610
  name: string;
611
- /** User account id the user belongs to. */
611
+ /** User account ID the user belongs to. */
612
612
  userAccountId: string;
613
613
  /** Organization the user belongs to. */
614
614
  organization: AuthOrganization;
@@ -2157,6 +2157,7 @@ export declare class IntegrationSettings extends Request {
2157
2157
  jira?: JiraSettings;
2158
2158
  jiraPersonal?: JiraPersonalSettings;
2159
2159
  notion?: NotionSettings;
2160
+ opsgenie?: OpsgenieSettings;
2160
2161
  pagerDuty?: PagerDutySettings;
2161
2162
  sentry?: SentrySettings;
2162
2163
  slack?: SlackSettings;
@@ -3584,6 +3585,17 @@ export declare class OauthToken extends Request {
3584
3585
  /** Auth user who authorized the OAuth application. */
3585
3586
  user: AuthUser;
3586
3587
  }
3588
+ /**
3589
+ * Opsgenie specific settings.
3590
+ *
3591
+ * @param request - function to call the graphql client
3592
+ * @param data - L.OpsgenieSettingsFragment response data
3593
+ */
3594
+ export declare class OpsgenieSettings extends Request {
3595
+ constructor(request: LinearRequest, data: L.OpsgenieSettingsFragment);
3596
+ /** The date when the Opsgenie API failed with an unauthorized error. */
3597
+ apiFailedWithUnauthorizedErrorAt: Date;
3598
+ }
3587
3599
  /**
3588
3600
  * An organization. Organizations are root-level objects that contain user accounts and teams.
3589
3601
  *
@@ -3867,21 +3879,6 @@ export declare class PageInfo extends Request {
3867
3879
  /** Cursor representing the first result in the paginated results. */
3868
3880
  startCursor?: string;
3869
3881
  }
3870
- /**
3871
- * Metadata about a PagerDuty schedule.
3872
- *
3873
- * @param request - function to call the graphql client
3874
- * @param data - L.PagerDutyScheduleInfoFragment response data
3875
- */
3876
- export declare class PagerDutyScheduleInfo extends Request {
3877
- constructor(request: LinearRequest, data: L.PagerDutyScheduleInfoFragment);
3878
- /** The PagerDuty schedule id. */
3879
- scheduleId: string;
3880
- /** The PagerDuty schedule name. */
3881
- scheduleName: string;
3882
- /** The URL of the schedule in PagerDuty's web app. */
3883
- url: string;
3884
- }
3885
3882
  /**
3886
3883
  * PagerDuty specific settings.
3887
3884
  *
@@ -3890,8 +3887,8 @@ export declare class PagerDutyScheduleInfo extends Request {
3890
3887
  */
3891
3888
  export declare class PagerDutySettings extends Request {
3892
3889
  constructor(request: LinearRequest, data: L.PagerDutySettingsFragment);
3893
- /** Metadata about a PagerDuty schedule. */
3894
- scheduleMapping: PagerDutyScheduleInfo[];
3890
+ /** The date when the PagerDuty API failed with an unauthorized error. */
3891
+ apiFailedWithUnauthorizedErrorAt: Date;
3895
3892
  }
3896
3893
  /**
3897
3894
  * The paid subscription of an organization.
@@ -5128,7 +5125,7 @@ export declare class Team extends Request {
5128
5125
  issueEstimationType: string;
5129
5126
  /** Whether issues without priority should be sorted first. */
5130
5127
  issueOrderingNoPriorityFirst: boolean;
5131
- /** [DEPRECATED] Whether to move issues to bottom of the column when changing state. Use setIssueSortOrderOnStateChange instead. */
5128
+ /** [DEPRECATED] Whether to move issues to bottom of the column when changing state. */
5132
5129
  issueSortOrderDefaultToBottom: boolean;
5133
5130
  /** The team's unique key. The key is used in URLs. */
5134
5131
  key: string;
@@ -5876,6 +5873,16 @@ export declare class UserSettings extends Request {
5876
5873
  notificationPreferences: L.Scalars["JSONObject"];
5877
5874
  /** Whether to show full user names instead of display names. */
5878
5875
  showFullUserNames: boolean;
5876
+ /** Whether this user is subscribed to changelog email or not. */
5877
+ subscribedToChangelog: boolean;
5878
+ /** Whether this user is subscribed to DPA emails or not. */
5879
+ subscribedToDPA: boolean;
5880
+ /** Whether this user is subscribed to invite accepted emails or not. */
5881
+ subscribedToInviteAccepted: boolean;
5882
+ /** Whether this user is subscribed to privacy and legal update emails or not. */
5883
+ subscribedToPrivacyLegalUpdates: boolean;
5884
+ /** Whether this user is subscribed to unread notifications reminder emails or not. */
5885
+ subscribedToUnreadNotificationsReminder: boolean;
5879
5886
  /** The email types the user has unsubscribed from. */
5880
5887
  unsubscribedFrom: string[];
5881
5888
  /**
@@ -6826,9 +6833,10 @@ export declare class IssueFilterSuggestionQuery extends Request {
6826
6833
  * Call the IssueFilterSuggestion query and return a IssueFilterSuggestionPayload
6827
6834
  *
6828
6835
  * @param prompt - required prompt to pass to issueFilterSuggestion
6836
+ * @param variables - variables without 'prompt' to pass into the IssueFilterSuggestionQuery
6829
6837
  * @returns parsed response from IssueFilterSuggestionQuery
6830
6838
  */
6831
- fetch(prompt: string): LinearFetch<IssueFilterSuggestionPayload>;
6839
+ fetch(prompt: string, variables?: Omit<L.IssueFilterSuggestionQueryVariables, "prompt">): LinearFetch<IssueFilterSuggestionPayload>;
6832
6840
  }
6833
6841
  /**
6834
6842
  * A fetchable IssueImportCheckCsv Query
@@ -12456,9 +12464,10 @@ export declare class LinearSdk extends Request {
12456
12464
  * Suggests filters for an issue view based on a text prompt.
12457
12465
  *
12458
12466
  * @param prompt - required prompt to pass to issueFilterSuggestion
12467
+ * @param variables - variables without 'prompt' to pass into the IssueFilterSuggestionQuery
12459
12468
  * @returns IssueFilterSuggestionPayload
12460
12469
  */
12461
- issueFilterSuggestion(prompt: string): LinearFetch<IssueFilterSuggestionPayload>;
12470
+ issueFilterSuggestion(prompt: string, variables?: Omit<L.IssueFilterSuggestionQueryVariables, "prompt">): LinearFetch<IssueFilterSuggestionPayload>;
12462
12471
  /**
12463
12472
  * Checks a CSV file validity against a specific import service.
12464
12473
  *
@@ -12974,7 +12983,7 @@ export declare class LinearSdk extends Request {
12974
12983
  */
12975
12984
  attachmentLinkZendesk(issueId: string, ticketId: string, variables?: Omit<L.AttachmentLinkZendeskMutationVariables, "issueId" | "ticketId">): LinearFetch<AttachmentPayload>;
12976
12985
  /**
12977
- * Unsyncs an existing synced Slack attachment.
12986
+ * [DEPRECATED] Unsyncs an existing synced Slack attachment.
12978
12987
  *
12979
12988
  * @param id - required id to pass to attachmentUnsyncSlack
12980
12989
  * @returns AttachmentPayload