@arbol-ai/cli 2.14.0 → 2.16.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 +133 -22
  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
@@ -8136,7 +8137,7 @@ var commands = {
8136
8137
  flag: "branch-office-id",
8137
8138
  kind: "string",
8138
8139
  required: false,
8139
- description: ""
8140
+ description: "Optional verified branch id returned by list_branch_offices. Omit when unknown; one physical site never implies id 1."
8140
8141
  },
8141
8142
  {
8142
8143
  name: "id",
@@ -8192,6 +8193,7 @@ var commands = {
8192
8193
  },
8193
8194
  branchOfficeId: {
8194
8195
  pattern: "^[1-9][0-9]{0,14}$",
8196
+ description: "Optional verified branch id returned by list_branch_offices. Omit when unknown; one physical site never implies id 1.",
8195
8197
  type: "string"
8196
8198
  },
8197
8199
  id: {
@@ -8797,7 +8799,7 @@ var commands = {
8797
8799
  flag: "cursor",
8798
8800
  kind: "string",
8799
8801
  required: false,
8800
- description: "Opaque cursor returned by pageInfo; omit it to request the first page."
8802
+ description: "Omit on the first lookup. For continuation, copy only a nextCursor returned by this exact query. Never supply an empty string, quotes, braces, a page number or an invented token."
8801
8803
  },
8802
8804
  {
8803
8805
  name: "direction",
@@ -8858,7 +8860,10 @@ var commands = {
8858
8860
  ],
8859
8861
  properties: {
8860
8862
  cursor: {
8861
- description: "Opaque cursor returned by pageInfo; omit it to request the first page.",
8863
+ minLength: 1,
8864
+ maxLength: 32768,
8865
+ pattern: "^[A-Za-z0-9_-]+$",
8866
+ description: "Omit on the first lookup. For continuation, copy only a nextCursor returned by this exact query. Never supply an empty string, quotes, braces, a page number or an invented token.",
8862
8867
  type: "string"
8863
8868
  },
8864
8869
  direction: {
@@ -27110,7 +27115,7 @@ var schemaComponents = {
27110
27115
  ],
27111
27116
  properties: {
27112
27117
  runtimeInputs: {
27113
- maxItems: 2,
27118
+ maxItems: 3,
27114
27119
  type: "array",
27115
27120
  items: {
27116
27121
  anyOf: [
@@ -27121,6 +27126,10 @@ var schemaComponents = {
27121
27126
  {
27122
27127
  const: "channel",
27123
27128
  type: "string"
27129
+ },
27130
+ {
27131
+ const: "conversationUrl",
27132
+ type: "string"
27124
27133
  }
27125
27134
  ]
27126
27135
  }
@@ -28223,6 +28232,35 @@ var schemaComponents = {
28223
28232
  }
28224
28233
  }
28225
28234
  },
28235
+ {
28236
+ additionalProperties: false,
28237
+ type: "object",
28238
+ required: [
28239
+ "code",
28240
+ "message",
28241
+ "retryable",
28242
+ "data"
28243
+ ],
28244
+ properties: {
28245
+ code: {
28246
+ const: "ACCOUNT_EXISTS",
28247
+ type: "string"
28248
+ },
28249
+ message: {
28250
+ const: "This person already has an Arbol account. Give them access with members.create.",
28251
+ type: "string"
28252
+ },
28253
+ retryable: {
28254
+ const: false,
28255
+ type: "boolean"
28256
+ },
28257
+ data: {
28258
+ additionalProperties: false,
28259
+ type: "object",
28260
+ properties: {}
28261
+ }
28262
+ }
28263
+ },
28226
28264
  {
28227
28265
  additionalProperties: false,
28228
28266
  type: "object",
@@ -28296,7 +28334,7 @@ var schemaComponents = {
28296
28334
  type: "string"
28297
28335
  },
28298
28336
  message: {
28299
- const: "This person is not a member.",
28337
+ const: "No existing Arbol account was found.",
28300
28338
  type: "string"
28301
28339
  },
28302
28340
  retryable: {
@@ -29457,6 +29495,10 @@ var schemaComponents = {
29457
29495
  const: "visoft",
29458
29496
  type: "string"
29459
29497
  },
29498
+ {
29499
+ const: "nueva-eps",
29500
+ type: "string"
29501
+ },
29460
29502
  {
29461
29503
  const: "account",
29462
29504
  type: "string"
@@ -36692,6 +36734,59 @@ var schemaComponents = {
36692
36734
  }
36693
36735
  ]
36694
36736
  },
36737
+ mainAttendantDocumentType: {
36738
+ anyOf: [
36739
+ {
36740
+ additionalProperties: false,
36741
+ type: "object",
36742
+ required: [
36743
+ "id"
36744
+ ],
36745
+ properties: {
36746
+ id: {
36747
+ pattern: "^[1-9][0-9]{0,14}$",
36748
+ type: "string"
36749
+ },
36750
+ name: {
36751
+ anyOf: [
36752
+ {
36753
+ maxLength: 20000,
36754
+ type: "string"
36755
+ },
36756
+ {
36757
+ type: "null"
36758
+ }
36759
+ ]
36760
+ },
36761
+ label: {
36762
+ anyOf: [
36763
+ {
36764
+ maxLength: 20000,
36765
+ type: "string"
36766
+ },
36767
+ {
36768
+ type: "null"
36769
+ }
36770
+ ]
36771
+ },
36772
+ value: {
36773
+ anyOf: [
36774
+ {
36775
+ maxLength: 20000,
36776
+ type: "string"
36777
+ },
36778
+ {
36779
+ type: "null"
36780
+ }
36781
+ ]
36782
+ }
36783
+ }
36784
+ },
36785
+ {
36786
+ type: "null"
36787
+ }
36788
+ ]
36789
+ },
36695
36790
  mainAttendantPhone: {
36696
36791
  anyOf: [
36697
36792
  {
@@ -37086,6 +37181,17 @@ var schemaComponents = {
37086
37181
  }
37087
37182
  ]
37088
37183
  },
37184
+ userType: {
37185
+ anyOf: [
37186
+ {
37187
+ maxLength: 20000,
37188
+ type: "string"
37189
+ },
37190
+ {
37191
+ type: "null"
37192
+ }
37193
+ ]
37194
+ },
37089
37195
  cupCode: {
37090
37196
  anyOf: [
37091
37197
  {
@@ -63312,7 +63418,7 @@ var schemaComponents = {
63312
63418
  email: {
63313
63419
  format: "email",
63314
63420
  maxLength: 320,
63315
- description: "Who to invite: someone not yet in the organization.",
63421
+ description: "Who to invite: someone who does not have an Arbol account yet.",
63316
63422
  type: "string"
63317
63423
  },
63318
63424
  product: {
@@ -63462,7 +63568,7 @@ var schemaComponents = {
63462
63568
  email: {
63463
63569
  format: "email",
63464
63570
  maxLength: 320,
63465
- description: "The email of someone already in the organization.",
63571
+ description: "The email of someone with an existing Arbol account, in this organization or another.",
63466
63572
  type: "string"
63467
63573
  },
63468
63574
  product: {
@@ -66224,7 +66330,8 @@ var schemaComponents = {
66224
66330
  type: "null"
66225
66331
  }
66226
66332
  ],
66227
- description: "Agent conversation URL retained so the scheduling team can reopen the referring conversation."
66333
+ description: "Agent conversation URL retained so the scheduling team can reopen the referring conversation.",
66334
+ "x-arbol-runtime-input": "conversationUrl"
66228
66335
  },
66229
66336
  note: {
66230
66337
  anyOf: [
@@ -66658,6 +66765,7 @@ var schemaComponents = {
66658
66765
  },
66659
66766
  branchOfficeId: {
66660
66767
  pattern: "^[1-9][0-9]{0,14}$",
66768
+ description: "Optional verified branch id returned by list_branch_offices. Omit when unknown; one physical site never implies id 1.",
66661
66769
  type: "string"
66662
66770
  },
66663
66771
  id: {
@@ -67048,7 +67156,10 @@ var schemaComponents = {
67048
67156
  ],
67049
67157
  properties: {
67050
67158
  cursor: {
67051
- description: "Opaque cursor returned by pageInfo; omit it to request the first page.",
67159
+ minLength: 1,
67160
+ maxLength: 32768,
67161
+ pattern: "^[A-Za-z0-9_-]+$",
67162
+ description: "Omit on the first lookup. For continuation, copy only a nextCursor returned by this exact query. Never supply an empty string, quotes, braces, a page number or an invented token.",
67052
67163
  type: "string"
67053
67164
  },
67054
67165
  direction: {
@@ -76776,9 +76887,9 @@ var schemaComponents = {
76776
76887
  // src/generated/generation.json
76777
76888
  var generation_default = {
76778
76889
  formatVersion: 6,
76779
- release: "1.20261028.202015",
76780
- openapiSha256: "513a2324aeeace2d574f76d49eb9d3dbfc8113a97849ff8e418e7d17a8d2bfba",
76781
- openapiContentSha256: "268d85ea2cea9f6a0cc5de011c11912128724fb1e1a101e2b12cb628a5e2c13d",
76890
+ release: "1.20261029.182916",
76891
+ openapiSha256: "16e2982dce1d6f1282918ce0bafff7d1eece96a8f017625ac2366d8a21b624c9",
76892
+ openapiContentSha256: "30e974049d8c3576a6b73e21c4c4c09b153ff27c1368ff7059075458366afb63",
76782
76893
  forge: {
76783
76894
  repository: "https://github.com/cloudflare/forge",
76784
76895
  commit: "7f86447210b7bea3779bfdab3cd5655eade0eadb",
@@ -76791,7 +76902,7 @@ var generation_default = {
76791
76902
  outputs: [
76792
76903
  {
76793
76904
  path: "src/generated/commands.ts",
76794
- sha256: "f773acce3f565ee909c2c58b6238fb1ca080710f919a48b9ff97fe62cb789c61"
76905
+ sha256: "2a357422cdd5dd8be80725d29ae01bef2f5791ff24ad70e5c7e833456fede0d5"
76795
76906
  }
76796
76907
  ]
76797
76908
  };
@@ -77146,7 +77257,7 @@ ${name}`);
77146
77257
  }
77147
77258
 
77148
77259
  // src/index.ts
77149
- var VERSION = "2.14.0";
77260
+ var VERSION = "2.16.0";
77150
77261
  var RELEASE = generation_default.release;
77151
77262
  var SDK_PATHS = new Map(Object.values(commands).map((command) => [command.operation, command.sdkPath]));
77152
77263
  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.16.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.17.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.20261029.182916",
64
+ "sha256": "30e974049d8c3576a6b73e21c4c4c09b153ff27c1368ff7059075458366afb63"
65
65
  }
66
66
  }
67
67
  }