@arbol-ai/sdk 5.0.0 → 5.1.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.
package/dist/client.d.ts CHANGED
@@ -6,6 +6,7 @@ import { type Client as GmedicClient } from "./gmedic/client.js";
6
6
  import { type Client as NuevaEpsClient } from "./nuevaEps/client.js";
7
7
  import { type Client as OrsovisionClient } from "./orsovision/client.js";
8
8
  import { type Client as RaizClient } from "./raiz/client.js";
9
+ import { type Client as SaludTotalClient } from "./saludTotal/client.js";
9
10
  import { type Client as SomosClient } from "./somos/client.js";
10
11
  import { type Client as SuraClient } from "./sura/client.js";
11
12
  import { type Client as VisoftClient } from "./visoft/client.js";
@@ -23,6 +24,7 @@ export interface Client {
23
24
  readonly nuevaEps: NuevaEpsClient;
24
25
  readonly orsovision: OrsovisionClient;
25
26
  readonly raiz: RaizClient;
27
+ readonly saludTotal: SaludTotalClient;
26
28
  readonly somos: SomosClient;
27
29
  readonly sura: SuraClient;
28
30
  readonly visoft: VisoftClient;
package/dist/client.js CHANGED
@@ -8,6 +8,7 @@ import { bind as bindGmedic, } from "./gmedic/client.js";
8
8
  import { bind as bindNuevaEps, } from "./nuevaEps/client.js";
9
9
  import { bind as bindOrsovision, } from "./orsovision/client.js";
10
10
  import { bind as bindRaiz } from "./raiz/client.js";
11
+ import { bind as bindSaludTotal, } from "./saludTotal/client.js";
11
12
  import { bind as bindSomos, } from "./somos/client.js";
12
13
  import { bind as bindSura } from "./sura/client.js";
13
14
  import { bind as bindVisoft, } from "./visoft/client.js";
@@ -22,6 +23,7 @@ export function bind(transport) {
22
23
  let nuevaEpsClient;
23
24
  let orsovisionClient;
24
25
  let raizClient;
26
+ let saludTotalClient;
25
27
  let somosClient;
26
28
  let suraClient;
27
29
  let visoftClient;
@@ -47,6 +49,9 @@ export function bind(transport) {
47
49
  get raiz() {
48
50
  return (raizClient ??= bindRaiz(transport));
49
51
  },
52
+ get saludTotal() {
53
+ return (saludTotalClient ??= bindSaludTotal(transport));
54
+ },
50
55
  get somos() {
51
56
  return (somosClient ??= bindSomos(transport));
52
57
  },
@@ -0,0 +1,15 @@
1
+ import { type BaseClientOptions, Transport } from "../_/index.js";
2
+ import { type Client as ConnectionsClient } from "./connections/client.js";
3
+ import { type Client as PortalsClient } from "./portals/client.js";
4
+ export interface ClientOptions extends BaseClientOptions {
5
+ /**
6
+ * The URL the paths of the API are relative to.
7
+ */
8
+ baseUrl: string;
9
+ }
10
+ export interface Client {
11
+ readonly connections: ConnectionsClient;
12
+ readonly portals: PortalsClient;
13
+ }
14
+ export declare function createClient(options: ClientOptions): Client;
15
+ export declare function bind(transport: Transport): Client;
@@ -0,0 +1,20 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ import { Transport } from "../_/index.js";
4
+ import { bind as bindConnections, } from "./connections/client.js";
5
+ import { bind as bindPortals, } from "./portals/client.js";
6
+ export function createClient(options) {
7
+ return bind(new Transport(options));
8
+ }
9
+ export function bind(transport) {
10
+ let connectionsClient;
11
+ let portalsClient;
12
+ return {
13
+ get connections() {
14
+ return (connectionsClient ??= bindConnections(transport));
15
+ },
16
+ get portals() {
17
+ return (portalsClient ??= bindPortals(transport));
18
+ },
19
+ };
20
+ }
@@ -0,0 +1,53 @@
1
+ import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
+ import { type SaludTotalDeleteConnectionResultResponse, type SaludTotalGetConnectionResultResponse, type SaludTotalVerifyConnectionBody, type SaludTotalVerifyConnectionResultResponse } 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
+ * Delete an IPS connection
12
+ *
13
+ * Forget verification for a connection of the signed-in organization.
14
+ */
15
+ delete(request: DeleteRequest, options?: RequestOptions): Promise<DeleteResponse>;
16
+ /**
17
+ * Get a verified IPS connection
18
+ *
19
+ * Read the workflow tag and time of the last successful IPS portal
20
+ * verification.
21
+ */
22
+ get(request: GetRequest, options?: RequestOptions): Promise<GetResponse>;
23
+ /**
24
+ * Verify an IPS connection
25
+ *
26
+ * Verify one IPS login and its tagged portal with a protected menu read.
27
+ * Interactive verification stops the attempt.
28
+ */
29
+ verify(request: VerifyRequest, options?: RequestOptions): Promise<VerifyResponse>;
30
+ }
31
+ export declare function createClient(options: ClientOptions): Client;
32
+ export declare function bind(transport: Transport): Client;
33
+ export interface DeleteRequest {
34
+ /**
35
+ * The connection id.
36
+ */
37
+ connectionId: string;
38
+ }
39
+ export type DeleteResponse = SaludTotalDeleteConnectionResultResponse;
40
+ export interface GetRequest {
41
+ /**
42
+ * The connection id.
43
+ */
44
+ connectionId: string;
45
+ }
46
+ export type GetResponse = SaludTotalGetConnectionResultResponse;
47
+ export type VerifyRequest = {
48
+ /**
49
+ * The connection id.
50
+ */
51
+ connectionId: string;
52
+ } & SaludTotalVerifyConnectionBody;
53
+ export type VerifyResponse = SaludTotalVerifyConnectionResultResponse;
@@ -0,0 +1,33 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ import { Transport, } from "../../_/index.js";
4
+ import { SaludTotalGetConnectionResultResponseCodec, } from "./models.js";
5
+ export function createClient(options) {
6
+ return bind(new Transport(options));
7
+ }
8
+ export function bind(transport) {
9
+ return {
10
+ delete: (request, options) => transport.send(DeleteOperation, request, options),
11
+ get: (request, options) => transport.send(GetOperation, request, options),
12
+ verify: (request, options) => transport.send(VerifyOperation, request, options),
13
+ };
14
+ }
15
+ const DeleteOperation = {
16
+ method: "DELETE",
17
+ route: "/v1/salud-total/connections/{connectionId}",
18
+ response: null,
19
+ errors: { "400": true, "401": true, "403": true, "404": true, "429": true, "500": true, "502": true, "503": true, "504": true },
20
+ };
21
+ const GetOperation = {
22
+ method: "GET",
23
+ route: "/v1/salud-total/connections/{connectionId}",
24
+ response: SaludTotalGetConnectionResultResponseCodec,
25
+ errors: { "400": true, "401": true, "403": true, "404": true, "429": true, "500": true, "502": true, "503": true, "504": true },
26
+ };
27
+ const VerifyOperation = {
28
+ method: "POST",
29
+ route: "/v1/salud-total/connections/{connectionId}/verify",
30
+ body: "flat",
31
+ response: null,
32
+ errors: { "400": true, "401": true, "403": true, "404": true, "413": true, "415": true, "429": true, "500": true, "502": true, "503": true, "504": true },
33
+ };
@@ -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, DeleteRequest, DeleteResponse, GetRequest, GetResponse, VerifyRequest, VerifyResponse, } from "./client.js";
5
+ export type { SaludTotalDeleteConnectionResult, SaludTotalDeleteConnectionResultResponse, SaludTotalGetConnectionResult, SaludTotalGetConnectionResultResponse, SaludTotalVerifyConnectionBody, SaludTotalVerifyConnectionResult, SaludTotalVerifyConnectionResultResponse, } 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,62 @@
1
+ import type { ResponseMetadata } from "../../models.js";
2
+ export interface SaludTotalDeleteConnectionResult {
3
+ deleted: true;
4
+ id: string;
5
+ }
6
+ /**
7
+ * A successful answer.
8
+ */
9
+ export interface SaludTotalDeleteConnectionResultResponse {
10
+ data: SaludTotalDeleteConnectionResult;
11
+ error: null;
12
+ /**
13
+ * What every answer carries besides its data or error.
14
+ */
15
+ metadata: ResponseMetadata;
16
+ success: true;
17
+ }
18
+ export interface SaludTotalGetConnectionResult {
19
+ tag: "postconsulta" | "facturacion";
20
+ verifiedAt: Temporal.Instant;
21
+ }
22
+ /**
23
+ * A successful answer.
24
+ */
25
+ export interface SaludTotalGetConnectionResultResponse {
26
+ data: SaludTotalGetConnectionResult;
27
+ error: null;
28
+ /**
29
+ * What every answer carries besides its data or error.
30
+ */
31
+ metadata: ResponseMetadata;
32
+ success: true;
33
+ }
34
+ export interface SaludTotalVerifyConnectionBody {
35
+ documentType: "CC";
36
+ name: string;
37
+ nit: string;
38
+ password: string;
39
+ tag: "postconsulta" | "facturacion";
40
+ username: string;
41
+ }
42
+ export type SaludTotalVerifyConnectionResult = {
43
+ stateRef: string;
44
+ status: "active";
45
+ } | {
46
+ errorCode: string;
47
+ status: "rejected";
48
+ };
49
+ /**
50
+ * A successful answer.
51
+ */
52
+ export interface SaludTotalVerifyConnectionResultResponse {
53
+ data: SaludTotalVerifyConnectionResult;
54
+ error: null;
55
+ /**
56
+ * What every answer carries besides its data or error.
57
+ */
58
+ metadata: ResponseMetadata;
59
+ success: true;
60
+ }
61
+ export declare const SaludTotalGetConnectionResultCodec: import("../../_/codec.js").Codec;
62
+ export declare const SaludTotalGetConnectionResultResponseCodec: import("../../_/codec.js").Codec;
@@ -0,0 +1,9 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ import { instant, object } from "../../_/index.js";
4
+ export const SaludTotalGetConnectionResultCodec = object([
5
+ ["verifiedAt", null, instant],
6
+ ]);
7
+ export const SaludTotalGetConnectionResultResponseCodec = object([
8
+ ["data", null, () => SaludTotalGetConnectionResultCodec],
9
+ ]);
@@ -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, } from "./client.js";
5
+ export type { SaludTotalConnectionNotFoundError, SaludTotalConnectionNotFoundFailure, } 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,37 @@
1
+ import type { Empty, ResponseMetadata } from "../models.js";
2
+ /**
3
+ * A failed answer.
4
+ */
5
+ export interface SaludTotalConnectionNotFoundError {
6
+ data: null;
7
+ /**
8
+ * This organization has no verified connection with this id.
9
+ */
10
+ error: SaludTotalConnectionNotFoundFailure;
11
+ /**
12
+ * What every answer carries besides its data or error.
13
+ */
14
+ metadata: ResponseMetadata;
15
+ success: false;
16
+ }
17
+ /**
18
+ * This organization has no verified connection with this id.
19
+ */
20
+ export interface SaludTotalConnectionNotFoundFailure {
21
+ /**
22
+ * The failure code, stable across releases.
23
+ */
24
+ code: "CONNECTION_NOT_FOUND";
25
+ /**
26
+ * No fields.
27
+ */
28
+ data: Empty;
29
+ /**
30
+ * What went wrong, for people; it never contains input values.
31
+ */
32
+ message: string;
33
+ /**
34
+ * Whether repeating the same request may succeed.
35
+ */
36
+ retryable: false;
37
+ }
@@ -0,0 +1,3 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ export {};
@@ -0,0 +1,35 @@
1
+ import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
+ import type { SaludTotalPortalPageResponse } 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
+ * List portals
12
+ *
13
+ * List the IPS portal entry points and the workflow tags accepted by Account
14
+ * connections.
15
+ */
16
+ list(request?: ListRequest, options?: RequestOptions): Promise<ListResponse>;
17
+ }
18
+ export declare function createClient(options: ClientOptions): Client;
19
+ export declare function bind(transport: Transport): Client;
20
+ export interface ListRequest {
21
+ /**
22
+ * Opaque cursor returned by pageInfo; omit it to request the first page.
23
+ */
24
+ cursor?: string;
25
+ /**
26
+ * Direction to traverse the stable keyset ordering from the supplied cursor.
27
+ */
28
+ direction?: "forward" | "backward";
29
+ /**
30
+ * Maximum items returned in one page. Defaults to 25; larger reads require
31
+ * another cursor.
32
+ */
33
+ limit?: number;
34
+ }
35
+ export type ListResponse = SaludTotalPortalPageResponse;
@@ -0,0 +1,18 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ import { Transport, } from "../../_/index.js";
4
+ export function createClient(options) {
5
+ return bind(new Transport(options));
6
+ }
7
+ export function bind(transport) {
8
+ return {
9
+ list: (request, options) => transport.send(ListOperation, request, options),
10
+ };
11
+ }
12
+ const ListOperation = {
13
+ method: "GET",
14
+ route: "/v1/salud-total/portals",
15
+ query: { cursor: "cursor", direction: "direction", limit: "limit" },
16
+ response: null,
17
+ errors: { "400": true, "401": true, "403": true, "404": true, "429": true, "500": true, "502": true, "503": true, "504": true },
18
+ };
@@ -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, ListRequest, ListResponse, } from "./client.js";
5
+ export type { SaludTotalPortalPage, SaludTotalPortalPageResponse, } 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,30 @@
1
+ import type { PageInfo, ResponseMetadata } from "../../models.js";
2
+ export interface SaludTotalPortalPage {
3
+ /**
4
+ * Items admitted by this resource contract within the verified organization.
5
+ */
6
+ data: {
7
+ tag: "postconsulta" | "facturacion";
8
+ url: string;
9
+ }[];
10
+ /**
11
+ * Discriminator for a resource list response.
12
+ */
13
+ object: "list";
14
+ /**
15
+ * Opaque navigation cursors for this page’s stable keyset order.
16
+ */
17
+ pageInfo: PageInfo;
18
+ }
19
+ /**
20
+ * A successful answer.
21
+ */
22
+ export interface SaludTotalPortalPageResponse {
23
+ data: SaludTotalPortalPage;
24
+ error: null;
25
+ /**
26
+ * What every answer carries besides its data or error.
27
+ */
28
+ metadata: ResponseMetadata;
29
+ success: true;
30
+ }
@@ -0,0 +1,3 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arbol-ai/sdk",
3
- "version": "5.0.0",
3
+ "version": "5.1.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",
@@ -56,8 +56,8 @@
56
56
  "packageManager": "bun@1.4.3",
57
57
  "arbol": {
58
58
  "openapi": {
59
- "release": "1.20261031.170304",
60
- "sha256": "c6ced2fbdf0c03a03ccb6a8b8788d39690619ab21636dc755c097a9577ffe655"
59
+ "release": "1.20261031.191703",
60
+ "sha256": "546d49cd628c552ad70c761b376b14ae088fd846ce8c72d5f160e7b2c381c643"
61
61
  }
62
62
  }
63
63
  }