@arbol-ai/sdk 5.73.0 → 5.75.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/billing/models.d.ts +2 -2
- package/dist/account/usageSummary/models.d.ts +1 -1
- package/dist/oficlinic/appointmentReport/client.d.ts +36 -0
- package/dist/oficlinic/appointmentReport/client.js +19 -0
- package/dist/oficlinic/appointmentReport/index.d.ts +5 -0
- package/dist/oficlinic/appointmentReport/index.js +4 -0
- package/dist/oficlinic/appointmentReport/models.d.ts +100 -0
- package/dist/oficlinic/appointmentReport/models.js +9 -0
- package/dist/oficlinic/client.d.ts +4 -0
- package/dist/oficlinic/client.js +10 -0
- package/dist/oficlinic/reportCatalog/client.d.ts +45 -0
- package/dist/oficlinic/reportCatalog/client.js +18 -0
- package/dist/oficlinic/reportCatalog/index.d.ts +5 -0
- package/dist/oficlinic/reportCatalog/index.js +4 -0
- package/dist/oficlinic/reportCatalog/models.d.ts +116 -0
- package/dist/oficlinic/reportCatalog/models.js +3 -0
- package/dist/raiz/agents/client.d.ts +14 -1
- package/dist/raiz/agents/client.js +1 -0
- package/dist/raiz/agents/models.d.ts +30 -6
- package/dist/raiz/channels/client.d.ts +4 -1
- package/dist/raiz/channels/index.d.ts +1 -1
- package/dist/raiz/channels/models.d.ts +9 -746
- package/dist/raiz/client.d.ts +2 -0
- package/dist/raiz/client.js +5 -0
- package/dist/raiz/conversations/client.d.ts +32 -1
- package/dist/raiz/conversations/client.js +10 -1
- package/dist/raiz/conversations/index.d.ts +2 -2
- package/dist/raiz/conversations/models.d.ts +217 -3
- package/dist/raiz/conversations/models.js +1 -0
- package/dist/raiz/definitions/models.d.ts +30 -0
- package/dist/raiz/evalRuns/client.d.ts +33 -10
- package/dist/raiz/evalRuns/client.js +1 -0
- package/dist/raiz/evalRuns/index.d.ts +1 -1
- package/dist/raiz/evalRuns/models.d.ts +108 -7
- package/dist/raiz/evalRuns/models.js +4 -0
- package/dist/raiz/index.d.ts +1 -1
- package/dist/raiz/models/client.d.ts +37 -0
- package/dist/raiz/models/client.js +18 -0
- package/dist/raiz/models/index.d.ts +5 -0
- package/dist/raiz/models/index.js +4 -0
- package/dist/raiz/models/models.d.ts +55 -0
- package/dist/raiz/models/models.js +3 -0
- package/dist/raiz/models.d.ts +1157 -175
- package/dist/raiz/organization/models.d.ts +2 -2
- package/dist/raiz/reports/client.d.ts +1 -1
- package/dist/raiz/reports/models.d.ts +1 -1
- package/dist/visoft/patients/client.d.ts +2 -2
- package/package.json +4 -4
|
@@ -19,7 +19,7 @@ export interface AccountBilling {
|
|
|
19
19
|
* credits.
|
|
20
20
|
*/
|
|
21
21
|
bundles: {
|
|
22
|
-
feature: "voice_minutes" | "telephony_minutes" | "telephony_cost" | "whatsapp_conversations" | "whatsapp_messages" | "whatsapp_templates" | "tool_calls" | "ai_cost" | "phone_numbers" | "sisben_lookups" | "adres_lookups" | "policia_colombia_lookups" | "postconsultations" | "agenda_users" | "sms_messages" | "agenda_plan" | "support_fee";
|
|
22
|
+
feature: "voice_minutes" | "telephony_minutes" | "telephony_cost" | "whatsapp_conversations" | "whatsapp_messages" | "whatsapp_templates" | "tool_calls" | "ai_cost" | "phone_numbers" | "sisben_lookups" | "adres_lookups" | "policia_colombia_lookups" | "postconsultations" | "agenda_users" | "sms_messages" | "arbol_cost" | "agenda_plan" | "support_fee";
|
|
23
23
|
included: number;
|
|
24
24
|
remaining: number;
|
|
25
25
|
resetsAt: Temporal.Instant | null;
|
|
@@ -122,7 +122,7 @@ export interface AccountBillingPlan {
|
|
|
122
122
|
[key: string]: unknown;
|
|
123
123
|
};
|
|
124
124
|
creditsPerUnit: number;
|
|
125
|
-
feature: "voice_minutes" | "telephony_minutes" | "telephony_cost" | "whatsapp_conversations" | "whatsapp_messages" | "whatsapp_templates" | "tool_calls" | "ai_cost" | "phone_numbers" | "sisben_lookups" | "adres_lookups" | "policia_colombia_lookups" | "postconsultations" | "agenda_users" | "sms_messages" | "agenda_plan" | "support_fee";
|
|
125
|
+
feature: "voice_minutes" | "telephony_minutes" | "telephony_cost" | "whatsapp_conversations" | "whatsapp_messages" | "whatsapp_templates" | "tool_calls" | "ai_cost" | "phone_numbers" | "sisben_lookups" | "adres_lookups" | "policia_colombia_lookups" | "postconsultations" | "agenda_users" | "sms_messages" | "arbol_cost" | "agenda_plan" | "support_fee";
|
|
126
126
|
}[];
|
|
127
127
|
status: "active" | "scheduled";
|
|
128
128
|
}
|
|
@@ -22,7 +22,7 @@ export interface AccountUsageFeature {
|
|
|
22
22
|
* How many reports made it up.
|
|
23
23
|
*/
|
|
24
24
|
events: number;
|
|
25
|
-
feature: "voice_minutes" | "telephony_minutes" | "telephony_cost" | "whatsapp_conversations" | "whatsapp_messages" | "whatsapp_templates" | "tool_calls" | "ai_cost" | "phone_numbers" | "sisben_lookups" | "adres_lookups" | "policia_colombia_lookups" | "postconsultations" | "agenda_users" | "sms_messages" | "agenda_plan" | "support_fee";
|
|
25
|
+
feature: "voice_minutes" | "telephony_minutes" | "telephony_cost" | "whatsapp_conversations" | "whatsapp_messages" | "whatsapp_templates" | "tool_calls" | "ai_cost" | "phone_numbers" | "sisben_lookups" | "adres_lookups" | "policia_colombia_lookups" | "postconsultations" | "agenda_users" | "sms_messages" | "arbol_cost" | "agenda_plan" | "support_fee";
|
|
26
26
|
groups: {
|
|
27
27
|
credits: number;
|
|
28
28
|
key: string;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
+
import { type OficlinicAppointmentReportResponse } 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 appointment report
|
|
12
|
+
*
|
|
13
|
+
* Inspect the column labels and table row count of one authorized appointment
|
|
14
|
+
* report for one date. Unrecognized column labels are null. Row count
|
|
15
|
+
* includes headings, repeated headings and totals. No patient values are
|
|
16
|
+
* returned.
|
|
17
|
+
*/
|
|
18
|
+
get(request: GetRequest, options?: RequestOptions): Promise<GetResponse>;
|
|
19
|
+
}
|
|
20
|
+
export declare function createClient(options: ClientOptions): Client;
|
|
21
|
+
export declare function bind(transport: Transport): Client;
|
|
22
|
+
export interface GetRequest {
|
|
23
|
+
/**
|
|
24
|
+
* An Account connection id of the caller's organization.
|
|
25
|
+
*/
|
|
26
|
+
connectionId?: string;
|
|
27
|
+
/**
|
|
28
|
+
* The date.
|
|
29
|
+
*/
|
|
30
|
+
date: Temporal.PlainDate;
|
|
31
|
+
/**
|
|
32
|
+
* The report.
|
|
33
|
+
*/
|
|
34
|
+
report: "agendaDetail" | "printedAgenda" | "appointmentTiming";
|
|
35
|
+
}
|
|
36
|
+
export type GetResponse = OficlinicAppointmentReportResponse;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// Code generated by forge. DO NOT EDIT.
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
import { Transport, } from "../../_/index.js";
|
|
4
|
+
import { OficlinicAppointmentReportResponseCodec, } from "./models.js";
|
|
5
|
+
export function createClient(options) {
|
|
6
|
+
return bind(new Transport(options));
|
|
7
|
+
}
|
|
8
|
+
export function bind(transport) {
|
|
9
|
+
return {
|
|
10
|
+
get: (request, options) => transport.send(GetOperation, request, options),
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
const GetOperation = {
|
|
14
|
+
method: "GET",
|
|
15
|
+
route: "/v1/oficlinic/appointment-report",
|
|
16
|
+
query: { connectionId: "connectionId", date: "date", report: "report" },
|
|
17
|
+
response: OficlinicAppointmentReportResponseCodec,
|
|
18
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "409": 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, GetRequest, GetResponse, } from "./client.js";
|
|
5
|
+
export type { OficlinicAppointmentReport, OficlinicAppointmentReportResponse, OficlinicGetAppointmentReportBadGatewayError, OficlinicGetAppointmentReportBadGatewayFailure, OficlinicGetAppointmentReportConflictError, OficlinicGetAppointmentReportConflictFailure, OficlinicGetAppointmentReportServiceUnavailableError, OficlinicGetAppointmentReportServiceUnavailableFailure, OficlinicGetAppointmentReportTooManyRequestsError, OficlinicGetAppointmentReportTooManyRequestsFailure, OficlinicGetAppointmentReportUnprocessableContentError, OficlinicGetAppointmentReportUnprocessableContentFailure, } from "./models.js";
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import type { CredentialsRejectedFailure, OutcomeUnknownFailure, ProviderProtocolChangedFailure, ProviderUnavailableFailure, RateLimitedFailure, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
+
import type { OficlinicConnectionBusyFailure, OficlinicConnectionNotActiveFailure, OficlinicConnectionRequiredFailure, OficlinicContextNotAvailableFailure, OficlinicLoginCoolingDownFailure, OficlinicProviderIdentityMismatchFailure, OficlinicReauthenticationRequiredFailure, OficlinicSignInOutcomeUnknownFailure } from "../models.js";
|
|
3
|
+
export interface OficlinicAppointmentReport {
|
|
4
|
+
appointments: {
|
|
5
|
+
distinctCas: number;
|
|
6
|
+
mentioningWhatsAppInNotes: number;
|
|
7
|
+
siteMentions: {
|
|
8
|
+
espinal: number;
|
|
9
|
+
girardot: number;
|
|
10
|
+
honda: number;
|
|
11
|
+
ibague: number;
|
|
12
|
+
};
|
|
13
|
+
withPhone: number;
|
|
14
|
+
withSingleColombianMobile: number;
|
|
15
|
+
} | null;
|
|
16
|
+
date: Temporal.PlainDate;
|
|
17
|
+
format: "htmlTable" | "webPage" | "xmlWorkbook" | "binaryWorkbook" | "pdf" | "other" | "notGranted";
|
|
18
|
+
headers: (string | null)[][];
|
|
19
|
+
report: "agendaDetail" | "printedAgenda" | "appointmentTiming";
|
|
20
|
+
rowCount: number;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* A successful answer.
|
|
24
|
+
*/
|
|
25
|
+
export interface OficlinicAppointmentReportResponse {
|
|
26
|
+
data: OficlinicAppointmentReport;
|
|
27
|
+
error: null;
|
|
28
|
+
/**
|
|
29
|
+
* What every answer carries besides its data or error.
|
|
30
|
+
*/
|
|
31
|
+
metadata: ResponseMetadata;
|
|
32
|
+
success: true;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* A failed answer.
|
|
36
|
+
*/
|
|
37
|
+
export interface OficlinicGetAppointmentReportBadGatewayError {
|
|
38
|
+
data: null;
|
|
39
|
+
error: OficlinicGetAppointmentReportBadGatewayFailure;
|
|
40
|
+
/**
|
|
41
|
+
* What every answer carries besides its data or error.
|
|
42
|
+
*/
|
|
43
|
+
metadata: ResponseMetadata;
|
|
44
|
+
success: false;
|
|
45
|
+
}
|
|
46
|
+
export type OficlinicGetAppointmentReportBadGatewayFailure = OutcomeUnknownFailure | OficlinicSignInOutcomeUnknownFailure | ProviderProtocolChangedFailure;
|
|
47
|
+
/**
|
|
48
|
+
* A failed answer.
|
|
49
|
+
*/
|
|
50
|
+
export interface OficlinicGetAppointmentReportConflictError {
|
|
51
|
+
data: null;
|
|
52
|
+
error: OficlinicGetAppointmentReportConflictFailure;
|
|
53
|
+
/**
|
|
54
|
+
* What every answer carries besides its data or error.
|
|
55
|
+
*/
|
|
56
|
+
metadata: ResponseMetadata;
|
|
57
|
+
success: false;
|
|
58
|
+
}
|
|
59
|
+
export type OficlinicGetAppointmentReportConflictFailure = OficlinicConnectionRequiredFailure | OficlinicConnectionNotActiveFailure | OficlinicConnectionBusyFailure | OficlinicReauthenticationRequiredFailure;
|
|
60
|
+
/**
|
|
61
|
+
* A failed answer.
|
|
62
|
+
*/
|
|
63
|
+
export interface OficlinicGetAppointmentReportServiceUnavailableError {
|
|
64
|
+
data: null;
|
|
65
|
+
error: OficlinicGetAppointmentReportServiceUnavailableFailure;
|
|
66
|
+
/**
|
|
67
|
+
* What every answer carries besides its data or error.
|
|
68
|
+
*/
|
|
69
|
+
metadata: ResponseMetadata;
|
|
70
|
+
success: false;
|
|
71
|
+
}
|
|
72
|
+
export type OficlinicGetAppointmentReportServiceUnavailableFailure = UpstreamUnavailableFailure | ProviderUnavailableFailure;
|
|
73
|
+
/**
|
|
74
|
+
* A failed answer.
|
|
75
|
+
*/
|
|
76
|
+
export interface OficlinicGetAppointmentReportTooManyRequestsError {
|
|
77
|
+
data: null;
|
|
78
|
+
error: OficlinicGetAppointmentReportTooManyRequestsFailure;
|
|
79
|
+
/**
|
|
80
|
+
* What every answer carries besides its data or error.
|
|
81
|
+
*/
|
|
82
|
+
metadata: ResponseMetadata;
|
|
83
|
+
success: false;
|
|
84
|
+
}
|
|
85
|
+
export type OficlinicGetAppointmentReportTooManyRequestsFailure = RateLimitedFailure | OficlinicLoginCoolingDownFailure;
|
|
86
|
+
/**
|
|
87
|
+
* A failed answer.
|
|
88
|
+
*/
|
|
89
|
+
export interface OficlinicGetAppointmentReportUnprocessableContentError {
|
|
90
|
+
data: null;
|
|
91
|
+
error: OficlinicGetAppointmentReportUnprocessableContentFailure;
|
|
92
|
+
/**
|
|
93
|
+
* What every answer carries besides its data or error.
|
|
94
|
+
*/
|
|
95
|
+
metadata: ResponseMetadata;
|
|
96
|
+
success: false;
|
|
97
|
+
}
|
|
98
|
+
export type OficlinicGetAppointmentReportUnprocessableContentFailure = CredentialsRejectedFailure | OficlinicContextNotAvailableFailure | OficlinicProviderIdentityMismatchFailure;
|
|
99
|
+
export declare const OficlinicAppointmentReportCodec: import("../../_/codec.js").Codec;
|
|
100
|
+
export declare const OficlinicAppointmentReportResponseCodec: import("../../_/codec.js").Codec;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// Code generated by forge. DO NOT EDIT.
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
import { date, object } from "../../_/index.js";
|
|
4
|
+
export const OficlinicAppointmentReportCodec = object([
|
|
5
|
+
["date", null, date],
|
|
6
|
+
]);
|
|
7
|
+
export const OficlinicAppointmentReportResponseCodec = object([
|
|
8
|
+
["data", null, () => OficlinicAppointmentReportCodec],
|
|
9
|
+
]);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type BaseClientOptions, Transport } from "../_/index.js";
|
|
2
2
|
import { type Client as AffiliateTypesClient } from "./affiliateTypes/client.js";
|
|
3
|
+
import { type Client as AppointmentReportClient } from "./appointmentReport/client.js";
|
|
3
4
|
import { type Client as AppointmentsClient } from "./appointments/client.js";
|
|
4
5
|
import { type Client as BookingDaysClient } from "./bookingDays/client.js";
|
|
5
6
|
import { type Client as BookingProfessionalsClient } from "./bookingProfessionals/client.js";
|
|
@@ -18,6 +19,7 @@ import { type Client as ProfessionalsClient } from "./professionals/client.js";
|
|
|
18
19
|
import { type Client as ProgramsClient } from "./programs/client.js";
|
|
19
20
|
import { type Client as RegimesClient } from "./regimes/client.js";
|
|
20
21
|
import { type Client as RelationshipsClient } from "./relationships/client.js";
|
|
22
|
+
import { type Client as ReportCatalogClient } from "./reportCatalog/client.js";
|
|
21
23
|
import { type Client as SalaryRangesClient } from "./salaryRanges/client.js";
|
|
22
24
|
import { type Client as ServiceCatalogClient } from "./serviceCatalog/client.js";
|
|
23
25
|
import { type Client as ServicesClient } from "./services/client.js";
|
|
@@ -29,6 +31,7 @@ export interface ClientOptions extends BaseClientOptions {
|
|
|
29
31
|
}
|
|
30
32
|
export interface Client {
|
|
31
33
|
readonly affiliateTypes: AffiliateTypesClient;
|
|
34
|
+
readonly appointmentReport: AppointmentReportClient;
|
|
32
35
|
readonly appointments: AppointmentsClient;
|
|
33
36
|
readonly bookingDays: BookingDaysClient;
|
|
34
37
|
readonly bookingProfessionals: BookingProfessionalsClient;
|
|
@@ -47,6 +50,7 @@ export interface Client {
|
|
|
47
50
|
readonly programs: ProgramsClient;
|
|
48
51
|
readonly regimes: RegimesClient;
|
|
49
52
|
readonly relationships: RelationshipsClient;
|
|
53
|
+
readonly reportCatalog: ReportCatalogClient;
|
|
50
54
|
readonly salaryRanges: SalaryRangesClient;
|
|
51
55
|
readonly serviceCatalog: ServiceCatalogClient;
|
|
52
56
|
readonly services: ServicesClient;
|
package/dist/oficlinic/client.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
import { Transport } from "../_/index.js";
|
|
4
4
|
import { bind as bindAffiliateTypes, } from "./affiliateTypes/client.js";
|
|
5
|
+
import { bind as bindAppointmentReport, } from "./appointmentReport/client.js";
|
|
5
6
|
import { bind as bindAppointments, } from "./appointments/client.js";
|
|
6
7
|
import { bind as bindBookingDays, } from "./bookingDays/client.js";
|
|
7
8
|
import { bind as bindBookingProfessionals, } from "./bookingProfessionals/client.js";
|
|
@@ -20,6 +21,7 @@ import { bind as bindProfessionals, } from "./professionals/client.js";
|
|
|
20
21
|
import { bind as bindPrograms, } from "./programs/client.js";
|
|
21
22
|
import { bind as bindRegimes, } from "./regimes/client.js";
|
|
22
23
|
import { bind as bindRelationships, } from "./relationships/client.js";
|
|
24
|
+
import { bind as bindReportCatalog, } from "./reportCatalog/client.js";
|
|
23
25
|
import { bind as bindSalaryRanges, } from "./salaryRanges/client.js";
|
|
24
26
|
import { bind as bindServiceCatalog, } from "./serviceCatalog/client.js";
|
|
25
27
|
import { bind as bindServices, } from "./services/client.js";
|
|
@@ -28,6 +30,7 @@ export function createClient(options) {
|
|
|
28
30
|
}
|
|
29
31
|
export function bind(transport) {
|
|
30
32
|
let affiliateTypesClient;
|
|
33
|
+
let appointmentReportClient;
|
|
31
34
|
let appointmentsClient;
|
|
32
35
|
let bookingDaysClient;
|
|
33
36
|
let bookingProfessionalsClient;
|
|
@@ -46,6 +49,7 @@ export function bind(transport) {
|
|
|
46
49
|
let programsClient;
|
|
47
50
|
let regimesClient;
|
|
48
51
|
let relationshipsClient;
|
|
52
|
+
let reportCatalogClient;
|
|
49
53
|
let salaryRangesClient;
|
|
50
54
|
let serviceCatalogClient;
|
|
51
55
|
let servicesClient;
|
|
@@ -53,6 +57,9 @@ export function bind(transport) {
|
|
|
53
57
|
get affiliateTypes() {
|
|
54
58
|
return (affiliateTypesClient ??= bindAffiliateTypes(transport));
|
|
55
59
|
},
|
|
60
|
+
get appointmentReport() {
|
|
61
|
+
return (appointmentReportClient ??= bindAppointmentReport(transport));
|
|
62
|
+
},
|
|
56
63
|
get appointments() {
|
|
57
64
|
return (appointmentsClient ??= bindAppointments(transport));
|
|
58
65
|
},
|
|
@@ -107,6 +114,9 @@ export function bind(transport) {
|
|
|
107
114
|
get relationships() {
|
|
108
115
|
return (relationshipsClient ??= bindRelationships(transport));
|
|
109
116
|
},
|
|
117
|
+
get reportCatalog() {
|
|
118
|
+
return (reportCatalogClient ??= bindReportCatalog(transport));
|
|
119
|
+
},
|
|
110
120
|
get salaryRanges() {
|
|
111
121
|
return (salaryRangesClient ??= bindSalaryRanges(transport));
|
|
112
122
|
},
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
+
import type { OficlinicReportCatalogPageResponse } 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 report catalog
|
|
12
|
+
*
|
|
13
|
+
* List the e-Oficlinic Macroinformes modules, or supply a returned moduleId
|
|
14
|
+
* for its report names and codes permitted to the live staff profile. Catalog
|
|
15
|
+
* metadata only. Page with pageInfo.nextCursor.
|
|
16
|
+
*/
|
|
17
|
+
list(request?: ListRequest, options?: RequestOptions): Promise<ListResponse>;
|
|
18
|
+
}
|
|
19
|
+
export declare function createClient(options: ClientOptions): Client;
|
|
20
|
+
export declare function bind(transport: Transport): Client;
|
|
21
|
+
export interface ListRequest {
|
|
22
|
+
/**
|
|
23
|
+
* An Account connection id of the caller's organization.
|
|
24
|
+
*/
|
|
25
|
+
connectionId?: string;
|
|
26
|
+
/**
|
|
27
|
+
* A module id from this connection's report catalog.
|
|
28
|
+
*/
|
|
29
|
+
moduleId?: string;
|
|
30
|
+
/**
|
|
31
|
+
* An opaque cursor from a previous page's pageInfo.nextCursor or
|
|
32
|
+
* pageInfo.previousCursor.
|
|
33
|
+
*/
|
|
34
|
+
cursor?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Direction to traverse the stable keyset ordering from the supplied cursor.
|
|
37
|
+
*/
|
|
38
|
+
direction?: "forward" | "backward";
|
|
39
|
+
/**
|
|
40
|
+
* Maximum items returned in one page. Defaults to 50; larger reads require
|
|
41
|
+
* another cursor.
|
|
42
|
+
*/
|
|
43
|
+
limit?: number;
|
|
44
|
+
}
|
|
45
|
+
export type ListResponse = OficlinicReportCatalogPageResponse;
|
|
@@ -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
|
+
list: (request, options) => transport.send(ListOperation, request, options),
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
const ListOperation = {
|
|
13
|
+
method: "GET",
|
|
14
|
+
route: "/v1/oficlinic/report-catalog",
|
|
15
|
+
query: { connectionId: "connectionId", moduleId: "moduleId", cursor: "cursor", direction: "direction", limit: "limit" },
|
|
16
|
+
response: null,
|
|
17
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
18
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { ApiError } from "../../_/index.js";
|
|
2
|
+
export type { RequestOptions } from "../../_/index.js";
|
|
3
|
+
export { createClient } from "./client.js";
|
|
4
|
+
export type { Client, ClientOptions, ListRequest, ListResponse, } from "./client.js";
|
|
5
|
+
export type { OficlinicGetReportCatalogBadGatewayError, OficlinicGetReportCatalogBadGatewayFailure, OficlinicGetReportCatalogBadRequestError, OficlinicGetReportCatalogBadRequestFailure, OficlinicGetReportCatalogConflictError, OficlinicGetReportCatalogConflictFailure, OficlinicGetReportCatalogServiceUnavailableError, OficlinicGetReportCatalogServiceUnavailableFailure, OficlinicGetReportCatalogTooManyRequestsError, OficlinicGetReportCatalogTooManyRequestsFailure, OficlinicGetReportCatalogUnprocessableContentError, OficlinicGetReportCatalogUnprocessableContentFailure, OficlinicReportCatalogItem, OficlinicReportCatalogPage, OficlinicReportCatalogPageResponse, } from "./models.js";
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import type { CredentialsRejectedFailure, InvalidInputFailure, OutcomeUnknownFailure, PageInfo, ProviderProtocolChangedFailure, ProviderUnavailableFailure, RateLimitedFailure, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
+
import type { OficlinicConnectionBusyFailure, OficlinicConnectionNotActiveFailure, OficlinicConnectionRequiredFailure, OficlinicContextNotAvailableFailure, OficlinicInvalidCursorFailure, OficlinicLoginCoolingDownFailure, OficlinicProviderIdentityMismatchFailure, OficlinicReauthenticationRequiredFailure, OficlinicSignInOutcomeUnknownFailure } from "../models.js";
|
|
3
|
+
/**
|
|
4
|
+
* A failed answer.
|
|
5
|
+
*/
|
|
6
|
+
export interface OficlinicGetReportCatalogBadGatewayError {
|
|
7
|
+
data: null;
|
|
8
|
+
error: OficlinicGetReportCatalogBadGatewayFailure;
|
|
9
|
+
/**
|
|
10
|
+
* What every answer carries besides its data or error.
|
|
11
|
+
*/
|
|
12
|
+
metadata: ResponseMetadata;
|
|
13
|
+
success: false;
|
|
14
|
+
}
|
|
15
|
+
export type OficlinicGetReportCatalogBadGatewayFailure = OutcomeUnknownFailure | OficlinicSignInOutcomeUnknownFailure | ProviderProtocolChangedFailure;
|
|
16
|
+
/**
|
|
17
|
+
* A failed answer.
|
|
18
|
+
*/
|
|
19
|
+
export interface OficlinicGetReportCatalogBadRequestError {
|
|
20
|
+
data: null;
|
|
21
|
+
error: OficlinicGetReportCatalogBadRequestFailure;
|
|
22
|
+
/**
|
|
23
|
+
* What every answer carries besides its data or error.
|
|
24
|
+
*/
|
|
25
|
+
metadata: ResponseMetadata;
|
|
26
|
+
success: false;
|
|
27
|
+
}
|
|
28
|
+
export type OficlinicGetReportCatalogBadRequestFailure = InvalidInputFailure | OficlinicInvalidCursorFailure;
|
|
29
|
+
/**
|
|
30
|
+
* A failed answer.
|
|
31
|
+
*/
|
|
32
|
+
export interface OficlinicGetReportCatalogConflictError {
|
|
33
|
+
data: null;
|
|
34
|
+
error: OficlinicGetReportCatalogConflictFailure;
|
|
35
|
+
/**
|
|
36
|
+
* What every answer carries besides its data or error.
|
|
37
|
+
*/
|
|
38
|
+
metadata: ResponseMetadata;
|
|
39
|
+
success: false;
|
|
40
|
+
}
|
|
41
|
+
export type OficlinicGetReportCatalogConflictFailure = OficlinicConnectionRequiredFailure | OficlinicConnectionNotActiveFailure | OficlinicConnectionBusyFailure | OficlinicReauthenticationRequiredFailure;
|
|
42
|
+
/**
|
|
43
|
+
* A failed answer.
|
|
44
|
+
*/
|
|
45
|
+
export interface OficlinicGetReportCatalogServiceUnavailableError {
|
|
46
|
+
data: null;
|
|
47
|
+
error: OficlinicGetReportCatalogServiceUnavailableFailure;
|
|
48
|
+
/**
|
|
49
|
+
* What every answer carries besides its data or error.
|
|
50
|
+
*/
|
|
51
|
+
metadata: ResponseMetadata;
|
|
52
|
+
success: false;
|
|
53
|
+
}
|
|
54
|
+
export type OficlinicGetReportCatalogServiceUnavailableFailure = UpstreamUnavailableFailure | ProviderUnavailableFailure;
|
|
55
|
+
/**
|
|
56
|
+
* A failed answer.
|
|
57
|
+
*/
|
|
58
|
+
export interface OficlinicGetReportCatalogTooManyRequestsError {
|
|
59
|
+
data: null;
|
|
60
|
+
error: OficlinicGetReportCatalogTooManyRequestsFailure;
|
|
61
|
+
/**
|
|
62
|
+
* What every answer carries besides its data or error.
|
|
63
|
+
*/
|
|
64
|
+
metadata: ResponseMetadata;
|
|
65
|
+
success: false;
|
|
66
|
+
}
|
|
67
|
+
export type OficlinicGetReportCatalogTooManyRequestsFailure = RateLimitedFailure | OficlinicLoginCoolingDownFailure;
|
|
68
|
+
/**
|
|
69
|
+
* A failed answer.
|
|
70
|
+
*/
|
|
71
|
+
export interface OficlinicGetReportCatalogUnprocessableContentError {
|
|
72
|
+
data: null;
|
|
73
|
+
error: OficlinicGetReportCatalogUnprocessableContentFailure;
|
|
74
|
+
/**
|
|
75
|
+
* What every answer carries besides its data or error.
|
|
76
|
+
*/
|
|
77
|
+
metadata: ResponseMetadata;
|
|
78
|
+
success: false;
|
|
79
|
+
}
|
|
80
|
+
export type OficlinicGetReportCatalogUnprocessableContentFailure = CredentialsRejectedFailure | OficlinicContextNotAvailableFailure | OficlinicProviderIdentityMismatchFailure;
|
|
81
|
+
export interface OficlinicReportCatalogItem {
|
|
82
|
+
fileName: string | null;
|
|
83
|
+
id: string;
|
|
84
|
+
kind: "module" | "report";
|
|
85
|
+
name: string;
|
|
86
|
+
/**
|
|
87
|
+
* The relative PHP file offered by the picker, with no query or fragment.
|
|
88
|
+
*/
|
|
89
|
+
sourcePath: string | null;
|
|
90
|
+
}
|
|
91
|
+
export interface OficlinicReportCatalogPage {
|
|
92
|
+
/**
|
|
93
|
+
* Items admitted by this resource contract within the verified organization.
|
|
94
|
+
*/
|
|
95
|
+
data: OficlinicReportCatalogItem[];
|
|
96
|
+
/**
|
|
97
|
+
* Discriminator for a resource list response.
|
|
98
|
+
*/
|
|
99
|
+
object: "list";
|
|
100
|
+
/**
|
|
101
|
+
* Opaque navigation cursors for this page’s stable keyset order.
|
|
102
|
+
*/
|
|
103
|
+
pageInfo: PageInfo;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* A successful answer.
|
|
107
|
+
*/
|
|
108
|
+
export interface OficlinicReportCatalogPageResponse {
|
|
109
|
+
data: OficlinicReportCatalogPage;
|
|
110
|
+
error: null;
|
|
111
|
+
/**
|
|
112
|
+
* What every answer carries besides its data or error.
|
|
113
|
+
*/
|
|
114
|
+
metadata: ResponseMetadata;
|
|
115
|
+
success: true;
|
|
116
|
+
}
|
|
@@ -79,7 +79,15 @@ export interface Client {
|
|
|
79
79
|
* (AGENT_WORKFLOW_INVALID). `status: paused` stops it from answering and
|
|
80
80
|
* calling. `modality` changes only while it has no channels and no published
|
|
81
81
|
* voice line (AGENT_MODALITY_LOCKED). A voice Agent republishes in the
|
|
82
|
-
* background: check `synced`.
|
|
82
|
+
* background: check `synced`. The update applies to the working copy
|
|
83
|
+
* `get_agent` shows and publishes it; `publish: false` keeps it unpublished
|
|
84
|
+
* until `publish_agent`. While the branch has unpublished changes
|
|
85
|
+
* (`publication.unpublishedChanges`), an update that does not say `publish`
|
|
86
|
+
* is refused (AGENT_DRAFT_PENDING): `publish: true` publishes them with it,
|
|
87
|
+
* `publish: false` adds to them (AGENT_DRAFT_STALE: main was published
|
|
88
|
+
* meanwhile, read it again). With `branchId` it changes a candidate's content
|
|
89
|
+
* only (AGENT_BRANCH_FIELD for the Agent's own fields: name, description,
|
|
90
|
+
* status, modality, budgets and timers; AGENT_BRANCH_ENDED once it ended).
|
|
83
91
|
*/
|
|
84
92
|
update(request: UpdateRequest, options?: RequestOptions): Promise<UpdateResponse>;
|
|
85
93
|
}
|
|
@@ -99,6 +107,11 @@ export interface GetRequest {
|
|
|
99
107
|
* Agent id.
|
|
100
108
|
*/
|
|
101
109
|
agentId: string;
|
|
110
|
+
/**
|
|
111
|
+
* Show this branch's working copy (its unpublished changes, or what it runs).
|
|
112
|
+
* Omitted: main.
|
|
113
|
+
*/
|
|
114
|
+
branchId?: string;
|
|
102
115
|
}
|
|
103
116
|
export type GetResponse = RaizAgentResponse;
|
|
104
117
|
export interface ListRequest {
|
|
@@ -31,6 +31,7 @@ const DeleteOperation = {
|
|
|
31
31
|
const GetOperation = {
|
|
32
32
|
method: "GET",
|
|
33
33
|
route: "/v1/raiz/agents/{agentId}",
|
|
34
|
+
query: { branchId: "branchId" },
|
|
34
35
|
response: RaizAgentResponseCodec,
|
|
35
36
|
errors: { "400": true, "401": true, "403": true, "404": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
36
37
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { InvalidInputFailure, PageInfo, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
-
import { type RaizAgentInUseFailure, type RaizAgentIntegrationProcedureInput, type RaizAgentModalityLockedFailure, type RaizAgentProcedureInput, type RaizAgentProceduresInvalidFailure, type RaizAgentSettingsInvalidFailure, type RaizAgentWorkflowInvalidFailure, type RaizBusinessHours, type RaizEvalGateUnmetFailure, type RaizIntegrationProcedureUnavailableFailure, type RaizIntegrationToolUnavailableFailure, type RaizIntegrationsUnavailableFailure, type RaizInvalidCursorFailure, type RaizKnowledgeDocumentUnavailableFailure, type RaizVersionConflictFailure, type RaizVoiceUnavailableFailure } from "../models.js";
|
|
2
|
+
import { type RaizAgentBranchEndedFailure, type RaizAgentBranchFieldFailure, type RaizAgentDraftPendingFailure, type RaizAgentDraftStaleFailure, type RaizAgentInUseFailure, type RaizAgentIntegrationProcedureInput, type RaizAgentModalityLockedFailure, type RaizAgentProcedureInput, type RaizAgentProceduresInvalidFailure, type RaizAgentSettingsInvalidFailure, type RaizAgentWorkflowInvalidFailure, type RaizBusinessHours, type RaizEvalGateUnmetFailure, type RaizIntegrationProcedureUnavailableFailure, type RaizIntegrationToolUnavailableFailure, type RaizIntegrationsUnavailableFailure, type RaizInvalidCursorFailure, type RaizKnowledgeDocumentUnavailableFailure, type RaizVersionConflictFailure, type RaizVoiceUnavailableFailure } from "../models.js";
|
|
3
3
|
export interface RaizAgent {
|
|
4
|
+
branchId: string | null;
|
|
4
5
|
channelCount: number;
|
|
5
6
|
/**
|
|
6
7
|
* Channels assigned to the Agent. Assign one with `updateChannel`.
|
|
@@ -64,6 +65,16 @@ export interface RaizAgent {
|
|
|
64
65
|
* complete new set.
|
|
65
66
|
*/
|
|
66
67
|
procedures: RaizAgentProcedure[];
|
|
68
|
+
/**
|
|
69
|
+
* What the branch shown runs, and whether this view holds changes not
|
|
70
|
+
* published yet.
|
|
71
|
+
*/
|
|
72
|
+
publication: {
|
|
73
|
+
draftStale: boolean;
|
|
74
|
+
unpublishedChanges: boolean;
|
|
75
|
+
version: number | null;
|
|
76
|
+
versionId: string | null;
|
|
77
|
+
};
|
|
67
78
|
/**
|
|
68
79
|
* Whether the Agent can hold conversations: active, with instructions and,
|
|
69
80
|
* for voice, published for calls.
|
|
@@ -361,7 +372,7 @@ export interface RaizAgentSettings {
|
|
|
361
372
|
} | null;
|
|
362
373
|
humanReplyTimeoutMinutes: number | null;
|
|
363
374
|
investigationsEnabled: boolean | null;
|
|
364
|
-
model: "arbolito/agile" | "arbolito/balanced" | "arbolito/advanced" | "arbolito/top" | null;
|
|
375
|
+
model: "arbolito/agile" | "arbolito/balanced" | "arbolito/advanced" | "arbolito/top" | "openai/gpt-6-luna" | "openai/gpt-6.1-sol" | "openai/gpt-5.6-luna" | "openai/gpt-6.1-terra" | "anthropic/claude-opus-5-5" | "anthropic/claude-haiku-5-5" | "anthropic/claude-sonnet-5-5" | "anthropic/claude-sonnet-5" | null;
|
|
365
376
|
modelTrial: RaizAgentModelTrial | null;
|
|
366
377
|
monthlyTokenBudget: number | null;
|
|
367
378
|
pauseOnHumanReply: boolean | null;
|
|
@@ -419,7 +430,7 @@ export interface RaizAgentSettingsInput {
|
|
|
419
430
|
} | null;
|
|
420
431
|
humanReplyTimeoutMinutes?: number | null;
|
|
421
432
|
investigationsEnabled?: boolean | null;
|
|
422
|
-
model?: "arbolito/agile" | "arbolito/balanced" | "arbolito/advanced" | "arbolito/top" | null;
|
|
433
|
+
model?: "arbolito/agile" | "arbolito/balanced" | "arbolito/advanced" | "arbolito/top" | "openai/gpt-6-luna" | "openai/gpt-6.1-sol" | "openai/gpt-5.6-luna" | "openai/gpt-6.1-terra" | "anthropic/claude-opus-5-5" | "anthropic/claude-haiku-5-5" | "anthropic/claude-sonnet-5-5" | "anthropic/claude-sonnet-5" | null;
|
|
423
434
|
modelTrial?: RaizAgentModelTrial | null;
|
|
424
435
|
monthlyTokenBudget?: number | null;
|
|
425
436
|
pauseOnHumanReply?: boolean | null;
|
|
@@ -530,7 +541,7 @@ export interface RaizAgentVoiceSettings {
|
|
|
530
541
|
* Names and terms the transcriber should favor (people, places, products).
|
|
531
542
|
*/
|
|
532
543
|
keywords: string[];
|
|
533
|
-
llm: "arbolito/agile" | "arbolito/balanced" | "arbolito/advanced" | "arbolito/top" | "arbolito/voice-fast" | null;
|
|
544
|
+
llm: "arbolito/agile" | "arbolito/balanced" | "arbolito/advanced" | "arbolito/top" | "openai/gpt-5.6-luna" | "arbolito/voice-fast" | null;
|
|
534
545
|
maxDurationMessage?: string | null;
|
|
535
546
|
maxDurationSeconds: number | null;
|
|
536
547
|
/**
|
|
@@ -817,6 +828,12 @@ export interface RaizListAgentsServiceUnavailableError {
|
|
|
817
828
|
}
|
|
818
829
|
export type RaizListAgentsServiceUnavailableFailure = UpstreamUnavailableFailure | RaizVoiceUnavailableFailure | RaizIntegrationsUnavailableFailure;
|
|
819
830
|
export interface RaizUpdateAgentBody {
|
|
831
|
+
/**
|
|
832
|
+
* Change this candidate's content instead of main's. A candidate holds only
|
|
833
|
+
* content: its name, description, status, modality and the settings that take
|
|
834
|
+
* effect at once belong to the Agent (AGENT_BRANCH_FIELD).
|
|
835
|
+
*/
|
|
836
|
+
branchId?: string;
|
|
820
837
|
description?: string | null;
|
|
821
838
|
/**
|
|
822
839
|
* With the Agent's `settings.evalGate`: the completed evaluation run
|
|
@@ -863,6 +880,13 @@ export interface RaizUpdateAgentBody {
|
|
|
863
880
|
* Keep each existing procedure's `id`; a new one may omit it.
|
|
864
881
|
*/
|
|
865
882
|
procedures?: RaizAgentProcedureInput[];
|
|
883
|
+
/**
|
|
884
|
+
* Whether the change reaches conversations now (the default). `false` keeps
|
|
885
|
+
* it with the branch's other unpublished changes until `publishAgent`; the
|
|
886
|
+
* Agent's own fields (status, description, modality and the settings that
|
|
887
|
+
* take effect at once) still change now.
|
|
888
|
+
*/
|
|
889
|
+
publish?: boolean;
|
|
866
890
|
/**
|
|
867
891
|
* How the Agent behaves. In an update, only the keys you send change: a key
|
|
868
892
|
* left out stays and `null` returns it to its default. A key's own value,
|
|
@@ -902,7 +926,7 @@ export interface RaizUpdateAgentConflictError {
|
|
|
902
926
|
metadata: ResponseMetadata;
|
|
903
927
|
success: false;
|
|
904
928
|
}
|
|
905
|
-
export type RaizUpdateAgentConflictFailure = RaizAgentInUseFailure | RaizAgentModalityLockedFailure | RaizEvalGateUnmetFailure | RaizVersionConflictFailure;
|
|
929
|
+
export type RaizUpdateAgentConflictFailure = RaizAgentBranchEndedFailure | RaizAgentDraftPendingFailure | RaizAgentDraftStaleFailure | RaizAgentInUseFailure | RaizAgentModalityLockedFailure | RaizEvalGateUnmetFailure | RaizVersionConflictFailure;
|
|
906
930
|
/**
|
|
907
931
|
* A failed answer.
|
|
908
932
|
*/
|
|
@@ -928,7 +952,7 @@ export interface RaizUpdateAgentUnprocessableContentError {
|
|
|
928
952
|
metadata: ResponseMetadata;
|
|
929
953
|
success: false;
|
|
930
954
|
}
|
|
931
|
-
export type RaizUpdateAgentUnprocessableContentFailure = RaizAgentProceduresInvalidFailure | RaizAgentWorkflowInvalidFailure | RaizAgentSettingsInvalidFailure | RaizIntegrationProcedureUnavailableFailure | RaizIntegrationToolUnavailableFailure | RaizKnowledgeDocumentUnavailableFailure;
|
|
955
|
+
export type RaizUpdateAgentUnprocessableContentFailure = RaizAgentProceduresInvalidFailure | RaizAgentWorkflowInvalidFailure | RaizAgentBranchFieldFailure | RaizAgentSettingsInvalidFailure | RaizIntegrationProcedureUnavailableFailure | RaizIntegrationToolUnavailableFailure | RaizKnowledgeDocumentUnavailableFailure;
|
|
932
956
|
export declare const RaizAgentCodec: import("../../_/codec.js").Codec;
|
|
933
957
|
export declare const RaizAgentPageCodec: import("../../_/codec.js").Codec;
|
|
934
958
|
export declare const RaizAgentPageResponseCodec: import("../../_/codec.js").Codec;
|
|
@@ -82,7 +82,10 @@ export interface Client {
|
|
|
82
82
|
* Agent; WhatsApp outbound notifications do not. WhatsApp channels accept
|
|
83
83
|
* `profile` (the business profile people see in WhatsApp); web channels
|
|
84
84
|
* accept `widget` (the complete new widget configuration) and `widgetLogo`
|
|
85
|
-
* (PNG, JPEG or WebP up to 256 KiB; `null` removes it).
|
|
85
|
+
* (PNG, JPEG or WebP up to 256 KiB; `null` removes it). Staff only:
|
|
86
|
+
* `branchId` makes every call on a voice line run the Agent's active
|
|
87
|
+
* candidate, to try it by phone before it gets traffic (`null` returns the
|
|
88
|
+
* line to main). Omitted fields stay.
|
|
86
89
|
*/
|
|
87
90
|
update(request: UpdateRequest, options?: RequestOptions): Promise<UpdateResponse>;
|
|
88
91
|
/**
|