@naturali/sdk 0.148.0 → 0.149.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.
package/dist/index.cjs CHANGED
@@ -4941,6 +4941,7 @@ var Webhooks = class {
4941
4941
  *
4942
4942
  * Register an endpoint and subscribe it to one or more event types.
4943
4943
  * 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.
4944
+ * A project holds at most 20 webhooks, inactive ones included; the 21st is refused with `409 webhook_limit_reached`.
4944
4945
  * Returns `501` on a deployment with no credential-sealing key configured, since the secret could not then be stored safely.
4945
4946
  *
4946
4947
  */
@@ -5013,6 +5014,7 @@ var Webhooks = class {
5013
5014
  *
5014
5015
  * 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.
5015
5016
  * Deliveries are per (event, endpoint): an event matching two subscribed endpoints produces two rows, retried and observed independently.
5017
+ * 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.
5016
5018
  *
5017
5019
  */
5018
5020
  static listWebhookDeliveries(options) {
package/dist/index.d.cts CHANGED
@@ -21748,6 +21748,11 @@ type CreateWebhookErrors = {
21748
21748
  * The resource does not exist (existence is not leaked).
21749
21749
  */
21750
21750
  404: ErrorResponse;
21751
+ /**
21752
+ * The project already holds 20 webhooks (`webhook_limit_reached`); `details.limit` carries the ceiling.
21753
+ *
21754
+ */
21755
+ 409: ErrorResponse;
21751
21756
  /**
21752
21757
  * The requested path is not enabled on this deployment (e.g. embedded signup before Meta App credentials are configured, or a Discord channel before `CHANNEL_TOKEN_KEY` is set).
21753
21758
  *
@@ -24647,6 +24652,7 @@ export declare class Webhooks {
24647
24652
  *
24648
24653
  * Register an endpoint and subscribe it to one or more event types.
24649
24654
  * 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.
24655
+ * A project holds at most 20 webhooks, inactive ones included; the 21st is refused with `409 webhook_limit_reached`.
24650
24656
  * Returns `501` on a deployment with no credential-sealing key configured, since the secret could not then be stored safely.
24651
24657
  *
24652
24658
  */
@@ -24686,6 +24692,7 @@ export declare class Webhooks {
24686
24692
  *
24687
24693
  * 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.
24688
24694
  * Deliveries are per (event, endpoint): an event matching two subscribed endpoints produces two rows, retried and observed independently.
24695
+ * 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.
24689
24696
  *
24690
24697
  */
24691
24698
  static listWebhookDeliveries<ThrowOnError extends boolean = false>(options: Options<ListWebhookDeliveriesData, ThrowOnError>): RequestResult<ListWebhookDeliveriesResponses, ListWebhookDeliveriesErrors, ThrowOnError>;
package/dist/index.d.mts CHANGED
@@ -21748,6 +21748,11 @@ type CreateWebhookErrors = {
21748
21748
  * The resource does not exist (existence is not leaked).
21749
21749
  */
21750
21750
  404: ErrorResponse;
21751
+ /**
21752
+ * The project already holds 20 webhooks (`webhook_limit_reached`); `details.limit` carries the ceiling.
21753
+ *
21754
+ */
21755
+ 409: ErrorResponse;
21751
21756
  /**
21752
21757
  * The requested path is not enabled on this deployment (e.g. embedded signup before Meta App credentials are configured, or a Discord channel before `CHANNEL_TOKEN_KEY` is set).
21753
21758
  *
@@ -24647,6 +24652,7 @@ export declare class Webhooks {
24647
24652
  *
24648
24653
  * Register an endpoint and subscribe it to one or more event types.
24649
24654
  * 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.
24655
+ * A project holds at most 20 webhooks, inactive ones included; the 21st is refused with `409 webhook_limit_reached`.
24650
24656
  * Returns `501` on a deployment with no credential-sealing key configured, since the secret could not then be stored safely.
24651
24657
  *
24652
24658
  */
@@ -24686,6 +24692,7 @@ export declare class Webhooks {
24686
24692
  *
24687
24693
  * 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.
24688
24694
  * Deliveries are per (event, endpoint): an event matching two subscribed endpoints produces two rows, retried and observed independently.
24695
+ * 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.
24689
24696
  *
24690
24697
  */
24691
24698
  static listWebhookDeliveries<ThrowOnError extends boolean = false>(options: Options<ListWebhookDeliveriesData, ThrowOnError>): RequestResult<ListWebhookDeliveriesResponses, ListWebhookDeliveriesErrors, ThrowOnError>;
package/dist/index.mjs CHANGED
@@ -4940,6 +4940,7 @@ var Webhooks = class {
4940
4940
  *
4941
4941
  * Register an endpoint and subscribe it to one or more event types.
4942
4942
  * 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.
4943
+ * A project holds at most 20 webhooks, inactive ones included; the 21st is refused with `409 webhook_limit_reached`.
4943
4944
  * Returns `501` on a deployment with no credential-sealing key configured, since the secret could not then be stored safely.
4944
4945
  *
4945
4946
  */
@@ -5012,6 +5013,7 @@ var Webhooks = class {
5012
5013
  *
5013
5014
  * 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.
5014
5015
  * Deliveries are per (event, endpoint): an event matching two subscribed endpoints produces two rows, retried and observed independently.
5016
+ * 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.
5015
5017
  *
5016
5018
  */
5017
5019
  static listWebhookDeliveries(options) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturali/sdk",
3
- "version": "0.148.0",
3
+ "version": "0.149.0",
4
4
  "description": "TypeScript SDK for the naturali.ai API, generated from its OpenAPI specs",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -31,7 +31,7 @@
31
31
  },
32
32
  "devDependencies": {
33
33
  "@hey-api/openapi-ts": "^0.99.0",
34
- "@naturali/api": "0.148.0",
34
+ "@naturali/api": "0.149.0",
35
35
  "@ttoss/openapi-codegen": "^0.3.1",
36
36
  "@types/node": "^26.5.1",
37
37
  "tsdown": "^0.23.0",