Skip to content

Commit 9b7be14

Browse files
feat: Ai-assistant: update scheduled events api
1 parent 57f4244 commit 9b7be14

98 files changed

Lines changed: 3998 additions & 1662 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 1037
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/telnyx/telnyx-1b41614aa1c699c05d7af9f3de95d7117eb0f1b30d70a23bd0781b3992a3c52a.yml
3-
openapi_spec_hash: e56bd6251f837dcad93467c9b2ddb72f
4-
config_hash: e4f3f28bb85f381ed051f2940111cd9c
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/telnyx/telnyx-d2263370a8e86ac0247a7df27c9e52f2ad5fffc3da605560aaa648673a52ca0b.yml
3+
openapi_spec_hash: 21d33ec0cdf7b2882ade9637dcbaec86
4+
config_hash: d3b972f90f1bbecf92ef9592fae471fa

api.md

Lines changed: 10 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ from telnyx.types import (
4343
SimpleSimCard,
4444
SubNumberOrderRegulatoryRequirementWithValue,
4545
WhatsappTemplateData,
46-
XaiVoiceSettings,
4746
)
4847
```
4948

@@ -572,7 +571,7 @@ Methods:
572571
Types:
573572

574573
```python
575-
from telnyx.types import ModelMetadata, AIRetrieveModelsResponse, AISummarizeResponse
574+
from telnyx.types import AIRetrieveModelsResponse, AISummarizeResponse
576575
```
577576

578577
Methods:
@@ -587,8 +586,6 @@ Types:
587586
```python
588587
from telnyx.types.ai import (
589588
Assistant,
590-
AssistantIntegration,
591-
AssistantMcpServer,
592589
AssistantTool,
593590
AssistantsList,
594591
AudioVisualizerConfig,
@@ -601,7 +598,6 @@ from telnyx.types.ai import (
601598
HangupToolParams,
602599
ImportMetadata,
603600
InferenceEmbedding,
604-
InferenceEmbeddingInterruptionSettings,
605601
InferenceEmbeddingWebhookToolParams,
606602
InsightSettings,
607603
MessagingSettings,
@@ -611,9 +607,7 @@ from telnyx.types.ai import (
611607
PostConversationSettingsReq,
612608
PrivacySettings,
613609
RetrievalTool,
614-
StartSpeakingPlan,
615610
TelephonySettings,
616-
TranscriptionEndpointingPlan,
617611
TranscriptionSettings,
618612
TranscriptionSettingsConfig,
619613
TransferTool,
@@ -704,15 +698,7 @@ Methods:
704698
Types:
705699

706700
```python
707-
from telnyx.types.ai.assistants import (
708-
CanaryDeploy,
709-
CanaryDeployResponse,
710-
Clause,
711-
RolloutSlot,
712-
RuleInput,
713-
RuleOutput,
714-
Serve,
715-
)
701+
from telnyx.types.ai.assistants import CanaryDeploy, CanaryDeployResponse
716702
```
717703

718704
Methods:
@@ -1446,13 +1432,11 @@ from telnyx.types.calls import (
14461432
TelnyxVoiceSettings,
14471433
TranscriptionConfig,
14481434
TranscriptionEngineAConfig,
1449-
TranscriptionEngineAssemblyaiConfig,
14501435
TranscriptionEngineAzureConfig,
14511436
TranscriptionEngineBConfig,
14521437
TranscriptionEngineDeepgramConfig,
14531438
TranscriptionEngineGoogleConfig,
14541439
TranscriptionEngineTelnyxConfig,
1455-
TranscriptionEngineXaiConfig,
14561440
TranscriptionStartRequest,
14571441
ActionAddAIAssistantMessagesResponse,
14581442
ActionAnswerResponse,
@@ -3699,9 +3683,9 @@ Types:
36993683
from telnyx.types import (
37003684
NetworkInterface,
37013685
NetworkInterfaceRegion,
3702-
PublicInternetGatewayRead,
37033686
PublicInternetGatewayCreateResponse,
37043687
PublicInternetGatewayRetrieveResponse,
3688+
PublicInternetGatewayListResponse,
37053689
PublicInternetGatewayDeleteResponse,
37063690
)
37073691
```
@@ -3710,7 +3694,7 @@ Methods:
37103694

37113695
- <code title="post /public_internet_gateways">client.public_internet_gateways.<a href="./src/telnyx/resources/public_internet_gateways.py">create</a>(\*\*<a href="src/telnyx/types/public_internet_gateway_create_params.py">params</a>) -> <a href="./src/telnyx/types/public_internet_gateway_create_response.py">PublicInternetGatewayCreateResponse</a></code>
37123696
- <code title="get /public_internet_gateways/{id}">client.public_internet_gateways.<a href="./src/telnyx/resources/public_internet_gateways.py">retrieve</a>(id) -> <a href="./src/telnyx/types/public_internet_gateway_retrieve_response.py">PublicInternetGatewayRetrieveResponse</a></code>
3713-
- <code title="get /public_internet_gateways">client.public_internet_gateways.<a href="./src/telnyx/resources/public_internet_gateways.py">list</a>(\*\*<a href="src/telnyx/types/public_internet_gateway_list_params.py">params</a>) -> <a href="./src/telnyx/types/public_internet_gateway_read.py">SyncDefaultFlatPagination[PublicInternetGatewayRead]</a></code>
3697+
- <code title="get /public_internet_gateways">client.public_internet_gateways.<a href="./src/telnyx/resources/public_internet_gateways.py">list</a>(\*\*<a href="src/telnyx/types/public_internet_gateway_list_params.py">params</a>) -> <a href="./src/telnyx/types/public_internet_gateway_list_response.py">SyncDefaultFlatPagination[PublicInternetGatewayListResponse]</a></code>
37143698
- <code title="delete /public_internet_gateways/{id}">client.public_internet_gateways.<a href="./src/telnyx/resources/public_internet_gateways.py">delete</a>(id) -> <a href="./src/telnyx/types/public_internet_gateway_delete_response.py">PublicInternetGatewayDeleteResponse</a></code>
37153699

37163700
# Queues
@@ -4795,10 +4779,10 @@ Types:
47954779

47964780
```python
47974781
from telnyx.types import (
4798-
VirtualCrossConnectCombined,
47994782
VirtualCrossConnectCreateResponse,
48004783
VirtualCrossConnectRetrieveResponse,
48014784
VirtualCrossConnectUpdateResponse,
4785+
VirtualCrossConnectListResponse,
48024786
VirtualCrossConnectDeleteResponse,
48034787
)
48044788
```
@@ -4808,7 +4792,7 @@ Methods:
48084792
- <code title="post /virtual_cross_connects">client.virtual_cross_connects.<a href="./src/telnyx/resources/virtual_cross_connects.py">create</a>(\*\*<a href="src/telnyx/types/virtual_cross_connect_create_params.py">params</a>) -> <a href="./src/telnyx/types/virtual_cross_connect_create_response.py">VirtualCrossConnectCreateResponse</a></code>
48094793
- <code title="get /virtual_cross_connects/{id}">client.virtual_cross_connects.<a href="./src/telnyx/resources/virtual_cross_connects.py">retrieve</a>(id) -> <a href="./src/telnyx/types/virtual_cross_connect_retrieve_response.py">VirtualCrossConnectRetrieveResponse</a></code>
48104794
- <code title="patch /virtual_cross_connects/{id}">client.virtual_cross_connects.<a href="./src/telnyx/resources/virtual_cross_connects.py">update</a>(id, \*\*<a href="src/telnyx/types/virtual_cross_connect_update_params.py">params</a>) -> <a href="./src/telnyx/types/virtual_cross_connect_update_response.py">VirtualCrossConnectUpdateResponse</a></code>
4811-
- <code title="get /virtual_cross_connects">client.virtual_cross_connects.<a href="./src/telnyx/resources/virtual_cross_connects.py">list</a>(\*\*<a href="src/telnyx/types/virtual_cross_connect_list_params.py">params</a>) -> <a href="./src/telnyx/types/virtual_cross_connect_combined.py">SyncDefaultFlatPagination[VirtualCrossConnectCombined]</a></code>
4795+
- <code title="get /virtual_cross_connects">client.virtual_cross_connects.<a href="./src/telnyx/resources/virtual_cross_connects.py">list</a>(\*\*<a href="src/telnyx/types/virtual_cross_connect_list_params.py">params</a>) -> <a href="./src/telnyx/types/virtual_cross_connect_list_response.py">SyncDefaultFlatPagination[VirtualCrossConnectListResponse]</a></code>
48124796
- <code title="delete /virtual_cross_connects/{id}">client.virtual_cross_connects.<a href="./src/telnyx/resources/virtual_cross_connects.py">delete</a>(id) -> <a href="./src/telnyx/types/virtual_cross_connect_delete_response.py">VirtualCrossConnectDeleteResponse</a></code>
48134797

48144798
# VirtualCrossConnectsCoverage
@@ -4842,9 +4826,9 @@ Types:
48424826

48434827
```python
48444828
from telnyx.types import (
4845-
WireguardInterfaceRead,
48464829
WireguardInterfaceCreateResponse,
48474830
WireguardInterfaceRetrieveResponse,
4831+
WireguardInterfaceListResponse,
48484832
WireguardInterfaceDeleteResponse,
48494833
)
48504834
```
@@ -4853,7 +4837,7 @@ Methods:
48534837

48544838
- <code title="post /wireguard_interfaces">client.wireguard_interfaces.<a href="./src/telnyx/resources/wireguard_interfaces.py">create</a>(\*\*<a href="src/telnyx/types/wireguard_interface_create_params.py">params</a>) -> <a href="./src/telnyx/types/wireguard_interface_create_response.py">WireguardInterfaceCreateResponse</a></code>
48554839
- <code title="get /wireguard_interfaces/{id}">client.wireguard_interfaces.<a href="./src/telnyx/resources/wireguard_interfaces.py">retrieve</a>(id) -> <a href="./src/telnyx/types/wireguard_interface_retrieve_response.py">WireguardInterfaceRetrieveResponse</a></code>
4856-
- <code title="get /wireguard_interfaces">client.wireguard_interfaces.<a href="./src/telnyx/resources/wireguard_interfaces.py">list</a>(\*\*<a href="src/telnyx/types/wireguard_interface_list_params.py">params</a>) -> <a href="./src/telnyx/types/wireguard_interface_read.py">SyncDefaultFlatPagination[WireguardInterfaceRead]</a></code>
4840+
- <code title="get /wireguard_interfaces">client.wireguard_interfaces.<a href="./src/telnyx/resources/wireguard_interfaces.py">list</a>(\*\*<a href="src/telnyx/types/wireguard_interface_list_params.py">params</a>) -> <a href="./src/telnyx/types/wireguard_interface_list_response.py">SyncDefaultFlatPagination[WireguardInterfaceListResponse]</a></code>
48574841
- <code title="delete /wireguard_interfaces/{id}">client.wireguard_interfaces.<a href="./src/telnyx/resources/wireguard_interfaces.py">delete</a>(id) -> <a href="./src/telnyx/types/wireguard_interface_delete_response.py">WireguardInterfaceDeleteResponse</a></code>
48584842

48594843
# WireguardPeers
@@ -5665,14 +5649,10 @@ Types:
56655649

56665650
```python
56675651
from telnyx.types import (
5668-
UacConnection,
5669-
UacExternalSettings,
5670-
UacInbound,
5671-
UacInternalSettings,
5672-
UacOutbound,
56735652
UacConnectionCreateResponse,
56745653
UacConnectionRetrieveResponse,
56755654
UacConnectionUpdateResponse,
5655+
UacConnectionListResponse,
56765656
UacConnectionDeleteResponse,
56775657
)
56785658
```
@@ -5682,7 +5662,7 @@ Methods:
56825662
- <code title="post /uac_connections">client.uac_connections.<a href="./src/telnyx/resources/uac_connections/uac_connections.py">create</a>(\*\*<a href="src/telnyx/types/uac_connection_create_params.py">params</a>) -> <a href="./src/telnyx/types/uac_connection_create_response.py">UacConnectionCreateResponse</a></code>
56835663
- <code title="get /uac_connections/{id}">client.uac_connections.<a href="./src/telnyx/resources/uac_connections/uac_connections.py">retrieve</a>(id) -> <a href="./src/telnyx/types/uac_connection_retrieve_response.py">UacConnectionRetrieveResponse</a></code>
56845664
- <code title="patch /uac_connections/{id}">client.uac_connections.<a href="./src/telnyx/resources/uac_connections/uac_connections.py">update</a>(id, \*\*<a href="src/telnyx/types/uac_connection_update_params.py">params</a>) -> <a href="./src/telnyx/types/uac_connection_update_response.py">UacConnectionUpdateResponse</a></code>
5685-
- <code title="get /uac_connections">client.uac_connections.<a href="./src/telnyx/resources/uac_connections/uac_connections.py">list</a>(\*\*<a href="src/telnyx/types/uac_connection_list_params.py">params</a>) -> <a href="./src/telnyx/types/uac_connection.py">SyncDefaultFlatPagination[UacConnection]</a></code>
5665+
- <code title="get /uac_connections">client.uac_connections.<a href="./src/telnyx/resources/uac_connections/uac_connections.py">list</a>(\*\*<a href="src/telnyx/types/uac_connection_list_params.py">params</a>) -> <a href="./src/telnyx/types/uac_connection_list_response.py">SyncDefaultFlatPagination[UacConnectionListResponse]</a></code>
56865666
- <code title="delete /uac_connections/{id}">client.uac_connections.<a href="./src/telnyx/resources/uac_connections/uac_connections.py">delete</a>(id) -> <a href="./src/telnyx/types/uac_connection_delete_response.py">UacConnectionDeleteResponse</a></code>
56875667

56885668
## Actions

src/telnyx/resources/ai/assistants/assistants.py

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,9 @@
8989
from ....types.ai.telephony_settings_param import TelephonySettingsParam
9090
from ....types.ai.assistant_delete_response import AssistantDeleteResponse
9191
from ....types.ai.fallback_config_req_param import FallbackConfigReqParam
92-
from ....types.ai.assistant_mcp_server_param import AssistantMcpServerParam
93-
from ....types.ai.assistant_integration_param import AssistantIntegrationParam
9492
from ....types.ai.assistant_send_sms_response import AssistantSendSMSResponse
9593
from ....types.ai.transcription_settings_param import TranscriptionSettingsParam
9694
from ....types.ai.post_conversation_settings_req_param import PostConversationSettingsReqParam
97-
from ....types.ai.inference_embedding_interruption_settings_param import InferenceEmbeddingInterruptionSettingsParam
9895

9996
__all__ = ["AssistantsResource", "AsyncAssistantsResource"]
10097

@@ -165,10 +162,10 @@ def create(
165162
fallback_config: FallbackConfigReqParam | Omit = omit,
166163
greeting: str | Omit = omit,
167164
insight_settings: InsightSettingsParam | Omit = omit,
168-
integrations: Iterable[AssistantIntegrationParam] | Omit = omit,
169-
interruption_settings: InferenceEmbeddingInterruptionSettingsParam | Omit = omit,
165+
integrations: Iterable[assistant_create_params.Integration] | Omit = omit,
166+
interruption_settings: assistant_create_params.InterruptionSettings | Omit = omit,
170167
llm_api_key_ref: str | Omit = omit,
171-
mcp_servers: Iterable[AssistantMcpServerParam] | Omit = omit,
168+
mcp_servers: Iterable[assistant_create_params.McpServer] | Omit = omit,
172169
messaging_settings: MessagingSettingsParam | Omit = omit,
173170
model: str | Omit = omit,
174171
observability_settings: ObservabilityReqParam | Omit = omit,
@@ -376,10 +373,10 @@ def update(
376373
greeting: str | Omit = omit,
377374
insight_settings: InsightSettingsParam | Omit = omit,
378375
instructions: str | Omit = omit,
379-
integrations: Iterable[AssistantIntegrationParam] | Omit = omit,
380-
interruption_settings: InferenceEmbeddingInterruptionSettingsParam | Omit = omit,
376+
integrations: Iterable[assistant_update_params.Integration] | Omit = omit,
377+
interruption_settings: assistant_update_params.InterruptionSettings | Omit = omit,
381378
llm_api_key_ref: str | Omit = omit,
382-
mcp_servers: Iterable[AssistantMcpServerParam] | Omit = omit,
379+
mcp_servers: Iterable[assistant_update_params.McpServer] | Omit = omit,
383380
messaging_settings: MessagingSettingsParam | Omit = omit,
384381
model: str | Omit = omit,
385382
name: str | Omit = omit,
@@ -890,10 +887,10 @@ async def create(
890887
fallback_config: FallbackConfigReqParam | Omit = omit,
891888
greeting: str | Omit = omit,
892889
insight_settings: InsightSettingsParam | Omit = omit,
893-
integrations: Iterable[AssistantIntegrationParam] | Omit = omit,
894-
interruption_settings: InferenceEmbeddingInterruptionSettingsParam | Omit = omit,
890+
integrations: Iterable[assistant_create_params.Integration] | Omit = omit,
891+
interruption_settings: assistant_create_params.InterruptionSettings | Omit = omit,
895892
llm_api_key_ref: str | Omit = omit,
896-
mcp_servers: Iterable[AssistantMcpServerParam] | Omit = omit,
893+
mcp_servers: Iterable[assistant_create_params.McpServer] | Omit = omit,
897894
messaging_settings: MessagingSettingsParam | Omit = omit,
898895
model: str | Omit = omit,
899896
observability_settings: ObservabilityReqParam | Omit = omit,
@@ -1101,10 +1098,10 @@ async def update(
11011098
greeting: str | Omit = omit,
11021099
insight_settings: InsightSettingsParam | Omit = omit,
11031100
instructions: str | Omit = omit,
1104-
integrations: Iterable[AssistantIntegrationParam] | Omit = omit,
1105-
interruption_settings: InferenceEmbeddingInterruptionSettingsParam | Omit = omit,
1101+
integrations: Iterable[assistant_update_params.Integration] | Omit = omit,
1102+
interruption_settings: assistant_update_params.InterruptionSettings | Omit = omit,
11061103
llm_api_key_ref: str | Omit = omit,
1107-
mcp_servers: Iterable[AssistantMcpServerParam] | Omit = omit,
1104+
mcp_servers: Iterable[assistant_update_params.McpServer] | Omit = omit,
11081105
messaging_settings: MessagingSettingsParam | Omit = omit,
11091106
model: str | Omit = omit,
11101107
name: str | Omit = omit,

src/telnyx/resources/ai/assistants/canary_deploys.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
)
1919
from ...._base_client import make_request_options
2020
from ....types.ai.assistants import canary_deploy_create_params, canary_deploy_update_params
21-
from ....types.ai.assistants.rule_input_param import RuleInputParam
2221
from ....types.ai.assistants.canary_deploy_response import CanaryDeployResponse
2322

2423
__all__ = ["CanaryDeploysResource", "AsyncCanaryDeploysResource"]
@@ -50,7 +49,7 @@ def create(
5049
self,
5150
assistant_id: str,
5251
*,
53-
rules: Iterable[RuleInputParam] | Omit = omit,
52+
rules: Iterable[canary_deploy_create_params.Rule] | Omit = omit,
5453
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
5554
# The extra values given here take precedence over values defined on the client or passed to this method.
5655
extra_headers: Headers | None = None,
@@ -124,7 +123,7 @@ def update(
124123
self,
125124
assistant_id: str,
126125
*,
127-
rules: Iterable[RuleInputParam] | Omit = omit,
126+
rules: Iterable[canary_deploy_update_params.Rule] | Omit = omit,
128127
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
129128
# The extra values given here take precedence over values defined on the client or passed to this method.
130129
extra_headers: Headers | None = None,
@@ -222,7 +221,7 @@ async def create(
222221
self,
223222
assistant_id: str,
224223
*,
225-
rules: Iterable[RuleInputParam] | Omit = omit,
224+
rules: Iterable[canary_deploy_create_params.Rule] | Omit = omit,
226225
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
227226
# The extra values given here take precedence over values defined on the client or passed to this method.
228227
extra_headers: Headers | None = None,
@@ -296,7 +295,7 @@ async def update(
296295
self,
297296
assistant_id: str,
298297
*,
299-
rules: Iterable[RuleInputParam] | Omit = omit,
298+
rules: Iterable[canary_deploy_update_params.Rule] | Omit = omit,
300299
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
301300
# The extra values given here take precedence over values defined on the client or passed to this method.
302301
extra_headers: Headers | None = None,

0 commit comments

Comments
 (0)