@arbol-ai/cli 3.71.0 → 3.72.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 (3) hide show
  1. package/README.md +3 -2
  2. package/dist/index.js +721 -360
  3. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -12464,6 +12464,20 @@ var commands = {
12464
12464
  ],
12465
12465
  pathField: null,
12466
12466
  fields: [
12467
+ {
12468
+ name: "bookingRoute",
12469
+ flag: "booking-route",
12470
+ kind: "string",
12471
+ required: false,
12472
+ description: "Verified payment route, required for agent scheduling at clinics using colored booking windows.",
12473
+ choices: [
12474
+ "PRIVATE",
12475
+ "AXA_PREPAID",
12476
+ "AXA_ARL",
12477
+ "PONAL_STARKEY",
12478
+ "EPS_SURA"
12479
+ ]
12480
+ },
12467
12481
  {
12468
12482
  name: "connectionId",
12469
12483
  flag: "connection-id",
@@ -12685,6 +12699,31 @@ var commands = {
12685
12699
  }
12686
12700
  }
12687
12701
  },
12702
+ bookingRoute: {
12703
+ description: "Verified payment route, required for agent scheduling at clinics using colored booking windows.",
12704
+ anyOf: [
12705
+ {
12706
+ const: "PRIVATE",
12707
+ type: "string"
12708
+ },
12709
+ {
12710
+ const: "AXA_PREPAID",
12711
+ type: "string"
12712
+ },
12713
+ {
12714
+ const: "AXA_ARL",
12715
+ type: "string"
12716
+ },
12717
+ {
12718
+ const: "PONAL_STARKEY",
12719
+ type: "string"
12720
+ },
12721
+ {
12722
+ const: "EPS_SURA",
12723
+ type: "string"
12724
+ }
12725
+ ]
12726
+ },
12688
12727
  connectionId: {
12689
12728
  pattern: "^con_[0-9A-Za-z]{26}$",
12690
12729
  type: "string"
@@ -12692,7 +12731,7 @@ var commands = {
12692
12731
  }
12693
12732
  },
12694
12733
  title: "Create patient",
12695
- description: "Use the organization gMedic account. Some clinics need every detail of a patient an agent registers (names, document, birth date, sex, mobilePhone, email, address); a refusal names what is missing. No automatic write retries; reconcile an unknown outcome before repeating.",
12734
+ description: "Use the organization gMedic account. Some clinics need every detail of a patient an agent registers (names, document, birth date, sex, mobilePhone, email, address); a refusal names what is missing. At clinics with colored booking windows, send the patient's verified bookingRoute: an agreement route (EPS_SURA, AXA_PREPAID) registers them under that health partner. No automatic write retries; reconcile an unknown outcome before repeating.",
12696
12735
  effect: "write",
12697
12736
  confirmation: null,
12698
12737
  hidden: false
@@ -13392,7 +13431,7 @@ var commands = {
13392
13431
  }
13393
13432
  },
13394
13433
  title: "Update patient",
13395
- description: "Use the organization gMedic account. Send only the fields that change: every other field gMedic stores is kept. An agent cannot change a patient’s document, names or birth date. No automatic write retries; reconcile an unknown outcome before repeating.",
13434
+ description: "Use the organization gMedic account. Send only the fields that change; the connector re-sends what gMedic's read answers in a writable form, but gMedic replaces the stored patient, so agreement, residence, EPS, ARL, occupation and fields its read omits are lost and its creation date is reset. An agent cannot change a patient's document, names or birth date, and at clinics with colored booking windows cannot update an existing patient at all: book with the contact in notificationNumber and notificationMail. No automatic write retries; reconcile an unknown outcome before repeating.",
13396
13435
  effect: "write",
13397
13436
  confirmation: null,
13398
13437
  hidden: false
@@ -37914,13 +37953,13 @@ var schemaComponents = {
37914
37953
  }
37915
37954
  },
37916
37955
  additionalProperties: false,
37917
- description: "Whether, when and how far ahead this connection's appointments are reminded on WhatsApp."
37956
+ description: "Whether, when and how far ahead this connection's appointments are reminded."
37918
37957
  },
37919
37958
  {
37920
37959
  type: "null"
37921
37960
  }
37922
37961
  ],
37923
- description: "Its WhatsApp appointment reminders, or null when its integration cannot feed them. Until someone changes them they are off, at 09:00, the day before."
37962
+ description: "Its appointment reminders, or null when its integration cannot feed them. Until someone changes them they are off, at 09:00, the day before."
37924
37963
  },
37925
37964
  arbi: {
37926
37965
  type: "object",
@@ -160625,6 +160664,31 @@ var schemaComponents = {
160625
160664
  }
160626
160665
  }
160627
160666
  },
160667
+ bookingRoute: {
160668
+ description: "Verified payment route, required for agent scheduling at clinics using colored booking windows.",
160669
+ anyOf: [
160670
+ {
160671
+ const: "PRIVATE",
160672
+ type: "string"
160673
+ },
160674
+ {
160675
+ const: "AXA_PREPAID",
160676
+ type: "string"
160677
+ },
160678
+ {
160679
+ const: "AXA_ARL",
160680
+ type: "string"
160681
+ },
160682
+ {
160683
+ const: "PONAL_STARKEY",
160684
+ type: "string"
160685
+ },
160686
+ {
160687
+ const: "EPS_SURA",
160688
+ type: "string"
160689
+ }
160690
+ ]
160691
+ },
160628
160692
  connectionId: {
160629
160693
  pattern: "^con_[0-9A-Za-z]{26}$",
160630
160694
  type: "string"
@@ -254139,6 +254203,31 @@ var schemaComponents = {
254139
254203
  }
254140
254204
  }
254141
254205
  },
254206
+ bookingRoute: {
254207
+ description: "Verified payment route, required for agent scheduling at clinics using colored booking windows.",
254208
+ anyOf: [
254209
+ {
254210
+ const: "PRIVATE",
254211
+ type: "string"
254212
+ },
254213
+ {
254214
+ const: "AXA_PREPAID",
254215
+ type: "string"
254216
+ },
254217
+ {
254218
+ const: "AXA_ARL",
254219
+ type: "string"
254220
+ },
254221
+ {
254222
+ const: "PONAL_STARKEY",
254223
+ type: "string"
254224
+ },
254225
+ {
254226
+ const: "EPS_SURA",
254227
+ type: "string"
254228
+ }
254229
+ ]
254230
+ },
254142
254231
  connectionId: {
254143
254232
  pattern: "^con_[0-9A-Za-z]{26}$",
254144
254233
  type: "string"
@@ -267290,9 +267379,9 @@ var schemaComponents = {
267290
267379
  // src/generated/generation.json
267291
267380
  var generation_default = {
267292
267381
  formatVersion: 6,
267293
- release: "1.20261125.21951",
267294
- openapiSha256: "fbb951142466ccb7db7651002ab2d7a1a24eb85e41a21c67bbf50b13c1741919",
267295
- openapiContentSha256: "8d52030d5ca554e5ea36967e17622553c3c195c032a1a47c7f10633f8ab90143",
267382
+ release: "1.20261125.195549",
267383
+ openapiSha256: "1fbcbe1b8b9586ca44edc304690bb3c99103f2e443aa1b45fba25b5ecbcfd200",
267384
+ openapiContentSha256: "c28321b7270b9775280aafd72c47548f4aff51bf1858677f6a597cd1fd0a0cc1",
267296
267385
  forge: {
267297
267386
  repository: "https://github.com/cloudflare/forge",
267298
267387
  commit: "7f86447210b7bea3779bfdab3cd5655eade0eadb",
@@ -267305,7 +267394,7 @@ var generation_default = {
267305
267394
  outputs: [
267306
267395
  {
267307
267396
  path: "src/generated/commands.ts",
267308
- sha256: "52496c636ab1fddaf0f4874edebe6c6a175d73f061b49990386377bfa4d9ce54"
267397
+ sha256: "1ba3af5e766c31629eee6f8be9a5d1fb8bb5953e6590b1f9508c804c6efbedee"
267309
267398
  }
267310
267399
  ]
267311
267400
  };
@@ -267545,8 +267634,8 @@ async function logout(credentials) {
267545
267634
  // src/operator/account-connections.json
267546
267635
  var account_connections_default = {
267547
267636
  source: "project-arbol-account/src/api/connections/operations.ts",
267548
- sourceCommit: "8d31ba32fa8aec74c460f7641d70d83ea843f577",
267549
- sourceSha256: "ccbefdd6f3e169065ceaf205bb1a193ce1a44c1ca7ce10114b694ca9141daea6",
267637
+ sourceCommit: "91336bc946884a0335ad187cb796d7b6687bc827",
267638
+ sourceSha256: "b3af6aafaf52702cf654d9f5cbb47cd8ff29b6a4c074bd6fd2398a95d763cf26",
267550
267639
  operations: [
267551
267640
  {
267552
267641
  operationId: "createConnection",
@@ -267557,7 +267646,6 @@ var account_connections_default = {
267557
267646
  input: {
267558
267647
  anyOf: [
267559
267648
  {
267560
- additionalProperties: false,
267561
267649
  type: "object",
267562
267650
  required: [
267563
267651
  "kind",
@@ -267567,34 +267655,35 @@ var account_connections_default = {
267567
267655
  ],
267568
267656
  properties: {
267569
267657
  kind: {
267570
- const: "arbol",
267571
- type: "string"
267658
+ type: "string",
267659
+ const: "arbol"
267572
267660
  },
267573
267661
  integration: {
267574
267662
  anyOf: [
267575
267663
  {
267576
- const: "adres",
267577
- type: "string"
267664
+ type: "string",
267665
+ const: "adres"
267578
267666
  },
267579
267667
  {
267580
- const: "sisben",
267581
- type: "string"
267668
+ type: "string",
267669
+ const: "sisben"
267582
267670
  }
267583
267671
  ]
267584
267672
  },
267585
267673
  clientId: {
267586
- pattern: "^[A-Za-z0-9_-]{8,128}$",
267587
- type: "string"
267674
+ type: "string",
267675
+ pattern: "^[A-Za-z0-9_-]{8,128}$"
267588
267676
  },
267589
267677
  clientSecret: {
267678
+ type: "string",
267590
267679
  minLength: 16,
267591
267680
  maxLength: 512,
267592
- type: "string"
267681
+ secret: true
267593
267682
  }
267594
- }
267683
+ },
267684
+ additionalProperties: false
267595
267685
  },
267596
267686
  {
267597
- additionalProperties: false,
267598
267687
  type: "object",
267599
267688
  required: [
267600
267689
  "kind",
@@ -267605,42 +267694,38 @@ var account_connections_default = {
267605
267694
  ],
267606
267695
  properties: {
267607
267696
  kind: {
267608
- const: "arbol",
267609
- type: "string"
267697
+ type: "string",
267698
+ const: "arbol"
267610
267699
  },
267611
267700
  integration: {
267612
- const: "sura",
267613
- type: "string"
267701
+ type: "string",
267702
+ const: "sura"
267614
267703
  },
267615
267704
  name: {
267616
- description: "The connection's name, as an agent's builder sees it and an agent picks it: 'Sede Norte'.",
267617
- type: "string"
267705
+ type: "string",
267706
+ description: "The connection's name, as an agent's builder sees it and an agent picks it: 'Sede Norte'."
267618
267707
  },
267619
267708
  portal: {
267620
267709
  anyOf: [
267621
267710
  {
267622
- const: "agenda",
267623
- type: "string"
267711
+ type: "string",
267712
+ const: "agenda"
267624
267713
  },
267625
267714
  {
267626
- const: "saludweb",
267627
- type: "string"
267715
+ type: "string",
267716
+ const: "saludweb"
267628
267717
  }
267629
267718
  ],
267630
267719
  description: "SURA's portal: agenda (Aliado de Salud, books and cancels) or saludweb (read-only)."
267631
267720
  },
267632
267721
  institutionId: {
267722
+ type: "string",
267633
267723
  pattern: "^\\d{1,32}$",
267634
- description: "The institution (IPS) the connection schedules in, as SURA listed it.",
267635
- type: "string"
267724
+ description: "The institution (IPS) the connection schedules in, as SURA listed it."
267636
267725
  },
267637
267726
  logins: {
267638
- minItems: 1,
267639
- maxItems: 5,
267640
- description: "One to five distinct portal users, all able to schedule in the same institution.",
267641
267727
  type: "array",
267642
267728
  items: {
267643
- additionalProperties: false,
267644
267729
  type: "object",
267645
267730
  required: [
267646
267731
  "username",
@@ -267649,32 +267734,38 @@ var account_connections_default = {
267649
267734
  ],
267650
267735
  properties: {
267651
267736
  username: {
267652
- description: "A username the clinic signs in to the SURA portal with.",
267653
- type: "string"
267737
+ type: "string",
267738
+ description: "A username the clinic signs in to the SURA portal with."
267654
267739
  },
267655
267740
  password: {
267741
+ type: "string",
267742
+ secret: true,
267656
267743
  minLength: 1,
267657
267744
  maxLength: 512,
267658
267745
  pattern: "^[^\\r\\n]+$",
267659
- description: "Its password, exactly as typed.",
267660
- type: "string"
267746
+ description: "Its password, exactly as typed."
267661
267747
  },
267662
267748
  totpSecret: {
267663
- description: "The account's authenticator setup key: the Base32 text SURA shows when an authenticator app is added.",
267664
- type: "string"
267749
+ type: "string",
267750
+ secret: true,
267751
+ description: "The account's authenticator setup key: the Base32 text SURA shows when an authenticator app is added."
267665
267752
  }
267666
- }
267667
- }
267753
+ },
267754
+ additionalProperties: false
267755
+ },
267756
+ minItems: 1,
267757
+ maxItems: 5,
267758
+ description: "One to five distinct portal users, all able to schedule in the same institution."
267668
267759
  },
267669
267760
  connectionId: {
267761
+ type: "string",
267670
267762
  pattern: "^con_[0-7][0-9a-hjkmnp-tv-z]{25}$",
267671
- description: "The connection an institution_required answer named: send it back with the same logins and the institution chosen.",
267672
- type: "string"
267763
+ description: "The connection an institution_required answer named: send it back with the same logins and the institution chosen."
267673
267764
  }
267674
- }
267765
+ },
267766
+ additionalProperties: false
267675
267767
  },
267676
267768
  {
267677
- additionalProperties: false,
267678
267769
  type: "object",
267679
267770
  required: [
267680
267771
  "kind",
@@ -267686,38 +267777,40 @@ var account_connections_default = {
267686
267777
  ],
267687
267778
  properties: {
267688
267779
  kind: {
267689
- const: "arbol",
267690
- type: "string"
267780
+ type: "string",
267781
+ const: "arbol"
267691
267782
  },
267692
267783
  integration: {
267693
- const: "visoft",
267694
- type: "string"
267784
+ type: "string",
267785
+ const: "visoft"
267695
267786
  },
267696
267787
  name: {
267697
- description: "The connection's name, as an agent's builder sees it and an agent picks it: 'Sede Norte'.",
267698
- type: "string"
267788
+ type: "string",
267789
+ description: "The connection's name, as an agent's builder sees it and an agent picks it: 'Sede Norte'."
267699
267790
  },
267700
267791
  clinicId: {
267792
+ type: "string",
267701
267793
  minLength: 1,
267702
267794
  maxLength: 64,
267703
267795
  pattern: "^[A-Za-z0-9_-]+$",
267704
- description: "The clinic whose SIIPS the login belongs to, as visoft.clinics.list names it.",
267705
- type: "string"
267796
+ description: "The clinic whose SIIPS the login belongs to, as visoft.clinics.list names it."
267706
267797
  },
267707
267798
  username: {
267708
- description: "The username the clinic's team signs in to SIIPS with.",
267709
- type: "string"
267799
+ type: "string",
267800
+ secret: true,
267801
+ description: "The username the clinic's team signs in to SIIPS with."
267710
267802
  },
267711
267803
  password: {
267804
+ type: "string",
267805
+ secret: true,
267712
267806
  minLength: 1,
267713
267807
  maxLength: 4096,
267714
- description: "Its password, exactly as typed.",
267715
- type: "string"
267808
+ description: "Its password, exactly as typed."
267716
267809
  }
267717
- }
267810
+ },
267811
+ additionalProperties: false
267718
267812
  },
267719
267813
  {
267720
- additionalProperties: false,
267721
267814
  type: "object",
267722
267815
  required: [
267723
267816
  "kind",
@@ -267730,43 +267823,44 @@ var account_connections_default = {
267730
267823
  ],
267731
267824
  properties: {
267732
267825
  kind: {
267733
- const: "arbol",
267734
- type: "string"
267826
+ type: "string",
267827
+ const: "arbol"
267735
267828
  },
267736
267829
  integration: {
267737
- const: "axxa",
267738
- type: "string"
267830
+ type: "string",
267831
+ const: "axxa"
267739
267832
  },
267740
267833
  name: {
267741
- description: "The connection's name, as an agent's builder sees it and an agent picks it: 'Sede Norte'.",
267742
- type: "string"
267834
+ type: "string",
267835
+ description: "The connection's name, as an agent's builder sees it and an agent picks it: 'Sede Norte'."
267743
267836
  },
267744
267837
  username: {
267838
+ type: "string",
267745
267839
  minLength: 1,
267746
267840
  maxLength: 100,
267747
- pattern: "^[^\\r\\n]+$",
267748
- type: "string"
267841
+ pattern: "^[^\\r\\n]+$"
267749
267842
  },
267750
267843
  password: {
267844
+ type: "string",
267751
267845
  minLength: 1,
267752
267846
  maxLength: 200,
267753
267847
  writeOnly: true,
267754
- type: "string"
267848
+ secret: true
267755
267849
  },
267756
267850
  documentType: {
267851
+ type: "string",
267757
267852
  minLength: 2,
267758
267853
  maxLength: 4,
267759
- pattern: "^[A-Z]+$",
267760
- type: "string"
267854
+ pattern: "^[A-Z]+$"
267761
267855
  },
267762
267856
  providerCode: {
267763
- pattern: "^[0-9]{1,20}$",
267764
- type: "string"
267857
+ type: "string",
267858
+ pattern: "^[0-9]{1,20}$"
267765
267859
  }
267766
- }
267860
+ },
267861
+ additionalProperties: false
267767
267862
  },
267768
267863
  {
267769
- additionalProperties: false,
267770
267864
  type: "object",
267771
267865
  required: [
267772
267866
  "kind",
@@ -267778,51 +267872,52 @@ var account_connections_default = {
267778
267872
  ],
267779
267873
  properties: {
267780
267874
  kind: {
267781
- const: "arbol",
267782
- type: "string"
267875
+ type: "string",
267876
+ const: "arbol"
267783
267877
  },
267784
267878
  integration: {
267785
- const: "nueva-eps",
267786
- type: "string"
267879
+ type: "string",
267880
+ const: "nueva-eps"
267787
267881
  },
267788
267882
  portal: {
267789
267883
  anyOf: [
267790
267884
  {
267791
- const: "affiliations",
267792
- type: "string"
267885
+ type: "string",
267886
+ const: "affiliations"
267793
267887
  },
267794
267888
  {
267795
- const: "precursoras",
267796
- type: "string"
267889
+ type: "string",
267890
+ const: "precursoras"
267797
267891
  }
267798
267892
  ]
267799
267893
  },
267800
267894
  name: {
267801
- description: "The connection's name, as an agent's builder sees it and an agent picks it: 'Sede Norte'.",
267802
- type: "string"
267895
+ type: "string",
267896
+ description: "The connection's name, as an agent's builder sees it and an agent picks it: 'Sede Norte'."
267803
267897
  },
267804
267898
  username: {
267899
+ type: "string",
267805
267900
  minLength: 1,
267806
267901
  maxLength: 100,
267807
- pattern: "^[^\\r\\n]+$",
267808
- type: "string"
267902
+ pattern: "^[^\\r\\n]+$"
267809
267903
  },
267810
267904
  password: {
267905
+ type: "string",
267811
267906
  minLength: 1,
267812
267907
  maxLength: 200,
267813
267908
  writeOnly: true,
267814
- type: "string"
267909
+ secret: true
267815
267910
  },
267816
267911
  documentType: {
267912
+ type: "string",
267817
267913
  minLength: 2,
267818
267914
  maxLength: 4,
267819
- pattern: "^[A-Z]+$",
267820
- type: "string"
267915
+ pattern: "^[A-Z]+$"
267821
267916
  }
267822
- }
267917
+ },
267918
+ additionalProperties: false
267823
267919
  },
267824
267920
  {
267825
- additionalProperties: false,
267826
267921
  type: "object",
267827
267922
  required: [
267828
267923
  "kind",
@@ -267834,42 +267929,88 @@ var account_connections_default = {
267834
267929
  ],
267835
267930
  properties: {
267836
267931
  kind: {
267837
- const: "arbol",
267838
- type: "string"
267932
+ type: "string",
267933
+ const: "arbol"
267839
267934
  },
267840
267935
  integration: {
267841
- const: "comfachoco",
267842
- type: "string"
267936
+ type: "string",
267937
+ const: "comfachoco"
267843
267938
  },
267844
267939
  name: {
267845
- description: "The connection's name, as an agent's builder sees it and an agent picks it: 'Sede Norte'.",
267846
- type: "string"
267940
+ type: "string",
267941
+ description: "The connection's name, as an agent's builder sees it and an agent picks it: 'Sede Norte'."
267847
267942
  },
267848
267943
  username: {
267944
+ type: "string",
267849
267945
  minLength: 1,
267850
267946
  maxLength: 100,
267851
- pattern: "^[^\\r\\n]+$",
267852
- type: "string"
267947
+ pattern: "^[^\\r\\n]+$"
267853
267948
  },
267854
267949
  password: {
267950
+ type: "string",
267855
267951
  minLength: 1,
267856
267952
  maxLength: 200,
267857
267953
  writeOnly: true,
267858
- type: "string"
267954
+ secret: true
267859
267955
  },
267860
267956
  documentType: {
267861
- const: "CC",
267862
- type: "string"
267957
+ type: "string",
267958
+ const: "CC"
267863
267959
  },
267864
267960
  saveOnFailure: {
267961
+ type: "boolean",
267865
267962
  description: "Comfachoco: explicitly retain refused credentials sealed in a failed connection. No verification timestamp or agent access is granted.",
267866
- default: false,
267867
- type: "boolean"
267963
+ default: false
267868
267964
  }
267869
- }
267965
+ },
267966
+ additionalProperties: false
267967
+ },
267968
+ {
267969
+ type: "object",
267970
+ required: [
267971
+ "kind",
267972
+ "integration",
267973
+ "name",
267974
+ "nit",
267975
+ "username",
267976
+ "password"
267977
+ ],
267978
+ properties: {
267979
+ kind: {
267980
+ type: "string",
267981
+ const: "arbol"
267982
+ },
267983
+ integration: {
267984
+ type: "string",
267985
+ const: "pijaos-salud"
267986
+ },
267987
+ name: {
267988
+ type: "string",
267989
+ description: "The connection's name, as an agent's builder sees it and an agent picks it: 'Sede Norte'."
267990
+ },
267991
+ nit: {
267992
+ type: "string",
267993
+ pattern: "^[0-9]{5,15}$",
267994
+ secret: true
267995
+ },
267996
+ username: {
267997
+ type: "string",
267998
+ minLength: 1,
267999
+ maxLength: 100,
268000
+ pattern: "^[^\\r\\n]+$",
268001
+ secret: true
268002
+ },
268003
+ password: {
268004
+ type: "string",
268005
+ minLength: 1,
268006
+ maxLength: 200,
268007
+ writeOnly: true,
268008
+ secret: true
268009
+ }
268010
+ },
268011
+ additionalProperties: false
267870
268012
  },
267871
268013
  {
267872
- additionalProperties: false,
267873
268014
  type: "object",
267874
268015
  required: [
267875
268016
  "kind",
@@ -267883,51 +268024,52 @@ var account_connections_default = {
267883
268024
  ],
267884
268025
  properties: {
267885
268026
  kind: {
267886
- const: "arbol",
267887
- type: "string"
268027
+ type: "string",
268028
+ const: "arbol"
267888
268029
  },
267889
268030
  integration: {
267890
- const: "salud-total",
267891
- type: "string"
268031
+ type: "string",
268032
+ const: "salud-total"
267892
268033
  },
267893
268034
  name: {
267894
- description: "The connection's name, as an agent's builder sees it and an agent picks it: 'Sede Norte'.",
267895
- type: "string"
268035
+ type: "string",
268036
+ description: "The connection's name, as an agent's builder sees it and an agent picks it: 'Sede Norte'."
267896
268037
  },
267897
268038
  username: {
267898
- pattern: "^[0-9]{4,20}$",
267899
- type: "string"
268039
+ type: "string",
268040
+ pattern: "^[0-9]{4,20}$"
267900
268041
  },
267901
268042
  password: {
268043
+ type: "string",
267902
268044
  minLength: 1,
267903
268045
  maxLength: 200,
267904
268046
  writeOnly: true,
267905
- type: "string"
268047
+ secret: true
267906
268048
  },
267907
268049
  documentType: {
267908
- const: "CC",
267909
- type: "string"
268050
+ type: "string",
268051
+ const: "CC"
267910
268052
  },
267911
268053
  nit: {
267912
- pattern: "^[0-9]{5,15}$",
267913
- type: "string"
268054
+ type: "string",
268055
+ pattern: "^[0-9]{5,15}$"
267914
268056
  },
267915
268057
  tag: {
267916
268058
  anyOf: [
267917
268059
  {
267918
- const: "postconsulta",
267919
- type: "string"
268060
+ type: "string",
268061
+ const: "postconsulta"
267920
268062
  },
267921
268063
  {
267922
- const: "facturacion",
267923
- type: "string"
268064
+ type: "string",
268065
+ const: "facturacion"
267924
268066
  }
267925
268067
  ]
267926
268068
  }
267927
- }
268069
+ },
268070
+ additionalProperties: false
267928
268071
  },
267929
268072
  {
267930
- additionalProperties: false,
267931
268073
  type: "object",
267932
268074
  required: [
267933
268075
  "kind",
@@ -267937,27 +268079,28 @@ var account_connections_default = {
267937
268079
  ],
267938
268080
  properties: {
267939
268081
  kind: {
267940
- const: "arbol",
267941
- type: "string"
268082
+ type: "string",
268083
+ const: "arbol"
267942
268084
  },
267943
268085
  integration: {
267944
- const: "gmedic",
267945
- type: "string"
268086
+ type: "string",
268087
+ const: "gmedic"
267946
268088
  },
267947
268089
  name: {
267948
- description: "The connection's name, as an agent's builder sees it and an agent picks it: 'Sede Norte'.",
267949
- type: "string"
268090
+ type: "string",
268091
+ description: "The connection's name, as an agent's builder sees it and an agent picks it: 'Sede Norte'."
267950
268092
  },
267951
268093
  apiToken: {
268094
+ type: "string",
267952
268095
  minLength: 8,
267953
268096
  maxLength: 512,
267954
268097
  writeOnly: true,
267955
- type: "string"
268098
+ secret: true
267956
268099
  }
267957
- }
268100
+ },
268101
+ additionalProperties: false
267958
268102
  },
267959
268103
  {
267960
- additionalProperties: false,
267961
268104
  type: "object",
267962
268105
  required: [
267963
268106
  "kind",
@@ -267973,69 +268116,66 @@ var account_connections_default = {
267973
268116
  ],
267974
268117
  properties: {
267975
268118
  kind: {
267976
- const: "arbol",
267977
- type: "string"
268119
+ type: "string",
268120
+ const: "arbol"
267978
268121
  },
267979
268122
  integration: {
267980
- const: "oficlinic",
267981
- type: "string"
268123
+ type: "string",
268124
+ const: "oficlinic"
267982
268125
  },
267983
268126
  name: {
267984
- description: "The connection's name, as an agent's builder sees it and an agent picks it: 'Sede Norte'.",
267985
- type: "string"
268127
+ type: "string",
268128
+ description: "The connection's name, as an agent's builder sees it and an agent picks it: 'Sede Norte'."
267986
268129
  },
267987
268130
  generalUsername: {
268131
+ type: "string",
267988
268132
  minLength: 1,
267989
268133
  maxLength: 64,
267990
- pattern: "^\\S+$",
267991
- type: "string"
268134
+ pattern: "^\\S+$"
267992
268135
  },
267993
268136
  generalPassword: {
268137
+ type: "string",
267994
268138
  minLength: 1,
267995
268139
  maxLength: 128,
267996
268140
  pattern: "^[^\\x00-\\x1F\\x7F]+$",
267997
268141
  writeOnly: true,
267998
- type: "string"
268142
+ secret: true
267999
268143
  },
268000
268144
  username: {
268145
+ type: "string",
268001
268146
  minLength: 1,
268002
268147
  maxLength: 64,
268003
- pattern: "^\\S+$",
268004
- type: "string"
268148
+ pattern: "^\\S+$"
268005
268149
  },
268006
268150
  password: {
268151
+ type: "string",
268007
268152
  minLength: 1,
268008
268153
  maxLength: 128,
268009
268154
  pattern: "^[^\\x00-\\x1F\\x7F]+$",
268010
268155
  writeOnly: true,
268011
- type: "string"
268156
+ secret: true
268012
268157
  },
268013
268158
  companyId: {
268014
- pattern: "^[0-9]{1,9}$",
268015
- type: "string"
268159
+ type: "string",
268160
+ pattern: "^[0-9]{1,9}$"
268016
268161
  },
268017
268162
  siteId: {
268018
- pattern: "^[0-9]{1,9}$",
268019
- type: "string"
268163
+ type: "string",
268164
+ pattern: "^[0-9]{1,9}$"
268020
268165
  },
268021
268166
  ipsId: {
268022
- pattern: "^[0-9]{1,9}$",
268023
- type: "string"
268167
+ type: "string",
268168
+ pattern: "^[0-9]{1,9}$"
268024
268169
  },
268025
268170
  session: {
268026
- additionalProperties: false,
268027
- writeOnly: true,
268028
268171
  type: "object",
268029
268172
  required: [
268030
268173
  "cookies"
268031
268174
  ],
268032
268175
  properties: {
268033
268176
  cookies: {
268034
- minItems: 1,
268035
- maxItems: 12,
268036
268177
  type: "array",
268037
268178
  items: {
268038
- additionalProperties: false,
268039
268179
  type: "object",
268040
268180
  required: [
268041
268181
  "name",
@@ -268046,37 +268186,38 @@ var account_connections_default = {
268046
268186
  ],
268047
268187
  properties: {
268048
268188
  name: {
268049
- pattern: "^[A-Za-z0-9!#$%&*+.^_|~-]{1,128}$",
268050
- type: "string"
268189
+ type: "string",
268190
+ pattern: "^[A-Za-z0-9!#$%&*+.^_|~-]{1,128}$"
268051
268191
  },
268052
268192
  value: {
268193
+ type: "string",
268053
268194
  pattern: "^[\\x21\\x23-\\x3A\\x3C-\\x5B\\x5D-\\x7E]{0,1024}$",
268054
268195
  writeOnly: true,
268055
- type: "string"
268196
+ secret: true
268056
268197
  },
268057
268198
  domain: {
268058
268199
  anyOf: [
268059
268200
  {
268060
- const: "v0.oficlinic.com.co",
268061
- type: "string"
268201
+ type: "string",
268202
+ const: "v0.oficlinic.com.co"
268062
268203
  },
268063
268204
  {
268064
- const: ".v0.oficlinic.com.co",
268065
- type: "string"
268205
+ type: "string",
268206
+ const: ".v0.oficlinic.com.co"
268066
268207
  },
268067
268208
  {
268068
- const: "oficlinic.com.co",
268069
- type: "string"
268209
+ type: "string",
268210
+ const: "oficlinic.com.co"
268070
268211
  },
268071
268212
  {
268072
- const: ".oficlinic.com.co",
268073
- type: "string"
268213
+ type: "string",
268214
+ const: ".oficlinic.com.co"
268074
268215
  }
268075
268216
  ]
268076
268217
  },
268077
268218
  path: {
268078
- pattern: "^/[\\x21-\\x3A\\x3C-\\x7E]{0,255}$",
268079
- type: "string"
268219
+ type: "string",
268220
+ pattern: "^/[\\x21-\\x3A\\x3C-\\x7E]{0,255}$"
268080
268221
  },
268081
268222
  secure: {
268082
268223
  type: "boolean"
@@ -268087,23 +268228,28 @@ var account_connections_default = {
268087
268228
  expiresAt: {
268088
268229
  anyOf: [
268089
268230
  {
268090
- format: "date-time",
268091
- type: "string"
268231
+ type: "string",
268232
+ format: "date-time"
268092
268233
  },
268093
268234
  {
268094
268235
  type: "null"
268095
268236
  }
268096
268237
  ]
268097
268238
  }
268098
- }
268099
- }
268239
+ },
268240
+ additionalProperties: false
268241
+ },
268242
+ minItems: 1,
268243
+ maxItems: 12
268100
268244
  }
268101
- }
268245
+ },
268246
+ additionalProperties: false,
268247
+ writeOnly: true
268102
268248
  }
268103
- }
268249
+ },
268250
+ additionalProperties: false
268104
268251
  },
268105
268252
  {
268106
- additionalProperties: false,
268107
268253
  type: "object",
268108
268254
  required: [
268109
268255
  "kind",
@@ -268115,37 +268261,89 @@ var account_connections_default = {
268115
268261
  ],
268116
268262
  properties: {
268117
268263
  kind: {
268118
- const: "arbol",
268119
- type: "string"
268264
+ type: "string",
268265
+ const: "arbol"
268120
268266
  },
268121
268267
  integration: {
268122
- const: "sanitas",
268123
- type: "string"
268268
+ type: "string",
268269
+ const: "famisanar"
268124
268270
  },
268125
268271
  name: {
268126
- description: "The connection's name, as an agent's builder sees it and an agent picks it: 'Sede Norte'.",
268127
- type: "string"
268272
+ type: "string",
268273
+ description: "The connection's name, as an agent's builder sees it and an agent picks it: 'Sede Norte'."
268128
268274
  },
268129
268275
  username: {
268276
+ type: "string",
268130
268277
  minLength: 1,
268131
268278
  maxLength: 100,
268132
- pattern: "^[^\\r\\n]+$",
268133
- type: "string"
268279
+ pattern: "^[^\\r\\n]+$"
268134
268280
  },
268135
268281
  password: {
268282
+ type: "string",
268136
268283
  minLength: 1,
268137
268284
  maxLength: 200,
268138
268285
  writeOnly: true,
268139
- type: "string"
268286
+ secret: true
268140
268287
  },
268141
268288
  documentType: {
268142
- const: "CC",
268143
- type: "string"
268289
+ anyOf: [
268290
+ {
268291
+ type: "string",
268292
+ const: "CC"
268293
+ },
268294
+ {
268295
+ type: "string",
268296
+ const: "NT"
268297
+ }
268298
+ ]
268144
268299
  }
268145
- }
268300
+ },
268301
+ additionalProperties: false
268302
+ },
268303
+ {
268304
+ type: "object",
268305
+ required: [
268306
+ "kind",
268307
+ "integration",
268308
+ "name",
268309
+ "username",
268310
+ "password",
268311
+ "documentType"
268312
+ ],
268313
+ properties: {
268314
+ kind: {
268315
+ type: "string",
268316
+ const: "arbol"
268317
+ },
268318
+ integration: {
268319
+ type: "string",
268320
+ const: "sanitas"
268321
+ },
268322
+ name: {
268323
+ type: "string",
268324
+ description: "The connection's name, as an agent's builder sees it and an agent picks it: 'Sede Norte'."
268325
+ },
268326
+ username: {
268327
+ type: "string",
268328
+ minLength: 1,
268329
+ maxLength: 100,
268330
+ pattern: "^[^\\r\\n]+$"
268331
+ },
268332
+ password: {
268333
+ type: "string",
268334
+ minLength: 1,
268335
+ maxLength: 200,
268336
+ writeOnly: true,
268337
+ secret: true
268338
+ },
268339
+ documentType: {
268340
+ type: "string",
268341
+ const: "CC"
268342
+ }
268343
+ },
268344
+ additionalProperties: false
268146
268345
  },
268147
268346
  {
268148
- additionalProperties: false,
268149
268347
  type: "object",
268150
268348
  required: [
268151
268349
  "kind",
@@ -268157,71 +268355,73 @@ var account_connections_default = {
268157
268355
  ],
268158
268356
  properties: {
268159
268357
  kind: {
268160
- const: "custom",
268161
- type: "string"
268358
+ type: "string",
268359
+ const: "custom"
268162
268360
  },
268163
268361
  name: {
268164
- description: "The connection's name, as an agent's builder sees it and an agent picks it: 'Sede Norte'.",
268165
- type: "string"
268362
+ type: "string",
268363
+ description: "The connection's name, as an agent's builder sees it and an agent picks it: 'Sede Norte'."
268166
268364
  },
268167
268365
  transport: {
268168
268366
  anyOf: [
268169
268367
  {
268170
- const: "http",
268171
- type: "string"
268368
+ type: "string",
268369
+ const: "http"
268172
268370
  },
268173
268371
  {
268174
- const: "mcp",
268175
- type: "string"
268372
+ type: "string",
268373
+ const: "mcp"
268176
268374
  }
268177
268375
  ],
268178
268376
  description: "http: an OpenAPI 3 document (or a server whose /openapi.json serves one). mcp: an MCP endpoint (Streamable HTTP)."
268179
268377
  },
268180
268378
  url: {
268379
+ type: "string",
268181
268380
  format: "uri",
268182
268381
  maxLength: 2048,
268183
268382
  pattern: "^https://[^?#]+$",
268184
- description: "The OpenAPI document, or the MCP endpoint: https, without a query or a fragment.",
268185
- type: "string"
268383
+ description: "The OpenAPI document, or the MCP endpoint: https, without a query or a fragment."
268186
268384
  },
268187
268385
  authHeader: {
268386
+ type: "string",
268188
268387
  pattern: "^[A-Za-z][A-Za-z0-9-]{0,63}$",
268189
- description: "The header that carries the secret; without it the secret is sent as Authorization: Bearer.",
268190
- type: "string"
268388
+ description: "The header that carries the secret; without it the secret is sent as Authorization: Bearer."
268191
268389
  },
268192
268390
  secret: {
268391
+ type: "string",
268392
+ secret: true,
268193
268393
  minLength: 1,
268194
268394
  maxLength: 4096,
268195
268395
  pattern: "^[^\\r\\n]+$",
268196
- description: "The server's secret. It is sealed and only ever sent to the registered server.",
268197
- type: "string"
268396
+ description: "The server's secret. It is sealed and only ever sent to the registered server."
268198
268397
  },
268199
268398
  fileArgument: {
268399
+ type: "string",
268200
268400
  pattern: "^[A-Za-z_][A-Za-z0-9_]{0,63}$",
268201
- description: "The tool argument that receives files, if any: Raíz puts short-lived signed URLs there.",
268202
- type: "string"
268401
+ description: "The tool argument that receives files, if any: Raíz puts short-lived signed URLs there."
268203
268402
  },
268204
268403
  writesThrough: {
268205
- additionalProperties: false,
268206
- maxProperties: 100,
268207
- description: "Per write tool, the Arbol integrations it writes through (sura, agenda), when its document does not say: Raíz fences them together.",
268208
268404
  type: "object",
268209
268405
  patternProperties: {
268210
268406
  "^[A-Za-z][A-Za-z0-9_-]{0,63}$": {
268211
- maxItems: 10,
268212
268407
  type: "array",
268213
268408
  items: {
268214
- pattern: "^[a-z][a-z0-9-]{1,63}$",
268215
- type: "string"
268216
- }
268409
+ type: "string",
268410
+ pattern: "^[a-z][a-z0-9-]{1,63}$"
268411
+ },
268412
+ maxItems: 10
268217
268413
  }
268218
- }
268414
+ },
268415
+ additionalProperties: false,
268416
+ maxProperties: 100,
268417
+ description: "Per write tool, the Arbol integrations it writes through (sura, agenda), when its document does not say: Raíz fences them together."
268219
268418
  },
268220
268419
  writesEnabled: {
268221
- description: "Staff verified the server's domain belongs to the organization: its write tools are offered.",
268222
- type: "boolean"
268420
+ type: "boolean",
268421
+ description: "Staff verified the server's domain belongs to the organization: its write tools are offered. Turning it on records who verified which domain and when; turning it off holds them again."
268223
268422
  }
268224
- }
268423
+ },
268424
+ additionalProperties: false
268225
268425
  }
268226
268426
  ]
268227
268427
  },
@@ -268240,35 +268440,30 @@ var account_connections_default = {
268240
268440
  operationId: "updateConnection",
268241
268441
  name: "account.connections.update",
268242
268442
  command: "account connections update",
268243
- title: "Change a connection (staff)",
268244
- description: "Rename, disable or enable a connection, or change its credentials. Only new or changed logins are verified, each with one real sign-in; a refused one changes nothing and the previous credentials stay. SURA: add logins, change one by its login number, or remove some (one always stays). A custom server's settings are Arbol staff's.",
268443
+ title: "Change a connection",
268444
+ description: "Arbol staff: rename, disable or enable a connection, or change its credentials. Only new or changed logins are verified, each with one real sign-in; a refused one changes nothing and the previous credentials stay. SURA: add logins, change one by its login number, or remove some (one always stays). Send suraLogin on its own with the login number and the password or authenticator key that changed. Account uses the stored username and any omitted credential. A custom server's settings are Arbol staff's; turning its writesEnabled on verifies its domain and offers its held writes. With connection write access, only a connection's WhatsApp appointment reminders (reminders) or whether Arbi may use it (arbi), each sent on its own, or the name alone of a server the organization registered: nothing is verified and its credentials and tools stay as they are.",
268245
268445
  input: {
268246
- additionalProperties: false,
268247
268446
  type: "object",
268248
268447
  required: [
268249
268448
  "connectionId"
268250
268449
  ],
268251
268450
  properties: {
268252
268451
  connectionId: {
268452
+ type: "string",
268253
268453
  pattern: "^con_[0-7][0-9a-hjkmnp-tv-z]{25}$",
268254
- description: "A connection's id: con_ and 26 characters, stable and unique across the platform.",
268255
- type: "string"
268454
+ description: "A connection's id: con_ and 26 characters, stable and unique across the platform."
268256
268455
  },
268257
268456
  name: {
268258
- description: "The connection's name, as an agent's builder sees it and an agent picks it: 'Sede Norte'.",
268259
- type: "string"
268457
+ type: "string",
268458
+ description: "The connection's name, as an agent's builder sees it and an agent picks it: 'Sede Norte'."
268260
268459
  },
268261
268460
  enabled: {
268262
- description: "false disables the connection (its owner refuses it); true enables it again.",
268263
- type: "boolean"
268461
+ type: "boolean",
268462
+ description: "false disables the connection (its owner refuses it); true enables it again."
268264
268463
  },
268265
268464
  logins: {
268266
- minItems: 1,
268267
- maxItems: 5,
268268
- description: "SURA: logins to add or to change; only these are verified.",
268269
268465
  type: "array",
268270
268466
  items: {
268271
- additionalProperties: false,
268272
268467
  type: "object",
268273
268468
  required: [
268274
268469
  "username",
@@ -268277,134 +268472,229 @@ var account_connections_default = {
268277
268472
  ],
268278
268473
  properties: {
268279
268474
  login: {
268475
+ type: "integer",
268280
268476
  minimum: 0,
268281
268477
  maximum: 1000,
268282
- description: "SURA: the login whose password or key changes; without it, a new login.",
268283
- type: "integer"
268478
+ description: "SURA: the login whose password or key changes; without it, a new login."
268284
268479
  },
268285
268480
  username: {
268286
- description: "A username the clinic signs in to the SURA portal with.",
268287
- type: "string"
268481
+ type: "string",
268482
+ description: "A username the clinic signs in to the SURA portal with."
268288
268483
  },
268289
268484
  password: {
268485
+ type: "string",
268486
+ secret: true,
268290
268487
  minLength: 1,
268291
268488
  maxLength: 512,
268292
268489
  pattern: "^[^\\r\\n]+$",
268293
- description: "Its password, exactly as typed.",
268294
- type: "string"
268490
+ description: "Its password, exactly as typed."
268295
268491
  },
268296
268492
  totpSecret: {
268297
- description: "The account's authenticator setup key: the Base32 text SURA shows when an authenticator app is added.",
268298
- type: "string"
268493
+ type: "string",
268494
+ secret: true,
268495
+ description: "The account's authenticator setup key: the Base32 text SURA shows when an authenticator app is added."
268299
268496
  }
268300
- }
268301
- }
268302
- },
268303
- removeLogins: {
268497
+ },
268498
+ additionalProperties: false
268499
+ },
268304
268500
  minItems: 1,
268305
268501
  maxItems: 5,
268306
- description: "SURA: the logins to remove; at least one login stays.",
268502
+ description: "SURA: logins to add or to change; only these are verified."
268503
+ },
268504
+ removeLogins: {
268307
268505
  type: "array",
268308
268506
  items: {
268507
+ type: "integer",
268309
268508
  minimum: 0,
268310
- maximum: 1000,
268311
- type: "integer"
268312
- }
268509
+ maximum: 1000
268510
+ },
268511
+ minItems: 1,
268512
+ maxItems: 5,
268513
+ description: "SURA: the logins to remove; at least one login stays."
268514
+ },
268515
+ suraLoginPassword: {
268516
+ type: "object",
268517
+ required: [
268518
+ "login",
268519
+ "password"
268520
+ ],
268521
+ properties: {
268522
+ login: {
268523
+ type: "integer",
268524
+ minimum: 0,
268525
+ maximum: 1000
268526
+ },
268527
+ username: {
268528
+ type: "string",
268529
+ description: "A username the clinic signs in to the SURA portal with.",
268530
+ secret: true
268531
+ },
268532
+ password: {
268533
+ type: "string",
268534
+ secret: true,
268535
+ minLength: 1,
268536
+ maxLength: 512,
268537
+ pattern: "^[^\\r\\n]+$",
268538
+ description: "Its password, exactly as typed."
268539
+ }
268540
+ },
268541
+ additionalProperties: false,
268542
+ description: "Update only the password of an existing SURA login, using its stored authenticator key."
268543
+ },
268544
+ suraLogin: {
268545
+ anyOf: [
268546
+ {
268547
+ type: "object",
268548
+ required: [
268549
+ "login",
268550
+ "password"
268551
+ ],
268552
+ properties: {
268553
+ login: {
268554
+ type: "integer",
268555
+ minimum: 0,
268556
+ maximum: 1000
268557
+ },
268558
+ password: {
268559
+ type: "string",
268560
+ secret: true,
268561
+ minLength: 1,
268562
+ maxLength: 512,
268563
+ pattern: "^[^\\r\\n]+$",
268564
+ description: "Its password, exactly as typed."
268565
+ },
268566
+ totpSecret: {
268567
+ type: "string",
268568
+ secret: true,
268569
+ description: "The account's authenticator setup key: the Base32 text SURA shows when an authenticator app is added."
268570
+ }
268571
+ },
268572
+ additionalProperties: false
268573
+ },
268574
+ {
268575
+ type: "object",
268576
+ required: [
268577
+ "login",
268578
+ "totpSecret"
268579
+ ],
268580
+ properties: {
268581
+ login: {
268582
+ type: "integer",
268583
+ minimum: 0,
268584
+ maximum: 1000
268585
+ },
268586
+ password: {
268587
+ type: "string",
268588
+ secret: true,
268589
+ minLength: 1,
268590
+ maxLength: 512,
268591
+ pattern: "^[^\\r\\n]+$",
268592
+ description: "Its password, exactly as typed."
268593
+ },
268594
+ totpSecret: {
268595
+ type: "string",
268596
+ secret: true,
268597
+ description: "The account's authenticator setup key: the Base32 text SURA shows when an authenticator app is added."
268598
+ }
268599
+ },
268600
+ additionalProperties: false
268601
+ }
268602
+ ],
268603
+ description: "Update a saved SURA login's password, authenticator key, or both. Omitted values stay saved."
268313
268604
  },
268314
268605
  apiToken: {
268606
+ type: "string",
268315
268607
  minLength: 8,
268316
268608
  maxLength: 512,
268317
268609
  writeOnly: true,
268318
- type: "string"
268610
+ secret: true
268319
268611
  },
268320
268612
  portal: {
268613
+ type: "string",
268321
268614
  minLength: 1,
268322
268615
  maxLength: 64,
268323
- pattern: "^[a-z][a-z0-9-]*$",
268324
- type: "string"
268616
+ pattern: "^[a-z][a-z0-9-]*$"
268325
268617
  },
268326
268618
  documentType: {
268619
+ type: "string",
268327
268620
  minLength: 2,
268328
268621
  maxLength: 4,
268329
- pattern: "^[A-Z]+$",
268330
- type: "string"
268622
+ pattern: "^[A-Z]+$"
268331
268623
  },
268332
268624
  providerCode: {
268333
- pattern: "^[0-9]{1,20}$",
268334
- type: "string"
268625
+ type: "string",
268626
+ pattern: "^[0-9]{1,20}$"
268335
268627
  },
268336
268628
  nit: {
268337
- pattern: "^[0-9]{5,15}$",
268338
- type: "string"
268629
+ type: "string",
268630
+ pattern: "^[0-9]{5,15}$"
268339
268631
  },
268340
268632
  tag: {
268341
268633
  anyOf: [
268342
268634
  {
268343
- const: "postconsulta",
268344
- type: "string"
268635
+ type: "string",
268636
+ const: "postconsulta"
268345
268637
  },
268346
268638
  {
268347
- const: "facturacion",
268348
- type: "string"
268639
+ type: "string",
268640
+ const: "facturacion"
268349
268641
  }
268350
268642
  ]
268351
268643
  },
268352
268644
  clinicId: {
268645
+ type: "string",
268353
268646
  minLength: 1,
268354
268647
  maxLength: 64,
268355
268648
  pattern: "^[A-Za-z0-9_-]+$",
268356
- description: "The clinic whose SIIPS the login belongs to, as visoft.clinics.list names it.",
268357
- type: "string"
268649
+ description: "The clinic whose SIIPS the login belongs to, as visoft.clinics.list names it."
268358
268650
  },
268359
268651
  username: {
268360
- description: "The username the clinic's team signs in to SIIPS with.",
268361
- type: "string"
268652
+ type: "string",
268653
+ secret: true,
268654
+ description: "The username the clinic's team signs in to SIIPS with."
268362
268655
  },
268363
268656
  password: {
268657
+ type: "string",
268658
+ secret: true,
268364
268659
  minLength: 1,
268365
268660
  maxLength: 4096,
268366
- description: "Its password, exactly as typed.",
268367
- type: "string"
268661
+ description: "Its password, exactly as typed."
268368
268662
  },
268369
268663
  generalUsername: {
268664
+ type: "string",
268370
268665
  minLength: 1,
268371
268666
  maxLength: 64,
268372
- pattern: "^\\S+$",
268373
- type: "string"
268667
+ pattern: "^\\S+$"
268374
268668
  },
268375
268669
  generalPassword: {
268670
+ type: "string",
268376
268671
  minLength: 1,
268377
268672
  maxLength: 128,
268378
268673
  pattern: "^[^\\x00-\\x1F\\x7F]+$",
268379
268674
  writeOnly: true,
268380
- type: "string"
268675
+ secret: true
268381
268676
  },
268382
268677
  companyId: {
268383
- pattern: "^[0-9]{1,9}$",
268384
- type: "string"
268678
+ type: "string",
268679
+ pattern: "^[0-9]{1,9}$"
268385
268680
  },
268386
268681
  siteId: {
268387
- pattern: "^[0-9]{1,9}$",
268388
- type: "string"
268682
+ type: "string",
268683
+ pattern: "^[0-9]{1,9}$"
268389
268684
  },
268390
268685
  ipsId: {
268391
- pattern: "^[0-9]{1,9}$",
268392
- type: "string"
268686
+ type: "string",
268687
+ pattern: "^[0-9]{1,9}$"
268393
268688
  },
268394
268689
  session: {
268395
- additionalProperties: false,
268396
- writeOnly: true,
268397
268690
  type: "object",
268398
268691
  required: [
268399
268692
  "cookies"
268400
268693
  ],
268401
268694
  properties: {
268402
268695
  cookies: {
268403
- minItems: 1,
268404
- maxItems: 12,
268405
268696
  type: "array",
268406
268697
  items: {
268407
- additionalProperties: false,
268408
268698
  type: "object",
268409
268699
  required: [
268410
268700
  "name",
@@ -268415,37 +268705,38 @@ var account_connections_default = {
268415
268705
  ],
268416
268706
  properties: {
268417
268707
  name: {
268418
- pattern: "^[A-Za-z0-9!#$%&*+.^_|~-]{1,128}$",
268419
- type: "string"
268708
+ type: "string",
268709
+ pattern: "^[A-Za-z0-9!#$%&*+.^_|~-]{1,128}$"
268420
268710
  },
268421
268711
  value: {
268712
+ type: "string",
268422
268713
  pattern: "^[\\x21\\x23-\\x3A\\x3C-\\x5B\\x5D-\\x7E]{0,1024}$",
268423
268714
  writeOnly: true,
268424
- type: "string"
268715
+ secret: true
268425
268716
  },
268426
268717
  domain: {
268427
268718
  anyOf: [
268428
268719
  {
268429
- const: "v0.oficlinic.com.co",
268430
- type: "string"
268720
+ type: "string",
268721
+ const: "v0.oficlinic.com.co"
268431
268722
  },
268432
268723
  {
268433
- const: ".v0.oficlinic.com.co",
268434
- type: "string"
268724
+ type: "string",
268725
+ const: ".v0.oficlinic.com.co"
268435
268726
  },
268436
268727
  {
268437
- const: "oficlinic.com.co",
268438
- type: "string"
268728
+ type: "string",
268729
+ const: "oficlinic.com.co"
268439
268730
  },
268440
268731
  {
268441
- const: ".oficlinic.com.co",
268442
- type: "string"
268732
+ type: "string",
268733
+ const: ".oficlinic.com.co"
268443
268734
  }
268444
268735
  ]
268445
268736
  },
268446
268737
  path: {
268447
- pattern: "^/[\\x21-\\x3A\\x3C-\\x7E]{0,255}$",
268448
- type: "string"
268738
+ type: "string",
268739
+ pattern: "^/[\\x21-\\x3A\\x3C-\\x7E]{0,255}$"
268449
268740
  },
268450
268741
  secure: {
268451
268742
  type: "boolean"
@@ -268456,45 +268747,50 @@ var account_connections_default = {
268456
268747
  expiresAt: {
268457
268748
  anyOf: [
268458
268749
  {
268459
- format: "date-time",
268460
- type: "string"
268750
+ type: "string",
268751
+ format: "date-time"
268461
268752
  },
268462
268753
  {
268463
268754
  type: "null"
268464
268755
  }
268465
268756
  ]
268466
268757
  }
268467
- }
268468
- }
268758
+ },
268759
+ additionalProperties: false
268760
+ },
268761
+ minItems: 1,
268762
+ maxItems: 12
268469
268763
  }
268470
- }
268764
+ },
268765
+ additionalProperties: false,
268766
+ writeOnly: true
268471
268767
  },
268472
268768
  transport: {
268473
268769
  anyOf: [
268474
268770
  {
268475
- const: "http",
268476
- type: "string"
268771
+ type: "string",
268772
+ const: "http"
268477
268773
  },
268478
268774
  {
268479
- const: "mcp",
268480
- type: "string"
268775
+ type: "string",
268776
+ const: "mcp"
268481
268777
  }
268482
268778
  ],
268483
268779
  description: "http: an OpenAPI 3 document (or a server whose /openapi.json serves one). mcp: an MCP endpoint (Streamable HTTP)."
268484
268780
  },
268485
268781
  url: {
268782
+ type: "string",
268486
268783
  format: "uri",
268487
268784
  maxLength: 2048,
268488
268785
  pattern: "^https://[^?#]+$",
268489
- description: "The OpenAPI document, or the MCP endpoint: https, without a query or a fragment.",
268490
- type: "string"
268786
+ description: "The OpenAPI document, or the MCP endpoint: https, without a query or a fragment."
268491
268787
  },
268492
268788
  authHeader: {
268493
268789
  anyOf: [
268494
268790
  {
268791
+ type: "string",
268495
268792
  pattern: "^[A-Za-z][A-Za-z0-9-]{0,63}$",
268496
- description: "The header that carries the secret; without it the secret is sent as Authorization: Bearer.",
268497
- type: "string"
268793
+ description: "The header that carries the secret; without it the secret is sent as Authorization: Bearer."
268498
268794
  },
268499
268795
  {
268500
268796
  type: "null"
@@ -268502,18 +268798,19 @@ var account_connections_default = {
268502
268798
  ]
268503
268799
  },
268504
268800
  secret: {
268801
+ type: "string",
268802
+ secret: true,
268505
268803
  minLength: 1,
268506
268804
  maxLength: 4096,
268507
268805
  pattern: "^[^\\r\\n]+$",
268508
- description: "The server's secret. It is sealed and only ever sent to the registered server.",
268509
- type: "string"
268806
+ description: "The server's secret. It is sealed and only ever sent to the registered server."
268510
268807
  },
268511
268808
  fileArgument: {
268512
268809
  anyOf: [
268513
268810
  {
268811
+ type: "string",
268514
268812
  pattern: "^[A-Za-z_][A-Za-z0-9_]{0,63}$",
268515
- description: "The tool argument that receives files, if any: Raíz puts short-lived signed URLs there.",
268516
- type: "string"
268813
+ description: "The tool argument that receives files, if any: Raíz puts short-lived signed URLs there."
268517
268814
  },
268518
268815
  {
268519
268816
  type: "null"
@@ -268521,26 +268818,81 @@ var account_connections_default = {
268521
268818
  ]
268522
268819
  },
268523
268820
  writesThrough: {
268524
- additionalProperties: false,
268525
- maxProperties: 100,
268526
- description: "Per write tool, the Arbol integrations it writes through (sura, agenda), when its document does not say: Raíz fences them together.",
268527
268821
  type: "object",
268528
268822
  patternProperties: {
268529
268823
  "^[A-Za-z][A-Za-z0-9_-]{0,63}$": {
268530
- maxItems: 10,
268531
268824
  type: "array",
268532
268825
  items: {
268533
- pattern: "^[a-z][a-z0-9-]{1,63}$",
268534
- type: "string"
268535
- }
268826
+ type: "string",
268827
+ pattern: "^[a-z][a-z0-9-]{1,63}$"
268828
+ },
268829
+ maxItems: 10
268536
268830
  }
268537
- }
268831
+ },
268832
+ additionalProperties: false,
268833
+ maxProperties: 100,
268834
+ description: "Per write tool, the Arbol integrations it writes through (sura, agenda), when its document does not say: Raíz fences them together."
268538
268835
  },
268539
268836
  writesEnabled: {
268540
- description: "Staff verified the server's domain belongs to the organization: its write tools are offered.",
268541
- type: "boolean"
268837
+ type: "boolean",
268838
+ description: "Staff verified the server's domain belongs to the organization: its write tools are offered. Turning it on records who verified which domain and when; turning it off holds them again."
268839
+ },
268840
+ reminders: {
268841
+ type: "object",
268842
+ required: [
268843
+ "mode",
268844
+ "sendAt",
268845
+ "daysBefore"
268846
+ ],
268847
+ properties: {
268848
+ mode: {
268849
+ anyOf: [
268850
+ {
268851
+ type: "string",
268852
+ const: "off"
268853
+ },
268854
+ {
268855
+ type: "string",
268856
+ const: "review"
268857
+ },
268858
+ {
268859
+ type: "string",
268860
+ const: "automatic"
268861
+ }
268862
+ ],
268863
+ description: "off: nothing is prepared or sent. review: each day the list is prepared as a campaign that has not started, for a person to review and start. automatic: each day the list is prepared and sent by itself at sendAt."
268864
+ },
268865
+ sendAt: {
268866
+ type: "string",
268867
+ pattern: "^(?:(?:0[6-9]|1[0-9]):(?:00|15|30|45)|20:00)$",
268868
+ description: "When the day's reminders go out: HH:MM, 24-hour, in the clinic's local time, every 15 minutes from 06:00 to 20:00. Every day, weekends and holidays included."
268869
+ },
268870
+ daysBefore: {
268871
+ type: "integer",
268872
+ minimum: 1,
268873
+ maximum: 7,
268874
+ description: "On a given day, the appointments this many days ahead are reminded: 1 is the day before."
268875
+ }
268876
+ },
268877
+ additionalProperties: false,
268878
+ description: "The connection's WhatsApp appointment reminders, complete, sent on their own: only where its reminders are not null. Changing them verifies nothing and leaves its credentials and tools as they are."
268879
+ },
268880
+ arbi: {
268881
+ type: "object",
268882
+ required: [
268883
+ "enabled"
268884
+ ],
268885
+ properties: {
268886
+ enabled: {
268887
+ type: "boolean",
268888
+ description: "true: Arbi may use this connection's tools, within what the person asking may do. false: Arbi neither sees nor uses it. Agents and API keys are not affected."
268889
+ }
268890
+ },
268891
+ additionalProperties: false,
268892
+ description: "Whether Arbi may use the connection, sent on its own. Any connection of the organization, its Agenda, Contactabilidad and Account included. Changing it verifies nothing and leaves the connection's status, credentials and tools as they are."
268542
268893
  }
268543
- }
268894
+ },
268895
+ additionalProperties: false
268544
268896
  },
268545
268897
  http: {
268546
268898
  method: "PATCH",
@@ -268548,30 +268900,35 @@ var account_connections_default = {
268548
268900
  },
268549
268901
  effect: "write",
268550
268902
  actorKinds: [
268551
- "user"
268903
+ "user",
268904
+ "service"
268905
+ ],
268906
+ scope: [
268907
+ "account:connections:operate",
268908
+ "account:connections:write",
268909
+ "account:connections:reconcile"
268552
268910
  ],
268553
- scope: "account:connections:operate",
268554
268911
  maxOutputBytes: 1048576
268555
268912
  },
268556
268913
  {
268557
268914
  operationId: "deleteConnection",
268558
268915
  name: "account.connections.delete",
268559
268916
  command: "account connections delete",
268560
- title: "Remove a connection (staff)",
268561
- description: "Remove a connection: its owner drops the session first, then its credentials are destroyed. Agents that used it stop seeing its tools. The organization's Agenda cannot be removed.",
268917
+ title: "Remove a connection",
268918
+ description: "Remove a connection: its owner drops the session first, then its credentials are destroyed. Agents that used it stop seeing its tools. The organization's Agenda cannot be removed. Arbol staff remove any; with connection write access, only a server the organization registered.",
268562
268919
  input: {
268563
- additionalProperties: false,
268564
268920
  type: "object",
268565
268921
  required: [
268566
268922
  "connectionId"
268567
268923
  ],
268568
268924
  properties: {
268569
268925
  connectionId: {
268926
+ type: "string",
268570
268927
  pattern: "^con_[0-7][0-9a-hjkmnp-tv-z]{25}$",
268571
- description: "A connection's id: con_ and 26 characters, stable and unique across the platform.",
268572
- type: "string"
268928
+ description: "A connection's id: con_ and 26 characters, stable and unique across the platform."
268573
268929
  }
268574
- }
268930
+ },
268931
+ additionalProperties: false
268575
268932
  },
268576
268933
  http: {
268577
268934
  method: "DELETE",
@@ -268581,7 +268938,10 @@ var account_connections_default = {
268581
268938
  actorKinds: [
268582
268939
  "user"
268583
268940
  ],
268584
- scope: "account:connections:operate",
268941
+ scope: [
268942
+ "account:connections:operate",
268943
+ "account:connections:write"
268944
+ ],
268585
268945
  maxOutputBytes: 1048576
268586
268946
  },
268587
268947
  {
@@ -268591,7 +268951,6 @@ var account_connections_default = {
268591
268951
  title: "Read a custom server's tools (staff)",
268592
268952
  description: "Read a custom server's tools before registering it: its OpenAPI document or its MCP tools/list, with its secret. Nothing is stored. It is a write because it sends a secret to another server.",
268593
268953
  input: {
268594
- additionalProperties: false,
268595
268954
  type: "object",
268596
268955
  required: [
268597
268956
  "transport",
@@ -268602,52 +268961,54 @@ var account_connections_default = {
268602
268961
  transport: {
268603
268962
  anyOf: [
268604
268963
  {
268605
- const: "http",
268606
- type: "string"
268964
+ type: "string",
268965
+ const: "http"
268607
268966
  },
268608
268967
  {
268609
- const: "mcp",
268610
- type: "string"
268968
+ type: "string",
268969
+ const: "mcp"
268611
268970
  }
268612
268971
  ],
268613
268972
  description: "http: an OpenAPI 3 document (or a server whose /openapi.json serves one). mcp: an MCP endpoint (Streamable HTTP)."
268614
268973
  },
268615
268974
  url: {
268975
+ type: "string",
268616
268976
  format: "uri",
268617
268977
  maxLength: 2048,
268618
268978
  pattern: "^https://[^?#]+$",
268619
- description: "The OpenAPI document, or the MCP endpoint: https, without a query or a fragment.",
268620
- type: "string"
268979
+ description: "The OpenAPI document, or the MCP endpoint: https, without a query or a fragment."
268621
268980
  },
268622
268981
  authHeader: {
268982
+ type: "string",
268623
268983
  pattern: "^[A-Za-z][A-Za-z0-9-]{0,63}$",
268624
- description: "The header that carries the secret; without it the secret is sent as Authorization: Bearer.",
268625
- type: "string"
268984
+ description: "The header that carries the secret; without it the secret is sent as Authorization: Bearer."
268626
268985
  },
268627
268986
  secret: {
268987
+ type: "string",
268988
+ secret: true,
268628
268989
  minLength: 1,
268629
268990
  maxLength: 4096,
268630
268991
  pattern: "^[^\\r\\n]+$",
268631
- description: "The server's secret. It is sealed and only ever sent to the registered server.",
268632
- type: "string"
268992
+ description: "The server's secret. It is sealed and only ever sent to the registered server."
268633
268993
  },
268634
268994
  writesThrough: {
268635
- additionalProperties: false,
268636
- maxProperties: 100,
268637
- description: "Per write tool, the Arbol integrations it writes through (sura, agenda), when its document does not say: Raíz fences them together.",
268638
268995
  type: "object",
268639
268996
  patternProperties: {
268640
268997
  "^[A-Za-z][A-Za-z0-9_-]{0,63}$": {
268641
- maxItems: 10,
268642
268998
  type: "array",
268643
268999
  items: {
268644
- pattern: "^[a-z][a-z0-9-]{1,63}$",
268645
- type: "string"
268646
- }
269000
+ type: "string",
269001
+ pattern: "^[a-z][a-z0-9-]{1,63}$"
269002
+ },
269003
+ maxItems: 10
268647
269004
  }
268648
- }
269005
+ },
269006
+ additionalProperties: false,
269007
+ maxProperties: 100,
269008
+ description: "Per write tool, the Arbol integrations it writes through (sura, agenda), when its document does not say: Raíz fences them together."
268649
269009
  }
268650
- }
269010
+ },
269011
+ additionalProperties: false
268651
269012
  },
268652
269013
  http: {
268653
269014
  method: "POST",
@@ -268665,20 +269026,20 @@ var account_connections_default = {
268665
269026
  name: "account.connections.refreshTools",
268666
269027
  command: "account connections refresh-tools",
268667
269028
  title: "Read a custom server's tools again (staff)",
268668
- description: "Read a custom server's OpenAPI document or tools/list again, store its tools and their new version, and say which were added, changed or removed. Agents keep the version they were configured with until someone saves them again.",
269029
+ description: "Read a custom server's OpenAPI document or tools/list again, store its tools and their new version, and say which were added, changed or removed. This accepts what Account's own refresh holds back (new tools, and tools with more power); agents use the tools at their next turn.",
268669
269030
  input: {
268670
- additionalProperties: false,
268671
269031
  type: "object",
268672
269032
  required: [
268673
269033
  "connectionId"
268674
269034
  ],
268675
269035
  properties: {
268676
269036
  connectionId: {
269037
+ type: "string",
268677
269038
  pattern: "^con_[0-7][0-9a-hjkmnp-tv-z]{25}$",
268678
- description: "A connection's id: con_ and 26 characters, stable and unique across the platform.",
268679
- type: "string"
269039
+ description: "A connection's id: con_ and 26 characters, stable and unique across the platform."
268680
269040
  }
268681
- }
269041
+ },
269042
+ additionalProperties: false
268682
269043
  },
268683
269044
  http: {
268684
269045
  method: "POST",
@@ -268905,7 +269266,7 @@ ${name}`);
268905
269266
  }
268906
269267
 
268907
269268
  // src/index.ts
268908
- var VERSION = "3.71.0";
269269
+ var VERSION = "3.72.0";
268909
269270
  var RELEASE = generation_default.release;
268910
269271
  var commands2 = { ...commands, ...accountOperatorCommands };
268911
269272
  var SDK_PATHS = new Map(Object.values(commands2).map((command) => [command.operation, command.sdkPath]));