telnyx 3.5.0__py3-none-any.whl → 3.6.0__py3-none-any.whl

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.

Potentially problematic release.


This version of telnyx might be problematic. Click here for more details.

Files changed (66) hide show
  1. telnyx/_version.py +1 -1
  2. telnyx/resources/ai/assistants/assistants.py +13 -15
  3. telnyx/resources/ai/assistants/versions.py +13 -15
  4. telnyx/resources/calls/actions.py +4 -2
  5. telnyx/resources/calls/calls.py +4 -2
  6. telnyx/resources/documents.py +242 -37
  7. telnyx/resources/messaging_tollfree/verification/requests.py +6 -9
  8. telnyx/resources/verify_profiles.py +9 -10
  9. telnyx/types/__init__.py +8 -6
  10. telnyx/types/access_ip_address_list_response.py +3 -12
  11. telnyx/types/access_ip_range_list_response.py +3 -12
  12. telnyx/types/ai/__init__.py +1 -3
  13. telnyx/types/ai/assistants/__init__.py +0 -3
  14. telnyx/types/ai/assistants_list.py +4 -88
  15. telnyx/types/ai/{assistant_clone_response.py → inference_embedding.py} +2 -2
  16. telnyx/types/call_dial_params.py +2 -1
  17. telnyx/types/calls/__init__.py +1 -0
  18. telnyx/types/calls/action_start_streaming_params.py +2 -1
  19. telnyx/types/calls/action_start_transcription_params.py +2 -102
  20. telnyx/types/calls/telnyx_transcription_language.py +108 -0
  21. telnyx/types/calls/transcription_engine_b_config_param.py +3 -102
  22. telnyx/types/calls/transcription_start_request_param.py +2 -102
  23. telnyx/types/document_upload_json_params.py +39 -0
  24. telnyx/types/document_upload_json_response.py +12 -0
  25. telnyx/types/legacy/reporting/batch_detail_records/__init__.py +1 -0
  26. telnyx/types/legacy/reporting/batch_detail_records/batch_csv_pagination_meta.py +17 -0
  27. telnyx/types/legacy/reporting/batch_detail_records/messaging_list_response.py +3 -12
  28. telnyx/types/legacy/reporting/batch_detail_records/voice_list_response.py +3 -12
  29. telnyx/types/legacy/reporting/usage_reports/__init__.py +1 -0
  30. telnyx/types/legacy/reporting/usage_reports/messaging_list_response.py +3 -12
  31. telnyx/types/legacy/reporting/usage_reports/standard_pagination_meta.py +17 -0
  32. telnyx/types/legacy/reporting/usage_reports/voice_list_response.py +3 -12
  33. telnyx/types/{verify_profile_create_template_response.py → message_template.py} +2 -2
  34. telnyx/types/messaging_tollfree/verification/__init__.py +1 -0
  35. telnyx/types/messaging_tollfree/verification/request_create_params.py +3 -5
  36. telnyx/types/messaging_tollfree/verification/request_update_params.py +3 -5
  37. telnyx/types/messaging_tollfree/verification/toll_free_verification_entity_type.py +9 -0
  38. telnyx/types/messaging_tollfree/verification/verification_request_egress.py +2 -4
  39. telnyx/types/messaging_tollfree/verification/verification_request_status.py +2 -4
  40. telnyx/types/oauth_client_list_response.py +3 -16
  41. telnyx/types/oauth_grant_list_response.py +3 -16
  42. telnyx/types/pagination_meta_cloudflare_ip_list_sync.py +15 -0
  43. telnyx/types/pagination_meta_oauth.py +21 -0
  44. telnyx/types/phone_number_blocks/__init__.py +1 -0
  45. telnyx/types/phone_number_blocks/job.py +3 -34
  46. telnyx/types/phone_number_blocks/job_error.py +32 -0
  47. telnyx/types/phone_numbers/phone_numbers_job.py +3 -36
  48. telnyx/types/report_list_mdrs_response.py +3 -12
  49. telnyx/types/reports/__init__.py +1 -0
  50. telnyx/types/reports/mdr_usage_report_list_response.py +3 -12
  51. telnyx/types/reports/pagination_meta_reporting.py +17 -0
  52. telnyx/types/stream_bidirectional_sampling_rate.py +7 -0
  53. telnyx/types/verifications/__init__.py +1 -0
  54. telnyx/types/verifications/by_phone_number_list_response.py +4 -13
  55. telnyx/types/verifications/verify_meta.py +17 -0
  56. telnyx/types/verify_profile_list_response.py +4 -13
  57. {telnyx-3.5.0.dist-info → telnyx-3.6.0.dist-info}/METADATA +2 -2
  58. {telnyx-3.5.0.dist-info → telnyx-3.6.0.dist-info}/RECORD +60 -54
  59. telnyx/types/ai/assistant_create_response.py +0 -92
  60. telnyx/types/ai/assistant_retrieve_response.py +0 -92
  61. telnyx/types/ai/assistants/version_promote_response.py +0 -92
  62. telnyx/types/ai/assistants/version_retrieve_response.py +0 -92
  63. telnyx/types/ai/assistants/version_update_response.py +0 -92
  64. telnyx/types/verify_profile_update_template_response.py +0 -12
  65. {telnyx-3.5.0.dist-info → telnyx-3.6.0.dist-info}/WHEEL +0 -0
  66. {telnyx-3.5.0.dist-info → telnyx-3.6.0.dist-info}/licenses/LICENSE +0 -0
@@ -1,92 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from typing import Dict, List, Optional
4
- from datetime import datetime
5
-
6
- from ...._models import BaseModel
7
- from ..assistant_tool import AssistantTool
8
- from ..voice_settings import VoiceSettings
9
- from ..import_metadata import ImportMetadata
10
- from ..enabled_features import EnabledFeatures
11
- from ..insight_settings import InsightSettings
12
- from ..privacy_settings import PrivacySettings
13
- from ..messaging_settings import MessagingSettings
14
- from ..telephony_settings import TelephonySettings
15
- from ..transcription_settings import TranscriptionSettings
16
-
17
- __all__ = ["VersionPromoteResponse"]
18
-
19
-
20
- class VersionPromoteResponse(BaseModel):
21
- id: str
22
-
23
- created_at: datetime
24
-
25
- instructions: str
26
- """System instructions for the assistant.
27
-
28
- These may be templated with
29
- [dynamic variables](https://developers.telnyx.com/docs/inference/ai-assistants/dynamic-variables)
30
- """
31
-
32
- model: str
33
- """ID of the model to use.
34
-
35
- You can use the
36
- [Get models API](https://developers.telnyx.com/api/inference/inference-embedding/get-models-public-models-get)
37
- to see all of your available models,
38
- """
39
-
40
- name: str
41
-
42
- description: Optional[str] = None
43
-
44
- dynamic_variables: Optional[Dict[str, object]] = None
45
- """Map of dynamic variables and their values"""
46
-
47
- dynamic_variables_webhook_url: Optional[str] = None
48
- """
49
- If the dynamic_variables_webhook_url is set for the assistant, we will send a
50
- request at the start of the conversation. See our
51
- [guide](https://developers.telnyx.com/docs/inference/ai-assistants/dynamic-variables)
52
- for more information.
53
- """
54
-
55
- enabled_features: Optional[List[EnabledFeatures]] = None
56
-
57
- greeting: Optional[str] = None
58
- """Text that the assistant will use to start the conversation.
59
-
60
- This may be templated with
61
- [dynamic variables](https://developers.telnyx.com/docs/inference/ai-assistants/dynamic-variables)
62
- """
63
-
64
- import_metadata: Optional[ImportMetadata] = None
65
-
66
- insight_settings: Optional[InsightSettings] = None
67
-
68
- llm_api_key_ref: Optional[str] = None
69
- """This is only needed when using third-party inference providers.
70
-
71
- The `identifier` for an integration secret
72
- [/v2/integration_secrets](https://developers.telnyx.com/api/secrets-manager/integration-secrets/create-integration-secret)
73
- that refers to your LLM provider's API key. Warning: Free plans are unlikely to
74
- work with this integration.
75
- """
76
-
77
- messaging_settings: Optional[MessagingSettings] = None
78
-
79
- privacy_settings: Optional[PrivacySettings] = None
80
-
81
- telephony_settings: Optional[TelephonySettings] = None
82
-
83
- tools: Optional[List[AssistantTool]] = None
84
- """The tools that the assistant can use.
85
-
86
- These may be templated with
87
- [dynamic variables](https://developers.telnyx.com/docs/inference/ai-assistants/dynamic-variables)
88
- """
89
-
90
- transcription: Optional[TranscriptionSettings] = None
91
-
92
- voice_settings: Optional[VoiceSettings] = None
@@ -1,92 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from typing import Dict, List, Optional
4
- from datetime import datetime
5
-
6
- from ...._models import BaseModel
7
- from ..assistant_tool import AssistantTool
8
- from ..voice_settings import VoiceSettings
9
- from ..import_metadata import ImportMetadata
10
- from ..enabled_features import EnabledFeatures
11
- from ..insight_settings import InsightSettings
12
- from ..privacy_settings import PrivacySettings
13
- from ..messaging_settings import MessagingSettings
14
- from ..telephony_settings import TelephonySettings
15
- from ..transcription_settings import TranscriptionSettings
16
-
17
- __all__ = ["VersionRetrieveResponse"]
18
-
19
-
20
- class VersionRetrieveResponse(BaseModel):
21
- id: str
22
-
23
- created_at: datetime
24
-
25
- instructions: str
26
- """System instructions for the assistant.
27
-
28
- These may be templated with
29
- [dynamic variables](https://developers.telnyx.com/docs/inference/ai-assistants/dynamic-variables)
30
- """
31
-
32
- model: str
33
- """ID of the model to use.
34
-
35
- You can use the
36
- [Get models API](https://developers.telnyx.com/api/inference/inference-embedding/get-models-public-models-get)
37
- to see all of your available models,
38
- """
39
-
40
- name: str
41
-
42
- description: Optional[str] = None
43
-
44
- dynamic_variables: Optional[Dict[str, object]] = None
45
- """Map of dynamic variables and their values"""
46
-
47
- dynamic_variables_webhook_url: Optional[str] = None
48
- """
49
- If the dynamic_variables_webhook_url is set for the assistant, we will send a
50
- request at the start of the conversation. See our
51
- [guide](https://developers.telnyx.com/docs/inference/ai-assistants/dynamic-variables)
52
- for more information.
53
- """
54
-
55
- enabled_features: Optional[List[EnabledFeatures]] = None
56
-
57
- greeting: Optional[str] = None
58
- """Text that the assistant will use to start the conversation.
59
-
60
- This may be templated with
61
- [dynamic variables](https://developers.telnyx.com/docs/inference/ai-assistants/dynamic-variables)
62
- """
63
-
64
- import_metadata: Optional[ImportMetadata] = None
65
-
66
- insight_settings: Optional[InsightSettings] = None
67
-
68
- llm_api_key_ref: Optional[str] = None
69
- """This is only needed when using third-party inference providers.
70
-
71
- The `identifier` for an integration secret
72
- [/v2/integration_secrets](https://developers.telnyx.com/api/secrets-manager/integration-secrets/create-integration-secret)
73
- that refers to your LLM provider's API key. Warning: Free plans are unlikely to
74
- work with this integration.
75
- """
76
-
77
- messaging_settings: Optional[MessagingSettings] = None
78
-
79
- privacy_settings: Optional[PrivacySettings] = None
80
-
81
- telephony_settings: Optional[TelephonySettings] = None
82
-
83
- tools: Optional[List[AssistantTool]] = None
84
- """The tools that the assistant can use.
85
-
86
- These may be templated with
87
- [dynamic variables](https://developers.telnyx.com/docs/inference/ai-assistants/dynamic-variables)
88
- """
89
-
90
- transcription: Optional[TranscriptionSettings] = None
91
-
92
- voice_settings: Optional[VoiceSettings] = None
@@ -1,92 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from typing import Dict, List, Optional
4
- from datetime import datetime
5
-
6
- from ...._models import BaseModel
7
- from ..assistant_tool import AssistantTool
8
- from ..voice_settings import VoiceSettings
9
- from ..import_metadata import ImportMetadata
10
- from ..enabled_features import EnabledFeatures
11
- from ..insight_settings import InsightSettings
12
- from ..privacy_settings import PrivacySettings
13
- from ..messaging_settings import MessagingSettings
14
- from ..telephony_settings import TelephonySettings
15
- from ..transcription_settings import TranscriptionSettings
16
-
17
- __all__ = ["VersionUpdateResponse"]
18
-
19
-
20
- class VersionUpdateResponse(BaseModel):
21
- id: str
22
-
23
- created_at: datetime
24
-
25
- instructions: str
26
- """System instructions for the assistant.
27
-
28
- These may be templated with
29
- [dynamic variables](https://developers.telnyx.com/docs/inference/ai-assistants/dynamic-variables)
30
- """
31
-
32
- model: str
33
- """ID of the model to use.
34
-
35
- You can use the
36
- [Get models API](https://developers.telnyx.com/api/inference/inference-embedding/get-models-public-models-get)
37
- to see all of your available models,
38
- """
39
-
40
- name: str
41
-
42
- description: Optional[str] = None
43
-
44
- dynamic_variables: Optional[Dict[str, object]] = None
45
- """Map of dynamic variables and their values"""
46
-
47
- dynamic_variables_webhook_url: Optional[str] = None
48
- """
49
- If the dynamic_variables_webhook_url is set for the assistant, we will send a
50
- request at the start of the conversation. See our
51
- [guide](https://developers.telnyx.com/docs/inference/ai-assistants/dynamic-variables)
52
- for more information.
53
- """
54
-
55
- enabled_features: Optional[List[EnabledFeatures]] = None
56
-
57
- greeting: Optional[str] = None
58
- """Text that the assistant will use to start the conversation.
59
-
60
- This may be templated with
61
- [dynamic variables](https://developers.telnyx.com/docs/inference/ai-assistants/dynamic-variables)
62
- """
63
-
64
- import_metadata: Optional[ImportMetadata] = None
65
-
66
- insight_settings: Optional[InsightSettings] = None
67
-
68
- llm_api_key_ref: Optional[str] = None
69
- """This is only needed when using third-party inference providers.
70
-
71
- The `identifier` for an integration secret
72
- [/v2/integration_secrets](https://developers.telnyx.com/api/secrets-manager/integration-secrets/create-integration-secret)
73
- that refers to your LLM provider's API key. Warning: Free plans are unlikely to
74
- work with this integration.
75
- """
76
-
77
- messaging_settings: Optional[MessagingSettings] = None
78
-
79
- privacy_settings: Optional[PrivacySettings] = None
80
-
81
- telephony_settings: Optional[TelephonySettings] = None
82
-
83
- tools: Optional[List[AssistantTool]] = None
84
- """The tools that the assistant can use.
85
-
86
- These may be templated with
87
- [dynamic variables](https://developers.telnyx.com/docs/inference/ai-assistants/dynamic-variables)
88
- """
89
-
90
- transcription: Optional[TranscriptionSettings] = None
91
-
92
- voice_settings: Optional[VoiceSettings] = None
@@ -1,12 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from typing import Optional
4
-
5
- from .._models import BaseModel
6
- from .verify_profile_message_template_response import VerifyProfileMessageTemplateResponse
7
-
8
- __all__ = ["VerifyProfileUpdateTemplateResponse"]
9
-
10
-
11
- class VerifyProfileUpdateTemplateResponse(BaseModel):
12
- data: Optional[VerifyProfileMessageTemplateResponse] = None
File without changes