From bb0922a17412181e1855f8c17ae9ec584a1e9ca7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 28 Oct 2024 19:29:24 +0000 Subject: [PATCH 1/2] feat(deps): bump the seam group across 1 directory with 3 updates Bumps the seam group with 3 updates in the / directory: [@seamapi/http](https://github.com/seamapi/javascript-http), [@seamapi/types](https://github.com/seamapi/types) and [@seamapi/webhook](https://github.com/seamapi/javascript-webhook). Updates `@seamapi/http` from 1.11.1 to 1.12.0 - [Release notes](https://github.com/seamapi/javascript-http/releases) - [Changelog](https://github.com/seamapi/javascript-http/blob/main/.releaserc.json) - [Commits](https://github.com/seamapi/javascript-http/compare/v1.11.1...v1.12.0) Updates `@seamapi/types` from 1.264.2 to 1.278.0 - [Release notes](https://github.com/seamapi/types/releases) - [Changelog](https://github.com/seamapi/types/blob/main/.releaserc.json) - [Commits](https://github.com/seamapi/types/compare/v1.264.2...v1.278.0) Updates `@seamapi/webhook` from 1.1.0 to 1.1.1 - [Release notes](https://github.com/seamapi/javascript-webhook/releases) - [Changelog](https://github.com/seamapi/javascript-webhook/blob/main/.releaserc.json) - [Commits](https://github.com/seamapi/javascript-webhook/compare/v1.1.0...v1.1.1) --- updated-dependencies: - dependency-name: "@seamapi/http" dependency-type: direct:production update-type: version-update:semver-minor dependency-group: seam - dependency-name: "@seamapi/types" dependency-type: direct:production update-type: version-update:semver-minor dependency-group: seam - dependency-name: "@seamapi/webhook" dependency-type: direct:production update-type: version-update:semver-patch dependency-group: seam ... Signed-off-by: dependabot[bot] --- package-lock.json | 26 +++++++++++++------------- package.json | 6 +++--- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/package-lock.json b/package-lock.json index 38cf6ad..7bfe48f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,9 +9,9 @@ "version": "1.31.0", "license": "MIT", "dependencies": { - "@seamapi/http": "1.11.1", - "@seamapi/types": "1.264.2", - "@seamapi/webhook": "1.1.0", + "@seamapi/http": "1.12.0", + "@seamapi/types": "1.278.0", + "@seamapi/webhook": "1.1.1", "zod": "^3.21.4" }, "devDependencies": { @@ -1052,9 +1052,9 @@ ] }, "node_modules/@seamapi/http": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@seamapi/http/-/http-1.11.1.tgz", - "integrity": "sha512-eYzDzZqrbDCRnMQOQtyGw6nd0SF4YdvizpCpIYDWMgM5MvVRL04Sv56CAC2SatRXVFbajLbldZpnTfSkLRpRug==", + "version": "1.12.0", + "resolved": "https://registry.npmjs.org/@seamapi/http/-/http-1.12.0.tgz", + "integrity": "sha512-YMYojjRDPuE5YJhQ/jGfhqfSOMC6s18Rf1FHb98kg7jEvR+29Wsw4eilcHCzxLb1YBzEw6QWeczkP2Gkx9e0qw==", "dependencies": { "@seamapi/url-search-params-serializer": "^1.1.0", "axios": "^1.5.0", @@ -1066,7 +1066,7 @@ "npm": ">= 9.0.0" }, "peerDependencies": { - "@seamapi/types": "^1.264.2" + "@seamapi/types": "^1.275.0" }, "peerDependenciesMeta": { "@seamapi/types": { @@ -1075,9 +1075,9 @@ } }, "node_modules/@seamapi/types": { - "version": "1.264.2", - "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.264.2.tgz", - "integrity": "sha512-PJzQEN1TVmJ9rCIbgC/0R6iG0uc+/vlHzspknnxF5O5QzuH/pv+YN0vRFkF9WxTMo99lDjIPr6myEnlvAsX1WQ==", + "version": "1.278.0", + "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.278.0.tgz", + "integrity": "sha512-/57v7oyyoB9egtf4UycZapnCrJiofycyPDScfW3eNf3tPlxuu+G7q7briFYW+AknT/TR5n7bjuV8NP9Mbuw5QQ==", "engines": { "node": ">=18.12.0", "npm": ">= 9.0.0" @@ -1096,9 +1096,9 @@ } }, "node_modules/@seamapi/webhook": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@seamapi/webhook/-/webhook-1.1.0.tgz", - "integrity": "sha512-goRhC8vH6boSFftlHAlOyOSdeJqV0RTgYZGAoHDt+hEMWy6ifr7uwFlFQy6row8QHsLp+ulpE2UehF/BnHGQtQ==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@seamapi/webhook/-/webhook-1.1.1.tgz", + "integrity": "sha512-ngfypLTbQ8aYSLYUpsgmJz7ZtrQ0/aTC1D8os2oh0VpDIY5kHNpwlNt/pr7rpEeW9TUQChG+yxR2HoxMDT3jmA==", "dependencies": { "svix": "^1.15.0" }, diff --git a/package.json b/package.json index 2bf966b..206c5cd 100644 --- a/package.json +++ b/package.json @@ -65,9 +65,9 @@ "npm": ">= 9.0.0" }, "dependencies": { - "@seamapi/http": "1.11.1", - "@seamapi/types": "1.264.2", - "@seamapi/webhook": "1.1.0", + "@seamapi/http": "1.12.0", + "@seamapi/types": "1.278.0", + "@seamapi/webhook": "1.1.1", "zod": "^3.21.4" }, "devDependencies": { From c30bcd69fb575bccae31cdfa5d480f1fc3a770ce Mon Sep 17 00:00:00 2001 From: Seam Bot Date: Mon, 28 Oct 2024 19:29:48 +0000 Subject: [PATCH 2/2] ci: Generate code --- README.md | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 7a5b471..5455ce0 100644 --- a/README.md +++ b/README.md @@ -442,11 +442,16 @@ const devices = await request.execute() ### Receiving Webhooks -First, create a webhook using the Seam API or Seam Console -and obtain a Seam webhook secret. +The Seam API implements webhooks using [Svix](https://www.svix.com). +This SDK exports a thin wrapper `SeamWebhook` around the svix package. +Use it to parse and validate [Seam webhook events](https://docs.seam.co/latest/developer-tools/webhooks). + +Refer to the [Svix docs on Consuming Webhooks](https://docs.svix.com/receiving/introduction) +for an in-depth guide on best-practices for handling webhooks in your application. > [!TIP] -> This example is for [Express], see the [Svix docs for more examples in specific frameworks](https://docs.svix.com/receiving/verifying-payloads/how). +> This example is for [Express](https://expressjs.com/), +> see the [Svix docs for more examples in specific frameworks](https://docs.svix.com/receiving/verifying-payloads/how). ```js import { env } from 'node:process' @@ -488,8 +493,6 @@ app.listen(8080, () => { }) ``` -[Express]: https://expressjs.com/ - ## Development and Testing ### Quickstart