@arbol-ai/cli 3.58.0 → 3.59.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1196 -28
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -22086,6 +22086,32 @@ var commands = {
|
|
|
22086
22086
|
"team"
|
|
22087
22087
|
]
|
|
22088
22088
|
},
|
|
22089
|
+
{
|
|
22090
|
+
name: "waitingOn",
|
|
22091
|
+
flag: "waiting-on",
|
|
22092
|
+
kind: "string",
|
|
22093
|
+
required: false,
|
|
22094
|
+
description: "Open conversations by who they wait for, as each conversation's `waitingOn` says: `ai`, `team` (the team's cases to answer) or `contact`. Closed conversations never match.",
|
|
22095
|
+
choices: [
|
|
22096
|
+
"ai",
|
|
22097
|
+
"team",
|
|
22098
|
+
"contact"
|
|
22099
|
+
]
|
|
22100
|
+
},
|
|
22101
|
+
{
|
|
22102
|
+
name: "assignee",
|
|
22103
|
+
flag: "assignee",
|
|
22104
|
+
kind: "string",
|
|
22105
|
+
required: false,
|
|
22106
|
+
description: "Conversations by the case's owner: a member id, `me` (the person calling) or `none` (nobody has it). With `waitingOn=team`: one person's cases to answer, or the ones nobody took."
|
|
22107
|
+
},
|
|
22108
|
+
{
|
|
22109
|
+
name: "unattended",
|
|
22110
|
+
flag: "unattended",
|
|
22111
|
+
kind: "boolean",
|
|
22112
|
+
required: false,
|
|
22113
|
+
description: "`true`: conversations that closed for inactivity with a handoff nobody of the team answered."
|
|
22114
|
+
},
|
|
22089
22115
|
{
|
|
22090
22116
|
name: "origin",
|
|
22091
22117
|
flag: "origin",
|
|
@@ -22258,7 +22284,7 @@ var commands = {
|
|
|
22258
22284
|
flag: "group-by",
|
|
22259
22285
|
kind: "string",
|
|
22260
22286
|
required: false,
|
|
22261
|
-
description: "`outcome`, `status`, `channel` (type), `agent`, `sentiment`, `tool` (each Agent tool and the conversations that used it; null for those that used none), `toolError` (failed calls, of `toolName` when given, by error) or `fact:<definition key>` (the current value of that definition, such as the reason for contact)."
|
|
22287
|
+
description: "`outcome`, `status`, `channel` (type), `agent`, `sentiment`, `waitingOn` (who each open conversation waits for: `ai`, `team` or `contact`; null for the closed ones), `tool` (each Agent tool and the conversations that used it; null for those that used none), `toolError` (failed calls, of `toolName` when given, by error) or `fact:<definition key>` (the current value of that definition, such as the reason for contact)."
|
|
22262
22288
|
}
|
|
22263
22289
|
],
|
|
22264
22290
|
inputSchema: {
|
|
@@ -22344,6 +22370,33 @@ var commands = {
|
|
|
22344
22370
|
],
|
|
22345
22371
|
description: "Who works the conversation now. `ai`: calls and web chats, open WhatsApp conversations the AI answers (assigned to it and not paused), and closed ones the AI answered. `team`: open WhatsApp conversations the organization's people answer (not assigned to the AI, or paused) and closed ones they answered. Unlike `handling`, a conversation the AI answered and then handed to people is `team` while open."
|
|
22346
22372
|
},
|
|
22373
|
+
waitingOn: {
|
|
22374
|
+
anyOf: [
|
|
22375
|
+
{
|
|
22376
|
+
type: "string",
|
|
22377
|
+
const: "ai"
|
|
22378
|
+
},
|
|
22379
|
+
{
|
|
22380
|
+
type: "string",
|
|
22381
|
+
const: "team"
|
|
22382
|
+
},
|
|
22383
|
+
{
|
|
22384
|
+
type: "string",
|
|
22385
|
+
const: "contact"
|
|
22386
|
+
}
|
|
22387
|
+
],
|
|
22388
|
+
description: "Open conversations by who they wait for, as each conversation's `waitingOn` says: `ai`, `team` (the team's cases to answer) or `contact`. Closed conversations never match."
|
|
22389
|
+
},
|
|
22390
|
+
assignee: {
|
|
22391
|
+
type: "string",
|
|
22392
|
+
description: "Conversations by the case's owner: a member id, `me` (the person calling) or `none` (nobody has it). With `waitingOn=team`: one person's cases to answer, or the ones nobody took.",
|
|
22393
|
+
maxLength: 255,
|
|
22394
|
+
minLength: 1
|
|
22395
|
+
},
|
|
22396
|
+
unattended: {
|
|
22397
|
+
type: "boolean",
|
|
22398
|
+
description: "`true`: conversations that closed for inactivity with a handoff nobody of the team answered."
|
|
22399
|
+
},
|
|
22347
22400
|
origin: {
|
|
22348
22401
|
type: "string",
|
|
22349
22402
|
description: "Comma-separated origins.",
|
|
@@ -22506,14 +22559,14 @@ var commands = {
|
|
|
22506
22559
|
},
|
|
22507
22560
|
groupBy: {
|
|
22508
22561
|
type: "string",
|
|
22509
|
-
description: "`outcome`, `status`, `channel` (type), `agent`, `sentiment`, `tool` (each Agent tool and the conversations that used it; null for those that used none), `toolError` (failed calls, of `toolName` when given, by error) or `fact:<definition key>` (the current value of that definition, such as the reason for contact).",
|
|
22510
|
-
pattern: "^(outcome|status|channel|agent|sentiment|tool|toolError|fact:[a-z][a-z0-9_]{0,63})$"
|
|
22562
|
+
description: "`outcome`, `status`, `channel` (type), `agent`, `sentiment`, `waitingOn` (who each open conversation waits for: `ai`, `team` or `contact`; null for the closed ones), `tool` (each Agent tool and the conversations that used it; null for those that used none), `toolError` (failed calls, of `toolName` when given, by error) or `fact:<definition key>` (the current value of that definition, such as the reason for contact).",
|
|
22563
|
+
pattern: "^(outcome|status|channel|agent|sentiment|waitingOn|tool|toolError|fact:[a-z][a-z0-9_]{0,63})$"
|
|
22511
22564
|
}
|
|
22512
22565
|
},
|
|
22513
22566
|
additionalProperties: false
|
|
22514
22567
|
},
|
|
22515
22568
|
title: "Count conversations",
|
|
22516
|
-
description: "Count the conversations `list_conversations` returns for the same filters (every filter it takes, without `sort`), up to 10,000: `capped` then says at least that many match. `averageMessageCount` and `averageDurationSeconds` are their average length. `groupBy` also divides them, largest group first, each with its outcomes: by `outcome`, `status`, `channel`, `agent`, `sentiment`, `tool` (which Agent tools they used, and in how many a tool failed), `toolError` (why calls of `toolName` failed) or `fact:<definition key>` (such as the reason for contact). Use it to answer how many conversations match, or how they divide, instead of paging through the list; for volumes per day use `get_report`.",
|
|
22569
|
+
description: "Count the conversations `list_conversations` returns for the same filters (every filter it takes, without `sort`), up to 10,000: `capped` then says at least that many match. `averageMessageCount` and `averageDurationSeconds` are their average length. `groupBy` also divides them, largest group first, each with its outcomes: by `outcome`, `status`, `channel`, `agent`, `sentiment`, `waitingOn` (who each open conversation waits for: the AI, the team or the contact), `tool` (which Agent tools they used, and in how many a tool failed), `toolError` (why calls of `toolName` failed) or `fact:<definition key>` (such as the reason for contact). Use it to answer how many conversations match, or how they divide, instead of paging through the list; for volumes per day use `get_report`.",
|
|
22517
22570
|
effect: "read",
|
|
22518
22571
|
confirmation: null,
|
|
22519
22572
|
hidden: false
|
|
@@ -22564,7 +22617,7 @@ var commands = {
|
|
|
22564
22617
|
flag: "expand",
|
|
22565
22618
|
kind: "string",
|
|
22566
22619
|
required: false,
|
|
22567
|
-
description: "Related data to include, comma-separated: `messages`, `recording`, `diagnostics`."
|
|
22620
|
+
description: "Related data to include, comma-separated: `messages`, `recording`, `diagnostics`, `history`."
|
|
22568
22621
|
},
|
|
22569
22622
|
{
|
|
22570
22623
|
name: "messagesCursor",
|
|
@@ -22607,11 +22660,11 @@ var commands = {
|
|
|
22607
22660
|
},
|
|
22608
22661
|
expand: {
|
|
22609
22662
|
type: "string",
|
|
22610
|
-
description: "Related data to include, comma-separated: `messages`, `recording`, `diagnostics`.",
|
|
22663
|
+
description: "Related data to include, comma-separated: `messages`, `recording`, `diagnostics`, `history`.",
|
|
22611
22664
|
examples: [
|
|
22612
|
-
"messages,recording,diagnostics"
|
|
22665
|
+
"messages,recording,diagnostics,history"
|
|
22613
22666
|
],
|
|
22614
|
-
pattern: "^(messages|recording|diagnostics)(,(messages|recording|diagnostics))*$"
|
|
22667
|
+
pattern: "^(messages|recording|diagnostics|history)(,(messages|recording|diagnostics|history))*$"
|
|
22615
22668
|
},
|
|
22616
22669
|
messagesCursor: {
|
|
22617
22670
|
type: "string",
|
|
@@ -22646,7 +22699,7 @@ var commands = {
|
|
|
22646
22699
|
additionalProperties: false
|
|
22647
22700
|
},
|
|
22648
22701
|
title: "Get a conversation",
|
|
22649
|
-
description: "Read one conversation with its contact, Agent and channel, who works it (`workers`: each Agent and the team, and who answers now), title, summary, outcome, sentiment and current facts. Add `expand=messages` for the transcript, oldest first, each message with its author, the Agent's tool calls and quoted replies (continue with `messagesCursor`),
|
|
22702
|
+
description: "Read one conversation with its contact, Agent and channel, who works it (`workers`: each Agent and the team, and who answers now), title, summary, outcome, sentiment and current facts. Add `expand=messages` for the transcript, oldest first, each message with its author, the Agent's tool calls and quoted replies (continue with `messagesCursor`), `expand=recording` for a short-lived link to the call recording, and `expand=history` for the case's history: the handoff to the team, who took it or was given it, the return to the AI and the closing. `waitingOn` says who an open conversation waits for (the AI, the team or the contact) and `assigneeId` who has its case. Staff may also request `expand=diagnostics` for bounded live call-termination evidence; this additionally requires raiz:staff:operate and never changes the conversation. The `review-conversation` skill explains how to read and summarize one.",
|
|
22650
22703
|
effect: "read",
|
|
22651
22704
|
confirmation: null,
|
|
22652
22705
|
hidden: false
|
|
@@ -22756,6 +22809,32 @@ var commands = {
|
|
|
22756
22809
|
"team"
|
|
22757
22810
|
]
|
|
22758
22811
|
},
|
|
22812
|
+
{
|
|
22813
|
+
name: "waitingOn",
|
|
22814
|
+
flag: "waiting-on",
|
|
22815
|
+
kind: "string",
|
|
22816
|
+
required: false,
|
|
22817
|
+
description: "Open conversations by who they wait for, as each conversation's `waitingOn` says: `ai`, `team` (the team's cases to answer) or `contact`. Closed conversations never match.",
|
|
22818
|
+
choices: [
|
|
22819
|
+
"ai",
|
|
22820
|
+
"team",
|
|
22821
|
+
"contact"
|
|
22822
|
+
]
|
|
22823
|
+
},
|
|
22824
|
+
{
|
|
22825
|
+
name: "assignee",
|
|
22826
|
+
flag: "assignee",
|
|
22827
|
+
kind: "string",
|
|
22828
|
+
required: false,
|
|
22829
|
+
description: "Conversations by the case's owner: a member id, `me` (the person calling) or `none` (nobody has it). With `waitingOn=team`: one person's cases to answer, or the ones nobody took."
|
|
22830
|
+
},
|
|
22831
|
+
{
|
|
22832
|
+
name: "unattended",
|
|
22833
|
+
flag: "unattended",
|
|
22834
|
+
kind: "boolean",
|
|
22835
|
+
required: false,
|
|
22836
|
+
description: "`true`: conversations that closed for inactivity with a handoff nobody of the team answered."
|
|
22837
|
+
},
|
|
22759
22838
|
{
|
|
22760
22839
|
name: "origin",
|
|
22761
22840
|
flag: "origin",
|
|
@@ -23045,6 +23124,33 @@ var commands = {
|
|
|
23045
23124
|
],
|
|
23046
23125
|
description: "Who works the conversation now. `ai`: calls and web chats, open WhatsApp conversations the AI answers (assigned to it and not paused), and closed ones the AI answered. `team`: open WhatsApp conversations the organization's people answer (not assigned to the AI, or paused) and closed ones they answered. Unlike `handling`, a conversation the AI answered and then handed to people is `team` while open."
|
|
23047
23126
|
},
|
|
23127
|
+
waitingOn: {
|
|
23128
|
+
anyOf: [
|
|
23129
|
+
{
|
|
23130
|
+
type: "string",
|
|
23131
|
+
const: "ai"
|
|
23132
|
+
},
|
|
23133
|
+
{
|
|
23134
|
+
type: "string",
|
|
23135
|
+
const: "team"
|
|
23136
|
+
},
|
|
23137
|
+
{
|
|
23138
|
+
type: "string",
|
|
23139
|
+
const: "contact"
|
|
23140
|
+
}
|
|
23141
|
+
],
|
|
23142
|
+
description: "Open conversations by who they wait for, as each conversation's `waitingOn` says: `ai`, `team` (the team's cases to answer) or `contact`. Closed conversations never match."
|
|
23143
|
+
},
|
|
23144
|
+
assignee: {
|
|
23145
|
+
type: "string",
|
|
23146
|
+
description: "Conversations by the case's owner: a member id, `me` (the person calling) or `none` (nobody has it). With `waitingOn=team`: one person's cases to answer, or the ones nobody took.",
|
|
23147
|
+
maxLength: 255,
|
|
23148
|
+
minLength: 1
|
|
23149
|
+
},
|
|
23150
|
+
unattended: {
|
|
23151
|
+
type: "boolean",
|
|
23152
|
+
description: "`true`: conversations that closed for inactivity with a handoff nobody of the team answered."
|
|
23153
|
+
},
|
|
23048
23154
|
origin: {
|
|
23049
23155
|
type: "string",
|
|
23050
23156
|
description: "Comma-separated origins.",
|
|
@@ -23227,7 +23333,7 @@ var commands = {
|
|
|
23227
23333
|
additionalProperties: false
|
|
23228
23334
|
},
|
|
23229
23335
|
title: "List conversations",
|
|
23230
|
-
description: "Find calls, WhatsApp chats and web chats. Filter by `contactId` (as counterpart or subject), `agentId`, `channelId`, `channelType`, `status`, `conversationDirection`, `origin`, `outcome`, `sentiment`, `handling` (`ai` or `team`: whether the AI takes part; `escalated`: handed to the team by the AI), `worker` (`ai` or `team`: who answers it now), the Agent's tools (`toolName`, `toolStatus`: which tool it called and how the call ended), a captured fact (`factDefinition`, `factValue`), `assessment` (`failed` or `passed`), `toReview` (evaluated failures or unresolved handoffs; explicitly resolved successes leave this queue), length (`messagesMin`, `messagesMax`, `durationMin`, `durationMax`), `campaignId`, `profileId`, `requestedBy` and start time (`startedAfter`, `startedBefore`); `q` searches participant identities (names, profile names, usernames, phones, emails and documents), visible messages, titles, summaries and exact conversation references; `count_conversations` counts every match. Each item already carries its title, summary, outcome, sentiment, workers and tool calls (how many, how many failed, the latest failure), often enough to answer. `sort`: `started` (newest first), `last_message` (latest activity first) or `changed`, the feed of status, outcome and analysis changes, oldest first, that systems poll from a saved `pageInfo.nextCursor` (a deleted conversation appears once with `deletedAt`). Next: `get_conversation` for a transcript.",
|
|
23336
|
+
description: "Find calls, WhatsApp chats and web chats. Filter by `contactId` (as counterpart or subject), `agentId`, `channelId`, `channelType`, `status`, `conversationDirection`, `origin`, `outcome`, `sentiment`, `handling` (`ai` or `team`: whether the AI takes part; `escalated`: handed to the team by the AI), `worker` (`ai` or `team`: who answers it now), `waitingOn` (`ai`, `team` or `contact`: who an open conversation waits for; `team` lists the cases a person has to answer), `assignee` (a member id, `me` or `none`: whose case it is), `unattended` (closed with a handoff nobody of the team answered), the Agent's tools (`toolName`, `toolStatus`: which tool it called and how the call ended), a captured fact (`factDefinition`, `factValue`), `assessment` (`failed` or `passed`), `toReview` (evaluated failures or unresolved handoffs; explicitly resolved successes leave this queue), length (`messagesMin`, `messagesMax`, `durationMin`, `durationMax`), `campaignId`, `profileId`, `requestedBy` and start time (`startedAfter`, `startedBefore`); `q` searches participant identities (names, profile names, usernames, phones, emails and documents), visible messages, titles, summaries and exact conversation references; `count_conversations` counts every match. Each item already carries its title, summary, outcome, sentiment, workers and tool calls (how many, how many failed, the latest failure), often enough to answer. `sort`: `started` (newest first), `last_message` (latest activity first) or `changed`, the feed of status, outcome and analysis changes, oldest first, that systems poll from a saved `pageInfo.nextCursor` (a deleted conversation appears once with `deletedAt`). Next: `get_conversation` for a transcript.",
|
|
23231
23337
|
effect: "read",
|
|
23232
23338
|
confirmation: null,
|
|
23233
23339
|
hidden: false
|
|
@@ -23454,6 +23560,13 @@ var commands = {
|
|
|
23454
23560
|
required: false,
|
|
23455
23561
|
description: "WhatsApp only: pause or resume automatic replies for this recipient until their open conversation closes. Resuming answers what the contact wrote in this conversation after the last real answer."
|
|
23456
23562
|
},
|
|
23563
|
+
{
|
|
23564
|
+
name: "assigneeId",
|
|
23565
|
+
flag: "assignee-id",
|
|
23566
|
+
kind: "string",
|
|
23567
|
+
required: false,
|
|
23568
|
+
description: ""
|
|
23569
|
+
},
|
|
23457
23570
|
{
|
|
23458
23571
|
name: "contactId",
|
|
23459
23572
|
flag: "contact-id",
|
|
@@ -23514,6 +23627,19 @@ var commands = {
|
|
|
23514
23627
|
type: "boolean",
|
|
23515
23628
|
description: "WhatsApp only: pause or resume automatic replies for this recipient until their open conversation closes. Resuming answers what the contact wrote in this conversation after the last real answer."
|
|
23516
23629
|
},
|
|
23630
|
+
assigneeId: {
|
|
23631
|
+
anyOf: [
|
|
23632
|
+
{
|
|
23633
|
+
type: "string",
|
|
23634
|
+
description: "Give the case to a person of the organization, by their member id as Arbol Account lists it (`listAssignees` names the people who can take one); `me` takes it for the person calling; `null` leaves it with nobody. Its new owner is told by email. History keeps who had it and who passed it on.",
|
|
23635
|
+
maxLength: 255,
|
|
23636
|
+
minLength: 1
|
|
23637
|
+
},
|
|
23638
|
+
{
|
|
23639
|
+
type: "null"
|
|
23640
|
+
}
|
|
23641
|
+
]
|
|
23642
|
+
},
|
|
23517
23643
|
contactId: {
|
|
23518
23644
|
anyOf: [
|
|
23519
23645
|
{
|
|
@@ -23602,7 +23728,7 @@ var commands = {
|
|
|
23602
23728
|
additionalProperties: false
|
|
23603
23729
|
},
|
|
23604
23730
|
title: "Update a conversation",
|
|
23605
|
-
description: "Change a conversation's title, summary, metadata, contact or subject, or close it (`status: closed`), which starts its analysis. A title or summary written here always wins over the generated one. A call closes by itself (CALL_IN_PROGRESS); a web chat cannot close while the Agent is replying (REPLY_IN_PROGRESS, retry shortly). On WhatsApp, `aiEnabled` activates or pauses AI only for this open conversation and leaves future episodes unchanged; `aiPaused` pauses or resumes the Agent for this person until their open conversation closes. Activating or resuming answers what the contact wrote after the last real answer, the team's or the Agent's (a wait notice is not one).",
|
|
23731
|
+
description: "Change a conversation's title, summary, metadata, contact or subject, give its case to a person of the organization (`assigneeId`: a member id from `listAssignees`, `me`, or `null` for nobody; its new owner is told by email), or close it (`status: closed`), which starts its analysis. A title or summary written here always wins over the generated one. A call closes by itself (CALL_IN_PROGRESS); a web chat cannot close while the Agent is replying (REPLY_IN_PROGRESS, retry shortly). On WhatsApp, `aiEnabled` activates or pauses AI only for this open conversation and leaves future episodes unchanged; `aiPaused` pauses or resumes the Agent for this person until their open conversation closes (one a person handles closes by itself after the Agent's `teamCloseAfterMinutes` without messages). Activating or resuming answers what the contact wrote after the last real answer, the team's or the Agent's (a wait notice is not one).",
|
|
23606
23732
|
effect: "write",
|
|
23607
23733
|
confirmation: null,
|
|
23608
23734
|
hidden: false
|
|
@@ -26159,6 +26285,19 @@ var commands = {
|
|
|
26159
26285
|
}
|
|
26160
26286
|
]
|
|
26161
26287
|
},
|
|
26288
|
+
firstReplyMinutes: {
|
|
26289
|
+
anyOf: [
|
|
26290
|
+
{
|
|
26291
|
+
type: "integer",
|
|
26292
|
+
description: "Within how many minutes a person of the team should answer a conversation the AI handed over (default 15). Past it, the case's owner (`assigneeId`), or the team's recipients while nobody has it, is reminded once; at four times that, the organization's owners and its `productNotices.administrators` hear that it is overdue. Each wait is announced once: a contact who writes again after the team answered starts another. With a digest `frequency`, the conversation is listed again in the next digest instead. `0`: no reminders.",
|
|
26293
|
+
maximum: 1440,
|
|
26294
|
+
minimum: 0
|
|
26295
|
+
},
|
|
26296
|
+
{
|
|
26297
|
+
type: "null"
|
|
26298
|
+
}
|
|
26299
|
+
]
|
|
26300
|
+
},
|
|
26162
26301
|
frequency: {
|
|
26163
26302
|
anyOf: [
|
|
26164
26303
|
{
|
|
@@ -26873,9 +27012,10 @@ var commands = {
|
|
|
26873
27012
|
flag: "name",
|
|
26874
27013
|
kind: "string",
|
|
26875
27014
|
required: true,
|
|
26876
|
-
description: "`conversations_daily`: conversations the AI took part in per day, Agent, channel type and direction, with outcomes and escalations (filters `agentId`, `channelType`). `booking_details`: individual patients and appointments from explicit successful creation receipts, including specialty, paired exams, deduplication, matched patient names and later recorded cancellations; filters agentId and specialty; requires conversation read/write permission too. Historical receipts with created=true, not current provider status or all provider protocols. unverifiedCount covers explicit creations missing a stable patient/slot. `booking_outcomes`: verified saved booking receipts per completion day, Agent and integration, excluding test/import/deleted conversations; confirmed new bookings, reschedules, cancellations, failed, pending, unverified and duplicate receipts separately (filter `agentId`). Historical evidence, not current appointment status; hasMore requires splitting the range and returns no partial totals. `tool_calls_daily`: tool calls per day, Agent and tool with failures/durations (filter `agentId`). `tool_calls`: individual calls, never inputs/outputs (filter `agentId`). `assessment_results_daily`: assessments per day/definition (filter `definitionId`). `pqrsf_daily`: classification, confirmed resolution and referral-link counts from the pqrsf_* definitions, including pending/unclassified conversations, excluding tests/imports/deleted records (filters `agentId`, `channelType`); no measured filing reduction is inferred. `campaign_progress`: recipients by status (filter `campaignId`; no dates).",
|
|
27015
|
+
description: "`conversations_daily`: conversations the AI took part in per day, Agent, channel type and direction, with outcomes and escalations (filters `agentId`, `channelType`). `handoffs_daily`: the conversations the AI handed to the team, per day of the handoff, Agent and person (who answered first, else the case's owner), with how many were answered, answered in time, still waiting, closed unattended or returned to the AI, and the average seconds to the first answer (filter `agentId`). `booking_details`: individual patients and appointments from explicit successful creation receipts, including specialty, paired exams, deduplication, matched patient names and later recorded cancellations; filters agentId and specialty; requires conversation read/write permission too. Historical receipts with created=true, not current provider status or all provider protocols. unverifiedCount covers explicit creations missing a stable patient/slot. `booking_outcomes`: verified saved booking receipts per completion day, Agent and integration, excluding test/import/deleted conversations; confirmed new bookings, reschedules, cancellations, failed, pending, unverified and duplicate receipts separately (filter `agentId`). Historical evidence, not current appointment status; hasMore requires splitting the range and returns no partial totals. `tool_calls_daily`: tool calls per day, Agent and tool with failures/durations (filter `agentId`). `tool_calls`: individual calls, never inputs/outputs (filter `agentId`). `assessment_results_daily`: assessments per day/definition (filter `definitionId`). `pqrsf_daily`: classification, confirmed resolution and referral-link counts from the pqrsf_* definitions, including pending/unclassified conversations, excluding tests/imports/deleted records (filters `agentId`, `channelType`); no measured filing reduction is inferred. `campaign_progress`: recipients by status (filter `campaignId`; no dates).",
|
|
26877
27016
|
choices: [
|
|
26878
27017
|
"conversations_daily",
|
|
27018
|
+
"handoffs_daily",
|
|
26879
27019
|
"pqrsf_daily",
|
|
26880
27020
|
"tool_calls_daily",
|
|
26881
27021
|
"tool_calls",
|
|
@@ -26953,6 +27093,10 @@ var commands = {
|
|
|
26953
27093
|
type: "string",
|
|
26954
27094
|
const: "conversations_daily"
|
|
26955
27095
|
},
|
|
27096
|
+
{
|
|
27097
|
+
type: "string",
|
|
27098
|
+
const: "handoffs_daily"
|
|
27099
|
+
},
|
|
26956
27100
|
{
|
|
26957
27101
|
type: "string",
|
|
26958
27102
|
const: "pqrsf_daily"
|
|
@@ -26982,7 +27126,7 @@ var commands = {
|
|
|
26982
27126
|
const: "campaign_progress"
|
|
26983
27127
|
}
|
|
26984
27128
|
],
|
|
26985
|
-
description: "`conversations_daily`: conversations the AI took part in per day, Agent, channel type and direction, with outcomes and escalations (filters `agentId`, `channelType`). `booking_details`: individual patients and appointments from explicit successful creation receipts, including specialty, paired exams, deduplication, matched patient names and later recorded cancellations; filters agentId and specialty; requires conversation read/write permission too. Historical receipts with created=true, not current provider status or all provider protocols. unverifiedCount covers explicit creations missing a stable patient/slot. `booking_outcomes`: verified saved booking receipts per completion day, Agent and integration, excluding test/import/deleted conversations; confirmed new bookings, reschedules, cancellations, failed, pending, unverified and duplicate receipts separately (filter `agentId`). Historical evidence, not current appointment status; hasMore requires splitting the range and returns no partial totals. `tool_calls_daily`: tool calls per day, Agent and tool with failures/durations (filter `agentId`). `tool_calls`: individual calls, never inputs/outputs (filter `agentId`). `assessment_results_daily`: assessments per day/definition (filter `definitionId`). `pqrsf_daily`: classification, confirmed resolution and referral-link counts from the pqrsf_* definitions, including pending/unclassified conversations, excluding tests/imports/deleted records (filters `agentId`, `channelType`); no measured filing reduction is inferred. `campaign_progress`: recipients by status (filter `campaignId`; no dates)."
|
|
27129
|
+
description: "`conversations_daily`: conversations the AI took part in per day, Agent, channel type and direction, with outcomes and escalations (filters `agentId`, `channelType`). `handoffs_daily`: the conversations the AI handed to the team, per day of the handoff, Agent and person (who answered first, else the case's owner), with how many were answered, answered in time, still waiting, closed unattended or returned to the AI, and the average seconds to the first answer (filter `agentId`). `booking_details`: individual patients and appointments from explicit successful creation receipts, including specialty, paired exams, deduplication, matched patient names and later recorded cancellations; filters agentId and specialty; requires conversation read/write permission too. Historical receipts with created=true, not current provider status or all provider protocols. unverifiedCount covers explicit creations missing a stable patient/slot. `booking_outcomes`: verified saved booking receipts per completion day, Agent and integration, excluding test/import/deleted conversations; confirmed new bookings, reschedules, cancellations, failed, pending, unverified and duplicate receipts separately (filter `agentId`). Historical evidence, not current appointment status; hasMore requires splitting the range and returns no partial totals. `tool_calls_daily`: tool calls per day, Agent and tool with failures/durations (filter `agentId`). `tool_calls`: individual calls, never inputs/outputs (filter `agentId`). `assessment_results_daily`: assessments per day/definition (filter `definitionId`). `pqrsf_daily`: classification, confirmed resolution and referral-link counts from the pqrsf_* definitions, including pending/unclassified conversations, excluding tests/imports/deleted records (filters `agentId`, `channelType`); no measured filing reduction is inferred. `campaign_progress`: recipients by status (filter `campaignId`; no dates)."
|
|
26986
27130
|
},
|
|
26987
27131
|
to: {
|
|
26988
27132
|
type: "string",
|
|
@@ -26996,7 +27140,7 @@ var commands = {
|
|
|
26996
27140
|
additionalProperties: false
|
|
26997
27141
|
},
|
|
26998
27142
|
title: "Get a report",
|
|
26999
|
-
description: "Get the numbers behind a question. `name`: `conversations_daily` (conversations the AI took part in, per day), `booking_details` (verified individual creation receipts with patient, specialty, appointments and later recorded cancellations; also requires conversation read/write permission; filter specialty by its recorded code), `booking_outcomes` (verified saved booking receipts by completion day and integration, excluding tests, imports and deleted conversations; createdCount counts new appointments created by the AI, not confirmations of existing appointments; confirmedCount is its compatibility alias and must not be added again; reschedules, cancellations, failures, pending and unverified results separately), `tool_calls_daily` (Agent tool calls per day), `tool_calls` (each call, newest first), `assessment_results_daily` (assessment results per day), `pqrsf_daily` (PQRSF classification, confirmed informational resolution and correct referrals from current pqrsf_* facts; unknown and pending analysis remain visible; excludes tests/imports/deleted records), each over days in the organization's time zone (`from`, `to`; the last 30 days by default), or `campaign_progress`. Narrow with `agentId`, `channelType`, `campaignId` or `definitionId`; unsupported filters fail. At most 1000 rows: `hasMore` means split the range or filter. Booking outcomes return no partial totals when their evidence scan exceeds its bound. Conversation success and completed tool calls never establish a booking; these are historical receipts, not the provider's current appointment status.",
|
|
27143
|
+
description: "Get the numbers behind a question. `name`: `conversations_daily` (conversations the AI took part in, per day), `handoffs_daily` (the conversations the AI handed to the team per day, Agent and person: how many a person answered, how many within the organization's first-reply time and how soon on average, how many still wait, how many closed with nobody answering and how many went back to the AI; filter `agentId`), `booking_details` (verified individual creation receipts with patient, specialty, appointments and later recorded cancellations; also requires conversation read/write permission; filter specialty by its recorded code), `booking_outcomes` (verified saved booking receipts by completion day and integration, excluding tests, imports and deleted conversations; createdCount counts new appointments created by the AI, not confirmations of existing appointments; confirmedCount is its compatibility alias and must not be added again; reschedules, cancellations, failures, pending and unverified results separately), `tool_calls_daily` (Agent tool calls per day), `tool_calls` (each call, newest first), `assessment_results_daily` (assessment results per day), `pqrsf_daily` (PQRSF classification, confirmed informational resolution and correct referrals from current pqrsf_* facts; unknown and pending analysis remain visible; excludes tests/imports/deleted records), each over days in the organization's time zone (`from`, `to`; the last 30 days by default), or `campaign_progress`. Narrow with `agentId`, `channelType`, `campaignId` or `definitionId`; unsupported filters fail. At most 1000 rows: `hasMore` means split the range or filter. Booking outcomes return no partial totals when their evidence scan exceeds its bound. Conversation success and completed tool calls never establish a booking; these are historical receipts, not the provider's current appointment status.",
|
|
27000
27144
|
effect: "read",
|
|
27001
27145
|
confirmation: null,
|
|
27002
27146
|
hidden: false
|
|
@@ -34963,7 +35107,7 @@ var schemaComponents = {
|
|
|
34963
35107
|
},
|
|
34964
35108
|
portal: {
|
|
34965
35109
|
type: "string",
|
|
34966
|
-
description: "
|
|
35110
|
+
description: "Which of the provider's independent sites this connection reaches."
|
|
34967
35111
|
},
|
|
34968
35112
|
name: {
|
|
34969
35113
|
type: "string"
|
|
@@ -76241,6 +76385,7 @@ var schemaComponents = {
|
|
|
76241
76385
|
AgendaGetOrganizationResult: {
|
|
76242
76386
|
type: "object",
|
|
76243
76387
|
required: [
|
|
76388
|
+
"holidays",
|
|
76244
76389
|
"modules",
|
|
76245
76390
|
"name",
|
|
76246
76391
|
"object",
|
|
@@ -76248,11 +76393,85 @@ var schemaComponents = {
|
|
|
76248
76393
|
"version"
|
|
76249
76394
|
],
|
|
76250
76395
|
properties: {
|
|
76396
|
+
holidays: {
|
|
76397
|
+
type: "object",
|
|
76398
|
+
required: [
|
|
76399
|
+
"country",
|
|
76400
|
+
"exceptions",
|
|
76401
|
+
"mode"
|
|
76402
|
+
],
|
|
76403
|
+
properties: {
|
|
76404
|
+
country: {
|
|
76405
|
+
anyOf: [
|
|
76406
|
+
{
|
|
76407
|
+
type: "string",
|
|
76408
|
+
const: "CO"
|
|
76409
|
+
},
|
|
76410
|
+
{
|
|
76411
|
+
type: "string",
|
|
76412
|
+
const: "MX"
|
|
76413
|
+
},
|
|
76414
|
+
{
|
|
76415
|
+
type: "string",
|
|
76416
|
+
const: "PE"
|
|
76417
|
+
},
|
|
76418
|
+
{
|
|
76419
|
+
type: "string",
|
|
76420
|
+
const: "CL"
|
|
76421
|
+
}
|
|
76422
|
+
],
|
|
76423
|
+
description: "Country whose national holidays apply, as an ISO 3166-1 alpha-2 code."
|
|
76424
|
+
},
|
|
76425
|
+
exceptions: {
|
|
76426
|
+
type: "object",
|
|
76427
|
+
patternProperties: {
|
|
76428
|
+
"^.*$": {
|
|
76429
|
+
anyOf: [
|
|
76430
|
+
{
|
|
76431
|
+
type: "string",
|
|
76432
|
+
const: "closed"
|
|
76433
|
+
},
|
|
76434
|
+
{
|
|
76435
|
+
type: "string",
|
|
76436
|
+
const: "notice"
|
|
76437
|
+
},
|
|
76438
|
+
{
|
|
76439
|
+
type: "string",
|
|
76440
|
+
const: "hidden"
|
|
76441
|
+
}
|
|
76442
|
+
],
|
|
76443
|
+
description: "What a holiday does: closed offers no availability that day, notice only shows it on the agenda and when booking, hidden neither shows nor changes anything."
|
|
76444
|
+
}
|
|
76445
|
+
},
|
|
76446
|
+
description: "Holidays that do something else than `mode`, by holiday id."
|
|
76447
|
+
},
|
|
76448
|
+
mode: {
|
|
76449
|
+
anyOf: [
|
|
76450
|
+
{
|
|
76451
|
+
type: "string",
|
|
76452
|
+
const: "closed"
|
|
76453
|
+
},
|
|
76454
|
+
{
|
|
76455
|
+
type: "string",
|
|
76456
|
+
const: "notice"
|
|
76457
|
+
},
|
|
76458
|
+
{
|
|
76459
|
+
type: "string",
|
|
76460
|
+
const: "hidden"
|
|
76461
|
+
}
|
|
76462
|
+
],
|
|
76463
|
+
description: "What a holiday does: closed offers no availability that day, notice only shows it on the agenda and when booking, hidden neither shows nor changes anything."
|
|
76464
|
+
}
|
|
76465
|
+
},
|
|
76466
|
+
additionalProperties: false,
|
|
76467
|
+
description: "National holidays of the organization: the country, what a holiday does and its exceptions. They apply only while the holidays module is on."
|
|
76468
|
+
},
|
|
76251
76469
|
modules: {
|
|
76252
76470
|
type: "object",
|
|
76253
76471
|
required: [
|
|
76254
76472
|
"customFields",
|
|
76255
76473
|
"files",
|
|
76474
|
+
"holidays",
|
|
76256
76475
|
"locations",
|
|
76257
76476
|
"notifications",
|
|
76258
76477
|
"reports",
|
|
@@ -76268,6 +76487,10 @@ var schemaComponents = {
|
|
|
76268
76487
|
type: "boolean",
|
|
76269
76488
|
description: "Show patient and appointment documents without deleting stored files when disabled."
|
|
76270
76489
|
},
|
|
76490
|
+
holidays: {
|
|
76491
|
+
type: "boolean",
|
|
76492
|
+
description: "Apply the national holidays of the configured country: closed days offer no availability, noticed days are only shown. Disabling changes nothing stored."
|
|
76493
|
+
},
|
|
76271
76494
|
locations: {
|
|
76272
76495
|
type: "boolean",
|
|
76273
76496
|
description: "Show organization sites and site-based agenda filters."
|
|
@@ -122912,6 +123135,74 @@ var schemaComponents = {
|
|
|
122912
123135
|
minimum: 0,
|
|
122913
123136
|
description: "Organization settings version last observed; zero before the first save. A concurrent edit produces a conflict."
|
|
122914
123137
|
},
|
|
123138
|
+
holidays: {
|
|
123139
|
+
type: "object",
|
|
123140
|
+
properties: {
|
|
123141
|
+
country: {
|
|
123142
|
+
anyOf: [
|
|
123143
|
+
{
|
|
123144
|
+
type: "string",
|
|
123145
|
+
const: "CO"
|
|
123146
|
+
},
|
|
123147
|
+
{
|
|
123148
|
+
type: "string",
|
|
123149
|
+
const: "MX"
|
|
123150
|
+
},
|
|
123151
|
+
{
|
|
123152
|
+
type: "string",
|
|
123153
|
+
const: "PE"
|
|
123154
|
+
},
|
|
123155
|
+
{
|
|
123156
|
+
type: "string",
|
|
123157
|
+
const: "CL"
|
|
123158
|
+
}
|
|
123159
|
+
],
|
|
123160
|
+
description: "Country whose national holidays apply, as an ISO 3166-1 alpha-2 code."
|
|
123161
|
+
},
|
|
123162
|
+
exceptions: {
|
|
123163
|
+
type: "object",
|
|
123164
|
+
patternProperties: {
|
|
123165
|
+
"^.*$": {
|
|
123166
|
+
anyOf: [
|
|
123167
|
+
{
|
|
123168
|
+
type: "string",
|
|
123169
|
+
const: "closed"
|
|
123170
|
+
},
|
|
123171
|
+
{
|
|
123172
|
+
type: "string",
|
|
123173
|
+
const: "notice"
|
|
123174
|
+
},
|
|
123175
|
+
{
|
|
123176
|
+
type: "string",
|
|
123177
|
+
const: "hidden"
|
|
123178
|
+
}
|
|
123179
|
+
],
|
|
123180
|
+
description: "What a holiday does: closed offers no availability that day, notice only shows it on the agenda and when booking, hidden neither shows nor changes anything."
|
|
123181
|
+
}
|
|
123182
|
+
},
|
|
123183
|
+
description: "Holidays that do something else than `mode`, by holiday id."
|
|
123184
|
+
},
|
|
123185
|
+
mode: {
|
|
123186
|
+
anyOf: [
|
|
123187
|
+
{
|
|
123188
|
+
type: "string",
|
|
123189
|
+
const: "closed"
|
|
123190
|
+
},
|
|
123191
|
+
{
|
|
123192
|
+
type: "string",
|
|
123193
|
+
const: "notice"
|
|
123194
|
+
},
|
|
123195
|
+
{
|
|
123196
|
+
type: "string",
|
|
123197
|
+
const: "hidden"
|
|
123198
|
+
}
|
|
123199
|
+
],
|
|
123200
|
+
description: "What a holiday does: closed offers no availability that day, notice only shows it on the agenda and when booking, hidden neither shows nor changes anything."
|
|
123201
|
+
}
|
|
123202
|
+
},
|
|
123203
|
+
additionalProperties: false,
|
|
123204
|
+
description: "Only supplied holiday settings are changed. Supplied exceptions replace the stored ones; an exception naming a holiday the country does not have is dropped."
|
|
123205
|
+
},
|
|
122915
123206
|
modules: {
|
|
122916
123207
|
type: "object",
|
|
122917
123208
|
properties: {
|
|
@@ -122923,6 +123214,10 @@ var schemaComponents = {
|
|
|
122923
123214
|
type: "boolean",
|
|
122924
123215
|
description: "Show patient and appointment documents without deleting stored files when disabled."
|
|
122925
123216
|
},
|
|
123217
|
+
holidays: {
|
|
123218
|
+
type: "boolean",
|
|
123219
|
+
description: "Apply the national holidays of the configured country: closed days offer no availability, noticed days are only shown. Disabling changes nothing stored."
|
|
123220
|
+
},
|
|
122926
123221
|
locations: {
|
|
122927
123222
|
type: "boolean",
|
|
122928
123223
|
description: "Show organization sites and site-based agenda filters."
|
|
@@ -123319,6 +123614,7 @@ var schemaComponents = {
|
|
|
123319
123614
|
AgendaSaveOrganizationResult: {
|
|
123320
123615
|
type: "object",
|
|
123321
123616
|
required: [
|
|
123617
|
+
"holidays",
|
|
123322
123618
|
"modules",
|
|
123323
123619
|
"name",
|
|
123324
123620
|
"object",
|
|
@@ -123326,11 +123622,85 @@ var schemaComponents = {
|
|
|
123326
123622
|
"version"
|
|
123327
123623
|
],
|
|
123328
123624
|
properties: {
|
|
123625
|
+
holidays: {
|
|
123626
|
+
type: "object",
|
|
123627
|
+
required: [
|
|
123628
|
+
"country",
|
|
123629
|
+
"exceptions",
|
|
123630
|
+
"mode"
|
|
123631
|
+
],
|
|
123632
|
+
properties: {
|
|
123633
|
+
country: {
|
|
123634
|
+
anyOf: [
|
|
123635
|
+
{
|
|
123636
|
+
type: "string",
|
|
123637
|
+
const: "CO"
|
|
123638
|
+
},
|
|
123639
|
+
{
|
|
123640
|
+
type: "string",
|
|
123641
|
+
const: "MX"
|
|
123642
|
+
},
|
|
123643
|
+
{
|
|
123644
|
+
type: "string",
|
|
123645
|
+
const: "PE"
|
|
123646
|
+
},
|
|
123647
|
+
{
|
|
123648
|
+
type: "string",
|
|
123649
|
+
const: "CL"
|
|
123650
|
+
}
|
|
123651
|
+
],
|
|
123652
|
+
description: "Country whose national holidays apply, as an ISO 3166-1 alpha-2 code."
|
|
123653
|
+
},
|
|
123654
|
+
exceptions: {
|
|
123655
|
+
type: "object",
|
|
123656
|
+
patternProperties: {
|
|
123657
|
+
"^.*$": {
|
|
123658
|
+
anyOf: [
|
|
123659
|
+
{
|
|
123660
|
+
type: "string",
|
|
123661
|
+
const: "closed"
|
|
123662
|
+
},
|
|
123663
|
+
{
|
|
123664
|
+
type: "string",
|
|
123665
|
+
const: "notice"
|
|
123666
|
+
},
|
|
123667
|
+
{
|
|
123668
|
+
type: "string",
|
|
123669
|
+
const: "hidden"
|
|
123670
|
+
}
|
|
123671
|
+
],
|
|
123672
|
+
description: "What a holiday does: closed offers no availability that day, notice only shows it on the agenda and when booking, hidden neither shows nor changes anything."
|
|
123673
|
+
}
|
|
123674
|
+
},
|
|
123675
|
+
description: "Holidays that do something else than `mode`, by holiday id."
|
|
123676
|
+
},
|
|
123677
|
+
mode: {
|
|
123678
|
+
anyOf: [
|
|
123679
|
+
{
|
|
123680
|
+
type: "string",
|
|
123681
|
+
const: "closed"
|
|
123682
|
+
},
|
|
123683
|
+
{
|
|
123684
|
+
type: "string",
|
|
123685
|
+
const: "notice"
|
|
123686
|
+
},
|
|
123687
|
+
{
|
|
123688
|
+
type: "string",
|
|
123689
|
+
const: "hidden"
|
|
123690
|
+
}
|
|
123691
|
+
],
|
|
123692
|
+
description: "What a holiday does: closed offers no availability that day, notice only shows it on the agenda and when booking, hidden neither shows nor changes anything."
|
|
123693
|
+
}
|
|
123694
|
+
},
|
|
123695
|
+
additionalProperties: false,
|
|
123696
|
+
description: "National holidays of the organization: the country, what a holiday does and its exceptions. They apply only while the holidays module is on."
|
|
123697
|
+
},
|
|
123329
123698
|
modules: {
|
|
123330
123699
|
type: "object",
|
|
123331
123700
|
required: [
|
|
123332
123701
|
"customFields",
|
|
123333
123702
|
"files",
|
|
123703
|
+
"holidays",
|
|
123334
123704
|
"locations",
|
|
123335
123705
|
"notifications",
|
|
123336
123706
|
"reports",
|
|
@@ -123346,6 +123716,10 @@ var schemaComponents = {
|
|
|
123346
123716
|
type: "boolean",
|
|
123347
123717
|
description: "Show patient and appointment documents without deleting stored files when disabled."
|
|
123348
123718
|
},
|
|
123719
|
+
holidays: {
|
|
123720
|
+
type: "boolean",
|
|
123721
|
+
description: "Apply the national holidays of the configured country: closed days offer no availability, noticed days are only shown. Disabling changes nothing stored."
|
|
123722
|
+
},
|
|
123349
123723
|
locations: {
|
|
123350
123724
|
type: "boolean",
|
|
123351
123725
|
description: "Show organization sites and site-based agenda filters."
|
|
@@ -189071,6 +189445,7 @@ var schemaComponents = {
|
|
|
189071
189445
|
"reasoningEffort",
|
|
189072
189446
|
"replyChoices",
|
|
189073
189447
|
"sessionCloseAfterMinutes",
|
|
189448
|
+
"teamCloseAfterMinutes",
|
|
189074
189449
|
"temperature",
|
|
189075
189450
|
"toolDiscovery",
|
|
189076
189451
|
"voice"
|
|
@@ -189512,7 +189887,20 @@ var schemaComponents = {
|
|
|
189512
189887
|
anyOf: [
|
|
189513
189888
|
{
|
|
189514
189889
|
type: "integer",
|
|
189515
|
-
description: "Text Agents. Close a conversation after this many minutes without messages. Null:
|
|
189890
|
+
description: "Text Agents. Close a conversation the AI attends after this many minutes without messages. Null: 120 on WhatsApp (1440 for a conversation the business opened: a campaign's message or a machine client's), 30 on web. If the contact writes later, a new conversation opens and the Agent reads what is known of the contact and the summaries of their earlier conversations. A WhatsApp conversation a person of the team handles follows `teamCloseAfterMinutes` instead.",
|
|
189891
|
+
maximum: 10080,
|
|
189892
|
+
minimum: 5
|
|
189893
|
+
},
|
|
189894
|
+
{
|
|
189895
|
+
type: "null"
|
|
189896
|
+
}
|
|
189897
|
+
]
|
|
189898
|
+
},
|
|
189899
|
+
teamCloseAfterMinutes: {
|
|
189900
|
+
anyOf: [
|
|
189901
|
+
{
|
|
189902
|
+
type: "integer",
|
|
189903
|
+
description: "Text Agents on WhatsApp. Close a conversation a person of the team handles (a handoff the AI made, the AI paused for the recipient, or the AI off for the conversation) after this many minutes without messages, whether the team answered or not. One that closes with a handoff nobody of the team answered is `unattended` and stays among the conversations to review. Closing ends the recipient's pause, so their next message opens a new conversation with the AI. Null: 1440.",
|
|
189516
189904
|
maximum: 10080,
|
|
189517
189905
|
minimum: 5
|
|
189518
189906
|
},
|
|
@@ -190010,7 +190398,20 @@ var schemaComponents = {
|
|
|
190010
190398
|
anyOf: [
|
|
190011
190399
|
{
|
|
190012
190400
|
type: "integer",
|
|
190013
|
-
description: "Text Agents. Close a conversation after this many minutes without messages. Null:
|
|
190401
|
+
description: "Text Agents. Close a conversation the AI attends after this many minutes without messages. Null: 120 on WhatsApp (1440 for a conversation the business opened: a campaign's message or a machine client's), 30 on web. If the contact writes later, a new conversation opens and the Agent reads what is known of the contact and the summaries of their earlier conversations. A WhatsApp conversation a person of the team handles follows `teamCloseAfterMinutes` instead.",
|
|
190402
|
+
maximum: 10080,
|
|
190403
|
+
minimum: 5
|
|
190404
|
+
},
|
|
190405
|
+
{
|
|
190406
|
+
type: "null"
|
|
190407
|
+
}
|
|
190408
|
+
]
|
|
190409
|
+
},
|
|
190410
|
+
teamCloseAfterMinutes: {
|
|
190411
|
+
anyOf: [
|
|
190412
|
+
{
|
|
190413
|
+
type: "integer",
|
|
190414
|
+
description: "Text Agents on WhatsApp. Close a conversation a person of the team handles (a handoff the AI made, the AI paused for the recipient, or the AI off for the conversation) after this many minutes without messages, whether the team answered or not. One that closes with a handoff nobody of the team answered is `unattended` and stays among the conversations to review. Closing ends the recipient's pause, so their next message opens a new conversation with the AI. Null: 1440.",
|
|
190014
190415
|
maximum: 10080,
|
|
190015
190416
|
minimum: 5
|
|
190016
190417
|
},
|
|
@@ -191013,6 +191414,169 @@ var schemaComponents = {
|
|
|
191013
191414
|
},
|
|
191014
191415
|
additionalProperties: false
|
|
191015
191416
|
},
|
|
191417
|
+
RaizAssignee: {
|
|
191418
|
+
type: "object",
|
|
191419
|
+
required: [
|
|
191420
|
+
"email",
|
|
191421
|
+
"id",
|
|
191422
|
+
"name",
|
|
191423
|
+
"picture",
|
|
191424
|
+
"self"
|
|
191425
|
+
],
|
|
191426
|
+
properties: {
|
|
191427
|
+
email: {
|
|
191428
|
+
anyOf: [
|
|
191429
|
+
{
|
|
191430
|
+
type: "string"
|
|
191431
|
+
},
|
|
191432
|
+
{
|
|
191433
|
+
type: "null"
|
|
191434
|
+
}
|
|
191435
|
+
]
|
|
191436
|
+
},
|
|
191437
|
+
id: {
|
|
191438
|
+
type: "string",
|
|
191439
|
+
description: "The person's member id, as Arbol Account lists it (`account.members.list`): the value `assigneeId` takes."
|
|
191440
|
+
},
|
|
191441
|
+
name: {
|
|
191442
|
+
anyOf: [
|
|
191443
|
+
{
|
|
191444
|
+
type: "string"
|
|
191445
|
+
},
|
|
191446
|
+
{
|
|
191447
|
+
type: "null"
|
|
191448
|
+
}
|
|
191449
|
+
]
|
|
191450
|
+
},
|
|
191451
|
+
picture: {
|
|
191452
|
+
anyOf: [
|
|
191453
|
+
{
|
|
191454
|
+
type: "string",
|
|
191455
|
+
description: "A link to their picture."
|
|
191456
|
+
},
|
|
191457
|
+
{
|
|
191458
|
+
type: "null"
|
|
191459
|
+
}
|
|
191460
|
+
]
|
|
191461
|
+
},
|
|
191462
|
+
self: {
|
|
191463
|
+
type: "boolean",
|
|
191464
|
+
description: "The person calling."
|
|
191465
|
+
}
|
|
191466
|
+
},
|
|
191467
|
+
additionalProperties: false
|
|
191468
|
+
},
|
|
191469
|
+
RaizAssigneeList: {
|
|
191470
|
+
type: "object",
|
|
191471
|
+
required: [
|
|
191472
|
+
"data",
|
|
191473
|
+
"object"
|
|
191474
|
+
],
|
|
191475
|
+
properties: {
|
|
191476
|
+
data: {
|
|
191477
|
+
type: "array",
|
|
191478
|
+
items: {
|
|
191479
|
+
$ref: "#/components/schemas/RaizAssignee"
|
|
191480
|
+
},
|
|
191481
|
+
description: "By name. An organization's team is a short list: all of it."
|
|
191482
|
+
},
|
|
191483
|
+
object: {
|
|
191484
|
+
type: "string",
|
|
191485
|
+
const: "list"
|
|
191486
|
+
}
|
|
191487
|
+
},
|
|
191488
|
+
additionalProperties: false
|
|
191489
|
+
},
|
|
191490
|
+
RaizAssigneeListResponse: {
|
|
191491
|
+
type: "object",
|
|
191492
|
+
description: "A successful answer.",
|
|
191493
|
+
additionalProperties: false,
|
|
191494
|
+
required: [
|
|
191495
|
+
"success",
|
|
191496
|
+
"data",
|
|
191497
|
+
"error",
|
|
191498
|
+
"metadata"
|
|
191499
|
+
],
|
|
191500
|
+
properties: {
|
|
191501
|
+
success: {
|
|
191502
|
+
type: "boolean",
|
|
191503
|
+
enum: [
|
|
191504
|
+
true
|
|
191505
|
+
]
|
|
191506
|
+
},
|
|
191507
|
+
data: {
|
|
191508
|
+
$ref: "#/components/schemas/RaizAssigneeList"
|
|
191509
|
+
},
|
|
191510
|
+
error: {
|
|
191511
|
+
const: null
|
|
191512
|
+
},
|
|
191513
|
+
metadata: {
|
|
191514
|
+
$ref: "#/components/schemas/ResponseMetadata"
|
|
191515
|
+
}
|
|
191516
|
+
}
|
|
191517
|
+
},
|
|
191518
|
+
RaizAssigneeUnavailableError: {
|
|
191519
|
+
type: "object",
|
|
191520
|
+
description: "A failed answer.",
|
|
191521
|
+
additionalProperties: false,
|
|
191522
|
+
required: [
|
|
191523
|
+
"success",
|
|
191524
|
+
"data",
|
|
191525
|
+
"error",
|
|
191526
|
+
"metadata"
|
|
191527
|
+
],
|
|
191528
|
+
properties: {
|
|
191529
|
+
success: {
|
|
191530
|
+
type: "boolean",
|
|
191531
|
+
enum: [
|
|
191532
|
+
false
|
|
191533
|
+
]
|
|
191534
|
+
},
|
|
191535
|
+
data: {
|
|
191536
|
+
const: null
|
|
191537
|
+
},
|
|
191538
|
+
error: {
|
|
191539
|
+
$ref: "#/components/schemas/RaizAssigneeUnavailableFailure"
|
|
191540
|
+
},
|
|
191541
|
+
metadata: {
|
|
191542
|
+
$ref: "#/components/schemas/ResponseMetadata"
|
|
191543
|
+
}
|
|
191544
|
+
}
|
|
191545
|
+
},
|
|
191546
|
+
RaizAssigneeUnavailableFailure: {
|
|
191547
|
+
type: "object",
|
|
191548
|
+
description: "That person cannot take conversations in this organization. `listAssignees` names who can.",
|
|
191549
|
+
additionalProperties: false,
|
|
191550
|
+
required: [
|
|
191551
|
+
"code",
|
|
191552
|
+
"message",
|
|
191553
|
+
"retryable",
|
|
191554
|
+
"data"
|
|
191555
|
+
],
|
|
191556
|
+
properties: {
|
|
191557
|
+
code: {
|
|
191558
|
+
type: "string",
|
|
191559
|
+
enum: [
|
|
191560
|
+
"ASSIGNEE_UNAVAILABLE"
|
|
191561
|
+
],
|
|
191562
|
+
description: "The failure code, stable across releases."
|
|
191563
|
+
},
|
|
191564
|
+
message: {
|
|
191565
|
+
type: "string",
|
|
191566
|
+
description: "What went wrong, for people; it never contains input values."
|
|
191567
|
+
},
|
|
191568
|
+
retryable: {
|
|
191569
|
+
type: "boolean",
|
|
191570
|
+
enum: [
|
|
191571
|
+
false
|
|
191572
|
+
],
|
|
191573
|
+
description: "Whether repeating the same request may succeed."
|
|
191574
|
+
},
|
|
191575
|
+
data: {
|
|
191576
|
+
$ref: "#/components/schemas/Empty"
|
|
191577
|
+
}
|
|
191578
|
+
}
|
|
191579
|
+
},
|
|
191016
191580
|
RaizBulletin: {
|
|
191017
191581
|
type: "object",
|
|
191018
191582
|
required: [
|
|
@@ -195382,6 +195946,9 @@ var schemaComponents = {
|
|
|
195382
195946
|
"aiPaused",
|
|
195383
195947
|
"aiPausedBy",
|
|
195384
195948
|
"analyzedAt",
|
|
195949
|
+
"assignedAt",
|
|
195950
|
+
"assignedBy",
|
|
195951
|
+
"assigneeId",
|
|
195385
195952
|
"campaignId",
|
|
195386
195953
|
"campaignRecipientId",
|
|
195387
195954
|
"channelAddress",
|
|
@@ -195417,8 +195984,11 @@ var schemaComponents = {
|
|
|
195417
195984
|
"summaryAuthor",
|
|
195418
195985
|
"title",
|
|
195419
195986
|
"titleAuthor",
|
|
195987
|
+
"unattended",
|
|
195420
195988
|
"updatedAt",
|
|
195421
195989
|
"version",
|
|
195990
|
+
"waitingOn",
|
|
195991
|
+
"waitingSinceAt",
|
|
195422
195992
|
"workers",
|
|
195423
195993
|
"toolCalls",
|
|
195424
195994
|
"analysisErrorCode",
|
|
@@ -195499,6 +196069,40 @@ var schemaComponents = {
|
|
|
195499
196069
|
}
|
|
195500
196070
|
]
|
|
195501
196071
|
},
|
|
196072
|
+
assignedAt: {
|
|
196073
|
+
anyOf: [
|
|
196074
|
+
{
|
|
196075
|
+
type: "string",
|
|
196076
|
+
description: "An instant in RFC 3339 format, in UTC.",
|
|
196077
|
+
format: "date-time"
|
|
196078
|
+
},
|
|
196079
|
+
{
|
|
196080
|
+
type: "null"
|
|
196081
|
+
}
|
|
196082
|
+
]
|
|
196083
|
+
},
|
|
196084
|
+
assignedBy: {
|
|
196085
|
+
anyOf: [
|
|
196086
|
+
{
|
|
196087
|
+
type: "string",
|
|
196088
|
+
description: "Who gave the case to its owner: a member id, the owner's own when they took it."
|
|
196089
|
+
},
|
|
196090
|
+
{
|
|
196091
|
+
type: "null"
|
|
196092
|
+
}
|
|
196093
|
+
]
|
|
196094
|
+
},
|
|
196095
|
+
assigneeId: {
|
|
196096
|
+
anyOf: [
|
|
196097
|
+
{
|
|
196098
|
+
type: "string",
|
|
196099
|
+
description: "The case's owner: the person of the organization who took the conversation or was given it, by their member id as Arbol Account lists it (`account.members.list`). Null while nobody has it. It stays when the AI resumes, so a later handoff of the same conversation returns to the same person."
|
|
196100
|
+
},
|
|
196101
|
+
{
|
|
196102
|
+
type: "null"
|
|
196103
|
+
}
|
|
196104
|
+
]
|
|
196105
|
+
},
|
|
195502
196106
|
campaignId: {
|
|
195503
196107
|
anyOf: [
|
|
195504
196108
|
{
|
|
@@ -195986,6 +196590,10 @@ var schemaComponents = {
|
|
|
195986
196590
|
}
|
|
195987
196591
|
]
|
|
195988
196592
|
},
|
|
196593
|
+
unattended: {
|
|
196594
|
+
type: "boolean",
|
|
196595
|
+
description: "It closed for inactivity with a handoff nobody of the team answered. Such a conversation is also one to review (`toReview`)."
|
|
196596
|
+
},
|
|
195989
196597
|
updatedAt: {
|
|
195990
196598
|
type: "string",
|
|
195991
196599
|
description: "An instant in RFC 3339 format, in UTC.",
|
|
@@ -195995,6 +196603,42 @@ var schemaComponents = {
|
|
|
195995
196603
|
type: "integer",
|
|
195996
196604
|
minimum: 1
|
|
195997
196605
|
},
|
|
196606
|
+
waitingOn: {
|
|
196607
|
+
anyOf: [
|
|
196608
|
+
{
|
|
196609
|
+
anyOf: [
|
|
196610
|
+
{
|
|
196611
|
+
type: "string",
|
|
196612
|
+
const: "ai"
|
|
196613
|
+
},
|
|
196614
|
+
{
|
|
196615
|
+
type: "string",
|
|
196616
|
+
const: "team"
|
|
196617
|
+
},
|
|
196618
|
+
{
|
|
196619
|
+
type: "string",
|
|
196620
|
+
const: "contact"
|
|
196621
|
+
}
|
|
196622
|
+
],
|
|
196623
|
+
description: "Who an open conversation waits for. `ai`: the AI attends it. While a person of the team handles it (a pending handoff, the AI paused for the recipient or off for the conversation): `team` when the contact wrote after the last answer or nobody of the team answered the handoff, `contact` when a person answered last. Null once closed."
|
|
196624
|
+
},
|
|
196625
|
+
{
|
|
196626
|
+
type: "null"
|
|
196627
|
+
}
|
|
196628
|
+
]
|
|
196629
|
+
},
|
|
196630
|
+
waitingSinceAt: {
|
|
196631
|
+
anyOf: [
|
|
196632
|
+
{
|
|
196633
|
+
type: "string",
|
|
196634
|
+
description: "Since when it waits for the team or the contact (RFC 3339): the first message nobody answered, or the last answer. Null while the AI attends it and once closed.",
|
|
196635
|
+
format: "date-time"
|
|
196636
|
+
},
|
|
196637
|
+
{
|
|
196638
|
+
type: "null"
|
|
196639
|
+
}
|
|
196640
|
+
]
|
|
196641
|
+
},
|
|
195998
196642
|
workers: {
|
|
195999
196643
|
type: "array",
|
|
196000
196644
|
items: {
|
|
@@ -196126,6 +196770,13 @@ var schemaComponents = {
|
|
|
196126
196770
|
$ref: "#/components/schemas/RaizConversationDiagnostics",
|
|
196127
196771
|
description: "Staff-only, live read of a call's provider termination evidence. Never includes provider identifiers, credentials, transcript content or free-form error text. Unavailable evidence is explicit and does not change the stored conversation."
|
|
196128
196772
|
},
|
|
196773
|
+
history: {
|
|
196774
|
+
type: "array",
|
|
196775
|
+
items: {
|
|
196776
|
+
$ref: "#/components/schemas/RaizConversationEvent"
|
|
196777
|
+
},
|
|
196778
|
+
description: "The case's history, oldest first: the handoff, who took it or was given it, the return to the AI, a person's pause or resume, and the closing. Present only when expanded. Who answered the contact is in `workers` and in each message's `memberId`."
|
|
196779
|
+
},
|
|
196129
196780
|
messages: {
|
|
196130
196781
|
$ref: "#/components/schemas/RaizMessagePage",
|
|
196131
196782
|
description: "The transcript, oldest first, with tool calls and quoted replies. Present only when expanded."
|
|
@@ -196415,6 +197066,128 @@ var schemaComponents = {
|
|
|
196415
197066
|
},
|
|
196416
197067
|
additionalProperties: false
|
|
196417
197068
|
},
|
|
197069
|
+
RaizConversationEvent: {
|
|
197070
|
+
type: "object",
|
|
197071
|
+
required: [
|
|
197072
|
+
"at",
|
|
197073
|
+
"author",
|
|
197074
|
+
"authorId",
|
|
197075
|
+
"kind"
|
|
197076
|
+
],
|
|
197077
|
+
properties: {
|
|
197078
|
+
assigneeId: {
|
|
197079
|
+
type: "string",
|
|
197080
|
+
description: "For `assigned`: the member who has the case from then on."
|
|
197081
|
+
},
|
|
197082
|
+
at: {
|
|
197083
|
+
type: "string",
|
|
197084
|
+
description: "An instant in RFC 3339 format, in UTC.",
|
|
197085
|
+
format: "date-time"
|
|
197086
|
+
},
|
|
197087
|
+
author: {
|
|
197088
|
+
anyOf: [
|
|
197089
|
+
{
|
|
197090
|
+
type: "string",
|
|
197091
|
+
const: "person"
|
|
197092
|
+
},
|
|
197093
|
+
{
|
|
197094
|
+
type: "string",
|
|
197095
|
+
const: "ai"
|
|
197096
|
+
},
|
|
197097
|
+
{
|
|
197098
|
+
type: "string",
|
|
197099
|
+
const: "system"
|
|
197100
|
+
},
|
|
197101
|
+
{
|
|
197102
|
+
type: "string",
|
|
197103
|
+
const: "import"
|
|
197104
|
+
},
|
|
197105
|
+
{
|
|
197106
|
+
type: "string",
|
|
197107
|
+
const: "provider"
|
|
197108
|
+
}
|
|
197109
|
+
],
|
|
197110
|
+
description: "Who did it: a `person` of the organization, the `ai`, or the `system` (a rule, such as the inactivity close)."
|
|
197111
|
+
},
|
|
197112
|
+
authorId: {
|
|
197113
|
+
anyOf: [
|
|
197114
|
+
{
|
|
197115
|
+
type: "string",
|
|
197116
|
+
description: "The member id of the person, or the Agent's id; null for the system."
|
|
197117
|
+
},
|
|
197118
|
+
{
|
|
197119
|
+
type: "null"
|
|
197120
|
+
}
|
|
197121
|
+
]
|
|
197122
|
+
},
|
|
197123
|
+
automatic: {
|
|
197124
|
+
type: "boolean",
|
|
197125
|
+
description: "For `returned_to_ai`: nobody of the team asked for it; an unanswered technical handoff came back by itself."
|
|
197126
|
+
},
|
|
197127
|
+
closeReason: {
|
|
197128
|
+
anyOf: [
|
|
197129
|
+
{
|
|
197130
|
+
type: "string"
|
|
197131
|
+
},
|
|
197132
|
+
{
|
|
197133
|
+
type: "null"
|
|
197134
|
+
}
|
|
197135
|
+
]
|
|
197136
|
+
},
|
|
197137
|
+
kind: {
|
|
197138
|
+
anyOf: [
|
|
197139
|
+
{
|
|
197140
|
+
type: "string",
|
|
197141
|
+
const: "handed_off"
|
|
197142
|
+
},
|
|
197143
|
+
{
|
|
197144
|
+
type: "string",
|
|
197145
|
+
const: "assigned"
|
|
197146
|
+
},
|
|
197147
|
+
{
|
|
197148
|
+
type: "string",
|
|
197149
|
+
const: "unassigned"
|
|
197150
|
+
},
|
|
197151
|
+
{
|
|
197152
|
+
type: "string",
|
|
197153
|
+
const: "returned_to_ai"
|
|
197154
|
+
},
|
|
197155
|
+
{
|
|
197156
|
+
type: "string",
|
|
197157
|
+
const: "ai_paused"
|
|
197158
|
+
},
|
|
197159
|
+
{
|
|
197160
|
+
type: "string",
|
|
197161
|
+
const: "ai_resumed"
|
|
197162
|
+
},
|
|
197163
|
+
{
|
|
197164
|
+
type: "string",
|
|
197165
|
+
const: "closed"
|
|
197166
|
+
}
|
|
197167
|
+
],
|
|
197168
|
+
description: "`handed_off`: the AI passed the conversation to the team (`messageId` is its handoff message). `assigned`: a person took the case or was given it (`authorId` is who decided, `assigneeId` who has it, `previousAssigneeId` who had it). `unassigned`: it was left with nobody. `returned_to_ai`: the team gave it back to the AI. `ai_paused`, `ai_resumed`: a person paused or resumed the AI for the recipient. `closed`: it closed, with `closeReason`."
|
|
197169
|
+
},
|
|
197170
|
+
messageId: {
|
|
197171
|
+
type: "string",
|
|
197172
|
+
description: "Message id.",
|
|
197173
|
+
examples: [
|
|
197174
|
+
"msg_01m45h8q2rf3t9w6y7z0b1c2d3"
|
|
197175
|
+
],
|
|
197176
|
+
pattern: "^msg_(?:[0-7][0-9a-hjkmnp-tv-z]{25}|(?:[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}|[a-f0-9]{32}))$"
|
|
197177
|
+
},
|
|
197178
|
+
previousAssigneeId: {
|
|
197179
|
+
anyOf: [
|
|
197180
|
+
{
|
|
197181
|
+
type: "string"
|
|
197182
|
+
},
|
|
197183
|
+
{
|
|
197184
|
+
type: "null"
|
|
197185
|
+
}
|
|
197186
|
+
]
|
|
197187
|
+
}
|
|
197188
|
+
},
|
|
197189
|
+
additionalProperties: false
|
|
197190
|
+
},
|
|
196418
197191
|
RaizConversationGroup: {
|
|
196419
197192
|
type: "object",
|
|
196420
197193
|
required: [
|
|
@@ -196973,6 +197746,33 @@ var schemaComponents = {
|
|
|
196973
197746
|
],
|
|
196974
197747
|
description: "Who works the conversation now. `ai`: calls and web chats, open WhatsApp conversations the AI answers (assigned to it and not paused), and closed ones the AI answered. `team`: open WhatsApp conversations the organization's people answer (not assigned to the AI, or paused) and closed ones they answered. Unlike `handling`, a conversation the AI answered and then handed to people is `team` while open."
|
|
196975
197748
|
},
|
|
197749
|
+
waitingOn: {
|
|
197750
|
+
anyOf: [
|
|
197751
|
+
{
|
|
197752
|
+
type: "string",
|
|
197753
|
+
const: "ai"
|
|
197754
|
+
},
|
|
197755
|
+
{
|
|
197756
|
+
type: "string",
|
|
197757
|
+
const: "team"
|
|
197758
|
+
},
|
|
197759
|
+
{
|
|
197760
|
+
type: "string",
|
|
197761
|
+
const: "contact"
|
|
197762
|
+
}
|
|
197763
|
+
],
|
|
197764
|
+
description: "Open conversations by who they wait for, as each conversation's `waitingOn` says: `ai`, `team` (the team's cases to answer) or `contact`. Closed conversations never match."
|
|
197765
|
+
},
|
|
197766
|
+
assignee: {
|
|
197767
|
+
type: "string",
|
|
197768
|
+
description: "Conversations by the case's owner: a member id, `me` (the person calling) or `none` (nobody has it). With `waitingOn=team`: one person's cases to answer, or the ones nobody took.",
|
|
197769
|
+
maxLength: 255,
|
|
197770
|
+
minLength: 1
|
|
197771
|
+
},
|
|
197772
|
+
unattended: {
|
|
197773
|
+
type: "boolean",
|
|
197774
|
+
description: "`true`: conversations that closed for inactivity with a handoff nobody of the team answered."
|
|
197775
|
+
},
|
|
196976
197776
|
origin: {
|
|
196977
197777
|
type: "string",
|
|
196978
197778
|
description: "Comma-separated origins.",
|
|
@@ -199341,6 +200141,9 @@ var schemaComponents = {
|
|
|
199341
200141
|
{
|
|
199342
200142
|
$ref: "#/components/schemas/UpstreamUnavailableFailure"
|
|
199343
200143
|
},
|
|
200144
|
+
{
|
|
200145
|
+
$ref: "#/components/schemas/RaizTeamUnavailableFailure"
|
|
200146
|
+
},
|
|
199344
200147
|
{
|
|
199345
200148
|
$ref: "#/components/schemas/RaizCampaignHeaderNotStoredFailure"
|
|
199346
200149
|
},
|
|
@@ -199358,6 +200161,7 @@ var schemaComponents = {
|
|
|
199358
200161
|
propertyName: "code",
|
|
199359
200162
|
mapping: {
|
|
199360
200163
|
UPSTREAM_UNAVAILABLE: "#/components/schemas/UpstreamUnavailableFailure",
|
|
200164
|
+
TEAM_UNAVAILABLE: "#/components/schemas/RaizTeamUnavailableFailure",
|
|
199361
200165
|
CAMPAIGN_HEADER_NOT_STORED: "#/components/schemas/RaizCampaignHeaderNotStoredFailure",
|
|
199362
200166
|
VOICE_UNAVAILABLE: "#/components/schemas/RaizVoiceUnavailableFailure",
|
|
199363
200167
|
FEEDBACK_PROPOSAL_UNAVAILABLE: "#/components/schemas/RaizFeedbackProposalUnavailableFailure",
|
|
@@ -199448,6 +200252,9 @@ var schemaComponents = {
|
|
|
199448
200252
|
},
|
|
199449
200253
|
RaizCreateChannelUnprocessableContentFailure: {
|
|
199450
200254
|
oneOf: [
|
|
200255
|
+
{
|
|
200256
|
+
$ref: "#/components/schemas/RaizAssigneeUnavailableFailure"
|
|
200257
|
+
},
|
|
199451
200258
|
{
|
|
199452
200259
|
$ref: "#/components/schemas/RaizContactUnreachableFailure"
|
|
199453
200260
|
},
|
|
@@ -199560,6 +200367,7 @@ var schemaComponents = {
|
|
|
199560
200367
|
discriminator: {
|
|
199561
200368
|
propertyName: "code",
|
|
199562
200369
|
mapping: {
|
|
200370
|
+
ASSIGNEE_UNAVAILABLE: "#/components/schemas/RaizAssigneeUnavailableFailure",
|
|
199563
200371
|
CONTACT_UNREACHABLE: "#/components/schemas/RaizContactUnreachableFailure",
|
|
199564
200372
|
DAILY_REPORT_RECIPIENTS_MISSING: "#/components/schemas/RaizDailyReportRecipientsMissingFailure",
|
|
199565
200373
|
DEFINITION_OPTIONS_INVALID: "#/components/schemas/RaizDefinitionOptionsInvalidFailure",
|
|
@@ -200823,6 +201631,9 @@ var schemaComponents = {
|
|
|
200823
201631
|
{
|
|
200824
201632
|
$ref: "#/components/schemas/UpstreamUnavailableFailure"
|
|
200825
201633
|
},
|
|
201634
|
+
{
|
|
201635
|
+
$ref: "#/components/schemas/RaizTeamUnavailableFailure"
|
|
201636
|
+
},
|
|
200826
201637
|
{
|
|
200827
201638
|
$ref: "#/components/schemas/RaizCampaignHeaderNotStoredFailure"
|
|
200828
201639
|
},
|
|
@@ -200840,6 +201651,7 @@ var schemaComponents = {
|
|
|
200840
201651
|
propertyName: "code",
|
|
200841
201652
|
mapping: {
|
|
200842
201653
|
UPSTREAM_UNAVAILABLE: "#/components/schemas/UpstreamUnavailableFailure",
|
|
201654
|
+
TEAM_UNAVAILABLE: "#/components/schemas/RaizTeamUnavailableFailure",
|
|
200843
201655
|
CAMPAIGN_HEADER_NOT_STORED: "#/components/schemas/RaizCampaignHeaderNotStoredFailure",
|
|
200844
201656
|
VOICE_UNAVAILABLE: "#/components/schemas/RaizVoiceUnavailableFailure",
|
|
200845
201657
|
FEEDBACK_PROPOSAL_UNAVAILABLE: "#/components/schemas/RaizFeedbackProposalUnavailableFailure",
|
|
@@ -200930,6 +201742,9 @@ var schemaComponents = {
|
|
|
200930
201742
|
},
|
|
200931
201743
|
RaizCreateConversationUnprocessableContentFailure: {
|
|
200932
201744
|
oneOf: [
|
|
201745
|
+
{
|
|
201746
|
+
$ref: "#/components/schemas/RaizAssigneeUnavailableFailure"
|
|
201747
|
+
},
|
|
200933
201748
|
{
|
|
200934
201749
|
$ref: "#/components/schemas/RaizContactUnreachableFailure"
|
|
200935
201750
|
},
|
|
@@ -201042,6 +201857,7 @@ var schemaComponents = {
|
|
|
201042
201857
|
discriminator: {
|
|
201043
201858
|
propertyName: "code",
|
|
201044
201859
|
mapping: {
|
|
201860
|
+
ASSIGNEE_UNAVAILABLE: "#/components/schemas/RaizAssigneeUnavailableFailure",
|
|
201045
201861
|
CONTACT_UNREACHABLE: "#/components/schemas/RaizContactUnreachableFailure",
|
|
201046
201862
|
DAILY_REPORT_RECIPIENTS_MISSING: "#/components/schemas/RaizDailyReportRecipientsMissingFailure",
|
|
201047
201863
|
DEFINITION_OPTIONS_INVALID: "#/components/schemas/RaizDefinitionOptionsInvalidFailure",
|
|
@@ -204667,6 +205483,9 @@ var schemaComponents = {
|
|
|
204667
205483
|
{
|
|
204668
205484
|
$ref: "#/components/schemas/UpstreamUnavailableFailure"
|
|
204669
205485
|
},
|
|
205486
|
+
{
|
|
205487
|
+
$ref: "#/components/schemas/RaizTeamUnavailableFailure"
|
|
205488
|
+
},
|
|
204670
205489
|
{
|
|
204671
205490
|
$ref: "#/components/schemas/RaizCampaignHeaderNotStoredFailure"
|
|
204672
205491
|
},
|
|
@@ -204684,6 +205503,7 @@ var schemaComponents = {
|
|
|
204684
205503
|
propertyName: "code",
|
|
204685
205504
|
mapping: {
|
|
204686
205505
|
UPSTREAM_UNAVAILABLE: "#/components/schemas/UpstreamUnavailableFailure",
|
|
205506
|
+
TEAM_UNAVAILABLE: "#/components/schemas/RaizTeamUnavailableFailure",
|
|
204687
205507
|
CAMPAIGN_HEADER_NOT_STORED: "#/components/schemas/RaizCampaignHeaderNotStoredFailure",
|
|
204688
205508
|
VOICE_UNAVAILABLE: "#/components/schemas/RaizVoiceUnavailableFailure",
|
|
204689
205509
|
FEEDBACK_PROPOSAL_UNAVAILABLE: "#/components/schemas/RaizFeedbackProposalUnavailableFailure",
|
|
@@ -204774,6 +205594,9 @@ var schemaComponents = {
|
|
|
204774
205594
|
},
|
|
204775
205595
|
RaizDeleteChannelUnprocessableContentFailure: {
|
|
204776
205596
|
oneOf: [
|
|
205597
|
+
{
|
|
205598
|
+
$ref: "#/components/schemas/RaizAssigneeUnavailableFailure"
|
|
205599
|
+
},
|
|
204777
205600
|
{
|
|
204778
205601
|
$ref: "#/components/schemas/RaizContactUnreachableFailure"
|
|
204779
205602
|
},
|
|
@@ -204886,6 +205709,7 @@ var schemaComponents = {
|
|
|
204886
205709
|
discriminator: {
|
|
204887
205710
|
propertyName: "code",
|
|
204888
205711
|
mapping: {
|
|
205712
|
+
ASSIGNEE_UNAVAILABLE: "#/components/schemas/RaizAssigneeUnavailableFailure",
|
|
204889
205713
|
CONTACT_UNREACHABLE: "#/components/schemas/RaizContactUnreachableFailure",
|
|
204890
205714
|
DAILY_REPORT_RECIPIENTS_MISSING: "#/components/schemas/RaizDailyReportRecipientsMissingFailure",
|
|
204891
205715
|
DEFINITION_OPTIONS_INVALID: "#/components/schemas/RaizDefinitionOptionsInvalidFailure",
|
|
@@ -208510,6 +209334,51 @@ var schemaComponents = {
|
|
|
208510
209334
|
}
|
|
208511
209335
|
}
|
|
208512
209336
|
},
|
|
209337
|
+
RaizListAssigneesServiceUnavailableError: {
|
|
209338
|
+
type: "object",
|
|
209339
|
+
description: "A failed answer.",
|
|
209340
|
+
additionalProperties: false,
|
|
209341
|
+
required: [
|
|
209342
|
+
"success",
|
|
209343
|
+
"data",
|
|
209344
|
+
"error",
|
|
209345
|
+
"metadata"
|
|
209346
|
+
],
|
|
209347
|
+
properties: {
|
|
209348
|
+
success: {
|
|
209349
|
+
type: "boolean",
|
|
209350
|
+
enum: [
|
|
209351
|
+
false
|
|
209352
|
+
]
|
|
209353
|
+
},
|
|
209354
|
+
data: {
|
|
209355
|
+
const: null
|
|
209356
|
+
},
|
|
209357
|
+
error: {
|
|
209358
|
+
$ref: "#/components/schemas/RaizListAssigneesServiceUnavailableFailure"
|
|
209359
|
+
},
|
|
209360
|
+
metadata: {
|
|
209361
|
+
$ref: "#/components/schemas/ResponseMetadata"
|
|
209362
|
+
}
|
|
209363
|
+
}
|
|
209364
|
+
},
|
|
209365
|
+
RaizListAssigneesServiceUnavailableFailure: {
|
|
209366
|
+
oneOf: [
|
|
209367
|
+
{
|
|
209368
|
+
$ref: "#/components/schemas/UpstreamUnavailableFailure"
|
|
209369
|
+
},
|
|
209370
|
+
{
|
|
209371
|
+
$ref: "#/components/schemas/RaizTeamUnavailableFailure"
|
|
209372
|
+
}
|
|
209373
|
+
],
|
|
209374
|
+
discriminator: {
|
|
209375
|
+
propertyName: "code",
|
|
209376
|
+
mapping: {
|
|
209377
|
+
UPSTREAM_UNAVAILABLE: "#/components/schemas/UpstreamUnavailableFailure",
|
|
209378
|
+
TEAM_UNAVAILABLE: "#/components/schemas/RaizTeamUnavailableFailure"
|
|
209379
|
+
}
|
|
209380
|
+
}
|
|
209381
|
+
},
|
|
208513
209382
|
RaizListBulletinsBadRequestError: {
|
|
208514
209383
|
type: "object",
|
|
208515
209384
|
description: "A failed answer.",
|
|
@@ -211333,6 +212202,7 @@ var schemaComponents = {
|
|
|
211333
212202
|
"escalations",
|
|
211334
212203
|
"failedOutcomes",
|
|
211335
212204
|
"failures",
|
|
212205
|
+
"firstReplyMinutes",
|
|
211336
212206
|
"frequency",
|
|
211337
212207
|
"phones",
|
|
211338
212208
|
"recipients"
|
|
@@ -211350,6 +212220,12 @@ var schemaComponents = {
|
|
|
211350
212220
|
type: "boolean",
|
|
211351
212221
|
description: "Email the recipients when the AI could not answer: a WhatsApp reply that ended with the fallback message, or a call that failed or in which one of the Agent's functions failed (default true)."
|
|
211352
212222
|
},
|
|
212223
|
+
firstReplyMinutes: {
|
|
212224
|
+
type: "integer",
|
|
212225
|
+
description: "Within how many minutes a person of the team should answer a conversation the AI handed over (default 15). Past it, the case's owner (`assigneeId`), or the team's recipients while nobody has it, is reminded once; at four times that, the organization's owners and its `productNotices.administrators` hear that it is overdue. Each wait is announced once: a contact who writes again after the team answered starts another. With a digest `frequency`, the conversation is listed again in the next digest instead. `0`: no reminders.",
|
|
212226
|
+
maximum: 1440,
|
|
212227
|
+
minimum: 0
|
|
212228
|
+
},
|
|
211353
212229
|
frequency: {
|
|
211354
212230
|
anyOf: [
|
|
211355
212231
|
{
|
|
@@ -212682,6 +213558,142 @@ var schemaComponents = {
|
|
|
212682
213558
|
},
|
|
212683
213559
|
additionalProperties: false
|
|
212684
213560
|
},
|
|
213561
|
+
{
|
|
213562
|
+
type: "object",
|
|
213563
|
+
required: [
|
|
213564
|
+
"from",
|
|
213565
|
+
"hasMore",
|
|
213566
|
+
"to",
|
|
213567
|
+
"name",
|
|
213568
|
+
"rows"
|
|
213569
|
+
],
|
|
213570
|
+
properties: {
|
|
213571
|
+
from: {
|
|
213572
|
+
type: "string",
|
|
213573
|
+
description: "A calendar day in the organization's time zone.",
|
|
213574
|
+
format: "date"
|
|
213575
|
+
},
|
|
213576
|
+
hasMore: {
|
|
213577
|
+
type: "boolean",
|
|
213578
|
+
description: "More than 1000 rows matched: narrow the range or the filters."
|
|
213579
|
+
},
|
|
213580
|
+
to: {
|
|
213581
|
+
type: "string",
|
|
213582
|
+
description: "A calendar day in the organization's time zone.",
|
|
213583
|
+
format: "date"
|
|
213584
|
+
},
|
|
213585
|
+
name: {
|
|
213586
|
+
type: "string",
|
|
213587
|
+
const: "handoffs_daily"
|
|
213588
|
+
},
|
|
213589
|
+
rows: {
|
|
213590
|
+
type: "array",
|
|
213591
|
+
items: {
|
|
213592
|
+
type: "object",
|
|
213593
|
+
required: [
|
|
213594
|
+
"agentId",
|
|
213595
|
+
"agentName",
|
|
213596
|
+
"answeredCount",
|
|
213597
|
+
"answeredInTimeCount",
|
|
213598
|
+
"avgFirstReplySeconds",
|
|
213599
|
+
"day",
|
|
213600
|
+
"handoffCount",
|
|
213601
|
+
"memberId",
|
|
213602
|
+
"returnedCount",
|
|
213603
|
+
"unattendedCount",
|
|
213604
|
+
"waitingCount"
|
|
213605
|
+
],
|
|
213606
|
+
properties: {
|
|
213607
|
+
agentId: {
|
|
213608
|
+
anyOf: [
|
|
213609
|
+
{
|
|
213610
|
+
type: "string",
|
|
213611
|
+
description: "Agent id.",
|
|
213612
|
+
examples: [
|
|
213613
|
+
"agt_01m45h8q2rf3t9w6y7z0b1c2d3"
|
|
213614
|
+
],
|
|
213615
|
+
pattern: "^agt_(?:[0-7][0-9a-hjkmnp-tv-z]{25}|(?:[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}|[a-f0-9]{32}))$"
|
|
213616
|
+
},
|
|
213617
|
+
{
|
|
213618
|
+
type: "null"
|
|
213619
|
+
}
|
|
213620
|
+
]
|
|
213621
|
+
},
|
|
213622
|
+
agentName: {
|
|
213623
|
+
anyOf: [
|
|
213624
|
+
{
|
|
213625
|
+
type: "string"
|
|
213626
|
+
},
|
|
213627
|
+
{
|
|
213628
|
+
type: "null"
|
|
213629
|
+
}
|
|
213630
|
+
]
|
|
213631
|
+
},
|
|
213632
|
+
answeredCount: {
|
|
213633
|
+
type: "integer",
|
|
213634
|
+
description: "Handoffs a person of the team answered.",
|
|
213635
|
+
minimum: 0
|
|
213636
|
+
},
|
|
213637
|
+
answeredInTimeCount: {
|
|
213638
|
+
type: "integer",
|
|
213639
|
+
description: "Of those, the ones answered within the organization's first-reply time (`settings.notifications.firstReplyMinutes`, as it is set now).",
|
|
213640
|
+
minimum: 0
|
|
213641
|
+
},
|
|
213642
|
+
avgFirstReplySeconds: {
|
|
213643
|
+
anyOf: [
|
|
213644
|
+
{
|
|
213645
|
+
type: "number",
|
|
213646
|
+
description: "Average seconds from the handoff to the first message of a person of the team; null when none was answered."
|
|
213647
|
+
},
|
|
213648
|
+
{
|
|
213649
|
+
type: "null"
|
|
213650
|
+
}
|
|
213651
|
+
]
|
|
213652
|
+
},
|
|
213653
|
+
day: {
|
|
213654
|
+
type: "string",
|
|
213655
|
+
description: "A calendar day in the organization's time zone.",
|
|
213656
|
+
format: "date"
|
|
213657
|
+
},
|
|
213658
|
+
handoffCount: {
|
|
213659
|
+
type: "integer",
|
|
213660
|
+
description: "Conversations the AI handed to the team that day, each once, by the handoff it keeps (its last).",
|
|
213661
|
+
minimum: 0
|
|
213662
|
+
},
|
|
213663
|
+
memberId: {
|
|
213664
|
+
anyOf: [
|
|
213665
|
+
{
|
|
213666
|
+
type: "string",
|
|
213667
|
+
description: "Who answered first, else the case's owner: a member id, as Arbol Account lists it. Null when nobody is named: nobody answered an unassigned case, or the answer came from the WhatsApp Business app."
|
|
213668
|
+
},
|
|
213669
|
+
{
|
|
213670
|
+
type: "null"
|
|
213671
|
+
}
|
|
213672
|
+
]
|
|
213673
|
+
},
|
|
213674
|
+
returnedCount: {
|
|
213675
|
+
type: "integer",
|
|
213676
|
+
description: "Handoffs the team gave back to the AI.",
|
|
213677
|
+
minimum: 0
|
|
213678
|
+
},
|
|
213679
|
+
unattendedCount: {
|
|
213680
|
+
type: "integer",
|
|
213681
|
+
description: "Handoffs that closed with nobody of the team answering and without going back to the AI.",
|
|
213682
|
+
minimum: 0
|
|
213683
|
+
},
|
|
213684
|
+
waitingCount: {
|
|
213685
|
+
type: "integer",
|
|
213686
|
+
description: "Handoffs still open that nobody of the team answered.",
|
|
213687
|
+
minimum: 0
|
|
213688
|
+
}
|
|
213689
|
+
},
|
|
213690
|
+
additionalProperties: false
|
|
213691
|
+
},
|
|
213692
|
+
maxItems: 1000
|
|
213693
|
+
}
|
|
213694
|
+
},
|
|
213695
|
+
additionalProperties: false
|
|
213696
|
+
},
|
|
212685
213697
|
{
|
|
212686
213698
|
type: "object",
|
|
212687
213699
|
required: [
|
|
@@ -215405,6 +216417,40 @@ var schemaComponents = {
|
|
|
215405
216417
|
}
|
|
215406
216418
|
}
|
|
215407
216419
|
},
|
|
216420
|
+
RaizTeamUnavailableFailure: {
|
|
216421
|
+
type: "object",
|
|
216422
|
+
description: "The organization's team cannot be read right now. Try again shortly.",
|
|
216423
|
+
additionalProperties: false,
|
|
216424
|
+
required: [
|
|
216425
|
+
"code",
|
|
216426
|
+
"message",
|
|
216427
|
+
"retryable",
|
|
216428
|
+
"data"
|
|
216429
|
+
],
|
|
216430
|
+
properties: {
|
|
216431
|
+
code: {
|
|
216432
|
+
type: "string",
|
|
216433
|
+
enum: [
|
|
216434
|
+
"TEAM_UNAVAILABLE"
|
|
216435
|
+
],
|
|
216436
|
+
description: "The failure code, stable across releases."
|
|
216437
|
+
},
|
|
216438
|
+
message: {
|
|
216439
|
+
type: "string",
|
|
216440
|
+
description: "What went wrong, for people; it never contains input values."
|
|
216441
|
+
},
|
|
216442
|
+
retryable: {
|
|
216443
|
+
type: "boolean",
|
|
216444
|
+
enum: [
|
|
216445
|
+
true
|
|
216446
|
+
],
|
|
216447
|
+
description: "Whether repeating the same request may succeed."
|
|
216448
|
+
},
|
|
216449
|
+
data: {
|
|
216450
|
+
$ref: "#/components/schemas/Empty"
|
|
216451
|
+
}
|
|
216452
|
+
}
|
|
216453
|
+
},
|
|
215408
216454
|
RaizTemplate: {
|
|
215409
216455
|
type: "object",
|
|
215410
216456
|
required: [
|
|
@@ -217552,6 +218598,9 @@ var schemaComponents = {
|
|
|
217552
218598
|
{
|
|
217553
218599
|
$ref: "#/components/schemas/UpstreamUnavailableFailure"
|
|
217554
218600
|
},
|
|
218601
|
+
{
|
|
218602
|
+
$ref: "#/components/schemas/RaizTeamUnavailableFailure"
|
|
218603
|
+
},
|
|
217555
218604
|
{
|
|
217556
218605
|
$ref: "#/components/schemas/RaizCampaignHeaderNotStoredFailure"
|
|
217557
218606
|
},
|
|
@@ -217569,6 +218618,7 @@ var schemaComponents = {
|
|
|
217569
218618
|
propertyName: "code",
|
|
217570
218619
|
mapping: {
|
|
217571
218620
|
UPSTREAM_UNAVAILABLE: "#/components/schemas/UpstreamUnavailableFailure",
|
|
218621
|
+
TEAM_UNAVAILABLE: "#/components/schemas/RaizTeamUnavailableFailure",
|
|
217572
218622
|
CAMPAIGN_HEADER_NOT_STORED: "#/components/schemas/RaizCampaignHeaderNotStoredFailure",
|
|
217573
218623
|
VOICE_UNAVAILABLE: "#/components/schemas/RaizVoiceUnavailableFailure",
|
|
217574
218624
|
FEEDBACK_PROPOSAL_UNAVAILABLE: "#/components/schemas/RaizFeedbackProposalUnavailableFailure",
|
|
@@ -217659,6 +218709,9 @@ var schemaComponents = {
|
|
|
217659
218709
|
},
|
|
217660
218710
|
RaizUpdateChannelUnprocessableContentFailure: {
|
|
217661
218711
|
oneOf: [
|
|
218712
|
+
{
|
|
218713
|
+
$ref: "#/components/schemas/RaizAssigneeUnavailableFailure"
|
|
218714
|
+
},
|
|
217662
218715
|
{
|
|
217663
218716
|
$ref: "#/components/schemas/RaizContactUnreachableFailure"
|
|
217664
218717
|
},
|
|
@@ -217771,6 +218824,7 @@ var schemaComponents = {
|
|
|
217771
218824
|
discriminator: {
|
|
217772
218825
|
propertyName: "code",
|
|
217773
218826
|
mapping: {
|
|
218827
|
+
ASSIGNEE_UNAVAILABLE: "#/components/schemas/RaizAssigneeUnavailableFailure",
|
|
217774
218828
|
CONTACT_UNREACHABLE: "#/components/schemas/RaizContactUnreachableFailure",
|
|
217775
218829
|
DAILY_REPORT_RECIPIENTS_MISSING: "#/components/schemas/RaizDailyReportRecipientsMissingFailure",
|
|
217776
218830
|
DEFINITION_OPTIONS_INVALID: "#/components/schemas/RaizDefinitionOptionsInvalidFailure",
|
|
@@ -218088,6 +219142,19 @@ var schemaComponents = {
|
|
|
218088
219142
|
type: "boolean",
|
|
218089
219143
|
description: "WhatsApp only: pause or resume automatic replies for this recipient until their open conversation closes. Resuming answers what the contact wrote in this conversation after the last real answer."
|
|
218090
219144
|
},
|
|
219145
|
+
assigneeId: {
|
|
219146
|
+
anyOf: [
|
|
219147
|
+
{
|
|
219148
|
+
type: "string",
|
|
219149
|
+
description: "Give the case to a person of the organization, by their member id as Arbol Account lists it (`listAssignees` names the people who can take one); `me` takes it for the person calling; `null` leaves it with nobody. Its new owner is told by email. History keeps who had it and who passed it on.",
|
|
219150
|
+
maxLength: 255,
|
|
219151
|
+
minLength: 1
|
|
219152
|
+
},
|
|
219153
|
+
{
|
|
219154
|
+
type: "null"
|
|
219155
|
+
}
|
|
219156
|
+
]
|
|
219157
|
+
},
|
|
218091
219158
|
contactId: {
|
|
218092
219159
|
anyOf: [
|
|
218093
219160
|
{
|
|
@@ -218261,6 +219328,9 @@ var schemaComponents = {
|
|
|
218261
219328
|
{
|
|
218262
219329
|
$ref: "#/components/schemas/UpstreamUnavailableFailure"
|
|
218263
219330
|
},
|
|
219331
|
+
{
|
|
219332
|
+
$ref: "#/components/schemas/RaizTeamUnavailableFailure"
|
|
219333
|
+
},
|
|
218264
219334
|
{
|
|
218265
219335
|
$ref: "#/components/schemas/RaizIntegrationsUnavailableFailure"
|
|
218266
219336
|
}
|
|
@@ -218269,6 +219339,7 @@ var schemaComponents = {
|
|
|
218269
219339
|
propertyName: "code",
|
|
218270
219340
|
mapping: {
|
|
218271
219341
|
UPSTREAM_UNAVAILABLE: "#/components/schemas/UpstreamUnavailableFailure",
|
|
219342
|
+
TEAM_UNAVAILABLE: "#/components/schemas/RaizTeamUnavailableFailure",
|
|
218272
219343
|
INTEGRATIONS_UNAVAILABLE: "#/components/schemas/RaizIntegrationsUnavailableFailure"
|
|
218273
219344
|
}
|
|
218274
219345
|
}
|
|
@@ -219249,6 +220320,19 @@ var schemaComponents = {
|
|
|
219249
220320
|
}
|
|
219250
220321
|
]
|
|
219251
220322
|
},
|
|
220323
|
+
firstReplyMinutes: {
|
|
220324
|
+
anyOf: [
|
|
220325
|
+
{
|
|
220326
|
+
type: "integer",
|
|
220327
|
+
description: "Within how many minutes a person of the team should answer a conversation the AI handed over (default 15). Past it, the case's owner (`assigneeId`), or the team's recipients while nobody has it, is reminded once; at four times that, the organization's owners and its `productNotices.administrators` hear that it is overdue. Each wait is announced once: a contact who writes again after the team answered starts another. With a digest `frequency`, the conversation is listed again in the next digest instead. `0`: no reminders.",
|
|
220328
|
+
maximum: 1440,
|
|
220329
|
+
minimum: 0
|
|
220330
|
+
},
|
|
220331
|
+
{
|
|
220332
|
+
type: "null"
|
|
220333
|
+
}
|
|
220334
|
+
]
|
|
220335
|
+
},
|
|
219252
220336
|
frequency: {
|
|
219253
220337
|
anyOf: [
|
|
219254
220338
|
{
|
|
@@ -251163,6 +252247,33 @@ var schemaComponents = {
|
|
|
251163
252247
|
],
|
|
251164
252248
|
description: "Who works the conversation now. `ai`: calls and web chats, open WhatsApp conversations the AI answers (assigned to it and not paused), and closed ones the AI answered. `team`: open WhatsApp conversations the organization's people answer (not assigned to the AI, or paused) and closed ones they answered. Unlike `handling`, a conversation the AI answered and then handed to people is `team` while open."
|
|
251165
252249
|
},
|
|
252250
|
+
waitingOn: {
|
|
252251
|
+
anyOf: [
|
|
252252
|
+
{
|
|
252253
|
+
type: "string",
|
|
252254
|
+
const: "ai"
|
|
252255
|
+
},
|
|
252256
|
+
{
|
|
252257
|
+
type: "string",
|
|
252258
|
+
const: "team"
|
|
252259
|
+
},
|
|
252260
|
+
{
|
|
252261
|
+
type: "string",
|
|
252262
|
+
const: "contact"
|
|
252263
|
+
}
|
|
252264
|
+
],
|
|
252265
|
+
description: "Open conversations by who they wait for, as each conversation's `waitingOn` says: `ai`, `team` (the team's cases to answer) or `contact`. Closed conversations never match."
|
|
252266
|
+
},
|
|
252267
|
+
assignee: {
|
|
252268
|
+
type: "string",
|
|
252269
|
+
description: "Conversations by the case's owner: a member id, `me` (the person calling) or `none` (nobody has it). With `waitingOn=team`: one person's cases to answer, or the ones nobody took.",
|
|
252270
|
+
maxLength: 255,
|
|
252271
|
+
minLength: 1
|
|
252272
|
+
},
|
|
252273
|
+
unattended: {
|
|
252274
|
+
type: "boolean",
|
|
252275
|
+
description: "`true`: conversations that closed for inactivity with a handoff nobody of the team answered."
|
|
252276
|
+
},
|
|
251166
252277
|
origin: {
|
|
251167
252278
|
type: "string",
|
|
251168
252279
|
description: "Comma-separated origins.",
|
|
@@ -251357,11 +252468,11 @@ var schemaComponents = {
|
|
|
251357
252468
|
},
|
|
251358
252469
|
expand: {
|
|
251359
252470
|
type: "string",
|
|
251360
|
-
description: "Related data to include, comma-separated: `messages`, `recording`, `diagnostics`.",
|
|
252471
|
+
description: "Related data to include, comma-separated: `messages`, `recording`, `diagnostics`, `history`.",
|
|
251361
252472
|
examples: [
|
|
251362
|
-
"messages,recording,diagnostics"
|
|
252473
|
+
"messages,recording,diagnostics,history"
|
|
251363
252474
|
],
|
|
251364
|
-
pattern: "^(messages|recording|diagnostics)(,(messages|recording|diagnostics))*$"
|
|
252475
|
+
pattern: "^(messages|recording|diagnostics|history)(,(messages|recording|diagnostics|history))*$"
|
|
251365
252476
|
},
|
|
251366
252477
|
messagesCursor: {
|
|
251367
252478
|
type: "string",
|
|
@@ -251409,6 +252520,19 @@ var schemaComponents = {
|
|
|
251409
252520
|
type: "boolean",
|
|
251410
252521
|
description: "WhatsApp only: pause or resume automatic replies for this recipient until their open conversation closes. Resuming answers what the contact wrote in this conversation after the last real answer."
|
|
251411
252522
|
},
|
|
252523
|
+
assigneeId: {
|
|
252524
|
+
anyOf: [
|
|
252525
|
+
{
|
|
252526
|
+
type: "string",
|
|
252527
|
+
description: "Give the case to a person of the organization, by their member id as Arbol Account lists it (`listAssignees` names the people who can take one); `me` takes it for the person calling; `null` leaves it with nobody. Its new owner is told by email. History keeps who had it and who passed it on.",
|
|
252528
|
+
maxLength: 255,
|
|
252529
|
+
minLength: 1
|
|
252530
|
+
},
|
|
252531
|
+
{
|
|
252532
|
+
type: "null"
|
|
252533
|
+
}
|
|
252534
|
+
]
|
|
252535
|
+
},
|
|
251412
252536
|
contactId: {
|
|
251413
252537
|
anyOf: [
|
|
251414
252538
|
{
|
|
@@ -251841,6 +252965,33 @@ var schemaComponents = {
|
|
|
251841
252965
|
],
|
|
251842
252966
|
description: "Who works the conversation now. `ai`: calls and web chats, open WhatsApp conversations the AI answers (assigned to it and not paused), and closed ones the AI answered. `team`: open WhatsApp conversations the organization's people answer (not assigned to the AI, or paused) and closed ones they answered. Unlike `handling`, a conversation the AI answered and then handed to people is `team` while open."
|
|
251843
252967
|
},
|
|
252968
|
+
waitingOn: {
|
|
252969
|
+
anyOf: [
|
|
252970
|
+
{
|
|
252971
|
+
type: "string",
|
|
252972
|
+
const: "ai"
|
|
252973
|
+
},
|
|
252974
|
+
{
|
|
252975
|
+
type: "string",
|
|
252976
|
+
const: "team"
|
|
252977
|
+
},
|
|
252978
|
+
{
|
|
252979
|
+
type: "string",
|
|
252980
|
+
const: "contact"
|
|
252981
|
+
}
|
|
252982
|
+
],
|
|
252983
|
+
description: "Open conversations by who they wait for, as each conversation's `waitingOn` says: `ai`, `team` (the team's cases to answer) or `contact`. Closed conversations never match."
|
|
252984
|
+
},
|
|
252985
|
+
assignee: {
|
|
252986
|
+
type: "string",
|
|
252987
|
+
description: "Conversations by the case's owner: a member id, `me` (the person calling) or `none` (nobody has it). With `waitingOn=team`: one person's cases to answer, or the ones nobody took.",
|
|
252988
|
+
maxLength: 255,
|
|
252989
|
+
minLength: 1
|
|
252990
|
+
},
|
|
252991
|
+
unattended: {
|
|
252992
|
+
type: "boolean",
|
|
252993
|
+
description: "`true`: conversations that closed for inactivity with a handoff nobody of the team answered."
|
|
252994
|
+
},
|
|
251844
252995
|
origin: {
|
|
251845
252996
|
type: "string",
|
|
251846
252997
|
description: "Comma-separated origins.",
|
|
@@ -252003,8 +253154,8 @@ var schemaComponents = {
|
|
|
252003
253154
|
},
|
|
252004
253155
|
groupBy: {
|
|
252005
253156
|
type: "string",
|
|
252006
|
-
description: "`outcome`, `status`, `channel` (type), `agent`, `sentiment`, `tool` (each Agent tool and the conversations that used it; null for those that used none), `toolError` (failed calls, of `toolName` when given, by error) or `fact:<definition key>` (the current value of that definition, such as the reason for contact).",
|
|
252007
|
-
pattern: "^(outcome|status|channel|agent|sentiment|tool|toolError|fact:[a-z][a-z0-9_]{0,63})$"
|
|
253157
|
+
description: "`outcome`, `status`, `channel` (type), `agent`, `sentiment`, `waitingOn` (who each open conversation waits for: `ai`, `team` or `contact`; null for the closed ones), `tool` (each Agent tool and the conversations that used it; null for those that used none), `toolError` (failed calls, of `toolName` when given, by error) or `fact:<definition key>` (the current value of that definition, such as the reason for contact).",
|
|
253158
|
+
pattern: "^(outcome|status|channel|agent|sentiment|waitingOn|tool|toolError|fact:[a-z][a-z0-9_]{0,63})$"
|
|
252008
253159
|
}
|
|
252009
253160
|
},
|
|
252010
253161
|
additionalProperties: false
|
|
@@ -253509,6 +254660,19 @@ var schemaComponents = {
|
|
|
253509
254660
|
}
|
|
253510
254661
|
]
|
|
253511
254662
|
},
|
|
254663
|
+
firstReplyMinutes: {
|
|
254664
|
+
anyOf: [
|
|
254665
|
+
{
|
|
254666
|
+
type: "integer",
|
|
254667
|
+
description: "Within how many minutes a person of the team should answer a conversation the AI handed over (default 15). Past it, the case's owner (`assigneeId`), or the team's recipients while nobody has it, is reminded once; at four times that, the organization's owners and its `productNotices.administrators` hear that it is overdue. Each wait is announced once: a contact who writes again after the team answered starts another. With a digest `frequency`, the conversation is listed again in the next digest instead. `0`: no reminders.",
|
|
254668
|
+
maximum: 1440,
|
|
254669
|
+
minimum: 0
|
|
254670
|
+
},
|
|
254671
|
+
{
|
|
254672
|
+
type: "null"
|
|
254673
|
+
}
|
|
254674
|
+
]
|
|
254675
|
+
},
|
|
253512
254676
|
frequency: {
|
|
253513
254677
|
anyOf: [
|
|
253514
254678
|
{
|
|
@@ -254066,6 +255230,10 @@ var schemaComponents = {
|
|
|
254066
255230
|
type: "string",
|
|
254067
255231
|
const: "conversations_daily"
|
|
254068
255232
|
},
|
|
255233
|
+
{
|
|
255234
|
+
type: "string",
|
|
255235
|
+
const: "handoffs_daily"
|
|
255236
|
+
},
|
|
254069
255237
|
{
|
|
254070
255238
|
type: "string",
|
|
254071
255239
|
const: "pqrsf_daily"
|
|
@@ -254095,7 +255263,7 @@ var schemaComponents = {
|
|
|
254095
255263
|
const: "campaign_progress"
|
|
254096
255264
|
}
|
|
254097
255265
|
],
|
|
254098
|
-
description: "`conversations_daily`: conversations the AI took part in per day, Agent, channel type and direction, with outcomes and escalations (filters `agentId`, `channelType`). `booking_details`: individual patients and appointments from explicit successful creation receipts, including specialty, paired exams, deduplication, matched patient names and later recorded cancellations; filters agentId and specialty; requires conversation read/write permission too. Historical receipts with created=true, not current provider status or all provider protocols. unverifiedCount covers explicit creations missing a stable patient/slot. `booking_outcomes`: verified saved booking receipts per completion day, Agent and integration, excluding test/import/deleted conversations; confirmed new bookings, reschedules, cancellations, failed, pending, unverified and duplicate receipts separately (filter `agentId`). Historical evidence, not current appointment status; hasMore requires splitting the range and returns no partial totals. `tool_calls_daily`: tool calls per day, Agent and tool with failures/durations (filter `agentId`). `tool_calls`: individual calls, never inputs/outputs (filter `agentId`). `assessment_results_daily`: assessments per day/definition (filter `definitionId`). `pqrsf_daily`: classification, confirmed resolution and referral-link counts from the pqrsf_* definitions, including pending/unclassified conversations, excluding tests/imports/deleted records (filters `agentId`, `channelType`); no measured filing reduction is inferred. `campaign_progress`: recipients by status (filter `campaignId`; no dates)."
|
|
255266
|
+
description: "`conversations_daily`: conversations the AI took part in per day, Agent, channel type and direction, with outcomes and escalations (filters `agentId`, `channelType`). `handoffs_daily`: the conversations the AI handed to the team, per day of the handoff, Agent and person (who answered first, else the case's owner), with how many were answered, answered in time, still waiting, closed unattended or returned to the AI, and the average seconds to the first answer (filter `agentId`). `booking_details`: individual patients and appointments from explicit successful creation receipts, including specialty, paired exams, deduplication, matched patient names and later recorded cancellations; filters agentId and specialty; requires conversation read/write permission too. Historical receipts with created=true, not current provider status or all provider protocols. unverifiedCount covers explicit creations missing a stable patient/slot. `booking_outcomes`: verified saved booking receipts per completion day, Agent and integration, excluding test/import/deleted conversations; confirmed new bookings, reschedules, cancellations, failed, pending, unverified and duplicate receipts separately (filter `agentId`). Historical evidence, not current appointment status; hasMore requires splitting the range and returns no partial totals. `tool_calls_daily`: tool calls per day, Agent and tool with failures/durations (filter `agentId`). `tool_calls`: individual calls, never inputs/outputs (filter `agentId`). `assessment_results_daily`: assessments per day/definition (filter `definitionId`). `pqrsf_daily`: classification, confirmed resolution and referral-link counts from the pqrsf_* definitions, including pending/unclassified conversations, excluding tests/imports/deleted records (filters `agentId`, `channelType`); no measured filing reduction is inferred. `campaign_progress`: recipients by status (filter `campaignId`; no dates)."
|
|
254099
255267
|
},
|
|
254100
255268
|
to: {
|
|
254101
255269
|
type: "string",
|
|
@@ -258165,9 +259333,9 @@ var schemaComponents = {
|
|
|
258165
259333
|
// src/generated/generation.json
|
|
258166
259334
|
var generation_default = {
|
|
258167
259335
|
formatVersion: 6,
|
|
258168
|
-
release: "1.
|
|
258169
|
-
openapiSha256: "
|
|
258170
|
-
openapiContentSha256: "
|
|
259336
|
+
release: "1.20261114.55927",
|
|
259337
|
+
openapiSha256: "1abdad9c23520e8ef4da837215c0baf0801aeaea7f8d887e9d4111bbaab29a83",
|
|
259338
|
+
openapiContentSha256: "462eea12036d37178570a5523a10281d5389066b5910e996572d5e3a70f1de66",
|
|
258171
259339
|
forge: {
|
|
258172
259340
|
repository: "https://github.com/cloudflare/forge",
|
|
258173
259341
|
commit: "7f86447210b7bea3779bfdab3cd5655eade0eadb",
|
|
@@ -258180,7 +259348,7 @@ var generation_default = {
|
|
|
258180
259348
|
outputs: [
|
|
258181
259349
|
{
|
|
258182
259350
|
path: "src/generated/commands.ts",
|
|
258183
|
-
sha256: "
|
|
259351
|
+
sha256: "944435e94f4d505828b6be56adb7edd042efb8af82f5253c8ce188b133b23352"
|
|
258184
259352
|
}
|
|
258185
259353
|
]
|
|
258186
259354
|
};
|
|
@@ -259780,7 +260948,7 @@ ${name}`);
|
|
|
259780
260948
|
}
|
|
259781
260949
|
|
|
259782
260950
|
// src/index.ts
|
|
259783
|
-
var VERSION = "3.
|
|
260951
|
+
var VERSION = "3.59.0";
|
|
259784
260952
|
var RELEASE = generation_default.release;
|
|
259785
260953
|
var commands2 = { ...commands, ...accountOperatorCommands };
|
|
259786
260954
|
var SDK_PATHS = new Map(Object.values(commands2).map((command) => [command.operation, command.sdkPath]));
|