@naturali/sdk 0.185.1 → 0.187.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 +5 -4
- package/dist/index.d.cts +16 -5
- package/dist/index.d.mts +16 -5
- package/dist/index.mjs +5 -4
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -921,10 +921,11 @@ var Channels = class {
|
|
|
921
921
|
* `phone_number_id` and `access_token` from your own Meta app.
|
|
922
922
|
*
|
|
923
923
|
* * **Embedded signup** (`credential_source: embedded_signup`) — supply
|
|
924
|
-
* `code` and `waba_id`
|
|
925
|
-
*
|
|
926
|
-
*
|
|
927
|
-
* deployments where Meta App credentials
|
|
924
|
+
* `code` and `waba_id` from the Meta popup; naturali exchanges the
|
|
925
|
+
* `code` for the token, subscribes its app to the WABA and registers the
|
|
926
|
+
* number for sending when it is not yet, so the customer never hands
|
|
927
|
+
* over a token. Returns `501` on deployments where Meta App credentials
|
|
928
|
+
* are not configured.
|
|
928
929
|
*
|
|
929
930
|
*
|
|
930
931
|
* 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.
|
package/dist/index.d.cts
CHANGED
|
@@ -2568,6 +2568,16 @@ type Channel = {
|
|
|
2568
2568
|
* WhatsApp Business Account id, when known.
|
|
2569
2569
|
*/
|
|
2570
2570
|
waba_id: string | null;
|
|
2571
|
+
/**
|
|
2572
|
+
* The number as Meta displays it, read when the number was linked by embedded signup. Null for other channels and other credential sources.
|
|
2573
|
+
*
|
|
2574
|
+
*/
|
|
2575
|
+
display_phone_number?: string | null;
|
|
2576
|
+
/**
|
|
2577
|
+
* The business name Meta shows for the number, when known; null on the same terms as `display_phone_number`.
|
|
2578
|
+
*
|
|
2579
|
+
*/
|
|
2580
|
+
verified_name?: string | null;
|
|
2571
2581
|
/**
|
|
2572
2582
|
* Discord application id — the tenant's app, one channel per app. The gateway worker holds one connection per channel. Null for non-Discord channels.
|
|
2573
2583
|
*
|
|
@@ -2639,7 +2649,7 @@ type ChannelCreate = {
|
|
|
2639
2649
|
*/
|
|
2640
2650
|
code?: string;
|
|
2641
2651
|
/**
|
|
2642
|
-
* Optional (`embedded_signup` only). The
|
|
2652
|
+
* 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.
|
|
2643
2653
|
*
|
|
2644
2654
|
*/
|
|
2645
2655
|
pin?: string;
|
|
@@ -26107,10 +26117,11 @@ export declare class Channels {
|
|
|
26107
26117
|
* `phone_number_id` and `access_token` from your own Meta app.
|
|
26108
26118
|
*
|
|
26109
26119
|
* * **Embedded signup** (`credential_source: embedded_signup`) — supply
|
|
26110
|
-
* `code` and `waba_id`
|
|
26111
|
-
*
|
|
26112
|
-
*
|
|
26113
|
-
* deployments where Meta App credentials
|
|
26120
|
+
* `code` and `waba_id` from the Meta popup; naturali exchanges the
|
|
26121
|
+
* `code` for the token, subscribes its app to the WABA and registers the
|
|
26122
|
+
* number for sending when it is not yet, so the customer never hands
|
|
26123
|
+
* over a token. Returns `501` on deployments where Meta App credentials
|
|
26124
|
+
* are not configured.
|
|
26114
26125
|
*
|
|
26115
26126
|
*
|
|
26116
26127
|
* 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.
|
package/dist/index.d.mts
CHANGED
|
@@ -2568,6 +2568,16 @@ type Channel = {
|
|
|
2568
2568
|
* WhatsApp Business Account id, when known.
|
|
2569
2569
|
*/
|
|
2570
2570
|
waba_id: string | null;
|
|
2571
|
+
/**
|
|
2572
|
+
* The number as Meta displays it, read when the number was linked by embedded signup. Null for other channels and other credential sources.
|
|
2573
|
+
*
|
|
2574
|
+
*/
|
|
2575
|
+
display_phone_number?: string | null;
|
|
2576
|
+
/**
|
|
2577
|
+
* The business name Meta shows for the number, when known; null on the same terms as `display_phone_number`.
|
|
2578
|
+
*
|
|
2579
|
+
*/
|
|
2580
|
+
verified_name?: string | null;
|
|
2571
2581
|
/**
|
|
2572
2582
|
* Discord application id — the tenant's app, one channel per app. The gateway worker holds one connection per channel. Null for non-Discord channels.
|
|
2573
2583
|
*
|
|
@@ -2639,7 +2649,7 @@ type ChannelCreate = {
|
|
|
2639
2649
|
*/
|
|
2640
2650
|
code?: string;
|
|
2641
2651
|
/**
|
|
2642
|
-
* Optional (`embedded_signup` only). The
|
|
2652
|
+
* 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.
|
|
2643
2653
|
*
|
|
2644
2654
|
*/
|
|
2645
2655
|
pin?: string;
|
|
@@ -26107,10 +26117,11 @@ export declare class Channels {
|
|
|
26107
26117
|
* `phone_number_id` and `access_token` from your own Meta app.
|
|
26108
26118
|
*
|
|
26109
26119
|
* * **Embedded signup** (`credential_source: embedded_signup`) — supply
|
|
26110
|
-
* `code` and `waba_id`
|
|
26111
|
-
*
|
|
26112
|
-
*
|
|
26113
|
-
* deployments where Meta App credentials
|
|
26120
|
+
* `code` and `waba_id` from the Meta popup; naturali exchanges the
|
|
26121
|
+
* `code` for the token, subscribes its app to the WABA and registers the
|
|
26122
|
+
* number for sending when it is not yet, so the customer never hands
|
|
26123
|
+
* over a token. Returns `501` on deployments where Meta App credentials
|
|
26124
|
+
* are not configured.
|
|
26114
26125
|
*
|
|
26115
26126
|
*
|
|
26116
26127
|
* 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.
|
package/dist/index.mjs
CHANGED
|
@@ -920,10 +920,11 @@ var Channels = class {
|
|
|
920
920
|
* `phone_number_id` and `access_token` from your own Meta app.
|
|
921
921
|
*
|
|
922
922
|
* * **Embedded signup** (`credential_source: embedded_signup`) — supply
|
|
923
|
-
* `code` and `waba_id`
|
|
924
|
-
*
|
|
925
|
-
*
|
|
926
|
-
* deployments where Meta App credentials
|
|
923
|
+
* `code` and `waba_id` from the Meta popup; naturali exchanges the
|
|
924
|
+
* `code` for the token, subscribes its app to the WABA and registers the
|
|
925
|
+
* number for sending when it is not yet, so the customer never hands
|
|
926
|
+
* over a token. Returns `501` on deployments where Meta App credentials
|
|
927
|
+
* are not configured.
|
|
927
928
|
*
|
|
928
929
|
*
|
|
929
930
|
* 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.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.187.0",
|
|
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.
|
|
41
|
+
"@naturali/api": "0.187.0",
|
|
42
42
|
"@ttoss/openapi-codegen": "^0.5.0",
|
|
43
43
|
"@types/node": "^26.5.1",
|
|
44
44
|
"tsdown": "^0.23.0",
|