@arbol-ai/cli 3.18.0 → 3.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +168 -201
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -547,6 +547,13 @@ var commands = {
547
547
  kind: "list",
548
548
  required: true,
549
549
  description: ""
550
+ },
551
+ {
552
+ name: "expiresAt",
553
+ flag: "expires-at",
554
+ kind: "string",
555
+ required: false,
556
+ description: "Exclusive expiration instant, with timezone. Defaults to seven days from creation."
550
557
  }
551
558
  ],
552
559
  inputSchema: {
@@ -575,6 +582,11 @@ var commands = {
575
582
  type: "string"
576
583
  }
577
584
  },
585
+ expiresAt: {
586
+ format: "date-time",
587
+ description: "Exclusive expiration instant, with timezone. Defaults to seven days from creation.",
588
+ type: "string"
589
+ },
578
590
  restrictions: {
579
591
  additionalProperties: false,
580
592
  maxProperties: 20,
@@ -937,34 +949,50 @@ var commands = {
937
949
  flag: "integration",
938
950
  kind: "string",
939
951
  required: true,
940
- description: "",
941
- choices: [
942
- "adres",
943
- "sisben"
944
- ]
952
+ description: ""
945
953
  },
946
954
  {
947
955
  name: "documentType",
948
956
  flag: "document-type",
949
957
  kind: "string",
950
- required: true,
951
- description: ""
958
+ required: false,
959
+ description: "Required for ADRES and Sisbén."
952
960
  },
953
961
  {
954
962
  name: "documentNumber",
955
963
  flag: "document-number",
956
964
  kind: "string",
957
- required: true,
958
- description: ""
965
+ required: false,
966
+ description: "Required for ADRES and Sisbén. Preserve leading zeros."
967
+ },
968
+ {
969
+ name: "agentMode",
970
+ flag: "agent-mode",
971
+ kind: "boolean",
972
+ required: false,
973
+ description: "Return a concise Spanish tool answer. Authorization is the same in both formats."
959
974
  }
960
975
  ],
961
976
  inputSchema: {
962
977
  additionalProperties: false,
978
+ anyOf: [
979
+ {
980
+ properties: {
981
+ integration: {
982
+ const: "policia-colombia"
983
+ }
984
+ }
985
+ },
986
+ {
987
+ required: [
988
+ "documentType",
989
+ "documentNumber"
990
+ ]
991
+ }
992
+ ],
963
993
  type: "object",
964
994
  required: [
965
- "integration",
966
- "documentType",
967
- "documentNumber"
995
+ "integration"
968
996
  ],
969
997
  properties: {
970
998
  integration: {
@@ -976,21 +1004,32 @@ var commands = {
976
1004
  {
977
1005
  const: "sisben",
978
1006
  type: "string"
1007
+ },
1008
+ {
1009
+ const: "policia-colombia",
1010
+ type: "string"
979
1011
  }
980
1012
  ]
981
1013
  },
982
1014
  documentType: {
983
1015
  pattern: "^[A-Z]{2}$",
1016
+ description: "Required for ADRES and Sisbén.",
984
1017
  type: "string"
985
1018
  },
986
1019
  documentNumber: {
987
1020
  pattern: "^(?:[0-9]{1,14}|[A-Z0-9]{8,10})$",
1021
+ description: "Required for ADRES and Sisbén. Preserve leading zeros.",
988
1022
  type: "string"
1023
+ },
1024
+ agentMode: {
1025
+ default: false,
1026
+ description: "Return a concise Spanish tool answer. Authorization is the same in both formats.",
1027
+ type: "boolean"
989
1028
  }
990
1029
  }
991
1030
  },
992
1031
  title: "Consult an included Colombian source",
993
- description: "Look up one authorized person by document type and number. ADRES returns their name when reported. Sisbén returns the official classification.",
1032
+ description: "Read ADRES or Sisbén for an authorized document, or obtain the personal Police guide without submitting a document. A machine key needs connection read access and an explicit restriction allowing this operation. Set agentMode to true for concise Spanish text.",
994
1033
  effect: "read",
995
1034
  confirmation: null,
996
1035
  hidden: false
@@ -2039,91 +2078,6 @@ var commands = {
2039
2078
  confirmation: null,
2040
2079
  hidden: false
2041
2080
  },
2042
- "account personal-consents prepare": {
2043
- operation: "account.personalConsents.prepare",
2044
- sdkPath: [
2045
- "account",
2046
- "personalConsents",
2047
- "prepare"
2048
- ],
2049
- pathField: null,
2050
- fields: [
2051
- {
2052
- name: "documentType",
2053
- flag: "document-type",
2054
- kind: "string",
2055
- required: true,
2056
- description: "",
2057
- choices: [
2058
- "CC",
2059
- "CE",
2060
- "PA",
2061
- "DP"
2062
- ]
2063
- },
2064
- {
2065
- name: "documentNumber",
2066
- flag: "document-number",
2067
- kind: "string",
2068
- required: true,
2069
- description: ""
2070
- },
2071
- {
2072
- name: "consent",
2073
- flag: "consent",
2074
- kind: "boolean",
2075
- required: true,
2076
- description: "",
2077
- choices: [
2078
- true
2079
- ]
2080
- }
2081
- ],
2082
- inputSchema: {
2083
- additionalProperties: false,
2084
- type: "object",
2085
- required: [
2086
- "documentType",
2087
- "documentNumber",
2088
- "consent"
2089
- ],
2090
- properties: {
2091
- documentType: {
2092
- anyOf: [
2093
- {
2094
- const: "CC",
2095
- type: "string"
2096
- },
2097
- {
2098
- const: "CE",
2099
- type: "string"
2100
- },
2101
- {
2102
- const: "PA",
2103
- type: "string"
2104
- },
2105
- {
2106
- const: "DP",
2107
- type: "string"
2108
- }
2109
- ]
2110
- },
2111
- documentNumber: {
2112
- pattern: "^[A-Z0-9]{1,20}$",
2113
- type: "string"
2114
- },
2115
- consent: {
2116
- const: true,
2117
- type: "boolean"
2118
- }
2119
- }
2120
- },
2121
- title: "Prepare a personal Colombian Police declaration",
2122
- description: "Send the holder’s explicitly accepted document and receive the matching personal-use declaration.",
2123
- effect: "read",
2124
- confirmation: null,
2125
- hidden: false
2126
- },
2127
2081
  "account registry-installations update": {
2128
2082
  operation: "account.registryInstallations.update",
2129
2083
  sdkPath: [
@@ -30891,6 +30845,7 @@ var schemaComponents = {
30891
30845
  "name",
30892
30846
  "scopes",
30893
30847
  "createdAt",
30848
+ "expiresAt",
30894
30849
  "createdBy",
30895
30850
  "restrictions"
30896
30851
  ],
@@ -30924,6 +30879,18 @@ var schemaComponents = {
30924
30879
  }
30925
30880
  ]
30926
30881
  },
30882
+ expiresAt: {
30883
+ description: "The UTC instant at which the key stops working. Null for a legacy key without a deadline.",
30884
+ anyOf: [
30885
+ {
30886
+ format: "date-time",
30887
+ type: "string"
30888
+ },
30889
+ {
30890
+ type: "null"
30891
+ }
30892
+ ]
30893
+ },
30927
30894
  createdBy: {
30928
30895
  anyOf: [
30929
30896
  {
@@ -31747,22 +31714,28 @@ var schemaComponents = {
31747
31714
  }
31748
31715
  }
31749
31716
  },
31750
- AccountColombiaResourceEnvelope: {
31751
- additionalProperties: false,
31752
- type: "object",
31753
- required: [
31754
- "result"
31755
- ],
31756
- properties: {
31757
- result: {
31717
+ AccountColombiaLookupPresentation: {
31718
+ anyOf: [
31719
+ {
31720
+ $ref: "#/components/schemas/AccountColombiaResourceEnvelope",
31721
+ description: "The result from the installed Colombian registry or the official Police guide."
31722
+ },
31723
+ {
31724
+ additionalProperties: false,
31758
31725
  type: "object",
31759
- patternProperties: {
31760
- "^(.*)$": {}
31726
+ required: [
31727
+ "text"
31728
+ ],
31729
+ properties: {
31730
+ text: {
31731
+ minLength: 1,
31732
+ type: "string"
31733
+ }
31761
31734
  }
31762
31735
  }
31763
- }
31736
+ ]
31764
31737
  },
31765
- AccountColombiaResourceEnvelopeResponse: {
31738
+ AccountColombiaLookupPresentationResponse: {
31766
31739
  type: "object",
31767
31740
  description: "A successful answer.",
31768
31741
  additionalProperties: false,
@@ -31780,8 +31753,7 @@ var schemaComponents = {
31780
31753
  ]
31781
31754
  },
31782
31755
  data: {
31783
- $ref: "#/components/schemas/AccountColombiaResourceEnvelope",
31784
- description: "The result from the selected Colombian source or the holder’s personal consent receipt."
31756
+ $ref: "#/components/schemas/AccountColombiaLookupPresentation"
31785
31757
  },
31786
31758
  error: {
31787
31759
  const: null
@@ -31791,6 +31763,21 @@ var schemaComponents = {
31791
31763
  }
31792
31764
  }
31793
31765
  },
31766
+ AccountColombiaResourceEnvelope: {
31767
+ additionalProperties: false,
31768
+ type: "object",
31769
+ required: [
31770
+ "result"
31771
+ ],
31772
+ properties: {
31773
+ result: {
31774
+ type: "object",
31775
+ patternProperties: {
31776
+ "^(.*)$": {}
31777
+ }
31778
+ }
31779
+ }
31780
+ },
31794
31781
  AccountConfigureOrganizationBody: {
31795
31782
  additionalProperties: false,
31796
31783
  type: "object",
@@ -32383,11 +32370,24 @@ var schemaComponents = {
32383
32370
  },
32384
32371
  AccountConsultIncludedRecordBody: {
32385
32372
  additionalProperties: false,
32373
+ anyOf: [
32374
+ {
32375
+ properties: {
32376
+ integration: {
32377
+ const: "policia-colombia"
32378
+ }
32379
+ }
32380
+ },
32381
+ {
32382
+ required: [
32383
+ "documentType",
32384
+ "documentNumber"
32385
+ ]
32386
+ }
32387
+ ],
32386
32388
  type: "object",
32387
32389
  required: [
32388
- "integration",
32389
- "documentType",
32390
- "documentNumber"
32390
+ "integration"
32391
32391
  ],
32392
32392
  properties: {
32393
32393
  integration: {
@@ -32399,16 +32399,27 @@ var schemaComponents = {
32399
32399
  {
32400
32400
  const: "sisben",
32401
32401
  type: "string"
32402
+ },
32403
+ {
32404
+ const: "policia-colombia",
32405
+ type: "string"
32402
32406
  }
32403
32407
  ]
32404
32408
  },
32405
32409
  documentType: {
32406
32410
  pattern: "^[A-Z]{2}$",
32411
+ description: "Required for ADRES and Sisbén.",
32407
32412
  type: "string"
32408
32413
  },
32409
32414
  documentNumber: {
32410
32415
  pattern: "^(?:[0-9]{1,14}|[A-Z0-9]{8,10})$",
32416
+ description: "Required for ADRES and Sisbén. Preserve leading zeros.",
32411
32417
  type: "string"
32418
+ },
32419
+ agentMode: {
32420
+ default: false,
32421
+ description: "Return a concise Spanish tool answer. Authorization is the same in both formats.",
32422
+ type: "boolean"
32412
32423
  }
32413
32424
  }
32414
32425
  },
@@ -32438,6 +32449,11 @@ var schemaComponents = {
32438
32449
  type: "string"
32439
32450
  }
32440
32451
  },
32452
+ expiresAt: {
32453
+ format: "date-time",
32454
+ description: "Exclusive expiration instant, with timezone. Defaults to seven days from creation.",
32455
+ type: "string"
32456
+ },
32441
32457
  restrictions: {
32442
32458
  additionalProperties: false,
32443
32459
  maxProperties: 20,
@@ -35647,45 +35663,6 @@ var schemaComponents = {
35647
35663
  }
35648
35664
  }
35649
35665
  },
35650
- AccountPrepareColombiaConsentBody: {
35651
- additionalProperties: false,
35652
- type: "object",
35653
- required: [
35654
- "documentType",
35655
- "documentNumber",
35656
- "consent"
35657
- ],
35658
- properties: {
35659
- documentType: {
35660
- anyOf: [
35661
- {
35662
- const: "CC",
35663
- type: "string"
35664
- },
35665
- {
35666
- const: "CE",
35667
- type: "string"
35668
- },
35669
- {
35670
- const: "PA",
35671
- type: "string"
35672
- },
35673
- {
35674
- const: "DP",
35675
- type: "string"
35676
- }
35677
- ]
35678
- },
35679
- documentNumber: {
35680
- pattern: "^[A-Z0-9]{1,20}$",
35681
- type: "string"
35682
- },
35683
- consent: {
35684
- const: true,
35685
- type: "boolean"
35686
- }
35687
- }
35688
- },
35689
35666
  AccountProductRole: {
35690
35667
  additionalProperties: false,
35691
35668
  type: "object",
@@ -100427,6 +100404,11 @@ var schemaComponents = {
100427
100404
  type: "string"
100428
100405
  }
100429
100406
  },
100407
+ expiresAt: {
100408
+ format: "date-time",
100409
+ description: "Exclusive expiration instant, with timezone. Defaults to seven days from creation.",
100410
+ type: "string"
100411
+ },
100430
100412
  restrictions: {
100431
100413
  additionalProperties: false,
100432
100414
  maxProperties: 20,
@@ -100578,11 +100560,24 @@ var schemaComponents = {
100578
100560
  },
100579
100561
  AccountColombianRecordsLookupInput: {
100580
100562
  additionalProperties: false,
100563
+ anyOf: [
100564
+ {
100565
+ properties: {
100566
+ integration: {
100567
+ const: "policia-colombia"
100568
+ }
100569
+ }
100570
+ },
100571
+ {
100572
+ required: [
100573
+ "documentType",
100574
+ "documentNumber"
100575
+ ]
100576
+ }
100577
+ ],
100581
100578
  type: "object",
100582
100579
  required: [
100583
- "integration",
100584
- "documentType",
100585
- "documentNumber"
100580
+ "integration"
100586
100581
  ],
100587
100582
  properties: {
100588
100583
  integration: {
@@ -100594,16 +100589,27 @@ var schemaComponents = {
100594
100589
  {
100595
100590
  const: "sisben",
100596
100591
  type: "string"
100592
+ },
100593
+ {
100594
+ const: "policia-colombia",
100595
+ type: "string"
100597
100596
  }
100598
100597
  ]
100599
100598
  },
100600
100599
  documentType: {
100601
100600
  pattern: "^[A-Z]{2}$",
100601
+ description: "Required for ADRES and Sisbén.",
100602
100602
  type: "string"
100603
100603
  },
100604
100604
  documentNumber: {
100605
100605
  pattern: "^(?:[0-9]{1,14}|[A-Z0-9]{8,10})$",
100606
+ description: "Required for ADRES and Sisbén. Preserve leading zeros.",
100606
100607
  type: "string"
100608
+ },
100609
+ agentMode: {
100610
+ default: false,
100611
+ description: "Return a concise Spanish tool answer. Authorization is the same in both formats.",
100612
+ type: "boolean"
100607
100613
  }
100608
100614
  }
100609
100615
  },
@@ -101098,45 +101104,6 @@ var schemaComponents = {
101098
101104
  }
101099
101105
  }
101100
101106
  },
101101
- AccountPersonalConsentsPrepareInput: {
101102
- additionalProperties: false,
101103
- type: "object",
101104
- required: [
101105
- "documentType",
101106
- "documentNumber",
101107
- "consent"
101108
- ],
101109
- properties: {
101110
- documentType: {
101111
- anyOf: [
101112
- {
101113
- const: "CC",
101114
- type: "string"
101115
- },
101116
- {
101117
- const: "CE",
101118
- type: "string"
101119
- },
101120
- {
101121
- const: "PA",
101122
- type: "string"
101123
- },
101124
- {
101125
- const: "DP",
101126
- type: "string"
101127
- }
101128
- ]
101129
- },
101130
- documentNumber: {
101131
- pattern: "^[A-Z0-9]{1,20}$",
101132
- type: "string"
101133
- },
101134
- consent: {
101135
- const: true,
101136
- type: "boolean"
101137
- }
101138
- }
101139
- },
101140
101107
  AccountRegistryInstallationsUpdateInput: {
101141
101108
  additionalProperties: false,
101142
101109
  type: "object",
@@ -116724,9 +116691,9 @@ var schemaComponents = {
116724
116691
  // src/generated/generation.json
116725
116692
  var generation_default = {
116726
116693
  formatVersion: 6,
116727
- release: "1.20261101.15904",
116728
- openapiSha256: "cb13d1e6332e80dda79dcfc2360a59e2f622f24dec257d97eceb9e40691716c7",
116729
- openapiContentSha256: "9ec8c82f592d4e3c280d94c39ae5a578e8982bdd3fca4567a27e5848b70076e9",
116694
+ release: "1.20261101.23052",
116695
+ openapiSha256: "a4c07933d9224cabf383ac1a4631f882bd2d7bc8217a912b1aa66140ec57a6aa",
116696
+ openapiContentSha256: "f88814afe6ce88b18383d3337d0d9a741fdc69e7e20d9fa69392e19348ccae2e",
116730
116697
  forge: {
116731
116698
  repository: "https://github.com/cloudflare/forge",
116732
116699
  commit: "7f86447210b7bea3779bfdab3cd5655eade0eadb",
@@ -116739,7 +116706,7 @@ var generation_default = {
116739
116706
  outputs: [
116740
116707
  {
116741
116708
  path: "src/generated/commands.ts",
116742
- sha256: "b7b2b89ff9e722f0c12e1bec3499b775b809461c6d865910414c987e4b1b406c"
116709
+ sha256: "2a08bc28e0beaad87d6836cdead4a3ea8ec2b9eddc27a115d79a3aca625f6dd2"
116743
116710
  }
116744
116711
  ]
116745
116712
  };
@@ -117094,7 +117061,7 @@ ${name}`);
117094
117061
  }
117095
117062
 
117096
117063
  // src/index.ts
117097
- var VERSION = "3.18.0";
117064
+ var VERSION = "3.20.0";
117098
117065
  var RELEASE = generation_default.release;
117099
117066
  var SDK_PATHS = new Map(Object.values(commands).map((command) => [command.operation, command.sdkPath]));
117100
117067
  var SERVICES = [...new Set(Object.keys(commands).map((name) => name.split(" ")[0]))].toSorted();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arbol-ai/cli",
3
- "version": "3.18.0",
3
+ "version": "3.20.0",
4
4
  "description": "The Arbol CLI: the Arbol API from your terminal, with commands generated by Cloudflare Forge from the public OpenAPI.",
5
5
  "keywords": [
6
6
  "arbol",
@@ -45,7 +45,7 @@
45
45
  "verify:with-tests": "bun run typecheck && bun run test && bun run build"
46
46
  },
47
47
  "dependencies": {
48
- "@arbol-ai/sdk": "5.18.0",
48
+ "@arbol-ai/sdk": "5.20.0",
49
49
  "ajv": "8.20.0",
50
50
  "ajv-formats": "3.0.1",
51
51
  "oauth4webapi": "3.8.8"
@@ -60,8 +60,8 @@
60
60
  "packageManager": "bun@1.4.3",
61
61
  "arbol": {
62
62
  "openapi": {
63
- "release": "1.20261101.15904",
64
- "sha256": "9ec8c82f592d4e3c280d94c39ae5a578e8982bdd3fca4567a27e5848b70076e9"
63
+ "release": "1.20261101.23052",
64
+ "sha256": "f88814afe6ce88b18383d3337d0d9a741fdc69e7e20d9fa69392e19348ccae2e"
65
65
  }
66
66
  }
67
67
  }