@arbol-ai/cli 3.18.0 → 3.19.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 +183 -24
  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
@@ -30891,6 +30930,7 @@ var schemaComponents = {
30891
30930
  "name",
30892
30931
  "scopes",
30893
30932
  "createdAt",
30933
+ "expiresAt",
30894
30934
  "createdBy",
30895
30935
  "restrictions"
30896
30936
  ],
@@ -30924,6 +30964,18 @@ var schemaComponents = {
30924
30964
  }
30925
30965
  ]
30926
30966
  },
30967
+ expiresAt: {
30968
+ description: "The UTC instant at which the key stops working. Null for a legacy key without a deadline.",
30969
+ anyOf: [
30970
+ {
30971
+ format: "date-time",
30972
+ type: "string"
30973
+ },
30974
+ {
30975
+ type: "null"
30976
+ }
30977
+ ]
30978
+ },
30927
30979
  createdBy: {
30928
30980
  anyOf: [
30929
30981
  {
@@ -31747,6 +31799,55 @@ var schemaComponents = {
31747
31799
  }
31748
31800
  }
31749
31801
  },
31802
+ AccountColombiaLookupPresentation: {
31803
+ anyOf: [
31804
+ {
31805
+ $ref: "#/components/schemas/AccountColombiaResourceEnvelope",
31806
+ description: "The result from the selected Colombian source or the holder’s personal consent receipt."
31807
+ },
31808
+ {
31809
+ additionalProperties: false,
31810
+ type: "object",
31811
+ required: [
31812
+ "text"
31813
+ ],
31814
+ properties: {
31815
+ text: {
31816
+ minLength: 1,
31817
+ type: "string"
31818
+ }
31819
+ }
31820
+ }
31821
+ ]
31822
+ },
31823
+ AccountColombiaLookupPresentationResponse: {
31824
+ type: "object",
31825
+ description: "A successful answer.",
31826
+ additionalProperties: false,
31827
+ required: [
31828
+ "success",
31829
+ "data",
31830
+ "error",
31831
+ "metadata"
31832
+ ],
31833
+ properties: {
31834
+ success: {
31835
+ type: "boolean",
31836
+ enum: [
31837
+ true
31838
+ ]
31839
+ },
31840
+ data: {
31841
+ $ref: "#/components/schemas/AccountColombiaLookupPresentation"
31842
+ },
31843
+ error: {
31844
+ const: null
31845
+ },
31846
+ metadata: {
31847
+ $ref: "#/components/schemas/ResponseMetadata"
31848
+ }
31849
+ }
31850
+ },
31750
31851
  AccountColombiaResourceEnvelope: {
31751
31852
  additionalProperties: false,
31752
31853
  type: "object",
@@ -32383,11 +32484,24 @@ var schemaComponents = {
32383
32484
  },
32384
32485
  AccountConsultIncludedRecordBody: {
32385
32486
  additionalProperties: false,
32487
+ anyOf: [
32488
+ {
32489
+ properties: {
32490
+ integration: {
32491
+ const: "policia-colombia"
32492
+ }
32493
+ }
32494
+ },
32495
+ {
32496
+ required: [
32497
+ "documentType",
32498
+ "documentNumber"
32499
+ ]
32500
+ }
32501
+ ],
32386
32502
  type: "object",
32387
32503
  required: [
32388
- "integration",
32389
- "documentType",
32390
- "documentNumber"
32504
+ "integration"
32391
32505
  ],
32392
32506
  properties: {
32393
32507
  integration: {
@@ -32399,16 +32513,27 @@ var schemaComponents = {
32399
32513
  {
32400
32514
  const: "sisben",
32401
32515
  type: "string"
32516
+ },
32517
+ {
32518
+ const: "policia-colombia",
32519
+ type: "string"
32402
32520
  }
32403
32521
  ]
32404
32522
  },
32405
32523
  documentType: {
32406
32524
  pattern: "^[A-Z]{2}$",
32525
+ description: "Required for ADRES and Sisbén.",
32407
32526
  type: "string"
32408
32527
  },
32409
32528
  documentNumber: {
32410
32529
  pattern: "^(?:[0-9]{1,14}|[A-Z0-9]{8,10})$",
32530
+ description: "Required for ADRES and Sisbén. Preserve leading zeros.",
32411
32531
  type: "string"
32532
+ },
32533
+ agentMode: {
32534
+ default: false,
32535
+ description: "Return a concise Spanish tool answer. Authorization is the same in both formats.",
32536
+ type: "boolean"
32412
32537
  }
32413
32538
  }
32414
32539
  },
@@ -32438,6 +32563,11 @@ var schemaComponents = {
32438
32563
  type: "string"
32439
32564
  }
32440
32565
  },
32566
+ expiresAt: {
32567
+ format: "date-time",
32568
+ description: "Exclusive expiration instant, with timezone. Defaults to seven days from creation.",
32569
+ type: "string"
32570
+ },
32441
32571
  restrictions: {
32442
32572
  additionalProperties: false,
32443
32573
  maxProperties: 20,
@@ -100427,6 +100557,11 @@ var schemaComponents = {
100427
100557
  type: "string"
100428
100558
  }
100429
100559
  },
100560
+ expiresAt: {
100561
+ format: "date-time",
100562
+ description: "Exclusive expiration instant, with timezone. Defaults to seven days from creation.",
100563
+ type: "string"
100564
+ },
100430
100565
  restrictions: {
100431
100566
  additionalProperties: false,
100432
100567
  maxProperties: 20,
@@ -100578,11 +100713,24 @@ var schemaComponents = {
100578
100713
  },
100579
100714
  AccountColombianRecordsLookupInput: {
100580
100715
  additionalProperties: false,
100716
+ anyOf: [
100717
+ {
100718
+ properties: {
100719
+ integration: {
100720
+ const: "policia-colombia"
100721
+ }
100722
+ }
100723
+ },
100724
+ {
100725
+ required: [
100726
+ "documentType",
100727
+ "documentNumber"
100728
+ ]
100729
+ }
100730
+ ],
100581
100731
  type: "object",
100582
100732
  required: [
100583
- "integration",
100584
- "documentType",
100585
- "documentNumber"
100733
+ "integration"
100586
100734
  ],
100587
100735
  properties: {
100588
100736
  integration: {
@@ -100594,16 +100742,27 @@ var schemaComponents = {
100594
100742
  {
100595
100743
  const: "sisben",
100596
100744
  type: "string"
100745
+ },
100746
+ {
100747
+ const: "policia-colombia",
100748
+ type: "string"
100597
100749
  }
100598
100750
  ]
100599
100751
  },
100600
100752
  documentType: {
100601
100753
  pattern: "^[A-Z]{2}$",
100754
+ description: "Required for ADRES and Sisbén.",
100602
100755
  type: "string"
100603
100756
  },
100604
100757
  documentNumber: {
100605
100758
  pattern: "^(?:[0-9]{1,14}|[A-Z0-9]{8,10})$",
100759
+ description: "Required for ADRES and Sisbén. Preserve leading zeros.",
100606
100760
  type: "string"
100761
+ },
100762
+ agentMode: {
100763
+ default: false,
100764
+ description: "Return a concise Spanish tool answer. Authorization is the same in both formats.",
100765
+ type: "boolean"
100607
100766
  }
100608
100767
  }
100609
100768
  },
@@ -116724,9 +116883,9 @@ var schemaComponents = {
116724
116883
  // src/generated/generation.json
116725
116884
  var generation_default = {
116726
116885
  formatVersion: 6,
116727
- release: "1.20261101.15904",
116728
- openapiSha256: "cb13d1e6332e80dda79dcfc2360a59e2f622f24dec257d97eceb9e40691716c7",
116729
- openapiContentSha256: "9ec8c82f592d4e3c280d94c39ae5a578e8982bdd3fca4567a27e5848b70076e9",
116886
+ release: "1.20261101.22054",
116887
+ openapiSha256: "3a6f6fb1254fbc8e64833f2b7a47162a01226d32854ffd8dd22969c8c0d9dd1e",
116888
+ openapiContentSha256: "5ef2fc5f6234b5d5f5721536a2991ffa1d6ece9bb50ea485c18209b4ec18291e",
116730
116889
  forge: {
116731
116890
  repository: "https://github.com/cloudflare/forge",
116732
116891
  commit: "7f86447210b7bea3779bfdab3cd5655eade0eadb",
@@ -116739,7 +116898,7 @@ var generation_default = {
116739
116898
  outputs: [
116740
116899
  {
116741
116900
  path: "src/generated/commands.ts",
116742
- sha256: "b7b2b89ff9e722f0c12e1bec3499b775b809461c6d865910414c987e4b1b406c"
116901
+ sha256: "0c0655822c349f466fd5cbcd4cfb3e768eb519a7dc353db863c206a71ed4621e"
116743
116902
  }
116744
116903
  ]
116745
116904
  };
@@ -117094,7 +117253,7 @@ ${name}`);
117094
117253
  }
117095
117254
 
117096
117255
  // src/index.ts
117097
- var VERSION = "3.18.0";
117256
+ var VERSION = "3.19.0";
117098
117257
  var RELEASE = generation_default.release;
117099
117258
  var SDK_PATHS = new Map(Object.values(commands).map((command) => [command.operation, command.sdkPath]));
117100
117259
  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.19.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.19.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.22054",
64
+ "sha256": "5ef2fc5f6234b5d5f5721536a2991ffa1d6ece9bb50ea485c18209b4ec18291e"
65
65
  }
66
66
  }
67
67
  }