@naturali/cli 0.185.0 → 0.186.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.mjs +8 -7
- 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.
|
|
20
|
+
var version = "0.186.0";
|
|
21
21
|
//#endregion
|
|
22
22
|
//#region ../sdk/src/generated/core/bodySerializer.gen.ts
|
|
23
23
|
const serializeFormDataPair = (data, key, value) => {
|
|
@@ -941,10 +941,11 @@ var Channels = class {
|
|
|
941
941
|
* `phone_number_id` and `access_token` from your own Meta app.
|
|
942
942
|
*
|
|
943
943
|
* * **Embedded signup** (`credential_source: embedded_signup`) — supply
|
|
944
|
-
* `code` and `waba_id`
|
|
945
|
-
*
|
|
946
|
-
*
|
|
947
|
-
* deployments where Meta App credentials
|
|
944
|
+
* `code` and `waba_id` from the Meta popup; naturali exchanges the
|
|
945
|
+
* `code` for the token, subscribes its app to the WABA and registers the
|
|
946
|
+
* number for sending when it is not yet, so the customer never hands
|
|
947
|
+
* over a token. Returns `501` on deployments where Meta App credentials
|
|
948
|
+
* are not configured.
|
|
948
949
|
*
|
|
949
950
|
*
|
|
950
951
|
* 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.
|
|
@@ -10533,7 +10534,7 @@ const routes = {
|
|
|
10533
10534
|
"create-channel": {
|
|
10534
10535
|
serviceClass: "Channels",
|
|
10535
10536
|
operationId: "createChannel",
|
|
10536
|
-
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 the deployment has no `CHANNEL_TOKEN_KEY` configured. **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. * **Embedded signup** (`credential_source: embedded_signup`) — supply `code` and `waba_id`
|
|
10537
|
+
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 the deployment has no `CHANNEL_TOKEN_KEY` configured. **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. * **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.",
|
|
10537
10538
|
moduleDocsUrl: "https://naturali.ai/docs/modules/channels",
|
|
10538
10539
|
httpMethod: "post",
|
|
10539
10540
|
pathParams: ["project_id"],
|
|
@@ -10599,7 +10600,7 @@ const routes = {
|
|
|
10599
10600
|
},
|
|
10600
10601
|
{
|
|
10601
10602
|
"name": "pin",
|
|
10602
|
-
"description": "Optional (`embedded_signup` only). The
|
|
10603
|
+
"description": "Optional (`embedded_signup` only). The two-step verification PIN used if naturali registers the number, which it does only when the number is not yet registered for sending. Needed only when the number already has one; otherwise naturali generates a PIN and does not keep it. Never stored or returned.\n",
|
|
10603
10604
|
"required": false,
|
|
10604
10605
|
"type": "string",
|
|
10605
10606
|
"in": "body"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.186.0",
|
|
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.
|
|
34
|
+
"@naturali/sdk": "0.186.0",
|
|
35
35
|
"@ttoss/openapi-codegen": "^0.5.0",
|
|
36
36
|
"@types/node": "^26.5.1",
|
|
37
37
|
"tsdown": "^0.23.0",
|