@linear/sdk 10.0.0 → 11.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-cjs.js CHANGED
@@ -83441,6 +83441,7 @@ var IntegrationService;
83441
83441
  IntegrationService["GitHubSync"] = "gitHubSync";
83442
83442
  IntegrationService["Github"] = "github";
83443
83443
  IntegrationService["GithubCommit"] = "githubCommit";
83444
+ IntegrationService["GithubPersonal"] = "githubPersonal";
83444
83445
  IntegrationService["Gitlab"] = "gitlab";
83445
83446
  IntegrationService["GoogleCalendarPersonal"] = "googleCalendarPersonal";
83446
83447
  IntegrationService["GoogleSheets"] = "googleSheets";
@@ -83858,7 +83859,6 @@ const DocumentContentFragmentDoc = {
83858
83859
  kind: "SelectionSet",
83859
83860
  selections: [
83860
83861
  { kind: "Field", name: { kind: "Name", value: "__typename" } },
83861
- { kind: "Field", name: { kind: "Name", value: "contentData" } },
83862
83862
  { kind: "Field", name: { kind: "Name", value: "content" } },
83863
83863
  { kind: "Field", name: { kind: "Name", value: "contentState" } },
83864
83864
  {
@@ -83915,7 +83915,6 @@ const DocumentContentHistoryFragmentDoc = {
83915
83915
  selections: [
83916
83916
  { kind: "Field", name: { kind: "Name", value: "__typename" } },
83917
83917
  { kind: "Field", name: { kind: "Name", value: "actorIds" } },
83918
- { kind: "Field", name: { kind: "Name", value: "contentData" } },
83919
83918
  {
83920
83919
  kind: "Field",
83921
83920
  name: { kind: "Name", value: "documentContent" },
@@ -85497,6 +85496,23 @@ const JiraSettingsFragmentDoc = {
85497
85496
  },
85498
85497
  ],
85499
85498
  };
85499
+ const JiraPersonalSettingsFragmentDoc = {
85500
+ kind: "Document",
85501
+ definitions: [
85502
+ {
85503
+ kind: "FragmentDefinition",
85504
+ name: { kind: "Name", value: "JiraPersonalSettings" },
85505
+ typeCondition: { kind: "NamedType", name: { kind: "Name", value: "JiraPersonalSettings" } },
85506
+ selectionSet: {
85507
+ kind: "SelectionSet",
85508
+ selections: [
85509
+ { kind: "Field", name: { kind: "Name", value: "__typename" } },
85510
+ { kind: "Field", name: { kind: "Name", value: "siteName" } },
85511
+ ],
85512
+ },
85513
+ },
85514
+ ],
85515
+ };
85500
85516
  const NotionSettingsFragmentDoc = {
85501
85517
  kind: "Document",
85502
85518
  definitions: [
@@ -85628,6 +85644,7 @@ const SlackChannelNameMappingFragmentDoc = {
85628
85644
  { kind: "Field", name: { kind: "Name", value: "isShared" } },
85629
85645
  { kind: "Field", name: { kind: "Name", value: "autoCreateOnMessage" } },
85630
85646
  { kind: "Field", name: { kind: "Name", value: "autoCreateOnEmoji" } },
85647
+ { kind: "Field", name: { kind: "Name", value: "botAdded" } },
85631
85648
  {
85632
85649
  kind: "Field",
85633
85650
  name: { kind: "Name", value: "teams" },
@@ -85775,6 +85792,14 @@ const IntegrationSettingsFragmentDoc = {
85775
85792
  selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "JiraSettings" } }],
85776
85793
  },
85777
85794
  },
85795
+ {
85796
+ kind: "Field",
85797
+ name: { kind: "Name", value: "jiraPersonal" },
85798
+ selectionSet: {
85799
+ kind: "SelectionSet",
85800
+ selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "JiraPersonalSettings" } }],
85801
+ },
85802
+ },
85778
85803
  {
85779
85804
  kind: "Field",
85780
85805
  name: { kind: "Name", value: "notion" },
@@ -85927,6 +85952,7 @@ const AuthenticationSessionFragmentDoc = {
85927
85952
  { kind: "Field", name: { kind: "Name", value: "name" } },
85928
85953
  { kind: "Field", name: { kind: "Name", value: "operatingSystem" } },
85929
85954
  { kind: "Field", name: { kind: "Name", value: "userAgent" } },
85955
+ { kind: "Field", name: { kind: "Name", value: "browserType" } },
85930
85956
  { kind: "Field", name: { kind: "Name", value: "lastActiveAt" } },
85931
85957
  { kind: "Field", name: { kind: "Name", value: "id" } },
85932
85958
  ],
@@ -86469,6 +86495,7 @@ const AuthenticationSessionResponseFragmentDoc = {
86469
86495
  { kind: "Field", name: { kind: "Name", value: "name" } },
86470
86496
  { kind: "Field", name: { kind: "Name", value: "operatingSystem" } },
86471
86497
  { kind: "Field", name: { kind: "Name", value: "userAgent" } },
86498
+ { kind: "Field", name: { kind: "Name", value: "browserType" } },
86472
86499
  { kind: "Field", name: { kind: "Name", value: "lastActiveAt" } },
86473
86500
  { kind: "Field", name: { kind: "Name", value: "id" } },
86474
86501
  ],
@@ -86497,7 +86524,6 @@ const CommentFragmentDoc = {
86497
86524
  selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "ActorBot" } }],
86498
86525
  },
86499
86526
  },
86500
- { kind: "Field", name: { kind: "Name", value: "bodyData" } },
86501
86527
  { kind: "Field", name: { kind: "Name", value: "body" } },
86502
86528
  {
86503
86529
  kind: "Field",
@@ -86764,6 +86790,7 @@ const CustomViewFragmentDoc = {
86764
86790
  { kind: "Field", name: { kind: "Name", value: "filters" } },
86765
86791
  { kind: "Field", name: { kind: "Name", value: "icon" } },
86766
86792
  { kind: "Field", name: { kind: "Name", value: "updatedAt" } },
86793
+ { kind: "Field", name: { kind: "Name", value: "modelName" } },
86767
86794
  { kind: "Field", name: { kind: "Name", value: "name" } },
86768
86795
  {
86769
86796
  kind: "Field",
@@ -87096,7 +87123,6 @@ const DocumentContentHistoryTypeFragmentDoc = {
87096
87123
  { kind: "Field", name: { kind: "Name", value: "id" } },
87097
87124
  { kind: "Field", name: { kind: "Name", value: "createdAt" } },
87098
87125
  { kind: "Field", name: { kind: "Name", value: "contentDataSnapshotAt" } },
87099
- { kind: "Field", name: { kind: "Name", value: "contentData" } },
87100
87126
  ],
87101
87127
  },
87102
87128
  },
@@ -105456,12 +105482,7 @@ const AttachmentLinkGitLabMrDocument = {
105456
105482
  },
105457
105483
  {
105458
105484
  kind: "VariableDefinition",
105459
- variable: { kind: "Variable", name: { kind: "Name", value: "owner" } },
105460
- type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } },
105461
- },
105462
- {
105463
- kind: "VariableDefinition",
105464
- variable: { kind: "Variable", name: { kind: "Name", value: "repo" } },
105485
+ variable: { kind: "Variable", name: { kind: "Name", value: "projectPathWithNamespace" } },
105465
105486
  type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } },
105466
105487
  },
105467
105488
  {
@@ -105504,13 +105525,8 @@ const AttachmentLinkGitLabMrDocument = {
105504
105525
  },
105505
105526
  {
105506
105527
  kind: "Argument",
105507
- name: { kind: "Name", value: "owner" },
105508
- value: { kind: "Variable", name: { kind: "Name", value: "owner" } },
105509
- },
105510
- {
105511
- kind: "Argument",
105512
- name: { kind: "Name", value: "repo" },
105513
- value: { kind: "Variable", name: { kind: "Name", value: "repo" } },
105528
+ name: { kind: "Name", value: "projectPathWithNamespace" },
105529
+ value: { kind: "Variable", name: { kind: "Name", value: "projectPathWithNamespace" } },
105514
105530
  },
105515
105531
  {
105516
105532
  kind: "Argument",
@@ -107609,6 +107625,44 @@ const IntegrationFrontDocument = {
107609
107625
  ...IntegrationPayloadFragmentDoc.definitions,
107610
107626
  ],
107611
107627
  };
107628
+ const IntegrationGitHubPersonalDocument = {
107629
+ kind: "Document",
107630
+ definitions: [
107631
+ {
107632
+ kind: "OperationDefinition",
107633
+ operation: "mutation",
107634
+ name: { kind: "Name", value: "integrationGitHubPersonal" },
107635
+ variableDefinitions: [
107636
+ {
107637
+ kind: "VariableDefinition",
107638
+ variable: { kind: "Variable", name: { kind: "Name", value: "code" } },
107639
+ type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } },
107640
+ },
107641
+ ],
107642
+ selectionSet: {
107643
+ kind: "SelectionSet",
107644
+ selections: [
107645
+ {
107646
+ kind: "Field",
107647
+ name: { kind: "Name", value: "integrationGitHubPersonal" },
107648
+ arguments: [
107649
+ {
107650
+ kind: "Argument",
107651
+ name: { kind: "Name", value: "code" },
107652
+ value: { kind: "Variable", name: { kind: "Name", value: "code" } },
107653
+ },
107654
+ ],
107655
+ selectionSet: {
107656
+ kind: "SelectionSet",
107657
+ selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "IntegrationPayload" } }],
107658
+ },
107659
+ },
107660
+ ],
107661
+ },
107662
+ },
107663
+ ...IntegrationPayloadFragmentDoc.definitions,
107664
+ ],
107665
+ };
107612
107666
  const CreateIntegrationGithubCommitDocument = {
107613
107667
  kind: "Document",
107614
107668
  definitions: [
@@ -114180,6 +114234,7 @@ var _generated_documents = /*#__PURE__*/Object.freeze({
114180
114234
  JiraProjectDataFragmentDoc: JiraProjectDataFragmentDoc,
114181
114235
  JiraLinearMappingFragmentDoc: JiraLinearMappingFragmentDoc,
114182
114236
  JiraSettingsFragmentDoc: JiraSettingsFragmentDoc,
114237
+ JiraPersonalSettingsFragmentDoc: JiraPersonalSettingsFragmentDoc,
114183
114238
  NotionSettingsFragmentDoc: NotionSettingsFragmentDoc,
114184
114239
  PagerDutyScheduleInfoFragmentDoc: PagerDutyScheduleInfoFragmentDoc,
114185
114240
  PagerDutySettingsFragmentDoc: PagerDutySettingsFragmentDoc,
@@ -114578,6 +114633,7 @@ var _generated_documents = /*#__PURE__*/Object.freeze({
114578
114633
  IntegrationDiscordDocument: IntegrationDiscordDocument,
114579
114634
  IntegrationFigmaDocument: IntegrationFigmaDocument,
114580
114635
  IntegrationFrontDocument: IntegrationFrontDocument,
114636
+ IntegrationGitHubPersonalDocument: IntegrationGitHubPersonalDocument,
114581
114637
  CreateIntegrationGithubCommitDocument: CreateIntegrationGithubCommitDocument,
114582
114638
  IntegrationGithubConnectDocument: IntegrationGithubConnectDocument,
114583
114639
  IntegrationGithubSyncConnectDocument: IntegrationGithubSyncConnectDocument,
@@ -115276,22 +115332,23 @@ class AuthUser extends Request {
115276
115332
  */
115277
115333
  class AuthenticationSession extends Request {
115278
115334
  constructor(request, data) {
115279
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
115335
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
115280
115336
  super(request);
115281
- this.client = (_a = data.client) !== null && _a !== void 0 ? _a : undefined;
115337
+ this.browserType = (_a = data.browserType) !== null && _a !== void 0 ? _a : undefined;
115338
+ this.client = (_b = data.client) !== null && _b !== void 0 ? _b : undefined;
115282
115339
  this.countryCodes = data.countryCodes;
115283
- this.createdAt = (_b = parseDate(data.createdAt)) !== null && _b !== void 0 ? _b : new Date();
115340
+ this.createdAt = (_c = parseDate(data.createdAt)) !== null && _c !== void 0 ? _c : new Date();
115284
115341
  this.id = data.id;
115285
- this.ip = (_c = data.ip) !== null && _c !== void 0 ? _c : undefined;
115286
- this.lastActiveAt = (_d = parseDate(data.lastActiveAt)) !== null && _d !== void 0 ? _d : undefined;
115287
- this.location = (_e = data.location) !== null && _e !== void 0 ? _e : undefined;
115288
- this.locationCity = (_f = data.locationCity) !== null && _f !== void 0 ? _f : undefined;
115289
- this.locationCountry = (_g = data.locationCountry) !== null && _g !== void 0 ? _g : undefined;
115290
- this.locationCountryCode = (_h = data.locationCountryCode) !== null && _h !== void 0 ? _h : undefined;
115342
+ this.ip = (_d = data.ip) !== null && _d !== void 0 ? _d : undefined;
115343
+ this.lastActiveAt = (_e = parseDate(data.lastActiveAt)) !== null && _e !== void 0 ? _e : undefined;
115344
+ this.location = (_f = data.location) !== null && _f !== void 0 ? _f : undefined;
115345
+ this.locationCity = (_g = data.locationCity) !== null && _g !== void 0 ? _g : undefined;
115346
+ this.locationCountry = (_h = data.locationCountry) !== null && _h !== void 0 ? _h : undefined;
115347
+ this.locationCountryCode = (_j = data.locationCountryCode) !== null && _j !== void 0 ? _j : undefined;
115291
115348
  this.name = data.name;
115292
- this.operatingSystem = (_j = data.operatingSystem) !== null && _j !== void 0 ? _j : undefined;
115293
- this.updatedAt = (_k = parseDate(data.updatedAt)) !== null && _k !== void 0 ? _k : new Date();
115294
- this.userAgent = (_l = data.userAgent) !== null && _l !== void 0 ? _l : undefined;
115349
+ this.operatingSystem = (_k = data.operatingSystem) !== null && _k !== void 0 ? _k : undefined;
115350
+ this.updatedAt = (_l = parseDate(data.updatedAt)) !== null && _l !== void 0 ? _l : new Date();
115351
+ this.userAgent = (_m = data.userAgent) !== null && _m !== void 0 ? _m : undefined;
115295
115352
  }
115296
115353
  }
115297
115354
  /**
@@ -115302,23 +115359,24 @@ class AuthenticationSession extends Request {
115302
115359
  */
115303
115360
  class AuthenticationSessionResponse extends Request {
115304
115361
  constructor(request, data) {
115305
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
115362
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
115306
115363
  super(request);
115307
- this.client = (_a = data.client) !== null && _a !== void 0 ? _a : undefined;
115364
+ this.browserType = (_a = data.browserType) !== null && _a !== void 0 ? _a : undefined;
115365
+ this.client = (_b = data.client) !== null && _b !== void 0 ? _b : undefined;
115308
115366
  this.countryCodes = data.countryCodes;
115309
- this.createdAt = (_b = parseDate(data.createdAt)) !== null && _b !== void 0 ? _b : new Date();
115367
+ this.createdAt = (_c = parseDate(data.createdAt)) !== null && _c !== void 0 ? _c : new Date();
115310
115368
  this.id = data.id;
115311
- this.ip = (_c = data.ip) !== null && _c !== void 0 ? _c : undefined;
115369
+ this.ip = (_d = data.ip) !== null && _d !== void 0 ? _d : undefined;
115312
115370
  this.isCurrentSession = data.isCurrentSession;
115313
- this.lastActiveAt = (_d = parseDate(data.lastActiveAt)) !== null && _d !== void 0 ? _d : undefined;
115314
- this.location = (_e = data.location) !== null && _e !== void 0 ? _e : undefined;
115315
- this.locationCity = (_f = data.locationCity) !== null && _f !== void 0 ? _f : undefined;
115316
- this.locationCountry = (_g = data.locationCountry) !== null && _g !== void 0 ? _g : undefined;
115317
- this.locationCountryCode = (_h = data.locationCountryCode) !== null && _h !== void 0 ? _h : undefined;
115371
+ this.lastActiveAt = (_e = parseDate(data.lastActiveAt)) !== null && _e !== void 0 ? _e : undefined;
115372
+ this.location = (_f = data.location) !== null && _f !== void 0 ? _f : undefined;
115373
+ this.locationCity = (_g = data.locationCity) !== null && _g !== void 0 ? _g : undefined;
115374
+ this.locationCountry = (_h = data.locationCountry) !== null && _h !== void 0 ? _h : undefined;
115375
+ this.locationCountryCode = (_j = data.locationCountryCode) !== null && _j !== void 0 ? _j : undefined;
115318
115376
  this.name = data.name;
115319
- this.operatingSystem = (_j = data.operatingSystem) !== null && _j !== void 0 ? _j : undefined;
115320
- this.updatedAt = (_k = parseDate(data.updatedAt)) !== null && _k !== void 0 ? _k : new Date();
115321
- this.userAgent = (_l = data.userAgent) !== null && _l !== void 0 ? _l : undefined;
115377
+ this.operatingSystem = (_k = data.operatingSystem) !== null && _k !== void 0 ? _k : undefined;
115378
+ this.updatedAt = (_l = parseDate(data.updatedAt)) !== null && _l !== void 0 ? _l : new Date();
115379
+ this.userAgent = (_m = data.userAgent) !== null && _m !== void 0 ? _m : undefined;
115322
115380
  }
115323
115381
  }
115324
115382
  /**
@@ -115333,7 +115391,6 @@ class Comment extends Request {
115333
115391
  super(request);
115334
115392
  this.archivedAt = (_a = parseDate(data.archivedAt)) !== null && _a !== void 0 ? _a : undefined;
115335
115393
  this.body = data.body;
115336
- this.bodyData = data.bodyData;
115337
115394
  this.createdAt = (_b = parseDate(data.createdAt)) !== null && _b !== void 0 ? _b : new Date();
115338
115395
  this.editedAt = (_c = parseDate(data.editedAt)) !== null && _c !== void 0 ? _c : undefined;
115339
115396
  this.id = data.id;
@@ -115342,7 +115399,7 @@ class Comment extends Request {
115342
115399
  this.updatedAt = (_f = parseDate(data.updatedAt)) !== null && _f !== void 0 ? _f : new Date();
115343
115400
  this.url = data.url;
115344
115401
  this.botActor = data.botActor ? new ActorBot(request, data.botActor) : undefined;
115345
- this.documentContent = new DocumentContent(request, data.documentContent);
115402
+ this.documentContent = data.documentContent ? new DocumentContent(request, data.documentContent) : undefined;
115346
115403
  this._issue = data.issue;
115347
115404
  this._parent = (_g = data.parent) !== null && _g !== void 0 ? _g : undefined;
115348
115405
  this._resolvingComment = (_h = data.resolvingComment) !== null && _h !== void 0 ? _h : undefined;
@@ -115517,6 +115574,7 @@ class CustomView extends Request {
115517
115574
  this.filters = (_f = parseJson(data.filters)) !== null && _f !== void 0 ? _f : {};
115518
115575
  this.icon = (_g = data.icon) !== null && _g !== void 0 ? _g : undefined;
115519
115576
  this.id = data.id;
115577
+ this.modelName = data.modelName;
115520
115578
  this.name = data.name;
115521
115579
  this.shared = data.shared;
115522
115580
  this.updatedAt = (_h = parseDate(data.updatedAt)) !== null && _h !== void 0 ? _h : new Date();
@@ -115924,19 +115982,18 @@ class DocumentConnection extends Connection {
115924
115982
  */
115925
115983
  class DocumentContent extends Request {
115926
115984
  constructor(request, data) {
115927
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
115985
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
115928
115986
  super(request);
115929
115987
  this.archivedAt = (_a = parseDate(data.archivedAt)) !== null && _a !== void 0 ? _a : undefined;
115930
115988
  this.content = (_b = data.content) !== null && _b !== void 0 ? _b : undefined;
115931
- this.contentData = (_c = parseJson(data.contentData)) !== null && _c !== void 0 ? _c : undefined;
115932
- this.contentState = (_d = data.contentState) !== null && _d !== void 0 ? _d : undefined;
115933
- this.createdAt = (_e = parseDate(data.createdAt)) !== null && _e !== void 0 ? _e : new Date();
115989
+ this.contentState = (_c = data.contentState) !== null && _c !== void 0 ? _c : undefined;
115990
+ this.createdAt = (_d = parseDate(data.createdAt)) !== null && _d !== void 0 ? _d : new Date();
115934
115991
  this.id = data.id;
115935
- this.restoredAt = (_f = parseDate(data.restoredAt)) !== null && _f !== void 0 ? _f : undefined;
115936
- this.updatedAt = (_g = parseDate(data.updatedAt)) !== null && _g !== void 0 ? _g : new Date();
115937
- this._document = (_h = data.document) !== null && _h !== void 0 ? _h : undefined;
115938
- this._issue = (_j = data.issue) !== null && _j !== void 0 ? _j : undefined;
115939
- this._project = (_k = data.project) !== null && _k !== void 0 ? _k : undefined;
115992
+ this.restoredAt = (_e = parseDate(data.restoredAt)) !== null && _e !== void 0 ? _e : undefined;
115993
+ this.updatedAt = (_f = parseDate(data.updatedAt)) !== null && _f !== void 0 ? _f : new Date();
115994
+ this._document = (_g = data.document) !== null && _g !== void 0 ? _g : undefined;
115995
+ this._issue = (_h = data.issue) !== null && _h !== void 0 ? _h : undefined;
115996
+ this._project = (_j = data.project) !== null && _j !== void 0 ? _j : undefined;
115940
115997
  }
115941
115998
  /** The document that the content is associated with. */
115942
115999
  get document() {
@@ -115962,15 +116019,14 @@ class DocumentContent extends Request {
115962
116019
  */
115963
116020
  class DocumentContentHistory extends Request {
115964
116021
  constructor(request, data) {
115965
- var _a, _b, _c, _d, _e;
116022
+ var _a, _b, _c, _d;
115966
116023
  super(request);
115967
116024
  this.actorIds = data.actorIds;
115968
116025
  this.archivedAt = (_a = parseDate(data.archivedAt)) !== null && _a !== void 0 ? _a : undefined;
115969
- this.contentData = (_b = parseJson(data.contentData)) !== null && _b !== void 0 ? _b : undefined;
115970
- this.contentDataSnapshotAt = (_c = parseDate(data.contentDataSnapshotAt)) !== null && _c !== void 0 ? _c : new Date();
115971
- this.createdAt = (_d = parseDate(data.createdAt)) !== null && _d !== void 0 ? _d : new Date();
116026
+ this.contentDataSnapshotAt = (_b = parseDate(data.contentDataSnapshotAt)) !== null && _b !== void 0 ? _b : new Date();
116027
+ this.createdAt = (_c = parseDate(data.createdAt)) !== null && _c !== void 0 ? _c : new Date();
115972
116028
  this.id = data.id;
115973
- this.updatedAt = (_e = parseDate(data.updatedAt)) !== null && _e !== void 0 ? _e : new Date();
116029
+ this.updatedAt = (_d = parseDate(data.updatedAt)) !== null && _d !== void 0 ? _d : new Date();
115974
116030
  this.documentContent = new DocumentContent(request, data.documentContent);
115975
116031
  }
115976
116032
  }
@@ -115995,12 +116051,11 @@ class DocumentContentHistoryPayload extends Request {
115995
116051
  */
115996
116052
  class DocumentContentHistoryType extends Request {
115997
116053
  constructor(request, data) {
115998
- var _a, _b, _c, _d;
116054
+ var _a, _b, _c;
115999
116055
  super(request);
116000
116056
  this.actorIds = (_a = data.actorIds) !== null && _a !== void 0 ? _a : undefined;
116001
- this.contentData = (_b = parseJson(data.contentData)) !== null && _b !== void 0 ? _b : {};
116002
- this.contentDataSnapshotAt = (_c = parseDate(data.contentDataSnapshotAt)) !== null && _c !== void 0 ? _c : new Date();
116003
- this.createdAt = (_d = parseDate(data.createdAt)) !== null && _d !== void 0 ? _d : new Date();
116057
+ this.contentDataSnapshotAt = (_b = parseDate(data.contentDataSnapshotAt)) !== null && _b !== void 0 ? _b : new Date();
116058
+ this.createdAt = (_c = parseDate(data.createdAt)) !== null && _c !== void 0 ? _c : new Date();
116004
116059
  this.id = data.id;
116005
116060
  }
116006
116061
  }
@@ -116617,6 +116672,7 @@ class IntegrationSettings extends Request {
116617
116672
  this.googleSheets = data.googleSheets ? new GoogleSheetsSettings(request, data.googleSheets) : undefined;
116618
116673
  this.intercom = data.intercom ? new IntercomSettings(request, data.intercom) : undefined;
116619
116674
  this.jira = data.jira ? new JiraSettings(request, data.jira) : undefined;
116675
+ this.jiraPersonal = data.jiraPersonal ? new JiraPersonalSettings(request, data.jiraPersonal) : undefined;
116620
116676
  this.notion = data.notion ? new NotionSettings(request, data.notion) : undefined;
116621
116677
  this.pagerDuty = data.pagerDuty ? new PagerDutySettings(request, data.pagerDuty) : undefined;
116622
116678
  this.sentry = data.sentry ? new SentrySettings(request, data.sentry) : undefined;
@@ -117634,6 +117690,19 @@ class JiraLinearMapping extends Request {
117634
117690
  this.linearTeamId = data.linearTeamId;
117635
117691
  }
117636
117692
  }
117693
+ /**
117694
+ * Jira personal specific settings.
117695
+ *
117696
+ * @param request - function to call the graphql client
117697
+ * @param data - L.JiraPersonalSettingsFragment response data
117698
+ */
117699
+ class JiraPersonalSettings extends Request {
117700
+ constructor(request, data) {
117701
+ var _a;
117702
+ super(request);
117703
+ this.siteName = (_a = data.siteName) !== null && _a !== void 0 ? _a : undefined;
117704
+ }
117705
+ }
117637
117706
  /**
117638
117707
  * Metadata about a Jira project.
117639
117708
  *
@@ -119522,14 +119591,15 @@ class SlackAsksTeamSettings extends Request {
119522
119591
  */
119523
119592
  class SlackChannelNameMapping extends Request {
119524
119593
  constructor(request, data) {
119525
- var _a, _b, _c, _d, _e;
119594
+ var _a, _b, _c, _d, _e, _f;
119526
119595
  super(request);
119527
119596
  this.autoCreateOnBotMention = (_a = data.autoCreateOnBotMention) !== null && _a !== void 0 ? _a : undefined;
119528
119597
  this.autoCreateOnEmoji = (_b = data.autoCreateOnEmoji) !== null && _b !== void 0 ? _b : undefined;
119529
119598
  this.autoCreateOnMessage = (_c = data.autoCreateOnMessage) !== null && _c !== void 0 ? _c : undefined;
119599
+ this.botAdded = (_d = data.botAdded) !== null && _d !== void 0 ? _d : undefined;
119530
119600
  this.id = data.id;
119531
- this.isPrivate = (_d = data.isPrivate) !== null && _d !== void 0 ? _d : undefined;
119532
- this.isShared = (_e = data.isShared) !== null && _e !== void 0 ? _e : undefined;
119601
+ this.isPrivate = (_e = data.isPrivate) !== null && _e !== void 0 ? _e : undefined;
119602
+ this.isShared = (_f = data.isShared) !== null && _f !== void 0 ? _f : undefined;
119533
119603
  this.name = data.name;
119534
119604
  this.teams = data.teams.map(node => new SlackAsksTeamSettings(request, node));
119535
119605
  }
@@ -123185,18 +123255,16 @@ class AttachmentLinkGitLabMrMutation extends Request {
123185
123255
  *
123186
123256
  * @param issueId - required issueId to pass to attachmentLinkGitLabMR
123187
123257
  * @param number - required number to pass to attachmentLinkGitLabMR
123188
- * @param owner - required owner to pass to attachmentLinkGitLabMR
123189
- * @param repo - required repo to pass to attachmentLinkGitLabMR
123258
+ * @param projectPathWithNamespace - required projectPathWithNamespace to pass to attachmentLinkGitLabMR
123190
123259
  * @param url - required url to pass to attachmentLinkGitLabMR
123191
- * @param variables - variables without 'issueId', 'number', 'owner', 'repo', 'url' to pass into the AttachmentLinkGitLabMrMutation
123260
+ * @param variables - variables without 'issueId', 'number', 'projectPathWithNamespace', 'url' to pass into the AttachmentLinkGitLabMrMutation
123192
123261
  * @returns parsed response from AttachmentLinkGitLabMrMutation
123193
123262
  */
123194
- fetch(issueId, number, owner, repo, url, variables) {
123263
+ fetch(issueId, number, projectPathWithNamespace, url, variables) {
123195
123264
  return __awaiter(this, void 0, void 0, function* () {
123196
123265
  const response = yield this._request(AttachmentLinkGitLabMrDocument, Object.assign({ issueId,
123197
123266
  number,
123198
- owner,
123199
- repo,
123267
+ projectPathWithNamespace,
123200
123268
  url }, variables));
123201
123269
  const data = response.attachmentLinkGitLabMR;
123202
123270
  return new AttachmentPayload(this._request, data);
@@ -124284,6 +124352,31 @@ class IntegrationFrontMutation extends Request {
124284
124352
  });
124285
124353
  }
124286
124354
  }
124355
+ /**
124356
+ * A fetchable IntegrationGitHubPersonal Mutation
124357
+ *
124358
+ * @param request - function to call the graphql client
124359
+ */
124360
+ class IntegrationGitHubPersonalMutation extends Request {
124361
+ constructor(request) {
124362
+ super(request);
124363
+ }
124364
+ /**
124365
+ * Call the IntegrationGitHubPersonal mutation and return a IntegrationPayload
124366
+ *
124367
+ * @param code - required code to pass to integrationGitHubPersonal
124368
+ * @returns parsed response from IntegrationGitHubPersonalMutation
124369
+ */
124370
+ fetch(code) {
124371
+ return __awaiter(this, void 0, void 0, function* () {
124372
+ const response = yield this._request(IntegrationGitHubPersonalDocument, {
124373
+ code,
124374
+ });
124375
+ const data = response.integrationGitHubPersonal;
124376
+ return new IntegrationPayload(this._request, data);
124377
+ });
124378
+ }
124379
+ }
124287
124380
  /**
124288
124381
  * A fetchable CreateIntegrationGithubCommit Mutation
124289
124382
  *
@@ -128196,7 +128289,7 @@ class Comment_DocumentContentQuery extends Request {
128196
128289
  id: this._id,
128197
128290
  });
128198
128291
  const data = response.comment.documentContent;
128199
- return new DocumentContent(this._request, data);
128292
+ return data ? new DocumentContent(this._request, data) : undefined;
128200
128293
  });
128201
128294
  }
128202
128295
  }
@@ -130637,14 +130730,13 @@ class LinearSdk extends Request {
130637
130730
  *
130638
130731
  * @param issueId - required issueId to pass to attachmentLinkGitLabMR
130639
130732
  * @param number - required number to pass to attachmentLinkGitLabMR
130640
- * @param owner - required owner to pass to attachmentLinkGitLabMR
130641
- * @param repo - required repo to pass to attachmentLinkGitLabMR
130733
+ * @param projectPathWithNamespace - required projectPathWithNamespace to pass to attachmentLinkGitLabMR
130642
130734
  * @param url - required url to pass to attachmentLinkGitLabMR
130643
- * @param variables - variables without 'issueId', 'number', 'owner', 'repo', 'url' to pass into the AttachmentLinkGitLabMrMutation
130735
+ * @param variables - variables without 'issueId', 'number', 'projectPathWithNamespace', 'url' to pass into the AttachmentLinkGitLabMrMutation
130644
130736
  * @returns AttachmentPayload
130645
130737
  */
130646
- attachmentLinkGitLabMR(issueId, number, owner, repo, url, variables) {
130647
- return new AttachmentLinkGitLabMrMutation(this._request).fetch(issueId, number, owner, repo, url, variables);
130738
+ attachmentLinkGitLabMR(issueId, number, projectPathWithNamespace, url, variables) {
130739
+ return new AttachmentLinkGitLabMrMutation(this._request).fetch(issueId, number, projectPathWithNamespace, url, variables);
130648
130740
  }
130649
130741
  /**
130650
130742
  * Link an existing Intercom conversation to an issue.
@@ -131054,6 +131146,15 @@ class LinearSdk extends Request {
131054
131146
  integrationFront(code, redirectUri) {
131055
131147
  return new IntegrationFrontMutation(this._request).fetch(code, redirectUri);
131056
131148
  }
131149
+ /**
131150
+ * Connect your GitHub account to Linear.
131151
+ *
131152
+ * @param code - required code to pass to integrationGitHubPersonal
131153
+ * @returns IntegrationPayload
131154
+ */
131155
+ integrationGitHubPersonal(code) {
131156
+ return new IntegrationGitHubPersonalMutation(this._request).fetch(code);
131157
+ }
131057
131158
  /**
131058
131159
  * Generates a webhook for the GitHub commit integration.
131059
131160
  *
@@ -132219,7 +132320,7 @@ class LinearSdk extends Request {
132219
132320
  return new UpdateUserFlagMutation(this._request).fetch(flag, operation);
132220
132321
  }
132221
132322
  /**
132222
- * Connects the GitHub user to this Linear account via OAuth2.
132323
+ * [DEPRECATED] Connects the GitHub user to this Linear account via OAuth2.
132223
132324
  *
132224
132325
  * @param code - required code to pass to userGitHubConnect
132225
132326
  * @returns UserPayload
@@ -132702,6 +132803,7 @@ exports.IntegrationConnection = IntegrationConnection;
132702
132803
  exports.IntegrationDiscordMutation = IntegrationDiscordMutation;
132703
132804
  exports.IntegrationFigmaMutation = IntegrationFigmaMutation;
132704
132805
  exports.IntegrationFrontMutation = IntegrationFrontMutation;
132806
+ exports.IntegrationGitHubPersonalMutation = IntegrationGitHubPersonalMutation;
132705
132807
  exports.IntegrationGithubConnectMutation = IntegrationGithubConnectMutation;
132706
132808
  exports.IntegrationGithubSyncConnectMutation = IntegrationGithubSyncConnectMutation;
132707
132809
  exports.IntegrationGitlabConnectMutation = IntegrationGitlabConnectMutation;
@@ -132804,6 +132906,7 @@ exports.Issue_RelationsQuery = Issue_RelationsQuery;
132804
132906
  exports.Issue_SubscribersQuery = Issue_SubscribersQuery;
132805
132907
  exports.IssuesQuery = IssuesQuery;
132806
132908
  exports.JiraLinearMapping = JiraLinearMapping;
132909
+ exports.JiraPersonalSettings = JiraPersonalSettings;
132807
132910
  exports.JiraProjectData = JiraProjectData;
132808
132911
  exports.JiraSettings = JiraSettings;
132809
132912
  exports.JoinOrganizationFromOnboardingMutation = JoinOrganizationFromOnboardingMutation;