@linear/sdk 68.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,
@@ -20384,6 +20388,13 @@ const AgentSessionFragmentDoc = {
20384
20388
  }
20385
20389
  }]
20386
20390
  }
20391
+ },
20392
+ {
20393
+ kind: "Field",
20394
+ name: {
20395
+ kind: "Name",
20396
+ value: "externalUrls"
20397
+ }
20387
20398
  }
20388
20399
  ]
20389
20400
  }
@@ -20512,6 +20523,143 @@ const AgentSessionPayloadFragmentDoc = {
20512
20523
  }
20513
20524
  }]
20514
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
+ };
20515
20663
  const SlackAsksTeamSettingsFragmentDoc = {
20516
20664
  kind: "Document",
20517
20665
  definitions: [{
@@ -20776,6 +20924,49 @@ const AsksChannelConnectPayloadFragmentDoc = {
20776
20924
  }
20777
20925
  }]
20778
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
+ };
20779
20970
  const AttachmentFragmentDoc = {
20780
20971
  kind: "Document",
20781
20972
  definitions: [{
@@ -23164,6 +23355,13 @@ const ViewPreferencesValuesFragmentDoc = {
23164
23355
  value: "viewOrdering"
23165
23356
  }
23166
23357
  },
23358
+ {
23359
+ kind: "Field",
23360
+ name: {
23361
+ kind: "Name",
23362
+ value: "issueSubGrouping"
23363
+ }
23364
+ },
23167
23365
  {
23168
23366
  kind: "Field",
23169
23367
  name: {
@@ -96092,6 +96290,71 @@ const AirbyteIntegrationConnectDocument = {
96092
96290
  }
96093
96291
  }, ...IntegrationPayloadFragmentDoc.definitions]
96094
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
+ };
96095
96358
  const CreateAttachmentDocument = {
96096
96359
  kind: "Document",
96097
96360
  definitions: [{
@@ -121864,6 +122127,7 @@ var AgentSession = class extends Request {
121864
122127
  this.dismissedAt = parseDate(data.dismissedAt) ?? void 0;
121865
122128
  this.endedAt = parseDate(data.endedAt) ?? void 0;
121866
122129
  this.externalLink = data.externalLink ?? void 0;
122130
+ this.externalUrls = parseJson(data.externalUrls) ?? {};
121867
122131
  this.id = data.id;
121868
122132
  this.plan = parseJson(data.plan) ?? void 0;
121869
122133
  this.sourceMetadata = parseJson(data.sourceMetadata) ?? void 0;
@@ -121889,6 +122153,8 @@ var AgentSession = class extends Request {
121889
122153
  endedAt;
121890
122154
  /** The URL of an external agent-hosted page associated with this session. */
121891
122155
  externalLink;
122156
+ /** URLs of external resources associated with this session. */
122157
+ externalUrls;
121892
122158
  /** The unique identifier of the entity. */
121893
122159
  id;
121894
122160
  /** A dynamically updated list of the agent's execution strategy. */
@@ -122053,6 +122319,54 @@ var AgentSessionPayload = class extends Request {
122053
122319
  }
122054
122320
  };
122055
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
+ /**
122056
122370
  * Payload for an agent session webhook.
122057
122371
  *
122058
122372
  * @param data - L.AgentSessionWebhookPayloadFragment response data
@@ -122335,6 +122649,23 @@ var AsksChannelConnectPayload = class extends Request {
122335
122649
  }
122336
122650
  };
122337
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
+ /**
122338
122669
  * Issue attachment (e.g. support ticket, pull request).
122339
122670
  *
122340
122671
  * @param request - function to call the graphql client
@@ -138394,11 +138725,14 @@ var ViewPreferencesValues = class extends Request {
138394
138725
  constructor(request, data) {
138395
138726
  super(request);
138396
138727
  this.issueGrouping = data.issueGrouping ?? void 0;
138728
+ this.issueSubGrouping = data.issueSubGrouping ?? void 0;
138397
138729
  this.showCompletedIssues = data.showCompletedIssues ?? void 0;
138398
138730
  this.viewOrdering = data.viewOrdering ?? void 0;
138399
138731
  }
138400
138732
  /** The issue grouping. */
138401
138733
  issueGrouping;
138734
+ /** The issue sub grouping. */
138735
+ issueSubGrouping;
138402
138736
  /** Whether to show completed issues. */
138403
138737
  showCompletedIssues;
138404
138738
  /** The issue ordering. */
@@ -141478,6 +141812,26 @@ var AirbyteIntegrationConnectMutation = class extends Request {
141478
141812
  }
141479
141813
  };
141480
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
+ /**
141481
141835
  * A fetchable CreateAttachment Mutation
141482
141836
  *
141483
141837
  * @param request - function to call the graphql client
@@ -153303,6 +153657,15 @@ var LinearSdk = class extends Request {
153303
153657
  return new AirbyteIntegrationConnectMutation(this._request).fetch(input);
153304
153658
  }
153305
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
+ /**
153306
153669
  * Creates a new attachment, or updates existing if the same `url` and `issueId` is used.
153307
153670
  *
153308
153671
  * @param input - required input to pass to createAttachment
@@ -156022,6 +156385,8 @@ exports.AgentSessionEventWebhookPayload = AgentSessionEventWebhookPayload;
156022
156385
  exports.AgentSessionPayload = AgentSessionPayload;
156023
156386
  exports.AgentSessionQuery = AgentSessionQuery;
156024
156387
  exports.AgentSessionStatus = AgentSessionStatus;
156388
+ exports.AgentSessionToPullRequest = AgentSessionToPullRequest;
156389
+ exports.AgentSessionToPullRequestConnection = AgentSessionToPullRequestConnection;
156025
156390
  exports.AgentSessionType = AgentSessionType;
156026
156391
  exports.AgentSessionUpdateExternalUrlMutation = AgentSessionUpdateExternalUrlMutation;
156027
156392
  exports.AgentSessionWebhookPayload = AgentSessionWebhookPayload;
@@ -156048,6 +156413,8 @@ exports.ArchiveResponse = ArchiveResponse;
156048
156413
  exports.ArchiveRoadmapMutation = ArchiveRoadmapMutation;
156049
156414
  exports.ArchiveWorkflowStateMutation = ArchiveWorkflowStateMutation;
156050
156415
  exports.AsksChannelConnectPayload = AsksChannelConnectPayload;
156416
+ exports.AsksWebFormsAuthMutation = AsksWebFormsAuthMutation;
156417
+ exports.AsksWebFormsAuthResponse = AsksWebFormsAuthResponse;
156051
156418
  exports.Attachment = Attachment;
156052
156419
  exports.AttachmentConnection = AttachmentConnection;
156053
156420
  exports.AttachmentIssueQuery = AttachmentIssueQuery;