@arbol-ai/cli 2.14.0 → 2.15.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 +57 -18
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -1672,7 +1672,7 @@ var commands = {
1672
1672
  flag: "email",
1673
1673
  kind: "string",
1674
1674
  required: true,
1675
- description: "Who to invite: someone not yet in the organization."
1675
+ description: "Who to invite: someone who does not have an Arbol account yet."
1676
1676
  },
1677
1677
  {
1678
1678
  name: "product",
@@ -1707,7 +1707,7 @@ var commands = {
1707
1707
  email: {
1708
1708
  format: "email",
1709
1709
  maxLength: 320,
1710
- description: "Who to invite: someone not yet in the organization.",
1710
+ description: "Who to invite: someone who does not have an Arbol account yet.",
1711
1711
  type: "string"
1712
1712
  },
1713
1713
  product: {
@@ -1740,7 +1740,7 @@ var commands = {
1740
1740
  }
1741
1741
  },
1742
1742
  title: "Invite someone to a product",
1743
- description: "Invites someone not yet in the organization by email with a role in Raíz, Agenda, Ámbar or Account. The invitation email comes from the product's own application, so its link opens that product. Someone already in the organization is given the role with `members.create`.",
1743
+ description: "Invites someone without an Arbol account by email with a role in Raíz, Agenda, Ámbar or Account. The invitation email comes from the product's own application. Existing accounts receive access with `members.create` and sign in with their current password.",
1744
1744
  effect: "write",
1745
1745
  confirmation: null,
1746
1746
  hidden: false
@@ -1996,7 +1996,7 @@ var commands = {
1996
1996
  flag: "email",
1997
1997
  kind: "string",
1998
1998
  required: true,
1999
- description: "The email of someone already in the organization."
1999
+ description: "The email of someone with an existing Arbol account, in this organization or another."
2000
2000
  },
2001
2001
  {
2002
2002
  name: "product",
@@ -2031,7 +2031,7 @@ var commands = {
2031
2031
  email: {
2032
2032
  format: "email",
2033
2033
  maxLength: 320,
2034
- description: "The email of someone already in the organization.",
2034
+ description: "The email of someone with an existing Arbol account, in this organization or another.",
2035
2035
  type: "string"
2036
2036
  },
2037
2037
  product: {
@@ -2064,7 +2064,7 @@ var commands = {
2064
2064
  }
2065
2065
  },
2066
2066
  title: "Give a member a role in a product",
2067
- description: "Gives someone already in the organization a role in Raíz, Agenda, Ámbar or Account, by their email. Anyone else is invited with `invitations.create`.",
2067
+ description: "Gives someone with an existing Arbol account a role in Raíz, Agenda, Ámbar or Account, joining them to this organization when needed. They sign in with their current password. Someone without an account is invited with `invitations.create`.",
2068
2068
  effect: "write",
2069
2069
  confirmation: null,
2070
2070
  hidden: false
@@ -7329,7 +7329,8 @@ var commands = {
7329
7329
  type: "null"
7330
7330
  }
7331
7331
  ],
7332
- description: "Agent conversation URL retained so the scheduling team can reopen the referring conversation."
7332
+ description: "Agent conversation URL retained so the scheduling team can reopen the referring conversation.",
7333
+ "x-arbol-runtime-input": "conversationUrl"
7333
7334
  },
7334
7335
  note: {
7335
7336
  anyOf: [
@@ -7476,7 +7477,7 @@ var commands = {
7476
7477
  }
7477
7478
  },
7478
7479
  title: "Add a patient to the waiting list",
7479
- description: "Put a patient on the clinic's waiting list for the team to act on, only with the person's consent. Use reason 'payer_review' instead of booking when the patient's payer (EPS) has bookingPolicy 'staff_only' in get_intake_settings (create_appointment refuses them): the team coordinates with the doctor and books it. Use reason 'priority' right after create_appointment when the patient asked for a priority (urgent) appointment: pass that appointment's id as appointmentId so the team can bring it forward. Always pass conversationUrl: this conversation's link in Arbol's Contactabilidad (https://raiz.getarbol.com/conversations/…), so the team opens it there. Pass the patient's name, document and documentType, phone, serviceId and the payer as the patient said it. Use resourceId only for the professional the person requested. Calling again for the same patient, service and reason returns the same open entry and updates supplied consented preferences, note, payer, conversation or appointment association. A supplied confirmed phone replaces the patient contact phone; omitted or null phone preserves it. Omitted fields preserve their values; resourceId:null explicitly accepts any professional. When supplying preferences, send the complete consented date/time window; null fields clear those limits. Identical repeats do not change the version. Staff status, priority and original queue position are preserved. A closed entry is not reopened. This registers a waiting-list request, never an appointment. Then tell the patient the clinic's team will contact them.",
7480
+ description: "Put a patient on the clinic's waiting list for the team to act on, only with the person's consent. Use reason 'payer_review' instead of booking when the patient's payer (EPS) has bookingPolicy 'staff_only' in get_intake_settings (create_appointment refuses them): the team coordinates with the doctor and books it. Use reason 'priority' right after create_appointment when the patient asked for a priority (urgent) appointment: pass that appointment's id as appointmentId so the team can bring it forward. For agent calls, the platform supplies conversationUrl from the invoking conversation; omit that field. Direct callers may supply the referring conversation link so the team can reopen it. Pass the patient's name, document and documentType, phone, serviceId and the payer as the patient said it. Use resourceId only for the professional the person requested. Calling again for the same patient, service and reason returns the same open entry and updates supplied consented preferences, note, payer, conversation or appointment association. A supplied confirmed phone replaces the patient contact phone; omitted or null phone preserves it. Omitted fields preserve their values; resourceId:null explicitly accepts any professional. When supplying preferences, send the complete consented date/time window; null fields clear those limits. Identical repeats do not change the version. Staff status, priority and original queue position are preserved. A closed entry is not reopened. This registers a waiting-list request, never an appointment. Then tell the patient the clinic's team will contact them.",
7480
7481
  effect: "write",
7481
7482
  confirmation: null,
7482
7483
  hidden: false
@@ -27110,7 +27111,7 @@ var schemaComponents = {
27110
27111
  ],
27111
27112
  properties: {
27112
27113
  runtimeInputs: {
27113
- maxItems: 2,
27114
+ maxItems: 3,
27114
27115
  type: "array",
27115
27116
  items: {
27116
27117
  anyOf: [
@@ -27121,6 +27122,10 @@ var schemaComponents = {
27121
27122
  {
27122
27123
  const: "channel",
27123
27124
  type: "string"
27125
+ },
27126
+ {
27127
+ const: "conversationUrl",
27128
+ type: "string"
27124
27129
  }
27125
27130
  ]
27126
27131
  }
@@ -28223,6 +28228,35 @@ var schemaComponents = {
28223
28228
  }
28224
28229
  }
28225
28230
  },
28231
+ {
28232
+ additionalProperties: false,
28233
+ type: "object",
28234
+ required: [
28235
+ "code",
28236
+ "message",
28237
+ "retryable",
28238
+ "data"
28239
+ ],
28240
+ properties: {
28241
+ code: {
28242
+ const: "ACCOUNT_EXISTS",
28243
+ type: "string"
28244
+ },
28245
+ message: {
28246
+ const: "This person already has an Arbol account. Give them access with members.create.",
28247
+ type: "string"
28248
+ },
28249
+ retryable: {
28250
+ const: false,
28251
+ type: "boolean"
28252
+ },
28253
+ data: {
28254
+ additionalProperties: false,
28255
+ type: "object",
28256
+ properties: {}
28257
+ }
28258
+ }
28259
+ },
28226
28260
  {
28227
28261
  additionalProperties: false,
28228
28262
  type: "object",
@@ -28296,7 +28330,7 @@ var schemaComponents = {
28296
28330
  type: "string"
28297
28331
  },
28298
28332
  message: {
28299
- const: "This person is not a member.",
28333
+ const: "No existing Arbol account was found.",
28300
28334
  type: "string"
28301
28335
  },
28302
28336
  retryable: {
@@ -29457,6 +29491,10 @@ var schemaComponents = {
29457
29491
  const: "visoft",
29458
29492
  type: "string"
29459
29493
  },
29494
+ {
29495
+ const: "nueva-eps",
29496
+ type: "string"
29497
+ },
29460
29498
  {
29461
29499
  const: "account",
29462
29500
  type: "string"
@@ -63312,7 +63350,7 @@ var schemaComponents = {
63312
63350
  email: {
63313
63351
  format: "email",
63314
63352
  maxLength: 320,
63315
- description: "Who to invite: someone not yet in the organization.",
63353
+ description: "Who to invite: someone who does not have an Arbol account yet.",
63316
63354
  type: "string"
63317
63355
  },
63318
63356
  product: {
@@ -63462,7 +63500,7 @@ var schemaComponents = {
63462
63500
  email: {
63463
63501
  format: "email",
63464
63502
  maxLength: 320,
63465
- description: "The email of someone already in the organization.",
63503
+ description: "The email of someone with an existing Arbol account, in this organization or another.",
63466
63504
  type: "string"
63467
63505
  },
63468
63506
  product: {
@@ -66224,7 +66262,8 @@ var schemaComponents = {
66224
66262
  type: "null"
66225
66263
  }
66226
66264
  ],
66227
- description: "Agent conversation URL retained so the scheduling team can reopen the referring conversation."
66265
+ description: "Agent conversation URL retained so the scheduling team can reopen the referring conversation.",
66266
+ "x-arbol-runtime-input": "conversationUrl"
66228
66267
  },
66229
66268
  note: {
66230
66269
  anyOf: [
@@ -76776,9 +76815,9 @@ var schemaComponents = {
76776
76815
  // src/generated/generation.json
76777
76816
  var generation_default = {
76778
76817
  formatVersion: 6,
76779
- release: "1.20261028.202015",
76780
- openapiSha256: "513a2324aeeace2d574f76d49eb9d3dbfc8113a97849ff8e418e7d17a8d2bfba",
76781
- openapiContentSha256: "268d85ea2cea9f6a0cc5de011c11912128724fb1e1a101e2b12cb628a5e2c13d",
76818
+ release: "1.20261028.230100",
76819
+ openapiSha256: "6d143e0943ce352d203b2e84fbea30f104925bd182a516cb7e9378db2d6c5aff",
76820
+ openapiContentSha256: "821b642463ce46413eb98de5ae447705d8d3559284cfda5e63341c7bcf56d1f8",
76782
76821
  forge: {
76783
76822
  repository: "https://github.com/cloudflare/forge",
76784
76823
  commit: "7f86447210b7bea3779bfdab3cd5655eade0eadb",
@@ -76791,7 +76830,7 @@ var generation_default = {
76791
76830
  outputs: [
76792
76831
  {
76793
76832
  path: "src/generated/commands.ts",
76794
- sha256: "f773acce3f565ee909c2c58b6238fb1ca080710f919a48b9ff97fe62cb789c61"
76833
+ sha256: "d2504b6235347dccfae2220e95c79fd53e26f0d92e132806c574fe5e0eb84b28"
76795
76834
  }
76796
76835
  ]
76797
76836
  };
@@ -77146,7 +77185,7 @@ ${name}`);
77146
77185
  }
77147
77186
 
77148
77187
  // src/index.ts
77149
- var VERSION = "2.14.0";
77188
+ var VERSION = "2.15.0";
77150
77189
  var RELEASE = generation_default.release;
77151
77190
  var SDK_PATHS = new Map(Object.values(commands).map((command) => [command.operation, command.sdkPath]));
77152
77191
  var SERVICES = [...new Set(Object.keys(commands).map((name) => name.split(" ")[0]))].toSorted();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arbol-ai/cli",
3
- "version": "2.14.0",
3
+ "version": "2.15.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": "2.15.0",
48
+ "@arbol-ai/sdk": "2.16.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.20261028.202015",
64
- "sha256": "268d85ea2cea9f6a0cc5de011c11912128724fb1e1a101e2b12cb628a5e2c13d"
63
+ "release": "1.20261028.230100",
64
+ "sha256": "821b642463ce46413eb98de5ae447705d8d3559284cfda5e63341c7bcf56d1f8"
65
65
  }
66
66
  }
67
67
  }