@linear/sdk 1.21.0 → 1.22.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.
@@ -225,6 +225,61 @@ export declare class AttachmentPayload extends Request {
225
225
  /** The issue attachment that was created. */
226
226
  get attachment(): LinearFetch<Attachment> | undefined;
227
227
  }
228
+ /**
229
+ * Workspace audit log entry object.
230
+ *
231
+ * @param request - function to call the graphql client
232
+ * @param data - L.AuditEntryFragment response data
233
+ */
234
+ export declare class AuditEntry extends Request {
235
+ private _actor?;
236
+ constructor(request: LinearRequest, data: L.AuditEntryFragment);
237
+ /** The ID of the user that caused the audit entry to be created. */
238
+ actorId?: string;
239
+ /** The time at which the entity was archived. Null if the entity has not been archived. */
240
+ archivedAt?: Date;
241
+ /** Country code of request resulting to audit entry. */
242
+ countryCode?: string;
243
+ /** The time at which the entity was created. */
244
+ createdAt: Date;
245
+ /** The unique identifier of the entity. */
246
+ id: string;
247
+ /** IP from actor when entry was recorded. */
248
+ ip?: string;
249
+ /** Additional metadata related to the audit entry. */
250
+ metadata?: Record<string, unknown>;
251
+ type: string;
252
+ /**
253
+ * The last time at which the entity was updated. This is the same as the creation time if the
254
+ * entity hasn't been update after creation.
255
+ */
256
+ updatedAt: Date;
257
+ /** The user that caused the audit entry to be created. */
258
+ get actor(): LinearFetch<User> | undefined;
259
+ }
260
+ /**
261
+ * AuditEntryConnection model
262
+ *
263
+ * @param request - function to call the graphql client
264
+ * @param fetch - function to trigger a refetch of this AuditEntryConnection model
265
+ * @param data - AuditEntryConnection response data
266
+ */
267
+ export declare class AuditEntryConnection extends Connection<AuditEntry> {
268
+ constructor(request: LinearRequest, fetch: (connection?: LinearConnectionVariables) => LinearFetch<LinearConnection<AuditEntry> | undefined>, data: L.AuditEntryConnectionFragment);
269
+ }
270
+ /**
271
+ * AuditEntryType model
272
+ *
273
+ * @param request - function to call the graphql client
274
+ * @param data - L.AuditEntryTypeFragment response data
275
+ */
276
+ export declare class AuditEntryType extends Request {
277
+ constructor(request: LinearRequest, data: L.AuditEntryTypeFragment);
278
+ /** Description of the audit entry type. */
279
+ description: string;
280
+ /** The audit entry type. */
281
+ type: string;
282
+ }
228
283
  /**
229
284
  * AuthResolverResponse model
230
285
  *
@@ -272,6 +327,8 @@ export declare class AuthorizedApplication extends Request {
272
327
  name: string;
273
328
  /** Scopes that are authorized for this application for a given user. */
274
329
  scope: string[];
330
+ /** Whether or not webhooks are enabled for the application. */
331
+ webhooksEnabled: boolean;
275
332
  }
276
333
  /**
277
334
  * BillingDetailsPayload model
@@ -459,6 +516,8 @@ export declare class CustomView extends Request {
459
516
  createdAt: Date;
460
517
  /** The description of the custom view. */
461
518
  description?: string;
519
+ /** [Alpha] The filter applied to issues in the custom view. */
520
+ filterData: Record<string, unknown>;
462
521
  /** The filters applied to issues in the custom view. */
463
522
  filters: Record<string, unknown>;
464
523
  /** The icon of the custom view. */
@@ -609,9 +668,80 @@ export declare class DebugPayload extends Request {
609
668
  */
610
669
  export declare class DependencyResponse extends Request {
611
670
  constructor(request: LinearRequest, data: L.DependencyResponseFragment);
612
- /** A JSON serialized collection of model objects loaded from the archive */
671
+ /** A JSON serialized collection of dependencies. */
613
672
  dependencies: string;
614
673
  }
674
+ /**
675
+ * A document for a project.
676
+ *
677
+ * @param request - function to call the graphql client
678
+ * @param data - L.DocumentFragment response data
679
+ */
680
+ export declare class Document extends Request {
681
+ private _creator;
682
+ private _project;
683
+ private _updatedBy;
684
+ constructor(request: LinearRequest, data: L.DocumentFragment);
685
+ /** The time at which the entity was archived. Null if the entity has not been archived. */
686
+ archivedAt?: Date;
687
+ /** The color of the icon. */
688
+ color?: string;
689
+ /** The document content in markdown format. */
690
+ content?: string;
691
+ /** The document content as JSON. */
692
+ contentData?: Record<string, unknown>;
693
+ /** The time at which the entity was created. */
694
+ createdAt: Date;
695
+ /** The icon of the document. */
696
+ icon?: string;
697
+ /** The unique identifier of the entity. */
698
+ id: string;
699
+ /** The document's unique URL slug. */
700
+ slugId: string;
701
+ /** The document title. */
702
+ title: string;
703
+ /**
704
+ * The last time at which the entity was updated. This is the same as the creation time if the
705
+ * entity hasn't been update after creation.
706
+ */
707
+ updatedAt: Date;
708
+ /** The user who created the document. */
709
+ get creator(): LinearFetch<User> | undefined;
710
+ /** The project that the document is associated with. */
711
+ get project(): LinearFetch<Project> | undefined;
712
+ /** The user who last updated the document. */
713
+ get updatedBy(): LinearFetch<User> | undefined;
714
+ /** Deletes a document. */
715
+ delete(): LinearFetch<ArchivePayload>;
716
+ /** Updates a document. */
717
+ update(input: L.DocumentUpdateInput): LinearFetch<DocumentPayload>;
718
+ }
719
+ /**
720
+ * DocumentConnection model
721
+ *
722
+ * @param request - function to call the graphql client
723
+ * @param fetch - function to trigger a refetch of this DocumentConnection model
724
+ * @param data - DocumentConnection response data
725
+ */
726
+ export declare class DocumentConnection extends Connection<Document> {
727
+ constructor(request: LinearRequest, fetch: (connection?: LinearConnectionVariables) => LinearFetch<LinearConnection<Document> | undefined>, data: L.DocumentConnectionFragment);
728
+ }
729
+ /**
730
+ * DocumentPayload model
731
+ *
732
+ * @param request - function to call the graphql client
733
+ * @param data - L.DocumentPayloadFragment response data
734
+ */
735
+ export declare class DocumentPayload extends Request {
736
+ private _document;
737
+ constructor(request: LinearRequest, data: L.DocumentPayloadFragment);
738
+ /** The identifier of the last sync operation. */
739
+ lastSyncId: number;
740
+ /** Whether the operation was successful. */
741
+ success: boolean;
742
+ /** The document that was created or updated. */
743
+ get document(): LinearFetch<Document> | undefined;
744
+ }
615
745
  /**
616
746
  * Collaborative editing steps for documents.
617
747
  *
@@ -638,6 +768,48 @@ export declare class DocumentStep extends Request {
638
768
  /** Step version. */
639
769
  version: number;
640
770
  }
771
+ /**
772
+ * A version of a document.
773
+ *
774
+ * @param request - function to call the graphql client
775
+ * @param data - L.DocumentVersionFragment response data
776
+ */
777
+ export declare class DocumentVersion extends Request {
778
+ private _creator;
779
+ private _project;
780
+ constructor(request: LinearRequest, data: L.DocumentVersionFragment);
781
+ /** The time at which the entity was archived. Null if the entity has not been archived. */
782
+ archivedAt?: Date;
783
+ /** The document's content in markdown format. */
784
+ content?: string;
785
+ /** The time at which the entity was created. */
786
+ createdAt: Date;
787
+ /** The unique identifier of the entity. */
788
+ id: string;
789
+ /** The version revision number. */
790
+ revision: number;
791
+ /** The document's title. */
792
+ title: string;
793
+ /**
794
+ * The last time at which the entity was updated. This is the same as the creation time if the
795
+ * entity hasn't been update after creation.
796
+ */
797
+ updatedAt: Date;
798
+ /** The user who created the version. */
799
+ get creator(): LinearFetch<User> | undefined;
800
+ /** The project that the document is associated with. */
801
+ get project(): LinearFetch<Project> | undefined;
802
+ }
803
+ /**
804
+ * DocumentVersionConnection model
805
+ *
806
+ * @param request - function to call the graphql client
807
+ * @param fetch - function to trigger a refetch of this DocumentVersionConnection model
808
+ * @param data - DocumentVersionConnection response data
809
+ */
810
+ export declare class DocumentVersionConnection extends Connection<DocumentVersion> {
811
+ constructor(request: LinearRequest, fetch: (connection?: LinearConnectionVariables) => LinearFetch<LinearConnection<DocumentVersion> | undefined>, data: L.DocumentVersionConnectionFragment);
812
+ }
641
813
  /**
642
814
  * EmailSubscribePayload model
643
815
  *
@@ -752,6 +924,7 @@ export declare class EventPayload extends Request {
752
924
  export declare class Favorite extends Request {
753
925
  private _customView?;
754
926
  private _cycle?;
927
+ private _document?;
755
928
  private _issue?;
756
929
  private _label?;
757
930
  private _parent?;
@@ -780,6 +953,8 @@ export declare class Favorite extends Request {
780
953
  get customView(): LinearFetch<CustomView> | undefined;
781
954
  /** The favorited cycle. */
782
955
  get cycle(): LinearFetch<Cycle> | undefined;
956
+ /** The favorited document. */
957
+ get document(): LinearFetch<Document> | undefined;
783
958
  /** The favorited issue. */
784
959
  get issue(): LinearFetch<Issue> | undefined;
785
960
  /** The favorited label. */
@@ -866,6 +1041,37 @@ export declare class FigmaEmbedPayload extends Request {
866
1041
  /** Figma embed information. */
867
1042
  figmaEmbed?: FigmaEmbed;
868
1043
  }
1044
+ /**
1045
+ * FrontAttachmentPayload model
1046
+ *
1047
+ * @param request - function to call the graphql client
1048
+ * @param data - L.FrontAttachmentPayloadFragment response data
1049
+ */
1050
+ export declare class FrontAttachmentPayload extends Request {
1051
+ constructor(request: LinearRequest, data: L.FrontAttachmentPayloadFragment);
1052
+ /** The identifier of the last sync operation. */
1053
+ lastSyncId: number;
1054
+ /** Whether the operation was successful. */
1055
+ success: boolean;
1056
+ }
1057
+ /**
1058
+ * GitHubCommitIntegrationPayload model
1059
+ *
1060
+ * @param request - function to call the graphql client
1061
+ * @param data - L.GitHubCommitIntegrationPayloadFragment response data
1062
+ */
1063
+ export declare class GitHubCommitIntegrationPayload extends Request {
1064
+ private _integration?;
1065
+ constructor(request: LinearRequest, data: L.GitHubCommitIntegrationPayloadFragment);
1066
+ /** The identifier of the last sync operation. */
1067
+ lastSyncId: number;
1068
+ /** Whether the operation was successful. */
1069
+ success: boolean;
1070
+ /** The webhook secret to provide to GitHub. */
1071
+ webhookSecret: string;
1072
+ /** The integration that was created or updated. */
1073
+ get integration(): LinearFetch<Integration> | undefined;
1074
+ }
869
1075
  /**
870
1076
  * GitHub OAuth token, plus information about the organizations the user is a member of.
871
1077
  *
@@ -970,6 +1176,8 @@ export declare class Integration extends Request {
970
1176
  delete(): LinearFetch<ArchivePayload>;
971
1177
  /** Archives an integration resource. */
972
1178
  resourceArchive(): LinearFetch<ArchivePayload>;
1179
+ /** [INTERNAL] Updates the integration. */
1180
+ settingsUpdate(input: L.IntegrationSettingsInput): LinearFetch<IntegrationPayload>;
973
1181
  }
974
1182
  /**
975
1183
  * IntegrationConnection model
@@ -1070,10 +1278,13 @@ export declare class IntegrationSettings extends Request {
1070
1278
  constructor(request: LinearRequest, data: L.IntegrationSettingsFragment);
1071
1279
  googleSheets?: GoogleSheetsSettings;
1072
1280
  intercom?: IntercomSettings;
1281
+ jira?: JiraSettings;
1073
1282
  sentry?: SentrySettings;
1074
1283
  slackPost?: SlackPostSettings;
1075
1284
  slackProjectPost?: SlackPostSettings;
1076
1285
  zendesk?: ZendeskSettings;
1286
+ /** [INTERNAL] Updates the integration. */
1287
+ update(id: string, input: L.IntegrationSettingsInput): LinearFetch<IntegrationPayload>;
1077
1288
  }
1078
1289
  /**
1079
1290
  * Intercom specific settings.
@@ -1219,6 +1430,21 @@ export declare class Issue extends Request {
1219
1430
  /** Updates an issue. */
1220
1431
  update(input: L.IssueUpdateInput): LinearFetch<IssuePayload>;
1221
1432
  }
1433
+ /**
1434
+ * IssueBatchPayload model
1435
+ *
1436
+ * @param request - function to call the graphql client
1437
+ * @param data - L.IssueBatchPayloadFragment response data
1438
+ */
1439
+ export declare class IssueBatchPayload extends Request {
1440
+ constructor(request: LinearRequest, data: L.IssueBatchPayloadFragment);
1441
+ /** The identifier of the last sync operation. */
1442
+ lastSyncId: number;
1443
+ /** Whether the operation was successful. */
1444
+ success: boolean;
1445
+ /** The issues that were updated. */
1446
+ issues: Issue[];
1447
+ }
1222
1448
  /**
1223
1449
  * IssueConnection model
1224
1450
  *
@@ -1439,7 +1665,7 @@ export declare class IssueImportPayload extends Request {
1439
1665
  */
1440
1666
  export declare class IssueLabel extends Request {
1441
1667
  private _creator?;
1442
- private _team;
1668
+ private _team?;
1443
1669
  constructor(request: LinearRequest, data: L.IssueLabelFragment);
1444
1670
  /** The time at which the entity was archived. Null if the entity has not been archived. */
1445
1671
  archivedAt?: Date;
@@ -1460,7 +1686,8 @@ export declare class IssueLabel extends Request {
1460
1686
  updatedAt: Date;
1461
1687
  /** The user who created the label. */
1462
1688
  get creator(): LinearFetch<User> | undefined;
1463
- /** The team to which the label belongs to. */
1689
+ get organization(): LinearFetch<Organization>;
1690
+ /** The team that the label is associated with. If null, the label is associated with the global workspace.. */
1464
1691
  get team(): LinearFetch<Team> | undefined;
1465
1692
  /** Issues associated with the label. */
1466
1693
  issues(variables?: Omit<L.IssueLabel_IssuesQueryVariables, "id">): LinearFetch<IssueConnection>;
@@ -1595,6 +1822,47 @@ export declare class IssueRelationPayload extends Request {
1595
1822
  /** The issue relation that was created or updated. */
1596
1823
  get issueRelation(): LinearFetch<IssueRelation> | undefined;
1597
1824
  }
1825
+ /**
1826
+ * Tuple for mapping Jira projects to Linear teams.
1827
+ *
1828
+ * @param request - function to call the graphql client
1829
+ * @param data - L.JiraLinearMappingFragment response data
1830
+ */
1831
+ export declare class JiraLinearMapping extends Request {
1832
+ constructor(request: LinearRequest, data: L.JiraLinearMappingFragment);
1833
+ /** The Jira id for this project. */
1834
+ jiraProjectId: string;
1835
+ /** The Linear team id to map to the given project. */
1836
+ linearTeamId: string;
1837
+ }
1838
+ /**
1839
+ * Metadata about a Jira project.
1840
+ *
1841
+ * @param request - function to call the graphql client
1842
+ * @param data - L.JiraProjectDataFragment response data
1843
+ */
1844
+ export declare class JiraProjectData extends Request {
1845
+ constructor(request: LinearRequest, data: L.JiraProjectDataFragment);
1846
+ /** The Jira id for this project. */
1847
+ id: string;
1848
+ /** The Jira key for this project, such as ENG. */
1849
+ key: string;
1850
+ /** The Jira name for this project, such as Engineering. */
1851
+ name: string;
1852
+ }
1853
+ /**
1854
+ * Jira specific settings.
1855
+ *
1856
+ * @param request - function to call the graphql client
1857
+ * @param data - L.JiraSettingsFragment response data
1858
+ */
1859
+ export declare class JiraSettings extends Request {
1860
+ constructor(request: LinearRequest, data: L.JiraSettingsFragment);
1861
+ /** The mapping of Jira project id => Linear team id. */
1862
+ projectMapping?: JiraLinearMapping[];
1863
+ /** The Jira projects for the organization. */
1864
+ projects: JiraProjectData[];
1865
+ }
1598
1866
  /**
1599
1867
  * A milestone that contains projects.
1600
1868
  *
@@ -1949,10 +2217,14 @@ export declare class Organization extends Request {
1949
2217
  get subscription(): LinearFetch<Subscription | undefined>;
1950
2218
  /** Integrations associated with the organization. */
1951
2219
  integrations(variables?: L.Organization_IntegrationsQueryVariables): LinearFetch<IntegrationConnection>;
2220
+ /** Labels associated with the organization. */
2221
+ labels(variables?: L.Organization_LabelsQueryVariables): LinearFetch<IssueLabelConnection>;
1952
2222
  /** Milestones associated with the organization. */
1953
2223
  milestones(variables?: L.Organization_MilestonesQueryVariables): LinearFetch<MilestoneConnection>;
1954
2224
  /** Teams associated with the organization. */
1955
2225
  teams(variables?: L.Organization_TeamsQueryVariables): LinearFetch<TeamConnection>;
2226
+ /** Templates associated with the organization. */
2227
+ templates(variables?: L.Organization_TemplatesQueryVariables): LinearFetch<TemplateConnection>;
1956
2228
  /** Users associated with the organization. */
1957
2229
  users(variables?: L.Organization_UsersQueryVariables): LinearFetch<UserConnection>;
1958
2230
  /** Delete's an organization. Administrator privileges required. */
@@ -2243,6 +2515,8 @@ export declare class Project extends Request {
2243
2515
  get lead(): LinearFetch<User> | undefined;
2244
2516
  /** The milestone that this project is associated with. */
2245
2517
  get milestone(): LinearFetch<Milestone> | undefined;
2518
+ /** Documents associated with the project. */
2519
+ documents(variables?: Omit<L.Project_DocumentsQueryVariables, "id">): LinearFetch<DocumentConnection>;
2246
2520
  /** Issues associated with the project. */
2247
2521
  issues(variables?: Omit<L.Project_IssuesQueryVariables, "id">): LinearFetch<IssueConnection>;
2248
2522
  /** Links associated with the project. */
@@ -2299,6 +2573,8 @@ export declare class ProjectLink extends Request {
2299
2573
  get project(): LinearFetch<Project> | undefined;
2300
2574
  /** Deletes a project link. */
2301
2575
  delete(): LinearFetch<ArchivePayload>;
2576
+ /** Updates a project link. */
2577
+ update(input: L.ProjectLinkUpdateInput): LinearFetch<ProjectLinkPayload>;
2302
2578
  }
2303
2579
  /**
2304
2580
  * ProjectLinkConnection model
@@ -2510,21 +2786,6 @@ export declare class SamlConfiguration extends Request {
2510
2786
  /** X.509 Signing Certificate in string form. */
2511
2787
  ssoSigningCert?: string;
2512
2788
  }
2513
- /**
2514
- * SearchResultPayload model
2515
- *
2516
- * @param request - function to call the graphql client
2517
- * @param data - L.SearchResultPayloadFragment response data
2518
- */
2519
- export declare class SearchResultPayload extends Request {
2520
- constructor(request: LinearRequest, data: L.SearchResultPayloadFragment);
2521
- /** Active issue IDs returned matching the search term. */
2522
- issueIds: string[];
2523
- /** Total number of search results. */
2524
- totalCount: number;
2525
- /** Archived issues matching the search term along with all their dependencies. */
2526
- archivePayload: ArchiveResponse;
2527
- }
2528
2789
  /**
2529
2790
  * Sentry issue data
2530
2791
  *
@@ -2641,12 +2902,6 @@ export declare class Subscription extends Request {
2641
2902
  get creator(): LinearFetch<User> | undefined;
2642
2903
  /** The organization that the subscription is associated with. */
2643
2904
  get organization(): LinearFetch<Organization>;
2644
- /** Archives a subscription. */
2645
- archive(): LinearFetch<ArchivePayload>;
2646
- /** Updates a subscription. */
2647
- update(input: L.SubscriptionUpdateInput): LinearFetch<SubscriptionPayload>;
2648
- /** Upgrades a subscription plan. */
2649
- upgrade(): LinearFetch<SubscriptionPayload>;
2650
2905
  }
2651
2906
  /**
2652
2907
  * SubscriptionPayload model
@@ -2676,6 +2931,17 @@ export declare class SubscriptionSessionPayload extends Request {
2676
2931
  /** The subscription session that was created or updated. */
2677
2932
  session?: string;
2678
2933
  }
2934
+ /**
2935
+ * Contains the requested relations.
2936
+ *
2937
+ * @param request - function to call the graphql client
2938
+ * @param data - L.SyncBatchResponseFragment response data
2939
+ */
2940
+ export declare class SyncBatchResponse extends Request {
2941
+ constructor(request: LinearRequest, data: L.SyncBatchResponseFragment);
2942
+ /** A JSON serialized collection of relations model object. */
2943
+ models: string;
2944
+ }
2679
2945
  /**
2680
2946
  * Contains a delta sync.
2681
2947
  *
@@ -2737,6 +3003,8 @@ export declare class SynchronizedPayload extends Request {
2737
3003
  export declare class Team extends Request {
2738
3004
  private _activeCycle?;
2739
3005
  private _defaultIssueState?;
3006
+ private _defaultTemplateForMembers?;
3007
+ private _defaultTemplateForNonMembers?;
2740
3008
  private _draftWorkflowState?;
2741
3009
  private _markedAsDuplicateWorkflowState?;
2742
3010
  private _mergeWorkflowState?;
@@ -2752,9 +3020,11 @@ export declare class Team extends Request {
2752
3020
  autoClosePeriod?: number;
2753
3021
  /** The canceled workflow state which auto closed issues will be set to. Defaults to the first canceled state. */
2754
3022
  autoCloseStateId?: string;
3023
+ /** The team's color. */
3024
+ color?: string;
2755
3025
  /** The time at which the entity was created. */
2756
3026
  createdAt: Date;
2757
- /** Calender feed (iCal) for cycles. */
3027
+ /** Calendar feed URL (iCal) for cycles. */
2758
3028
  cycleCalenderUrl: string;
2759
3029
  /** The cooldown time after each cycle in weeks. */
2760
3030
  cycleCooldownTime: number;
@@ -2772,14 +3042,16 @@ export declare class Team extends Request {
2772
3042
  cyclesEnabled: boolean;
2773
3043
  /** What to use as an default estimate for unestimated issues. */
2774
3044
  defaultIssueEstimate: number;
2775
- /** The default template to use for new issues created by members of the team. */
3045
+ /** The id of the default template to use for new issues created by members of the team. */
2776
3046
  defaultTemplateForMembersId?: string;
2777
- /** The default template to use for new issues created by non-members of the team. */
3047
+ /** The id of the default template to use for new issues created by non-members of the team. */
2778
3048
  defaultTemplateForNonMembersId?: string;
2779
3049
  /** The team's description. */
2780
3050
  description?: string;
2781
3051
  /** Whether to group recent issue history entries. */
2782
3052
  groupIssueHistory: boolean;
3053
+ /** The icon of the team. */
3054
+ icon?: string;
2783
3055
  /** The unique identifier of the entity. */
2784
3056
  id: string;
2785
3057
  /** Unique hash for the team to be used in invite URLs. */
@@ -2819,6 +3091,10 @@ export declare class Team extends Request {
2819
3091
  get activeCycle(): LinearFetch<Cycle> | undefined;
2820
3092
  /** The default workflow state into which issues are set when they are opened by team members. */
2821
3093
  get defaultIssueState(): LinearFetch<WorkflowState> | undefined;
3094
+ /** The default template to use for new issues created by members of the team. */
3095
+ get defaultTemplateForMembers(): LinearFetch<Template> | undefined;
3096
+ /** The default template to use for new issues created by non-members of the team. */
3097
+ get defaultTemplateForNonMembers(): LinearFetch<Template> | undefined;
2822
3098
  /** The workflow state into which issues are moved when a PR has been opened as draft. */
2823
3099
  get draftWorkflowState(): LinearFetch<WorkflowState> | undefined;
2824
3100
  /** The workflow state into which issues are moved when they are marked as a duplicate of another issue. Defaults to the first canceled state. */
@@ -2941,14 +3217,14 @@ export declare class TeamPayload extends Request {
2941
3217
  get team(): LinearFetch<Team> | undefined;
2942
3218
  }
2943
3219
  /**
2944
- * A template object used for creating new issues faster.
3220
+ * A template object used for creating entities faster.
2945
3221
  *
2946
3222
  * @param request - function to call the graphql client
2947
3223
  * @param data - L.TemplateFragment response data
2948
3224
  */
2949
3225
  export declare class Template extends Request {
2950
3226
  private _creator?;
2951
- private _team;
3227
+ private _team?;
2952
3228
  constructor(request: LinearRequest, data: L.TemplateFragment);
2953
3229
  /** The time at which the entity was archived. Null if the entity has not been archived. */
2954
3230
  archivedAt?: Date;
@@ -2971,7 +3247,9 @@ export declare class Template extends Request {
2971
3247
  updatedAt: Date;
2972
3248
  /** The user who created the template. */
2973
3249
  get creator(): LinearFetch<User> | undefined;
2974
- /** The team that the template is associated with. */
3250
+ /** The organization that the template is associated with. If null, the template is associated with a particular team. */
3251
+ get organization(): LinearFetch<Organization>;
3252
+ /** The team that the template is associated with. If null, the template is global to the workspace. */
2975
3253
  get team(): LinearFetch<Team> | undefined;
2976
3254
  /** Deletes a template. */
2977
3255
  delete(): LinearFetch<ArchivePayload>;
@@ -3074,6 +3352,8 @@ export declare class User extends Request {
3074
3352
  createdAt: Date;
3075
3353
  /** Number of issues created. */
3076
3354
  createdIssueCount: number;
3355
+ /** A short description of the user, either its title or bio. */
3356
+ description?: string;
3077
3357
  /** Reason why is the account disabled. */
3078
3358
  disableReason?: string;
3079
3359
  /** The user's display (nick) name. Unique within each organization. */
@@ -3084,10 +3364,20 @@ export declare class User extends Request {
3084
3364
  id: string;
3085
3365
  /** Unique hash for the user to be used in invite URLs. */
3086
3366
  inviteHash: string;
3367
+ /** Whether the user is the currently authenticated user. */
3368
+ isMe: boolean;
3087
3369
  /** The last time the user was seen online. If null, the user is currently online. */
3088
3370
  lastSeen?: Date;
3089
3371
  /** The user's full name. */
3090
3372
  name: string;
3373
+ /** The emoji to represent the user current status. */
3374
+ statusEmoji?: string;
3375
+ /** The label of the user current status. */
3376
+ statusLabel?: string;
3377
+ /** A date at which the user current status should be cleared. */
3378
+ statusUntilAt?: Date;
3379
+ /** The local timezone of the user. */
3380
+ timezone?: string;
3091
3381
  /**
3092
3382
  * The last time at which the entity was updated. This is the same as the creation time if the
3093
3383
  * entity hasn't been update after creation.
@@ -3095,7 +3385,7 @@ export declare class User extends Request {
3095
3385
  updatedAt: Date;
3096
3386
  /** User's profile URL. */
3097
3387
  url: string;
3098
- /** Organization in which the user belongs to. */
3388
+ /** Organization the user belongs to. */
3099
3389
  get organization(): LinearFetch<Organization>;
3100
3390
  /** Issues assigned to the user. */
3101
3391
  assignedIssues(variables?: Omit<L.User_AssignedIssuesQueryVariables, "id">): LinearFetch<IssueConnection>;
@@ -3365,7 +3655,7 @@ export declare class Webhook extends Request {
3365
3655
  */
3366
3656
  updatedAt: Date;
3367
3657
  /** Webhook URL */
3368
- url: string;
3658
+ url?: string;
3369
3659
  /** The user who created the webhook. */
3370
3660
  get creator(): LinearFetch<User> | undefined;
3371
3661
  /** The team that the webhook is associated with. */
@@ -3481,6 +3771,21 @@ export declare class ZendeskSettings extends Request {
3481
3771
  /** The URL of the connected Zendesk organization. */
3482
3772
  url: string;
3483
3773
  }
3774
+ /**
3775
+ * A fetchable AdministrableTeams Query
3776
+ *
3777
+ * @param request - function to call the graphql client
3778
+ */
3779
+ export declare class AdministrableTeamsQuery extends Request {
3780
+ constructor(request: LinearRequest);
3781
+ /**
3782
+ * Call the AdministrableTeams query and return a TeamConnection
3783
+ *
3784
+ * @param variables - variables to pass into the AdministrableTeamsQuery
3785
+ * @returns parsed response from AdministrableTeamsQuery
3786
+ */
3787
+ fetch(variables?: L.AdministrableTeamsQueryVariables): LinearFetch<TeamConnection>;
3788
+ }
3484
3789
  /**
3485
3790
  * A fetchable ApplicationWithAuthorization Query
3486
3791
  *
@@ -3559,6 +3864,35 @@ export declare class AttachmentsForUrlQuery extends Request {
3559
3864
  */
3560
3865
  fetch(url: string, variables?: Omit<L.AttachmentsForUrlQueryVariables, "url">): LinearFetch<AttachmentConnection>;
3561
3866
  }
3867
+ /**
3868
+ * A fetchable AuditEntries Query
3869
+ *
3870
+ * @param request - function to call the graphql client
3871
+ */
3872
+ export declare class AuditEntriesQuery extends Request {
3873
+ constructor(request: LinearRequest);
3874
+ /**
3875
+ * Call the AuditEntries query and return a AuditEntryConnection
3876
+ *
3877
+ * @param variables - variables to pass into the AuditEntriesQuery
3878
+ * @returns parsed response from AuditEntriesQuery
3879
+ */
3880
+ fetch(variables?: L.AuditEntriesQueryVariables): LinearFetch<AuditEntryConnection>;
3881
+ }
3882
+ /**
3883
+ * A fetchable AuditEntryTypes Query
3884
+ *
3885
+ * @param request - function to call the graphql client
3886
+ */
3887
+ export declare class AuditEntryTypesQuery extends Request {
3888
+ constructor(request: LinearRequest);
3889
+ /**
3890
+ * Call the AuditEntryTypes query and return a AuditEntryType list
3891
+ *
3892
+ * @returns parsed response from AuditEntryTypesQuery
3893
+ */
3894
+ fetch(): LinearFetch<AuditEntryType[]>;
3895
+ }
3562
3896
  /**
3563
3897
  * A fetchable AuthorizedApplications Query
3564
3898
  *
@@ -3708,6 +4042,36 @@ export declare class CyclesQuery extends Request {
3708
4042
  */
3709
4043
  fetch(variables?: L.CyclesQueryVariables): LinearFetch<CycleConnection>;
3710
4044
  }
4045
+ /**
4046
+ * A fetchable Document Query
4047
+ *
4048
+ * @param request - function to call the graphql client
4049
+ */
4050
+ export declare class DocumentQuery extends Request {
4051
+ constructor(request: LinearRequest);
4052
+ /**
4053
+ * Call the Document query and return a Document
4054
+ *
4055
+ * @param id - required id to pass to document
4056
+ * @returns parsed response from DocumentQuery
4057
+ */
4058
+ fetch(id: string): LinearFetch<Document>;
4059
+ }
4060
+ /**
4061
+ * A fetchable Documents Query
4062
+ *
4063
+ * @param request - function to call the graphql client
4064
+ */
4065
+ export declare class DocumentsQuery extends Request {
4066
+ constructor(request: LinearRequest);
4067
+ /**
4068
+ * Call the Documents query and return a DocumentConnection
4069
+ *
4070
+ * @param variables - variables to pass into the DocumentsQuery
4071
+ * @returns parsed response from DocumentsQuery
4072
+ */
4073
+ fetch(variables?: L.DocumentsQueryVariables): LinearFetch<DocumentConnection>;
4074
+ }
3711
4075
  /**
3712
4076
  * A fetchable Emoji Query
3713
4077
  *
@@ -4507,13 +4871,13 @@ export declare class AttachmentDeleteMutation extends Request {
4507
4871
  export declare class AttachmentLinkFrontMutation extends Request {
4508
4872
  constructor(request: LinearRequest);
4509
4873
  /**
4510
- * Call the AttachmentLinkFront mutation and return a AttachmentPayload
4874
+ * Call the AttachmentLinkFront mutation and return a FrontAttachmentPayload
4511
4875
  *
4512
4876
  * @param conversationId - required conversationId to pass to attachmentLinkFront
4513
4877
  * @param issueId - required issueId to pass to attachmentLinkFront
4514
4878
  * @returns parsed response from AttachmentLinkFrontMutation
4515
4879
  */
4516
- fetch(conversationId: string, issueId: string): LinearFetch<AttachmentPayload>;
4880
+ fetch(conversationId: string, issueId: string): LinearFetch<FrontAttachmentPayload>;
4517
4881
  }
4518
4882
  /**
4519
4883
  * A fetchable AttachmentLinkIntercom Mutation
@@ -4531,6 +4895,22 @@ export declare class AttachmentLinkIntercomMutation extends Request {
4531
4895
  */
4532
4896
  fetch(conversationId: string, issueId: string): LinearFetch<AttachmentPayload>;
4533
4897
  }
4898
+ /**
4899
+ * A fetchable AttachmentLinkJiraIssue Mutation
4900
+ *
4901
+ * @param request - function to call the graphql client
4902
+ */
4903
+ export declare class AttachmentLinkJiraIssueMutation extends Request {
4904
+ constructor(request: LinearRequest);
4905
+ /**
4906
+ * Call the AttachmentLinkJiraIssue mutation and return a AttachmentPayload
4907
+ *
4908
+ * @param issueId - required issueId to pass to attachmentLinkJiraIssue
4909
+ * @param jiraIssueId - required jiraIssueId to pass to attachmentLinkJiraIssue
4910
+ * @returns parsed response from AttachmentLinkJiraIssueMutation
4911
+ */
4912
+ fetch(issueId: string, jiraIssueId: string): LinearFetch<AttachmentPayload>;
4913
+ }
4534
4914
  /**
4535
4915
  * A fetchable AttachmentLinkUrl Mutation
4536
4916
  *
@@ -4795,60 +5175,64 @@ export declare class CycleUpdateMutation extends Request {
4795
5175
  fetch(id: string, input: L.CycleUpdateInput): LinearFetch<CyclePayload>;
4796
5176
  }
4797
5177
  /**
4798
- * A fetchable DebugCreateOAuthApps Mutation
5178
+ * A fetchable DebugFailWithInternalError Mutation
4799
5179
  *
4800
5180
  * @param request - function to call the graphql client
4801
5181
  */
4802
- export declare class DebugCreateOAuthAppsMutation extends Request {
5182
+ export declare class DebugFailWithInternalErrorMutation extends Request {
4803
5183
  constructor(request: LinearRequest);
4804
5184
  /**
4805
- * Call the DebugCreateOAuthApps mutation and return a DebugPayload
5185
+ * Call the DebugFailWithInternalError mutation and return a DebugPayload
4806
5186
  *
4807
- * @returns parsed response from DebugCreateOAuthAppsMutation
5187
+ * @returns parsed response from DebugFailWithInternalErrorMutation
4808
5188
  */
4809
5189
  fetch(): LinearFetch<DebugPayload>;
4810
5190
  }
4811
5191
  /**
4812
- * A fetchable DebugCreateSamlOrg Mutation
5192
+ * A fetchable DocumentCreate Mutation
4813
5193
  *
4814
5194
  * @param request - function to call the graphql client
4815
5195
  */
4816
- export declare class DebugCreateSamlOrgMutation extends Request {
5196
+ export declare class DocumentCreateMutation extends Request {
4817
5197
  constructor(request: LinearRequest);
4818
5198
  /**
4819
- * Call the DebugCreateSamlOrg mutation and return a DebugPayload
5199
+ * Call the DocumentCreate mutation and return a DocumentPayload
4820
5200
  *
4821
- * @returns parsed response from DebugCreateSamlOrgMutation
5201
+ * @param input - required input to pass to documentCreate
5202
+ * @returns parsed response from DocumentCreateMutation
4822
5203
  */
4823
- fetch(): LinearFetch<DebugPayload>;
5204
+ fetch(input: L.DocumentCreateInput): LinearFetch<DocumentPayload>;
4824
5205
  }
4825
5206
  /**
4826
- * A fetchable DebugFailWithInternalError Mutation
5207
+ * A fetchable DocumentDelete Mutation
4827
5208
  *
4828
5209
  * @param request - function to call the graphql client
4829
5210
  */
4830
- export declare class DebugFailWithInternalErrorMutation extends Request {
5211
+ export declare class DocumentDeleteMutation extends Request {
4831
5212
  constructor(request: LinearRequest);
4832
5213
  /**
4833
- * Call the DebugFailWithInternalError mutation and return a DebugPayload
5214
+ * Call the DocumentDelete mutation and return a ArchivePayload
4834
5215
  *
4835
- * @returns parsed response from DebugFailWithInternalErrorMutation
5216
+ * @param id - required id to pass to documentDelete
5217
+ * @returns parsed response from DocumentDeleteMutation
4836
5218
  */
4837
- fetch(): LinearFetch<DebugPayload>;
5219
+ fetch(id: string): LinearFetch<ArchivePayload>;
4838
5220
  }
4839
5221
  /**
4840
- * A fetchable DebugFailWithWarning Mutation
5222
+ * A fetchable DocumentUpdate Mutation
4841
5223
  *
4842
5224
  * @param request - function to call the graphql client
4843
5225
  */
4844
- export declare class DebugFailWithWarningMutation extends Request {
5226
+ export declare class DocumentUpdateMutation extends Request {
4845
5227
  constructor(request: LinearRequest);
4846
5228
  /**
4847
- * Call the DebugFailWithWarning mutation and return a DebugPayload
5229
+ * Call the DocumentUpdate mutation and return a DocumentPayload
4848
5230
  *
4849
- * @returns parsed response from DebugFailWithWarningMutation
5231
+ * @param id - required id to pass to documentUpdate
5232
+ * @param input - required input to pass to documentUpdate
5233
+ * @returns parsed response from DocumentUpdateMutation
4850
5234
  */
4851
- fetch(): LinearFetch<DebugPayload>;
5235
+ fetch(id: string, input: L.DocumentUpdateInput): LinearFetch<DocumentPayload>;
4852
5236
  }
4853
5237
  /**
4854
5238
  * A fetchable EmailSubscribe Mutation
@@ -5111,6 +5495,20 @@ export declare class IntegrationFrontMutation extends Request {
5111
5495
  */
5112
5496
  fetch(code: string, redirectUri: string): LinearFetch<IntegrationPayload>;
5113
5497
  }
5498
+ /**
5499
+ * A fetchable IntegrationGithubCommitCreate Mutation
5500
+ *
5501
+ * @param request - function to call the graphql client
5502
+ */
5503
+ export declare class IntegrationGithubCommitCreateMutation extends Request {
5504
+ constructor(request: LinearRequest);
5505
+ /**
5506
+ * Call the IntegrationGithubCommitCreate mutation and return a GitHubCommitIntegrationPayload
5507
+ *
5508
+ * @returns parsed response from IntegrationGithubCommitCreateMutation
5509
+ */
5510
+ fetch(): LinearFetch<GitHubCommitIntegrationPayload>;
5511
+ }
5114
5512
  /**
5115
5513
  * A fetchable IntegrationGithubConnect Mutation
5116
5514
  *
@@ -5248,6 +5646,22 @@ export declare class IntegrationSentryConnectMutation extends Request {
5248
5646
  */
5249
5647
  fetch(code: string, installationId: string, organizationSlug: string): LinearFetch<IntegrationPayload>;
5250
5648
  }
5649
+ /**
5650
+ * A fetchable IntegrationSettingsUpdate Mutation
5651
+ *
5652
+ * @param request - function to call the graphql client
5653
+ */
5654
+ export declare class IntegrationSettingsUpdateMutation extends Request {
5655
+ constructor(request: LinearRequest);
5656
+ /**
5657
+ * Call the IntegrationSettingsUpdate mutation and return a IntegrationPayload
5658
+ *
5659
+ * @param id - required id to pass to integrationSettingsUpdate
5660
+ * @param input - required input to pass to integrationSettingsUpdate
5661
+ * @returns parsed response from IntegrationSettingsUpdateMutation
5662
+ */
5663
+ fetch(id: string, input: L.IntegrationSettingsInput): LinearFetch<IntegrationPayload>;
5664
+ }
5251
5665
  /**
5252
5666
  * A fetchable IntegrationSlack Mutation
5253
5667
  *
@@ -5366,6 +5780,22 @@ export declare class IssueArchiveMutation extends Request {
5366
5780
  */
5367
5781
  fetch(id: string, variables?: Omit<L.IssueArchiveMutationVariables, "id">): LinearFetch<ArchivePayload>;
5368
5782
  }
5783
+ /**
5784
+ * A fetchable IssueBatchUpdate Mutation
5785
+ *
5786
+ * @param request - function to call the graphql client
5787
+ */
5788
+ export declare class IssueBatchUpdateMutation extends Request {
5789
+ constructor(request: LinearRequest);
5790
+ /**
5791
+ * Call the IssueBatchUpdate mutation and return a IssueBatchPayload
5792
+ *
5793
+ * @param ids - required ids to pass to issueBatchUpdate
5794
+ * @param input - required input to pass to issueBatchUpdate
5795
+ * @returns parsed response from IssueBatchUpdateMutation
5796
+ */
5797
+ fetch(ids: L.Scalars["UUID"][], input: L.IssueUpdateInput): LinearFetch<IssueBatchPayload>;
5798
+ }
5369
5799
  /**
5370
5800
  * A fetchable IssueCreate Mutation
5371
5801
  *
@@ -5544,9 +5974,10 @@ export declare class IssueLabelCreateMutation extends Request {
5544
5974
  * Call the IssueLabelCreate mutation and return a IssueLabelPayload
5545
5975
  *
5546
5976
  * @param input - required input to pass to issueLabelCreate
5977
+ * @param variables - variables without 'input' to pass into the IssueLabelCreateMutation
5547
5978
  * @returns parsed response from IssueLabelCreateMutation
5548
5979
  */
5549
- fetch(input: L.IssueLabelCreateInput): LinearFetch<IssueLabelPayload>;
5980
+ fetch(input: L.IssueLabelCreateInput, variables?: Omit<L.IssueLabelCreateMutationVariables, "input">): LinearFetch<IssueLabelPayload>;
5550
5981
  }
5551
5982
  /**
5552
5983
  * A fetchable IssueLabelUpdate Mutation
@@ -5641,6 +6072,21 @@ export declare class IssueUpdateMutation extends Request {
5641
6072
  */
5642
6073
  fetch(id: string, input: L.IssueUpdateInput): LinearFetch<IssuePayload>;
5643
6074
  }
6075
+ /**
6076
+ * A fetchable JiraIntegrationConnect Mutation
6077
+ *
6078
+ * @param request - function to call the graphql client
6079
+ */
6080
+ export declare class JiraIntegrationConnectMutation extends Request {
6081
+ constructor(request: LinearRequest);
6082
+ /**
6083
+ * Call the JiraIntegrationConnect mutation and return a IntegrationPayload
6084
+ *
6085
+ * @param input - required input to pass to jiraIntegrationConnect
6086
+ * @returns parsed response from JiraIntegrationConnectMutation
6087
+ */
6088
+ fetch(input: L.JiraConfigurationInput): LinearFetch<IntegrationPayload>;
6089
+ }
5644
6090
  /**
5645
6091
  * A fetchable JoinOrganizationFromOnboarding Mutation
5646
6092
  *
@@ -6079,6 +6525,22 @@ export declare class ProjectLinkDeleteMutation extends Request {
6079
6525
  */
6080
6526
  fetch(id: string): LinearFetch<ArchivePayload>;
6081
6527
  }
6528
+ /**
6529
+ * A fetchable ProjectLinkUpdate Mutation
6530
+ *
6531
+ * @param request - function to call the graphql client
6532
+ */
6533
+ export declare class ProjectLinkUpdateMutation extends Request {
6534
+ constructor(request: LinearRequest);
6535
+ /**
6536
+ * Call the ProjectLinkUpdate mutation and return a ProjectLinkPayload
6537
+ *
6538
+ * @param id - required id to pass to projectLinkUpdate
6539
+ * @param input - required input to pass to projectLinkUpdate
6540
+ * @returns parsed response from ProjectLinkUpdateMutation
6541
+ */
6542
+ fetch(id: string, input: L.ProjectLinkUpdateInput): LinearFetch<ProjectLinkPayload>;
6543
+ }
6082
6544
  /**
6083
6545
  * A fetchable ProjectUnarchive Mutation
6084
6546
  *
@@ -6215,83 +6677,6 @@ export declare class SamlTokenUserAccountAuthMutation extends Request {
6215
6677
  */
6216
6678
  fetch(input: L.TokenUserAccountAuthInput): LinearFetch<AuthResolverResponse>;
6217
6679
  }
6218
- /**
6219
- * A fetchable SubscriptionArchive Mutation
6220
- *
6221
- * @param request - function to call the graphql client
6222
- */
6223
- export declare class SubscriptionArchiveMutation extends Request {
6224
- constructor(request: LinearRequest);
6225
- /**
6226
- * Call the SubscriptionArchive mutation and return a ArchivePayload
6227
- *
6228
- * @param id - required id to pass to subscriptionArchive
6229
- * @returns parsed response from SubscriptionArchiveMutation
6230
- */
6231
- fetch(id: string): LinearFetch<ArchivePayload>;
6232
- }
6233
- /**
6234
- * A fetchable SubscriptionSessionCreate Mutation
6235
- *
6236
- * @param request - function to call the graphql client
6237
- */
6238
- export declare class SubscriptionSessionCreateMutation extends Request {
6239
- constructor(request: LinearRequest);
6240
- /**
6241
- * Call the SubscriptionSessionCreate mutation and return a SubscriptionSessionPayload
6242
- *
6243
- * @param plan - required plan to pass to subscriptionSessionCreate
6244
- * @param variables - variables without 'plan' to pass into the SubscriptionSessionCreateMutation
6245
- * @returns parsed response from SubscriptionSessionCreateMutation
6246
- */
6247
- fetch(plan: string, variables?: Omit<L.SubscriptionSessionCreateMutationVariables, "plan">): LinearFetch<SubscriptionSessionPayload>;
6248
- }
6249
- /**
6250
- * A fetchable SubscriptionUpdate Mutation
6251
- *
6252
- * @param request - function to call the graphql client
6253
- */
6254
- export declare class SubscriptionUpdateMutation extends Request {
6255
- constructor(request: LinearRequest);
6256
- /**
6257
- * Call the SubscriptionUpdate mutation and return a SubscriptionPayload
6258
- *
6259
- * @param id - required id to pass to subscriptionUpdate
6260
- * @param input - required input to pass to subscriptionUpdate
6261
- * @returns parsed response from SubscriptionUpdateMutation
6262
- */
6263
- fetch(id: string, input: L.SubscriptionUpdateInput): LinearFetch<SubscriptionPayload>;
6264
- }
6265
- /**
6266
- * A fetchable SubscriptionUpdateSessionCreate Mutation
6267
- *
6268
- * @param request - function to call the graphql client
6269
- */
6270
- export declare class SubscriptionUpdateSessionCreateMutation extends Request {
6271
- constructor(request: LinearRequest);
6272
- /**
6273
- * Call the SubscriptionUpdateSessionCreate mutation and return a SubscriptionSessionPayload
6274
- *
6275
- * @returns parsed response from SubscriptionUpdateSessionCreateMutation
6276
- */
6277
- fetch(): LinearFetch<SubscriptionSessionPayload>;
6278
- }
6279
- /**
6280
- * A fetchable SubscriptionUpgrade Mutation
6281
- *
6282
- * @param request - function to call the graphql client
6283
- */
6284
- export declare class SubscriptionUpgradeMutation extends Request {
6285
- constructor(request: LinearRequest);
6286
- /**
6287
- * Call the SubscriptionUpgrade mutation and return a SubscriptionPayload
6288
- *
6289
- * @param id - required id to pass to subscriptionUpgrade
6290
- * @param type - required type to pass to subscriptionUpgrade
6291
- * @returns parsed response from SubscriptionUpgradeMutation
6292
- */
6293
- fetch(id: string, type: string): LinearFetch<SubscriptionPayload>;
6294
- }
6295
6680
  /**
6296
6681
  * A fetchable TeamCreate Mutation
6297
6682
  *
@@ -7204,6 +7589,23 @@ export declare class Organization_IntegrationsQuery extends Request {
7204
7589
  */
7205
7590
  fetch(variables?: L.Organization_IntegrationsQueryVariables): LinearFetch<IntegrationConnection>;
7206
7591
  }
7592
+ /**
7593
+ * A fetchable Organization_Labels Query
7594
+ *
7595
+ * @param request - function to call the graphql client
7596
+ * @param variables - variables to pass into the Organization_LabelsQuery
7597
+ */
7598
+ export declare class Organization_LabelsQuery extends Request {
7599
+ private _variables?;
7600
+ constructor(request: LinearRequest, variables?: L.Organization_LabelsQueryVariables);
7601
+ /**
7602
+ * Call the Organization_Labels query and return a IssueLabelConnection
7603
+ *
7604
+ * @param variables - variables to pass into the Organization_LabelsQuery
7605
+ * @returns parsed response from Organization_LabelsQuery
7606
+ */
7607
+ fetch(variables?: L.Organization_LabelsQueryVariables): LinearFetch<IssueLabelConnection>;
7608
+ }
7207
7609
  /**
7208
7610
  * A fetchable Organization_Milestones Query
7209
7611
  *
@@ -7238,6 +7640,23 @@ export declare class Organization_TeamsQuery extends Request {
7238
7640
  */
7239
7641
  fetch(variables?: L.Organization_TeamsQueryVariables): LinearFetch<TeamConnection>;
7240
7642
  }
7643
+ /**
7644
+ * A fetchable Organization_Templates Query
7645
+ *
7646
+ * @param request - function to call the graphql client
7647
+ * @param variables - variables to pass into the Organization_TemplatesQuery
7648
+ */
7649
+ export declare class Organization_TemplatesQuery extends Request {
7650
+ private _variables?;
7651
+ constructor(request: LinearRequest, variables?: L.Organization_TemplatesQueryVariables);
7652
+ /**
7653
+ * Call the Organization_Templates query and return a TemplateConnection
7654
+ *
7655
+ * @param variables - variables to pass into the Organization_TemplatesQuery
7656
+ * @returns parsed response from Organization_TemplatesQuery
7657
+ */
7658
+ fetch(variables?: L.Organization_TemplatesQueryVariables): LinearFetch<TemplateConnection>;
7659
+ }
7241
7660
  /**
7242
7661
  * A fetchable Organization_Users Query
7243
7662
  *
@@ -7255,6 +7674,25 @@ export declare class Organization_UsersQuery extends Request {
7255
7674
  */
7256
7675
  fetch(variables?: L.Organization_UsersQueryVariables): LinearFetch<UserConnection>;
7257
7676
  }
7677
+ /**
7678
+ * A fetchable Project_Documents Query
7679
+ *
7680
+ * @param request - function to call the graphql client
7681
+ * @param id - required id to pass to project
7682
+ * @param variables - variables without 'id' to pass into the Project_DocumentsQuery
7683
+ */
7684
+ export declare class Project_DocumentsQuery extends Request {
7685
+ private _id;
7686
+ private _variables?;
7687
+ constructor(request: LinearRequest, id: string, variables?: Omit<L.Project_DocumentsQueryVariables, "id">);
7688
+ /**
7689
+ * Call the Project_Documents query and return a DocumentConnection
7690
+ *
7691
+ * @param variables - variables without 'id' to pass into the Project_DocumentsQuery
7692
+ * @returns parsed response from Project_DocumentsQuery
7693
+ */
7694
+ fetch(variables?: Omit<L.Project_DocumentsQueryVariables, "id">): LinearFetch<DocumentConnection>;
7695
+ }
7258
7696
  /**
7259
7697
  * A fetchable Project_Issues Query
7260
7698
  *
@@ -7672,6 +8110,13 @@ export declare class WorkflowState_IssuesQuery extends Request {
7672
8110
  */
7673
8111
  export declare class LinearSdk extends Request {
7674
8112
  constructor(request: LinearRequest);
8113
+ /**
8114
+ * All teams you the user can administrate. Administrable teams are teams whose settings the user can change, but to whose issues the user doesn't necessarily have access to.
8115
+ *
8116
+ * @param variables - variables to pass into the AdministrableTeamsQuery
8117
+ * @returns TeamConnection
8118
+ */
8119
+ administrableTeams(variables?: L.AdministrableTeamsQueryVariables): LinearFetch<TeamConnection>;
7675
8120
  /**
7676
8121
  * Get information for an application and whether a user has approved it for the given scopes.
7677
8122
  *
@@ -7713,6 +8158,19 @@ export declare class LinearSdk extends Request {
7713
8158
  * @returns AttachmentConnection
7714
8159
  */
7715
8160
  attachmentsForURL(url: string, variables?: Omit<L.AttachmentsForUrlQueryVariables, "url">): LinearFetch<AttachmentConnection>;
8161
+ /**
8162
+ * All audit log entries.
8163
+ *
8164
+ * @param variables - variables to pass into the AuditEntriesQuery
8165
+ * @returns AuditEntryConnection
8166
+ */
8167
+ auditEntries(variables?: L.AuditEntriesQueryVariables): LinearFetch<AuditEntryConnection>;
8168
+ /**
8169
+ * List of audit entry types.
8170
+ *
8171
+ * @returns AuditEntryType[]
8172
+ */
8173
+ get auditEntryTypes(): LinearFetch<AuditEntryType[]>;
7716
8174
  /**
7717
8175
  * Get all authorized applications for a user
7718
8176
  *
@@ -7782,6 +8240,20 @@ export declare class LinearSdk extends Request {
7782
8240
  * @returns CycleConnection
7783
8241
  */
7784
8242
  cycles(variables?: L.CyclesQueryVariables): LinearFetch<CycleConnection>;
8243
+ /**
8244
+ * One specific document.
8245
+ *
8246
+ * @param id - required id to pass to document
8247
+ * @returns Document
8248
+ */
8249
+ document(id: string): LinearFetch<Document>;
8250
+ /**
8251
+ * All documents for the project.
8252
+ *
8253
+ * @param variables - variables to pass into the DocumentsQuery
8254
+ * @returns DocumentConnection
8255
+ */
8256
+ documents(variables?: L.DocumentsQueryVariables): LinearFetch<DocumentConnection>;
7785
8257
  /**
7786
8258
  * A specific emoji.
7787
8259
  *
@@ -8055,7 +8527,7 @@ export declare class LinearSdk extends Request {
8055
8527
  */
8056
8528
  teamMemberships(variables?: L.TeamMembershipsQueryVariables): LinearFetch<TeamMembershipConnection>;
8057
8529
  /**
8058
- * All teams.
8530
+ * All teams whose issues can be accessed by the user. This might be different from `administrableTeams`, which also includes teams whose settings can be changed by the user.
8059
8531
  *
8060
8532
  * @param variables - variables to pass into the TeamsQuery
8061
8533
  * @returns TeamConnection
@@ -8154,9 +8626,9 @@ export declare class LinearSdk extends Request {
8154
8626
  *
8155
8627
  * @param conversationId - required conversationId to pass to attachmentLinkFront
8156
8628
  * @param issueId - required issueId to pass to attachmentLinkFront
8157
- * @returns AttachmentPayload
8629
+ * @returns FrontAttachmentPayload
8158
8630
  */
8159
- attachmentLinkFront(conversationId: string, issueId: string): LinearFetch<AttachmentPayload>;
8631
+ attachmentLinkFront(conversationId: string, issueId: string): LinearFetch<FrontAttachmentPayload>;
8160
8632
  /**
8161
8633
  * Link an existing Intercom conversation to an issue.
8162
8634
  *
@@ -8165,6 +8637,14 @@ export declare class LinearSdk extends Request {
8165
8637
  * @returns AttachmentPayload
8166
8638
  */
8167
8639
  attachmentLinkIntercom(conversationId: string, issueId: string): LinearFetch<AttachmentPayload>;
8640
+ /**
8641
+ * Link an existing Jira issue to an issue.
8642
+ *
8643
+ * @param issueId - required issueId to pass to attachmentLinkJiraIssue
8644
+ * @param jiraIssueId - required jiraIssueId to pass to attachmentLinkJiraIssue
8645
+ * @returns AttachmentPayload
8646
+ */
8647
+ attachmentLinkJiraIssue(issueId: string, jiraIssueId: string): LinearFetch<AttachmentPayload>;
8168
8648
  /**
8169
8649
  * Link any url to an issue.
8170
8650
  *
@@ -8293,29 +8773,33 @@ export declare class LinearSdk extends Request {
8293
8773
  */
8294
8774
  cycleUpdate(id: string, input: L.CycleUpdateInput): LinearFetch<CyclePayload>;
8295
8775
  /**
8296
- * Create the OAuth test applications in development.
8776
+ * Always fails with internal error. Used to debug logging.
8297
8777
  *
8298
8778
  * @returns DebugPayload
8299
8779
  */
8300
- get debugCreateOAuthApps(): LinearFetch<DebugPayload>;
8780
+ get debugFailWithInternalError(): LinearFetch<DebugPayload>;
8301
8781
  /**
8302
- * Create the SAML test organization in development.
8782
+ * Creates a new document.
8303
8783
  *
8304
- * @returns DebugPayload
8784
+ * @param input - required input to pass to documentCreate
8785
+ * @returns DocumentPayload
8305
8786
  */
8306
- get debugCreateSAMLOrg(): LinearFetch<DebugPayload>;
8787
+ documentCreate(input: L.DocumentCreateInput): LinearFetch<DocumentPayload>;
8307
8788
  /**
8308
- * Always fails with internal error. Used to debug logging.
8789
+ * Deletes a document.
8309
8790
  *
8310
- * @returns DebugPayload
8791
+ * @param id - required id to pass to documentDelete
8792
+ * @returns ArchivePayload
8311
8793
  */
8312
- get debugFailWithInternalError(): LinearFetch<DebugPayload>;
8794
+ documentDelete(id: string): LinearFetch<ArchivePayload>;
8313
8795
  /**
8314
- * Always logs an error to Sentry as warning. Used to debug logging.
8796
+ * Updates a document.
8315
8797
  *
8316
- * @returns DebugPayload
8798
+ * @param id - required id to pass to documentUpdate
8799
+ * @param input - required input to pass to documentUpdate
8800
+ * @returns DocumentPayload
8317
8801
  */
8318
- get debugFailWithWarning(): LinearFetch<DebugPayload>;
8802
+ documentUpdate(id: string, input: L.DocumentUpdateInput): LinearFetch<DocumentPayload>;
8319
8803
  /**
8320
8804
  * Subscribes the email to the newsletter.
8321
8805
  *
@@ -8441,6 +8925,12 @@ export declare class LinearSdk extends Request {
8441
8925
  * @returns IntegrationPayload
8442
8926
  */
8443
8927
  integrationFront(code: string, redirectUri: string): LinearFetch<IntegrationPayload>;
8928
+ /**
8929
+ * Generates a webhook for the GitHub commit integration.
8930
+ *
8931
+ * @returns GitHubCommitIntegrationPayload
8932
+ */
8933
+ get integrationGithubCommitCreate(): LinearFetch<GitHubCommitIntegrationPayload>;
8444
8934
  /**
8445
8935
  * Connects the organization with the GitHub App.
8446
8936
  *
@@ -8478,7 +8968,7 @@ export declare class LinearSdk extends Request {
8478
8968
  */
8479
8969
  get integrationIntercomDelete(): LinearFetch<IntegrationPayload>;
8480
8970
  /**
8481
- * Updates settings on the Intercom integration.
8971
+ * [DEPRECATED] Updates settings on the Intercom integration.
8482
8972
  *
8483
8973
  * @param input - required input to pass to integrationIntercomSettingsUpdate
8484
8974
  * @returns IntegrationPayload
@@ -8506,6 +8996,14 @@ export declare class LinearSdk extends Request {
8506
8996
  * @returns IntegrationPayload
8507
8997
  */
8508
8998
  integrationSentryConnect(code: string, installationId: string, organizationSlug: string): LinearFetch<IntegrationPayload>;
8999
+ /**
9000
+ * [INTERNAL] Updates the integration.
9001
+ *
9002
+ * @param id - required id to pass to integrationSettingsUpdate
9003
+ * @param input - required input to pass to integrationSettingsUpdate
9004
+ * @returns IntegrationPayload
9005
+ */
9006
+ integrationSettingsUpdate(id: string, input: L.IntegrationSettingsInput): LinearFetch<IntegrationPayload>;
8509
9007
  /**
8510
9008
  * Integrates the organization with Slack.
8511
9009
  *
@@ -8568,6 +9066,14 @@ export declare class LinearSdk extends Request {
8568
9066
  * @returns ArchivePayload
8569
9067
  */
8570
9068
  issueArchive(id: string, variables?: Omit<L.IssueArchiveMutationVariables, "id">): LinearFetch<ArchivePayload>;
9069
+ /**
9070
+ * Updates multiple issues at once.
9071
+ *
9072
+ * @param ids - required ids to pass to issueBatchUpdate
9073
+ * @param input - required input to pass to issueBatchUpdate
9074
+ * @returns IssueBatchPayload
9075
+ */
9076
+ issueBatchUpdate(ids: L.Scalars["UUID"][], input: L.IssueUpdateInput): LinearFetch<IssueBatchPayload>;
8571
9077
  /**
8572
9078
  * Creates a new issue.
8573
9079
  *
@@ -8659,9 +9165,10 @@ export declare class LinearSdk extends Request {
8659
9165
  * Creates a new label.
8660
9166
  *
8661
9167
  * @param input - required input to pass to issueLabelCreate
9168
+ * @param variables - variables without 'input' to pass into the IssueLabelCreateMutation
8662
9169
  * @returns IssueLabelPayload
8663
9170
  */
8664
- issueLabelCreate(input: L.IssueLabelCreateInput): LinearFetch<IssueLabelPayload>;
9171
+ issueLabelCreate(input: L.IssueLabelCreateInput, variables?: Omit<L.IssueLabelCreateMutationVariables, "input">): LinearFetch<IssueLabelPayload>;
8665
9172
  /**
8666
9173
  * Updates an label.
8667
9174
  *
@@ -8707,6 +9214,13 @@ export declare class LinearSdk extends Request {
8707
9214
  * @returns IssuePayload
8708
9215
  */
8709
9216
  issueUpdate(id: string, input: L.IssueUpdateInput): LinearFetch<IssuePayload>;
9217
+ /**
9218
+ * [INTERNAL] Connects the organization with a Jira Personal Access Token.
9219
+ *
9220
+ * @param input - required input to pass to jiraIntegrationConnect
9221
+ * @returns IntegrationPayload
9222
+ */
9223
+ jiraIntegrationConnect(input: L.JiraConfigurationInput): LinearFetch<IntegrationPayload>;
8710
9224
  /**
8711
9225
  * Join an organization from onboarding.
8712
9226
  *
@@ -8913,6 +9427,14 @@ export declare class LinearSdk extends Request {
8913
9427
  * @returns ArchivePayload
8914
9428
  */
8915
9429
  projectLinkDelete(id: string): LinearFetch<ArchivePayload>;
9430
+ /**
9431
+ * Updates a project link.
9432
+ *
9433
+ * @param id - required id to pass to projectLinkUpdate
9434
+ * @param input - required input to pass to projectLinkUpdate
9435
+ * @returns ProjectLinkPayload
9436
+ */
9437
+ projectLinkUpdate(id: string, input: L.ProjectLinkUpdateInput): LinearFetch<ProjectLinkPayload>;
8916
9438
  /**
8917
9439
  * Unarchives a project.
8918
9440
  *
@@ -8977,43 +9499,6 @@ export declare class LinearSdk extends Request {
8977
9499
  * @returns AuthResolverResponse
8978
9500
  */
8979
9501
  samlTokenUserAccountAuth(input: L.TokenUserAccountAuthInput): LinearFetch<AuthResolverResponse>;
8980
- /**
8981
- * Archives a subscription.
8982
- *
8983
- * @param id - required id to pass to subscriptionArchive
8984
- * @returns ArchivePayload
8985
- */
8986
- subscriptionArchive(id: string): LinearFetch<ArchivePayload>;
8987
- /**
8988
- * Creates a subscription session. Used internally to integrate with Stripe.
8989
- *
8990
- * @param plan - required plan to pass to subscriptionSessionCreate
8991
- * @param variables - variables without 'plan' to pass into the SubscriptionSessionCreateMutation
8992
- * @returns SubscriptionSessionPayload
8993
- */
8994
- subscriptionSessionCreate(plan: string, variables?: Omit<L.SubscriptionSessionCreateMutationVariables, "plan">): LinearFetch<SubscriptionSessionPayload>;
8995
- /**
8996
- * Updates a subscription.
8997
- *
8998
- * @param id - required id to pass to subscriptionUpdate
8999
- * @param input - required input to pass to subscriptionUpdate
9000
- * @returns SubscriptionPayload
9001
- */
9002
- subscriptionUpdate(id: string, input: L.SubscriptionUpdateInput): LinearFetch<SubscriptionPayload>;
9003
- /**
9004
- * Creates a subscription update session. Used internally to integrate with Stripe.
9005
- *
9006
- * @returns SubscriptionSessionPayload
9007
- */
9008
- get subscriptionUpdateSessionCreate(): LinearFetch<SubscriptionSessionPayload>;
9009
- /**
9010
- * Upgrades a subscription plan.
9011
- *
9012
- * @param id - required id to pass to subscriptionUpgrade
9013
- * @param type - required type to pass to subscriptionUpgrade
9014
- * @returns SubscriptionPayload
9015
- */
9016
- subscriptionUpgrade(id: string, type: string): LinearFetch<SubscriptionPayload>;
9017
9502
  /**
9018
9503
  * Creates a new team. The user who creates the team will automatically be added as a member to the newly created team.
9019
9504
  *