@arbol-ai/cli 3.69.0 → 3.71.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 +127 -30
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -10245,7 +10245,7 @@ var commands = {
10245
10245
  }
10246
10246
  },
10247
10247
  title: "List agendas",
10248
- description: "Use the organization gMedic account. Read-only request; provider failures are never empty results.",
10248
+ description: "Use the organization gMedic account. Read-only request; provider failures are never empty results. Agendas gMedic marks inactive (active: false) are left out, so they are never offered; agendas without that flag are kept. A page can hold fewer items than limit: follow nextCursor while hasNextPage is true.",
10249
10249
  effect: "read",
10250
10250
  confirmation: null,
10251
10251
  hidden: false
@@ -10465,7 +10465,7 @@ var commands = {
10465
10465
  }
10466
10466
  },
10467
10467
  title: "Create appointment",
10468
- description: "Create a patient appointment. For agents at clinics using colored booking windows, send bookingRoute with the verified payment route. The connector selects the appointment color and rechecks the entire interval. Reconcile unknown outcomes before repeating.",
10468
+ description: "Create a patient appointment. For agents at clinics using colored booking windows, send bookingRoute with the verified payment route. The connector selects the appointment color and rechecks the entire interval. An agenda gMedic marks inactive is refused with AGENDA_INACTIVE before anything is written. Reconcile unknown outcomes before repeating.",
10469
10469
  effect: "write",
10470
10470
  confirmation: null,
10471
10471
  hidden: false
@@ -11125,7 +11125,7 @@ var commands = {
11125
11125
  }
11126
11126
  },
11127
11127
  title: "List availability",
11128
- description: "List available intervals. At clinics using colored booking windows, send the verified bookingRoute. Check the full duration within a returned interval and a compatible agenda.",
11128
+ description: "List available intervals. At clinics using colored booking windows, send the verified bookingRoute. Check the full duration within a returned interval and a compatible agenda. An agenda gMedic marks inactive answers AGENDA_INACTIVE: do not offer it.",
11129
11129
  effect: "read",
11130
11130
  confirmation: null,
11131
11131
  hidden: false
@@ -11237,7 +11237,7 @@ var commands = {
11237
11237
  }
11238
11238
  },
11239
11239
  title: "List available days",
11240
- description: "Use the organization gMedic account. Read-only request; provider failures are never empty results.",
11240
+ description: "Use the organization gMedic account. Read-only request; provider failures are never empty results. An agenda gMedic marks inactive answers AGENDA_INACTIVE.",
11241
11241
  effect: "read",
11242
11242
  confirmation: null,
11243
11243
  hidden: false
@@ -15390,7 +15390,7 @@ var commands = {
15390
15390
  default: null
15391
15391
  },
15392
15392
  authorizationNumber: {
15393
- description: "Sent as pAutorizacion: the payer's authorization number; empty when null. The screen requires one only when the payer requires it (requiresAuthorization in list_payers): leaving it out then answers BOOKING_VALUE_UNRESOLVED.",
15393
+ description: "Sent as pAutorizacion: the payer's authorization number; empty when null. A payer that requires authorization (requiresAuthorization in list_payers) is still booked without one, as the clinic's staff do; they complete it before the visit.",
15394
15394
  anyOf: [
15395
15395
  {
15396
15396
  pattern: "^[0-9A-Za-z-]{1,30}$",
@@ -15432,7 +15432,7 @@ var commands = {
15432
15432
  }
15433
15433
  },
15434
15434
  title: "Create an appointment",
15435
- description: "Book one appointment in e-Oficlinic (ASIGNAR_CITAS) for a slot that search_booking_slots or list_booking_slots offered in an availability flow. Send what a person at the desk chooses: confirm true; the slot's flowId and slotId; the patient's documentType and documentNumber; the payer's planId and subplanId (list_payer_plans, list_payer_subplans); and in classification the patient's regime and affiliateType (list_regimes, list_affiliate_types) and, for copayments, salaryRange (list_salary_ranges). Leave the rest out: the service resolves it as the provider's own booking screen does. The payer, program and attention type are the flow's; the purpose is the form's default, 10; the contract is the payer's only active one, or none when it has none; billing takes its flags from the payer's row, its copayment rate, cap and moderator fee from the salary range's row, and its tariff from the payer's tariff matrix for the flow's service under the plan and subplan. A value the caller does send is used as given, and a billing object is sent unchanged with nothing resolved. BOOKING_VALUE_UNRESOLVED means a needed value could not be resolved from the provider's own data and nothing was written; send it and repeat: contractId when the payer has several active contracts; classification.relationship when the affiliate type is neither C nor N; classification.listStatus when the payer uses an attention list; referral.authorizationNumber when the payer requires authorization; a classification.salaryRange the regime lists; or billing when the payer's tariff grid has no positive tariff for the service. Before anything is written, the patient is resolved by citizenship card; the source must still count exactly one unit for the program and attention type; the regime, affiliate type, relationship and salary range, and the payer, plan, subplan and contract, must be listed by the provider; the service must be configured for the slot's professional; and a fresh read must still show the slot. The intent and a fence on the slot are recorded before the single provider request, which is never resent. Success means the provider answered a strictly positive appointment number, the source's own creation signal (verification provider_acknowledgement). OUTCOME_UNKNOWN means the appointment may exist: do not book again; check lookup_appointments with status assigned and ask staff. WRITE_TARGET_UNRESOLVED means another key's write to this slot has no final outcome, so nothing was sent. WRITE_LEDGER_FULL means the connection's ledger refused a new write and nothing was sent. Repeating the identical request answers the recorded outcome; no idempotency key is needed. One-slot, one-unit bookings only. agentMode true answers concise Spanish text instead.",
15435
+ description: "Book one appointment in e-Oficlinic (ASIGNAR_CITAS) for a slot that search_booking_slots or list_booking_slots offered in an availability flow. Send what a person at the desk chooses: confirm true; the slot's flowId and slotId; the patient's documentType and documentNumber; the payer's planId and subplanId (list_payer_plans, list_payer_subplans); and in classification the patient's regime and affiliateType (list_regimes, list_affiliate_types) and, for copayments, salaryRange (list_salary_ranges). Leave the rest out: the service resolves it as the provider's own booking screen does. The payer, program and attention type are the flow's; the purpose is the form's default, 10; the contract is the payer's only active one, or none when it has none; billing takes its flags from the payer's row, its copayment rate, cap and moderator fee from the salary range's row, and its tariff from the payer's tariff matrix for the flow's service under the plan and subplan. A value the caller does send is used as given, and a billing object is sent unchanged with nothing resolved. BOOKING_VALUE_UNRESOLVED means a needed value could not be resolved from the provider's own data and nothing was written; send it and repeat: contractId when the payer has several active contracts; classification.relationship when the affiliate type is neither C nor N; classification.listStatus when the payer uses an attention list; a classification.salaryRange the regime lists; or billing when the payer's tariff grid has no positive tariff for the service. Before anything is written, the patient is resolved by citizenship card; the source must still count exactly one unit for the program and attention type; the regime, affiliate type, relationship and salary range, and the payer, plan, subplan and contract, must be listed by the provider; the service must be configured for the slot's professional; and a fresh read must still show the slot. The intent and a fence on the slot are recorded before the single provider request, which is never resent. Success means the provider answered a strictly positive appointment number, the source's own creation signal (verification provider_acknowledgement). OUTCOME_UNKNOWN means the appointment may exist: do not book again; check lookup_appointments with status assigned and ask staff. WRITE_TARGET_UNRESOLVED means another key's write to this slot has no final outcome, so nothing was sent. WRITE_LEDGER_FULL means the connection's ledger refused a new write and nothing was sent. Repeating the identical request answers the recorded outcome; no idempotency key is needed. One-slot, one-unit bookings only. agentMode true answers concise Spanish text instead.",
15436
15436
  effect: "write",
15437
15437
  confirmation: null,
15438
15438
  hidden: false
@@ -16014,7 +16014,7 @@ var commands = {
16014
16014
  default: null
16015
16015
  },
16016
16016
  authorizationNumber: {
16017
- description: "Sent as pAutorizacion: the payer's authorization number; empty when null. The screen requires one only when the payer requires it (requiresAuthorization in list_payers): leaving it out then answers BOOKING_VALUE_UNRESOLVED.",
16017
+ description: "Sent as pAutorizacion: the payer's authorization number; empty when null. A payer that requires authorization (requiresAuthorization in list_payers) is still booked without one, as the clinic's staff do; they complete it before the visit.",
16018
16018
  anyOf: [
16019
16019
  {
16020
16020
  pattern: "^[0-9A-Za-z-]{1,30}$",
@@ -31533,7 +31533,7 @@ var commands = {
31533
31533
  additionalProperties: false
31534
31534
  },
31535
31535
  title: "Look up an authorization",
31536
- description: "Read an existing SaludWeb authorization for the exact patient, issuer and authorization number. Reports its status, dates, the authorized procedures, the provider it is directed to, explicit charge type, fixed fee or copay percentage and provider-reported payments. Procedures that could not be read, unknown balance and copay cap remain null. Does not issue, attend, modify or pay an authorization.",
31536
+ description: "Read an existing SaludWeb authorization for the exact patient, issuer and authorization number. Reports its status, dates, the authorized procedures, the provider it is directed to, explicit charge type, fixed fee or copay percentage and provider-reported payments. Procedures that could not be read, unknown balance and copay cap remain null. Does not issue, attend, modify or pay an authorization. It cannot search or list a patient’s authorizations: to check one, ask the person for its issuer code and number, and never say SURA is checking whether they have one. A pending or missing answer never means the patient has no authorization.",
31537
31537
  effect: "read",
31538
31538
  confirmation: null,
31539
31539
  hidden: false
@@ -156538,6 +156538,40 @@ var schemaComponents = {
156538
156538
  }
156539
156539
  }
156540
156540
  },
156541
+ GmedicAgendaInactiveFailure: {
156542
+ type: "object",
156543
+ description: "This agenda is inactive in gMedic. Do not offer or book it: choose an active agenda from list_agendas or refer the request to reception.",
156544
+ additionalProperties: false,
156545
+ required: [
156546
+ "code",
156547
+ "message",
156548
+ "retryable",
156549
+ "data"
156550
+ ],
156551
+ properties: {
156552
+ code: {
156553
+ type: "string",
156554
+ enum: [
156555
+ "AGENDA_INACTIVE"
156556
+ ],
156557
+ description: "The failure code, stable across releases."
156558
+ },
156559
+ message: {
156560
+ type: "string",
156561
+ description: "What went wrong, for people; it never contains input values."
156562
+ },
156563
+ retryable: {
156564
+ type: "boolean",
156565
+ enum: [
156566
+ false
156567
+ ],
156568
+ description: "Whether repeating the same request may succeed."
156569
+ },
156570
+ data: {
156571
+ $ref: "#/components/schemas/Empty"
156572
+ }
156573
+ }
156574
+ },
156541
156575
  GmedicAgendaServicesPage: {
156542
156576
  additionalProperties: false,
156543
156577
  type: "object",
@@ -159174,6 +159208,9 @@ var schemaComponents = {
159174
159208
  {
159175
159209
  $ref: "#/components/schemas/GmedicBookingColorRequiredFailure"
159176
159210
  },
159211
+ {
159212
+ $ref: "#/components/schemas/GmedicAgendaInactiveFailure"
159213
+ },
159177
159214
  {
159178
159215
  $ref: "#/components/schemas/GmedicBookingInProgressFailure"
159179
159216
  }
@@ -159183,6 +159220,7 @@ var schemaComponents = {
159183
159220
  mapping: {
159184
159221
  NOT_CONFIGURED: "#/components/schemas/GmedicNotConfiguredFailure",
159185
159222
  BOOKING_COLOR_REQUIRED: "#/components/schemas/GmedicBookingColorRequiredFailure",
159223
+ AGENDA_INACTIVE: "#/components/schemas/GmedicAgendaInactiveFailure",
159186
159224
  BOOKING_IN_PROGRESS: "#/components/schemas/GmedicBookingInProgressFailure"
159187
159225
  }
159188
159226
  }
@@ -163971,13 +164009,17 @@ var schemaComponents = {
163971
164009
  },
163972
164010
  {
163973
164011
  $ref: "#/components/schemas/GmedicBookingColorRequiredFailure"
164012
+ },
164013
+ {
164014
+ $ref: "#/components/schemas/GmedicAgendaInactiveFailure"
163974
164015
  }
163975
164016
  ],
163976
164017
  discriminator: {
163977
164018
  propertyName: "code",
163978
164019
  mapping: {
163979
164020
  NOT_CONFIGURED: "#/components/schemas/GmedicNotConfiguredFailure",
163980
- BOOKING_COLOR_REQUIRED: "#/components/schemas/GmedicBookingColorRequiredFailure"
164021
+ BOOKING_COLOR_REQUIRED: "#/components/schemas/GmedicBookingColorRequiredFailure",
164022
+ AGENDA_INACTIVE: "#/components/schemas/GmedicAgendaInactiveFailure"
163981
164023
  }
163982
164024
  }
163983
164025
  },
@@ -164124,6 +164166,51 @@ var schemaComponents = {
164124
164166
  }
164125
164167
  }
164126
164168
  },
164169
+ GmedicListAvailableDaysConflictError: {
164170
+ type: "object",
164171
+ description: "A failed answer.",
164172
+ additionalProperties: false,
164173
+ required: [
164174
+ "success",
164175
+ "data",
164176
+ "error",
164177
+ "metadata"
164178
+ ],
164179
+ properties: {
164180
+ success: {
164181
+ type: "boolean",
164182
+ enum: [
164183
+ false
164184
+ ]
164185
+ },
164186
+ data: {
164187
+ const: null
164188
+ },
164189
+ error: {
164190
+ $ref: "#/components/schemas/GmedicListAvailableDaysConflictFailure"
164191
+ },
164192
+ metadata: {
164193
+ $ref: "#/components/schemas/ResponseMetadata"
164194
+ }
164195
+ }
164196
+ },
164197
+ GmedicListAvailableDaysConflictFailure: {
164198
+ oneOf: [
164199
+ {
164200
+ $ref: "#/components/schemas/GmedicNotConfiguredFailure"
164201
+ },
164202
+ {
164203
+ $ref: "#/components/schemas/GmedicAgendaInactiveFailure"
164204
+ }
164205
+ ],
164206
+ discriminator: {
164207
+ propertyName: "code",
164208
+ mapping: {
164209
+ NOT_CONFIGURED: "#/components/schemas/GmedicNotConfiguredFailure",
164210
+ AGENDA_INACTIVE: "#/components/schemas/GmedicAgendaInactiveFailure"
164211
+ }
164212
+ }
164213
+ },
164127
164214
  GmedicListAvailableDaysNotFoundError: {
164128
164215
  type: "object",
164129
164216
  description: "A failed answer.",
@@ -179676,7 +179763,7 @@ var schemaComponents = {
179676
179763
  default: null
179677
179764
  },
179678
179765
  authorizationNumber: {
179679
- description: "Sent as pAutorizacion: the payer's authorization number; empty when null. The screen requires one only when the payer requires it (requiresAuthorization in list_payers): leaving it out then answers BOOKING_VALUE_UNRESOLVED.",
179766
+ description: "Sent as pAutorizacion: the payer's authorization number; empty when null. A payer that requires authorization (requiresAuthorization in list_payers) is still booked without one, as the clinic's staff do; they complete it before the visit.",
179680
179767
  anyOf: [
179681
179768
  {
179682
179769
  pattern: "^[0-9A-Za-z-]{1,30}$",
@@ -189502,7 +189589,7 @@ var schemaComponents = {
189502
189589
  default: null
189503
189590
  },
189504
189591
  authorizationNumber: {
189505
- description: "Sent as pAutorizacion: the payer's authorization number; empty when null. The screen requires one only when the payer requires it (requiresAuthorization in list_payers): leaving it out then answers BOOKING_VALUE_UNRESOLVED.",
189592
+ description: "Sent as pAutorizacion: the payer's authorization number; empty when null. A payer that requires authorization (requiresAuthorization in list_payers) is still booked without one, as the clinic's staff do; they complete it before the visit.",
189506
189593
  anyOf: [
189507
189594
  {
189508
189595
  pattern: "^[0-9A-Za-z-]{1,30}$",
@@ -197450,23 +197537,33 @@ var schemaComponents = {
197450
197537
  {
197451
197538
  anyOf: [
197452
197539
  {
197453
- type: "string",
197454
- const: "arbolito/agile"
197455
- },
197456
- {
197457
- type: "string",
197458
- const: "arbolito/balanced"
197459
- },
197460
- {
197461
- type: "string",
197462
- const: "arbolito/advanced"
197540
+ anyOf: [
197541
+ {
197542
+ type: "string",
197543
+ const: "arbolito/agile"
197544
+ },
197545
+ {
197546
+ type: "string",
197547
+ const: "arbolito/balanced"
197548
+ },
197549
+ {
197550
+ type: "string",
197551
+ const: "arbolito/advanced"
197552
+ },
197553
+ {
197554
+ type: "string",
197555
+ const: "arbolito/top"
197556
+ }
197557
+ ],
197558
+ description: "The tier the Agent thinks with on calls. `arbolito/agile`: quickest and least expensive, for direct conversations. `arbolito/balanced`: more deliberate answers at moderate cost. `arbolito/advanced`: strong reasoning for complex instructions and many tools, with an adjustable `reasoningEffort`. `arbolito/top`: the most capable, for the hardest cases, with an adjustable `reasoningEffort` up to `xhigh`. Every tier reads images and PDF documents. Null: the default, as `arbolito/agile`."
197463
197559
  },
197464
197560
  {
197465
197561
  type: "string",
197466
- const: "arbolito/top"
197562
+ const: "arbolito/voice-fast",
197563
+ description: "Selects a specific fast model for calls and their text simulations."
197467
197564
  }
197468
197565
  ],
197469
- description: "The tier the Agent thinks with on calls. `arbolito/agile`: quickest and least expensive, for direct conversations. `arbolito/balanced`: more deliberate answers at moderate cost. `arbolito/advanced`: strong reasoning for complex instructions and many tools, with an adjustable `reasoningEffort`. `arbolito/top`: the most capable, for the hardest cases, with an adjustable `reasoningEffort` up to `xhigh`. Every tier reads images and PDF documents. Null: the default, as `arbolito/agile`."
197566
+ description: "The tier, or a named voice model, the Agent thinks with on calls. Null: the default."
197470
197567
  },
197471
197568
  {
197472
197569
  type: "null"
@@ -255435,7 +255532,7 @@ var schemaComponents = {
255435
255532
  default: null
255436
255533
  },
255437
255534
  authorizationNumber: {
255438
- description: "Sent as pAutorizacion: the payer's authorization number; empty when null. The screen requires one only when the payer requires it (requiresAuthorization in list_payers): leaving it out then answers BOOKING_VALUE_UNRESOLVED.",
255535
+ description: "Sent as pAutorizacion: the payer's authorization number; empty when null. A payer that requires authorization (requiresAuthorization in list_payers) is still booked without one, as the clinic's staff do; they complete it before the visit.",
255439
255536
  anyOf: [
255440
255537
  {
255441
255538
  pattern: "^[0-9A-Za-z-]{1,30}$",
@@ -255849,7 +255946,7 @@ var schemaComponents = {
255849
255946
  default: null
255850
255947
  },
255851
255948
  authorizationNumber: {
255852
- description: "Sent as pAutorizacion: the payer's authorization number; empty when null. The screen requires one only when the payer requires it (requiresAuthorization in list_payers): leaving it out then answers BOOKING_VALUE_UNRESOLVED.",
255949
+ description: "Sent as pAutorizacion: the payer's authorization number; empty when null. A payer that requires authorization (requiresAuthorization in list_payers) is still booked without one, as the clinic's staff do; they complete it before the visit.",
255853
255950
  anyOf: [
255854
255951
  {
255855
255952
  pattern: "^[0-9A-Za-z-]{1,30}$",
@@ -267193,9 +267290,9 @@ var schemaComponents = {
267193
267290
  // src/generated/generation.json
267194
267291
  var generation_default = {
267195
267292
  formatVersion: 6,
267196
- release: "1.20261120.163816",
267197
- openapiSha256: "205288fed167aaad0fcb36eb6a4727a12310ea3c72b5b421b4dae7bdc09bcc23",
267198
- openapiContentSha256: "4dcce28a0d0634fb55805f72d6db8dc586e0a4e9930a869f650c9460d06be606",
267293
+ release: "1.20261125.21951",
267294
+ openapiSha256: "fbb951142466ccb7db7651002ab2d7a1a24eb85e41a21c67bbf50b13c1741919",
267295
+ openapiContentSha256: "8d52030d5ca554e5ea36967e17622553c3c195c032a1a47c7f10633f8ab90143",
267199
267296
  forge: {
267200
267297
  repository: "https://github.com/cloudflare/forge",
267201
267298
  commit: "7f86447210b7bea3779bfdab3cd5655eade0eadb",
@@ -267208,7 +267305,7 @@ var generation_default = {
267208
267305
  outputs: [
267209
267306
  {
267210
267307
  path: "src/generated/commands.ts",
267211
- sha256: "d5f20b1c90ab737c0d06a435737f29e29873411a65c24e50df5b76a7964603d1"
267308
+ sha256: "52496c636ab1fddaf0f4874edebe6c6a175d73f061b49990386377bfa4d9ce54"
267212
267309
  }
267213
267310
  ]
267214
267311
  };
@@ -268808,7 +268905,7 @@ ${name}`);
268808
268905
  }
268809
268906
 
268810
268907
  // src/index.ts
268811
- var VERSION = "3.69.0";
268908
+ var VERSION = "3.71.0";
268812
268909
  var RELEASE = generation_default.release;
268813
268910
  var commands2 = { ...commands, ...accountOperatorCommands };
268814
268911
  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.69.0",
3
+ "version": "3.71.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.69.0",
48
+ "@arbol-ai/sdk": "5.71.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.20261120.163816",
64
- "sha256": "4dcce28a0d0634fb55805f72d6db8dc586e0a4e9930a869f650c9460d06be606"
63
+ "release": "1.20261125.21951",
64
+ "sha256": "8d52030d5ca554e5ea36967e17622553c3c195c032a1a47c7f10633f8ab90143"
65
65
  }
66
66
  }
67
67
  }