Skip to content

Commit 0bc9393

Browse files
committed
oaiFix: Updated api definitions
1 parent 3d26c20 commit 0bc9393

File tree

10 files changed

+582
-100
lines changed

10 files changed

+582
-100
lines changed

CHANGES.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
--------------------------
2+
**Memory**
3+
- # Memory API Changes
4+
- Added initial Memory API endpoints with darkseagreen badge status
5+
6+
17
### [8.2.2](https://github.com/twilio/twilio-cli-core/compare/8.2.1...8.2.2) (2025-11-11)
28

39
--------------------------

package-lock.json

Lines changed: 38 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/services/twilio-api/twilio_api_v2010.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45449,6 +45449,9 @@
4544945449
{
4545045450
"name": "Api20100401IncomingPhoneNumberTollFree"
4545145451
},
45452+
{
45453+
"name": "Api20100401IndexNode"
45454+
},
4545245455
{
4545345456
"name": "Api20100401IpAccessControlList"
4545445457
},
@@ -45590,6 +45593,9 @@
4559045593
{
4559145594
"name": "Api20100401ValidationRequest"
4559245595
},
45596+
{
45597+
"name": "Api20100401VersionNode"
45598+
},
4559345599
{
4559445600
"name": "Api20100401Voip"
4559545601
},

src/services/twilio-api/twilio_content_v1.json

Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -712,6 +712,33 @@
712712
"types"
713713
]
714714
},
715+
"ContentUpdateRequest": {
716+
"type": "object",
717+
"description": "Content update request body",
718+
"properties": {
719+
"friendly_name": {
720+
"description": "User defined name of the content",
721+
"type": "string"
722+
},
723+
"variables": {
724+
"description": "Key value pairs of variable name to value",
725+
"type": "object",
726+
"additionalProperties": {
727+
"type": "string"
728+
}
729+
},
730+
"language": {
731+
"description": "Language code for the content",
732+
"type": "string"
733+
},
734+
"types": {
735+
"$ref": "#/components/schemas/types"
736+
}
737+
},
738+
"required": [
739+
"types"
740+
]
741+
},
715742
"types": {
716743
"description": "Content types",
717744
"type": "object",
@@ -1429,6 +1456,121 @@
14291456
}
14301457
],
14311458
"operationId": "DeleteContent"
1459+
},
1460+
"put": {
1461+
"description": "Update a Content resource",
1462+
"summary": "Update Content",
1463+
"requestBody": {
1464+
"required": true,
1465+
"content": {
1466+
"application/json": {
1467+
"schema": {
1468+
"$ref": "#/components/schemas/ContentUpdateRequest"
1469+
}
1470+
}
1471+
}
1472+
},
1473+
"tags": [
1474+
"Contentv1Content"
1475+
],
1476+
"parameters": [
1477+
{
1478+
"name": "Sid",
1479+
"in": "path",
1480+
"description": "The Twilio-provided string that uniquely identifies the Content resource to update.",
1481+
"schema": {
1482+
"type": "string",
1483+
"minLength": 34,
1484+
"maxLength": 34,
1485+
"pattern": "^HX[0-9a-fA-F]{32}$"
1486+
},
1487+
"required": true
1488+
}
1489+
],
1490+
"responses": {
1491+
"200": {
1492+
"content": {
1493+
"application/json": {
1494+
"schema": {
1495+
"$ref": "#/components/schemas/content.v1.content"
1496+
},
1497+
"examples": {
1498+
"update": {
1499+
"value": {
1500+
"sid": "HXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
1501+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
1502+
"friendly_name": "",
1503+
"language": "en",
1504+
"variables": {
1505+
"name": "foo"
1506+
},
1507+
"types": {
1508+
"twilio/text": {
1509+
"body": "Foo Bar Co is located at 39.7392, 104.9903"
1510+
},
1511+
"twilio/location": {
1512+
"longitude": 104.9903,
1513+
"latitude": 39.7392,
1514+
"label": "Foo Bar Co"
1515+
}
1516+
},
1517+
"url": "https://content.twilio.com/v1/Content/HXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
1518+
"date_created": "2015-07-30T19:00:00Z",
1519+
"date_updated": "2015-07-30T19:00:00Z",
1520+
"links": {
1521+
"approval_create": "https://content.twilio.com/v1/Content/HXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/ApprovalRequests/whatsapp",
1522+
"approval_fetch": "https://content.twilio.com/v1/Content/HXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/ApprovalRequests"
1523+
}
1524+
}
1525+
}
1526+
}
1527+
}
1528+
},
1529+
"headers": {
1530+
"Access-Control-Allow-Origin": {
1531+
"description": "Specify the origin(s) allowed to access the resource",
1532+
"schema": {
1533+
"type": "string"
1534+
},
1535+
"example": "*"
1536+
},
1537+
"Access-Control-Allow-Methods": {
1538+
"description": "Specify the HTTP methods allowed when accessing the resource",
1539+
"schema": {
1540+
"type": "string"
1541+
},
1542+
"example": "POST, OPTIONS"
1543+
},
1544+
"Access-Control-Allow-Headers": {
1545+
"description": "Specify the headers allowed when accessing the resource",
1546+
"schema": {
1547+
"type": "string"
1548+
},
1549+
"example": "Content-Type, Authorization"
1550+
},
1551+
"Access-Control-Allow-Credentials": {
1552+
"description": "Indicates whether the browser should include credentials",
1553+
"schema": {
1554+
"type": "boolean"
1555+
}
1556+
},
1557+
"Access-Control-Expose-Headers": {
1558+
"description": "Headers exposed to the client",
1559+
"schema": {
1560+
"type": "string",
1561+
"example": "X-Custom-Header1, X-Custom-Header2"
1562+
}
1563+
}
1564+
},
1565+
"description": "OK"
1566+
}
1567+
},
1568+
"security": [
1569+
{
1570+
"accountSid_authToken": []
1571+
}
1572+
],
1573+
"operationId": "UpdateContent"
14321574
}
14331575
},
14341576
"/v1/Content": {

0 commit comments

Comments
 (0)