@linear/sdk 10.0.0 → 12.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.
@@ -410,6 +410,23 @@ export declare class AuthIntegration extends Request {
410
410
  /** The unique identifier of the entity. */
411
411
  id: string;
412
412
  }
413
+ /**
414
+ * AuthOauthClient model
415
+ *
416
+ * @param request - function to call the graphql client
417
+ * @param data - L.AuthOauthClientFragment response data
418
+ */
419
+ export declare class AuthOauthClient extends Request {
420
+ constructor(request: LinearRequest, data: L.AuthOauthClientFragment);
421
+ /** OAuth application's client ID. */
422
+ clientId: string;
423
+ /** OAuth application's client secret. */
424
+ clientSecret: string;
425
+ /** The unique identifier of the entity. */
426
+ id: string;
427
+ /** List of allowed redirect URIs for the application. */
428
+ redirectUris: string[];
429
+ }
413
430
  /**
414
431
  * An organization. Organizations are root-level objects that contain users and teams.
415
432
  *
@@ -488,6 +505,8 @@ export declare class AuthUser extends Request {
488
505
  */
489
506
  export declare class AuthenticationSession extends Request {
490
507
  constructor(request: LinearRequest, data: L.AuthenticationSessionFragment);
508
+ /** Used web browser. */
509
+ browserType?: string;
491
510
  /** Client used for the session */
492
511
  client?: string;
493
512
  /** Country codes of all seen locations. */
@@ -524,6 +543,8 @@ export declare class AuthenticationSession extends Request {
524
543
  */
525
544
  export declare class AuthenticationSessionResponse extends Request {
526
545
  constructor(request: LinearRequest, data: L.AuthenticationSessionResponseFragment);
546
+ /** Used web browser. */
547
+ browserType?: string;
527
548
  /** Client used for the session */
528
549
  client?: string;
529
550
  /** Country codes of all seen locations. */
@@ -571,8 +592,6 @@ export declare class Comment extends Request {
571
592
  archivedAt?: Date;
572
593
  /** The comment content in markdown format. */
573
594
  body: string;
574
- /** The comment content as a Prosemirror document. */
575
- bodyData: string;
576
595
  /** The time at which the entity was created. */
577
596
  createdAt: Date;
578
597
  /** The time user edited the comment. */
@@ -594,7 +613,7 @@ export declare class Comment extends Request {
594
613
  /** The bot that created the comment */
595
614
  botActor?: ActorBot;
596
615
  /** The document content that the comment is associated with. */
597
- documentContent: DocumentContent;
616
+ documentContent?: DocumentContent;
598
617
  /** The issue that the comment is associated with. */
599
618
  get issue(): LinearFetch<Issue> | undefined;
600
619
  /** The parent comment under which the current comment is nested. */
@@ -746,6 +765,8 @@ export declare class CustomView extends Request {
746
765
  icon?: string;
747
766
  /** The unique identifier of the entity. */
748
767
  id: string;
768
+ /** The model name of the custom view. */
769
+ modelName: string;
749
770
  /** The name of the custom view. */
750
771
  name: string;
751
772
  /** Whether the custom view is shared with everyone in the organization. */
@@ -1108,8 +1129,6 @@ export declare class DocumentContent extends Request {
1108
1129
  archivedAt?: Date;
1109
1130
  /** The document content in markdown format. */
1110
1131
  content?: string;
1111
- /** The document content as JSON. */
1112
- contentData?: Record<string, unknown>;
1113
1132
  /** The document content state as a base64 encoded string. */
1114
1133
  contentState?: string;
1115
1134
  /** The time at which the entity was created. */
@@ -1143,8 +1162,6 @@ export declare class DocumentContentHistory extends Request {
1143
1162
  actorIds: string[];
1144
1163
  /** The time at which the entity was archived. Null if the entity has not been archived. */
1145
1164
  archivedAt?: Date;
1146
- /** The document content as JSON. */
1147
- contentData?: Record<string, unknown>;
1148
1165
  /** The timestamp associated with the DocumentContent when it was originally saved */
1149
1166
  contentDataSnapshotAt: Date;
1150
1167
  /** The time at which the entity was created. */
@@ -1183,8 +1200,6 @@ export declare class DocumentContentHistoryType extends Request {
1183
1200
  constructor(request: LinearRequest, data: L.DocumentContentHistoryTypeFragment);
1184
1201
  /** The ID of the author of the change. */
1185
1202
  actorIds?: string[];
1186
- /** The document content as Prosemirror document. */
1187
- contentData: Record<string, unknown>;
1188
1203
  /** The date when the document content history snapshot was taken. This can be different than createdAt since the content is captured from its state at the previously known updatedAt timestamp in the case of an update. On document create, these timestamps can be the same. */
1189
1204
  contentDataSnapshotAt: Date;
1190
1205
  /** The date when the document content history entry was created. */
@@ -1750,6 +1765,7 @@ export declare class IntegrationSettings extends Request {
1750
1765
  googleSheets?: GoogleSheetsSettings;
1751
1766
  intercom?: IntercomSettings;
1752
1767
  jira?: JiraSettings;
1768
+ jiraPersonal?: JiraPersonalSettings;
1753
1769
  notion?: NotionSettings;
1754
1770
  pagerDuty?: PagerDutySettings;
1755
1771
  sentry?: SentrySettings;
@@ -2690,11 +2706,24 @@ export declare class IssueSearchResultConnection extends Connection<IssueSearchR
2690
2706
  */
2691
2707
  export declare class JiraLinearMapping extends Request {
2692
2708
  constructor(request: LinearRequest, data: L.JiraLinearMappingFragment);
2709
+ /** Whether the sync for this mapping is bidirectional. */
2710
+ bidirectional?: boolean;
2693
2711
  /** The Jira id for this project. */
2694
2712
  jiraProjectId: string;
2695
2713
  /** The Linear team id to map to the given project. */
2696
2714
  linearTeamId: string;
2697
2715
  }
2716
+ /**
2717
+ * Jira personal specific settings.
2718
+ *
2719
+ * @param request - function to call the graphql client
2720
+ * @param data - L.JiraPersonalSettingsFragment response data
2721
+ */
2722
+ export declare class JiraPersonalSettings extends Request {
2723
+ constructor(request: LinearRequest, data: L.JiraPersonalSettingsFragment);
2724
+ /** The name of the Jira site currently authorized through the integration. */
2725
+ siteName?: string;
2726
+ }
2698
2727
  /**
2699
2728
  * Metadata about a Jira project.
2700
2729
  *
@@ -4511,6 +4540,8 @@ export declare class SlackChannelNameMapping extends Request {
4511
4540
  autoCreateOnEmoji?: boolean;
4512
4541
  /** Whether or not top-level messages in this channel should automatically create Asks */
4513
4542
  autoCreateOnMessage?: boolean;
4543
+ /** Whether or not we the Linear Asks bot has been added to this Slack channel */
4544
+ botAdded?: boolean;
4514
4545
  /** The Slack channel ID. */
4515
4546
  id: string;
4516
4547
  /** Whether or not the Slack channel is private */
@@ -7165,13 +7196,12 @@ export declare class AttachmentLinkGitLabMrMutation extends Request {
7165
7196
  *
7166
7197
  * @param issueId - required issueId to pass to attachmentLinkGitLabMR
7167
7198
  * @param number - required number to pass to attachmentLinkGitLabMR
7168
- * @param owner - required owner to pass to attachmentLinkGitLabMR
7169
- * @param repo - required repo to pass to attachmentLinkGitLabMR
7199
+ * @param projectPathWithNamespace - required projectPathWithNamespace to pass to attachmentLinkGitLabMR
7170
7200
  * @param url - required url to pass to attachmentLinkGitLabMR
7171
- * @param variables - variables without 'issueId', 'number', 'owner', 'repo', 'url' to pass into the AttachmentLinkGitLabMrMutation
7201
+ * @param variables - variables without 'issueId', 'number', 'projectPathWithNamespace', 'url' to pass into the AttachmentLinkGitLabMrMutation
7172
7202
  * @returns parsed response from AttachmentLinkGitLabMrMutation
7173
7203
  */
7174
- fetch(issueId: string, number: number, owner: string, repo: string, url: string, variables?: Omit<L.AttachmentLinkGitLabMrMutationVariables, "issueId" | "number" | "owner" | "repo" | "url">): LinearFetch<AttachmentPayload>;
7204
+ fetch(issueId: string, number: number, projectPathWithNamespace: string, url: string, variables?: Omit<L.AttachmentLinkGitLabMrMutationVariables, "issueId" | "number" | "projectPathWithNamespace" | "url">): LinearFetch<AttachmentPayload>;
7175
7205
  }
7176
7206
  /**
7177
7207
  * A fetchable AttachmentLinkIntercom Mutation
@@ -7833,6 +7863,21 @@ export declare class IntegrationFrontMutation extends Request {
7833
7863
  */
7834
7864
  fetch(code: string, redirectUri: string): LinearFetch<IntegrationPayload>;
7835
7865
  }
7866
+ /**
7867
+ * A fetchable IntegrationGitHubPersonal Mutation
7868
+ *
7869
+ * @param request - function to call the graphql client
7870
+ */
7871
+ export declare class IntegrationGitHubPersonalMutation extends Request {
7872
+ constructor(request: LinearRequest);
7873
+ /**
7874
+ * Call the IntegrationGitHubPersonal mutation and return a IntegrationPayload
7875
+ *
7876
+ * @param code - required code to pass to integrationGitHubPersonal
7877
+ * @returns parsed response from IntegrationGitHubPersonalMutation
7878
+ */
7879
+ fetch(code: string): LinearFetch<IntegrationPayload>;
7880
+ }
7836
7881
  /**
7837
7882
  * A fetchable CreateIntegrationGithubCommit Mutation
7838
7883
  *
@@ -10226,7 +10271,7 @@ export declare class Comment_DocumentContentQuery extends Request {
10226
10271
  *
10227
10272
  * @returns parsed response from Comment_DocumentContentQuery
10228
10273
  */
10229
- fetch(): LinearFetch<DocumentContent>;
10274
+ fetch(): LinearFetch<DocumentContent | undefined>;
10230
10275
  }
10231
10276
  /**
10232
10277
  * A fetchable Cycle_Issues Query
@@ -11973,13 +12018,12 @@ export declare class LinearSdk extends Request {
11973
12018
  *
11974
12019
  * @param issueId - required issueId to pass to attachmentLinkGitLabMR
11975
12020
  * @param number - required number to pass to attachmentLinkGitLabMR
11976
- * @param owner - required owner to pass to attachmentLinkGitLabMR
11977
- * @param repo - required repo to pass to attachmentLinkGitLabMR
12021
+ * @param projectPathWithNamespace - required projectPathWithNamespace to pass to attachmentLinkGitLabMR
11978
12022
  * @param url - required url to pass to attachmentLinkGitLabMR
11979
- * @param variables - variables without 'issueId', 'number', 'owner', 'repo', 'url' to pass into the AttachmentLinkGitLabMrMutation
12023
+ * @param variables - variables without 'issueId', 'number', 'projectPathWithNamespace', 'url' to pass into the AttachmentLinkGitLabMrMutation
11980
12024
  * @returns AttachmentPayload
11981
12025
  */
11982
- attachmentLinkGitLabMR(issueId: string, number: number, owner: string, repo: string, url: string, variables?: Omit<L.AttachmentLinkGitLabMrMutationVariables, "issueId" | "number" | "owner" | "repo" | "url">): LinearFetch<AttachmentPayload>;
12026
+ attachmentLinkGitLabMR(issueId: string, number: number, projectPathWithNamespace: string, url: string, variables?: Omit<L.AttachmentLinkGitLabMrMutationVariables, "issueId" | "number" | "projectPathWithNamespace" | "url">): LinearFetch<AttachmentPayload>;
11983
12027
  /**
11984
12028
  * Link an existing Intercom conversation to an issue.
11985
12029
  *
@@ -12304,6 +12348,13 @@ export declare class LinearSdk extends Request {
12304
12348
  * @returns IntegrationPayload
12305
12349
  */
12306
12350
  integrationFront(code: string, redirectUri: string): LinearFetch<IntegrationPayload>;
12351
+ /**
12352
+ * Connect your GitHub account to Linear.
12353
+ *
12354
+ * @param code - required code to pass to integrationGitHubPersonal
12355
+ * @returns IntegrationPayload
12356
+ */
12357
+ integrationGitHubPersonal(code: string): LinearFetch<IntegrationPayload>;
12307
12358
  /**
12308
12359
  * Generates a webhook for the GitHub commit integration.
12309
12360
  *
@@ -13223,7 +13274,7 @@ export declare class LinearSdk extends Request {
13223
13274
  */
13224
13275
  updateUserFlag(flag: L.UserFlagType, operation: L.UserFlagUpdateOperation): LinearFetch<UserSettingsFlagPayload>;
13225
13276
  /**
13226
- * Connects the GitHub user to this Linear account via OAuth2.
13277
+ * [DEPRECATED] Connects the GitHub user to this Linear account via OAuth2.
13227
13278
  *
13228
13279
  * @param code - required code to pass to userGitHubConnect
13229
13280
  * @returns UserPayload