@arbol-ai/sdk 5.4.0 → 5.5.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.
@@ -3,6 +3,8 @@ import { type Client as AffiliationsClient } from "./affiliations/client.js";
3
3
  import { type Client as AuthorizationsClient } from "./authorizations/client.js";
4
4
  import { type Client as ConnectionsClient } from "./connections/client.js";
5
5
  import { type Client as FilingsClient } from "./filings/client.js";
6
+ import { type Client as InvoicesClient } from "./invoices/client.js";
7
+ import { type Client as NoticesClient } from "./notices/client.js";
6
8
  import { type Client as PortalOperationsClient } from "./portalOperations/client.js";
7
9
  import { type Client as PortalsClient } from "./portals/client.js";
8
10
  import { type Client as ReferenceOptionsClient } from "./referenceOptions/client.js";
@@ -19,6 +21,8 @@ export interface Client {
19
21
  readonly authorizations: AuthorizationsClient;
20
22
  readonly connections: ConnectionsClient;
21
23
  readonly filings: FilingsClient;
24
+ readonly invoices: InvoicesClient;
25
+ readonly notices: NoticesClient;
22
26
  readonly portalOperations: PortalOperationsClient;
23
27
  readonly portals: PortalsClient;
24
28
  readonly referenceOptions: ReferenceOptionsClient;
@@ -5,6 +5,8 @@ import { bind as bindAffiliations, } from "./affiliations/client.js";
5
5
  import { bind as bindAuthorizations, } from "./authorizations/client.js";
6
6
  import { bind as bindConnections, } from "./connections/client.js";
7
7
  import { bind as bindFilings, } from "./filings/client.js";
8
+ import { bind as bindInvoices, } from "./invoices/client.js";
9
+ import { bind as bindNotices, } from "./notices/client.js";
8
10
  import { bind as bindPortalOperations, } from "./portalOperations/client.js";
9
11
  import { bind as bindPortals, } from "./portals/client.js";
10
12
  import { bind as bindReferenceOptions, } from "./referenceOptions/client.js";
@@ -18,6 +20,8 @@ export function bind(transport) {
18
20
  let authorizationsClient;
19
21
  let connectionsClient;
20
22
  let filingsClient;
23
+ let invoicesClient;
24
+ let noticesClient;
21
25
  let portalOperationsClient;
22
26
  let portalsClient;
23
27
  let referenceOptionsClient;
@@ -36,6 +40,12 @@ export function bind(transport) {
36
40
  get filings() {
37
41
  return (filingsClient ??= bindFilings(transport));
38
42
  },
43
+ get invoices() {
44
+ return (invoicesClient ??= bindInvoices(transport));
45
+ },
46
+ get notices() {
47
+ return (noticesClient ??= bindNotices(transport));
48
+ },
39
49
  get portalOperations() {
40
50
  return (portalOperationsClient ??= bindPortalOperations(transport));
41
51
  },
@@ -0,0 +1,23 @@
1
+ import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
+ import type { SaludTotalInvoiceLookupInput, SaludTotalInvoiceLookupResultResponse } 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
+ * Lookup invoices
12
+ *
13
+ * Look up one exact invoice prefix and number in the active billing
14
+ * connection’s institution. Returns only the number of matching report rows.
15
+ * A successful empty report does not establish rejection, payment or a filing
16
+ * receipt.
17
+ */
18
+ lookup(request: LookupRequest, options?: RequestOptions): Promise<LookupResponse>;
19
+ }
20
+ export declare function createClient(options: ClientOptions): Client;
21
+ export declare function bind(transport: Transport): Client;
22
+ export type LookupRequest = SaludTotalInvoiceLookupInput;
23
+ export type LookupResponse = SaludTotalInvoiceLookupResultResponse;
@@ -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/salud-total/invoices/lookup",
15
+ body: "flat",
16
+ response: null,
17
+ errors: { "400": true, "401": true, "403": true, "409": 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 { SaludTotalInvoiceLookupInput, SaludTotalInvoiceLookupResult, SaludTotalInvoiceLookupResultResponse, SaludTotalLookupInvoiceConflictError, SaludTotalLookupInvoiceConflictFailure, SaludTotalLookupInvoiceForbiddenError, SaludTotalLookupInvoiceForbiddenFailure, SaludTotalLookupInvoiceServiceUnavailableError, SaludTotalLookupInvoiceServiceUnavailableFailure, SaludTotalLookupInvoiceTooManyRequestsError, SaludTotalLookupInvoiceTooManyRequestsFailure, } 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,75 @@
1
+ import type { ForbiddenFailure, RateLimitedFailure, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
2
+ import type { SaludTotalAccountUnavailableFailure, SaludTotalConnectionUnavailableFailure, SaludTotalCredentialsRejectedFailure, SaludTotalInteractiveVerificationRequiredFailure, SaludTotalIpsIdentityMismatchFailure, SaludTotalLoginCoolingDownFailure, SaludTotalModuleForbiddenFailure, SaludTotalPortalAccessUnverifiedFailure, SaludTotalProviderUnavailableFailure, SaludTotalSessionClosedFailure, SaludTotalSessionExpiredFailure, SaludTotalSiteUnavailableFailure } from "../models.js";
3
+ export interface SaludTotalInvoiceLookupInput {
4
+ connectionId: string;
5
+ invoiceNumber: string;
6
+ prefix: string;
7
+ }
8
+ export interface SaludTotalInvoiceLookupResult {
9
+ recordCount: number;
10
+ status: "no_match" | "records_found";
11
+ }
12
+ /**
13
+ * A successful answer.
14
+ */
15
+ export interface SaludTotalInvoiceLookupResultResponse {
16
+ data: SaludTotalInvoiceLookupResult;
17
+ error: null;
18
+ /**
19
+ * What every answer carries besides its data or error.
20
+ */
21
+ metadata: ResponseMetadata;
22
+ success: true;
23
+ }
24
+ /**
25
+ * A failed answer.
26
+ */
27
+ export interface SaludTotalLookupInvoiceConflictError {
28
+ data: null;
29
+ error: SaludTotalLookupInvoiceConflictFailure;
30
+ /**
31
+ * What every answer carries besides its data or error.
32
+ */
33
+ metadata: ResponseMetadata;
34
+ success: false;
35
+ }
36
+ export type SaludTotalLookupInvoiceConflictFailure = SaludTotalConnectionUnavailableFailure | SaludTotalSessionClosedFailure | SaludTotalInteractiveVerificationRequiredFailure | SaludTotalCredentialsRejectedFailure | SaludTotalIpsIdentityMismatchFailure;
37
+ /**
38
+ * A failed answer.
39
+ */
40
+ export interface SaludTotalLookupInvoiceForbiddenError {
41
+ data: null;
42
+ error: SaludTotalLookupInvoiceForbiddenFailure;
43
+ /**
44
+ * What every answer carries besides its data or error.
45
+ */
46
+ metadata: ResponseMetadata;
47
+ success: false;
48
+ }
49
+ export type SaludTotalLookupInvoiceForbiddenFailure = ForbiddenFailure | SaludTotalPortalAccessUnverifiedFailure | SaludTotalModuleForbiddenFailure | SaludTotalSiteUnavailableFailure;
50
+ /**
51
+ * A failed answer.
52
+ */
53
+ export interface SaludTotalLookupInvoiceServiceUnavailableError {
54
+ data: null;
55
+ error: SaludTotalLookupInvoiceServiceUnavailableFailure;
56
+ /**
57
+ * What every answer carries besides its data or error.
58
+ */
59
+ metadata: ResponseMetadata;
60
+ success: false;
61
+ }
62
+ export type SaludTotalLookupInvoiceServiceUnavailableFailure = UpstreamUnavailableFailure | SaludTotalAccountUnavailableFailure | SaludTotalSessionExpiredFailure | SaludTotalProviderUnavailableFailure;
63
+ /**
64
+ * A failed answer.
65
+ */
66
+ export interface SaludTotalLookupInvoiceTooManyRequestsError {
67
+ data: null;
68
+ error: SaludTotalLookupInvoiceTooManyRequestsFailure;
69
+ /**
70
+ * What every answer carries besides its data or error.
71
+ */
72
+ metadata: ResponseMetadata;
73
+ success: false;
74
+ }
75
+ export type SaludTotalLookupInvoiceTooManyRequestsFailure = RateLimitedFailure | SaludTotalLoginCoolingDownFailure;
@@ -0,0 +1,3 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ export {};
@@ -0,0 +1,27 @@
1
+ import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
+ import type { SaludTotalCountNoticesResultResponse } 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 notices count
12
+ *
13
+ * Read the IPS objection/devolution notification total from the billing
14
+ * connection. Returns only a count. Never opens or acknowledges a
15
+ * notification.
16
+ */
17
+ count(request: CountRequest, options?: RequestOptions): Promise<CountResponse>;
18
+ }
19
+ export declare function createClient(options: ClientOptions): Client;
20
+ export declare function bind(transport: Transport): Client;
21
+ export interface CountRequest {
22
+ /**
23
+ * The connection id.
24
+ */
25
+ connectionId: string;
26
+ }
27
+ export type CountResponse = SaludTotalCountNoticesResultResponse;
@@ -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
+ count: (request, options) => transport.send(CountOperation, request, options),
10
+ };
11
+ }
12
+ const CountOperation = {
13
+ method: "GET",
14
+ route: "/v1/salud-total/notices/count",
15
+ query: { connectionId: "connectionId" },
16
+ response: null,
17
+ errors: { "400": true, "401": true, "403": 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, CountRequest, CountResponse, } from "./client.js";
5
+ export type { SaludTotalCountNoticesConflictError, SaludTotalCountNoticesConflictFailure, SaludTotalCountNoticesForbiddenError, SaludTotalCountNoticesForbiddenFailure, SaludTotalCountNoticesResult, SaludTotalCountNoticesResultResponse, SaludTotalCountNoticesServiceUnavailableError, SaludTotalCountNoticesServiceUnavailableFailure, SaludTotalCountNoticesTooManyRequestsError, SaludTotalCountNoticesTooManyRequestsFailure, } 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,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, SaludTotalSiteUnavailableFailure } from "../models.js";
3
+ /**
4
+ * A failed answer.
5
+ */
6
+ export interface SaludTotalCountNoticesConflictError {
7
+ data: null;
8
+ error: SaludTotalCountNoticesConflictFailure;
9
+ /**
10
+ * What every answer carries besides its data or error.
11
+ */
12
+ metadata: ResponseMetadata;
13
+ success: false;
14
+ }
15
+ export type SaludTotalCountNoticesConflictFailure = SaludTotalConnectionUnavailableFailure | SaludTotalSessionClosedFailure | SaludTotalInteractiveVerificationRequiredFailure | SaludTotalCredentialsRejectedFailure | SaludTotalIpsIdentityMismatchFailure;
16
+ /**
17
+ * A failed answer.
18
+ */
19
+ export interface SaludTotalCountNoticesForbiddenError {
20
+ data: null;
21
+ error: SaludTotalCountNoticesForbiddenFailure;
22
+ /**
23
+ * What every answer carries besides its data or error.
24
+ */
25
+ metadata: ResponseMetadata;
26
+ success: false;
27
+ }
28
+ export type SaludTotalCountNoticesForbiddenFailure = ForbiddenFailure | SaludTotalPortalAccessUnverifiedFailure | SaludTotalModuleForbiddenFailure | SaludTotalSiteUnavailableFailure;
29
+ export interface SaludTotalCountNoticesResult {
30
+ count: number;
31
+ }
32
+ /**
33
+ * A successful answer.
34
+ */
35
+ export interface SaludTotalCountNoticesResultResponse {
36
+ data: SaludTotalCountNoticesResult;
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 SaludTotalCountNoticesServiceUnavailableError {
48
+ data: null;
49
+ error: SaludTotalCountNoticesServiceUnavailableFailure;
50
+ /**
51
+ * What every answer carries besides its data or error.
52
+ */
53
+ metadata: ResponseMetadata;
54
+ success: false;
55
+ }
56
+ export type SaludTotalCountNoticesServiceUnavailableFailure = UpstreamUnavailableFailure | SaludTotalAccountUnavailableFailure | SaludTotalSessionExpiredFailure | SaludTotalProviderUnavailableFailure;
57
+ /**
58
+ * A failed answer.
59
+ */
60
+ export interface SaludTotalCountNoticesTooManyRequestsError {
61
+ data: null;
62
+ error: SaludTotalCountNoticesTooManyRequestsFailure;
63
+ /**
64
+ * What every answer carries besides its data or error.
65
+ */
66
+ metadata: ResponseMetadata;
67
+ success: false;
68
+ }
69
+ export type SaludTotalCountNoticesTooManyRequestsFailure = RateLimitedFailure | SaludTotalLoginCoolingDownFailure;
@@ -0,0 +1,3 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ export {};
@@ -36,6 +36,6 @@ export interface GetRequest {
36
36
  /**
37
37
  * The module.
38
38
  */
39
- module?: "affiliation" | "filing";
39
+ module?: "affiliation" | "filing" | "invoice" | "notices";
40
40
  }
41
41
  export type GetResponse = SaludTotalGetConnectionSessionResultResponse;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arbol-ai/sdk",
3
- "version": "5.4.0",
3
+ "version": "5.5.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.203233",
60
- "sha256": "01ddc752b22d93e45b40ddfbde67328d0916ef3b9168385e572eb6cfbe73ef7c"
59
+ "release": "1.20261031.203956",
60
+ "sha256": "8f00e4811ec6105a00d7f80a7cfe19527b49994ed3ce2555d86d415a7bddd284"
61
61
  }
62
62
  }
63
63
  }