@naturali/sdk 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.
- package/dist/index.cjs +17 -0
- package/dist/index.d.cts +7 -0
- package/dist/index.d.mts +7 -0
- package/dist/index.mjs +17 -0
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1502,6 +1502,11 @@ var ApiKeys = class {
|
|
|
1502
1502
|
*/
|
|
1503
1503
|
static createApiKey(options) {
|
|
1504
1504
|
return (options.client ?? client).post({
|
|
1505
|
+
security: [{
|
|
1506
|
+
key: "bearerAuth",
|
|
1507
|
+
scheme: "bearer",
|
|
1508
|
+
type: "http"
|
|
1509
|
+
}],
|
|
1505
1510
|
url: "/v1/api-keys",
|
|
1506
1511
|
...options,
|
|
1507
1512
|
headers: {
|
|
@@ -1556,6 +1561,11 @@ var ApiKeys = class {
|
|
|
1556
1561
|
*/
|
|
1557
1562
|
static rotateApiKey(options) {
|
|
1558
1563
|
return (options.client ?? client).post({
|
|
1564
|
+
security: [{
|
|
1565
|
+
key: "bearerAuth",
|
|
1566
|
+
scheme: "bearer",
|
|
1567
|
+
type: "http"
|
|
1568
|
+
}],
|
|
1559
1569
|
url: "/v1/api-keys/{api_key_id}:rotate",
|
|
1560
1570
|
...options
|
|
1561
1571
|
});
|
|
@@ -3736,6 +3746,11 @@ var Orchestrations = class {
|
|
|
3736
3746
|
static getQueueStats(options) {
|
|
3737
3747
|
return (options.client ?? client).get({
|
|
3738
3748
|
security: [{
|
|
3749
|
+
key: "bearerAuth",
|
|
3750
|
+
scheme: "bearer",
|
|
3751
|
+
type: "http"
|
|
3752
|
+
}, {
|
|
3753
|
+
key: "oauth2",
|
|
3739
3754
|
scheme: "bearer",
|
|
3740
3755
|
type: "http"
|
|
3741
3756
|
}],
|
|
@@ -4941,6 +4956,7 @@ var Webhooks = class {
|
|
|
4941
4956
|
*
|
|
4942
4957
|
* Register an endpoint and subscribe it to one or more event types.
|
|
4943
4958
|
* 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.
|
|
4959
|
+
* A project holds at most 20 webhooks, inactive ones included; the 21st is refused with `409 webhook_limit_reached`.
|
|
4944
4960
|
* Returns `501` on a deployment with no credential-sealing key configured, since the secret could not then be stored safely.
|
|
4945
4961
|
*
|
|
4946
4962
|
*/
|
|
@@ -5013,6 +5029,7 @@ var Webhooks = class {
|
|
|
5013
5029
|
*
|
|
5014
5030
|
* 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
5031
|
* Deliveries are per (event, endpoint): an event matching two subscribed endpoints produces two rows, retried and observed independently.
|
|
5032
|
+
* 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
5033
|
*
|
|
5017
5034
|
*/
|
|
5018
5035
|
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
|
@@ -1501,6 +1501,11 @@ var ApiKeys = class {
|
|
|
1501
1501
|
*/
|
|
1502
1502
|
static createApiKey(options) {
|
|
1503
1503
|
return (options.client ?? client).post({
|
|
1504
|
+
security: [{
|
|
1505
|
+
key: "bearerAuth",
|
|
1506
|
+
scheme: "bearer",
|
|
1507
|
+
type: "http"
|
|
1508
|
+
}],
|
|
1504
1509
|
url: "/v1/api-keys",
|
|
1505
1510
|
...options,
|
|
1506
1511
|
headers: {
|
|
@@ -1555,6 +1560,11 @@ var ApiKeys = class {
|
|
|
1555
1560
|
*/
|
|
1556
1561
|
static rotateApiKey(options) {
|
|
1557
1562
|
return (options.client ?? client).post({
|
|
1563
|
+
security: [{
|
|
1564
|
+
key: "bearerAuth",
|
|
1565
|
+
scheme: "bearer",
|
|
1566
|
+
type: "http"
|
|
1567
|
+
}],
|
|
1558
1568
|
url: "/v1/api-keys/{api_key_id}:rotate",
|
|
1559
1569
|
...options
|
|
1560
1570
|
});
|
|
@@ -3735,6 +3745,11 @@ var Orchestrations = class {
|
|
|
3735
3745
|
static getQueueStats(options) {
|
|
3736
3746
|
return (options.client ?? client).get({
|
|
3737
3747
|
security: [{
|
|
3748
|
+
key: "bearerAuth",
|
|
3749
|
+
scheme: "bearer",
|
|
3750
|
+
type: "http"
|
|
3751
|
+
}, {
|
|
3752
|
+
key: "oauth2",
|
|
3738
3753
|
scheme: "bearer",
|
|
3739
3754
|
type: "http"
|
|
3740
3755
|
}],
|
|
@@ -4940,6 +4955,7 @@ var Webhooks = class {
|
|
|
4940
4955
|
*
|
|
4941
4956
|
* Register an endpoint and subscribe it to one or more event types.
|
|
4942
4957
|
* 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.
|
|
4958
|
+
* A project holds at most 20 webhooks, inactive ones included; the 21st is refused with `409 webhook_limit_reached`.
|
|
4943
4959
|
* Returns `501` on a deployment with no credential-sealing key configured, since the secret could not then be stored safely.
|
|
4944
4960
|
*
|
|
4945
4961
|
*/
|
|
@@ -5012,6 +5028,7 @@ var Webhooks = class {
|
|
|
5012
5028
|
*
|
|
5013
5029
|
* 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
5030
|
* Deliveries are per (event, endpoint): an event matching two subscribed endpoints produces two rows, retried and observed independently.
|
|
5031
|
+
* 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
5032
|
*
|
|
5016
5033
|
*/
|
|
5017
5034
|
static listWebhookDeliveries(options) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.150.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.
|
|
34
|
+
"@naturali/api": "0.150.0",
|
|
35
35
|
"@ttoss/openapi-codegen": "^0.3.1",
|
|
36
36
|
"@types/node": "^26.5.1",
|
|
37
37
|
"tsdown": "^0.23.0",
|