-
Notifications
You must be signed in to change notification settings - Fork 38
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
Add talk api #53
Open
ghost
wants to merge
8
commits into
singer-io:master
Choose a base branch
from
Horze-International:add-talk-api
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Add talk api #53
Changes from 7 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
acce3d6
add talk API phone numbers
leo-schick a7fb2b0
add description property to talk_phone_number stream
leo-schick 03328f5
add talk_call stream + other minor changes
leo-schick 8d887c1
fix calls stream
leo-schick 87c20f9
fix discover + add missing endpoints
leo-schick c8b4556
fix nullables in stream talk_calls
leo-schick 1cb3193
make additional properties nullable
leo-schick 8bf9add
make all fields in talk_calls stream nullable
leo-schick File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This folder contains not implemented stream schemas |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"type": ["object"], | ||
"properties": { | ||
"agent_id": { | ||
"type": [ | ||
"integer", | ||
"null" | ||
] | ||
}, | ||
"agent_state": { | ||
"type": [ | ||
"string", | ||
"null" | ||
], | ||
"description": "The availability state of the agent", | ||
"enum": [ | ||
"online", | ||
"offline", | ||
"away" | ||
] | ||
}, | ||
"call_status": { | ||
"type": [ | ||
"string", | ||
"null" | ||
], | ||
"description": "The call status of the agent", | ||
"enum": [ | ||
"on_call", | ||
"wrap_up", | ||
"null" | ||
] | ||
}, | ||
"via": { | ||
"type": [ | ||
"string", | ||
"null" | ||
], | ||
"description": "The channel (client/phone) the agent is registered to" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,187 @@ | ||
{ | ||
"type": ["object"], | ||
"properties": { | ||
"agent_id": { | ||
"type": ["integer", "null"], | ||
"description": "The id of the first agent who picked up the call" | ||
}, | ||
"call_charge": { | ||
"type": ["string", "null"], | ||
"description": "Total charge for the call. String representation of a decimal number with six decimal places. Example: \"1.230000\". Null if no charge was received from Twilio" | ||
}, | ||
"call_group_id": { | ||
"type": ["integer", "null"], | ||
"description": "The id number of the group the call was last placed in before completion." | ||
}, | ||
"call_recording_consent": { | ||
"type": ["string", "null"], | ||
"description": "Call recording consent value configured for the phone number", | ||
"enum": ["always", "opt_in", "opt_out", "never"] | ||
}, | ||
"call_recording_consent_action": { | ||
"type": ["string", "null"], | ||
"description": "Keypress the caller chose to give their call recording consent option.", | ||
"enum": ["3"] | ||
}, | ||
"callback": { | ||
"type": ["boolean"], | ||
"description": "True if the call was initiated by a callback request from the customer" | ||
}, | ||
"callback_source": { | ||
"type": ["string", "null"], | ||
"description": "The source of the callback request", | ||
"enum": ["queue", "web widget"] | ||
}, | ||
"completion_status": { | ||
"type": ["string", "null"], | ||
"description": "Status of the call", | ||
"enum": ["completed", "abandoned_in_queue", "abandoned_in_ivr", "abandoned_in_voicemail", "abandoned_on_hold", "pending_voicemail"] | ||
}, | ||
"consultation_time": { | ||
"type": ["integer"], | ||
"description": "Sum of how long in seconds agents consulted with each other while the customer was on hold" | ||
}, | ||
"created_at": { | ||
"type": ["string"], | ||
"description": "When the call object was created", | ||
"format": "date-time" | ||
}, | ||
"customer_id": { | ||
"type": ["integer", "null"], | ||
"description": "!!! not documented field !!!" | ||
}, | ||
"customer_requested_voicemail": { | ||
"type": ["boolean"], | ||
"description": "The customer requested to be directed to voicemail instead of waiting for an agent to answer" | ||
}, | ||
"default_group": { | ||
"type": ["boolean"], | ||
"description": "The call was answered by an agent who is a member of the call's default group, if group routing is used" | ||
}, | ||
"direction": { | ||
"type": ["string"], | ||
"description": "Inbound or outbound. The agent or customer who initialized the call", | ||
"enum": ["inbound", "outbound"] | ||
}, | ||
"duration": { | ||
"type": ["integer", "null"], | ||
"description": "Call duration in seconds" | ||
}, | ||
"exceeded_queue_time": { | ||
"type": ["boolean", "null"], | ||
"description": "The customer exceeded the maximum queue wait time and did not speak with an agent" | ||
}, | ||
"hold_time": { | ||
"type": ["integer"], | ||
"description": "Sum of how long in seconds the customer was placed on hold by an agent(s)" | ||
}, | ||
"id": { | ||
"type": ["integer"], | ||
"description": "Call id" | ||
}, | ||
"ivr_action": { | ||
"type": ["string", "null"], | ||
"description": "Menu action that was used by the caller in the IVR menu selection", | ||
"enum": [ | ||
"null", "menu", "voicemail", "group", "phone_number", "textback", "invalid" | ||
] | ||
}, | ||
"ivr_destination_group_name": { | ||
"type": ["string", "null"], | ||
"description": "Name of the group that received the call through IVR routing. null if IVR is disabled" | ||
}, | ||
"ivr_hops": { | ||
"type": ["integer", "null"], | ||
"description": "How many menu options the customer went through in IVR before talking to an agent. null if IVR is disabled" | ||
}, | ||
"ivr_routed_to": { | ||
"type": ["string", "null"], | ||
"description": "Phone number where call was routed to by IVR. Example: \"+1311123456789\". null if IVR is disabled" | ||
}, | ||
"ivr_time_spent": { | ||
"type": ["integer", "null"], | ||
"description": "How long in seconds the customer spent in IVR. Null if IVR is disabled" | ||
}, | ||
"minutes_billed": { | ||
"type": ["integer", "null"], | ||
"description": "Minutes billed" | ||
}, | ||
"not_recording_time": { | ||
"type": ["integer", "null"], | ||
"description": "How long in seconds spent not recording on the call" | ||
}, | ||
"outside_business_hours": { | ||
"type": ["boolean"], | ||
"description": "The call was received outside business hours" | ||
}, | ||
"overflowed": { | ||
"type": ["boolean"], | ||
"description": "True if the call overflowed" | ||
}, | ||
"overflowed_to": { | ||
"type": ["string", "null"], | ||
"description": "The phone number that the call overflowed to. null if overflowed is false" | ||
}, | ||
"phone_number": { | ||
"type": ["string", "null"], | ||
"description": "Talk phone associated with the call. Example: \"+1311123456789\"" | ||
}, | ||
"phone_number_id": { | ||
"type": ["integer"], | ||
"description": "Talk phone number id" | ||
}, | ||
"quality_issues": { | ||
"type": ["array", "null"], | ||
"description": "A summary of the call's quality issues related to the call provided to Zendesk from Twilio. Until the information is made available by Twilio, the array contains \"information_not_available\". If there are no issues, the array contains \"none\". Other possible values: one or more of \"silence\", \"high_jitter\", \"high_packet_loss\", \"high_pdd\", \"high_latency\"", | ||
"items": { | ||
"type": "string", | ||
"enum": [ | ||
"information_not_available", | ||
"none", | ||
"silence", | ||
"high_jitter", | ||
"high_packet_loss", | ||
"high_pdd", | ||
"high_latency" | ||
] | ||
} | ||
}, | ||
"recording_control_interactions": { | ||
"type": ["integer", "null"], | ||
"description": "The amount of times agents have paused or resumed a recording on the call." | ||
}, | ||
"recording_time": { | ||
"type": ["integer", "null"], | ||
"description": "How long in seconds spent recording on the call" | ||
}, | ||
"talk_time": { | ||
"type": ["integer", "null"], | ||
"description": "Sum of how long in seconds the customer was in conference with an agent(s). If a call is not accepted by an agent this will be 0" | ||
}, | ||
"ticket_id": { | ||
"type": ["integer", "null"], | ||
"description": "The id of the ticket related to the call" | ||
}, | ||
"time_to_answer": { | ||
"type": ["integer", "null"], | ||
"description": "How long in seconds the customer waited for an agent to answer after hearing the Available agents greeting" | ||
}, | ||
"updated_at": { | ||
"type": ["string"], | ||
"description": "When the call object was last created", | ||
"format": "date-time" | ||
}, | ||
"voicemail": { | ||
"type": ["boolean"], | ||
"description": "If true, the call was a voicemail" | ||
}, | ||
"wait_time": { | ||
"type": ["integer"], | ||
"description": "How long in seconds the customer was in the call before an agent answered" | ||
}, | ||
"wrap_up_time": { | ||
"type": ["integer"], | ||
"description": "Sum of how long in seconds the agent(s) spent in wrap up" | ||
} | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add "null" to handle the empty value. Do add null at all places.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done