@arbol-ai/cli 3.70.0 → 3.71.1

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 +650 -368
  3. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -197537,23 +197537,33 @@ var schemaComponents = {
197537
197537
  {
197538
197538
  anyOf: [
197539
197539
  {
197540
- type: "string",
197541
- const: "arbolito/agile"
197542
- },
197543
- {
197544
- type: "string",
197545
- const: "arbolito/balanced"
197546
- },
197547
- {
197548
- type: "string",
197549
- const: "arbolito/advanced"
197540
+ anyOf: [
197541
+ {
197542
+ type: "string",
197543
+ const: "arbolito/agile"
197544
+ },
197545
+ {
197546
+ type: "string",
197547
+ const: "arbolito/balanced"
197548
+ },
197549
+ {
197550
+ type: "string",
197551
+ const: "arbolito/advanced"
197552
+ },
197553
+ {
197554
+ type: "string",
197555
+ const: "arbolito/top"
197556
+ }
197557
+ ],
197558
+ description: "The tier the Agent thinks with on calls. `arbolito/agile`: quickest and least expensive, for direct conversations. `arbolito/balanced`: more deliberate answers at moderate cost. `arbolito/advanced`: strong reasoning for complex instructions and many tools, with an adjustable `reasoningEffort`. `arbolito/top`: the most capable, for the hardest cases, with an adjustable `reasoningEffort` up to `xhigh`. Every tier reads images and PDF documents. Null: the default, as `arbolito/agile`."
197550
197559
  },
197551
197560
  {
197552
197561
  type: "string",
197553
- const: "arbolito/top"
197562
+ const: "arbolito/voice-fast",
197563
+ description: "Selects a specific fast model for calls and their text simulations."
197554
197564
  }
197555
197565
  ],
197556
- description: "The tier the Agent thinks with on calls. `arbolito/agile`: quickest and least expensive, for direct conversations. `arbolito/balanced`: more deliberate answers at moderate cost. `arbolito/advanced`: strong reasoning for complex instructions and many tools, with an adjustable `reasoningEffort`. `arbolito/top`: the most capable, for the hardest cases, with an adjustable `reasoningEffort` up to `xhigh`. Every tier reads images and PDF documents. Null: the default, as `arbolito/agile`."
197566
+ description: "The tier, or a named voice model, the Agent thinks with on calls. Null: the default."
197557
197567
  },
197558
197568
  {
197559
197569
  type: "null"
@@ -267280,9 +267290,9 @@ var schemaComponents = {
267280
267290
  // src/generated/generation.json
267281
267291
  var generation_default = {
267282
267292
  formatVersion: 6,
267283
- release: "1.20261123.204457",
267284
- openapiSha256: "2ed733e6dbf56c09ee9a609852fb83da7800d7cc9df1f52e28338bfb3e02f28d",
267285
- openapiContentSha256: "5b6ce70e9dbb8554fa44cc5a5b9b980ca15786e0df60f2f86ad4a483b5748754",
267293
+ release: "1.20261125.21951",
267294
+ openapiSha256: "fbb951142466ccb7db7651002ab2d7a1a24eb85e41a21c67bbf50b13c1741919",
267295
+ openapiContentSha256: "8d52030d5ca554e5ea36967e17622553c3c195c032a1a47c7f10633f8ab90143",
267286
267296
  forge: {
267287
267297
  repository: "https://github.com/cloudflare/forge",
267288
267298
  commit: "7f86447210b7bea3779bfdab3cd5655eade0eadb",
@@ -267295,7 +267305,7 @@ var generation_default = {
267295
267305
  outputs: [
267296
267306
  {
267297
267307
  path: "src/generated/commands.ts",
267298
- sha256: "558b9a4224ea93653e395216d5c11e3937f44e79e01451cb86d6f091278df172"
267308
+ sha256: "52496c636ab1fddaf0f4874edebe6c6a175d73f061b49990386377bfa4d9ce54"
267299
267309
  }
267300
267310
  ]
267301
267311
  };
@@ -267535,8 +267545,8 @@ async function logout(credentials) {
267535
267545
  // src/operator/account-connections.json
267536
267546
  var account_connections_default = {
267537
267547
  source: "project-arbol-account/src/api/connections/operations.ts",
267538
- sourceCommit: "8d31ba32fa8aec74c460f7641d70d83ea843f577",
267539
- sourceSha256: "ccbefdd6f3e169065ceaf205bb1a193ce1a44c1ca7ce10114b694ca9141daea6",
267548
+ sourceCommit: "91336bc946884a0335ad187cb796d7b6687bc827",
267549
+ sourceSha256: "b3af6aafaf52702cf654d9f5cbb47cd8ff29b6a4c074bd6fd2398a95d763cf26",
267540
267550
  operations: [
267541
267551
  {
267542
267552
  operationId: "createConnection",
@@ -267547,7 +267557,6 @@ var account_connections_default = {
267547
267557
  input: {
267548
267558
  anyOf: [
267549
267559
  {
267550
- additionalProperties: false,
267551
267560
  type: "object",
267552
267561
  required: [
267553
267562
  "kind",
@@ -267557,34 +267566,35 @@ var account_connections_default = {
267557
267566
  ],
267558
267567
  properties: {
267559
267568
  kind: {
267560
- const: "arbol",
267561
- type: "string"
267569
+ type: "string",
267570
+ const: "arbol"
267562
267571
  },
267563
267572
  integration: {
267564
267573
  anyOf: [
267565
267574
  {
267566
- const: "adres",
267567
- type: "string"
267575
+ type: "string",
267576
+ const: "adres"
267568
267577
  },
267569
267578
  {
267570
- const: "sisben",
267571
- type: "string"
267579
+ type: "string",
267580
+ const: "sisben"
267572
267581
  }
267573
267582
  ]
267574
267583
  },
267575
267584
  clientId: {
267576
- pattern: "^[A-Za-z0-9_-]{8,128}$",
267577
- type: "string"
267585
+ type: "string",
267586
+ pattern: "^[A-Za-z0-9_-]{8,128}$"
267578
267587
  },
267579
267588
  clientSecret: {
267589
+ type: "string",
267580
267590
  minLength: 16,
267581
267591
  maxLength: 512,
267582
- type: "string"
267592
+ secret: true
267583
267593
  }
267584
- }
267594
+ },
267595
+ additionalProperties: false
267585
267596
  },
267586
267597
  {
267587
- additionalProperties: false,
267588
267598
  type: "object",
267589
267599
  required: [
267590
267600
  "kind",
@@ -267595,42 +267605,38 @@ var account_connections_default = {
267595
267605
  ],
267596
267606
  properties: {
267597
267607
  kind: {
267598
- const: "arbol",
267599
- type: "string"
267608
+ type: "string",
267609
+ const: "arbol"
267600
267610
  },
267601
267611
  integration: {
267602
- const: "sura",
267603
- type: "string"
267612
+ type: "string",
267613
+ const: "sura"
267604
267614
  },
267605
267615
  name: {
267606
- description: "The connection's name, as an agent's builder sees it and an agent picks it: 'Sede Norte'.",
267607
- type: "string"
267616
+ type: "string",
267617
+ description: "The connection's name, as an agent's builder sees it and an agent picks it: 'Sede Norte'."
267608
267618
  },
267609
267619
  portal: {
267610
267620
  anyOf: [
267611
267621
  {
267612
- const: "agenda",
267613
- type: "string"
267622
+ type: "string",
267623
+ const: "agenda"
267614
267624
  },
267615
267625
  {
267616
- const: "saludweb",
267617
- type: "string"
267626
+ type: "string",
267627
+ const: "saludweb"
267618
267628
  }
267619
267629
  ],
267620
267630
  description: "SURA's portal: agenda (Aliado de Salud, books and cancels) or saludweb (read-only)."
267621
267631
  },
267622
267632
  institutionId: {
267633
+ type: "string",
267623
267634
  pattern: "^\\d{1,32}$",
267624
- description: "The institution (IPS) the connection schedules in, as SURA listed it.",
267625
- type: "string"
267635
+ description: "The institution (IPS) the connection schedules in, as SURA listed it."
267626
267636
  },
267627
267637
  logins: {
267628
- minItems: 1,
267629
- maxItems: 5,
267630
- description: "One to five distinct portal users, all able to schedule in the same institution.",
267631
267638
  type: "array",
267632
267639
  items: {
267633
- additionalProperties: false,
267634
267640
  type: "object",
267635
267641
  required: [
267636
267642
  "username",
@@ -267639,32 +267645,38 @@ var account_connections_default = {
267639
267645
  ],
267640
267646
  properties: {
267641
267647
  username: {
267642
- description: "A username the clinic signs in to the SURA portal with.",
267643
- type: "string"
267648
+ type: "string",
267649
+ description: "A username the clinic signs in to the SURA portal with."
267644
267650
  },
267645
267651
  password: {
267652
+ type: "string",
267653
+ secret: true,
267646
267654
  minLength: 1,
267647
267655
  maxLength: 512,
267648
267656
  pattern: "^[^\\r\\n]+$",
267649
- description: "Its password, exactly as typed.",
267650
- type: "string"
267657
+ description: "Its password, exactly as typed."
267651
267658
  },
267652
267659
  totpSecret: {
267653
- description: "The account's authenticator setup key: the Base32 text SURA shows when an authenticator app is added.",
267654
- type: "string"
267660
+ type: "string",
267661
+ secret: true,
267662
+ description: "The account's authenticator setup key: the Base32 text SURA shows when an authenticator app is added."
267655
267663
  }
267656
- }
267657
- }
267664
+ },
267665
+ additionalProperties: false
267666
+ },
267667
+ minItems: 1,
267668
+ maxItems: 5,
267669
+ description: "One to five distinct portal users, all able to schedule in the same institution."
267658
267670
  },
267659
267671
  connectionId: {
267672
+ type: "string",
267660
267673
  pattern: "^con_[0-7][0-9a-hjkmnp-tv-z]{25}$",
267661
- description: "The connection an institution_required answer named: send it back with the same logins and the institution chosen.",
267662
- type: "string"
267674
+ description: "The connection an institution_required answer named: send it back with the same logins and the institution chosen."
267663
267675
  }
267664
- }
267676
+ },
267677
+ additionalProperties: false
267665
267678
  },
267666
267679
  {
267667
- additionalProperties: false,
267668
267680
  type: "object",
267669
267681
  required: [
267670
267682
  "kind",
@@ -267676,38 +267688,40 @@ var account_connections_default = {
267676
267688
  ],
267677
267689
  properties: {
267678
267690
  kind: {
267679
- const: "arbol",
267680
- type: "string"
267691
+ type: "string",
267692
+ const: "arbol"
267681
267693
  },
267682
267694
  integration: {
267683
- const: "visoft",
267684
- type: "string"
267695
+ type: "string",
267696
+ const: "visoft"
267685
267697
  },
267686
267698
  name: {
267687
- description: "The connection's name, as an agent's builder sees it and an agent picks it: 'Sede Norte'.",
267688
- type: "string"
267699
+ type: "string",
267700
+ description: "The connection's name, as an agent's builder sees it and an agent picks it: 'Sede Norte'."
267689
267701
  },
267690
267702
  clinicId: {
267703
+ type: "string",
267691
267704
  minLength: 1,
267692
267705
  maxLength: 64,
267693
267706
  pattern: "^[A-Za-z0-9_-]+$",
267694
- description: "The clinic whose SIIPS the login belongs to, as visoft.clinics.list names it.",
267695
- type: "string"
267707
+ description: "The clinic whose SIIPS the login belongs to, as visoft.clinics.list names it."
267696
267708
  },
267697
267709
  username: {
267698
- description: "The username the clinic's team signs in to SIIPS with.",
267699
- type: "string"
267710
+ type: "string",
267711
+ secret: true,
267712
+ description: "The username the clinic's team signs in to SIIPS with."
267700
267713
  },
267701
267714
  password: {
267715
+ type: "string",
267716
+ secret: true,
267702
267717
  minLength: 1,
267703
267718
  maxLength: 4096,
267704
- description: "Its password, exactly as typed.",
267705
- type: "string"
267719
+ description: "Its password, exactly as typed."
267706
267720
  }
267707
- }
267721
+ },
267722
+ additionalProperties: false
267708
267723
  },
267709
267724
  {
267710
- additionalProperties: false,
267711
267725
  type: "object",
267712
267726
  required: [
267713
267727
  "kind",
@@ -267720,43 +267734,44 @@ var account_connections_default = {
267720
267734
  ],
267721
267735
  properties: {
267722
267736
  kind: {
267723
- const: "arbol",
267724
- type: "string"
267737
+ type: "string",
267738
+ const: "arbol"
267725
267739
  },
267726
267740
  integration: {
267727
- const: "axxa",
267728
- type: "string"
267741
+ type: "string",
267742
+ const: "axxa"
267729
267743
  },
267730
267744
  name: {
267731
- description: "The connection's name, as an agent's builder sees it and an agent picks it: 'Sede Norte'.",
267732
- type: "string"
267745
+ type: "string",
267746
+ description: "The connection's name, as an agent's builder sees it and an agent picks it: 'Sede Norte'."
267733
267747
  },
267734
267748
  username: {
267749
+ type: "string",
267735
267750
  minLength: 1,
267736
267751
  maxLength: 100,
267737
- pattern: "^[^\\r\\n]+$",
267738
- type: "string"
267752
+ pattern: "^[^\\r\\n]+$"
267739
267753
  },
267740
267754
  password: {
267755
+ type: "string",
267741
267756
  minLength: 1,
267742
267757
  maxLength: 200,
267743
267758
  writeOnly: true,
267744
- type: "string"
267759
+ secret: true
267745
267760
  },
267746
267761
  documentType: {
267762
+ type: "string",
267747
267763
  minLength: 2,
267748
267764
  maxLength: 4,
267749
- pattern: "^[A-Z]+$",
267750
- type: "string"
267765
+ pattern: "^[A-Z]+$"
267751
267766
  },
267752
267767
  providerCode: {
267753
- pattern: "^[0-9]{1,20}$",
267754
- type: "string"
267768
+ type: "string",
267769
+ pattern: "^[0-9]{1,20}$"
267755
267770
  }
267756
- }
267771
+ },
267772
+ additionalProperties: false
267757
267773
  },
267758
267774
  {
267759
- additionalProperties: false,
267760
267775
  type: "object",
267761
267776
  required: [
267762
267777
  "kind",
@@ -267768,51 +267783,52 @@ var account_connections_default = {
267768
267783
  ],
267769
267784
  properties: {
267770
267785
  kind: {
267771
- const: "arbol",
267772
- type: "string"
267786
+ type: "string",
267787
+ const: "arbol"
267773
267788
  },
267774
267789
  integration: {
267775
- const: "nueva-eps",
267776
- type: "string"
267790
+ type: "string",
267791
+ const: "nueva-eps"
267777
267792
  },
267778
267793
  portal: {
267779
267794
  anyOf: [
267780
267795
  {
267781
- const: "affiliations",
267782
- type: "string"
267796
+ type: "string",
267797
+ const: "affiliations"
267783
267798
  },
267784
267799
  {
267785
- const: "precursoras",
267786
- type: "string"
267800
+ type: "string",
267801
+ const: "precursoras"
267787
267802
  }
267788
267803
  ]
267789
267804
  },
267790
267805
  name: {
267791
- description: "The connection's name, as an agent's builder sees it and an agent picks it: 'Sede Norte'.",
267792
- type: "string"
267806
+ type: "string",
267807
+ description: "The connection's name, as an agent's builder sees it and an agent picks it: 'Sede Norte'."
267793
267808
  },
267794
267809
  username: {
267810
+ type: "string",
267795
267811
  minLength: 1,
267796
267812
  maxLength: 100,
267797
- pattern: "^[^\\r\\n]+$",
267798
- type: "string"
267813
+ pattern: "^[^\\r\\n]+$"
267799
267814
  },
267800
267815
  password: {
267816
+ type: "string",
267801
267817
  minLength: 1,
267802
267818
  maxLength: 200,
267803
267819
  writeOnly: true,
267804
- type: "string"
267820
+ secret: true
267805
267821
  },
267806
267822
  documentType: {
267823
+ type: "string",
267807
267824
  minLength: 2,
267808
267825
  maxLength: 4,
267809
- pattern: "^[A-Z]+$",
267810
- type: "string"
267826
+ pattern: "^[A-Z]+$"
267811
267827
  }
267812
- }
267828
+ },
267829
+ additionalProperties: false
267813
267830
  },
267814
267831
  {
267815
- additionalProperties: false,
267816
267832
  type: "object",
267817
267833
  required: [
267818
267834
  "kind",
@@ -267824,42 +267840,88 @@ var account_connections_default = {
267824
267840
  ],
267825
267841
  properties: {
267826
267842
  kind: {
267827
- const: "arbol",
267828
- type: "string"
267843
+ type: "string",
267844
+ const: "arbol"
267829
267845
  },
267830
267846
  integration: {
267831
- const: "comfachoco",
267832
- type: "string"
267847
+ type: "string",
267848
+ const: "comfachoco"
267833
267849
  },
267834
267850
  name: {
267835
- description: "The connection's name, as an agent's builder sees it and an agent picks it: 'Sede Norte'.",
267836
- type: "string"
267851
+ type: "string",
267852
+ description: "The connection's name, as an agent's builder sees it and an agent picks it: 'Sede Norte'."
267837
267853
  },
267838
267854
  username: {
267855
+ type: "string",
267839
267856
  minLength: 1,
267840
267857
  maxLength: 100,
267841
- pattern: "^[^\\r\\n]+$",
267842
- type: "string"
267858
+ pattern: "^[^\\r\\n]+$"
267843
267859
  },
267844
267860
  password: {
267861
+ type: "string",
267845
267862
  minLength: 1,
267846
267863
  maxLength: 200,
267847
267864
  writeOnly: true,
267848
- type: "string"
267865
+ secret: true
267849
267866
  },
267850
267867
  documentType: {
267851
- const: "CC",
267852
- type: "string"
267868
+ type: "string",
267869
+ const: "CC"
267853
267870
  },
267854
267871
  saveOnFailure: {
267872
+ type: "boolean",
267855
267873
  description: "Comfachoco: explicitly retain refused credentials sealed in a failed connection. No verification timestamp or agent access is granted.",
267856
- default: false,
267857
- type: "boolean"
267874
+ default: false
267858
267875
  }
267859
- }
267876
+ },
267877
+ additionalProperties: false
267878
+ },
267879
+ {
267880
+ type: "object",
267881
+ required: [
267882
+ "kind",
267883
+ "integration",
267884
+ "name",
267885
+ "nit",
267886
+ "username",
267887
+ "password"
267888
+ ],
267889
+ properties: {
267890
+ kind: {
267891
+ type: "string",
267892
+ const: "arbol"
267893
+ },
267894
+ integration: {
267895
+ type: "string",
267896
+ const: "pijaos-salud"
267897
+ },
267898
+ name: {
267899
+ type: "string",
267900
+ description: "The connection's name, as an agent's builder sees it and an agent picks it: 'Sede Norte'."
267901
+ },
267902
+ nit: {
267903
+ type: "string",
267904
+ pattern: "^[0-9]{5,15}$",
267905
+ secret: true
267906
+ },
267907
+ username: {
267908
+ type: "string",
267909
+ minLength: 1,
267910
+ maxLength: 100,
267911
+ pattern: "^[^\\r\\n]+$",
267912
+ secret: true
267913
+ },
267914
+ password: {
267915
+ type: "string",
267916
+ minLength: 1,
267917
+ maxLength: 200,
267918
+ writeOnly: true,
267919
+ secret: true
267920
+ }
267921
+ },
267922
+ additionalProperties: false
267860
267923
  },
267861
267924
  {
267862
- additionalProperties: false,
267863
267925
  type: "object",
267864
267926
  required: [
267865
267927
  "kind",
@@ -267873,51 +267935,52 @@ var account_connections_default = {
267873
267935
  ],
267874
267936
  properties: {
267875
267937
  kind: {
267876
- const: "arbol",
267877
- type: "string"
267938
+ type: "string",
267939
+ const: "arbol"
267878
267940
  },
267879
267941
  integration: {
267880
- const: "salud-total",
267881
- type: "string"
267942
+ type: "string",
267943
+ const: "salud-total"
267882
267944
  },
267883
267945
  name: {
267884
- description: "The connection's name, as an agent's builder sees it and an agent picks it: 'Sede Norte'.",
267885
- type: "string"
267946
+ type: "string",
267947
+ description: "The connection's name, as an agent's builder sees it and an agent picks it: 'Sede Norte'."
267886
267948
  },
267887
267949
  username: {
267888
- pattern: "^[0-9]{4,20}$",
267889
- type: "string"
267950
+ type: "string",
267951
+ pattern: "^[0-9]{4,20}$"
267890
267952
  },
267891
267953
  password: {
267954
+ type: "string",
267892
267955
  minLength: 1,
267893
267956
  maxLength: 200,
267894
267957
  writeOnly: true,
267895
- type: "string"
267958
+ secret: true
267896
267959
  },
267897
267960
  documentType: {
267898
- const: "CC",
267899
- type: "string"
267961
+ type: "string",
267962
+ const: "CC"
267900
267963
  },
267901
267964
  nit: {
267902
- pattern: "^[0-9]{5,15}$",
267903
- type: "string"
267965
+ type: "string",
267966
+ pattern: "^[0-9]{5,15}$"
267904
267967
  },
267905
267968
  tag: {
267906
267969
  anyOf: [
267907
267970
  {
267908
- const: "postconsulta",
267909
- type: "string"
267971
+ type: "string",
267972
+ const: "postconsulta"
267910
267973
  },
267911
267974
  {
267912
- const: "facturacion",
267913
- type: "string"
267975
+ type: "string",
267976
+ const: "facturacion"
267914
267977
  }
267915
267978
  ]
267916
267979
  }
267917
- }
267980
+ },
267981
+ additionalProperties: false
267918
267982
  },
267919
267983
  {
267920
- additionalProperties: false,
267921
267984
  type: "object",
267922
267985
  required: [
267923
267986
  "kind",
@@ -267927,27 +267990,28 @@ var account_connections_default = {
267927
267990
  ],
267928
267991
  properties: {
267929
267992
  kind: {
267930
- const: "arbol",
267931
- type: "string"
267993
+ type: "string",
267994
+ const: "arbol"
267932
267995
  },
267933
267996
  integration: {
267934
- const: "gmedic",
267935
- type: "string"
267997
+ type: "string",
267998
+ const: "gmedic"
267936
267999
  },
267937
268000
  name: {
267938
- description: "The connection's name, as an agent's builder sees it and an agent picks it: 'Sede Norte'.",
267939
- type: "string"
268001
+ type: "string",
268002
+ description: "The connection's name, as an agent's builder sees it and an agent picks it: 'Sede Norte'."
267940
268003
  },
267941
268004
  apiToken: {
268005
+ type: "string",
267942
268006
  minLength: 8,
267943
268007
  maxLength: 512,
267944
268008
  writeOnly: true,
267945
- type: "string"
268009
+ secret: true
267946
268010
  }
267947
- }
268011
+ },
268012
+ additionalProperties: false
267948
268013
  },
267949
268014
  {
267950
- additionalProperties: false,
267951
268015
  type: "object",
267952
268016
  required: [
267953
268017
  "kind",
@@ -267963,69 +268027,66 @@ var account_connections_default = {
267963
268027
  ],
267964
268028
  properties: {
267965
268029
  kind: {
267966
- const: "arbol",
267967
- type: "string"
268030
+ type: "string",
268031
+ const: "arbol"
267968
268032
  },
267969
268033
  integration: {
267970
- const: "oficlinic",
267971
- type: "string"
268034
+ type: "string",
268035
+ const: "oficlinic"
267972
268036
  },
267973
268037
  name: {
267974
- description: "The connection's name, as an agent's builder sees it and an agent picks it: 'Sede Norte'.",
267975
- type: "string"
268038
+ type: "string",
268039
+ description: "The connection's name, as an agent's builder sees it and an agent picks it: 'Sede Norte'."
267976
268040
  },
267977
268041
  generalUsername: {
268042
+ type: "string",
267978
268043
  minLength: 1,
267979
268044
  maxLength: 64,
267980
- pattern: "^\\S+$",
267981
- type: "string"
268045
+ pattern: "^\\S+$"
267982
268046
  },
267983
268047
  generalPassword: {
268048
+ type: "string",
267984
268049
  minLength: 1,
267985
268050
  maxLength: 128,
267986
268051
  pattern: "^[^\\x00-\\x1F\\x7F]+$",
267987
268052
  writeOnly: true,
267988
- type: "string"
268053
+ secret: true
267989
268054
  },
267990
268055
  username: {
268056
+ type: "string",
267991
268057
  minLength: 1,
267992
268058
  maxLength: 64,
267993
- pattern: "^\\S+$",
267994
- type: "string"
268059
+ pattern: "^\\S+$"
267995
268060
  },
267996
268061
  password: {
268062
+ type: "string",
267997
268063
  minLength: 1,
267998
268064
  maxLength: 128,
267999
268065
  pattern: "^[^\\x00-\\x1F\\x7F]+$",
268000
268066
  writeOnly: true,
268001
- type: "string"
268067
+ secret: true
268002
268068
  },
268003
268069
  companyId: {
268004
- pattern: "^[0-9]{1,9}$",
268005
- type: "string"
268070
+ type: "string",
268071
+ pattern: "^[0-9]{1,9}$"
268006
268072
  },
268007
268073
  siteId: {
268008
- pattern: "^[0-9]{1,9}$",
268009
- type: "string"
268074
+ type: "string",
268075
+ pattern: "^[0-9]{1,9}$"
268010
268076
  },
268011
268077
  ipsId: {
268012
- pattern: "^[0-9]{1,9}$",
268013
- type: "string"
268078
+ type: "string",
268079
+ pattern: "^[0-9]{1,9}$"
268014
268080
  },
268015
268081
  session: {
268016
- additionalProperties: false,
268017
- writeOnly: true,
268018
268082
  type: "object",
268019
268083
  required: [
268020
268084
  "cookies"
268021
268085
  ],
268022
268086
  properties: {
268023
268087
  cookies: {
268024
- minItems: 1,
268025
- maxItems: 12,
268026
268088
  type: "array",
268027
268089
  items: {
268028
- additionalProperties: false,
268029
268090
  type: "object",
268030
268091
  required: [
268031
268092
  "name",
@@ -268036,37 +268097,38 @@ var account_connections_default = {
268036
268097
  ],
268037
268098
  properties: {
268038
268099
  name: {
268039
- pattern: "^[A-Za-z0-9!#$%&*+.^_|~-]{1,128}$",
268040
- type: "string"
268100
+ type: "string",
268101
+ pattern: "^[A-Za-z0-9!#$%&*+.^_|~-]{1,128}$"
268041
268102
  },
268042
268103
  value: {
268104
+ type: "string",
268043
268105
  pattern: "^[\\x21\\x23-\\x3A\\x3C-\\x5B\\x5D-\\x7E]{0,1024}$",
268044
268106
  writeOnly: true,
268045
- type: "string"
268107
+ secret: true
268046
268108
  },
268047
268109
  domain: {
268048
268110
  anyOf: [
268049
268111
  {
268050
- const: "v0.oficlinic.com.co",
268051
- type: "string"
268112
+ type: "string",
268113
+ const: "v0.oficlinic.com.co"
268052
268114
  },
268053
268115
  {
268054
- const: ".v0.oficlinic.com.co",
268055
- type: "string"
268116
+ type: "string",
268117
+ const: ".v0.oficlinic.com.co"
268056
268118
  },
268057
268119
  {
268058
- const: "oficlinic.com.co",
268059
- type: "string"
268120
+ type: "string",
268121
+ const: "oficlinic.com.co"
268060
268122
  },
268061
268123
  {
268062
- const: ".oficlinic.com.co",
268063
- type: "string"
268124
+ type: "string",
268125
+ const: ".oficlinic.com.co"
268064
268126
  }
268065
268127
  ]
268066
268128
  },
268067
268129
  path: {
268068
- pattern: "^/[\\x21-\\x3A\\x3C-\\x7E]{0,255}$",
268069
- type: "string"
268130
+ type: "string",
268131
+ pattern: "^/[\\x21-\\x3A\\x3C-\\x7E]{0,255}$"
268070
268132
  },
268071
268133
  secure: {
268072
268134
  type: "boolean"
@@ -268077,23 +268139,28 @@ var account_connections_default = {
268077
268139
  expiresAt: {
268078
268140
  anyOf: [
268079
268141
  {
268080
- format: "date-time",
268081
- type: "string"
268142
+ type: "string",
268143
+ format: "date-time"
268082
268144
  },
268083
268145
  {
268084
268146
  type: "null"
268085
268147
  }
268086
268148
  ]
268087
268149
  }
268088
- }
268089
- }
268150
+ },
268151
+ additionalProperties: false
268152
+ },
268153
+ minItems: 1,
268154
+ maxItems: 12
268090
268155
  }
268091
- }
268156
+ },
268157
+ additionalProperties: false,
268158
+ writeOnly: true
268092
268159
  }
268093
- }
268160
+ },
268161
+ additionalProperties: false
268094
268162
  },
268095
268163
  {
268096
- additionalProperties: false,
268097
268164
  type: "object",
268098
268165
  required: [
268099
268166
  "kind",
@@ -268105,37 +268172,89 @@ var account_connections_default = {
268105
268172
  ],
268106
268173
  properties: {
268107
268174
  kind: {
268108
- const: "arbol",
268109
- type: "string"
268175
+ type: "string",
268176
+ const: "arbol"
268110
268177
  },
268111
268178
  integration: {
268112
- const: "sanitas",
268113
- type: "string"
268179
+ type: "string",
268180
+ const: "famisanar"
268114
268181
  },
268115
268182
  name: {
268116
- description: "The connection's name, as an agent's builder sees it and an agent picks it: 'Sede Norte'.",
268117
- type: "string"
268183
+ type: "string",
268184
+ description: "The connection's name, as an agent's builder sees it and an agent picks it: 'Sede Norte'."
268118
268185
  },
268119
268186
  username: {
268187
+ type: "string",
268120
268188
  minLength: 1,
268121
268189
  maxLength: 100,
268122
- pattern: "^[^\\r\\n]+$",
268123
- type: "string"
268190
+ pattern: "^[^\\r\\n]+$"
268124
268191
  },
268125
268192
  password: {
268193
+ type: "string",
268126
268194
  minLength: 1,
268127
268195
  maxLength: 200,
268128
268196
  writeOnly: true,
268129
- type: "string"
268197
+ secret: true
268130
268198
  },
268131
268199
  documentType: {
268132
- const: "CC",
268133
- type: "string"
268200
+ anyOf: [
268201
+ {
268202
+ type: "string",
268203
+ const: "CC"
268204
+ },
268205
+ {
268206
+ type: "string",
268207
+ const: "NT"
268208
+ }
268209
+ ]
268134
268210
  }
268135
- }
268211
+ },
268212
+ additionalProperties: false
268213
+ },
268214
+ {
268215
+ type: "object",
268216
+ required: [
268217
+ "kind",
268218
+ "integration",
268219
+ "name",
268220
+ "username",
268221
+ "password",
268222
+ "documentType"
268223
+ ],
268224
+ properties: {
268225
+ kind: {
268226
+ type: "string",
268227
+ const: "arbol"
268228
+ },
268229
+ integration: {
268230
+ type: "string",
268231
+ const: "sanitas"
268232
+ },
268233
+ name: {
268234
+ type: "string",
268235
+ description: "The connection's name, as an agent's builder sees it and an agent picks it: 'Sede Norte'."
268236
+ },
268237
+ username: {
268238
+ type: "string",
268239
+ minLength: 1,
268240
+ maxLength: 100,
268241
+ pattern: "^[^\\r\\n]+$"
268242
+ },
268243
+ password: {
268244
+ type: "string",
268245
+ minLength: 1,
268246
+ maxLength: 200,
268247
+ writeOnly: true,
268248
+ secret: true
268249
+ },
268250
+ documentType: {
268251
+ type: "string",
268252
+ const: "CC"
268253
+ }
268254
+ },
268255
+ additionalProperties: false
268136
268256
  },
268137
268257
  {
268138
- additionalProperties: false,
268139
268258
  type: "object",
268140
268259
  required: [
268141
268260
  "kind",
@@ -268147,71 +268266,73 @@ var account_connections_default = {
268147
268266
  ],
268148
268267
  properties: {
268149
268268
  kind: {
268150
- const: "custom",
268151
- type: "string"
268269
+ type: "string",
268270
+ const: "custom"
268152
268271
  },
268153
268272
  name: {
268154
- description: "The connection's name, as an agent's builder sees it and an agent picks it: 'Sede Norte'.",
268155
- type: "string"
268273
+ type: "string",
268274
+ description: "The connection's name, as an agent's builder sees it and an agent picks it: 'Sede Norte'."
268156
268275
  },
268157
268276
  transport: {
268158
268277
  anyOf: [
268159
268278
  {
268160
- const: "http",
268161
- type: "string"
268279
+ type: "string",
268280
+ const: "http"
268162
268281
  },
268163
268282
  {
268164
- const: "mcp",
268165
- type: "string"
268283
+ type: "string",
268284
+ const: "mcp"
268166
268285
  }
268167
268286
  ],
268168
268287
  description: "http: an OpenAPI 3 document (or a server whose /openapi.json serves one). mcp: an MCP endpoint (Streamable HTTP)."
268169
268288
  },
268170
268289
  url: {
268290
+ type: "string",
268171
268291
  format: "uri",
268172
268292
  maxLength: 2048,
268173
268293
  pattern: "^https://[^?#]+$",
268174
- description: "The OpenAPI document, or the MCP endpoint: https, without a query or a fragment.",
268175
- type: "string"
268294
+ description: "The OpenAPI document, or the MCP endpoint: https, without a query or a fragment."
268176
268295
  },
268177
268296
  authHeader: {
268297
+ type: "string",
268178
268298
  pattern: "^[A-Za-z][A-Za-z0-9-]{0,63}$",
268179
- description: "The header that carries the secret; without it the secret is sent as Authorization: Bearer.",
268180
- type: "string"
268299
+ description: "The header that carries the secret; without it the secret is sent as Authorization: Bearer."
268181
268300
  },
268182
268301
  secret: {
268302
+ type: "string",
268303
+ secret: true,
268183
268304
  minLength: 1,
268184
268305
  maxLength: 4096,
268185
268306
  pattern: "^[^\\r\\n]+$",
268186
- description: "The server's secret. It is sealed and only ever sent to the registered server.",
268187
- type: "string"
268307
+ description: "The server's secret. It is sealed and only ever sent to the registered server."
268188
268308
  },
268189
268309
  fileArgument: {
268310
+ type: "string",
268190
268311
  pattern: "^[A-Za-z_][A-Za-z0-9_]{0,63}$",
268191
- description: "The tool argument that receives files, if any: Raíz puts short-lived signed URLs there.",
268192
- type: "string"
268312
+ description: "The tool argument that receives files, if any: Raíz puts short-lived signed URLs there."
268193
268313
  },
268194
268314
  writesThrough: {
268195
- additionalProperties: false,
268196
- maxProperties: 100,
268197
- description: "Per write tool, the Arbol integrations it writes through (sura, agenda), when its document does not say: Raíz fences them together.",
268198
268315
  type: "object",
268199
268316
  patternProperties: {
268200
268317
  "^[A-Za-z][A-Za-z0-9_-]{0,63}$": {
268201
- maxItems: 10,
268202
268318
  type: "array",
268203
268319
  items: {
268204
- pattern: "^[a-z][a-z0-9-]{1,63}$",
268205
- type: "string"
268206
- }
268320
+ type: "string",
268321
+ pattern: "^[a-z][a-z0-9-]{1,63}$"
268322
+ },
268323
+ maxItems: 10
268207
268324
  }
268208
- }
268325
+ },
268326
+ additionalProperties: false,
268327
+ maxProperties: 100,
268328
+ description: "Per write tool, the Arbol integrations it writes through (sura, agenda), when its document does not say: Raíz fences them together."
268209
268329
  },
268210
268330
  writesEnabled: {
268211
- description: "Staff verified the server's domain belongs to the organization: its write tools are offered.",
268212
- type: "boolean"
268331
+ type: "boolean",
268332
+ 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."
268213
268333
  }
268214
- }
268334
+ },
268335
+ additionalProperties: false
268215
268336
  }
268216
268337
  ]
268217
268338
  },
@@ -268230,35 +268351,30 @@ var account_connections_default = {
268230
268351
  operationId: "updateConnection",
268231
268352
  name: "account.connections.update",
268232
268353
  command: "account connections update",
268233
- title: "Change a connection (staff)",
268234
- 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.",
268354
+ title: "Change a connection",
268355
+ 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.",
268235
268356
  input: {
268236
- additionalProperties: false,
268237
268357
  type: "object",
268238
268358
  required: [
268239
268359
  "connectionId"
268240
268360
  ],
268241
268361
  properties: {
268242
268362
  connectionId: {
268363
+ type: "string",
268243
268364
  pattern: "^con_[0-7][0-9a-hjkmnp-tv-z]{25}$",
268244
- description: "A connection's id: con_ and 26 characters, stable and unique across the platform.",
268245
- type: "string"
268365
+ description: "A connection's id: con_ and 26 characters, stable and unique across the platform."
268246
268366
  },
268247
268367
  name: {
268248
- description: "The connection's name, as an agent's builder sees it and an agent picks it: 'Sede Norte'.",
268249
- type: "string"
268368
+ type: "string",
268369
+ description: "The connection's name, as an agent's builder sees it and an agent picks it: 'Sede Norte'."
268250
268370
  },
268251
268371
  enabled: {
268252
- description: "false disables the connection (its owner refuses it); true enables it again.",
268253
- type: "boolean"
268372
+ type: "boolean",
268373
+ description: "false disables the connection (its owner refuses it); true enables it again."
268254
268374
  },
268255
268375
  logins: {
268256
- minItems: 1,
268257
- maxItems: 5,
268258
- description: "SURA: logins to add or to change; only these are verified.",
268259
268376
  type: "array",
268260
268377
  items: {
268261
- additionalProperties: false,
268262
268378
  type: "object",
268263
268379
  required: [
268264
268380
  "username",
@@ -268267,134 +268383,229 @@ var account_connections_default = {
268267
268383
  ],
268268
268384
  properties: {
268269
268385
  login: {
268386
+ type: "integer",
268270
268387
  minimum: 0,
268271
268388
  maximum: 1000,
268272
- description: "SURA: the login whose password or key changes; without it, a new login.",
268273
- type: "integer"
268389
+ description: "SURA: the login whose password or key changes; without it, a new login."
268274
268390
  },
268275
268391
  username: {
268276
- description: "A username the clinic signs in to the SURA portal with.",
268277
- type: "string"
268392
+ type: "string",
268393
+ description: "A username the clinic signs in to the SURA portal with."
268278
268394
  },
268279
268395
  password: {
268396
+ type: "string",
268397
+ secret: true,
268280
268398
  minLength: 1,
268281
268399
  maxLength: 512,
268282
268400
  pattern: "^[^\\r\\n]+$",
268283
- description: "Its password, exactly as typed.",
268284
- type: "string"
268401
+ description: "Its password, exactly as typed."
268285
268402
  },
268286
268403
  totpSecret: {
268287
- description: "The account's authenticator setup key: the Base32 text SURA shows when an authenticator app is added.",
268288
- type: "string"
268404
+ type: "string",
268405
+ secret: true,
268406
+ description: "The account's authenticator setup key: the Base32 text SURA shows when an authenticator app is added."
268289
268407
  }
268290
- }
268291
- }
268292
- },
268293
- removeLogins: {
268408
+ },
268409
+ additionalProperties: false
268410
+ },
268294
268411
  minItems: 1,
268295
268412
  maxItems: 5,
268296
- description: "SURA: the logins to remove; at least one login stays.",
268413
+ description: "SURA: logins to add or to change; only these are verified."
268414
+ },
268415
+ removeLogins: {
268297
268416
  type: "array",
268298
268417
  items: {
268418
+ type: "integer",
268299
268419
  minimum: 0,
268300
- maximum: 1000,
268301
- type: "integer"
268302
- }
268420
+ maximum: 1000
268421
+ },
268422
+ minItems: 1,
268423
+ maxItems: 5,
268424
+ description: "SURA: the logins to remove; at least one login stays."
268425
+ },
268426
+ suraLoginPassword: {
268427
+ type: "object",
268428
+ required: [
268429
+ "login",
268430
+ "password"
268431
+ ],
268432
+ properties: {
268433
+ login: {
268434
+ type: "integer",
268435
+ minimum: 0,
268436
+ maximum: 1000
268437
+ },
268438
+ username: {
268439
+ type: "string",
268440
+ description: "A username the clinic signs in to the SURA portal with.",
268441
+ secret: true
268442
+ },
268443
+ password: {
268444
+ type: "string",
268445
+ secret: true,
268446
+ minLength: 1,
268447
+ maxLength: 512,
268448
+ pattern: "^[^\\r\\n]+$",
268449
+ description: "Its password, exactly as typed."
268450
+ }
268451
+ },
268452
+ additionalProperties: false,
268453
+ description: "Update only the password of an existing SURA login, using its stored authenticator key."
268454
+ },
268455
+ suraLogin: {
268456
+ anyOf: [
268457
+ {
268458
+ type: "object",
268459
+ required: [
268460
+ "login",
268461
+ "password"
268462
+ ],
268463
+ properties: {
268464
+ login: {
268465
+ type: "integer",
268466
+ minimum: 0,
268467
+ maximum: 1000
268468
+ },
268469
+ password: {
268470
+ type: "string",
268471
+ secret: true,
268472
+ minLength: 1,
268473
+ maxLength: 512,
268474
+ pattern: "^[^\\r\\n]+$",
268475
+ description: "Its password, exactly as typed."
268476
+ },
268477
+ totpSecret: {
268478
+ type: "string",
268479
+ secret: true,
268480
+ description: "The account's authenticator setup key: the Base32 text SURA shows when an authenticator app is added."
268481
+ }
268482
+ },
268483
+ additionalProperties: false
268484
+ },
268485
+ {
268486
+ type: "object",
268487
+ required: [
268488
+ "login",
268489
+ "totpSecret"
268490
+ ],
268491
+ properties: {
268492
+ login: {
268493
+ type: "integer",
268494
+ minimum: 0,
268495
+ maximum: 1000
268496
+ },
268497
+ password: {
268498
+ type: "string",
268499
+ secret: true,
268500
+ minLength: 1,
268501
+ maxLength: 512,
268502
+ pattern: "^[^\\r\\n]+$",
268503
+ description: "Its password, exactly as typed."
268504
+ },
268505
+ totpSecret: {
268506
+ type: "string",
268507
+ secret: true,
268508
+ description: "The account's authenticator setup key: the Base32 text SURA shows when an authenticator app is added."
268509
+ }
268510
+ },
268511
+ additionalProperties: false
268512
+ }
268513
+ ],
268514
+ description: "Update a saved SURA login's password, authenticator key, or both. Omitted values stay saved."
268303
268515
  },
268304
268516
  apiToken: {
268517
+ type: "string",
268305
268518
  minLength: 8,
268306
268519
  maxLength: 512,
268307
268520
  writeOnly: true,
268308
- type: "string"
268521
+ secret: true
268309
268522
  },
268310
268523
  portal: {
268524
+ type: "string",
268311
268525
  minLength: 1,
268312
268526
  maxLength: 64,
268313
- pattern: "^[a-z][a-z0-9-]*$",
268314
- type: "string"
268527
+ pattern: "^[a-z][a-z0-9-]*$"
268315
268528
  },
268316
268529
  documentType: {
268530
+ type: "string",
268317
268531
  minLength: 2,
268318
268532
  maxLength: 4,
268319
- pattern: "^[A-Z]+$",
268320
- type: "string"
268533
+ pattern: "^[A-Z]+$"
268321
268534
  },
268322
268535
  providerCode: {
268323
- pattern: "^[0-9]{1,20}$",
268324
- type: "string"
268536
+ type: "string",
268537
+ pattern: "^[0-9]{1,20}$"
268325
268538
  },
268326
268539
  nit: {
268327
- pattern: "^[0-9]{5,15}$",
268328
- type: "string"
268540
+ type: "string",
268541
+ pattern: "^[0-9]{5,15}$"
268329
268542
  },
268330
268543
  tag: {
268331
268544
  anyOf: [
268332
268545
  {
268333
- const: "postconsulta",
268334
- type: "string"
268546
+ type: "string",
268547
+ const: "postconsulta"
268335
268548
  },
268336
268549
  {
268337
- const: "facturacion",
268338
- type: "string"
268550
+ type: "string",
268551
+ const: "facturacion"
268339
268552
  }
268340
268553
  ]
268341
268554
  },
268342
268555
  clinicId: {
268556
+ type: "string",
268343
268557
  minLength: 1,
268344
268558
  maxLength: 64,
268345
268559
  pattern: "^[A-Za-z0-9_-]+$",
268346
- description: "The clinic whose SIIPS the login belongs to, as visoft.clinics.list names it.",
268347
- type: "string"
268560
+ description: "The clinic whose SIIPS the login belongs to, as visoft.clinics.list names it."
268348
268561
  },
268349
268562
  username: {
268350
- description: "The username the clinic's team signs in to SIIPS with.",
268351
- type: "string"
268563
+ type: "string",
268564
+ secret: true,
268565
+ description: "The username the clinic's team signs in to SIIPS with."
268352
268566
  },
268353
268567
  password: {
268568
+ type: "string",
268569
+ secret: true,
268354
268570
  minLength: 1,
268355
268571
  maxLength: 4096,
268356
- description: "Its password, exactly as typed.",
268357
- type: "string"
268572
+ description: "Its password, exactly as typed."
268358
268573
  },
268359
268574
  generalUsername: {
268575
+ type: "string",
268360
268576
  minLength: 1,
268361
268577
  maxLength: 64,
268362
- pattern: "^\\S+$",
268363
- type: "string"
268578
+ pattern: "^\\S+$"
268364
268579
  },
268365
268580
  generalPassword: {
268581
+ type: "string",
268366
268582
  minLength: 1,
268367
268583
  maxLength: 128,
268368
268584
  pattern: "^[^\\x00-\\x1F\\x7F]+$",
268369
268585
  writeOnly: true,
268370
- type: "string"
268586
+ secret: true
268371
268587
  },
268372
268588
  companyId: {
268373
- pattern: "^[0-9]{1,9}$",
268374
- type: "string"
268589
+ type: "string",
268590
+ pattern: "^[0-9]{1,9}$"
268375
268591
  },
268376
268592
  siteId: {
268377
- pattern: "^[0-9]{1,9}$",
268378
- type: "string"
268593
+ type: "string",
268594
+ pattern: "^[0-9]{1,9}$"
268379
268595
  },
268380
268596
  ipsId: {
268381
- pattern: "^[0-9]{1,9}$",
268382
- type: "string"
268597
+ type: "string",
268598
+ pattern: "^[0-9]{1,9}$"
268383
268599
  },
268384
268600
  session: {
268385
- additionalProperties: false,
268386
- writeOnly: true,
268387
268601
  type: "object",
268388
268602
  required: [
268389
268603
  "cookies"
268390
268604
  ],
268391
268605
  properties: {
268392
268606
  cookies: {
268393
- minItems: 1,
268394
- maxItems: 12,
268395
268607
  type: "array",
268396
268608
  items: {
268397
- additionalProperties: false,
268398
268609
  type: "object",
268399
268610
  required: [
268400
268611
  "name",
@@ -268405,37 +268616,38 @@ var account_connections_default = {
268405
268616
  ],
268406
268617
  properties: {
268407
268618
  name: {
268408
- pattern: "^[A-Za-z0-9!#$%&*+.^_|~-]{1,128}$",
268409
- type: "string"
268619
+ type: "string",
268620
+ pattern: "^[A-Za-z0-9!#$%&*+.^_|~-]{1,128}$"
268410
268621
  },
268411
268622
  value: {
268623
+ type: "string",
268412
268624
  pattern: "^[\\x21\\x23-\\x3A\\x3C-\\x5B\\x5D-\\x7E]{0,1024}$",
268413
268625
  writeOnly: true,
268414
- type: "string"
268626
+ secret: true
268415
268627
  },
268416
268628
  domain: {
268417
268629
  anyOf: [
268418
268630
  {
268419
- const: "v0.oficlinic.com.co",
268420
- type: "string"
268631
+ type: "string",
268632
+ const: "v0.oficlinic.com.co"
268421
268633
  },
268422
268634
  {
268423
- const: ".v0.oficlinic.com.co",
268424
- type: "string"
268635
+ type: "string",
268636
+ const: ".v0.oficlinic.com.co"
268425
268637
  },
268426
268638
  {
268427
- const: "oficlinic.com.co",
268428
- type: "string"
268639
+ type: "string",
268640
+ const: "oficlinic.com.co"
268429
268641
  },
268430
268642
  {
268431
- const: ".oficlinic.com.co",
268432
- type: "string"
268643
+ type: "string",
268644
+ const: ".oficlinic.com.co"
268433
268645
  }
268434
268646
  ]
268435
268647
  },
268436
268648
  path: {
268437
- pattern: "^/[\\x21-\\x3A\\x3C-\\x7E]{0,255}$",
268438
- type: "string"
268649
+ type: "string",
268650
+ pattern: "^/[\\x21-\\x3A\\x3C-\\x7E]{0,255}$"
268439
268651
  },
268440
268652
  secure: {
268441
268653
  type: "boolean"
@@ -268446,45 +268658,50 @@ var account_connections_default = {
268446
268658
  expiresAt: {
268447
268659
  anyOf: [
268448
268660
  {
268449
- format: "date-time",
268450
- type: "string"
268661
+ type: "string",
268662
+ format: "date-time"
268451
268663
  },
268452
268664
  {
268453
268665
  type: "null"
268454
268666
  }
268455
268667
  ]
268456
268668
  }
268457
- }
268458
- }
268669
+ },
268670
+ additionalProperties: false
268671
+ },
268672
+ minItems: 1,
268673
+ maxItems: 12
268459
268674
  }
268460
- }
268675
+ },
268676
+ additionalProperties: false,
268677
+ writeOnly: true
268461
268678
  },
268462
268679
  transport: {
268463
268680
  anyOf: [
268464
268681
  {
268465
- const: "http",
268466
- type: "string"
268682
+ type: "string",
268683
+ const: "http"
268467
268684
  },
268468
268685
  {
268469
- const: "mcp",
268470
- type: "string"
268686
+ type: "string",
268687
+ const: "mcp"
268471
268688
  }
268472
268689
  ],
268473
268690
  description: "http: an OpenAPI 3 document (or a server whose /openapi.json serves one). mcp: an MCP endpoint (Streamable HTTP)."
268474
268691
  },
268475
268692
  url: {
268693
+ type: "string",
268476
268694
  format: "uri",
268477
268695
  maxLength: 2048,
268478
268696
  pattern: "^https://[^?#]+$",
268479
- description: "The OpenAPI document, or the MCP endpoint: https, without a query or a fragment.",
268480
- type: "string"
268697
+ description: "The OpenAPI document, or the MCP endpoint: https, without a query or a fragment."
268481
268698
  },
268482
268699
  authHeader: {
268483
268700
  anyOf: [
268484
268701
  {
268702
+ type: "string",
268485
268703
  pattern: "^[A-Za-z][A-Za-z0-9-]{0,63}$",
268486
- description: "The header that carries the secret; without it the secret is sent as Authorization: Bearer.",
268487
- type: "string"
268704
+ description: "The header that carries the secret; without it the secret is sent as Authorization: Bearer."
268488
268705
  },
268489
268706
  {
268490
268707
  type: "null"
@@ -268492,18 +268709,19 @@ var account_connections_default = {
268492
268709
  ]
268493
268710
  },
268494
268711
  secret: {
268712
+ type: "string",
268713
+ secret: true,
268495
268714
  minLength: 1,
268496
268715
  maxLength: 4096,
268497
268716
  pattern: "^[^\\r\\n]+$",
268498
- description: "The server's secret. It is sealed and only ever sent to the registered server.",
268499
- type: "string"
268717
+ description: "The server's secret. It is sealed and only ever sent to the registered server."
268500
268718
  },
268501
268719
  fileArgument: {
268502
268720
  anyOf: [
268503
268721
  {
268722
+ type: "string",
268504
268723
  pattern: "^[A-Za-z_][A-Za-z0-9_]{0,63}$",
268505
- description: "The tool argument that receives files, if any: Raíz puts short-lived signed URLs there.",
268506
- type: "string"
268724
+ description: "The tool argument that receives files, if any: Raíz puts short-lived signed URLs there."
268507
268725
  },
268508
268726
  {
268509
268727
  type: "null"
@@ -268511,26 +268729,81 @@ var account_connections_default = {
268511
268729
  ]
268512
268730
  },
268513
268731
  writesThrough: {
268514
- additionalProperties: false,
268515
- maxProperties: 100,
268516
- description: "Per write tool, the Arbol integrations it writes through (sura, agenda), when its document does not say: Raíz fences them together.",
268517
268732
  type: "object",
268518
268733
  patternProperties: {
268519
268734
  "^[A-Za-z][A-Za-z0-9_-]{0,63}$": {
268520
- maxItems: 10,
268521
268735
  type: "array",
268522
268736
  items: {
268523
- pattern: "^[a-z][a-z0-9-]{1,63}$",
268524
- type: "string"
268525
- }
268737
+ type: "string",
268738
+ pattern: "^[a-z][a-z0-9-]{1,63}$"
268739
+ },
268740
+ maxItems: 10
268526
268741
  }
268527
- }
268742
+ },
268743
+ additionalProperties: false,
268744
+ maxProperties: 100,
268745
+ description: "Per write tool, the Arbol integrations it writes through (sura, agenda), when its document does not say: Raíz fences them together."
268528
268746
  },
268529
268747
  writesEnabled: {
268530
- description: "Staff verified the server's domain belongs to the organization: its write tools are offered.",
268531
- type: "boolean"
268748
+ type: "boolean",
268749
+ 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."
268750
+ },
268751
+ reminders: {
268752
+ type: "object",
268753
+ required: [
268754
+ "mode",
268755
+ "sendAt",
268756
+ "daysBefore"
268757
+ ],
268758
+ properties: {
268759
+ mode: {
268760
+ anyOf: [
268761
+ {
268762
+ type: "string",
268763
+ const: "off"
268764
+ },
268765
+ {
268766
+ type: "string",
268767
+ const: "review"
268768
+ },
268769
+ {
268770
+ type: "string",
268771
+ const: "automatic"
268772
+ }
268773
+ ],
268774
+ 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."
268775
+ },
268776
+ sendAt: {
268777
+ type: "string",
268778
+ pattern: "^(?:(?:0[6-9]|1[0-9]):(?:00|15|30|45)|20:00)$",
268779
+ 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."
268780
+ },
268781
+ daysBefore: {
268782
+ type: "integer",
268783
+ minimum: 1,
268784
+ maximum: 7,
268785
+ description: "On a given day, the appointments this many days ahead are reminded: 1 is the day before."
268786
+ }
268787
+ },
268788
+ additionalProperties: false,
268789
+ 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."
268790
+ },
268791
+ arbi: {
268792
+ type: "object",
268793
+ required: [
268794
+ "enabled"
268795
+ ],
268796
+ properties: {
268797
+ enabled: {
268798
+ type: "boolean",
268799
+ 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."
268800
+ }
268801
+ },
268802
+ additionalProperties: false,
268803
+ 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."
268532
268804
  }
268533
- }
268805
+ },
268806
+ additionalProperties: false
268534
268807
  },
268535
268808
  http: {
268536
268809
  method: "PATCH",
@@ -268538,30 +268811,35 @@ var account_connections_default = {
268538
268811
  },
268539
268812
  effect: "write",
268540
268813
  actorKinds: [
268541
- "user"
268814
+ "user",
268815
+ "service"
268816
+ ],
268817
+ scope: [
268818
+ "account:connections:operate",
268819
+ "account:connections:write",
268820
+ "account:connections:reconcile"
268542
268821
  ],
268543
- scope: "account:connections:operate",
268544
268822
  maxOutputBytes: 1048576
268545
268823
  },
268546
268824
  {
268547
268825
  operationId: "deleteConnection",
268548
268826
  name: "account.connections.delete",
268549
268827
  command: "account connections delete",
268550
- title: "Remove a connection (staff)",
268551
- 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.",
268828
+ title: "Remove a connection",
268829
+ 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.",
268552
268830
  input: {
268553
- additionalProperties: false,
268554
268831
  type: "object",
268555
268832
  required: [
268556
268833
  "connectionId"
268557
268834
  ],
268558
268835
  properties: {
268559
268836
  connectionId: {
268837
+ type: "string",
268560
268838
  pattern: "^con_[0-7][0-9a-hjkmnp-tv-z]{25}$",
268561
- description: "A connection's id: con_ and 26 characters, stable and unique across the platform.",
268562
- type: "string"
268839
+ description: "A connection's id: con_ and 26 characters, stable and unique across the platform."
268563
268840
  }
268564
- }
268841
+ },
268842
+ additionalProperties: false
268565
268843
  },
268566
268844
  http: {
268567
268845
  method: "DELETE",
@@ -268571,7 +268849,10 @@ var account_connections_default = {
268571
268849
  actorKinds: [
268572
268850
  "user"
268573
268851
  ],
268574
- scope: "account:connections:operate",
268852
+ scope: [
268853
+ "account:connections:operate",
268854
+ "account:connections:write"
268855
+ ],
268575
268856
  maxOutputBytes: 1048576
268576
268857
  },
268577
268858
  {
@@ -268581,7 +268862,6 @@ var account_connections_default = {
268581
268862
  title: "Read a custom server's tools (staff)",
268582
268863
  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.",
268583
268864
  input: {
268584
- additionalProperties: false,
268585
268865
  type: "object",
268586
268866
  required: [
268587
268867
  "transport",
@@ -268592,52 +268872,54 @@ var account_connections_default = {
268592
268872
  transport: {
268593
268873
  anyOf: [
268594
268874
  {
268595
- const: "http",
268596
- type: "string"
268875
+ type: "string",
268876
+ const: "http"
268597
268877
  },
268598
268878
  {
268599
- const: "mcp",
268600
- type: "string"
268879
+ type: "string",
268880
+ const: "mcp"
268601
268881
  }
268602
268882
  ],
268603
268883
  description: "http: an OpenAPI 3 document (or a server whose /openapi.json serves one). mcp: an MCP endpoint (Streamable HTTP)."
268604
268884
  },
268605
268885
  url: {
268886
+ type: "string",
268606
268887
  format: "uri",
268607
268888
  maxLength: 2048,
268608
268889
  pattern: "^https://[^?#]+$",
268609
- description: "The OpenAPI document, or the MCP endpoint: https, without a query or a fragment.",
268610
- type: "string"
268890
+ description: "The OpenAPI document, or the MCP endpoint: https, without a query or a fragment."
268611
268891
  },
268612
268892
  authHeader: {
268893
+ type: "string",
268613
268894
  pattern: "^[A-Za-z][A-Za-z0-9-]{0,63}$",
268614
- description: "The header that carries the secret; without it the secret is sent as Authorization: Bearer.",
268615
- type: "string"
268895
+ description: "The header that carries the secret; without it the secret is sent as Authorization: Bearer."
268616
268896
  },
268617
268897
  secret: {
268898
+ type: "string",
268899
+ secret: true,
268618
268900
  minLength: 1,
268619
268901
  maxLength: 4096,
268620
268902
  pattern: "^[^\\r\\n]+$",
268621
- description: "The server's secret. It is sealed and only ever sent to the registered server.",
268622
- type: "string"
268903
+ description: "The server's secret. It is sealed and only ever sent to the registered server."
268623
268904
  },
268624
268905
  writesThrough: {
268625
- additionalProperties: false,
268626
- maxProperties: 100,
268627
- description: "Per write tool, the Arbol integrations it writes through (sura, agenda), when its document does not say: Raíz fences them together.",
268628
268906
  type: "object",
268629
268907
  patternProperties: {
268630
268908
  "^[A-Za-z][A-Za-z0-9_-]{0,63}$": {
268631
- maxItems: 10,
268632
268909
  type: "array",
268633
268910
  items: {
268634
- pattern: "^[a-z][a-z0-9-]{1,63}$",
268635
- type: "string"
268636
- }
268911
+ type: "string",
268912
+ pattern: "^[a-z][a-z0-9-]{1,63}$"
268913
+ },
268914
+ maxItems: 10
268637
268915
  }
268638
- }
268916
+ },
268917
+ additionalProperties: false,
268918
+ maxProperties: 100,
268919
+ description: "Per write tool, the Arbol integrations it writes through (sura, agenda), when its document does not say: Raíz fences them together."
268639
268920
  }
268640
- }
268921
+ },
268922
+ additionalProperties: false
268641
268923
  },
268642
268924
  http: {
268643
268925
  method: "POST",
@@ -268655,20 +268937,20 @@ var account_connections_default = {
268655
268937
  name: "account.connections.refreshTools",
268656
268938
  command: "account connections refresh-tools",
268657
268939
  title: "Read a custom server's tools again (staff)",
268658
- 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.",
268940
+ 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.",
268659
268941
  input: {
268660
- additionalProperties: false,
268661
268942
  type: "object",
268662
268943
  required: [
268663
268944
  "connectionId"
268664
268945
  ],
268665
268946
  properties: {
268666
268947
  connectionId: {
268948
+ type: "string",
268667
268949
  pattern: "^con_[0-7][0-9a-hjkmnp-tv-z]{25}$",
268668
- description: "A connection's id: con_ and 26 characters, stable and unique across the platform.",
268669
- type: "string"
268950
+ description: "A connection's id: con_ and 26 characters, stable and unique across the platform."
268670
268951
  }
268671
- }
268952
+ },
268953
+ additionalProperties: false
268672
268954
  },
268673
268955
  http: {
268674
268956
  method: "POST",
@@ -268895,7 +269177,7 @@ ${name}`);
268895
269177
  }
268896
269178
 
268897
269179
  // src/index.ts
268898
- var VERSION = "3.70.0";
269180
+ var VERSION = "3.71.1";
268899
269181
  var RELEASE = generation_default.release;
268900
269182
  var commands2 = { ...commands, ...accountOperatorCommands };
268901
269183
  var SDK_PATHS = new Map(Object.values(commands2).map((command) => [command.operation, command.sdkPath]));