seam 1.30.0 → 1.32.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.
Files changed (2) hide show
  1. package/README.md +8 -5
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -442,11 +442,16 @@ const devices = await request.execute()
442
442
 
443
443
  ### Receiving Webhooks
444
444
 
445
- First, create a webhook using the Seam API or Seam Console
446
- and obtain a Seam webhook secret.
445
+ The Seam API implements webhooks using [Svix](https://www.svix.com).
446
+ This SDK exports a thin wrapper `SeamWebhook` around the svix package.
447
+ Use it to parse and validate [Seam webhook events](https://docs.seam.co/latest/developer-tools/webhooks).
448
+
449
+ Refer to the [Svix docs on Consuming Webhooks](https://docs.svix.com/receiving/introduction)
450
+ for an in-depth guide on best-practices for handling webhooks in your application.
447
451
 
448
452
  > [!TIP]
449
- > This example is for [Express], see the [Svix docs for more examples in specific frameworks](https://docs.svix.com/receiving/verifying-payloads/how).
453
+ > This example is for [Express](https://expressjs.com/),
454
+ > see the [Svix docs for more examples in specific frameworks](https://docs.svix.com/receiving/verifying-payloads/how).
450
455
 
451
456
  ```js
452
457
  import { env } from 'node:process'
@@ -488,8 +493,6 @@ app.listen(8080, () => {
488
493
  })
489
494
  ```
490
495
 
491
- [Express]: https://expressjs.com/
492
-
493
496
  ## Development and Testing
494
497
 
495
498
  ### Quickstart
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "seam",
3
- "version": "1.30.0",
3
+ "version": "1.32.0",
4
4
  "description": "JavaScript SDK for the Seam API written in TypeScript.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -65,9 +65,9 @@
65
65
  "npm": ">= 9.0.0"
66
66
  },
67
67
  "dependencies": {
68
- "@seamapi/http": "1.11.0",
69
- "@seamapi/types": "1.264.2",
70
- "@seamapi/webhook": "1.1.0",
68
+ "@seamapi/http": "1.13.0",
69
+ "@seamapi/types": "1.287.1",
70
+ "@seamapi/webhook": "1.1.1",
71
71
  "zod": "^3.21.4"
72
72
  },
73
73
  "devDependencies": {