kenso 0.1.89 → 0.1.90
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/kenso.js +3 -3
- package/dist/operations.json +1 -1
- package/docs/reference.md +10 -4
- package/docs/sandbox.md +1 -1
- package/package.json +2 -2
package/dist/kenso.js
CHANGED
|
@@ -2477,7 +2477,7 @@ var VERSION;
|
|
|
2477
2477
|
var init_version = __esm({
|
|
2478
2478
|
"src/core/version.ts"() {
|
|
2479
2479
|
"use strict";
|
|
2480
|
-
VERSION = true ? "0.1.
|
|
2480
|
+
VERSION = true ? "0.1.90" : "0.0.0-dev";
|
|
2481
2481
|
}
|
|
2482
2482
|
});
|
|
2483
2483
|
|
|
@@ -7816,7 +7816,7 @@ var init_README = __esm({
|
|
|
7816
7816
|
var sandbox_default;
|
|
7817
7817
|
var init_sandbox = __esm({
|
|
7818
7818
|
"docs/sandbox.md"() {
|
|
7819
|
-
sandbox_default = '# Developer sandbox\n\nA developer sandbox is a Kenso workspace of your own for building and testing an integration. It starts with example campaigns, contacts, inboxes and conversation threads, and everything in it is simulated: sends, orders and charges never reach a provider. Nothing leaves Kenso. Campaigns still plan and send in the sandbox, your webhook endpoints still receive its events, and a few reserved test addresses answer like real leads would.\n\nYou work in it with a test key: `kenso_test_` and 49 letters and digits. A test key works only in its sandbox, and only on `Ken-Version: 1.1` routes, which is what `kenso` sends: every other workspace answers 404, and a request without that version, or to a route that has no 1.1 form, answers 403. You have one sandbox at most.\n\nThis is not the cloud sandbox a coding agent runs in (`kenso work run`, see `kenso docs agents`).\n\nSandboxes are in beta: the commands work in workspaces where Kenso has turned them on.\n\n## Commands\n\nThe sandbox commands run with your live key, in your current workspace. Run with a test key, they stop before sending anything.\n\n| Command | What it does |\n|---|---|\n| `sandbox create` | Creates your sandbox and its first test key, and saves the key as the profile `sandbox` |\n| `sandbox list` | Lists your sandbox |\n| `sandbox reset [sandboxId]` | Deletes everything in the sandbox and seeds it again. Test keys and webhook endpoints stay |\n| `sandbox key [sandboxId]` | Creates another test key (5 active at most) and saves it as the profile `sandbox` |\n| `sandbox delete [sandboxId]` | Deletes the sandbox and revokes its test keys, then removes the profile `sandbox` |\n\nWithout an id, `reset`, `key` and `delete` use your one sandbox. `delete` asks first on a terminal; in a script or an agent it needs `--yes`, and `--dry-run` prints the request it would send.\n\n## Quick start\n\n```bash\nkenso sandbox create\n```\n\nIt prints the sandbox and its test key once, as JSON:\n\n```json\n{"sandboxId":20417,"name":"Sandbox (you@acme.com)","status":"ready","seed":{"campaigns":2,"contacts":25,"inboxes":2,"threads":4},"testKey":{"id":"apk_...","prefix":"kenso_test_AbCdE","secret":"kenso_test_...","expiresAt":"2027-02-13T18:00:00Z"},"profile":"sandbox"}\n```\n\nThe key is saved as the profile `sandbox`, and your active profile stays the live one. Add `--profile sandbox` to run any command in the sandbox:\n\n```bash\nkenso campaigns list --profile sandbox\nkenso auth status --profile sandbox\n```\n\n`KENSO_API_KEY` and `KENSO_WORKSPACE_ID` win over every profile, `--profile sandbox` included: while either is set, a command does not use the test key and its sandbox. Unset them, or set `KENSO_API_KEY=<the test key> KENSO_WORKSPACE_ID=<sandboxId>` to work in the sandbox. `sandbox create` and `sandbox key` warn when they are set, and `auth status` when they override the profile.\n\n`auth status` says `"keyKind":"test"` and names the sandbox. A test key expires after 90 days: `kenso sandbox key` makes a new one and saves it over the old one in the profile. To start over, `kenso sandbox reset`. When you are done, `kenso sandbox delete --yes`.\n\nYour code can use the same key without the CLI: send it as `Authorization: Bearer <key>` and the sandbox id as `X-Ken-Workspace-Id`.\n\n## Reserved test leads\n\nAdd a lead with one of these addresses to a sandbox campaign and launch it. After its simulated send, the lead gets that outcome. A `+label` before the `@` is ignored, so `replied-interested+signup@test.ken.so` works too.\n\n| Address | Outcome in a sandbox |\n|---|---|\n| `replied-interested@test.ken.so` | A reply classified Interested |\n| `bounced@test.ken.so` | A hard bounce |\n| `ooo@test.ken.so` | An out-of-office auto reply |\n| `unsubscribed@test.ken.so` | An unsubscribe |\n\nAny other address gets a simulated send and nothing after it.\n';
|
|
7819
|
+
sandbox_default = '# Developer sandbox\n\nA developer sandbox is a Kenso workspace of your own for building and testing an integration. It starts with example campaigns, contacts, inboxes and conversation threads, and everything in it is simulated: sends, orders and charges never reach a provider. Nothing leaves Kenso. Campaigns still plan and send in the sandbox, your webhook endpoints still receive its events, and a few reserved test addresses answer like real leads would.\n\nYou work in it with a test key: `kenso_test_` and 49 letters and digits. A test key works only in its sandbox, and only on `Ken-Version: 1.1` routes, which is what `kenso` sends: every other workspace answers 404, and a request without that version, or to a route that has no 1.1 form, answers 403. You have one sandbox at most.\n\nThis is not the cloud sandbox a coding agent runs in (`kenso work run`, see `kenso docs agents`).\n\nSandboxes are in beta: the commands work in workspaces where Kenso has turned them on.\n\n## Commands\n\nThe sandbox commands run with your live key, in your current workspace. Run with a test key, they stop before sending anything.\n\n| Command | What it does |\n|---|---|\n| `sandbox create` | Creates your sandbox and its first test key, and saves the key as the profile `sandbox` |\n| `sandbox list` | Lists your sandbox |\n| `sandbox reset [sandboxId]` | Deletes everything in the sandbox and seeds it again. Test keys and webhook endpoints stay |\n| `sandbox key [sandboxId]` | Creates another test key (5 active at most) and saves it as the profile `sandbox` |\n| `sandbox delete [sandboxId]` | Deletes the sandbox with its webhook endpoints and their delivery history, and revokes its test keys, then removes the profile `sandbox` |\n\nWithout an id, `reset`, `key` and `delete` use your one sandbox. `delete` asks first on a terminal; in a script or an agent it needs `--yes`, and `--dry-run` prints the request it would send.\n\n## Quick start\n\n```bash\nkenso sandbox create\n```\n\nIt prints the sandbox and its test key once, as JSON:\n\n```json\n{"sandboxId":20417,"name":"Sandbox (you@acme.com)","status":"ready","seed":{"campaigns":2,"contacts":25,"inboxes":2,"threads":4},"testKey":{"id":"apk_...","prefix":"kenso_test_AbCdE","secret":"kenso_test_...","expiresAt":"2027-02-13T18:00:00Z"},"profile":"sandbox"}\n```\n\nThe key is saved as the profile `sandbox`, and your active profile stays the live one. Add `--profile sandbox` to run any command in the sandbox:\n\n```bash\nkenso campaigns list --profile sandbox\nkenso auth status --profile sandbox\n```\n\n`KENSO_API_KEY` and `KENSO_WORKSPACE_ID` win over every profile, `--profile sandbox` included: while either is set, a command does not use the test key and its sandbox. Unset them, or set `KENSO_API_KEY=<the test key> KENSO_WORKSPACE_ID=<sandboxId>` to work in the sandbox. `sandbox create` and `sandbox key` warn when they are set, and `auth status` when they override the profile.\n\n`auth status` says `"keyKind":"test"` and names the sandbox. A test key expires after 90 days: `kenso sandbox key` makes a new one and saves it over the old one in the profile. To start over, `kenso sandbox reset`. When you are done, `kenso sandbox delete --yes`.\n\nYour code can use the same key without the CLI: send it as `Authorization: Bearer <key>` and the sandbox id as `X-Ken-Workspace-Id`.\n\n## Reserved test leads\n\nAdd a lead with one of these addresses to a sandbox campaign and launch it. After its simulated send, the lead gets that outcome. A `+label` before the `@` is ignored, so `replied-interested+signup@test.ken.so` works too.\n\n| Address | Outcome in a sandbox |\n|---|---|\n| `replied-interested@test.ken.so` | A reply classified Interested |\n| `bounced@test.ken.so` | A hard bounce |\n| `ooo@test.ken.so` | An out-of-office auto reply |\n| `unsubscribed@test.ken.so` | An unsubscribe |\n\nAny other address gets a simulated send and nothing after it.\n';
|
|
7820
7820
|
}
|
|
7821
7821
|
});
|
|
7822
7822
|
|
|
@@ -13710,7 +13710,7 @@ var init_delete = __esm({
|
|
|
13710
13710
|
resource: "sandbox",
|
|
13711
13711
|
action: "delete",
|
|
13712
13712
|
summary: "Delete your sandbox and its test keys",
|
|
13713
|
-
description: `Calls DELETE /v1/sandboxes/{sandboxId} with your live key: the sandbox's data
|
|
13713
|
+
description: `Calls DELETE /v1/sandboxes/{sandboxId} with your live key: the sandbox's data, its webhook endpoints and their delivery history are gone for good and its test keys are revoked. Then removes the profile "${SANDBOX_PROFILE}" when it holds this sandbox. Without an id it deletes your one sandbox. It asks first on a terminal; anywhere else it needs --yes.`,
|
|
13714
13714
|
flags: {},
|
|
13715
13715
|
positionals: [SANDBOX_ID_POSITIONAL],
|
|
13716
13716
|
examples: ["kenso sandbox delete --dry-run", "kenso sandbox delete 20417 --yes"],
|