@arbol-ai/cli 3.29.0 → 3.31.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 +68 -29
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -8019,7 +8019,7 @@ var commands = {
|
|
|
8019
8019
|
}
|
|
8020
8020
|
},
|
|
8021
8021
|
title: "Add a patient to the waiting list",
|
|
8022
|
-
description: "Put a patient on the clinic's waiting list for the team to act on, only with the person's consent. Use reason 'payer_review' instead of booking when the patient's payer (EPS) has bookingPolicy 'staff_only' in get_intake_settings (create_appointment refuses them): the team coordinates with the doctor and books it. Use reason 'priority' right after create_appointment when the patient asked for a priority (urgent) appointment: pass that appointment's id as appointmentId so the team can bring it forward. For agent calls, the platform supplies conversationUrl from the invoking conversation; omit that field. Direct callers may supply the referring conversation link so the team can reopen it. Pass the patient's name, documentNumber and documentType, phone, serviceId and the payer as the patient said it. Use resourceId only for the professional the person requested. Calling again for the same patient, service and reason returns the same open entry and
|
|
8022
|
+
description: "Put a patient on the clinic's waiting list for the team to act on, only with the person's consent. Use reason 'payer_review' instead of booking when the patient's payer (EPS) has bookingPolicy 'staff_only' in get_intake_settings (create_appointment refuses them): the team coordinates with the doctor and books it. Use reason 'priority' right after create_appointment when the patient asked for a priority (urgent) appointment: pass that appointment's id as appointmentId so the team can bring it forward. For agent calls, the platform supplies conversationUrl from the invoking conversation; omit that field. Direct callers may supply the referring conversation link so the team can reopen it. Pass the patient's name, documentNumber and documentType, phone, serviceId and the payer as the patient said it. Use resourceId only for the professional the person requested. Calling again for the same patient, service and reason returns the same open entry. Only a request from the same verified Raíz conversation may reconcile manual and priority as one entry; payer_review stays separate. A consented reason priority request from the same verified Raíz conversation promotes a manual entry created in that same native conversation in place to priority urgent, preserving its ID, open status and queue date. For an Agenda booking include its verified appointmentId; for an external booking omit that ID and retain the verified booking in note. Historical entries, another conversation and explicit desk priority decisions are preserved; inspect the returned priority and never claim an upgrade unless it is urgent. A later manual join never lowers or duplicates that priority request. Supplied consented preferences, note, payer, conversation and appointment association can be reconciled; omit unchanged fields to retain them. A supplied confirmed phone replaces the patient contact phone; omitted or null phone preserves it. Omitted fields preserve their values; resourceId:null explicitly accepts any professional. When supplying preferences, send the complete consented date/time window; null fields clear those limits. Identical repeats do not change the version. Staff status, explicit desk priority and original queue position are preserved. A closed entry is not reopened. This registers a waiting-list request, never an appointment. Then tell the patient the clinic's team will contact them.",
|
|
8023
8023
|
effect: "write",
|
|
8024
8024
|
confirmation: null,
|
|
8025
8025
|
hidden: false
|
|
@@ -20111,7 +20111,7 @@ var commands = {
|
|
|
20111
20111
|
properties: {}
|
|
20112
20112
|
},
|
|
20113
20113
|
title: "Send the daily report now",
|
|
20114
|
-
description: "Email the daily report now to the recipients in `settings.dailyReport`, whether or not it goes out by itself each day: the calls and conversations registered in the last 24 hours, the conversations waiting for the team and those that need a review. It arrives within a minute. Fails with DAILY_REPORT_RECIPIENTS_MISSING when the report has no recipients, and DAILY_REPORT_IN_PROGRESS while a report asked for earlier is still on its way.",
|
|
20114
|
+
description: "Email the daily report now to the workspace owners with product access and the additional recipients in `settings.dailyReport`, whether or not it goes out by itself each day: the calls and conversations registered in the last 24 hours, the conversations waiting for the team and those that need a review. It arrives within a minute. Fails with DAILY_REPORT_RECIPIENTS_MISSING when the report has no recipients, and DAILY_REPORT_IN_PROGRESS while a report asked for earlier is still on its way.",
|
|
20115
20115
|
effect: "write",
|
|
20116
20116
|
confirmation: null,
|
|
20117
20117
|
hidden: false
|
|
@@ -20206,7 +20206,7 @@ var commands = {
|
|
|
20206
20206
|
enabled: {
|
|
20207
20207
|
anyOf: [
|
|
20208
20208
|
{
|
|
20209
|
-
description: "Email the daily report every day at `sendAt`, in the organization's time zone: the calls and conversations registered in the last 24 hours, the conversations waiting for the team and those that need a review (default
|
|
20209
|
+
description: "Email the daily report every day at `sendAt`, in the organization's time zone: the calls and conversations registered in the last 24 hours, the conversations waiting for the team and those that need a review (default true). A day without activity sends nothing.",
|
|
20210
20210
|
type: "boolean"
|
|
20211
20211
|
},
|
|
20212
20212
|
{
|
|
@@ -20217,7 +20217,7 @@ var commands = {
|
|
|
20217
20217
|
recipients: {
|
|
20218
20218
|
anyOf: [
|
|
20219
20219
|
{
|
|
20220
|
-
description: "
|
|
20220
|
+
description: "Additional recipients for the daily report alongside eligible workspace owners, at most 10 addresses (default none). It lists the contacts of calls and conversations by name and number: choose recipients who may read the organization's conversations.",
|
|
20221
20221
|
maxItems: 10,
|
|
20222
20222
|
uniqueItems: true,
|
|
20223
20223
|
type: "array",
|
|
@@ -20255,7 +20255,7 @@ var commands = {
|
|
|
20255
20255
|
events: {
|
|
20256
20256
|
anyOf: [
|
|
20257
20257
|
{
|
|
20258
|
-
description: "Product emails enabled for this organization.
|
|
20258
|
+
description: "Product emails enabled for this organization. All are enabled unless the organization saves a selection. An empty selection turns all of them off.",
|
|
20259
20259
|
uniqueItems: true,
|
|
20260
20260
|
maxItems: 17,
|
|
20261
20261
|
type: "array",
|
|
@@ -20376,7 +20376,7 @@ var commands = {
|
|
|
20376
20376
|
escalations: {
|
|
20377
20377
|
anyOf: [
|
|
20378
20378
|
{
|
|
20379
|
-
description: "Email the recipients, and send the phones a WhatsApp message, when the AI hands a conversation to the team: it escalates a request it cannot resolve, the contact asks for a person, or the Agent's monthly budget is spent (default
|
|
20379
|
+
description: "Email the recipients, and send the phones a WhatsApp message, when the AI hands a conversation to the team: it escalates a request it cannot resolve, the contact asks for a person, or the Agent's monthly budget is spent (default true).",
|
|
20380
20380
|
type: "boolean"
|
|
20381
20381
|
},
|
|
20382
20382
|
{
|
|
@@ -20387,7 +20387,7 @@ var commands = {
|
|
|
20387
20387
|
failedOutcomes: {
|
|
20388
20388
|
anyOf: [
|
|
20389
20389
|
{
|
|
20390
|
-
description: "Email the recipients when the analysis of a closed conversation concludes that the contact's request was not resolved (outcome failure). A conversation closed for inactivity never counts (default
|
|
20390
|
+
description: "Email the recipients when the analysis of a closed conversation concludes that the contact's request was not resolved (outcome failure). A conversation closed for inactivity never counts (default true).",
|
|
20391
20391
|
type: "boolean"
|
|
20392
20392
|
},
|
|
20393
20393
|
{
|
|
@@ -20398,7 +20398,7 @@ var commands = {
|
|
|
20398
20398
|
failures: {
|
|
20399
20399
|
anyOf: [
|
|
20400
20400
|
{
|
|
20401
|
-
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
|
|
20401
|
+
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).",
|
|
20402
20402
|
type: "boolean"
|
|
20403
20403
|
},
|
|
20404
20404
|
{
|
|
@@ -20459,7 +20459,7 @@ var commands = {
|
|
|
20459
20459
|
recipients: {
|
|
20460
20460
|
anyOf: [
|
|
20461
20461
|
{
|
|
20462
|
-
description: "
|
|
20462
|
+
description: "Additional recipients for team notices alongside eligible workspace owners, at most 10 addresses (default none). An email carries the conversation's link, channel, times, Agent and state, its title and summary and the analysis' evaluations; never the transcript or the captured data. A summary may name the person: choose recipients who may read the organization's conversations.",
|
|
20463
20463
|
maxItems: 10,
|
|
20464
20464
|
uniqueItems: true,
|
|
20465
20465
|
type: "array",
|
|
@@ -38294,6 +38294,35 @@ var schemaComponents = {
|
|
|
38294
38294
|
}
|
|
38295
38295
|
}
|
|
38296
38296
|
},
|
|
38297
|
+
{
|
|
38298
|
+
additionalProperties: false,
|
|
38299
|
+
type: "object",
|
|
38300
|
+
required: [
|
|
38301
|
+
"code",
|
|
38302
|
+
"message",
|
|
38303
|
+
"retryable",
|
|
38304
|
+
"data"
|
|
38305
|
+
],
|
|
38306
|
+
properties: {
|
|
38307
|
+
code: {
|
|
38308
|
+
const: "REPORT_NOTIFICATIONS_DISABLED",
|
|
38309
|
+
type: "string"
|
|
38310
|
+
},
|
|
38311
|
+
message: {
|
|
38312
|
+
const: "Enable the notifications module before sending a daily agenda.",
|
|
38313
|
+
type: "string"
|
|
38314
|
+
},
|
|
38315
|
+
retryable: {
|
|
38316
|
+
const: false,
|
|
38317
|
+
type: "boolean"
|
|
38318
|
+
},
|
|
38319
|
+
data: {
|
|
38320
|
+
additionalProperties: false,
|
|
38321
|
+
type: "object",
|
|
38322
|
+
properties: {}
|
|
38323
|
+
}
|
|
38324
|
+
}
|
|
38325
|
+
},
|
|
38297
38326
|
{
|
|
38298
38327
|
additionalProperties: false,
|
|
38299
38328
|
type: "object",
|
|
@@ -38309,7 +38338,7 @@ var schemaComponents = {
|
|
|
38309
38338
|
type: "string"
|
|
38310
38339
|
},
|
|
38311
38340
|
message: {
|
|
38312
|
-
const: "
|
|
38341
|
+
const: "No eligible organization owner or additional delivery address is available for this agenda.",
|
|
38313
38342
|
type: "string"
|
|
38314
38343
|
},
|
|
38315
38344
|
retryable: {
|
|
@@ -66510,6 +66539,16 @@ var schemaComponents = {
|
|
|
66510
66539
|
deferred: {
|
|
66511
66540
|
description: "`arbolito/advanced` and `arbolito/top`: leave this integration tool's definition out of each request until the model finds it with its tool search, for rarely used tools of an Agent with many. Other tiers offer it as usual.",
|
|
66512
66541
|
type: "boolean"
|
|
66542
|
+
},
|
|
66543
|
+
retryDelaysSeconds: {
|
|
66544
|
+
description: "WhatsApp: delays before automatic retries of transient read failures, in seconds (for example [60,120]). Each entry permits one retry, at most three; [] disables retries. The turn deadline may stop earlier. Mutations and uncertain writes are never automatically repeated.",
|
|
66545
|
+
maxItems: 3,
|
|
66546
|
+
type: "array",
|
|
66547
|
+
items: {
|
|
66548
|
+
minimum: 1,
|
|
66549
|
+
maximum: 120,
|
|
66550
|
+
type: "integer"
|
|
66551
|
+
}
|
|
66513
66552
|
}
|
|
66514
66553
|
}
|
|
66515
66554
|
}
|
|
@@ -76725,11 +76764,11 @@ var schemaComponents = {
|
|
|
76725
76764
|
],
|
|
76726
76765
|
properties: {
|
|
76727
76766
|
enabled: {
|
|
76728
|
-
description: "Email the daily report every day at `sendAt`, in the organization's time zone: the calls and conversations registered in the last 24 hours, the conversations waiting for the team and those that need a review (default
|
|
76767
|
+
description: "Email the daily report every day at `sendAt`, in the organization's time zone: the calls and conversations registered in the last 24 hours, the conversations waiting for the team and those that need a review (default true). A day without activity sends nothing.",
|
|
76729
76768
|
type: "boolean"
|
|
76730
76769
|
},
|
|
76731
76770
|
recipients: {
|
|
76732
|
-
description: "
|
|
76771
|
+
description: "Additional recipients for the daily report alongside eligible workspace owners, at most 10 addresses (default none). It lists the contacts of calls and conversations by name and number: choose recipients who may read the organization's conversations.",
|
|
76733
76772
|
maxItems: 10,
|
|
76734
76773
|
uniqueItems: true,
|
|
76735
76774
|
type: "array",
|
|
@@ -76758,7 +76797,7 @@ var schemaComponents = {
|
|
|
76758
76797
|
],
|
|
76759
76798
|
properties: {
|
|
76760
76799
|
events: {
|
|
76761
|
-
description: "Product emails enabled for this organization.
|
|
76800
|
+
description: "Product emails enabled for this organization. All are enabled unless the organization saves a selection. An empty selection turns all of them off.",
|
|
76762
76801
|
uniqueItems: true,
|
|
76763
76802
|
maxItems: 17,
|
|
76764
76803
|
type: "array",
|
|
@@ -76866,15 +76905,15 @@ var schemaComponents = {
|
|
|
76866
76905
|
],
|
|
76867
76906
|
properties: {
|
|
76868
76907
|
escalations: {
|
|
76869
|
-
description: "Email the recipients, and send the phones a WhatsApp message, when the AI hands a conversation to the team: it escalates a request it cannot resolve, the contact asks for a person, or the Agent's monthly budget is spent (default
|
|
76908
|
+
description: "Email the recipients, and send the phones a WhatsApp message, when the AI hands a conversation to the team: it escalates a request it cannot resolve, the contact asks for a person, or the Agent's monthly budget is spent (default true).",
|
|
76870
76909
|
type: "boolean"
|
|
76871
76910
|
},
|
|
76872
76911
|
failedOutcomes: {
|
|
76873
|
-
description: "Email the recipients when the analysis of a closed conversation concludes that the contact's request was not resolved (outcome failure). A conversation closed for inactivity never counts (default
|
|
76912
|
+
description: "Email the recipients when the analysis of a closed conversation concludes that the contact's request was not resolved (outcome failure). A conversation closed for inactivity never counts (default true).",
|
|
76874
76913
|
type: "boolean"
|
|
76875
76914
|
},
|
|
76876
76915
|
failures: {
|
|
76877
|
-
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
|
|
76916
|
+
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).",
|
|
76878
76917
|
type: "boolean"
|
|
76879
76918
|
},
|
|
76880
76919
|
frequency: {
|
|
@@ -76914,7 +76953,7 @@ var schemaComponents = {
|
|
|
76914
76953
|
}
|
|
76915
76954
|
},
|
|
76916
76955
|
recipients: {
|
|
76917
|
-
description: "
|
|
76956
|
+
description: "Additional recipients for team notices alongside eligible workspace owners, at most 10 addresses (default none). An email carries the conversation's link, channel, times, Agent and state, its title and summary and the analysis' evaluations; never the transcript or the captured data. A summary may name the person: choose recipients who may read the organization's conversations.",
|
|
76918
76957
|
maxItems: 10,
|
|
76919
76958
|
uniqueItems: true,
|
|
76920
76959
|
type: "array",
|
|
@@ -104103,7 +104142,7 @@ var schemaComponents = {
|
|
|
104103
104142
|
enabled: {
|
|
104104
104143
|
anyOf: [
|
|
104105
104144
|
{
|
|
104106
|
-
description: "Email the daily report every day at `sendAt`, in the organization's time zone: the calls and conversations registered in the last 24 hours, the conversations waiting for the team and those that need a review (default
|
|
104145
|
+
description: "Email the daily report every day at `sendAt`, in the organization's time zone: the calls and conversations registered in the last 24 hours, the conversations waiting for the team and those that need a review (default true). A day without activity sends nothing.",
|
|
104107
104146
|
type: "boolean"
|
|
104108
104147
|
},
|
|
104109
104148
|
{
|
|
@@ -104114,7 +104153,7 @@ var schemaComponents = {
|
|
|
104114
104153
|
recipients: {
|
|
104115
104154
|
anyOf: [
|
|
104116
104155
|
{
|
|
104117
|
-
description: "
|
|
104156
|
+
description: "Additional recipients for the daily report alongside eligible workspace owners, at most 10 addresses (default none). It lists the contacts of calls and conversations by name and number: choose recipients who may read the organization's conversations.",
|
|
104118
104157
|
maxItems: 10,
|
|
104119
104158
|
uniqueItems: true,
|
|
104120
104159
|
type: "array",
|
|
@@ -104152,7 +104191,7 @@ var schemaComponents = {
|
|
|
104152
104191
|
events: {
|
|
104153
104192
|
anyOf: [
|
|
104154
104193
|
{
|
|
104155
|
-
description: "Product emails enabled for this organization.
|
|
104194
|
+
description: "Product emails enabled for this organization. All are enabled unless the organization saves a selection. An empty selection turns all of them off.",
|
|
104156
104195
|
uniqueItems: true,
|
|
104157
104196
|
maxItems: 17,
|
|
104158
104197
|
type: "array",
|
|
@@ -104273,7 +104312,7 @@ var schemaComponents = {
|
|
|
104273
104312
|
escalations: {
|
|
104274
104313
|
anyOf: [
|
|
104275
104314
|
{
|
|
104276
|
-
description: "Email the recipients, and send the phones a WhatsApp message, when the AI hands a conversation to the team: it escalates a request it cannot resolve, the contact asks for a person, or the Agent's monthly budget is spent (default
|
|
104315
|
+
description: "Email the recipients, and send the phones a WhatsApp message, when the AI hands a conversation to the team: it escalates a request it cannot resolve, the contact asks for a person, or the Agent's monthly budget is spent (default true).",
|
|
104277
104316
|
type: "boolean"
|
|
104278
104317
|
},
|
|
104279
104318
|
{
|
|
@@ -104284,7 +104323,7 @@ var schemaComponents = {
|
|
|
104284
104323
|
failedOutcomes: {
|
|
104285
104324
|
anyOf: [
|
|
104286
104325
|
{
|
|
104287
|
-
description: "Email the recipients when the analysis of a closed conversation concludes that the contact's request was not resolved (outcome failure). A conversation closed for inactivity never counts (default
|
|
104326
|
+
description: "Email the recipients when the analysis of a closed conversation concludes that the contact's request was not resolved (outcome failure). A conversation closed for inactivity never counts (default true).",
|
|
104288
104327
|
type: "boolean"
|
|
104289
104328
|
},
|
|
104290
104329
|
{
|
|
@@ -104295,7 +104334,7 @@ var schemaComponents = {
|
|
|
104295
104334
|
failures: {
|
|
104296
104335
|
anyOf: [
|
|
104297
104336
|
{
|
|
104298
|
-
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
|
|
104337
|
+
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).",
|
|
104299
104338
|
type: "boolean"
|
|
104300
104339
|
},
|
|
104301
104340
|
{
|
|
@@ -104356,7 +104395,7 @@ var schemaComponents = {
|
|
|
104356
104395
|
recipients: {
|
|
104357
104396
|
anyOf: [
|
|
104358
104397
|
{
|
|
104359
|
-
description: "
|
|
104398
|
+
description: "Additional recipients for team notices alongside eligible workspace owners, at most 10 addresses (default none). An email carries the conversation's link, channel, times, Agent and state, its title and summary and the analysis' evaluations; never the transcript or the captured data. A summary may name the person: choose recipients who may read the organization's conversations.",
|
|
104360
104399
|
maxItems: 10,
|
|
104361
104400
|
uniqueItems: true,
|
|
104362
104401
|
type: "array",
|
|
@@ -108462,9 +108501,9 @@ var schemaComponents = {
|
|
|
108462
108501
|
// src/generated/generation.json
|
|
108463
108502
|
var generation_default = {
|
|
108464
108503
|
formatVersion: 6,
|
|
108465
|
-
release: "1.
|
|
108466
|
-
openapiSha256: "
|
|
108467
|
-
openapiContentSha256: "
|
|
108504
|
+
release: "1.20261103.203558",
|
|
108505
|
+
openapiSha256: "d447f31f01b56f6b95d2b2f7019399b42edf25b99eb6f1eb32c3dd4d85959f7d",
|
|
108506
|
+
openapiContentSha256: "4f7c46eb0ec3879adf357e4c8a4c766c1d6b4d46e894d7dbc265c40ae34b50ed",
|
|
108468
108507
|
forge: {
|
|
108469
108508
|
repository: "https://github.com/cloudflare/forge",
|
|
108470
108509
|
commit: "7f86447210b7bea3779bfdab3cd5655eade0eadb",
|
|
@@ -108477,7 +108516,7 @@ var generation_default = {
|
|
|
108477
108516
|
outputs: [
|
|
108478
108517
|
{
|
|
108479
108518
|
path: "src/generated/commands.ts",
|
|
108480
|
-
sha256: "
|
|
108519
|
+
sha256: "69a976673fced5d914f9316b21dfefe1813ce5b992798fd31d89829f553d732b"
|
|
108481
108520
|
}
|
|
108482
108521
|
]
|
|
108483
108522
|
};
|
|
@@ -108832,7 +108871,7 @@ ${name}`);
|
|
|
108832
108871
|
}
|
|
108833
108872
|
|
|
108834
108873
|
// src/index.ts
|
|
108835
|
-
var VERSION = "3.
|
|
108874
|
+
var VERSION = "3.31.0";
|
|
108836
108875
|
var RELEASE = generation_default.release;
|
|
108837
108876
|
var SDK_PATHS = new Map(Object.values(commands).map((command) => [command.operation, command.sdkPath]));
|
|
108838
108877
|
var SERVICES = [...new Set(Object.keys(commands).map((name) => name.split(" ")[0]))].toSorted();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arbol-ai/cli",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.31.0",
|
|
4
4
|
"description": "The Arbol CLI: the Arbol API from your terminal, with commands generated by Cloudflare Forge from the public OpenAPI.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"arbol",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"verify:with-tests": "bun run typecheck && bun run test && bun run build"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@arbol-ai/sdk": "5.
|
|
48
|
+
"@arbol-ai/sdk": "5.30.0",
|
|
49
49
|
"ajv": "8.20.0",
|
|
50
50
|
"ajv-formats": "3.0.1",
|
|
51
51
|
"oauth4webapi": "3.8.8"
|
|
@@ -60,8 +60,8 @@
|
|
|
60
60
|
"packageManager": "bun@1.4.3",
|
|
61
61
|
"arbol": {
|
|
62
62
|
"openapi": {
|
|
63
|
-
"release": "1.
|
|
64
|
-
"sha256": "
|
|
63
|
+
"release": "1.20261103.203558",
|
|
64
|
+
"sha256": "4f7c46eb0ec3879adf357e4c8a4c766c1d6b4d46e894d7dbc265c40ae34b50ed"
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
}
|