@arbol-ai/sdk 5.32.0 → 5.34.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.
Files changed (75) hide show
  1. package/dist/account/permissions/models.d.ts +1 -1
  2. package/dist/client.d.ts +2 -0
  3. package/dist/client.js +5 -0
  4. package/dist/comfachoco/affiliations/client.d.ts +24 -0
  5. package/dist/comfachoco/affiliations/client.js +19 -0
  6. package/dist/comfachoco/affiliations/index.d.ts +5 -0
  7. package/dist/comfachoco/affiliations/index.js +4 -0
  8. package/dist/comfachoco/affiliations/models.d.ts +97 -0
  9. package/dist/comfachoco/affiliations/models.js +13 -0
  10. package/dist/comfachoco/client.d.ts +15 -0
  11. package/dist/comfachoco/client.js +20 -0
  12. package/dist/comfachoco/connections/client.d.ts +55 -0
  13. package/dist/comfachoco/connections/client.js +33 -0
  14. package/dist/comfachoco/connections/index.d.ts +5 -0
  15. package/dist/comfachoco/connections/index.js +4 -0
  16. package/dist/comfachoco/connections/models.d.ts +204 -0
  17. package/dist/comfachoco/connections/models.js +9 -0
  18. package/dist/comfachoco/index.d.ts +5 -0
  19. package/dist/comfachoco/index.js +4 -0
  20. package/dist/comfachoco/models.d.ts +220 -0
  21. package/dist/comfachoco/models.js +3 -0
  22. package/dist/index.d.ts +1 -1
  23. package/dist/models.d.ts +12 -0
  24. package/dist/models.js +3 -0
  25. package/dist/nuevaEps/affiliations/models.d.ts +2 -2
  26. package/dist/nuevaEps/client.d.ts +6 -0
  27. package/dist/nuevaEps/client.js +15 -0
  28. package/dist/nuevaEps/connections/models.d.ts +6 -5
  29. package/dist/nuevaEps/index.d.ts +1 -1
  30. package/dist/nuevaEps/ingestionErrorReports/client.d.ts +33 -0
  31. package/dist/nuevaEps/ingestionErrorReports/client.js +19 -0
  32. package/dist/nuevaEps/ingestionErrorReports/index.d.ts +5 -0
  33. package/dist/nuevaEps/ingestionErrorReports/index.js +4 -0
  34. package/dist/nuevaEps/ingestionErrorReports/models.d.ts +87 -0
  35. package/dist/nuevaEps/ingestionErrorReports/models.js +10 -0
  36. package/dist/nuevaEps/ingestions/client.d.ts +68 -0
  37. package/dist/nuevaEps/ingestions/client.js +26 -0
  38. package/dist/nuevaEps/ingestions/index.d.ts +5 -0
  39. package/dist/nuevaEps/ingestions/index.js +4 -0
  40. package/dist/nuevaEps/ingestions/models.d.ts +182 -0
  41. package/dist/nuevaEps/ingestions/models.js +3 -0
  42. package/dist/nuevaEps/models.d.ts +65 -0
  43. package/dist/nuevaEps/precursoras/client.d.ts +27 -0
  44. package/dist/nuevaEps/precursoras/client.js +18 -0
  45. package/dist/nuevaEps/precursoras/index.d.ts +5 -0
  46. package/dist/nuevaEps/precursoras/index.js +4 -0
  47. package/dist/nuevaEps/precursoras/models.d.ts +94 -0
  48. package/dist/nuevaEps/precursoras/models.js +3 -0
  49. package/dist/raiz/channels/models.d.ts +10 -10
  50. package/dist/raiz/channels/models.js +1 -1
  51. package/dist/raiz/conversations/client.d.ts +24 -9
  52. package/dist/raiz/conversations/index.d.ts +1 -1
  53. package/dist/raiz/conversations/models.d.ts +3 -14
  54. package/dist/raiz/conversations/models.js +2 -4
  55. package/dist/raiz/index.d.ts +1 -1
  56. package/dist/raiz/knowledge/client.d.ts +4 -3
  57. package/dist/raiz/models.d.ts +8 -2
  58. package/dist/raiz/reports/client.d.ts +35 -20
  59. package/dist/raiz/reports/client.js +1 -1
  60. package/dist/raiz/reports/models.d.ts +21 -0
  61. package/dist/raiz/reports/models.js +1 -1
  62. package/dist/sura/client.d.ts +2 -0
  63. package/dist/sura/client.js +5 -0
  64. package/dist/sura/index.d.ts +1 -1
  65. package/dist/sura/models.d.ts +45 -0
  66. package/dist/sura/models.js +10 -1
  67. package/dist/sura/operations/models.d.ts +2 -2
  68. package/dist/sura/operations/models.js +2 -2
  69. package/dist/sura/schedules/client.d.ts +29 -0
  70. package/dist/sura/schedules/client.js +20 -0
  71. package/dist/sura/schedules/index.d.ts +5 -0
  72. package/dist/sura/schedules/index.js +4 -0
  73. package/dist/sura/schedules/models.d.ts +79 -0
  74. package/dist/sura/schedules/models.js +11 -0
  75. package/package.json +5 -4
@@ -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" | "salud-total" | "nueva-eps" | "account";
25
+ group: "raiz" | "agenda" | "ambar" | "sura" | "visoft" | "salud-total" | "nueva-eps" | "comfachoco" | "account";
26
26
  value: string;
27
27
  }
28
28
  export interface AccountPermissionPage {
package/dist/client.d.ts CHANGED
@@ -3,6 +3,7 @@ import { type Client as AccountClient } from "./account/client.js";
3
3
  import { type Client as AdresClient } from "./adres/client.js";
4
4
  import { type Client as AgendaClient } from "./agenda/client.js";
5
5
  import { type Client as AxxaClient } from "./axxa/client.js";
6
+ import { type Client as ComfachocoClient } from "./comfachoco/client.js";
6
7
  import { type Client as GmedicClient } from "./gmedic/client.js";
7
8
  import { type Client as NuevaEpsClient } from "./nuevaEps/client.js";
8
9
  import { type Client as PoliciaColombiaClient } from "./policiaColombia/client.js";
@@ -22,6 +23,7 @@ export interface Client {
22
23
  readonly adres: AdresClient;
23
24
  readonly agenda: AgendaClient;
24
25
  readonly axxa: AxxaClient;
26
+ readonly comfachoco: ComfachocoClient;
25
27
  readonly gmedic: GmedicClient;
26
28
  readonly nuevaEps: NuevaEpsClient;
27
29
  readonly policiaColombia: PoliciaColombiaClient;
package/dist/client.js CHANGED
@@ -5,6 +5,7 @@ import { bind as bindAccount, } from "./account/client.js";
5
5
  import { bind as bindAdres, } from "./adres/client.js";
6
6
  import { bind as bindAgenda, } from "./agenda/client.js";
7
7
  import { bind as bindAxxa } from "./axxa/client.js";
8
+ import { bind as bindComfachoco, } from "./comfachoco/client.js";
8
9
  import { bind as bindGmedic, } from "./gmedic/client.js";
9
10
  import { bind as bindNuevaEps, } from "./nuevaEps/client.js";
10
11
  import { bind as bindPoliciaColombia, } from "./policiaColombia/client.js";
@@ -21,6 +22,7 @@ export function bind(transport) {
21
22
  let adresClient;
22
23
  let agendaClient;
23
24
  let axxaClient;
25
+ let comfachocoClient;
24
26
  let gmedicClient;
25
27
  let nuevaEpsClient;
26
28
  let policiaColombiaClient;
@@ -42,6 +44,9 @@ export function bind(transport) {
42
44
  get axxa() {
43
45
  return (axxaClient ??= bindAxxa(transport));
44
46
  },
47
+ get comfachoco() {
48
+ return (comfachocoClient ??= bindComfachoco(transport));
49
+ },
45
50
  get gmedic() {
46
51
  return (gmedicClient ??= bindGmedic(transport));
47
52
  },
@@ -0,0 +1,24 @@
1
+ import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
+ import { type ComfachocoLookupAffiliationBody, type ComfachocoLookupAffiliationResultResponse } 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 affiliations
12
+ *
13
+ * Look up a citizen document in Comfachocó through an active organization
14
+ * connection. Returns found only for an exact source identity and not_found
15
+ * only for an explicit source negative. Provider failures are never evidence
16
+ * of non-affiliation. This does not verify the identity of the person
17
+ * presenting the document or determine eligibility.
18
+ */
19
+ lookup(request: LookupRequest, options?: RequestOptions): Promise<LookupResponse>;
20
+ }
21
+ export declare function createClient(options: ClientOptions): Client;
22
+ export declare function bind(transport: Transport): Client;
23
+ export type LookupRequest = ComfachocoLookupAffiliationBody;
24
+ export type LookupResponse = ComfachocoLookupAffiliationResultResponse;
@@ -0,0 +1,19 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ import { Transport, } from "../../_/index.js";
4
+ import { ComfachocoLookupAffiliationResultResponseCodec, } 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/comfachoco/affiliations/lookup",
16
+ body: "flat",
17
+ response: ComfachocoLookupAffiliationResultResponseCodec,
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 { ComfachocoComfachocoAffiliationFound, ComfachocoComfachocoAffiliationNotFound, ComfachocoComfachocoMember, ComfachocoLookupAffiliationBadGatewayError, ComfachocoLookupAffiliationBadGatewayFailure, ComfachocoLookupAffiliationBody, ComfachocoLookupAffiliationResult, ComfachocoLookupAffiliationResultResponse, ComfachocoLookupAffiliationServiceUnavailableError, ComfachocoLookupAffiliationServiceUnavailableFailure, ComfachocoLookupAffiliationTooManyRequestsError, ComfachocoLookupAffiliationTooManyRequestsFailure, ComfachocoLookupAffiliationUnprocessableContentError, ComfachocoLookupAffiliationUnprocessableContentFailure, } 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,97 @@
1
+ import type { OutcomeUnknownFailure, RateLimitedFailure, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
2
+ import type { ComfachocoCredentialsRejectedFailure, ComfachocoLoginCoolingDownFailure, ComfachocoMemberIdentityMismatchFailure, ComfachocoProviderAccountInactiveFailure, ComfachocoProviderProtocolChangedFailure, ComfachocoProviderSessionExpiredFailure, ComfachocoProviderUnavailableFailure } from "../models.js";
3
+ export interface ComfachocoComfachocoAffiliationFound {
4
+ member: ComfachocoComfachocoMember;
5
+ observedAt: Temporal.Instant;
6
+ status: "found";
7
+ }
8
+ export interface ComfachocoComfachocoAffiliationNotFound {
9
+ member: null;
10
+ observedAt: Temporal.Instant;
11
+ status: "not_found";
12
+ }
13
+ export interface ComfachocoComfachocoMember {
14
+ affiliationStatus: string;
15
+ documentNumber: string;
16
+ documentType: string;
17
+ fullName: string;
18
+ primaryProvider: string | null;
19
+ regime: string | null;
20
+ }
21
+ /**
22
+ * A failed answer.
23
+ */
24
+ export interface ComfachocoLookupAffiliationBadGatewayError {
25
+ data: null;
26
+ error: ComfachocoLookupAffiliationBadGatewayFailure;
27
+ /**
28
+ * What every answer carries besides its data or error.
29
+ */
30
+ metadata: ResponseMetadata;
31
+ success: false;
32
+ }
33
+ export type ComfachocoLookupAffiliationBadGatewayFailure = OutcomeUnknownFailure | ComfachocoProviderProtocolChangedFailure | ComfachocoMemberIdentityMismatchFailure;
34
+ export interface ComfachocoLookupAffiliationBody {
35
+ connectionId?: string;
36
+ documentNumber: string;
37
+ /**
38
+ * Citizen identification. Other document types have not been verified.
39
+ */
40
+ documentType: "CC";
41
+ }
42
+ export type ComfachocoLookupAffiliationResult = ComfachocoComfachocoAffiliationNotFound | ComfachocoComfachocoAffiliationFound;
43
+ /**
44
+ * A successful answer.
45
+ */
46
+ export interface ComfachocoLookupAffiliationResultResponse {
47
+ data: ComfachocoLookupAffiliationResult;
48
+ error: null;
49
+ /**
50
+ * What every answer carries besides its data or error.
51
+ */
52
+ metadata: ResponseMetadata;
53
+ success: true;
54
+ }
55
+ /**
56
+ * A failed answer.
57
+ */
58
+ export interface ComfachocoLookupAffiliationServiceUnavailableError {
59
+ data: null;
60
+ error: ComfachocoLookupAffiliationServiceUnavailableFailure;
61
+ /**
62
+ * What every answer carries besides its data or error.
63
+ */
64
+ metadata: ResponseMetadata;
65
+ success: false;
66
+ }
67
+ export type ComfachocoLookupAffiliationServiceUnavailableFailure = UpstreamUnavailableFailure | ComfachocoProviderUnavailableFailure | ComfachocoProviderSessionExpiredFailure;
68
+ /**
69
+ * A failed answer.
70
+ */
71
+ export interface ComfachocoLookupAffiliationTooManyRequestsError {
72
+ data: null;
73
+ error: ComfachocoLookupAffiliationTooManyRequestsFailure;
74
+ /**
75
+ * What every answer carries besides its data or error.
76
+ */
77
+ metadata: ResponseMetadata;
78
+ success: false;
79
+ }
80
+ export type ComfachocoLookupAffiliationTooManyRequestsFailure = RateLimitedFailure | ComfachocoLoginCoolingDownFailure;
81
+ /**
82
+ * A failed answer.
83
+ */
84
+ export interface ComfachocoLookupAffiliationUnprocessableContentError {
85
+ data: null;
86
+ error: ComfachocoLookupAffiliationUnprocessableContentFailure;
87
+ /**
88
+ * What every answer carries besides its data or error.
89
+ */
90
+ metadata: ResponseMetadata;
91
+ success: false;
92
+ }
93
+ export type ComfachocoLookupAffiliationUnprocessableContentFailure = ComfachocoProviderAccountInactiveFailure | ComfachocoCredentialsRejectedFailure;
94
+ export declare const ComfachocoComfachocoAffiliationFoundCodec: import("../../_/codec.js").Codec;
95
+ export declare const ComfachocoComfachocoAffiliationNotFoundCodec: import("../../_/codec.js").Codec;
96
+ export declare const ComfachocoLookupAffiliationResultCodec: import("../../_/codec.js").Codec;
97
+ export declare const ComfachocoLookupAffiliationResultResponseCodec: import("../../_/codec.js").Codec;
@@ -0,0 +1,13 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ import { instant, object, union } from "../../_/index.js";
4
+ export const ComfachocoComfachocoAffiliationFoundCodec = object([
5
+ ["observedAt", null, instant],
6
+ ]);
7
+ export const ComfachocoComfachocoAffiliationNotFoundCodec = object([
8
+ ["observedAt", null, instant],
9
+ ]);
10
+ export const ComfachocoLookupAffiliationResultCodec = union([() => ComfachocoComfachocoAffiliationNotFoundCodec, () => ComfachocoComfachocoAffiliationFoundCodec]);
11
+ export const ComfachocoLookupAffiliationResultResponseCodec = object([
12
+ ["data", null, () => ComfachocoLookupAffiliationResultCodec],
13
+ ]);
@@ -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,55 @@
1
+ import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
+ import type { DeletedObjectResponse } from "../../models.js";
3
+ import { type ComfachocoComfachocoConnectionResponse, type ComfachocoVerifyConnectionBody, type ComfachocoVerifyConnectionResultResponse } 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
+ * Delete a connection
13
+ *
14
+ * Remove the provider session for this organization-owned connection. Account
15
+ * retires the credential separately.
16
+ */
17
+ delete(request: DeleteRequest, options?: RequestOptions): Promise<DeleteResponse>;
18
+ /**
19
+ * Get a connection
20
+ *
21
+ * Read safe metadata for a Comfachocó connection owned by the caller’s
22
+ * organization.
23
+ */
24
+ get(request: GetRequest, options?: RequestOptions): Promise<GetResponse>;
25
+ /**
26
+ * Verify a connection
27
+ *
28
+ * Verify a provider login once before Account seals its credentials. A
29
+ * refused login leaves existing connections unchanged.
30
+ */
31
+ verify(request: VerifyRequest, options?: RequestOptions): Promise<VerifyResponse>;
32
+ }
33
+ export declare function createClient(options: ClientOptions): Client;
34
+ export declare function bind(transport: Transport): Client;
35
+ export interface DeleteRequest {
36
+ /**
37
+ * The connection id.
38
+ */
39
+ connectionId: string;
40
+ }
41
+ export type DeleteResponse = DeletedObjectResponse;
42
+ export interface GetRequest {
43
+ /**
44
+ * The connection id.
45
+ */
46
+ connectionId: string;
47
+ }
48
+ export type GetResponse = ComfachocoComfachocoConnectionResponse;
49
+ export type VerifyRequest = {
50
+ /**
51
+ * The connection id.
52
+ */
53
+ connectionId: string;
54
+ } & ComfachocoVerifyConnectionBody;
55
+ export type VerifyResponse = ComfachocoVerifyConnectionResultResponse;
@@ -0,0 +1,33 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ import { Transport, } from "../../_/index.js";
4
+ import { ComfachocoComfachocoConnectionResponseCodec, } 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/comfachoco/connections/{connectionId}",
18
+ response: null,
19
+ errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
20
+ };
21
+ const GetOperation = {
22
+ method: "GET",
23
+ route: "/v1/comfachoco/connections/{connectionId}",
24
+ response: ComfachocoComfachocoConnectionResponseCodec,
25
+ errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
26
+ };
27
+ const VerifyOperation = {
28
+ method: "POST",
29
+ route: "/v1/comfachoco/connections/{connectionId}/verify",
30
+ body: "flat",
31
+ response: null,
32
+ 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 },
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 { ComfachocoComfachocoConnection, ComfachocoComfachocoConnectionResponse, ComfachocoDeleteConnectionBadGatewayError, ComfachocoDeleteConnectionBadGatewayFailure, ComfachocoDeleteConnectionServiceUnavailableError, ComfachocoDeleteConnectionServiceUnavailableFailure, ComfachocoDeleteConnectionTooManyRequestsError, ComfachocoDeleteConnectionTooManyRequestsFailure, ComfachocoDeleteConnectionUnprocessableContentError, ComfachocoDeleteConnectionUnprocessableContentFailure, ComfachocoGetConnectionBadGatewayError, ComfachocoGetConnectionBadGatewayFailure, ComfachocoGetConnectionServiceUnavailableError, ComfachocoGetConnectionServiceUnavailableFailure, ComfachocoGetConnectionTooManyRequestsError, ComfachocoGetConnectionTooManyRequestsFailure, ComfachocoGetConnectionUnprocessableContentError, ComfachocoGetConnectionUnprocessableContentFailure, ComfachocoVerifyConnectionBadGatewayError, ComfachocoVerifyConnectionBadGatewayFailure, ComfachocoVerifyConnectionBody, ComfachocoVerifyConnectionResult, ComfachocoVerifyConnectionResultResponse, ComfachocoVerifyConnectionServiceUnavailableError, ComfachocoVerifyConnectionServiceUnavailableFailure, ComfachocoVerifyConnectionTooManyRequestsError, ComfachocoVerifyConnectionTooManyRequestsFailure, ComfachocoVerifyConnectionUnprocessableContentError, ComfachocoVerifyConnectionUnprocessableContentFailure, } 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,204 @@
1
+ import type { OutcomeUnknownFailure, RateLimitedFailure, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
2
+ import type { ComfachocoCredentialsRejectedFailure, ComfachocoLoginCoolingDownFailure, ComfachocoMemberIdentityMismatchFailure, ComfachocoProviderAccountInactiveFailure, ComfachocoProviderProtocolChangedFailure, ComfachocoProviderSessionExpiredFailure, ComfachocoProviderUnavailableFailure } from "../models.js";
3
+ export interface ComfachocoComfachocoConnection {
4
+ id: string;
5
+ name: string;
6
+ status: "active" | "disabled" | "failed";
7
+ verifiedAt: Temporal.Instant | null;
8
+ }
9
+ /**
10
+ * A successful answer.
11
+ */
12
+ export interface ComfachocoComfachocoConnectionResponse {
13
+ data: ComfachocoComfachocoConnection;
14
+ error: null;
15
+ /**
16
+ * What every answer carries besides its data or error.
17
+ */
18
+ metadata: ResponseMetadata;
19
+ success: true;
20
+ }
21
+ /**
22
+ * A failed answer.
23
+ */
24
+ export interface ComfachocoDeleteConnectionBadGatewayError {
25
+ data: null;
26
+ error: ComfachocoDeleteConnectionBadGatewayFailure;
27
+ /**
28
+ * What every answer carries besides its data or error.
29
+ */
30
+ metadata: ResponseMetadata;
31
+ success: false;
32
+ }
33
+ export type ComfachocoDeleteConnectionBadGatewayFailure = OutcomeUnknownFailure | ComfachocoProviderProtocolChangedFailure | ComfachocoMemberIdentityMismatchFailure;
34
+ /**
35
+ * A failed answer.
36
+ */
37
+ export interface ComfachocoDeleteConnectionServiceUnavailableError {
38
+ data: null;
39
+ error: ComfachocoDeleteConnectionServiceUnavailableFailure;
40
+ /**
41
+ * What every answer carries besides its data or error.
42
+ */
43
+ metadata: ResponseMetadata;
44
+ success: false;
45
+ }
46
+ export type ComfachocoDeleteConnectionServiceUnavailableFailure = UpstreamUnavailableFailure | ComfachocoProviderUnavailableFailure | ComfachocoProviderSessionExpiredFailure;
47
+ /**
48
+ * A failed answer.
49
+ */
50
+ export interface ComfachocoDeleteConnectionTooManyRequestsError {
51
+ data: null;
52
+ error: ComfachocoDeleteConnectionTooManyRequestsFailure;
53
+ /**
54
+ * What every answer carries besides its data or error.
55
+ */
56
+ metadata: ResponseMetadata;
57
+ success: false;
58
+ }
59
+ export type ComfachocoDeleteConnectionTooManyRequestsFailure = RateLimitedFailure | ComfachocoLoginCoolingDownFailure;
60
+ /**
61
+ * A failed answer.
62
+ */
63
+ export interface ComfachocoDeleteConnectionUnprocessableContentError {
64
+ data: null;
65
+ error: ComfachocoDeleteConnectionUnprocessableContentFailure;
66
+ /**
67
+ * What every answer carries besides its data or error.
68
+ */
69
+ metadata: ResponseMetadata;
70
+ success: false;
71
+ }
72
+ export type ComfachocoDeleteConnectionUnprocessableContentFailure = ComfachocoProviderAccountInactiveFailure | ComfachocoCredentialsRejectedFailure;
73
+ /**
74
+ * A failed answer.
75
+ */
76
+ export interface ComfachocoGetConnectionBadGatewayError {
77
+ data: null;
78
+ error: ComfachocoGetConnectionBadGatewayFailure;
79
+ /**
80
+ * What every answer carries besides its data or error.
81
+ */
82
+ metadata: ResponseMetadata;
83
+ success: false;
84
+ }
85
+ export type ComfachocoGetConnectionBadGatewayFailure = OutcomeUnknownFailure | ComfachocoProviderProtocolChangedFailure | ComfachocoMemberIdentityMismatchFailure;
86
+ /**
87
+ * A failed answer.
88
+ */
89
+ export interface ComfachocoGetConnectionServiceUnavailableError {
90
+ data: null;
91
+ error: ComfachocoGetConnectionServiceUnavailableFailure;
92
+ /**
93
+ * What every answer carries besides its data or error.
94
+ */
95
+ metadata: ResponseMetadata;
96
+ success: false;
97
+ }
98
+ export type ComfachocoGetConnectionServiceUnavailableFailure = UpstreamUnavailableFailure | ComfachocoProviderUnavailableFailure | ComfachocoProviderSessionExpiredFailure;
99
+ /**
100
+ * A failed answer.
101
+ */
102
+ export interface ComfachocoGetConnectionTooManyRequestsError {
103
+ data: null;
104
+ error: ComfachocoGetConnectionTooManyRequestsFailure;
105
+ /**
106
+ * What every answer carries besides its data or error.
107
+ */
108
+ metadata: ResponseMetadata;
109
+ success: false;
110
+ }
111
+ export type ComfachocoGetConnectionTooManyRequestsFailure = RateLimitedFailure | ComfachocoLoginCoolingDownFailure;
112
+ /**
113
+ * A failed answer.
114
+ */
115
+ export interface ComfachocoGetConnectionUnprocessableContentError {
116
+ data: null;
117
+ error: ComfachocoGetConnectionUnprocessableContentFailure;
118
+ /**
119
+ * What every answer carries besides its data or error.
120
+ */
121
+ metadata: ResponseMetadata;
122
+ success: false;
123
+ }
124
+ export type ComfachocoGetConnectionUnprocessableContentFailure = ComfachocoProviderAccountInactiveFailure | ComfachocoCredentialsRejectedFailure;
125
+ /**
126
+ * A failed answer.
127
+ */
128
+ export interface ComfachocoVerifyConnectionBadGatewayError {
129
+ data: null;
130
+ error: ComfachocoVerifyConnectionBadGatewayFailure;
131
+ /**
132
+ * What every answer carries besides its data or error.
133
+ */
134
+ metadata: ResponseMetadata;
135
+ success: false;
136
+ }
137
+ export type ComfachocoVerifyConnectionBadGatewayFailure = OutcomeUnknownFailure | ComfachocoProviderProtocolChangedFailure | ComfachocoMemberIdentityMismatchFailure;
138
+ export interface ComfachocoVerifyConnectionBody {
139
+ documentType: "CC";
140
+ name: string;
141
+ password: string;
142
+ username: string;
143
+ }
144
+ export type ComfachocoVerifyConnectionResult = {
145
+ stateRef: string;
146
+ status: "active";
147
+ summary: string;
148
+ } | {
149
+ errorCode: string;
150
+ status: "rejected";
151
+ };
152
+ /**
153
+ * A successful answer.
154
+ */
155
+ export interface ComfachocoVerifyConnectionResultResponse {
156
+ data: ComfachocoVerifyConnectionResult;
157
+ error: null;
158
+ /**
159
+ * What every answer carries besides its data or error.
160
+ */
161
+ metadata: ResponseMetadata;
162
+ success: true;
163
+ }
164
+ /**
165
+ * A failed answer.
166
+ */
167
+ export interface ComfachocoVerifyConnectionServiceUnavailableError {
168
+ data: null;
169
+ error: ComfachocoVerifyConnectionServiceUnavailableFailure;
170
+ /**
171
+ * What every answer carries besides its data or error.
172
+ */
173
+ metadata: ResponseMetadata;
174
+ success: false;
175
+ }
176
+ export type ComfachocoVerifyConnectionServiceUnavailableFailure = UpstreamUnavailableFailure | ComfachocoProviderUnavailableFailure | ComfachocoProviderSessionExpiredFailure;
177
+ /**
178
+ * A failed answer.
179
+ */
180
+ export interface ComfachocoVerifyConnectionTooManyRequestsError {
181
+ data: null;
182
+ error: ComfachocoVerifyConnectionTooManyRequestsFailure;
183
+ /**
184
+ * What every answer carries besides its data or error.
185
+ */
186
+ metadata: ResponseMetadata;
187
+ success: false;
188
+ }
189
+ export type ComfachocoVerifyConnectionTooManyRequestsFailure = RateLimitedFailure | ComfachocoLoginCoolingDownFailure;
190
+ /**
191
+ * A failed answer.
192
+ */
193
+ export interface ComfachocoVerifyConnectionUnprocessableContentError {
194
+ data: null;
195
+ error: ComfachocoVerifyConnectionUnprocessableContentFailure;
196
+ /**
197
+ * What every answer carries besides its data or error.
198
+ */
199
+ metadata: ResponseMetadata;
200
+ success: false;
201
+ }
202
+ export type ComfachocoVerifyConnectionUnprocessableContentFailure = ComfachocoProviderAccountInactiveFailure | ComfachocoCredentialsRejectedFailure;
203
+ export declare const ComfachocoComfachocoConnectionCodec: import("../../_/codec.js").Codec;
204
+ export declare const ComfachocoComfachocoConnectionResponseCodec: 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 ComfachocoComfachocoConnectionCodec = object([
5
+ ["verifiedAt", null, instant],
6
+ ]);
7
+ export const ComfachocoComfachocoConnectionResponseCodec = object([
8
+ ["data", null, () => ComfachocoComfachocoConnectionCodec],
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 { ComfachocoConnectionNotFoundError, ComfachocoConnectionNotFoundFailure, ComfachocoConnectionRequiredError, ComfachocoConnectionRequiredFailure, ComfachocoCredentialsRejectedFailure, ComfachocoLoginCoolingDownFailure, ComfachocoMemberIdentityMismatchFailure, ComfachocoProviderAccountInactiveFailure, ComfachocoProviderProtocolChangedFailure, ComfachocoProviderSessionExpiredFailure, ComfachocoProviderUnavailableFailure, } 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";