@arbol-ai/sdk 5.35.0 → 5.37.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/account/connections/models.d.ts +5 -1
- package/dist/client.d.ts +4 -0
- package/dist/client.js +10 -0
- package/dist/comfachoco/affiliations/models.d.ts +5 -5
- package/dist/comfachoco/connections/models.d.ts +12 -11
- package/dist/comfachoco/index.d.ts +1 -1
- package/dist/comfachoco/models.d.ts +0 -63
- package/dist/index.d.ts +1 -1
- package/dist/models.d.ts +63 -0
- package/dist/oficlinic/appointments/client.d.ts +27 -0
- package/dist/oficlinic/appointments/client.js +18 -0
- package/dist/oficlinic/appointments/index.d.ts +5 -0
- package/dist/oficlinic/appointments/index.js +4 -0
- package/dist/oficlinic/appointments/models.d.ts +191 -0
- package/dist/oficlinic/appointments/models.js +3 -0
- package/dist/oficlinic/client.d.ts +23 -0
- package/dist/oficlinic/client.js +40 -0
- package/dist/oficlinic/connections/client.d.ts +45 -0
- package/dist/oficlinic/connections/client.js +25 -0
- package/dist/oficlinic/connections/index.d.ts +5 -0
- package/dist/oficlinic/connections/index.js +4 -0
- package/dist/oficlinic/connections/models.d.ts +40 -0
- package/dist/oficlinic/connections/models.js +10 -0
- package/dist/oficlinic/index.d.ts +5 -0
- package/dist/oficlinic/index.js +4 -0
- package/dist/oficlinic/models.d.ts +249 -0
- package/dist/oficlinic/models.js +3 -0
- package/dist/oficlinic/patients/client.d.ts +26 -0
- package/dist/oficlinic/patients/client.js +19 -0
- package/dist/oficlinic/patients/index.d.ts +5 -0
- package/dist/oficlinic/patients/index.js +4 -0
- package/dist/oficlinic/patients/models.d.ts +128 -0
- package/dist/oficlinic/patients/models.js +13 -0
- package/dist/oficlinic/payers/client.d.ts +43 -0
- package/dist/oficlinic/payers/client.js +18 -0
- package/dist/oficlinic/payers/index.d.ts +5 -0
- package/dist/oficlinic/payers/index.js +4 -0
- package/dist/oficlinic/payers/models.d.ts +138 -0
- package/dist/oficlinic/payers/models.js +3 -0
- package/dist/oficlinic/professionals/client.d.ts +43 -0
- package/dist/oficlinic/professionals/client.js +18 -0
- package/dist/oficlinic/professionals/index.d.ts +5 -0
- package/dist/oficlinic/professionals/index.js +4 -0
- package/dist/oficlinic/professionals/models.d.ts +124 -0
- package/dist/oficlinic/professionals/models.js +3 -0
- package/dist/oficlinic/services/client.d.ts +43 -0
- package/dist/oficlinic/services/client.js +18 -0
- package/dist/oficlinic/services/index.d.ts +5 -0
- package/dist/oficlinic/services/index.js +4 -0
- package/dist/oficlinic/services/models.d.ts +140 -0
- package/dist/oficlinic/services/models.js +3 -0
- package/dist/sanitas/affiliations/client.d.ts +22 -0
- package/dist/sanitas/affiliations/client.js +19 -0
- package/dist/sanitas/affiliations/index.d.ts +5 -0
- package/dist/sanitas/affiliations/index.js +4 -0
- package/dist/sanitas/affiliations/models.d.ts +86 -0
- package/dist/sanitas/affiliations/models.js +9 -0
- package/dist/sanitas/client.d.ts +15 -0
- package/dist/sanitas/client.js +20 -0
- package/dist/sanitas/connections/client.d.ts +25 -0
- package/dist/sanitas/connections/client.js +18 -0
- package/dist/sanitas/connections/index.d.ts +5 -0
- package/dist/sanitas/connections/index.js +4 -0
- package/dist/sanitas/connections/models.d.ts +74 -0
- package/dist/sanitas/connections/models.js +9 -0
- package/dist/sanitas/index.d.ts +5 -0
- package/dist/sanitas/index.js +4 -0
- package/dist/sanitas/models.d.ts +220 -0
- package/dist/sanitas/models.js +3 -0
- package/package.json +3 -3
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// Code generated by forge. DO NOT EDIT.
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
import { Transport, } from "../../_/index.js";
|
|
4
|
+
import { SanitasSanitasAffiliationResponseCodec, } 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/sanitas/affiliations/lookup",
|
|
16
|
+
body: "flat",
|
|
17
|
+
response: SanitasSanitasAffiliationResponseCodec,
|
|
18
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "413": true, "415": true, "422": 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 { SanitasLookupAffiliationBadGatewayError, SanitasLookupAffiliationBadGatewayFailure, SanitasLookupAffiliationBody, SanitasLookupAffiliationConflictError, SanitasLookupAffiliationConflictFailure, SanitasLookupAffiliationServiceUnavailableError, SanitasLookupAffiliationServiceUnavailableFailure, SanitasLookupAffiliationTooManyRequestsError, SanitasLookupAffiliationTooManyRequestsFailure, SanitasSanitasAffiliation, SanitasSanitasAffiliationResponse, } from "./models.js";
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import type { OutcomeUnknownFailure, RateLimitedFailure, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
+
import type { SanitasConnectionRequiredFailure, SanitasLoginCoolingDownFailure, SanitasPatientUnresolvedFailure, SanitasProviderChallengeRequiredFailure, SanitasProviderProtocolChangedFailure, SanitasProviderSessionExpiredFailure, SanitasProviderUnavailableFailure } from "../models.js";
|
|
3
|
+
/**
|
|
4
|
+
* A failed answer.
|
|
5
|
+
*/
|
|
6
|
+
export interface SanitasLookupAffiliationBadGatewayError {
|
|
7
|
+
data: null;
|
|
8
|
+
error: SanitasLookupAffiliationBadGatewayFailure;
|
|
9
|
+
/**
|
|
10
|
+
* What every answer carries besides its data or error.
|
|
11
|
+
*/
|
|
12
|
+
metadata: ResponseMetadata;
|
|
13
|
+
success: false;
|
|
14
|
+
}
|
|
15
|
+
export type SanitasLookupAffiliationBadGatewayFailure = OutcomeUnknownFailure | SanitasProviderProtocolChangedFailure;
|
|
16
|
+
export interface SanitasLookupAffiliationBody {
|
|
17
|
+
company?: "sanitas" | "colsanitas" | "medisanitas";
|
|
18
|
+
connectionId?: string;
|
|
19
|
+
documentNumber: string;
|
|
20
|
+
documentType: "AS" | "CC" | "CD" | "CE" | "CN" | "MS" | "NI" | "NU" | "PA" | "PD" | "PE" | "PT" | "RC" | "SC" | "TI";
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* A failed answer.
|
|
24
|
+
*/
|
|
25
|
+
export interface SanitasLookupAffiliationConflictError {
|
|
26
|
+
data: null;
|
|
27
|
+
error: SanitasLookupAffiliationConflictFailure;
|
|
28
|
+
/**
|
|
29
|
+
* What every answer carries besides its data or error.
|
|
30
|
+
*/
|
|
31
|
+
metadata: ResponseMetadata;
|
|
32
|
+
success: false;
|
|
33
|
+
}
|
|
34
|
+
export type SanitasLookupAffiliationConflictFailure = SanitasConnectionRequiredFailure | SanitasProviderSessionExpiredFailure | SanitasPatientUnresolvedFailure;
|
|
35
|
+
/**
|
|
36
|
+
* A failed answer.
|
|
37
|
+
*/
|
|
38
|
+
export interface SanitasLookupAffiliationServiceUnavailableError {
|
|
39
|
+
data: null;
|
|
40
|
+
error: SanitasLookupAffiliationServiceUnavailableFailure;
|
|
41
|
+
/**
|
|
42
|
+
* What every answer carries besides its data or error.
|
|
43
|
+
*/
|
|
44
|
+
metadata: ResponseMetadata;
|
|
45
|
+
success: false;
|
|
46
|
+
}
|
|
47
|
+
export type SanitasLookupAffiliationServiceUnavailableFailure = UpstreamUnavailableFailure | SanitasProviderUnavailableFailure | SanitasProviderChallengeRequiredFailure;
|
|
48
|
+
/**
|
|
49
|
+
* A failed answer.
|
|
50
|
+
*/
|
|
51
|
+
export interface SanitasLookupAffiliationTooManyRequestsError {
|
|
52
|
+
data: null;
|
|
53
|
+
error: SanitasLookupAffiliationTooManyRequestsFailure;
|
|
54
|
+
/**
|
|
55
|
+
* What every answer carries besides its data or error.
|
|
56
|
+
*/
|
|
57
|
+
metadata: ResponseMetadata;
|
|
58
|
+
success: false;
|
|
59
|
+
}
|
|
60
|
+
export type SanitasLookupAffiliationTooManyRequestsFailure = RateLimitedFailure | SanitasLoginCoolingDownFailure;
|
|
61
|
+
export interface SanitasSanitasAffiliation {
|
|
62
|
+
active: boolean | null;
|
|
63
|
+
affiliateType: string | null;
|
|
64
|
+
category: string | null;
|
|
65
|
+
checkedAt: Temporal.Instant;
|
|
66
|
+
company: "sanitas" | "colsanitas" | "medisanitas";
|
|
67
|
+
contractNumber: string | null;
|
|
68
|
+
documentNumber: string;
|
|
69
|
+
documentType: "AS" | "CC" | "CD" | "CE" | "CN" | "MS" | "NI" | "NU" | "PA" | "PD" | "PE" | "PT" | "RC" | "SC" | "TI";
|
|
70
|
+
plan: string | null;
|
|
71
|
+
status: string;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* A successful answer.
|
|
75
|
+
*/
|
|
76
|
+
export interface SanitasSanitasAffiliationResponse {
|
|
77
|
+
data: SanitasSanitasAffiliation;
|
|
78
|
+
error: null;
|
|
79
|
+
/**
|
|
80
|
+
* What every answer carries besides its data or error.
|
|
81
|
+
*/
|
|
82
|
+
metadata: ResponseMetadata;
|
|
83
|
+
success: true;
|
|
84
|
+
}
|
|
85
|
+
export declare const SanitasSanitasAffiliationCodec: import("../../_/codec.js").Codec;
|
|
86
|
+
export declare const SanitasSanitasAffiliationResponseCodec: 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 SanitasSanitasAffiliationCodec = object([
|
|
5
|
+
["checkedAt", null, instant],
|
|
6
|
+
]);
|
|
7
|
+
export const SanitasSanitasAffiliationResponseCodec = object([
|
|
8
|
+
["data", null, () => SanitasSanitasAffiliationCodec],
|
|
9
|
+
]);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type BaseClientOptions, Transport } from "../_/index.js";
|
|
2
|
+
import { type Client as AffiliationsClient } from "./affiliations/client.js";
|
|
3
|
+
import { type Client as ConnectionsClient } from "./connections/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 affiliations: AffiliationsClient;
|
|
12
|
+
readonly connections: ConnectionsClient;
|
|
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 bindAffiliations, } from "./affiliations/client.js";
|
|
5
|
+
import { bind as bindConnections, } from "./connections/client.js";
|
|
6
|
+
export function createClient(options) {
|
|
7
|
+
return bind(new Transport(options));
|
|
8
|
+
}
|
|
9
|
+
export function bind(transport) {
|
|
10
|
+
let affiliationsClient;
|
|
11
|
+
let connectionsClient;
|
|
12
|
+
return {
|
|
13
|
+
get affiliations() {
|
|
14
|
+
return (affiliationsClient ??= bindAffiliations(transport));
|
|
15
|
+
},
|
|
16
|
+
get connections() {
|
|
17
|
+
return (connectionsClient ??= bindConnections(transport));
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
+
import { type SanitasSanitasConnectionResponse } 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
|
+
* Get connection
|
|
12
|
+
*
|
|
13
|
+
* Read safe status without contacting the provider.
|
|
14
|
+
*/
|
|
15
|
+
get(request: GetRequest, options?: RequestOptions): Promise<GetResponse>;
|
|
16
|
+
}
|
|
17
|
+
export declare function createClient(options: ClientOptions): Client;
|
|
18
|
+
export declare function bind(transport: Transport): Client;
|
|
19
|
+
export interface GetRequest {
|
|
20
|
+
/**
|
|
21
|
+
* The connection id.
|
|
22
|
+
*/
|
|
23
|
+
connectionId: string;
|
|
24
|
+
}
|
|
25
|
+
export type GetResponse = SanitasSanitasConnectionResponse;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// Code generated by forge. DO NOT EDIT.
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
import { Transport, } from "../../_/index.js";
|
|
4
|
+
import { SanitasSanitasConnectionResponseCodec, } from "./models.js";
|
|
5
|
+
export function createClient(options) {
|
|
6
|
+
return bind(new Transport(options));
|
|
7
|
+
}
|
|
8
|
+
export function bind(transport) {
|
|
9
|
+
return {
|
|
10
|
+
get: (request, options) => transport.send(GetOperation, request, options),
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
const GetOperation = {
|
|
14
|
+
method: "GET",
|
|
15
|
+
route: "/v1/sanitas/connections/{connectionId}",
|
|
16
|
+
response: SanitasSanitasConnectionResponseCodec,
|
|
17
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "422": 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 { SanitasGetConnectionBadGatewayError, SanitasGetConnectionBadGatewayFailure, SanitasGetConnectionConflictError, SanitasGetConnectionConflictFailure, SanitasGetConnectionServiceUnavailableError, SanitasGetConnectionServiceUnavailableFailure, SanitasGetConnectionTooManyRequestsError, SanitasGetConnectionTooManyRequestsFailure, SanitasSanitasConnection, SanitasSanitasConnectionResponse, } from "./models.js";
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import type { OutcomeUnknownFailure, RateLimitedFailure, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
+
import type { SanitasConnectionRequiredFailure, SanitasLoginCoolingDownFailure, SanitasPatientUnresolvedFailure, SanitasProviderChallengeRequiredFailure, SanitasProviderProtocolChangedFailure, SanitasProviderSessionExpiredFailure, SanitasProviderUnavailableFailure } from "../models.js";
|
|
3
|
+
/**
|
|
4
|
+
* A failed answer.
|
|
5
|
+
*/
|
|
6
|
+
export interface SanitasGetConnectionBadGatewayError {
|
|
7
|
+
data: null;
|
|
8
|
+
error: SanitasGetConnectionBadGatewayFailure;
|
|
9
|
+
/**
|
|
10
|
+
* What every answer carries besides its data or error.
|
|
11
|
+
*/
|
|
12
|
+
metadata: ResponseMetadata;
|
|
13
|
+
success: false;
|
|
14
|
+
}
|
|
15
|
+
export type SanitasGetConnectionBadGatewayFailure = OutcomeUnknownFailure | SanitasProviderProtocolChangedFailure;
|
|
16
|
+
/**
|
|
17
|
+
* A failed answer.
|
|
18
|
+
*/
|
|
19
|
+
export interface SanitasGetConnectionConflictError {
|
|
20
|
+
data: null;
|
|
21
|
+
error: SanitasGetConnectionConflictFailure;
|
|
22
|
+
/**
|
|
23
|
+
* What every answer carries besides its data or error.
|
|
24
|
+
*/
|
|
25
|
+
metadata: ResponseMetadata;
|
|
26
|
+
success: false;
|
|
27
|
+
}
|
|
28
|
+
export type SanitasGetConnectionConflictFailure = SanitasConnectionRequiredFailure | SanitasProviderSessionExpiredFailure | SanitasPatientUnresolvedFailure;
|
|
29
|
+
/**
|
|
30
|
+
* A failed answer.
|
|
31
|
+
*/
|
|
32
|
+
export interface SanitasGetConnectionServiceUnavailableError {
|
|
33
|
+
data: null;
|
|
34
|
+
error: SanitasGetConnectionServiceUnavailableFailure;
|
|
35
|
+
/**
|
|
36
|
+
* What every answer carries besides its data or error.
|
|
37
|
+
*/
|
|
38
|
+
metadata: ResponseMetadata;
|
|
39
|
+
success: false;
|
|
40
|
+
}
|
|
41
|
+
export type SanitasGetConnectionServiceUnavailableFailure = UpstreamUnavailableFailure | SanitasProviderUnavailableFailure | SanitasProviderChallengeRequiredFailure;
|
|
42
|
+
/**
|
|
43
|
+
* A failed answer.
|
|
44
|
+
*/
|
|
45
|
+
export interface SanitasGetConnectionTooManyRequestsError {
|
|
46
|
+
data: null;
|
|
47
|
+
error: SanitasGetConnectionTooManyRequestsFailure;
|
|
48
|
+
/**
|
|
49
|
+
* What every answer carries besides its data or error.
|
|
50
|
+
*/
|
|
51
|
+
metadata: ResponseMetadata;
|
|
52
|
+
success: false;
|
|
53
|
+
}
|
|
54
|
+
export type SanitasGetConnectionTooManyRequestsFailure = RateLimitedFailure | SanitasLoginCoolingDownFailure;
|
|
55
|
+
export interface SanitasSanitasConnection {
|
|
56
|
+
errorCode: string | null;
|
|
57
|
+
id: string;
|
|
58
|
+
status: "active" | "failed";
|
|
59
|
+
verifiedAt: Temporal.Instant | null;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* A successful answer.
|
|
63
|
+
*/
|
|
64
|
+
export interface SanitasSanitasConnectionResponse {
|
|
65
|
+
data: SanitasSanitasConnection;
|
|
66
|
+
error: null;
|
|
67
|
+
/**
|
|
68
|
+
* What every answer carries besides its data or error.
|
|
69
|
+
*/
|
|
70
|
+
metadata: ResponseMetadata;
|
|
71
|
+
success: true;
|
|
72
|
+
}
|
|
73
|
+
export declare const SanitasSanitasConnectionCodec: import("../../_/codec.js").Codec;
|
|
74
|
+
export declare const SanitasSanitasConnectionResponseCodec: 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 SanitasSanitasConnectionCodec = object([
|
|
5
|
+
["verifiedAt", null, instant],
|
|
6
|
+
]);
|
|
7
|
+
export const SanitasSanitasConnectionResponseCodec = object([
|
|
8
|
+
["data", null, () => SanitasSanitasConnectionCodec],
|
|
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 { SanitasConnectionNotFoundError, SanitasConnectionNotFoundFailure, SanitasConnectionRequiredFailure, SanitasCredentialsRejectedError, SanitasCredentialsRejectedFailure, SanitasLoginCoolingDownFailure, SanitasPatientUnresolvedFailure, SanitasProviderChallengeRequiredFailure, SanitasProviderProtocolChangedFailure, SanitasProviderSessionExpiredFailure, SanitasProviderUnavailableFailure, } from "./models.js";
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
import type { Empty, ResponseMetadata } from "../models.js";
|
|
2
|
+
/**
|
|
3
|
+
* A failed answer.
|
|
4
|
+
*/
|
|
5
|
+
export interface SanitasConnectionNotFoundError {
|
|
6
|
+
data: null;
|
|
7
|
+
/**
|
|
8
|
+
* The connection is unavailable in this organization.
|
|
9
|
+
*/
|
|
10
|
+
error: SanitasConnectionNotFoundFailure;
|
|
11
|
+
/**
|
|
12
|
+
* What every answer carries besides its data or error.
|
|
13
|
+
*/
|
|
14
|
+
metadata: ResponseMetadata;
|
|
15
|
+
success: false;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* The connection is unavailable in this organization.
|
|
19
|
+
*/
|
|
20
|
+
export interface SanitasConnectionNotFoundFailure {
|
|
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
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Select an active Sanitas connection.
|
|
40
|
+
*/
|
|
41
|
+
export interface SanitasConnectionRequiredFailure {
|
|
42
|
+
/**
|
|
43
|
+
* The failure code, stable across releases.
|
|
44
|
+
*/
|
|
45
|
+
code: "CONNECTION_REQUIRED";
|
|
46
|
+
/**
|
|
47
|
+
* No fields.
|
|
48
|
+
*/
|
|
49
|
+
data: Empty;
|
|
50
|
+
/**
|
|
51
|
+
* What went wrong, for people; it never contains input values.
|
|
52
|
+
*/
|
|
53
|
+
message: string;
|
|
54
|
+
/**
|
|
55
|
+
* Whether repeating the same request may succeed.
|
|
56
|
+
*/
|
|
57
|
+
retryable: false;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* A failed answer.
|
|
61
|
+
*/
|
|
62
|
+
export interface SanitasCredentialsRejectedError {
|
|
63
|
+
data: null;
|
|
64
|
+
/**
|
|
65
|
+
* The provider refused these credentials.
|
|
66
|
+
*/
|
|
67
|
+
error: SanitasCredentialsRejectedFailure;
|
|
68
|
+
/**
|
|
69
|
+
* What every answer carries besides its data or error.
|
|
70
|
+
*/
|
|
71
|
+
metadata: ResponseMetadata;
|
|
72
|
+
success: false;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* The provider refused these credentials.
|
|
76
|
+
*/
|
|
77
|
+
export interface SanitasCredentialsRejectedFailure {
|
|
78
|
+
/**
|
|
79
|
+
* The failure code, stable across releases.
|
|
80
|
+
*/
|
|
81
|
+
code: "CREDENTIALS_REJECTED";
|
|
82
|
+
/**
|
|
83
|
+
* No fields.
|
|
84
|
+
*/
|
|
85
|
+
data: Empty;
|
|
86
|
+
/**
|
|
87
|
+
* What went wrong, for people; it never contains input values.
|
|
88
|
+
*/
|
|
89
|
+
message: string;
|
|
90
|
+
/**
|
|
91
|
+
* Whether repeating the same request may succeed.
|
|
92
|
+
*/
|
|
93
|
+
retryable: false;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Provider authentication is temporarily paused.
|
|
97
|
+
*/
|
|
98
|
+
export interface SanitasLoginCoolingDownFailure {
|
|
99
|
+
/**
|
|
100
|
+
* The failure code, stable across releases.
|
|
101
|
+
*/
|
|
102
|
+
code: "LOGIN_COOLING_DOWN";
|
|
103
|
+
/**
|
|
104
|
+
* No fields.
|
|
105
|
+
*/
|
|
106
|
+
data: Empty;
|
|
107
|
+
/**
|
|
108
|
+
* What went wrong, for people; it never contains input values.
|
|
109
|
+
*/
|
|
110
|
+
message: string;
|
|
111
|
+
/**
|
|
112
|
+
* Whether repeating the same request may succeed.
|
|
113
|
+
*/
|
|
114
|
+
retryable: false;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* The provider did not return one matching contract. Coverage is unknown.
|
|
118
|
+
*/
|
|
119
|
+
export interface SanitasPatientUnresolvedFailure {
|
|
120
|
+
/**
|
|
121
|
+
* The failure code, stable across releases.
|
|
122
|
+
*/
|
|
123
|
+
code: "PATIENT_UNRESOLVED";
|
|
124
|
+
/**
|
|
125
|
+
* No fields.
|
|
126
|
+
*/
|
|
127
|
+
data: Empty;
|
|
128
|
+
/**
|
|
129
|
+
* What went wrong, for people; it never contains input values.
|
|
130
|
+
*/
|
|
131
|
+
message: string;
|
|
132
|
+
/**
|
|
133
|
+
* Whether repeating the same request may succeed.
|
|
134
|
+
*/
|
|
135
|
+
retryable: false;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* The provider requires an interactive challenge. Coverage is unknown.
|
|
139
|
+
*/
|
|
140
|
+
export interface SanitasProviderChallengeRequiredFailure {
|
|
141
|
+
/**
|
|
142
|
+
* The failure code, stable across releases.
|
|
143
|
+
*/
|
|
144
|
+
code: "PROVIDER_CHALLENGE_REQUIRED";
|
|
145
|
+
/**
|
|
146
|
+
* No fields.
|
|
147
|
+
*/
|
|
148
|
+
data: Empty;
|
|
149
|
+
/**
|
|
150
|
+
* What went wrong, for people; it never contains input values.
|
|
151
|
+
*/
|
|
152
|
+
message: string;
|
|
153
|
+
/**
|
|
154
|
+
* Whether repeating the same request may succeed.
|
|
155
|
+
*/
|
|
156
|
+
retryable: false;
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* The provider response could not be verified.
|
|
160
|
+
*/
|
|
161
|
+
export interface SanitasProviderProtocolChangedFailure {
|
|
162
|
+
/**
|
|
163
|
+
* The failure code, stable across releases.
|
|
164
|
+
*/
|
|
165
|
+
code: "PROVIDER_PROTOCOL_CHANGED";
|
|
166
|
+
/**
|
|
167
|
+
* No fields.
|
|
168
|
+
*/
|
|
169
|
+
data: Empty;
|
|
170
|
+
/**
|
|
171
|
+
* What went wrong, for people; it never contains input values.
|
|
172
|
+
*/
|
|
173
|
+
message: string;
|
|
174
|
+
/**
|
|
175
|
+
* Whether repeating the same request may succeed.
|
|
176
|
+
*/
|
|
177
|
+
retryable: false;
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* The provider session requires verification.
|
|
181
|
+
*/
|
|
182
|
+
export interface SanitasProviderSessionExpiredFailure {
|
|
183
|
+
/**
|
|
184
|
+
* The failure code, stable across releases.
|
|
185
|
+
*/
|
|
186
|
+
code: "PROVIDER_SESSION_EXPIRED";
|
|
187
|
+
/**
|
|
188
|
+
* No fields.
|
|
189
|
+
*/
|
|
190
|
+
data: Empty;
|
|
191
|
+
/**
|
|
192
|
+
* What went wrong, for people; it never contains input values.
|
|
193
|
+
*/
|
|
194
|
+
message: string;
|
|
195
|
+
/**
|
|
196
|
+
* Whether repeating the same request may succeed.
|
|
197
|
+
*/
|
|
198
|
+
retryable: false;
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
* The provider is temporarily unavailable. Coverage is unknown.
|
|
202
|
+
*/
|
|
203
|
+
export interface SanitasProviderUnavailableFailure {
|
|
204
|
+
/**
|
|
205
|
+
* The failure code, stable across releases.
|
|
206
|
+
*/
|
|
207
|
+
code: "PROVIDER_UNAVAILABLE";
|
|
208
|
+
/**
|
|
209
|
+
* No fields.
|
|
210
|
+
*/
|
|
211
|
+
data: Empty;
|
|
212
|
+
/**
|
|
213
|
+
* What went wrong, for people; it never contains input values.
|
|
214
|
+
*/
|
|
215
|
+
message: string;
|
|
216
|
+
/**
|
|
217
|
+
* Whether repeating the same request may succeed.
|
|
218
|
+
*/
|
|
219
|
+
retryable: true;
|
|
220
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arbol-ai/sdk",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.37.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.20261105.
|
|
62
|
-
"sha256": "
|
|
61
|
+
"release": "1.20261105.70400",
|
|
62
|
+
"sha256": "70f602e01b33d1f71228d9b5a4b55090e25d2a548544b3d8b5bd5565e8f83efc"
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
}
|