@naturali/cli 0.204.2 → 0.206.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/dist/index.mjs +19 -5
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -17,7 +17,7 @@ var __exportAll = (all, no_symbols) => {
17
17
  };
18
18
  //#endregion
19
19
  //#region package.json
20
- var version = "0.204.2";
20
+ var version = "0.206.0";
21
21
  //#endregion
22
22
  //#region ../sdk/src/generated/core/bodySerializer.gen.ts
23
23
  const serializeFormDataPair = (data, key, value) => {
@@ -6221,7 +6221,7 @@ var Webhooks = class {
6221
6221
  * Create a webhook
6222
6222
  *
6223
6223
  * Register an endpoint and subscribe it to one or more event types.
6224
- * The response carries `secret` — the signing key, in plaintext. **This is the only time it is returned.** Store it where your receiver can read it; if you lose it, rotate rather than re-create, so the endpoint keeps its delivery history.
6224
+ * The response carries `secret` — the signing key, in plaintext. **This is the only time it is returned.** Store it where your receiver can read it; if you lose it, rotate rather than re-create, so the endpoint keeps its delivery history. Send `secret` yourself to sign with a key your receiver already holds; the response then returns that one.
6225
6225
  * A project holds at most 20 webhooks, inactive ones included; the 21st is refused with `409 webhook_limit_reached`.
6226
6226
  * Returns `501` on a deployment with no credential-sealing key configured, since the secret could not then be stored safely.
6227
6227
  *
@@ -6263,7 +6263,7 @@ var Webhooks = class {
6263
6263
  /**
6264
6264
  * Update a webhook
6265
6265
  *
6266
- * Change the destination, the subscription, the label, or whether deliveries are attempted at all. At least one field is required.
6266
+ * Change the destination, the subscription, the label, the signing secret or whether deliveries are attempted at all. At least one field is required. A `secret` sent here is never returned.
6267
6267
  * Setting `active: false` is the reversible half of `DELETE`: deliveries stop, the endpoint and its history stay. It is what to reach for while a receiver is being repaired.
6268
6268
  *
6269
6269
  */
@@ -23743,7 +23743,7 @@ const routes = {
23743
23743
  "create-webhook": {
23744
23744
  serviceClass: "Webhooks",
23745
23745
  operationId: "createWebhook",
23746
- description: "Register an endpoint and subscribe it to one or more event types. The response carries `secret` — the signing key, in plaintext. **This is the only time it is returned.** Store it where your receiver can read it; if you lose it, rotate rather than re-create, so the endpoint keeps its delivery history. A project holds at most 20 webhooks, inactive ones included; the 21st is refused with `409 webhook_limit_reached`. Returns `501` on a deployment with no credential-sealing key configured, since the secret could not then be stored safely.",
23746
+ description: "Register an endpoint and subscribe it to one or more event types. The response carries `secret` — the signing key, in plaintext. **This is the only time it is returned.** Store it where your receiver can read it; if you lose it, rotate rather than re-create, so the endpoint keeps its delivery history. Send `secret` yourself to sign with a key your receiver already holds; the response then returns that one. A project holds at most 20 webhooks, inactive ones included; the 21st is refused with `409 webhook_limit_reached`. Returns `501` on a deployment with no credential-sealing key configured, since the secret could not then be stored safely.",
23747
23747
  moduleDocsUrl: "https://naturali.ai/docs/modules/webhooks",
23748
23748
  httpMethod: "post",
23749
23749
  pathParams: ["project_id"],
@@ -23785,6 +23785,13 @@ const routes = {
23785
23785
  "required": false,
23786
23786
  "type": "boolean",
23787
23787
  "in": "body"
23788
+ },
23789
+ {
23790
+ "name": "secret",
23791
+ "description": "A signing key of your choosing, 32 to 256 characters with no whitespace. Omit it on create to have one generated.\n",
23792
+ "required": false,
23793
+ "type": "string",
23794
+ "in": "body"
23788
23795
  }
23789
23796
  ]
23790
23797
  },
@@ -23815,7 +23822,7 @@ const routes = {
23815
23822
  "update-webhook": {
23816
23823
  serviceClass: "Webhooks",
23817
23824
  operationId: "updateWebhook",
23818
- description: "Change the destination, the subscription, the label, or whether deliveries are attempted at all. At least one field is required. Setting `active: false` is the reversible half of `DELETE`: deliveries stop, the endpoint and its history stay. It is what to reach for while a receiver is being repaired.",
23825
+ description: "Change the destination, the subscription, the label, the signing secret or whether deliveries are attempted at all. At least one field is required. A `secret` sent here is never returned. Setting `active: false` is the reversible half of `DELETE`: deliveries stop, the endpoint and its history stay. It is what to reach for while a receiver is being repaired.",
23819
23826
  moduleDocsUrl: "https://naturali.ai/docs/modules/webhooks",
23820
23827
  httpMethod: "patch",
23821
23828
  pathParams: ["project_id", "webhook_id"],
@@ -23864,6 +23871,13 @@ const routes = {
23864
23871
  "required": false,
23865
23872
  "type": "boolean",
23866
23873
  "in": "body"
23874
+ },
23875
+ {
23876
+ "name": "secret",
23877
+ "description": "A signing key of your choosing, 32 to 256 characters with no whitespace. Omit it on create to have one generated.\n",
23878
+ "required": false,
23879
+ "type": "string",
23880
+ "in": "body"
23867
23881
  }
23868
23882
  ]
23869
23883
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturali/cli",
3
- "version": "0.204.2",
3
+ "version": "0.206.0",
4
4
  "description": "Command-line interface for the naturali.ai API, generated from its OpenAPI specs",
5
5
  "keywords": [
6
6
  "naturali",
@@ -31,7 +31,7 @@
31
31
  "yaml": "^2.9.1"
32
32
  },
33
33
  "devDependencies": {
34
- "@naturali/sdk": "0.204.2",
34
+ "@naturali/sdk": "0.206.0",
35
35
  "@ttoss/openapi-codegen": "^0.5.0",
36
36
  "@types/node": "^26.5.1",
37
37
  "tsdown": "^0.23.0",