telnyx 7.24.0 → 7.25.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/CHANGELOG.md +7 -0
- package/client.d.mts +19 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +19 -4
- package/client.d.ts.map +1 -1
- package/client.js +15 -0
- package/client.js.map +1 -1
- package/client.mjs +15 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/ai/ai.d.mts +7 -6
- package/resources/ai/ai.d.mts.map +1 -1
- package/resources/ai/ai.d.ts +7 -6
- package/resources/ai/ai.d.ts.map +1 -1
- package/resources/ai/ai.js.map +1 -1
- package/resources/ai/ai.mjs.map +1 -1
- package/resources/ai/assistants/assistants.d.mts +320 -28
- package/resources/ai/assistants/assistants.d.mts.map +1 -1
- package/resources/ai/assistants/assistants.d.ts +320 -28
- package/resources/ai/assistants/assistants.d.ts.map +1 -1
- package/resources/ai/assistants/assistants.js +79 -2
- package/resources/ai/assistants/assistants.js.map +1 -1
- package/resources/ai/assistants/assistants.mjs +79 -2
- package/resources/ai/assistants/assistants.mjs.map +1 -1
- package/resources/ai/assistants/deleted.d.mts +60 -0
- package/resources/ai/assistants/deleted.d.mts.map +1 -0
- package/resources/ai/assistants/deleted.d.ts +60 -0
- package/resources/ai/assistants/deleted.d.ts.map +1 -0
- package/resources/ai/assistants/deleted.js +49 -0
- package/resources/ai/assistants/deleted.js.map +1 -0
- package/resources/ai/assistants/deleted.mjs +45 -0
- package/resources/ai/assistants/deleted.mjs.map +1 -0
- package/resources/ai/assistants/index.d.mts +2 -1
- package/resources/ai/assistants/index.d.mts.map +1 -1
- package/resources/ai/assistants/index.d.ts +2 -1
- package/resources/ai/assistants/index.d.ts.map +1 -1
- package/resources/ai/assistants/index.js +3 -1
- package/resources/ai/assistants/index.js.map +1 -1
- package/resources/ai/assistants/index.mjs +1 -0
- package/resources/ai/assistants/index.mjs.map +1 -1
- package/resources/ai/assistants/versions.d.mts +36 -0
- package/resources/ai/assistants/versions.d.mts.map +1 -1
- package/resources/ai/assistants/versions.d.ts +36 -0
- package/resources/ai/assistants/versions.d.ts.map +1 -1
- package/resources/ai/chat.d.mts +7 -2
- package/resources/ai/chat.d.mts.map +1 -1
- package/resources/ai/chat.d.ts +7 -2
- package/resources/ai/chat.d.ts.map +1 -1
- package/resources/ai/embeddings/embeddings.d.mts +1 -1
- package/resources/ai/embeddings/embeddings.d.ts +1 -1
- package/resources/ai/embeddings/embeddings.js +1 -1
- package/resources/ai/embeddings/embeddings.mjs +1 -1
- package/resources/ai/index.d.mts +2 -2
- package/resources/ai/index.d.mts.map +1 -1
- package/resources/ai/index.d.ts +2 -2
- package/resources/ai/index.d.ts.map +1 -1
- package/resources/ai/index.js.map +1 -1
- package/resources/ai/index.mjs.map +1 -1
- package/resources/ai/memory/index.d.mts +1 -1
- package/resources/ai/memory/index.d.mts.map +1 -1
- package/resources/ai/memory/index.d.ts +1 -1
- package/resources/ai/memory/index.d.ts.map +1 -1
- package/resources/ai/memory/index.js.map +1 -1
- package/resources/ai/memory/index.mjs +1 -1
- package/resources/ai/memory/index.mjs.map +1 -1
- package/resources/ai/memory/memory.d.mts +2 -2
- package/resources/ai/memory/memory.d.mts.map +1 -1
- package/resources/ai/memory/memory.d.ts +2 -2
- package/resources/ai/memory/memory.d.ts.map +1 -1
- package/resources/ai/memory/memory.js.map +1 -1
- package/resources/ai/memory/memory.mjs +1 -1
- package/resources/ai/memory/memory.mjs.map +1 -1
- package/resources/ai/memory/namespaces/index.d.mts +1 -1
- package/resources/ai/memory/namespaces/index.d.mts.map +1 -1
- package/resources/ai/memory/namespaces/index.d.ts +1 -1
- package/resources/ai/memory/namespaces/index.d.ts.map +1 -1
- package/resources/ai/memory/namespaces/index.js.map +1 -1
- package/resources/ai/memory/namespaces/index.mjs +1 -1
- package/resources/ai/memory/namespaces/index.mjs.map +1 -1
- package/resources/ai/memory/namespaces/namespaces.d.mts +60 -4
- package/resources/ai/memory/namespaces/namespaces.d.mts.map +1 -1
- package/resources/ai/memory/namespaces/namespaces.d.ts +60 -4
- package/resources/ai/memory/namespaces/namespaces.d.ts.map +1 -1
- package/resources/ai/memory/namespaces/namespaces.js +41 -3
- package/resources/ai/memory/namespaces/namespaces.js.map +1 -1
- package/resources/ai/memory/namespaces/namespaces.mjs +41 -3
- package/resources/ai/memory/namespaces/namespaces.mjs.map +1 -1
- package/resources/ai/openai/chat.d.mts +7 -2
- package/resources/ai/openai/chat.d.mts.map +1 -1
- package/resources/ai/openai/chat.d.ts +7 -2
- package/resources/ai/openai/chat.d.ts.map +1 -1
- package/resources/ai/tools.d.mts +3 -4
- package/resources/ai/tools.d.mts.map +1 -1
- package/resources/ai/tools.d.ts +3 -4
- package/resources/ai/tools.d.ts.map +1 -1
- package/resources/ai/tools.js +5 -2
- package/resources/ai/tools.js.map +1 -1
- package/resources/ai/tools.mjs +5 -2
- package/resources/ai/tools.mjs.map +1 -1
- package/resources/calls/actions.d.mts +76 -17
- package/resources/calls/actions.d.mts.map +1 -1
- package/resources/calls/actions.d.ts +76 -17
- package/resources/calls/actions.d.ts.map +1 -1
- package/resources/calls/actions.js +31 -0
- package/resources/calls/actions.js.map +1 -1
- package/resources/calls/actions.mjs +31 -0
- package/resources/calls/actions.mjs.map +1 -1
- package/resources/calls/calls.d.mts +48 -11
- package/resources/calls/calls.d.mts.map +1 -1
- package/resources/calls/calls.d.ts +48 -11
- package/resources/calls/calls.d.ts.map +1 -1
- package/resources/calls/calls.js +3 -0
- package/resources/calls/calls.js.map +1 -1
- package/resources/calls/calls.mjs +3 -0
- package/resources/calls/calls.mjs.map +1 -1
- package/resources/dir/dir.d.mts +220 -28
- package/resources/dir/dir.d.mts.map +1 -1
- package/resources/dir/dir.d.ts +220 -28
- package/resources/dir/dir.d.ts.map +1 -1
- package/resources/dir/dir.js +77 -13
- package/resources/dir/dir.js.map +1 -1
- package/resources/dir/dir.mjs +77 -13
- package/resources/dir/dir.mjs.map +1 -1
- package/resources/dir/index.d.mts +1 -1
- package/resources/dir/index.d.mts.map +1 -1
- package/resources/dir/index.d.ts +1 -1
- package/resources/dir/index.d.ts.map +1 -1
- package/resources/dir/index.js.map +1 -1
- package/resources/dir/index.mjs.map +1 -1
- package/resources/dir/phone-numbers.d.mts +8 -4
- package/resources/dir/phone-numbers.d.mts.map +1 -1
- package/resources/dir/phone-numbers.d.ts +8 -4
- package/resources/dir/phone-numbers.d.ts.map +1 -1
- package/resources/dir/phone-numbers.js +4 -4
- package/resources/dir/phone-numbers.mjs +4 -4
- package/resources/dir/references.d.mts +9 -6
- package/resources/dir/references.d.mts.map +1 -1
- package/resources/dir/references.d.ts +9 -6
- package/resources/dir/references.d.ts.map +1 -1
- package/resources/enterprises/dir.d.mts +17 -1
- package/resources/enterprises/dir.d.mts.map +1 -1
- package/resources/enterprises/dir.d.ts +17 -1
- package/resources/enterprises/dir.d.ts.map +1 -1
- package/resources/enterprises/enterprises.d.mts +237 -23
- package/resources/enterprises/enterprises.d.mts.map +1 -1
- package/resources/enterprises/enterprises.d.ts +237 -23
- package/resources/enterprises/enterprises.d.ts.map +1 -1
- package/resources/enterprises/enterprises.js +26 -4
- package/resources/enterprises/enterprises.js.map +1 -1
- package/resources/enterprises/enterprises.mjs +26 -4
- package/resources/enterprises/enterprises.mjs.map +1 -1
- package/resources/enterprises/index.d.mts +1 -0
- package/resources/enterprises/index.d.mts.map +1 -1
- package/resources/enterprises/index.d.ts +1 -0
- package/resources/enterprises/index.d.ts.map +1 -1
- package/resources/enterprises/index.js +3 -1
- package/resources/enterprises/index.js.map +1 -1
- package/resources/enterprises/index.mjs +1 -0
- package/resources/enterprises/index.mjs.map +1 -1
- package/resources/enterprises/reputation/loa.d.mts +61 -1
- package/resources/enterprises/reputation/loa.d.mts.map +1 -1
- package/resources/enterprises/reputation/loa.d.ts +61 -1
- package/resources/enterprises/reputation/loa.d.ts.map +1 -1
- package/resources/enterprises/verify-email.d.mts +91 -0
- package/resources/enterprises/verify-email.d.mts.map +1 -0
- package/resources/enterprises/verify-email.d.ts +91 -0
- package/resources/enterprises/verify-email.d.ts.map +1 -0
- package/resources/enterprises/verify-email.js +55 -0
- package/resources/enterprises/verify-email.js.map +1 -0
- package/resources/enterprises/verify-email.mjs +51 -0
- package/resources/enterprises/verify-email.mjs.map +1 -0
- package/resources/index.d.mts +4 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +4 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +7 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -0
- package/resources/index.mjs.map +1 -1
- package/resources/infringement-claims.d.mts +4 -0
- package/resources/infringement-claims.d.mts.map +1 -1
- package/resources/infringement-claims.d.ts +4 -0
- package/resources/infringement-claims.d.ts.map +1 -1
- package/resources/llm-token-gateway/index.d.mts +3 -0
- package/resources/llm-token-gateway/index.d.mts.map +1 -0
- package/resources/llm-token-gateway/index.d.ts +3 -0
- package/resources/llm-token-gateway/index.d.ts.map +1 -0
- package/resources/llm-token-gateway/index.js +9 -0
- package/resources/llm-token-gateway/index.js.map +1 -0
- package/resources/llm-token-gateway/index.mjs +4 -0
- package/resources/llm-token-gateway/index.mjs.map +1 -0
- package/resources/llm-token-gateway/llm-token-gateway.d.mts +10 -0
- package/resources/llm-token-gateway/llm-token-gateway.d.mts.map +1 -0
- package/resources/llm-token-gateway/llm-token-gateway.d.ts +10 -0
- package/resources/llm-token-gateway/llm-token-gateway.d.ts.map +1 -0
- package/resources/llm-token-gateway/llm-token-gateway.js +17 -0
- package/resources/llm-token-gateway/llm-token-gateway.js.map +1 -0
- package/resources/llm-token-gateway/llm-token-gateway.mjs +12 -0
- package/resources/llm-token-gateway/llm-token-gateway.mjs.map +1 -0
- package/resources/llm-token-gateway/usage.d.mts +260 -0
- package/resources/llm-token-gateway/usage.d.mts.map +1 -0
- package/resources/llm-token-gateway/usage.d.ts +260 -0
- package/resources/llm-token-gateway/usage.d.ts.map +1 -0
- package/resources/llm-token-gateway/usage.js +31 -0
- package/resources/llm-token-gateway/usage.js.map +1 -0
- package/resources/llm-token-gateway/usage.mjs +27 -0
- package/resources/llm-token-gateway/usage.mjs.map +1 -0
- package/resources/llm-token-gateway.d.mts +2 -0
- package/resources/llm-token-gateway.d.mts.map +1 -0
- package/resources/llm-token-gateway.d.ts +2 -0
- package/resources/llm-token-gateway.d.ts.map +1 -0
- package/resources/llm-token-gateway.js +6 -0
- package/resources/llm-token-gateway.js.map +1 -0
- package/resources/llm-token-gateway.mjs +3 -0
- package/resources/llm-token-gateway.mjs.map +1 -0
- package/resources/meeting-sessions/meeting-sessions.d.mts +8 -9
- package/resources/meeting-sessions/meeting-sessions.d.mts.map +1 -1
- package/resources/meeting-sessions/meeting-sessions.d.ts +8 -9
- package/resources/meeting-sessions/meeting-sessions.d.ts.map +1 -1
- package/resources/meeting-sessions/meeting-sessions.js +6 -6
- package/resources/meeting-sessions/meeting-sessions.js.map +1 -1
- package/resources/meeting-sessions/meeting-sessions.mjs +6 -6
- package/resources/meeting-sessions/meeting-sessions.mjs.map +1 -1
- package/resources/porting-orders/phone-number-blocks.d.mts +1 -1
- package/resources/porting-orders/phone-number-blocks.d.mts.map +1 -1
- package/resources/porting-orders/phone-number-blocks.d.ts +1 -1
- package/resources/porting-orders/phone-number-blocks.d.ts.map +1 -1
- package/resources/porting-orders/porting-orders.d.mts +1 -1
- package/resources/porting-orders/porting-orders.d.mts.map +1 -1
- package/resources/porting-orders/porting-orders.d.ts +1 -1
- package/resources/porting-orders/porting-orders.d.ts.map +1 -1
- package/resources/porting-orders/porting-orders.js.map +1 -1
- package/resources/porting-orders/porting-orders.mjs.map +1 -1
- package/resources/porting-phone-numbers.d.mts +1 -1
- package/resources/porting-phone-numbers.d.mts.map +1 -1
- package/resources/porting-phone-numbers.d.ts +1 -1
- package/resources/porting-phone-numbers.d.ts.map +1 -1
- package/resources/requirements.d.mts +2 -2
- package/resources/requirements.d.mts.map +1 -1
- package/resources/requirements.d.ts +2 -2
- package/resources/requirements.d.ts.map +1 -1
- package/resources/spend-limits.d.mts +335 -0
- package/resources/spend-limits.d.mts.map +1 -0
- package/resources/spend-limits.d.ts +335 -0
- package/resources/spend-limits.d.ts.map +1 -0
- package/resources/spend-limits.js +91 -0
- package/resources/spend-limits.js.map +1 -0
- package/resources/spend-limits.mjs +87 -0
- package/resources/spend-limits.mjs.map +1 -0
- package/resources/terms-of-service/agreements.d.mts +12 -0
- package/resources/terms-of-service/agreements.d.mts.map +1 -1
- package/resources/terms-of-service/agreements.d.ts +12 -0
- package/resources/terms-of-service/agreements.d.ts.map +1 -1
- package/resources/terms-of-service/terms-of-service.d.mts +15 -0
- package/resources/terms-of-service/terms-of-service.d.mts.map +1 -1
- package/resources/terms-of-service/terms-of-service.d.ts +15 -0
- package/resources/terms-of-service/terms-of-service.d.ts.map +1 -1
- package/resources/terms-of-service/terms-of-service.js.map +1 -1
- package/resources/terms-of-service/terms-of-service.mjs.map +1 -1
- package/resources/text-to-speech/text-to-speech.d.mts +4 -2
- package/resources/text-to-speech/text-to-speech.d.mts.map +1 -1
- package/resources/text-to-speech/text-to-speech.d.ts +4 -2
- package/resources/text-to-speech/text-to-speech.d.ts.map +1 -1
- package/resources/webhooks.d.mts +403 -5
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +403 -5
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/whatsapp/phone-numbers/calling-routing.d.mts +89 -0
- package/resources/whatsapp/phone-numbers/calling-routing.d.mts.map +1 -0
- package/resources/whatsapp/phone-numbers/calling-routing.d.ts +89 -0
- package/resources/whatsapp/phone-numbers/calling-routing.d.ts.map +1 -0
- package/resources/whatsapp/phone-numbers/calling-routing.js +65 -0
- package/resources/whatsapp/phone-numbers/calling-routing.js.map +1 -0
- package/resources/whatsapp/phone-numbers/calling-routing.mjs +61 -0
- package/resources/whatsapp/phone-numbers/calling-routing.mjs.map +1 -0
- package/resources/whatsapp/phone-numbers/index.d.mts +1 -0
- package/resources/whatsapp/phone-numbers/index.d.mts.map +1 -1
- package/resources/whatsapp/phone-numbers/index.d.ts +1 -0
- package/resources/whatsapp/phone-numbers/index.d.ts.map +1 -1
- package/resources/whatsapp/phone-numbers/index.js +3 -1
- package/resources/whatsapp/phone-numbers/index.js.map +1 -1
- package/resources/whatsapp/phone-numbers/index.mjs +1 -0
- package/resources/whatsapp/phone-numbers/index.mjs.map +1 -1
- package/resources/whatsapp/phone-numbers/phone-numbers.d.mts +4 -0
- package/resources/whatsapp/phone-numbers/phone-numbers.d.mts.map +1 -1
- package/resources/whatsapp/phone-numbers/phone-numbers.d.ts +4 -0
- package/resources/whatsapp/phone-numbers/phone-numbers.d.ts.map +1 -1
- package/resources/whatsapp/phone-numbers/phone-numbers.js +4 -0
- package/resources/whatsapp/phone-numbers/phone-numbers.js.map +1 -1
- package/resources/whatsapp/phone-numbers/phone-numbers.mjs +4 -0
- package/resources/whatsapp/phone-numbers/phone-numbers.mjs.map +1 -1
- package/src/client.ts +55 -0
- package/src/resources/ai/ai.ts +13 -4
- package/src/resources/ai/assistants/assistants.ts +384 -28
- package/src/resources/ai/assistants/deleted.ts +86 -0
- package/src/resources/ai/assistants/index.ts +11 -0
- package/src/resources/ai/assistants/versions.ts +40 -0
- package/src/resources/ai/chat.ts +7 -2
- package/src/resources/ai/embeddings/embeddings.ts +1 -1
- package/src/resources/ai/index.ts +5 -1
- package/src/resources/ai/memory/index.ts +9 -1
- package/src/resources/ai/memory/memory.ts +13 -1
- package/src/resources/ai/memory/namespaces/index.ts +9 -1
- package/src/resources/ai/memory/namespaces/namespaces.ts +81 -3
- package/src/resources/ai/openai/chat.ts +7 -2
- package/src/resources/ai/tools.ts +6 -6
- package/src/resources/calls/actions.ts +76 -15
- package/src/resources/calls/calls.ts +49 -9
- package/src/resources/dir/dir.ts +263 -32
- package/src/resources/dir/index.ts +6 -0
- package/src/resources/dir/phone-numbers.ts +8 -4
- package/src/resources/dir/references.ts +9 -6
- package/src/resources/enterprises/dir.ts +19 -1
- package/src/resources/enterprises/enterprises.ts +250 -23
- package/src/resources/enterprises/index.ts +5 -0
- package/src/resources/enterprises/reputation/loa.ts +73 -1
- package/src/resources/enterprises/verify-email.ts +117 -0
- package/src/resources/index.ts +20 -0
- package/src/resources/infringement-claims.ts +4 -0
- package/src/resources/llm-token-gateway/index.ts +4 -0
- package/src/resources/llm-token-gateway/llm-token-gateway.ts +19 -0
- package/src/resources/llm-token-gateway/usage.ts +336 -0
- package/src/resources/llm-token-gateway.ts +3 -0
- package/src/resources/meeting-sessions/meeting-sessions.ts +8 -9
- package/src/resources/porting-orders/phone-number-blocks.ts +9 -1
- package/src/resources/porting-orders/porting-orders.ts +9 -1
- package/src/resources/porting-phone-numbers.ts +9 -1
- package/src/resources/requirements.ts +2 -2
- package/src/resources/spend-limits.ts +428 -0
- package/src/resources/terms-of-service/agreements.ts +12 -0
- package/src/resources/terms-of-service/terms-of-service.ts +15 -0
- package/src/resources/text-to-speech/text-to-speech.ts +4 -2
- package/src/resources/webhooks.ts +495 -2
- package/src/resources/whatsapp/phone-numbers/calling-routing.ts +113 -0
- package/src/resources/whatsapp/phone-numbers/index.ts +7 -0
- package/src/resources/whatsapp/phone-numbers/phone-numbers.ts +18 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.CallingRouting = void 0;
|
|
5
|
+
const resource_1 = require("../../../core/resource.js");
|
|
6
|
+
const path_1 = require("../../../internal/utils/path.js");
|
|
7
|
+
/**
|
|
8
|
+
* Manage Whatsapp phone numbers
|
|
9
|
+
*/
|
|
10
|
+
class CallingRouting extends resource_1.APIResource {
|
|
11
|
+
/**
|
|
12
|
+
* Retrieve the routing connection currently stored for a BYON (Bring Your Own
|
|
13
|
+
* Number) phone number: the connection that inbound WhatsApp calls to the number
|
|
14
|
+
* are delivered to.
|
|
15
|
+
*
|
|
16
|
+
* Use it to check the result of
|
|
17
|
+
* `PATCH /whatsapp/phone_numbers/{id}/calling_routing`. A read made immediately
|
|
18
|
+
* after an update can still return the previous value.
|
|
19
|
+
*
|
|
20
|
+
* Sub-users need read permission on connections.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```ts
|
|
24
|
+
* const callingRoutings =
|
|
25
|
+
* await client.whatsapp.phoneNumbers.callingRouting.list(
|
|
26
|
+
* '+13125550100',
|
|
27
|
+
* );
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
list(id, options) {
|
|
31
|
+
return this._client.get((0, path_1.path) `/whatsapp/phone_numbers/${id}/calling_routing`, options);
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Set or clear the connection that inbound WhatsApp calls to a BYON (Bring Your
|
|
35
|
+
* Own Number) phone number are delivered to.
|
|
36
|
+
*
|
|
37
|
+
* The update is processed asynchronously. A `202` response means the request was
|
|
38
|
+
* accepted, not that the routing changed. Check the result with
|
|
39
|
+
* `GET /whatsapp/phone_numbers/{id}/calling_routing`, which can return the
|
|
40
|
+
* previous value immediately after an update. An update for a number that is not a
|
|
41
|
+
* WhatsApp Calling number in the account returns 404.
|
|
42
|
+
*
|
|
43
|
+
* The connection must belong to the same account and must not be a WhatsApp
|
|
44
|
+
* connection. Send `connection_id: null` to clear the routing; omitting
|
|
45
|
+
* `connection_id` is rejected. Numbers active on Telnyx are rejected, because they
|
|
46
|
+
* route through their own connection assignment.
|
|
47
|
+
*
|
|
48
|
+
* Sub-users need update permission on connections, and read permission to check
|
|
49
|
+
* the result with `GET`.
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* ```ts
|
|
53
|
+
* const response =
|
|
54
|
+
* await client.whatsapp.phoneNumbers.callingRouting.patchAll(
|
|
55
|
+
* '+13125550100',
|
|
56
|
+
* { connection_id: '1234567890' },
|
|
57
|
+
* );
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
patchAll(id, body, options) {
|
|
61
|
+
return this._client.patch((0, path_1.path) `/whatsapp/phone_numbers/${id}/calling_routing`, { body, ...options });
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
exports.CallingRouting = CallingRouting;
|
|
65
|
+
//# sourceMappingURL=calling-routing.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calling-routing.js","sourceRoot":"","sources":["../../../src/resources/whatsapp/phone-numbers/calling-routing.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAGrD,0DAAoD;AAEpD;;GAEG;AACH,MAAa,cAAe,SAAQ,sBAAW;IAC7C;;;;;;;;;;;;;;;;;;OAkBG;IACH,IAAI,CAAC,EAAU,EAAE,OAAwB;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,2BAA2B,EAAE,kBAAkB,EAAE,OAAO,CAAC,CAAC;IACxF,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;IACH,QAAQ,CACN,EAAU,EACV,IAAkC,EAClC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,2BAA2B,EAAE,kBAAkB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvG,CAAC;CACF;AA1DD,wCA0DC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
+
import { path } from "../../../internal/utils/path.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* Manage Whatsapp phone numbers
|
|
6
|
+
*/
|
|
7
|
+
export class CallingRouting extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Retrieve the routing connection currently stored for a BYON (Bring Your Own
|
|
10
|
+
* Number) phone number: the connection that inbound WhatsApp calls to the number
|
|
11
|
+
* are delivered to.
|
|
12
|
+
*
|
|
13
|
+
* Use it to check the result of
|
|
14
|
+
* `PATCH /whatsapp/phone_numbers/{id}/calling_routing`. A read made immediately
|
|
15
|
+
* after an update can still return the previous value.
|
|
16
|
+
*
|
|
17
|
+
* Sub-users need read permission on connections.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```ts
|
|
21
|
+
* const callingRoutings =
|
|
22
|
+
* await client.whatsapp.phoneNumbers.callingRouting.list(
|
|
23
|
+
* '+13125550100',
|
|
24
|
+
* );
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
list(id, options) {
|
|
28
|
+
return this._client.get(path `/whatsapp/phone_numbers/${id}/calling_routing`, options);
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Set or clear the connection that inbound WhatsApp calls to a BYON (Bring Your
|
|
32
|
+
* Own Number) phone number are delivered to.
|
|
33
|
+
*
|
|
34
|
+
* The update is processed asynchronously. A `202` response means the request was
|
|
35
|
+
* accepted, not that the routing changed. Check the result with
|
|
36
|
+
* `GET /whatsapp/phone_numbers/{id}/calling_routing`, which can return the
|
|
37
|
+
* previous value immediately after an update. An update for a number that is not a
|
|
38
|
+
* WhatsApp Calling number in the account returns 404.
|
|
39
|
+
*
|
|
40
|
+
* The connection must belong to the same account and must not be a WhatsApp
|
|
41
|
+
* connection. Send `connection_id: null` to clear the routing; omitting
|
|
42
|
+
* `connection_id` is rejected. Numbers active on Telnyx are rejected, because they
|
|
43
|
+
* route through their own connection assignment.
|
|
44
|
+
*
|
|
45
|
+
* Sub-users need update permission on connections, and read permission to check
|
|
46
|
+
* the result with `GET`.
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* ```ts
|
|
50
|
+
* const response =
|
|
51
|
+
* await client.whatsapp.phoneNumbers.callingRouting.patchAll(
|
|
52
|
+
* '+13125550100',
|
|
53
|
+
* { connection_id: '1234567890' },
|
|
54
|
+
* );
|
|
55
|
+
* ```
|
|
56
|
+
*/
|
|
57
|
+
patchAll(id, body, options) {
|
|
58
|
+
return this._client.patch(path `/whatsapp/phone_numbers/${id}/calling_routing`, { body, ...options });
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=calling-routing.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calling-routing.mjs","sourceRoot":"","sources":["../../../src/resources/whatsapp/phone-numbers/calling-routing.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AAGrD,OAAO,EAAE,IAAI,EAAE,yCAAqC;AAEpD;;GAEG;AACH,MAAM,OAAO,cAAe,SAAQ,WAAW;IAC7C;;;;;;;;;;;;;;;;;;OAkBG;IACH,IAAI,CAAC,EAAU,EAAE,OAAwB;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,2BAA2B,EAAE,kBAAkB,EAAE,OAAO,CAAC,CAAC;IACxF,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;IACH,QAAQ,CACN,EAAU,EACV,IAAkC,EAClC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,2BAA2B,EAAE,kBAAkB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvG,CAAC;CACF"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { CallingRouting, type WhatsappCallingRoutingData, type CallingRoutingListResponse, type CallingRoutingPatchAllResponse, type CallingRoutingPatchAllParams, } from "./calling-routing.mjs";
|
|
1
2
|
export { CallingSettings, type WhatsappCallingSettingsData, type CallingSettingRetrieveResponse, type CallingSettingUpdateResponse, type CallingSettingUpdateParams, } from "./calling-settings.mjs";
|
|
2
3
|
export { ConversationalComponents, type WhatsappConversationalComponent, type ConversationalComponentListResponse, type ConversationalComponentPatchAllResponse, type ConversationalComponentPatchAllParams, } from "./conversational-components.mjs";
|
|
3
4
|
export { PhoneNumbers, type PhoneNumberListResponse, type PhoneNumberGetResponse, type PhoneNumberRetrieveConversationWindowResponse, type PhoneNumberRetrievePhoneNumberResponse, type PhoneNumberListParams, type PhoneNumberResendVerificationParams, type PhoneNumberVerifyParams, type PhoneNumberRetrieveConversationWindowParams, type PhoneNumberGetParams, type PhoneNumberListResponsesDefaultFlatPagination, } from "./phone-numbers.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/whatsapp/phone-numbers/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,eAAe,EACf,KAAK,2BAA2B,EAChC,KAAK,8BAA8B,EACnC,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,GAChC,+BAA2B;AAC5B,OAAO,EACL,wBAAwB,EACxB,KAAK,+BAA+B,EACpC,KAAK,mCAAmC,EACxC,KAAK,uCAAuC,EAC5C,KAAK,qCAAqC,GAC3C,wCAAoC;AACrC,OAAO,EACL,YAAY,EACZ,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,6CAA6C,EAClD,KAAK,sCAAsC,EAC3C,KAAK,qBAAqB,EAC1B,KAAK,mCAAmC,EACxC,KAAK,uBAAuB,EAC5B,KAAK,2CAA2C,EAChD,KAAK,oBAAoB,EACzB,KAAK,6CAA6C,GACnD,4BAAwB;AACzB,OAAO,EACL,OAAO,EACP,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,GACzB,4BAAwB"}
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/whatsapp/phone-numbers/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,cAAc,EACd,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,KAAK,8BAA8B,EACnC,KAAK,4BAA4B,GAClC,8BAA0B;AAC3B,OAAO,EACL,eAAe,EACf,KAAK,2BAA2B,EAChC,KAAK,8BAA8B,EACnC,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,GAChC,+BAA2B;AAC5B,OAAO,EACL,wBAAwB,EACxB,KAAK,+BAA+B,EACpC,KAAK,mCAAmC,EACxC,KAAK,uCAAuC,EAC5C,KAAK,qCAAqC,GAC3C,wCAAoC;AACrC,OAAO,EACL,YAAY,EACZ,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,6CAA6C,EAClD,KAAK,sCAAsC,EAC3C,KAAK,qBAAqB,EAC1B,KAAK,mCAAmC,EACxC,KAAK,uBAAuB,EAC5B,KAAK,2CAA2C,EAChD,KAAK,oBAAoB,EACzB,KAAK,6CAA6C,GACnD,4BAAwB;AACzB,OAAO,EACL,OAAO,EACP,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,GACzB,4BAAwB"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { CallingRouting, type WhatsappCallingRoutingData, type CallingRoutingListResponse, type CallingRoutingPatchAllResponse, type CallingRoutingPatchAllParams, } from "./calling-routing.js";
|
|
1
2
|
export { CallingSettings, type WhatsappCallingSettingsData, type CallingSettingRetrieveResponse, type CallingSettingUpdateResponse, type CallingSettingUpdateParams, } from "./calling-settings.js";
|
|
2
3
|
export { ConversationalComponents, type WhatsappConversationalComponent, type ConversationalComponentListResponse, type ConversationalComponentPatchAllResponse, type ConversationalComponentPatchAllParams, } from "./conversational-components.js";
|
|
3
4
|
export { PhoneNumbers, type PhoneNumberListResponse, type PhoneNumberGetResponse, type PhoneNumberRetrieveConversationWindowResponse, type PhoneNumberRetrievePhoneNumberResponse, type PhoneNumberListParams, type PhoneNumberResendVerificationParams, type PhoneNumberVerifyParams, type PhoneNumberRetrieveConversationWindowParams, type PhoneNumberGetParams, type PhoneNumberListResponsesDefaultFlatPagination, } from "./phone-numbers.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/whatsapp/phone-numbers/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,eAAe,EACf,KAAK,2BAA2B,EAChC,KAAK,8BAA8B,EACnC,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,GAChC,8BAA2B;AAC5B,OAAO,EACL,wBAAwB,EACxB,KAAK,+BAA+B,EACpC,KAAK,mCAAmC,EACxC,KAAK,uCAAuC,EAC5C,KAAK,qCAAqC,GAC3C,uCAAoC;AACrC,OAAO,EACL,YAAY,EACZ,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,6CAA6C,EAClD,KAAK,sCAAsC,EAC3C,KAAK,qBAAqB,EAC1B,KAAK,mCAAmC,EACxC,KAAK,uBAAuB,EAC5B,KAAK,2CAA2C,EAChD,KAAK,oBAAoB,EACzB,KAAK,6CAA6C,GACnD,2BAAwB;AACzB,OAAO,EACL,OAAO,EACP,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,GACzB,2BAAwB"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/whatsapp/phone-numbers/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,cAAc,EACd,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,KAAK,8BAA8B,EACnC,KAAK,4BAA4B,GAClC,6BAA0B;AAC3B,OAAO,EACL,eAAe,EACf,KAAK,2BAA2B,EAChC,KAAK,8BAA8B,EACnC,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,GAChC,8BAA2B;AAC5B,OAAO,EACL,wBAAwB,EACxB,KAAK,+BAA+B,EACpC,KAAK,mCAAmC,EACxC,KAAK,uCAAuC,EAC5C,KAAK,qCAAqC,GAC3C,uCAAoC;AACrC,OAAO,EACL,YAAY,EACZ,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,6CAA6C,EAClD,KAAK,sCAAsC,EAC3C,KAAK,qBAAqB,EAC1B,KAAK,mCAAmC,EACxC,KAAK,uBAAuB,EAC5B,KAAK,2CAA2C,EAChD,KAAK,oBAAoB,EACzB,KAAK,6CAA6C,GACnD,2BAAwB;AACzB,OAAO,EACL,OAAO,EACP,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,GACzB,2BAAwB"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Profile = exports.PhoneNumbers = exports.ConversationalComponents = exports.CallingSettings = void 0;
|
|
4
|
+
exports.Profile = exports.PhoneNumbers = exports.ConversationalComponents = exports.CallingSettings = exports.CallingRouting = void 0;
|
|
5
|
+
var calling_routing_1 = require("./calling-routing.js");
|
|
6
|
+
Object.defineProperty(exports, "CallingRouting", { enumerable: true, get: function () { return calling_routing_1.CallingRouting; } });
|
|
5
7
|
var calling_settings_1 = require("./calling-settings.js");
|
|
6
8
|
Object.defineProperty(exports, "CallingSettings", { enumerable: true, get: function () { return calling_settings_1.CallingSettings; } });
|
|
7
9
|
var conversational_components_1 = require("./conversational-components.js");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/whatsapp/phone-numbers/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0DAM4B;AAL1B,mHAAA,eAAe,OAAA;AAMjB,4EAMqC;AALnC,qIAAA,wBAAwB,OAAA;AAM1B,oDAYyB;AAXvB,6GAAA,YAAY,OAAA;AAYd,4CAMyB;AALvB,gGAAA,OAAO,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/whatsapp/phone-numbers/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAM2B;AALzB,iHAAA,cAAc,OAAA;AAMhB,0DAM4B;AAL1B,mHAAA,eAAe,OAAA;AAMjB,4EAMqC;AALnC,qIAAA,wBAAwB,OAAA;AAM1B,oDAYyB;AAXvB,6GAAA,YAAY,OAAA;AAYd,4CAMyB;AALvB,gGAAA,OAAO,OAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
export { CallingRouting, } from "./calling-routing.mjs";
|
|
2
3
|
export { CallingSettings, } from "./calling-settings.mjs";
|
|
3
4
|
export { ConversationalComponents, } from "./conversational-components.mjs";
|
|
4
5
|
export { PhoneNumbers, } from "./phone-numbers.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/whatsapp/phone-numbers/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,eAAe,GAKhB,+BAA2B;AAC5B,OAAO,EACL,wBAAwB,GAKzB,wCAAoC;AACrC,OAAO,EACL,YAAY,GAWb,4BAAwB;AACzB,OAAO,EACL,OAAO,GAKR,4BAAwB"}
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/whatsapp/phone-numbers/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,cAAc,GAKf,8BAA0B;AAC3B,OAAO,EACL,eAAe,GAKhB,+BAA2B;AAC5B,OAAO,EACL,wBAAwB,GAKzB,wCAAoC;AACrC,OAAO,EACL,YAAY,GAWb,4BAAwB;AACzB,OAAO,EACL,OAAO,GAKR,4BAAwB"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { APIResource } from "../../../core/resource.mjs";
|
|
2
2
|
import * as Shared from "../../shared.mjs";
|
|
3
|
+
import * as CallingRoutingAPI from "./calling-routing.mjs";
|
|
4
|
+
import { CallingRouting, CallingRoutingListResponse, CallingRoutingPatchAllParams, CallingRoutingPatchAllResponse, WhatsappCallingRoutingData } from "./calling-routing.mjs";
|
|
3
5
|
import * as CallingSettingsAPI from "./calling-settings.mjs";
|
|
4
6
|
import { CallingSettingRetrieveResponse, CallingSettingUpdateParams, CallingSettingUpdateResponse, CallingSettings, WhatsappCallingSettingsData } from "./calling-settings.mjs";
|
|
5
7
|
import * as ConversationalComponentsAPI from "./conversational-components.mjs";
|
|
@@ -16,6 +18,7 @@ export declare class PhoneNumbers extends APIResource {
|
|
|
16
18
|
callingSettings: CallingSettingsAPI.CallingSettings;
|
|
17
19
|
profile: ProfileAPI.Profile;
|
|
18
20
|
conversationalComponents: ConversationalComponentsAPI.ConversationalComponents;
|
|
21
|
+
callingRouting: CallingRoutingAPI.CallingRouting;
|
|
19
22
|
/**
|
|
20
23
|
* Returns WhatsApp phone numbers linked to the authenticated Telnyx account.
|
|
21
24
|
*
|
|
@@ -341,5 +344,6 @@ export declare namespace PhoneNumbers {
|
|
|
341
344
|
export { CallingSettings as CallingSettings, type WhatsappCallingSettingsData as WhatsappCallingSettingsData, type CallingSettingRetrieveResponse as CallingSettingRetrieveResponse, type CallingSettingUpdateResponse as CallingSettingUpdateResponse, type CallingSettingUpdateParams as CallingSettingUpdateParams, };
|
|
342
345
|
export { Profile as Profile, type WhatsappProfileData as WhatsappProfileData, type ProfileRetrieveResponse as ProfileRetrieveResponse, type ProfileUpdateResponse as ProfileUpdateResponse, type ProfileUpdateParams as ProfileUpdateParams, };
|
|
343
346
|
export { ConversationalComponents as ConversationalComponents, type WhatsappConversationalComponent as WhatsappConversationalComponent, type ConversationalComponentListResponse as ConversationalComponentListResponse, type ConversationalComponentPatchAllResponse as ConversationalComponentPatchAllResponse, type ConversationalComponentPatchAllParams as ConversationalComponentPatchAllParams, };
|
|
347
|
+
export { CallingRouting as CallingRouting, type WhatsappCallingRoutingData as WhatsappCallingRoutingData, type CallingRoutingListResponse as CallingRoutingListResponse, type CallingRoutingPatchAllResponse as CallingRoutingPatchAllResponse, type CallingRoutingPatchAllParams as CallingRoutingPatchAllParams, };
|
|
344
348
|
}
|
|
345
349
|
//# sourceMappingURL=phone-numbers.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"phone-numbers.d.mts","sourceRoot":"","sources":["../../../src/resources/whatsapp/phone-numbers/phone-numbers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,MAAM,yBAAqB;AACvC,OAAO,KAAK,kBAAkB,+BAA2B;AACzD,OAAO,EACL,8BAA8B,EAC9B,0BAA0B,EAC1B,4BAA4B,EAC5B,eAAe,EACf,2BAA2B,EAC5B,+BAA2B;AAC5B,OAAO,KAAK,2BAA2B,wCAAoC;AAC3E,OAAO,EACL,mCAAmC,EACnC,qCAAqC,EACrC,uCAAuC,EACvC,wBAAwB,EACxB,+BAA+B,EAChC,wCAAoC;AACrC,OAAO,KAAK,UAAU,8BAA0B;AAChD,OAAO,EACL,OAAO,EACP,uBAAuB,EACvB,mBAAmB,EACnB,qBAAqB,EACrB,mBAAmB,EACpB,8BAA0B;AAC3B,OAAO,EAAE,UAAU,EAAE,sCAAkC;AACvD,OAAO,EACL,qBAAqB,EACrB,KAAK,2BAA2B,EAChC,WAAW,EACZ,qCAAiC;AAElC,OAAO,EAAE,cAAc,EAAE,8CAA0C;AAGnE;;GAEG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C,eAAe,EAAE,kBAAkB,CAAC,eAAe,CAAwD;IAC3G,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IACnE,wBAAwB,EAAE,2BAA2B,CAAC,wBAAwB,CACL;
|
|
1
|
+
{"version":3,"file":"phone-numbers.d.mts","sourceRoot":"","s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+BAA+B,EACvE,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,uCAAuC,IAAI,uCAAuC,EACvF,KAAK,qCAAqC,IAAI,qCAAqC,GACpF,CAAC;IAEF,OAAO,EACL,cAAc,IAAI,cAAc,EAChC,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,4BAA4B,IAAI,4BAA4B,GAClE,CAAC;CACH"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { APIResource } from "../../../core/resource.js";
|
|
2
2
|
import * as Shared from "../../shared.js";
|
|
3
|
+
import * as CallingRoutingAPI from "./calling-routing.js";
|
|
4
|
+
import { CallingRouting, CallingRoutingListResponse, CallingRoutingPatchAllParams, CallingRoutingPatchAllResponse, WhatsappCallingRoutingData } from "./calling-routing.js";
|
|
3
5
|
import * as CallingSettingsAPI from "./calling-settings.js";
|
|
4
6
|
import { CallingSettingRetrieveResponse, CallingSettingUpdateParams, CallingSettingUpdateResponse, CallingSettings, WhatsappCallingSettingsData } from "./calling-settings.js";
|
|
5
7
|
import * as ConversationalComponentsAPI from "./conversational-components.js";
|
|
@@ -16,6 +18,7 @@ export declare class PhoneNumbers extends APIResource {
|
|
|
16
18
|
callingSettings: CallingSettingsAPI.CallingSettings;
|
|
17
19
|
profile: ProfileAPI.Profile;
|
|
18
20
|
conversationalComponents: ConversationalComponentsAPI.ConversationalComponents;
|
|
21
|
+
callingRouting: CallingRoutingAPI.CallingRouting;
|
|
19
22
|
/**
|
|
20
23
|
* Returns WhatsApp phone numbers linked to the authenticated Telnyx account.
|
|
21
24
|
*
|
|
@@ -341,5 +344,6 @@ export declare namespace PhoneNumbers {
|
|
|
341
344
|
export { CallingSettings as CallingSettings, type WhatsappCallingSettingsData as WhatsappCallingSettingsData, type CallingSettingRetrieveResponse as CallingSettingRetrieveResponse, type CallingSettingUpdateResponse as CallingSettingUpdateResponse, type CallingSettingUpdateParams as CallingSettingUpdateParams, };
|
|
342
345
|
export { Profile as Profile, type WhatsappProfileData as WhatsappProfileData, type ProfileRetrieveResponse as ProfileRetrieveResponse, type ProfileUpdateResponse as ProfileUpdateResponse, type ProfileUpdateParams as ProfileUpdateParams, };
|
|
343
346
|
export { ConversationalComponents as ConversationalComponents, type WhatsappConversationalComponent as WhatsappConversationalComponent, type ConversationalComponentListResponse as ConversationalComponentListResponse, type ConversationalComponentPatchAllResponse as ConversationalComponentPatchAllResponse, type ConversationalComponentPatchAllParams as ConversationalComponentPatchAllParams, };
|
|
347
|
+
export { CallingRouting as CallingRouting, type WhatsappCallingRoutingData as WhatsappCallingRoutingData, type CallingRoutingListResponse as CallingRoutingListResponse, type CallingRoutingPatchAllResponse as CallingRoutingPatchAllResponse, type CallingRoutingPatchAllParams as CallingRoutingPatchAllParams, };
|
|
344
348
|
}
|
|
345
349
|
//# sourceMappingURL=phone-numbers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"phone-numbers.d.ts","sourceRoot":"","sources":["../../../src/resources/whatsapp/phone-numbers/phone-numbers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,KAAK,MAAM,wBAAqB;AACvC,OAAO,KAAK,kBAAkB,8BAA2B;AACzD,OAAO,EACL,8BAA8B,EAC9B,0BAA0B,EAC1B,4BAA4B,EAC5B,eAAe,EACf,2BAA2B,EAC5B,8BAA2B;AAC5B,OAAO,KAAK,2BAA2B,uCAAoC;AAC3E,OAAO,EACL,mCAAmC,EACnC,qCAAqC,EACrC,uCAAuC,EACvC,wBAAwB,EACxB,+BAA+B,EAChC,uCAAoC;AACrC,OAAO,KAAK,UAAU,6BAA0B;AAChD,OAAO,EACL,OAAO,EACP,uBAAuB,EACvB,mBAAmB,EACnB,qBAAqB,EACrB,mBAAmB,EACpB,6BAA0B;AAC3B,OAAO,EAAE,UAAU,EAAE,qCAAkC;AACvD,OAAO,EACL,qBAAqB,EACrB,KAAK,2BAA2B,EAChC,WAAW,EACZ,oCAAiC;AAElC,OAAO,EAAE,cAAc,EAAE,6CAA0C;AAGnE;;GAEG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C,eAAe,EAAE,kBAAkB,CAAC,eAAe,CAAwD;IAC3G,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IACnE,wBAAwB,EAAE,2BAA2B,CAAC,wBAAwB,CACL;
|
|
1
|
+
{"version":3,"file":"phone-numbers.d.ts","sourceRoot":"","sources":["../../../src/resources/whatsapp/phone-numbers/phone-numbers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,KAAK,MAAM,wBAAqB;AACvC,OAAO,KAAK,iBAAiB,6BAA0B;AACvD,OAAO,EACL,cAAc,EACd,0BAA0B,EAC1B,4BAA4B,EAC5B,8BAA8B,EAC9B,0BAA0B,EAC3B,6BAA0B;AAC3B,OAAO,KAAK,kBAAkB,8BAA2B;AACzD,OAAO,EACL,8BAA8B,EAC9B,0BAA0B,EAC1B,4BAA4B,EAC5B,eAAe,EACf,2BAA2B,EAC5B,8BAA2B;AAC5B,OAAO,KAAK,2BAA2B,uCAAoC;AAC3E,OAAO,EACL,mCAAmC,EACnC,qCAAqC,EACrC,uCAAuC,EACvC,wBAAwB,EACxB,+BAA+B,EAChC,uCAAoC;AACrC,OAAO,KAAK,UAAU,6BAA0B;AAChD,OAAO,EACL,OAAO,EACP,uBAAuB,EACvB,mBAAmB,EACnB,qBAAqB,EACrB,mBAAmB,EACpB,6BAA0B;AAC3B,OAAO,EAAE,UAAU,EAAE,qCAAkC;AACvD,OAAO,EACL,qBAAqB,EACrB,KAAK,2BAA2B,EAChC,WAAW,EACZ,oCAAiC;AAElC,OAAO,EAAE,cAAc,EAAE,6CAA0C;AAGnE;;GAEG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C,eAAe,EAAE,kBAAkB,CAAC,e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8BAA8B,EACrE,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;IAEF,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;IAEF,OAAO,EACL,wBAAwB,IAAI,wBAAwB,EACpD,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,uCAAuC,IAAI,uCAAuC,EACvF,KAAK,qCAAqC,IAAI,qCAAqC,GACpF,CAAC;IAEF,OAAO,EACL,cAAc,IAAI,cAAc,EAChC,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,4BAA4B,IAAI,4BAA4B,GAClE,CAAC;CACH"}
|
|
@@ -4,6 +4,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.PhoneNumbers = void 0;
|
|
5
5
|
const tslib_1 = require("../../../internal/tslib.js");
|
|
6
6
|
const resource_1 = require("../../../core/resource.js");
|
|
7
|
+
const CallingRoutingAPI = tslib_1.__importStar(require("./calling-routing.js"));
|
|
8
|
+
const calling_routing_1 = require("./calling-routing.js");
|
|
7
9
|
const CallingSettingsAPI = tslib_1.__importStar(require("./calling-settings.js"));
|
|
8
10
|
const calling_settings_1 = require("./calling-settings.js");
|
|
9
11
|
const ConversationalComponentsAPI = tslib_1.__importStar(require("./conversational-components.js"));
|
|
@@ -22,6 +24,7 @@ class PhoneNumbers extends resource_1.APIResource {
|
|
|
22
24
|
this.callingSettings = new CallingSettingsAPI.CallingSettings(this._client);
|
|
23
25
|
this.profile = new ProfileAPI.Profile(this._client);
|
|
24
26
|
this.conversationalComponents = new ConversationalComponentsAPI.ConversationalComponents(this._client);
|
|
27
|
+
this.callingRouting = new CallingRoutingAPI.CallingRouting(this._client);
|
|
25
28
|
}
|
|
26
29
|
/**
|
|
27
30
|
* Returns WhatsApp phone numbers linked to the authenticated Telnyx account.
|
|
@@ -139,4 +142,5 @@ exports.PhoneNumbers = PhoneNumbers;
|
|
|
139
142
|
PhoneNumbers.CallingSettings = calling_settings_1.CallingSettings;
|
|
140
143
|
PhoneNumbers.Profile = profile_1.Profile;
|
|
141
144
|
PhoneNumbers.ConversationalComponents = conversational_components_1.ConversationalComponents;
|
|
145
|
+
PhoneNumbers.CallingRouting = calling_routing_1.CallingRouting;
|
|
142
146
|
//# sourceMappingURL=phone-numbers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"phone-numbers.js","sourceRoot":"","sources":["../../../src/resources/whatsapp/phone-numbers/phone-numbers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AAErD,kFAAyD;AACzD,4DAM4B;AAC5B,oGAA2E;AAC3E,8EAMqC;AACrC,yEAAgD;AAChD,kDAM2B;AAE3B,4DAIkC;AAClC,0DAAyD;AAEzD,0DAAoD;AAEpD;;GAEG;AACH,MAAa,YAAa,SAAQ,sBAAW;IAA7C;;QACE,oBAAe,GAAuC,IAAI,kBAAkB,CAAC,eAAe,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC3G,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,6BAAwB,GACtB,IAAI,2BAA2B,CAAC,wBAAwB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"phone-numbers.js","sourceRoot":"","sources":["../../../src/resources/whatsapp/phone-numbers/phone-numbers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AAErD,gFAAuD;AACvD,0DAM2B;AAC3B,k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AAG,oDAAwB,CAAC;AACjE,YAAY,CAAC,cAAc,GAAG,gCAAc,CAAC"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
+
import * as CallingRoutingAPI from "./calling-routing.mjs";
|
|
4
|
+
import { CallingRouting, } from "./calling-routing.mjs";
|
|
3
5
|
import * as CallingSettingsAPI from "./calling-settings.mjs";
|
|
4
6
|
import { CallingSettings, } from "./calling-settings.mjs";
|
|
5
7
|
import * as ConversationalComponentsAPI from "./conversational-components.mjs";
|
|
@@ -18,6 +20,7 @@ export class PhoneNumbers extends APIResource {
|
|
|
18
20
|
this.callingSettings = new CallingSettingsAPI.CallingSettings(this._client);
|
|
19
21
|
this.profile = new ProfileAPI.Profile(this._client);
|
|
20
22
|
this.conversationalComponents = new ConversationalComponentsAPI.ConversationalComponents(this._client);
|
|
23
|
+
this.callingRouting = new CallingRoutingAPI.CallingRouting(this._client);
|
|
21
24
|
}
|
|
22
25
|
/**
|
|
23
26
|
* Returns WhatsApp phone numbers linked to the authenticated Telnyx account.
|
|
@@ -134,4 +137,5 @@ export class PhoneNumbers extends APIResource {
|
|
|
134
137
|
PhoneNumbers.CallingSettings = CallingSettings;
|
|
135
138
|
PhoneNumbers.Profile = Profile;
|
|
136
139
|
PhoneNumbers.ConversationalComponents = ConversationalComponents;
|
|
140
|
+
PhoneNumbers.CallingRouting = CallingRouting;
|
|
137
141
|
//# sourceMappingURL=phone-numbers.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"phone-numbers.mjs","sourceRoot":"","sources":["../../../src/resources/whatsapp/phone-numbers/phone-numbers.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AAErD,OAAO,KAAK,kBAAkB,+BAA2B;AACzD,OAAO,EAIL,eAAe,GAEhB,+BAA2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wB;QACjF,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,8BAA8B,WAAW,SAAS,EAAE;YAC/E,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,0BAA0B,CACxB,WAAmB,EACnB,KAAkD,EAClD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,8BAA8B,WAAW,sBAAsB,EAAE;YAC3F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;OAQG;IACH,GAAG,CACD,QAAiD,EAAE,EACnD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,yBAAyB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,mBAAmB,CACjB,WAAmB,EACnB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,2BAA2B,WAAW,EAAE,EAAE,OAAO,CAAC,CAAC;IACjF,CAAC;CACF;AAsVD,YAAY,CAAC,eAAe,GAAG,eAAe,CAAC;AAC/C,YAAY,CAAC,OAAO,GAAG,OAAO,CAAC;AAC/B,YAAY,CAAC,wBAAwB,GAAG,wBAAwB,CAAC;AACjE,YAAY,CAAC,cAAc,GAAG,cAAc,CAAC"}
|
package/src/client.ts
CHANGED
|
@@ -878,6 +878,16 @@ import {
|
|
|
878
878
|
SiprecConnectorUpdateParams,
|
|
879
879
|
SiprecConnectors,
|
|
880
880
|
} from './resources/siprec-connectors';
|
|
881
|
+
import {
|
|
882
|
+
SpendLimit,
|
|
883
|
+
SpendLimitCreateParams,
|
|
884
|
+
SpendLimitDeleteParams,
|
|
885
|
+
SpendLimitListResponse,
|
|
886
|
+
SpendLimitPeriod,
|
|
887
|
+
SpendLimitResponse,
|
|
888
|
+
SpendLimitUpdateParams,
|
|
889
|
+
SpendLimits,
|
|
890
|
+
} from './resources/spend-limits';
|
|
881
891
|
import {
|
|
882
892
|
NumbersSubNumberOrder,
|
|
883
893
|
SubNumberOrder,
|
|
@@ -1050,6 +1060,7 @@ import {
|
|
|
1050
1060
|
CallAnsweredWebhookEvent,
|
|
1051
1061
|
CallBridged,
|
|
1052
1062
|
CallBridgedWebhookEvent,
|
|
1063
|
+
CallConversationCreatedWebhookEvent,
|
|
1053
1064
|
CallConversationEnded,
|
|
1054
1065
|
CallConversationEndedWebhookEvent,
|
|
1055
1066
|
CallConversationInsightsGenerated,
|
|
@@ -1078,8 +1089,10 @@ import {
|
|
|
1078
1089
|
CallMachineDetectionEndedWebhookEvent,
|
|
1079
1090
|
CallMachineGreetingEnded,
|
|
1080
1091
|
CallMachineGreetingEndedWebhookEvent,
|
|
1092
|
+
CallMachinePremiumCallScreeningDetectedWebhookEvent,
|
|
1081
1093
|
CallMachinePremiumDetectionEnded,
|
|
1082
1094
|
CallMachinePremiumDetectionEndedWebhookEvent,
|
|
1095
|
+
CallMachinePremiumDetectionStartedWebhookEvent,
|
|
1083
1096
|
CallMachinePremiumGreetingEnded,
|
|
1084
1097
|
CallMachinePremiumGreetingEndedWebhookEvent,
|
|
1085
1098
|
CallPaymentCompletedWebhookEvent,
|
|
@@ -1304,19 +1317,25 @@ import {
|
|
|
1304
1317
|
EncryptedMedia,
|
|
1305
1318
|
} from './resources/credential-connections/credential-connections';
|
|
1306
1319
|
import {
|
|
1320
|
+
BpoAuthorizationInput,
|
|
1307
1321
|
Dir,
|
|
1322
|
+
DirBpoLoaParams,
|
|
1323
|
+
DirDeleteResponse,
|
|
1308
1324
|
DirList,
|
|
1309
1325
|
DirListDocumentTypesResponse,
|
|
1310
1326
|
DirListInfringementClaimsParams,
|
|
1311
1327
|
DirListParams,
|
|
1312
1328
|
DirNewLoaParams,
|
|
1313
1329
|
DirResource,
|
|
1330
|
+
DirRetrieveBpoAuthorizationsParams,
|
|
1331
|
+
DirRetrieveBpoAuthorizationsResponse,
|
|
1314
1332
|
DirStatus,
|
|
1315
1333
|
DirUpdateInfringementParams,
|
|
1316
1334
|
DirUpdateParams,
|
|
1317
1335
|
DirWrapped,
|
|
1318
1336
|
DirsDefaultFlatPagination,
|
|
1319
1337
|
Document,
|
|
1338
|
+
SignaturePayload,
|
|
1320
1339
|
} from './resources/dir/dir';
|
|
1321
1340
|
import {
|
|
1322
1341
|
EmailBlock,
|
|
@@ -1450,6 +1469,7 @@ import {
|
|
|
1450
1469
|
WebhookAPIVersion,
|
|
1451
1470
|
} from './resources/fqdn-connections/fqdn-connections';
|
|
1452
1471
|
import { Legacy } from './resources/legacy/legacy';
|
|
1472
|
+
import { LlmTokenGateway } from './resources/llm-token-gateway/llm-token-gateway';
|
|
1453
1473
|
import {
|
|
1454
1474
|
ManagedAccount,
|
|
1455
1475
|
ManagedAccountBalance,
|
|
@@ -3292,6 +3312,17 @@ export class Telnyx {
|
|
|
3292
3312
|
* Machine payment (MPP) account-credit operations. Fund your Telnyx account programmatically from a machine or agent using the Machine Payment Protocol, an HTTP-402 flow settled via Stripe or Tempo.
|
|
3293
3313
|
*/
|
|
3294
3314
|
machinePayments: API.MachinePayments = new API.MachinePayments(this);
|
|
3315
|
+
/**
|
|
3316
|
+
* Daily and monthly spend limits per product. A limit applies to the organization of the authenticated user, or to the user's own account when they belong to no organization; every user of the organization sees and changes the same limits.
|
|
3317
|
+
*
|
|
3318
|
+
* - **Periods.** `daily` covers the current UTC day and `monthly` the current UTC calendar month. The two limits are independent: you can set either, both or neither.
|
|
3319
|
+
* - **Blocking.** When spend in a period goes above the limit (strictly greater), the product is blocked until the period ends: 00:00 UTC the next day for `daily`, 00:00 UTC on the 1st of the next month for `monthly`. A block appears within about 2 minutes (daily) or 10 minutes (monthly) of the spend being recorded.
|
|
3320
|
+
* - **Changes apply immediately.** Creating, updating or deleting a limit checks the period's spend in the same request: raising the limit above the spend, or removing it, lifts that period's block, and lowering it below the spend blocks the product at once. The `evaluation` object in the response says what happened.
|
|
3321
|
+
* - **Supported products.** Today only `inference` supports spend limits. A blocked account gets HTTP 403 with the error title `Inference spend limit reached` (code `10039`) on new billable chat completions, Responses, Anthropic Messages and classification requests; requests already running finish normally. Take the list of products from the list operation.
|
|
3322
|
+
* - **Limits set by Telnyx.** Telnyx support can also set a limit on your account. It is listed with `origin: operator` and you can update or delete it like your own.
|
|
3323
|
+
*/
|
|
3324
|
+
spendLimits: API.SpendLimits = new API.SpendLimits(this);
|
|
3325
|
+
llmTokenGateway: API.LlmTokenGateway = new API.LlmTokenGateway(this);
|
|
3295
3326
|
}
|
|
3296
3327
|
|
|
3297
3328
|
Telnyx.Legacy = Legacy;
|
|
@@ -3482,6 +3513,8 @@ Telnyx.BotChallenge = BotChallenge;
|
|
|
3482
3513
|
Telnyx.BotSessions = BotSessions;
|
|
3483
3514
|
Telnyx.BotSignup = BotSignup;
|
|
3484
3515
|
Telnyx.MachinePayments = MachinePayments;
|
|
3516
|
+
Telnyx.SpendLimits = SpendLimits;
|
|
3517
|
+
Telnyx.LlmTokenGateway = LlmTokenGateway;
|
|
3485
3518
|
|
|
3486
3519
|
export declare namespace Telnyx {
|
|
3487
3520
|
export type RequestOptions = Opts.RequestOptions;
|
|
@@ -3672,6 +3705,7 @@ export declare namespace Telnyx {
|
|
|
3672
3705
|
type ArtifactFailedWebhookEvent as ArtifactFailedWebhookEvent,
|
|
3673
3706
|
type CallAnsweredWebhookEvent as CallAnsweredWebhookEvent,
|
|
3674
3707
|
type CallBridgedWebhookEvent as CallBridgedWebhookEvent,
|
|
3708
|
+
type CallConversationCreatedWebhookEvent as CallConversationCreatedWebhookEvent,
|
|
3675
3709
|
type CallConversationEndedWebhookEvent as CallConversationEndedWebhookEvent,
|
|
3676
3710
|
type CallConversationInsightsGeneratedWebhookEvent as CallConversationInsightsGeneratedWebhookEvent,
|
|
3677
3711
|
type CallCostWebhookEvent as CallCostWebhookEvent,
|
|
@@ -3688,7 +3722,9 @@ export declare namespace Telnyx {
|
|
|
3688
3722
|
type CallLeftQueueWebhookEvent as CallLeftQueueWebhookEvent,
|
|
3689
3723
|
type CallMachineDetectionEndedWebhookEvent as CallMachineDetectionEndedWebhookEvent,
|
|
3690
3724
|
type CallMachineGreetingEndedWebhookEvent as CallMachineGreetingEndedWebhookEvent,
|
|
3725
|
+
type CallMachinePremiumCallScreeningDetectedWebhookEvent as CallMachinePremiumCallScreeningDetectedWebhookEvent,
|
|
3691
3726
|
type CallMachinePremiumDetectionEndedWebhookEvent as CallMachinePremiumDetectionEndedWebhookEvent,
|
|
3727
|
+
type CallMachinePremiumDetectionStartedWebhookEvent as CallMachinePremiumDetectionStartedWebhookEvent,
|
|
3692
3728
|
type CallMachinePremiumGreetingEndedWebhookEvent as CallMachinePremiumGreetingEndedWebhookEvent,
|
|
3693
3729
|
type CallPaymentCompletedWebhookEvent as CallPaymentCompletedWebhookEvent,
|
|
3694
3730
|
type CallPaymentProgressWebhookEvent as CallPaymentProgressWebhookEvent,
|
|
@@ -5352,18 +5388,24 @@ export declare namespace Telnyx {
|
|
|
5352
5388
|
|
|
5353
5389
|
export {
|
|
5354
5390
|
DirResource as DirResource,
|
|
5391
|
+
type BpoAuthorizationInput as BpoAuthorizationInput,
|
|
5355
5392
|
type Dir as Dir,
|
|
5356
5393
|
type DirList as DirList,
|
|
5357
5394
|
type DirStatus as DirStatus,
|
|
5358
5395
|
type DirWrapped as DirWrapped,
|
|
5359
5396
|
type Document as Document,
|
|
5397
|
+
type SignaturePayload as SignaturePayload,
|
|
5398
|
+
type DirDeleteResponse as DirDeleteResponse,
|
|
5360
5399
|
type DirListDocumentTypesResponse as DirListDocumentTypesResponse,
|
|
5400
|
+
type DirRetrieveBpoAuthorizationsResponse as DirRetrieveBpoAuthorizationsResponse,
|
|
5361
5401
|
type DirsDefaultFlatPagination as DirsDefaultFlatPagination,
|
|
5362
5402
|
type DirListParams as DirListParams,
|
|
5363
5403
|
type DirUpdateParams as DirUpdateParams,
|
|
5364
5404
|
type DirListInfringementClaimsParams as DirListInfringementClaimsParams,
|
|
5365
5405
|
type DirUpdateInfringementParams as DirUpdateInfringementParams,
|
|
5366
5406
|
type DirNewLoaParams as DirNewLoaParams,
|
|
5407
|
+
type DirRetrieveBpoAuthorizationsParams as DirRetrieveBpoAuthorizationsParams,
|
|
5408
|
+
type DirBpoLoaParams as DirBpoLoaParams,
|
|
5367
5409
|
};
|
|
5368
5410
|
|
|
5369
5411
|
export {
|
|
@@ -5548,6 +5590,19 @@ export declare namespace Telnyx {
|
|
|
5548
5590
|
type MachinePaymentAccountCreditParams as MachinePaymentAccountCreditParams,
|
|
5549
5591
|
};
|
|
5550
5592
|
|
|
5593
|
+
export {
|
|
5594
|
+
SpendLimits as SpendLimits,
|
|
5595
|
+
type SpendLimit as SpendLimit,
|
|
5596
|
+
type SpendLimitPeriod as SpendLimitPeriod,
|
|
5597
|
+
type SpendLimitResponse as SpendLimitResponse,
|
|
5598
|
+
type SpendLimitListResponse as SpendLimitListResponse,
|
|
5599
|
+
type SpendLimitCreateParams as SpendLimitCreateParams,
|
|
5600
|
+
type SpendLimitDeleteParams as SpendLimitDeleteParams,
|
|
5601
|
+
type SpendLimitUpdateParams as SpendLimitUpdateParams,
|
|
5602
|
+
};
|
|
5603
|
+
|
|
5604
|
+
export { LlmTokenGateway as LlmTokenGateway };
|
|
5605
|
+
|
|
5551
5606
|
export type APIError = API.APIError;
|
|
5552
5607
|
export type AvailablePhoneNumbersMetadata = API.AvailablePhoneNumbersMetadata;
|
|
5553
5608
|
export type AzureVoiceSettings = API.AzureVoiceSettings;
|
package/src/resources/ai/ai.ts
CHANGED
|
@@ -38,7 +38,6 @@ import {
|
|
|
38
38
|
SharedToolResponse,
|
|
39
39
|
SharedToolResponsesDefaultFlatPagination,
|
|
40
40
|
ToolCreateParams,
|
|
41
|
-
ToolDeleteResponse,
|
|
42
41
|
ToolListParams,
|
|
43
42
|
ToolUpdateParams,
|
|
44
43
|
Tools,
|
|
@@ -55,6 +54,7 @@ import {
|
|
|
55
54
|
AssistantChatResponse,
|
|
56
55
|
AssistantCloneParams,
|
|
57
56
|
AssistantCreateParams,
|
|
57
|
+
AssistantDeleteParams,
|
|
58
58
|
AssistantDeleteResponse,
|
|
59
59
|
AssistantGetTexmlResponse,
|
|
60
60
|
AssistantImportsParams,
|
|
@@ -65,6 +65,8 @@ import {
|
|
|
65
65
|
AssistantSendSMSResponse,
|
|
66
66
|
AssistantTool,
|
|
67
67
|
AssistantUpdateParams,
|
|
68
|
+
AssistantWhatsappParams,
|
|
69
|
+
AssistantWhatsappResponse,
|
|
68
70
|
Assistants,
|
|
69
71
|
AssistantsList,
|
|
70
72
|
AudioVisualizerConfig,
|
|
@@ -73,6 +75,7 @@ import {
|
|
|
73
75
|
ComparisonExpression,
|
|
74
76
|
ConversationFlow,
|
|
75
77
|
ConversationFlowReq,
|
|
78
|
+
DelegationSettings,
|
|
76
79
|
EnabledFeatures,
|
|
77
80
|
Expression,
|
|
78
81
|
ExternalLlm,
|
|
@@ -112,6 +115,7 @@ import {
|
|
|
112
115
|
TransferTool,
|
|
113
116
|
VoiceSettings,
|
|
114
117
|
WebhookTool,
|
|
118
|
+
WebsocketSettings,
|
|
115
119
|
WidgetSettings,
|
|
116
120
|
} from './assistants/assistants';
|
|
117
121
|
import * as CollectionsAPI from './collections/collections';
|
|
@@ -398,8 +402,9 @@ export interface ModelMetadata {
|
|
|
398
402
|
is_vision_supported?: boolean;
|
|
399
403
|
|
|
400
404
|
/**
|
|
401
|
-
* Maximum
|
|
402
|
-
*
|
|
405
|
+
* Maximum completion (output) tokens the model may generate per request. This
|
|
406
|
+
* value caps the Chat Completions `max_tokens` default and any larger explicit
|
|
407
|
+
* value on that model. `null` if unconstrained beyond `context_length`.
|
|
403
408
|
*/
|
|
404
409
|
max_completion_tokens?: number | null;
|
|
405
410
|
|
|
@@ -674,6 +679,7 @@ export declare namespace AI {
|
|
|
674
679
|
type ComparisonExpression as ComparisonExpression,
|
|
675
680
|
type ConversationFlow as ConversationFlow,
|
|
676
681
|
type ConversationFlowReq as ConversationFlowReq,
|
|
682
|
+
type DelegationSettings as DelegationSettings,
|
|
677
683
|
type EnabledFeatures as EnabledFeatures,
|
|
678
684
|
type Expression as Expression,
|
|
679
685
|
type ExternalLlm as ExternalLlm,
|
|
@@ -713,18 +719,22 @@ export declare namespace AI {
|
|
|
713
719
|
type TransferTool as TransferTool,
|
|
714
720
|
type VoiceSettings as VoiceSettings,
|
|
715
721
|
type WebhookTool as WebhookTool,
|
|
722
|
+
type WebsocketSettings as WebsocketSettings,
|
|
716
723
|
type WidgetSettings as WidgetSettings,
|
|
717
724
|
type AssistantDeleteResponse as AssistantDeleteResponse,
|
|
718
725
|
type AssistantChatResponse as AssistantChatResponse,
|
|
719
726
|
type AssistantGetTexmlResponse as AssistantGetTexmlResponse,
|
|
720
727
|
type AssistantSendSMSResponse as AssistantSendSMSResponse,
|
|
728
|
+
type AssistantWhatsappResponse as AssistantWhatsappResponse,
|
|
721
729
|
type AssistantCreateParams as AssistantCreateParams,
|
|
722
730
|
type AssistantImportsParams as AssistantImportsParams,
|
|
731
|
+
type AssistantDeleteParams as AssistantDeleteParams,
|
|
723
732
|
type AssistantRetrieveParams as AssistantRetrieveParams,
|
|
724
733
|
type AssistantUpdateParams as AssistantUpdateParams,
|
|
725
734
|
type AssistantChatParams as AssistantChatParams,
|
|
726
735
|
type AssistantCloneParams as AssistantCloneParams,
|
|
727
736
|
type AssistantSendSMSParams as AssistantSendSMSParams,
|
|
737
|
+
type AssistantWhatsappParams as AssistantWhatsappParams,
|
|
728
738
|
};
|
|
729
739
|
|
|
730
740
|
export {
|
|
@@ -827,7 +837,6 @@ export declare namespace AI {
|
|
|
827
837
|
type PayToolParams as PayToolParams,
|
|
828
838
|
type SharedToolResponse as SharedToolResponse,
|
|
829
839
|
type UpdateDynamicVariablesToolParams as UpdateDynamicVariablesToolParams,
|
|
830
|
-
type ToolDeleteResponse as ToolDeleteResponse,
|
|
831
840
|
type SharedToolResponsesDefaultFlatPagination as SharedToolResponsesDefaultFlatPagination,
|
|
832
841
|
type ToolListParams as ToolListParams,
|
|
833
842
|
type ToolCreateParams as ToolCreateParams,
|