@linear/sdk 67.0.0 → 68.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -9660,12 +9660,26 @@ const BaseWebhookPayloadFragmentDoc = {
9660
9660
  value: "organizationId"
9661
9661
  }
9662
9662
  },
9663
+ {
9664
+ kind: "Field",
9665
+ name: {
9666
+ kind: "Name",
9667
+ value: "webhookId"
9668
+ }
9669
+ },
9663
9670
  {
9664
9671
  kind: "Field",
9665
9672
  name: {
9666
9673
  kind: "Name",
9667
9674
  value: "createdAt"
9668
9675
  }
9676
+ },
9677
+ {
9678
+ kind: "Field",
9679
+ name: {
9680
+ kind: "Name",
9681
+ value: "webhookTimestamp"
9682
+ }
9669
9683
  }
9670
9684
  ]
9671
9685
  }
@@ -11160,6 +11174,13 @@ const OAuthAppWebhookPayloadFragmentDoc = {
11160
11174
  value: "oauthClientId"
11161
11175
  }
11162
11176
  },
11177
+ {
11178
+ kind: "Field",
11179
+ name: {
11180
+ kind: "Name",
11181
+ value: "webhookId"
11182
+ }
11183
+ },
11163
11184
  {
11164
11185
  kind: "Field",
11165
11186
  name: {
@@ -11180,6 +11201,13 @@ const OAuthAppWebhookPayloadFragmentDoc = {
11180
11201
  kind: "Name",
11181
11202
  value: "type"
11182
11203
  }
11204
+ },
11205
+ {
11206
+ kind: "Field",
11207
+ name: {
11208
+ kind: "Name",
11209
+ value: "webhookTimestamp"
11210
+ }
11183
11211
  }
11184
11212
  ]
11185
11213
  }
@@ -11308,6 +11336,13 @@ const OAuthAuthorizationWebhookPayloadFragmentDoc = {
11308
11336
  value: "userId"
11309
11337
  }
11310
11338
  },
11339
+ {
11340
+ kind: "Field",
11341
+ name: {
11342
+ kind: "Name",
11343
+ value: "webhookId"
11344
+ }
11345
+ },
11311
11346
  {
11312
11347
  kind: "Field",
11313
11348
  name: {
@@ -11335,6 +11370,13 @@ const OAuthAuthorizationWebhookPayloadFragmentDoc = {
11335
11370
  kind: "Name",
11336
11371
  value: "type"
11337
11372
  }
11373
+ },
11374
+ {
11375
+ kind: "Field",
11376
+ name: {
11377
+ kind: "Name",
11378
+ value: "webhookTimestamp"
11379
+ }
11338
11380
  }
11339
11381
  ]
11340
11382
  }
@@ -14475,6 +14517,13 @@ const AgentSessionEventWebhookPayloadFragmentDoc = {
14475
14517
  value: "__typename"
14476
14518
  }
14477
14519
  },
14520
+ {
14521
+ kind: "Field",
14522
+ name: {
14523
+ kind: "Name",
14524
+ value: "promptContext"
14525
+ }
14526
+ },
14478
14527
  {
14479
14528
  kind: "Field",
14480
14529
  name: {
@@ -14513,6 +14562,13 @@ const AgentSessionEventWebhookPayloadFragmentDoc = {
14513
14562
  value: "organizationId"
14514
14563
  }
14515
14564
  },
14565
+ {
14566
+ kind: "Field",
14567
+ name: {
14568
+ kind: "Name",
14569
+ value: "webhookId"
14570
+ }
14571
+ },
14516
14572
  {
14517
14573
  kind: "Field",
14518
14574
  name: {
@@ -14584,6 +14640,13 @@ const AgentSessionEventWebhookPayloadFragmentDoc = {
14584
14640
  kind: "Name",
14585
14641
  value: "type"
14586
14642
  }
14643
+ },
14644
+ {
14645
+ kind: "Field",
14646
+ name: {
14647
+ kind: "Name",
14648
+ value: "webhookTimestamp"
14649
+ }
14587
14650
  }
14588
14651
  ]
14589
14652
  }
@@ -16375,6 +16438,13 @@ const AppUserNotificationWebhookPayloadFragmentDoc = {
16375
16438
  value: "organizationId"
16376
16439
  }
16377
16440
  },
16441
+ {
16442
+ kind: "Field",
16443
+ name: {
16444
+ kind: "Name",
16445
+ value: "webhookId"
16446
+ }
16447
+ },
16378
16448
  {
16379
16449
  kind: "Field",
16380
16450
  name: {
@@ -16395,6 +16465,13 @@ const AppUserNotificationWebhookPayloadFragmentDoc = {
16395
16465
  kind: "Name",
16396
16466
  value: "type"
16397
16467
  }
16468
+ },
16469
+ {
16470
+ kind: "Field",
16471
+ name: {
16472
+ kind: "Name",
16473
+ value: "webhookTimestamp"
16474
+ }
16398
16475
  }
16399
16476
  ]
16400
16477
  }
@@ -16460,6 +16537,13 @@ const AppUserTeamAccessChangedWebhookPayloadFragmentDoc = {
16460
16537
  value: "removedTeamIds"
16461
16538
  }
16462
16539
  },
16540
+ {
16541
+ kind: "Field",
16542
+ name: {
16543
+ kind: "Name",
16544
+ value: "webhookId"
16545
+ }
16546
+ },
16463
16547
  {
16464
16548
  kind: "Field",
16465
16549
  name: {
@@ -16481,6 +16565,13 @@ const AppUserTeamAccessChangedWebhookPayloadFragmentDoc = {
16481
16565
  value: "type"
16482
16566
  }
16483
16567
  },
16568
+ {
16569
+ kind: "Field",
16570
+ name: {
16571
+ kind: "Name",
16572
+ value: "webhookTimestamp"
16573
+ }
16574
+ },
16484
16575
  {
16485
16576
  kind: "Field",
16486
16577
  name: {
@@ -16524,6 +16615,13 @@ const CustomResourceWebhookPayloadFragmentDoc = {
16524
16615
  value: "organizationId"
16525
16616
  }
16526
16617
  },
16618
+ {
16619
+ kind: "Field",
16620
+ name: {
16621
+ kind: "Name",
16622
+ value: "webhookId"
16623
+ }
16624
+ },
16527
16625
  {
16528
16626
  kind: "Field",
16529
16627
  name: {
@@ -16544,6 +16642,13 @@ const CustomResourceWebhookPayloadFragmentDoc = {
16544
16642
  kind: "Name",
16545
16643
  value: "type"
16546
16644
  }
16645
+ },
16646
+ {
16647
+ kind: "Field",
16648
+ name: {
16649
+ kind: "Name",
16650
+ value: "webhookTimestamp"
16651
+ }
16547
16652
  }
16548
16653
  ]
16549
16654
  }
@@ -16588,6 +16693,13 @@ const EntityWebhookPayloadFragmentDoc = {
16588
16693
  value: "updatedFrom"
16589
16694
  }
16590
16695
  },
16696
+ {
16697
+ kind: "Field",
16698
+ name: {
16699
+ kind: "Name",
16700
+ value: "webhookId"
16701
+ }
16702
+ },
16591
16703
  {
16592
16704
  kind: "Field",
16593
16705
  name: {
@@ -16615,6 +16727,13 @@ const EntityWebhookPayloadFragmentDoc = {
16615
16727
  kind: "Name",
16616
16728
  value: "url"
16617
16729
  }
16730
+ },
16731
+ {
16732
+ kind: "Field",
16733
+ name: {
16734
+ kind: "Name",
16735
+ value: "webhookTimestamp"
16736
+ }
16618
16737
  }
16619
16738
  ]
16620
16739
  }
@@ -17407,6 +17526,13 @@ const IssueSlaWebhookPayloadFragmentDoc = {
17407
17526
  value: "organizationId"
17408
17527
  }
17409
17528
  },
17529
+ {
17530
+ kind: "Field",
17531
+ name: {
17532
+ kind: "Name",
17533
+ value: "webhookId"
17534
+ }
17535
+ },
17410
17536
  {
17411
17537
  kind: "Field",
17412
17538
  name: {
@@ -17451,6 +17577,13 @@ const IssueSlaWebhookPayloadFragmentDoc = {
17451
17577
  kind: "Name",
17452
17578
  value: "url"
17453
17579
  }
17580
+ },
17581
+ {
17582
+ kind: "Field",
17583
+ name: {
17584
+ kind: "Name",
17585
+ value: "webhookTimestamp"
17586
+ }
17454
17587
  }
17455
17588
  ]
17456
17589
  }
@@ -121857,7 +121990,10 @@ var AgentSessionEventWebhookPayload = class {
121857
121990
  this.createdAt = parseDate(data.createdAt) ?? /* @__PURE__ */ new Date();
121858
121991
  this.oauthClientId = data.oauthClientId;
121859
121992
  this.organizationId = data.organizationId;
121993
+ this.promptContext = data.promptContext ?? void 0;
121860
121994
  this.type = data.type;
121995
+ this.webhookId = data.webhookId;
121996
+ this.webhookTimestamp = data.webhookTimestamp;
121861
121997
  this.agentActivity = data.agentActivity ? new AgentActivityWebhookPayload(data.agentActivity) : void 0;
121862
121998
  this.agentSession = new AgentSessionWebhookPayload(data.agentSession);
121863
121999
  this.guidance = data.guidance ? data.guidance.map((node) => new GuidanceRuleWebhookPayload(node)) : void 0;
@@ -121873,8 +122009,14 @@ var AgentSessionEventWebhookPayload = class {
121873
122009
  oauthClientId;
121874
122010
  /** ID of the organization for which the webhook belongs to. */
121875
122011
  organizationId;
122012
+ /** A formatted prompt string containing the relevant context for the agent session, including issue details, comments, and guidance. Present only for `created` events. */
122013
+ promptContext;
121876
122014
  /** The type of resource. */
121877
122015
  type;
122016
+ /** The ID of the webhook that sent this event. */
122017
+ webhookId;
122018
+ /** Unix timestamp in milliseconds when the webhook was sent. */
122019
+ webhookTimestamp;
121878
122020
  /** 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. */
121879
122021
  guidance;
121880
122022
  /** 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. */
@@ -122026,6 +122168,8 @@ var AppUserNotificationWebhookPayload = class {
122026
122168
  this.oauthClientId = data.oauthClientId;
122027
122169
  this.organizationId = data.organizationId;
122028
122170
  this.type = data.type;
122171
+ this.webhookId = data.webhookId;
122172
+ this.webhookTimestamp = data.webhookTimestamp;
122029
122173
  }
122030
122174
  /** The type of action that triggered the webhook. */
122031
122175
  action;
@@ -122039,6 +122183,10 @@ var AppUserNotificationWebhookPayload = class {
122039
122183
  organizationId;
122040
122184
  /** The type of resource. */
122041
122185
  type;
122186
+ /** The ID of the webhook that sent this event. */
122187
+ webhookId;
122188
+ /** Unix timestamp in milliseconds when the webhook was sent. */
122189
+ webhookTimestamp;
122042
122190
  };
122043
122191
  /**
122044
122192
  * Payload for app user team access change webhook events.
@@ -122056,6 +122204,8 @@ var AppUserTeamAccessChangedWebhookPayload = class {
122056
122204
  this.organizationId = data.organizationId;
122057
122205
  this.removedTeamIds = data.removedTeamIds;
122058
122206
  this.type = data.type;
122207
+ this.webhookId = data.webhookId;
122208
+ this.webhookTimestamp = data.webhookTimestamp;
122059
122209
  }
122060
122210
  /** The type of action that triggered the webhook. */
122061
122211
  action;
@@ -122075,6 +122225,10 @@ var AppUserTeamAccessChangedWebhookPayload = class {
122075
122225
  removedTeamIds;
122076
122226
  /** The type of resource. */
122077
122227
  type;
122228
+ /** The ID of the webhook that sent this event. */
122229
+ webhookId;
122230
+ /** Unix timestamp in milliseconds when the webhook was sent. */
122231
+ webhookTimestamp;
122078
122232
  };
122079
122233
  /**
122080
122234
  * Public information of the OAuth application.
@@ -122773,11 +122927,17 @@ var BaseWebhookPayload = class {
122773
122927
  constructor(data) {
122774
122928
  this.createdAt = parseDate(data.createdAt) ?? /* @__PURE__ */ new Date();
122775
122929
  this.organizationId = data.organizationId;
122930
+ this.webhookId = data.webhookId;
122931
+ this.webhookTimestamp = data.webhookTimestamp;
122776
122932
  }
122777
122933
  /** The time the payload was created. */
122778
122934
  createdAt;
122779
122935
  /** ID of the organization for which the webhook belongs to. */
122780
122936
  organizationId;
122937
+ /** The ID of the webhook that sent this event. */
122938
+ webhookId;
122939
+ /** Unix timestamp in milliseconds when the webhook was sent. */
122940
+ webhookTimestamp;
122781
122941
  };
122782
122942
  /**
122783
122943
  * A comment associated with an issue.
@@ -123162,6 +123322,8 @@ var CustomResourceWebhookPayload = class {
123162
123322
  this.createdAt = parseDate(data.createdAt) ?? /* @__PURE__ */ new Date();
123163
123323
  this.organizationId = data.organizationId;
123164
123324
  this.type = data.type;
123325
+ this.webhookId = data.webhookId;
123326
+ this.webhookTimestamp = data.webhookTimestamp;
123165
123327
  }
123166
123328
  /** The type of action that triggered the webhook. */
123167
123329
  action;
@@ -123171,6 +123333,10 @@ var CustomResourceWebhookPayload = class {
123171
123333
  organizationId;
123172
123334
  /** The type of resource. */
123173
123335
  type;
123336
+ /** The ID of the webhook that sent this event. */
123337
+ webhookId;
123338
+ /** Unix timestamp in milliseconds when the webhook was sent. */
123339
+ webhookTimestamp;
123174
123340
  };
123175
123341
  /**
123176
123342
  * A custom view that has been saved by a user.
@@ -126277,6 +126443,8 @@ var EntityWebhookPayload = class {
126277
126443
  this.type = data.type;
126278
126444
  this.updatedFrom = data.updatedFrom ?? void 0;
126279
126445
  this.url = data.url ?? void 0;
126446
+ this.webhookId = data.webhookId;
126447
+ this.webhookTimestamp = data.webhookTimestamp;
126280
126448
  }
126281
126449
  /** The type of action that triggered the webhook. */
126282
126450
  action;
@@ -126290,6 +126458,10 @@ var EntityWebhookPayload = class {
126290
126458
  updatedFrom;
126291
126459
  /** URL for the entity. */
126292
126460
  url;
126461
+ /** The ID of the webhook that sent this event. */
126462
+ webhookId;
126463
+ /** Unix timestamp in milliseconds when the webhook was sent. */
126464
+ webhookTimestamp;
126293
126465
  };
126294
126466
  /**
126295
126467
  * Information about an external entity.
@@ -130859,6 +131031,8 @@ var IssueSlaWebhookPayload = class {
130859
131031
  this.organizationId = data.organizationId;
130860
131032
  this.type = data.type;
130861
131033
  this.url = data.url ?? void 0;
131034
+ this.webhookId = data.webhookId;
131035
+ this.webhookTimestamp = data.webhookTimestamp;
130862
131036
  this.issueData = new IssueWebhookPayload(data.issueData);
130863
131037
  }
130864
131038
  /** The type of action that triggered the webhook. */
@@ -130871,6 +131045,10 @@ var IssueSlaWebhookPayload = class {
130871
131045
  type;
130872
131046
  /** URL for the issue. */
130873
131047
  url;
131048
+ /** The ID of the webhook that sent this event. */
131049
+ webhookId;
131050
+ /** Unix timestamp in milliseconds when the webhook was sent. */
131051
+ webhookTimestamp;
130874
131052
  /** The issue that the SLA event is about. */
130875
131053
  issueData;
130876
131054
  };
@@ -132045,6 +132223,8 @@ var OAuthAppWebhookPayload = class {
132045
132223
  this.oauthClientId = data.oauthClientId;
132046
132224
  this.organizationId = data.organizationId;
132047
132225
  this.type = data.type;
132226
+ this.webhookId = data.webhookId;
132227
+ this.webhookTimestamp = data.webhookTimestamp;
132048
132228
  }
132049
132229
  /** The type of action that triggered the webhook. */
132050
132230
  action;
@@ -132056,6 +132236,10 @@ var OAuthAppWebhookPayload = class {
132056
132236
  organizationId;
132057
132237
  /** The type of resource. */
132058
132238
  type;
132239
+ /** The ID of the webhook that sent this event. */
132240
+ webhookId;
132241
+ /** Unix timestamp in milliseconds when the webhook was sent. */
132242
+ webhookTimestamp;
132059
132243
  };
132060
132244
  /**
132061
132245
  * Payload for OAuth authorization webhook events.
@@ -132071,6 +132255,8 @@ var OAuthAuthorizationWebhookPayload = class {
132071
132255
  this.organizationId = data.organizationId;
132072
132256
  this.type = data.type;
132073
132257
  this.userId = data.userId;
132258
+ this.webhookId = data.webhookId;
132259
+ this.webhookTimestamp = data.webhookTimestamp;
132074
132260
  this.oauthClient = new OauthClientChildWebhookPayload(data.oauthClient);
132075
132261
  this.user = new UserChildWebhookPayload(data.user);
132076
132262
  }
@@ -132088,6 +132274,10 @@ var OAuthAuthorizationWebhookPayload = class {
132088
132274
  type;
132089
132275
  /** ID of the user that the authorization belongs to. */
132090
132276
  userId;
132277
+ /** The ID of the webhook that sent this event. */
132278
+ webhookId;
132279
+ /** Unix timestamp in milliseconds when the webhook was sent. */
132280
+ webhookTimestamp;
132091
132281
  /** Details of the OAuth client the authorization belongs to. */
132092
132282
  oauthClient;
132093
132283
  /** Details of the user that the authorization belongs to. */