2020-02-23 07:24:29 +00:00
|
|
|
# ERROR
|
|
|
|
bad_request_error:
|
|
|
|
$ref: ./error/bad_request.yml
|
|
|
|
request_error:
|
|
|
|
$ref: ./error/request.yml
|
|
|
|
|
|
|
|
# RESOURCE
|
2020-02-23 19:21:31 +00:00
|
|
|
generic_id:
|
|
|
|
$ref: ./resource/extension/generic.yml
|
2020-02-23 07:24:29 +00:00
|
|
|
contact:
|
|
|
|
$ref: ./resource/contact.yml
|
|
|
|
conversation:
|
|
|
|
$ref: ./resource/conversation.yml
|
2020-02-23 19:21:31 +00:00
|
|
|
message:
|
|
|
|
$ref: ./resource/message.yml
|
|
|
|
user:
|
|
|
|
$ref: ./resource/user.yml
|
2020-03-11 10:49:13 +00:00
|
|
|
inbox:
|
|
|
|
$ref: ./resource/inbox.yml
|
2020-04-07 05:11:18 +00:00
|
|
|
agent_bot:
|
|
|
|
$ref: ./resource/agent_bot.yml
|
2020-08-18 06:44:37 +00:00
|
|
|
contact_inboxes:
|
|
|
|
$ref: ./resource/contact_inboxes.yml
|
2021-05-11 17:08:46 +00:00
|
|
|
contactable_inboxes:
|
|
|
|
$ref: ./resource/contactable_inboxes.yml
|
2020-08-18 06:44:37 +00:00
|
|
|
account:
|
|
|
|
$ref: ./resource/account.yml
|
2021-05-05 15:09:00 +00:00
|
|
|
team:
|
|
|
|
$ref: ./resource/team.yml
|
2020-08-18 06:44:37 +00:00
|
|
|
|
2020-02-23 07:24:29 +00:00
|
|
|
# RESPONSE
|
2020-02-23 19:21:31 +00:00
|
|
|
|
|
|
|
## contact
|
2020-02-23 07:24:29 +00:00
|
|
|
extended_contact:
|
|
|
|
allOf:
|
|
|
|
- $ref: '#/definitions/contact'
|
|
|
|
- $ref: ./resource/extension/contact/show.yml
|
|
|
|
contact_base:
|
|
|
|
allOf:
|
2020-02-23 19:21:31 +00:00
|
|
|
- $ref: '#/definitions/generic_id'
|
2020-02-23 07:24:29 +00:00
|
|
|
- $ref: '#/definitions/contact'
|
|
|
|
contact_list:
|
|
|
|
type: array
|
2020-02-23 19:21:31 +00:00
|
|
|
description: 'array of contacts'
|
2020-02-23 07:24:29 +00:00
|
|
|
items:
|
|
|
|
allOf:
|
2020-02-23 19:21:31 +00:00
|
|
|
- $ref: '#/definitions/generic_id'
|
2020-02-23 07:24:29 +00:00
|
|
|
- $ref: '#/definitions/contact'
|
|
|
|
contact_conversations:
|
|
|
|
type: array
|
2020-02-23 19:21:31 +00:00
|
|
|
description: 'array of conversations'
|
2020-02-23 07:24:29 +00:00
|
|
|
items:
|
|
|
|
allOf:
|
|
|
|
- $ref: '#/definitions/conversation'
|
|
|
|
- $ref: ./resource/extension/contact/conversation.yml
|
2020-02-23 19:21:31 +00:00
|
|
|
- $ref: ./resource/extension/conversation/with_display_id.yml
|
|
|
|
|
|
|
|
## conversation
|
|
|
|
conversation_list:
|
|
|
|
$ref: ./resource/extension/conversation/list.yml
|
|
|
|
conversation_show:
|
|
|
|
$ref: ./resource/extension/conversation/show.yml
|
|
|
|
conversation_status_toggle:
|
|
|
|
$ref: ./resource/extension/conversation/status_toggle.yml
|
|
|
|
conversation_labels:
|
|
|
|
$ref: ./resource/extension/conversation/labels.yml
|
|
|
|
|
|
|
|
## message
|
|
|
|
extended_message:
|
|
|
|
allOf:
|
|
|
|
- $ref: '#/definitions/generic_id'
|
|
|
|
- $ref: '#/definitions/message'
|
|
|
|
- $ref: ./resource/extension/message/with_source_sender.yml
|
2020-02-23 07:24:29 +00:00
|
|
|
|
|
|
|
# REQUEST
|
2020-02-23 19:21:31 +00:00
|
|
|
|
|
|
|
## contact
|
2020-02-23 07:24:29 +00:00
|
|
|
contact_create:
|
|
|
|
$ref: ./request/contact/create.yml
|
|
|
|
contact_update:
|
|
|
|
$ref: ./request/contact/update.yml
|
2020-02-23 19:21:31 +00:00
|
|
|
## conversation
|
|
|
|
conversation_message_create:
|
|
|
|
$ref: ./request/conversation/create_message.yml
|
2021-05-05 15:09:00 +00:00
|
|
|
|
|
|
|
# Team request Payload
|
|
|
|
|
|
|
|
team_create_update_payload:
|
|
|
|
$ref: ./request/team/create_update_payload.yml
|