Skip to content

Commit

Permalink
[Librarian] Regenerated @ 84b4cd4c23a96109c715a2512bbe8238fae5c394
Browse files Browse the repository at this point in the history
  • Loading branch information
twilio-dx committed Jun 18, 2024
1 parent cc2f698 commit 1e8e397
Show file tree
Hide file tree
Showing 13 changed files with 278 additions and 57 deletions.
27 changes: 27 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,32 @@
twilio-oai changelog
====================
[2024-06-18] Version 2.0.0
--------------------------
**Note:** This release contains breaking changes, check our [upgrade guide](./UPGRADE.md#2024-06-18-156x-to-2xx) for detailed migration notes.

**Library - Feature**
- [PR #111](https://github.com/twilio/twilio-oai/pull/111): Merge branch '2.0.0-rc' into main. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)! **(breaking change)**
- [PR #110](https://github.com/twilio/twilio-oai/pull/110): Merge branch '2.0.0-rc' into main. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)! **(breaking change)**

**Events**
- Add `status` and `documentation_url` to Event Types

**Lookups**
- Removed unused `fraud` lookups in V1 only to facilitate rest proxy migration

**Numbers**
- Add date_created field to the Get Port In Request API
- Rename the `status_last_time_updated_timestamp` field to `last_updated` in the Get Port In Phone Number API **(breaking change)**
- Add Rejection reason and rejection reason code to the Get Port In Phone Number API
- Remove the carrier information from the Portability API

**Proxy**
- Change property `type` from enum to ienum

**Trusthub**
- Add skipMessagingUseCase field in compliance_tollfree_inquiry.


[2024-06-06] Version 1.56.1
---------------------------
**Api**
Expand Down
4 changes: 2 additions & 2 deletions spec/json/twilio_api_v2010.json
Original file line number Diff line number Diff line change
Expand Up @@ -1226,7 +1226,7 @@
"price": {
"type": "string",
"nullable": true,
"description": "The charge for this call, in the currency associated with the account. Populated after the call is completed. May not be immediately available."
"description": "The charge for this call, in the currency associated with the account. Populated after the call is completed. May not be immediately available. The price associated with a call only reflects the charge for connectivity. Charges for other call-related features such as Answering Machine Detection, Text-To-Speech, and SIP REFER are not included in this value."
},
"price_unit": {
"type": "string",
Expand Down Expand Up @@ -4639,7 +4639,7 @@
"channels": {
"type": "integer",
"nullable": true,
"description": "The number of channels in the final recording file. Can be: `1` or `2`. You can split a call with two legs into two separate recording channels if you record using [TwiML Dial](https://www.twilio.com/docs/voice/twiml/dial#record) or the [Outbound Rest API](https://www.twilio.com/docs/voice/make-calls#manage-your-outbound-call)."
"description": "The number of channels in the final recording file. Can be: `1` or `2`."
},
"source": {
"type": "string",
Expand Down
95 changes: 95 additions & 0 deletions spec/json/twilio_events_v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,16 @@
"nullable": true,
"description": "A human readable description for this Event Type."
},
"status": {
"type": "string",
"nullable": true,
"description": "A string that describes how this Event Type can be used. For example: `available`, `deprecated`, `restricted`, `discontinued`. When the status is `available`, the Event Type can be used normally."
},
"documentation_url": {
"type": "string",
"nullable": true,
"description": "The URL to the documentation or to the most relevant Twilio Changelog entry of this Event Type."
},
"url": {
"type": "string",
"format": "uri",
Expand Down Expand Up @@ -459,6 +469,8 @@
"type": "com.twilio.messaging.message.delivered",
"schema_id": "Messaging.MessageStatus",
"public": true,
"status": "available",
"documentation_url": null,
"description": "Messaging- delivered message",
"url": "https://events.twilio.com/v1/Types/com.twilio.messaging.message.delivered",
"links": {
Expand All @@ -471,6 +483,51 @@
"type": "com.twilio.messaging.message.failed",
"schema_id": "Messaging.MessageStatus",
"public": true,
"status": "deprecated",
"documentation_url": "https://www.twilio.com/docs/voice/voice-insights/event-streams",
"description": "Messaging- failed message",
"url": "https://events.twilio.com/v1/Types/com.twilio.messaging.message.failed",
"links": {
"schema": "https://events.twilio.com/v1/Schemas/Messaging.MessageStatus/Versions"
}
}
],
"meta": {
"page": 0,
"page_size": 20,
"first_page_url": "https://events.twilio.com/v1/Types?PageSize=20&Page=0",
"previous_page_url": null,
"url": "https://events.twilio.com/v1/Types?PageSize=20&Page=0",
"next_page_url": null,
"key": "types"
}
}
},
"readResultsRollbackStatusAndDocsFields": {
"value": {
"types": [
{
"date_created": "2020-08-13T13:28:20Z",
"date_updated": "2020-08-13T13:28:20Z",
"type": "com.twilio.messaging.message.delivered",
"schema_id": "Messaging.MessageStatus",
"public": true,
"status": "available",
"documentation_url": null,
"description": "Messaging- delivered message",
"url": "https://events.twilio.com/v1/Types/com.twilio.messaging.message.delivered",
"links": {
"schema": "https://events.twilio.com/v1/Schemas/Messaging.MessageStatus/Versions"
}
},
{
"date_created": "2020-08-13T13:28:19Z",
"date_updated": "2020-08-13T13:28:19Z",
"type": "com.twilio.messaging.message.failed",
"schema_id": "Messaging.MessageStatus",
"public": true,
"status": "available",
"documentation_url": null,
"description": "Messaging- failed message",
"url": "https://events.twilio.com/v1/Types/com.twilio.messaging.message.failed",
"links": {
Expand Down Expand Up @@ -498,6 +555,8 @@
"type": "com.twilio.messaging.message.delivered",
"schema_id": "Messaging.MessageStatus",
"public": true,
"status": "available",
"documentation_url": null,
"description": "Messaging- delivered message",
"url": "https://events.twilio.com/v1/Types/com.twilio.messaging.message.delivered",
"links": {
Expand All @@ -510,6 +569,8 @@
"type": "com.twilio.messaging.message.failed",
"schema_id": "Messaging.MessageStatus",
"public": true,
"status": "deprecated",
"documentation_url": "https://www.twilio.com/docs/voice/voice-insights/event-streams",
"description": "Messaging- failed message",
"url": "https://events.twilio.com/v1/Types/com.twilio.messaging.message.failed",
"links": {
Expand Down Expand Up @@ -618,13 +679,47 @@
"$ref": "#/components/schemas/events.v1.event_type"
},
"examples": {
"fetchNoDocs": {
"value": {
"date_created": "2020-08-13T13:28:20Z",
"date_updated": "2020-08-13T13:28:20Z",
"type": "com.twilio.messaging.message.delivered",
"schema_id": "Messaging.MessageStatus",
"status": "available",
"documentation_url": null,
"public": true,
"description": "Messaging- delivered message",
"url": "https://events.twilio.com/v1/Types/com.twilio.messaging.message.delivered",
"links": {
"schema": "https://events.twilio.com/v1/Schemas/Messaging.MessageStatus/Versions"
}
}
},
"fetch": {
"value": {
"date_created": "2020-08-13T13:28:20Z",
"date_updated": "2020-08-13T13:28:20Z",
"type": "com.twilio.messaging.message.delivered",
"schema_id": "Messaging.MessageStatus",
"public": true,
"status": "available",
"documentation_url": "https://www.twilio.com/docs/voice/voice-insights/event-streams",
"description": "Messaging- delivered message",
"url": "https://events.twilio.com/v1/Types/com.twilio.messaging.message.delivered",
"links": {
"schema": "https://events.twilio.com/v1/Schemas/Messaging.MessageStatus/Versions"
}
}
},
"fetchRollbackStatusAndDocsFields": {
"value": {
"date_created": "2020-08-13T13:28:20Z",
"date_updated": "2020-08-13T13:28:20Z",
"type": "com.twilio.messaging.message.delivered",
"schema_id": "Messaging.MessageStatus",
"public": true,
"status": "available",
"documentation_url": null,
"description": "Messaging- delivered message",
"url": "https://events.twilio.com/v1/Types/com.twilio.messaging.message.delivered",
"links": {
Expand Down
8 changes: 0 additions & 8 deletions spec/json/twilio_lookups_v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,6 @@
"value": {
"caller_name": null,
"carrier": null,
"fraud": null,
"add_ons": null,
"country_code": "US",
"national_format": "(510) 867-5310",
Expand All @@ -303,7 +302,6 @@
"country_code": "US",
"national_format": "(510) 867-5310",
"phone_number": "+15108675310",
"fraud": null,
"add_ons": null,
"url": "https://lookups.twilio.com/v1/PhoneNumbers/+15108675310"
}
Expand All @@ -321,7 +319,6 @@
"country_code": "GB",
"national_format": "020 7765 1182",
"phone_number": "+4402077651182",
"fraud": null,
"add_ons": null,
"url": "https://lookups.twilio.com/v1/PhoneNumbers/+4402077651182"
}
Expand All @@ -334,7 +331,6 @@
"error_code": null
},
"carrier": null,
"fraud": null,
"country_code": "US",
"national_format": "(510) 867-5310",
"phone_number": "+15108675310",
Expand All @@ -356,7 +352,6 @@
"name": "verizon",
"type": "mobile"
},
"fraud": null,
"country_code": "US",
"national_format": "(510) 867-5310",
"phone_number": "+15108675310",
Expand All @@ -380,7 +375,6 @@
"phone_number": "+12127363100",
"national_format": "(212) 736-3100",
"carrier": null,
"fraud": null,
"add_ons": {
"status": "successful",
"message": null,
Expand Down Expand Up @@ -447,7 +441,6 @@
"type": "mobile",
"error_code": null
},
"fraud": null,
"add_ons": {
"status": "successful",
"message": null,
Expand Down Expand Up @@ -482,7 +475,6 @@
"type": "landline",
"error_code": null
},
"fraud": null,
"add_ons": {
"status": "successful",
"message": null,
Expand Down
45 changes: 29 additions & 16 deletions spec/json/twilio_numbers_v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,11 @@
},
"nullable": true,
"description": "The list of documents SID referencing a utility bills"
},
"date_created": {
"type": "string",
"format": "date",
"nullable": true
}
}
},
Expand Down Expand Up @@ -288,7 +293,7 @@
"nullable": true,
"description": "The phone number is missing required fields."
},
"status_last_time_updated_timestamp": {
"last_updated": {
"type": "string",
"format": "date-time",
"nullable": true,
Expand All @@ -311,14 +316,29 @@
"description": "The reason why the phone number is not portable."
},
"not_portability_reason_code": {
"type": "string",
"type": "integer",
"nullable": true,
"description": "The code of the reason why the phone number is not portable."
},
"port_in_phone_number_status": {
"type": "string",
"nullable": true,
"description": "The status of the phone number in the port in request."
},
"port_out_pin": {
"type": "integer",
"nullable": true,
"description": "The pin required for the losing carrier to port out the phone number."
},
"rejection_reason": {
"type": "string",
"nullable": true,
"description": "The rejection reason returned by the vendor."
},
"rejection_reason_code": {
"type": "integer",
"nullable": true,
"description": "The rejection reason code returned by the vendor."
}
}
},
Expand Down Expand Up @@ -371,16 +391,6 @@
"nullable": true,
"description": "Country the phone number belongs to."
},
"messaging_carrier": {
"type": "string",
"nullable": true,
"description": "Current messaging carrier of the phone number"
},
"voice_carrier": {
"type": "string",
"nullable": true,
"description": "Current voice carrier of the phone number"
},
"url": {
"type": "string",
"format": "uri",
Expand Down Expand Up @@ -940,6 +950,7 @@
"target_port_in_time_range_start": "10:00:00+01:00",
"target_port_in_time_range_end": "20:00:00+01:00",
"port_in_request_status": "pending",
"date_created": "2023-09-10",
"losing_carrier_information": {
"customer_type": "Business/Individual",
"customer_name": "Customer name for carrier",
Expand Down Expand Up @@ -1119,6 +1130,7 @@
"target_port_in_time_range_start": "10:00:00+01:00",
"target_port_in_time_range_end": "20:00:00+01:00",
"port_in_request_status": "pending",
"date_created": "2023-09-10",
"losing_carrier_information": {
"customer_type": "Business/Individual",
"customer_name": "Customer name for carrier",
Expand Down Expand Up @@ -1307,13 +1319,16 @@
"date_created": "2024-04-10T06:52:21Z",
"country": "US",
"missing_required_fields": false,
"status_last_time_updated_timestamp": "2024-03-12T06:52:21Z",
"last_updated": "2024-03-12T06:52:21Z",
"phone_number": "+15024953384",
"portable": true,
"not_portability_reason": "ALREADY_IN_TWILIO_DIFFERENT_OWNER",
"not_portability_reason_code": "22132",
"not_portability_reason_code": 22132,
"port_in_phone_number_status": "in_review",
"phone_number_sid": "PUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"port_out_pin": 1234,
"rejection_reason": null,
"rejection_reason_code": null,
"url": "https://numbers.twilio.com/v1/Porting/PortIn/KWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/PhoneNumber/PUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
}
Expand Down Expand Up @@ -1430,8 +1445,6 @@
"not_portable_reason_code": 22133,
"number_type": "TOLL-FREE",
"country": "US",
"messaging_carrier": "Verizon",
"voice_carrier": "Verizon",
"url": "https://numbers.twilio.com/v1/Porting/Portability/PhoneNumber/+18001234567"
}
}
Expand Down
4 changes: 2 additions & 2 deletions spec/json/twilio_proxy_v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -1322,7 +1322,7 @@
}
],
"responses": {
"201": {
"200": {
"content": {
"application/json": {
"schema": {
Expand Down Expand Up @@ -1392,7 +1392,7 @@
}
}
},
"description": "Created"
"description": "OK"
}
},
"security": [
Expand Down
Loading

0 comments on commit 1e8e397

Please sign in to comment.