@arbol-ai/cli 2.6.0 → 2.7.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 +184 -10
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -19243,9 +19243,10 @@ var commands = {
|
|
|
19243
19243
|
flag: "name",
|
|
19244
19244
|
kind: "string",
|
|
19245
19245
|
required: true,
|
|
19246
|
-
description: "`conversations_daily`: conversations the AI took part in per day, Agent, channel type and direction, with outcomes and escalations (filters `agentId`, `channelType`). `booking_outcomes`: verified saved booking receipts per completion day, Agent and integration, excluding test/import/deleted conversations; confirmed new bookings, reschedules, cancellations, failed, pending, unverified and duplicate receipts separately (filter `agentId`). Historical evidence, not current appointment status; hasMore requires splitting the range and returns no partial totals. `tool_calls_daily`: tool calls per day, Agent and tool with failures/durations (filter `agentId`). `tool_calls`: individual calls, never inputs/outputs (filter `agentId`). `assessment_results_daily`: assessments per day/definition (filter `definitionId`). `campaign_progress`: recipients by status (filter `campaignId`; no dates).",
|
|
19246
|
+
description: "`conversations_daily`: conversations the AI took part in per day, Agent, channel type and direction, with outcomes and escalations (filters `agentId`, `channelType`). `booking_outcomes`: verified saved booking receipts per completion day, Agent and integration, excluding test/import/deleted conversations; confirmed new bookings, reschedules, cancellations, failed, pending, unverified and duplicate receipts separately (filter `agentId`). Historical evidence, not current appointment status; hasMore requires splitting the range and returns no partial totals. `tool_calls_daily`: tool calls per day, Agent and tool with failures/durations (filter `agentId`). `tool_calls`: individual calls, never inputs/outputs (filter `agentId`). `assessment_results_daily`: assessments per day/definition (filter `definitionId`). `pqrsf_daily`: classification, confirmed resolution and referral-link counts from the pqrsf_* definitions, including pending/unclassified conversations, excluding tests/imports/deleted records (filters `agentId`, `channelType`); no measured filing reduction is inferred. `campaign_progress`: recipients by status (filter `campaignId`; no dates).",
|
|
19247
19247
|
choices: [
|
|
19248
19248
|
"conversations_daily",
|
|
19249
|
+
"pqrsf_daily",
|
|
19249
19250
|
"tool_calls_daily",
|
|
19250
19251
|
"tool_calls",
|
|
19251
19252
|
"booking_outcomes",
|
|
@@ -19310,12 +19311,16 @@ var commands = {
|
|
|
19310
19311
|
type: "string"
|
|
19311
19312
|
},
|
|
19312
19313
|
name: {
|
|
19313
|
-
description: "`conversations_daily`: conversations the AI took part in per day, Agent, channel type and direction, with outcomes and escalations (filters `agentId`, `channelType`). `booking_outcomes`: verified saved booking receipts per completion day, Agent and integration, excluding test/import/deleted conversations; confirmed new bookings, reschedules, cancellations, failed, pending, unverified and duplicate receipts separately (filter `agentId`). Historical evidence, not current appointment status; hasMore requires splitting the range and returns no partial totals. `tool_calls_daily`: tool calls per day, Agent and tool with failures/durations (filter `agentId`). `tool_calls`: individual calls, never inputs/outputs (filter `agentId`). `assessment_results_daily`: assessments per day/definition (filter `definitionId`). `campaign_progress`: recipients by status (filter `campaignId`; no dates).",
|
|
19314
|
+
description: "`conversations_daily`: conversations the AI took part in per day, Agent, channel type and direction, with outcomes and escalations (filters `agentId`, `channelType`). `booking_outcomes`: verified saved booking receipts per completion day, Agent and integration, excluding test/import/deleted conversations; confirmed new bookings, reschedules, cancellations, failed, pending, unverified and duplicate receipts separately (filter `agentId`). Historical evidence, not current appointment status; hasMore requires splitting the range and returns no partial totals. `tool_calls_daily`: tool calls per day, Agent and tool with failures/durations (filter `agentId`). `tool_calls`: individual calls, never inputs/outputs (filter `agentId`). `assessment_results_daily`: assessments per day/definition (filter `definitionId`). `pqrsf_daily`: classification, confirmed resolution and referral-link counts from the pqrsf_* definitions, including pending/unclassified conversations, excluding tests/imports/deleted records (filters `agentId`, `channelType`); no measured filing reduction is inferred. `campaign_progress`: recipients by status (filter `campaignId`; no dates).",
|
|
19314
19315
|
anyOf: [
|
|
19315
19316
|
{
|
|
19316
19317
|
const: "conversations_daily",
|
|
19317
19318
|
type: "string"
|
|
19318
19319
|
},
|
|
19320
|
+
{
|
|
19321
|
+
const: "pqrsf_daily",
|
|
19322
|
+
type: "string"
|
|
19323
|
+
},
|
|
19319
19324
|
{
|
|
19320
19325
|
const: "tool_calls_daily",
|
|
19321
19326
|
type: "string"
|
|
@@ -19350,7 +19355,7 @@ var commands = {
|
|
|
19350
19355
|
additionalProperties: false
|
|
19351
19356
|
},
|
|
19352
19357
|
title: "Get a report",
|
|
19353
|
-
description: "Get the numbers behind a question. `name`: `conversations_daily` (conversations the AI took part in, per day), `booking_outcomes` (verified saved booking receipts by completion day and integration, excluding tests, imports and deleted conversations; createdCount counts new appointments created by the AI, not confirmations of existing appointments; confirmedCount is its compatibility alias and must not be added again; reschedules, cancellations, failures, pending and unverified results separately), `tool_calls_daily` (Agent tool calls per day), `tool_calls` (each call, newest first), `assessment_results_daily` (assessment results per day), each over days in the organization's time zone (`from`, `to`; the last 30 days by default), or `campaign_progress`. Narrow with `agentId`, `channelType`, `campaignId` or `definitionId`; unsupported filters fail. At most 1000 rows: `hasMore` means split the range or filter. Booking outcomes return no partial totals when their evidence scan exceeds its bound. Conversation success and completed tool calls never establish a booking; these are historical receipts, not the provider's current appointment status.",
|
|
19358
|
+
description: "Get the numbers behind a question. `name`: `conversations_daily` (conversations the AI took part in, per day), `booking_outcomes` (verified saved booking receipts by completion day and integration, excluding tests, imports and deleted conversations; createdCount counts new appointments created by the AI, not confirmations of existing appointments; confirmedCount is its compatibility alias and must not be added again; reschedules, cancellations, failures, pending and unverified results separately), `tool_calls_daily` (Agent tool calls per day), `tool_calls` (each call, newest first), `assessment_results_daily` (assessment results per day), `pqrsf_daily` (PQRSF classification, confirmed informational resolution and correct referrals from current pqrsf_* facts; unknown and pending analysis remain visible; excludes tests/imports/deleted records), each over days in the organization's time zone (`from`, `to`; the last 30 days by default), or `campaign_progress`. Narrow with `agentId`, `channelType`, `campaignId` or `definitionId`; unsupported filters fail. At most 1000 rows: `hasMore` means split the range or filter. Booking outcomes return no partial totals when their evidence scan exceeds its bound. Conversation success and completed tool calls never establish a booking; these are historical receipts, not the provider's current appointment status.",
|
|
19354
19359
|
effect: "read",
|
|
19355
19360
|
confirmation: null,
|
|
19356
19361
|
hidden: false
|
|
@@ -41246,6 +41251,7 @@ var schemaComponents = {
|
|
|
41246
41251
|
additionalProperties: false,
|
|
41247
41252
|
type: "object",
|
|
41248
41253
|
required: [
|
|
41254
|
+
"automaticKnowledge",
|
|
41249
41255
|
"attachmentReader",
|
|
41250
41256
|
"budgetExhaustedMessage",
|
|
41251
41257
|
"closingMessage",
|
|
@@ -41268,6 +41274,17 @@ var schemaComponents = {
|
|
|
41268
41274
|
"voice"
|
|
41269
41275
|
],
|
|
41270
41276
|
properties: {
|
|
41277
|
+
automaticKnowledge: {
|
|
41278
|
+
anyOf: [
|
|
41279
|
+
{
|
|
41280
|
+
description: "Text Agents. Retrieve relevant passages from this Agent's active Knowledge before a substantive contact message, without a model tool call. Null or false: on-demand search only. Does not store contact memories or learn unreviewed answers.",
|
|
41281
|
+
type: "boolean"
|
|
41282
|
+
},
|
|
41283
|
+
{
|
|
41284
|
+
type: "null"
|
|
41285
|
+
}
|
|
41286
|
+
]
|
|
41287
|
+
},
|
|
41271
41288
|
attachmentReader: {
|
|
41272
41289
|
anyOf: [
|
|
41273
41290
|
{
|
|
@@ -41557,6 +41574,17 @@ var schemaComponents = {
|
|
|
41557
41574
|
additionalProperties: false,
|
|
41558
41575
|
type: "object",
|
|
41559
41576
|
properties: {
|
|
41577
|
+
automaticKnowledge: {
|
|
41578
|
+
anyOf: [
|
|
41579
|
+
{
|
|
41580
|
+
description: "Text Agents. Retrieve relevant passages from this Agent's active Knowledge before a substantive contact message, without a model tool call. Null or false: on-demand search only. Does not store contact memories or learn unreviewed answers.",
|
|
41581
|
+
type: "boolean"
|
|
41582
|
+
},
|
|
41583
|
+
{
|
|
41584
|
+
type: "null"
|
|
41585
|
+
}
|
|
41586
|
+
]
|
|
41587
|
+
},
|
|
41560
41588
|
attachmentReader: {
|
|
41561
41589
|
anyOf: [
|
|
41562
41590
|
{
|
|
@@ -42317,7 +42345,7 @@ var schemaComponents = {
|
|
|
42317
42345
|
]
|
|
42318
42346
|
},
|
|
42319
42347
|
outsideHoursMessage: {
|
|
42320
|
-
description: "What whoever writes outside the hours receives, once per number and closed period (until the hours open again), whether the conversation's AI is on, off or paused.
|
|
42348
|
+
description: "What whoever writes outside the hours receives, once per number and closed period (until the hours open again), whether the conversation's AI is on, off or paused. With `outsideHoursTemplate`, the template goes instead, and this text only when WhatsApp refuses the template. The notice is never taken as an answer: the AI answers what the contact wrote when a person turns it on or resumes it in business hours.",
|
|
42321
42349
|
maxLength: 1000,
|
|
42322
42350
|
minLength: 1,
|
|
42323
42351
|
type: "string"
|
|
@@ -42347,6 +42375,18 @@ var schemaComponents = {
|
|
|
42347
42375
|
$ref: "#/components/schemas/RaizBusinessHoursWindow",
|
|
42348
42376
|
description: "Open on these days from `from` until `to`, local time."
|
|
42349
42377
|
}
|
|
42378
|
+
},
|
|
42379
|
+
outsideHoursTemplate: {
|
|
42380
|
+
description: "Send the notice as this approved WhatsApp template instead of `outsideHoursMessage`: a template of the number's account with no variables and no document, image or video header (in `list_templates`: `sendable`, with `parameterCount` 0). WhatsApp's approval is checked when the hours are saved. If WhatsApp refuses the template when a notice goes (deleted, paused or disabled since), `outsideHoursMessage` goes instead. Null or absent: the notice is `outsideHoursMessage`.",
|
|
42381
|
+
anyOf: [
|
|
42382
|
+
{
|
|
42383
|
+
$ref: "#/components/schemas/RaizOutsideHoursTemplate",
|
|
42384
|
+
description: "An approved template of the number's WhatsApp Business Account, by name and language."
|
|
42385
|
+
},
|
|
42386
|
+
{
|
|
42387
|
+
type: "null"
|
|
42388
|
+
}
|
|
42389
|
+
]
|
|
42350
42390
|
}
|
|
42351
42391
|
}
|
|
42352
42392
|
},
|
|
@@ -51431,6 +51471,32 @@ var schemaComponents = {
|
|
|
51431
51471
|
}
|
|
51432
51472
|
}
|
|
51433
51473
|
},
|
|
51474
|
+
RaizOutsideHoursTemplate: {
|
|
51475
|
+
additionalProperties: false,
|
|
51476
|
+
type: "object",
|
|
51477
|
+
required: [
|
|
51478
|
+
"language",
|
|
51479
|
+
"name"
|
|
51480
|
+
],
|
|
51481
|
+
properties: {
|
|
51482
|
+
language: {
|
|
51483
|
+
description: "The template's language in WhatsApp's code, for example `es` or `es_MX`.",
|
|
51484
|
+
examples: [
|
|
51485
|
+
"es"
|
|
51486
|
+
],
|
|
51487
|
+
pattern: "^[a-z]{2,3}(_[A-Z]{2})?$",
|
|
51488
|
+
type: "string"
|
|
51489
|
+
},
|
|
51490
|
+
name: {
|
|
51491
|
+
description: "The template's name.",
|
|
51492
|
+
examples: [
|
|
51493
|
+
"outside_hours_notice"
|
|
51494
|
+
],
|
|
51495
|
+
pattern: "^[a-z0-9_]{1,512}$",
|
|
51496
|
+
type: "string"
|
|
51497
|
+
}
|
|
51498
|
+
}
|
|
51499
|
+
},
|
|
51434
51500
|
RaizPhoneNumber: {
|
|
51435
51501
|
pattern: "^\\+[1-9][0-9]{1,14}$",
|
|
51436
51502
|
type: "string"
|
|
@@ -51927,6 +51993,110 @@ var schemaComponents = {
|
|
|
51927
51993
|
}
|
|
51928
51994
|
}
|
|
51929
51995
|
},
|
|
51996
|
+
{
|
|
51997
|
+
additionalProperties: false,
|
|
51998
|
+
type: "object",
|
|
51999
|
+
required: [
|
|
52000
|
+
"from",
|
|
52001
|
+
"hasMore",
|
|
52002
|
+
"to",
|
|
52003
|
+
"name",
|
|
52004
|
+
"rows"
|
|
52005
|
+
],
|
|
52006
|
+
properties: {
|
|
52007
|
+
from: {
|
|
52008
|
+
description: "A calendar day in the organization's time zone.",
|
|
52009
|
+
format: "date",
|
|
52010
|
+
type: "string"
|
|
52011
|
+
},
|
|
52012
|
+
hasMore: {
|
|
52013
|
+
description: "More than 1000 rows matched: narrow the range or the filters.",
|
|
52014
|
+
type: "boolean"
|
|
52015
|
+
},
|
|
52016
|
+
to: {
|
|
52017
|
+
description: "A calendar day in the organization's time zone.",
|
|
52018
|
+
format: "date",
|
|
52019
|
+
type: "string"
|
|
52020
|
+
},
|
|
52021
|
+
name: {
|
|
52022
|
+
const: "pqrsf_daily",
|
|
52023
|
+
type: "string"
|
|
52024
|
+
},
|
|
52025
|
+
rows: {
|
|
52026
|
+
maxItems: 1000,
|
|
52027
|
+
type: "array",
|
|
52028
|
+
items: {
|
|
52029
|
+
additionalProperties: false,
|
|
52030
|
+
type: "object",
|
|
52031
|
+
required: [
|
|
52032
|
+
"day",
|
|
52033
|
+
"conversationCount",
|
|
52034
|
+
"analyzedCount",
|
|
52035
|
+
"informativeResolvedCount",
|
|
52036
|
+
"informativeUnresolvedCount",
|
|
52037
|
+
"formalPqrsfCount",
|
|
52038
|
+
"unclassifiedCount",
|
|
52039
|
+
"confirmedResolutionCount",
|
|
52040
|
+
"referralRequiredCount",
|
|
52041
|
+
"referralCorrectCount",
|
|
52042
|
+
"referralIncorrectCount",
|
|
52043
|
+
"referralPendingCount"
|
|
52044
|
+
],
|
|
52045
|
+
properties: {
|
|
52046
|
+
day: {
|
|
52047
|
+
description: "A calendar day in the organization's time zone.",
|
|
52048
|
+
format: "date",
|
|
52049
|
+
type: "string"
|
|
52050
|
+
},
|
|
52051
|
+
conversationCount: {
|
|
52052
|
+
minimum: 0,
|
|
52053
|
+
type: "integer"
|
|
52054
|
+
},
|
|
52055
|
+
analyzedCount: {
|
|
52056
|
+
minimum: 0,
|
|
52057
|
+
type: "integer"
|
|
52058
|
+
},
|
|
52059
|
+
informativeResolvedCount: {
|
|
52060
|
+
minimum: 0,
|
|
52061
|
+
type: "integer"
|
|
52062
|
+
},
|
|
52063
|
+
informativeUnresolvedCount: {
|
|
52064
|
+
minimum: 0,
|
|
52065
|
+
type: "integer"
|
|
52066
|
+
},
|
|
52067
|
+
formalPqrsfCount: {
|
|
52068
|
+
minimum: 0,
|
|
52069
|
+
type: "integer"
|
|
52070
|
+
},
|
|
52071
|
+
unclassifiedCount: {
|
|
52072
|
+
minimum: 0,
|
|
52073
|
+
type: "integer"
|
|
52074
|
+
},
|
|
52075
|
+
confirmedResolutionCount: {
|
|
52076
|
+
minimum: 0,
|
|
52077
|
+
type: "integer"
|
|
52078
|
+
},
|
|
52079
|
+
referralRequiredCount: {
|
|
52080
|
+
minimum: 0,
|
|
52081
|
+
type: "integer"
|
|
52082
|
+
},
|
|
52083
|
+
referralCorrectCount: {
|
|
52084
|
+
minimum: 0,
|
|
52085
|
+
type: "integer"
|
|
52086
|
+
},
|
|
52087
|
+
referralIncorrectCount: {
|
|
52088
|
+
minimum: 0,
|
|
52089
|
+
type: "integer"
|
|
52090
|
+
},
|
|
52091
|
+
referralPendingCount: {
|
|
52092
|
+
minimum: 0,
|
|
52093
|
+
type: "integer"
|
|
52094
|
+
}
|
|
52095
|
+
}
|
|
52096
|
+
}
|
|
52097
|
+
}
|
|
52098
|
+
}
|
|
52099
|
+
},
|
|
51930
52100
|
{
|
|
51931
52101
|
additionalProperties: false,
|
|
51932
52102
|
type: "object",
|
|
@@ -69516,12 +69686,16 @@ var schemaComponents = {
|
|
|
69516
69686
|
type: "string"
|
|
69517
69687
|
},
|
|
69518
69688
|
name: {
|
|
69519
|
-
description: "`conversations_daily`: conversations the AI took part in per day, Agent, channel type and direction, with outcomes and escalations (filters `agentId`, `channelType`). `booking_outcomes`: verified saved booking receipts per completion day, Agent and integration, excluding test/import/deleted conversations; confirmed new bookings, reschedules, cancellations, failed, pending, unverified and duplicate receipts separately (filter `agentId`). Historical evidence, not current appointment status; hasMore requires splitting the range and returns no partial totals. `tool_calls_daily`: tool calls per day, Agent and tool with failures/durations (filter `agentId`). `tool_calls`: individual calls, never inputs/outputs (filter `agentId`). `assessment_results_daily`: assessments per day/definition (filter `definitionId`). `campaign_progress`: recipients by status (filter `campaignId`; no dates).",
|
|
69689
|
+
description: "`conversations_daily`: conversations the AI took part in per day, Agent, channel type and direction, with outcomes and escalations (filters `agentId`, `channelType`). `booking_outcomes`: verified saved booking receipts per completion day, Agent and integration, excluding test/import/deleted conversations; confirmed new bookings, reschedules, cancellations, failed, pending, unverified and duplicate receipts separately (filter `agentId`). Historical evidence, not current appointment status; hasMore requires splitting the range and returns no partial totals. `tool_calls_daily`: tool calls per day, Agent and tool with failures/durations (filter `agentId`). `tool_calls`: individual calls, never inputs/outputs (filter `agentId`). `assessment_results_daily`: assessments per day/definition (filter `definitionId`). `pqrsf_daily`: classification, confirmed resolution and referral-link counts from the pqrsf_* definitions, including pending/unclassified conversations, excluding tests/imports/deleted records (filters `agentId`, `channelType`); no measured filing reduction is inferred. `campaign_progress`: recipients by status (filter `campaignId`; no dates).",
|
|
69520
69690
|
anyOf: [
|
|
69521
69691
|
{
|
|
69522
69692
|
const: "conversations_daily",
|
|
69523
69693
|
type: "string"
|
|
69524
69694
|
},
|
|
69695
|
+
{
|
|
69696
|
+
const: "pqrsf_daily",
|
|
69697
|
+
type: "string"
|
|
69698
|
+
},
|
|
69525
69699
|
{
|
|
69526
69700
|
const: "tool_calls_daily",
|
|
69527
69701
|
type: "string"
|
|
@@ -73018,9 +73192,9 @@ var schemaComponents = {
|
|
|
73018
73192
|
// src/generated/generation.json
|
|
73019
73193
|
var generation_default = {
|
|
73020
73194
|
formatVersion: 6,
|
|
73021
|
-
release: "1.
|
|
73022
|
-
openapiSha256: "
|
|
73023
|
-
openapiContentSha256: "
|
|
73195
|
+
release: "1.20261023.13947",
|
|
73196
|
+
openapiSha256: "922e8f634818548570d7cd6f85d240c2207870cbe5d5b3a176af2743e8fb20ff",
|
|
73197
|
+
openapiContentSha256: "1c5faf8f909599f3c67cb00c9370946d6ffd505ee2885a7d62170f253b3c736d",
|
|
73024
73198
|
forge: {
|
|
73025
73199
|
repository: "https://github.com/cloudflare/forge",
|
|
73026
73200
|
commit: "7f86447210b7bea3779bfdab3cd5655eade0eadb",
|
|
@@ -73033,7 +73207,7 @@ var generation_default = {
|
|
|
73033
73207
|
outputs: [
|
|
73034
73208
|
{
|
|
73035
73209
|
path: "src/generated/commands.ts",
|
|
73036
|
-
sha256: "
|
|
73210
|
+
sha256: "eef35f981f1a13a2020f600d5f6da76b48af252dae6b4ff21820901c25327258"
|
|
73037
73211
|
}
|
|
73038
73212
|
]
|
|
73039
73213
|
};
|
|
@@ -73388,7 +73562,7 @@ ${name}`);
|
|
|
73388
73562
|
}
|
|
73389
73563
|
|
|
73390
73564
|
// src/index.ts
|
|
73391
|
-
var VERSION = "2.
|
|
73565
|
+
var VERSION = "2.7.0";
|
|
73392
73566
|
var RELEASE = generation_default.release;
|
|
73393
73567
|
var SDK_PATHS = new Map(Object.values(commands).map((command) => [command.operation, command.sdkPath]));
|
|
73394
73568
|
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": "2.
|
|
3
|
+
"version": "2.7.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",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"verify": "bun run typecheck && bun run test && bun run build"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@arbol-ai/sdk": "2.
|
|
47
|
+
"@arbol-ai/sdk": "2.8.0",
|
|
48
48
|
"ajv": "8.20.0",
|
|
49
49
|
"ajv-formats": "3.0.1",
|
|
50
50
|
"oauth4webapi": "3.8.8"
|
|
@@ -59,8 +59,8 @@
|
|
|
59
59
|
"packageManager": "bun@1.4.3",
|
|
60
60
|
"arbol": {
|
|
61
61
|
"openapi": {
|
|
62
|
-
"release": "1.
|
|
63
|
-
"sha256": "
|
|
62
|
+
"release": "1.20261023.13947",
|
|
63
|
+
"sha256": "1c5faf8f909599f3c67cb00c9370946d6ffd505ee2885a7d62170f253b3c736d"
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
}
|