telnyx 2.0.0-alpha.1 → 2.0.0-alpha.2
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 +4 -1
- package/VERSION +1 -1
- package/dist/resources/AiAssistants.js +21 -0
- package/dist/resources/AiAudioTranscriptions.js +5 -0
- package/dist/resources/AiChatCompletions.js +5 -0
- package/dist/resources/AiEmbeddings.js +11 -0
- package/dist/resources/AiEmbeddingsBuckets.js +16 -0
- package/dist/resources/AiEmbeddingsSimilaritySearch.js +5 -0
- package/dist/resources/AiModels.js +5 -0
- package/dist/resources/AiSummarize.js +5 -0
- package/dist/telnyx.js +16 -2
- package/dist/types/AccessIpRangesResource.d.ts +1 -1
- package/dist/types/AddressesResource.d.ts +5 -5
- package/dist/types/AiAssistantsResource.d.ts +69 -0
- package/dist/types/AiAudioTranscriptionsResource.d.ts +18 -0
- package/dist/types/AiChatCompletionsResource.d.ts +18 -0
- package/dist/types/AiEmbeddingsBucketsResource.d.ts +46 -0
- package/dist/types/AiEmbeddingsResource.d.ts +43 -0
- package/dist/types/AiEmbeddingsSimilaritySearchResource.d.ts +20 -0
- package/dist/types/AiModelsResource.d.ts +17 -0
- package/dist/types/AiSummarizeResource.d.ts +18 -0
- package/dist/types/AutorespConfigsResource.d.ts +4 -4
- package/dist/types/AvailablePhoneNumbersResource.d.ts +1 -1
- package/dist/types/BalanceResource.d.ts +1 -1
- package/dist/types/BillingGroupsResource.d.ts +5 -5
- package/dist/types/CallsResource.d.ts +30 -30
- package/dist/types/MessagingProfileMetricsResource.d.ts +1 -1
- package/dist/types/MessagingProfilesResource.d.ts +8 -8
- package/dist/types/StorageBucketsResource.d.ts +5 -5
- package/dist/types/index.d.ts +17 -0
- package/dist/types/lib.d.ts +1 -1
- package/package.json +1 -1
- package/dist/resources/AI.js +0 -40
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
## v2
|
|
4
4
|
|
|
5
|
+
### v2.0.0-alpha.2
|
|
6
|
+
|
|
7
|
+
- Fix `AI` resource methods and created nested structure
|
|
8
|
+
|
|
5
9
|
### v2.0.0-alpha.1
|
|
6
10
|
|
|
7
11
|
- Update actions workflow versions to v4 and `.npmignore` to v2
|
|
@@ -43,7 +47,6 @@
|
|
|
43
47
|
- Remove duplicated `BulkPhoneNumberCampaigns` resource
|
|
44
48
|
- Remove duplicated `BulkPhoneNumberOperations` resource
|
|
45
49
|
|
|
46
|
-
|
|
47
50
|
## v1
|
|
48
51
|
|
|
49
52
|
### v1.26.2
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.0.0-alpha.
|
|
1
|
+
2.0.0-alpha.2
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import TelnyxResource from '../TelnyxResource';
|
|
2
|
+
const telnyxMethod = TelnyxResource.method;
|
|
3
|
+
export const AiAssistants = TelnyxResource.extend({
|
|
4
|
+
path: 'ai/assistants',
|
|
5
|
+
includeBasic: ['list', 'create'],
|
|
6
|
+
retrieve: telnyxMethod({
|
|
7
|
+
method: 'GET',
|
|
8
|
+
path: '/{assistant_id}',
|
|
9
|
+
urlParams: ['assistant_id'],
|
|
10
|
+
}),
|
|
11
|
+
update: telnyxMethod({
|
|
12
|
+
method: 'POST',
|
|
13
|
+
path: '/{assistant_id}',
|
|
14
|
+
urlParams: ['assistant_id'],
|
|
15
|
+
}),
|
|
16
|
+
del: telnyxMethod({
|
|
17
|
+
method: 'DELETE',
|
|
18
|
+
path: '/{assistant_id}',
|
|
19
|
+
urlParams: ['assistant_id'],
|
|
20
|
+
}),
|
|
21
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import TelnyxResource from '../TelnyxResource';
|
|
2
|
+
const telnyxMethod = TelnyxResource.method;
|
|
3
|
+
export const AiEmbeddings = TelnyxResource.extend({
|
|
4
|
+
path: 'ai/embeddings',
|
|
5
|
+
includeBasic: ['list', 'create'],
|
|
6
|
+
retrieve: telnyxMethod({
|
|
7
|
+
method: 'GET',
|
|
8
|
+
path: '/{task_id}',
|
|
9
|
+
urlParams: ['task_id'],
|
|
10
|
+
}),
|
|
11
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import TelnyxResource from '../TelnyxResource';
|
|
2
|
+
const telnyxMethod = TelnyxResource.method;
|
|
3
|
+
export const AiEmbeddingsBuckets = TelnyxResource.extend({
|
|
4
|
+
path: 'ai/embeddings/buckets',
|
|
5
|
+
includeBasic: ['list'],
|
|
6
|
+
retrieve: telnyxMethod({
|
|
7
|
+
method: 'GET',
|
|
8
|
+
path: '/{bucket_name}',
|
|
9
|
+
urlParams: ['bucket_name'],
|
|
10
|
+
}),
|
|
11
|
+
del: telnyxMethod({
|
|
12
|
+
method: 'DELETE',
|
|
13
|
+
path: '/{bucket_name}',
|
|
14
|
+
urlParams: ['bucket_name'],
|
|
15
|
+
}),
|
|
16
|
+
});
|
package/dist/telnyx.js
CHANGED
|
@@ -11,7 +11,14 @@ import { ActionsSimCards } from './resources/ActionsSimCards';
|
|
|
11
11
|
import { ActivateDeactivateBulkCredentials } from './resources/ActivateDeactivateBulkCredentials';
|
|
12
12
|
import { Addresses } from './resources/Addresses';
|
|
13
13
|
import { AutorespConfigs } from './resources/AutorespConfigs';
|
|
14
|
-
import {
|
|
14
|
+
import { AiAssistants } from './resources/AiAssistants';
|
|
15
|
+
import { AiAudioTranscriptions } from './resources/AiAudioTranscriptions';
|
|
16
|
+
import { AiChatCompletions } from './resources/AiChatCompletions';
|
|
17
|
+
import { AiEmbeddings } from './resources/AiEmbeddings';
|
|
18
|
+
import { AiEmbeddingsBuckets } from './resources/AiEmbeddingsBuckets';
|
|
19
|
+
import { AiEmbeddingsSimilaritySearch } from './resources/AiEmbeddingsSimilaritySearch';
|
|
20
|
+
import { AiModels } from './resources/AiModels';
|
|
21
|
+
import { AiSummarize } from './resources/AiSummarize';
|
|
15
22
|
import { AuthenticationProviders } from './resources/AuthenticationProviders';
|
|
16
23
|
import { AvailablePhoneNumbers } from './resources/AvailablePhoneNumbers';
|
|
17
24
|
import { Balance } from './resources/Balance';
|
|
@@ -179,7 +186,14 @@ export function createTelnyx() {
|
|
|
179
186
|
ActivateDeactivateBulkCredentials,
|
|
180
187
|
Addresses,
|
|
181
188
|
AutorespConfigs,
|
|
182
|
-
|
|
189
|
+
AiAssistants,
|
|
190
|
+
AiAudioTranscriptions,
|
|
191
|
+
AiChatCompletions,
|
|
192
|
+
AiEmbeddings,
|
|
193
|
+
AiEmbeddingsBuckets,
|
|
194
|
+
AiEmbeddingsSimilaritySearch,
|
|
195
|
+
AiModels,
|
|
196
|
+
AiSummarize,
|
|
183
197
|
AuthenticationProviders,
|
|
184
198
|
AvailablePhoneNumbers,
|
|
185
199
|
Balance,
|
|
@@ -12,7 +12,7 @@ declare module 'telnyx' {
|
|
|
12
12
|
paths['/access_ip_ranges']['get']['parameters']['query'];
|
|
13
13
|
|
|
14
14
|
type AccessIpRangesListResponse =
|
|
15
|
-
paths['/access_ip_ranges']['get']['responses']['200']['content']['application/json']
|
|
15
|
+
paths['/access_ip_ranges']['get']['responses']['200']['content']['application/json'];
|
|
16
16
|
|
|
17
17
|
type AccessIpRangesDelId =
|
|
18
18
|
paths['/access_ip_ranges/{access_ip_range_id}']['delete']['parameters']['path']['access_ip_range_id'];
|
|
@@ -9,25 +9,25 @@ declare module 'telnyx' {
|
|
|
9
9
|
paths['/addresses/{id}']['get']['parameters']['query'];
|
|
10
10
|
|
|
11
11
|
type AddressesRetrieveResponse =
|
|
12
|
-
paths['/addresses/{id}']['get']['responses']['200']['content']['application/json']
|
|
12
|
+
paths['/addresses/{id}']['get']['responses']['200']['content']['application/json'];
|
|
13
13
|
|
|
14
14
|
type AddressesCreateParams =
|
|
15
15
|
paths['/addresses']['post']['requestBody']['content']['application/json'];
|
|
16
16
|
|
|
17
17
|
type AddressesCreateResponse =
|
|
18
|
-
paths['/addresses']['post']['responses']['200']['content']['application/json']
|
|
18
|
+
paths['/addresses']['post']['responses']['200']['content']['application/json'];
|
|
19
19
|
|
|
20
20
|
type AddressesValidateParams =
|
|
21
21
|
paths['/addresses/actions/validate']['post']['requestBody']['content']['application/json'];
|
|
22
22
|
|
|
23
23
|
type AddressesValidateResponse =
|
|
24
|
-
paths['/addresses/actions/validate']['post']['responses']['200']['content']['application/json']
|
|
24
|
+
paths['/addresses/actions/validate']['post']['responses']['200']['content']['application/json'];
|
|
25
25
|
|
|
26
26
|
type AddressesListParams =
|
|
27
27
|
paths['/addresses']['get']['parameters']['query'];
|
|
28
28
|
|
|
29
29
|
type AddressesListResponse =
|
|
30
|
-
paths['/addresses']['get']['responses']['200']['content']['application/json']
|
|
30
|
+
paths['/addresses']['get']['responses']['200']['content']['application/json'];
|
|
31
31
|
|
|
32
32
|
type AddressesDelId =
|
|
33
33
|
paths['/addresses/{id}']['delete']['parameters']['path']['id'];
|
|
@@ -36,7 +36,7 @@ declare module 'telnyx' {
|
|
|
36
36
|
paths['/addresses/{id}']['delete']['parameters']['query'];
|
|
37
37
|
|
|
38
38
|
type AddressesDelResponse =
|
|
39
|
-
paths['/addresses/{id}']['delete']['responses']['200']['content']['application/json']
|
|
39
|
+
paths['/addresses/{id}']['delete']['responses']['200']['content']['application/json'];
|
|
40
40
|
|
|
41
41
|
type AddressesNestedMethods = {
|
|
42
42
|
del: AddressesResource['del'];
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import {paths} from './TelnyxAPI.js';
|
|
2
|
+
|
|
3
|
+
declare module 'telnyx' {
|
|
4
|
+
namespace Telnyx {
|
|
5
|
+
type AiAssistantsRetrieveId =
|
|
6
|
+
paths['/ai/assistants/{assistant_id}']['get']['parameters']['path']['assistant_id'];
|
|
7
|
+
|
|
8
|
+
type AiAssistantsRetrieveResponse =
|
|
9
|
+
paths['/ai/assistants/{assistant_id}']['get']['responses']['200']['content']['application/json'];
|
|
10
|
+
|
|
11
|
+
type AiAssistantsListParams =
|
|
12
|
+
paths['/ai/assistants']['get']['parameters']['query'];
|
|
13
|
+
|
|
14
|
+
type AiAssistantsListResponse =
|
|
15
|
+
paths['/ai/assistants']['get']['responses']['200']['content']['application/json'];
|
|
16
|
+
|
|
17
|
+
type AiAssistantsCreateParams =
|
|
18
|
+
paths['/ai/assistants']['post']['requestBody']['content']['application/json'];
|
|
19
|
+
|
|
20
|
+
type AiAssistantsCreateResponse =
|
|
21
|
+
paths['/ai/assistants']['post']['responses']['200']['content']['application/json'];
|
|
22
|
+
|
|
23
|
+
type AiAssistantsDelId =
|
|
24
|
+
paths['/ai/assistants/{assistant_id}']['delete']['parameters']['path']['assistant_id'];
|
|
25
|
+
|
|
26
|
+
type AiAssistantsDelParams =
|
|
27
|
+
paths['/ai/assistants/{assistant_id}']['delete']['parameters']['query'];
|
|
28
|
+
|
|
29
|
+
type AiAssistantsDelResponse =
|
|
30
|
+
paths['/ai/assistants/{assistant_id}']['delete']['responses']['200']['content']['application/json'];
|
|
31
|
+
|
|
32
|
+
type AiAssistantsUpdateId =
|
|
33
|
+
paths['/ai/assistants/{assistant_id}']['post']['parameters']['path']['assistant_id'];
|
|
34
|
+
|
|
35
|
+
type AiAssistantsUpdateParams =
|
|
36
|
+
paths['/ai/assistants/{assistant_id}']['post']['requestBody']['content']['application/json'];
|
|
37
|
+
|
|
38
|
+
type AiAssistantsUpdateResponse =
|
|
39
|
+
paths['/ai/assistants/{assistant_id}']['post']['responses']['200']['content']['application/json'];
|
|
40
|
+
|
|
41
|
+
class AiAssistantsResource {
|
|
42
|
+
retrieve(
|
|
43
|
+
id: AiAssistantsRetrieveId,
|
|
44
|
+
options?: RequestOptions,
|
|
45
|
+
): Promise<Telnyx.Response<Telnyx.AiAssistantsRetrieveResponse>>;
|
|
46
|
+
|
|
47
|
+
list(
|
|
48
|
+
params?: AiAssistantsListParams,
|
|
49
|
+
options?: RequestOptions,
|
|
50
|
+
): Promise<Telnyx.Response<Telnyx.AiAssistantsListResponse>>;
|
|
51
|
+
|
|
52
|
+
create(
|
|
53
|
+
params: AiAssistantsCreateParams,
|
|
54
|
+
options?: RequestOptions,
|
|
55
|
+
): Promise<Telnyx.Response<Telnyx.AiAssistantsCreateResponse>>;
|
|
56
|
+
|
|
57
|
+
del(
|
|
58
|
+
id: AiAssistantsDelId,
|
|
59
|
+
options?: RequestOptions,
|
|
60
|
+
): Promise<Telnyx.Response<Telnyx.AiAssistantsDelResponse>>;
|
|
61
|
+
|
|
62
|
+
update(
|
|
63
|
+
id: AiAssistantsUpdateId,
|
|
64
|
+
params: AiAssistantsUpdateParams,
|
|
65
|
+
options?: RequestOptions,
|
|
66
|
+
): Promise<Telnyx.Response<Telnyx.AiAssistantsUpdateResponse>>;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {paths} from './TelnyxAPI.js';
|
|
2
|
+
|
|
3
|
+
declare module 'telnyx' {
|
|
4
|
+
namespace Telnyx {
|
|
5
|
+
type AiAudioTranscriptionsCreateParams =
|
|
6
|
+
paths['/ai/audio/transcriptions']['post']['requestBody']['content']['multipart/form-data'];
|
|
7
|
+
|
|
8
|
+
type AiAudioTranscriptionsCreateResponse =
|
|
9
|
+
paths['/ai/audio/transcriptions']['post']['responses']['200']['content']['application/json'];
|
|
10
|
+
|
|
11
|
+
class AiAudioTranscriptionsResource {
|
|
12
|
+
create(
|
|
13
|
+
params: AiAudioTranscriptionsCreateParams,
|
|
14
|
+
options?: RequestOptions,
|
|
15
|
+
): Promise<Telnyx.Response<Telnyx.AiAudioTranscriptionsCreateResponse>>;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {paths} from './TelnyxAPI.js';
|
|
2
|
+
|
|
3
|
+
declare module 'telnyx' {
|
|
4
|
+
namespace Telnyx {
|
|
5
|
+
type AiChatCompletionsCreateParams =
|
|
6
|
+
paths['/ai/chat/completions']['post']['requestBody']['content']['application/json'];
|
|
7
|
+
|
|
8
|
+
type AiChatCompletionsCreateResponse =
|
|
9
|
+
paths['/ai/chat/completions']['post']['responses']['200']['content']['application/json'];
|
|
10
|
+
|
|
11
|
+
class AiChatCompletionsResource {
|
|
12
|
+
create(
|
|
13
|
+
params: AiChatCompletionsCreateParams,
|
|
14
|
+
options?: RequestOptions,
|
|
15
|
+
): Promise<Telnyx.Response<Telnyx.AiChatCompletionsCreateResponse>>;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import {paths} from './TelnyxAPI.js';
|
|
2
|
+
|
|
3
|
+
declare module 'telnyx' {
|
|
4
|
+
namespace Telnyx {
|
|
5
|
+
type AiEmbeddingsBucketsListParams =
|
|
6
|
+
paths['/ai/embeddings/buckets']['get']['parameters']['query'];
|
|
7
|
+
|
|
8
|
+
type AiEmbeddingsBucketsListResponse =
|
|
9
|
+
paths['/ai/embeddings/buckets']['get']['responses']['200']['content']['application/json'];
|
|
10
|
+
|
|
11
|
+
type AiEmbeddingsBucketsRetrieveId =
|
|
12
|
+
paths['/ai/embeddings/buckets/{bucket_name}']['get']['parameters']['path']['bucket_name'];
|
|
13
|
+
|
|
14
|
+
type AiEmbeddingsBucketsRetrieveParams =
|
|
15
|
+
paths['/ai/embeddings/buckets/{bucket_name}']['get']['parameters']['query'];
|
|
16
|
+
|
|
17
|
+
type AiEmbeddingsBucketsRetrieveResponse =
|
|
18
|
+
paths['/ai/embeddings/buckets/{bucket_name}']['get']['responses']['200']['content']['application/json'];
|
|
19
|
+
|
|
20
|
+
type AiEmbeddingsBucketsDelId =
|
|
21
|
+
paths['/ai/embeddings/buckets/{bucket_name}']['delete']['parameters']['path']['bucket_name'];
|
|
22
|
+
|
|
23
|
+
type AiEmbeddingsBucketsDelParams =
|
|
24
|
+
paths['/ai/embeddings/buckets/{bucket_name}']['delete']['parameters']['query'];
|
|
25
|
+
|
|
26
|
+
type AiEmbeddingsBucketsDelResponse =
|
|
27
|
+
paths['/ai/embeddings/buckets/{bucket_name}']['delete']['responses']['200']['content'];
|
|
28
|
+
|
|
29
|
+
class AiEmbeddingsBucketsResource {
|
|
30
|
+
list(
|
|
31
|
+
params?: AiEmbeddingsBucketsListParams,
|
|
32
|
+
options?: RequestOptions,
|
|
33
|
+
): Promise<Telnyx.Response<Telnyx.AiEmbeddingsBucketsListResponse>>;
|
|
34
|
+
|
|
35
|
+
retrieve(
|
|
36
|
+
id: AiEmbeddingsBucketsRetrieveId,
|
|
37
|
+
options?: RequestOptions,
|
|
38
|
+
): Promise<Telnyx.Response<Telnyx.AiEmbeddingsBucketsRetrieveResponse>>;
|
|
39
|
+
|
|
40
|
+
del(
|
|
41
|
+
id: AiEmbeddingsBucketsDelId,
|
|
42
|
+
options?: RequestOptions,
|
|
43
|
+
): Promise<Telnyx.Response<Telnyx.AiEmbeddingsBucketsDelResponse>>;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import {paths} from './TelnyxAPI.js';
|
|
2
|
+
|
|
3
|
+
declare module 'telnyx' {
|
|
4
|
+
namespace Telnyx {
|
|
5
|
+
type AiEmbeddingsRetrieveId =
|
|
6
|
+
paths['/ai/embeddings/{task_id}']['get']['parameters']['path']['task_id'];
|
|
7
|
+
|
|
8
|
+
type AiEmbeddingsRetrieveParams =
|
|
9
|
+
paths['/ai/embeddings/{task_id}']['get']['parameters']['query'];
|
|
10
|
+
|
|
11
|
+
type AiEmbeddingsRetrieveResponse =
|
|
12
|
+
paths['/ai/embeddings/{task_id}']['get']['responses']['200']['content']['application/json'];
|
|
13
|
+
|
|
14
|
+
type AiEmbeddingsListParams =
|
|
15
|
+
paths['/ai/embeddings']['get']['parameters']['query'];
|
|
16
|
+
|
|
17
|
+
type AiEmbeddingsListResponse =
|
|
18
|
+
paths['/ai/embeddings']['get']['responses']['200']['content']['application/json'];
|
|
19
|
+
|
|
20
|
+
type AiEmbeddingsCreateParams =
|
|
21
|
+
paths['/ai/embeddings']['post']['requestBody']['content']['application/json'];
|
|
22
|
+
|
|
23
|
+
type AiEmbeddingsCreateResponse =
|
|
24
|
+
paths['/ai/embeddings']['post']['responses']['200']['content']['application/json'];
|
|
25
|
+
|
|
26
|
+
class AiEmbeddingsResource {
|
|
27
|
+
retrieve(
|
|
28
|
+
id: AiEmbeddingsRetrieveId,
|
|
29
|
+
options?: RequestOptions,
|
|
30
|
+
): Promise<Telnyx.Response<Telnyx.AiEmbeddingsRetrieveResponse>>;
|
|
31
|
+
|
|
32
|
+
list(
|
|
33
|
+
params?: AiEmbeddingsListParams,
|
|
34
|
+
options?: RequestOptions,
|
|
35
|
+
): Promise<Telnyx.Response<Telnyx.AiEmbeddingsListResponse>>;
|
|
36
|
+
|
|
37
|
+
create(
|
|
38
|
+
params: AiEmbeddingsCreateParams,
|
|
39
|
+
options?: RequestOptions,
|
|
40
|
+
): Promise<Telnyx.Response<Telnyx.AiEmbeddingsCreateResponse>>;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import {paths} from './TelnyxAPI.js';
|
|
2
|
+
|
|
3
|
+
declare module 'telnyx' {
|
|
4
|
+
namespace Telnyx {
|
|
5
|
+
type AiEmbeddingsSimilaritySearchCreateParams =
|
|
6
|
+
paths['/ai/embeddings/similarity-search']['post']['requestBody']['content']['application/json'];
|
|
7
|
+
|
|
8
|
+
type AiEmbeddingsSimilaritySearchCreateResponse =
|
|
9
|
+
paths['/ai/embeddings/similarity-search']['post']['responses']['200']['content']['application/json'];
|
|
10
|
+
|
|
11
|
+
class AiEmbeddingsSimilaritySearchResource {
|
|
12
|
+
create(
|
|
13
|
+
params: AiEmbeddingsSimilaritySearchCreateParams,
|
|
14
|
+
options?: RequestOptions,
|
|
15
|
+
): Promise<
|
|
16
|
+
Telnyx.Response<Telnyx.AiEmbeddingsSimilaritySearchCreateResponse>
|
|
17
|
+
>;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import {paths} from './TelnyxAPI.js';
|
|
2
|
+
|
|
3
|
+
declare module 'telnyx' {
|
|
4
|
+
namespace Telnyx {
|
|
5
|
+
type AiModelsListParams = paths['/ai/models']['get']['parameters']['query'];
|
|
6
|
+
|
|
7
|
+
type AiModelsListResponse =
|
|
8
|
+
paths['/ai/models']['get']['responses']['200']['content']['application/json'];
|
|
9
|
+
|
|
10
|
+
class AiModelsResource {
|
|
11
|
+
list(
|
|
12
|
+
params?: AiModelsListParams,
|
|
13
|
+
options?: RequestOptions,
|
|
14
|
+
): Promise<Telnyx.Response<Telnyx.AiModelsListResponse>>;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {paths} from './TelnyxAPI.js';
|
|
2
|
+
|
|
3
|
+
declare module 'telnyx' {
|
|
4
|
+
namespace Telnyx {
|
|
5
|
+
type AiSummarizeCreateParams =
|
|
6
|
+
paths['/ai/summarize']['post']['requestBody']['content']['application/json'];
|
|
7
|
+
|
|
8
|
+
type AiSummarizeCreateResponse =
|
|
9
|
+
paths['/ai/summarize']['post']['responses']['200']['content']['application/json'];
|
|
10
|
+
|
|
11
|
+
class AiSummarizeResource {
|
|
12
|
+
create(
|
|
13
|
+
params: AiSummarizeCreateParams,
|
|
14
|
+
options?: RequestOptions,
|
|
15
|
+
): Promise<Telnyx.Response<Telnyx.AiSummarizeCreateResponse>>;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -6,7 +6,7 @@ declare module 'telnyx' {
|
|
|
6
6
|
paths['/messaging_profiles/{profile_id}/autoresp_configs/{autoresp_cfg_id}']['get']['parameters']['path'];
|
|
7
7
|
|
|
8
8
|
type AutorespConfigsRetrieveResponse =
|
|
9
|
-
paths['/messaging_profiles/{profile_id}/autoresp_configs/{autoresp_cfg_id}']['get']['responses']['200']['content']['application/json']
|
|
9
|
+
paths['/messaging_profiles/{profile_id}/autoresp_configs/{autoresp_cfg_id}']['get']['responses']['200']['content']['application/json'];
|
|
10
10
|
|
|
11
11
|
type AutorespConfigsCreatePathParams =
|
|
12
12
|
paths['/messaging_profiles/{profile_id}/autoresp_configs']['post']['parameters']['path'];
|
|
@@ -15,7 +15,7 @@ declare module 'telnyx' {
|
|
|
15
15
|
paths['/messaging_profiles/{profile_id}/autoresp_configs']['post']['requestBody']['content']['application/json'];
|
|
16
16
|
|
|
17
17
|
type AutorespConfigsCreateResponse =
|
|
18
|
-
paths['/messaging_profiles/{profile_id}/autoresp_configs']['post']['responses']['200']['content']['application/json']
|
|
18
|
+
paths['/messaging_profiles/{profile_id}/autoresp_configs']['post']['responses']['200']['content']['application/json'];
|
|
19
19
|
|
|
20
20
|
type AutorespConfigsListPathParams =
|
|
21
21
|
paths['/messaging_profiles/{profile_id}/autoresp_configs']['get']['parameters']['path'];
|
|
@@ -24,7 +24,7 @@ declare module 'telnyx' {
|
|
|
24
24
|
paths['/messaging_profiles/{profile_id}/autoresp_configs']['get']['parameters']['query'];
|
|
25
25
|
|
|
26
26
|
type AutorespConfigsListResponse =
|
|
27
|
-
paths['/messaging_profiles/{profile_id}/autoresp_configs']['get']['responses']['200']['content']['application/json']
|
|
27
|
+
paths['/messaging_profiles/{profile_id}/autoresp_configs']['get']['responses']['200']['content']['application/json'];
|
|
28
28
|
|
|
29
29
|
type AutorespConfigsDelPathParams =
|
|
30
30
|
paths['/messaging_profiles/{profile_id}/autoresp_configs/{autoresp_cfg_id}']['delete']['parameters']['path'];
|
|
@@ -39,7 +39,7 @@ declare module 'telnyx' {
|
|
|
39
39
|
paths['/messaging_profiles/{profile_id}/autoresp_configs/{autoresp_cfg_id}']['put']['requestBody']['content']['application/json'];
|
|
40
40
|
|
|
41
41
|
type AutorespConfigsUpdateResponse =
|
|
42
|
-
paths['/messaging_profiles/{profile_id}/autoresp_configs/{autoresp_cfg_id}']['put']['responses']['200']['content']['application/json']
|
|
42
|
+
paths['/messaging_profiles/{profile_id}/autoresp_configs/{autoresp_cfg_id}']['put']['responses']['200']['content']['application/json'];
|
|
43
43
|
|
|
44
44
|
class AutorespConfigsResource {
|
|
45
45
|
retrieve(
|
|
@@ -6,7 +6,7 @@ declare module 'telnyx' {
|
|
|
6
6
|
paths['/available_phone_numbers']['get']['parameters']['query'];
|
|
7
7
|
|
|
8
8
|
type AvailablePhoneNumbersListResponse =
|
|
9
|
-
paths['/available_phone_numbers']['get']['responses']['200']['content']['application/json']
|
|
9
|
+
paths['/available_phone_numbers']['get']['responses']['200']['content']['application/json'];
|
|
10
10
|
|
|
11
11
|
class AvailablePhoneNumbersResource {
|
|
12
12
|
list(
|
|
@@ -6,7 +6,7 @@ declare module 'telnyx' {
|
|
|
6
6
|
paths['/balance']['get']['parameters']['query'];
|
|
7
7
|
|
|
8
8
|
type BalanceRetrieveResponse =
|
|
9
|
-
paths['/balance']['get']['responses']['200']['content']['application/json']
|
|
9
|
+
paths['/balance']['get']['responses']['200']['content']['application/json'];
|
|
10
10
|
|
|
11
11
|
class BalanceResource {
|
|
12
12
|
/** Get user balance details */
|
|
@@ -9,19 +9,19 @@ declare module 'telnyx' {
|
|
|
9
9
|
paths['/billing_groups/{id}']['get']['parameters']['query'];
|
|
10
10
|
|
|
11
11
|
type BillingGroupsRetrieveResponse =
|
|
12
|
-
paths['/billing_groups/{id}']['get']['responses']['200']['content']['application/json']
|
|
12
|
+
paths['/billing_groups/{id}']['get']['responses']['200']['content']['application/json'];
|
|
13
13
|
|
|
14
14
|
type BillingGroupsListParams =
|
|
15
15
|
paths['/billing_groups']['get']['parameters']['query'];
|
|
16
16
|
|
|
17
17
|
type BillingGroupsListResponse =
|
|
18
|
-
paths['/billing_groups']['get']['responses']['200']['content']['application/json']
|
|
18
|
+
paths['/billing_groups']['get']['responses']['200']['content']['application/json'];
|
|
19
19
|
|
|
20
20
|
type BillingGroupsCreateParams =
|
|
21
21
|
paths['/billing_groups']['post']['requestBody']['content']['application/json'];
|
|
22
22
|
|
|
23
23
|
type BillingGroupsCreateResponse =
|
|
24
|
-
paths['/billing_groups']['post']['responses']['200']['content']['application/json']
|
|
24
|
+
paths['/billing_groups']['post']['responses']['200']['content']['application/json'];
|
|
25
25
|
|
|
26
26
|
type BillingGroupsDelId =
|
|
27
27
|
paths['/billing_groups/{id}']['delete']['parameters']['path']['id'];
|
|
@@ -30,7 +30,7 @@ declare module 'telnyx' {
|
|
|
30
30
|
paths['/billing_groups/{id}']['delete']['parameters']['query'];
|
|
31
31
|
|
|
32
32
|
type BillingGroupsDelResponse =
|
|
33
|
-
paths['/billing_groups/{id}']['delete']['responses']['200']['content']['application/json']
|
|
33
|
+
paths['/billing_groups/{id}']['delete']['responses']['200']['content']['application/json'];
|
|
34
34
|
|
|
35
35
|
type BillingGroupsUpdateId =
|
|
36
36
|
paths['/billing_groups/{id}']['patch']['parameters']['path']['id'];
|
|
@@ -39,7 +39,7 @@ declare module 'telnyx' {
|
|
|
39
39
|
paths['/billing_groups/{id}']['patch']['requestBody']['content']['application/json'];
|
|
40
40
|
|
|
41
41
|
type BillingGroupsUpdateResponse =
|
|
42
|
-
paths['/billing_groups/{id}']['patch']['responses']['200']['content']['application/json']
|
|
42
|
+
paths['/billing_groups/{id}']['patch']['responses']['200']['content']['application/json'];
|
|
43
43
|
|
|
44
44
|
class BillingGroupsResource {
|
|
45
45
|
retrieve(
|
|
@@ -9,13 +9,13 @@ declare module 'telnyx' {
|
|
|
9
9
|
paths['/calls/{call_control_id}']['get']['parameters']['query'];
|
|
10
10
|
|
|
11
11
|
type CallsRetrieveResponse =
|
|
12
|
-
paths['/calls/{call_control_id}']['get']['responses']['200']['content']['application/json']
|
|
12
|
+
paths['/calls/{call_control_id}']['get']['responses']['200']['content']['application/json'];
|
|
13
13
|
|
|
14
14
|
type CallsCreateParams =
|
|
15
15
|
paths['/calls']['post']['requestBody']['content']['application/json'];
|
|
16
16
|
|
|
17
17
|
type CallsCreateResponse =
|
|
18
|
-
paths['/calls']['post']['responses']['200']['content']['application/json']
|
|
18
|
+
paths['/calls']['post']['responses']['200']['content']['application/json'];
|
|
19
19
|
|
|
20
20
|
type CallsAnswerParams =
|
|
21
21
|
paths['/calls/{call_control_id}/actions/answer']['post']['requestBody']['content']['application/json'];
|
|
@@ -75,61 +75,61 @@ declare module 'telnyx' {
|
|
|
75
75
|
paths['/calls/{call_control_id}/actions/leave_queue']['post']['requestBody']['content']['application/json'];
|
|
76
76
|
|
|
77
77
|
type CallsAnswerResponse =
|
|
78
|
-
paths['/calls/{call_control_id}/actions/answer']['post']['responses']['200']['content']['application/json']
|
|
78
|
+
paths['/calls/{call_control_id}/actions/answer']['post']['responses']['200']['content']['application/json'];
|
|
79
79
|
type CallsRejectResponse =
|
|
80
|
-
paths['/calls/{call_control_id}/actions/reject']['post']['responses']['200']['content']['application/json']
|
|
80
|
+
paths['/calls/{call_control_id}/actions/reject']['post']['responses']['200']['content']['application/json'];
|
|
81
81
|
type CallsHangupResponse =
|
|
82
|
-
paths['/calls/{call_control_id}/actions/hangup']['post']['responses']['200']['content']['application/json']
|
|
82
|
+
paths['/calls/{call_control_id}/actions/hangup']['post']['responses']['200']['content']['application/json'];
|
|
83
83
|
type CallsBridgeResponse =
|
|
84
|
-
paths['/calls/{call_control_id}/actions/bridge']['post']['responses']['200']['content']['application/json']
|
|
84
|
+
paths['/calls/{call_control_id}/actions/bridge']['post']['responses']['200']['content']['application/json'];
|
|
85
85
|
type CallsSpeakResponse =
|
|
86
|
-
paths['/calls/{call_control_id}/actions/speak']['post']['responses']['200']['content']['application/json']
|
|
86
|
+
paths['/calls/{call_control_id}/actions/speak']['post']['responses']['200']['content']['application/json'];
|
|
87
87
|
type CallsForkStartResponse =
|
|
88
|
-
paths['/calls/{call_control_id}/actions/fork_start']['post']['responses']['200']['content']['application/json']
|
|
88
|
+
paths['/calls/{call_control_id}/actions/fork_start']['post']['responses']['200']['content']['application/json'];
|
|
89
89
|
type CallsForkStopResponse =
|
|
90
|
-
paths['/calls/{call_control_id}/actions/fork_stop']['post']['responses']['200']['content']['application/json']
|
|
90
|
+
paths['/calls/{call_control_id}/actions/fork_stop']['post']['responses']['200']['content']['application/json'];
|
|
91
91
|
type CallsGatherResponse =
|
|
92
|
-
paths['/calls/{call_control_id}/actions/gather']['post']['responses']['200']['content']['application/json']
|
|
92
|
+
paths['/calls/{call_control_id}/actions/gather']['post']['responses']['200']['content']['application/json'];
|
|
93
93
|
type CallsGatherUsingAudioResponse =
|
|
94
|
-
paths['/calls/{call_control_id}/actions/gather_using_audio']['post']['responses']['200']['content']['application/json']
|
|
94
|
+
paths['/calls/{call_control_id}/actions/gather_using_audio']['post']['responses']['200']['content']['application/json'];
|
|
95
95
|
type CallsGatherUsingSpeakResponse =
|
|
96
|
-
paths['/calls/{call_control_id}/actions/gather_using_speak']['post']['responses']['200']['content']['application/json']
|
|
96
|
+
paths['/calls/{call_control_id}/actions/gather_using_speak']['post']['responses']['200']['content']['application/json'];
|
|
97
97
|
type CallsGatherStopResponse =
|
|
98
|
-
paths['/calls/{call_control_id}/actions/gather_stop']['post']['responses']['200']['content']['application/json']
|
|
98
|
+
paths['/calls/{call_control_id}/actions/gather_stop']['post']['responses']['200']['content']['application/json'];
|
|
99
99
|
type CallsPlaybackStartResponse =
|
|
100
|
-
paths['/calls/{call_control_id}/actions/playback_start']['post']['responses']['200']['content']['application/json']
|
|
100
|
+
paths['/calls/{call_control_id}/actions/playback_start']['post']['responses']['200']['content']['application/json'];
|
|
101
101
|
type CallsPlaybackStopResponse =
|
|
102
|
-
paths['/calls/{call_control_id}/actions/playback_stop']['post']['responses']['200']['content']['application/json']
|
|
102
|
+
paths['/calls/{call_control_id}/actions/playback_stop']['post']['responses']['200']['content']['application/json'];
|
|
103
103
|
type CallsRecordStartResponse =
|
|
104
|
-
paths['/calls/{call_control_id}/actions/record_start']['post']['responses']['200']['content']['application/json']
|
|
104
|
+
paths['/calls/{call_control_id}/actions/record_start']['post']['responses']['200']['content']['application/json'];
|
|
105
105
|
type CallsRecordStopResponse =
|
|
106
|
-
paths['/calls/{call_control_id}/actions/record_stop']['post']['responses']['200']['content']['application/json']
|
|
106
|
+
paths['/calls/{call_control_id}/actions/record_stop']['post']['responses']['200']['content']['application/json'];
|
|
107
107
|
type CallsRecordPauseResponse =
|
|
108
|
-
paths['/calls/{call_control_id}/actions/record_pause']['post']['responses']['200']['content']['application/json']
|
|
108
|
+
paths['/calls/{call_control_id}/actions/record_pause']['post']['responses']['200']['content']['application/json'];
|
|
109
109
|
type CallsRecordResumeResponse =
|
|
110
|
-
paths['/calls/{call_control_id}/actions/record_resume']['post']['responses']['200']['content']['application/json']
|
|
110
|
+
paths['/calls/{call_control_id}/actions/record_resume']['post']['responses']['200']['content']['application/json'];
|
|
111
111
|
type CallsReferResponse =
|
|
112
|
-
paths['/calls/{call_control_id}/actions/refer']['post']['responses']['200']['content']['application/json']
|
|
112
|
+
paths['/calls/{call_control_id}/actions/refer']['post']['responses']['200']['content']['application/json'];
|
|
113
113
|
type CallsSendDtmfResponse =
|
|
114
|
-
paths['/calls/{call_control_id}/actions/send_dtmf']['post']['responses']['200']['content']['application/json']
|
|
114
|
+
paths['/calls/{call_control_id}/actions/send_dtmf']['post']['responses']['200']['content']['application/json'];
|
|
115
115
|
type CallsStreamingStartResponse =
|
|
116
|
-
paths['/calls/{call_control_id}/actions/streaming_start']['post']['responses']['200']['content']['application/json']
|
|
116
|
+
paths['/calls/{call_control_id}/actions/streaming_start']['post']['responses']['200']['content']['application/json'];
|
|
117
117
|
type CallsStreamingStopResponse =
|
|
118
|
-
paths['/calls/{call_control_id}/actions/streaming_stop']['post']['responses']['200']['content']['application/json']
|
|
118
|
+
paths['/calls/{call_control_id}/actions/streaming_stop']['post']['responses']['200']['content']['application/json'];
|
|
119
119
|
type CallsSuppressionStartResponse =
|
|
120
|
-
paths['/calls/{call_control_id}/actions/suppression_start']['post']['responses']['200']['content']['application/json']
|
|
120
|
+
paths['/calls/{call_control_id}/actions/suppression_start']['post']['responses']['200']['content']['application/json'];
|
|
121
121
|
type CallsSuppressionStopResponse =
|
|
122
|
-
paths['/calls/{call_control_id}/actions/suppression_stop']['post']['responses']['200']['content']['application/json']
|
|
122
|
+
paths['/calls/{call_control_id}/actions/suppression_stop']['post']['responses']['200']['content']['application/json'];
|
|
123
123
|
type CallsTransferResponse =
|
|
124
|
-
paths['/calls/{call_control_id}/actions/transfer']['post']['responses']['200']['content']['application/json']
|
|
124
|
+
paths['/calls/{call_control_id}/actions/transfer']['post']['responses']['200']['content']['application/json'];
|
|
125
125
|
type CallsTranscriptionStartResponse =
|
|
126
|
-
paths['/calls/{call_control_id}/actions/transcription_start']['post']['responses']['200']['content']['application/json']
|
|
126
|
+
paths['/calls/{call_control_id}/actions/transcription_start']['post']['responses']['200']['content']['application/json'];
|
|
127
127
|
type CallsTranscriptionStopResponse =
|
|
128
|
-
paths['/calls/{call_control_id}/actions/transcription_stop']['post']['responses']['200']['content']['application/json']
|
|
128
|
+
paths['/calls/{call_control_id}/actions/transcription_stop']['post']['responses']['200']['content']['application/json'];
|
|
129
129
|
type CallsEnqueueResponse =
|
|
130
|
-
paths['/calls/{call_control_id}/actions/enqueue']['post']['responses']['200']['content']['application/json']
|
|
130
|
+
paths['/calls/{call_control_id}/actions/enqueue']['post']['responses']['200']['content']['application/json'];
|
|
131
131
|
type CallsLeaveQueueResponse =
|
|
132
|
-
paths['/calls/{call_control_id}/actions/leave_queue']['post']['responses']['200']['content']['application/json']
|
|
132
|
+
paths['/calls/{call_control_id}/actions/leave_queue']['post']['responses']['200']['content']['application/json'];
|
|
133
133
|
|
|
134
134
|
type CallsNestedMethods = {
|
|
135
135
|
answer: CallsResource['answer'];
|
|
@@ -6,7 +6,7 @@ declare module 'telnyx' {
|
|
|
6
6
|
paths['/messaging_profile_metrics']['get']['parameters']['query'];
|
|
7
7
|
|
|
8
8
|
type MessagingProfilesListMetricsResponse =
|
|
9
|
-
paths['/messaging_profile_metrics']['get']['responses']['200']['content']['application/json']
|
|
9
|
+
paths['/messaging_profile_metrics']['get']['responses']['200']['content']['application/json'];
|
|
10
10
|
|
|
11
11
|
class MessagingProfileMetricsResource {
|
|
12
12
|
listMetrics(
|
|
@@ -21,37 +21,37 @@ declare module 'telnyx' {
|
|
|
21
21
|
paths['/messaging_profiles/{id}']['patch']['requestBody']['content']['application/json'];
|
|
22
22
|
|
|
23
23
|
type MessagingProfilesRetrieveResponse =
|
|
24
|
-
paths['/messaging_profiles/{id}']['get']['responses']['200']['content']['application/json']
|
|
24
|
+
paths['/messaging_profiles/{id}']['get']['responses']['200']['content']['application/json'];
|
|
25
25
|
|
|
26
26
|
type MessagingProfilesDelResponse =
|
|
27
|
-
paths['/messaging_profiles/{id}']['delete']['responses']['200']['content']['application/json']
|
|
27
|
+
paths['/messaging_profiles/{id}']['delete']['responses']['200']['content']['application/json'];
|
|
28
28
|
|
|
29
29
|
type MessagingProfilesUpdateResponse =
|
|
30
|
-
paths['/messaging_profiles/{id}']['patch']['responses']['200']['content']['application/json']
|
|
30
|
+
paths['/messaging_profiles/{id}']['patch']['responses']['200']['content']['application/json'];
|
|
31
31
|
|
|
32
32
|
type MessagingProfilesListParams =
|
|
33
33
|
paths['/messaging_profiles']['get']['parameters']['query'];
|
|
34
34
|
|
|
35
35
|
type MessagingProfilesListResponse =
|
|
36
|
-
paths['/messaging_profiles']['get']['responses']['200']['content']['application/json']
|
|
36
|
+
paths['/messaging_profiles']['get']['responses']['200']['content']['application/json'];
|
|
37
37
|
|
|
38
38
|
type MessagingProfilesCreateParams =
|
|
39
39
|
paths['/messaging_profiles']['post']['requestBody']['content']['application/json'];
|
|
40
40
|
|
|
41
41
|
type MessagingProfilesCreateResponse =
|
|
42
|
-
paths['/messaging_profiles']['post']['responses']['200']['content']['application/json']
|
|
42
|
+
paths['/messaging_profiles']['post']['responses']['200']['content']['application/json'];
|
|
43
43
|
|
|
44
44
|
type MessagingProfilesListPhoneNumbersParams =
|
|
45
45
|
paths['/messaging_profiles/{id}/phone_numbers']['get']['parameters']['query'];
|
|
46
46
|
|
|
47
47
|
type MessagingProfilesListPhoneNumbersResponse =
|
|
48
|
-
paths['/messaging_profiles/{id}/phone_numbers']['get']['responses']['200']['content']['application/json']
|
|
48
|
+
paths['/messaging_profiles/{id}/phone_numbers']['get']['responses']['200']['content']['application/json'];
|
|
49
49
|
|
|
50
50
|
type MessagingProfilesListShortCodesParams =
|
|
51
51
|
paths['/messaging_profiles/{id}/short_codes']['get']['parameters']['query'];
|
|
52
52
|
|
|
53
53
|
type MessagingProfilesListShortCodesResponse =
|
|
54
|
-
paths['/messaging_profiles/{id}/short_codes']['get']['responses']['200']['content']['application/json']
|
|
54
|
+
paths['/messaging_profiles/{id}/short_codes']['get']['responses']['200']['content']['application/json'];
|
|
55
55
|
|
|
56
56
|
type MessagingProfilesRetrieveMetricsId =
|
|
57
57
|
paths['/messaging_profiles/{id}/metrics']['get']['parameters']['path']['id'];
|
|
@@ -60,7 +60,7 @@ declare module 'telnyx' {
|
|
|
60
60
|
paths['/messaging_profiles/{id}/metrics']['get']['parameters']['query'];
|
|
61
61
|
|
|
62
62
|
type MessagingProfilesRetrieveMetricsResponse =
|
|
63
|
-
paths['/messaging_profiles/{id}/metrics']['get']['responses']['200']['content']['application/json']
|
|
63
|
+
paths['/messaging_profiles/{id}/metrics']['get']['responses']['200']['content']['application/json'];
|
|
64
64
|
|
|
65
65
|
type MessagingProfilesNestedMethods = {
|
|
66
66
|
del: MessagingProfilesResource['del'];
|
|
@@ -6,13 +6,13 @@ declare module 'telnyx' {
|
|
|
6
6
|
paths['/storage/buckets/{bucketName}/usage/storage']['get']['parameters']['path']['bucketName'];
|
|
7
7
|
|
|
8
8
|
type StorageBucketsUsageResponse =
|
|
9
|
-
paths['/storage/buckets/{bucketName}/usage/storage']['get']['responses']['200']['content']['application/json']
|
|
9
|
+
paths['/storage/buckets/{bucketName}/usage/storage']['get']['responses']['200']['content']['application/json'];
|
|
10
10
|
|
|
11
11
|
type StorageBucketsAPIUsageName =
|
|
12
12
|
paths['/storage/buckets/{bucketName}/usage/api']['get']['parameters']['path']['bucketName'];
|
|
13
13
|
|
|
14
14
|
type StorageBucketsAPIUsageResponse =
|
|
15
|
-
paths['/storage/buckets/{bucketName}/usage/api']['get']['responses']['200']['content']['application/json']
|
|
15
|
+
paths['/storage/buckets/{bucketName}/usage/api']['get']['responses']['200']['content']['application/json'];
|
|
16
16
|
|
|
17
17
|
type StorageBucketsSSLCertificateName =
|
|
18
18
|
paths['/storage/buckets/{bucketName}/ssl_certificate']['get']['parameters']['path']['bucketName'];
|
|
@@ -35,13 +35,13 @@ declare module 'telnyx' {
|
|
|
35
35
|
: never;
|
|
36
36
|
|
|
37
37
|
type StorageBucketsSSLCertificateResponse =
|
|
38
|
-
paths['/storage/buckets/{bucketName}/ssl_certificate']['get']['responses']['200']['content']['application/json']
|
|
38
|
+
paths['/storage/buckets/{bucketName}/ssl_certificate']['get']['responses']['200']['content']['application/json'];
|
|
39
39
|
|
|
40
40
|
type StorageBucketsAddSSLCertificateResponse =
|
|
41
|
-
paths['/storage/buckets/{bucketName}/ssl_certificate']['put']['responses']['200']['content']['application/json']
|
|
41
|
+
paths['/storage/buckets/{bucketName}/ssl_certificate']['put']['responses']['200']['content']['application/json'];
|
|
42
42
|
|
|
43
43
|
type StorageBucketsDelSSLCertificateResponse =
|
|
44
|
-
paths['/storage/buckets/{bucketName}/ssl_certificate']['delete']['responses']['200']['content']['application/json']
|
|
44
|
+
paths['/storage/buckets/{bucketName}/ssl_certificate']['delete']['responses']['200']['content']['application/json'];
|
|
45
45
|
|
|
46
46
|
class StorageBucketsResource {
|
|
47
47
|
usage(
|
package/dist/types/index.d.ts
CHANGED
|
@@ -6,6 +6,15 @@
|
|
|
6
6
|
///<reference path='./Errors.d.ts' />
|
|
7
7
|
|
|
8
8
|
// Resources Imports
|
|
9
|
+
///<reference path='./AiAssistantsResource.d.ts' />
|
|
10
|
+
///<reference path='./AiAudioTranscriptionsResource.d.ts' />
|
|
11
|
+
///<reference path='./AiChatCompletionsResource.d.ts' />
|
|
12
|
+
///<reference path='./AiEmbeddingsResource.d.ts' />
|
|
13
|
+
///<reference path='./AiEmbeddingsBucketsResource.d.ts' />
|
|
14
|
+
///<reference path='./AiEmbeddingsSimilaritySearchResource.d.ts' />
|
|
15
|
+
///<reference path='./AiModelsResource.d.ts' />
|
|
16
|
+
///<reference path='./AiSummarizeResource.d.ts' />
|
|
17
|
+
///<reference path='./AccessIpAddressResource.d.ts' />
|
|
9
18
|
///<reference path='./AccessIpAddressResource.d.ts' />
|
|
10
19
|
///<reference path='./AccessIpRangesResource.d.ts' />
|
|
11
20
|
///<reference path='./AutorespConfigsResource.d.ts' />
|
|
@@ -35,6 +44,14 @@ declare module 'telnyx' {
|
|
|
35
44
|
TelnyxResource: Telnyx.TelnyxResource;
|
|
36
45
|
|
|
37
46
|
// Resources
|
|
47
|
+
aiAssistants: Telnyx.AiAssistantsResource;
|
|
48
|
+
aiAudioTranscriptions: Telnyx.AiAudioTranscriptionsResource;
|
|
49
|
+
aiChatCompletions: Telnyx.AiChatCompletionsResource;
|
|
50
|
+
aiEmbeddings: Telnyx.AiEmbeddingsResource;
|
|
51
|
+
aiEmbeddingsBuckets: Telnyx.AiEmbeddingsBucketsResource;
|
|
52
|
+
aiEmbeddingsSimilaritySearch: Telnyx.AiEmbeddingsSimilaritySearchResource;
|
|
53
|
+
aiModels: Telnyx.AiModelsResource;
|
|
54
|
+
aiSummarize: Telnyx.AiSummarizeResource;
|
|
38
55
|
accessIpAddress: Telnyx.AccessIpAddressResource;
|
|
39
56
|
accessIpRanges: Telnyx.AccessIpRangesResource;
|
|
40
57
|
autorespConfigs: Telnyx.AutorespConfigsResource;
|
package/dist/types/lib.d.ts
CHANGED
|
@@ -33,7 +33,7 @@ declare module 'telnyx' {
|
|
|
33
33
|
headers?: Record<string, string | number | string[]>;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
export type Response<T> =
|
|
36
|
+
export type Response<T> = T & {
|
|
37
37
|
lastResponse: {
|
|
38
38
|
headers: Record<string, string | number | string[]>;
|
|
39
39
|
requestId: string;
|
package/package.json
CHANGED
package/dist/resources/AI.js
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import TelnyxResource from '../TelnyxResource';
|
|
2
|
-
const telnyxMethod = TelnyxResource.method;
|
|
3
|
-
export const AI = TelnyxResource.extend({
|
|
4
|
-
path: 'public_endpoints',
|
|
5
|
-
includeBasic: ['list', 'retrieve', 'create', 'delete'],
|
|
6
|
-
GetEmbeddingTask: telnyxMethod({
|
|
7
|
-
method: 'GET',
|
|
8
|
-
path: '/ai/embeddings/{task/id}',
|
|
9
|
-
urlParams: ['task_id'],
|
|
10
|
-
}),
|
|
11
|
-
PostEmbedding: telnyxMethod({
|
|
12
|
-
method: 'POST',
|
|
13
|
-
path: '/ai/embeddings',
|
|
14
|
-
}),
|
|
15
|
-
embedding_bucket_files_public_embedding_buckets__bucket_name__delete: telnyxMethod({
|
|
16
|
-
method: 'DELETE',
|
|
17
|
-
path: '/ai/embeddings_buckets/{bucket_name}',
|
|
18
|
-
urlParams: ['bucket_name'],
|
|
19
|
-
}),
|
|
20
|
-
PostInferenceStream: telnyxMethod({
|
|
21
|
-
method: 'POST',
|
|
22
|
-
path: '/ai/generate/stream',
|
|
23
|
-
}),
|
|
24
|
-
PostInference: telnyxMethod({
|
|
25
|
-
method: 'POST',
|
|
26
|
-
path: '/ai/generate',
|
|
27
|
-
}),
|
|
28
|
-
PostSummary: telnyxMethod({
|
|
29
|
-
method: 'POST',
|
|
30
|
-
path: '/ai/summarize',
|
|
31
|
-
}),
|
|
32
|
-
PostEmbeddingSimilaritySearch: telnyxMethod({
|
|
33
|
-
method: 'POST',
|
|
34
|
-
path: '/ai/embeddings/similarity-search',
|
|
35
|
-
}),
|
|
36
|
-
GetEmbeddingBuckets: telnyxMethod({
|
|
37
|
-
method: 'GET',
|
|
38
|
-
path: '/ai/embeddings_buckets',
|
|
39
|
-
}),
|
|
40
|
-
});
|