@apteva/integrations 0.15.6 → 0.15.8

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.
@@ -0,0 +1,321 @@
1
+ {
2
+ "slug": "telnyx",
3
+ "name": "Telnyx",
4
+ "description": "Telnyx Programmable Voice and Numbers API. Place and control calls, start bidirectional media streams over WebSockets, and manage phone numbers for AI voice-agent backends.",
5
+ "logo": "https://www.google.com/s2/favicons?domain=telnyx.com&sz=128",
6
+ "categories": [
7
+ "voice",
8
+ "calls",
9
+ "telephony",
10
+ "phone",
11
+ "communications",
12
+ "ai"
13
+ ],
14
+ "base_url": "https://api.telnyx.com/v2",
15
+ "auth": {
16
+ "types": [
17
+ "bearer"
18
+ ],
19
+ "headers": {
20
+ "Authorization": "Bearer {{token}}",
21
+ "Content-Type": "application/json",
22
+ "Accept": "application/json"
23
+ },
24
+ "credential_fields": [
25
+ {
26
+ "name": "token",
27
+ "label": "API Key",
28
+ "description": "Telnyx API key with Voice API and Numbers permissions.",
29
+ "type": "password",
30
+ "required": true
31
+ },
32
+ {
33
+ "name": "connection_id",
34
+ "label": "Call Control Connection ID",
35
+ "description": "Default Telnyx Voice API connection ID used when placing calls.",
36
+ "required": true
37
+ },
38
+ {
39
+ "name": "phone_number",
40
+ "label": "Default From Number",
41
+ "description": "Default Telnyx phone number to call from, in E.164 format."
42
+ }
43
+ ]
44
+ },
45
+ "health_check": {
46
+ "tool": "list_phone_numbers",
47
+ "input": {
48
+ "page[size]": 1
49
+ }
50
+ },
51
+ "tools": [
52
+ {
53
+ "name": "make_call",
54
+ "description": "Place an outbound Telnyx call. For AI voice agents, pass stream_url plus stream_bidirectional_mode=rtp and stream_bidirectional_codec=L16 or PCMU.",
55
+ "method": "POST",
56
+ "path": "/calls",
57
+ "input_schema": {
58
+ "type": "object",
59
+ "properties": {
60
+ "connection_id": {
61
+ "type": "string",
62
+ "description": "Voice API connection ID. Defaults to the connection credential when omitted."
63
+ },
64
+ "to": {
65
+ "type": "string",
66
+ "description": "Destination phone number in E.164 format."
67
+ },
68
+ "from": {
69
+ "type": "string",
70
+ "description": "Caller ID phone number in E.164 format."
71
+ },
72
+ "stream_url": {
73
+ "type": "string",
74
+ "description": "Optional WebSocket URL for Telnyx media streaming."
75
+ },
76
+ "stream_track": {
77
+ "type": "string",
78
+ "enum": [
79
+ "inbound_track",
80
+ "outbound_track",
81
+ "both_tracks"
82
+ ],
83
+ "default": "inbound_track"
84
+ },
85
+ "stream_bidirectional_mode": {
86
+ "type": "string",
87
+ "enum": [
88
+ "rtp",
89
+ "mp3"
90
+ ],
91
+ "description": "Set to rtp for low-latency AI audio injected back into the call."
92
+ },
93
+ "stream_bidirectional_codec": {
94
+ "type": "string",
95
+ "enum": [
96
+ "PCMU",
97
+ "PCMA",
98
+ "G722",
99
+ "OPUS",
100
+ "AMR-WB",
101
+ "L16"
102
+ ],
103
+ "description": "Codec for audio sent from the WebSocket back to Telnyx."
104
+ },
105
+ "stream_codec": {
106
+ "type": "string",
107
+ "enum": [
108
+ "PCMU",
109
+ "PCMA",
110
+ "G722",
111
+ "OPUS",
112
+ "AMR-WB",
113
+ "L16",
114
+ "default"
115
+ ],
116
+ "description": "Codec for audio streamed from Telnyx to the WebSocket."
117
+ },
118
+ "timeout_secs": {
119
+ "type": "integer",
120
+ "default": 30,
121
+ "minimum": 5,
122
+ "maximum": 600
123
+ },
124
+ "time_limit_secs": {
125
+ "type": "integer",
126
+ "minimum": 30,
127
+ "maximum": 14400
128
+ },
129
+ "client_state": {
130
+ "type": "string",
131
+ "description": "Base64-encoded state copied to subsequent Telnyx webhooks."
132
+ },
133
+ "command_id": {
134
+ "type": "string",
135
+ "description": "Client-provided idempotency key."
136
+ }
137
+ },
138
+ "required": [
139
+ "to",
140
+ "from"
141
+ ]
142
+ },
143
+ "mock_response": {
144
+ "data": {
145
+ "call_control_id": "v2:mock-call-control-id",
146
+ "call_leg_id": "mock-call-leg-id",
147
+ "call_session_id": "mock-call-session-id",
148
+ "record_type": "call"
149
+ }
150
+ }
151
+ },
152
+ {
153
+ "name": "answer_call",
154
+ "description": "Answer an inbound Telnyx call and optionally start media streaming to a WebSocket.",
155
+ "method": "POST",
156
+ "path": "/calls/{call_control_id}/actions/answer",
157
+ "input_schema": {
158
+ "type": "object",
159
+ "properties": {
160
+ "call_control_id": {
161
+ "type": "string"
162
+ },
163
+ "stream_url": {
164
+ "type": "string"
165
+ },
166
+ "stream_track": {
167
+ "type": "string",
168
+ "enum": [
169
+ "inbound_track",
170
+ "outbound_track",
171
+ "both_tracks"
172
+ ]
173
+ },
174
+ "stream_bidirectional_mode": {
175
+ "type": "string",
176
+ "enum": [
177
+ "rtp",
178
+ "mp3"
179
+ ]
180
+ },
181
+ "stream_bidirectional_codec": {
182
+ "type": "string"
183
+ },
184
+ "client_state": {
185
+ "type": "string"
186
+ }
187
+ },
188
+ "required": [
189
+ "call_control_id"
190
+ ]
191
+ }
192
+ },
193
+ {
194
+ "name": "start_streaming",
195
+ "description": "Start media streaming on an active Telnyx call.",
196
+ "method": "POST",
197
+ "path": "/calls/{call_control_id}/actions/streaming_start",
198
+ "input_schema": {
199
+ "type": "object",
200
+ "properties": {
201
+ "call_control_id": {
202
+ "type": "string"
203
+ },
204
+ "stream_url": {
205
+ "type": "string"
206
+ },
207
+ "stream_track": {
208
+ "type": "string",
209
+ "enum": [
210
+ "inbound_track",
211
+ "outbound_track",
212
+ "both_tracks"
213
+ ],
214
+ "default": "inbound_track"
215
+ },
216
+ "stream_codec": {
217
+ "type": "string"
218
+ },
219
+ "stream_bidirectional_mode": {
220
+ "type": "string",
221
+ "enum": [
222
+ "rtp",
223
+ "mp3"
224
+ ]
225
+ },
226
+ "stream_bidirectional_codec": {
227
+ "type": "string"
228
+ }
229
+ },
230
+ "required": [
231
+ "call_control_id",
232
+ "stream_url"
233
+ ]
234
+ }
235
+ },
236
+ {
237
+ "name": "stop_streaming",
238
+ "description": "Stop media streaming on an active Telnyx call.",
239
+ "method": "POST",
240
+ "path": "/calls/{call_control_id}/actions/streaming_stop",
241
+ "input_schema": {
242
+ "type": "object",
243
+ "properties": {
244
+ "call_control_id": {
245
+ "type": "string"
246
+ },
247
+ "stream_id": {
248
+ "type": "string",
249
+ "description": "Optional stream ID to stop."
250
+ }
251
+ },
252
+ "required": [
253
+ "call_control_id"
254
+ ]
255
+ }
256
+ },
257
+ {
258
+ "name": "update_call",
259
+ "description": "End an active Telnyx call. This is the voice.update carrier action used for hangup.",
260
+ "method": "POST",
261
+ "path": "/calls/{call_control_id}/actions/hangup",
262
+ "input_schema": {
263
+ "type": "object",
264
+ "properties": {
265
+ "call_control_id": {
266
+ "type": "string"
267
+ }
268
+ },
269
+ "required": [
270
+ "call_control_id"
271
+ ]
272
+ }
273
+ },
274
+ {
275
+ "name": "list_calls",
276
+ "description": "List Telnyx calls.",
277
+ "method": "GET",
278
+ "path": "/calls",
279
+ "input_schema": {
280
+ "type": "object",
281
+ "properties": {
282
+ "filter[call_session_id]": {
283
+ "type": "string"
284
+ },
285
+ "filter[call_leg_id]": {
286
+ "type": "string"
287
+ },
288
+ "page[size]": {
289
+ "type": "integer"
290
+ },
291
+ "page[number]": {
292
+ "type": "integer"
293
+ }
294
+ }
295
+ }
296
+ },
297
+ {
298
+ "name": "list_phone_numbers",
299
+ "description": "List Telnyx phone numbers.",
300
+ "method": "GET",
301
+ "path": "/phone_numbers",
302
+ "input_schema": {
303
+ "type": "object",
304
+ "properties": {
305
+ "filter[phone_number]": {
306
+ "type": "string"
307
+ },
308
+ "filter[connection_id]": {
309
+ "type": "string"
310
+ },
311
+ "page[size]": {
312
+ "type": "integer"
313
+ },
314
+ "page[number]": {
315
+ "type": "integer"
316
+ }
317
+ }
318
+ }
319
+ }
320
+ ]
321
+ }