@arbol-ai/cli 2.6.0 → 2.8.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.
Files changed (2) hide show
  1. package/dist/index.js +241 -10
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -15419,6 +15419,46 @@ var commands = {
15419
15419
  confirmation: null,
15420
15420
  hidden: false
15421
15421
  },
15422
+ "raiz conversations delete": {
15423
+ operation: "raiz.conversations.delete",
15424
+ sdkPath: [
15425
+ "raiz",
15426
+ "conversations",
15427
+ "delete"
15428
+ ],
15429
+ pathField: null,
15430
+ fields: [
15431
+ {
15432
+ name: "conversationId",
15433
+ flag: "conversation-id",
15434
+ kind: "string",
15435
+ required: true,
15436
+ description: "Conversation id."
15437
+ }
15438
+ ],
15439
+ inputSchema: {
15440
+ additionalProperties: false,
15441
+ type: "object",
15442
+ required: [
15443
+ "conversationId"
15444
+ ],
15445
+ properties: {
15446
+ conversationId: {
15447
+ description: "Conversation id.",
15448
+ examples: [
15449
+ "cnv_01m45h8q2rf3t9w6y7z0b1c2d3"
15450
+ ],
15451
+ pattern: "^cnv_(?:[0-7][0-9a-hjkmnp-tv-z]{25}|(?:[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}|[a-f0-9]{32}))$",
15452
+ type: "string"
15453
+ }
15454
+ }
15455
+ },
15456
+ title: "Delete a conversation",
15457
+ description: "Delete a closed conversation: it leaves every list and report, its transcript and facts are kept, and the history records who deleted it. Not an AI tool.",
15458
+ effect: "delete",
15459
+ confirmation: "Delete a conversation. This cannot be undone.",
15460
+ hidden: false
15461
+ },
15422
15462
  "raiz conversations get": {
15423
15463
  operation: "raiz.conversations.get",
15424
15464
  sdkPath: [
@@ -19243,9 +19283,10 @@ var commands = {
19243
19283
  flag: "name",
19244
19284
  kind: "string",
19245
19285
  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).",
19286
+ 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
19287
  choices: [
19248
19288
  "conversations_daily",
19289
+ "pqrsf_daily",
19249
19290
  "tool_calls_daily",
19250
19291
  "tool_calls",
19251
19292
  "booking_outcomes",
@@ -19310,12 +19351,16 @@ var commands = {
19310
19351
  type: "string"
19311
19352
  },
19312
19353
  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).",
19354
+ 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
19355
  anyOf: [
19315
19356
  {
19316
19357
  const: "conversations_daily",
19317
19358
  type: "string"
19318
19359
  },
19360
+ {
19361
+ const: "pqrsf_daily",
19362
+ type: "string"
19363
+ },
19319
19364
  {
19320
19365
  const: "tool_calls_daily",
19321
19366
  type: "string"
@@ -19350,7 +19395,7 @@ var commands = {
19350
19395
  additionalProperties: false
19351
19396
  },
19352
19397
  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.",
19398
+ 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
19399
  effect: "read",
19355
19400
  confirmation: null,
19356
19401
  hidden: false
@@ -41246,6 +41291,7 @@ var schemaComponents = {
41246
41291
  additionalProperties: false,
41247
41292
  type: "object",
41248
41293
  required: [
41294
+ "automaticKnowledge",
41249
41295
  "attachmentReader",
41250
41296
  "budgetExhaustedMessage",
41251
41297
  "closingMessage",
@@ -41268,6 +41314,17 @@ var schemaComponents = {
41268
41314
  "voice"
41269
41315
  ],
41270
41316
  properties: {
41317
+ automaticKnowledge: {
41318
+ anyOf: [
41319
+ {
41320
+ 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.",
41321
+ type: "boolean"
41322
+ },
41323
+ {
41324
+ type: "null"
41325
+ }
41326
+ ]
41327
+ },
41271
41328
  attachmentReader: {
41272
41329
  anyOf: [
41273
41330
  {
@@ -41557,6 +41614,17 @@ var schemaComponents = {
41557
41614
  additionalProperties: false,
41558
41615
  type: "object",
41559
41616
  properties: {
41617
+ automaticKnowledge: {
41618
+ anyOf: [
41619
+ {
41620
+ 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.",
41621
+ type: "boolean"
41622
+ },
41623
+ {
41624
+ type: "null"
41625
+ }
41626
+ ]
41627
+ },
41560
41628
  attachmentReader: {
41561
41629
  anyOf: [
41562
41630
  {
@@ -42317,7 +42385,7 @@ var schemaComponents = {
42317
42385
  ]
42318
42386
  },
42319
42387
  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. It 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.",
42388
+ 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
42389
  maxLength: 1000,
42322
42390
  minLength: 1,
42323
42391
  type: "string"
@@ -42347,6 +42415,18 @@ var schemaComponents = {
42347
42415
  $ref: "#/components/schemas/RaizBusinessHoursWindow",
42348
42416
  description: "Open on these days from `from` until `to`, local time."
42349
42417
  }
42418
+ },
42419
+ outsideHoursTemplate: {
42420
+ 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`.",
42421
+ anyOf: [
42422
+ {
42423
+ $ref: "#/components/schemas/RaizOutsideHoursTemplate",
42424
+ description: "An approved template of the number's WhatsApp Business Account, by name and language."
42425
+ },
42426
+ {
42427
+ type: "null"
42428
+ }
42429
+ ]
42350
42430
  }
42351
42431
  }
42352
42432
  },
@@ -51431,6 +51511,32 @@ var schemaComponents = {
51431
51511
  }
51432
51512
  }
51433
51513
  },
51514
+ RaizOutsideHoursTemplate: {
51515
+ additionalProperties: false,
51516
+ type: "object",
51517
+ required: [
51518
+ "language",
51519
+ "name"
51520
+ ],
51521
+ properties: {
51522
+ language: {
51523
+ description: "The template's language in WhatsApp's code, for example `es` or `es_MX`.",
51524
+ examples: [
51525
+ "es"
51526
+ ],
51527
+ pattern: "^[a-z]{2,3}(_[A-Z]{2})?$",
51528
+ type: "string"
51529
+ },
51530
+ name: {
51531
+ description: "The template's name.",
51532
+ examples: [
51533
+ "outside_hours_notice"
51534
+ ],
51535
+ pattern: "^[a-z0-9_]{1,512}$",
51536
+ type: "string"
51537
+ }
51538
+ }
51539
+ },
51434
51540
  RaizPhoneNumber: {
51435
51541
  pattern: "^\\+[1-9][0-9]{1,14}$",
51436
51542
  type: "string"
@@ -51927,6 +52033,110 @@ var schemaComponents = {
51927
52033
  }
51928
52034
  }
51929
52035
  },
52036
+ {
52037
+ additionalProperties: false,
52038
+ type: "object",
52039
+ required: [
52040
+ "from",
52041
+ "hasMore",
52042
+ "to",
52043
+ "name",
52044
+ "rows"
52045
+ ],
52046
+ properties: {
52047
+ from: {
52048
+ description: "A calendar day in the organization's time zone.",
52049
+ format: "date",
52050
+ type: "string"
52051
+ },
52052
+ hasMore: {
52053
+ description: "More than 1000 rows matched: narrow the range or the filters.",
52054
+ type: "boolean"
52055
+ },
52056
+ to: {
52057
+ description: "A calendar day in the organization's time zone.",
52058
+ format: "date",
52059
+ type: "string"
52060
+ },
52061
+ name: {
52062
+ const: "pqrsf_daily",
52063
+ type: "string"
52064
+ },
52065
+ rows: {
52066
+ maxItems: 1000,
52067
+ type: "array",
52068
+ items: {
52069
+ additionalProperties: false,
52070
+ type: "object",
52071
+ required: [
52072
+ "day",
52073
+ "conversationCount",
52074
+ "analyzedCount",
52075
+ "informativeResolvedCount",
52076
+ "informativeUnresolvedCount",
52077
+ "formalPqrsfCount",
52078
+ "unclassifiedCount",
52079
+ "confirmedResolutionCount",
52080
+ "referralRequiredCount",
52081
+ "referralCorrectCount",
52082
+ "referralIncorrectCount",
52083
+ "referralPendingCount"
52084
+ ],
52085
+ properties: {
52086
+ day: {
52087
+ description: "A calendar day in the organization's time zone.",
52088
+ format: "date",
52089
+ type: "string"
52090
+ },
52091
+ conversationCount: {
52092
+ minimum: 0,
52093
+ type: "integer"
52094
+ },
52095
+ analyzedCount: {
52096
+ minimum: 0,
52097
+ type: "integer"
52098
+ },
52099
+ informativeResolvedCount: {
52100
+ minimum: 0,
52101
+ type: "integer"
52102
+ },
52103
+ informativeUnresolvedCount: {
52104
+ minimum: 0,
52105
+ type: "integer"
52106
+ },
52107
+ formalPqrsfCount: {
52108
+ minimum: 0,
52109
+ type: "integer"
52110
+ },
52111
+ unclassifiedCount: {
52112
+ minimum: 0,
52113
+ type: "integer"
52114
+ },
52115
+ confirmedResolutionCount: {
52116
+ minimum: 0,
52117
+ type: "integer"
52118
+ },
52119
+ referralRequiredCount: {
52120
+ minimum: 0,
52121
+ type: "integer"
52122
+ },
52123
+ referralCorrectCount: {
52124
+ minimum: 0,
52125
+ type: "integer"
52126
+ },
52127
+ referralIncorrectCount: {
52128
+ minimum: 0,
52129
+ type: "integer"
52130
+ },
52131
+ referralPendingCount: {
52132
+ minimum: 0,
52133
+ type: "integer"
52134
+ }
52135
+ }
52136
+ }
52137
+ }
52138
+ }
52139
+ },
51930
52140
  {
51931
52141
  additionalProperties: false,
51932
52142
  type: "object",
@@ -67496,6 +67706,23 @@ var schemaComponents = {
67496
67706
  },
67497
67707
  additionalProperties: false
67498
67708
  },
67709
+ RaizConversationsDeleteInput: {
67710
+ additionalProperties: false,
67711
+ type: "object",
67712
+ required: [
67713
+ "conversationId"
67714
+ ],
67715
+ properties: {
67716
+ conversationId: {
67717
+ description: "Conversation id.",
67718
+ examples: [
67719
+ "cnv_01m45h8q2rf3t9w6y7z0b1c2d3"
67720
+ ],
67721
+ pattern: "^cnv_(?:[0-7][0-9a-hjkmnp-tv-z]{25}|(?:[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}|[a-f0-9]{32}))$",
67722
+ type: "string"
67723
+ }
67724
+ }
67725
+ },
67499
67726
  RaizConversationsGetInput: {
67500
67727
  type: "object",
67501
67728
  properties: {
@@ -69516,12 +69743,16 @@ var schemaComponents = {
69516
69743
  type: "string"
69517
69744
  },
69518
69745
  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).",
69746
+ 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
69747
  anyOf: [
69521
69748
  {
69522
69749
  const: "conversations_daily",
69523
69750
  type: "string"
69524
69751
  },
69752
+ {
69753
+ const: "pqrsf_daily",
69754
+ type: "string"
69755
+ },
69525
69756
  {
69526
69757
  const: "tool_calls_daily",
69527
69758
  type: "string"
@@ -73018,9 +73249,9 @@ var schemaComponents = {
73018
73249
  // src/generated/generation.json
73019
73250
  var generation_default = {
73020
73251
  formatVersion: 6,
73021
- release: "1.20261022.214640",
73022
- openapiSha256: "07df005c83ee996aeac081f6291a06b976ca88cb57bc00e30a533b19bc844e61",
73023
- openapiContentSha256: "7ab911484cc0f05d9a2ef6b4851b369b666ccfdb43cb7086b6f91f60755f855a",
73252
+ release: "1.20261023.34948",
73253
+ openapiSha256: "536c2fe460227332df9c3188c88b557917ec321ccc30839c4bbd4155eef67c2d",
73254
+ openapiContentSha256: "5e0595dc6bae6f9f6ac64d2a632d1b1d6bf0bfbdbd2bb939a80407b38f69f96a",
73024
73255
  forge: {
73025
73256
  repository: "https://github.com/cloudflare/forge",
73026
73257
  commit: "7f86447210b7bea3779bfdab3cd5655eade0eadb",
@@ -73033,7 +73264,7 @@ var generation_default = {
73033
73264
  outputs: [
73034
73265
  {
73035
73266
  path: "src/generated/commands.ts",
73036
- sha256: "007c9676e6634b3837c94b4e43c465919f3db316e538838066fc806949f560ea"
73267
+ sha256: "6584cbdbc4dc8700562d4b5e3a895120af47200163f43a75385a70d319241122"
73037
73268
  }
73038
73269
  ]
73039
73270
  };
@@ -73388,7 +73619,7 @@ ${name}`);
73388
73619
  }
73389
73620
 
73390
73621
  // src/index.ts
73391
- var VERSION = "2.6.0";
73622
+ var VERSION = "2.8.0";
73392
73623
  var RELEASE = generation_default.release;
73393
73624
  var SDK_PATHS = new Map(Object.values(commands).map((command) => [command.operation, command.sdkPath]));
73394
73625
  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.6.0",
3
+ "version": "2.8.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.7.0",
47
+ "@arbol-ai/sdk": "2.9.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.20261022.214640",
63
- "sha256": "7ab911484cc0f05d9a2ef6b4851b369b666ccfdb43cb7086b6f91f60755f855a"
62
+ "release": "1.20261023.34948",
63
+ "sha256": "5e0595dc6bae6f9f6ac64d2a632d1b1d6bf0bfbdbd2bb939a80407b38f69f96a"
64
64
  }
65
65
  }
66
66
  }