Skip to content

Commit

Permalink
oaiFeat: Updated api definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
twilio-dx committed Oct 19, 2023
1 parent 236906b commit 7e9d339
Show file tree
Hide file tree
Showing 46 changed files with 2,613 additions and 1,380 deletions.
32 changes: 32 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,35 @@
---------------------------
**Accounts**
- Updated Safelist metadata to correct the docs.
- Add Global SafeList API changes

**Api**
- Added optional parameter `CallToken` for create participant api

**Flex**
- Adding `offline_config` to Flex Configuration

**Intelligence**
- Deleted `redacted` parameter from fetching transcript in v2 **(breaking change)**

**Lookups**
- Add new `phone_number_quality_score` package to the lookup response
- Remove `disposable_phone_number_risk` package **(breaking change)**

**Messaging**
- Update US App To Person documentation with current `message_samples` requirements

**Taskrouter**
- Remove beta_feature check on task_queue_bulk_real_time_statistics endpoint
- Add `virtual_start_time` property to tasks
- Updating `task_queue_data` format from `map` to `array` in the response of bulk get endpoint of TaskQueue Real Time Statistics API **(breaking change)**


---------------------------
**Lookups**
- Add test api support for Lookup v2


## [7.17.0](https://github.com/twilio/twilio-cli-core/compare/7.16.0...7.17.0) (2023-09-21)

---------------------------
Expand Down
383 changes: 210 additions & 173 deletions package-lock.json

Large diffs are not rendered by default.

156 changes: 155 additions & 1 deletion src/services/twilio-api/twilio_accounts_v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,24 @@
}
}
},
"accounts.v1.safelist": {
"type": "object",
"properties": {
"sid": {
"type": "string",
"minLength": 34,
"maxLength": 34,
"pattern": "^GN[0-9a-fA-F]{32}$",
"nullable": true,
"description": "The unique string that we created to identify the SafeList resource."
},
"phone_number": {
"type": "string",
"nullable": true,
"description": "The phone number in SafeList."
}
}
},
"accounts.v1.secondary_auth_token": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -186,7 +204,7 @@
"name": "Apache 2.0",
"url": "https://www.apache.org/licenses/LICENSE-2.0.html"
},
"version": "1.50.0"
"version": "1.51.0"
},
"openapi": "3.0.1",
"paths": {
Expand Down Expand Up @@ -888,6 +906,135 @@
]
}
},
"/v1/SafeList/Numbers": {
"servers": [
{
"url": "https://accounts.twilio.com"
}
],
"description": "TODO: Resource-level docs",
"x-twilio": {
"defaultOutputProperties": [
"sid",
"phone_number"
],
"pathType": "list",
"mountName": "safelist"
},
"post": {
"description": "Add a new phone number to SafeList.",
"tags": [
"AccountsV1Safelist"
],
"responses": {
"201": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/accounts.v1.safelist"
}
}
},
"description": "Created"
}
},
"security": [
{
"accountSid_authToken": []
}
],
"operationId": "CreateSafelist",
"x-maturity": [
"Beta"
],
"requestBody": {
"content": {
"application/x-www-form-urlencoded": {
"schema": {
"type": "object",
"title": "CreateSafelistRequest",
"properties": {
"PhoneNumber": {
"type": "string",
"description": "The phone number to be added in SafeList. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164)."
}
},
"required": [
"PhoneNumber"
]
}
}
}
}
},
"get": {
"description": "Check if a phone number exists in SafeList.",
"tags": [
"AccountsV1Safelist"
],
"parameters": [
{
"name": "PhoneNumber",
"in": "query",
"description": "The phone number to be fetched from SafeList. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164).",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/accounts.v1.safelist"
}
}
},
"description": "OK"
}
},
"security": [
{
"accountSid_authToken": []
}
],
"operationId": "FetchSafelist",
"x-maturity": [
"Beta"
]
},
"delete": {
"description": "Remove a phone number from SafeList.",
"tags": [
"AccountsV1Safelist"
],
"parameters": [
{
"name": "PhoneNumber",
"in": "query",
"description": "The phone number to be removed from SafeList. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164).",
"schema": {
"type": "string"
}
}
],
"responses": {
"204": {
"description": "The resource was deleted successfully."
}
},
"security": [
{
"accountSid_authToken": []
}
],
"operationId": "DeleteSafelist",
"x-maturity": [
"Beta"
]
}
},
"/v1/AuthTokens/Secondary": {
"servers": [
{
Expand Down Expand Up @@ -968,6 +1115,9 @@
{
"name": "AccountsV1PublicKey"
},
{
"name": "AccountsV1Safelist"
},
{
"name": "AccountsV1SecondaryAuthToken"
}
Expand All @@ -976,6 +1126,10 @@
{
"name": "GA",
"description": "This product is Generally Available."
},
{
"name": "Beta",
"description": "PLEASE NOTE that this is a Beta product that is subject to change. Use it with caution."
}
]
}
Loading

0 comments on commit 7e9d339

Please sign in to comment.