@arbol-ai/sdk 5.14.0 → 5.16.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/client.d.ts +4 -0
- package/dist/account/client.js +10 -0
- package/dist/account/colombianRecords/client.d.ts +21 -0
- package/dist/account/colombianRecords/client.js +18 -0
- package/dist/account/colombianRecords/index.d.ts +5 -0
- package/dist/account/colombianRecords/index.js +4 -0
- package/dist/account/colombianRecords/models.d.ts +5 -0
- package/dist/account/colombianRecords/models.js +3 -0
- package/dist/account/connections/client.d.ts +4 -0
- package/dist/account/connections/client.js +1 -1
- package/dist/account/connections/models.d.ts +4 -0
- package/dist/account/index.d.ts +1 -1
- package/dist/account/models.d.ts +21 -0
- package/dist/account/permissions/models.d.ts +1 -1
- package/dist/account/personalConsents/client.d.ts +22 -0
- package/dist/account/personalConsents/client.js +18 -0
- package/dist/account/personalConsents/index.d.ts +5 -0
- package/dist/account/personalConsents/index.js +4 -0
- package/dist/account/personalConsents/models.d.ts +5 -0
- package/dist/account/personalConsents/models.js +3 -0
- package/dist/saludTotal/invoices/client.d.ts +4 -3
- package/dist/saludTotal/invoices/index.d.ts +1 -1
- package/dist/saludTotal/invoices/models.d.ts +30 -4
- package/package.json +3 -3
package/dist/account/client.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { type BaseClientOptions, Transport } from "../_/index.js";
|
|
|
2
2
|
import { type Client as ApiKeysClient } from "./apiKeys/client.js";
|
|
3
3
|
import { type Client as BillingClient } from "./billing/client.js";
|
|
4
4
|
import { type Client as BillingProfilesClient } from "./billingProfiles/client.js";
|
|
5
|
+
import { type Client as ColombianRecordsClient } from "./colombianRecords/client.js";
|
|
5
6
|
import { type Client as ConnectionsClient } from "./connections/client.js";
|
|
6
7
|
import { type Client as InvitationsClient } from "./invitations/client.js";
|
|
7
8
|
import { type Client as InvoiceDocumentsClient } from "./invoiceDocuments/client.js";
|
|
@@ -11,6 +12,7 @@ import { type Client as OrganizationClient } from "./organization/client.js";
|
|
|
11
12
|
import { type Client as OrganizationsClient } from "./organizations/client.js";
|
|
12
13
|
import { type Client as PaymentsClient } from "./payments/client.js";
|
|
13
14
|
import { type Client as PermissionsClient } from "./permissions/client.js";
|
|
15
|
+
import { type Client as PersonalConsentsClient } from "./personalConsents/client.js";
|
|
14
16
|
import { type Client as RolesClient } from "./roles/client.js";
|
|
15
17
|
import { type Client as UsageClient } from "./usage/client.js";
|
|
16
18
|
import { type Client as UsageSummaryClient } from "./usageSummary/client.js";
|
|
@@ -25,6 +27,7 @@ export interface Client {
|
|
|
25
27
|
readonly apiKeys: ApiKeysClient;
|
|
26
28
|
readonly billing: BillingClient;
|
|
27
29
|
readonly billingProfiles: BillingProfilesClient;
|
|
30
|
+
readonly colombianRecords: ColombianRecordsClient;
|
|
28
31
|
readonly connections: ConnectionsClient;
|
|
29
32
|
readonly invitations: InvitationsClient;
|
|
30
33
|
readonly invoiceDocuments: InvoiceDocumentsClient;
|
|
@@ -34,6 +37,7 @@ export interface Client {
|
|
|
34
37
|
readonly organizations: OrganizationsClient;
|
|
35
38
|
readonly payments: PaymentsClient;
|
|
36
39
|
readonly permissions: PermissionsClient;
|
|
40
|
+
readonly personalConsents: PersonalConsentsClient;
|
|
37
41
|
readonly roles: RolesClient;
|
|
38
42
|
readonly usage: UsageClient;
|
|
39
43
|
readonly usageSummary: UsageSummaryClient;
|
package/dist/account/client.js
CHANGED
|
@@ -4,6 +4,7 @@ import { Transport } from "../_/index.js";
|
|
|
4
4
|
import { bind as bindApiKeys, } from "./apiKeys/client.js";
|
|
5
5
|
import { bind as bindBilling, } from "./billing/client.js";
|
|
6
6
|
import { bind as bindBillingProfiles, } from "./billingProfiles/client.js";
|
|
7
|
+
import { bind as bindColombianRecords, } from "./colombianRecords/client.js";
|
|
7
8
|
import { bind as bindConnections, } from "./connections/client.js";
|
|
8
9
|
import { bind as bindInvitations, } from "./invitations/client.js";
|
|
9
10
|
import { bind as bindInvoiceDocuments, } from "./invoiceDocuments/client.js";
|
|
@@ -13,6 +14,7 @@ import { bind as bindOrganization, } from "./organization/client.js";
|
|
|
13
14
|
import { bind as bindOrganizations, } from "./organizations/client.js";
|
|
14
15
|
import { bind as bindPayments, } from "./payments/client.js";
|
|
15
16
|
import { bind as bindPermissions, } from "./permissions/client.js";
|
|
17
|
+
import { bind as bindPersonalConsents, } from "./personalConsents/client.js";
|
|
16
18
|
import { bind as bindRoles, } from "./roles/client.js";
|
|
17
19
|
import { bind as bindUsage, } from "./usage/client.js";
|
|
18
20
|
import { bind as bindUsageSummary, } from "./usageSummary/client.js";
|
|
@@ -24,6 +26,7 @@ export function bind(transport) {
|
|
|
24
26
|
let apiKeysClient;
|
|
25
27
|
let billingClient;
|
|
26
28
|
let billingProfilesClient;
|
|
29
|
+
let colombianRecordsClient;
|
|
27
30
|
let connectionsClient;
|
|
28
31
|
let invitationsClient;
|
|
29
32
|
let invoiceDocumentsClient;
|
|
@@ -33,6 +36,7 @@ export function bind(transport) {
|
|
|
33
36
|
let organizationsClient;
|
|
34
37
|
let paymentsClient;
|
|
35
38
|
let permissionsClient;
|
|
39
|
+
let personalConsentsClient;
|
|
36
40
|
let rolesClient;
|
|
37
41
|
let usageClient;
|
|
38
42
|
let usageSummaryClient;
|
|
@@ -47,6 +51,9 @@ export function bind(transport) {
|
|
|
47
51
|
get billingProfiles() {
|
|
48
52
|
return (billingProfilesClient ??= bindBillingProfiles(transport));
|
|
49
53
|
},
|
|
54
|
+
get colombianRecords() {
|
|
55
|
+
return (colombianRecordsClient ??= bindColombianRecords(transport));
|
|
56
|
+
},
|
|
50
57
|
get connections() {
|
|
51
58
|
return (connectionsClient ??= bindConnections(transport));
|
|
52
59
|
},
|
|
@@ -74,6 +81,9 @@ export function bind(transport) {
|
|
|
74
81
|
get permissions() {
|
|
75
82
|
return (permissionsClient ??= bindPermissions(transport));
|
|
76
83
|
},
|
|
84
|
+
get personalConsents() {
|
|
85
|
+
return (personalConsentsClient ??= bindPersonalConsents(transport));
|
|
86
|
+
},
|
|
77
87
|
get roles() {
|
|
78
88
|
return (rolesClient ??= bindRoles(transport));
|
|
79
89
|
},
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
+
import type { AccountColombiaResourceEnvelopeResponse } from "../models.js";
|
|
3
|
+
import type { AccountConsultIncludedRecordBody } from "./models.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
|
+
/**
|
|
12
|
+
* Consult an included Colombian source
|
|
13
|
+
*
|
|
14
|
+
* Run one included consultation in the signed-in organization.
|
|
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 = AccountConsultIncludedRecordBody;
|
|
21
|
+
export type LookupResponse = AccountColombiaResourceEnvelopeResponse;
|
|
@@ -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
|
+
lookup: (request, options) => transport.send(LookupOperation, request, options),
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
const LookupOperation = {
|
|
13
|
+
method: "POST",
|
|
14
|
+
route: "/v1/account/colombian-records/lookup",
|
|
15
|
+
body: "flat",
|
|
16
|
+
response: null,
|
|
17
|
+
errors: { "400": true, "401": true, "403": true, "413": true, "415": 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, LookupRequest, LookupResponse, } from "./client.js";
|
|
5
|
+
export type { AccountConsultIncludedRecordBody } from "./models.js";
|
|
@@ -12,7 +12,7 @@ export function bind(transport) {
|
|
|
12
12
|
const ListOperation = {
|
|
13
13
|
method: "GET",
|
|
14
14
|
route: "/v1/account/connections",
|
|
15
|
-
query: { cursor: "cursor", direction: "direction", limit: "limit" },
|
|
15
|
+
query: { cursor: "cursor", direction: "direction", limit: "limit", tag: "tag" },
|
|
16
16
|
response: null,
|
|
17
17
|
errors: { "400": true, "401": true, "403": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
18
18
|
};
|
|
@@ -48,6 +48,10 @@ export interface AccountConnection {
|
|
|
48
48
|
*/
|
|
49
49
|
status: "active" | "disabled" | "failed";
|
|
50
50
|
summary: string | null;
|
|
51
|
+
/**
|
|
52
|
+
* The workflow labels assigned to this connection.
|
|
53
|
+
*/
|
|
54
|
+
tags?: ("postconsulta" | "facturacion")[];
|
|
51
55
|
tools: {
|
|
52
56
|
capabilities?: {
|
|
53
57
|
match: "any" | "all";
|
package/dist/account/index.d.ts
CHANGED
|
@@ -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, } from "./client.js";
|
|
5
|
-
export type { AccountAccountNotConfiguredFailure, AccountBillingRecordNotFoundError, AccountBillingRecordNotFoundFailure, AccountBillingRejectedError, AccountBillingRejectedFailure, AccountBillingUnavailableFailure, AccountIdentityRejectedError, AccountIdentityRejectedFailure, AccountIdentityUnavailableFailure, AccountMemberProtectedFailure, AccountProductRole, AccountRoleNotAssignableFailure, } from "./models.js";
|
|
5
|
+
export type { AccountAccountNotConfiguredFailure, AccountBillingRecordNotFoundError, AccountBillingRecordNotFoundFailure, AccountBillingRejectedError, AccountBillingRejectedFailure, AccountBillingUnavailableFailure, AccountColombiaResourceEnvelope, AccountColombiaResourceEnvelopeResponse, AccountIdentityRejectedError, AccountIdentityRejectedFailure, AccountIdentityUnavailableFailure, AccountMemberProtectedFailure, AccountProductRole, AccountRoleNotAssignableFailure, } from "./models.js";
|
package/dist/account/models.d.ts
CHANGED
|
@@ -113,6 +113,27 @@ export interface AccountBillingUnavailableFailure {
|
|
|
113
113
|
*/
|
|
114
114
|
retryable: true;
|
|
115
115
|
}
|
|
116
|
+
export interface AccountColombiaResourceEnvelope {
|
|
117
|
+
result: {
|
|
118
|
+
[key: string]: unknown;
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* A successful answer.
|
|
123
|
+
*/
|
|
124
|
+
export interface AccountColombiaResourceEnvelopeResponse {
|
|
125
|
+
/**
|
|
126
|
+
* The result from the selected Colombian source or the holder’s personal
|
|
127
|
+
* consent receipt.
|
|
128
|
+
*/
|
|
129
|
+
data: AccountColombiaResourceEnvelope;
|
|
130
|
+
error: null;
|
|
131
|
+
/**
|
|
132
|
+
* What every answer carries besides its data or error.
|
|
133
|
+
*/
|
|
134
|
+
metadata: ResponseMetadata;
|
|
135
|
+
success: true;
|
|
136
|
+
}
|
|
116
137
|
/**
|
|
117
138
|
* A failed answer.
|
|
118
139
|
*/
|
|
@@ -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" | "nueva-eps" | "account";
|
|
25
|
+
group: "raiz" | "agenda" | "ambar" | "sura" | "visoft" | "salud-total" | "nueva-eps" | "account";
|
|
26
26
|
value: string;
|
|
27
27
|
}
|
|
28
28
|
export interface AccountPermissionPage {
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
+
import type { AccountColombiaResourceEnvelopeResponse } from "../models.js";
|
|
3
|
+
import type { AccountPrepareColombiaConsentBody } from "./models.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
|
+
/**
|
|
12
|
+
* Prepare a personal Colombian Police declaration
|
|
13
|
+
*
|
|
14
|
+
* Send the holder’s explicitly accepted document and receive the matching
|
|
15
|
+
* personal-use declaration.
|
|
16
|
+
*/
|
|
17
|
+
prepare(request: PrepareRequest, options?: RequestOptions): Promise<PrepareResponse>;
|
|
18
|
+
}
|
|
19
|
+
export declare function createClient(options: ClientOptions): Client;
|
|
20
|
+
export declare function bind(transport: Transport): Client;
|
|
21
|
+
export type PrepareRequest = AccountPrepareColombiaConsentBody;
|
|
22
|
+
export type PrepareResponse = AccountColombiaResourceEnvelopeResponse;
|
|
@@ -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
|
+
prepare: (request, options) => transport.send(PrepareOperation, request, options),
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
const PrepareOperation = {
|
|
13
|
+
method: "POST",
|
|
14
|
+
route: "/v1/account/personal-consents/prepare",
|
|
15
|
+
body: "flat",
|
|
16
|
+
response: null,
|
|
17
|
+
errors: { "400": true, "401": true, "403": true, "413": true, "415": 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, PrepareRequest, PrepareResponse, } from "./client.js";
|
|
5
|
+
export type { AccountPrepareColombiaConsentBody } from "./models.js";
|
|
@@ -11,9 +11,10 @@ export interface Client {
|
|
|
11
11
|
* Look up an exact IPS invoice reference
|
|
12
12
|
*
|
|
13
13
|
* Look up one exact invoice prefix and number in the active billing
|
|
14
|
-
* connection’s institution. Returns
|
|
15
|
-
*
|
|
16
|
-
*
|
|
14
|
+
* connection’s institution. Returns the number of matching rows. Outside the
|
|
15
|
+
* provider’s live reporting hours, REPORTING_WINDOW_CLOSED gives the opening
|
|
16
|
+
* hour (inclusive), closing hour (exclusive) and time zone. Payment or
|
|
17
|
+
* rejection requires separate evidence.
|
|
17
18
|
*/
|
|
18
19
|
lookup(request: LookupRequest, options?: RequestOptions): Promise<LookupResponse>;
|
|
19
20
|
}
|
|
@@ -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 { SaludTotalInvoiceLookupInput, SaludTotalInvoiceLookupResult, SaludTotalInvoiceLookupResultResponse, SaludTotalLookupInvoiceConflictError, SaludTotalLookupInvoiceConflictFailure, SaludTotalLookupInvoiceForbiddenError, SaludTotalLookupInvoiceForbiddenFailure, SaludTotalLookupInvoiceServiceUnavailableError, SaludTotalLookupInvoiceServiceUnavailableFailure, SaludTotalLookupInvoiceTooManyRequestsError, SaludTotalLookupInvoiceTooManyRequestsFailure, } from "./models.js";
|
|
5
|
+
export type { SaludTotalInvoiceLookupInput, SaludTotalInvoiceLookupResult, SaludTotalInvoiceLookupResultResponse, SaludTotalLookupInvoiceConflictError, SaludTotalLookupInvoiceConflictFailure, SaludTotalLookupInvoiceForbiddenError, SaludTotalLookupInvoiceForbiddenFailure, SaludTotalLookupInvoiceServiceUnavailableError, SaludTotalLookupInvoiceServiceUnavailableFailure, SaludTotalLookupInvoiceTooManyRequestsError, SaludTotalLookupInvoiceTooManyRequestsFailure, SaludTotalReportingWindowClosedFailure, SaludTotalReportingWindowClosedFailureData, } from "./models.js";
|
|
@@ -5,10 +5,13 @@ export interface SaludTotalInvoiceLookupInput {
|
|
|
5
5
|
invoiceNumber: string;
|
|
6
6
|
prefix: string;
|
|
7
7
|
}
|
|
8
|
-
export
|
|
8
|
+
export type SaludTotalInvoiceLookupResult = {
|
|
9
|
+
recordCount: 0;
|
|
10
|
+
status: "no_match";
|
|
11
|
+
} | {
|
|
9
12
|
recordCount: number;
|
|
10
|
-
status: "
|
|
11
|
-
}
|
|
13
|
+
status: "records_found";
|
|
14
|
+
};
|
|
12
15
|
/**
|
|
13
16
|
* A successful answer.
|
|
14
17
|
*/
|
|
@@ -33,7 +36,7 @@ export interface SaludTotalLookupInvoiceConflictError {
|
|
|
33
36
|
metadata: ResponseMetadata;
|
|
34
37
|
success: false;
|
|
35
38
|
}
|
|
36
|
-
export type SaludTotalLookupInvoiceConflictFailure = SaludTotalConnectionUnavailableFailure | SaludTotalSessionClosedFailure | SaludTotalInteractiveVerificationRequiredFailure | SaludTotalCredentialsRejectedFailure | SaludTotalIpsIdentityMismatchFailure;
|
|
39
|
+
export type SaludTotalLookupInvoiceConflictFailure = SaludTotalReportingWindowClosedFailure | SaludTotalConnectionUnavailableFailure | SaludTotalSessionClosedFailure | SaludTotalInteractiveVerificationRequiredFailure | SaludTotalCredentialsRejectedFailure | SaludTotalIpsIdentityMismatchFailure;
|
|
37
40
|
/**
|
|
38
41
|
* A failed answer.
|
|
39
42
|
*/
|
|
@@ -73,3 +76,26 @@ export interface SaludTotalLookupInvoiceTooManyRequestsError {
|
|
|
73
76
|
success: false;
|
|
74
77
|
}
|
|
75
78
|
export type SaludTotalLookupInvoiceTooManyRequestsFailure = RateLimitedFailure | SaludTotalLoginCoolingDownFailure;
|
|
79
|
+
/**
|
|
80
|
+
* Invoice reporting is closed. Retry during the provider’s reporting hours.
|
|
81
|
+
*/
|
|
82
|
+
export interface SaludTotalReportingWindowClosedFailure {
|
|
83
|
+
/**
|
|
84
|
+
* The failure code, stable across releases.
|
|
85
|
+
*/
|
|
86
|
+
code: "REPORTING_WINDOW_CLOSED";
|
|
87
|
+
data: SaludTotalReportingWindowClosedFailureData;
|
|
88
|
+
/**
|
|
89
|
+
* What went wrong, for people; it never contains input values.
|
|
90
|
+
*/
|
|
91
|
+
message: string;
|
|
92
|
+
/**
|
|
93
|
+
* Whether repeating the same request may succeed.
|
|
94
|
+
*/
|
|
95
|
+
retryable: true;
|
|
96
|
+
}
|
|
97
|
+
export interface SaludTotalReportingWindowClosedFailureData {
|
|
98
|
+
closesAtHour: number;
|
|
99
|
+
opensAtHour: number;
|
|
100
|
+
timeZone: "America/Bogota";
|
|
101
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arbol-ai/sdk",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.16.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.
|
|
60
|
-
"sha256": "
|
|
59
|
+
"release": "1.20261101.1558",
|
|
60
|
+
"sha256": "0d5a89264ff219b7d1db9bb0c8c207ae0c2a5681f32ac5f9b1e6d9c0c0f12382"
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
}
|