@naturali/sdk 0.212.5 → 0.212.6
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 +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1010,7 +1010,7 @@ var Channels = class {
|
|
|
1010
1010
|
/**
|
|
1011
1011
|
* Update a channel
|
|
1012
1012
|
*
|
|
1013
|
-
* Rotate the credential, update the kind's config (`waba_id` / `credential_source` for WhatsApp, `modes` for Discord), or flip the naturali-side status. At least one field is required. Rotating a WhatsApp token stores a new write-only secret, repoints the send tool and deletes the old secret; rotating a Discord bot token reseals it and the gateway worker reconnects with it.
|
|
1013
|
+
* Rotate the credential, update the kind's config (`waba_id` / `credential_source` for WhatsApp, `modes` for Discord), or flip the naturali-side status. At least one field is required. Rotating a WhatsApp token first reads the number with it, as connect does (`400 invalid_access_token`, `400 phone_number_not_accessible`, `502 meta_unavailable`, keeping the old token), then stores a new write-only secret, repoints the send tool and deletes the old secret; rotating a Discord bot token reseals it and the gateway worker reconnects with it.
|
|
1014
1014
|
*
|
|
1015
1015
|
*/
|
|
1016
1016
|
static updateChannel(options) {
|
package/dist/index.d.cts
CHANGED
|
@@ -32723,7 +32723,7 @@ export declare class Channels {
|
|
|
32723
32723
|
/**
|
|
32724
32724
|
* Update a channel
|
|
32725
32725
|
*
|
|
32726
|
-
* Rotate the credential, update the kind's config (`waba_id` / `credential_source` for WhatsApp, `modes` for Discord), or flip the naturali-side status. At least one field is required. Rotating a WhatsApp token stores a new write-only secret, repoints the send tool and deletes the old secret; rotating a Discord bot token reseals it and the gateway worker reconnects with it.
|
|
32726
|
+
* Rotate the credential, update the kind's config (`waba_id` / `credential_source` for WhatsApp, `modes` for Discord), or flip the naturali-side status. At least one field is required. Rotating a WhatsApp token first reads the number with it, as connect does (`400 invalid_access_token`, `400 phone_number_not_accessible`, `502 meta_unavailable`, keeping the old token), then stores a new write-only secret, repoints the send tool and deletes the old secret; rotating a Discord bot token reseals it and the gateway worker reconnects with it.
|
|
32727
32727
|
*
|
|
32728
32728
|
*/
|
|
32729
32729
|
static updateChannel<ThrowOnError extends boolean = false>(options: Options<UpdateChannelData, ThrowOnError>): RequestResult<UpdateChannelResponses, UpdateChannelErrors, ThrowOnError>;
|
package/dist/index.d.mts
CHANGED
|
@@ -32723,7 +32723,7 @@ export declare class Channels {
|
|
|
32723
32723
|
/**
|
|
32724
32724
|
* Update a channel
|
|
32725
32725
|
*
|
|
32726
|
-
* Rotate the credential, update the kind's config (`waba_id` / `credential_source` for WhatsApp, `modes` for Discord), or flip the naturali-side status. At least one field is required. Rotating a WhatsApp token stores a new write-only secret, repoints the send tool and deletes the old secret; rotating a Discord bot token reseals it and the gateway worker reconnects with it.
|
|
32726
|
+
* Rotate the credential, update the kind's config (`waba_id` / `credential_source` for WhatsApp, `modes` for Discord), or flip the naturali-side status. At least one field is required. Rotating a WhatsApp token first reads the number with it, as connect does (`400 invalid_access_token`, `400 phone_number_not_accessible`, `502 meta_unavailable`, keeping the old token), then stores a new write-only secret, repoints the send tool and deletes the old secret; rotating a Discord bot token reseals it and the gateway worker reconnects with it.
|
|
32727
32727
|
*
|
|
32728
32728
|
*/
|
|
32729
32729
|
static updateChannel<ThrowOnError extends boolean = false>(options: Options<UpdateChannelData, ThrowOnError>): RequestResult<UpdateChannelResponses, UpdateChannelErrors, ThrowOnError>;
|
package/dist/index.mjs
CHANGED
|
@@ -1009,7 +1009,7 @@ var Channels = class {
|
|
|
1009
1009
|
/**
|
|
1010
1010
|
* Update a channel
|
|
1011
1011
|
*
|
|
1012
|
-
* Rotate the credential, update the kind's config (`waba_id` / `credential_source` for WhatsApp, `modes` for Discord), or flip the naturali-side status. At least one field is required. Rotating a WhatsApp token stores a new write-only secret, repoints the send tool and deletes the old secret; rotating a Discord bot token reseals it and the gateway worker reconnects with it.
|
|
1012
|
+
* Rotate the credential, update the kind's config (`waba_id` / `credential_source` for WhatsApp, `modes` for Discord), or flip the naturali-side status. At least one field is required. Rotating a WhatsApp token first reads the number with it, as connect does (`400 invalid_access_token`, `400 phone_number_not_accessible`, `502 meta_unavailable`, keeping the old token), then stores a new write-only secret, repoints the send tool and deletes the old secret; rotating a Discord bot token reseals it and the gateway worker reconnects with it.
|
|
1013
1013
|
*
|
|
1014
1014
|
*/
|
|
1015
1015
|
static updateChannel(options) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/sdk",
|
|
3
|
-
"version": "0.212.
|
|
3
|
+
"version": "0.212.6",
|
|
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.6",
|
|
42
42
|
"@ttoss/openapi-codegen": "^0.10.0",
|
|
43
43
|
"@types/node": "^26.5.1",
|
|
44
44
|
"tsdown": "^0.23.0",
|