@arbol-ai/cli 3.45.0 → 3.47.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 +773 -83
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -17179,6 +17179,17 @@ var commands = {
|
|
|
17179
17179
|
}
|
|
17180
17180
|
]
|
|
17181
17181
|
},
|
|
17182
|
+
workflow: {
|
|
17183
|
+
anyOf: [
|
|
17184
|
+
{
|
|
17185
|
+
$ref: "#/components/schemas/RaizAgentWorkflow"
|
|
17186
|
+
},
|
|
17187
|
+
{
|
|
17188
|
+
type: "null"
|
|
17189
|
+
}
|
|
17190
|
+
],
|
|
17191
|
+
description: "The conversation graph the Agent follows beside its instructions and procedures: conversation steps, tool steps and endings, with no loops and a way forward from every step. A tool step needs one of the Agent's integration tools that only reads and that exactly one connection holds. It runs by itself, with the step's constant arguments and without the model choosing them, and follows its success or failure edge; on a call, a step that cannot run follows its failure edge. Checked against the Agent as it will be once saved (AGENT_WORKFLOW_INVALID says where one is wrong), also when an update changes the Agent's tools. In an update, omit it to keep the current one and send `null` to remove it."
|
|
17192
|
+
},
|
|
17182
17193
|
modality: {
|
|
17183
17194
|
anyOf: [
|
|
17184
17195
|
{
|
|
@@ -17201,7 +17212,7 @@ var commands = {
|
|
|
17201
17212
|
additionalProperties: false
|
|
17202
17213
|
},
|
|
17203
17214
|
title: "Create an Agent",
|
|
17204
|
-
description: "Create an Agent that talks to the organization's contacts. Choose `modality` (`voice`: phone calls; `text`: WhatsApp and web chat) and a `name`; then give it `instructions` (role, goal, limits), and optionally a `firstMessage`, `language`, `timeZone`, `settings`, Knowledge (`knowledgeDocumentIds` of ready documents from `list_knowledge_documents`) and `integrationTools` (connection + tool pairs of the organization's connections in Account, checked live: INTEGRATION_TOOL_UNAVAILABLE), `procedures` (each a trigger plus free-form Markdown or structured steps, with inline references to the Agent's tools, Knowledge and other procedures: AGENT_PROCEDURES_INVALID says where one is wrong), and for a text Agent `integrationProcedures` (connection + procedure pairs a connection publishes, checked live: INTEGRATION_PROCEDURE_UNAVAILABLE). Next: assign it to a channel with `update_channel`; a voice Agent is published in the background, so check `synced` with `get_agent`. Read the `create-agent` skill (`get_skill`) first.",
|
|
17215
|
+
description: "Create an Agent that talks to the organization's contacts. Choose `modality` (`voice`: phone calls; `text`: WhatsApp and web chat) and a `name`; then give it `instructions` (role, goal, limits), and optionally a `firstMessage`, `language`, `timeZone`, `settings`, Knowledge (`knowledgeDocumentIds` of ready documents from `list_knowledge_documents`) and `integrationTools` (connection + tool pairs of the organization's connections in Account, checked live: INTEGRATION_TOOL_UNAVAILABLE), `procedures` (each a trigger plus free-form Markdown or structured steps, with inline references to the Agent's tools, Knowledge and other procedures: AGENT_PROCEDURES_INVALID says where one is wrong), `workflow` (a conversation graph of steps and edges: AGENT_WORKFLOW_INVALID says where one is wrong), and for a text Agent `integrationProcedures` (connection + procedure pairs a connection publishes, checked live: INTEGRATION_PROCEDURE_UNAVAILABLE). Next: assign it to a channel with `update_channel`; a voice Agent is published in the background, so check `synced` with `get_agent`. Read the `create-agent` skill (`get_skill`) first.",
|
|
17205
17216
|
effect: "write",
|
|
17206
17217
|
confirmation: null,
|
|
17207
17218
|
hidden: false
|
|
@@ -17233,7 +17244,7 @@ var commands = {
|
|
|
17233
17244
|
additionalProperties: false
|
|
17234
17245
|
},
|
|
17235
17246
|
title: "Get an Agent",
|
|
17236
|
-
description: "Read one Agent's complete setup: instructions, first message, language, time zone, settings, integration tools (each with its connection and effect), Knowledge document ids, procedures (trigger plus free-form instructions or structured steps) and connection procedures, and channels. `ready` says whether it can hold conversations; for a voice Agent, `synced` says whether its phone line already runs this version, and `syncErrorCode` why not. Read it before `update_agent` and send its `version` as `expectedVersion`.",
|
|
17247
|
+
description: "Read one Agent's complete setup: instructions, first message, language, time zone, settings, integration tools (each with its connection and effect), Knowledge document ids, procedures (trigger plus free-form instructions or structured steps) and connection procedures, its workflow (a conversation graph, or null) and channels. `ready` says whether it can hold conversations; for a voice Agent, `synced` says whether its phone line already runs this version, and `syncErrorCode` why not. Read it before `update_agent` and send its `version` as `expectedVersion`.",
|
|
17237
17248
|
effect: "read",
|
|
17238
17249
|
confirmation: null,
|
|
17239
17250
|
hidden: false
|
|
@@ -17590,6 +17601,17 @@ var commands = {
|
|
|
17590
17601
|
}
|
|
17591
17602
|
]
|
|
17592
17603
|
},
|
|
17604
|
+
workflow: {
|
|
17605
|
+
anyOf: [
|
|
17606
|
+
{
|
|
17607
|
+
$ref: "#/components/schemas/RaizAgentWorkflow"
|
|
17608
|
+
},
|
|
17609
|
+
{
|
|
17610
|
+
type: "null"
|
|
17611
|
+
}
|
|
17612
|
+
],
|
|
17613
|
+
description: "The conversation graph the Agent follows beside its instructions and procedures: conversation steps, tool steps and endings, with no loops and a way forward from every step. A tool step needs one of the Agent's integration tools that only reads and that exactly one connection holds. It runs by itself, with the step's constant arguments and without the model choosing them, and follows its success or failure edge; on a call, a step that cannot run follows its failure edge. Checked against the Agent as it will be once saved (AGENT_WORKFLOW_INVALID says where one is wrong), also when an update changes the Agent's tools. In an update, omit it to keep the current one and send `null` to remove it."
|
|
17614
|
+
},
|
|
17593
17615
|
evalRunId: {
|
|
17594
17616
|
type: "string",
|
|
17595
17617
|
description: "With the Agent's `settings.evalGate`: the completed evaluation run (`createEvalRun`) of exactly the content this update leaves the model reading, in which every case passed.",
|
|
@@ -17633,7 +17655,7 @@ var commands = {
|
|
|
17633
17655
|
additionalProperties: false
|
|
17634
17656
|
},
|
|
17635
17657
|
title: "Update an Agent",
|
|
17636
|
-
description: "Change an Agent: instructions, first message, name, language, time zone, settings, integration tools, Knowledge, procedures, connection procedures or status. Omitted fields stay and `null` clears one, also inside `settings`; `integrationTools`, `integrationProcedures`, `procedures` and `
|
|
17658
|
+
description: "Change an Agent: instructions, first message, name, language, time zone, settings, integration tools, Knowledge, procedures, connection procedures, workflow or status. Omitted fields stay and `null` clears one, also inside `settings`; `integrationTools`, `integrationProcedures`, `procedures`, `knowledgeDocumentIds` and `workflow` replace the whole value when given (keep each existing procedure's `id`), so read the Agent with `get_agent` first and send its `version` as `expectedVersion` (VERSION_CONFLICT: read it again). A workflow is checked against the tools the Agent will have (AGENT_WORKFLOW_INVALID). `status: paused` stops it from answering and calling. `modality` changes only while it has no channels and no published voice line (AGENT_MODALITY_LOCKED). A voice Agent republishes in the background: check `synced`.",
|
|
17637
17659
|
effect: "write",
|
|
17638
17660
|
confirmation: null,
|
|
17639
17661
|
hidden: false
|
|
@@ -18409,6 +18431,25 @@ var commands = {
|
|
|
18409
18431
|
required: false,
|
|
18410
18432
|
description: "With `expand=recipients`: `definitionKey=optionKey`, only those whose latest answer is that option; `definitionKey=`, only those with no answer yet."
|
|
18411
18433
|
},
|
|
18434
|
+
{
|
|
18435
|
+
name: "recipientsButton",
|
|
18436
|
+
flag: "recipients-button",
|
|
18437
|
+
kind: "string",
|
|
18438
|
+
required: false,
|
|
18439
|
+
description: "With `expand=recipients`: only those whose last pressed button is this one, by its exact text."
|
|
18440
|
+
},
|
|
18441
|
+
{
|
|
18442
|
+
name: "recipientsReply",
|
|
18443
|
+
flag: "recipients-reply",
|
|
18444
|
+
kind: "string",
|
|
18445
|
+
required: false,
|
|
18446
|
+
description: "With `expand=recipients`, WhatsApp: how the people a message reached answered it. `button`: they pressed one of its buttons. `written`: they wrote and pressed none. `none`: they did neither (`progress.noReply`).",
|
|
18447
|
+
choices: [
|
|
18448
|
+
"button",
|
|
18449
|
+
"written",
|
|
18450
|
+
"none"
|
|
18451
|
+
]
|
|
18452
|
+
},
|
|
18412
18453
|
{
|
|
18413
18454
|
name: "recipientsStatus",
|
|
18414
18455
|
flag: "recipients-status",
|
|
@@ -18480,6 +18521,29 @@ var commands = {
|
|
|
18480
18521
|
description: "With `expand=recipients`: `definitionKey=optionKey`, only those whose latest answer is that option; `definitionKey=`, only those with no answer yet.",
|
|
18481
18522
|
pattern: "^[a-z][a-z0-9_]{0,63}=([a-z][a-z0-9_]{0,63})?$"
|
|
18482
18523
|
},
|
|
18524
|
+
recipientsButton: {
|
|
18525
|
+
type: "string",
|
|
18526
|
+
maxLength: 256,
|
|
18527
|
+
minLength: 1,
|
|
18528
|
+
description: "With `expand=recipients`: only those whose last pressed button is this one, by its exact text."
|
|
18529
|
+
},
|
|
18530
|
+
recipientsReply: {
|
|
18531
|
+
anyOf: [
|
|
18532
|
+
{
|
|
18533
|
+
type: "string",
|
|
18534
|
+
const: "button"
|
|
18535
|
+
},
|
|
18536
|
+
{
|
|
18537
|
+
type: "string",
|
|
18538
|
+
const: "written"
|
|
18539
|
+
},
|
|
18540
|
+
{
|
|
18541
|
+
type: "string",
|
|
18542
|
+
const: "none"
|
|
18543
|
+
}
|
|
18544
|
+
],
|
|
18545
|
+
description: "With `expand=recipients`, WhatsApp: how the people a message reached answered it. `button`: they pressed one of its buttons. `written`: they wrote and pressed none. `none`: they did neither (`progress.noReply`)."
|
|
18546
|
+
},
|
|
18483
18547
|
recipientsStatus: {
|
|
18484
18548
|
anyOf: [
|
|
18485
18549
|
{
|
|
@@ -18702,7 +18766,7 @@ var commands = {
|
|
|
18702
18766
|
]
|
|
18703
18767
|
},
|
|
18704
18768
|
title: "Start a campaign",
|
|
18705
|
-
description: "Start reaching people: from now on the campaign's due recipients are called, at most `settings.channels.maxConcurrentOutboundCalls` (five by default) at once across the organization, or sent their message,
|
|
18769
|
+
description: "Start reaching people: from now on the campaign's due recipients are called, at most `settings.channels.maxConcurrentOutboundCalls` (five by default) at once across the organization, or sent their message, a few a second. A call campaign needs an active, published voice Agent (VOICE_AGENT_NOT_READY). A WhatsApp campaign needs an active text Agent (CAMPAIGN_AGENT_NOT_READY), a line that can send (CHANNEL_NOT_READY), an approved template whose parameters fit (a `TEMPLATE_*` code), a value for every variable (CAMPAIGN_VARIABLE_MISSING) and, when the template's header is a document, image or video, the first pending recipient's own `header` file (CAMPAIGN_HEADER_MISSING). A recipient must be pending (CAMPAIGN_NO_RECIPIENTS). `get_campaign` with `expand=readiness` lists all of this beforehand. A campaign starts once: starting a running one changes nothing, and a paused one resumes with `update_campaign` and `paused: false`. Not an AI tool: it reaches real people.",
|
|
18706
18770
|
effect: "write",
|
|
18707
18771
|
confirmation: null,
|
|
18708
18772
|
hidden: false
|
|
@@ -31066,7 +31130,7 @@ var commands = {
|
|
|
31066
31130
|
additionalProperties: false
|
|
31067
31131
|
},
|
|
31068
31132
|
title: "List assigned appointments",
|
|
31069
|
-
description: "Read assigned appointments for one day at a cost centre, ordered by moment and reference, with the contact phone and the state (`status`) SIIPS records. Never cached. A full upstream page that cannot prove completeness is PROVIDER_UNAVAILABLE; narrow by professionalId rather than treating a partial agenda as complete. This operation changes no appointment and sends no message.",
|
|
31133
|
+
description: "Read assigned appointments for one day at a cost centre, ordered by moment and reference, with the patient's document number, the contact phone and the state (`status`) SIIPS records. Never cached. A full upstream page that cannot prove completeness is PROVIDER_UNAVAILABLE; narrow by professionalId rather than treating a partial agenda as complete. This operation changes no appointment and sends no message.",
|
|
31070
31134
|
effect: "read",
|
|
31071
31135
|
confirmation: null,
|
|
31072
31136
|
hidden: false
|
|
@@ -33350,7 +33414,8 @@ var schemaComponents = {
|
|
|
33350
33414
|
"verifiedAt",
|
|
33351
33415
|
"updatedAt",
|
|
33352
33416
|
"fields",
|
|
33353
|
-
"logins"
|
|
33417
|
+
"logins",
|
|
33418
|
+
"reminders"
|
|
33354
33419
|
],
|
|
33355
33420
|
properties: {
|
|
33356
33421
|
id: {
|
|
@@ -33775,6 +33840,54 @@ var schemaComponents = {
|
|
|
33775
33840
|
},
|
|
33776
33841
|
maxItems: 20,
|
|
33777
33842
|
description: "Staff only; empty for other callers."
|
|
33843
|
+
},
|
|
33844
|
+
reminders: {
|
|
33845
|
+
anyOf: [
|
|
33846
|
+
{
|
|
33847
|
+
type: "object",
|
|
33848
|
+
required: [
|
|
33849
|
+
"mode",
|
|
33850
|
+
"sendAt",
|
|
33851
|
+
"daysBefore"
|
|
33852
|
+
],
|
|
33853
|
+
properties: {
|
|
33854
|
+
mode: {
|
|
33855
|
+
anyOf: [
|
|
33856
|
+
{
|
|
33857
|
+
type: "string",
|
|
33858
|
+
const: "off"
|
|
33859
|
+
},
|
|
33860
|
+
{
|
|
33861
|
+
type: "string",
|
|
33862
|
+
const: "review"
|
|
33863
|
+
},
|
|
33864
|
+
{
|
|
33865
|
+
type: "string",
|
|
33866
|
+
const: "automatic"
|
|
33867
|
+
}
|
|
33868
|
+
],
|
|
33869
|
+
description: "off: nothing is prepared or sent. review: each day the list is prepared as a campaign that has not started, for a person to review and start. automatic: each day the list is prepared and sent by itself at sendAt."
|
|
33870
|
+
},
|
|
33871
|
+
sendAt: {
|
|
33872
|
+
type: "string",
|
|
33873
|
+
pattern: "^(?:(?:0[6-9]|1[0-9]):(?:00|15|30|45)|20:00)$",
|
|
33874
|
+
description: "When the day's reminders go out: HH:MM, 24-hour, in the clinic's local time, every 15 minutes from 06:00 to 20:00. Every day, weekends and holidays included."
|
|
33875
|
+
},
|
|
33876
|
+
daysBefore: {
|
|
33877
|
+
type: "integer",
|
|
33878
|
+
minimum: 1,
|
|
33879
|
+
maximum: 7,
|
|
33880
|
+
description: "On a given day, the appointments this many days ahead are reminded: 1 is the day before."
|
|
33881
|
+
}
|
|
33882
|
+
},
|
|
33883
|
+
additionalProperties: false,
|
|
33884
|
+
description: "Whether, when and how far ahead this connection's appointments are reminded on WhatsApp."
|
|
33885
|
+
},
|
|
33886
|
+
{
|
|
33887
|
+
type: "null"
|
|
33888
|
+
}
|
|
33889
|
+
],
|
|
33890
|
+
description: "Its WhatsApp appointment reminders, or null when its integration cannot feed them. Until someone changes them they are off, at 09:00, the day before."
|
|
33778
33891
|
}
|
|
33779
33892
|
},
|
|
33780
33893
|
additionalProperties: false
|
|
@@ -36084,6 +36197,10 @@ var schemaComponents = {
|
|
|
36084
36197
|
type: "string",
|
|
36085
36198
|
const: "sanitas"
|
|
36086
36199
|
},
|
|
36200
|
+
{
|
|
36201
|
+
type: "string",
|
|
36202
|
+
const: "gmedic"
|
|
36203
|
+
},
|
|
36087
36204
|
{
|
|
36088
36205
|
type: "string",
|
|
36089
36206
|
const: "account"
|
|
@@ -149394,7 +149511,7 @@ var schemaComponents = {
|
|
|
149394
149511
|
opportunityIndicator: {
|
|
149395
149512
|
anyOf: [
|
|
149396
149513
|
{
|
|
149397
|
-
minimum:
|
|
149514
|
+
minimum: -9007199254740991,
|
|
149398
149515
|
maximum: 9007199254740991,
|
|
149399
149516
|
type: "integer"
|
|
149400
149517
|
},
|
|
@@ -149739,24 +149856,9 @@ var schemaComponents = {
|
|
|
149739
149856
|
modality: {
|
|
149740
149857
|
anyOf: [
|
|
149741
149858
|
{
|
|
149742
|
-
|
|
149743
|
-
|
|
149744
|
-
|
|
149745
|
-
type: "string"
|
|
149746
|
-
},
|
|
149747
|
-
{
|
|
149748
|
-
const: "VIRTUAL",
|
|
149749
|
-
type: "string"
|
|
149750
|
-
},
|
|
149751
|
-
{
|
|
149752
|
-
const: "HOME_VISIT",
|
|
149753
|
-
type: "string"
|
|
149754
|
-
},
|
|
149755
|
-
{
|
|
149756
|
-
const: "NOT_APPLICABLE",
|
|
149757
|
-
type: "string"
|
|
149758
|
-
}
|
|
149759
|
-
]
|
|
149859
|
+
maxLength: 20000,
|
|
149860
|
+
description: "How the appointment is attended, as gMedic names it. Known values: FACE_TO_FACE, VIRTUAL, HOME_VISIT and NOT_APPLICABLE; gMedic may answer others, so treat any other value as unknown.",
|
|
149861
|
+
type: "string"
|
|
149760
149862
|
},
|
|
149761
149863
|
{
|
|
149762
149864
|
type: "null"
|
|
@@ -151530,7 +151632,7 @@ var schemaComponents = {
|
|
|
151530
151632
|
opportunityIndicator: {
|
|
151531
151633
|
anyOf: [
|
|
151532
151634
|
{
|
|
151533
|
-
minimum:
|
|
151635
|
+
minimum: -9007199254740991,
|
|
151534
151636
|
maximum: 9007199254740991,
|
|
151535
151637
|
type: "integer"
|
|
151536
151638
|
},
|
|
@@ -151875,24 +151977,9 @@ var schemaComponents = {
|
|
|
151875
151977
|
modality: {
|
|
151876
151978
|
anyOf: [
|
|
151877
151979
|
{
|
|
151878
|
-
|
|
151879
|
-
|
|
151880
|
-
|
|
151881
|
-
type: "string"
|
|
151882
|
-
},
|
|
151883
|
-
{
|
|
151884
|
-
const: "VIRTUAL",
|
|
151885
|
-
type: "string"
|
|
151886
|
-
},
|
|
151887
|
-
{
|
|
151888
|
-
const: "HOME_VISIT",
|
|
151889
|
-
type: "string"
|
|
151890
|
-
},
|
|
151891
|
-
{
|
|
151892
|
-
const: "NOT_APPLICABLE",
|
|
151893
|
-
type: "string"
|
|
151894
|
-
}
|
|
151895
|
-
]
|
|
151980
|
+
maxLength: 20000,
|
|
151981
|
+
description: "How the appointment is attended, as gMedic names it. Known values: FACE_TO_FACE, VIRTUAL, HOME_VISIT and NOT_APPLICABLE; gMedic may answer others, so treat any other value as unknown.",
|
|
151982
|
+
type: "string"
|
|
151896
151983
|
},
|
|
151897
151984
|
{
|
|
151898
151985
|
type: "null"
|
|
@@ -154809,7 +154896,7 @@ var schemaComponents = {
|
|
|
154809
154896
|
availableSessions: {
|
|
154810
154897
|
anyOf: [
|
|
154811
154898
|
{
|
|
154812
|
-
minimum:
|
|
154899
|
+
minimum: -9007199254740991,
|
|
154813
154900
|
maximum: 9007199254740991,
|
|
154814
154901
|
type: "integer"
|
|
154815
154902
|
},
|
|
@@ -161671,7 +161758,7 @@ var schemaComponents = {
|
|
|
161671
161758
|
availableSessions: {
|
|
161672
161759
|
anyOf: [
|
|
161673
161760
|
{
|
|
161674
|
-
minimum:
|
|
161761
|
+
minimum: -9007199254740991,
|
|
161675
161762
|
maximum: 9007199254740991,
|
|
161676
161763
|
type: "integer"
|
|
161677
161764
|
},
|
|
@@ -162204,7 +162291,7 @@ var schemaComponents = {
|
|
|
162204
162291
|
opportunityIndicator: {
|
|
162205
162292
|
anyOf: [
|
|
162206
162293
|
{
|
|
162207
|
-
minimum:
|
|
162294
|
+
minimum: -9007199254740991,
|
|
162208
162295
|
maximum: 9007199254740991,
|
|
162209
162296
|
type: "integer"
|
|
162210
162297
|
},
|
|
@@ -162549,24 +162636,9 @@ var schemaComponents = {
|
|
|
162549
162636
|
modality: {
|
|
162550
162637
|
anyOf: [
|
|
162551
162638
|
{
|
|
162552
|
-
|
|
162553
|
-
|
|
162554
|
-
|
|
162555
|
-
type: "string"
|
|
162556
|
-
},
|
|
162557
|
-
{
|
|
162558
|
-
const: "VIRTUAL",
|
|
162559
|
-
type: "string"
|
|
162560
|
-
},
|
|
162561
|
-
{
|
|
162562
|
-
const: "HOME_VISIT",
|
|
162563
|
-
type: "string"
|
|
162564
|
-
},
|
|
162565
|
-
{
|
|
162566
|
-
const: "NOT_APPLICABLE",
|
|
162567
|
-
type: "string"
|
|
162568
|
-
}
|
|
162569
|
-
]
|
|
162639
|
+
maxLength: 20000,
|
|
162640
|
+
description: "How the appointment is attended, as gMedic names it. Known values: FACE_TO_FACE, VIRTUAL, HOME_VISIT and NOT_APPLICABLE; gMedic may answer others, so treat any other value as unknown.",
|
|
162641
|
+
type: "string"
|
|
162570
162642
|
},
|
|
162571
162643
|
{
|
|
162572
162644
|
type: "null"
|
|
@@ -181262,7 +181334,8 @@ var schemaComponents = {
|
|
|
181262
181334
|
"integrationTools",
|
|
181263
181335
|
"knowledgeDocumentIds",
|
|
181264
181336
|
"procedures",
|
|
181265
|
-
"settings"
|
|
181337
|
+
"settings",
|
|
181338
|
+
"workflow"
|
|
181266
181339
|
],
|
|
181267
181340
|
properties: {
|
|
181268
181341
|
channelCount: {
|
|
@@ -181594,6 +181667,17 @@ var schemaComponents = {
|
|
|
181594
181667
|
},
|
|
181595
181668
|
settings: {
|
|
181596
181669
|
$ref: "#/components/schemas/RaizAgentSettings"
|
|
181670
|
+
},
|
|
181671
|
+
workflow: {
|
|
181672
|
+
anyOf: [
|
|
181673
|
+
{
|
|
181674
|
+
$ref: "#/components/schemas/RaizAgentWorkflow"
|
|
181675
|
+
},
|
|
181676
|
+
{
|
|
181677
|
+
type: "null"
|
|
181678
|
+
}
|
|
181679
|
+
],
|
|
181680
|
+
description: "The conversation graph the Agent follows beside its instructions and procedures, or null for none."
|
|
181597
181681
|
}
|
|
181598
181682
|
},
|
|
181599
181683
|
additionalProperties: false
|
|
@@ -184416,7 +184500,7 @@ var schemaComponents = {
|
|
|
184416
184500
|
anyOf: [
|
|
184417
184501
|
{
|
|
184418
184502
|
type: "boolean",
|
|
184419
|
-
description: "Text and voice Agents. When true, an `updateAgent` that changes what the model reads (instructions, procedures, connection procedures, `model` or `reasoningEffort`) must send `evalRunId`: a completed `createEvalRun` of this Agent with exactly that content, in which every case passed (EVAL_GATE_UNMET otherwise). Null: no requirement."
|
|
184503
|
+
description: "Text and voice Agents. When true, an `updateAgent` that changes what the model reads (instructions, procedures, connection procedures, `model` or `reasoningEffort`) must send `evalRunId`: a completed `createEvalRun` of this Agent with exactly that content, in which every case passed (EVAL_GATE_UNMET otherwise). A change to `workflow` is refused with EVAL_GATE_UNMET while this is true, because evaluation runs do not replay workflows yet. Null: no requirement."
|
|
184420
184504
|
},
|
|
184421
184505
|
{
|
|
184422
184506
|
type: "null"
|
|
@@ -184901,7 +184985,7 @@ var schemaComponents = {
|
|
|
184901
184985
|
anyOf: [
|
|
184902
184986
|
{
|
|
184903
184987
|
type: "boolean",
|
|
184904
|
-
description: "Text and voice Agents. When true, an `updateAgent` that changes what the model reads (instructions, procedures, connection procedures, `model` or `reasoningEffort`) must send `evalRunId`: a completed `createEvalRun` of this Agent with exactly that content, in which every case passed (EVAL_GATE_UNMET otherwise). Null: no requirement."
|
|
184988
|
+
description: "Text and voice Agents. When true, an `updateAgent` that changes what the model reads (instructions, procedures, connection procedures, `model` or `reasoningEffort`) must send `evalRunId`: a completed `createEvalRun` of this Agent with exactly that content, in which every case passed (EVAL_GATE_UNMET otherwise). A change to `workflow` is refused with EVAL_GATE_UNMET while this is true, because evaluation runs do not replay workflows yet. Null: no requirement."
|
|
184905
184989
|
},
|
|
184906
184990
|
{
|
|
184907
184991
|
type: "null"
|
|
@@ -185502,6 +185586,311 @@ var schemaComponents = {
|
|
|
185502
185586
|
},
|
|
185503
185587
|
additionalProperties: false
|
|
185504
185588
|
},
|
|
185589
|
+
RaizAgentWorkflow: {
|
|
185590
|
+
type: "object",
|
|
185591
|
+
required: [
|
|
185592
|
+
"formatVersion",
|
|
185593
|
+
"nodes",
|
|
185594
|
+
"startNodeId"
|
|
185595
|
+
],
|
|
185596
|
+
properties: {
|
|
185597
|
+
formatVersion: {
|
|
185598
|
+
type: "number",
|
|
185599
|
+
const: 1,
|
|
185600
|
+
description: "The format of this document."
|
|
185601
|
+
},
|
|
185602
|
+
nodes: {
|
|
185603
|
+
type: "array",
|
|
185604
|
+
items: {
|
|
185605
|
+
anyOf: [
|
|
185606
|
+
{
|
|
185607
|
+
type: "object",
|
|
185608
|
+
required: [
|
|
185609
|
+
"edges",
|
|
185610
|
+
"id",
|
|
185611
|
+
"instructions",
|
|
185612
|
+
"type"
|
|
185613
|
+
],
|
|
185614
|
+
properties: {
|
|
185615
|
+
edges: {
|
|
185616
|
+
type: "array",
|
|
185617
|
+
items: {
|
|
185618
|
+
type: "object",
|
|
185619
|
+
required: [
|
|
185620
|
+
"condition",
|
|
185621
|
+
"to"
|
|
185622
|
+
],
|
|
185623
|
+
properties: {
|
|
185624
|
+
condition: {
|
|
185625
|
+
anyOf: [
|
|
185626
|
+
{
|
|
185627
|
+
type: "object",
|
|
185628
|
+
required: [
|
|
185629
|
+
"type",
|
|
185630
|
+
"when"
|
|
185631
|
+
],
|
|
185632
|
+
properties: {
|
|
185633
|
+
type: {
|
|
185634
|
+
type: "string",
|
|
185635
|
+
const: "semantic"
|
|
185636
|
+
},
|
|
185637
|
+
when: {
|
|
185638
|
+
type: "string",
|
|
185639
|
+
description: "A condition the Agent judges from the conversation, such as: The contact says the order already shipped.",
|
|
185640
|
+
maxLength: 1000,
|
|
185641
|
+
minLength: 1
|
|
185642
|
+
}
|
|
185643
|
+
},
|
|
185644
|
+
additionalProperties: false
|
|
185645
|
+
},
|
|
185646
|
+
{
|
|
185647
|
+
type: "object",
|
|
185648
|
+
required: [
|
|
185649
|
+
"type"
|
|
185650
|
+
],
|
|
185651
|
+
properties: {
|
|
185652
|
+
type: {
|
|
185653
|
+
type: "string",
|
|
185654
|
+
const: "unconditional"
|
|
185655
|
+
}
|
|
185656
|
+
},
|
|
185657
|
+
additionalProperties: false,
|
|
185658
|
+
description: "Always holds. A conversation node's last edge must be unconditional: its fallback, followed when no earlier condition holds."
|
|
185659
|
+
}
|
|
185660
|
+
]
|
|
185661
|
+
},
|
|
185662
|
+
to: {
|
|
185663
|
+
type: "string",
|
|
185664
|
+
examples: [
|
|
185665
|
+
"collect_details"
|
|
185666
|
+
],
|
|
185667
|
+
pattern: "^[a-z][a-z0-9_-]{0,63}$",
|
|
185668
|
+
description: "The node this edge leads to."
|
|
185669
|
+
}
|
|
185670
|
+
},
|
|
185671
|
+
additionalProperties: false
|
|
185672
|
+
},
|
|
185673
|
+
description: "Where the conversation goes next, tried in order: the first edge whose condition holds is followed. Each leads to a different node, and the last must be unconditional.",
|
|
185674
|
+
maxItems: 9
|
|
185675
|
+
},
|
|
185676
|
+
id: {
|
|
185677
|
+
type: "string",
|
|
185678
|
+
description: "The node's id within this workflow, chosen by its author. Keep it across edits: a conversation's progress refers to it.",
|
|
185679
|
+
examples: [
|
|
185680
|
+
"collect_details"
|
|
185681
|
+
],
|
|
185682
|
+
pattern: "^[a-z][a-z0-9_-]{0,63}$"
|
|
185683
|
+
},
|
|
185684
|
+
instructions: {
|
|
185685
|
+
type: "string",
|
|
185686
|
+
description: "What the Agent does at this step of the conversation.",
|
|
185687
|
+
maxLength: 1e4,
|
|
185688
|
+
minLength: 1
|
|
185689
|
+
},
|
|
185690
|
+
type: {
|
|
185691
|
+
type: "string",
|
|
185692
|
+
const: "converse"
|
|
185693
|
+
}
|
|
185694
|
+
},
|
|
185695
|
+
additionalProperties: false,
|
|
185696
|
+
description: "The Agent talks with the contact under these instructions until one of the node's edges holds."
|
|
185697
|
+
},
|
|
185698
|
+
{
|
|
185699
|
+
type: "object",
|
|
185700
|
+
required: [
|
|
185701
|
+
"arguments",
|
|
185702
|
+
"edges",
|
|
185703
|
+
"id",
|
|
185704
|
+
"tool",
|
|
185705
|
+
"type"
|
|
185706
|
+
],
|
|
185707
|
+
properties: {
|
|
185708
|
+
arguments: {
|
|
185709
|
+
type: "object",
|
|
185710
|
+
patternProperties: {
|
|
185711
|
+
"^[A-Za-z0-9_-]{1,128}$": {
|
|
185712
|
+
description: "Always this value."
|
|
185713
|
+
}
|
|
185714
|
+
},
|
|
185715
|
+
additionalProperties: false,
|
|
185716
|
+
description: "Every parameter the call sends, by name, as constant JSON sent exactly as written: the model chooses none of them, and text such as `{{contact_name}}` is not filled in."
|
|
185717
|
+
},
|
|
185718
|
+
edges: {
|
|
185719
|
+
type: "array",
|
|
185720
|
+
items: {
|
|
185721
|
+
type: "object",
|
|
185722
|
+
required: [
|
|
185723
|
+
"condition",
|
|
185724
|
+
"to"
|
|
185725
|
+
],
|
|
185726
|
+
properties: {
|
|
185727
|
+
condition: {
|
|
185728
|
+
type: "object",
|
|
185729
|
+
required: [
|
|
185730
|
+
"outcome",
|
|
185731
|
+
"type"
|
|
185732
|
+
],
|
|
185733
|
+
properties: {
|
|
185734
|
+
outcome: {
|
|
185735
|
+
anyOf: [
|
|
185736
|
+
{
|
|
185737
|
+
type: "string",
|
|
185738
|
+
const: "success"
|
|
185739
|
+
},
|
|
185740
|
+
{
|
|
185741
|
+
type: "string",
|
|
185742
|
+
const: "failure"
|
|
185743
|
+
}
|
|
185744
|
+
],
|
|
185745
|
+
description: "How the node's tool call ended. A result that reports a failure and a write whose effect is unknown both count as `failure`."
|
|
185746
|
+
},
|
|
185747
|
+
type: {
|
|
185748
|
+
type: "string",
|
|
185749
|
+
const: "result"
|
|
185750
|
+
}
|
|
185751
|
+
},
|
|
185752
|
+
additionalProperties: false
|
|
185753
|
+
},
|
|
185754
|
+
to: {
|
|
185755
|
+
type: "string",
|
|
185756
|
+
examples: [
|
|
185757
|
+
"collect_details"
|
|
185758
|
+
],
|
|
185759
|
+
pattern: "^[a-z][a-z0-9_-]{0,63}$",
|
|
185760
|
+
description: "The node this edge leads to."
|
|
185761
|
+
}
|
|
185762
|
+
},
|
|
185763
|
+
additionalProperties: false
|
|
185764
|
+
},
|
|
185765
|
+
description: "Where the conversation goes after the call: one edge for success and one for failure, to different nodes.",
|
|
185766
|
+
maxItems: 2
|
|
185767
|
+
},
|
|
185768
|
+
id: {
|
|
185769
|
+
type: "string",
|
|
185770
|
+
description: "The node's id within this workflow, chosen by its author. Keep it across edits: a conversation's progress refers to it.",
|
|
185771
|
+
examples: [
|
|
185772
|
+
"collect_details"
|
|
185773
|
+
],
|
|
185774
|
+
pattern: "^[a-z][a-z0-9_-]{0,63}$"
|
|
185775
|
+
},
|
|
185776
|
+
tool: {
|
|
185777
|
+
type: "string",
|
|
185778
|
+
description: "One of the Agent's assigned tools, by its tool name.",
|
|
185779
|
+
pattern: "^[A-Za-z0-9_.-]{1,128}$"
|
|
185780
|
+
},
|
|
185781
|
+
type: {
|
|
185782
|
+
type: "string",
|
|
185783
|
+
const: "tool"
|
|
185784
|
+
}
|
|
185785
|
+
},
|
|
185786
|
+
additionalProperties: false,
|
|
185787
|
+
description: "Runs this tool with these arguments whenever the conversation reaches the node, without asking the model."
|
|
185788
|
+
},
|
|
185789
|
+
{
|
|
185790
|
+
type: "object",
|
|
185791
|
+
required: [
|
|
185792
|
+
"id",
|
|
185793
|
+
"type"
|
|
185794
|
+
],
|
|
185795
|
+
properties: {
|
|
185796
|
+
id: {
|
|
185797
|
+
type: "string",
|
|
185798
|
+
description: "The node's id within this workflow, chosen by its author. Keep it across edits: a conversation's progress refers to it.",
|
|
185799
|
+
examples: [
|
|
185800
|
+
"collect_details"
|
|
185801
|
+
],
|
|
185802
|
+
pattern: "^[a-z][a-z0-9_-]{0,63}$"
|
|
185803
|
+
},
|
|
185804
|
+
type: {
|
|
185805
|
+
type: "string",
|
|
185806
|
+
const: "end"
|
|
185807
|
+
}
|
|
185808
|
+
},
|
|
185809
|
+
additionalProperties: false,
|
|
185810
|
+
description: "Finish the conversation (on a call, hang up)."
|
|
185811
|
+
}
|
|
185812
|
+
]
|
|
185813
|
+
},
|
|
185814
|
+
description: "The steps. Every node must be reachable from the start, the graph has no cycles, and every path finishes at an end node.",
|
|
185815
|
+
maxItems: 64,
|
|
185816
|
+
minItems: 1
|
|
185817
|
+
},
|
|
185818
|
+
startNodeId: {
|
|
185819
|
+
type: "string",
|
|
185820
|
+
examples: [
|
|
185821
|
+
"collect_details"
|
|
185822
|
+
],
|
|
185823
|
+
pattern: "^[a-z][a-z0-9_-]{0,63}$",
|
|
185824
|
+
description: "The node the conversation starts at."
|
|
185825
|
+
}
|
|
185826
|
+
},
|
|
185827
|
+
additionalProperties: false
|
|
185828
|
+
},
|
|
185829
|
+
RaizAgentWorkflowInvalidFailure: {
|
|
185830
|
+
type: "object",
|
|
185831
|
+
description: "The workflow breaks the graph rules, leaves a step without a way forward, or uses a tool this Agent cannot run there. `issues` says where.",
|
|
185832
|
+
additionalProperties: false,
|
|
185833
|
+
required: [
|
|
185834
|
+
"code",
|
|
185835
|
+
"message",
|
|
185836
|
+
"retryable",
|
|
185837
|
+
"data"
|
|
185838
|
+
],
|
|
185839
|
+
properties: {
|
|
185840
|
+
code: {
|
|
185841
|
+
type: "string",
|
|
185842
|
+
enum: [
|
|
185843
|
+
"AGENT_WORKFLOW_INVALID"
|
|
185844
|
+
],
|
|
185845
|
+
description: "The failure code, stable across releases."
|
|
185846
|
+
},
|
|
185847
|
+
message: {
|
|
185848
|
+
type: "string",
|
|
185849
|
+
description: "What went wrong, for people; it never contains input values."
|
|
185850
|
+
},
|
|
185851
|
+
retryable: {
|
|
185852
|
+
type: "boolean",
|
|
185853
|
+
enum: [
|
|
185854
|
+
false
|
|
185855
|
+
],
|
|
185856
|
+
description: "Whether repeating the same request may succeed."
|
|
185857
|
+
},
|
|
185858
|
+
data: {
|
|
185859
|
+
$ref: "#/components/schemas/RaizAgentWorkflowInvalidFailureData"
|
|
185860
|
+
}
|
|
185861
|
+
}
|
|
185862
|
+
},
|
|
185863
|
+
RaizAgentWorkflowInvalidFailureData: {
|
|
185864
|
+
type: "object",
|
|
185865
|
+
required: [
|
|
185866
|
+
"issues"
|
|
185867
|
+
],
|
|
185868
|
+
properties: {
|
|
185869
|
+
issues: {
|
|
185870
|
+
type: "array",
|
|
185871
|
+
items: {
|
|
185872
|
+
type: "object",
|
|
185873
|
+
required: [
|
|
185874
|
+
"code",
|
|
185875
|
+
"path"
|
|
185876
|
+
],
|
|
185877
|
+
properties: {
|
|
185878
|
+
code: {
|
|
185879
|
+
type: "string",
|
|
185880
|
+
description: "Why, as a label: missing_fallback, missing_result_edge, unknown_node, unknown_start_node, unreachable_node, cycle, duplicate_edge, unknown_tool, ambiguous_tool, write_tool_not_supported, unknown_parameter, missing_required_parameter…"
|
|
185881
|
+
},
|
|
185882
|
+
path: {
|
|
185883
|
+
type: "string",
|
|
185884
|
+
description: "RFC 6901 pointer to the refused field, such as `/workflow/nodes/2/edges/0/to`."
|
|
185885
|
+
}
|
|
185886
|
+
},
|
|
185887
|
+
additionalProperties: false
|
|
185888
|
+
},
|
|
185889
|
+
maxItems: 20
|
|
185890
|
+
}
|
|
185891
|
+
},
|
|
185892
|
+
additionalProperties: false
|
|
185893
|
+
},
|
|
185505
185894
|
RaizBulletin: {
|
|
185506
185895
|
type: "object",
|
|
185507
185896
|
required: [
|
|
@@ -186582,11 +186971,14 @@ var schemaComponents = {
|
|
|
186582
186971
|
type: "object",
|
|
186583
186972
|
required: [
|
|
186584
186973
|
"answered",
|
|
186974
|
+
"buttons",
|
|
186585
186975
|
"completed",
|
|
186586
186976
|
"delivered",
|
|
186587
186977
|
"failed",
|
|
186588
186978
|
"inProgress",
|
|
186589
186979
|
"noAnswer",
|
|
186980
|
+
"noButton",
|
|
186981
|
+
"noReply",
|
|
186590
186982
|
"pending",
|
|
186591
186983
|
"read",
|
|
186592
186984
|
"recipients",
|
|
@@ -186599,6 +186991,32 @@ var schemaComponents = {
|
|
|
186599
186991
|
description: "Calls: recipients whose latest call someone answered and its analysis judged.",
|
|
186600
186992
|
minimum: 0
|
|
186601
186993
|
},
|
|
186994
|
+
buttons: {
|
|
186995
|
+
type: "array",
|
|
186996
|
+
items: {
|
|
186997
|
+
type: "object",
|
|
186998
|
+
required: [
|
|
186999
|
+
"recipients",
|
|
187000
|
+
"text"
|
|
187001
|
+
],
|
|
187002
|
+
properties: {
|
|
187003
|
+
recipients: {
|
|
187004
|
+
type: "integer",
|
|
187005
|
+
description: "How many recipients have it as their last press.",
|
|
187006
|
+
minimum: 0
|
|
187007
|
+
},
|
|
187008
|
+
text: {
|
|
187009
|
+
type: "string",
|
|
187010
|
+
description: "The button's text, as the template shows it.",
|
|
187011
|
+
maxLength: 256,
|
|
187012
|
+
minLength: 1
|
|
187013
|
+
}
|
|
187014
|
+
},
|
|
187015
|
+
additionalProperties: false
|
|
187016
|
+
},
|
|
187017
|
+
description: "WhatsApp: the template's quick-reply buttons people pressed, most pressed first, each with how many recipients pressed it last. A recipient counts once, under their latest press. A button nobody pressed is not listed. Read from the reply itself: a written answer is not a button.",
|
|
187018
|
+
maxItems: 50
|
|
187019
|
+
},
|
|
186602
187020
|
completed: {
|
|
186603
187021
|
type: "integer",
|
|
186604
187022
|
minimum: 0
|
|
@@ -186621,6 +187039,16 @@ var schemaComponents = {
|
|
|
186621
187039
|
description: "Calls: recipients who failed because their calls ran out without anyone answering. A voicemail counts here.",
|
|
186622
187040
|
minimum: 0
|
|
186623
187041
|
},
|
|
187042
|
+
noButton: {
|
|
187043
|
+
type: "integer",
|
|
187044
|
+
description: "WhatsApp: recipients a message reached (`deliveredAt`) who pressed none of its buttons, whether or not they wrote. People still pending, or whose message never arrived, are not counted.",
|
|
187045
|
+
minimum: 0
|
|
187046
|
+
},
|
|
187047
|
+
noReply: {
|
|
187048
|
+
type: "integer",
|
|
187049
|
+
description: "WhatsApp: recipients a message reached who neither pressed a button nor wrote: `noButton` less those who answered in writing.",
|
|
187050
|
+
minimum: 0
|
|
187051
|
+
},
|
|
186624
187052
|
pending: {
|
|
186625
187053
|
type: "integer",
|
|
186626
187054
|
minimum: 0
|
|
@@ -186784,6 +187212,7 @@ var schemaComponents = {
|
|
|
186784
187212
|
required: [
|
|
186785
187213
|
"address",
|
|
186786
187214
|
"attemptCount",
|
|
187215
|
+
"button",
|
|
186787
187216
|
"contact",
|
|
186788
187217
|
"contactId",
|
|
186789
187218
|
"createdAt",
|
|
@@ -186811,6 +187240,35 @@ var schemaComponents = {
|
|
|
186811
187240
|
type: "integer",
|
|
186812
187241
|
minimum: 0
|
|
186813
187242
|
},
|
|
187243
|
+
button: {
|
|
187244
|
+
anyOf: [
|
|
187245
|
+
{
|
|
187246
|
+
type: "object",
|
|
187247
|
+
required: [
|
|
187248
|
+
"pressedAt",
|
|
187249
|
+
"text"
|
|
187250
|
+
],
|
|
187251
|
+
properties: {
|
|
187252
|
+
pressedAt: {
|
|
187253
|
+
type: "string",
|
|
187254
|
+
description: "An instant in RFC 3339 format, in UTC.",
|
|
187255
|
+
format: "date-time"
|
|
187256
|
+
},
|
|
187257
|
+
text: {
|
|
187258
|
+
type: "string",
|
|
187259
|
+
description: "The button's text, as the template shows it.",
|
|
187260
|
+
maxLength: 256,
|
|
187261
|
+
minLength: 1
|
|
187262
|
+
}
|
|
187263
|
+
},
|
|
187264
|
+
description: "WhatsApp: the last button of the template this person pressed, and when. A later press replaces an earlier one, also after their conversation closed. Null when they pressed none: a written answer is not a button.",
|
|
187265
|
+
additionalProperties: false
|
|
187266
|
+
},
|
|
187267
|
+
{
|
|
187268
|
+
type: "null"
|
|
187269
|
+
}
|
|
187270
|
+
]
|
|
187271
|
+
},
|
|
186814
187272
|
contact: {
|
|
186815
187273
|
anyOf: [
|
|
186816
187274
|
{
|
|
@@ -190039,7 +190497,7 @@ var schemaComponents = {
|
|
|
190039
190497
|
},
|
|
190040
190498
|
operatorReplied: {
|
|
190041
190499
|
type: "boolean",
|
|
190042
|
-
description: "
|
|
190500
|
+
description: "The organization's team wrote to the contact, in Raíz or in the WhatsApp Business app. The message a campaign or a machine client opens a conversation with is not the team's (a message's `origin`)."
|
|
190043
190501
|
},
|
|
190044
190502
|
origin: {
|
|
190045
190503
|
anyOf: [
|
|
@@ -190068,7 +190526,7 @@ var schemaComponents = {
|
|
|
190068
190526
|
const: "test"
|
|
190069
190527
|
}
|
|
190070
190528
|
],
|
|
190071
|
-
description: "How it started: the contact reached out (`inbound`), a person of the organization started it (`manual`: in the Dashboard, or on WhatsApp in the WhatsApp Business app), a client through the API (`api`), a campaign, an import or a person-owned WhatsApp Agent trial (`test`)."
|
|
190529
|
+
description: "How it started: the contact reached out (`inbound`), a person of the organization started it (`manual`: in the Dashboard, or on WhatsApp in the WhatsApp Business app), a client through the API (`api`), a campaign, an import or a person-owned WhatsApp Agent trial (`test`). On WhatsApp, `campaign` and `api` with `direction: inbound` are the contact answering such a message after its conversation closed, which continues it."
|
|
190072
190530
|
},
|
|
190073
190531
|
outcome: {
|
|
190074
190532
|
anyOf: [
|
|
@@ -190277,7 +190735,7 @@ var schemaComponents = {
|
|
|
190277
190735
|
$ref: "#/components/schemas/RaizConversationWorker",
|
|
190278
190736
|
description: "Who works the conversation for the organization."
|
|
190279
190737
|
},
|
|
190280
|
-
description: "Who works the conversation for the organization, in the order each first wrote something the contact saw (those who have not yet, last): each Agent and the team that wrote in it and, while it is open or when nobody answered it, whoever has it (the assigned Agent while the AI handles it, the team otherwise). `agentId` is the Agent assigned now."
|
|
190738
|
+
description: "Who works the conversation for the organization, in the order each first wrote something the contact saw (those who have not yet, last): each Agent and the team that wrote in it and, while it is open or when nobody answered it, whoever has it (the assigned Agent while the AI handles it, the team otherwise). A campaign's message and a machine client's opening make nobody a worker: read who sent them from the message's `origin`. `agentId` is the Agent assigned now."
|
|
190281
190739
|
},
|
|
190282
190740
|
toolCalls: {
|
|
190283
190741
|
$ref: "#/components/schemas/RaizConversationToolCalls"
|
|
@@ -191696,7 +192154,7 @@ var schemaComponents = {
|
|
|
191696
192154
|
},
|
|
191697
192155
|
additionalProperties: false
|
|
191698
192156
|
},
|
|
191699
|
-
description: "The people Raíz knows wrote, in the order they first did. What the WhatsApp Business app sends counts for the team without naming anyone."
|
|
192157
|
+
description: "The people Raíz knows wrote, in the order they first did. What the WhatsApp Business app sends counts for the team without naming anyone; what a campaign or a machine client's opening sends does not count for the team."
|
|
191700
192158
|
},
|
|
191701
192159
|
firstMessageAt: {
|
|
191702
192160
|
anyOf: [
|
|
@@ -192016,6 +192474,17 @@ var schemaComponents = {
|
|
|
192016
192474
|
}
|
|
192017
192475
|
]
|
|
192018
192476
|
},
|
|
192477
|
+
workflow: {
|
|
192478
|
+
anyOf: [
|
|
192479
|
+
{
|
|
192480
|
+
$ref: "#/components/schemas/RaizAgentWorkflow"
|
|
192481
|
+
},
|
|
192482
|
+
{
|
|
192483
|
+
type: "null"
|
|
192484
|
+
}
|
|
192485
|
+
],
|
|
192486
|
+
description: "The conversation graph the Agent follows beside its instructions and procedures: conversation steps, tool steps and endings, with no loops and a way forward from every step. A tool step needs one of the Agent's integration tools that only reads and that exactly one connection holds. It runs by itself, with the step's constant arguments and without the model choosing them, and follows its success or failure edge; on a call, a step that cannot run follows its failure edge. Checked against the Agent as it will be once saved (AGENT_WORKFLOW_INVALID says where one is wrong), also when an update changes the Agent's tools. In an update, omit it to keep the current one and send `null` to remove it."
|
|
192487
|
+
},
|
|
192019
192488
|
modality: {
|
|
192020
192489
|
anyOf: [
|
|
192021
192490
|
{
|
|
@@ -192168,6 +192637,9 @@ var schemaComponents = {
|
|
|
192168
192637
|
{
|
|
192169
192638
|
$ref: "#/components/schemas/RaizAgentProceduresInvalidFailure"
|
|
192170
192639
|
},
|
|
192640
|
+
{
|
|
192641
|
+
$ref: "#/components/schemas/RaizAgentWorkflowInvalidFailure"
|
|
192642
|
+
},
|
|
192171
192643
|
{
|
|
192172
192644
|
$ref: "#/components/schemas/RaizAgentSettingsInvalidFailure"
|
|
192173
192645
|
},
|
|
@@ -192185,6 +192657,7 @@ var schemaComponents = {
|
|
|
192185
192657
|
propertyName: "code",
|
|
192186
192658
|
mapping: {
|
|
192187
192659
|
AGENT_PROCEDURES_INVALID: "#/components/schemas/RaizAgentProceduresInvalidFailure",
|
|
192660
|
+
AGENT_WORKFLOW_INVALID: "#/components/schemas/RaizAgentWorkflowInvalidFailure",
|
|
192188
192661
|
AGENT_SETTINGS_INVALID: "#/components/schemas/RaizAgentSettingsInvalidFailure",
|
|
192189
192662
|
INTEGRATION_PROCEDURE_UNAVAILABLE: "#/components/schemas/RaizIntegrationProcedureUnavailableFailure",
|
|
192190
192663
|
INTEGRATION_TOOL_UNAVAILABLE: "#/components/schemas/RaizIntegrationToolUnavailableFailure",
|
|
@@ -193400,6 +193873,9 @@ var schemaComponents = {
|
|
|
193400
193873
|
{
|
|
193401
193874
|
$ref: "#/components/schemas/RaizConversationViewAuthorOnlyFailure"
|
|
193402
193875
|
},
|
|
193876
|
+
{
|
|
193877
|
+
$ref: "#/components/schemas/RaizOutboundChannelRefusedFailure"
|
|
193878
|
+
},
|
|
193403
193879
|
{
|
|
193404
193880
|
$ref: "#/components/schemas/RaizWhatsappChannelRefusedFailure"
|
|
193405
193881
|
},
|
|
@@ -193413,6 +193889,7 @@ var schemaComponents = {
|
|
|
193413
193889
|
FORBIDDEN: "#/components/schemas/ForbiddenFailure",
|
|
193414
193890
|
CHANNEL_CREATION_IN_APP: "#/components/schemas/RaizChannelCreationInAppFailure",
|
|
193415
193891
|
CONVERSATION_VIEW_AUTHOR_ONLY: "#/components/schemas/RaizConversationViewAuthorOnlyFailure",
|
|
193892
|
+
OUTBOUND_CHANNEL_REFUSED: "#/components/schemas/RaizOutboundChannelRefusedFailure",
|
|
193416
193893
|
WHATSAPP_CHANNEL_REFUSED: "#/components/schemas/RaizWhatsappChannelRefusedFailure",
|
|
193417
193894
|
WIDGET_REFUSED: "#/components/schemas/RaizWidgetRefusedFailure"
|
|
193418
193895
|
}
|
|
@@ -193496,6 +193973,9 @@ var schemaComponents = {
|
|
|
193496
193973
|
{
|
|
193497
193974
|
$ref: "#/components/schemas/InternalFailure"
|
|
193498
193975
|
},
|
|
193976
|
+
{
|
|
193977
|
+
$ref: "#/components/schemas/RaizOutboundChannelInternalFailure"
|
|
193978
|
+
},
|
|
193499
193979
|
{
|
|
193500
193980
|
$ref: "#/components/schemas/RaizWhatsappChannelInternalFailure"
|
|
193501
193981
|
},
|
|
@@ -193510,6 +193990,7 @@ var schemaComponents = {
|
|
|
193510
193990
|
propertyName: "code",
|
|
193511
193991
|
mapping: {
|
|
193512
193992
|
INTERNAL_ERROR: "#/components/schemas/InternalFailure",
|
|
193993
|
+
OUTBOUND_CHANNEL_INTERNAL: "#/components/schemas/RaizOutboundChannelInternalFailure",
|
|
193513
193994
|
WHATSAPP_CHANNEL_INTERNAL: "#/components/schemas/RaizWhatsappChannelInternalFailure",
|
|
193514
193995
|
WHATSAPP_NOT_SENT: "#/components/schemas/RaizWhatsappNotSentFailure",
|
|
193515
193996
|
WIDGET_INTERNAL: "#/components/schemas/RaizWidgetInternalFailure"
|
|
@@ -193776,6 +194257,9 @@ var schemaComponents = {
|
|
|
193776
194257
|
{
|
|
193777
194258
|
$ref: "#/components/schemas/RaizAgentProceduresInvalidFailure"
|
|
193778
194259
|
},
|
|
194260
|
+
{
|
|
194261
|
+
$ref: "#/components/schemas/RaizAgentWorkflowInvalidFailure"
|
|
194262
|
+
},
|
|
193779
194263
|
{
|
|
193780
194264
|
$ref: "#/components/schemas/RaizAgentSettingsInvalidFailure"
|
|
193781
194265
|
},
|
|
@@ -193835,6 +194319,7 @@ var schemaComponents = {
|
|
|
193835
194319
|
VOICE_NOT_AVAILABLE: "#/components/schemas/RaizVoiceNotAvailableFailure",
|
|
193836
194320
|
VOICE_NUMBER_NOT_OWNED: "#/components/schemas/RaizVoiceNumberNotOwnedFailure",
|
|
193837
194321
|
AGENT_PROCEDURES_INVALID: "#/components/schemas/RaizAgentProceduresInvalidFailure",
|
|
194322
|
+
AGENT_WORKFLOW_INVALID: "#/components/schemas/RaizAgentWorkflowInvalidFailure",
|
|
193838
194323
|
AGENT_SETTINGS_INVALID: "#/components/schemas/RaizAgentSettingsInvalidFailure",
|
|
193839
194324
|
BULLETIN_PERIOD_INVALID: "#/components/schemas/RaizBulletinPeriodInvalidFailure",
|
|
193840
194325
|
INTEGRATION_PROCEDURE_UNAVAILABLE: "#/components/schemas/RaizIntegrationProcedureUnavailableFailure",
|
|
@@ -194360,6 +194845,12 @@ var schemaComponents = {
|
|
|
194360
194845
|
type: "string",
|
|
194361
194846
|
const: "whatsapp"
|
|
194362
194847
|
},
|
|
194848
|
+
instructions: {
|
|
194849
|
+
type: "string",
|
|
194850
|
+
maxLength: 8000,
|
|
194851
|
+
minLength: 1,
|
|
194852
|
+
description: "What the Agent should know and do if the person replies (what the message is about, what each answer means, how to speak), as a campaign recipient's `instructions`. Kept with the conversation and never sent to the person."
|
|
194853
|
+
},
|
|
194363
194854
|
metadata: {
|
|
194364
194855
|
type: "object",
|
|
194365
194856
|
patternProperties: {
|
|
@@ -194411,9 +194902,21 @@ var schemaComponents = {
|
|
|
194411
194902
|
description: "Free text; WhatsApp accepts it only inside the 24-hour window.",
|
|
194412
194903
|
maxLength: 4096,
|
|
194413
194904
|
minLength: 1
|
|
194905
|
+
},
|
|
194906
|
+
variables: {
|
|
194907
|
+
type: "object",
|
|
194908
|
+
patternProperties: {
|
|
194909
|
+
"^[A-Za-z_][A-Za-z0-9_]{0,63}$": {
|
|
194910
|
+
type: "string",
|
|
194911
|
+
maxLength: 1000
|
|
194912
|
+
}
|
|
194913
|
+
},
|
|
194914
|
+
additionalProperties: false,
|
|
194915
|
+
maxProperties: 30,
|
|
194916
|
+
description: "What the business knows about this person, by name (an appointment's date and its reference, say), as a campaign recipient's `variables`. Kept with the conversation and never sent to the person: the Agent reads them when the person replies, and does not ask for them again. They fill nothing in the message; its template's values are `template.parameters`."
|
|
194414
194917
|
}
|
|
194415
194918
|
},
|
|
194416
|
-
description: "Open a WhatsApp conversation with a template or, inside the 24-hour window, a text. Give `template` or `text`.",
|
|
194919
|
+
description: "Open a WhatsApp conversation with a template or, inside the 24-hour window, a text. Give `template` or `text`. `instructions` and `variables` tell the Agent what to know when the person replies, as a campaign's row does.",
|
|
194417
194920
|
additionalProperties: false
|
|
194418
194921
|
},
|
|
194419
194922
|
{
|
|
@@ -194483,6 +194986,12 @@ var schemaComponents = {
|
|
|
194483
194986
|
description: "Destination number in E.164. Omit it to use the contact's preferred phone; WhatsApp can also reuse a messaging identity received from that contact on the selected channel when no phone is stored.",
|
|
194484
194987
|
pattern: "^\\+[1-9][0-9]{1,14}$"
|
|
194485
194988
|
},
|
|
194989
|
+
instructions: {
|
|
194990
|
+
type: "string",
|
|
194991
|
+
maxLength: 8000,
|
|
194992
|
+
minLength: 1,
|
|
194993
|
+
description: "On WhatsApp, what the Agent should know and do if the person replies, as a campaign recipient's `instructions`: kept with the conversation and never sent to the person. On a call, added after the profile's instructions, for that call only."
|
|
194994
|
+
},
|
|
194486
194995
|
metadata: {
|
|
194487
194996
|
type: "object",
|
|
194488
194997
|
patternProperties: {
|
|
@@ -194516,7 +195025,7 @@ var schemaComponents = {
|
|
|
194516
195025
|
}
|
|
194517
195026
|
},
|
|
194518
195027
|
additionalProperties: false,
|
|
194519
|
-
description: "Values for the `{{name}}` variables of the profile's template parameters (WhatsApp) or of the Agent's and the profile's texts (calls).",
|
|
195028
|
+
description: "Values for the `{{name}}` variables of the profile's template parameters (WhatsApp) or of the Agent's and the profile's texts (calls). On WhatsApp they are also kept with the conversation, never sent as such, for the Agent to read when the person replies, as a campaign recipient's `variables`.",
|
|
194520
195029
|
maxProperties: 50
|
|
194521
195030
|
}
|
|
194522
195031
|
},
|
|
@@ -194834,6 +195343,9 @@ var schemaComponents = {
|
|
|
194834
195343
|
{
|
|
194835
195344
|
$ref: "#/components/schemas/RaizConversationViewAuthorOnlyFailure"
|
|
194836
195345
|
},
|
|
195346
|
+
{
|
|
195347
|
+
$ref: "#/components/schemas/RaizOutboundChannelRefusedFailure"
|
|
195348
|
+
},
|
|
194837
195349
|
{
|
|
194838
195350
|
$ref: "#/components/schemas/RaizWhatsappChannelRefusedFailure"
|
|
194839
195351
|
},
|
|
@@ -194847,6 +195359,7 @@ var schemaComponents = {
|
|
|
194847
195359
|
FORBIDDEN: "#/components/schemas/ForbiddenFailure",
|
|
194848
195360
|
CHANNEL_CREATION_IN_APP: "#/components/schemas/RaizChannelCreationInAppFailure",
|
|
194849
195361
|
CONVERSATION_VIEW_AUTHOR_ONLY: "#/components/schemas/RaizConversationViewAuthorOnlyFailure",
|
|
195362
|
+
OUTBOUND_CHANNEL_REFUSED: "#/components/schemas/RaizOutboundChannelRefusedFailure",
|
|
194850
195363
|
WHATSAPP_CHANNEL_REFUSED: "#/components/schemas/RaizWhatsappChannelRefusedFailure",
|
|
194851
195364
|
WIDGET_REFUSED: "#/components/schemas/RaizWidgetRefusedFailure"
|
|
194852
195365
|
}
|
|
@@ -194930,6 +195443,9 @@ var schemaComponents = {
|
|
|
194930
195443
|
{
|
|
194931
195444
|
$ref: "#/components/schemas/InternalFailure"
|
|
194932
195445
|
},
|
|
195446
|
+
{
|
|
195447
|
+
$ref: "#/components/schemas/RaizOutboundChannelInternalFailure"
|
|
195448
|
+
},
|
|
194933
195449
|
{
|
|
194934
195450
|
$ref: "#/components/schemas/RaizWhatsappChannelInternalFailure"
|
|
194935
195451
|
},
|
|
@@ -194944,6 +195460,7 @@ var schemaComponents = {
|
|
|
194944
195460
|
propertyName: "code",
|
|
194945
195461
|
mapping: {
|
|
194946
195462
|
INTERNAL_ERROR: "#/components/schemas/InternalFailure",
|
|
195463
|
+
OUTBOUND_CHANNEL_INTERNAL: "#/components/schemas/RaizOutboundChannelInternalFailure",
|
|
194947
195464
|
WHATSAPP_CHANNEL_INTERNAL: "#/components/schemas/RaizWhatsappChannelInternalFailure",
|
|
194948
195465
|
WHATSAPP_NOT_SENT: "#/components/schemas/RaizWhatsappNotSentFailure",
|
|
194949
195466
|
WIDGET_INTERNAL: "#/components/schemas/RaizWidgetInternalFailure"
|
|
@@ -195210,6 +195727,9 @@ var schemaComponents = {
|
|
|
195210
195727
|
{
|
|
195211
195728
|
$ref: "#/components/schemas/RaizAgentProceduresInvalidFailure"
|
|
195212
195729
|
},
|
|
195730
|
+
{
|
|
195731
|
+
$ref: "#/components/schemas/RaizAgentWorkflowInvalidFailure"
|
|
195732
|
+
},
|
|
195213
195733
|
{
|
|
195214
195734
|
$ref: "#/components/schemas/RaizAgentSettingsInvalidFailure"
|
|
195215
195735
|
},
|
|
@@ -195269,6 +195789,7 @@ var schemaComponents = {
|
|
|
195269
195789
|
VOICE_NOT_AVAILABLE: "#/components/schemas/RaizVoiceNotAvailableFailure",
|
|
195270
195790
|
VOICE_NUMBER_NOT_OWNED: "#/components/schemas/RaizVoiceNumberNotOwnedFailure",
|
|
195271
195791
|
AGENT_PROCEDURES_INVALID: "#/components/schemas/RaizAgentProceduresInvalidFailure",
|
|
195792
|
+
AGENT_WORKFLOW_INVALID: "#/components/schemas/RaizAgentWorkflowInvalidFailure",
|
|
195272
195793
|
AGENT_SETTINGS_INVALID: "#/components/schemas/RaizAgentSettingsInvalidFailure",
|
|
195273
195794
|
BULLETIN_PERIOD_INVALID: "#/components/schemas/RaizBulletinPeriodInvalidFailure",
|
|
195274
195795
|
INTEGRATION_PROCEDURE_UNAVAILABLE: "#/components/schemas/RaizIntegrationProcedureUnavailableFailure",
|
|
@@ -198666,6 +199187,9 @@ var schemaComponents = {
|
|
|
198666
199187
|
{
|
|
198667
199188
|
$ref: "#/components/schemas/RaizConversationViewAuthorOnlyFailure"
|
|
198668
199189
|
},
|
|
199190
|
+
{
|
|
199191
|
+
$ref: "#/components/schemas/RaizOutboundChannelRefusedFailure"
|
|
199192
|
+
},
|
|
198669
199193
|
{
|
|
198670
199194
|
$ref: "#/components/schemas/RaizWhatsappChannelRefusedFailure"
|
|
198671
199195
|
},
|
|
@@ -198679,6 +199203,7 @@ var schemaComponents = {
|
|
|
198679
199203
|
FORBIDDEN: "#/components/schemas/ForbiddenFailure",
|
|
198680
199204
|
CHANNEL_CREATION_IN_APP: "#/components/schemas/RaizChannelCreationInAppFailure",
|
|
198681
199205
|
CONVERSATION_VIEW_AUTHOR_ONLY: "#/components/schemas/RaizConversationViewAuthorOnlyFailure",
|
|
199206
|
+
OUTBOUND_CHANNEL_REFUSED: "#/components/schemas/RaizOutboundChannelRefusedFailure",
|
|
198682
199207
|
WHATSAPP_CHANNEL_REFUSED: "#/components/schemas/RaizWhatsappChannelRefusedFailure",
|
|
198683
199208
|
WIDGET_REFUSED: "#/components/schemas/RaizWidgetRefusedFailure"
|
|
198684
199209
|
}
|
|
@@ -198762,6 +199287,9 @@ var schemaComponents = {
|
|
|
198762
199287
|
{
|
|
198763
199288
|
$ref: "#/components/schemas/InternalFailure"
|
|
198764
199289
|
},
|
|
199290
|
+
{
|
|
199291
|
+
$ref: "#/components/schemas/RaizOutboundChannelInternalFailure"
|
|
199292
|
+
},
|
|
198765
199293
|
{
|
|
198766
199294
|
$ref: "#/components/schemas/RaizWhatsappChannelInternalFailure"
|
|
198767
199295
|
},
|
|
@@ -198776,6 +199304,7 @@ var schemaComponents = {
|
|
|
198776
199304
|
propertyName: "code",
|
|
198777
199305
|
mapping: {
|
|
198778
199306
|
INTERNAL_ERROR: "#/components/schemas/InternalFailure",
|
|
199307
|
+
OUTBOUND_CHANNEL_INTERNAL: "#/components/schemas/RaizOutboundChannelInternalFailure",
|
|
198779
199308
|
WHATSAPP_CHANNEL_INTERNAL: "#/components/schemas/RaizWhatsappChannelInternalFailure",
|
|
198780
199309
|
WHATSAPP_NOT_SENT: "#/components/schemas/RaizWhatsappNotSentFailure",
|
|
198781
199310
|
WIDGET_INTERNAL: "#/components/schemas/RaizWidgetInternalFailure"
|
|
@@ -199042,6 +199571,9 @@ var schemaComponents = {
|
|
|
199042
199571
|
{
|
|
199043
199572
|
$ref: "#/components/schemas/RaizAgentProceduresInvalidFailure"
|
|
199044
199573
|
},
|
|
199574
|
+
{
|
|
199575
|
+
$ref: "#/components/schemas/RaizAgentWorkflowInvalidFailure"
|
|
199576
|
+
},
|
|
199045
199577
|
{
|
|
199046
199578
|
$ref: "#/components/schemas/RaizAgentSettingsInvalidFailure"
|
|
199047
199579
|
},
|
|
@@ -199101,6 +199633,7 @@ var schemaComponents = {
|
|
|
199101
199633
|
VOICE_NOT_AVAILABLE: "#/components/schemas/RaizVoiceNotAvailableFailure",
|
|
199102
199634
|
VOICE_NUMBER_NOT_OWNED: "#/components/schemas/RaizVoiceNumberNotOwnedFailure",
|
|
199103
199635
|
AGENT_PROCEDURES_INVALID: "#/components/schemas/RaizAgentProceduresInvalidFailure",
|
|
199636
|
+
AGENT_WORKFLOW_INVALID: "#/components/schemas/RaizAgentWorkflowInvalidFailure",
|
|
199104
199637
|
AGENT_SETTINGS_INVALID: "#/components/schemas/RaizAgentSettingsInvalidFailure",
|
|
199105
199638
|
BULLETIN_PERIOD_INVALID: "#/components/schemas/RaizBulletinPeriodInvalidFailure",
|
|
199106
199639
|
INTEGRATION_PROCEDURE_UNAVAILABLE: "#/components/schemas/RaizIntegrationProcedureUnavailableFailure",
|
|
@@ -204505,7 +205038,7 @@ var schemaComponents = {
|
|
|
204505
205038
|
anyOf: [
|
|
204506
205039
|
{
|
|
204507
205040
|
type: "string",
|
|
204508
|
-
description: "The person of the organization who wrote an operator message in Raíz: their member id, as Arbol Account lists it (`account.members.list`). Null when
|
|
205041
|
+
description: "The person of the organization who wrote an operator message in Raíz: their member id, as Arbol Account lists it (`account.members.list`). Null when no person of the team wrote it in Raíz (see `origin`), when a machine client did, and for every other role.",
|
|
204509
205042
|
maxLength: 255,
|
|
204510
205043
|
minLength: 1
|
|
204511
205044
|
},
|
|
@@ -204522,9 +205055,21 @@ var schemaComponents = {
|
|
|
204522
205055
|
origin: {
|
|
204523
205056
|
anyOf: [
|
|
204524
205057
|
{
|
|
204525
|
-
|
|
204526
|
-
|
|
204527
|
-
|
|
205058
|
+
anyOf: [
|
|
205059
|
+
{
|
|
205060
|
+
type: "string",
|
|
205061
|
+
const: "business_app"
|
|
205062
|
+
},
|
|
205063
|
+
{
|
|
205064
|
+
type: "string",
|
|
205065
|
+
const: "campaign"
|
|
205066
|
+
},
|
|
205067
|
+
{
|
|
205068
|
+
type: "string",
|
|
205069
|
+
const: "api"
|
|
205070
|
+
}
|
|
205071
|
+
],
|
|
205072
|
+
description: "Where an operator message came from. `business_app`: a person of the team wrote it in the WhatsApp Business app (the phone app or WhatsApp Web) on a number Raíz shares. `campaign`: a campaign sent it, and nobody of the team wrote it; the conversation's `campaignId` names the campaign. `api`: a machine client sent it to open the conversation with `createConversation`; the conversation's `requestedBy` names the client. Null for a message written in Raíz for the team (by a person, see `memberId`, or by a machine client with `sendMessage`) and for every other role."
|
|
204528
205073
|
},
|
|
204529
205074
|
{
|
|
204530
205075
|
type: "null"
|
|
@@ -205633,6 +206178,74 @@ var schemaComponents = {
|
|
|
205633
206178
|
}
|
|
205634
206179
|
}
|
|
205635
206180
|
},
|
|
206181
|
+
RaizOutboundChannelInternalFailure: {
|
|
206182
|
+
type: "object",
|
|
206183
|
+
description: "What became of the send could not be read back. Asking again never reaches the person twice.",
|
|
206184
|
+
additionalProperties: false,
|
|
206185
|
+
required: [
|
|
206186
|
+
"code",
|
|
206187
|
+
"message",
|
|
206188
|
+
"retryable",
|
|
206189
|
+
"data"
|
|
206190
|
+
],
|
|
206191
|
+
properties: {
|
|
206192
|
+
code: {
|
|
206193
|
+
type: "string",
|
|
206194
|
+
enum: [
|
|
206195
|
+
"OUTBOUND_CHANNEL_INTERNAL"
|
|
206196
|
+
],
|
|
206197
|
+
description: "The failure code, stable across releases."
|
|
206198
|
+
},
|
|
206199
|
+
message: {
|
|
206200
|
+
type: "string",
|
|
206201
|
+
description: "What went wrong, for people; it never contains input values."
|
|
206202
|
+
},
|
|
206203
|
+
retryable: {
|
|
206204
|
+
type: "boolean",
|
|
206205
|
+
enum: [
|
|
206206
|
+
false
|
|
206207
|
+
],
|
|
206208
|
+
description: "Whether repeating the same request may succeed."
|
|
206209
|
+
},
|
|
206210
|
+
data: {
|
|
206211
|
+
$ref: "#/components/schemas/Empty"
|
|
206212
|
+
}
|
|
206213
|
+
}
|
|
206214
|
+
},
|
|
206215
|
+
RaizOutboundChannelRefusedFailure: {
|
|
206216
|
+
type: "object",
|
|
206217
|
+
description: "Only the Campaigns Worker sends through this service, and only for a recipient of a campaign of that organization.",
|
|
206218
|
+
additionalProperties: false,
|
|
206219
|
+
required: [
|
|
206220
|
+
"code",
|
|
206221
|
+
"message",
|
|
206222
|
+
"retryable",
|
|
206223
|
+
"data"
|
|
206224
|
+
],
|
|
206225
|
+
properties: {
|
|
206226
|
+
code: {
|
|
206227
|
+
type: "string",
|
|
206228
|
+
enum: [
|
|
206229
|
+
"OUTBOUND_CHANNEL_REFUSED"
|
|
206230
|
+
],
|
|
206231
|
+
description: "The failure code, stable across releases."
|
|
206232
|
+
},
|
|
206233
|
+
message: {
|
|
206234
|
+
type: "string",
|
|
206235
|
+
description: "What went wrong, for people; it never contains input values."
|
|
206236
|
+
},
|
|
206237
|
+
retryable: {
|
|
206238
|
+
type: "boolean",
|
|
206239
|
+
enum: [
|
|
206240
|
+
false
|
|
206241
|
+
],
|
|
206242
|
+
description: "Whether repeating the same request may succeed."
|
|
206243
|
+
},
|
|
206244
|
+
data: {
|
|
206245
|
+
$ref: "#/components/schemas/Empty"
|
|
206246
|
+
}
|
|
206247
|
+
}
|
|
206248
|
+
},
|
|
205636
206249
|
RaizOutsideContactHoursFailure: {
|
|
205637
206250
|
type: "object",
|
|
205638
206251
|
description: "The profile's contact hours do not allow starting a conversation now. Try again within them.",
|
|
@@ -210136,6 +210749,17 @@ var schemaComponents = {
|
|
|
210136
210749
|
}
|
|
210137
210750
|
]
|
|
210138
210751
|
},
|
|
210752
|
+
workflow: {
|
|
210753
|
+
anyOf: [
|
|
210754
|
+
{
|
|
210755
|
+
$ref: "#/components/schemas/RaizAgentWorkflow"
|
|
210756
|
+
},
|
|
210757
|
+
{
|
|
210758
|
+
type: "null"
|
|
210759
|
+
}
|
|
210760
|
+
],
|
|
210761
|
+
description: "The conversation graph the Agent follows beside its instructions and procedures: conversation steps, tool steps and endings, with no loops and a way forward from every step. A tool step needs one of the Agent's integration tools that only reads and that exactly one connection holds. It runs by itself, with the step's constant arguments and without the model choosing them, and follows its success or failure edge; on a call, a step that cannot run follows its failure edge. Checked against the Agent as it will be once saved (AGENT_WORKFLOW_INVALID says where one is wrong), also when an update changes the Agent's tools. In an update, omit it to keep the current one and send `null` to remove it."
|
|
210762
|
+
},
|
|
210139
210763
|
evalRunId: {
|
|
210140
210764
|
type: "string",
|
|
210141
210765
|
description: "With the Agent's `settings.evalGate`: the completed evaluation run (`createEvalRun`) of exactly the content this update leaves the model reading, in which every case passed.",
|
|
@@ -210305,6 +210929,9 @@ var schemaComponents = {
|
|
|
210305
210929
|
{
|
|
210306
210930
|
$ref: "#/components/schemas/RaizAgentProceduresInvalidFailure"
|
|
210307
210931
|
},
|
|
210932
|
+
{
|
|
210933
|
+
$ref: "#/components/schemas/RaizAgentWorkflowInvalidFailure"
|
|
210934
|
+
},
|
|
210308
210935
|
{
|
|
210309
210936
|
$ref: "#/components/schemas/RaizAgentSettingsInvalidFailure"
|
|
210310
210937
|
},
|
|
@@ -210322,6 +210949,7 @@ var schemaComponents = {
|
|
|
210322
210949
|
propertyName: "code",
|
|
210323
210950
|
mapping: {
|
|
210324
210951
|
AGENT_PROCEDURES_INVALID: "#/components/schemas/RaizAgentProceduresInvalidFailure",
|
|
210952
|
+
AGENT_WORKFLOW_INVALID: "#/components/schemas/RaizAgentWorkflowInvalidFailure",
|
|
210325
210953
|
AGENT_SETTINGS_INVALID: "#/components/schemas/RaizAgentSettingsInvalidFailure",
|
|
210326
210954
|
INTEGRATION_PROCEDURE_UNAVAILABLE: "#/components/schemas/RaizIntegrationProcedureUnavailableFailure",
|
|
210327
210955
|
INTEGRATION_TOOL_UNAVAILABLE: "#/components/schemas/RaizIntegrationToolUnavailableFailure",
|
|
@@ -211400,6 +212028,9 @@ var schemaComponents = {
|
|
|
211400
212028
|
{
|
|
211401
212029
|
$ref: "#/components/schemas/RaizConversationViewAuthorOnlyFailure"
|
|
211402
212030
|
},
|
|
212031
|
+
{
|
|
212032
|
+
$ref: "#/components/schemas/RaizOutboundChannelRefusedFailure"
|
|
212033
|
+
},
|
|
211403
212034
|
{
|
|
211404
212035
|
$ref: "#/components/schemas/RaizWhatsappChannelRefusedFailure"
|
|
211405
212036
|
},
|
|
@@ -211413,6 +212044,7 @@ var schemaComponents = {
|
|
|
211413
212044
|
FORBIDDEN: "#/components/schemas/ForbiddenFailure",
|
|
211414
212045
|
CHANNEL_CREATION_IN_APP: "#/components/schemas/RaizChannelCreationInAppFailure",
|
|
211415
212046
|
CONVERSATION_VIEW_AUTHOR_ONLY: "#/components/schemas/RaizConversationViewAuthorOnlyFailure",
|
|
212047
|
+
OUTBOUND_CHANNEL_REFUSED: "#/components/schemas/RaizOutboundChannelRefusedFailure",
|
|
211416
212048
|
WHATSAPP_CHANNEL_REFUSED: "#/components/schemas/RaizWhatsappChannelRefusedFailure",
|
|
211417
212049
|
WIDGET_REFUSED: "#/components/schemas/RaizWidgetRefusedFailure"
|
|
211418
212050
|
}
|
|
@@ -211496,6 +212128,9 @@ var schemaComponents = {
|
|
|
211496
212128
|
{
|
|
211497
212129
|
$ref: "#/components/schemas/InternalFailure"
|
|
211498
212130
|
},
|
|
212131
|
+
{
|
|
212132
|
+
$ref: "#/components/schemas/RaizOutboundChannelInternalFailure"
|
|
212133
|
+
},
|
|
211499
212134
|
{
|
|
211500
212135
|
$ref: "#/components/schemas/RaizWhatsappChannelInternalFailure"
|
|
211501
212136
|
},
|
|
@@ -211510,6 +212145,7 @@ var schemaComponents = {
|
|
|
211510
212145
|
propertyName: "code",
|
|
211511
212146
|
mapping: {
|
|
211512
212147
|
INTERNAL_ERROR: "#/components/schemas/InternalFailure",
|
|
212148
|
+
OUTBOUND_CHANNEL_INTERNAL: "#/components/schemas/RaizOutboundChannelInternalFailure",
|
|
211513
212149
|
WHATSAPP_CHANNEL_INTERNAL: "#/components/schemas/RaizWhatsappChannelInternalFailure",
|
|
211514
212150
|
WHATSAPP_NOT_SENT: "#/components/schemas/RaizWhatsappNotSentFailure",
|
|
211515
212151
|
WIDGET_INTERNAL: "#/components/schemas/RaizWidgetInternalFailure"
|
|
@@ -211776,6 +212412,9 @@ var schemaComponents = {
|
|
|
211776
212412
|
{
|
|
211777
212413
|
$ref: "#/components/schemas/RaizAgentProceduresInvalidFailure"
|
|
211778
212414
|
},
|
|
212415
|
+
{
|
|
212416
|
+
$ref: "#/components/schemas/RaizAgentWorkflowInvalidFailure"
|
|
212417
|
+
},
|
|
211779
212418
|
{
|
|
211780
212419
|
$ref: "#/components/schemas/RaizAgentSettingsInvalidFailure"
|
|
211781
212420
|
},
|
|
@@ -211835,6 +212474,7 @@ var schemaComponents = {
|
|
|
211835
212474
|
VOICE_NOT_AVAILABLE: "#/components/schemas/RaizVoiceNotAvailableFailure",
|
|
211836
212475
|
VOICE_NUMBER_NOT_OWNED: "#/components/schemas/RaizVoiceNumberNotOwnedFailure",
|
|
211837
212476
|
AGENT_PROCEDURES_INVALID: "#/components/schemas/RaizAgentProceduresInvalidFailure",
|
|
212477
|
+
AGENT_WORKFLOW_INVALID: "#/components/schemas/RaizAgentWorkflowInvalidFailure",
|
|
211838
212478
|
AGENT_SETTINGS_INVALID: "#/components/schemas/RaizAgentSettingsInvalidFailure",
|
|
211839
212479
|
BULLETIN_PERIOD_INVALID: "#/components/schemas/RaizBulletinPeriodInvalidFailure",
|
|
211840
212480
|
INTEGRATION_PROCEDURE_UNAVAILABLE: "#/components/schemas/RaizIntegrationProcedureUnavailableFailure",
|
|
@@ -228634,6 +229274,7 @@ var schemaComponents = {
|
|
|
228634
229274
|
"professionalName",
|
|
228635
229275
|
"specialty",
|
|
228636
229276
|
"patientName",
|
|
229277
|
+
"documentNumber",
|
|
228637
229278
|
"phone",
|
|
228638
229279
|
"service",
|
|
228639
229280
|
"status",
|
|
@@ -228664,6 +229305,10 @@ var schemaComponents = {
|
|
|
228664
229305
|
patientName: {
|
|
228665
229306
|
type: "string"
|
|
228666
229307
|
},
|
|
229308
|
+
documentNumber: {
|
|
229309
|
+
type: "string",
|
|
229310
|
+
description: "The patient's document number, as SIIPS's agenda stores it: letters and digits only. Empty when the agenda shows none, or when its row and its reference name different documents."
|
|
229311
|
+
},
|
|
228667
229312
|
phone: {
|
|
228668
229313
|
type: "string",
|
|
228669
229314
|
description: "SIIPS's contact phone text; may be empty or contain several numbers."
|
|
@@ -241897,6 +242542,17 @@ var schemaComponents = {
|
|
|
241897
242542
|
}
|
|
241898
242543
|
]
|
|
241899
242544
|
},
|
|
242545
|
+
workflow: {
|
|
242546
|
+
anyOf: [
|
|
242547
|
+
{
|
|
242548
|
+
$ref: "#/components/schemas/RaizAgentWorkflow"
|
|
242549
|
+
},
|
|
242550
|
+
{
|
|
242551
|
+
type: "null"
|
|
242552
|
+
}
|
|
242553
|
+
],
|
|
242554
|
+
description: "The conversation graph the Agent follows beside its instructions and procedures: conversation steps, tool steps and endings, with no loops and a way forward from every step. A tool step needs one of the Agent's integration tools that only reads and that exactly one connection holds. It runs by itself, with the step's constant arguments and without the model choosing them, and follows its success or failure edge; on a call, a step that cannot run follows its failure edge. Checked against the Agent as it will be once saved (AGENT_WORKFLOW_INVALID says where one is wrong), also when an update changes the Agent's tools. In an update, omit it to keep the current one and send `null` to remove it."
|
|
242555
|
+
},
|
|
241900
242556
|
modality: {
|
|
241901
242557
|
anyOf: [
|
|
241902
242558
|
{
|
|
@@ -242057,6 +242713,17 @@ var schemaComponents = {
|
|
|
242057
242713
|
}
|
|
242058
242714
|
]
|
|
242059
242715
|
},
|
|
242716
|
+
workflow: {
|
|
242717
|
+
anyOf: [
|
|
242718
|
+
{
|
|
242719
|
+
$ref: "#/components/schemas/RaizAgentWorkflow"
|
|
242720
|
+
},
|
|
242721
|
+
{
|
|
242722
|
+
type: "null"
|
|
242723
|
+
}
|
|
242724
|
+
],
|
|
242725
|
+
description: "The conversation graph the Agent follows beside its instructions and procedures: conversation steps, tool steps and endings, with no loops and a way forward from every step. A tool step needs one of the Agent's integration tools that only reads and that exactly one connection holds. It runs by itself, with the step's constant arguments and without the model choosing them, and follows its success or failure edge; on a call, a step that cannot run follows its failure edge. Checked against the Agent as it will be once saved (AGENT_WORKFLOW_INVALID says where one is wrong), also when an update changes the Agent's tools. In an update, omit it to keep the current one and send `null` to remove it."
|
|
242726
|
+
},
|
|
242060
242727
|
evalRunId: {
|
|
242061
242728
|
type: "string",
|
|
242062
242729
|
description: "With the Agent's `settings.evalGate`: the completed evaluation run (`createEvalRun`) of exactly the content this update leaves the model reading, in which every case passed.",
|
|
@@ -242752,6 +243419,29 @@ var schemaComponents = {
|
|
|
242752
243419
|
description: "With `expand=recipients`: `definitionKey=optionKey`, only those whose latest answer is that option; `definitionKey=`, only those with no answer yet.",
|
|
242753
243420
|
pattern: "^[a-z][a-z0-9_]{0,63}=([a-z][a-z0-9_]{0,63})?$"
|
|
242754
243421
|
},
|
|
243422
|
+
recipientsButton: {
|
|
243423
|
+
type: "string",
|
|
243424
|
+
maxLength: 256,
|
|
243425
|
+
minLength: 1,
|
|
243426
|
+
description: "With `expand=recipients`: only those whose last pressed button is this one, by its exact text."
|
|
243427
|
+
},
|
|
243428
|
+
recipientsReply: {
|
|
243429
|
+
anyOf: [
|
|
243430
|
+
{
|
|
243431
|
+
type: "string",
|
|
243432
|
+
const: "button"
|
|
243433
|
+
},
|
|
243434
|
+
{
|
|
243435
|
+
type: "string",
|
|
243436
|
+
const: "written"
|
|
243437
|
+
},
|
|
243438
|
+
{
|
|
243439
|
+
type: "string",
|
|
243440
|
+
const: "none"
|
|
243441
|
+
}
|
|
243442
|
+
],
|
|
243443
|
+
description: "With `expand=recipients`, WhatsApp: how the people a message reached answered it. `button`: they pressed one of its buttons. `written`: they wrote and pressed none. `none`: they did neither (`progress.noReply`)."
|
|
243444
|
+
},
|
|
242755
243445
|
recipientsStatus: {
|
|
242756
243446
|
anyOf: [
|
|
242757
243447
|
{
|
|
@@ -250885,9 +251575,9 @@ var schemaComponents = {
|
|
|
250885
251575
|
// src/generated/generation.json
|
|
250886
251576
|
var generation_default = {
|
|
250887
251577
|
formatVersion: 6,
|
|
250888
|
-
release: "1.
|
|
250889
|
-
openapiSha256: "
|
|
250890
|
-
openapiContentSha256: "
|
|
251578
|
+
release: "1.20261110.71953",
|
|
251579
|
+
openapiSha256: "e2acbe92fa06b190130488dac5a6a89694072f87d35e9fcf90bbc047e3b9ed59",
|
|
251580
|
+
openapiContentSha256: "e4500da0dc9e62fc4c2c5f01cf0ef0cd8ace237db83026063e1264f2e205dd06",
|
|
250891
251581
|
forge: {
|
|
250892
251582
|
repository: "https://github.com/cloudflare/forge",
|
|
250893
251583
|
commit: "7f86447210b7bea3779bfdab3cd5655eade0eadb",
|
|
@@ -250900,7 +251590,7 @@ var generation_default = {
|
|
|
250900
251590
|
outputs: [
|
|
250901
251591
|
{
|
|
250902
251592
|
path: "src/generated/commands.ts",
|
|
250903
|
-
sha256: "
|
|
251593
|
+
sha256: "4642b68a0a1b7180ac0a2d974e8ff82520cc1a53d6464ca4b91b0bffec066d45"
|
|
250904
251594
|
}
|
|
250905
251595
|
]
|
|
250906
251596
|
};
|
|
@@ -252500,7 +253190,7 @@ ${name}`);
|
|
|
252500
253190
|
}
|
|
252501
253191
|
|
|
252502
253192
|
// src/index.ts
|
|
252503
|
-
var VERSION = "3.
|
|
253193
|
+
var VERSION = "3.47.0";
|
|
252504
253194
|
var RELEASE = generation_default.release;
|
|
252505
253195
|
var commands2 = { ...commands, ...accountOperatorCommands };
|
|
252506
253196
|
var SDK_PATHS = new Map(Object.values(commands2).map((command) => [command.operation, command.sdkPath]));
|