@arbol-ai/sdk 5.32.0 → 5.33.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/permissions/models.d.ts +1 -1
- package/dist/client.d.ts +2 -0
- package/dist/client.js +5 -0
- package/dist/comfachoco/affiliations/client.d.ts +24 -0
- package/dist/comfachoco/affiliations/client.js +19 -0
- package/dist/comfachoco/affiliations/index.d.ts +5 -0
- package/dist/comfachoco/affiliations/index.js +4 -0
- package/dist/comfachoco/affiliations/models.d.ts +97 -0
- package/dist/comfachoco/affiliations/models.js +13 -0
- package/dist/comfachoco/client.d.ts +15 -0
- package/dist/comfachoco/client.js +20 -0
- package/dist/comfachoco/connections/client.d.ts +55 -0
- package/dist/comfachoco/connections/client.js +33 -0
- package/dist/comfachoco/connections/index.d.ts +5 -0
- package/dist/comfachoco/connections/index.js +4 -0
- package/dist/comfachoco/connections/models.d.ts +204 -0
- package/dist/comfachoco/connections/models.js +9 -0
- package/dist/comfachoco/index.d.ts +5 -0
- package/dist/comfachoco/index.js +4 -0
- package/dist/comfachoco/models.d.ts +220 -0
- package/dist/comfachoco/models.js +3 -0
- package/dist/index.d.ts +1 -1
- package/dist/models.d.ts +12 -0
- package/dist/models.js +3 -0
- package/dist/nuevaEps/affiliations/models.d.ts +2 -2
- package/dist/nuevaEps/client.d.ts +6 -0
- package/dist/nuevaEps/client.js +15 -0
- package/dist/nuevaEps/connections/models.d.ts +6 -5
- package/dist/nuevaEps/index.d.ts +1 -1
- package/dist/nuevaEps/ingestionErrorReports/client.d.ts +33 -0
- package/dist/nuevaEps/ingestionErrorReports/client.js +19 -0
- package/dist/nuevaEps/ingestionErrorReports/index.d.ts +5 -0
- package/dist/nuevaEps/ingestionErrorReports/index.js +4 -0
- package/dist/nuevaEps/ingestionErrorReports/models.d.ts +87 -0
- package/dist/nuevaEps/ingestionErrorReports/models.js +10 -0
- package/dist/nuevaEps/ingestions/client.d.ts +68 -0
- package/dist/nuevaEps/ingestions/client.js +26 -0
- package/dist/nuevaEps/ingestions/index.d.ts +5 -0
- package/dist/nuevaEps/ingestions/index.js +4 -0
- package/dist/nuevaEps/ingestions/models.d.ts +182 -0
- package/dist/nuevaEps/ingestions/models.js +3 -0
- package/dist/nuevaEps/models.d.ts +65 -0
- package/dist/nuevaEps/precursoras/client.d.ts +27 -0
- package/dist/nuevaEps/precursoras/client.js +18 -0
- package/dist/nuevaEps/precursoras/index.d.ts +5 -0
- package/dist/nuevaEps/precursoras/index.js +4 -0
- package/dist/nuevaEps/precursoras/models.d.ts +94 -0
- package/dist/nuevaEps/precursoras/models.js +3 -0
- package/dist/raiz/channels/models.d.ts +10 -10
- package/dist/raiz/channels/models.js +1 -1
- package/dist/raiz/conversations/client.d.ts +24 -9
- package/dist/raiz/conversations/index.d.ts +1 -1
- package/dist/raiz/conversations/models.d.ts +3 -14
- package/dist/raiz/conversations/models.js +2 -4
- package/dist/raiz/index.d.ts +1 -1
- package/dist/raiz/knowledge/client.d.ts +4 -3
- package/dist/raiz/models.d.ts +8 -2
- package/dist/raiz/reports/client.d.ts +35 -20
- package/dist/raiz/reports/client.js +1 -1
- package/dist/raiz/reports/models.d.ts +21 -0
- package/dist/raiz/reports/models.js +1 -1
- package/package.json +5 -4
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import type { ForbiddenFailure, OutcomeUnknownFailure, PageInfo, RateLimitedFailure, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
+
import type { NuevaEpsLoginCooldownFailure, NuevaEpsLoginRejectedFailure, NuevaEpsNotConfiguredFailure, NuevaEpsPasswordChangeRequiredFailure, NuevaEpsPortalChangedFailure, NuevaEpsPortalMismatchFailure, NuevaEpsPortalNotConfiguredFailure, NuevaEpsPortalUnavailableFailure, NuevaEpsRegionBlockedFailure, NuevaEpsSessionBusyFailure, NuevaEpsSessionRequiredFailure, NuevaEpsUuid } from "../models.js";
|
|
3
|
+
/**
|
|
4
|
+
* A failed answer.
|
|
5
|
+
*/
|
|
6
|
+
export interface NuevaEpsGetIngestionBadGatewayError {
|
|
7
|
+
data: null;
|
|
8
|
+
error: NuevaEpsGetIngestionBadGatewayFailure;
|
|
9
|
+
/**
|
|
10
|
+
* What every answer carries besides its data or error.
|
|
11
|
+
*/
|
|
12
|
+
metadata: ResponseMetadata;
|
|
13
|
+
success: false;
|
|
14
|
+
}
|
|
15
|
+
export type NuevaEpsGetIngestionBadGatewayFailure = OutcomeUnknownFailure | NuevaEpsPortalChangedFailure;
|
|
16
|
+
/**
|
|
17
|
+
* A failed answer.
|
|
18
|
+
*/
|
|
19
|
+
export interface NuevaEpsGetIngestionConflictError {
|
|
20
|
+
data: null;
|
|
21
|
+
error: NuevaEpsGetIngestionConflictFailure;
|
|
22
|
+
/**
|
|
23
|
+
* What every answer carries besides its data or error.
|
|
24
|
+
*/
|
|
25
|
+
metadata: ResponseMetadata;
|
|
26
|
+
success: false;
|
|
27
|
+
}
|
|
28
|
+
export type NuevaEpsGetIngestionConflictFailure = NuevaEpsPortalNotConfiguredFailure | NuevaEpsPortalMismatchFailure | NuevaEpsPasswordChangeRequiredFailure | NuevaEpsNotConfiguredFailure | NuevaEpsSessionRequiredFailure | NuevaEpsSessionBusyFailure;
|
|
29
|
+
/**
|
|
30
|
+
* A failed answer.
|
|
31
|
+
*/
|
|
32
|
+
export interface NuevaEpsGetIngestionForbiddenError {
|
|
33
|
+
data: null;
|
|
34
|
+
error: NuevaEpsGetIngestionForbiddenFailure;
|
|
35
|
+
/**
|
|
36
|
+
* What every answer carries besides its data or error.
|
|
37
|
+
*/
|
|
38
|
+
metadata: ResponseMetadata;
|
|
39
|
+
success: false;
|
|
40
|
+
}
|
|
41
|
+
export type NuevaEpsGetIngestionForbiddenFailure = ForbiddenFailure | NuevaEpsLoginRejectedFailure;
|
|
42
|
+
/**
|
|
43
|
+
* A failed answer.
|
|
44
|
+
*/
|
|
45
|
+
export interface NuevaEpsGetIngestionServiceUnavailableError {
|
|
46
|
+
data: null;
|
|
47
|
+
error: NuevaEpsGetIngestionServiceUnavailableFailure;
|
|
48
|
+
/**
|
|
49
|
+
* What every answer carries besides its data or error.
|
|
50
|
+
*/
|
|
51
|
+
metadata: ResponseMetadata;
|
|
52
|
+
success: false;
|
|
53
|
+
}
|
|
54
|
+
export type NuevaEpsGetIngestionServiceUnavailableFailure = UpstreamUnavailableFailure | NuevaEpsPortalUnavailableFailure | NuevaEpsRegionBlockedFailure;
|
|
55
|
+
/**
|
|
56
|
+
* A failed answer.
|
|
57
|
+
*/
|
|
58
|
+
export interface NuevaEpsGetIngestionTooManyRequestsError {
|
|
59
|
+
data: null;
|
|
60
|
+
error: NuevaEpsGetIngestionTooManyRequestsFailure;
|
|
61
|
+
/**
|
|
62
|
+
* What every answer carries besides its data or error.
|
|
63
|
+
*/
|
|
64
|
+
metadata: ResponseMetadata;
|
|
65
|
+
success: false;
|
|
66
|
+
}
|
|
67
|
+
export type NuevaEpsGetIngestionTooManyRequestsFailure = RateLimitedFailure | NuevaEpsLoginCooldownFailure;
|
|
68
|
+
export interface NuevaEpsIngestion {
|
|
69
|
+
createdAt: string;
|
|
70
|
+
id: NuevaEpsUuid;
|
|
71
|
+
insertedRows: number;
|
|
72
|
+
invalidRows: number;
|
|
73
|
+
period: string;
|
|
74
|
+
providerId: number;
|
|
75
|
+
status: string;
|
|
76
|
+
structureId: number;
|
|
77
|
+
totalRows: number;
|
|
78
|
+
validRows: number;
|
|
79
|
+
}
|
|
80
|
+
export interface NuevaEpsIngestionPage {
|
|
81
|
+
/**
|
|
82
|
+
* Items admitted by this resource contract within the verified organization.
|
|
83
|
+
*/
|
|
84
|
+
data: NuevaEpsIngestion[];
|
|
85
|
+
/**
|
|
86
|
+
* Discriminator for a resource list response.
|
|
87
|
+
*/
|
|
88
|
+
object: "list";
|
|
89
|
+
/**
|
|
90
|
+
* Opaque navigation cursors for this page’s stable keyset order.
|
|
91
|
+
*/
|
|
92
|
+
pageInfo: PageInfo;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* A successful answer.
|
|
96
|
+
*/
|
|
97
|
+
export interface NuevaEpsIngestionPageResponse {
|
|
98
|
+
data: NuevaEpsIngestionPage;
|
|
99
|
+
error: null;
|
|
100
|
+
/**
|
|
101
|
+
* What every answer carries besides its data or error.
|
|
102
|
+
*/
|
|
103
|
+
metadata: ResponseMetadata;
|
|
104
|
+
success: true;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* A successful answer.
|
|
108
|
+
*/
|
|
109
|
+
export interface NuevaEpsIngestionResponse {
|
|
110
|
+
data: NuevaEpsIngestion;
|
|
111
|
+
error: null;
|
|
112
|
+
/**
|
|
113
|
+
* What every answer carries besides its data or error.
|
|
114
|
+
*/
|
|
115
|
+
metadata: ResponseMetadata;
|
|
116
|
+
success: true;
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* A failed answer.
|
|
120
|
+
*/
|
|
121
|
+
export interface NuevaEpsListIngestionsBadGatewayError {
|
|
122
|
+
data: null;
|
|
123
|
+
error: NuevaEpsListIngestionsBadGatewayFailure;
|
|
124
|
+
/**
|
|
125
|
+
* What every answer carries besides its data or error.
|
|
126
|
+
*/
|
|
127
|
+
metadata: ResponseMetadata;
|
|
128
|
+
success: false;
|
|
129
|
+
}
|
|
130
|
+
export type NuevaEpsListIngestionsBadGatewayFailure = OutcomeUnknownFailure | NuevaEpsPortalChangedFailure;
|
|
131
|
+
/**
|
|
132
|
+
* A failed answer.
|
|
133
|
+
*/
|
|
134
|
+
export interface NuevaEpsListIngestionsConflictError {
|
|
135
|
+
data: null;
|
|
136
|
+
error: NuevaEpsListIngestionsConflictFailure;
|
|
137
|
+
/**
|
|
138
|
+
* What every answer carries besides its data or error.
|
|
139
|
+
*/
|
|
140
|
+
metadata: ResponseMetadata;
|
|
141
|
+
success: false;
|
|
142
|
+
}
|
|
143
|
+
export type NuevaEpsListIngestionsConflictFailure = NuevaEpsPortalNotConfiguredFailure | NuevaEpsPortalMismatchFailure | NuevaEpsPasswordChangeRequiredFailure | NuevaEpsNotConfiguredFailure | NuevaEpsSessionRequiredFailure | NuevaEpsSessionBusyFailure;
|
|
144
|
+
/**
|
|
145
|
+
* A failed answer.
|
|
146
|
+
*/
|
|
147
|
+
export interface NuevaEpsListIngestionsForbiddenError {
|
|
148
|
+
data: null;
|
|
149
|
+
error: NuevaEpsListIngestionsForbiddenFailure;
|
|
150
|
+
/**
|
|
151
|
+
* What every answer carries besides its data or error.
|
|
152
|
+
*/
|
|
153
|
+
metadata: ResponseMetadata;
|
|
154
|
+
success: false;
|
|
155
|
+
}
|
|
156
|
+
export type NuevaEpsListIngestionsForbiddenFailure = ForbiddenFailure | NuevaEpsLoginRejectedFailure;
|
|
157
|
+
/**
|
|
158
|
+
* A failed answer.
|
|
159
|
+
*/
|
|
160
|
+
export interface NuevaEpsListIngestionsServiceUnavailableError {
|
|
161
|
+
data: null;
|
|
162
|
+
error: NuevaEpsListIngestionsServiceUnavailableFailure;
|
|
163
|
+
/**
|
|
164
|
+
* What every answer carries besides its data or error.
|
|
165
|
+
*/
|
|
166
|
+
metadata: ResponseMetadata;
|
|
167
|
+
success: false;
|
|
168
|
+
}
|
|
169
|
+
export type NuevaEpsListIngestionsServiceUnavailableFailure = UpstreamUnavailableFailure | NuevaEpsPortalUnavailableFailure | NuevaEpsRegionBlockedFailure;
|
|
170
|
+
/**
|
|
171
|
+
* A failed answer.
|
|
172
|
+
*/
|
|
173
|
+
export interface NuevaEpsListIngestionsTooManyRequestsError {
|
|
174
|
+
data: null;
|
|
175
|
+
error: NuevaEpsListIngestionsTooManyRequestsFailure;
|
|
176
|
+
/**
|
|
177
|
+
* What every answer carries besides its data or error.
|
|
178
|
+
*/
|
|
179
|
+
metadata: ResponseMetadata;
|
|
180
|
+
success: false;
|
|
181
|
+
}
|
|
182
|
+
export type NuevaEpsListIngestionsTooManyRequestsFailure = RateLimitedFailure | NuevaEpsLoginCooldownFailure;
|
|
@@ -100,6 +100,27 @@ export interface NuevaEpsNotConfiguredFailure {
|
|
|
100
100
|
*/
|
|
101
101
|
retryable: false;
|
|
102
102
|
}
|
|
103
|
+
/**
|
|
104
|
+
* Change the password in the provider portal before connecting this account.
|
|
105
|
+
*/
|
|
106
|
+
export interface NuevaEpsPasswordChangeRequiredFailure {
|
|
107
|
+
/**
|
|
108
|
+
* The failure code, stable across releases.
|
|
109
|
+
*/
|
|
110
|
+
code: "PASSWORD_CHANGE_REQUIRED";
|
|
111
|
+
/**
|
|
112
|
+
* No fields.
|
|
113
|
+
*/
|
|
114
|
+
data: Empty;
|
|
115
|
+
/**
|
|
116
|
+
* What went wrong, for people; it never contains input values.
|
|
117
|
+
*/
|
|
118
|
+
message: string;
|
|
119
|
+
/**
|
|
120
|
+
* Whether repeating the same request may succeed.
|
|
121
|
+
*/
|
|
122
|
+
retryable: false;
|
|
123
|
+
}
|
|
103
124
|
/**
|
|
104
125
|
* The response does not match the verified provider protocol.
|
|
105
126
|
*/
|
|
@@ -121,6 +142,49 @@ export interface NuevaEpsPortalChangedFailure {
|
|
|
121
142
|
*/
|
|
122
143
|
retryable: false;
|
|
123
144
|
}
|
|
145
|
+
/**
|
|
146
|
+
* This account belongs to a different Nueva EPS portal. Choose a matching
|
|
147
|
+
* connection.
|
|
148
|
+
*/
|
|
149
|
+
export interface NuevaEpsPortalMismatchFailure {
|
|
150
|
+
/**
|
|
151
|
+
* The failure code, stable across releases.
|
|
152
|
+
*/
|
|
153
|
+
code: "PORTAL_MISMATCH";
|
|
154
|
+
/**
|
|
155
|
+
* No fields.
|
|
156
|
+
*/
|
|
157
|
+
data: Empty;
|
|
158
|
+
/**
|
|
159
|
+
* What went wrong, for people; it never contains input values.
|
|
160
|
+
*/
|
|
161
|
+
message: string;
|
|
162
|
+
/**
|
|
163
|
+
* Whether repeating the same request may succeed.
|
|
164
|
+
*/
|
|
165
|
+
retryable: false;
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* Add an Account connection for the requested Nueva EPS portal.
|
|
169
|
+
*/
|
|
170
|
+
export interface NuevaEpsPortalNotConfiguredFailure {
|
|
171
|
+
/**
|
|
172
|
+
* The failure code, stable across releases.
|
|
173
|
+
*/
|
|
174
|
+
code: "PORTAL_NOT_CONFIGURED";
|
|
175
|
+
/**
|
|
176
|
+
* No fields.
|
|
177
|
+
*/
|
|
178
|
+
data: Empty;
|
|
179
|
+
/**
|
|
180
|
+
* What went wrong, for people; it never contains input values.
|
|
181
|
+
*/
|
|
182
|
+
message: string;
|
|
183
|
+
/**
|
|
184
|
+
* Whether repeating the same request may succeed.
|
|
185
|
+
*/
|
|
186
|
+
retryable: false;
|
|
187
|
+
}
|
|
124
188
|
/**
|
|
125
189
|
* The provider portal could not complete this request.
|
|
126
190
|
*/
|
|
@@ -205,3 +269,4 @@ export interface NuevaEpsSessionRequiredFailure {
|
|
|
205
269
|
*/
|
|
206
270
|
retryable: false;
|
|
207
271
|
}
|
|
272
|
+
export type NuevaEpsUuid = string;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
+
import type { NuevaEpsPrecursorasCatalogResponse } 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 the Precursoras catalog
|
|
12
|
+
*
|
|
13
|
+
* Read this account’s available providers and reporting structures. Requires
|
|
14
|
+
* a separate Precursoras Account connection; affiliation credentials cannot
|
|
15
|
+
* be used.
|
|
16
|
+
*/
|
|
17
|
+
get(request?: GetRequest, options?: RequestOptions): Promise<GetResponse>;
|
|
18
|
+
}
|
|
19
|
+
export declare function createClient(options: ClientOptions): Client;
|
|
20
|
+
export declare function bind(transport: Transport): Client;
|
|
21
|
+
export interface GetRequest {
|
|
22
|
+
/**
|
|
23
|
+
* The connection id.
|
|
24
|
+
*/
|
|
25
|
+
connectionId?: string;
|
|
26
|
+
}
|
|
27
|
+
export type GetResponse = NuevaEpsPrecursorasCatalogResponse;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// Code generated by forge. DO NOT EDIT.
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
import { Transport, } from "../../_/index.js";
|
|
4
|
+
export function createClient(options) {
|
|
5
|
+
return bind(new Transport(options));
|
|
6
|
+
}
|
|
7
|
+
export function bind(transport) {
|
|
8
|
+
return {
|
|
9
|
+
get: (request, options) => transport.send(GetOperation, request, options),
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
const GetOperation = {
|
|
13
|
+
method: "GET",
|
|
14
|
+
route: "/v1/nueva-eps/precursoras",
|
|
15
|
+
query: { connectionId: "connectionId" },
|
|
16
|
+
response: null,
|
|
17
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "429": true, "500": true, "501": 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 { NuevaEpsGetPrecursorasBadGatewayError, NuevaEpsGetPrecursorasBadGatewayFailure, NuevaEpsGetPrecursorasConflictError, NuevaEpsGetPrecursorasConflictFailure, NuevaEpsGetPrecursorasForbiddenError, NuevaEpsGetPrecursorasForbiddenFailure, NuevaEpsGetPrecursorasServiceUnavailableError, NuevaEpsGetPrecursorasServiceUnavailableFailure, NuevaEpsGetPrecursorasTooManyRequestsError, NuevaEpsGetPrecursorasTooManyRequestsFailure, NuevaEpsPrecursorasCatalog, NuevaEpsPrecursorasCatalogResponse, } from "./models.js";
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import type { ForbiddenFailure, OutcomeUnknownFailure, RateLimitedFailure, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
+
import type { NuevaEpsLoginCooldownFailure, NuevaEpsLoginRejectedFailure, NuevaEpsNotConfiguredFailure, NuevaEpsPasswordChangeRequiredFailure, NuevaEpsPortalChangedFailure, NuevaEpsPortalMismatchFailure, NuevaEpsPortalNotConfiguredFailure, NuevaEpsPortalUnavailableFailure, NuevaEpsRegionBlockedFailure, NuevaEpsSessionBusyFailure, NuevaEpsSessionRequiredFailure } from "../models.js";
|
|
3
|
+
/**
|
|
4
|
+
* A failed answer.
|
|
5
|
+
*/
|
|
6
|
+
export interface NuevaEpsGetPrecursorasBadGatewayError {
|
|
7
|
+
data: null;
|
|
8
|
+
error: NuevaEpsGetPrecursorasBadGatewayFailure;
|
|
9
|
+
/**
|
|
10
|
+
* What every answer carries besides its data or error.
|
|
11
|
+
*/
|
|
12
|
+
metadata: ResponseMetadata;
|
|
13
|
+
success: false;
|
|
14
|
+
}
|
|
15
|
+
export type NuevaEpsGetPrecursorasBadGatewayFailure = OutcomeUnknownFailure | NuevaEpsPortalChangedFailure;
|
|
16
|
+
/**
|
|
17
|
+
* A failed answer.
|
|
18
|
+
*/
|
|
19
|
+
export interface NuevaEpsGetPrecursorasConflictError {
|
|
20
|
+
data: null;
|
|
21
|
+
error: NuevaEpsGetPrecursorasConflictFailure;
|
|
22
|
+
/**
|
|
23
|
+
* What every answer carries besides its data or error.
|
|
24
|
+
*/
|
|
25
|
+
metadata: ResponseMetadata;
|
|
26
|
+
success: false;
|
|
27
|
+
}
|
|
28
|
+
export type NuevaEpsGetPrecursorasConflictFailure = NuevaEpsPortalNotConfiguredFailure | NuevaEpsPortalMismatchFailure | NuevaEpsPasswordChangeRequiredFailure | NuevaEpsNotConfiguredFailure | NuevaEpsSessionRequiredFailure | NuevaEpsSessionBusyFailure;
|
|
29
|
+
/**
|
|
30
|
+
* A failed answer.
|
|
31
|
+
*/
|
|
32
|
+
export interface NuevaEpsGetPrecursorasForbiddenError {
|
|
33
|
+
data: null;
|
|
34
|
+
error: NuevaEpsGetPrecursorasForbiddenFailure;
|
|
35
|
+
/**
|
|
36
|
+
* What every answer carries besides its data or error.
|
|
37
|
+
*/
|
|
38
|
+
metadata: ResponseMetadata;
|
|
39
|
+
success: false;
|
|
40
|
+
}
|
|
41
|
+
export type NuevaEpsGetPrecursorasForbiddenFailure = ForbiddenFailure | NuevaEpsLoginRejectedFailure;
|
|
42
|
+
/**
|
|
43
|
+
* A failed answer.
|
|
44
|
+
*/
|
|
45
|
+
export interface NuevaEpsGetPrecursorasServiceUnavailableError {
|
|
46
|
+
data: null;
|
|
47
|
+
error: NuevaEpsGetPrecursorasServiceUnavailableFailure;
|
|
48
|
+
/**
|
|
49
|
+
* What every answer carries besides its data or error.
|
|
50
|
+
*/
|
|
51
|
+
metadata: ResponseMetadata;
|
|
52
|
+
success: false;
|
|
53
|
+
}
|
|
54
|
+
export type NuevaEpsGetPrecursorasServiceUnavailableFailure = UpstreamUnavailableFailure | NuevaEpsPortalUnavailableFailure | NuevaEpsRegionBlockedFailure;
|
|
55
|
+
/**
|
|
56
|
+
* A failed answer.
|
|
57
|
+
*/
|
|
58
|
+
export interface NuevaEpsGetPrecursorasTooManyRequestsError {
|
|
59
|
+
data: null;
|
|
60
|
+
error: NuevaEpsGetPrecursorasTooManyRequestsFailure;
|
|
61
|
+
/**
|
|
62
|
+
* What every answer carries besides its data or error.
|
|
63
|
+
*/
|
|
64
|
+
metadata: ResponseMetadata;
|
|
65
|
+
success: false;
|
|
66
|
+
}
|
|
67
|
+
export type NuevaEpsGetPrecursorasTooManyRequestsFailure = RateLimitedFailure | NuevaEpsLoginCooldownFailure;
|
|
68
|
+
export interface NuevaEpsPrecursorasCatalog {
|
|
69
|
+
applications: {
|
|
70
|
+
code: string;
|
|
71
|
+
name: string;
|
|
72
|
+
}[];
|
|
73
|
+
providers: {
|
|
74
|
+
id: number;
|
|
75
|
+
name: string;
|
|
76
|
+
}[];
|
|
77
|
+
structures: {
|
|
78
|
+
fieldCount: number;
|
|
79
|
+
id: number;
|
|
80
|
+
name: string;
|
|
81
|
+
}[];
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* A successful answer.
|
|
85
|
+
*/
|
|
86
|
+
export interface NuevaEpsPrecursorasCatalogResponse {
|
|
87
|
+
data: NuevaEpsPrecursorasCatalog;
|
|
88
|
+
error: null;
|
|
89
|
+
/**
|
|
90
|
+
* What every answer carries besides its data or error.
|
|
91
|
+
*/
|
|
92
|
+
metadata: ResponseMetadata;
|
|
93
|
+
success: true;
|
|
94
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { PageInfo } from "../../models.js";
|
|
2
|
-
import { type RaizBusinessHours
|
|
1
|
+
import type { HttpsUrl, PageInfo } from "../../models.js";
|
|
2
|
+
import { type RaizBusinessHours } from "../models.js";
|
|
3
3
|
export interface RaizChannel {
|
|
4
4
|
address: string | null;
|
|
5
5
|
agent: RaizChannelAgent | null;
|
|
@@ -195,7 +195,7 @@ export interface RaizWidgetSettings {
|
|
|
195
195
|
assistantTextColor?: string | null;
|
|
196
196
|
attachmentTypes?: ("image/png" | "image/jpeg" | "application/pdf" | "text/plain")[];
|
|
197
197
|
attachmentsEnabled?: boolean;
|
|
198
|
-
avatarUrl?:
|
|
198
|
+
avatarUrl?: HttpsUrl | null;
|
|
199
199
|
/**
|
|
200
200
|
* A color in `#RRGGBB` form.
|
|
201
201
|
*/
|
|
@@ -241,7 +241,7 @@ export interface RaizWidgetSettings {
|
|
|
241
241
|
*/
|
|
242
242
|
fontFamily?: string;
|
|
243
243
|
fontSize?: number;
|
|
244
|
-
fontUrl?:
|
|
244
|
+
fontUrl?: HttpsUrl | null;
|
|
245
245
|
formTitle?: string;
|
|
246
246
|
greeting?: string;
|
|
247
247
|
/**
|
|
@@ -261,7 +261,7 @@ export interface RaizWidgetSettings {
|
|
|
261
261
|
* The CSS font-family of `headingFont: custom`.
|
|
262
262
|
*/
|
|
263
263
|
headingFontFamily?: string;
|
|
264
|
-
headingFontUrl?:
|
|
264
|
+
headingFontUrl?: HttpsUrl | null;
|
|
265
265
|
/**
|
|
266
266
|
* The headings' weight, from 300 (light) to 800 (heavy).
|
|
267
267
|
*/
|
|
@@ -319,7 +319,7 @@ export interface RaizWidgetSettings {
|
|
|
319
319
|
* A color in `#RRGGBB` form.
|
|
320
320
|
*/
|
|
321
321
|
primaryColor?: string;
|
|
322
|
-
privacyUrl?:
|
|
322
|
+
privacyUrl?: HttpsUrl | null;
|
|
323
323
|
/**
|
|
324
324
|
* Also serve the widget on its own hosted page, outside any embedding site.
|
|
325
325
|
*/
|
|
@@ -411,7 +411,7 @@ export interface RaizWidgetSettingsInput {
|
|
|
411
411
|
assistantTextColor?: string | null;
|
|
412
412
|
attachmentTypes?: ("image/png" | "image/jpeg" | "application/pdf" | "text/plain")[];
|
|
413
413
|
attachmentsEnabled?: boolean;
|
|
414
|
-
avatarUrl?:
|
|
414
|
+
avatarUrl?: HttpsUrl | null;
|
|
415
415
|
/**
|
|
416
416
|
* A color in `#RRGGBB` form.
|
|
417
417
|
*/
|
|
@@ -457,7 +457,7 @@ export interface RaizWidgetSettingsInput {
|
|
|
457
457
|
*/
|
|
458
458
|
fontFamily?: string;
|
|
459
459
|
fontSize?: number;
|
|
460
|
-
fontUrl?:
|
|
460
|
+
fontUrl?: HttpsUrl | null;
|
|
461
461
|
formTitle?: string;
|
|
462
462
|
greeting?: string;
|
|
463
463
|
/**
|
|
@@ -477,7 +477,7 @@ export interface RaizWidgetSettingsInput {
|
|
|
477
477
|
* The CSS font-family of `headingFont: custom`.
|
|
478
478
|
*/
|
|
479
479
|
headingFontFamily?: string;
|
|
480
|
-
headingFontUrl?:
|
|
480
|
+
headingFontUrl?: HttpsUrl | null;
|
|
481
481
|
/**
|
|
482
482
|
* The headings' weight, from 300 (light) to 800 (heavy).
|
|
483
483
|
*/
|
|
@@ -530,7 +530,7 @@ export interface RaizWidgetSettingsInput {
|
|
|
530
530
|
* A color in `#RRGGBB` form.
|
|
531
531
|
*/
|
|
532
532
|
primaryColor?: string;
|
|
533
|
-
privacyUrl?:
|
|
533
|
+
privacyUrl?: HttpsUrl | null;
|
|
534
534
|
/**
|
|
535
535
|
* Also serve the widget on its own hosted page, outside any embedding site.
|
|
536
536
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Code generated by forge. DO NOT EDIT.
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
import { array, instant, object } from "../../_/index.js";
|
|
4
|
-
import { RaizBusinessHoursCodec
|
|
4
|
+
import { RaizBusinessHoursCodec } from "../models.js";
|
|
5
5
|
export const RaizChannelCodec = object([
|
|
6
6
|
["businessHours", null, () => RaizBusinessHoursCodec],
|
|
7
7
|
["createdAt", null, instant],
|
|
@@ -14,12 +14,13 @@ export interface Client {
|
|
|
14
14
|
*
|
|
15
15
|
* Give a WhatsApp conversation the AI handed to the team back to the AI,
|
|
16
16
|
* which continues the contact's pending request now, though the contact has
|
|
17
|
-
* not written.
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
17
|
+
* not written. Review the resolved blocker first; use expectedVersion and
|
|
18
|
+
* expectedHandoffMessageId to refuse a stale decision with VERSION_CONFLICT.
|
|
19
|
+
* `note` preserves the evidence and remaining request for the Agent. Only
|
|
20
|
+
* inside WhatsApp's 24-hour window, once per handoff, and for an AI handoff.
|
|
21
|
+
* Preserve explicit human requests, unresolved clinical/administrative
|
|
22
|
+
* decisions, identity conflicts and uncertain writes with the team. Not an AI
|
|
23
|
+
* tool: it makes the Agent write to a real person.
|
|
23
24
|
*/
|
|
24
25
|
continue(request: ContinueRequest, options?: RequestOptions): Promise<ContinueResponse>;
|
|
25
26
|
/**
|
|
@@ -109,9 +110,23 @@ export interface ContinueRequest {
|
|
|
109
110
|
*/
|
|
110
111
|
conversationId: string;
|
|
111
112
|
/**
|
|
112
|
-
*
|
|
113
|
-
*
|
|
114
|
-
*
|
|
113
|
+
* The humanReviewMessageId just reviewed by the operator. A different current
|
|
114
|
+
* handoff refuses the continuation with VERSION_CONFLICT, without resuming or
|
|
115
|
+
* sending anything. Use with expectedVersion after checking that the original
|
|
116
|
+
* blocker is resolved.
|
|
117
|
+
*/
|
|
118
|
+
expectedHandoffMessageId?: string;
|
|
119
|
+
/**
|
|
120
|
+
* The `version` you read. When present, the change applies only if nobody
|
|
121
|
+
* changed the resource since; otherwise it fails with VERSION_CONFLICT.
|
|
122
|
+
*/
|
|
123
|
+
expectedVersion?: number;
|
|
124
|
+
/**
|
|
125
|
+
* A short internal note about the resolved blocker, authoritative evidence,
|
|
126
|
+
* confirmed appointments and any remaining request. A note does not establish
|
|
127
|
+
* coverage, clinical equivalence, consent or a booking. Preserve explicit
|
|
128
|
+
* human requests and unresolved clinical decisions, identity conflicts or
|
|
129
|
+
* uncertain writes with the team.
|
|
115
130
|
*/
|
|
116
131
|
note?: string;
|
|
117
132
|
}
|
|
@@ -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, ContinueRequest, ContinueResponse, CountRequest, CountResponse, DeleteRequest, DeleteResponse, GetRequest, GetResponse, ListRequest, ListResponse, UpdateRequest, UpdateResponse, } from "./client.js";
|
|
5
|
-
export type { RaizConversation, RaizConversationCount, RaizConversationDiagnostics, RaizConversationGroup, RaizConversationOutcomeCounts, RaizConversationPage, RaizConversationToolCalls, RaizConversationToolFailure, RaizConversationWorker, RaizMessage, RaizMessagePage,
|
|
5
|
+
export type { RaizConversation, RaizConversationCount, RaizConversationDiagnostics, RaizConversationGroup, RaizConversationOutcomeCounts, RaizConversationPage, RaizConversationToolCalls, RaizConversationToolFailure, RaizConversationWorker, RaizMessage, RaizMessagePage, } from "./models.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import { type RaizFact
|
|
1
|
+
import { type PageInfo, type SignedUrl } from "../../models.js";
|
|
2
|
+
import { type RaizFact } from "../models.js";
|
|
3
3
|
export interface RaizConversation {
|
|
4
4
|
agentId: string | null;
|
|
5
5
|
agentName: string | null;
|
|
@@ -86,7 +86,7 @@ export interface RaizConversation {
|
|
|
86
86
|
origin: "inbound" | "manual" | "api" | "campaign" | "import" | "test";
|
|
87
87
|
outcome: "success" | "failure" | "unknown" | null;
|
|
88
88
|
profileId: string | null;
|
|
89
|
-
recording?:
|
|
89
|
+
recording?: SignedUrl | null;
|
|
90
90
|
recordingAvailable: boolean;
|
|
91
91
|
requestedBy: string | null;
|
|
92
92
|
sentiment: "positive" | "neutral" | "negative" | null;
|
|
@@ -351,19 +351,8 @@ export interface RaizMessagePage {
|
|
|
351
351
|
*/
|
|
352
352
|
pageInfo: PageInfo;
|
|
353
353
|
}
|
|
354
|
-
export interface RaizSignedUrl {
|
|
355
|
-
/**
|
|
356
|
-
* When the URL stops working.
|
|
357
|
-
*/
|
|
358
|
-
expiresAt: Temporal.Instant;
|
|
359
|
-
/**
|
|
360
|
-
* The signed URL. Anyone holding it has access until it expires.
|
|
361
|
-
*/
|
|
362
|
-
url: RaizHttpsUrl;
|
|
363
|
-
}
|
|
364
354
|
export declare const RaizConversationCodec: import("../../_/codec.js").Codec;
|
|
365
355
|
export declare const RaizConversationPageCodec: import("../../_/codec.js").Codec;
|
|
366
356
|
export declare const RaizConversationWorkerCodec: import("../../_/codec.js").Codec;
|
|
367
357
|
export declare const RaizMessageCodec: import("../../_/codec.js").Codec;
|
|
368
358
|
export declare const RaizMessagePageCodec: import("../../_/codec.js").Codec;
|
|
369
|
-
export declare const RaizSignedUrlCodec: import("../../_/codec.js").Codec;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// Code generated by forge. DO NOT EDIT.
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
import { array, instant, object, union } from "../../_/index.js";
|
|
4
|
+
import { SignedUrlCodec } from "../../models.js";
|
|
4
5
|
import { RaizFactCodec } from "../models.js";
|
|
5
6
|
export const RaizConversationCodec = object([
|
|
6
7
|
["analyzedAt", null, instant],
|
|
@@ -10,7 +11,7 @@ export const RaizConversationCodec = object([
|
|
|
10
11
|
["facts", null, array(() => RaizFactCodec)],
|
|
11
12
|
["lastMessageAt", null, instant],
|
|
12
13
|
["messages", null, () => RaizMessagePageCodec],
|
|
13
|
-
["recording", null, () =>
|
|
14
|
+
["recording", null, () => SignedUrlCodec],
|
|
14
15
|
["startedAt", null, instant],
|
|
15
16
|
["updatedAt", null, instant],
|
|
16
17
|
["workers", null, array(() => RaizConversationWorkerCodec)],
|
|
@@ -29,6 +30,3 @@ export const RaizMessageCodec = object([
|
|
|
29
30
|
export const RaizMessagePageCodec = object([
|
|
30
31
|
["data", null, array(() => RaizMessageCodec)],
|
|
31
32
|
]);
|
|
32
|
-
export const RaizSignedUrlCodec = object([
|
|
33
|
-
["expiresAt", null, instant],
|
|
34
|
-
]);
|
package/dist/raiz/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 { RaizAgentIntegrationProcedureInput, RaizAgentProcedureInput, RaizBusinessHours, RaizBusinessHoursWindow, RaizContactHoursWindow, RaizEmailAddress, RaizFact, RaizFailureResponse,
|
|
5
|
+
export type { RaizAgentIntegrationProcedureInput, RaizAgentProcedureInput, RaizBusinessHours, RaizBusinessHoursWindow, RaizContactHoursWindow, RaizEmailAddress, RaizFact, RaizFailureResponse, RaizOutsideHoursTemplate, RaizPhoneNumber, RaizResponseMetadata, RaizTask, } from "./models.js";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import type {
|
|
2
|
+
import type { HttpsUrl } from "../../models.js";
|
|
3
|
+
import type { RaizResponseMetadata } from "../models.js";
|
|
3
4
|
import { type RaizCrawlSettings, type RaizKnowledgeDocument, type RaizKnowledgeDocumentPage, type RaizKnowledgeFileInput, type RaizKnowledgePassagePage } from "./models.js";
|
|
4
5
|
export interface ClientOptions extends BaseClientOptions {
|
|
5
6
|
/**
|
|
@@ -83,7 +84,7 @@ export interface CreateRequest {
|
|
|
83
84
|
* approved for this deployment; only same-origin pages under its path are
|
|
84
85
|
* followed, and robots.txt is respected.
|
|
85
86
|
*/
|
|
86
|
-
sourceUrl?:
|
|
87
|
+
sourceUrl?: HttpsUrl;
|
|
87
88
|
/**
|
|
88
89
|
* A paused document is never searched; its index is kept.
|
|
89
90
|
*/
|
|
@@ -221,7 +222,7 @@ export interface UpdateRequest {
|
|
|
221
222
|
* approved for this deployment; only same-origin pages under its path are
|
|
222
223
|
* followed, and robots.txt is respected.
|
|
223
224
|
*/
|
|
224
|
-
sourceUrl?:
|
|
225
|
+
sourceUrl?: HttpsUrl;
|
|
225
226
|
/**
|
|
226
227
|
* A paused document is never searched; its index is kept.
|
|
227
228
|
*/
|