@naturali/cli 0.148.0 → 0.150.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 +20 -3
  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.148.0";
20
+ var version = "0.150.0";
21
21
  //#endregion
22
22
  //#region ../sdk/src/generated/core/bodySerializer.gen.ts
23
23
  const serializeFormDataPair = (data, key, value) => {
@@ -1522,6 +1522,11 @@ var ApiKeys = class {
1522
1522
  */
1523
1523
  static createApiKey(options) {
1524
1524
  return (options.client ?? client).post({
1525
+ security: [{
1526
+ key: "bearerAuth",
1527
+ scheme: "bearer",
1528
+ type: "http"
1529
+ }],
1525
1530
  url: "/v1/api-keys",
1526
1531
  ...options,
1527
1532
  headers: {
@@ -1576,6 +1581,11 @@ var ApiKeys = class {
1576
1581
  */
1577
1582
  static rotateApiKey(options) {
1578
1583
  return (options.client ?? client).post({
1584
+ security: [{
1585
+ key: "bearerAuth",
1586
+ scheme: "bearer",
1587
+ type: "http"
1588
+ }],
1579
1589
  url: "/v1/api-keys/{api_key_id}:rotate",
1580
1590
  ...options
1581
1591
  });
@@ -3756,6 +3766,11 @@ var Orchestrations = class {
3756
3766
  static getQueueStats(options) {
3757
3767
  return (options.client ?? client).get({
3758
3768
  security: [{
3769
+ key: "bearerAuth",
3770
+ scheme: "bearer",
3771
+ type: "http"
3772
+ }, {
3773
+ key: "oauth2",
3759
3774
  scheme: "bearer",
3760
3775
  type: "http"
3761
3776
  }],
@@ -4961,6 +4976,7 @@ var Webhooks = class {
4961
4976
  *
4962
4977
  * Register an endpoint and subscribe it to one or more event types.
4963
4978
  * 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.
4979
+ * A project holds at most 20 webhooks, inactive ones included; the 21st is refused with `409 webhook_limit_reached`.
4964
4980
  * Returns `501` on a deployment with no credential-sealing key configured, since the secret could not then be stored safely.
4965
4981
  *
4966
4982
  */
@@ -5033,6 +5049,7 @@ var Webhooks = class {
5033
5049
  *
5034
5050
  * Every delivery attempted in the project, newest first — what was sent, where, how many times, and what came back. Filter by endpoint, by lifecycle status, or by event type.
5035
5051
  * Deliveries are per (event, endpoint): an event matching two subscribed endpoints produces two rows, retried and observed independently.
5052
+ * A `success` or `failed` delivery is deleted 30 days after it was created, and can no longer be read or redelivered. A `pending` one is kept until it settles.
5036
5053
  *
5037
5054
  */
5038
5055
  static listWebhookDeliveries(options) {
@@ -19128,7 +19145,7 @@ const routes = {
19128
19145
  "create-webhook": {
19129
19146
  serviceClass: "Webhooks",
19130
19147
  operationId: "createWebhook",
19131
- 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. Returns `501` on a deployment with no credential-sealing key configured, since the secret could not then be stored safely.",
19148
+ 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.",
19132
19149
  moduleDocsUrl: "https://docs.naturali.ai/docs/modules/webhooks",
19133
19150
  httpMethod: "post",
19134
19151
  pathParams: ["project_id"],
@@ -19303,7 +19320,7 @@ const routes = {
19303
19320
  "list-webhook-deliveries": {
19304
19321
  serviceClass: "Webhooks",
19305
19322
  operationId: "listWebhookDeliveries",
19306
- description: "Every delivery attempted in the project, newest first — what was sent, where, how many times, and what came back. Filter by endpoint, by lifecycle status, or by event type. Deliveries are per (event, endpoint): an event matching two subscribed endpoints produces two rows, retried and observed independently.",
19323
+ description: "Every delivery attempted in the project, newest first — what was sent, where, how many times, and what came back. Filter by endpoint, by lifecycle status, or by event type. Deliveries are per (event, endpoint): an event matching two subscribed endpoints produces two rows, retried and observed independently. A `success` or `failed` delivery is deleted 30 days after it was created, and can no longer be read or redelivered. A `pending` one is kept until it settles.",
19307
19324
  moduleDocsUrl: "https://docs.naturali.ai/docs/modules/webhooks",
19308
19325
  httpMethod: "get",
19309
19326
  pathParams: ["project_id"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturali/cli",
3
- "version": "0.148.0",
3
+ "version": "0.150.0",
4
4
  "description": "Command-line interface for the naturali.ai API, generated from its OpenAPI specs",
5
5
  "type": "module",
6
6
  "bin": {
@@ -25,7 +25,7 @@
25
25
  "yaml": "^2.9.1"
26
26
  },
27
27
  "devDependencies": {
28
- "@naturali/sdk": "0.148.0",
28
+ "@naturali/sdk": "0.150.0",
29
29
  "@ttoss/openapi-codegen": "^0.3.1",
30
30
  "@types/node": "^26.5.1",
31
31
  "tsdown": "^0.23.0",