-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
990cf09
commit 3f6138c
Showing
35 changed files
with
439 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2.0.0-alpha.1 | ||
2.0.0-alpha.2 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import TelnyxResource from '../TelnyxResource'; | ||
const telnyxMethod = TelnyxResource.method; | ||
|
||
export const AiAssistants = TelnyxResource.extend({ | ||
path: 'ai/assistants', | ||
includeBasic: ['list', 'create'], | ||
|
||
retrieve: telnyxMethod({ | ||
method: 'GET', | ||
path: '/{assistant_id}', | ||
urlParams: ['assistant_id'], | ||
}), | ||
|
||
update: telnyxMethod({ | ||
method: 'POST', | ||
path: '/{assistant_id}', | ||
urlParams: ['assistant_id'], | ||
}), | ||
|
||
del: telnyxMethod({ | ||
method: 'DELETE', | ||
path: '/{assistant_id}', | ||
urlParams: ['assistant_id'], | ||
}), | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import TelnyxResource from '../TelnyxResource'; | ||
|
||
export const AiAudioTranscriptions = TelnyxResource.extend({ | ||
path: 'ai/audio/transcriptions', | ||
includeBasic: ['create'], | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import TelnyxResource from '../TelnyxResource'; | ||
|
||
export const AiChatCompletions = TelnyxResource.extend({ | ||
path: 'ai/chat/completions', | ||
includeBasic: ['create'], | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import TelnyxResource from '../TelnyxResource'; | ||
const telnyxMethod = TelnyxResource.method; | ||
|
||
export const AiEmbeddings = TelnyxResource.extend({ | ||
path: 'ai/embeddings', | ||
includeBasic: ['list', 'create'], | ||
|
||
retrieve: telnyxMethod({ | ||
method: 'GET', | ||
path: '/{task_id}', | ||
urlParams: ['task_id'], | ||
}), | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import TelnyxResource from '../TelnyxResource'; | ||
const telnyxMethod = TelnyxResource.method; | ||
|
||
export const AiEmbeddingsBuckets = TelnyxResource.extend({ | ||
path: 'ai/embeddings/buckets', | ||
includeBasic: ['list'], | ||
|
||
retrieve: telnyxMethod({ | ||
method: 'GET', | ||
path: '/{bucket_name}', | ||
urlParams: ['bucket_name'], | ||
}), | ||
|
||
del: telnyxMethod({ | ||
method: 'DELETE', | ||
path: '/{bucket_name}', | ||
urlParams: ['bucket_name'], | ||
}), | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import TelnyxResource from '../TelnyxResource'; | ||
|
||
export const AiEmbeddingsSimilaritySearch = TelnyxResource.extend({ | ||
path: 'ai/embeddings/similarity-search', | ||
includeBasic: ['create'], | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import TelnyxResource from '../TelnyxResource'; | ||
|
||
export const AiModels = TelnyxResource.extend({ | ||
path: 'ai/models', | ||
includeBasic: ['list'], | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import TelnyxResource from '../TelnyxResource'; | ||
|
||
export const AiSummarize = TelnyxResource.extend({ | ||
path: 'ai/summarize', | ||
includeBasic: ['create'], | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
import {paths} from './TelnyxAPI.js'; | ||
|
||
declare module 'telnyx' { | ||
namespace Telnyx { | ||
type AiAssistantsRetrieveId = | ||
paths['/ai/assistants/{assistant_id}']['get']['parameters']['path']['assistant_id']; | ||
|
||
type AiAssistantsRetrieveResponse = | ||
paths['/ai/assistants/{assistant_id}']['get']['responses']['200']['content']['application/json']; | ||
|
||
type AiAssistantsListParams = | ||
paths['/ai/assistants']['get']['parameters']['query']; | ||
|
||
type AiAssistantsListResponse = | ||
paths['/ai/assistants']['get']['responses']['200']['content']['application/json']; | ||
|
||
type AiAssistantsCreateParams = | ||
paths['/ai/assistants']['post']['requestBody']['content']['application/json']; | ||
|
||
type AiAssistantsCreateResponse = | ||
paths['/ai/assistants']['post']['responses']['200']['content']['application/json']; | ||
|
||
type AiAssistantsDelId = | ||
paths['/ai/assistants/{assistant_id}']['delete']['parameters']['path']['assistant_id']; | ||
|
||
type AiAssistantsDelParams = | ||
paths['/ai/assistants/{assistant_id}']['delete']['parameters']['query']; | ||
|
||
type AiAssistantsDelResponse = | ||
paths['/ai/assistants/{assistant_id}']['delete']['responses']['200']['content']['application/json']; | ||
|
||
type AiAssistantsUpdateId = | ||
paths['/ai/assistants/{assistant_id}']['post']['parameters']['path']['assistant_id']; | ||
|
||
type AiAssistantsUpdateParams = | ||
paths['/ai/assistants/{assistant_id}']['post']['requestBody']['content']['application/json']; | ||
|
||
type AiAssistantsUpdateResponse = | ||
paths['/ai/assistants/{assistant_id}']['post']['responses']['200']['content']['application/json']; | ||
|
||
class AiAssistantsResource { | ||
retrieve( | ||
id: AiAssistantsRetrieveId, | ||
options?: RequestOptions, | ||
): Promise<Telnyx.Response<Telnyx.AiAssistantsRetrieveResponse>>; | ||
|
||
list( | ||
params?: AiAssistantsListParams, | ||
options?: RequestOptions, | ||
): Promise<Telnyx.Response<Telnyx.AiAssistantsListResponse>>; | ||
|
||
create( | ||
params: AiAssistantsCreateParams, | ||
options?: RequestOptions, | ||
): Promise<Telnyx.Response<Telnyx.AiAssistantsCreateResponse>>; | ||
|
||
del( | ||
id: AiAssistantsDelId, | ||
options?: RequestOptions, | ||
): Promise<Telnyx.Response<Telnyx.AiAssistantsDelResponse>>; | ||
|
||
update( | ||
id: AiAssistantsUpdateId, | ||
params: AiAssistantsUpdateParams, | ||
options?: RequestOptions, | ||
): Promise<Telnyx.Response<Telnyx.AiAssistantsUpdateResponse>>; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import {paths} from './TelnyxAPI.js'; | ||
|
||
declare module 'telnyx' { | ||
namespace Telnyx { | ||
type AiAudioTranscriptionsCreateParams = | ||
paths['/ai/audio/transcriptions']['post']['requestBody']['content']['multipart/form-data']; | ||
|
||
type AiAudioTranscriptionsCreateResponse = | ||
paths['/ai/audio/transcriptions']['post']['responses']['200']['content']['application/json']; | ||
|
||
class AiAudioTranscriptionsResource { | ||
create( | ||
params: AiAudioTranscriptionsCreateParams, | ||
options?: RequestOptions, | ||
): Promise<Telnyx.Response<Telnyx.AiAudioTranscriptionsCreateResponse>>; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import {paths} from './TelnyxAPI.js'; | ||
|
||
declare module 'telnyx' { | ||
namespace Telnyx { | ||
type AiChatCompletionsCreateParams = | ||
paths['/ai/chat/completions']['post']['requestBody']['content']['application/json']; | ||
|
||
type AiChatCompletionsCreateResponse = | ||
paths['/ai/chat/completions']['post']['responses']['200']['content']['application/json']; | ||
|
||
class AiChatCompletionsResource { | ||
create( | ||
params: AiChatCompletionsCreateParams, | ||
options?: RequestOptions, | ||
): Promise<Telnyx.Response<Telnyx.AiChatCompletionsCreateResponse>>; | ||
} | ||
} | ||
} |
Oops, something went wrong.