@linear/sdk 69.0.0 → 70.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
@@ -2511,7 +2511,7 @@ let AgentSessionStatus = /* @__PURE__ */ function(AgentSessionStatus$1) {
2511
2511
  AgentSessionStatus$1["Stale"] = "stale";
2512
2512
  return AgentSessionStatus$1;
2513
2513
  }({});
2514
- /** The type of an agent session. */
2514
+ /** [DEPRECATED] The type of an agent session. */
2515
2515
  let AgentSessionType = /* @__PURE__ */ function(AgentSessionType$1) {
2516
2516
  AgentSessionType$1["CommentThread"] = "commentThread";
2517
2517
  return AgentSessionType$1;
@@ -5675,9 +5675,6 @@ const EmailIntakeAddressFragmentDoc = new TypedDocumentString(`
5675
5675
  sesDomainIdentity {
5676
5676
  ...SesDomainIdentity
5677
5677
  }
5678
- issueCanceledAutoReplyData
5679
- issueCompletedAutoReplyData
5680
- issueCreatedAutoReplyData
5681
5678
  issueCanceledAutoReply
5682
5679
  issueCompletedAutoReply
5683
5680
  issueCreatedAutoReply
@@ -8942,6 +8939,7 @@ const AgentSessionFragmentDoc = new TypedDocumentString(`
8942
8939
  plan
8943
8940
  summary
8944
8941
  sourceMetadata
8942
+ context
8945
8943
  externalLink
8946
8944
  appUser {
8947
8945
  id
@@ -8965,12 +8963,12 @@ const AgentSessionFragmentDoc = new TypedDocumentString(`
8965
8963
  endedAt
8966
8964
  startedAt
8967
8965
  dismissedAt
8968
- type
8969
8966
  id
8970
8967
  dismissedBy {
8971
8968
  id
8972
8969
  }
8973
8970
  externalUrls
8971
+ type
8974
8972
  }
8975
8973
  `, { fragmentName: "AgentSession" });
8976
8974
  const AgentSessionConnectionFragmentDoc = new TypedDocumentString(`
@@ -8988,6 +8986,7 @@ const AgentSessionConnectionFragmentDoc = new TypedDocumentString(`
8988
8986
  plan
8989
8987
  summary
8990
8988
  sourceMetadata
8989
+ context
8991
8990
  externalLink
8992
8991
  appUser {
8993
8992
  id
@@ -9011,12 +9010,12 @@ const AgentSessionConnectionFragmentDoc = new TypedDocumentString(`
9011
9010
  endedAt
9012
9011
  startedAt
9013
9012
  dismissedAt
9014
- type
9015
9013
  id
9016
9014
  dismissedBy {
9017
9015
  id
9018
9016
  }
9019
9017
  externalUrls
9018
+ type
9020
9019
  }
9021
9020
  fragment PageInfo on PageInfo {
9022
9021
  __typename
@@ -18155,6 +18154,7 @@ const AgentSessionDocument = new TypedDocumentString(`
18155
18154
  plan
18156
18155
  summary
18157
18156
  sourceMetadata
18157
+ context
18158
18158
  externalLink
18159
18159
  appUser {
18160
18160
  id
@@ -18178,12 +18178,12 @@ const AgentSessionDocument = new TypedDocumentString(`
18178
18178
  endedAt
18179
18179
  startedAt
18180
18180
  dismissedAt
18181
- type
18182
18181
  id
18183
18182
  dismissedBy {
18184
18183
  id
18185
18184
  }
18186
18185
  externalUrls
18186
+ type
18187
18187
  }`);
18188
18188
  const AgentSession_ActivitiesDocument = new TypedDocumentString(`
18189
18189
  query agentSession_activities($id: String!, $after: String, $before: String, $filter: AgentActivityFilter, $first: Int, $includeArchived: Boolean, $last: Int, $orderBy: PaginationOrderBy) {
@@ -18307,6 +18307,7 @@ const AgentSessionsDocument = new TypedDocumentString(`
18307
18307
  plan
18308
18308
  summary
18309
18309
  sourceMetadata
18310
+ context
18310
18311
  externalLink
18311
18312
  appUser {
18312
18313
  id
@@ -18330,12 +18331,12 @@ const AgentSessionsDocument = new TypedDocumentString(`
18330
18331
  endedAt
18331
18332
  startedAt
18332
18333
  dismissedAt
18333
- type
18334
18334
  id
18335
18335
  dismissedBy {
18336
18336
  id
18337
18337
  }
18338
18338
  externalUrls
18339
+ type
18339
18340
  }
18340
18341
  fragment AgentSessionConnection on AgentSessionConnection {
18341
18342
  __typename
@@ -22980,9 +22981,6 @@ fragment EmailIntakeAddress on EmailIntakeAddress {
22980
22981
  sesDomainIdentity {
22981
22982
  ...SesDomainIdentity
22982
22983
  }
22983
- issueCanceledAutoReplyData
22984
- issueCompletedAutoReplyData
22985
- issueCreatedAutoReplyData
22986
22984
  issueCanceledAutoReply
22987
22985
  issueCompletedAutoReply
22988
22986
  issueCreatedAutoReply
@@ -47575,6 +47573,7 @@ var AgentSession = class extends Request {
47575
47573
  constructor(request, data) {
47576
47574
  super(request);
47577
47575
  this.archivedAt = parseDate(data.archivedAt) ?? void 0;
47576
+ this.context = parseJson(data.context) ?? {};
47578
47577
  this.createdAt = parseDate(data.createdAt) ?? /* @__PURE__ */ new Date();
47579
47578
  this.dismissedAt = parseDate(data.dismissedAt) ?? void 0;
47580
47579
  this.endedAt = parseDate(data.endedAt) ?? void 0;
@@ -47587,7 +47586,7 @@ var AgentSession = class extends Request {
47587
47586
  this.summary = data.summary ?? void 0;
47588
47587
  this.updatedAt = parseDate(data.updatedAt) ?? /* @__PURE__ */ new Date();
47589
47588
  this.status = data.status;
47590
- this.type = data.type;
47589
+ this.type = data.type ?? void 0;
47591
47590
  this._appUser = data.appUser;
47592
47591
  this._comment = data.comment ?? void 0;
47593
47592
  this._creator = data.creator ?? void 0;
@@ -47597,6 +47596,8 @@ var AgentSession = class extends Request {
47597
47596
  }
47598
47597
  /** The time at which the entity was archived. Null if the entity has not been archived. */
47599
47598
  archivedAt;
47599
+ /** Serialized JSON representing the contexts this session is related to, for direct chat sessions. */
47600
+ context;
47600
47601
  /** The time at which the entity was created. */
47601
47602
  createdAt;
47602
47603
  /** The time the agent session was dismissed. */
@@ -47624,7 +47625,7 @@ var AgentSession = class extends Request {
47624
47625
  updatedAt;
47625
47626
  /** The current status of the agent session. */
47626
47627
  status;
47627
- /** The type of the agent session. */
47628
+ /** [DEPRECATED] The type of the agent session. */
47628
47629
  type;
47629
47630
  /** The agent user that is associated with this agent session. */
47630
47631
  get appUser() {
@@ -51829,13 +51830,10 @@ var EmailIntakeAddress = class extends Request {
51829
51830
  this.forwardingEmailAddress = data.forwardingEmailAddress ?? void 0;
51830
51831
  this.id = data.id;
51831
51832
  this.issueCanceledAutoReply = data.issueCanceledAutoReply ?? void 0;
51832
- this.issueCanceledAutoReplyData = data.issueCanceledAutoReplyData ?? void 0;
51833
51833
  this.issueCanceledAutoReplyEnabled = data.issueCanceledAutoReplyEnabled;
51834
51834
  this.issueCompletedAutoReply = data.issueCompletedAutoReply ?? void 0;
51835
- this.issueCompletedAutoReplyData = data.issueCompletedAutoReplyData ?? void 0;
51836
51835
  this.issueCompletedAutoReplyEnabled = data.issueCompletedAutoReplyEnabled;
51837
51836
  this.issueCreatedAutoReply = data.issueCreatedAutoReply ?? void 0;
51838
- this.issueCreatedAutoReplyData = data.issueCreatedAutoReplyData ?? void 0;
51839
51837
  this.issueCreatedAutoReplyEnabled = data.issueCreatedAutoReplyEnabled;
51840
51838
  this.repliesEnabled = data.repliesEnabled;
51841
51839
  this.senderName = data.senderName ?? void 0;
@@ -51863,20 +51861,14 @@ var EmailIntakeAddress = class extends Request {
51863
51861
  id;
51864
51862
  /** The auto-reply message for issue canceled. If not set, the default reply will be used. */
51865
51863
  issueCanceledAutoReply;
51866
- /** The auto-reply ProseMirror JSON for issue canceled. If not set, the default reply will be used. */
51867
- issueCanceledAutoReplyData;
51868
51864
  /** Whether the auto-reply for issue canceled is enabled. */
51869
51865
  issueCanceledAutoReplyEnabled;
51870
51866
  /** The auto-reply message for issue completed. If not set, the default reply will be used. */
51871
51867
  issueCompletedAutoReply;
51872
- /** The auto-reply ProseMirror JSON for issue completed. If not set, the default reply will be used. */
51873
- issueCompletedAutoReplyData;
51874
51868
  /** Whether the auto-reply for issue completed is enabled. */
51875
51869
  issueCompletedAutoReplyEnabled;
51876
51870
  /** The auto-reply message for issue created. If not set, the default reply will be used. */
51877
51871
  issueCreatedAutoReply;
51878
- /** The auto-reply ProseMirror JSON for issue created. If not set, the default reply will be used. */
51879
- issueCreatedAutoReplyData;
51880
51872
  /** Whether the auto-reply for issue created is enabled. */
51881
51873
  issueCreatedAutoReplyEnabled;
51882
51874
  /** Whether email replies are enabled. */