@arbol-ai/cli 3.47.0 → 3.49.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 +707 -15
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -20828,6 +20828,40 @@ var commands = {
20828
20828
  description: "A short internal note about the resolved blocker, authoritative evidence, confirmed appointments and any remaining request. A note does not establish coverage, clinical equivalence, consent or a booking. Preserve explicit human requests and unresolved clinical decisions, identity conflicts or uncertain writes with the team.",
20829
20829
  maxLength: 500
20830
20830
  },
20831
+ template: {
20832
+ type: "object",
20833
+ required: [
20834
+ "language",
20835
+ "name"
20836
+ ],
20837
+ properties: {
20838
+ header: {
20839
+ $ref: "#/components/schemas/RaizTemplateHeaderFile",
20840
+ description: "The file shown above the text of a template whose header is a document, image or video, different on every send (an appointment's receipt, a ticket). Required by such a template, refused by any other."
20841
+ },
20842
+ language: {
20843
+ type: "string",
20844
+ maxLength: 15,
20845
+ minLength: 2
20846
+ },
20847
+ name: {
20848
+ type: "string",
20849
+ maxLength: 512,
20850
+ minLength: 1
20851
+ },
20852
+ parameters: {
20853
+ type: "array",
20854
+ items: {
20855
+ type: "string",
20856
+ maxLength: 1024
20857
+ },
20858
+ description: "Body parameters, in order.",
20859
+ maxItems: 20
20860
+ }
20861
+ },
20862
+ additionalProperties: false,
20863
+ description: "An approved template of the conversation's channel that Raíz sends in this conversation now, from the team. With it the Agent does not write now: it answers when the person replies, reading `note`, so the conversation can be given back outside WhatsApp's 24-hour window. Without it the Agent continues at once, and the person must have written in the last 24 hours (WHATSAPP_WINDOW_CLOSED). Follow the template's `deliveryStatus` in the transcript."
20864
+ },
20831
20865
  conversationId: {
20832
20866
  type: "string",
20833
20867
  description: "Conversation id.",
@@ -20840,7 +20874,7 @@ var commands = {
20840
20874
  additionalProperties: false
20841
20875
  },
20842
20876
  title: "Give a conversation back to the AI to continue",
20843
- description: "Give a WhatsApp conversation the AI handed to the team back to the AI, which continues the contact's pending request now, though the contact has not written. Review the resolved blocker first; use expectedVersion and expectedHandoffMessageId to refuse a stale decision with VERSION_CONFLICT. `note` preserves the evidence and remaining request for the Agent. Only inside WhatsApp's 24-hour window, once per handoff, and for an AI handoff. Preserve explicit human requests, unresolved clinical/administrative decisions, identity conflicts and uncertain writes with the team. Not an AI tool: it makes the Agent write to a real person.",
20877
+ description: "Give a WhatsApp conversation the AI handed to the team back to the AI, which continues the contact's pending request now, though the contact has not written. Review the resolved blocker first; use expectedVersion and expectedHandoffMessageId to refuse a stale decision with VERSION_CONFLICT. `note` preserves the evidence and remaining request for the Agent. Inside WhatsApp's 24-hour window the Agent writes at once; outside it, give `template`: Raíz sends that approved template in the conversation and the Agent answers when the person replies (WHATSAPP_WINDOW_CLOSED without one). Once per handoff, and for an AI handoff. Preserve explicit human requests, unresolved clinical/administrative decisions, identity conflicts and uncertain writes with the team. Not an AI tool: it makes the Agent write to a real person.",
20844
20878
  effect: "write",
20845
20879
  confirmation: null,
20846
20880
  hidden: false
@@ -22069,6 +22103,205 @@ var commands = {
22069
22103
  confirmation: null,
22070
22104
  hidden: false
22071
22105
  },
22106
+ "raiz conversations send": {
22107
+ operation: "raiz.conversations.send",
22108
+ sdkPath: [
22109
+ "raiz",
22110
+ "conversations",
22111
+ "send"
22112
+ ],
22113
+ pathField: "conversationId",
22114
+ fields: [
22115
+ {
22116
+ name: "replyToMessageId",
22117
+ flag: "reply-to-message-id",
22118
+ kind: "string",
22119
+ required: false,
22120
+ description: "A message of the same conversation to quote."
22121
+ }
22122
+ ],
22123
+ inputSchema: {
22124
+ type: "object",
22125
+ required: [
22126
+ "conversationId"
22127
+ ],
22128
+ properties: {
22129
+ parts: {
22130
+ type: "array",
22131
+ items: {
22132
+ anyOf: [
22133
+ {
22134
+ type: "object",
22135
+ required: [
22136
+ "text",
22137
+ "type"
22138
+ ],
22139
+ properties: {
22140
+ format: {
22141
+ anyOf: [
22142
+ {
22143
+ type: "string",
22144
+ const: "plain"
22145
+ },
22146
+ {
22147
+ type: "string",
22148
+ const: "markdown"
22149
+ }
22150
+ ],
22151
+ default: "plain"
22152
+ },
22153
+ text: {
22154
+ type: "string",
22155
+ maxLength: 4096,
22156
+ minLength: 1
22157
+ },
22158
+ type: {
22159
+ type: "string",
22160
+ const: "text"
22161
+ }
22162
+ },
22163
+ additionalProperties: false
22164
+ },
22165
+ {
22166
+ type: "object",
22167
+ required: [
22168
+ "data",
22169
+ "mediaType",
22170
+ "type"
22171
+ ],
22172
+ properties: {
22173
+ data: {
22174
+ type: "string",
22175
+ contentEncoding: "base64",
22176
+ description: "The file's bytes in base64, at most 5242880 bytes decoded.",
22177
+ maxLength: 6990508,
22178
+ minLength: 4
22179
+ },
22180
+ fileName: {
22181
+ type: "string",
22182
+ description: "The name the contact sees for a document.",
22183
+ maxLength: 240,
22184
+ minLength: 1,
22185
+ pattern: "^[^/\\\\\\u0000-\\u001f\\u007f]+$"
22186
+ },
22187
+ mediaType: {
22188
+ anyOf: [
22189
+ {
22190
+ type: "string",
22191
+ const: "image/jpeg"
22192
+ },
22193
+ {
22194
+ type: "string",
22195
+ const: "image/png"
22196
+ },
22197
+ {
22198
+ type: "string",
22199
+ const: "application/pdf"
22200
+ },
22201
+ {
22202
+ type: "string",
22203
+ const: "text/plain"
22204
+ },
22205
+ {
22206
+ type: "string",
22207
+ const: "application/msword"
22208
+ },
22209
+ {
22210
+ type: "string",
22211
+ const: "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
22212
+ },
22213
+ {
22214
+ type: "string",
22215
+ const: "application/vnd.ms-excel"
22216
+ },
22217
+ {
22218
+ type: "string",
22219
+ const: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
22220
+ },
22221
+ {
22222
+ type: "string",
22223
+ const: "application/vnd.ms-powerpoint"
22224
+ },
22225
+ {
22226
+ type: "string",
22227
+ const: "application/vnd.openxmlformats-officedocument.presentationml.presentation"
22228
+ }
22229
+ ],
22230
+ description: "JPEG and PNG are sent as an image; the others as a document."
22231
+ },
22232
+ type: {
22233
+ type: "string",
22234
+ const: "file"
22235
+ }
22236
+ },
22237
+ description: "A private web or WhatsApp attachment. WhatsApp accepts one per message, with the text as its caption; web accepts multiple within the combined 5 MiB budget.",
22238
+ additionalProperties: false
22239
+ }
22240
+ ]
22241
+ },
22242
+ description: "The message's parts: text and, on WhatsApp, at most one file, whose caption is the text. Give `parts` or `template`.",
22243
+ maxItems: 10,
22244
+ minItems: 1
22245
+ },
22246
+ template: {
22247
+ type: "object",
22248
+ required: [
22249
+ "language",
22250
+ "name"
22251
+ ],
22252
+ properties: {
22253
+ header: {
22254
+ $ref: "#/components/schemas/RaizTemplateHeaderFile",
22255
+ description: "The file shown above the text of a template whose header is a document, image or video, different on every send (an appointment's receipt, a ticket). Required by such a template, refused by any other."
22256
+ },
22257
+ language: {
22258
+ type: "string",
22259
+ maxLength: 15,
22260
+ minLength: 2
22261
+ },
22262
+ name: {
22263
+ type: "string",
22264
+ maxLength: 512,
22265
+ minLength: 1
22266
+ },
22267
+ parameters: {
22268
+ type: "array",
22269
+ items: {
22270
+ type: "string",
22271
+ maxLength: 1024
22272
+ },
22273
+ description: "Body parameters, in order.",
22274
+ maxItems: 20
22275
+ }
22276
+ },
22277
+ additionalProperties: false,
22278
+ description: "WhatsApp only: send an approved template of the conversation's channel instead of `parts`, the one message WhatsApp delivers when the person has not written in the last 24 hours. Like any message of the team, it pauses the Agent for this person; to have the Agent answer their reply, give the conversation back with `continueConversation` and its `template` instead."
22279
+ },
22280
+ replyToMessageId: {
22281
+ type: "string",
22282
+ description: "A message of the same conversation to quote.",
22283
+ examples: [
22284
+ "msg_01m45h8q2rf3t9w6y7z0b1c2d3"
22285
+ ],
22286
+ pattern: "^msg_(?:[0-7][0-9a-hjkmnp-tv-z]{25}|(?:[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}|[a-f0-9]{32}))$"
22287
+ },
22288
+ conversationId: {
22289
+ type: "string",
22290
+ description: "Conversation id.",
22291
+ examples: [
22292
+ "cnv_01m45h8q2rf3t9w6y7z0b1c2d3"
22293
+ ],
22294
+ 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}))$"
22295
+ }
22296
+ },
22297
+ additionalProperties: false
22298
+ },
22299
+ title: "Send a message",
22300
+ description: "Write in an open conversation. In a web conversation you write as the visitor (`role: contact`) and the Agent answers in the background; read the transcript to see the reply. On WhatsApp and in a call you write as a person of the organization (`role: operator`): the message is delivered on the channel and `deliveryStatus` follows it, and on WhatsApp it pauses the Agent for this person until resumed. On WhatsApp a message may carry one image or document (base64, up to 5 MiB) with the text as its caption; elsewhere a file fails with CHANNEL_TYPE_MISMATCH. On WhatsApp `template` sends an approved template of the channel instead, the only message WhatsApp delivers when the person has not written in the last 24 hours; a refused template sends nothing (the TEMPLATE_* codes). Not an AI tool.",
22301
+ effect: "write",
22302
+ confirmation: null,
22303
+ hidden: false
22304
+ },
22072
22305
  "raiz conversations update": {
22073
22306
  operation: "raiz.conversations.update",
22074
22307
  sdkPath: [
@@ -33520,10 +33753,18 @@ var schemaComponents = {
33520
33753
  {
33521
33754
  type: "string",
33522
33755
  const: "conversationUrl"
33756
+ },
33757
+ {
33758
+ type: "string",
33759
+ const: "verifiedContact"
33760
+ },
33761
+ {
33762
+ type: "string",
33763
+ const: "outboundRecipient"
33523
33764
  }
33524
33765
  ]
33525
33766
  },
33526
- maxItems: 3
33767
+ maxItems: 5
33527
33768
  },
33528
33769
  name: {
33529
33770
  type: "string",
@@ -64406,6 +64647,19 @@ var schemaComponents = {
64406
64647
  const: "scheduling.appointment_notification",
64407
64648
  description: "Discriminator for an appointment outbox entry."
64408
64649
  },
64650
+ reason: {
64651
+ anyOf: [
64652
+ {
64653
+ type: "string",
64654
+ const: "phone_missing"
64655
+ },
64656
+ {
64657
+ type: "string",
64658
+ const: "phone_invalid"
64659
+ }
64660
+ ],
64661
+ description: "Why a failed call or WhatsApp entry that never reached the provider cannot be sent, read from the appointment's phone as it is now: none recorded, or not a valid phone number (one without a country code is read as Colombian). Absent when that phone is usable or the entry did not fail this way."
64662
+ },
64409
64663
  state: {
64410
64664
  anyOf: [
64411
64665
  {
@@ -126538,6 +126792,19 @@ var schemaComponents = {
126538
126792
  const: "scheduling.appointment_notification",
126539
126793
  description: "Discriminator for an appointment outbox entry."
126540
126794
  },
126795
+ reason: {
126796
+ anyOf: [
126797
+ {
126798
+ type: "string",
126799
+ const: "phone_missing"
126800
+ },
126801
+ {
126802
+ type: "string",
126803
+ const: "phone_invalid"
126804
+ }
126805
+ ],
126806
+ description: "Why a failed call or WhatsApp entry that never reached the provider cannot be sent, read from the appointment's phone as it is now: none recorded, or not a valid phone number (one without a country code is read as Colombian). Absent when that phone is usable or the entry did not fail this way."
126807
+ },
126541
126808
  state: {
126542
126809
  anyOf: [
126543
126810
  {
@@ -184273,6 +184540,7 @@ var schemaComponents = {
184273
184540
  "followUpMessage",
184274
184541
  "greeting",
184275
184542
  "handoffMessage",
184543
+ "handoffReturnMinutes",
184276
184544
  "humanReplyTimeoutMinutes",
184277
184545
  "investigationsEnabled",
184278
184546
  "model",
@@ -184556,11 +184824,24 @@ var schemaComponents = {
184556
184824
  }
184557
184825
  ]
184558
184826
  },
184827
+ handoffReturnMinutes: {
184828
+ anyOf: [
184829
+ {
184830
+ type: "integer",
184831
+ description: "Text Agents on WhatsApp. A handoff whose cause was technical (a turn that failed, or the Agent's own escalation as `technical_failure` with no write left in doubt) returns to the AI by itself when no person of the team has written this many minutes after it: the Agent reads the current state, continues the pending request and tells the contact what is true. Once per conversation, and only inside WhatsApp's 24-hour window; a handoff the contact asked for, a decision of the team's (`human_authority`), records that contradict each other (`unresolved_evidence`), an uncertain write and a spent budget always wait for a person. Null: every handoff waits for a person.",
184832
+ maximum: 1440,
184833
+ minimum: 1
184834
+ },
184835
+ {
184836
+ type: "null"
184837
+ }
184838
+ ]
184839
+ },
184559
184840
  humanReplyTimeoutMinutes: {
184560
184841
  anyOf: [
184561
184842
  {
184562
184843
  type: "integer",
184563
- description: "Text Agents on WhatsApp. After a manual takeover, resume automatic replies when the contact's newest message waits this many minutes. An Agent handoff always stays with the team until a person explicitly resumes AI. Null: only a person resumes automatic replies.",
184844
+ description: "Text Agents on WhatsApp. After a manual takeover, resume automatic replies when the contact's newest message waits this many minutes. An Agent handoff stays with the team until a person explicitly resumes AI, except a technical one under `handoffReturnMinutes`. Null: only a person resumes automatic replies.",
184564
184845
  maximum: 1440,
184565
184846
  minimum: 1
184566
184847
  },
@@ -185041,11 +185322,24 @@ var schemaComponents = {
185041
185322
  }
185042
185323
  ]
185043
185324
  },
185325
+ handoffReturnMinutes: {
185326
+ anyOf: [
185327
+ {
185328
+ type: "integer",
185329
+ description: "Text Agents on WhatsApp. A handoff whose cause was technical (a turn that failed, or the Agent's own escalation as `technical_failure` with no write left in doubt) returns to the AI by itself when no person of the team has written this many minutes after it: the Agent reads the current state, continues the pending request and tells the contact what is true. Once per conversation, and only inside WhatsApp's 24-hour window; a handoff the contact asked for, a decision of the team's (`human_authority`), records that contradict each other (`unresolved_evidence`), an uncertain write and a spent budget always wait for a person. Null: every handoff waits for a person.",
185330
+ maximum: 1440,
185331
+ minimum: 1
185332
+ },
185333
+ {
185334
+ type: "null"
185335
+ }
185336
+ ]
185337
+ },
185044
185338
  humanReplyTimeoutMinutes: {
185045
185339
  anyOf: [
185046
185340
  {
185047
185341
  type: "integer",
185048
- description: "Text Agents on WhatsApp. After a manual takeover, resume automatic replies when the contact's newest message waits this many minutes. An Agent handoff always stays with the team until a person explicitly resumes AI. Null: only a person resumes automatic replies.",
185342
+ description: "Text Agents on WhatsApp. After a manual takeover, resume automatic replies when the contact's newest message waits this many minutes. An Agent handoff stays with the team until a person explicitly resumes AI, except a technical one under `handoffReturnMinutes`. Null: only a person resumes automatic replies.",
185049
185343
  maximum: 1440,
185050
185344
  minimum: 1
185051
185345
  },
@@ -189991,6 +190285,40 @@ var schemaComponents = {
189991
190285
  type: "string",
189992
190286
  description: "A short internal note about the resolved blocker, authoritative evidence, confirmed appointments and any remaining request. A note does not establish coverage, clinical equivalence, consent or a booking. Preserve explicit human requests and unresolved clinical decisions, identity conflicts or uncertain writes with the team.",
189993
190287
  maxLength: 500
190288
+ },
190289
+ template: {
190290
+ type: "object",
190291
+ required: [
190292
+ "language",
190293
+ "name"
190294
+ ],
190295
+ properties: {
190296
+ header: {
190297
+ $ref: "#/components/schemas/RaizTemplateHeaderFile",
190298
+ description: "The file shown above the text of a template whose header is a document, image or video, different on every send (an appointment's receipt, a ticket). Required by such a template, refused by any other."
190299
+ },
190300
+ language: {
190301
+ type: "string",
190302
+ maxLength: 15,
190303
+ minLength: 2
190304
+ },
190305
+ name: {
190306
+ type: "string",
190307
+ maxLength: 512,
190308
+ minLength: 1
190309
+ },
190310
+ parameters: {
190311
+ type: "array",
190312
+ items: {
190313
+ type: "string",
190314
+ maxLength: 1024
190315
+ },
190316
+ description: "Body parameters, in order.",
190317
+ maxItems: 20
190318
+ }
190319
+ },
190320
+ additionalProperties: false,
190321
+ description: "An approved template of the conversation's channel that Raíz sends in this conversation now, from the team. With it the Agent does not write now: it answers when the person replies, reading `note`, so the conversation can be given back outside WhatsApp's 24-hour window. Without it the Agent continues at once, and the person must have written in the last 24 hours (WHATSAPP_WINDOW_CLOSED). Follow the template's `deliveryStatus` in the transcript."
189994
190322
  }
189995
190323
  },
189996
190324
  additionalProperties: false
@@ -190040,9 +190368,15 @@ var schemaComponents = {
190040
190368
  {
190041
190369
  $ref: "#/components/schemas/RaizChannelTypeMismatchFailure"
190042
190370
  },
190371
+ {
190372
+ $ref: "#/components/schemas/RaizTemplateNotApprovedFailure"
190373
+ },
190043
190374
  {
190044
190375
  $ref: "#/components/schemas/RaizWhatsappWindowClosedFailure"
190045
190376
  },
190377
+ {
190378
+ $ref: "#/components/schemas/RaizContactSuppressedFailure"
190379
+ },
190046
190380
  {
190047
190381
  $ref: "#/components/schemas/RaizVersionConflictFailure"
190048
190382
  }
@@ -190055,11 +190389,58 @@ var schemaComponents = {
190055
190389
  HANDOFF_ALREADY_CONTINUED: "#/components/schemas/RaizHandoffAlreadyContinuedFailure",
190056
190390
  CHANNEL_NOT_READY: "#/components/schemas/RaizChannelNotReadyFailure",
190057
190391
  CHANNEL_TYPE_MISMATCH: "#/components/schemas/RaizChannelTypeMismatchFailure",
190392
+ TEMPLATE_NOT_APPROVED: "#/components/schemas/RaizTemplateNotApprovedFailure",
190058
190393
  WHATSAPP_WINDOW_CLOSED: "#/components/schemas/RaizWhatsappWindowClosedFailure",
190394
+ CONTACT_SUPPRESSED: "#/components/schemas/RaizContactSuppressedFailure",
190059
190395
  VERSION_CONFLICT: "#/components/schemas/RaizVersionConflictFailure"
190060
190396
  }
190061
190397
  }
190062
190398
  },
190399
+ RaizContinueConversationNotFoundError: {
190400
+ type: "object",
190401
+ description: "A failed answer.",
190402
+ additionalProperties: false,
190403
+ required: [
190404
+ "success",
190405
+ "data",
190406
+ "error",
190407
+ "metadata"
190408
+ ],
190409
+ properties: {
190410
+ success: {
190411
+ type: "boolean",
190412
+ enum: [
190413
+ false
190414
+ ]
190415
+ },
190416
+ data: {
190417
+ const: null
190418
+ },
190419
+ error: {
190420
+ $ref: "#/components/schemas/RaizContinueConversationNotFoundFailure"
190421
+ },
190422
+ metadata: {
190423
+ $ref: "#/components/schemas/ResponseMetadata"
190424
+ }
190425
+ }
190426
+ },
190427
+ RaizContinueConversationNotFoundFailure: {
190428
+ oneOf: [
190429
+ {
190430
+ $ref: "#/components/schemas/RaizTemplateNotFoundFailure"
190431
+ },
190432
+ {
190433
+ $ref: "#/components/schemas/RaizResourceNotFoundFailure"
190434
+ }
190435
+ ],
190436
+ discriminator: {
190437
+ propertyName: "code",
190438
+ mapping: {
190439
+ TEMPLATE_NOT_FOUND: "#/components/schemas/RaizTemplateNotFoundFailure",
190440
+ RESOURCE_NOT_FOUND: "#/components/schemas/RaizResourceNotFoundFailure"
190441
+ }
190442
+ }
190443
+ },
190063
190444
  RaizContinueConversationServiceUnavailableError: {
190064
190445
  type: "object",
190065
190446
  description: "A failed answer.",
@@ -190105,6 +190486,63 @@ var schemaComponents = {
190105
190486
  }
190106
190487
  }
190107
190488
  },
190489
+ RaizContinueConversationUnprocessableContentError: {
190490
+ type: "object",
190491
+ description: "A failed answer.",
190492
+ additionalProperties: false,
190493
+ required: [
190494
+ "success",
190495
+ "data",
190496
+ "error",
190497
+ "metadata"
190498
+ ],
190499
+ properties: {
190500
+ success: {
190501
+ type: "boolean",
190502
+ enum: [
190503
+ false
190504
+ ]
190505
+ },
190506
+ data: {
190507
+ const: null
190508
+ },
190509
+ error: {
190510
+ $ref: "#/components/schemas/RaizContinueConversationUnprocessableContentFailure"
190511
+ },
190512
+ metadata: {
190513
+ $ref: "#/components/schemas/ResponseMetadata"
190514
+ }
190515
+ }
190516
+ },
190517
+ RaizContinueConversationUnprocessableContentFailure: {
190518
+ oneOf: [
190519
+ {
190520
+ $ref: "#/components/schemas/RaizTemplateHeaderMismatchFailure"
190521
+ },
190522
+ {
190523
+ $ref: "#/components/schemas/RaizTemplateHeaderRequiredFailure"
190524
+ },
190525
+ {
190526
+ $ref: "#/components/schemas/RaizTemplateParametersMismatchFailure"
190527
+ },
190528
+ {
190529
+ $ref: "#/components/schemas/RaizTemplateUnsupportedFailure"
190530
+ },
190531
+ {
190532
+ $ref: "#/components/schemas/RaizWhatsappMessageUnsupportedFailure"
190533
+ }
190534
+ ],
190535
+ discriminator: {
190536
+ propertyName: "code",
190537
+ mapping: {
190538
+ TEMPLATE_HEADER_MISMATCH: "#/components/schemas/RaizTemplateHeaderMismatchFailure",
190539
+ TEMPLATE_HEADER_REQUIRED: "#/components/schemas/RaizTemplateHeaderRequiredFailure",
190540
+ TEMPLATE_PARAMETERS_MISMATCH: "#/components/schemas/RaizTemplateParametersMismatchFailure",
190541
+ TEMPLATE_UNSUPPORTED: "#/components/schemas/RaizTemplateUnsupportedFailure",
190542
+ WHATSAPP_MESSAGE_UNSUPPORTED: "#/components/schemas/RaizWhatsappMessageUnsupportedFailure"
190543
+ }
190544
+ }
190545
+ },
190108
190546
  RaizConversation: {
190109
190547
  type: "object",
190110
190548
  required: [
@@ -194894,8 +195332,8 @@ var schemaComponents = {
194894
195332
  maxItems: 20
194895
195333
  }
194896
195334
  },
194897
- description: "An approved template of the channel, with its body parameters and, when its header is a document, image or video, that file (`header`). Required unless the contact wrote in the last 24 hours (WhatsApp's customer-service window).",
194898
- additionalProperties: false
195335
+ additionalProperties: false,
195336
+ description: "An approved template of the channel, with its body parameters and, when its header is a document, image or video, that file (`header`). Required unless the contact wrote in the last 24 hours (WhatsApp's customer-service window)."
194899
195337
  },
194900
195338
  text: {
194901
195339
  type: "string",
@@ -208860,9 +209298,7 @@ var schemaComponents = {
208860
209298
  },
208861
209299
  RaizSendMessageBody: {
208862
209300
  type: "object",
208863
- required: [
208864
- "parts"
208865
- ],
209301
+ required: [],
208866
209302
  properties: {
208867
209303
  parts: {
208868
209304
  type: "array",
@@ -208977,10 +209413,44 @@ var schemaComponents = {
208977
209413
  }
208978
209414
  ]
208979
209415
  },
208980
- description: "The message's parts: text and, on WhatsApp, at most one file, whose caption is the text.",
209416
+ description: "The message's parts: text and, on WhatsApp, at most one file, whose caption is the text. Give `parts` or `template`.",
208981
209417
  maxItems: 10,
208982
209418
  minItems: 1
208983
209419
  },
209420
+ template: {
209421
+ type: "object",
209422
+ required: [
209423
+ "language",
209424
+ "name"
209425
+ ],
209426
+ properties: {
209427
+ header: {
209428
+ $ref: "#/components/schemas/RaizTemplateHeaderFile",
209429
+ description: "The file shown above the text of a template whose header is a document, image or video, different on every send (an appointment's receipt, a ticket). Required by such a template, refused by any other."
209430
+ },
209431
+ language: {
209432
+ type: "string",
209433
+ maxLength: 15,
209434
+ minLength: 2
209435
+ },
209436
+ name: {
209437
+ type: "string",
209438
+ maxLength: 512,
209439
+ minLength: 1
209440
+ },
209441
+ parameters: {
209442
+ type: "array",
209443
+ items: {
209444
+ type: "string",
209445
+ maxLength: 1024
209446
+ },
209447
+ description: "Body parameters, in order.",
209448
+ maxItems: 20
209449
+ }
209450
+ },
209451
+ additionalProperties: false,
209452
+ description: "WhatsApp only: send an approved template of the conversation's channel instead of `parts`, the one message WhatsApp delivers when the person has not written in the last 24 hours. Like any message of the team, it pauses the Agent for this person; to have the Agent answer their reply, give the conversation back with `continueConversation` and its `template` instead."
209453
+ },
208984
209454
  replyToMessageId: {
208985
209455
  type: "string",
208986
209456
  description: "A message of the same conversation to quote.",
@@ -209185,9 +209655,18 @@ var schemaComponents = {
209185
209655
  },
209186
209656
  RaizSendMessageUnprocessableContentFailure: {
209187
209657
  oneOf: [
209658
+ {
209659
+ $ref: "#/components/schemas/RaizTemplateHeaderMismatchFailure"
209660
+ },
209661
+ {
209662
+ $ref: "#/components/schemas/RaizTemplateHeaderRequiredFailure"
209663
+ },
209188
209664
  {
209189
209665
  $ref: "#/components/schemas/RaizTemplateParametersMismatchFailure"
209190
209666
  },
209667
+ {
209668
+ $ref: "#/components/schemas/RaizTemplateUnsupportedFailure"
209669
+ },
209191
209670
  {
209192
209671
  $ref: "#/components/schemas/RaizWhatsappMediaRejectedFailure"
209193
209672
  },
@@ -209201,7 +209680,10 @@ var schemaComponents = {
209201
209680
  discriminator: {
209202
209681
  propertyName: "code",
209203
209682
  mapping: {
209683
+ TEMPLATE_HEADER_MISMATCH: "#/components/schemas/RaizTemplateHeaderMismatchFailure",
209684
+ TEMPLATE_HEADER_REQUIRED: "#/components/schemas/RaizTemplateHeaderRequiredFailure",
209204
209685
  TEMPLATE_PARAMETERS_MISMATCH: "#/components/schemas/RaizTemplateParametersMismatchFailure",
209686
+ TEMPLATE_UNSUPPORTED: "#/components/schemas/RaizTemplateUnsupportedFailure",
209205
209687
  WHATSAPP_MEDIA_REJECTED: "#/components/schemas/RaizWhatsappMediaRejectedFailure",
209206
209688
  WHATSAPP_MESSAGE_UNSUPPORTED: "#/components/schemas/RaizWhatsappMessageUnsupportedFailure",
209207
209689
  WHATSAPP_RECIPIENT_UNAVAILABLE: "#/components/schemas/RaizWhatsappRecipientUnavailableFailure"
@@ -245236,6 +245718,216 @@ var schemaComponents = {
245236
245718
  description: "A short internal note about the resolved blocker, authoritative evidence, confirmed appointments and any remaining request. A note does not establish coverage, clinical equivalence, consent or a booking. Preserve explicit human requests and unresolved clinical decisions, identity conflicts or uncertain writes with the team.",
245237
245719
  maxLength: 500
245238
245720
  },
245721
+ template: {
245722
+ type: "object",
245723
+ required: [
245724
+ "language",
245725
+ "name"
245726
+ ],
245727
+ properties: {
245728
+ header: {
245729
+ $ref: "#/components/schemas/RaizTemplateHeaderFile",
245730
+ description: "The file shown above the text of a template whose header is a document, image or video, different on every send (an appointment's receipt, a ticket). Required by such a template, refused by any other."
245731
+ },
245732
+ language: {
245733
+ type: "string",
245734
+ maxLength: 15,
245735
+ minLength: 2
245736
+ },
245737
+ name: {
245738
+ type: "string",
245739
+ maxLength: 512,
245740
+ minLength: 1
245741
+ },
245742
+ parameters: {
245743
+ type: "array",
245744
+ items: {
245745
+ type: "string",
245746
+ maxLength: 1024
245747
+ },
245748
+ description: "Body parameters, in order.",
245749
+ maxItems: 20
245750
+ }
245751
+ },
245752
+ additionalProperties: false,
245753
+ description: "An approved template of the conversation's channel that Raíz sends in this conversation now, from the team. With it the Agent does not write now: it answers when the person replies, reading `note`, so the conversation can be given back outside WhatsApp's 24-hour window. Without it the Agent continues at once, and the person must have written in the last 24 hours (WHATSAPP_WINDOW_CLOSED). Follow the template's `deliveryStatus` in the transcript."
245754
+ },
245755
+ conversationId: {
245756
+ type: "string",
245757
+ description: "Conversation id.",
245758
+ examples: [
245759
+ "cnv_01m45h8q2rf3t9w6y7z0b1c2d3"
245760
+ ],
245761
+ 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}))$"
245762
+ }
245763
+ },
245764
+ additionalProperties: false
245765
+ },
245766
+ RaizConversationsSendInput: {
245767
+ type: "object",
245768
+ required: [
245769
+ "conversationId"
245770
+ ],
245771
+ properties: {
245772
+ parts: {
245773
+ type: "array",
245774
+ items: {
245775
+ anyOf: [
245776
+ {
245777
+ type: "object",
245778
+ required: [
245779
+ "text",
245780
+ "type"
245781
+ ],
245782
+ properties: {
245783
+ format: {
245784
+ anyOf: [
245785
+ {
245786
+ type: "string",
245787
+ const: "plain"
245788
+ },
245789
+ {
245790
+ type: "string",
245791
+ const: "markdown"
245792
+ }
245793
+ ],
245794
+ default: "plain"
245795
+ },
245796
+ text: {
245797
+ type: "string",
245798
+ maxLength: 4096,
245799
+ minLength: 1
245800
+ },
245801
+ type: {
245802
+ type: "string",
245803
+ const: "text"
245804
+ }
245805
+ },
245806
+ additionalProperties: false
245807
+ },
245808
+ {
245809
+ type: "object",
245810
+ required: [
245811
+ "data",
245812
+ "mediaType",
245813
+ "type"
245814
+ ],
245815
+ properties: {
245816
+ data: {
245817
+ type: "string",
245818
+ contentEncoding: "base64",
245819
+ description: "The file's bytes in base64, at most 5242880 bytes decoded.",
245820
+ maxLength: 6990508,
245821
+ minLength: 4
245822
+ },
245823
+ fileName: {
245824
+ type: "string",
245825
+ description: "The name the contact sees for a document.",
245826
+ maxLength: 240,
245827
+ minLength: 1,
245828
+ pattern: "^[^/\\\\\\u0000-\\u001f\\u007f]+$"
245829
+ },
245830
+ mediaType: {
245831
+ anyOf: [
245832
+ {
245833
+ type: "string",
245834
+ const: "image/jpeg"
245835
+ },
245836
+ {
245837
+ type: "string",
245838
+ const: "image/png"
245839
+ },
245840
+ {
245841
+ type: "string",
245842
+ const: "application/pdf"
245843
+ },
245844
+ {
245845
+ type: "string",
245846
+ const: "text/plain"
245847
+ },
245848
+ {
245849
+ type: "string",
245850
+ const: "application/msword"
245851
+ },
245852
+ {
245853
+ type: "string",
245854
+ const: "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
245855
+ },
245856
+ {
245857
+ type: "string",
245858
+ const: "application/vnd.ms-excel"
245859
+ },
245860
+ {
245861
+ type: "string",
245862
+ const: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
245863
+ },
245864
+ {
245865
+ type: "string",
245866
+ const: "application/vnd.ms-powerpoint"
245867
+ },
245868
+ {
245869
+ type: "string",
245870
+ const: "application/vnd.openxmlformats-officedocument.presentationml.presentation"
245871
+ }
245872
+ ],
245873
+ description: "JPEG and PNG are sent as an image; the others as a document."
245874
+ },
245875
+ type: {
245876
+ type: "string",
245877
+ const: "file"
245878
+ }
245879
+ },
245880
+ description: "A private web or WhatsApp attachment. WhatsApp accepts one per message, with the text as its caption; web accepts multiple within the combined 5 MiB budget.",
245881
+ additionalProperties: false
245882
+ }
245883
+ ]
245884
+ },
245885
+ description: "The message's parts: text and, on WhatsApp, at most one file, whose caption is the text. Give `parts` or `template`.",
245886
+ maxItems: 10,
245887
+ minItems: 1
245888
+ },
245889
+ template: {
245890
+ type: "object",
245891
+ required: [
245892
+ "language",
245893
+ "name"
245894
+ ],
245895
+ properties: {
245896
+ header: {
245897
+ $ref: "#/components/schemas/RaizTemplateHeaderFile",
245898
+ description: "The file shown above the text of a template whose header is a document, image or video, different on every send (an appointment's receipt, a ticket). Required by such a template, refused by any other."
245899
+ },
245900
+ language: {
245901
+ type: "string",
245902
+ maxLength: 15,
245903
+ minLength: 2
245904
+ },
245905
+ name: {
245906
+ type: "string",
245907
+ maxLength: 512,
245908
+ minLength: 1
245909
+ },
245910
+ parameters: {
245911
+ type: "array",
245912
+ items: {
245913
+ type: "string",
245914
+ maxLength: 1024
245915
+ },
245916
+ description: "Body parameters, in order.",
245917
+ maxItems: 20
245918
+ }
245919
+ },
245920
+ additionalProperties: false,
245921
+ description: "WhatsApp only: send an approved template of the conversation's channel instead of `parts`, the one message WhatsApp delivers when the person has not written in the last 24 hours. Like any message of the team, it pauses the Agent for this person; to have the Agent answer their reply, give the conversation back with `continueConversation` and its `template` instead."
245922
+ },
245923
+ replyToMessageId: {
245924
+ type: "string",
245925
+ description: "A message of the same conversation to quote.",
245926
+ examples: [
245927
+ "msg_01m45h8q2rf3t9w6y7z0b1c2d3"
245928
+ ],
245929
+ pattern: "^msg_(?:[0-7][0-9a-hjkmnp-tv-z]{25}|(?:[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}|[a-f0-9]{32}))$"
245930
+ },
245239
245931
  conversationId: {
245240
245932
  type: "string",
245241
245933
  description: "Conversation id.",
@@ -251575,9 +252267,9 @@ var schemaComponents = {
251575
252267
  // src/generated/generation.json
251576
252268
  var generation_default = {
251577
252269
  formatVersion: 6,
251578
- release: "1.20261110.71953",
251579
- openapiSha256: "e2acbe92fa06b190130488dac5a6a89694072f87d35e9fcf90bbc047e3b9ed59",
251580
- openapiContentSha256: "e4500da0dc9e62fc4c2c5f01cf0ef0cd8ace237db83026063e1264f2e205dd06",
252270
+ release: "1.20261110.193119",
252271
+ openapiSha256: "e8e01f5e572ed9edb932c605f2b1b5b57dac6734d013617b4f0f49c9e428dcb4",
252272
+ openapiContentSha256: "7dbe848b03e48e1adc474efd29cb938b3286c4c54757a55a2b82bae8aa0a927f",
251581
252273
  forge: {
251582
252274
  repository: "https://github.com/cloudflare/forge",
251583
252275
  commit: "7f86447210b7bea3779bfdab3cd5655eade0eadb",
@@ -251590,7 +252282,7 @@ var generation_default = {
251590
252282
  outputs: [
251591
252283
  {
251592
252284
  path: "src/generated/commands.ts",
251593
- sha256: "4642b68a0a1b7180ac0a2d974e8ff82520cc1a53d6464ca4b91b0bffec066d45"
252285
+ sha256: "4a7f9fdba77e7dd867c8b870f47f32d7424fed08bf344313f258ea2edea3fc88"
251594
252286
  }
251595
252287
  ]
251596
252288
  };
@@ -253190,7 +253882,7 @@ ${name}`);
253190
253882
  }
253191
253883
 
253192
253884
  // src/index.ts
253193
- var VERSION = "3.47.0";
253885
+ var VERSION = "3.49.0";
253194
253886
  var RELEASE = generation_default.release;
253195
253887
  var commands2 = { ...commands, ...accountOperatorCommands };
253196
253888
  var SDK_PATHS = new Map(Object.values(commands2).map((command) => [command.operation, command.sdkPath]));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arbol-ai/cli",
3
- "version": "3.47.0",
3
+ "version": "3.49.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.47.0",
48
+ "@arbol-ai/sdk": "5.49.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.20261110.71953",
64
- "sha256": "e4500da0dc9e62fc4c2c5f01cf0ef0cd8ace237db83026063e1264f2e205dd06"
63
+ "release": "1.20261110.193119",
64
+ "sha256": "7dbe848b03e48e1adc474efd29cb938b3286c4c54757a55a2b82bae8aa0a927f"
65
65
  }
66
66
  }
67
67
  }