@linear/sdk 67.0.0 → 68.1.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.cjs CHANGED
@@ -456,6 +456,8 @@ var _generated_documents_exports = /* @__PURE__ */ require_webhooks.__export({
456
456
  AgentSessionFragmentDoc: () => AgentSessionFragmentDoc,
457
457
  AgentSessionPayloadFragmentDoc: () => AgentSessionPayloadFragmentDoc,
458
458
  AgentSessionStatus: () => AgentSessionStatus,
459
+ AgentSessionToPullRequestConnectionFragmentDoc: () => AgentSessionToPullRequestConnectionFragmentDoc,
460
+ AgentSessionToPullRequestFragmentDoc: () => AgentSessionToPullRequestFragmentDoc,
459
461
  AgentSessionType: () => AgentSessionType,
460
462
  AgentSessionUpdateExternalUrlDocument: () => AgentSessionUpdateExternalUrlDocument,
461
463
  AgentSessionWebhookPayloadFragmentDoc: () => AgentSessionWebhookPayloadFragmentDoc,
@@ -482,6 +484,8 @@ var _generated_documents_exports = /* @__PURE__ */ require_webhooks.__export({
482
484
  ArchiveRoadmapDocument: () => ArchiveRoadmapDocument,
483
485
  ArchiveWorkflowStateDocument: () => ArchiveWorkflowStateDocument,
484
486
  AsksChannelConnectPayloadFragmentDoc: () => AsksChannelConnectPayloadFragmentDoc,
487
+ AsksWebFormsAuthDocument: () => AsksWebFormsAuthDocument,
488
+ AsksWebFormsAuthResponseFragmentDoc: () => AsksWebFormsAuthResponseFragmentDoc,
485
489
  AttachmentConnectionFragmentDoc: () => AttachmentConnectionFragmentDoc,
486
490
  AttachmentDocument: () => AttachmentDocument,
487
491
  AttachmentFragmentDoc: () => AttachmentFragmentDoc,
@@ -9659,12 +9663,26 @@ const BaseWebhookPayloadFragmentDoc = {
9659
9663
  value: "organizationId"
9660
9664
  }
9661
9665
  },
9666
+ {
9667
+ kind: "Field",
9668
+ name: {
9669
+ kind: "Name",
9670
+ value: "webhookId"
9671
+ }
9672
+ },
9662
9673
  {
9663
9674
  kind: "Field",
9664
9675
  name: {
9665
9676
  kind: "Name",
9666
9677
  value: "createdAt"
9667
9678
  }
9679
+ },
9680
+ {
9681
+ kind: "Field",
9682
+ name: {
9683
+ kind: "Name",
9684
+ value: "webhookTimestamp"
9685
+ }
9668
9686
  }
9669
9687
  ]
9670
9688
  }
@@ -11159,6 +11177,13 @@ const OAuthAppWebhookPayloadFragmentDoc = {
11159
11177
  value: "oauthClientId"
11160
11178
  }
11161
11179
  },
11180
+ {
11181
+ kind: "Field",
11182
+ name: {
11183
+ kind: "Name",
11184
+ value: "webhookId"
11185
+ }
11186
+ },
11162
11187
  {
11163
11188
  kind: "Field",
11164
11189
  name: {
@@ -11179,6 +11204,13 @@ const OAuthAppWebhookPayloadFragmentDoc = {
11179
11204
  kind: "Name",
11180
11205
  value: "type"
11181
11206
  }
11207
+ },
11208
+ {
11209
+ kind: "Field",
11210
+ name: {
11211
+ kind: "Name",
11212
+ value: "webhookTimestamp"
11213
+ }
11182
11214
  }
11183
11215
  ]
11184
11216
  }
@@ -11307,6 +11339,13 @@ const OAuthAuthorizationWebhookPayloadFragmentDoc = {
11307
11339
  value: "userId"
11308
11340
  }
11309
11341
  },
11342
+ {
11343
+ kind: "Field",
11344
+ name: {
11345
+ kind: "Name",
11346
+ value: "webhookId"
11347
+ }
11348
+ },
11310
11349
  {
11311
11350
  kind: "Field",
11312
11351
  name: {
@@ -11334,6 +11373,13 @@ const OAuthAuthorizationWebhookPayloadFragmentDoc = {
11334
11373
  kind: "Name",
11335
11374
  value: "type"
11336
11375
  }
11376
+ },
11377
+ {
11378
+ kind: "Field",
11379
+ name: {
11380
+ kind: "Name",
11381
+ value: "webhookTimestamp"
11382
+ }
11337
11383
  }
11338
11384
  ]
11339
11385
  }
@@ -14474,6 +14520,13 @@ const AgentSessionEventWebhookPayloadFragmentDoc = {
14474
14520
  value: "__typename"
14475
14521
  }
14476
14522
  },
14523
+ {
14524
+ kind: "Field",
14525
+ name: {
14526
+ kind: "Name",
14527
+ value: "promptContext"
14528
+ }
14529
+ },
14477
14530
  {
14478
14531
  kind: "Field",
14479
14532
  name: {
@@ -14512,6 +14565,13 @@ const AgentSessionEventWebhookPayloadFragmentDoc = {
14512
14565
  value: "organizationId"
14513
14566
  }
14514
14567
  },
14568
+ {
14569
+ kind: "Field",
14570
+ name: {
14571
+ kind: "Name",
14572
+ value: "webhookId"
14573
+ }
14574
+ },
14515
14575
  {
14516
14576
  kind: "Field",
14517
14577
  name: {
@@ -14583,6 +14643,13 @@ const AgentSessionEventWebhookPayloadFragmentDoc = {
14583
14643
  kind: "Name",
14584
14644
  value: "type"
14585
14645
  }
14646
+ },
14647
+ {
14648
+ kind: "Field",
14649
+ name: {
14650
+ kind: "Name",
14651
+ value: "webhookTimestamp"
14652
+ }
14586
14653
  }
14587
14654
  ]
14588
14655
  }
@@ -16374,6 +16441,13 @@ const AppUserNotificationWebhookPayloadFragmentDoc = {
16374
16441
  value: "organizationId"
16375
16442
  }
16376
16443
  },
16444
+ {
16445
+ kind: "Field",
16446
+ name: {
16447
+ kind: "Name",
16448
+ value: "webhookId"
16449
+ }
16450
+ },
16377
16451
  {
16378
16452
  kind: "Field",
16379
16453
  name: {
@@ -16394,6 +16468,13 @@ const AppUserNotificationWebhookPayloadFragmentDoc = {
16394
16468
  kind: "Name",
16395
16469
  value: "type"
16396
16470
  }
16471
+ },
16472
+ {
16473
+ kind: "Field",
16474
+ name: {
16475
+ kind: "Name",
16476
+ value: "webhookTimestamp"
16477
+ }
16397
16478
  }
16398
16479
  ]
16399
16480
  }
@@ -16459,6 +16540,13 @@ const AppUserTeamAccessChangedWebhookPayloadFragmentDoc = {
16459
16540
  value: "removedTeamIds"
16460
16541
  }
16461
16542
  },
16543
+ {
16544
+ kind: "Field",
16545
+ name: {
16546
+ kind: "Name",
16547
+ value: "webhookId"
16548
+ }
16549
+ },
16462
16550
  {
16463
16551
  kind: "Field",
16464
16552
  name: {
@@ -16480,6 +16568,13 @@ const AppUserTeamAccessChangedWebhookPayloadFragmentDoc = {
16480
16568
  value: "type"
16481
16569
  }
16482
16570
  },
16571
+ {
16572
+ kind: "Field",
16573
+ name: {
16574
+ kind: "Name",
16575
+ value: "webhookTimestamp"
16576
+ }
16577
+ },
16483
16578
  {
16484
16579
  kind: "Field",
16485
16580
  name: {
@@ -16523,6 +16618,13 @@ const CustomResourceWebhookPayloadFragmentDoc = {
16523
16618
  value: "organizationId"
16524
16619
  }
16525
16620
  },
16621
+ {
16622
+ kind: "Field",
16623
+ name: {
16624
+ kind: "Name",
16625
+ value: "webhookId"
16626
+ }
16627
+ },
16526
16628
  {
16527
16629
  kind: "Field",
16528
16630
  name: {
@@ -16543,6 +16645,13 @@ const CustomResourceWebhookPayloadFragmentDoc = {
16543
16645
  kind: "Name",
16544
16646
  value: "type"
16545
16647
  }
16648
+ },
16649
+ {
16650
+ kind: "Field",
16651
+ name: {
16652
+ kind: "Name",
16653
+ value: "webhookTimestamp"
16654
+ }
16546
16655
  }
16547
16656
  ]
16548
16657
  }
@@ -16587,6 +16696,13 @@ const EntityWebhookPayloadFragmentDoc = {
16587
16696
  value: "updatedFrom"
16588
16697
  }
16589
16698
  },
16699
+ {
16700
+ kind: "Field",
16701
+ name: {
16702
+ kind: "Name",
16703
+ value: "webhookId"
16704
+ }
16705
+ },
16590
16706
  {
16591
16707
  kind: "Field",
16592
16708
  name: {
@@ -16614,6 +16730,13 @@ const EntityWebhookPayloadFragmentDoc = {
16614
16730
  kind: "Name",
16615
16731
  value: "url"
16616
16732
  }
16733
+ },
16734
+ {
16735
+ kind: "Field",
16736
+ name: {
16737
+ kind: "Name",
16738
+ value: "webhookTimestamp"
16739
+ }
16617
16740
  }
16618
16741
  ]
16619
16742
  }
@@ -17406,6 +17529,13 @@ const IssueSlaWebhookPayloadFragmentDoc = {
17406
17529
  value: "organizationId"
17407
17530
  }
17408
17531
  },
17532
+ {
17533
+ kind: "Field",
17534
+ name: {
17535
+ kind: "Name",
17536
+ value: "webhookId"
17537
+ }
17538
+ },
17409
17539
  {
17410
17540
  kind: "Field",
17411
17541
  name: {
@@ -17450,6 +17580,13 @@ const IssueSlaWebhookPayloadFragmentDoc = {
17450
17580
  kind: "Name",
17451
17581
  value: "url"
17452
17582
  }
17583
+ },
17584
+ {
17585
+ kind: "Field",
17586
+ name: {
17587
+ kind: "Name",
17588
+ value: "webhookTimestamp"
17589
+ }
17453
17590
  }
17454
17591
  ]
17455
17592
  }
@@ -20251,6 +20388,13 @@ const AgentSessionFragmentDoc = {
20251
20388
  }
20252
20389
  }]
20253
20390
  }
20391
+ },
20392
+ {
20393
+ kind: "Field",
20394
+ name: {
20395
+ kind: "Name",
20396
+ value: "externalUrls"
20397
+ }
20254
20398
  }
20255
20399
  ]
20256
20400
  }
@@ -20379,6 +20523,143 @@ const AgentSessionPayloadFragmentDoc = {
20379
20523
  }
20380
20524
  }]
20381
20525
  };
20526
+ const AgentSessionToPullRequestFragmentDoc = {
20527
+ kind: "Document",
20528
+ definitions: [{
20529
+ kind: "FragmentDefinition",
20530
+ name: {
20531
+ kind: "Name",
20532
+ value: "AgentSessionToPullRequest"
20533
+ },
20534
+ typeCondition: {
20535
+ kind: "NamedType",
20536
+ name: {
20537
+ kind: "Name",
20538
+ value: "AgentSessionToPullRequest"
20539
+ }
20540
+ },
20541
+ selectionSet: {
20542
+ kind: "SelectionSet",
20543
+ selections: [
20544
+ {
20545
+ kind: "Field",
20546
+ name: {
20547
+ kind: "Name",
20548
+ value: "__typename"
20549
+ }
20550
+ },
20551
+ {
20552
+ kind: "Field",
20553
+ name: {
20554
+ kind: "Name",
20555
+ value: "agentSession"
20556
+ },
20557
+ selectionSet: {
20558
+ kind: "SelectionSet",
20559
+ selections: [{
20560
+ kind: "Field",
20561
+ name: {
20562
+ kind: "Name",
20563
+ value: "id"
20564
+ }
20565
+ }]
20566
+ }
20567
+ },
20568
+ {
20569
+ kind: "Field",
20570
+ name: {
20571
+ kind: "Name",
20572
+ value: "updatedAt"
20573
+ }
20574
+ },
20575
+ {
20576
+ kind: "Field",
20577
+ name: {
20578
+ kind: "Name",
20579
+ value: "archivedAt"
20580
+ }
20581
+ },
20582
+ {
20583
+ kind: "Field",
20584
+ name: {
20585
+ kind: "Name",
20586
+ value: "createdAt"
20587
+ }
20588
+ },
20589
+ {
20590
+ kind: "Field",
20591
+ name: {
20592
+ kind: "Name",
20593
+ value: "id"
20594
+ }
20595
+ }
20596
+ ]
20597
+ }
20598
+ }]
20599
+ };
20600
+ const AgentSessionToPullRequestConnectionFragmentDoc = {
20601
+ kind: "Document",
20602
+ definitions: [{
20603
+ kind: "FragmentDefinition",
20604
+ name: {
20605
+ kind: "Name",
20606
+ value: "AgentSessionToPullRequestConnection"
20607
+ },
20608
+ typeCondition: {
20609
+ kind: "NamedType",
20610
+ name: {
20611
+ kind: "Name",
20612
+ value: "AgentSessionToPullRequestConnection"
20613
+ }
20614
+ },
20615
+ selectionSet: {
20616
+ kind: "SelectionSet",
20617
+ selections: [
20618
+ {
20619
+ kind: "Field",
20620
+ name: {
20621
+ kind: "Name",
20622
+ value: "__typename"
20623
+ }
20624
+ },
20625
+ {
20626
+ kind: "Field",
20627
+ name: {
20628
+ kind: "Name",
20629
+ value: "nodes"
20630
+ },
20631
+ selectionSet: {
20632
+ kind: "SelectionSet",
20633
+ selections: [{
20634
+ kind: "FragmentSpread",
20635
+ name: {
20636
+ kind: "Name",
20637
+ value: "AgentSessionToPullRequest"
20638
+ }
20639
+ }]
20640
+ }
20641
+ },
20642
+ {
20643
+ kind: "Field",
20644
+ name: {
20645
+ kind: "Name",
20646
+ value: "pageInfo"
20647
+ },
20648
+ selectionSet: {
20649
+ kind: "SelectionSet",
20650
+ selections: [{
20651
+ kind: "FragmentSpread",
20652
+ name: {
20653
+ kind: "Name",
20654
+ value: "PageInfo"
20655
+ }
20656
+ }]
20657
+ }
20658
+ }
20659
+ ]
20660
+ }
20661
+ }]
20662
+ };
20382
20663
  const SlackAsksTeamSettingsFragmentDoc = {
20383
20664
  kind: "Document",
20384
20665
  definitions: [{
@@ -20643,6 +20924,49 @@ const AsksChannelConnectPayloadFragmentDoc = {
20643
20924
  }
20644
20925
  }]
20645
20926
  };
20927
+ const AsksWebFormsAuthResponseFragmentDoc = {
20928
+ kind: "Document",
20929
+ definitions: [{
20930
+ kind: "FragmentDefinition",
20931
+ name: {
20932
+ kind: "Name",
20933
+ value: "AsksWebFormsAuthResponse"
20934
+ },
20935
+ typeCondition: {
20936
+ kind: "NamedType",
20937
+ name: {
20938
+ kind: "Name",
20939
+ value: "AsksWebFormsAuthResponse"
20940
+ }
20941
+ },
20942
+ selectionSet: {
20943
+ kind: "SelectionSet",
20944
+ selections: [
20945
+ {
20946
+ kind: "Field",
20947
+ name: {
20948
+ kind: "Name",
20949
+ value: "__typename"
20950
+ }
20951
+ },
20952
+ {
20953
+ kind: "Field",
20954
+ name: {
20955
+ kind: "Name",
20956
+ value: "name"
20957
+ }
20958
+ },
20959
+ {
20960
+ kind: "Field",
20961
+ name: {
20962
+ kind: "Name",
20963
+ value: "email"
20964
+ }
20965
+ }
20966
+ ]
20967
+ }
20968
+ }]
20969
+ };
20646
20970
  const AttachmentFragmentDoc = {
20647
20971
  kind: "Document",
20648
20972
  definitions: [{
@@ -23031,6 +23355,13 @@ const ViewPreferencesValuesFragmentDoc = {
23031
23355
  value: "viewOrdering"
23032
23356
  }
23033
23357
  },
23358
+ {
23359
+ kind: "Field",
23360
+ name: {
23361
+ kind: "Name",
23362
+ value: "issueSubGrouping"
23363
+ }
23364
+ },
23034
23365
  {
23035
23366
  kind: "Field",
23036
23367
  name: {
@@ -95959,6 +96290,71 @@ const AirbyteIntegrationConnectDocument = {
95959
96290
  }
95960
96291
  }, ...IntegrationPayloadFragmentDoc.definitions]
95961
96292
  };
96293
+ const AsksWebFormsAuthDocument = {
96294
+ kind: "Document",
96295
+ definitions: [{
96296
+ kind: "OperationDefinition",
96297
+ operation: "mutation",
96298
+ name: {
96299
+ kind: "Name",
96300
+ value: "asksWebFormsAuth"
96301
+ },
96302
+ variableDefinitions: [{
96303
+ kind: "VariableDefinition",
96304
+ variable: {
96305
+ kind: "Variable",
96306
+ name: {
96307
+ kind: "Name",
96308
+ value: "token"
96309
+ }
96310
+ },
96311
+ type: {
96312
+ kind: "NonNullType",
96313
+ type: {
96314
+ kind: "NamedType",
96315
+ name: {
96316
+ kind: "Name",
96317
+ value: "String"
96318
+ }
96319
+ }
96320
+ }
96321
+ }],
96322
+ selectionSet: {
96323
+ kind: "SelectionSet",
96324
+ selections: [{
96325
+ kind: "Field",
96326
+ name: {
96327
+ kind: "Name",
96328
+ value: "asksWebFormsAuth"
96329
+ },
96330
+ arguments: [{
96331
+ kind: "Argument",
96332
+ name: {
96333
+ kind: "Name",
96334
+ value: "token"
96335
+ },
96336
+ value: {
96337
+ kind: "Variable",
96338
+ name: {
96339
+ kind: "Name",
96340
+ value: "token"
96341
+ }
96342
+ }
96343
+ }],
96344
+ selectionSet: {
96345
+ kind: "SelectionSet",
96346
+ selections: [{
96347
+ kind: "FragmentSpread",
96348
+ name: {
96349
+ kind: "Name",
96350
+ value: "AsksWebFormsAuthResponse"
96351
+ }
96352
+ }]
96353
+ }
96354
+ }]
96355
+ }
96356
+ }, ...AsksWebFormsAuthResponseFragmentDoc.definitions]
96357
+ };
95962
96358
  const CreateAttachmentDocument = {
95963
96359
  kind: "Document",
95964
96360
  definitions: [{
@@ -121731,6 +122127,7 @@ var AgentSession = class extends Request {
121731
122127
  this.dismissedAt = parseDate(data.dismissedAt) ?? void 0;
121732
122128
  this.endedAt = parseDate(data.endedAt) ?? void 0;
121733
122129
  this.externalLink = data.externalLink ?? void 0;
122130
+ this.externalUrls = parseJson(data.externalUrls) ?? {};
121734
122131
  this.id = data.id;
121735
122132
  this.plan = parseJson(data.plan) ?? void 0;
121736
122133
  this.sourceMetadata = parseJson(data.sourceMetadata) ?? void 0;
@@ -121756,6 +122153,8 @@ var AgentSession = class extends Request {
121756
122153
  endedAt;
121757
122154
  /** The URL of an external agent-hosted page associated with this session. */
121758
122155
  externalLink;
122156
+ /** URLs of external resources associated with this session. */
122157
+ externalUrls;
121759
122158
  /** The unique identifier of the entity. */
121760
122159
  id;
121761
122160
  /** A dynamically updated list of the agent's execution strategy. */
@@ -121856,7 +122255,10 @@ var AgentSessionEventWebhookPayload = class {
121856
122255
  this.createdAt = parseDate(data.createdAt) ?? /* @__PURE__ */ new Date();
121857
122256
  this.oauthClientId = data.oauthClientId;
121858
122257
  this.organizationId = data.organizationId;
122258
+ this.promptContext = data.promptContext ?? void 0;
121859
122259
  this.type = data.type;
122260
+ this.webhookId = data.webhookId;
122261
+ this.webhookTimestamp = data.webhookTimestamp;
121860
122262
  this.agentActivity = data.agentActivity ? new AgentActivityWebhookPayload(data.agentActivity) : void 0;
121861
122263
  this.agentSession = new AgentSessionWebhookPayload(data.agentSession);
121862
122264
  this.guidance = data.guidance ? data.guidance.map((node) => new GuidanceRuleWebhookPayload(node)) : void 0;
@@ -121872,8 +122274,14 @@ var AgentSessionEventWebhookPayload = class {
121872
122274
  oauthClientId;
121873
122275
  /** ID of the organization for which the webhook belongs to. */
121874
122276
  organizationId;
122277
+ /** A formatted prompt string containing the relevant context for the agent session, including issue details, comments, and guidance. Present only for `created` events. */
122278
+ promptContext;
121875
122279
  /** The type of resource. */
121876
122280
  type;
122281
+ /** The ID of the webhook that sent this event. */
122282
+ webhookId;
122283
+ /** Unix timestamp in milliseconds when the webhook was sent. */
122284
+ webhookTimestamp;
121877
122285
  /** Guidance to inform the agent's behavior, which comes from configuration at the level of the workspace, parent teams, and/or current team for this session. The nearest team-specific guidance should take highest precendence. */
121878
122286
  guidance;
121879
122287
  /** The previous comments in the thread before this agent was mentioned and the session was initiated, if any. Present only for `created` events where the session was initiated by mentioning the agent in a child comment of a thread. */
@@ -121911,6 +122319,54 @@ var AgentSessionPayload = class extends Request {
121911
122319
  }
121912
122320
  };
121913
122321
  /**
122322
+ * Join table between agent sessions and pull requests.
122323
+ *
122324
+ * @param request - function to call the graphql client
122325
+ * @param data - L.AgentSessionToPullRequestFragment response data
122326
+ */
122327
+ var AgentSessionToPullRequest = class extends Request {
122328
+ _agentSession;
122329
+ constructor(request, data) {
122330
+ super(request);
122331
+ this.archivedAt = parseDate(data.archivedAt) ?? void 0;
122332
+ this.createdAt = parseDate(data.createdAt) ?? /* @__PURE__ */ new Date();
122333
+ this.id = data.id;
122334
+ this.updatedAt = parseDate(data.updatedAt) ?? /* @__PURE__ */ new Date();
122335
+ this._agentSession = data.agentSession;
122336
+ }
122337
+ /** The time at which the entity was archived. Null if the entity has not been archived. */
122338
+ archivedAt;
122339
+ /** The time at which the entity was created. */
122340
+ createdAt;
122341
+ /** The unique identifier of the entity. */
122342
+ id;
122343
+ /**
122344
+ * The last time at which the entity was meaningfully updated. This is the same as the creation time if the entity hasn't
122345
+ * been updated after creation.
122346
+ */
122347
+ updatedAt;
122348
+ /** The agent session that the pull request is associated with. */
122349
+ get agentSession() {
122350
+ return new AgentSessionQuery(this._request).fetch(this._agentSession.id);
122351
+ }
122352
+ /** The ID of agent session that the pull request is associated with. */
122353
+ get agentSessionId() {
122354
+ return this._agentSession?.id;
122355
+ }
122356
+ };
122357
+ /**
122358
+ * AgentSessionToPullRequestConnection model
122359
+ *
122360
+ * @param request - function to call the graphql client
122361
+ * @param fetch - function to trigger a refetch of this AgentSessionToPullRequestConnection model
122362
+ * @param data - AgentSessionToPullRequestConnection response data
122363
+ */
122364
+ var AgentSessionToPullRequestConnection = class extends Connection {
122365
+ constructor(request, fetch$1, data) {
122366
+ super(request, fetch$1, data.nodes.map((node) => new AgentSessionToPullRequest(request, node)), new PageInfo(request, data.pageInfo));
122367
+ }
122368
+ };
122369
+ /**
121914
122370
  * Payload for an agent session webhook.
121915
122371
  *
121916
122372
  * @param data - L.AgentSessionWebhookPayloadFragment response data
@@ -122025,6 +122481,8 @@ var AppUserNotificationWebhookPayload = class {
122025
122481
  this.oauthClientId = data.oauthClientId;
122026
122482
  this.organizationId = data.organizationId;
122027
122483
  this.type = data.type;
122484
+ this.webhookId = data.webhookId;
122485
+ this.webhookTimestamp = data.webhookTimestamp;
122028
122486
  }
122029
122487
  /** The type of action that triggered the webhook. */
122030
122488
  action;
@@ -122038,6 +122496,10 @@ var AppUserNotificationWebhookPayload = class {
122038
122496
  organizationId;
122039
122497
  /** The type of resource. */
122040
122498
  type;
122499
+ /** The ID of the webhook that sent this event. */
122500
+ webhookId;
122501
+ /** Unix timestamp in milliseconds when the webhook was sent. */
122502
+ webhookTimestamp;
122041
122503
  };
122042
122504
  /**
122043
122505
  * Payload for app user team access change webhook events.
@@ -122055,6 +122517,8 @@ var AppUserTeamAccessChangedWebhookPayload = class {
122055
122517
  this.organizationId = data.organizationId;
122056
122518
  this.removedTeamIds = data.removedTeamIds;
122057
122519
  this.type = data.type;
122520
+ this.webhookId = data.webhookId;
122521
+ this.webhookTimestamp = data.webhookTimestamp;
122058
122522
  }
122059
122523
  /** The type of action that triggered the webhook. */
122060
122524
  action;
@@ -122074,6 +122538,10 @@ var AppUserTeamAccessChangedWebhookPayload = class {
122074
122538
  removedTeamIds;
122075
122539
  /** The type of resource. */
122076
122540
  type;
122541
+ /** The ID of the webhook that sent this event. */
122542
+ webhookId;
122543
+ /** Unix timestamp in milliseconds when the webhook was sent. */
122544
+ webhookTimestamp;
122077
122545
  };
122078
122546
  /**
122079
122547
  * Public information of the OAuth application.
@@ -122181,6 +122649,23 @@ var AsksChannelConnectPayload = class extends Request {
122181
122649
  }
122182
122650
  };
122183
122651
  /**
122652
+ * AsksWebFormsAuthResponse model
122653
+ *
122654
+ * @param request - function to call the graphql client
122655
+ * @param data - L.AsksWebFormsAuthResponseFragment response data
122656
+ */
122657
+ var AsksWebFormsAuthResponse = class extends Request {
122658
+ constructor(request, data) {
122659
+ super(request);
122660
+ this.email = data.email;
122661
+ this.name = data.name;
122662
+ }
122663
+ /** User email. */
122664
+ email;
122665
+ /** User display name. */
122666
+ name;
122667
+ };
122668
+ /**
122184
122669
  * Issue attachment (e.g. support ticket, pull request).
122185
122670
  *
122186
122671
  * @param request - function to call the graphql client
@@ -122772,11 +123257,17 @@ var BaseWebhookPayload = class {
122772
123257
  constructor(data) {
122773
123258
  this.createdAt = parseDate(data.createdAt) ?? /* @__PURE__ */ new Date();
122774
123259
  this.organizationId = data.organizationId;
123260
+ this.webhookId = data.webhookId;
123261
+ this.webhookTimestamp = data.webhookTimestamp;
122775
123262
  }
122776
123263
  /** The time the payload was created. */
122777
123264
  createdAt;
122778
123265
  /** ID of the organization for which the webhook belongs to. */
122779
123266
  organizationId;
123267
+ /** The ID of the webhook that sent this event. */
123268
+ webhookId;
123269
+ /** Unix timestamp in milliseconds when the webhook was sent. */
123270
+ webhookTimestamp;
122780
123271
  };
122781
123272
  /**
122782
123273
  * A comment associated with an issue.
@@ -123161,6 +123652,8 @@ var CustomResourceWebhookPayload = class {
123161
123652
  this.createdAt = parseDate(data.createdAt) ?? /* @__PURE__ */ new Date();
123162
123653
  this.organizationId = data.organizationId;
123163
123654
  this.type = data.type;
123655
+ this.webhookId = data.webhookId;
123656
+ this.webhookTimestamp = data.webhookTimestamp;
123164
123657
  }
123165
123658
  /** The type of action that triggered the webhook. */
123166
123659
  action;
@@ -123170,6 +123663,10 @@ var CustomResourceWebhookPayload = class {
123170
123663
  organizationId;
123171
123664
  /** The type of resource. */
123172
123665
  type;
123666
+ /** The ID of the webhook that sent this event. */
123667
+ webhookId;
123668
+ /** Unix timestamp in milliseconds when the webhook was sent. */
123669
+ webhookTimestamp;
123173
123670
  };
123174
123671
  /**
123175
123672
  * A custom view that has been saved by a user.
@@ -126276,6 +126773,8 @@ var EntityWebhookPayload = class {
126276
126773
  this.type = data.type;
126277
126774
  this.updatedFrom = data.updatedFrom ?? void 0;
126278
126775
  this.url = data.url ?? void 0;
126776
+ this.webhookId = data.webhookId;
126777
+ this.webhookTimestamp = data.webhookTimestamp;
126279
126778
  }
126280
126779
  /** The type of action that triggered the webhook. */
126281
126780
  action;
@@ -126289,6 +126788,10 @@ var EntityWebhookPayload = class {
126289
126788
  updatedFrom;
126290
126789
  /** URL for the entity. */
126291
126790
  url;
126791
+ /** The ID of the webhook that sent this event. */
126792
+ webhookId;
126793
+ /** Unix timestamp in milliseconds when the webhook was sent. */
126794
+ webhookTimestamp;
126292
126795
  };
126293
126796
  /**
126294
126797
  * Information about an external entity.
@@ -130858,6 +131361,8 @@ var IssueSlaWebhookPayload = class {
130858
131361
  this.organizationId = data.organizationId;
130859
131362
  this.type = data.type;
130860
131363
  this.url = data.url ?? void 0;
131364
+ this.webhookId = data.webhookId;
131365
+ this.webhookTimestamp = data.webhookTimestamp;
130861
131366
  this.issueData = new IssueWebhookPayload(data.issueData);
130862
131367
  }
130863
131368
  /** The type of action that triggered the webhook. */
@@ -130870,6 +131375,10 @@ var IssueSlaWebhookPayload = class {
130870
131375
  type;
130871
131376
  /** URL for the issue. */
130872
131377
  url;
131378
+ /** The ID of the webhook that sent this event. */
131379
+ webhookId;
131380
+ /** Unix timestamp in milliseconds when the webhook was sent. */
131381
+ webhookTimestamp;
130873
131382
  /** The issue that the SLA event is about. */
130874
131383
  issueData;
130875
131384
  };
@@ -132044,6 +132553,8 @@ var OAuthAppWebhookPayload = class {
132044
132553
  this.oauthClientId = data.oauthClientId;
132045
132554
  this.organizationId = data.organizationId;
132046
132555
  this.type = data.type;
132556
+ this.webhookId = data.webhookId;
132557
+ this.webhookTimestamp = data.webhookTimestamp;
132047
132558
  }
132048
132559
  /** The type of action that triggered the webhook. */
132049
132560
  action;
@@ -132055,6 +132566,10 @@ var OAuthAppWebhookPayload = class {
132055
132566
  organizationId;
132056
132567
  /** The type of resource. */
132057
132568
  type;
132569
+ /** The ID of the webhook that sent this event. */
132570
+ webhookId;
132571
+ /** Unix timestamp in milliseconds when the webhook was sent. */
132572
+ webhookTimestamp;
132058
132573
  };
132059
132574
  /**
132060
132575
  * Payload for OAuth authorization webhook events.
@@ -132070,6 +132585,8 @@ var OAuthAuthorizationWebhookPayload = class {
132070
132585
  this.organizationId = data.organizationId;
132071
132586
  this.type = data.type;
132072
132587
  this.userId = data.userId;
132588
+ this.webhookId = data.webhookId;
132589
+ this.webhookTimestamp = data.webhookTimestamp;
132073
132590
  this.oauthClient = new OauthClientChildWebhookPayload(data.oauthClient);
132074
132591
  this.user = new UserChildWebhookPayload(data.user);
132075
132592
  }
@@ -132087,6 +132604,10 @@ var OAuthAuthorizationWebhookPayload = class {
132087
132604
  type;
132088
132605
  /** ID of the user that the authorization belongs to. */
132089
132606
  userId;
132607
+ /** The ID of the webhook that sent this event. */
132608
+ webhookId;
132609
+ /** Unix timestamp in milliseconds when the webhook was sent. */
132610
+ webhookTimestamp;
132090
132611
  /** Details of the OAuth client the authorization belongs to. */
132091
132612
  oauthClient;
132092
132613
  /** Details of the user that the authorization belongs to. */
@@ -138204,11 +138725,14 @@ var ViewPreferencesValues = class extends Request {
138204
138725
  constructor(request, data) {
138205
138726
  super(request);
138206
138727
  this.issueGrouping = data.issueGrouping ?? void 0;
138728
+ this.issueSubGrouping = data.issueSubGrouping ?? void 0;
138207
138729
  this.showCompletedIssues = data.showCompletedIssues ?? void 0;
138208
138730
  this.viewOrdering = data.viewOrdering ?? void 0;
138209
138731
  }
138210
138732
  /** The issue grouping. */
138211
138733
  issueGrouping;
138734
+ /** The issue sub grouping. */
138735
+ issueSubGrouping;
138212
138736
  /** Whether to show completed issues. */
138213
138737
  showCompletedIssues;
138214
138738
  /** The issue ordering. */
@@ -141288,6 +141812,26 @@ var AirbyteIntegrationConnectMutation = class extends Request {
141288
141812
  }
141289
141813
  };
141290
141814
  /**
141815
+ * A fetchable AsksWebFormsAuth Mutation
141816
+ *
141817
+ * @param request - function to call the graphql client
141818
+ */
141819
+ var AsksWebFormsAuthMutation = class extends Request {
141820
+ constructor(request) {
141821
+ super(request);
141822
+ }
141823
+ /**
141824
+ * Call the AsksWebFormsAuth mutation and return a AsksWebFormsAuthResponse
141825
+ *
141826
+ * @param token - required token to pass to asksWebFormsAuth
141827
+ * @returns parsed response from AsksWebFormsAuthMutation
141828
+ */
141829
+ async fetch(token) {
141830
+ const data = (await this._request(AsksWebFormsAuthDocument, { token })).asksWebFormsAuth;
141831
+ return new AsksWebFormsAuthResponse(this._request, data);
141832
+ }
141833
+ };
141834
+ /**
141291
141835
  * A fetchable CreateAttachment Mutation
141292
141836
  *
141293
141837
  * @param request - function to call the graphql client
@@ -153113,6 +153657,15 @@ var LinearSdk = class extends Request {
153113
153657
  return new AirbyteIntegrationConnectMutation(this._request).fetch(input);
153114
153658
  }
153115
153659
  /**
153660
+ * Authenticate a user to the Asks web forms app.
153661
+ *
153662
+ * @param token - required token to pass to asksWebFormsAuth
153663
+ * @returns AsksWebFormsAuthResponse
153664
+ */
153665
+ asksWebFormsAuth(token) {
153666
+ return new AsksWebFormsAuthMutation(this._request).fetch(token);
153667
+ }
153668
+ /**
153116
153669
  * Creates a new attachment, or updates existing if the same `url` and `issueId` is used.
153117
153670
  *
153118
153671
  * @param input - required input to pass to createAttachment
@@ -155832,6 +156385,8 @@ exports.AgentSessionEventWebhookPayload = AgentSessionEventWebhookPayload;
155832
156385
  exports.AgentSessionPayload = AgentSessionPayload;
155833
156386
  exports.AgentSessionQuery = AgentSessionQuery;
155834
156387
  exports.AgentSessionStatus = AgentSessionStatus;
156388
+ exports.AgentSessionToPullRequest = AgentSessionToPullRequest;
156389
+ exports.AgentSessionToPullRequestConnection = AgentSessionToPullRequestConnection;
155835
156390
  exports.AgentSessionType = AgentSessionType;
155836
156391
  exports.AgentSessionUpdateExternalUrlMutation = AgentSessionUpdateExternalUrlMutation;
155837
156392
  exports.AgentSessionWebhookPayload = AgentSessionWebhookPayload;
@@ -155858,6 +156413,8 @@ exports.ArchiveResponse = ArchiveResponse;
155858
156413
  exports.ArchiveRoadmapMutation = ArchiveRoadmapMutation;
155859
156414
  exports.ArchiveWorkflowStateMutation = ArchiveWorkflowStateMutation;
155860
156415
  exports.AsksChannelConnectPayload = AsksChannelConnectPayload;
156416
+ exports.AsksWebFormsAuthMutation = AsksWebFormsAuthMutation;
156417
+ exports.AsksWebFormsAuthResponse = AsksWebFormsAuthResponse;
155861
156418
  exports.Attachment = Attachment;
155862
156419
  exports.AttachmentConnection = AttachmentConnection;
155863
156420
  exports.AttachmentIssueQuery = AttachmentIssueQuery;