@naturali/sdk 0.212.3 → 0.212.4
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 +5 -2
- package/dist/index.d.cts +7 -3
- package/dist/index.d.mts +7 -3
- package/dist/index.mjs +5 -2
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -926,6 +926,9 @@ var Channels = class {
|
|
|
926
926
|
* number is read with the token first: `400 invalid_access_token` when
|
|
927
927
|
* Meta rejects the token, `400 phone_number_not_accessible` when it
|
|
928
928
|
* cannot reach that number, `502 meta_unavailable` when Meta fails.
|
|
929
|
+
* The token's app is then subscribed to the WABA Meta reports as the
|
|
930
|
+
* number's owner, which is the `waba_id` stored:
|
|
931
|
+
* `400 waba_not_manageable` when the token cannot subscribe to it.
|
|
929
932
|
*
|
|
930
933
|
* * **Embedded signup** (`credential_source: embedded_signup`) — supply
|
|
931
934
|
* `code` and `waba_id` from the Meta popup; naturali exchanges the
|
|
@@ -5693,7 +5696,7 @@ var Tools = class {
|
|
|
5693
5696
|
/**
|
|
5694
5697
|
* Create a tool
|
|
5695
5698
|
*
|
|
5696
|
-
* Creates a new tool in the project.
|
|
5699
|
+
* Creates a new tool in the project. A `{{secret:...}}` reference in `execute`, `mcp` or a pipeline step also needs `secrets:UseSecret` on that secret, else `403`.
|
|
5697
5700
|
*/
|
|
5698
5701
|
static createTool(options) {
|
|
5699
5702
|
return (options.client ?? client).post({
|
|
@@ -5731,7 +5734,7 @@ var Tools = class {
|
|
|
5731
5734
|
/**
|
|
5732
5735
|
* Update a tool
|
|
5733
5736
|
*
|
|
5734
|
-
* Updates an existing tool.
|
|
5737
|
+
* Updates an existing tool. A `{{secret:...}}` reference in `execute`, `mcp` or a pipeline step also needs `secrets:UseSecret` on that secret, else `403`.
|
|
5735
5738
|
*/
|
|
5736
5739
|
static updateTool(options) {
|
|
5737
5740
|
return (options.client ?? client).patch({
|
package/dist/index.d.cts
CHANGED
|
@@ -2717,7 +2717,8 @@ type ChannelCreate = {
|
|
|
2717
2717
|
*/
|
|
2718
2718
|
pin?: string;
|
|
2719
2719
|
/**
|
|
2720
|
-
* Required for `embedded_signup
|
|
2720
|
+
* Required for `embedded_signup`. Optional for `byot`, used only when Meta does not report the WABA that owns the number.
|
|
2721
|
+
*
|
|
2721
2722
|
*/
|
|
2722
2723
|
waba_id?: string;
|
|
2723
2724
|
/**
|
|
@@ -32671,6 +32672,9 @@ export declare class Channels {
|
|
|
32671
32672
|
* number is read with the token first: `400 invalid_access_token` when
|
|
32672
32673
|
* Meta rejects the token, `400 phone_number_not_accessible` when it
|
|
32673
32674
|
* cannot reach that number, `502 meta_unavailable` when Meta fails.
|
|
32675
|
+
* The token's app is then subscribed to the WABA Meta reports as the
|
|
32676
|
+
* number's owner, which is the `waba_id` stored:
|
|
32677
|
+
* `400 waba_not_manageable` when the token cannot subscribe to it.
|
|
32674
32678
|
*
|
|
32675
32679
|
* * **Embedded signup** (`credential_source: embedded_signup`) — supply
|
|
32676
32680
|
* `code` and `waba_id` from the Meta popup; naturali exchanges the
|
|
@@ -35157,7 +35161,7 @@ export declare class Tools {
|
|
|
35157
35161
|
/**
|
|
35158
35162
|
* Create a tool
|
|
35159
35163
|
*
|
|
35160
|
-
* Creates a new tool in the project.
|
|
35164
|
+
* Creates a new tool in the project. A `{{secret:...}}` reference in `execute`, `mcp` or a pipeline step also needs `secrets:UseSecret` on that secret, else `403`.
|
|
35161
35165
|
*/
|
|
35162
35166
|
static createTool<ThrowOnError extends boolean = false>(options: Options<CreateToolData, ThrowOnError>): RequestResult<CreateToolResponses, CreateToolErrors, ThrowOnError>;
|
|
35163
35167
|
/**
|
|
@@ -35176,7 +35180,7 @@ export declare class Tools {
|
|
|
35176
35180
|
/**
|
|
35177
35181
|
* Update a tool
|
|
35178
35182
|
*
|
|
35179
|
-
* Updates an existing tool.
|
|
35183
|
+
* Updates an existing tool. A `{{secret:...}}` reference in `execute`, `mcp` or a pipeline step also needs `secrets:UseSecret` on that secret, else `403`.
|
|
35180
35184
|
*/
|
|
35181
35185
|
static updateTool<ThrowOnError extends boolean = false>(options: Options<UpdateToolData, ThrowOnError>): RequestResult<UpdateToolResponses, UpdateToolErrors, ThrowOnError>;
|
|
35182
35186
|
/**
|
package/dist/index.d.mts
CHANGED
|
@@ -2717,7 +2717,8 @@ type ChannelCreate = {
|
|
|
2717
2717
|
*/
|
|
2718
2718
|
pin?: string;
|
|
2719
2719
|
/**
|
|
2720
|
-
* Required for `embedded_signup
|
|
2720
|
+
* Required for `embedded_signup`. Optional for `byot`, used only when Meta does not report the WABA that owns the number.
|
|
2721
|
+
*
|
|
2721
2722
|
*/
|
|
2722
2723
|
waba_id?: string;
|
|
2723
2724
|
/**
|
|
@@ -32671,6 +32672,9 @@ export declare class Channels {
|
|
|
32671
32672
|
* number is read with the token first: `400 invalid_access_token` when
|
|
32672
32673
|
* Meta rejects the token, `400 phone_number_not_accessible` when it
|
|
32673
32674
|
* cannot reach that number, `502 meta_unavailable` when Meta fails.
|
|
32675
|
+
* The token's app is then subscribed to the WABA Meta reports as the
|
|
32676
|
+
* number's owner, which is the `waba_id` stored:
|
|
32677
|
+
* `400 waba_not_manageable` when the token cannot subscribe to it.
|
|
32674
32678
|
*
|
|
32675
32679
|
* * **Embedded signup** (`credential_source: embedded_signup`) — supply
|
|
32676
32680
|
* `code` and `waba_id` from the Meta popup; naturali exchanges the
|
|
@@ -35157,7 +35161,7 @@ export declare class Tools {
|
|
|
35157
35161
|
/**
|
|
35158
35162
|
* Create a tool
|
|
35159
35163
|
*
|
|
35160
|
-
* Creates a new tool in the project.
|
|
35164
|
+
* Creates a new tool in the project. A `{{secret:...}}` reference in `execute`, `mcp` or a pipeline step also needs `secrets:UseSecret` on that secret, else `403`.
|
|
35161
35165
|
*/
|
|
35162
35166
|
static createTool<ThrowOnError extends boolean = false>(options: Options<CreateToolData, ThrowOnError>): RequestResult<CreateToolResponses, CreateToolErrors, ThrowOnError>;
|
|
35163
35167
|
/**
|
|
@@ -35176,7 +35180,7 @@ export declare class Tools {
|
|
|
35176
35180
|
/**
|
|
35177
35181
|
* Update a tool
|
|
35178
35182
|
*
|
|
35179
|
-
* Updates an existing tool.
|
|
35183
|
+
* Updates an existing tool. A `{{secret:...}}` reference in `execute`, `mcp` or a pipeline step also needs `secrets:UseSecret` on that secret, else `403`.
|
|
35180
35184
|
*/
|
|
35181
35185
|
static updateTool<ThrowOnError extends boolean = false>(options: Options<UpdateToolData, ThrowOnError>): RequestResult<UpdateToolResponses, UpdateToolErrors, ThrowOnError>;
|
|
35182
35186
|
/**
|
package/dist/index.mjs
CHANGED
|
@@ -925,6 +925,9 @@ var Channels = class {
|
|
|
925
925
|
* number is read with the token first: `400 invalid_access_token` when
|
|
926
926
|
* Meta rejects the token, `400 phone_number_not_accessible` when it
|
|
927
927
|
* cannot reach that number, `502 meta_unavailable` when Meta fails.
|
|
928
|
+
* The token's app is then subscribed to the WABA Meta reports as the
|
|
929
|
+
* number's owner, which is the `waba_id` stored:
|
|
930
|
+
* `400 waba_not_manageable` when the token cannot subscribe to it.
|
|
928
931
|
*
|
|
929
932
|
* * **Embedded signup** (`credential_source: embedded_signup`) — supply
|
|
930
933
|
* `code` and `waba_id` from the Meta popup; naturali exchanges the
|
|
@@ -5692,7 +5695,7 @@ var Tools = class {
|
|
|
5692
5695
|
/**
|
|
5693
5696
|
* Create a tool
|
|
5694
5697
|
*
|
|
5695
|
-
* Creates a new tool in the project.
|
|
5698
|
+
* Creates a new tool in the project. A `{{secret:...}}` reference in `execute`, `mcp` or a pipeline step also needs `secrets:UseSecret` on that secret, else `403`.
|
|
5696
5699
|
*/
|
|
5697
5700
|
static createTool(options) {
|
|
5698
5701
|
return (options.client ?? client).post({
|
|
@@ -5730,7 +5733,7 @@ var Tools = class {
|
|
|
5730
5733
|
/**
|
|
5731
5734
|
* Update a tool
|
|
5732
5735
|
*
|
|
5733
|
-
* Updates an existing tool.
|
|
5736
|
+
* Updates an existing tool. A `{{secret:...}}` reference in `execute`, `mcp` or a pipeline step also needs `secrets:UseSecret` on that secret, else `403`.
|
|
5734
5737
|
*/
|
|
5735
5738
|
static updateTool(options) {
|
|
5736
5739
|
return (options.client ?? client).patch({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/sdk",
|
|
3
|
-
"version": "0.212.
|
|
3
|
+
"version": "0.212.4",
|
|
4
4
|
"description": "TypeScript SDK for the naturali.ai API, generated from its OpenAPI specs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"naturali",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@hey-api/openapi-ts": "^0.99.0",
|
|
41
|
-
"@naturali/api": "0.212.
|
|
41
|
+
"@naturali/api": "0.212.4",
|
|
42
42
|
"@ttoss/openapi-codegen": "^0.10.0",
|
|
43
43
|
"@types/node": "^26.5.1",
|
|
44
44
|
"tsdown": "^0.23.0",
|