@linear/sdk 18.0.0 → 18.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.js CHANGED
@@ -83693,6 +83693,7 @@ var ViewType;
83693
83693
  ViewType["Inbox"] = "inbox";
83694
83694
  ViewType["Initiative"] = "initiative";
83695
83695
  ViewType["Initiatives"] = "initiatives";
83696
+ ViewType["IssueIdentifiers"] = "issueIdentifiers";
83696
83697
  ViewType["Label"] = "label";
83697
83698
  ViewType["MyIssues"] = "myIssues";
83698
83699
  ViewType["MyIssuesActivity"] = "myIssuesActivity";
@@ -85112,6 +85113,100 @@ const UserNotificationSubscriptionFragmentDoc = {
85112
85113
  },
85113
85114
  ],
85114
85115
  };
85116
+ const AuthOrganizationFragmentDoc = {
85117
+ kind: "Document",
85118
+ definitions: [
85119
+ {
85120
+ kind: "FragmentDefinition",
85121
+ name: { kind: "Name", value: "AuthOrganization" },
85122
+ typeCondition: { kind: "NamedType", name: { kind: "Name", value: "AuthOrganization" } },
85123
+ selectionSet: {
85124
+ kind: "SelectionSet",
85125
+ selections: [
85126
+ { kind: "Field", name: { kind: "Name", value: "__typename" } },
85127
+ { kind: "Field", name: { kind: "Name", value: "allowedAuthServices" } },
85128
+ { kind: "Field", name: { kind: "Name", value: "previousUrlKeys" } },
85129
+ { kind: "Field", name: { kind: "Name", value: "serviceId" } },
85130
+ { kind: "Field", name: { kind: "Name", value: "logoUrl" } },
85131
+ { kind: "Field", name: { kind: "Name", value: "name" } },
85132
+ { kind: "Field", name: { kind: "Name", value: "urlKey" } },
85133
+ { kind: "Field", name: { kind: "Name", value: "region" } },
85134
+ { kind: "Field", name: { kind: "Name", value: "deletionRequestedAt" } },
85135
+ { kind: "Field", name: { kind: "Name", value: "id" } },
85136
+ { kind: "Field", name: { kind: "Name", value: "samlEnabled" } },
85137
+ { kind: "Field", name: { kind: "Name", value: "scimEnabled" } },
85138
+ { kind: "Field", name: { kind: "Name", value: "userCount" } },
85139
+ ],
85140
+ },
85141
+ },
85142
+ ],
85143
+ };
85144
+ const AuthUserFragmentDoc = {
85145
+ kind: "Document",
85146
+ definitions: [
85147
+ {
85148
+ kind: "FragmentDefinition",
85149
+ name: { kind: "Name", value: "AuthUser" },
85150
+ typeCondition: { kind: "NamedType", name: { kind: "Name", value: "AuthUser" } },
85151
+ selectionSet: {
85152
+ kind: "SelectionSet",
85153
+ selections: [
85154
+ { kind: "Field", name: { kind: "Name", value: "__typename" } },
85155
+ { kind: "Field", name: { kind: "Name", value: "avatarUrl" } },
85156
+ {
85157
+ kind: "Field",
85158
+ name: { kind: "Name", value: "organization" },
85159
+ selectionSet: {
85160
+ kind: "SelectionSet",
85161
+ selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "AuthOrganization" } }],
85162
+ },
85163
+ },
85164
+ { kind: "Field", name: { kind: "Name", value: "displayName" } },
85165
+ { kind: "Field", name: { kind: "Name", value: "email" } },
85166
+ { kind: "Field", name: { kind: "Name", value: "name" } },
85167
+ { kind: "Field", name: { kind: "Name", value: "userAccountId" } },
85168
+ { kind: "Field", name: { kind: "Name", value: "active" } },
85169
+ { kind: "Field", name: { kind: "Name", value: "id" } },
85170
+ ],
85171
+ },
85172
+ },
85173
+ ],
85174
+ };
85175
+ const AuthEmailIntakeAddressFragmentDoc = {
85176
+ kind: "Document",
85177
+ definitions: [
85178
+ {
85179
+ kind: "FragmentDefinition",
85180
+ name: { kind: "Name", value: "AuthEmailIntakeAddress" },
85181
+ typeCondition: { kind: "NamedType", name: { kind: "Name", value: "AuthEmailIntakeAddress" } },
85182
+ selectionSet: {
85183
+ kind: "SelectionSet",
85184
+ selections: [
85185
+ { kind: "Field", name: { kind: "Name", value: "__typename" } },
85186
+ {
85187
+ kind: "Field",
85188
+ name: { kind: "Name", value: "organization" },
85189
+ selectionSet: {
85190
+ kind: "SelectionSet",
85191
+ selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "AuthOrganization" } }],
85192
+ },
85193
+ },
85194
+ {
85195
+ kind: "Field",
85196
+ name: { kind: "Name", value: "creator" },
85197
+ selectionSet: {
85198
+ kind: "SelectionSet",
85199
+ selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "AuthUser" } }],
85200
+ },
85201
+ },
85202
+ { kind: "Field", name: { kind: "Name", value: "id" } },
85203
+ { kind: "Field", name: { kind: "Name", value: "address" } },
85204
+ { kind: "Field", name: { kind: "Name", value: "enabled" } },
85205
+ ],
85206
+ },
85207
+ },
85208
+ ],
85209
+ };
85115
85210
  const AuthOrganizationInviteFragmentDoc = {
85116
85211
  kind: "Document",
85117
85212
  definitions: [
@@ -85453,6 +85548,7 @@ const SharedSlackSettingsFragmentDoc = {
85453
85548
  kind: "SelectionSet",
85454
85549
  selections: [
85455
85550
  { kind: "Field", name: { kind: "Name", value: "__typename" } },
85551
+ { kind: "Field", name: { kind: "Name", value: "enterpriseName" } },
85456
85552
  { kind: "Field", name: { kind: "Name", value: "teamId" } },
85457
85553
  { kind: "Field", name: { kind: "Name", value: "teamName" } },
85458
85554
  ],
@@ -85799,6 +85895,7 @@ const SlackSettingsFragmentDoc = {
85799
85895
  kind: "SelectionSet",
85800
85896
  selections: [
85801
85897
  { kind: "Field", name: { kind: "Name", value: "__typename" } },
85898
+ { kind: "Field", name: { kind: "Name", value: "enterpriseName" } },
85802
85899
  { kind: "Field", name: { kind: "Name", value: "teamId" } },
85803
85900
  { kind: "Field", name: { kind: "Name", value: "teamName" } },
85804
85901
  { kind: "Field", name: { kind: "Name", value: "linkOnIssueIdMention" } },
@@ -85869,6 +85966,7 @@ const SlackAsksSettingsFragmentDoc = {
85869
85966
  kind: "SelectionSet",
85870
85967
  selections: [
85871
85968
  { kind: "Field", name: { kind: "Name", value: "__typename" } },
85969
+ { kind: "Field", name: { kind: "Name", value: "enterpriseName" } },
85872
85970
  { kind: "Field", name: { kind: "Name", value: "teamId" } },
85873
85971
  { kind: "Field", name: { kind: "Name", value: "teamName" } },
85874
85972
  {
@@ -86588,64 +86686,6 @@ const AuthOauthClientFragmentDoc = {
86588
86686
  },
86589
86687
  ],
86590
86688
  };
86591
- const AuthOrganizationFragmentDoc = {
86592
- kind: "Document",
86593
- definitions: [
86594
- {
86595
- kind: "FragmentDefinition",
86596
- name: { kind: "Name", value: "AuthOrganization" },
86597
- typeCondition: { kind: "NamedType", name: { kind: "Name", value: "AuthOrganization" } },
86598
- selectionSet: {
86599
- kind: "SelectionSet",
86600
- selections: [
86601
- { kind: "Field", name: { kind: "Name", value: "__typename" } },
86602
- { kind: "Field", name: { kind: "Name", value: "allowedAuthServices" } },
86603
- { kind: "Field", name: { kind: "Name", value: "previousUrlKeys" } },
86604
- { kind: "Field", name: { kind: "Name", value: "serviceId" } },
86605
- { kind: "Field", name: { kind: "Name", value: "logoUrl" } },
86606
- { kind: "Field", name: { kind: "Name", value: "name" } },
86607
- { kind: "Field", name: { kind: "Name", value: "urlKey" } },
86608
- { kind: "Field", name: { kind: "Name", value: "deletionRequestedAt" } },
86609
- { kind: "Field", name: { kind: "Name", value: "id" } },
86610
- { kind: "Field", name: { kind: "Name", value: "samlEnabled" } },
86611
- { kind: "Field", name: { kind: "Name", value: "scimEnabled" } },
86612
- { kind: "Field", name: { kind: "Name", value: "userCount" } },
86613
- ],
86614
- },
86615
- },
86616
- ],
86617
- };
86618
- const AuthUserFragmentDoc = {
86619
- kind: "Document",
86620
- definitions: [
86621
- {
86622
- kind: "FragmentDefinition",
86623
- name: { kind: "Name", value: "AuthUser" },
86624
- typeCondition: { kind: "NamedType", name: { kind: "Name", value: "AuthUser" } },
86625
- selectionSet: {
86626
- kind: "SelectionSet",
86627
- selections: [
86628
- { kind: "Field", name: { kind: "Name", value: "__typename" } },
86629
- { kind: "Field", name: { kind: "Name", value: "avatarUrl" } },
86630
- {
86631
- kind: "Field",
86632
- name: { kind: "Name", value: "organization" },
86633
- selectionSet: {
86634
- kind: "SelectionSet",
86635
- selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "AuthOrganization" } }],
86636
- },
86637
- },
86638
- { kind: "Field", name: { kind: "Name", value: "displayName" } },
86639
- { kind: "Field", name: { kind: "Name", value: "email" } },
86640
- { kind: "Field", name: { kind: "Name", value: "name" } },
86641
- { kind: "Field", name: { kind: "Name", value: "userAccountId" } },
86642
- { kind: "Field", name: { kind: "Name", value: "active" } },
86643
- { kind: "Field", name: { kind: "Name", value: "id" } },
86644
- ],
86645
- },
86646
- },
86647
- ],
86648
- };
86649
86689
  const OauthTokenFragmentDoc = {
86650
86690
  kind: "Document",
86651
86691
  definitions: [
@@ -87394,6 +87434,7 @@ const DocumentFragmentDoc = {
87394
87434
  selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }],
87395
87435
  },
87396
87436
  },
87437
+ { kind: "Field", name: { kind: "Name", value: "hiddenAt" } },
87397
87438
  { kind: "Field", name: { kind: "Name", value: "archivedAt" } },
87398
87439
  { kind: "Field", name: { kind: "Name", value: "createdAt" } },
87399
87440
  { kind: "Field", name: { kind: "Name", value: "id" } },
@@ -87576,6 +87617,7 @@ const DocumentSearchResultFragmentDoc = {
87576
87617
  selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }],
87577
87618
  },
87578
87619
  },
87620
+ { kind: "Field", name: { kind: "Name", value: "hiddenAt" } },
87579
87621
  { kind: "Field", name: { kind: "Name", value: "archivedAt" } },
87580
87622
  { kind: "Field", name: { kind: "Name", value: "createdAt" } },
87581
87623
  { kind: "Field", name: { kind: "Name", value: "id" } },
@@ -90114,6 +90156,7 @@ const OrganizationInviteFullDetailsPayloadFragmentDoc = {
90114
90156
  kind: "SelectionSet",
90115
90157
  selections: [
90116
90158
  { kind: "Field", name: { kind: "Name", value: "__typename" } },
90159
+ { kind: "Field", name: { kind: "Name", value: "allowedAuthServices" } },
90117
90160
  { kind: "Field", name: { kind: "Name", value: "organizationId" } },
90118
90161
  { kind: "Field", name: { kind: "Name", value: "organizationName" } },
90119
90162
  { kind: "Field", name: { kind: "Name", value: "email" } },
@@ -90127,6 +90170,28 @@ const OrganizationInviteFullDetailsPayloadFragmentDoc = {
90127
90170
  },
90128
90171
  ],
90129
90172
  };
90173
+ const OrganizationInviteLinkDetailsPayloadFragmentDoc = {
90174
+ kind: "Document",
90175
+ definitions: [
90176
+ {
90177
+ kind: "FragmentDefinition",
90178
+ name: { kind: "Name", value: "OrganizationInviteLinkDetailsPayload" },
90179
+ typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OrganizationInviteLinkDetailsPayload" } },
90180
+ selectionSet: {
90181
+ kind: "SelectionSet",
90182
+ selections: [
90183
+ { kind: "Field", name: { kind: "Name", value: "__typename" } },
90184
+ { kind: "Field", name: { kind: "Name", value: "allowedAuthServices" } },
90185
+ { kind: "Field", name: { kind: "Name", value: "organizationId" } },
90186
+ { kind: "Field", name: { kind: "Name", value: "organizationName" } },
90187
+ { kind: "Field", name: { kind: "Name", value: "organizationRegion" } },
90188
+ { kind: "Field", name: { kind: "Name", value: "organizationUrlKey" } },
90189
+ { kind: "Field", name: { kind: "Name", value: "organizationLogoUrl" } },
90190
+ ],
90191
+ },
90192
+ },
90193
+ ],
90194
+ };
90130
90195
  const OrganizationInvitePayloadFragmentDoc = {
90131
90196
  kind: "Document",
90132
90197
  definitions: [
@@ -90171,6 +90236,24 @@ const OrganizationPayloadFragmentDoc = {
90171
90236
  },
90172
90237
  ],
90173
90238
  };
90239
+ const OrganizationRegionResponseFragmentDoc = {
90240
+ kind: "Document",
90241
+ definitions: [
90242
+ {
90243
+ kind: "FragmentDefinition",
90244
+ name: { kind: "Name", value: "OrganizationRegionResponse" },
90245
+ typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OrganizationRegionResponse" } },
90246
+ selectionSet: {
90247
+ kind: "SelectionSet",
90248
+ selections: [
90249
+ { kind: "Field", name: { kind: "Name", value: "__typename" } },
90250
+ { kind: "Field", name: { kind: "Name", value: "region" } },
90251
+ { kind: "Field", name: { kind: "Name", value: "success" } },
90252
+ ],
90253
+ },
90254
+ },
90255
+ ],
90256
+ };
90174
90257
  const OrganizationStartPlusTrialPayloadFragmentDoc = {
90175
90258
  kind: "Document",
90176
90259
  definitions: [
@@ -90257,7 +90340,6 @@ const ProjectFragmentDoc = {
90257
90340
  { kind: "Field", name: { kind: "Name", value: "projectUpdateRemindersPausedUntilAt" } },
90258
90341
  { kind: "Field", name: { kind: "Name", value: "scopeHistory" } },
90259
90342
  { kind: "Field", name: { kind: "Name", value: "issueCountHistory" } },
90260
- { kind: "Field", name: { kind: "Name", value: "state" } },
90261
90343
  { kind: "Field", name: { kind: "Name", value: "id" } },
90262
90344
  {
90263
90345
  kind: "Field",
@@ -90267,9 +90349,18 @@ const ProjectFragmentDoc = {
90267
90349
  selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }],
90268
90350
  },
90269
90351
  },
90352
+ {
90353
+ kind: "Field",
90354
+ name: { kind: "Name", value: "favorite" },
90355
+ selectionSet: {
90356
+ kind: "SelectionSet",
90357
+ selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }],
90358
+ },
90359
+ },
90270
90360
  { kind: "Field", name: { kind: "Name", value: "slackIssueComments" } },
90271
90361
  { kind: "Field", name: { kind: "Name", value: "slackNewIssue" } },
90272
90362
  { kind: "Field", name: { kind: "Name", value: "slackIssueStatuses" } },
90363
+ { kind: "Field", name: { kind: "Name", value: "state" } },
90273
90364
  ],
90274
90365
  },
90275
90366
  },
@@ -90607,7 +90698,6 @@ const ProjectSearchResultFragmentDoc = {
90607
90698
  { kind: "Field", name: { kind: "Name", value: "projectUpdateRemindersPausedUntilAt" } },
90608
90699
  { kind: "Field", name: { kind: "Name", value: "scopeHistory" } },
90609
90700
  { kind: "Field", name: { kind: "Name", value: "issueCountHistory" } },
90610
- { kind: "Field", name: { kind: "Name", value: "state" } },
90611
90701
  { kind: "Field", name: { kind: "Name", value: "id" } },
90612
90702
  {
90613
90703
  kind: "Field",
@@ -90617,9 +90707,18 @@ const ProjectSearchResultFragmentDoc = {
90617
90707
  selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }],
90618
90708
  },
90619
90709
  },
90710
+ {
90711
+ kind: "Field",
90712
+ name: { kind: "Name", value: "favorite" },
90713
+ selectionSet: {
90714
+ kind: "SelectionSet",
90715
+ selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }],
90716
+ },
90717
+ },
90620
90718
  { kind: "Field", name: { kind: "Name", value: "slackIssueComments" } },
90621
90719
  { kind: "Field", name: { kind: "Name", value: "slackNewIssue" } },
90622
90720
  { kind: "Field", name: { kind: "Name", value: "slackIssueStatuses" } },
90721
+ { kind: "Field", name: { kind: "Name", value: "state" } },
90623
90722
  ],
90624
90723
  },
90625
90724
  },
@@ -100798,6 +100897,44 @@ const OrganizationInvitesDocument = {
100798
100897
  ...PageInfoFragmentDoc.definitions,
100799
100898
  ],
100800
100899
  };
100900
+ const OrganizationRegionDocument = {
100901
+ kind: "Document",
100902
+ definitions: [
100903
+ {
100904
+ kind: "OperationDefinition",
100905
+ operation: "query",
100906
+ name: { kind: "Name", value: "organizationRegion" },
100907
+ variableDefinitions: [
100908
+ {
100909
+ kind: "VariableDefinition",
100910
+ variable: { kind: "Variable", name: { kind: "Name", value: "id" } },
100911
+ type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } },
100912
+ },
100913
+ ],
100914
+ selectionSet: {
100915
+ kind: "SelectionSet",
100916
+ selections: [
100917
+ {
100918
+ kind: "Field",
100919
+ name: { kind: "Name", value: "organizationRegion" },
100920
+ arguments: [
100921
+ {
100922
+ kind: "Argument",
100923
+ name: { kind: "Name", value: "id" },
100924
+ value: { kind: "Variable", name: { kind: "Name", value: "id" } },
100925
+ },
100926
+ ],
100927
+ selectionSet: {
100928
+ kind: "SelectionSet",
100929
+ selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "OrganizationRegionResponse" } }],
100930
+ },
100931
+ },
100932
+ ],
100933
+ },
100934
+ },
100935
+ ...OrganizationRegionResponseFragmentDoc.definitions,
100936
+ ],
100937
+ };
100801
100938
  const ProjectDocument = {
100802
100939
  kind: "Document",
100803
100940
  definitions: [
@@ -116704,6 +116841,9 @@ var _generated_documents = /*#__PURE__*/Object.freeze({
116704
116841
  TeamNotificationSubscriptionFragmentDoc: TeamNotificationSubscriptionFragmentDoc,
116705
116842
  UserAccountFragmentDoc: UserAccountFragmentDoc,
116706
116843
  UserNotificationSubscriptionFragmentDoc: UserNotificationSubscriptionFragmentDoc,
116844
+ AuthOrganizationFragmentDoc: AuthOrganizationFragmentDoc,
116845
+ AuthUserFragmentDoc: AuthUserFragmentDoc,
116846
+ AuthEmailIntakeAddressFragmentDoc: AuthEmailIntakeAddressFragmentDoc,
116707
116847
  AuthOrganizationInviteFragmentDoc: AuthOrganizationInviteFragmentDoc,
116708
116848
  PaidSubscriptionFragmentDoc: PaidSubscriptionFragmentDoc,
116709
116849
  OrganizationFragmentDoc: OrganizationFragmentDoc,
@@ -116758,8 +116898,6 @@ var _generated_documents = /*#__PURE__*/Object.freeze({
116758
116898
  AuthApiKeyPayloadFragmentDoc: AuthApiKeyPayloadFragmentDoc,
116759
116899
  AuthIntegrationFragmentDoc: AuthIntegrationFragmentDoc,
116760
116900
  AuthOauthClientFragmentDoc: AuthOauthClientFragmentDoc,
116761
- AuthOrganizationFragmentDoc: AuthOrganizationFragmentDoc,
116762
- AuthUserFragmentDoc: AuthUserFragmentDoc,
116763
116901
  OauthTokenFragmentDoc: OauthTokenFragmentDoc,
116764
116902
  AuthOauthClientWithTokensFragmentDoc: AuthOauthClientWithTokensFragmentDoc,
116765
116903
  AuthOrganizationDomainFragmentDoc: AuthOrganizationDomainFragmentDoc,
@@ -116859,8 +116997,10 @@ var _generated_documents = /*#__PURE__*/Object.freeze({
116859
116997
  OrganizationInviteFragmentDoc: OrganizationInviteFragmentDoc,
116860
116998
  OrganizationInviteConnectionFragmentDoc: OrganizationInviteConnectionFragmentDoc,
116861
116999
  OrganizationInviteFullDetailsPayloadFragmentDoc: OrganizationInviteFullDetailsPayloadFragmentDoc,
117000
+ OrganizationInviteLinkDetailsPayloadFragmentDoc: OrganizationInviteLinkDetailsPayloadFragmentDoc,
116862
117001
  OrganizationInvitePayloadFragmentDoc: OrganizationInvitePayloadFragmentDoc,
116863
117002
  OrganizationPayloadFragmentDoc: OrganizationPayloadFragmentDoc,
117003
+ OrganizationRegionResponseFragmentDoc: OrganizationRegionResponseFragmentDoc,
116864
117004
  OrganizationStartPlusTrialPayloadFragmentDoc: OrganizationStartPlusTrialPayloadFragmentDoc,
116865
117005
  ProjectFragmentDoc: ProjectFragmentDoc,
116866
117006
  ProjectConnectionFragmentDoc: ProjectConnectionFragmentDoc,
@@ -117037,6 +117177,7 @@ var _generated_documents = /*#__PURE__*/Object.freeze({
117037
117177
  OrganizationExistsDocument: OrganizationExistsDocument,
117038
117178
  OrganizationInviteDocument: OrganizationInviteDocument,
117039
117179
  OrganizationInvitesDocument: OrganizationInvitesDocument,
117180
+ OrganizationRegionDocument: OrganizationRegionDocument,
117040
117181
  ProjectDocument: ProjectDocument,
117041
117182
  Project_DocumentsDocument: Project_DocumentsDocument,
117042
117183
  Project_IssuesDocument: Project_IssuesDocument,
@@ -117777,6 +117918,22 @@ class AuthApiKeyPayload extends Request {
117777
117918
  this.authApiKey = new AuthApiKey(request, data.authApiKey);
117778
117919
  }
117779
117920
  }
117921
+ /**
117922
+ * An email address that can be used for submitting issues.
117923
+ *
117924
+ * @param request - function to call the graphql client
117925
+ * @param data - L.AuthEmailIntakeAddressFragment response data
117926
+ */
117927
+ class AuthEmailIntakeAddress extends Request {
117928
+ constructor(request, data) {
117929
+ super(request);
117930
+ this.address = data.address;
117931
+ this.enabled = data.enabled;
117932
+ this.id = data.id;
117933
+ this.creator = data.creator ? new AuthUser(request, data.creator) : undefined;
117934
+ this.organization = new AuthOrganization(request, data.organization);
117935
+ }
117936
+ }
117780
117937
  /**
117781
117938
  * AuthIntegration model
117782
117939
  *
@@ -117881,6 +118038,7 @@ class AuthOrganization extends Request {
117881
118038
  this.logoUrl = (_b = data.logoUrl) !== null && _b !== void 0 ? _b : undefined;
117882
118039
  this.name = data.name;
117883
118040
  this.previousUrlKeys = data.previousUrlKeys;
118041
+ this.region = data.region;
117884
118042
  this.samlEnabled = data.samlEnabled;
117885
118043
  this.scimEnabled = data.scimEnabled;
117886
118044
  this.serviceId = data.serviceId;
@@ -118607,20 +118765,21 @@ class DeletePayload extends Request {
118607
118765
  */
118608
118766
  class Document extends Request {
118609
118767
  constructor(request, data) {
118610
- var _a, _b, _c, _d, _e, _f, _g;
118768
+ var _a, _b, _c, _d, _e, _f, _g, _h;
118611
118769
  super(request);
118612
118770
  this.archivedAt = (_a = parseDate(data.archivedAt)) !== null && _a !== void 0 ? _a : undefined;
118613
118771
  this.color = (_b = data.color) !== null && _b !== void 0 ? _b : undefined;
118614
118772
  this.content = (_c = data.content) !== null && _c !== void 0 ? _c : undefined;
118615
118773
  this.createdAt = (_d = parseDate(data.createdAt)) !== null && _d !== void 0 ? _d : new Date();
118616
- this.icon = (_e = data.icon) !== null && _e !== void 0 ? _e : undefined;
118774
+ this.hiddenAt = (_e = parseDate(data.hiddenAt)) !== null && _e !== void 0 ? _e : undefined;
118775
+ this.icon = (_f = data.icon) !== null && _f !== void 0 ? _f : undefined;
118617
118776
  this.id = data.id;
118618
118777
  this.slugId = data.slugId;
118619
118778
  this.sortOrder = data.sortOrder;
118620
118779
  this.title = data.title;
118621
- this.updatedAt = (_f = parseDate(data.updatedAt)) !== null && _f !== void 0 ? _f : new Date();
118780
+ this.updatedAt = (_g = parseDate(data.updatedAt)) !== null && _g !== void 0 ? _g : new Date();
118622
118781
  this._creator = data.creator;
118623
- this._lastAppliedTemplate = (_g = data.lastAppliedTemplate) !== null && _g !== void 0 ? _g : undefined;
118782
+ this._lastAppliedTemplate = (_h = data.lastAppliedTemplate) !== null && _h !== void 0 ? _h : undefined;
118624
118783
  this._project = data.project;
118625
118784
  this._updatedBy = data.updatedBy;
118626
118785
  }
@@ -118802,21 +118961,22 @@ class DocumentSearchPayload extends Request {
118802
118961
  */
118803
118962
  class DocumentSearchResult extends Request {
118804
118963
  constructor(request, data) {
118805
- var _a, _b, _c, _d, _e, _f, _g;
118964
+ var _a, _b, _c, _d, _e, _f, _g, _h;
118806
118965
  super(request);
118807
118966
  this.archivedAt = (_a = parseDate(data.archivedAt)) !== null && _a !== void 0 ? _a : undefined;
118808
118967
  this.color = (_b = data.color) !== null && _b !== void 0 ? _b : undefined;
118809
118968
  this.content = (_c = data.content) !== null && _c !== void 0 ? _c : undefined;
118810
118969
  this.createdAt = (_d = parseDate(data.createdAt)) !== null && _d !== void 0 ? _d : new Date();
118811
- this.icon = (_e = data.icon) !== null && _e !== void 0 ? _e : undefined;
118970
+ this.hiddenAt = (_e = parseDate(data.hiddenAt)) !== null && _e !== void 0 ? _e : undefined;
118971
+ this.icon = (_f = data.icon) !== null && _f !== void 0 ? _f : undefined;
118812
118972
  this.id = data.id;
118813
118973
  this.metadata = data.metadata;
118814
118974
  this.slugId = data.slugId;
118815
118975
  this.sortOrder = data.sortOrder;
118816
118976
  this.title = data.title;
118817
- this.updatedAt = (_f = parseDate(data.updatedAt)) !== null && _f !== void 0 ? _f : new Date();
118977
+ this.updatedAt = (_g = parseDate(data.updatedAt)) !== null && _g !== void 0 ? _g : new Date();
118818
118978
  this._creator = data.creator;
118819
- this._lastAppliedTemplate = (_g = data.lastAppliedTemplate) !== null && _g !== void 0 ? _g : undefined;
118979
+ this._lastAppliedTemplate = (_h = data.lastAppliedTemplate) !== null && _h !== void 0 ? _h : undefined;
118820
118980
  this._project = data.project;
118821
118981
  this._updatedBy = data.updatedBy;
118822
118982
  }
@@ -121415,6 +121575,7 @@ class OrganizationInviteFullDetailsPayload extends Request {
121415
121575
  var _a, _b;
121416
121576
  super(request);
121417
121577
  this.accepted = data.accepted;
121578
+ this.allowedAuthServices = data.allowedAuthServices;
121418
121579
  this.createdAt = (_a = parseDate(data.createdAt)) !== null && _a !== void 0 ? _a : new Date();
121419
121580
  this.email = data.email;
121420
121581
  this.expired = data.expired;
@@ -121424,6 +121585,24 @@ class OrganizationInviteFullDetailsPayload extends Request {
121424
121585
  this.organizationName = data.organizationName;
121425
121586
  }
121426
121587
  }
121588
+ /**
121589
+ * OrganizationInviteLinkDetailsPayload model
121590
+ *
121591
+ * @param request - function to call the graphql client
121592
+ * @param data - L.OrganizationInviteLinkDetailsPayloadFragment response data
121593
+ */
121594
+ class OrganizationInviteLinkDetailsPayload extends Request {
121595
+ constructor(request, data) {
121596
+ var _a, _b, _c, _d, _e;
121597
+ super(request);
121598
+ this.allowedAuthServices = data.allowedAuthServices;
121599
+ this.organizationId = (_a = data.organizationId) !== null && _a !== void 0 ? _a : undefined;
121600
+ this.organizationLogoUrl = (_b = data.organizationLogoUrl) !== null && _b !== void 0 ? _b : undefined;
121601
+ this.organizationName = (_c = data.organizationName) !== null && _c !== void 0 ? _c : undefined;
121602
+ this.organizationRegion = (_d = data.organizationRegion) !== null && _d !== void 0 ? _d : undefined;
121603
+ this.organizationUrlKey = (_e = data.organizationUrlKey) !== null && _e !== void 0 ? _e : undefined;
121604
+ }
121605
+ }
121427
121606
  /**
121428
121607
  * OrganizationInvitePayload model
121429
121608
  *
@@ -121459,6 +121638,20 @@ class OrganizationPayload extends Request {
121459
121638
  return new OrganizationQuery(this._request).fetch();
121460
121639
  }
121461
121640
  }
121641
+ /**
121642
+ * OrganizationRegionResponse model
121643
+ *
121644
+ * @param request - function to call the graphql client
121645
+ * @param data - L.OrganizationRegionResponseFragment response data
121646
+ */
121647
+ class OrganizationRegionResponse extends Request {
121648
+ constructor(request, data) {
121649
+ var _a;
121650
+ super(request);
121651
+ this.region = (_a = data.region) !== null && _a !== void 0 ? _a : undefined;
121652
+ this.success = data.success;
121653
+ }
121654
+ }
121462
121655
  /**
121463
121656
  * OrganizationStartPlusTrialPayload model
121464
121657
  *
@@ -121542,7 +121735,7 @@ class PaidSubscription extends Request {
121542
121735
  */
121543
121736
  class Project extends Request {
121544
121737
  constructor(request, data) {
121545
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
121738
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
121546
121739
  super(request);
121547
121740
  this.archivedAt = (_a = parseDate(data.archivedAt)) !== null && _a !== void 0 ? _a : undefined;
121548
121741
  this.autoArchivedAt = (_b = parseDate(data.autoArchivedAt)) !== null && _b !== void 0 ? _b : undefined;
@@ -121577,9 +121770,10 @@ class Project extends Request {
121577
121770
  this.url = data.url;
121578
121771
  this._convertedFromIssue = (_p = data.convertedFromIssue) !== null && _p !== void 0 ? _p : undefined;
121579
121772
  this._creator = (_q = data.creator) !== null && _q !== void 0 ? _q : undefined;
121580
- this._integrationsSettings = (_r = data.integrationsSettings) !== null && _r !== void 0 ? _r : undefined;
121581
- this._lastAppliedTemplate = (_s = data.lastAppliedTemplate) !== null && _s !== void 0 ? _s : undefined;
121582
- this._lead = (_t = data.lead) !== null && _t !== void 0 ? _t : undefined;
121773
+ this._favorite = (_r = data.favorite) !== null && _r !== void 0 ? _r : undefined;
121774
+ this._integrationsSettings = (_s = data.integrationsSettings) !== null && _s !== void 0 ? _s : undefined;
121775
+ this._lastAppliedTemplate = (_t = data.lastAppliedTemplate) !== null && _t !== void 0 ? _t : undefined;
121776
+ this._lead = (_u = data.lead) !== null && _u !== void 0 ? _u : undefined;
121583
121777
  }
121584
121778
  /** The project was created based on this issue. */
121585
121779
  get convertedFromIssue() {
@@ -121591,6 +121785,11 @@ class Project extends Request {
121591
121785
  var _a, _b;
121592
121786
  return ((_a = this._creator) === null || _a === void 0 ? void 0 : _a.id) ? new UserQuery(this._request).fetch((_b = this._creator) === null || _b === void 0 ? void 0 : _b.id) : undefined;
121593
121787
  }
121788
+ /** The user's favorite associated with this project. */
121789
+ get favorite() {
121790
+ var _a, _b;
121791
+ return ((_a = this._favorite) === null || _a === void 0 ? void 0 : _a.id) ? new FavoriteQuery(this._request).fetch((_b = this._favorite) === null || _b === void 0 ? void 0 : _b.id) : undefined;
121792
+ }
121594
121793
  /** Settings for all integrations associated with that project. */
121595
121794
  get integrationsSettings() {
121596
121795
  var _a, _b;
@@ -121999,7 +122198,7 @@ class ProjectSearchPayload extends Request {
121999
122198
  */
122000
122199
  class ProjectSearchResult extends Request {
122001
122200
  constructor(request, data) {
122002
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
122201
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
122003
122202
  super(request);
122004
122203
  this.archivedAt = (_a = parseDate(data.archivedAt)) !== null && _a !== void 0 ? _a : undefined;
122005
122204
  this.autoArchivedAt = (_b = parseDate(data.autoArchivedAt)) !== null && _b !== void 0 ? _b : undefined;
@@ -122035,9 +122234,10 @@ class ProjectSearchResult extends Request {
122035
122234
  this.url = data.url;
122036
122235
  this._convertedFromIssue = (_p = data.convertedFromIssue) !== null && _p !== void 0 ? _p : undefined;
122037
122236
  this._creator = (_q = data.creator) !== null && _q !== void 0 ? _q : undefined;
122038
- this._integrationsSettings = (_r = data.integrationsSettings) !== null && _r !== void 0 ? _r : undefined;
122039
- this._lastAppliedTemplate = (_s = data.lastAppliedTemplate) !== null && _s !== void 0 ? _s : undefined;
122040
- this._lead = (_t = data.lead) !== null && _t !== void 0 ? _t : undefined;
122237
+ this._favorite = (_r = data.favorite) !== null && _r !== void 0 ? _r : undefined;
122238
+ this._integrationsSettings = (_s = data.integrationsSettings) !== null && _s !== void 0 ? _s : undefined;
122239
+ this._lastAppliedTemplate = (_t = data.lastAppliedTemplate) !== null && _t !== void 0 ? _t : undefined;
122240
+ this._lead = (_u = data.lead) !== null && _u !== void 0 ? _u : undefined;
122041
122241
  }
122042
122242
  /** The project was created based on this issue. */
122043
122243
  get convertedFromIssue() {
@@ -122049,6 +122249,11 @@ class ProjectSearchResult extends Request {
122049
122249
  var _a, _b;
122050
122250
  return ((_a = this._creator) === null || _a === void 0 ? void 0 : _a.id) ? new UserQuery(this._request).fetch((_b = this._creator) === null || _b === void 0 ? void 0 : _b.id) : undefined;
122051
122251
  }
122252
+ /** The user's favorite associated with this project. */
122253
+ get favorite() {
122254
+ var _a, _b;
122255
+ return ((_a = this._favorite) === null || _a === void 0 ? void 0 : _a.id) ? new FavoriteQuery(this._request).fetch((_b = this._favorite) === null || _b === void 0 ? void 0 : _b.id) : undefined;
122256
+ }
122052
122257
  /** Settings for all integrations associated with that project. */
122053
122258
  get integrationsSettings() {
122054
122259
  var _a, _b;
@@ -122619,10 +122824,11 @@ class SentrySettings extends Request {
122619
122824
  */
122620
122825
  class SharedSlackSettings extends Request {
122621
122826
  constructor(request, data) {
122622
- var _a, _b;
122827
+ var _a, _b, _c;
122623
122828
  super(request);
122624
- this.teamId = (_a = data.teamId) !== null && _a !== void 0 ? _a : undefined;
122625
- this.teamName = (_b = data.teamName) !== null && _b !== void 0 ? _b : undefined;
122829
+ this.enterpriseName = (_a = data.enterpriseName) !== null && _a !== void 0 ? _a : undefined;
122830
+ this.teamId = (_b = data.teamId) !== null && _b !== void 0 ? _b : undefined;
122831
+ this.teamName = (_c = data.teamName) !== null && _c !== void 0 ? _c : undefined;
122626
122832
  }
122627
122833
  }
122628
122834
  /**
@@ -122633,10 +122839,11 @@ class SharedSlackSettings extends Request {
122633
122839
  */
122634
122840
  class SlackAsksSettings extends Request {
122635
122841
  constructor(request, data) {
122636
- var _a, _b;
122842
+ var _a, _b, _c;
122637
122843
  super(request);
122638
- this.teamId = (_a = data.teamId) !== null && _a !== void 0 ? _a : undefined;
122639
- this.teamName = (_b = data.teamName) !== null && _b !== void 0 ? _b : undefined;
122844
+ this.enterpriseName = (_a = data.enterpriseName) !== null && _a !== void 0 ? _a : undefined;
122845
+ this.teamId = (_b = data.teamId) !== null && _b !== void 0 ? _b : undefined;
122846
+ this.teamName = (_c = data.teamName) !== null && _c !== void 0 ? _c : undefined;
122640
122847
  this.slackChannelMapping = data.slackChannelMapping
122641
122848
  ? data.slackChannelMapping.map(node => new SlackChannelNameMapping(request, node))
122642
122849
  : undefined;
@@ -122722,11 +122929,12 @@ class SlackPostSettings extends Request {
122722
122929
  */
122723
122930
  class SlackSettings extends Request {
122724
122931
  constructor(request, data) {
122725
- var _a, _b;
122932
+ var _a, _b, _c;
122726
122933
  super(request);
122934
+ this.enterpriseName = (_a = data.enterpriseName) !== null && _a !== void 0 ? _a : undefined;
122727
122935
  this.linkOnIssueIdMention = data.linkOnIssueIdMention;
122728
- this.teamId = (_a = data.teamId) !== null && _a !== void 0 ? _a : undefined;
122729
- this.teamName = (_b = data.teamName) !== null && _b !== void 0 ? _b : undefined;
122936
+ this.teamId = (_b = data.teamId) !== null && _b !== void 0 ? _b : undefined;
122937
+ this.teamName = (_c = data.teamName) !== null && _c !== void 0 ? _c : undefined;
122730
122938
  }
122731
122939
  }
122732
122940
  /**
@@ -125429,6 +125637,31 @@ class OrganizationInvitesQuery extends Request {
125429
125637
  });
125430
125638
  }
125431
125639
  }
125640
+ /**
125641
+ * A fetchable OrganizationRegion Query
125642
+ *
125643
+ * @param request - function to call the graphql client
125644
+ */
125645
+ class OrganizationRegionQuery extends Request {
125646
+ constructor(request) {
125647
+ super(request);
125648
+ }
125649
+ /**
125650
+ * Call the OrganizationRegion query and return a OrganizationRegionResponse
125651
+ *
125652
+ * @param id - required id to pass to organizationRegion
125653
+ * @returns parsed response from OrganizationRegionQuery
125654
+ */
125655
+ fetch(id) {
125656
+ return __awaiter(this, void 0, void 0, function* () {
125657
+ const response = yield this._request(OrganizationRegionDocument, {
125658
+ id,
125659
+ });
125660
+ const data = response.organizationRegion;
125661
+ return new OrganizationRegionResponse(this._request, data);
125662
+ });
125663
+ }
125664
+ }
125432
125665
  /**
125433
125666
  * A fetchable Project Query
125434
125667
  *
@@ -134031,6 +134264,15 @@ class LinearSdk extends Request {
134031
134264
  organizationInvites(variables) {
134032
134265
  return new OrganizationInvitesQuery(this._request).fetch(variables);
134033
134266
  }
134267
+ /**
134268
+ * Fetch the region for the organization.
134269
+ *
134270
+ * @param id - required id to pass to organizationRegion
134271
+ * @returns OrganizationRegionResponse
134272
+ */
134273
+ organizationRegion(id) {
134274
+ return new OrganizationRegionQuery(this._request).fetch(id);
134275
+ }
134034
134276
  /**
134035
134277
  * One specific project.
134036
134278
  *
@@ -134759,7 +135001,7 @@ class LinearSdk extends Request {
134759
135001
  return new EmailTokenUserAccountAuthMutation(this._request).fetch(input);
134760
135002
  }
134761
135003
  /**
134762
- * Unsubscribes the user from one type of emails.
135004
+ * Unsubscribes the user from one type of email.
134763
135005
  *
134764
135006
  * @param input - required input to pass to emailUnsubscribe
134765
135007
  * @returns EmailUnsubscribePayload
@@ -136356,6 +136598,23 @@ class LinearClient extends LinearSdk {
136356
136598
  this.options = parsedOptions;
136357
136599
  this.client = graphQLClient;
136358
136600
  }
136601
+ /**
136602
+ * Helper to paginate over all pages of a given connection query.
136603
+ * @param fn The query to paginate
136604
+ * @param args The arguments to pass to the query
136605
+ */
136606
+ paginate(fn, args) {
136607
+ return __awaiter(this, void 0, void 0, function* () {
136608
+ const boundFn = fn.bind(this);
136609
+ let connection = (yield boundFn(args));
136610
+ const nodes = connection.nodes;
136611
+ while (connection.pageInfo.hasNextPage) {
136612
+ connection = (yield boundFn(Object.assign(Object.assign({}, args), { after: connection.pageInfo.endCursor })));
136613
+ nodes.push(...connection.nodes);
136614
+ }
136615
+ return nodes;
136616
+ });
136617
+ }
136359
136618
  }
136360
136619
 
136361
136620
  const LINEAR_WEBHOOK_SIGNATURE_HEADER = "linear-signature";
@@ -136449,6 +136708,7 @@ exports.AuditEntryType = AuditEntryType;
136449
136708
  exports.AuditEntryTypesQuery = AuditEntryTypesQuery;
136450
136709
  exports.AuthApiKey = AuthApiKey;
136451
136710
  exports.AuthApiKeyPayload = AuthApiKeyPayload;
136711
+ exports.AuthEmailIntakeAddress = AuthEmailIntakeAddress;
136452
136712
  exports.AuthIntegration = AuthIntegration;
136453
136713
  exports.AuthOauthClient = AuthOauthClient;
136454
136714
  exports.AuthOauthClientWithMemberships = AuthOauthClientWithMemberships;
@@ -136812,11 +137072,14 @@ exports.OrganizationExistsQuery = OrganizationExistsQuery;
136812
137072
  exports.OrganizationInvite = OrganizationInvite;
136813
137073
  exports.OrganizationInviteConnection = OrganizationInviteConnection;
136814
137074
  exports.OrganizationInviteFullDetailsPayload = OrganizationInviteFullDetailsPayload;
137075
+ exports.OrganizationInviteLinkDetailsPayload = OrganizationInviteLinkDetailsPayload;
136815
137076
  exports.OrganizationInvitePayload = OrganizationInvitePayload;
136816
137077
  exports.OrganizationInviteQuery = OrganizationInviteQuery;
136817
137078
  exports.OrganizationInvitesQuery = OrganizationInvitesQuery;
136818
137079
  exports.OrganizationPayload = OrganizationPayload;
136819
137080
  exports.OrganizationQuery = OrganizationQuery;
137081
+ exports.OrganizationRegionQuery = OrganizationRegionQuery;
137082
+ exports.OrganizationRegionResponse = OrganizationRegionResponse;
136820
137083
  exports.OrganizationStartPlusTrialMutation = OrganizationStartPlusTrialMutation;
136821
137084
  exports.OrganizationStartPlusTrialPayload = OrganizationStartPlusTrialPayload;
136822
137085
  exports.Organization_IntegrationsQuery = Organization_IntegrationsQuery;