@exayard/sdk 0.3.0 → 0.3.2
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/README.md +1 -1
- package/dist/_generated/operations.d.ts +495 -495
- package/dist/_generated/operations.d.ts.map +1 -1
- package/dist/_generated/operations.js +246 -246
- package/dist/webhooks.d.ts +2 -2
- package/dist/webhooks.js +2 -2
- package/package.json +1 -1
package/dist/webhooks.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Webhook signature verification
|
|
2
|
+
* Webhook signature verification, in the same pattern Stripe uses.
|
|
3
3
|
*
|
|
4
4
|
* Exayard signs every delivery (and `exayard listen` signs every forwarded event the same way) with:
|
|
5
5
|
* Exayard-Signature: t=<unix seconds>,v1=<base64 HMAC-SHA256>
|
|
6
6
|
*
|
|
7
7
|
* where the signed payload is `${t}.${rawBody}` and the HMAC key is the UTF-8 bytes of the whole whsec_... secret,
|
|
8
|
-
* returned once when the endpoint (or listener) was created
|
|
8
|
+
* returned once when the endpoint (or listener) was created.
|
|
9
9
|
*
|
|
10
10
|
* import { Exayard } from '@exayard/sdk'
|
|
11
11
|
* const event = await exa.webhooks.constructEvent(rawBody, request.headers.get('Exayard-Signature')!, process.env.EXAYARD_WEBHOOK_SECRET!)
|
package/dist/webhooks.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Webhook signature verification
|
|
3
|
+
* Webhook signature verification, in the same pattern Stripe uses.
|
|
4
4
|
*
|
|
5
5
|
* Exayard signs every delivery (and `exayard listen` signs every forwarded event the same way) with:
|
|
6
6
|
* Exayard-Signature: t=<unix seconds>,v1=<base64 HMAC-SHA256>
|
|
7
7
|
*
|
|
8
8
|
* where the signed payload is `${t}.${rawBody}` and the HMAC key is the UTF-8 bytes of the whole whsec_... secret,
|
|
9
|
-
* returned once when the endpoint (or listener) was created
|
|
9
|
+
* returned once when the endpoint (or listener) was created.
|
|
10
10
|
*
|
|
11
11
|
* import { Exayard } from '@exayard/sdk'
|
|
12
12
|
* const event = await exa.webhooks.constructEvent(rawBody, request.headers.get('Exayard-Signature')!, process.env.EXAYARD_WEBHOOK_SECRET!)
|