@arbol-ai/sdk 5.64.0 → 5.65.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.
@@ -22,7 +22,7 @@ export interface AccountPermission {
22
22
  /**
23
23
  * The product or integration the permission belongs to.
24
24
  */
25
- group: "raiz" | "agenda" | "ambar" | "sura" | "visoft" | "salud-total" | "nueva-eps" | "comfachoco" | "oficlinic" | "sanitas" | "gmedic" | "account";
25
+ group: "raiz" | "agenda" | "ambar" | "sura" | "visoft" | "salud-total" | "nueva-eps" | "comfachoco" | "oficlinic" | "pijaos-salud" | "sanitas" | "gmedic" | "account";
26
26
  value: string;
27
27
  }
28
28
  export interface AccountPermissionPage {
package/dist/client.d.ts CHANGED
@@ -8,6 +8,7 @@ import { type Client as GmedicClient } from "./gmedic/client.js";
8
8
  import { type Client as InsightsClient } from "./insights/client.js";
9
9
  import { type Client as NuevaEpsClient } from "./nuevaEps/client.js";
10
10
  import { type Client as OficlinicClient } from "./oficlinic/client.js";
11
+ import { type Client as PijaosSaludClient } from "./pijaosSalud/client.js";
11
12
  import { type Client as PoliciaColombiaClient } from "./policiaColombia/client.js";
12
13
  import { type Client as RaizClient } from "./raiz/client.js";
13
14
  import { type Client as SaludTotalClient } from "./saludTotal/client.js";
@@ -31,6 +32,7 @@ export interface Client {
31
32
  readonly insights: InsightsClient;
32
33
  readonly nuevaEps: NuevaEpsClient;
33
34
  readonly oficlinic: OficlinicClient;
35
+ readonly pijaosSalud: PijaosSaludClient;
34
36
  readonly policiaColombia: PoliciaColombiaClient;
35
37
  readonly raiz: RaizClient;
36
38
  readonly saludTotal: SaludTotalClient;
package/dist/client.js CHANGED
@@ -10,6 +10,7 @@ import { bind as bindGmedic, } from "./gmedic/client.js";
10
10
  import { bind as bindInsights, } from "./insights/client.js";
11
11
  import { bind as bindNuevaEps, } from "./nuevaEps/client.js";
12
12
  import { bind as bindOficlinic, } from "./oficlinic/client.js";
13
+ import { bind as bindPijaosSalud, } from "./pijaosSalud/client.js";
13
14
  import { bind as bindPoliciaColombia, } from "./policiaColombia/client.js";
14
15
  import { bind as bindRaiz } from "./raiz/client.js";
15
16
  import { bind as bindSaludTotal, } from "./saludTotal/client.js";
@@ -30,6 +31,7 @@ export function bind(transport) {
30
31
  let insightsClient;
31
32
  let nuevaEpsClient;
32
33
  let oficlinicClient;
34
+ let pijaosSaludClient;
33
35
  let policiaColombiaClient;
34
36
  let raizClient;
35
37
  let saludTotalClient;
@@ -65,6 +67,9 @@ export function bind(transport) {
65
67
  get oficlinic() {
66
68
  return (oficlinicClient ??= bindOficlinic(transport));
67
69
  },
70
+ get pijaosSalud() {
71
+ return (pijaosSaludClient ??= bindPijaosSalud(transport));
72
+ },
68
73
  get policiaColombia() {
69
74
  return (policiaColombiaClient ??= bindPoliciaColombia(transport));
70
75
  },
@@ -0,0 +1,22 @@
1
+ import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
+ import { type PijaosSaludLookupAffiliationBody, type PijaosSaludLookupAffiliationResultResponse } 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 affiliation
12
+ *
13
+ * Read the affiliation status for one document through the organization’s
14
+ * active Pijaos Salud connection. An unconfirmed identity leaves affiliation
15
+ * unknown.
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 = PijaosSaludLookupAffiliationBody;
22
+ export type LookupResponse = PijaosSaludLookupAffiliationResultResponse;
@@ -0,0 +1,19 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ import { Transport, } from "../../_/index.js";
4
+ import { PijaosSaludLookupAffiliationResultResponseCodec, } 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/pijaos-salud/affiliations/lookup",
16
+ body: "flat",
17
+ response: PijaosSaludLookupAffiliationResultResponseCodec,
18
+ errors: { "400": true, "401": true, "403": true, "409": 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 { PijaosSaludAccountUnavailableFailure, PijaosSaludAffiliationUnresolvedFailure, PijaosSaludConnectionUnavailableFailure, PijaosSaludCredentialsRejectedFailure, PijaosSaludLookupAffiliationBadGatewayError, PijaosSaludLookupAffiliationBadGatewayFailure, PijaosSaludLookupAffiliationBody, PijaosSaludLookupAffiliationConflictError, PijaosSaludLookupAffiliationConflictFailure, PijaosSaludLookupAffiliationResult, PijaosSaludLookupAffiliationResultResponse, PijaosSaludLookupAffiliationServiceUnavailableError, PijaosSaludLookupAffiliationServiceUnavailableFailure, PijaosSaludProviderUnavailableFailure, } 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,179 @@
1
+ import type { Empty, OutcomeUnknownFailure, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
2
+ /**
3
+ * The connection could not be read.
4
+ */
5
+ export interface PijaosSaludAccountUnavailableFailure {
6
+ /**
7
+ * The failure code, stable across releases.
8
+ */
9
+ code: "ACCOUNT_UNAVAILABLE";
10
+ /**
11
+ * No fields.
12
+ */
13
+ data: Empty;
14
+ /**
15
+ * What went wrong, for people; it never contains input values.
16
+ */
17
+ message: string;
18
+ /**
19
+ * Whether repeating the same request may succeed.
20
+ */
21
+ retryable: false;
22
+ }
23
+ /**
24
+ * The provider response could not be verified for the requested document.
25
+ */
26
+ export interface PijaosSaludAffiliationUnresolvedFailure {
27
+ /**
28
+ * The failure code, stable across releases.
29
+ */
30
+ code: "AFFILIATION_UNRESOLVED";
31
+ /**
32
+ * No fields.
33
+ */
34
+ data: Empty;
35
+ /**
36
+ * What went wrong, for people; it never contains input values.
37
+ */
38
+ message: string;
39
+ /**
40
+ * Whether repeating the same request may succeed.
41
+ */
42
+ retryable: false;
43
+ }
44
+ /**
45
+ * Select an active Pijaos Salud connection for this organization.
46
+ */
47
+ export interface PijaosSaludConnectionUnavailableFailure {
48
+ /**
49
+ * The failure code, stable across releases.
50
+ */
51
+ code: "CONNECTION_UNAVAILABLE";
52
+ /**
53
+ * No fields.
54
+ */
55
+ data: Empty;
56
+ /**
57
+ * What went wrong, for people; it never contains input values.
58
+ */
59
+ message: string;
60
+ /**
61
+ * Whether repeating the same request may succeed.
62
+ */
63
+ retryable: false;
64
+ }
65
+ /**
66
+ * Pijaos Salud did not accept the configured IPS login.
67
+ */
68
+ export interface PijaosSaludCredentialsRejectedFailure {
69
+ /**
70
+ * The failure code, stable across releases.
71
+ */
72
+ code: "CREDENTIALS_REJECTED";
73
+ /**
74
+ * No fields.
75
+ */
76
+ data: Empty;
77
+ /**
78
+ * What went wrong, for people; it never contains input values.
79
+ */
80
+ message: string;
81
+ /**
82
+ * Whether repeating the same request may succeed.
83
+ */
84
+ retryable: false;
85
+ }
86
+ /**
87
+ * A failed answer.
88
+ */
89
+ export interface PijaosSaludLookupAffiliationBadGatewayError {
90
+ data: null;
91
+ error: PijaosSaludLookupAffiliationBadGatewayFailure;
92
+ /**
93
+ * What every answer carries besides its data or error.
94
+ */
95
+ metadata: ResponseMetadata;
96
+ success: false;
97
+ }
98
+ export type PijaosSaludLookupAffiliationBadGatewayFailure = OutcomeUnknownFailure | PijaosSaludAffiliationUnresolvedFailure;
99
+ export interface PijaosSaludLookupAffiliationBody {
100
+ connectionId: string;
101
+ documentNumber: string;
102
+ documentType: "NI" | "CC" | "MS" | "RC" | "TI" | "CE" | "PA" | "AS" | "CD" | "CN" | "SC" | "PE" | "PT" | "DE" | "OT";
103
+ /**
104
+ * Maximum age in days of a result from this IPS connection. Zero contacts the
105
+ * provider and refreshes the saved result.
106
+ */
107
+ maxAgeDays?: number;
108
+ }
109
+ /**
110
+ * A failed answer.
111
+ */
112
+ export interface PijaosSaludLookupAffiliationConflictError {
113
+ data: null;
114
+ error: PijaosSaludLookupAffiliationConflictFailure;
115
+ /**
116
+ * What every answer carries besides its data or error.
117
+ */
118
+ metadata: ResponseMetadata;
119
+ success: false;
120
+ }
121
+ export type PijaosSaludLookupAffiliationConflictFailure = PijaosSaludConnectionUnavailableFailure | PijaosSaludCredentialsRejectedFailure;
122
+ export type PijaosSaludLookupAffiliationResult = {
123
+ checkedAt: Temporal.Instant;
124
+ outcome: "identity_not_confirmed";
125
+ source: "provider" | "cache";
126
+ } | {
127
+ checkedAt: Temporal.Instant;
128
+ outcome: "status_reported";
129
+ source: "provider" | "cache";
130
+ status: "activo" | "inactivo" | "suspendido" | "retirado" | "fallecido" | "cancelado" | "trasladado";
131
+ };
132
+ /**
133
+ * A successful answer.
134
+ */
135
+ export interface PijaosSaludLookupAffiliationResultResponse {
136
+ data: PijaosSaludLookupAffiliationResult;
137
+ error: null;
138
+ /**
139
+ * What every answer carries besides its data or error.
140
+ */
141
+ metadata: ResponseMetadata;
142
+ success: true;
143
+ }
144
+ /**
145
+ * A failed answer.
146
+ */
147
+ export interface PijaosSaludLookupAffiliationServiceUnavailableError {
148
+ data: null;
149
+ error: PijaosSaludLookupAffiliationServiceUnavailableFailure;
150
+ /**
151
+ * What every answer carries besides its data or error.
152
+ */
153
+ metadata: ResponseMetadata;
154
+ success: false;
155
+ }
156
+ export type PijaosSaludLookupAffiliationServiceUnavailableFailure = UpstreamUnavailableFailure | PijaosSaludAccountUnavailableFailure | PijaosSaludProviderUnavailableFailure;
157
+ /**
158
+ * Pijaos Salud could not complete the operation.
159
+ */
160
+ export interface PijaosSaludProviderUnavailableFailure {
161
+ /**
162
+ * The failure code, stable across releases.
163
+ */
164
+ code: "PROVIDER_UNAVAILABLE";
165
+ /**
166
+ * No fields.
167
+ */
168
+ data: Empty;
169
+ /**
170
+ * What went wrong, for people; it never contains input values.
171
+ */
172
+ message: string;
173
+ /**
174
+ * Whether repeating the same request may succeed.
175
+ */
176
+ retryable: false;
177
+ }
178
+ export declare const PijaosSaludLookupAffiliationResultCodec: import("../../_/codec.js").Codec;
179
+ export declare const PijaosSaludLookupAffiliationResultResponseCodec: 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 PijaosSaludLookupAffiliationResultCodec = union([object([["checkedAt", null, instant]]), object([["checkedAt", null, instant]])]);
5
+ export const PijaosSaludLookupAffiliationResultResponseCodec = object([
6
+ ["data", null, () => PijaosSaludLookupAffiliationResultCodec],
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arbol-ai/sdk",
3
- "version": "5.64.0",
3
+ "version": "5.65.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",
@@ -58,8 +58,8 @@
58
58
  "packageManager": "bun@1.4.3",
59
59
  "arbol": {
60
60
  "openapi": {
61
- "release": "1.20261118.42105",
62
- "sha256": "f98cfd70300bba52a0443c5ad5e04e4c84abd6a0cc0024c7fa72155b3ddb21ce"
61
+ "release": "1.20261118.215712",
62
+ "sha256": "1112b37d65d79b857a0d7b26ab4d7e10d9ba02fe06776ee2dd80a946c425d2d6"
63
63
  }
64
64
  }
65
65
  }