Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reordered properties #70

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
800 changes: 400 additions & 400 deletions spec/json/twilio_accounts_v1.json

Large diffs are not rendered by default.

33,978 changes: 16,989 additions & 16,989 deletions spec/json/twilio_api_v2010.json

Large diffs are not rendered by default.

4,804 changes: 2,402 additions & 2,402 deletions spec/json/twilio_autopilot_v1.json

Large diffs are not rendered by default.

964 changes: 482 additions & 482 deletions spec/json/twilio_bulkexports_v1.json

Large diffs are not rendered by default.

5,018 changes: 2,509 additions & 2,509 deletions spec/json/twilio_chat_v1.json

Large diffs are not rendered by default.

6,564 changes: 3,282 additions & 3,282 deletions spec/json/twilio_chat_v2.json

Large diffs are not rendered by default.

242 changes: 121 additions & 121 deletions spec/json/twilio_chat_v3.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,191 +2,176 @@
"components": {
"schemas": {
"chat.v3.channel": {
"type": "object",
"properties": {
"sid": {
"type": "string",
"minLength": 34,
"maxLength": 34,
"pattern": "^CH[0-9a-fA-F]{32}$",
"nullable": true,
"description": "The unique string that identifies the resource"
},
"account_sid": {
"description": "The SID of the Account that created the resource",
"type": "string",
"minLength": 34,
"maxLength": 34,
"pattern": "^AC[0-9a-fA-F]{32}$",
"nullable": true,
"description": "The SID of the Account that created the resource"
},
"service_sid": {
"type": "string",
"minLength": 34,
"maxLength": 34,
"pattern": "^IS[0-9a-fA-F]{32}$",
"nullable": true,
"pattern": "^AC[0-9a-fA-F]{32}$",
"type": "string"
"description": "The SID of the Service that the resource is associated with"
},
"friendly_name": {
"type": "string",
"nullable": true,
"description": "The string that you assigned to describe the resource"
},
"unique_name": {
"type": "string",
"nullable": true,
"description": "An application-defined string that uniquely identifies the resource"
},
"attributes": {
"description": "The JSON string that stores application-specific data",
"type": "string",
"nullable": true,
"type": "string"
"description": "The JSON string that stores application-specific data"
},
"created_by": {
"description": "The identity of the User that created the channel",
"type": {
"type": "string",
"enum": [
"public",
"private"
],
"nullable": true,
"type": "string"
"description": "The visibility of the channel. Can be: `public` or `private`"
},
"date_created": {
"description": "The ISO 8601 date and time in GMT when the resource was created",
"type": "string",
"format": "date-time",
"nullable": true,
"type": "string"
"description": "The ISO 8601 date and time in GMT when the resource was created"
},
"date_updated": {
"description": "The ISO 8601 date and time in GMT when the resource was last updated",
"type": "string",
"format": "date-time",
"nullable": true,
"type": "string"
"description": "The ISO 8601 date and time in GMT when the resource was last updated"
},
"friendly_name": {
"description": "The string that you assigned to describe the resource",
"created_by": {
"type": "string",
"nullable": true,
"type": "string"
"description": "The identity of the User that created the channel"
},
"members_count": {
"description": "The number of Members in the Channel",
"type": "integer",
"nullable": true,
"type": "integer"
"description": "The number of Members in the Channel"
},
"messages_count": {
"description": "The number of Messages that have been passed in the Channel",
"type": "integer",
"nullable": true,
"type": "integer"
"description": "The number of Messages that have been passed in the Channel"
},
"messaging_service_sid": {
"description": "The unique ID of the Messaging Service this channel belongs to.",
"maxLength": 34,
"type": "string",
"minLength": 34,
"nullable": true,
"pattern": "^MG[0-9a-fA-F]{32}$",
"type": "string"
},
"service_sid": {
"description": "The SID of the Service that the resource is associated with",
"maxLength": 34,
"minLength": 34,
"nullable": true,
"pattern": "^IS[0-9a-fA-F]{32}$",
"type": "string"
},
"sid": {
"description": "The unique string that identifies the resource",
"maxLength": 34,
"minLength": 34,
"nullable": true,
"pattern": "^CH[0-9a-fA-F]{32}$",
"type": "string"
},
"type": {
"description": "The visibility of the channel. Can be: `public` or `private`",
"enum": [
"public",
"private"
],
"nullable": true,
"type": "string"
},
"unique_name": {
"description": "An application-defined string that uniquely identifies the resource",
"pattern": "^MG[0-9a-fA-F]{32}$",
"nullable": true,
"type": "string"
"description": "The unique ID of the Messaging Service this channel belongs to."
},
"url": {
"description": "The absolute URL of the Channel resource",
"type": "string",
"format": "uri",
"nullable": true,
"type": "string"
"description": "The absolute URL of the Channel resource"
}
},
"type": "object"
}
}
},
"securitySchemes": {
"accountSid_authToken": {
"scheme": "basic",
"type": "http"
"type": "http",
"scheme": "basic"
}
}
},
"info": {
"title": "Twilio - Chat",
"description": "This is the public Twilio REST API.",
"termsOfService": "https://www.twilio.com/legal/tos",
"contact": {
"email": "[email protected]",
"name": "Twilio Support",
"url": "https://support.twilio.com"
"url": "https://support.twilio.com",
"email": "[email protected]"
},
"description": "This is the public Twilio REST API.",
"license": {
"name": "Apache 2.0",
"url": "https://www.apache.org/licenses/LICENSE-2.0.html"
},
"termsOfService": "https://www.twilio.com/legal/tos",
"title": "Twilio - Chat",
"version": "1.30.0"
},
"openapi": "3.0.1",
"paths": {
"/v3/Services/{ServiceSid}/Channels/{Sid}": {
"servers": [
{
"url": "https://chat.twilio.com"
}
],
"description": "A Channel resource represents a chat/conversation channel with an ordered list of messages and a participant roster.",
"x-twilio": {
"defaultOutputProperties": [
"sid",
"unique_name",
"friendly_name"
],
"pathType": "instance"
},
"post": {
"description": "Update a specific Channel.",
"operationId": "UpdateChannel",
"parameters": [
{
"description": "The unique SID identifier of the Service.",
"in": "path",
"name": "ServiceSid",
"required": true,
"in": "path",
"description": "The unique SID identifier of the Service.",
"schema": {
"maxLength": 34,
"type": "string",
"minLength": 34,
"pattern": "^IS[0-9a-fA-F]{32}$",
"type": "string"
}
"maxLength": 34,
"pattern": "^IS[0-9a-fA-F]{32}$"
},
"required": true
},
{
"description": "A 34 character string that uniquely identifies this Channel.",
"in": "path",
"name": "Sid",
"required": true,
"in": "path",
"description": "A 34 character string that uniquely identifies this Channel.",
"schema": {
"type": "string"
}
},
"required": true
},
{
"description": "The X-Twilio-Webhook-Enabled HTTP request header",
"in": "header",
"name": "X-Twilio-Webhook-Enabled",
"in": "header",
"description": "The X-Twilio-Webhook-Enabled HTTP request header",
"schema": {
"type": "string",
"enum": [
"true",
"false"
],
"type": "string"
]
}
}
],
"requestBody": {
"content": {
"application/x-www-form-urlencoded": {
"schema": {
"properties": {
"MessagingServiceSid": {
"description": "The unique ID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) this channel belongs to.",
"maxLength": 34,
"minLength": 34,
"pattern": "^MG[0-9a-fA-F]{32}$",
"type": "string"
},
"Type": {
"description": "TThe Type for this Channel to migrate to. Can only be `private`. Migration to 'public' is not allowed.",
"enum": [
"public",
"private"
],
"type": "string"
}
},
"title": "UpdateChannelRequest",
"type": "object"
}
}
}
},
"responses": {
"200": {
"content": {
Expand All @@ -204,22 +189,37 @@
"accountSid_authToken": []
}
],
"operationId": "UpdateChannel",
"x-maturity": [
"GA"
]
},
"servers": [
{
"url": "https://chat.twilio.com"
}
],
"x-twilio": {
"defaultOutputProperties": [
"sid",
"unique_name",
"friendly_name"
],
"pathType": "instance"
"requestBody": {
"content": {
"application/x-www-form-urlencoded": {
"schema": {
"type": "object",
"title": "UpdateChannelRequest",
"properties": {
"Type": {
"type": "string",
"enum": [
"public",
"private"
],
"description": "TThe Type for this Channel to migrate to. Can only be `private`. Migration to 'public' is not allowed."
},
"MessagingServiceSid": {
"type": "string",
"minLength": 34,
"maxLength": 34,
"pattern": "^MG[0-9a-fA-F]{32}$",
"description": "The unique ID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) this channel belongs to."
}
}
}
}
}
}
}
}
},
Expand All @@ -230,8 +230,8 @@
],
"x-maturity": [
{
"description": "This product is Generally Available.",
"name": "GA"
"name": "GA",
"description": "This product is Generally Available."
}
]
}
Loading