You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGES.md
+72Lines changed: 72 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,78 @@
1
1
twilio-php Changelog
2
2
====================
3
3
4
+
[2025-03-20] Version 8.4.1
5
+
--------------------------
6
+
**Library - Chore**
7
+
-[PR #851](https://github.com/twilio/twilio-php/pull/851): fix seralization. Thanks to [@manisha1997](https://github.com/manisha1997)!
8
+
9
+
**Accounts**
10
+
- Update Safelist API docs as part of prefix supoort
11
+
12
+
**Flex**
13
+
- Removing `first_name`, `last_name`, and `friendly_name` from the Flex User API
14
+
15
+
**Messaging**
16
+
- Add missing tests under transaction/phone_numbers and transaction/short_code
17
+
18
+
19
+
[2025-03-11] Version 8.4.0
20
+
--------------------------
21
+
**Api**
22
+
- Add the missing `emergency_enabled` field for `Address Service` endpoints
23
+
24
+
**Messaging**
25
+
- Add missing enums for A2P and TF
26
+
27
+
**Numbers**
28
+
- add missing enum values to hosted_number_order_status
29
+
30
+
**Twiml**
31
+
- Convert Twiml Attribute `speechModel` of type enum to string **(breaking change)**
32
+
33
+
34
+
[2025-02-20] Version 8.3.15
35
+
---------------------------
36
+
**Flex**
37
+
- Adding Digital Transfers APIs under v1/Interactions
38
+
39
+
**Numbers**
40
+
- Convert webhook_type to ienum type in v1/Porting/Configuration/Webhook/{webhook_type}
41
+
42
+
**Trusthub**
43
+
- Changing TrustHub SupportingDocument status enum from lowercase to uppercase since kyc-orch returns status capitalized and rest proxy requires strict casing
44
+
45
+
46
+
[2025-02-11] Version 8.3.14
47
+
---------------------------
48
+
**Api**
49
+
- Change downstream url and change media type for file `base/api/v2010/validation_request.json`.
50
+
51
+
**Intelligence**
52
+
- Add json_results for Generative JSON operator results
53
+
54
+
**Messaging**
55
+
- Add DestinationAlphaSender API to support Country-Specific Alpha Senders
56
+
57
+
**Video**
58
+
- Change codec type from enum to case-insensitive enum in recording and room_recording apis
59
+
60
+
61
+
[2025-01-28] Version 8.3.13
62
+
---------------------------
63
+
**Api**
64
+
- Add open-api file tag to `conference/call recordings` and `recording_transcriptions`.
65
+
66
+
**Events**
67
+
- Add support for subaccount subscriptions (beta)
68
+
69
+
**Insights**
70
+
- add new region to conference APIs
71
+
72
+
**Lookups**
73
+
- Add new `parnter_sub_id` query parameter to the lookup request
Copy file name to clipboardExpand all lines: src/Twilio/Rest/Accounts/V1/BulkConsentsList.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,7 @@ public function __construct(
45
45
/**
46
46
* Create the BulkConsentsInstance
47
47
*
48
-
* @param array[] $items This is a list of objects that describes a contact's opt-in status. Each object contains the following fields: `contact_id`, which must be a string representing phone number in [E.164 format](https://www.twilio.com/docs/glossary/what-e164); `correlation_id`, a unique 32-character UUID used to uniquely map the request item with the response item; `sender_id`, which can be either a valid messaging service SID or a from phone number; `status`, a string representing the consent status. Can be one of [`opt-in`, `opt-out`]; and `source`, a string indicating the medium through which the consent was collected. Can be one of [`website`, `offline`, `opt-in-message`, `opt-out-message`, `others`].
48
+
* @param object[] $items This is a list of objects that describes a contact's opt-in status. Each object contains the following fields: `contact_id`, which must be a string representing phone number in [E.164 format](https://www.twilio.com/docs/glossary/what-e164); `correlation_id`, a unique 32-character UUID used to uniquely map the request item with the response item; `sender_id`, which can be either a valid messaging service SID or a from phone number; `status`, a string representing the consent status. Can be one of [`opt-in`, `opt-out`]; and `source`, a string indicating the medium through which the consent was collected. Can be one of [`website`, `offline`, `opt-in-message`, `opt-out-message`, `others`].
49
49
* @return BulkConsentsInstance Created BulkConsentsInstance
50
50
* @throws TwilioException When an HTTP error occurs.
Copy file name to clipboardExpand all lines: src/Twilio/Rest/Accounts/V1/BulkContactsList.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,7 @@ public function __construct(
45
45
/**
46
46
* Create the BulkContactsInstance
47
47
*
48
-
* @param array[] $items A list of objects where each object represents a contact's details. Each object includes the following fields: `contact_id`, which must be a string representing phone number in [E.164 format](https://www.twilio.com/docs/glossary/what-e164); `correlation_id`, a unique 32-character UUID that maps the response to the original request; `country_iso_code`, a string representing the country using the ISO format (e.g., US for the United States); and `zip_code`, a string representing the postal code.
48
+
* @param object[] $items A list of objects where each object represents a contact's details. Each object includes the following fields: `contact_id`, which must be a string representing phone number in [E.164 format](https://www.twilio.com/docs/glossary/what-e164); `correlation_id`, a unique 32-character UUID that maps the response to the original request; `country_iso_code`, a string representing the country using the ISO format (e.g., US for the United States); and `zip_code`, a string representing the postal code.
49
49
* @return BulkContactsInstance Created BulkContactsInstance
50
50
* @throws TwilioException When an HTTP error occurs.
Copy file name to clipboardExpand all lines: src/Twilio/Rest/Accounts/V1/SafelistList.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,7 @@ public function __construct(
45
45
/**
46
46
* Create the SafelistInstance
47
47
*
48
-
* @param string $phoneNumber The phone number to be added in SafeList. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164).
48
+
* @param string $phoneNumber The phone number or phone number 1k prefix to be added in SafeList. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164).
49
49
* @return SafelistInstance Created SafelistInstance
50
50
* @throws TwilioException When an HTTP error occurs.
Copy file name to clipboardExpand all lines: src/Twilio/Rest/Accounts/V1/SafelistOptions.php
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ abstract class SafelistOptions
22
22
{
23
23
24
24
/**
25
-
* @param string $phoneNumber The phone number to be removed from SafeList. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164).
25
+
* @param string $phoneNumber The phone number or phone number 1k prefix to be removed from SafeList. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164).
26
26
* @return DeleteSafelistOptions Options builder
27
27
*/
28
28
publicstaticfunctiondelete(
@@ -37,7 +37,7 @@ public static function delete(
37
37
}
38
38
39
39
/**
40
-
* @param string $phoneNumber The phone number to be fetched from SafeList. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164).
40
+
* @param string $phoneNumber The phone number or phone number 1k prefix to be fetched from SafeList. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164).
41
41
* @return FetchSafelistOptions Options builder
42
42
*/
43
43
publicstaticfunctionfetch(
@@ -57,7 +57,7 @@ public static function fetch(
57
57
class DeleteSafelistOptions extends Options
58
58
{
59
59
/**
60
-
* @param string $phoneNumber The phone number to be removed from SafeList. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164).
60
+
* @param string $phoneNumber The phone number or phone number 1k prefix to be removed from SafeList. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164).
61
61
*/
62
62
publicfunction__construct(
63
63
@@ -68,9 +68,9 @@ public function __construct(
68
68
}
69
69
70
70
/**
71
-
* The phone number to be removed from SafeList. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164).
71
+
* The phone number or phone number 1k prefix to be removed from SafeList. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164).
72
72
*
73
-
* @param string $phoneNumber The phone number to be removed from SafeList. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164).
73
+
* @param string $phoneNumber The phone number or phone number 1k prefix to be removed from SafeList. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164).
@@ -94,7 +94,7 @@ public function __toString(): string
94
94
class FetchSafelistOptions extends Options
95
95
{
96
96
/**
97
-
* @param string $phoneNumber The phone number to be fetched from SafeList. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164).
97
+
* @param string $phoneNumber The phone number or phone number 1k prefix to be fetched from SafeList. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164).
98
98
*/
99
99
publicfunction__construct(
100
100
@@ -105,9 +105,9 @@ public function __construct(
105
105
}
106
106
107
107
/**
108
-
* The phone number to be fetched from SafeList. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164).
108
+
* The phone number or phone number 1k prefix to be fetched from SafeList. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164).
109
109
*
110
-
* @param string $phoneNumber The phone number to be fetched from SafeList. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164).
110
+
* @param string $phoneNumber The phone number or phone number 1k prefix to be fetched from SafeList. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164).
Copy file name to clipboardExpand all lines: src/Twilio/Rest/Api/V2010/Account/AddressOptions.php
+22-4Lines changed: 22 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -49,26 +49,29 @@ public static function create(
49
49
/**
50
50
* @param string $customerName The `customer_name` of the Address resources to read.
51
51
* @param string $friendlyName The string that identifies the Address resources to read.
52
+
* @param bool $emergencyEnabled Whether the address can be associated to a number for emergency calling.
52
53
* @param string $isoCountry The ISO country code of the Address resources to read.
53
54
* @return ReadAddressOptions Options builder
54
55
*/
55
56
publicstaticfunctionread(
56
57
57
58
string$customerName = Values::NONE,
58
59
string$friendlyName = Values::NONE,
60
+
bool$emergencyEnabled = Values::BOOL_NONE,
59
61
string$isoCountry = Values::NONE
60
62
61
63
): ReadAddressOptions
62
64
{
63
65
returnnewReadAddressOptions(
64
66
$customerName,
65
67
$friendlyName,
68
+
$emergencyEnabled,
66
69
$isoCountry
67
70
);
68
71
}
69
72
70
73
/**
71
-
* @param string $friendlyName A descriptive string that you create to describe the address. It can be up to 64 characters long.
74
+
* @param string $friendlyName A descriptive string that you create to describe the new address. It can be up to 64 characters long for Regulatory Compliance addresses and 32 characters long for Emergency addresses.
72
75
* @param string $customerName The name to associate with the address.
73
76
* @param string $street The number and street address of the address.
74
77
* @param string $city The city of the address.
@@ -197,17 +200,20 @@ class ReadAddressOptions extends Options
197
200
/**
198
201
* @param string $customerName The `customer_name` of the Address resources to read.
199
202
* @param string $friendlyName The string that identifies the Address resources to read.
203
+
* @param bool $emergencyEnabled Whether the address can be associated to a number for emergency calling.
200
204
* @param string $isoCountry The ISO country code of the Address resources to read.
* The ISO country code of the Address resources to read.
240
258
*
@@ -262,7 +280,7 @@ public function __toString(): string
262
280
class UpdateAddressOptions extends Options
263
281
{
264
282
/**
265
-
* @param string $friendlyName A descriptive string that you create to describe the address. It can be up to 64 characters long.
283
+
* @param string $friendlyName A descriptive string that you create to describe the new address. It can be up to 64 characters long for Regulatory Compliance addresses and 32 characters long for Emergency addresses.
266
284
* @param string $customerName The name to associate with the address.
267
285
* @param string $street The number and street address of the address.
268
286
* @param string $city The city of the address.
@@ -297,9 +315,9 @@ public function __construct(
297
315
}
298
316
299
317
/**
300
-
* A descriptive string that you create to describe the address. It can be up to 64 characters long.
318
+
* A descriptive string that you create to describe the new address. It can be up to 64 characters long for Regulatory Compliance addresses and 32 characters long for Emergency addresses.
301
319
*
302
-
* @param string $friendlyName A descriptive string that you create to describe the address. It can be up to 64 characters long.
320
+
* @param string $friendlyName A descriptive string that you create to describe the new address. It can be up to 64 characters long for Regulatory Compliance addresses and 32 characters long for Emergency addresses.
Copy file name to clipboardExpand all lines: src/Twilio/Rest/Api/V2010/Account/Call/TranscriptionOptions.php
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ abstract class TranscriptionOptions
34
34
* @param string $speechModel Recognition model used by the transcription engine, among those supported by the provider
35
35
* @param string $hints A Phrase contains words and phrase \\\"hints\\\" so that the speech recognition engine is more likely to recognize them.
36
36
* @param bool $enableAutomaticPunctuation The provider will add punctuation to recognition result
37
-
* @param string $intelligenceService The SID of the [Voice Intelligence Service](https://www.twilio.com/docs/voice/intelligence/api/service-resource) for persisting transcripts and running post-call Language Operators .
37
+
* @param string $intelligenceService The SID or unique name of the [Voice Intelligence Service](https://www.twilio.com/docs/voice/intelligence/api/service-resource) for persisting transcripts and running post-call Language Operators .
@@ -93,7 +93,7 @@ class CreateTranscriptionOptions extends Options
93
93
* @param string $speechModel Recognition model used by the transcription engine, among those supported by the provider
94
94
* @param string $hints A Phrase contains words and phrase \\\"hints\\\" so that the speech recognition engine is more likely to recognize them.
95
95
* @param bool $enableAutomaticPunctuation The provider will add punctuation to recognition result
96
-
* @param string $intelligenceService The SID of the [Voice Intelligence Service](https://www.twilio.com/docs/voice/intelligence/api/service-resource) for persisting transcripts and running post-call Language Operators .
96
+
* @param string $intelligenceService The SID or unique name of the [Voice Intelligence Service](https://www.twilio.com/docs/voice/intelligence/api/service-resource) for persisting transcripts and running post-call Language Operators .
97
97
*/
98
98
publicfunction__construct(
99
99
@@ -284,9 +284,9 @@ public function setEnableAutomaticPunctuation(bool $enableAutomaticPunctuation):
284
284
}
285
285
286
286
/**
287
-
* The SID of the [Voice Intelligence Service](https://www.twilio.com/docs/voice/intelligence/api/service-resource) for persisting transcripts and running post-call Language Operators .
287
+
* The SID or unique name of the [Voice Intelligence Service](https://www.twilio.com/docs/voice/intelligence/api/service-resource) for persisting transcripts and running post-call Language Operators .
288
288
*
289
-
* @param string $intelligenceService The SID of the [Voice Intelligence Service](https://www.twilio.com/docs/voice/intelligence/api/service-resource) for persisting transcripts and running post-call Language Operators .
289
+
* @param string $intelligenceService The SID or unique name of the [Voice Intelligence Service](https://www.twilio.com/docs/voice/intelligence/api/service-resource) for persisting transcripts and running post-call Language Operators .
0 commit comments