@naturali/cli 0.212.2 → 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.mjs +11 -8
- 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.212.
|
|
20
|
+
var version = "0.212.4";
|
|
21
21
|
//#endregion
|
|
22
22
|
//#region ../sdk/src/generated/core/bodySerializer.gen.ts
|
|
23
23
|
const serializeFormDataPair = (data, key, value) => {
|
|
@@ -939,13 +939,16 @@ var Channels = class {
|
|
|
939
939
|
* Connect a channel
|
|
940
940
|
*
|
|
941
941
|
* Connect a channel. The required fields depend on `channel`; no credential is ever returned.
|
|
942
|
-
* **Discord** (`channel: discord`) — supply `application_id` and `bot_token`, plus the `modes` selecting which Gateway flows to serve (direct messages, and/or @mention-opens-a-thread). The token is checked with Discord first: `400 invalid_bot_token` when Discord rejects it, `400 application_mismatch` when it belongs to another application. Returns `501` when this deployment does not enable Discord channels.
|
|
942
|
+
* **Discord** (`channel: discord`) — supply `application_id` and `bot_token`, plus the `modes` selecting which Gateway flows to serve (direct messages, and/or @mention-opens-a-thread). The token is checked with Discord first: `400 invalid_bot_token` when Discord rejects it, `400 application_mismatch` when it belongs to another application, `502 discord_unavailable` when Discord cannot be read. Returns `501` when this deployment does not enable Discord channels.
|
|
943
943
|
* **WhatsApp** (default) — one of two credential paths, both filling the same write-only secret:
|
|
944
944
|
* * **BYOT** (`credential_source: byot`, default) — supply
|
|
945
945
|
* `phone_number_id` and `access_token` from your own Meta app. The
|
|
946
946
|
* number is read with the token first: `400 invalid_access_token` when
|
|
947
947
|
* Meta rejects the token, `400 phone_number_not_accessible` when it
|
|
948
948
|
* cannot reach that number, `502 meta_unavailable` when Meta fails.
|
|
949
|
+
* The token's app is then subscribed to the WABA Meta reports as the
|
|
950
|
+
* number's owner, which is the `waba_id` stored:
|
|
951
|
+
* `400 waba_not_manageable` when the token cannot subscribe to it.
|
|
949
952
|
*
|
|
950
953
|
* * **Embedded signup** (`credential_source: embedded_signup`) — supply
|
|
951
954
|
* `code` and `waba_id` from the Meta popup; naturali exchanges the
|
|
@@ -5713,7 +5716,7 @@ var Tools = class {
|
|
|
5713
5716
|
/**
|
|
5714
5717
|
* Create a tool
|
|
5715
5718
|
*
|
|
5716
|
-
* Creates a new tool in the project.
|
|
5719
|
+
* 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`.
|
|
5717
5720
|
*/
|
|
5718
5721
|
static createTool(options) {
|
|
5719
5722
|
return (options.client ?? client).post({
|
|
@@ -5751,7 +5754,7 @@ var Tools = class {
|
|
|
5751
5754
|
/**
|
|
5752
5755
|
* Update a tool
|
|
5753
5756
|
*
|
|
5754
|
-
* Updates an existing tool.
|
|
5757
|
+
* Updates an existing tool. A `{{secret:...}}` reference in `execute`, `mcp` or a pipeline step also needs `secrets:UseSecret` on that secret, else `403`.
|
|
5755
5758
|
*/
|
|
5756
5759
|
static updateTool(options) {
|
|
5757
5760
|
return (options.client ?? client).patch({
|
|
@@ -11153,7 +11156,7 @@ const routes = {
|
|
|
11153
11156
|
"create-channel": {
|
|
11154
11157
|
serviceClass: "Channels",
|
|
11155
11158
|
operationId: "createChannel",
|
|
11156
|
-
description: "Connect a channel. The required fields depend on `channel`; no credential is ever returned. **Discord** (`channel: discord`) — supply `application_id` and `bot_token`, plus the `modes` selecting which Gateway flows to serve (direct messages, and/or @mention-opens-a-thread). The token is checked with Discord first: `400 invalid_bot_token` when Discord rejects it, `400 application_mismatch` when it belongs to another application. Returns `501` when this deployment does not enable Discord channels. **WhatsApp** (default) — one of two credential paths, both filling the same write-only secret: * **BYOT** (`credential_source: byot`, default) — supply `phone_number_id` and `access_token` from your own Meta app. The number is read with the token first: `400 invalid_access_token` when Meta rejects the token, `400 phone_number_not_accessible` when it cannot reach that number, `502 meta_unavailable` when Meta fails. * **Embedded signup** (`credential_source: embedded_signup`) — supply `code` and `waba_id` from the Meta popup; naturali exchanges the `code` for the token, subscribes its app to the WABA and registers the number for sending when it is not yet, so the customer never hands over a token. Returns `501` on deployments where Meta App credentials are not configured. 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.",
|
|
11159
|
+
description: "Connect a channel. The required fields depend on `channel`; no credential is ever returned. **Discord** (`channel: discord`) — supply `application_id` and `bot_token`, plus the `modes` selecting which Gateway flows to serve (direct messages, and/or @mention-opens-a-thread). The token is checked with Discord first: `400 invalid_bot_token` when Discord rejects it, `400 application_mismatch` when it belongs to another application, `502 discord_unavailable` when Discord cannot be read. Returns `501` when this deployment does not enable Discord channels. **WhatsApp** (default) — one of two credential paths, both filling the same write-only secret: * **BYOT** (`credential_source: byot`, default) — supply `phone_number_id` and `access_token` from your own Meta app. The number is read with the token first: `400 invalid_access_token` when Meta rejects the token, `400 phone_number_not_accessible` when it cannot reach that number, `502 meta_unavailable` when Meta fails. The token's app is then subscribed to the WABA Meta reports as the number's owner, which is the `waba_id` stored: `400 waba_not_manageable` when the token cannot subscribe to it. * **Embedded signup** (`credential_source: embedded_signup`) — supply `code` and `waba_id` from the Meta popup; naturali exchanges the `code` for the token, subscribes its app to the WABA and registers the number for sending when it is not yet, so the customer never hands over a token. Returns `501` on deployments where Meta App credentials are not configured. 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.",
|
|
11157
11160
|
moduleDocsUrl: "https://naturali.ai/docs/modules/channels",
|
|
11158
11161
|
httpMethod: "post",
|
|
11159
11162
|
pathParams: ["project_id"],
|
|
@@ -11233,7 +11236,7 @@ const routes = {
|
|
|
11233
11236
|
},
|
|
11234
11237
|
{
|
|
11235
11238
|
"name": "waba_id",
|
|
11236
|
-
"description": "Required for `embedded_signup
|
|
11239
|
+
"description": "Required for `embedded_signup`. Optional for `byot`, used only when Meta does not report the WABA that owns the number.\n",
|
|
11237
11240
|
"required": false,
|
|
11238
11241
|
"type": "string",
|
|
11239
11242
|
"in": "body"
|
|
@@ -22877,7 +22880,7 @@ const routes = {
|
|
|
22877
22880
|
"create-tool": {
|
|
22878
22881
|
serviceClass: "Tools",
|
|
22879
22882
|
operationId: "createTool",
|
|
22880
|
-
description: "Creates a new tool in the project.",
|
|
22883
|
+
description: "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`.",
|
|
22881
22884
|
moduleDocsUrl: "https://naturali.ai/docs/modules/tools",
|
|
22882
22885
|
httpMethod: "post",
|
|
22883
22886
|
pathParams: ["project_id"],
|
|
@@ -23012,7 +23015,7 @@ const routes = {
|
|
|
23012
23015
|
"update-tool": {
|
|
23013
23016
|
serviceClass: "Tools",
|
|
23014
23017
|
operationId: "updateTool",
|
|
23015
|
-
description: "Updates an existing tool.",
|
|
23018
|
+
description: "Updates an existing tool. A `{{secret:...}}` reference in `execute`, `mcp` or a pipeline step also needs `secrets:UseSecret` on that secret, else `403`.",
|
|
23016
23019
|
moduleDocsUrl: "https://naturali.ai/docs/modules/tools",
|
|
23017
23020
|
httpMethod: "patch",
|
|
23018
23021
|
pathParams: ["project_id", "tool_id"],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/cli",
|
|
3
|
-
"version": "0.212.
|
|
3
|
+
"version": "0.212.4",
|
|
4
4
|
"description": "Command-line interface for the naturali.ai API, generated from its OpenAPI specs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"naturali",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"yaml": "^2.9.1"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@naturali/sdk": "0.212.
|
|
34
|
+
"@naturali/sdk": "0.212.4",
|
|
35
35
|
"@ttoss/openapi-codegen": "^0.10.0",
|
|
36
36
|
"@types/node": "^26.5.1",
|
|
37
37
|
"tsdown": "^0.23.0",
|