@secondlayer/cli 10.3.1 → 10.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 +60 -58
- package/dist/cli.js +163 -154
- package/dist/cli.js.map +38 -38
- package/package.json +1 -1
- package/templates/subscriptions/cloudflare/README.md +2 -2
- package/templates/subscriptions/node/README.md +2 -2
- package/templates/subscriptions/node/src/index.ts +2 -2
- package/templates/subscriptions/trigger/README.md +2 -2
package/package.json
CHANGED
|
@@ -23,11 +23,11 @@ https://api.cloudflare.com/client/v4/accounts/{ACCOUNT_ID}/workflows/{{NAME}}/in
|
|
|
23
23
|
Provision the subscription with bearer auth:
|
|
24
24
|
|
|
25
25
|
```bash
|
|
26
|
-
|
|
26
|
+
secondlayer subscriptions create {{NAME}} --runtime cloudflare --auth-token <CF_API_TOKEN>
|
|
27
27
|
```
|
|
28
28
|
|
|
29
29
|
You can also patch an existing subscription with
|
|
30
|
-
`
|
|
30
|
+
`secondlayer subscriptions update {{NAME}} --auth-token <CF_API_TOKEN>`.
|
|
31
31
|
|
|
32
32
|
The token must have `Workflows: Edit` scope.
|
|
33
33
|
|
|
@@ -5,8 +5,8 @@ to your business logic. No framework lock-in.
|
|
|
5
5
|
|
|
6
6
|
## Run
|
|
7
7
|
|
|
8
|
-
`.env` is written for you at `
|
|
9
|
-
secret already populated. Lost it: `
|
|
8
|
+
`.env` is written for you at `secondlayer subscriptions create` time with the signing
|
|
9
|
+
secret already populated. Lost it: `secondlayer subscriptions rotate-secret {{NAME}}`.
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
12
|
bun install
|
|
@@ -4,8 +4,8 @@ import { Hono } from "hono";
|
|
|
4
4
|
/**
|
|
5
5
|
* Minimal Standard Webhooks receiver.
|
|
6
6
|
*
|
|
7
|
-
* The signing secret was shown ONCE when you ran `
|
|
8
|
-
* If you lost it:
|
|
7
|
+
* The signing secret was shown ONCE when you ran `secondlayer subscriptions create`.
|
|
8
|
+
* If you lost it: secondlayer subscriptions rotate-secret {{NAME}}
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
const SIGNING_SECRET = process.env.SIGNING_SECRET;
|
|
@@ -21,11 +21,11 @@ https://api.trigger.dev/api/v1/tasks/{{TASK_ID}}/trigger
|
|
|
21
21
|
Provision the subscription with bearer auth:
|
|
22
22
|
|
|
23
23
|
```bash
|
|
24
|
-
|
|
24
|
+
secondlayer subscriptions create {{NAME}} --runtime trigger --auth-token tr_secret_abc...
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
You can also patch an existing subscription with
|
|
28
|
-
`
|
|
28
|
+
`secondlayer subscriptions update {{NAME}} --auth-token tr_secret_abc...`.
|
|
29
29
|
|
|
30
30
|
## Signature verification
|
|
31
31
|
|