@linear/sdk 2.3.0 → 2.5.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.
package/dist/index-es.js CHANGED
@@ -3,6 +3,7 @@ import http from 'http';
3
3
  import Url from 'url';
4
4
  import https from 'https';
5
5
  import zlib from 'zlib';
6
+ import crypto from 'crypto';
6
7
 
7
8
  /******************************************************************************
8
9
  Copyright (c) Microsoft Corporation.
@@ -83449,6 +83450,14 @@ var PushSubscriptionType;
83449
83450
  PushSubscriptionType["Apple"] = "apple";
83450
83451
  PushSubscriptionType["Web"] = "web";
83451
83452
  })(PushSubscriptionType || (PushSubscriptionType = {}));
83453
+ /** Features release channel */
83454
+ var ReleaseChannel;
83455
+ (function (ReleaseChannel) {
83456
+ ReleaseChannel["Beta"] = "beta";
83457
+ ReleaseChannel["Internal"] = "internal";
83458
+ ReleaseChannel["PreRelease"] = "preRelease";
83459
+ ReleaseChannel["Public"] = "public";
83460
+ })(ReleaseChannel || (ReleaseChannel = {}));
83452
83461
  var SlaStatus;
83453
83462
  (function (SlaStatus) {
83454
83463
  SlaStatus["Breached"] = "Breached";
@@ -83529,7 +83538,6 @@ var ViewType;
83529
83538
  ViewType["MyIssuesActivity"] = "myIssuesActivity";
83530
83539
  ViewType["MyIssuesCreatedByMe"] = "myIssuesCreatedByMe";
83531
83540
  ViewType["MyIssuesSubscribedTo"] = "myIssuesSubscribedTo";
83532
- ViewType["MyIssuesTouchedByMe"] = "myIssuesTouchedByMe";
83533
83541
  ViewType["Project"] = "project";
83534
83542
  ViewType["Projects"] = "projects";
83535
83543
  ViewType["ProjectsAll"] = "projectsAll";
@@ -83547,7 +83555,6 @@ var ViewType;
83547
83555
  })(ViewType || (ViewType = {}));
83548
83556
  var WorkflowTrigger;
83549
83557
  (function (WorkflowTrigger) {
83550
- WorkflowTrigger["Cron"] = "cron";
83551
83558
  WorkflowTrigger["EntityCreated"] = "entityCreated";
83552
83559
  WorkflowTrigger["EntityCreatedOrUpdated"] = "entityCreatedOrUpdated";
83553
83560
  WorkflowTrigger["EntityRemoved"] = "entityRemoved";
@@ -83562,7 +83569,6 @@ var WorkflowTriggerType;
83562
83569
  var WorkflowType;
83563
83570
  (function (WorkflowType) {
83564
83571
  WorkflowType["Custom"] = "custom";
83565
- WorkflowType["RecurringIssue"] = "recurringIssue";
83566
83572
  WorkflowType["Sla"] = "sla";
83567
83573
  })(WorkflowType || (WorkflowType = {}));
83568
83574
  const EntityFragmentDoc = {
@@ -83949,45 +83955,6 @@ const GithubOAuthTokenPayloadFragmentDoc = {
83949
83955
  ...GithubOrgFragmentDoc.definitions,
83950
83956
  ],
83951
83957
  };
83952
- const OauthClientFragmentDoc = {
83953
- kind: "Document",
83954
- definitions: [
83955
- {
83956
- kind: "FragmentDefinition",
83957
- name: { kind: "Name", value: "OauthClient" },
83958
- typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OauthClient" } },
83959
- selectionSet: {
83960
- kind: "SelectionSet",
83961
- selections: [
83962
- { kind: "Field", name: { kind: "Name", value: "__typename" } },
83963
- { kind: "Field", name: { kind: "Name", value: "imageUrl" } },
83964
- { kind: "Field", name: { kind: "Name", value: "description" } },
83965
- { kind: "Field", name: { kind: "Name", value: "redirectUris" } },
83966
- { kind: "Field", name: { kind: "Name", value: "developer" } },
83967
- { kind: "Field", name: { kind: "Name", value: "clientId" } },
83968
- { kind: "Field", name: { kind: "Name", value: "name" } },
83969
- { kind: "Field", name: { kind: "Name", value: "clientSecret" } },
83970
- { kind: "Field", name: { kind: "Name", value: "updatedAt" } },
83971
- { kind: "Field", name: { kind: "Name", value: "webhookResourceTypes" } },
83972
- { kind: "Field", name: { kind: "Name", value: "archivedAt" } },
83973
- { kind: "Field", name: { kind: "Name", value: "createdAt" } },
83974
- { kind: "Field", name: { kind: "Name", value: "id" } },
83975
- {
83976
- kind: "Field",
83977
- name: { kind: "Name", value: "creator" },
83978
- selectionSet: {
83979
- kind: "SelectionSet",
83980
- selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }],
83981
- },
83982
- },
83983
- { kind: "Field", name: { kind: "Name", value: "developerUrl" } },
83984
- { kind: "Field", name: { kind: "Name", value: "webhookUrl" } },
83985
- { kind: "Field", name: { kind: "Name", value: "publicEnabled" } },
83986
- ],
83987
- },
83988
- },
83989
- ],
83990
- };
83991
83958
  const UserAuthorizedApplicationFragmentDoc = {
83992
83959
  kind: "Document",
83993
83960
  definitions: [
@@ -84430,54 +84397,6 @@ const UserSettingsFragmentDoc = {
84430
84397
  },
84431
84398
  ],
84432
84399
  };
84433
- const AdminJobConfigurationPayloadFragmentDoc = {
84434
- kind: "Document",
84435
- definitions: [
84436
- {
84437
- kind: "FragmentDefinition",
84438
- name: { kind: "Name", value: "AdminJobConfigurationPayload" },
84439
- typeCondition: { kind: "NamedType", name: { kind: "Name", value: "AdminJobConfigurationPayload" } },
84440
- selectionSet: {
84441
- kind: "SelectionSet",
84442
- selections: [
84443
- { kind: "Field", name: { kind: "Name", value: "__typename" } },
84444
- { kind: "Field", name: { kind: "Name", value: "currentJob" } },
84445
- { kind: "Field", name: { kind: "Name", value: "delay" } },
84446
- { kind: "Field", name: { kind: "Name", value: "enabled" } },
84447
- { kind: "Field", name: { kind: "Name", value: "param" } },
84448
- ],
84449
- },
84450
- },
84451
- ],
84452
- };
84453
- const AdminJobStatusPayloadFragmentDoc = {
84454
- kind: "Document",
84455
- definitions: [
84456
- {
84457
- kind: "FragmentDefinition",
84458
- name: { kind: "Name", value: "AdminJobStatusPayload" },
84459
- typeCondition: { kind: "NamedType", name: { kind: "Name", value: "AdminJobStatusPayload" } },
84460
- selectionSet: {
84461
- kind: "SelectionSet",
84462
- selections: [
84463
- { kind: "Field", name: { kind: "Name", value: "__typename" } },
84464
- { kind: "Field", name: { kind: "Name", value: "availableJobs" } },
84465
- {
84466
- kind: "Field",
84467
- name: { kind: "Name", value: "configuration" },
84468
- selectionSet: {
84469
- kind: "SelectionSet",
84470
- selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "AdminJobConfigurationPayload" } }],
84471
- },
84472
- },
84473
- { kind: "Field", name: { kind: "Name", value: "cursor" } },
84474
- { kind: "Field", name: { kind: "Name", value: "startedAt" } },
84475
- ],
84476
- },
84477
- },
84478
- ...AdminJobConfigurationPayloadFragmentDoc.definitions,
84479
- ],
84480
- };
84481
84400
  const ApiKeyFragmentDoc = {
84482
84401
  kind: "Document",
84483
84402
  definitions: [
@@ -87344,6 +87263,80 @@ const NotificationSubscriptionPayloadFragmentDoc = {
87344
87263
  ...NotificationSubscriptionFragmentDoc.definitions,
87345
87264
  ],
87346
87265
  };
87266
+ const OauthClientFragmentDoc = {
87267
+ kind: "Document",
87268
+ definitions: [
87269
+ {
87270
+ kind: "FragmentDefinition",
87271
+ name: { kind: "Name", value: "OauthClient" },
87272
+ typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OauthClient" } },
87273
+ selectionSet: {
87274
+ kind: "SelectionSet",
87275
+ selections: [
87276
+ { kind: "Field", name: { kind: "Name", value: "__typename" } },
87277
+ { kind: "Field", name: { kind: "Name", value: "imageUrl" } },
87278
+ { kind: "Field", name: { kind: "Name", value: "description" } },
87279
+ { kind: "Field", name: { kind: "Name", value: "redirectUris" } },
87280
+ { kind: "Field", name: { kind: "Name", value: "developer" } },
87281
+ { kind: "Field", name: { kind: "Name", value: "clientId" } },
87282
+ { kind: "Field", name: { kind: "Name", value: "name" } },
87283
+ { kind: "Field", name: { kind: "Name", value: "clientSecret" } },
87284
+ { kind: "Field", name: { kind: "Name", value: "updatedAt" } },
87285
+ { kind: "Field", name: { kind: "Name", value: "webhookResourceTypes" } },
87286
+ { kind: "Field", name: { kind: "Name", value: "archivedAt" } },
87287
+ { kind: "Field", name: { kind: "Name", value: "createdAt" } },
87288
+ { kind: "Field", name: { kind: "Name", value: "id" } },
87289
+ {
87290
+ kind: "Field",
87291
+ name: { kind: "Name", value: "creator" },
87292
+ selectionSet: {
87293
+ kind: "SelectionSet",
87294
+ selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }],
87295
+ },
87296
+ },
87297
+ { kind: "Field", name: { kind: "Name", value: "developerUrl" } },
87298
+ { kind: "Field", name: { kind: "Name", value: "webhookUrl" } },
87299
+ { kind: "Field", name: { kind: "Name", value: "webhookSecret" } },
87300
+ { kind: "Field", name: { kind: "Name", value: "publicEnabled" } },
87301
+ ],
87302
+ },
87303
+ },
87304
+ ],
87305
+ };
87306
+ const OauthClientConnectionFragmentDoc = {
87307
+ kind: "Document",
87308
+ definitions: [
87309
+ {
87310
+ kind: "FragmentDefinition",
87311
+ name: { kind: "Name", value: "OauthClientConnection" },
87312
+ typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OauthClientConnection" } },
87313
+ selectionSet: {
87314
+ kind: "SelectionSet",
87315
+ selections: [
87316
+ { kind: "Field", name: { kind: "Name", value: "__typename" } },
87317
+ {
87318
+ kind: "Field",
87319
+ name: { kind: "Name", value: "nodes" },
87320
+ selectionSet: {
87321
+ kind: "SelectionSet",
87322
+ selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "OauthClient" } }],
87323
+ },
87324
+ },
87325
+ {
87326
+ kind: "Field",
87327
+ name: { kind: "Name", value: "pageInfo" },
87328
+ selectionSet: {
87329
+ kind: "SelectionSet",
87330
+ selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "PageInfo" } }],
87331
+ },
87332
+ },
87333
+ ],
87334
+ },
87335
+ },
87336
+ ...OauthClientFragmentDoc.definitions,
87337
+ ...PageInfoFragmentDoc.definitions,
87338
+ ],
87339
+ };
87347
87340
  const OrganizationCancelDeletePayloadFragmentDoc = {
87348
87341
  kind: "Document",
87349
87342
  definitions: [
@@ -87760,6 +87753,7 @@ const ProjectMilestoneFragmentDoc = {
87760
87753
  { kind: "Field", name: { kind: "Name", value: "description" } },
87761
87754
  { kind: "Field", name: { kind: "Name", value: "updatedAt" } },
87762
87755
  { kind: "Field", name: { kind: "Name", value: "name" } },
87756
+ { kind: "Field", name: { kind: "Name", value: "sortOrder" } },
87763
87757
  { kind: "Field", name: { kind: "Name", value: "targetDate" } },
87764
87758
  {
87765
87759
  kind: "Field",
@@ -89284,6 +89278,82 @@ const WebhookPayloadFragmentDoc = {
89284
89278
  },
89285
89279
  ],
89286
89280
  };
89281
+ const WorkflowCronJobDefinitionFragmentDoc = {
89282
+ kind: "Document",
89283
+ definitions: [
89284
+ {
89285
+ kind: "FragmentDefinition",
89286
+ name: { kind: "Name", value: "WorkflowCronJobDefinition" },
89287
+ typeCondition: { kind: "NamedType", name: { kind: "Name", value: "WorkflowCronJobDefinition" } },
89288
+ selectionSet: {
89289
+ kind: "SelectionSet",
89290
+ selections: [
89291
+ { kind: "Field", name: { kind: "Name", value: "__typename" } },
89292
+ { kind: "Field", name: { kind: "Name", value: "activities" } },
89293
+ { kind: "Field", name: { kind: "Name", value: "schedule" } },
89294
+ { kind: "Field", name: { kind: "Name", value: "description" } },
89295
+ { kind: "Field", name: { kind: "Name", value: "updatedAt" } },
89296
+ { kind: "Field", name: { kind: "Name", value: "name" } },
89297
+ { kind: "Field", name: { kind: "Name", value: "sortOrder" } },
89298
+ {
89299
+ kind: "Field",
89300
+ name: { kind: "Name", value: "team" },
89301
+ selectionSet: {
89302
+ kind: "SelectionSet",
89303
+ selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }],
89304
+ },
89305
+ },
89306
+ { kind: "Field", name: { kind: "Name", value: "archivedAt" } },
89307
+ { kind: "Field", name: { kind: "Name", value: "createdAt" } },
89308
+ { kind: "Field", name: { kind: "Name", value: "id" } },
89309
+ {
89310
+ kind: "Field",
89311
+ name: { kind: "Name", value: "creator" },
89312
+ selectionSet: {
89313
+ kind: "SelectionSet",
89314
+ selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }],
89315
+ },
89316
+ },
89317
+ { kind: "Field", name: { kind: "Name", value: "enabled" } },
89318
+ ],
89319
+ },
89320
+ },
89321
+ ],
89322
+ };
89323
+ const WorkflowCronJobDefinitionConnectionFragmentDoc = {
89324
+ kind: "Document",
89325
+ definitions: [
89326
+ {
89327
+ kind: "FragmentDefinition",
89328
+ name: { kind: "Name", value: "WorkflowCronJobDefinitionConnection" },
89329
+ typeCondition: { kind: "NamedType", name: { kind: "Name", value: "WorkflowCronJobDefinitionConnection" } },
89330
+ selectionSet: {
89331
+ kind: "SelectionSet",
89332
+ selections: [
89333
+ { kind: "Field", name: { kind: "Name", value: "__typename" } },
89334
+ {
89335
+ kind: "Field",
89336
+ name: { kind: "Name", value: "nodes" },
89337
+ selectionSet: {
89338
+ kind: "SelectionSet",
89339
+ selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "WorkflowCronJobDefinition" } }],
89340
+ },
89341
+ },
89342
+ {
89343
+ kind: "Field",
89344
+ name: { kind: "Name", value: "pageInfo" },
89345
+ selectionSet: {
89346
+ kind: "SelectionSet",
89347
+ selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "PageInfo" } }],
89348
+ },
89349
+ },
89350
+ ],
89351
+ },
89352
+ },
89353
+ ...WorkflowCronJobDefinitionFragmentDoc.definitions,
89354
+ ...PageInfoFragmentDoc.definitions,
89355
+ ],
89356
+ };
89287
89357
  const WorkflowDefinitionFragmentDoc = {
89288
89358
  kind: "Document",
89289
89359
  definitions: [
@@ -89296,7 +89366,6 @@ const WorkflowDefinitionFragmentDoc = {
89296
89366
  selections: [
89297
89367
  { kind: "Field", name: { kind: "Name", value: "__typename" } },
89298
89368
  { kind: "Field", name: { kind: "Name", value: "activities" } },
89299
- { kind: "Field", name: { kind: "Name", value: "schedule" } },
89300
89369
  { kind: "Field", name: { kind: "Name", value: "conditions" } },
89301
89370
  { kind: "Field", name: { kind: "Name", value: "description" } },
89302
89371
  { kind: "Field", name: { kind: "Name", value: "updatedAt" } },
@@ -91928,6 +91997,54 @@ const IntegrationSlackImportEmojisDocument = {
91928
91997
  ...IntegrationPayloadFragmentDoc.definitions,
91929
91998
  ],
91930
91999
  };
92000
+ const IntegrationSlackIntakeDocument = {
92001
+ kind: "Document",
92002
+ definitions: [
92003
+ {
92004
+ kind: "OperationDefinition",
92005
+ operation: "mutation",
92006
+ name: { kind: "Name", value: "integrationSlackIntake" },
92007
+ variableDefinitions: [
92008
+ {
92009
+ kind: "VariableDefinition",
92010
+ variable: { kind: "Variable", name: { kind: "Name", value: "code" } },
92011
+ type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } },
92012
+ },
92013
+ {
92014
+ kind: "VariableDefinition",
92015
+ variable: { kind: "Variable", name: { kind: "Name", value: "redirectUri" } },
92016
+ type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } },
92017
+ },
92018
+ ],
92019
+ selectionSet: {
92020
+ kind: "SelectionSet",
92021
+ selections: [
92022
+ {
92023
+ kind: "Field",
92024
+ name: { kind: "Name", value: "integrationSlackIntake" },
92025
+ arguments: [
92026
+ {
92027
+ kind: "Argument",
92028
+ name: { kind: "Name", value: "code" },
92029
+ value: { kind: "Variable", name: { kind: "Name", value: "code" } },
92030
+ },
92031
+ {
92032
+ kind: "Argument",
92033
+ name: { kind: "Name", value: "redirectUri" },
92034
+ value: { kind: "Variable", name: { kind: "Name", value: "redirectUri" } },
92035
+ },
92036
+ ],
92037
+ selectionSet: {
92038
+ kind: "SelectionSet",
92039
+ selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "IntegrationPayload" } }],
92040
+ },
92041
+ },
92042
+ ],
92043
+ },
92044
+ },
92045
+ ...IntegrationPayloadFragmentDoc.definitions,
92046
+ ],
92047
+ };
91931
92048
  const IntegrationSlackOrgProjectUpdatesPostDocument = {
91932
92049
  kind: "Document",
91933
92050
  definitions: [
@@ -108553,6 +108670,7 @@ var _generated_documents = /*#__PURE__*/Object.freeze({
108553
108670
  get ProjectUpdateHealthType () { return ProjectUpdateHealthType; },
108554
108671
  get ProjectUpdateReminderFrequency () { return ProjectUpdateReminderFrequency; },
108555
108672
  get PushSubscriptionType () { return PushSubscriptionType; },
108673
+ get ReleaseChannel () { return ReleaseChannel; },
108556
108674
  get SlaStatus () { return SlaStatus; },
108557
108675
  get UserFlagType () { return UserFlagType; },
108558
108676
  get UserFlagUpdateOperation () { return UserFlagUpdateOperation; },
@@ -108574,7 +108692,6 @@ var _generated_documents = /*#__PURE__*/Object.freeze({
108574
108692
  GithubRepoFragmentDoc: GithubRepoFragmentDoc,
108575
108693
  GithubOrgFragmentDoc: GithubOrgFragmentDoc,
108576
108694
  GithubOAuthTokenPayloadFragmentDoc: GithubOAuthTokenPayloadFragmentDoc,
108577
- OauthClientFragmentDoc: OauthClientFragmentDoc,
108578
108695
  UserAuthorizedApplicationFragmentDoc: UserAuthorizedApplicationFragmentDoc,
108579
108696
  ApplicationFragmentDoc: ApplicationFragmentDoc,
108580
108697
  FrontSettingsFragmentDoc: FrontSettingsFragmentDoc,
@@ -108591,8 +108708,6 @@ var _generated_documents = /*#__PURE__*/Object.freeze({
108591
108708
  IntegrationSettingsFragmentDoc: IntegrationSettingsFragmentDoc,
108592
108709
  SamlConfigurationPayloadFragmentDoc: SamlConfigurationPayloadFragmentDoc,
108593
108710
  UserSettingsFragmentDoc: UserSettingsFragmentDoc,
108594
- AdminJobConfigurationPayloadFragmentDoc: AdminJobConfigurationPayloadFragmentDoc,
108595
- AdminJobStatusPayloadFragmentDoc: AdminJobStatusPayloadFragmentDoc,
108596
108711
  ApiKeyFragmentDoc: ApiKeyFragmentDoc,
108597
108712
  PageInfoFragmentDoc: PageInfoFragmentDoc,
108598
108713
  ApiKeyConnectionFragmentDoc: ApiKeyConnectionFragmentDoc,
@@ -108675,6 +108790,8 @@ var _generated_documents = /*#__PURE__*/Object.freeze({
108675
108790
  NotificationSubscriptionFragmentDoc: NotificationSubscriptionFragmentDoc,
108676
108791
  NotificationSubscriptionConnectionFragmentDoc: NotificationSubscriptionConnectionFragmentDoc,
108677
108792
  NotificationSubscriptionPayloadFragmentDoc: NotificationSubscriptionPayloadFragmentDoc,
108793
+ OauthClientFragmentDoc: OauthClientFragmentDoc,
108794
+ OauthClientConnectionFragmentDoc: OauthClientConnectionFragmentDoc,
108678
108795
  OrganizationCancelDeletePayloadFragmentDoc: OrganizationCancelDeletePayloadFragmentDoc,
108679
108796
  OrganizationDeletePayloadFragmentDoc: OrganizationDeletePayloadFragmentDoc,
108680
108797
  OrganizationExistsPayloadFragmentDoc: OrganizationExistsPayloadFragmentDoc,
@@ -108739,6 +108856,8 @@ var _generated_documents = /*#__PURE__*/Object.freeze({
108739
108856
  WebhookFragmentDoc: WebhookFragmentDoc,
108740
108857
  WebhookConnectionFragmentDoc: WebhookConnectionFragmentDoc,
108741
108858
  WebhookPayloadFragmentDoc: WebhookPayloadFragmentDoc,
108859
+ WorkflowCronJobDefinitionFragmentDoc: WorkflowCronJobDefinitionFragmentDoc,
108860
+ WorkflowCronJobDefinitionConnectionFragmentDoc: WorkflowCronJobDefinitionConnectionFragmentDoc,
108742
108861
  WorkflowDefinitionFragmentDoc: WorkflowDefinitionFragmentDoc,
108743
108862
  WorkflowDefinitionConnectionFragmentDoc: WorkflowDefinitionConnectionFragmentDoc,
108744
108863
  WorkflowStateFragmentDoc: WorkflowStateFragmentDoc,
@@ -108800,6 +108919,7 @@ var _generated_documents = /*#__PURE__*/Object.freeze({
108800
108919
  IntegrationSentryConnectDocument: IntegrationSentryConnectDocument,
108801
108920
  IntegrationSlackDocument: IntegrationSlackDocument,
108802
108921
  IntegrationSlackImportEmojisDocument: IntegrationSlackImportEmojisDocument,
108922
+ IntegrationSlackIntakeDocument: IntegrationSlackIntakeDocument,
108803
108923
  IntegrationSlackOrgProjectUpdatesPostDocument: IntegrationSlackOrgProjectUpdatesPostDocument,
108804
108924
  IntegrationSlackPersonalDocument: IntegrationSlackPersonalDocument,
108805
108925
  IntegrationSlackPostDocument: IntegrationSlackPostDocument,
@@ -109179,38 +109299,6 @@ function parseJson(value) {
109179
109299
  return undefined;
109180
109300
  }
109181
109301
  }
109182
- /**
109183
- * AdminJobConfigurationPayload model
109184
- *
109185
- * @param request - function to call the graphql client
109186
- * @param data - L.AdminJobConfigurationPayloadFragment response data
109187
- */
109188
- class AdminJobConfigurationPayload extends Request {
109189
- constructor(request, data) {
109190
- var _a, _b;
109191
- super(request);
109192
- this.currentJob = (_a = data.currentJob) !== null && _a !== void 0 ? _a : undefined;
109193
- this.delay = data.delay;
109194
- this.enabled = data.enabled;
109195
- this.param = (_b = data.param) !== null && _b !== void 0 ? _b : undefined;
109196
- }
109197
- }
109198
- /**
109199
- * AdminJobStatusPayload model
109200
- *
109201
- * @param request - function to call the graphql client
109202
- * @param data - L.AdminJobStatusPayloadFragment response data
109203
- */
109204
- class AdminJobStatusPayload extends Request {
109205
- constructor(request, data) {
109206
- var _a, _b;
109207
- super(request);
109208
- this.availableJobs = data.availableJobs;
109209
- this.cursor = (_a = data.cursor) !== null && _a !== void 0 ? _a : undefined;
109210
- this.startedAt = (_b = parseDate(data.startedAt)) !== null && _b !== void 0 ? _b : undefined;
109211
- this.configuration = new AdminJobConfigurationPayload(request, data.configuration);
109212
- }
109213
- }
109214
109302
  /**
109215
109303
  * An API key. Grants access to the user's resources.
109216
109304
  *
@@ -111389,7 +111477,7 @@ class NotionSettings extends Request {
111389
111477
  */
111390
111478
  class OauthClient extends Request {
111391
111479
  constructor(request, data) {
111392
- var _a, _b, _c, _d, _e, _f;
111480
+ var _a, _b, _c, _d, _e, _f, _g;
111393
111481
  super(request);
111394
111482
  this.archivedAt = (_a = parseDate(data.archivedAt)) !== null && _a !== void 0 ? _a : undefined;
111395
111483
  this.clientId = data.clientId;
@@ -111405,7 +111493,8 @@ class OauthClient extends Request {
111405
111493
  this.redirectUris = data.redirectUris;
111406
111494
  this.updatedAt = (_e = parseDate(data.updatedAt)) !== null && _e !== void 0 ? _e : new Date();
111407
111495
  this.webhookResourceTypes = data.webhookResourceTypes;
111408
- this.webhookUrl = (_f = data.webhookUrl) !== null && _f !== void 0 ? _f : undefined;
111496
+ this.webhookSecret = (_f = data.webhookSecret) !== null && _f !== void 0 ? _f : undefined;
111497
+ this.webhookUrl = (_g = data.webhookUrl) !== null && _g !== void 0 ? _g : undefined;
111409
111498
  this._creator = data.creator;
111410
111499
  }
111411
111500
  /** The user who created the OAuthClient. */
@@ -111472,6 +111561,18 @@ class OauthClientApprovalNotification extends Request {
111472
111561
  return new UserQuery(this._request).fetch(this._user.id);
111473
111562
  }
111474
111563
  }
111564
+ /**
111565
+ * OauthClientConnection model
111566
+ *
111567
+ * @param request - function to call the graphql client
111568
+ * @param fetch - function to trigger a refetch of this OauthClientConnection model
111569
+ * @param data - OauthClientConnection response data
111570
+ */
111571
+ class OauthClientConnection extends Connection {
111572
+ constructor(request, fetch, data) {
111573
+ super(request, fetch, data.nodes.map(node => new OauthClient(request, node)), new PageInfo(request, data.pageInfo));
111574
+ }
111575
+ }
111475
111576
  /**
111476
111577
  * An organization. Organizations are root-level objects that contain user accounts and teams.
111477
111578
  *
@@ -111991,6 +112092,7 @@ class ProjectMilestone extends Request {
111991
112092
  this.description = (_c = data.description) !== null && _c !== void 0 ? _c : undefined;
111992
112093
  this.id = data.id;
111993
112094
  this.name = data.name;
112095
+ this.sortOrder = data.sortOrder;
111994
112096
  this.targetDate = (_d = data.targetDate) !== null && _d !== void 0 ? _d : undefined;
111995
112097
  this.updatedAt = (_e = parseDate(data.updatedAt)) !== null && _e !== void 0 ? _e : new Date();
111996
112098
  this._project = data.project;
@@ -113498,6 +113600,50 @@ class WebhookPayload extends Request {
113498
113600
  return new WebhookQuery(this._request).fetch(this._webhook.id);
113499
113601
  }
113500
113602
  }
113603
+ /**
113604
+ * WorkflowCronJobDefinition model
113605
+ *
113606
+ * @param request - function to call the graphql client
113607
+ * @param data - L.WorkflowCronJobDefinitionFragment response data
113608
+ */
113609
+ class WorkflowCronJobDefinition extends Request {
113610
+ constructor(request, data) {
113611
+ var _a, _b, _c, _d, _e, _f;
113612
+ super(request);
113613
+ this.activities = (_a = parseJson(data.activities)) !== null && _a !== void 0 ? _a : {};
113614
+ this.archivedAt = (_b = parseDate(data.archivedAt)) !== null && _b !== void 0 ? _b : undefined;
113615
+ this.createdAt = (_c = parseDate(data.createdAt)) !== null && _c !== void 0 ? _c : new Date();
113616
+ this.description = (_d = data.description) !== null && _d !== void 0 ? _d : undefined;
113617
+ this.enabled = data.enabled;
113618
+ this.id = data.id;
113619
+ this.name = data.name;
113620
+ this.schedule = (_e = parseJson(data.schedule)) !== null && _e !== void 0 ? _e : {};
113621
+ this.sortOrder = data.sortOrder;
113622
+ this.updatedAt = (_f = parseDate(data.updatedAt)) !== null && _f !== void 0 ? _f : new Date();
113623
+ this._creator = data.creator;
113624
+ this._team = data.team;
113625
+ }
113626
+ /** The user who created the workflow cron job. */
113627
+ get creator() {
113628
+ return new UserQuery(this._request).fetch(this._creator.id);
113629
+ }
113630
+ /** The team associated with the workflow cron job. */
113631
+ get team() {
113632
+ return new TeamQuery(this._request).fetch(this._team.id);
113633
+ }
113634
+ }
113635
+ /**
113636
+ * WorkflowCronJobDefinitionConnection model
113637
+ *
113638
+ * @param request - function to call the graphql client
113639
+ * @param fetch - function to trigger a refetch of this WorkflowCronJobDefinitionConnection model
113640
+ * @param data - WorkflowCronJobDefinitionConnection response data
113641
+ */
113642
+ class WorkflowCronJobDefinitionConnection extends Connection {
113643
+ constructor(request, fetch, data) {
113644
+ super(request, fetch, data.nodes.map(node => new WorkflowCronJobDefinition(request, node)), new PageInfo(request, data.pageInfo));
113645
+ }
113646
+ }
113501
113647
  /**
113502
113648
  * WorkflowDefinition model
113503
113649
  *
@@ -113506,7 +113652,7 @@ class WebhookPayload extends Request {
113506
113652
  */
113507
113653
  class WorkflowDefinition extends Request {
113508
113654
  constructor(request, data) {
113509
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
113655
+ var _a, _b, _c, _d, _e, _f, _g, _h;
113510
113656
  super(request);
113511
113657
  this.activities = (_a = parseJson(data.activities)) !== null && _a !== void 0 ? _a : {};
113512
113658
  this.archivedAt = (_b = parseDate(data.archivedAt)) !== null && _b !== void 0 ? _b : undefined;
@@ -113517,11 +113663,10 @@ class WorkflowDefinition extends Request {
113517
113663
  this.groupName = (_f = data.groupName) !== null && _f !== void 0 ? _f : undefined;
113518
113664
  this.id = data.id;
113519
113665
  this.name = data.name;
113520
- this.schedule = (_g = parseJson(data.schedule)) !== null && _g !== void 0 ? _g : {};
113521
113666
  this.sortOrder = data.sortOrder;
113522
- this.updatedAt = (_h = parseDate(data.updatedAt)) !== null && _h !== void 0 ? _h : new Date();
113667
+ this.updatedAt = (_g = parseDate(data.updatedAt)) !== null && _g !== void 0 ? _g : new Date();
113523
113668
  this._creator = data.creator;
113524
- this._team = (_j = data.team) !== null && _j !== void 0 ? _j : undefined;
113669
+ this._team = (_h = data.team) !== null && _h !== void 0 ? _h : undefined;
113525
113670
  }
113526
113671
  /** The user who created the workflow. */
113527
113672
  get creator() {
@@ -115071,6 +115216,33 @@ class IntegrationSlackImportEmojisMutation extends Request {
115071
115216
  });
115072
115217
  }
115073
115218
  }
115219
+ /**
115220
+ * A fetchable IntegrationSlackIntake Mutation
115221
+ *
115222
+ * @param request - function to call the graphql client
115223
+ */
115224
+ class IntegrationSlackIntakeMutation extends Request {
115225
+ constructor(request) {
115226
+ super(request);
115227
+ }
115228
+ /**
115229
+ * Call the IntegrationSlackIntake mutation and return a IntegrationPayload
115230
+ *
115231
+ * @param code - required code to pass to integrationSlackIntake
115232
+ * @param redirectUri - required redirectUri to pass to integrationSlackIntake
115233
+ * @returns parsed response from IntegrationSlackIntakeMutation
115234
+ */
115235
+ fetch(code, redirectUri) {
115236
+ return __awaiter(this, void 0, void 0, function* () {
115237
+ const response = yield this._request(IntegrationSlackIntakeDocument, {
115238
+ code,
115239
+ redirectUri,
115240
+ });
115241
+ const data = response.integrationSlackIntake;
115242
+ return new IntegrationPayload(this._request, data);
115243
+ });
115244
+ }
115245
+ }
115074
115246
  /**
115075
115247
  * A fetchable IntegrationSlackOrgProjectUpdatesPost Mutation
115076
115248
  *
@@ -122037,6 +122209,16 @@ class LinearSdk extends Request {
122037
122209
  integrationSlackImportEmojis(code, redirectUri) {
122038
122210
  return new IntegrationSlackImportEmojisMutation(this._request).fetch(code, redirectUri);
122039
122211
  }
122212
+ /**
122213
+ * Integrates the organization with Slack for issue intake.
122214
+ *
122215
+ * @param code - required code to pass to integrationSlackIntake
122216
+ * @param redirectUri - required redirectUri to pass to integrationSlackIntake
122217
+ * @returns IntegrationPayload
122218
+ */
122219
+ integrationSlackIntake(code, redirectUri) {
122220
+ return new IntegrationSlackIntakeMutation(this._request).fetch(code, redirectUri);
122221
+ }
122040
122222
  /**
122041
122223
  * Slack integration for organization level project update notifications.
122042
122224
  *
@@ -123834,5 +124016,38 @@ class LinearClient extends LinearSdk {
123834
124016
  }
123835
124017
  }
123836
124018
 
123837
- export { AdminJobConfigurationPayload, AdminJobStatusPayload, AdministrableTeamsQuery, AirbyteIntegrationConnectMutation, ApiKey, ApiKeyConnection, ApiKeyPayload, ApiKeysQuery, Application, ApplicationInfoQuery, ApplicationWithAuthorizationQuery, ArchiveAttachmentMutation, ArchiveCycleMutation, ArchiveIssueLabelMutation, ArchiveIssueMutation, ArchiveNotificationMutation, ArchivePayload, ArchiveProjectMutation, ArchiveWorkflowStateMutation, Attachment, AttachmentConnection, AttachmentIssueQuery, AttachmentIssue_AttachmentsQuery, AttachmentIssue_ChildrenQuery, AttachmentIssue_CommentsQuery, AttachmentIssue_HistoryQuery, AttachmentIssue_InverseRelationsQuery, AttachmentIssue_LabelsQuery, AttachmentIssue_RelationsQuery, AttachmentIssue_SubscribersQuery, AttachmentLinkDiscordMutation, AttachmentLinkFrontMutation, AttachmentLinkIntercomMutation, AttachmentLinkJiraIssueMutation, AttachmentLinkUrlMutation, AttachmentLinkZendeskMutation, AttachmentPayload, AttachmentQuery, AttachmentsForUrlQuery, AttachmentsQuery, AuditEntriesQuery, AuditEntry, AuditEntryConnection, AuditEntryType, AuditEntryTypesQuery, AuthResolverResponse, AuthenticationLinearError, AvailableUsersQuery, BootstrapLinearError, Comment, CommentConnection, CommentPayload, CommentQuery, Comment_ChildrenQuery, CommentsQuery, Connection, ContactPayload, CreateApiKeyMutation, CreateAttachmentMutation, CreateCommentMutation, CreateContactMutation, CreateCsvExportReportMutation, CreateCsvExportReportPayload, CreateCustomViewMutation, CreateCycleMutation, CreateDocumentMutation, CreateEmojiMutation, CreateEventMutation, CreateFavoriteMutation, CreateIntegrationGithubCommitMutation, CreateIntegrationTemplateMutation, CreateIntegrationsSettingsMutation, CreateIssueLabelMutation, CreateIssueMutation, CreateIssueRelationMutation, CreateNotificationSubscriptionMutation, CreateOrJoinOrganizationResponse, CreateOrganizationFromOnboardingMutation, CreateOrganizationInviteMutation, CreateProjectLinkMutation, CreateProjectMilestoneMutation, CreateProjectMutation, CreateProjectUpdateInteractionMutation, CreateProjectUpdateMutation, CreatePushSubscriptionMutation, CreateReactionMutation, CreateRoadmapMutation, CreateRoadmapToProjectMutation, CreateTeamMembershipMutation, CreateTeamMutation, CreateTemplateMutation, CreateViewPreferencesMutation, CreateWebhookMutation, CreateWorkflowStateMutation, CustomView, CustomViewConnection, CustomViewPayload, CustomViewQuery, CustomViewsQuery, Cycle, CycleConnection, CyclePayload, CycleQuery, Cycle_IssuesQuery, Cycle_UncompletedIssuesUponCloseQuery, CyclesQuery, DeleteApiKeyMutation, DeleteAttachmentMutation, DeleteCommentMutation, DeleteCustomViewMutation, DeleteDocumentMutation, DeleteEmojiMutation, DeleteFavoriteMutation, DeleteIntegrationIntercomMutation, DeleteIntegrationMutation, DeleteIntegrationTemplateMutation, DeleteIssueImportMutation, DeleteIssueLabelMutation, DeleteIssueMutation, DeleteIssueRelationMutation, DeleteNotificationSubscriptionMutation, DeleteOrganizationCancelMutation, DeleteOrganizationDomainMutation, DeleteOrganizationInviteMutation, DeleteOrganizationMutation, DeleteProjectLinkMutation, DeleteProjectMilestoneMutation, DeleteProjectMutation, DeleteProjectUpdateMutation, DeletePushSubscriptionMutation, DeleteReactionMutation, DeleteRoadmapMutation, DeleteRoadmapToProjectMutation, DeleteTeamCyclesMutation, DeleteTeamKeyMutation, DeleteTeamMembershipMutation, DeleteTeamMutation, DeleteTemplateMutation, DeleteViewPreferencesMutation, DeleteWebhookMutation, Document, DocumentConnection, DocumentPayload, DocumentQuery, DocumentsQuery, EmailTokenUserAccountAuthMutation, EmailUnsubscribeMutation, EmailUnsubscribePayload, EmailUserAccountAuthChallengeMutation, EmailUserAccountAuthChallengeResponse, Emoji, EmojiConnection, EmojiPayload, EmojiQuery, EmojisQuery, Entity, EventPayload, Favorite, FavoriteConnection, FavoritePayload, FavoriteQuery, Favorite_ChildrenQuery, FavoritesQuery, FeatureNotAccessibleLinearError, FigmaEmbed, FigmaEmbedInfoQuery, FigmaEmbedInfo_FigmaEmbedQuery, FigmaEmbedPayload, FileUploadMutation, ForbiddenLinearError, FrontAttachmentPayload, FrontSettings, GitHubCommitIntegrationPayload, GitHubSettings, GithubOAuthTokenPayload, GithubOrg, GithubRepo, GoogleSheetsSettings, GoogleUserAccountAuthMutation, GraphQLClientError, GraphqlLinearError, ImageUploadFromUrlMutation, ImageUploadFromUrlPayload, Integration, IntegrationConnection, IntegrationDiscordMutation, IntegrationFigmaMutation, IntegrationFrontMutation, IntegrationGithubConnectMutation, IntegrationGitlabConnectMutation, IntegrationGoogleSheetsMutation, IntegrationIntercomMutation, IntegrationLoomMutation, IntegrationPayload, IntegrationQuery, IntegrationRequestMutation, IntegrationRequestPayload, IntegrationSentryConnectMutation, IntegrationSettings, IntegrationSlackImportEmojisMutation, IntegrationSlackMutation, IntegrationSlackOrgProjectUpdatesPostMutation, IntegrationSlackPersonalMutation, IntegrationSlackPostMutation, IntegrationSlackProjectPostMutation, IntegrationTemplate, IntegrationTemplateConnection, IntegrationTemplatePayload, IntegrationTemplateQuery, IntegrationTemplatesQuery, IntegrationZendeskMutation, IntegrationsQuery, IntegrationsSettings, IntegrationsSettingsConnection, IntegrationsSettingsPayload, IntegrationsSettingsQuery, IntercomSettings, InternalLinearError, InvalidInputLinearError, Issue, IssueBatchPayload, IssueConnection, IssueHistory, IssueHistoryConnection, IssueImport, IssueImportCreateAsanaMutation, IssueImportCreateClubhouseMutation, IssueImportCreateGithubMutation, IssueImportCreateJiraMutation, IssueImportDeletePayload, IssueImportFinishGithubOAuthQuery, IssueImportPayload, IssueImportProcessMutation, IssueLabel, IssueLabelConnection, IssueLabelPayload, IssueLabelQuery, IssueLabel_ChildrenQuery, IssueLabel_IssuesQuery, IssueLabelsQuery, IssueNotification, IssuePayload, IssuePriorityValue, IssuePriorityValuesQuery, IssueQuery, IssueRelation, IssueRelationConnection, IssueRelationHistoryPayload, IssueRelationPayload, IssueRelationQuery, IssueRelationsQuery, IssueReminderMutation, IssueVcsBranchSearchQuery, IssueVcsBranchSearch_AttachmentsQuery, IssueVcsBranchSearch_ChildrenQuery, IssueVcsBranchSearch_CommentsQuery, IssueVcsBranchSearch_HistoryQuery, IssueVcsBranchSearch_InverseRelationsQuery, IssueVcsBranchSearch_LabelsQuery, IssueVcsBranchSearch_RelationsQuery, IssueVcsBranchSearch_SubscribersQuery, Issue_AttachmentsQuery, Issue_ChildrenQuery, Issue_CommentsQuery, Issue_HistoryQuery, Issue_InverseRelationsQuery, Issue_LabelsQuery, Issue_RelationsQuery, Issue_SubscribersQuery, IssuesQuery, JiraLinearMapping, JiraProjectData, JiraSettings, JoinOrganizationFromOnboardingMutation, LeaveOrganizationMutation, LinearClient, LinearConnection, _generated_documents as LinearDocument, LinearError, LinearErrorType, LinearGraphQLClient, LinearGraphQLError, LinearSdk, LockTimeoutLinearError, LogoutMutation, LogoutResponse, NetworkLinearError, Node, Notification, NotificationConnection, NotificationPayload, NotificationQuery, NotificationSubscription, NotificationSubscriptionConnection, NotificationSubscriptionPayload, NotificationSubscriptionQuery, NotificationSubscriptionsQuery, NotificationsQuery, NotionSettings, OauthClient, OauthClientApproval, OauthClientApprovalNotification, Organization, OrganizationCancelDeletePayload, OrganizationDeleteChallengeMutation, OrganizationDeletePayload, OrganizationDomain, OrganizationExistsPayload, OrganizationExistsQuery, OrganizationInvite, OrganizationInviteConnection, OrganizationInviteDetailsPayload, OrganizationInviteDetailsQuery, OrganizationInvitePayload, OrganizationInviteQuery, OrganizationInvitesQuery, OrganizationPayload, OrganizationQuery, Organization_IntegrationsQuery, Organization_LabelsQuery, Organization_SubscriptionQuery, Organization_TeamsQuery, Organization_TemplatesQuery, Organization_UsersQuery, OtherLinearError, PageInfo, PaidSubscription, PersonalNote, Project, ProjectConnection, ProjectLink, ProjectLinkConnection, ProjectLinkPayload, ProjectLinkQuery, ProjectLinksQuery, ProjectMilestone, ProjectMilestoneConnection, ProjectMilestonePayload, ProjectMilestoneQuery, ProjectMilestonesQuery, ProjectNotification, ProjectNotificationSubscription, ProjectPayload, ProjectQuery, ProjectUpdate, ProjectUpdateConnection, ProjectUpdateInteraction, ProjectUpdateInteractionConnection, ProjectUpdateInteractionPayload, ProjectUpdateInteractionQuery, ProjectUpdateInteractionsQuery, ProjectUpdateMarkAsReadMutation, ProjectUpdatePayload, ProjectUpdateQuery, ProjectUpdateWithInteractionPayload, ProjectUpdatesQuery, Project_DocumentsQuery, Project_IssuesQuery, Project_LinksQuery, Project_MembersQuery, Project_ProjectUpdatesQuery, Project_TeamsQuery, ProjectsQuery, PushSubscription, PushSubscriptionConnection, PushSubscriptionPayload, PushSubscriptionTestPayload, PushSubscriptionTestQuery, RateLimitPayload, RateLimitResultPayload, RateLimitStatusQuery, RatelimitedLinearError, Reaction, ReactionConnection, ReactionPayload, RefreshGoogleSheetsDataMutation, Request, ResendOrganizationInviteMutation, Roadmap, RoadmapConnection, RoadmapPayload, RoadmapQuery, RoadmapToProject, RoadmapToProjectConnection, RoadmapToProjectPayload, RoadmapToProjectQuery, RoadmapToProjectsQuery, Roadmap_ProjectsQuery, RoadmapsQuery, SamlConfiguration, SamlConfigurationPayload, SamlTokenUserAccountAuthMutation, SentrySettings, SlackPostSettings, SsoUrlFromEmailQuery, SsoUrlFromEmailResponse, SuspendUserMutation, SyncResponse, SynchronizedPayload, Team, TeamConnection, TeamMembership, TeamMembershipConnection, TeamMembershipPayload, TeamMembershipQuery, TeamMembershipsQuery, TeamNotificationSubscription, TeamPayload, TeamQuery, Team_CyclesQuery, Team_IssuesQuery, Team_LabelsQuery, Team_MembersQuery, Team_MembershipsQuery, Team_ProjectsQuery, Team_StatesQuery, Team_TemplatesQuery, Team_WebhooksQuery, TeamsQuery, Template, TemplateConnection, TemplatePayload, TemplateQuery, TemplatesQuery, UnarchiveIssueMutation, UnarchiveNotificationMutation, UnarchiveProjectMutation, UnknownLinearError, UnsuspendUserMutation, UpdateAttachmentMutation, UpdateCommentMutation, UpdateCustomViewMutation, UpdateCycleMutation, UpdateDocumentMutation, UpdateFavoriteMutation, UpdateIntegrationIntercomSettingsMutation, UpdateIntegrationsSettingsMutation, UpdateIssueBatchMutation, UpdateIssueImportMutation, UpdateIssueLabelMutation, UpdateIssueMutation, UpdateIssueRelationMutation, UpdateNotificationMutation, UpdateNotificationSubscriptionMutation, UpdateOrganizationInviteMutation, UpdateOrganizationMutation, UpdateProjectLinkMutation, UpdateProjectMilestoneMutation, UpdateProjectMutation, UpdateProjectUpdateMutation, UpdateRoadmapMutation, UpdateRoadmapToProjectMutation, UpdateTeamMembershipMutation, UpdateTeamMutation, UpdateTemplateMutation, UpdateUserFlagMutation, UpdateUserMutation, UpdateUserSettingsMutation, UpdateViewPreferencesMutation, UpdateWebhookMutation, UpdateWorkflowStateMutation, UploadFile, UploadFileHeader, UploadPayload, User, UserAccount, UserAdminPayload, UserAuthorizedApplication, UserConnection, UserDemoteAdminMutation, UserDemoteMemberMutation, UserDiscordConnectMutation, UserExternalUserDisconnectMutation, UserGitHubConnectMutation, UserGoogleCalendarConnectMutation, UserLinearError, UserPayload, UserPromoteAdminMutation, UserPromoteMemberMutation, UserQuery, UserSettings, UserSettingsFlagIncrementMutation, UserSettingsFlagPayload, UserSettingsFlagsResetMutation, UserSettingsFlagsResetPayload, UserSettingsPayload, UserSettingsQuery, User_AssignedIssuesQuery, User_CreatedIssuesQuery, User_TeamMembershipsQuery, User_TeamsQuery, UsersQuery, ViewPreferences, ViewPreferencesPayload, ViewerQuery, Viewer_AssignedIssuesQuery, Viewer_CreatedIssuesQuery, Viewer_TeamMembershipsQuery, Viewer_TeamsQuery, Webhook, WebhookConnection, WebhookPayload, WebhookQuery, WebhooksQuery, WorkflowDefinition, WorkflowDefinitionConnection, WorkflowState, WorkflowStateConnection, WorkflowStatePayload, WorkflowStateQuery, WorkflowState_IssuesQuery, WorkflowStatesQuery, ZendeskSettings, parseLinearError };
124019
+ const LINEAR_WEBHOOK_SIGNATURE_HEADER = "linear-signature";
124020
+ const LINEAR_WEBHOOK_TS_FIELD = "webhookTimestamp";
124021
+ /**
124022
+ * Provides helper functions to work with Linear webhooks
124023
+ */
124024
+ class LinearWebhooks {
124025
+ constructor(secret) {
124026
+ this.secret = secret;
124027
+ }
124028
+ /**
124029
+ * Verify the webhook signature
124030
+ * @param rawBody The webhook request raw body.
124031
+ * @param signature The signature to verify.
124032
+ * @param timestamp The `webhookTimestamp` field from the request parsed body.
124033
+ */
124034
+ verify(rawBody, signature, timestamp) {
124035
+ const verificationBuffer = Buffer.from(crypto.createHmac("sha256", this.secret).update(rawBody).digest("hex"));
124036
+ const signatureBuffer = Buffer.from(signature);
124037
+ if (verificationBuffer.length !== signatureBuffer.length) {
124038
+ throw new Error("Invalid webhook signature");
124039
+ }
124040
+ if (!crypto.timingSafeEqual(verificationBuffer, signatureBuffer)) {
124041
+ throw new Error("Invalid webhook signature");
124042
+ }
124043
+ const timeDiff = Math.abs(new Date().getTime() - timestamp);
124044
+ // Throw error if more than one minute delta between provided ts and current time
124045
+ if (timeDiff > 1000 * 60) {
124046
+ throw new Error("Invalid webhook timestamp");
124047
+ }
124048
+ return true;
124049
+ }
124050
+ }
124051
+
124052
+ export { AdministrableTeamsQuery, AirbyteIntegrationConnectMutation, ApiKey, ApiKeyConnection, ApiKeyPayload, ApiKeysQuery, Application, ApplicationInfoQuery, ApplicationWithAuthorizationQuery, ArchiveAttachmentMutation, ArchiveCycleMutation, ArchiveIssueLabelMutation, ArchiveIssueMutation, ArchiveNotificationMutation, ArchivePayload, ArchiveProjectMutation, ArchiveWorkflowStateMutation, Attachment, AttachmentConnection, AttachmentIssueQuery, AttachmentIssue_AttachmentsQuery, AttachmentIssue_ChildrenQuery, AttachmentIssue_CommentsQuery, AttachmentIssue_HistoryQuery, AttachmentIssue_InverseRelationsQuery, AttachmentIssue_LabelsQuery, AttachmentIssue_RelationsQuery, AttachmentIssue_SubscribersQuery, AttachmentLinkDiscordMutation, AttachmentLinkFrontMutation, AttachmentLinkIntercomMutation, AttachmentLinkJiraIssueMutation, AttachmentLinkUrlMutation, AttachmentLinkZendeskMutation, AttachmentPayload, AttachmentQuery, AttachmentsForUrlQuery, AttachmentsQuery, AuditEntriesQuery, AuditEntry, AuditEntryConnection, AuditEntryType, AuditEntryTypesQuery, AuthResolverResponse, AuthenticationLinearError, AvailableUsersQuery, BootstrapLinearError, Comment, CommentConnection, CommentPayload, CommentQuery, Comment_ChildrenQuery, CommentsQuery, Connection, ContactPayload, CreateApiKeyMutation, CreateAttachmentMutation, CreateCommentMutation, CreateContactMutation, CreateCsvExportReportMutation, CreateCsvExportReportPayload, CreateCustomViewMutation, CreateCycleMutation, CreateDocumentMutation, CreateEmojiMutation, CreateEventMutation, CreateFavoriteMutation, CreateIntegrationGithubCommitMutation, CreateIntegrationTemplateMutation, CreateIntegrationsSettingsMutation, CreateIssueLabelMutation, CreateIssueMutation, CreateIssueRelationMutation, CreateNotificationSubscriptionMutation, CreateOrJoinOrganizationResponse, CreateOrganizationFromOnboardingMutation, CreateOrganizationInviteMutation, CreateProjectLinkMutation, CreateProjectMilestoneMutation, CreateProjectMutation, CreateProjectUpdateInteractionMutation, CreateProjectUpdateMutation, CreatePushSubscriptionMutation, CreateReactionMutation, CreateRoadmapMutation, CreateRoadmapToProjectMutation, CreateTeamMembershipMutation, CreateTeamMutation, CreateTemplateMutation, CreateViewPreferencesMutation, CreateWebhookMutation, CreateWorkflowStateMutation, CustomView, CustomViewConnection, CustomViewPayload, CustomViewQuery, CustomViewsQuery, Cycle, CycleConnection, CyclePayload, CycleQuery, Cycle_IssuesQuery, Cycle_UncompletedIssuesUponCloseQuery, CyclesQuery, DeleteApiKeyMutation, DeleteAttachmentMutation, DeleteCommentMutation, DeleteCustomViewMutation, DeleteDocumentMutation, DeleteEmojiMutation, DeleteFavoriteMutation, DeleteIntegrationIntercomMutation, DeleteIntegrationMutation, DeleteIntegrationTemplateMutation, DeleteIssueImportMutation, DeleteIssueLabelMutation, DeleteIssueMutation, DeleteIssueRelationMutation, DeleteNotificationSubscriptionMutation, DeleteOrganizationCancelMutation, DeleteOrganizationDomainMutation, DeleteOrganizationInviteMutation, DeleteOrganizationMutation, DeleteProjectLinkMutation, DeleteProjectMilestoneMutation, DeleteProjectMutation, DeleteProjectUpdateMutation, DeletePushSubscriptionMutation, DeleteReactionMutation, DeleteRoadmapMutation, DeleteRoadmapToProjectMutation, DeleteTeamCyclesMutation, DeleteTeamKeyMutation, DeleteTeamMembershipMutation, DeleteTeamMutation, DeleteTemplateMutation, DeleteViewPreferencesMutation, DeleteWebhookMutation, Document, DocumentConnection, DocumentPayload, DocumentQuery, DocumentsQuery, EmailTokenUserAccountAuthMutation, EmailUnsubscribeMutation, EmailUnsubscribePayload, EmailUserAccountAuthChallengeMutation, EmailUserAccountAuthChallengeResponse, Emoji, EmojiConnection, EmojiPayload, EmojiQuery, EmojisQuery, Entity, EventPayload, Favorite, FavoriteConnection, FavoritePayload, FavoriteQuery, Favorite_ChildrenQuery, FavoritesQuery, FeatureNotAccessibleLinearError, FigmaEmbed, FigmaEmbedInfoQuery, FigmaEmbedInfo_FigmaEmbedQuery, FigmaEmbedPayload, FileUploadMutation, ForbiddenLinearError, FrontAttachmentPayload, FrontSettings, GitHubCommitIntegrationPayload, GitHubSettings, GithubOAuthTokenPayload, GithubOrg, GithubRepo, GoogleSheetsSettings, GoogleUserAccountAuthMutation, GraphQLClientError, GraphqlLinearError, ImageUploadFromUrlMutation, ImageUploadFromUrlPayload, Integration, IntegrationConnection, IntegrationDiscordMutation, IntegrationFigmaMutation, IntegrationFrontMutation, IntegrationGithubConnectMutation, IntegrationGitlabConnectMutation, IntegrationGoogleSheetsMutation, IntegrationIntercomMutation, IntegrationLoomMutation, IntegrationPayload, IntegrationQuery, IntegrationRequestMutation, IntegrationRequestPayload, IntegrationSentryConnectMutation, IntegrationSettings, IntegrationSlackImportEmojisMutation, IntegrationSlackIntakeMutation, IntegrationSlackMutation, IntegrationSlackOrgProjectUpdatesPostMutation, IntegrationSlackPersonalMutation, IntegrationSlackPostMutation, IntegrationSlackProjectPostMutation, IntegrationTemplate, IntegrationTemplateConnection, IntegrationTemplatePayload, IntegrationTemplateQuery, IntegrationTemplatesQuery, IntegrationZendeskMutation, IntegrationsQuery, IntegrationsSettings, IntegrationsSettingsConnection, IntegrationsSettingsPayload, IntegrationsSettingsQuery, IntercomSettings, InternalLinearError, InvalidInputLinearError, Issue, IssueBatchPayload, IssueConnection, IssueHistory, IssueHistoryConnection, IssueImport, IssueImportCreateAsanaMutation, IssueImportCreateClubhouseMutation, IssueImportCreateGithubMutation, IssueImportCreateJiraMutation, IssueImportDeletePayload, IssueImportFinishGithubOAuthQuery, IssueImportPayload, IssueImportProcessMutation, IssueLabel, IssueLabelConnection, IssueLabelPayload, IssueLabelQuery, IssueLabel_ChildrenQuery, IssueLabel_IssuesQuery, IssueLabelsQuery, IssueNotification, IssuePayload, IssuePriorityValue, IssuePriorityValuesQuery, IssueQuery, IssueRelation, IssueRelationConnection, IssueRelationHistoryPayload, IssueRelationPayload, IssueRelationQuery, IssueRelationsQuery, IssueReminderMutation, IssueVcsBranchSearchQuery, IssueVcsBranchSearch_AttachmentsQuery, IssueVcsBranchSearch_ChildrenQuery, IssueVcsBranchSearch_CommentsQuery, IssueVcsBranchSearch_HistoryQuery, IssueVcsBranchSearch_InverseRelationsQuery, IssueVcsBranchSearch_LabelsQuery, IssueVcsBranchSearch_RelationsQuery, IssueVcsBranchSearch_SubscribersQuery, Issue_AttachmentsQuery, Issue_ChildrenQuery, Issue_CommentsQuery, Issue_HistoryQuery, Issue_InverseRelationsQuery, Issue_LabelsQuery, Issue_RelationsQuery, Issue_SubscribersQuery, IssuesQuery, JiraLinearMapping, JiraProjectData, JiraSettings, JoinOrganizationFromOnboardingMutation, LINEAR_WEBHOOK_SIGNATURE_HEADER, LINEAR_WEBHOOK_TS_FIELD, LeaveOrganizationMutation, LinearClient, LinearConnection, _generated_documents as LinearDocument, LinearError, LinearErrorType, LinearGraphQLClient, LinearGraphQLError, LinearSdk, LinearWebhooks, LockTimeoutLinearError, LogoutMutation, LogoutResponse, NetworkLinearError, Node, Notification, NotificationConnection, NotificationPayload, NotificationQuery, NotificationSubscription, NotificationSubscriptionConnection, NotificationSubscriptionPayload, NotificationSubscriptionQuery, NotificationSubscriptionsQuery, NotificationsQuery, NotionSettings, OauthClient, OauthClientApproval, OauthClientApprovalNotification, OauthClientConnection, Organization, OrganizationCancelDeletePayload, OrganizationDeleteChallengeMutation, OrganizationDeletePayload, OrganizationDomain, OrganizationExistsPayload, OrganizationExistsQuery, OrganizationInvite, OrganizationInviteConnection, OrganizationInviteDetailsPayload, OrganizationInviteDetailsQuery, OrganizationInvitePayload, OrganizationInviteQuery, OrganizationInvitesQuery, OrganizationPayload, OrganizationQuery, Organization_IntegrationsQuery, Organization_LabelsQuery, Organization_SubscriptionQuery, Organization_TeamsQuery, Organization_TemplatesQuery, Organization_UsersQuery, OtherLinearError, PageInfo, PaidSubscription, PersonalNote, Project, ProjectConnection, ProjectLink, ProjectLinkConnection, ProjectLinkPayload, ProjectLinkQuery, ProjectLinksQuery, ProjectMilestone, ProjectMilestoneConnection, ProjectMilestonePayload, ProjectMilestoneQuery, ProjectMilestonesQuery, ProjectNotification, ProjectNotificationSubscription, ProjectPayload, ProjectQuery, ProjectUpdate, ProjectUpdateConnection, ProjectUpdateInteraction, ProjectUpdateInteractionConnection, ProjectUpdateInteractionPayload, ProjectUpdateInteractionQuery, ProjectUpdateInteractionsQuery, ProjectUpdateMarkAsReadMutation, ProjectUpdatePayload, ProjectUpdateQuery, ProjectUpdateWithInteractionPayload, ProjectUpdatesQuery, Project_DocumentsQuery, Project_IssuesQuery, Project_LinksQuery, Project_MembersQuery, Project_ProjectUpdatesQuery, Project_TeamsQuery, ProjectsQuery, PushSubscription, PushSubscriptionConnection, PushSubscriptionPayload, PushSubscriptionTestPayload, PushSubscriptionTestQuery, RateLimitPayload, RateLimitResultPayload, RateLimitStatusQuery, RatelimitedLinearError, Reaction, ReactionConnection, ReactionPayload, RefreshGoogleSheetsDataMutation, Request, ResendOrganizationInviteMutation, Roadmap, RoadmapConnection, RoadmapPayload, RoadmapQuery, RoadmapToProject, RoadmapToProjectConnection, RoadmapToProjectPayload, RoadmapToProjectQuery, RoadmapToProjectsQuery, Roadmap_ProjectsQuery, RoadmapsQuery, SamlConfiguration, SamlConfigurationPayload, SamlTokenUserAccountAuthMutation, SentrySettings, SlackPostSettings, SsoUrlFromEmailQuery, SsoUrlFromEmailResponse, SuspendUserMutation, SyncResponse, SynchronizedPayload, Team, TeamConnection, TeamMembership, TeamMembershipConnection, TeamMembershipPayload, TeamMembershipQuery, TeamMembershipsQuery, TeamNotificationSubscription, TeamPayload, TeamQuery, Team_CyclesQuery, Team_IssuesQuery, Team_LabelsQuery, Team_MembersQuery, Team_MembershipsQuery, Team_ProjectsQuery, Team_StatesQuery, Team_TemplatesQuery, Team_WebhooksQuery, TeamsQuery, Template, TemplateConnection, TemplatePayload, TemplateQuery, TemplatesQuery, UnarchiveIssueMutation, UnarchiveNotificationMutation, UnarchiveProjectMutation, UnknownLinearError, UnsuspendUserMutation, UpdateAttachmentMutation, UpdateCommentMutation, UpdateCustomViewMutation, UpdateCycleMutation, UpdateDocumentMutation, UpdateFavoriteMutation, UpdateIntegrationIntercomSettingsMutation, UpdateIntegrationsSettingsMutation, UpdateIssueBatchMutation, UpdateIssueImportMutation, UpdateIssueLabelMutation, UpdateIssueMutation, UpdateIssueRelationMutation, UpdateNotificationMutation, UpdateNotificationSubscriptionMutation, UpdateOrganizationInviteMutation, UpdateOrganizationMutation, UpdateProjectLinkMutation, UpdateProjectMilestoneMutation, UpdateProjectMutation, UpdateProjectUpdateMutation, UpdateRoadmapMutation, UpdateRoadmapToProjectMutation, UpdateTeamMembershipMutation, UpdateTeamMutation, UpdateTemplateMutation, UpdateUserFlagMutation, UpdateUserMutation, UpdateUserSettingsMutation, UpdateViewPreferencesMutation, UpdateWebhookMutation, UpdateWorkflowStateMutation, UploadFile, UploadFileHeader, UploadPayload, User, UserAccount, UserAdminPayload, UserAuthorizedApplication, UserConnection, UserDemoteAdminMutation, UserDemoteMemberMutation, UserDiscordConnectMutation, UserExternalUserDisconnectMutation, UserGitHubConnectMutation, UserGoogleCalendarConnectMutation, UserLinearError, UserPayload, UserPromoteAdminMutation, UserPromoteMemberMutation, UserQuery, UserSettings, UserSettingsFlagIncrementMutation, UserSettingsFlagPayload, UserSettingsFlagsResetMutation, UserSettingsFlagsResetPayload, UserSettingsPayload, UserSettingsQuery, User_AssignedIssuesQuery, User_CreatedIssuesQuery, User_TeamMembershipsQuery, User_TeamsQuery, UsersQuery, ViewPreferences, ViewPreferencesPayload, ViewerQuery, Viewer_AssignedIssuesQuery, Viewer_CreatedIssuesQuery, Viewer_TeamMembershipsQuery, Viewer_TeamsQuery, Webhook, WebhookConnection, WebhookPayload, WebhookQuery, WebhooksQuery, WorkflowCronJobDefinition, WorkflowCronJobDefinitionConnection, WorkflowDefinition, WorkflowDefinitionConnection, WorkflowState, WorkflowStateConnection, WorkflowStatePayload, WorkflowStateQuery, WorkflowState_IssuesQuery, WorkflowStatesQuery, ZendeskSettings, parseLinearError };
123838
124053
  //# sourceMappingURL=index-es.js.map