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

create enum schemas #71

Open
wants to merge 1 commit 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
8,501 changes: 2,980 additions & 5,521 deletions spec/yaml/twilio_api_v2010.yaml

Large diffs are not rendered by default.

15 changes: 9 additions & 6 deletions spec/yaml/twilio_autopilot_v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -294,13 +294,8 @@ components:
pattern: ^UG[0-9a-fA-F]{32}$
type: string
status:
$ref: '#/components/schemas/model_build_enum_status'
description: The status of the model build process
enum:
- enqueued
- building
- completed
- failed
- canceled
nullable: true
type: string
unique_name:
Expand Down Expand Up @@ -797,6 +792,14 @@ components:
nullable: true
type: string
type: object
model_build_enum_status:
enum:
- enqueued
- building
- completed
- failed
- canceled
type: string
securitySchemes:
accountSid_authToken:
scheme: basic
Expand Down
22 changes: 22 additions & 0 deletions spec/yaml/twilio_bulkexports_v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,28 @@ components:
nullable: true
type: string
type: object
export_custom_job_enum_status:
enum:
- ErrorDuringRun
- Submitted
- Running
- CompletedEmptyRecords
- Completed
- Failed
- RunningToBeDeleted
- DeletedByUserRequest
type: string
job_enum_status:
enum:
- ErrorDuringRun
- Submitted
- Running
- CompletedEmptyRecords
- Completed
- Failed
- RunningToBeDeleted
- DeletedByUserRequest
type: string
securitySchemes:
accountSid_authToken:
scheme: basic
Expand Down
66 changes: 36 additions & 30 deletions spec/yaml/twilio_chat_v1.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
components:
schemas:
channel_enum_channel_type:
enum:
- public
- private
type: string
chat.v1.credential:
properties:
account_sid:
Expand Down Expand Up @@ -36,11 +41,8 @@ components:
pattern: ^CR[0-9a-fA-F]{32}$
type: string
type:
$ref: '#/components/schemas/credential_enum_push_service'
description: The type of push-notification service the credential is for
enum:
- gcm
- apn
- fcm
nullable: true
type: string
url:
Expand Down Expand Up @@ -223,10 +225,8 @@ components:
pattern: ^CH[0-9a-fA-F]{32}$
type: string
type:
$ref: '#/components/schemas/channel_enum_channel_type'
description: 'The visibility of the channel. Can be: `public` or `private`'
enum:
- public
- private
nullable: true
type: string
unique_name:
Expand Down Expand Up @@ -490,10 +490,8 @@ components:
pattern: ^RL[0-9a-fA-F]{32}$
type: string
type:
$ref: '#/components/schemas/role_enum_role_type'
description: The type of role
enum:
- channel
- deployment
nullable: true
type: string
url:
Expand Down Expand Up @@ -623,18 +621,37 @@ components:
pattern: ^IS[0-9a-fA-F]{32}$
type: string
status:
$ref: '#/components/schemas/user_channel_enum_channel_status'
description: The status of the User on the Channel
enum:
- joined
- invited
- not_participating
nullable: true
type: string
unread_messages_count:
description: The number of unread Messages in the Channel for the User
nullable: true
type: integer
type: object
credential_enum_push_service:
enum:
- gcm
- apn
- fcm
type: string
message_enum_order_type:
enum:
- asc
- desc
type: string
role_enum_role_type:
enum:
- channel
- deployment
type: string
user_channel_enum_channel_status:
enum:
- joined
- invited
- not_participating
type: string
securitySchemes:
accountSid_authToken:
scheme: basic
Expand Down Expand Up @@ -747,12 +764,9 @@ paths:
the Firebase console, found under Settings / Cloud messaging.'
type: string
Type:
$ref: '#/components/schemas/credential_enum_push_service'
description: 'The type of push-notification service the credential
is for. Can be: `gcm`, `fcm`, or `apn`.'
enum:
- gcm
- apn
- fcm
type: string
required:
- Type
Expand Down Expand Up @@ -1007,9 +1021,7 @@ paths:
name: Type
schema:
items:
enum:
- public
- private
$ref: '#/components/schemas/channel_enum_channel_type'
type: string
type: array
- description: How many resources to return in each list page. The default is
Expand Down Expand Up @@ -1086,11 +1098,9 @@ paths:
new resource. It can be up to 64 characters long.
type: string
Type:
$ref: '#/components/schemas/channel_enum_channel_type'
description: 'The visibility of the channel. Can be: `public` or
`private` and defaults to `public`.'
enum:
- public
- private
type: string
UniqueName:
description: An application-defined string that uniquely identifies
Expand Down Expand Up @@ -1683,9 +1693,7 @@ paths:
in: query
name: Order
schema:
enum:
- asc
- desc
$ref: '#/components/schemas/message_enum_order_type'
type: string
- description: How many resources to return in each list page. The default is
50, and the maximum is 1000.
Expand Down Expand Up @@ -2181,12 +2189,10 @@ paths:
type: string
type: array
Type:
$ref: '#/components/schemas/role_enum_role_type'
description: 'The type of role. Can be: `channel` for [Channel](https://www.twilio.com/docs/chat/api/channels)
roles or `deployment` for [Service](https://www.twilio.com/docs/chat/api/services)
roles.'
enum:
- channel
- deployment
type: string
required:
- FriendlyName
Expand Down
Loading