@arbol-ai/sdk 5.1.0 → 5.3.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/saludTotal/affiliations/client.d.ts +23 -0
- package/dist/saludTotal/affiliations/client.js +18 -0
- package/dist/saludTotal/affiliations/index.d.ts +5 -0
- package/dist/saludTotal/affiliations/index.js +4 -0
- package/dist/saludTotal/affiliations/models.d.ts +78 -0
- package/dist/saludTotal/affiliations/models.js +3 -0
- package/dist/saludTotal/client.d.ts +8 -0
- package/dist/saludTotal/client.js +20 -0
- package/dist/saludTotal/connections/client.d.ts +29 -1
- package/dist/saludTotal/connections/client.js +11 -3
- package/dist/saludTotal/connections/index.d.ts +2 -2
- package/dist/saludTotal/connections/models.d.ts +192 -1
- package/dist/saludTotal/connections/models.js +10 -1
- package/dist/saludTotal/index.d.ts +1 -1
- package/dist/saludTotal/models.d.ts +231 -0
- package/dist/saludTotal/portalOperations/client.d.ts +53 -0
- package/dist/saludTotal/portalOperations/client.js +18 -0
- package/dist/saludTotal/portalOperations/index.d.ts +5 -0
- package/dist/saludTotal/portalOperations/index.js +4 -0
- package/dist/saludTotal/portalOperations/models.d.ts +89 -0
- package/dist/saludTotal/portalOperations/models.js +3 -0
- package/dist/saludTotal/portals/client.js +1 -1
- package/dist/saludTotal/portals/index.d.ts +1 -1
- package/dist/saludTotal/portals/models.d.ts +54 -1
- package/dist/saludTotal/sessions/client.d.ts +37 -0
- package/dist/saludTotal/sessions/client.js +27 -0
- package/dist/saludTotal/sessions/index.d.ts +5 -0
- package/dist/saludTotal/sessions/index.js +4 -0
- package/dist/saludTotal/sessions/models.d.ts +90 -0
- package/dist/saludTotal/sessions/models.js +9 -0
- package/dist/saludTotal/workflowPreviews/client.d.ts +36 -0
- package/dist/saludTotal/workflowPreviews/client.js +18 -0
- package/dist/saludTotal/workflowPreviews/index.d.ts +5 -0
- package/dist/saludTotal/workflowPreviews/index.js +4 -0
- package/dist/saludTotal/workflowPreviews/models.d.ts +69 -0
- package/dist/saludTotal/workflowPreviews/models.js +3 -0
- package/package.json +3 -3
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
+
import type { SaludTotalPreviewWorkflowResultResponse } 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 workflow previews
|
|
12
|
+
*
|
|
13
|
+
* Simulate an IPS workflow using only enums and local fixtures. One workflow
|
|
14
|
+
* parameter returns one line in Spanish. Optional scenarios include missing
|
|
15
|
+
* records, missing documents, ambiguous matches, permissions, expiry and
|
|
16
|
+
* uncertain responses. No connection or member is contacted.
|
|
17
|
+
*/
|
|
18
|
+
get(request: GetRequest, options?: RequestOptions): Promise<GetResponse>;
|
|
19
|
+
}
|
|
20
|
+
export declare function createClient(options: ClientOptions): Client;
|
|
21
|
+
export declare function bind(transport: Transport): Client;
|
|
22
|
+
export interface GetRequest {
|
|
23
|
+
/**
|
|
24
|
+
* The workflow.
|
|
25
|
+
*/
|
|
26
|
+
workflow: "afiliacion" | "autorizacion" | "radicacion" | "seguimiento" | "facturacion" | "glosas" | "direccionamiento" | "remisiones" | "programaciones" | "rips" | "mipres" | "diagnostico";
|
|
27
|
+
/**
|
|
28
|
+
* The scenario.
|
|
29
|
+
*/
|
|
30
|
+
scenario?: "normal" | "sin_registro" | "ambiguo" | "sin_permiso" | "sesion_expirada" | "falta_soporte" | "respuesta_perdida";
|
|
31
|
+
/**
|
|
32
|
+
* The view.
|
|
33
|
+
*/
|
|
34
|
+
view?: "brief" | "trace";
|
|
35
|
+
}
|
|
36
|
+
export type GetResponse = SaludTotalPreviewWorkflowResultResponse;
|
|
@@ -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
|
+
get: (request, options) => transport.send(GetOperation, request, options),
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
const GetOperation = {
|
|
13
|
+
method: "GET",
|
|
14
|
+
route: "/v1/salud-total/workflow-previews",
|
|
15
|
+
query: { workflow: "workflow", scenario: "scenario", view: "view" },
|
|
16
|
+
response: null,
|
|
17
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "409": 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, GetRequest, GetResponse, } from "./client.js";
|
|
5
|
+
export type { SaludTotalPreviewWorkflowConflictError, SaludTotalPreviewWorkflowConflictFailure, SaludTotalPreviewWorkflowForbiddenError, SaludTotalPreviewWorkflowForbiddenFailure, SaludTotalPreviewWorkflowResult, SaludTotalPreviewWorkflowResultResponse, SaludTotalPreviewWorkflowServiceUnavailableError, SaludTotalPreviewWorkflowServiceUnavailableFailure, SaludTotalPreviewWorkflowTooManyRequestsError, SaludTotalPreviewWorkflowTooManyRequestsFailure, } from "./models.js";
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import type { ForbiddenFailure, RateLimitedFailure, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
+
import type { SaludTotalAccountUnavailableFailure, SaludTotalConnectionUnavailableFailure, SaludTotalCredentialsRejectedFailure, SaludTotalInteractiveVerificationRequiredFailure, SaludTotalIpsIdentityMismatchFailure, SaludTotalLoginCoolingDownFailure, SaludTotalModuleForbiddenFailure, SaludTotalPortalAccessUnverifiedFailure, SaludTotalProviderUnavailableFailure, SaludTotalSessionClosedFailure, SaludTotalSessionExpiredFailure } from "../models.js";
|
|
3
|
+
/**
|
|
4
|
+
* A failed answer.
|
|
5
|
+
*/
|
|
6
|
+
export interface SaludTotalPreviewWorkflowConflictError {
|
|
7
|
+
data: null;
|
|
8
|
+
error: SaludTotalPreviewWorkflowConflictFailure;
|
|
9
|
+
/**
|
|
10
|
+
* What every answer carries besides its data or error.
|
|
11
|
+
*/
|
|
12
|
+
metadata: ResponseMetadata;
|
|
13
|
+
success: false;
|
|
14
|
+
}
|
|
15
|
+
export type SaludTotalPreviewWorkflowConflictFailure = SaludTotalConnectionUnavailableFailure | SaludTotalSessionClosedFailure | SaludTotalInteractiveVerificationRequiredFailure | SaludTotalCredentialsRejectedFailure | SaludTotalIpsIdentityMismatchFailure;
|
|
16
|
+
/**
|
|
17
|
+
* A failed answer.
|
|
18
|
+
*/
|
|
19
|
+
export interface SaludTotalPreviewWorkflowForbiddenError {
|
|
20
|
+
data: null;
|
|
21
|
+
error: SaludTotalPreviewWorkflowForbiddenFailure;
|
|
22
|
+
/**
|
|
23
|
+
* What every answer carries besides its data or error.
|
|
24
|
+
*/
|
|
25
|
+
metadata: ResponseMetadata;
|
|
26
|
+
success: false;
|
|
27
|
+
}
|
|
28
|
+
export type SaludTotalPreviewWorkflowForbiddenFailure = ForbiddenFailure | SaludTotalPortalAccessUnverifiedFailure | SaludTotalModuleForbiddenFailure;
|
|
29
|
+
export interface SaludTotalPreviewWorkflowResult {
|
|
30
|
+
text: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* A successful answer.
|
|
34
|
+
*/
|
|
35
|
+
export interface SaludTotalPreviewWorkflowResultResponse {
|
|
36
|
+
data: SaludTotalPreviewWorkflowResult;
|
|
37
|
+
error: null;
|
|
38
|
+
/**
|
|
39
|
+
* What every answer carries besides its data or error.
|
|
40
|
+
*/
|
|
41
|
+
metadata: ResponseMetadata;
|
|
42
|
+
success: true;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* A failed answer.
|
|
46
|
+
*/
|
|
47
|
+
export interface SaludTotalPreviewWorkflowServiceUnavailableError {
|
|
48
|
+
data: null;
|
|
49
|
+
error: SaludTotalPreviewWorkflowServiceUnavailableFailure;
|
|
50
|
+
/**
|
|
51
|
+
* What every answer carries besides its data or error.
|
|
52
|
+
*/
|
|
53
|
+
metadata: ResponseMetadata;
|
|
54
|
+
success: false;
|
|
55
|
+
}
|
|
56
|
+
export type SaludTotalPreviewWorkflowServiceUnavailableFailure = UpstreamUnavailableFailure | SaludTotalAccountUnavailableFailure | SaludTotalSessionExpiredFailure | SaludTotalProviderUnavailableFailure;
|
|
57
|
+
/**
|
|
58
|
+
* A failed answer.
|
|
59
|
+
*/
|
|
60
|
+
export interface SaludTotalPreviewWorkflowTooManyRequestsError {
|
|
61
|
+
data: null;
|
|
62
|
+
error: SaludTotalPreviewWorkflowTooManyRequestsFailure;
|
|
63
|
+
/**
|
|
64
|
+
* What every answer carries besides its data or error.
|
|
65
|
+
*/
|
|
66
|
+
metadata: ResponseMetadata;
|
|
67
|
+
success: false;
|
|
68
|
+
}
|
|
69
|
+
export type SaludTotalPreviewWorkflowTooManyRequestsFailure = RateLimitedFailure | SaludTotalLoginCoolingDownFailure;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arbol-ai/sdk",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.3.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.
|
|
60
|
-
"sha256": "
|
|
59
|
+
"release": "1.20261031.201907",
|
|
60
|
+
"sha256": "3e10fe901b456f400237bedddff41efe6837553d78c343eb5476d905172e19ba"
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
}
|