@arbol-ai/sdk 5.22.0 → 5.24.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 (38) hide show
  1. package/dist/account/colombianRecords/client.d.ts +10 -6
  2. package/dist/account/colombianRecords/client.js +2 -1
  3. package/dist/account/colombianRecords/index.d.ts +1 -1
  4. package/dist/account/colombianRecords/models.d.ts +47 -3
  5. package/dist/account/colombianRecords/models.js +8 -1
  6. package/dist/adres/affiliations/client.d.ts +21 -0
  7. package/dist/adres/affiliations/client.js +19 -0
  8. package/dist/adres/affiliations/index.d.ts +5 -0
  9. package/dist/adres/affiliations/index.js +4 -0
  10. package/dist/adres/affiliations/models.d.ts +81 -0
  11. package/dist/adres/affiliations/models.js +7 -0
  12. package/dist/adres/client.d.ts +13 -0
  13. package/dist/adres/client.js +15 -0
  14. package/dist/adres/index.d.ts +4 -0
  15. package/dist/adres/index.js +4 -0
  16. package/dist/client.d.ts +6 -0
  17. package/dist/client.js +15 -0
  18. package/dist/policiaColombia/client.d.ts +13 -0
  19. package/dist/policiaColombia/client.js +15 -0
  20. package/dist/policiaColombia/index.d.ts +4 -0
  21. package/dist/policiaColombia/index.js +4 -0
  22. package/dist/policiaColombia/judicialRecords/client.d.ts +22 -0
  23. package/dist/policiaColombia/judicialRecords/client.js +19 -0
  24. package/dist/policiaColombia/judicialRecords/index.d.ts +5 -0
  25. package/dist/policiaColombia/judicialRecords/index.js +4 -0
  26. package/dist/policiaColombia/judicialRecords/models.d.ts +42 -0
  27. package/dist/policiaColombia/judicialRecords/models.js +7 -0
  28. package/dist/sisben/classifications/client.d.ts +21 -0
  29. package/dist/sisben/classifications/client.js +19 -0
  30. package/dist/sisben/classifications/index.d.ts +5 -0
  31. package/dist/sisben/classifications/index.js +4 -0
  32. package/dist/sisben/classifications/models.d.ts +68 -0
  33. package/dist/sisben/classifications/models.js +7 -0
  34. package/dist/sisben/client.d.ts +13 -0
  35. package/dist/sisben/client.js +15 -0
  36. package/dist/sisben/index.d.ts +4 -0
  37. package/dist/sisben/index.js +4 -0
  38. package/package.json +3 -3
@@ -1,5 +1,5 @@
1
1
  import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
- import type { AccountColombiaLookupPresentationResponse, AccountConsultIncludedRecordBody } from "./models.js";
2
+ import { type AccountColombiaLookupPresentationResponse, type AccountConsultIncludedRecordBody } from "./models.js";
3
3
  export interface ClientOptions extends BaseClientOptions {
4
4
  /**
5
5
  * The URL the paths of the API are relative to.
@@ -10,11 +10,15 @@ export interface Client {
10
10
  /**
11
11
  * Consult an included Colombian source
12
12
  *
13
- * Read an EPS summary or Sisbén classification for an authorized document.
14
- * Police reports that a judicial check was not performed. An optional
15
- * document labels that message and is never submitted to Police. A machine
16
- * key needs connection read access and an explicit restriction allowing this
17
- * operation. Set agentMode to true for concise Spanish text.
13
+ * Compatibility operation. For new integrations use the dedicated ADRES,
14
+ * Sisbén and Policía Colombia lookups. Read an EPS summary or Sisbén
15
+ * classification for an authorized document. Police reports that a judicial
16
+ * check was not performed. An optional document labels that message and is
17
+ * never submitted to Police. A machine key needs connection read access and
18
+ * an explicit restriction allowing this operation. Set agentMode to true for
19
+ * concise Spanish text.
20
+ *
21
+ * @deprecated
18
22
  */
19
23
  lookup(request: LookupRequest, options?: RequestOptions): Promise<LookupResponse>;
20
24
  }
@@ -1,6 +1,7 @@
1
1
  // Code generated by forge. DO NOT EDIT.
2
2
  /* eslint-disable */
3
3
  import { Transport, } from "../../_/index.js";
4
+ import { AccountColombiaLookupPresentationResponseCodec, } from "./models.js";
4
5
  export function createClient(options) {
5
6
  return bind(new Transport(options));
6
7
  }
@@ -13,6 +14,6 @@ const LookupOperation = {
13
14
  method: "POST",
14
15
  route: "/v1/account/colombian-records/lookup",
15
16
  body: "flat",
16
- response: null,
17
+ response: AccountColombiaLookupPresentationResponseCodec,
17
18
  errors: { "400": true, "401": true, "403": true, "413": true, "415": true, "429": true, "500": true, "502": true, "503": true, "504": true },
18
19
  };
@@ -2,4 +2,4 @@ export { ApiError } from "../../_/index.js";
2
2
  export type { RequestOptions } from "../../_/index.js";
3
3
  export { createClient } from "./client.js";
4
4
  export type { Client, ClientOptions, LookupRequest, LookupResponse, } from "./client.js";
5
- export type { AccountColombiaLookupPresentation, AccountColombiaLookupPresentationResponse, AccountColombiaResourceEnvelope, AccountConsultIncludedRecordBody, } from "./models.js";
5
+ export type { AccountColombiaLookupPresentation, AccountColombiaLookupPresentationResponse, AccountColombiaResourceEnvelope, AccountConsultIncludedRecordBody, AccountSisbenClassification, } from "./models.js";
@@ -15,9 +15,7 @@ export interface AccountColombiaLookupPresentationResponse {
15
15
  success: true;
16
16
  }
17
17
  export interface AccountColombiaResourceEnvelope {
18
- result: string | {
19
- [key: string]: unknown;
20
- };
18
+ result: string | AccountSisbenClassification;
21
19
  }
22
20
  export type AccountConsultIncludedRecordBody = {
23
21
  agentMode?: boolean;
@@ -27,3 +25,49 @@ export type AccountConsultIncludedRecordBody = {
27
25
  } & {
28
26
  integration?: "policia-colombia";
29
27
  };
28
+ export type AccountSisbenClassification = {
29
+ group: "A";
30
+ observedAt: Temporal.Instant;
31
+ registered: true;
32
+ source: "DNP-SISBEN-IV";
33
+ subgroup: string | null;
34
+ verification: "source_report" | "last_known";
35
+ } | {
36
+ group: "B";
37
+ observedAt: Temporal.Instant;
38
+ registered: true;
39
+ source: "DNP-SISBEN-IV";
40
+ subgroup: string | null;
41
+ verification: "source_report" | "last_known";
42
+ } | {
43
+ group: "C";
44
+ observedAt: Temporal.Instant;
45
+ registered: true;
46
+ source: "DNP-SISBEN-IV";
47
+ subgroup: string | null;
48
+ verification: "source_report" | "last_known";
49
+ } | {
50
+ group: "D";
51
+ observedAt: Temporal.Instant;
52
+ registered: true;
53
+ source: "DNP-SISBEN-IV";
54
+ subgroup: string | null;
55
+ verification: "source_report" | "last_known";
56
+ } | {
57
+ group: null;
58
+ observedAt: Temporal.Instant;
59
+ registered: false;
60
+ source: "DNP-SISBEN-IV";
61
+ subgroup: null;
62
+ verification: "source_report" | "last_known";
63
+ } | {
64
+ group: null;
65
+ observedAt: null;
66
+ registered: null;
67
+ source: "DNP-SISBEN-IV";
68
+ subgroup: null;
69
+ verification: "unavailable" | "unsupported_document";
70
+ };
71
+ export declare const AccountColombiaLookupPresentationResponseCodec: import("../../_/codec.js").Codec;
72
+ export declare const AccountColombiaResourceEnvelopeCodec: import("../../_/codec.js").Codec;
73
+ export declare const AccountSisbenClassificationCodec: import("../../_/codec.js").Codec;
@@ -1,3 +1,10 @@
1
1
  // Code generated by forge. DO NOT EDIT.
2
2
  /* eslint-disable */
3
- export {};
3
+ import { instant, object, union } from "../../_/index.js";
4
+ export const AccountColombiaLookupPresentationResponseCodec = object([
5
+ ["data", null, () => AccountColombiaResourceEnvelopeCodec],
6
+ ]);
7
+ export const AccountColombiaResourceEnvelopeCodec = object([
8
+ ["result", null, () => AccountSisbenClassificationCodec],
9
+ ]);
10
+ export const AccountSisbenClassificationCodec = union([object([["observedAt", null, instant]]), object([["observedAt", null, instant]]), object([["observedAt", null, instant]]), object([["observedAt", null, instant]]), object([["observedAt", null, instant]])]);
@@ -0,0 +1,21 @@
1
+ import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
+ import { type AdresAffiliationPresentationResponse, type AdresLookupAffiliationBody } from "./models.js";
3
+ export interface ClientOptions extends BaseClientOptions {
4
+ /**
5
+ * The URL the paths of the API are relative to.
6
+ */
7
+ baseUrl: string;
8
+ }
9
+ export interface Client {
10
+ /**
11
+ * Look up EPS affiliation
12
+ *
13
+ * Read the person and all reported EPS affiliations for a document. A
14
+ * last-known observation is dated and does not establish current coverage.
15
+ */
16
+ lookup(request: LookupRequest, options?: RequestOptions): Promise<LookupResponse>;
17
+ }
18
+ export declare function createClient(options: ClientOptions): Client;
19
+ export declare function bind(transport: Transport): Client;
20
+ export type LookupRequest = AdresLookupAffiliationBody;
21
+ export type LookupResponse = AdresAffiliationPresentationResponse;
@@ -0,0 +1,19 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ import { Transport, } from "../../_/index.js";
4
+ import { AdresAffiliationPresentationResponseCodec, } from "./models.js";
5
+ export function createClient(options) {
6
+ return bind(new Transport(options));
7
+ }
8
+ export function bind(transport) {
9
+ return {
10
+ lookup: (request, options) => transport.send(LookupOperation, request, options),
11
+ };
12
+ }
13
+ const LookupOperation = {
14
+ method: "POST",
15
+ route: "/v1/adres/affiliations/lookup",
16
+ body: "flat",
17
+ response: AdresAffiliationPresentationResponseCodec,
18
+ errors: { "400": true, "401": true, "403": true, "413": true, "415": true, "429": true, "500": true, "502": true, "503": true, "504": true },
19
+ };
@@ -0,0 +1,5 @@
1
+ export { ApiError } from "../../_/index.js";
2
+ export type { RequestOptions } from "../../_/index.js";
3
+ export { createClient } from "./client.js";
4
+ export type { Client, ClientOptions, LookupRequest, LookupResponse, } from "./client.js";
5
+ export type { AdresAffiliationPresentation, AdresAffiliationPresentationResponse, AdresLookupAffiliationBody, } from "./models.js";
@@ -0,0 +1,4 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ export { ApiError } from "../../_/index.js";
4
+ export { createClient } from "./client.js";
@@ -0,0 +1,81 @@
1
+ import type { ResponseMetadata } from "../../models.js";
2
+ export type AdresAffiliationPresentation = {
3
+ affiliations: {
4
+ affiliateType: string | null;
5
+ endDateKind: "dated" | "open_ended" | "not_reported";
6
+ eps: string;
7
+ from: Temporal.PlainDate | null;
8
+ isExpired: boolean | null;
9
+ regime: string;
10
+ reportedFields: {
11
+ label: string;
12
+ value: string;
13
+ }[];
14
+ status: string;
15
+ to: Temporal.PlainDate | null;
16
+ }[];
17
+ consultedAt: Temporal.Instant;
18
+ countryCode: "CO";
19
+ outcome: "found";
20
+ person: {
21
+ birthDate: Temporal.PlainDate | null;
22
+ department: string | null;
23
+ documentNumber: string;
24
+ documentType: "CC" | "CE" | "TI" | "RC" | "CN" | "NU" | "MS";
25
+ familyName: string | null;
26
+ fullName: string | null;
27
+ givenName: string | null;
28
+ municipality: string | null;
29
+ reportedFields: {
30
+ label: string;
31
+ value: string;
32
+ }[];
33
+ };
34
+ source: string;
35
+ verification: "source_report" | "last_known";
36
+ } | {
37
+ affiliations: {
38
+ affiliateType: string | null;
39
+ endDateKind: "dated" | "open_ended" | "not_reported";
40
+ eps: string;
41
+ from: Temporal.PlainDate | null;
42
+ isExpired: boolean | null;
43
+ regime: string;
44
+ reportedFields: {
45
+ label: string;
46
+ value: string;
47
+ }[];
48
+ status: string;
49
+ to: Temporal.PlainDate | null;
50
+ }[];
51
+ consultedAt: Temporal.Instant;
52
+ countryCode: "CO";
53
+ outcome: "not_found";
54
+ person: null;
55
+ source: string;
56
+ verification: "source_report" | "last_known";
57
+ } | {
58
+ text: string;
59
+ };
60
+ /**
61
+ * A successful answer.
62
+ */
63
+ export interface AdresAffiliationPresentationResponse {
64
+ data: AdresAffiliationPresentation;
65
+ error: null;
66
+ /**
67
+ * What every answer carries besides its data or error.
68
+ */
69
+ metadata: ResponseMetadata;
70
+ success: true;
71
+ }
72
+ export interface AdresLookupAffiliationBody {
73
+ /**
74
+ * Return a concise Spanish presentation of the same observation.
75
+ */
76
+ agentMode?: boolean;
77
+ documentNumber: string;
78
+ documentType: "CC" | "CE" | "TI" | "RC" | "CN" | "NU" | "MS";
79
+ }
80
+ export declare const AdresAffiliationPresentationCodec: import("../../_/codec.js").Codec;
81
+ export declare const AdresAffiliationPresentationResponseCodec: import("../../_/codec.js").Codec;
@@ -0,0 +1,7 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ import { array, date, instant, object, union } from "../../_/index.js";
4
+ export const AdresAffiliationPresentationCodec = union([object([["affiliations", null, array(object([["from", null, date], ["to", null, date]]))], ["consultedAt", null, instant], ["person", null, object([["birthDate", null, date]])]]), object([["affiliations", null, array(object([["from", null, date], ["to", null, date]]))], ["consultedAt", null, instant]])]);
5
+ export const AdresAffiliationPresentationResponseCodec = object([
6
+ ["data", null, () => AdresAffiliationPresentationCodec],
7
+ ]);
@@ -0,0 +1,13 @@
1
+ import { type BaseClientOptions, Transport } from "../_/index.js";
2
+ import { type Client as AffiliationsClient } from "./affiliations/client.js";
3
+ export interface ClientOptions extends BaseClientOptions {
4
+ /**
5
+ * The URL the paths of the API are relative to.
6
+ */
7
+ baseUrl: string;
8
+ }
9
+ export interface Client {
10
+ readonly affiliations: AffiliationsClient;
11
+ }
12
+ export declare function createClient(options: ClientOptions): Client;
13
+ export declare function bind(transport: Transport): Client;
@@ -0,0 +1,15 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ import { Transport } from "../_/index.js";
4
+ import { bind as bindAffiliations, } from "./affiliations/client.js";
5
+ export function createClient(options) {
6
+ return bind(new Transport(options));
7
+ }
8
+ export function bind(transport) {
9
+ let affiliationsClient;
10
+ return {
11
+ get affiliations() {
12
+ return (affiliationsClient ??= bindAffiliations(transport));
13
+ },
14
+ };
15
+ }
@@ -0,0 +1,4 @@
1
+ export { ApiError } from "../_/index.js";
2
+ export type { RequestOptions } from "../_/index.js";
3
+ export { createClient } from "./client.js";
4
+ export type { Client, ClientOptions, } from "./client.js";
@@ -0,0 +1,4 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ export { ApiError } from "../_/index.js";
4
+ export { createClient } from "./client.js";
package/dist/client.d.ts CHANGED
@@ -1,12 +1,15 @@
1
1
  import { type BaseClientOptions, Transport } from "./_/index.js";
2
2
  import { type Client as AccountClient } from "./account/client.js";
3
+ import { type Client as AdresClient } from "./adres/client.js";
3
4
  import { type Client as AgendaClient } from "./agenda/client.js";
4
5
  import { type Client as AxxaClient } from "./axxa/client.js";
5
6
  import { type Client as GmedicClient } from "./gmedic/client.js";
6
7
  import { type Client as NuevaEpsClient } from "./nuevaEps/client.js";
7
8
  import { type Client as OrsovisionClient } from "./orsovision/client.js";
9
+ import { type Client as PoliciaColombiaClient } from "./policiaColombia/client.js";
8
10
  import { type Client as RaizClient } from "./raiz/client.js";
9
11
  import { type Client as SaludTotalClient } from "./saludTotal/client.js";
12
+ import { type Client as SisbenClient } from "./sisben/client.js";
10
13
  import { type Client as SomosClient } from "./somos/client.js";
11
14
  import { type Client as SuraClient } from "./sura/client.js";
12
15
  import { type Client as VisoftClient } from "./visoft/client.js";
@@ -18,13 +21,16 @@ export interface ClientOptions extends BaseClientOptions {
18
21
  }
19
22
  export interface Client {
20
23
  readonly account: AccountClient;
24
+ readonly adres: AdresClient;
21
25
  readonly agenda: AgendaClient;
22
26
  readonly axxa: AxxaClient;
23
27
  readonly gmedic: GmedicClient;
24
28
  readonly nuevaEps: NuevaEpsClient;
25
29
  readonly orsovision: OrsovisionClient;
30
+ readonly policiaColombia: PoliciaColombiaClient;
26
31
  readonly raiz: RaizClient;
27
32
  readonly saludTotal: SaludTotalClient;
33
+ readonly sisben: SisbenClient;
28
34
  readonly somos: SomosClient;
29
35
  readonly sura: SuraClient;
30
36
  readonly visoft: VisoftClient;
package/dist/client.js CHANGED
@@ -2,13 +2,16 @@
2
2
  /* eslint-disable */
3
3
  import { Transport } from "./_/index.js";
4
4
  import { bind as bindAccount, } from "./account/client.js";
5
+ import { bind as bindAdres, } from "./adres/client.js";
5
6
  import { bind as bindAgenda, } from "./agenda/client.js";
6
7
  import { bind as bindAxxa } from "./axxa/client.js";
7
8
  import { bind as bindGmedic, } from "./gmedic/client.js";
8
9
  import { bind as bindNuevaEps, } from "./nuevaEps/client.js";
9
10
  import { bind as bindOrsovision, } from "./orsovision/client.js";
11
+ import { bind as bindPoliciaColombia, } from "./policiaColombia/client.js";
10
12
  import { bind as bindRaiz } from "./raiz/client.js";
11
13
  import { bind as bindSaludTotal, } from "./saludTotal/client.js";
14
+ import { bind as bindSisben, } from "./sisben/client.js";
12
15
  import { bind as bindSomos, } from "./somos/client.js";
13
16
  import { bind as bindSura } from "./sura/client.js";
14
17
  import { bind as bindVisoft, } from "./visoft/client.js";
@@ -17,13 +20,16 @@ export function createClient(options) {
17
20
  }
18
21
  export function bind(transport) {
19
22
  let accountClient;
23
+ let adresClient;
20
24
  let agendaClient;
21
25
  let axxaClient;
22
26
  let gmedicClient;
23
27
  let nuevaEpsClient;
24
28
  let orsovisionClient;
29
+ let policiaColombiaClient;
25
30
  let raizClient;
26
31
  let saludTotalClient;
32
+ let sisbenClient;
27
33
  let somosClient;
28
34
  let suraClient;
29
35
  let visoftClient;
@@ -31,6 +37,9 @@ export function bind(transport) {
31
37
  get account() {
32
38
  return (accountClient ??= bindAccount(transport));
33
39
  },
40
+ get adres() {
41
+ return (adresClient ??= bindAdres(transport));
42
+ },
34
43
  get agenda() {
35
44
  return (agendaClient ??= bindAgenda(transport));
36
45
  },
@@ -46,12 +55,18 @@ export function bind(transport) {
46
55
  get orsovision() {
47
56
  return (orsovisionClient ??= bindOrsovision(transport));
48
57
  },
58
+ get policiaColombia() {
59
+ return (policiaColombiaClient ??= bindPoliciaColombia(transport));
60
+ },
49
61
  get raiz() {
50
62
  return (raizClient ??= bindRaiz(transport));
51
63
  },
52
64
  get saludTotal() {
53
65
  return (saludTotalClient ??= bindSaludTotal(transport));
54
66
  },
67
+ get sisben() {
68
+ return (sisbenClient ??= bindSisben(transport));
69
+ },
55
70
  get somos() {
56
71
  return (somosClient ??= bindSomos(transport));
57
72
  },
@@ -0,0 +1,13 @@
1
+ import { type BaseClientOptions, Transport } from "../_/index.js";
2
+ import { type Client as JudicialRecordsClient } from "./judicialRecords/client.js";
3
+ export interface ClientOptions extends BaseClientOptions {
4
+ /**
5
+ * The URL the paths of the API are relative to.
6
+ */
7
+ baseUrl: string;
8
+ }
9
+ export interface Client {
10
+ readonly judicialRecords: JudicialRecordsClient;
11
+ }
12
+ export declare function createClient(options: ClientOptions): Client;
13
+ export declare function bind(transport: Transport): Client;
@@ -0,0 +1,15 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ import { Transport } from "../_/index.js";
4
+ import { bind as bindJudicialRecords, } from "./judicialRecords/client.js";
5
+ export function createClient(options) {
6
+ return bind(new Transport(options));
7
+ }
8
+ export function bind(transport) {
9
+ let judicialRecordsClient;
10
+ return {
11
+ get judicialRecords() {
12
+ return (judicialRecordsClient ??= bindJudicialRecords(transport));
13
+ },
14
+ };
15
+ }
@@ -0,0 +1,4 @@
1
+ export { ApiError } from "../_/index.js";
2
+ export type { RequestOptions } from "../_/index.js";
3
+ export { createClient } from "./client.js";
4
+ export type { Client, ClientOptions, } from "./client.js";
@@ -0,0 +1,4 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ export { ApiError } from "../_/index.js";
4
+ export { createClient } from "./client.js";
@@ -0,0 +1,22 @@
1
+ import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
+ import { type PoliciaColombiaJudicialRecordPresentationResponse, type PoliciaColombiaLookupJudicialRecordBody } from "./models.js";
3
+ export interface ClientOptions extends BaseClientOptions {
4
+ /**
5
+ * The URL the paths of the API are relative to.
6
+ */
7
+ baseUrl: string;
8
+ }
9
+ export interface Client {
10
+ /**
11
+ * Look up a Colombian judicial statement
12
+ *
13
+ * Read the document-matched identity fields and verbatim source statement,
14
+ * when available. A statement about pending matters is not a criminal
15
+ * conviction history.
16
+ */
17
+ lookup(request: LookupRequest, options?: RequestOptions): Promise<LookupResponse>;
18
+ }
19
+ export declare function createClient(options: ClientOptions): Client;
20
+ export declare function bind(transport: Transport): Client;
21
+ export type LookupRequest = PoliciaColombiaLookupJudicialRecordBody;
22
+ export type LookupResponse = PoliciaColombiaJudicialRecordPresentationResponse;
@@ -0,0 +1,19 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ import { Transport, } from "../../_/index.js";
4
+ import { PoliciaColombiaJudicialRecordPresentationResponseCodec, } from "./models.js";
5
+ export function createClient(options) {
6
+ return bind(new Transport(options));
7
+ }
8
+ export function bind(transport) {
9
+ return {
10
+ lookup: (request, options) => transport.send(LookupOperation, request, options),
11
+ };
12
+ }
13
+ const LookupOperation = {
14
+ method: "POST",
15
+ route: "/v1/policia-colombia/judicial-records/lookup",
16
+ body: "flat",
17
+ response: PoliciaColombiaJudicialRecordPresentationResponseCodec,
18
+ errors: { "400": true, "401": true, "403": true, "413": true, "415": true, "429": true, "500": true, "502": true, "503": true, "504": true },
19
+ };
@@ -0,0 +1,5 @@
1
+ export { ApiError } from "../../_/index.js";
2
+ export type { RequestOptions } from "../../_/index.js";
3
+ export { createClient } from "./client.js";
4
+ export type { Client, ClientOptions, LookupRequest, LookupResponse, } from "./client.js";
5
+ export type { PoliciaColombiaJudicialRecordPresentation, PoliciaColombiaJudicialRecordPresentationResponse, PoliciaColombiaLookupJudicialRecordBody, } from "./models.js";
@@ -0,0 +1,4 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ export { ApiError } from "../../_/index.js";
4
+ export { createClient } from "./client.js";
@@ -0,0 +1,42 @@
1
+ import type { ResponseMetadata } from "../../models.js";
2
+ export type PoliciaColombiaJudicialRecordPresentation = {
3
+ details: string;
4
+ documentNumber: string;
5
+ documentType: "CC" | "CE" | "PA" | "PPT" | "DP";
6
+ fullName: string | null;
7
+ identityStatus: "document_matched" | "unverified";
8
+ judicialStatus: "no_pending_matters" | "not_currently_required" | "pending_matters" | "in_person_required" | "other_statement";
9
+ observedAt: Temporal.Instant;
10
+ } | {
11
+ details: null;
12
+ documentNumber: string;
13
+ documentType: "CC" | "CE" | "PA" | "PPT" | "DP";
14
+ fullName: null;
15
+ identityStatus: "unverified";
16
+ judicialStatus: "unverified";
17
+ observedAt: null;
18
+ } | {
19
+ text: string;
20
+ };
21
+ /**
22
+ * A successful answer.
23
+ */
24
+ export interface PoliciaColombiaJudicialRecordPresentationResponse {
25
+ data: PoliciaColombiaJudicialRecordPresentation;
26
+ error: null;
27
+ /**
28
+ * What every answer carries besides its data or error.
29
+ */
30
+ metadata: ResponseMetadata;
31
+ success: true;
32
+ }
33
+ export interface PoliciaColombiaLookupJudicialRecordBody {
34
+ /**
35
+ * Return a concise Spanish presentation of the same observation.
36
+ */
37
+ agentMode?: boolean;
38
+ documentNumber: string;
39
+ documentType: "CC" | "CE" | "PA" | "PPT" | "DP";
40
+ }
41
+ export declare const PoliciaColombiaJudicialRecordPresentationCodec: import("../../_/codec.js").Codec;
42
+ export declare const PoliciaColombiaJudicialRecordPresentationResponseCodec: import("../../_/codec.js").Codec;
@@ -0,0 +1,7 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ import { instant, object } from "../../_/index.js";
4
+ export const PoliciaColombiaJudicialRecordPresentationCodec = object([["observedAt", null, instant]]);
5
+ export const PoliciaColombiaJudicialRecordPresentationResponseCodec = object([
6
+ ["data", null, () => PoliciaColombiaJudicialRecordPresentationCodec],
7
+ ]);
@@ -0,0 +1,21 @@
1
+ import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
+ import { type SisbenClassificationPresentationResponse, type SisbenLookupClassificationBody } from "./models.js";
3
+ export interface ClientOptions extends BaseClientOptions {
4
+ /**
5
+ * The URL the paths of the API are relative to.
6
+ */
7
+ baseUrl: string;
8
+ }
9
+ export interface Client {
10
+ /**
11
+ * Look up a Sisbén classification
12
+ *
13
+ * Read registration and the official group and subgroup. A null registration
14
+ * means the source could not verify the document.
15
+ */
16
+ lookup(request: LookupRequest, options?: RequestOptions): Promise<LookupResponse>;
17
+ }
18
+ export declare function createClient(options: ClientOptions): Client;
19
+ export declare function bind(transport: Transport): Client;
20
+ export type LookupRequest = SisbenLookupClassificationBody;
21
+ export type LookupResponse = SisbenClassificationPresentationResponse;
@@ -0,0 +1,19 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ import { Transport, } from "../../_/index.js";
4
+ import { SisbenClassificationPresentationResponseCodec, } from "./models.js";
5
+ export function createClient(options) {
6
+ return bind(new Transport(options));
7
+ }
8
+ export function bind(transport) {
9
+ return {
10
+ lookup: (request, options) => transport.send(LookupOperation, request, options),
11
+ };
12
+ }
13
+ const LookupOperation = {
14
+ method: "POST",
15
+ route: "/v1/sisben/classifications/lookup",
16
+ body: "flat",
17
+ response: SisbenClassificationPresentationResponseCodec,
18
+ errors: { "400": true, "401": true, "403": true, "413": true, "415": true, "429": true, "500": true, "502": true, "503": true, "504": true },
19
+ };
@@ -0,0 +1,5 @@
1
+ export { ApiError } from "../../_/index.js";
2
+ export type { RequestOptions } from "../../_/index.js";
3
+ export { createClient } from "./client.js";
4
+ export type { Client, ClientOptions, LookupRequest, LookupResponse, } from "./client.js";
5
+ export type { SisbenClassificationPresentation, SisbenClassificationPresentationResponse, SisbenLookupClassificationBody, } from "./models.js";
@@ -0,0 +1,4 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ export { ApiError } from "../../_/index.js";
4
+ export { createClient } from "./client.js";
@@ -0,0 +1,68 @@
1
+ import type { ResponseMetadata } from "../../models.js";
2
+ export type SisbenClassificationPresentation = {
3
+ group: "A";
4
+ observedAt: Temporal.Instant;
5
+ registered: true;
6
+ source: "DNP-SISBEN-IV";
7
+ subgroup: string | null;
8
+ verification: "source_report" | "last_known";
9
+ } | {
10
+ group: "B";
11
+ observedAt: Temporal.Instant;
12
+ registered: true;
13
+ source: "DNP-SISBEN-IV";
14
+ subgroup: string | null;
15
+ verification: "source_report" | "last_known";
16
+ } | {
17
+ group: "C";
18
+ observedAt: Temporal.Instant;
19
+ registered: true;
20
+ source: "DNP-SISBEN-IV";
21
+ subgroup: string | null;
22
+ verification: "source_report" | "last_known";
23
+ } | {
24
+ group: "D";
25
+ observedAt: Temporal.Instant;
26
+ registered: true;
27
+ source: "DNP-SISBEN-IV";
28
+ subgroup: string | null;
29
+ verification: "source_report" | "last_known";
30
+ } | {
31
+ group: null;
32
+ observedAt: Temporal.Instant;
33
+ registered: false;
34
+ source: "DNP-SISBEN-IV";
35
+ subgroup: null;
36
+ verification: "source_report" | "last_known";
37
+ } | {
38
+ group: null;
39
+ observedAt: null;
40
+ registered: null;
41
+ source: "DNP-SISBEN-IV";
42
+ subgroup: null;
43
+ verification: "unavailable" | "unsupported_document";
44
+ } | {
45
+ text: string;
46
+ };
47
+ /**
48
+ * A successful answer.
49
+ */
50
+ export interface SisbenClassificationPresentationResponse {
51
+ data: SisbenClassificationPresentation;
52
+ error: null;
53
+ /**
54
+ * What every answer carries besides its data or error.
55
+ */
56
+ metadata: ResponseMetadata;
57
+ success: true;
58
+ }
59
+ export interface SisbenLookupClassificationBody {
60
+ /**
61
+ * Return a concise Spanish presentation of the same observation.
62
+ */
63
+ agentMode?: boolean;
64
+ documentNumber: string;
65
+ documentType: string;
66
+ }
67
+ export declare const SisbenClassificationPresentationCodec: import("../../_/codec.js").Codec;
68
+ export declare const SisbenClassificationPresentationResponseCodec: import("../../_/codec.js").Codec;
@@ -0,0 +1,7 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ import { instant, object, union } from "../../_/index.js";
4
+ export const SisbenClassificationPresentationCodec = union([object([["observedAt", null, instant]]), object([["observedAt", null, instant]]), object([["observedAt", null, instant]]), object([["observedAt", null, instant]]), object([["observedAt", null, instant]])]);
5
+ export const SisbenClassificationPresentationResponseCodec = object([
6
+ ["data", null, () => SisbenClassificationPresentationCodec],
7
+ ]);
@@ -0,0 +1,13 @@
1
+ import { type BaseClientOptions, Transport } from "../_/index.js";
2
+ import { type Client as ClassificationsClient } from "./classifications/client.js";
3
+ export interface ClientOptions extends BaseClientOptions {
4
+ /**
5
+ * The URL the paths of the API are relative to.
6
+ */
7
+ baseUrl: string;
8
+ }
9
+ export interface Client {
10
+ readonly classifications: ClassificationsClient;
11
+ }
12
+ export declare function createClient(options: ClientOptions): Client;
13
+ export declare function bind(transport: Transport): Client;
@@ -0,0 +1,15 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ import { Transport } from "../_/index.js";
4
+ import { bind as bindClassifications, } from "./classifications/client.js";
5
+ export function createClient(options) {
6
+ return bind(new Transport(options));
7
+ }
8
+ export function bind(transport) {
9
+ let classificationsClient;
10
+ return {
11
+ get classifications() {
12
+ return (classificationsClient ??= bindClassifications(transport));
13
+ },
14
+ };
15
+ }
@@ -0,0 +1,4 @@
1
+ export { ApiError } from "../_/index.js";
2
+ export type { RequestOptions } from "../_/index.js";
3
+ export { createClient } from "./client.js";
4
+ export type { Client, ClientOptions, } from "./client.js";
@@ -0,0 +1,4 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ export { ApiError } from "../_/index.js";
4
+ export { createClient } from "./client.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arbol-ai/sdk",
3
- "version": "5.22.0",
3
+ "version": "5.24.0",
4
4
  "description": "The Arbol API for TypeScript and JavaScript, generated by Cloudflare Forge from the platform's public OpenAPI.",
5
5
  "keywords": [
6
6
  "arbol",
@@ -57,8 +57,8 @@
57
57
  "packageManager": "bun@1.4.3",
58
58
  "arbol": {
59
59
  "openapi": {
60
- "release": "1.20261101.31954",
61
- "sha256": "73d13da2ed2bc32d58a246b86b26ed7e6ac1ba2ea72c3d5fcf494f79cc62ef3d"
60
+ "release": "1.20261101.50133",
61
+ "sha256": "b5391b5c8b2e6b4cb27f0005a1fdb1b50531d5f455fb868b039f51e7587e03da"
62
62
  }
63
63
  }
64
64
  }