@naturali/sdk 0.93.0 → 0.94.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 +6 -0
- package/dist/index.d.cts +11 -0
- package/dist/index.d.mts +11 -0
- package/dist/index.mjs +6 -0
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -903,6 +903,9 @@ var Channels = class {
|
|
|
903
903
|
* the WABA, so the customer never hands over a token. Returns `501` on
|
|
904
904
|
* deployments where Meta App credentials are not configured.
|
|
905
905
|
*
|
|
906
|
+
*
|
|
907
|
+
* The project's plan limits how many channels it may hold. At the limit this responds `403` with `plan_limit_reached`, whose `details` carry the `plan` and the `limit`, before any credential is acquired. Only `active` channels count, so disabling one frees allowance without deleting it.
|
|
908
|
+
*
|
|
906
909
|
*/
|
|
907
910
|
static createChannel(options) {
|
|
908
911
|
return (options.client ?? client).post({
|
|
@@ -3425,6 +3428,9 @@ var Projects = class {
|
|
|
3425
3428
|
* Create a project
|
|
3426
3429
|
*
|
|
3427
3430
|
* Creates a project (one per client or per environment).
|
|
3431
|
+
*
|
|
3432
|
+
* Your plan limits how many projects you may own. At the limit this responds `403` with `plan_limit_reached`, whose `details` carry the `plan` and the `limit`. An archived project still counts — archiving keeps every resource, so it frees nothing; deleting a project does.
|
|
3433
|
+
*
|
|
3428
3434
|
*/
|
|
3429
3435
|
static createProject(options) {
|
|
3430
3436
|
return (options.client ?? client).post({
|
package/dist/index.d.cts
CHANGED
|
@@ -15644,6 +15644,11 @@ type CreateProjectErrors = {
|
|
|
15644
15644
|
* Missing or invalid credentials.
|
|
15645
15645
|
*/
|
|
15646
15646
|
401: ErrorResponse;
|
|
15647
|
+
/**
|
|
15648
|
+
* The caller's role in the project does not carry this action, or the credential is scoped to a different project.
|
|
15649
|
+
*
|
|
15650
|
+
*/
|
|
15651
|
+
403: ErrorResponse;
|
|
15647
15652
|
};
|
|
15648
15653
|
type CreateProjectError = CreateProjectErrors[keyof CreateProjectErrors];
|
|
15649
15654
|
type CreateProjectResponses = {
|
|
@@ -18770,6 +18775,9 @@ declare class Channels {
|
|
|
18770
18775
|
* the WABA, so the customer never hands over a token. Returns `501` on
|
|
18771
18776
|
* deployments where Meta App credentials are not configured.
|
|
18772
18777
|
*
|
|
18778
|
+
*
|
|
18779
|
+
* The project's plan limits how many channels it may hold. At the limit this responds `403` with `plan_limit_reached`, whose `details` carry the `plan` and the `limit`, before any credential is acquired. Only `active` channels count, so disabling one frees allowance without deleting it.
|
|
18780
|
+
*
|
|
18773
18781
|
*/
|
|
18774
18782
|
static createChannel<ThrowOnError extends boolean = false>(options: Options<CreateChannelData, ThrowOnError>): RequestResult<CreateChannelResponses, CreateChannelErrors, ThrowOnError>;
|
|
18775
18783
|
/**
|
|
@@ -20074,6 +20082,9 @@ declare class Projects {
|
|
|
20074
20082
|
* Create a project
|
|
20075
20083
|
*
|
|
20076
20084
|
* Creates a project (one per client or per environment).
|
|
20085
|
+
*
|
|
20086
|
+
* Your plan limits how many projects you may own. At the limit this responds `403` with `plan_limit_reached`, whose `details` carry the `plan` and the `limit`. An archived project still counts — archiving keeps every resource, so it frees nothing; deleting a project does.
|
|
20087
|
+
*
|
|
20077
20088
|
*/
|
|
20078
20089
|
static createProject<ThrowOnError extends boolean = false>(options: Options<CreateProjectData, ThrowOnError>): RequestResult<CreateProjectResponses, CreateProjectErrors, ThrowOnError>;
|
|
20079
20090
|
/**
|
package/dist/index.d.mts
CHANGED
|
@@ -15644,6 +15644,11 @@ type CreateProjectErrors = {
|
|
|
15644
15644
|
* Missing or invalid credentials.
|
|
15645
15645
|
*/
|
|
15646
15646
|
401: ErrorResponse;
|
|
15647
|
+
/**
|
|
15648
|
+
* The caller's role in the project does not carry this action, or the credential is scoped to a different project.
|
|
15649
|
+
*
|
|
15650
|
+
*/
|
|
15651
|
+
403: ErrorResponse;
|
|
15647
15652
|
};
|
|
15648
15653
|
type CreateProjectError = CreateProjectErrors[keyof CreateProjectErrors];
|
|
15649
15654
|
type CreateProjectResponses = {
|
|
@@ -18770,6 +18775,9 @@ declare class Channels {
|
|
|
18770
18775
|
* the WABA, so the customer never hands over a token. Returns `501` on
|
|
18771
18776
|
* deployments where Meta App credentials are not configured.
|
|
18772
18777
|
*
|
|
18778
|
+
*
|
|
18779
|
+
* The project's plan limits how many channels it may hold. At the limit this responds `403` with `plan_limit_reached`, whose `details` carry the `plan` and the `limit`, before any credential is acquired. Only `active` channels count, so disabling one frees allowance without deleting it.
|
|
18780
|
+
*
|
|
18773
18781
|
*/
|
|
18774
18782
|
static createChannel<ThrowOnError extends boolean = false>(options: Options<CreateChannelData, ThrowOnError>): RequestResult<CreateChannelResponses, CreateChannelErrors, ThrowOnError>;
|
|
18775
18783
|
/**
|
|
@@ -20074,6 +20082,9 @@ declare class Projects {
|
|
|
20074
20082
|
* Create a project
|
|
20075
20083
|
*
|
|
20076
20084
|
* Creates a project (one per client or per environment).
|
|
20085
|
+
*
|
|
20086
|
+
* Your plan limits how many projects you may own. At the limit this responds `403` with `plan_limit_reached`, whose `details` carry the `plan` and the `limit`. An archived project still counts — archiving keeps every resource, so it frees nothing; deleting a project does.
|
|
20087
|
+
*
|
|
20077
20088
|
*/
|
|
20078
20089
|
static createProject<ThrowOnError extends boolean = false>(options: Options<CreateProjectData, ThrowOnError>): RequestResult<CreateProjectResponses, CreateProjectErrors, ThrowOnError>;
|
|
20079
20090
|
/**
|
package/dist/index.mjs
CHANGED
|
@@ -902,6 +902,9 @@ var Channels = class {
|
|
|
902
902
|
* the WABA, so the customer never hands over a token. Returns `501` on
|
|
903
903
|
* deployments where Meta App credentials are not configured.
|
|
904
904
|
*
|
|
905
|
+
*
|
|
906
|
+
* The project's plan limits how many channels it may hold. At the limit this responds `403` with `plan_limit_reached`, whose `details` carry the `plan` and the `limit`, before any credential is acquired. Only `active` channels count, so disabling one frees allowance without deleting it.
|
|
907
|
+
*
|
|
905
908
|
*/
|
|
906
909
|
static createChannel(options) {
|
|
907
910
|
return (options.client ?? client).post({
|
|
@@ -3424,6 +3427,9 @@ var Projects = class {
|
|
|
3424
3427
|
* Create a project
|
|
3425
3428
|
*
|
|
3426
3429
|
* Creates a project (one per client or per environment).
|
|
3430
|
+
*
|
|
3431
|
+
* Your plan limits how many projects you may own. At the limit this responds `403` with `plan_limit_reached`, whose `details` carry the `plan` and the `limit`. An archived project still counts — archiving keeps every resource, so it frees nothing; deleting a project does.
|
|
3432
|
+
*
|
|
3427
3433
|
*/
|
|
3428
3434
|
static createProject(options) {
|
|
3429
3435
|
return (options.client ?? client).post({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.94.0",
|
|
4
4
|
"description": "TypeScript SDK for the naturali.ai API, generated from its OpenAPI specs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"tsx": "^4.23.1",
|
|
38
38
|
"typescript": "~6.0.3",
|
|
39
39
|
"vitest": "^4.1.10",
|
|
40
|
-
"@naturali/api": "0.
|
|
40
|
+
"@naturali/api": "0.94.0"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|
|
43
43
|
"generate": "tsx scripts/generate.ts",
|