forked from 2600hz/kazoo
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request 2600hz#16 from kageds/4.3.acdc
more schema updates
- Loading branch information
Showing
18 changed files
with
667 additions
and
18 deletions.
There are no files selected for viewing
37 changes: 36 additions & 1 deletion
37
applications/crossbar/priv/couchdb/schemas/kapi.acdc_queue.agents_available_req.json
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 |
---|---|---|
@@ -1 +1,36 @@ | ||
{"type":"object","required":["Account-ID","Queue-ID"],"properties":{"Skills":{"type":"array","items":{"type":"string"}},"Queue-ID":{"type":"string"},"Event-Name":{"type":"string","enum":["agents_available_req"]},"Event-Category":{"type":"string","enum":["queue"]},"Account-ID":{"type":"string"}},"description":"AMQP API for acdc_queue.agents_available_req","_id":"kapi.acdc_queue.agents_available_req","$schema":"http://json-schema.org/draft-04/schema#"} | ||
{ | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"_id": "kapi.acdc_queue.agents_available_req", | ||
"description": "AMQP API for acdc_queue.agents_available_req", | ||
"properties": { | ||
"Account-ID": { | ||
"type": "string" | ||
}, | ||
"Event-Category": { | ||
"enum": [ | ||
"queue" | ||
], | ||
"type": "string" | ||
}, | ||
"Event-Name": { | ||
"enum": [ | ||
"agents_available_req" | ||
], | ||
"type": "string" | ||
}, | ||
"Queue-ID": { | ||
"type": "string" | ||
}, | ||
"Skills": { | ||
"items": { | ||
"type": "string" | ||
}, | ||
"type": "array" | ||
} | ||
}, | ||
"required": [ | ||
"Account-ID", | ||
"Queue-ID" | ||
], | ||
"type": "object" | ||
} |
35 changes: 34 additions & 1 deletion
35
applications/crossbar/priv/couchdb/schemas/kapi.acdc_queue.agents_available_resp.json
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 |
---|---|---|
@@ -1 +1,34 @@ | ||
{"type":"object","required":["Account-ID","Agent-Count","Queue-ID"],"properties":{"Queue-ID":{"type":"string"},"Event-Name":{"type":"string","enum":["agents_available_resp"]},"Event-Category":{"type":"string","enum":["queue"]},"Agent-Count":{"type":"string"},"Account-ID":{"type":"string"}},"description":"AMQP API for acdc_queue.agents_available_resp","_id":"kapi.acdc_queue.agents_available_resp","$schema":"http://json-schema.org/draft-04/schema#"} | ||
{ | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"_id": "kapi.acdc_queue.agents_available_resp", | ||
"description": "AMQP API for acdc_queue.agents_available_resp", | ||
"properties": { | ||
"Account-ID": { | ||
"type": "string" | ||
}, | ||
"Agent-Count": { | ||
"type": "string" | ||
}, | ||
"Event-Category": { | ||
"enum": [ | ||
"queue" | ||
], | ||
"type": "string" | ||
}, | ||
"Event-Name": { | ||
"enum": [ | ||
"agents_available_resp" | ||
], | ||
"type": "string" | ||
}, | ||
"Queue-ID": { | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"Account-ID", | ||
"Agent-Count", | ||
"Queue-ID" | ||
], | ||
"type": "object" | ||
} |
39 changes: 38 additions & 1 deletion
39
applications/crossbar/priv/couchdb/schemas/kapi.acdc_queue.member_callback_accepted.json
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 |
---|---|---|
@@ -1 +1,38 @@ | ||
{"type":"object","required":["Account-ID","Agent-ID","Call-ID","Process-ID"],"properties":{"Process-ID":{"type":"string"},"Event-Name":{"type":"string","enum":["callback_accepted"]},"Event-Category":{"type":"string","enum":["member"]},"Call-ID":{"type":"string"},"Agent-ID":{"type":"string"},"Account-ID":{"type":"string"}},"description":"AMQP API for acdc_queue.member_callback_accepted","_id":"kapi.acdc_queue.member_callback_accepted","$schema":"http://json-schema.org/draft-04/schema#"} | ||
{ | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"_id": "kapi.acdc_queue.member_callback_accepted", | ||
"description": "AMQP API for acdc_queue.member_callback_accepted", | ||
"properties": { | ||
"Account-ID": { | ||
"type": "string" | ||
}, | ||
"Agent-ID": { | ||
"type": "string" | ||
}, | ||
"Call-ID": { | ||
"type": "string" | ||
}, | ||
"Event-Category": { | ||
"enum": [ | ||
"member" | ||
], | ||
"type": "string" | ||
}, | ||
"Event-Name": { | ||
"enum": [ | ||
"callback_accepted" | ||
], | ||
"type": "string" | ||
}, | ||
"Process-ID": { | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"Account-ID", | ||
"Agent-ID", | ||
"Call-ID", | ||
"Process-ID" | ||
], | ||
"type": "object" | ||
} |
39 changes: 38 additions & 1 deletion
39
applications/crossbar/priv/couchdb/schemas/kapi.acdc_queue.member_callback_reg.json
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 |
---|---|---|
@@ -1 +1,38 @@ | ||
{"type":"object","required":["Account-ID","Call-ID","Number","Queue-ID"],"properties":{"Queue-ID":{"type":"string"},"Number":{"type":"string"},"Event-Name":{"type":"string","enum":["callback_reg"]},"Event-Category":{"type":"string","enum":["member"]},"Call-ID":{"type":"string"},"Account-ID":{"type":"string"}},"description":"AMQP API for acdc_queue.member_callback_reg","_id":"kapi.acdc_queue.member_callback_reg","$schema":"http://json-schema.org/draft-04/schema#"} | ||
{ | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"_id": "kapi.acdc_queue.member_callback_reg", | ||
"description": "AMQP API for acdc_queue.member_callback_reg", | ||
"properties": { | ||
"Account-ID": { | ||
"type": "string" | ||
}, | ||
"Call-ID": { | ||
"type": "string" | ||
}, | ||
"Event-Category": { | ||
"enum": [ | ||
"member" | ||
], | ||
"type": "string" | ||
}, | ||
"Event-Name": { | ||
"enum": [ | ||
"callback_reg" | ||
], | ||
"type": "string" | ||
}, | ||
"Number": { | ||
"type": "string" | ||
}, | ||
"Queue-ID": { | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"Account-ID", | ||
"Call-ID", | ||
"Number", | ||
"Queue-ID" | ||
], | ||
"type": "object" | ||
} |
45 changes: 44 additions & 1 deletion
45
applications/crossbar/priv/couchdb/schemas/kapi.acdc_queue.member_connect_satisfied.json
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 |
---|---|---|
@@ -1 +1,44 @@ | ||
{"type":"object","required":["Accept-Agent-ID","Agent-ID","Call","Queue-ID"],"properties":{"Queue-ID":{"type":"string"},"Process-ID":{"type":"string"},"Event-Name":{"type":"string","enum":["connect_satisfied"]},"Event-Category":{"type":"string","enum":["member"]},"Call":{"type":"object"},"Agent-Process-IDs":{"type":"string"},"Agent-ID":{"type":"string"},"Accept-Agent-ID":{"type":"string"}},"description":"AMQP API for acdc_queue.member_connect_satisfied","_id":"kapi.acdc_queue.member_connect_satisfied","$schema":"http://json-schema.org/draft-04/schema#"} | ||
{ | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"_id": "kapi.acdc_queue.member_connect_satisfied", | ||
"description": "AMQP API for acdc_queue.member_connect_satisfied", | ||
"properties": { | ||
"Accept-Agent-ID": { | ||
"type": "string" | ||
}, | ||
"Agent-ID": { | ||
"type": "string" | ||
}, | ||
"Agent-Process-IDs": { | ||
"type": "string" | ||
}, | ||
"Call": { | ||
"type": "object" | ||
}, | ||
"Event-Category": { | ||
"enum": [ | ||
"member" | ||
], | ||
"type": "string" | ||
}, | ||
"Event-Name": { | ||
"enum": [ | ||
"connect_satisfied" | ||
], | ||
"type": "string" | ||
}, | ||
"Process-ID": { | ||
"type": "string" | ||
}, | ||
"Queue-ID": { | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"Accept-Agent-ID", | ||
"Agent-ID", | ||
"Call", | ||
"Queue-ID" | ||
], | ||
"type": "object" | ||
} |
61 changes: 60 additions & 1 deletion
61
applications/crossbar/priv/couchdb/schemas/kapi.acdc_queue.member_connect_win.json
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 |
---|---|---|
@@ -1 +1,60 @@ | ||
{"type":"object","required":["Call","Queue-ID"],"properties":{"Wrapup-Timeout":{"type":"integer"},"Ring-Timeout":{"type":"integer"},"Recording-URL":{"type":"string"},"Record-Caller":{"type":"boolean"},"Queue-ID":{"type":"string"},"Process-ID":{"type":"string"},"Notifications":{"type":"object"},"Event-Name":{"type":"string","enum":["connect_win"]},"Event-Category":{"type":"string","enum":["member"]},"Caller-Exit-Key":{"type":"string"},"Callback-Details":{"type":"string"},"Call":{"type":"object"},"CDR-Url":{"type":"string"},"Agent-Process-IDs":{"type":"string"}},"description":"AMQP API for acdc_queue.member_connect_win","_id":"kapi.acdc_queue.member_connect_win","$schema":"http://json-schema.org/draft-04/schema#"} | ||
{ | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"_id": "kapi.acdc_queue.member_connect_win", | ||
"description": "AMQP API for acdc_queue.member_connect_win", | ||
"properties": { | ||
"Agent-Process-IDs": { | ||
"type": "string" | ||
}, | ||
"CDR-Url": { | ||
"type": "string" | ||
}, | ||
"Call": { | ||
"type": "object" | ||
}, | ||
"Callback-Details": { | ||
"type": "string" | ||
}, | ||
"Caller-Exit-Key": { | ||
"type": "string" | ||
}, | ||
"Event-Category": { | ||
"enum": [ | ||
"member" | ||
], | ||
"type": "string" | ||
}, | ||
"Event-Name": { | ||
"enum": [ | ||
"connect_win" | ||
], | ||
"type": "string" | ||
}, | ||
"Notifications": { | ||
"type": "object" | ||
}, | ||
"Process-ID": { | ||
"type": "string" | ||
}, | ||
"Queue-ID": { | ||
"type": "string" | ||
}, | ||
"Record-Caller": { | ||
"type": "boolean" | ||
}, | ||
"Recording-URL": { | ||
"type": "string" | ||
}, | ||
"Ring-Timeout": { | ||
"type": "integer" | ||
}, | ||
"Wrapup-Timeout": { | ||
"type": "integer" | ||
} | ||
}, | ||
"required": [ | ||
"Call", | ||
"Queue-ID" | ||
], | ||
"type": "object" | ||
} |
27 changes: 26 additions & 1 deletion
27
applications/crossbar/priv/couchdb/schemas/kapi.acdc_stats.agent_calls_err.json
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 |
---|---|---|
@@ -1 +1,26 @@ | ||
{"type":"object","required":["Error-Reason"],"properties":{"Event-Name":{"type":"string","enum":["agent_calls_err"]},"Event-Category":{"type":"string","enum":["acdc_stat"]},"Error-Reason":{"type":"string"}},"description":"AMQP API for acdc_stats.agent_calls_err","_id":"kapi.acdc_stats.agent_calls_err","$schema":"http://json-schema.org/draft-04/schema#"} | ||
{ | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"_id": "kapi.acdc_stats.agent_calls_err", | ||
"description": "AMQP API for acdc_stats.agent_calls_err", | ||
"properties": { | ||
"Error-Reason": { | ||
"type": "string" | ||
}, | ||
"Event-Category": { | ||
"enum": [ | ||
"acdc_stat" | ||
], | ||
"type": "string" | ||
}, | ||
"Event-Name": { | ||
"enum": [ | ||
"agent_calls_err" | ||
], | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"Error-Reason" | ||
], | ||
"type": "object" | ||
} |
42 changes: 41 additions & 1 deletion
42
applications/crossbar/priv/couchdb/schemas/kapi.acdc_stats.agent_calls_req.json
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 |
---|---|---|
@@ -1 +1,41 @@ | ||
{"type":"object","required":["Account-ID"],"properties":{"Status":{"type":"string"},"Start-Range":{"type":"string"},"Queue-ID":{"type":"string"},"Event-Name":{"type":"string","enum":["agent_calls_req"]},"Event-Category":{"type":"string","enum":["acdc_stat"]},"End-Range":{"type":"string"},"Agent-ID":{"type":"string"},"Account-ID":{"type":"string"}},"description":"AMQP API for acdc_stats.agent_calls_req","_id":"kapi.acdc_stats.agent_calls_req","$schema":"http://json-schema.org/draft-04/schema#"} | ||
{ | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"_id": "kapi.acdc_stats.agent_calls_req", | ||
"description": "AMQP API for acdc_stats.agent_calls_req", | ||
"properties": { | ||
"Account-ID": { | ||
"type": "string" | ||
}, | ||
"Agent-ID": { | ||
"type": "string" | ||
}, | ||
"End-Range": { | ||
"type": "string" | ||
}, | ||
"Event-Category": { | ||
"enum": [ | ||
"acdc_stat" | ||
], | ||
"type": "string" | ||
}, | ||
"Event-Name": { | ||
"enum": [ | ||
"agent_calls_req" | ||
], | ||
"type": "string" | ||
}, | ||
"Queue-ID": { | ||
"type": "string" | ||
}, | ||
"Start-Range": { | ||
"type": "string" | ||
}, | ||
"Status": { | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"Account-ID" | ||
], | ||
"type": "object" | ||
} |
30 changes: 29 additions & 1 deletion
30
applications/crossbar/priv/couchdb/schemas/kapi.acdc_stats.agent_calls_resp.json
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 |
---|---|---|
@@ -1 +1,29 @@ | ||
{"type":"object","required":["Query-Time"],"properties":{"Query-Time":{"type":"integer"},"Event-Name":{"type":"string","enum":["agent_calls_resp"]},"Event-Category":{"type":"string","enum":["acdc_stat"]},"Data":{"type":"string"}},"description":"AMQP API for acdc_stats.agent_calls_resp","_id":"kapi.acdc_stats.agent_calls_resp","$schema":"http://json-schema.org/draft-04/schema#"} | ||
{ | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"_id": "kapi.acdc_stats.agent_calls_resp", | ||
"description": "AMQP API for acdc_stats.agent_calls_resp", | ||
"properties": { | ||
"Data": { | ||
"type": "string" | ||
}, | ||
"Event-Category": { | ||
"enum": [ | ||
"acdc_stat" | ||
], | ||
"type": "string" | ||
}, | ||
"Event-Name": { | ||
"enum": [ | ||
"agent_calls_resp" | ||
], | ||
"type": "string" | ||
}, | ||
"Query-Time": { | ||
"type": "integer" | ||
} | ||
}, | ||
"required": [ | ||
"Query-Time" | ||
], | ||
"type": "object" | ||
} |
Oops, something went wrong.