@linear/sdk 2.4.0 → 2.6.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/CHANGELOG.md CHANGED
@@ -1,5 +1,53 @@
1
1
  # Change Log
2
2
 
3
+ ## 2.6.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 1b163bc: feat(schema): [non_breaking] Field 'trialEndsAt' was added to object type 'Organization' (Organization.trialEndsAt)
8
+
9
+ feat(schema): [non_breaking] Type for argument 'query' on field 'Query.issueSearch' changed from 'String!' to 'String' (Query.issueSearch.query)
10
+
11
+ - 3b08e37: Make webhooks timestamp check optional
12
+
13
+ ### Patch Changes
14
+
15
+ - 658d50f: chore(deps): update dependency patch versions
16
+
17
+ ## 2.5.0
18
+
19
+ ### Minor Changes
20
+
21
+ - 08697ed: feat(schema): [breaking] Type 'AdminJobConfiguration' was removed (AdminJobConfiguration)
22
+
23
+ feat(schema): [breaking] Type 'AdminJobConfigurationPayload' was removed (AdminJobConfigurationPayload)
24
+
25
+ feat(schema): [breaking] Type 'AdminJobStatusPayload' was removed (AdminJobStatusPayload)
26
+
27
+ feat(schema): [dangerous] Input field 'slaBreachesAt' was added to input object type 'IssueCreateInput' (IssueCreateInput.slaBreachesAt)
28
+
29
+ feat(schema): [dangerous] Input field 'sortOrder' was added to input object type 'ProjectMilestoneCreateInput' (ProjectMilestoneCreateInput.sortOrder)
30
+
31
+ feat(schema): [dangerous] Input field 'sortOrder' was added to input object type 'ProjectMilestoneUpdateInput' (ProjectMilestoneUpdateInput.sortOrder)
32
+
33
+ feat(schema): [non_breaking] Type 'OauthClientConnection' was added (OauthClientConnection)
34
+
35
+ feat(schema): [non_breaking] Type 'OauthClientEdge' was added (OauthClientEdge)
36
+
37
+ feat(schema): [non_breaking] Field 'integrationSlackIntake' was added to object type 'Mutation' (Mutation.integrationSlackIntake)
38
+
39
+ feat(schema): [non_breaking] Field 'webhookSecret' was added to object type 'OauthClient' (OauthClient.webhookSecret)
40
+
41
+ feat(schema): [non_breaking] Input field 'WebhookCreateInput.secret' description changed from 'An optional secret token used to sign the webhook payload.' to 'A secret token used to sign the webhook payload.' (WebhookCreateInput.secret)
42
+
43
+ feat(schema): [non_breaking] Input field 'WebhookUpdateInput.secret' description changed from 'An optional secret token used to sign the Webhook payload.' to 'A secret token used to sign the webhook payload.' (WebhookUpdateInput.secret)
44
+
45
+ - e9e1c69: Add new Webhooks helper class
46
+
47
+ ### Patch Changes
48
+
49
+ - 5ab451c: chore(deps): update dependency patch versions
50
+
3
51
  ## 2.4.0
4
52
 
5
53
  ### Minor Changes
@@ -29,26 +29,6 @@ export declare type Scalars = {
29
29
  /** A universally unique identifier as specified by RFC 4122. */
30
30
  UUID: any;
31
31
  };
32
- export declare type AdminJobConfiguration = {
33
- currentJob?: Maybe<Scalars["String"]>;
34
- delay?: Maybe<Scalars["Float"]>;
35
- enabled: Scalars["Boolean"];
36
- param?: Maybe<Scalars["String"]>;
37
- };
38
- export declare type AdminJobConfigurationPayload = {
39
- __typename?: "AdminJobConfigurationPayload";
40
- currentJob?: Maybe<Scalars["String"]>;
41
- delay: Scalars["Float"];
42
- enabled: Scalars["Boolean"];
43
- param?: Maybe<Scalars["String"]>;
44
- };
45
- export declare type AdminJobStatusPayload = {
46
- __typename?: "AdminJobStatusPayload";
47
- availableJobs: Array<Scalars["String"]>;
48
- configuration: AdminJobConfigurationPayload;
49
- cursor?: Maybe<Scalars["String"]>;
50
- startedAt?: Maybe<Scalars["DateTime"]>;
51
- };
52
32
  export declare type AirbyteConfigurationInput = {
53
33
  /** Linear export API key. */
54
34
  apiKey: Scalars["String"];
@@ -1953,6 +1933,8 @@ export declare type IssueCreateInput = {
1953
1933
  projectMilestoneId?: Maybe<Scalars["String"]>;
1954
1934
  /** The comment the issue is referencing. */
1955
1935
  referenceCommentId?: Maybe<Scalars["String"]>;
1936
+ /** [Internal] The timestamp at which an issue will be considered in breach of SLA. */
1937
+ slaBreachesAt?: Maybe<Scalars["DateTime"]>;
1956
1938
  /** The position of the issue related to other issues. */
1957
1939
  sortOrder?: Maybe<Scalars["Float"]>;
1958
1940
  /** The team state of the issue. */
@@ -2805,6 +2787,8 @@ export declare type Mutation = {
2805
2787
  integrationSlack: IntegrationPayload;
2806
2788
  /** Imports custom emojis from your Slack workspace. */
2807
2789
  integrationSlackImportEmojis: IntegrationPayload;
2790
+ /** Integrates the organization with Slack for issue intake. */
2791
+ integrationSlackIntake: IntegrationPayload;
2808
2792
  /** Slack integration for organization level project update notifications. */
2809
2793
  integrationSlackOrgProjectUpdatesPost: IntegrationPayload;
2810
2794
  /** Integrates your personal notifications with Slack. */
@@ -3245,6 +3229,10 @@ export declare type MutationIntegrationSlackImportEmojisArgs = {
3245
3229
  code: Scalars["String"];
3246
3230
  redirectUri: Scalars["String"];
3247
3231
  };
3232
+ export declare type MutationIntegrationSlackIntakeArgs = {
3233
+ code: Scalars["String"];
3234
+ redirectUri: Scalars["String"];
3235
+ };
3248
3236
  export declare type MutationIntegrationSlackOrgProjectUpdatesPostArgs = {
3249
3237
  code: Scalars["String"];
3250
3238
  redirectUri: Scalars["String"];
@@ -4156,6 +4144,8 @@ export declare type OauthClient = Node & {
4156
4144
  updatedAt: Scalars["DateTime"];
4157
4145
  /** The resource types to request when creating new webhooks. */
4158
4146
  webhookResourceTypes: Array<Scalars["String"]>;
4147
+ /** Webhook secret token for verifying the origin on the recipient side. */
4148
+ webhookSecret?: Maybe<Scalars["String"]>;
4159
4149
  /** Webhook URL */
4160
4150
  webhookUrl?: Maybe<Scalars["String"]>;
4161
4151
  };
@@ -4224,6 +4214,18 @@ export declare type OauthClientApprovalNotification = Entity & Node & Notificati
4224
4214
  /** The user that received the notification. */
4225
4215
  user: User;
4226
4216
  };
4217
+ export declare type OauthClientConnection = {
4218
+ __typename?: "OauthClientConnection";
4219
+ edges: Array<OauthClientEdge>;
4220
+ nodes: Array<OauthClient>;
4221
+ pageInfo: PageInfo;
4222
+ };
4223
+ export declare type OauthClientEdge = {
4224
+ __typename?: "OauthClientEdge";
4225
+ /** Used in `before` and `after` args */
4226
+ cursor: Scalars["String"];
4227
+ node: OauthClient;
4228
+ };
4227
4229
  export declare type OnboardingCustomerSurvey = {
4228
4230
  companyRole?: Maybe<Scalars["String"]>;
4229
4231
  companySize?: Maybe<Scalars["String"]>;
@@ -4281,6 +4283,8 @@ export declare type Organization = Node & {
4281
4283
  teams: TeamConnection;
4282
4284
  /** Templates associated with the organization. */
4283
4285
  templates: TemplateConnection;
4286
+ /** The time at which the trial of the plus plan will end. */
4287
+ trialEndsAt?: Maybe<Scalars["DateTime"]>;
4284
4288
  /**
4285
4289
  * The last time at which the entity was meaningfully updated, i.e. for all changes of syncable properties except those
4286
4290
  * for which updates should not produce an update to updatedAt (see skipUpdatedAtKeys). This is the same as the creation time if the entity hasn't
@@ -4968,6 +4972,8 @@ export declare type ProjectMilestoneCreateInput = {
4968
4972
  name: Scalars["String"];
4969
4973
  /** Related project for the project milestone. */
4970
4974
  projectId: Scalars["String"];
4975
+ /** The sort order for the project milestone within a project. */
4976
+ sortOrder?: Maybe<Scalars["Float"]>;
4971
4977
  /** The planned target date of the project milestone. */
4972
4978
  targetDate?: Maybe<Scalars["TimelessDate"]>;
4973
4979
  };
@@ -4993,6 +4999,8 @@ export declare type ProjectMilestoneUpdateInput = {
4993
4999
  name?: Maybe<Scalars["String"]>;
4994
5000
  /** Related project for the project milestone. */
4995
5001
  projectId?: Maybe<Scalars["String"]>;
5002
+ /** The sort order for the project milestone within a project. */
5003
+ sortOrder?: Maybe<Scalars["Float"]>;
4996
5004
  /** The planned target date of the project milestone. */
4997
5005
  targetDate?: Maybe<Scalars["TimelessDate"]>;
4998
5006
  };
@@ -5698,7 +5706,7 @@ export declare type QueryIssueSearchArgs = {
5698
5706
  includeArchived?: Maybe<Scalars["Boolean"]>;
5699
5707
  last?: Maybe<Scalars["Int"]>;
5700
5708
  orderBy?: Maybe<PaginationOrderBy>;
5701
- query: Scalars["String"];
5709
+ query?: Maybe<Scalars["String"]>;
5702
5710
  };
5703
5711
  export declare type QueryIssueVcsBranchSearchArgs = {
5704
5712
  branchName: Scalars["String"];
@@ -7530,7 +7538,7 @@ export declare type WebhookCreateInput = {
7530
7538
  label?: Maybe<Scalars["String"]>;
7531
7539
  /** List of resources the webhook should subscribe to. */
7532
7540
  resourceTypes: Array<Scalars["String"]>;
7533
- /** An optional secret token used to sign the webhook payload. */
7541
+ /** A secret token used to sign the webhook payload. */
7534
7542
  secret?: Maybe<Scalars["String"]>;
7535
7543
  /** The identifier or key of the team associated with the Webhook. */
7536
7544
  teamId?: Maybe<Scalars["String"]>;
@@ -7559,7 +7567,7 @@ export declare type WebhookUpdateInput = {
7559
7567
  label?: Maybe<Scalars["String"]>;
7560
7568
  /** List of resources the webhook should subscribe to. */
7561
7569
  resourceTypes?: Maybe<Array<Scalars["String"]>>;
7562
- /** An optional secret token used to sign the Webhook payload. */
7570
+ /** A secret token used to sign the webhook payload. */
7563
7571
  secret?: Maybe<Scalars["String"]>;
7564
7572
  /** The URL that will be called on data changes. */
7565
7573
  url?: Maybe<Scalars["String"]>;
@@ -8253,7 +8261,7 @@ export declare type OauthClientApprovalNotificationFragment = {
8253
8261
  };
8254
8262
  export declare type OrganizationFragment = {
8255
8263
  __typename: "Organization";
8256
- } & Pick<Organization, "allowedAuthServices" | "gitBranchFormat" | "userCount" | "createdIssueCount" | "previousUrlKeys" | "periodUploadVolume" | "projectUpdateRemindersHour" | "updatedAt" | "logoUrl" | "name" | "urlKey" | "deletionRequestedAt" | "archivedAt" | "createdAt" | "id" | "samlEnabled" | "scimEnabled" | "gitLinkbackMessagesEnabled" | "gitPublicLinkbackMessagesEnabled" | "roadmapEnabled"> & {
8264
+ } & Pick<Organization, "allowedAuthServices" | "gitBranchFormat" | "userCount" | "createdIssueCount" | "previousUrlKeys" | "periodUploadVolume" | "projectUpdateRemindersHour" | "updatedAt" | "logoUrl" | "name" | "urlKey" | "deletionRequestedAt" | "archivedAt" | "createdAt" | "trialEndsAt" | "id" | "samlEnabled" | "scimEnabled" | "gitLinkbackMessagesEnabled" | "gitPublicLinkbackMessagesEnabled" | "roadmapEnabled"> & {
8257
8265
  subscription?: Maybe<{
8258
8266
  __typename?: "PaidSubscription";
8259
8267
  } & PaidSubscriptionFragment>;
@@ -8435,7 +8443,7 @@ export declare type NotionSettingsFragment = {
8435
8443
  } & Pick<NotionSettings, "workspaceId" | "workspaceName">;
8436
8444
  export declare type OauthClientFragment = {
8437
8445
  __typename: "OauthClient";
8438
- } & Pick<OauthClient, "imageUrl" | "description" | "redirectUris" | "developer" | "clientId" | "name" | "clientSecret" | "updatedAt" | "webhookResourceTypes" | "archivedAt" | "createdAt" | "id" | "developerUrl" | "webhookUrl" | "publicEnabled"> & {
8446
+ } & Pick<OauthClient, "imageUrl" | "description" | "redirectUris" | "developer" | "clientId" | "name" | "clientSecret" | "updatedAt" | "webhookResourceTypes" | "archivedAt" | "createdAt" | "id" | "developerUrl" | "webhookUrl" | "webhookSecret" | "publicEnabled"> & {
8439
8447
  creator: {
8440
8448
  __typename?: "User";
8441
8449
  } & Pick<User, "id">;
@@ -8592,16 +8600,6 @@ export declare type AuditEntryFragment = {
8592
8600
  export declare type ZendeskSettingsFragment = {
8593
8601
  __typename: "ZendeskSettings";
8594
8602
  } & Pick<ZendeskSettings, "botUserId" | "url" | "subdomain" | "automateTicketReopeningOnComment" | "automateTicketReopeningOnCancellation" | "automateTicketReopeningOnCompletion" | "sendNoteOnStatusChange" | "sendNoteOnComment">;
8595
- export declare type AdminJobConfigurationPayloadFragment = {
8596
- __typename: "AdminJobConfigurationPayload";
8597
- } & Pick<AdminJobConfigurationPayload, "currentJob" | "delay" | "enabled" | "param">;
8598
- export declare type AdminJobStatusPayloadFragment = {
8599
- __typename: "AdminJobStatusPayload";
8600
- } & Pick<AdminJobStatusPayload, "availableJobs" | "cursor" | "startedAt"> & {
8601
- configuration: {
8602
- __typename?: "AdminJobConfigurationPayload";
8603
- } & AdminJobConfigurationPayloadFragment;
8604
- };
8605
8603
  export declare type ApiKeyConnectionFragment = {
8606
8604
  __typename: "ApiKeyConnection";
8607
8605
  } & {
@@ -9142,6 +9140,16 @@ export declare type NotificationSubscriptionPayloadFragment = {
9142
9140
  __typename?: "TeamNotificationSubscription";
9143
9141
  } & NotificationSubscription_TeamNotificationSubscription_Fragment);
9144
9142
  };
9143
+ export declare type OauthClientConnectionFragment = {
9144
+ __typename: "OauthClientConnection";
9145
+ } & {
9146
+ nodes: Array<{
9147
+ __typename?: "OauthClient";
9148
+ } & OauthClientFragment>;
9149
+ pageInfo: {
9150
+ __typename?: "PageInfo";
9151
+ } & PageInfoFragment;
9152
+ };
9145
9153
  export declare type OrganizationCancelDeletePayloadFragment = {
9146
9154
  __typename: "OrganizationCancelDeletePayload";
9147
9155
  } & Pick<OrganizationCancelDeletePayload, "success">;
@@ -10118,6 +10126,17 @@ export declare type IntegrationSlackImportEmojisMutation = {
10118
10126
  __typename?: "IntegrationPayload";
10119
10127
  } & IntegrationPayloadFragment;
10120
10128
  };
10129
+ export declare type IntegrationSlackIntakeMutationVariables = Exact<{
10130
+ code: Scalars["String"];
10131
+ redirectUri: Scalars["String"];
10132
+ }>;
10133
+ export declare type IntegrationSlackIntakeMutation = {
10134
+ __typename?: "Mutation";
10135
+ } & {
10136
+ integrationSlackIntake: {
10137
+ __typename?: "IntegrationPayload";
10138
+ } & IntegrationPayloadFragment;
10139
+ };
10121
10140
  export declare type IntegrationSlackOrgProjectUpdatesPostMutationVariables = Exact<{
10122
10141
  code: Scalars["String"];
10123
10142
  redirectUri: Scalars["String"];
@@ -13537,7 +13556,6 @@ export declare const OrganizationDomainFragmentDoc: DocumentNode<OrganizationDom
13537
13556
  export declare const GithubRepoFragmentDoc: DocumentNode<GithubRepoFragment, unknown>;
13538
13557
  export declare const GithubOrgFragmentDoc: DocumentNode<GithubOrgFragment, unknown>;
13539
13558
  export declare const GithubOAuthTokenPayloadFragmentDoc: DocumentNode<GithubOAuthTokenPayloadFragment, unknown>;
13540
- export declare const OauthClientFragmentDoc: DocumentNode<OauthClientFragment, unknown>;
13541
13559
  export declare const UserAuthorizedApplicationFragmentDoc: DocumentNode<UserAuthorizedApplicationFragment, unknown>;
13542
13560
  export declare const ApplicationFragmentDoc: DocumentNode<ApplicationFragment, unknown>;
13543
13561
  export declare const FrontSettingsFragmentDoc: DocumentNode<FrontSettingsFragment, unknown>;
@@ -13554,8 +13572,6 @@ export declare const ZendeskSettingsFragmentDoc: DocumentNode<ZendeskSettingsFra
13554
13572
  export declare const IntegrationSettingsFragmentDoc: DocumentNode<IntegrationSettingsFragment, unknown>;
13555
13573
  export declare const SamlConfigurationPayloadFragmentDoc: DocumentNode<SamlConfigurationPayloadFragment, unknown>;
13556
13574
  export declare const UserSettingsFragmentDoc: DocumentNode<UserSettingsFragment, unknown>;
13557
- export declare const AdminJobConfigurationPayloadFragmentDoc: DocumentNode<AdminJobConfigurationPayloadFragment, unknown>;
13558
- export declare const AdminJobStatusPayloadFragmentDoc: DocumentNode<AdminJobStatusPayloadFragment, unknown>;
13559
13575
  export declare const ApiKeyFragmentDoc: DocumentNode<ApiKeyFragment, unknown>;
13560
13576
  export declare const PageInfoFragmentDoc: DocumentNode<PageInfoFragment, unknown>;
13561
13577
  export declare const ApiKeyConnectionFragmentDoc: DocumentNode<ApiKeyConnectionFragment, unknown>;
@@ -13638,6 +13654,8 @@ export declare const NotificationPayloadFragmentDoc: DocumentNode<NotificationPa
13638
13654
  export declare const NotificationSubscriptionFragmentDoc: DocumentNode<NotificationSubscriptionFragment, unknown>;
13639
13655
  export declare const NotificationSubscriptionConnectionFragmentDoc: DocumentNode<NotificationSubscriptionConnectionFragment, unknown>;
13640
13656
  export declare const NotificationSubscriptionPayloadFragmentDoc: DocumentNode<NotificationSubscriptionPayloadFragment, unknown>;
13657
+ export declare const OauthClientFragmentDoc: DocumentNode<OauthClientFragment, unknown>;
13658
+ export declare const OauthClientConnectionFragmentDoc: DocumentNode<OauthClientConnectionFragment, unknown>;
13641
13659
  export declare const OrganizationCancelDeletePayloadFragmentDoc: DocumentNode<OrganizationCancelDeletePayloadFragment, unknown>;
13642
13660
  export declare const OrganizationDeletePayloadFragmentDoc: DocumentNode<OrganizationDeletePayloadFragment, unknown>;
13643
13661
  export declare const OrganizationExistsPayloadFragmentDoc: DocumentNode<OrganizationExistsPayloadFragment, unknown>;
@@ -13909,6 +13927,10 @@ export declare const IntegrationSlackImportEmojisDocument: DocumentNode<Integrat
13909
13927
  code: Scalars["String"];
13910
13928
  redirectUri: Scalars["String"];
13911
13929
  }>>;
13930
+ export declare const IntegrationSlackIntakeDocument: DocumentNode<IntegrationSlackIntakeMutation, Exact<{
13931
+ code: Scalars["String"];
13932
+ redirectUri: Scalars["String"];
13933
+ }>>;
13912
13934
  export declare const IntegrationSlackOrgProjectUpdatesPostDocument: DocumentNode<IntegrationSlackOrgProjectUpdatesPostMutation, Exact<{
13913
13935
  code: Scalars["String"];
13914
13936
  redirectUri: Scalars["String"];