@arbol-ai/cli 3.47.0 → 3.48.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 +678 -13
  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
  {
@@ -189991,6 +190258,40 @@ var schemaComponents = {
189991
190258
  type: "string",
189992
190259
  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
190260
  maxLength: 500
190261
+ },
190262
+ template: {
190263
+ type: "object",
190264
+ required: [
190265
+ "language",
190266
+ "name"
190267
+ ],
190268
+ properties: {
190269
+ header: {
190270
+ $ref: "#/components/schemas/RaizTemplateHeaderFile",
190271
+ 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."
190272
+ },
190273
+ language: {
190274
+ type: "string",
190275
+ maxLength: 15,
190276
+ minLength: 2
190277
+ },
190278
+ name: {
190279
+ type: "string",
190280
+ maxLength: 512,
190281
+ minLength: 1
190282
+ },
190283
+ parameters: {
190284
+ type: "array",
190285
+ items: {
190286
+ type: "string",
190287
+ maxLength: 1024
190288
+ },
190289
+ description: "Body parameters, in order.",
190290
+ maxItems: 20
190291
+ }
190292
+ },
190293
+ additionalProperties: false,
190294
+ 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
190295
  }
189995
190296
  },
189996
190297
  additionalProperties: false
@@ -190040,9 +190341,15 @@ var schemaComponents = {
190040
190341
  {
190041
190342
  $ref: "#/components/schemas/RaizChannelTypeMismatchFailure"
190042
190343
  },
190344
+ {
190345
+ $ref: "#/components/schemas/RaizTemplateNotApprovedFailure"
190346
+ },
190043
190347
  {
190044
190348
  $ref: "#/components/schemas/RaizWhatsappWindowClosedFailure"
190045
190349
  },
190350
+ {
190351
+ $ref: "#/components/schemas/RaizContactSuppressedFailure"
190352
+ },
190046
190353
  {
190047
190354
  $ref: "#/components/schemas/RaizVersionConflictFailure"
190048
190355
  }
@@ -190055,11 +190362,58 @@ var schemaComponents = {
190055
190362
  HANDOFF_ALREADY_CONTINUED: "#/components/schemas/RaizHandoffAlreadyContinuedFailure",
190056
190363
  CHANNEL_NOT_READY: "#/components/schemas/RaizChannelNotReadyFailure",
190057
190364
  CHANNEL_TYPE_MISMATCH: "#/components/schemas/RaizChannelTypeMismatchFailure",
190365
+ TEMPLATE_NOT_APPROVED: "#/components/schemas/RaizTemplateNotApprovedFailure",
190058
190366
  WHATSAPP_WINDOW_CLOSED: "#/components/schemas/RaizWhatsappWindowClosedFailure",
190367
+ CONTACT_SUPPRESSED: "#/components/schemas/RaizContactSuppressedFailure",
190059
190368
  VERSION_CONFLICT: "#/components/schemas/RaizVersionConflictFailure"
190060
190369
  }
190061
190370
  }
190062
190371
  },
190372
+ RaizContinueConversationNotFoundError: {
190373
+ type: "object",
190374
+ description: "A failed answer.",
190375
+ additionalProperties: false,
190376
+ required: [
190377
+ "success",
190378
+ "data",
190379
+ "error",
190380
+ "metadata"
190381
+ ],
190382
+ properties: {
190383
+ success: {
190384
+ type: "boolean",
190385
+ enum: [
190386
+ false
190387
+ ]
190388
+ },
190389
+ data: {
190390
+ const: null
190391
+ },
190392
+ error: {
190393
+ $ref: "#/components/schemas/RaizContinueConversationNotFoundFailure"
190394
+ },
190395
+ metadata: {
190396
+ $ref: "#/components/schemas/ResponseMetadata"
190397
+ }
190398
+ }
190399
+ },
190400
+ RaizContinueConversationNotFoundFailure: {
190401
+ oneOf: [
190402
+ {
190403
+ $ref: "#/components/schemas/RaizTemplateNotFoundFailure"
190404
+ },
190405
+ {
190406
+ $ref: "#/components/schemas/RaizResourceNotFoundFailure"
190407
+ }
190408
+ ],
190409
+ discriminator: {
190410
+ propertyName: "code",
190411
+ mapping: {
190412
+ TEMPLATE_NOT_FOUND: "#/components/schemas/RaizTemplateNotFoundFailure",
190413
+ RESOURCE_NOT_FOUND: "#/components/schemas/RaizResourceNotFoundFailure"
190414
+ }
190415
+ }
190416
+ },
190063
190417
  RaizContinueConversationServiceUnavailableError: {
190064
190418
  type: "object",
190065
190419
  description: "A failed answer.",
@@ -190105,6 +190459,63 @@ var schemaComponents = {
190105
190459
  }
190106
190460
  }
190107
190461
  },
190462
+ RaizContinueConversationUnprocessableContentError: {
190463
+ type: "object",
190464
+ description: "A failed answer.",
190465
+ additionalProperties: false,
190466
+ required: [
190467
+ "success",
190468
+ "data",
190469
+ "error",
190470
+ "metadata"
190471
+ ],
190472
+ properties: {
190473
+ success: {
190474
+ type: "boolean",
190475
+ enum: [
190476
+ false
190477
+ ]
190478
+ },
190479
+ data: {
190480
+ const: null
190481
+ },
190482
+ error: {
190483
+ $ref: "#/components/schemas/RaizContinueConversationUnprocessableContentFailure"
190484
+ },
190485
+ metadata: {
190486
+ $ref: "#/components/schemas/ResponseMetadata"
190487
+ }
190488
+ }
190489
+ },
190490
+ RaizContinueConversationUnprocessableContentFailure: {
190491
+ oneOf: [
190492
+ {
190493
+ $ref: "#/components/schemas/RaizTemplateHeaderMismatchFailure"
190494
+ },
190495
+ {
190496
+ $ref: "#/components/schemas/RaizTemplateHeaderRequiredFailure"
190497
+ },
190498
+ {
190499
+ $ref: "#/components/schemas/RaizTemplateParametersMismatchFailure"
190500
+ },
190501
+ {
190502
+ $ref: "#/components/schemas/RaizTemplateUnsupportedFailure"
190503
+ },
190504
+ {
190505
+ $ref: "#/components/schemas/RaizWhatsappMessageUnsupportedFailure"
190506
+ }
190507
+ ],
190508
+ discriminator: {
190509
+ propertyName: "code",
190510
+ mapping: {
190511
+ TEMPLATE_HEADER_MISMATCH: "#/components/schemas/RaizTemplateHeaderMismatchFailure",
190512
+ TEMPLATE_HEADER_REQUIRED: "#/components/schemas/RaizTemplateHeaderRequiredFailure",
190513
+ TEMPLATE_PARAMETERS_MISMATCH: "#/components/schemas/RaizTemplateParametersMismatchFailure",
190514
+ TEMPLATE_UNSUPPORTED: "#/components/schemas/RaizTemplateUnsupportedFailure",
190515
+ WHATSAPP_MESSAGE_UNSUPPORTED: "#/components/schemas/RaizWhatsappMessageUnsupportedFailure"
190516
+ }
190517
+ }
190518
+ },
190108
190519
  RaizConversation: {
190109
190520
  type: "object",
190110
190521
  required: [
@@ -194894,8 +195305,8 @@ var schemaComponents = {
194894
195305
  maxItems: 20
194895
195306
  }
194896
195307
  },
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
195308
+ additionalProperties: false,
195309
+ 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
195310
  },
194900
195311
  text: {
194901
195312
  type: "string",
@@ -208860,9 +209271,7 @@ var schemaComponents = {
208860
209271
  },
208861
209272
  RaizSendMessageBody: {
208862
209273
  type: "object",
208863
- required: [
208864
- "parts"
208865
- ],
209274
+ required: [],
208866
209275
  properties: {
208867
209276
  parts: {
208868
209277
  type: "array",
@@ -208977,10 +209386,44 @@ var schemaComponents = {
208977
209386
  }
208978
209387
  ]
208979
209388
  },
208980
- description: "The message's parts: text and, on WhatsApp, at most one file, whose caption is the text.",
209389
+ description: "The message's parts: text and, on WhatsApp, at most one file, whose caption is the text. Give `parts` or `template`.",
208981
209390
  maxItems: 10,
208982
209391
  minItems: 1
208983
209392
  },
209393
+ template: {
209394
+ type: "object",
209395
+ required: [
209396
+ "language",
209397
+ "name"
209398
+ ],
209399
+ properties: {
209400
+ header: {
209401
+ $ref: "#/components/schemas/RaizTemplateHeaderFile",
209402
+ 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."
209403
+ },
209404
+ language: {
209405
+ type: "string",
209406
+ maxLength: 15,
209407
+ minLength: 2
209408
+ },
209409
+ name: {
209410
+ type: "string",
209411
+ maxLength: 512,
209412
+ minLength: 1
209413
+ },
209414
+ parameters: {
209415
+ type: "array",
209416
+ items: {
209417
+ type: "string",
209418
+ maxLength: 1024
209419
+ },
209420
+ description: "Body parameters, in order.",
209421
+ maxItems: 20
209422
+ }
209423
+ },
209424
+ additionalProperties: false,
209425
+ 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."
209426
+ },
208984
209427
  replyToMessageId: {
208985
209428
  type: "string",
208986
209429
  description: "A message of the same conversation to quote.",
@@ -209185,9 +209628,18 @@ var schemaComponents = {
209185
209628
  },
209186
209629
  RaizSendMessageUnprocessableContentFailure: {
209187
209630
  oneOf: [
209631
+ {
209632
+ $ref: "#/components/schemas/RaizTemplateHeaderMismatchFailure"
209633
+ },
209634
+ {
209635
+ $ref: "#/components/schemas/RaizTemplateHeaderRequiredFailure"
209636
+ },
209188
209637
  {
209189
209638
  $ref: "#/components/schemas/RaizTemplateParametersMismatchFailure"
209190
209639
  },
209640
+ {
209641
+ $ref: "#/components/schemas/RaizTemplateUnsupportedFailure"
209642
+ },
209191
209643
  {
209192
209644
  $ref: "#/components/schemas/RaizWhatsappMediaRejectedFailure"
209193
209645
  },
@@ -209201,7 +209653,10 @@ var schemaComponents = {
209201
209653
  discriminator: {
209202
209654
  propertyName: "code",
209203
209655
  mapping: {
209656
+ TEMPLATE_HEADER_MISMATCH: "#/components/schemas/RaizTemplateHeaderMismatchFailure",
209657
+ TEMPLATE_HEADER_REQUIRED: "#/components/schemas/RaizTemplateHeaderRequiredFailure",
209204
209658
  TEMPLATE_PARAMETERS_MISMATCH: "#/components/schemas/RaizTemplateParametersMismatchFailure",
209659
+ TEMPLATE_UNSUPPORTED: "#/components/schemas/RaizTemplateUnsupportedFailure",
209205
209660
  WHATSAPP_MEDIA_REJECTED: "#/components/schemas/RaizWhatsappMediaRejectedFailure",
209206
209661
  WHATSAPP_MESSAGE_UNSUPPORTED: "#/components/schemas/RaizWhatsappMessageUnsupportedFailure",
209207
209662
  WHATSAPP_RECIPIENT_UNAVAILABLE: "#/components/schemas/RaizWhatsappRecipientUnavailableFailure"
@@ -245236,6 +245691,216 @@ var schemaComponents = {
245236
245691
  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
245692
  maxLength: 500
245238
245693
  },
245694
+ template: {
245695
+ type: "object",
245696
+ required: [
245697
+ "language",
245698
+ "name"
245699
+ ],
245700
+ properties: {
245701
+ header: {
245702
+ $ref: "#/components/schemas/RaizTemplateHeaderFile",
245703
+ 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."
245704
+ },
245705
+ language: {
245706
+ type: "string",
245707
+ maxLength: 15,
245708
+ minLength: 2
245709
+ },
245710
+ name: {
245711
+ type: "string",
245712
+ maxLength: 512,
245713
+ minLength: 1
245714
+ },
245715
+ parameters: {
245716
+ type: "array",
245717
+ items: {
245718
+ type: "string",
245719
+ maxLength: 1024
245720
+ },
245721
+ description: "Body parameters, in order.",
245722
+ maxItems: 20
245723
+ }
245724
+ },
245725
+ additionalProperties: false,
245726
+ 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."
245727
+ },
245728
+ conversationId: {
245729
+ type: "string",
245730
+ description: "Conversation id.",
245731
+ examples: [
245732
+ "cnv_01m45h8q2rf3t9w6y7z0b1c2d3"
245733
+ ],
245734
+ 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}))$"
245735
+ }
245736
+ },
245737
+ additionalProperties: false
245738
+ },
245739
+ RaizConversationsSendInput: {
245740
+ type: "object",
245741
+ required: [
245742
+ "conversationId"
245743
+ ],
245744
+ properties: {
245745
+ parts: {
245746
+ type: "array",
245747
+ items: {
245748
+ anyOf: [
245749
+ {
245750
+ type: "object",
245751
+ required: [
245752
+ "text",
245753
+ "type"
245754
+ ],
245755
+ properties: {
245756
+ format: {
245757
+ anyOf: [
245758
+ {
245759
+ type: "string",
245760
+ const: "plain"
245761
+ },
245762
+ {
245763
+ type: "string",
245764
+ const: "markdown"
245765
+ }
245766
+ ],
245767
+ default: "plain"
245768
+ },
245769
+ text: {
245770
+ type: "string",
245771
+ maxLength: 4096,
245772
+ minLength: 1
245773
+ },
245774
+ type: {
245775
+ type: "string",
245776
+ const: "text"
245777
+ }
245778
+ },
245779
+ additionalProperties: false
245780
+ },
245781
+ {
245782
+ type: "object",
245783
+ required: [
245784
+ "data",
245785
+ "mediaType",
245786
+ "type"
245787
+ ],
245788
+ properties: {
245789
+ data: {
245790
+ type: "string",
245791
+ contentEncoding: "base64",
245792
+ description: "The file's bytes in base64, at most 5242880 bytes decoded.",
245793
+ maxLength: 6990508,
245794
+ minLength: 4
245795
+ },
245796
+ fileName: {
245797
+ type: "string",
245798
+ description: "The name the contact sees for a document.",
245799
+ maxLength: 240,
245800
+ minLength: 1,
245801
+ pattern: "^[^/\\\\\\u0000-\\u001f\\u007f]+$"
245802
+ },
245803
+ mediaType: {
245804
+ anyOf: [
245805
+ {
245806
+ type: "string",
245807
+ const: "image/jpeg"
245808
+ },
245809
+ {
245810
+ type: "string",
245811
+ const: "image/png"
245812
+ },
245813
+ {
245814
+ type: "string",
245815
+ const: "application/pdf"
245816
+ },
245817
+ {
245818
+ type: "string",
245819
+ const: "text/plain"
245820
+ },
245821
+ {
245822
+ type: "string",
245823
+ const: "application/msword"
245824
+ },
245825
+ {
245826
+ type: "string",
245827
+ const: "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
245828
+ },
245829
+ {
245830
+ type: "string",
245831
+ const: "application/vnd.ms-excel"
245832
+ },
245833
+ {
245834
+ type: "string",
245835
+ const: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
245836
+ },
245837
+ {
245838
+ type: "string",
245839
+ const: "application/vnd.ms-powerpoint"
245840
+ },
245841
+ {
245842
+ type: "string",
245843
+ const: "application/vnd.openxmlformats-officedocument.presentationml.presentation"
245844
+ }
245845
+ ],
245846
+ description: "JPEG and PNG are sent as an image; the others as a document."
245847
+ },
245848
+ type: {
245849
+ type: "string",
245850
+ const: "file"
245851
+ }
245852
+ },
245853
+ 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.",
245854
+ additionalProperties: false
245855
+ }
245856
+ ]
245857
+ },
245858
+ description: "The message's parts: text and, on WhatsApp, at most one file, whose caption is the text. Give `parts` or `template`.",
245859
+ maxItems: 10,
245860
+ minItems: 1
245861
+ },
245862
+ template: {
245863
+ type: "object",
245864
+ required: [
245865
+ "language",
245866
+ "name"
245867
+ ],
245868
+ properties: {
245869
+ header: {
245870
+ $ref: "#/components/schemas/RaizTemplateHeaderFile",
245871
+ 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."
245872
+ },
245873
+ language: {
245874
+ type: "string",
245875
+ maxLength: 15,
245876
+ minLength: 2
245877
+ },
245878
+ name: {
245879
+ type: "string",
245880
+ maxLength: 512,
245881
+ minLength: 1
245882
+ },
245883
+ parameters: {
245884
+ type: "array",
245885
+ items: {
245886
+ type: "string",
245887
+ maxLength: 1024
245888
+ },
245889
+ description: "Body parameters, in order.",
245890
+ maxItems: 20
245891
+ }
245892
+ },
245893
+ additionalProperties: false,
245894
+ 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."
245895
+ },
245896
+ replyToMessageId: {
245897
+ type: "string",
245898
+ description: "A message of the same conversation to quote.",
245899
+ examples: [
245900
+ "msg_01m45h8q2rf3t9w6y7z0b1c2d3"
245901
+ ],
245902
+ 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}))$"
245903
+ },
245239
245904
  conversationId: {
245240
245905
  type: "string",
245241
245906
  description: "Conversation id.",
@@ -251575,9 +252240,9 @@ var schemaComponents = {
251575
252240
  // src/generated/generation.json
251576
252241
  var generation_default = {
251577
252242
  formatVersion: 6,
251578
- release: "1.20261110.71953",
251579
- openapiSha256: "e2acbe92fa06b190130488dac5a6a89694072f87d35e9fcf90bbc047e3b9ed59",
251580
- openapiContentSha256: "e4500da0dc9e62fc4c2c5f01cf0ef0cd8ace237db83026063e1264f2e205dd06",
252243
+ release: "1.20261110.165834",
252244
+ openapiSha256: "c09b471a31bbdf7941c3a90daf1f658dbe1db871e1f9c2948743f24d59ed9855",
252245
+ openapiContentSha256: "4a5b1bfab518d4cf2e9dc706515e80d4f561a36a622cf49eed7384b206038fc0",
251581
252246
  forge: {
251582
252247
  repository: "https://github.com/cloudflare/forge",
251583
252248
  commit: "7f86447210b7bea3779bfdab3cd5655eade0eadb",
@@ -251590,7 +252255,7 @@ var generation_default = {
251590
252255
  outputs: [
251591
252256
  {
251592
252257
  path: "src/generated/commands.ts",
251593
- sha256: "4642b68a0a1b7180ac0a2d974e8ff82520cc1a53d6464ca4b91b0bffec066d45"
252258
+ sha256: "7c8190bd36a783b2fdfce3eda554f89561dbde8cdc96ddcd6089e95e42ad02c4"
251594
252259
  }
251595
252260
  ]
251596
252261
  };
@@ -253190,7 +253855,7 @@ ${name}`);
253190
253855
  }
253191
253856
 
253192
253857
  // src/index.ts
253193
- var VERSION = "3.47.0";
253858
+ var VERSION = "3.48.0";
253194
253859
  var RELEASE = generation_default.release;
253195
253860
  var commands2 = { ...commands, ...accountOperatorCommands };
253196
253861
  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.48.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.48.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.165834",
64
+ "sha256": "4a5b1bfab518d4cf2e9dc706515e80d4f561a36a622cf49eed7384b206038fc0"
65
65
  }
66
66
  }
67
67
  }