@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/dist/index.d.ts CHANGED
@@ -5,4 +5,5 @@ export * from "./graphql-client";
5
5
  export * from "./types";
6
6
  export * as LinearDocument from "./_generated_documents";
7
7
  export * from "./_generated_sdk";
8
+ export * from "./webhooks";
8
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,kBAAkB,CAAC;AACjC,cAAc,SAAS,CAAC;AACxB,OAAO,KAAK,cAAc,MAAM,wBAAwB,CAAC;AACzD,cAAc,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,kBAAkB,CAAC;AACjC,cAAc,SAAS,CAAC;AACxB,OAAO,KAAK,cAAc,MAAM,wBAAwB,CAAC;AACzD,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC"}
@@ -0,0 +1,18 @@
1
+ /// <reference types="node" />
2
+ export declare const LINEAR_WEBHOOK_SIGNATURE_HEADER = "linear-signature";
3
+ export declare const LINEAR_WEBHOOK_TS_FIELD = "webhookTimestamp";
4
+ /**
5
+ * Provides helper functions to work with Linear webhooks
6
+ */
7
+ export declare class LinearWebhooks {
8
+ private secret;
9
+ constructor(secret: string);
10
+ /**
11
+ * Verify the webhook signature
12
+ * @param rawBody The webhook request raw body.
13
+ * @param signature The signature to verify.
14
+ * @param timestamp The `webhookTimestamp` field from the request parsed body.
15
+ */
16
+ verify(rawBody: Buffer, signature: string, timestamp: number): boolean;
17
+ }
18
+ //# sourceMappingURL=webhooks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webhooks.d.ts","sourceRoot":"","sources":["../src/webhooks.ts"],"names":[],"mappings":";AAEA,eAAO,MAAM,+BAA+B,qBAAqB,CAAC;AAClE,eAAO,MAAM,uBAAuB,qBAAqB,CAAC;AAE1D;;GAEG;AACH,qBAAa,cAAc;IACN,OAAO,CAAC,MAAM;gBAAN,MAAM,EAAE,MAAM;IAEzC;;;;;OAKG;IACI,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO;CAoB9E"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@linear/sdk",
3
3
  "description": "The Linear Client SDK for interacting with the Linear GraphQL API",
4
- "version": "2.4.0",
4
+ "version": "2.5.0",
5
5
  "author": "Linear Orbit, Inc",
6
6
  "license": "MIT",
7
7
  "main": "dist/index-cjs.min.js",