@linear/sdk 2.4.0 → 2.5.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,39 @@
1
1
  # Change Log
2
2
 
3
+ ## 2.5.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 08697ed: feat(schema): [breaking] Type 'AdminJobConfiguration' was removed (AdminJobConfiguration)
8
+
9
+ feat(schema): [breaking] Type 'AdminJobConfigurationPayload' was removed (AdminJobConfigurationPayload)
10
+
11
+ feat(schema): [breaking] Type 'AdminJobStatusPayload' was removed (AdminJobStatusPayload)
12
+
13
+ feat(schema): [dangerous] Input field 'slaBreachesAt' was added to input object type 'IssueCreateInput' (IssueCreateInput.slaBreachesAt)
14
+
15
+ feat(schema): [dangerous] Input field 'sortOrder' was added to input object type 'ProjectMilestoneCreateInput' (ProjectMilestoneCreateInput.sortOrder)
16
+
17
+ feat(schema): [dangerous] Input field 'sortOrder' was added to input object type 'ProjectMilestoneUpdateInput' (ProjectMilestoneUpdateInput.sortOrder)
18
+
19
+ feat(schema): [non_breaking] Type 'OauthClientConnection' was added (OauthClientConnection)
20
+
21
+ feat(schema): [non_breaking] Type 'OauthClientEdge' was added (OauthClientEdge)
22
+
23
+ feat(schema): [non_breaking] Field 'integrationSlackIntake' was added to object type 'Mutation' (Mutation.integrationSlackIntake)
24
+
25
+ feat(schema): [non_breaking] Field 'webhookSecret' was added to object type 'OauthClient' (OauthClient.webhookSecret)
26
+
27
+ 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)
28
+
29
+ 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)
30
+
31
+ - e9e1c69: Add new Webhooks helper class
32
+
33
+ ### Patch Changes
34
+
35
+ - 5ab451c: chore(deps): update dependency patch versions
36
+
3
37
  ## 2.4.0
4
38
 
5
39
  ### 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"]>;
@@ -4968,6 +4970,8 @@ export declare type ProjectMilestoneCreateInput = {
4968
4970
  name: Scalars["String"];
4969
4971
  /** Related project for the project milestone. */
4970
4972
  projectId: Scalars["String"];
4973
+ /** The sort order for the project milestone within a project. */
4974
+ sortOrder?: Maybe<Scalars["Float"]>;
4971
4975
  /** The planned target date of the project milestone. */
4972
4976
  targetDate?: Maybe<Scalars["TimelessDate"]>;
4973
4977
  };
@@ -4993,6 +4997,8 @@ export declare type ProjectMilestoneUpdateInput = {
4993
4997
  name?: Maybe<Scalars["String"]>;
4994
4998
  /** Related project for the project milestone. */
4995
4999
  projectId?: Maybe<Scalars["String"]>;
5000
+ /** The sort order for the project milestone within a project. */
5001
+ sortOrder?: Maybe<Scalars["Float"]>;
4996
5002
  /** The planned target date of the project milestone. */
4997
5003
  targetDate?: Maybe<Scalars["TimelessDate"]>;
4998
5004
  };
@@ -7530,7 +7536,7 @@ export declare type WebhookCreateInput = {
7530
7536
  label?: Maybe<Scalars["String"]>;
7531
7537
  /** List of resources the webhook should subscribe to. */
7532
7538
  resourceTypes: Array<Scalars["String"]>;
7533
- /** An optional secret token used to sign the webhook payload. */
7539
+ /** A secret token used to sign the webhook payload. */
7534
7540
  secret?: Maybe<Scalars["String"]>;
7535
7541
  /** The identifier or key of the team associated with the Webhook. */
7536
7542
  teamId?: Maybe<Scalars["String"]>;
@@ -7559,7 +7565,7 @@ export declare type WebhookUpdateInput = {
7559
7565
  label?: Maybe<Scalars["String"]>;
7560
7566
  /** List of resources the webhook should subscribe to. */
7561
7567
  resourceTypes?: Maybe<Array<Scalars["String"]>>;
7562
- /** An optional secret token used to sign the Webhook payload. */
7568
+ /** A secret token used to sign the webhook payload. */
7563
7569
  secret?: Maybe<Scalars["String"]>;
7564
7570
  /** The URL that will be called on data changes. */
7565
7571
  url?: Maybe<Scalars["String"]>;
@@ -8435,7 +8441,7 @@ export declare type NotionSettingsFragment = {
8435
8441
  } & Pick<NotionSettings, "workspaceId" | "workspaceName">;
8436
8442
  export declare type OauthClientFragment = {
8437
8443
  __typename: "OauthClient";
8438
- } & Pick<OauthClient, "imageUrl" | "description" | "redirectUris" | "developer" | "clientId" | "name" | "clientSecret" | "updatedAt" | "webhookResourceTypes" | "archivedAt" | "createdAt" | "id" | "developerUrl" | "webhookUrl" | "publicEnabled"> & {
8444
+ } & Pick<OauthClient, "imageUrl" | "description" | "redirectUris" | "developer" | "clientId" | "name" | "clientSecret" | "updatedAt" | "webhookResourceTypes" | "archivedAt" | "createdAt" | "id" | "developerUrl" | "webhookUrl" | "webhookSecret" | "publicEnabled"> & {
8439
8445
  creator: {
8440
8446
  __typename?: "User";
8441
8447
  } & Pick<User, "id">;
@@ -8592,16 +8598,6 @@ export declare type AuditEntryFragment = {
8592
8598
  export declare type ZendeskSettingsFragment = {
8593
8599
  __typename: "ZendeskSettings";
8594
8600
  } & 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
8601
  export declare type ApiKeyConnectionFragment = {
8606
8602
  __typename: "ApiKeyConnection";
8607
8603
  } & {
@@ -9142,6 +9138,16 @@ export declare type NotificationSubscriptionPayloadFragment = {
9142
9138
  __typename?: "TeamNotificationSubscription";
9143
9139
  } & NotificationSubscription_TeamNotificationSubscription_Fragment);
9144
9140
  };
9141
+ export declare type OauthClientConnectionFragment = {
9142
+ __typename: "OauthClientConnection";
9143
+ } & {
9144
+ nodes: Array<{
9145
+ __typename?: "OauthClient";
9146
+ } & OauthClientFragment>;
9147
+ pageInfo: {
9148
+ __typename?: "PageInfo";
9149
+ } & PageInfoFragment;
9150
+ };
9145
9151
  export declare type OrganizationCancelDeletePayloadFragment = {
9146
9152
  __typename: "OrganizationCancelDeletePayload";
9147
9153
  } & Pick<OrganizationCancelDeletePayload, "success">;
@@ -10118,6 +10124,17 @@ export declare type IntegrationSlackImportEmojisMutation = {
10118
10124
  __typename?: "IntegrationPayload";
10119
10125
  } & IntegrationPayloadFragment;
10120
10126
  };
10127
+ export declare type IntegrationSlackIntakeMutationVariables = Exact<{
10128
+ code: Scalars["String"];
10129
+ redirectUri: Scalars["String"];
10130
+ }>;
10131
+ export declare type IntegrationSlackIntakeMutation = {
10132
+ __typename?: "Mutation";
10133
+ } & {
10134
+ integrationSlackIntake: {
10135
+ __typename?: "IntegrationPayload";
10136
+ } & IntegrationPayloadFragment;
10137
+ };
10121
10138
  export declare type IntegrationSlackOrgProjectUpdatesPostMutationVariables = Exact<{
10122
10139
  code: Scalars["String"];
10123
10140
  redirectUri: Scalars["String"];
@@ -13537,7 +13554,6 @@ export declare const OrganizationDomainFragmentDoc: DocumentNode<OrganizationDom
13537
13554
  export declare const GithubRepoFragmentDoc: DocumentNode<GithubRepoFragment, unknown>;
13538
13555
  export declare const GithubOrgFragmentDoc: DocumentNode<GithubOrgFragment, unknown>;
13539
13556
  export declare const GithubOAuthTokenPayloadFragmentDoc: DocumentNode<GithubOAuthTokenPayloadFragment, unknown>;
13540
- export declare const OauthClientFragmentDoc: DocumentNode<OauthClientFragment, unknown>;
13541
13557
  export declare const UserAuthorizedApplicationFragmentDoc: DocumentNode<UserAuthorizedApplicationFragment, unknown>;
13542
13558
  export declare const ApplicationFragmentDoc: DocumentNode<ApplicationFragment, unknown>;
13543
13559
  export declare const FrontSettingsFragmentDoc: DocumentNode<FrontSettingsFragment, unknown>;
@@ -13554,8 +13570,6 @@ export declare const ZendeskSettingsFragmentDoc: DocumentNode<ZendeskSettingsFra
13554
13570
  export declare const IntegrationSettingsFragmentDoc: DocumentNode<IntegrationSettingsFragment, unknown>;
13555
13571
  export declare const SamlConfigurationPayloadFragmentDoc: DocumentNode<SamlConfigurationPayloadFragment, unknown>;
13556
13572
  export declare const UserSettingsFragmentDoc: DocumentNode<UserSettingsFragment, unknown>;
13557
- export declare const AdminJobConfigurationPayloadFragmentDoc: DocumentNode<AdminJobConfigurationPayloadFragment, unknown>;
13558
- export declare const AdminJobStatusPayloadFragmentDoc: DocumentNode<AdminJobStatusPayloadFragment, unknown>;
13559
13573
  export declare const ApiKeyFragmentDoc: DocumentNode<ApiKeyFragment, unknown>;
13560
13574
  export declare const PageInfoFragmentDoc: DocumentNode<PageInfoFragment, unknown>;
13561
13575
  export declare const ApiKeyConnectionFragmentDoc: DocumentNode<ApiKeyConnectionFragment, unknown>;
@@ -13638,6 +13652,8 @@ export declare const NotificationPayloadFragmentDoc: DocumentNode<NotificationPa
13638
13652
  export declare const NotificationSubscriptionFragmentDoc: DocumentNode<NotificationSubscriptionFragment, unknown>;
13639
13653
  export declare const NotificationSubscriptionConnectionFragmentDoc: DocumentNode<NotificationSubscriptionConnectionFragment, unknown>;
13640
13654
  export declare const NotificationSubscriptionPayloadFragmentDoc: DocumentNode<NotificationSubscriptionPayloadFragment, unknown>;
13655
+ export declare const OauthClientFragmentDoc: DocumentNode<OauthClientFragment, unknown>;
13656
+ export declare const OauthClientConnectionFragmentDoc: DocumentNode<OauthClientConnectionFragment, unknown>;
13641
13657
  export declare const OrganizationCancelDeletePayloadFragmentDoc: DocumentNode<OrganizationCancelDeletePayloadFragment, unknown>;
13642
13658
  export declare const OrganizationDeletePayloadFragmentDoc: DocumentNode<OrganizationDeletePayloadFragment, unknown>;
13643
13659
  export declare const OrganizationExistsPayloadFragmentDoc: DocumentNode<OrganizationExistsPayloadFragment, unknown>;
@@ -13909,6 +13925,10 @@ export declare const IntegrationSlackImportEmojisDocument: DocumentNode<Integrat
13909
13925
  code: Scalars["String"];
13910
13926
  redirectUri: Scalars["String"];
13911
13927
  }>>;
13928
+ export declare const IntegrationSlackIntakeDocument: DocumentNode<IntegrationSlackIntakeMutation, Exact<{
13929
+ code: Scalars["String"];
13930
+ redirectUri: Scalars["String"];
13931
+ }>>;
13912
13932
  export declare const IntegrationSlackOrgProjectUpdatesPostDocument: DocumentNode<IntegrationSlackOrgProjectUpdatesPostMutation, Exact<{
13913
13933
  code: Scalars["String"];
13914
13934
  redirectUri: Scalars["String"];