10
10
ActivateNumberRequest , CheckNumberAvailabilityRequest , ListAvailableNumbersRequest , RentAnyNumberRequest
11
11
)
12
12
from sinch .domains .numbers .models .available import (
13
- ActivateNumberResponse , CheckNumberAvailabilityResponse , RentAnyNumberResponse
13
+ CheckNumberAvailabilityResponse , RentAnyNumberResponse
14
14
)
15
15
from sinch .domains .numbers .models .numbers import (
16
- CapabilityTypeValuesList , Number , NumberSearchPatternTypeValues , NumberTypeValues
16
+ ActiveNumber , CapabilityTypeValuesList , Number , NumberSearchPatternTypeValues , NumberTypeValues
17
17
)
18
18
19
19
@@ -66,7 +66,7 @@ def activate(
66
66
sms_configuration : Optional [SmsConfigurationDict ] = None ,
67
67
voice_configuration : Optional [VoiceConfigurationDictType ] = None ,
68
68
callback_url : Optional [StrictStr ] = None
69
- ) -> ActivateNumberResponse :
69
+ ) -> ActiveNumber :
70
70
pass
71
71
72
72
@overload
@@ -76,7 +76,7 @@ def activate(
76
76
sms_configuration : SmsConfigurationDict ,
77
77
voice_configuration : VoiceConfigurationDictEST ,
78
78
callback_url : Optional [StrictStr ] = None
79
- ) -> ActivateNumberResponse :
79
+ ) -> ActiveNumber :
80
80
pass
81
81
82
82
@overload
@@ -86,7 +86,7 @@ def activate(
86
86
sms_configuration : SmsConfigurationDict ,
87
87
voice_configuration : VoiceConfigurationDictFAX ,
88
88
callback_url : Optional [StrictStr ] = None
89
- ) -> ActivateNumberResponse :
89
+ ) -> ActiveNumber :
90
90
pass
91
91
92
92
@overload
@@ -96,7 +96,7 @@ def activate(
96
96
sms_configuration : SmsConfigurationDict ,
97
97
voice_configuration : VoiceConfigurationDictRTC ,
98
98
callback_url : Optional [StrictStr ] = None
99
- ) -> ActivateNumberResponse :
99
+ ) -> ActiveNumber :
100
100
pass
101
101
102
102
def activate (
@@ -106,7 +106,7 @@ def activate(
106
106
voice_configuration : Optional [VoiceConfigurationDictType ] = None ,
107
107
callback_url : Optional [StrictStr ] = None ,
108
108
** kwargs
109
- ) -> ActivateNumberResponse :
109
+ ) -> ActiveNumber :
110
110
"""
111
111
Activate a virtual number to use with SMS, Voice, or both products.
112
112
@@ -125,7 +125,7 @@ def activate(
125
125
**kwargs: Additional parameters for the request.
126
126
127
127
Returns:
128
- ActivateNumberResponse : A response object with the activated number and its details.
128
+ ActiveNumber : A response object with the activated number and its details.
129
129
130
130
For detailed documentation, visit https://developers.sinch.com
131
131
"""
@@ -147,7 +147,7 @@ def rent_any(
147
147
voice_configuration : None ,
148
148
number_pattern : Optional [NumberPatternDict ] = None ,
149
149
capabilities : Optional [CapabilityTypeValuesList ] = None ,
150
- callback_url : Optional [str ] = None ,
150
+ callback_url : Optional [StrictStr ] = None ,
151
151
) -> RentAnyNumberResponse :
152
152
pass
153
153
@@ -160,7 +160,7 @@ def rent_any(
160
160
voice_configuration : VoiceConfigurationDictRTC ,
161
161
number_pattern : Optional [NumberPatternDict ] = None ,
162
162
capabilities : Optional [CapabilityTypeValuesList ] = None ,
163
- callback_url : Optional [str ] = None ,
163
+ callback_url : Optional [StrictStr ] = None ,
164
164
) -> RentAnyNumberResponse :
165
165
pass
166
166
@@ -173,7 +173,7 @@ def rent_any(
173
173
voice_configuration : VoiceConfigurationDictFAX ,
174
174
number_pattern : Optional [NumberPatternDict ] = None ,
175
175
capabilities : Optional [CapabilityTypeValuesList ] = None ,
176
- callback_url : Optional [str ] = None ,
176
+ callback_url : Optional [StrictStr ] = None ,
177
177
) -> RentAnyNumberResponse :
178
178
pass
179
179
@@ -186,7 +186,7 @@ def rent_any(
186
186
voice_configuration : VoiceConfigurationDictEST ,
187
187
number_pattern : Optional [NumberPatternDict ] = None ,
188
188
capabilities : Optional [CapabilityTypeValuesList ] = None ,
189
- callback_url : Optional [str ] = None ,
189
+ callback_url : Optional [StrictStr ] = None ,
190
190
) -> RentAnyNumberResponse :
191
191
pass
192
192
@@ -198,7 +198,7 @@ def rent_any(
198
198
capabilities : Optional [CapabilityTypeValuesList ] = None ,
199
199
sms_configuration : Optional [SmsConfigurationDict ] = None ,
200
200
voice_configuration : Optional [VoiceConfigurationDictType ] = None ,
201
- callback_url : Optional [str ] = None ,
201
+ callback_url : Optional [StrictStr ] = None ,
202
202
** kwargs
203
203
) -> RentAnyNumberResponse :
204
204
"""
@@ -219,7 +219,7 @@ def rent_any(
219
219
- `VoiceConfigurationDictRTC`: type 'RTC' with an `app_id` field.
220
220
- `VoiceConfigurationDictEST`: type 'EST' with a `trunk_id` field.
221
221
- `VoiceConfigurationDictFAX`: type 'FAX' with a `service_id` field.
222
- callback_url (str ): The callback URL to receive notifications.
222
+ callback_url (StrictStr ): The callback URL to receive notifications.
223
223
**kwargs: Additional parameters for the request.
224
224
225
225
Returns:
0 commit comments