@arbol-ai/sdk 2.19.0 → 3.0.1
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/README.md +19 -1
- package/dist/client.d.ts +4 -0
- package/dist/client.js +10 -0
- package/dist/index.d.ts +1 -1
- package/dist/models.d.ts +396 -0
- package/dist/models.js +5 -1
- package/dist/nuevaEps/affiliations/models.d.ts +6 -5
- package/dist/nuevaEps/connections/models.d.ts +18 -18
- package/dist/nuevaEps/index.d.ts +1 -1
- package/dist/nuevaEps/models.d.ts +16 -232
- package/dist/{visoft/tools → orsovision/agencies}/client.d.ts +13 -19
- package/dist/{visoft/tools → orsovision/agencies}/client.js +2 -2
- package/dist/orsovision/agencies/index.d.ts +5 -0
- package/dist/orsovision/agencies/models.d.ts +107 -0
- package/dist/orsovision/appointments/client.d.ts +39 -0
- package/dist/orsovision/appointments/client.js +29 -0
- package/dist/orsovision/appointments/index.d.ts +5 -0
- package/dist/orsovision/appointments/models.d.ts +206 -0
- package/dist/orsovision/appointments/models.js +9 -0
- package/dist/orsovision/availability/client.d.ts +32 -0
- package/dist/orsovision/availability/client.js +19 -0
- package/dist/orsovision/availability/index.d.ts +5 -0
- package/dist/orsovision/availability/models.d.ts +239 -0
- package/dist/orsovision/availability/models.js +15 -0
- package/dist/orsovision/client.d.ts +27 -0
- package/dist/orsovision/client.js +50 -0
- package/dist/orsovision/clinic/client.d.ts +34 -0
- package/dist/{visoft/specialtyRules → orsovision/clinic}/client.js +3 -3
- package/dist/orsovision/clinic/index.d.ts +5 -0
- package/dist/orsovision/clinic/models.d.ts +89 -0
- package/dist/orsovision/contracts/client.d.ts +69 -0
- package/dist/orsovision/contracts/client.js +18 -0
- package/dist/orsovision/contracts/index.d.ts +5 -0
- package/dist/orsovision/contracts/models.d.ts +108 -0
- package/dist/orsovision/index.d.ts +5 -0
- package/dist/orsovision/index.js +4 -0
- package/dist/orsovision/models.d.ts +227 -0
- package/dist/orsovision/patients/client.d.ts +52 -0
- package/dist/orsovision/patients/client.js +34 -0
- package/dist/orsovision/patients/index.d.ts +5 -0
- package/dist/orsovision/patients/models.d.ts +297 -0
- package/dist/orsovision/patients/models.js +3 -0
- package/dist/orsovision/services/client.d.ts +74 -0
- package/dist/orsovision/services/client.js +18 -0
- package/dist/orsovision/services/index.d.ts +5 -0
- package/dist/orsovision/services/index.js +4 -0
- package/dist/orsovision/services/models.d.ts +105 -0
- package/dist/orsovision/services/models.js +3 -0
- package/dist/orsovision/tools/client.d.ts +44 -0
- package/dist/{raiz/roles → orsovision/tools}/client.js +3 -3
- package/dist/orsovision/tools/index.d.ts +5 -0
- package/dist/orsovision/tools/index.js +4 -0
- package/dist/orsovision/tools/models.d.ts +101 -0
- package/dist/orsovision/tools/models.js +3 -0
- package/dist/raiz/agents/client.js +3 -4
- package/dist/raiz/agents/models.d.ts +1 -0
- package/dist/raiz/bulletins/client.d.ts +4 -1
- package/dist/raiz/bulletins/client.js +5 -6
- package/dist/raiz/campaigns/client.d.ts +6 -5
- package/dist/raiz/campaigns/client.js +4 -4
- package/dist/raiz/channels/client.d.ts +19 -5
- package/dist/raiz/channels/client.js +9 -9
- package/dist/raiz/client.d.ts +0 -4
- package/dist/raiz/client.js +0 -10
- package/dist/raiz/contacts/client.js +4 -4
- package/dist/raiz/conversations/client.d.ts +7 -4
- package/dist/raiz/conversations/client.js +6 -6
- package/dist/raiz/definitions/client.d.ts +4 -4
- package/dist/raiz/definitions/client.js +3 -4
- package/dist/raiz/evalCases/client.d.ts +13 -12
- package/dist/raiz/evalCases/client.js +2 -2
- package/dist/raiz/evalRuns/client.d.ts +7 -4
- package/dist/raiz/evalRuns/client.js +2 -3
- package/dist/raiz/evalRuns/models.d.ts +7 -1
- package/dist/raiz/facts/client.js +2 -2
- package/dist/raiz/knowledge/client.d.ts +17 -11
- package/dist/raiz/knowledge/client.js +4 -4
- package/dist/raiz/models.d.ts +0 -42
- package/dist/raiz/organization/client.d.ts +38 -42
- package/dist/raiz/organization/client.js +11 -12
- package/dist/raiz/organization/index.d.ts +1 -1
- package/dist/raiz/organization/models.d.ts +0 -10
- package/dist/raiz/profiles/client.d.ts +4 -4
- package/dist/raiz/profiles/client.js +3 -4
- package/dist/raiz/reports/client.d.ts +3 -3
- package/dist/raiz/reports/client.js +2 -2
- package/dist/raiz/reports/index.d.ts +1 -1
- package/dist/raiz/suppressions/client.js +1 -1
- package/dist/raiz/tasks/client.d.ts +6 -0
- package/dist/raiz/tasks/client.js +5 -6
- package/dist/raiz/templates/client.d.ts +2 -1
- package/dist/raiz/templates/client.js +1 -1
- package/dist/somos/appointments/client.d.ts +40 -0
- package/dist/somos/appointments/client.js +29 -0
- package/dist/somos/appointments/index.d.ts +5 -0
- package/dist/somos/appointments/index.js +4 -0
- package/dist/somos/appointments/models.d.ts +301 -0
- package/dist/somos/appointments/models.js +9 -0
- package/dist/somos/availability/client.d.ts +33 -0
- package/dist/somos/availability/client.js +19 -0
- package/dist/somos/availability/index.d.ts +5 -0
- package/dist/somos/availability/index.js +4 -0
- package/dist/somos/availability/models.d.ts +340 -0
- package/dist/somos/availability/models.js +15 -0
- package/dist/somos/client.d.ts +29 -0
- package/dist/somos/client.js +55 -0
- package/dist/somos/clinic/client.d.ts +33 -0
- package/dist/somos/clinic/client.js +18 -0
- package/dist/somos/clinic/index.d.ts +5 -0
- package/dist/somos/clinic/index.js +4 -0
- package/dist/somos/clinic/models.d.ts +89 -0
- package/dist/somos/clinic/models.js +3 -0
- package/dist/somos/contracts/client.d.ts +74 -0
- package/dist/somos/contracts/client.js +18 -0
- package/dist/somos/contracts/index.d.ts +5 -0
- package/dist/somos/contracts/index.js +4 -0
- package/dist/somos/contracts/models.d.ts +107 -0
- package/dist/somos/contracts/models.js +3 -0
- package/dist/somos/groups/client.d.ts +67 -0
- package/dist/{visoft → somos}/groups/client.js +2 -2
- package/dist/somos/groups/index.d.ts +5 -0
- package/dist/somos/groups/index.js +4 -0
- package/dist/somos/groups/models.d.ts +117 -0
- package/dist/somos/groups/models.js +3 -0
- package/dist/somos/index.d.ts +5 -0
- package/dist/somos/index.js +4 -0
- package/dist/somos/models.d.ts +227 -0
- package/dist/somos/models.js +3 -0
- package/dist/somos/patients/client.d.ts +51 -0
- package/dist/somos/patients/client.js +34 -0
- package/dist/somos/patients/index.d.ts +5 -0
- package/dist/somos/patients/index.js +4 -0
- package/dist/somos/patients/models.d.ts +327 -0
- package/dist/somos/patients/models.js +3 -0
- package/dist/somos/services/client.d.ts +117 -0
- package/dist/somos/services/client.js +26 -0
- package/dist/somos/services/index.d.ts +5 -0
- package/dist/somos/services/index.js +4 -0
- package/dist/somos/services/models.d.ts +272 -0
- package/dist/somos/services/models.js +3 -0
- package/dist/somos/specialtyRules/client.d.ts +44 -0
- package/dist/somos/specialtyRules/client.js +18 -0
- package/dist/somos/specialtyRules/index.d.ts +5 -0
- package/dist/somos/specialtyRules/index.js +4 -0
- package/dist/somos/specialtyRules/models.d.ts +54 -0
- package/dist/somos/specialtyRules/models.js +3 -0
- package/dist/{raiz/roles → somos/tools}/client.d.ts +14 -12
- package/dist/{visoft/agencies → somos/tools}/client.js +3 -3
- package/dist/somos/tools/index.d.ts +5 -0
- package/dist/somos/tools/index.js +4 -0
- package/dist/somos/tools/models.d.ts +101 -0
- package/dist/somos/tools/models.js +3 -0
- package/dist/visoft/appointments/client.d.ts +20 -194
- package/dist/visoft/appointments/client.js +5 -4
- package/dist/visoft/appointments/index.d.ts +1 -0
- package/dist/visoft/appointments/models.d.ts +391 -0
- package/dist/visoft/appointments/models.js +15 -0
- package/dist/visoft/availability/client.d.ts +10 -164
- package/dist/visoft/availability/client.js +9 -9
- package/dist/visoft/availability/index.d.ts +2 -2
- package/dist/visoft/availability/models.d.ts +154 -64
- package/dist/visoft/availability/models.js +10 -8
- package/dist/visoft/client.d.ts +6 -8
- package/dist/visoft/client.js +15 -20
- package/dist/visoft/clinic/client.d.ts +30 -0
- package/dist/visoft/clinic/client.js +18 -0
- package/dist/visoft/{specialtyRules → clinic}/index.d.ts +1 -0
- package/dist/visoft/clinic/index.js +4 -0
- package/dist/visoft/clinic/models.d.ts +13 -0
- package/dist/visoft/clinic/models.js +3 -0
- package/dist/visoft/clinics/client.d.ts +2 -31
- package/dist/visoft/clinics/client.js +1 -8
- package/dist/visoft/clinics/index.d.ts +2 -2
- package/dist/visoft/clinics/models.d.ts +13 -24
- package/dist/visoft/connections/client.d.ts +17 -74
- package/dist/visoft/connections/client.js +10 -11
- package/dist/visoft/connections/index.d.ts +1 -1
- package/dist/visoft/connections/models.d.ts +93 -1
- package/dist/visoft/connections/models.js +6 -0
- package/dist/visoft/contracts/client.d.ts +14 -49
- package/dist/visoft/contracts/client.js +2 -2
- package/dist/visoft/contracts/index.d.ts +1 -1
- package/dist/visoft/contracts/models.d.ts +43 -7
- package/dist/visoft/index.d.ts +1 -1
- package/dist/visoft/models.d.ts +311 -139
- package/dist/visoft/patients/client.d.ts +24 -264
- package/dist/visoft/patients/client.js +7 -6
- package/dist/visoft/patients/index.d.ts +1 -0
- package/dist/visoft/patients/models.d.ts +737 -0
- package/dist/visoft/patients/models.js +15 -0
- package/dist/visoft/professionals/client.d.ts +56 -0
- package/dist/visoft/professionals/client.js +18 -0
- package/dist/visoft/professionals/index.d.ts +5 -0
- package/dist/visoft/professionals/index.js +4 -0
- package/dist/visoft/professionals/models.d.ts +54 -0
- package/dist/visoft/professionals/models.js +3 -0
- package/dist/visoft/serviceCatalogs/client.d.ts +45 -0
- package/dist/visoft/serviceCatalogs/client.js +18 -0
- package/dist/visoft/serviceCatalogs/index.d.ts +5 -0
- package/dist/visoft/serviceCatalogs/index.js +4 -0
- package/dist/visoft/serviceCatalogs/models.d.ts +68 -0
- package/dist/visoft/serviceCatalogs/models.js +3 -0
- package/dist/visoft/services/client.d.ts +25 -61
- package/dist/visoft/services/client.js +2 -2
- package/dist/visoft/services/index.d.ts +1 -1
- package/dist/visoft/services/models.d.ts +52 -15
- package/package.json +9 -3
- package/dist/raiz/members/client.d.ts +0 -102
- package/dist/raiz/members/client.js +0 -35
- package/dist/raiz/members/index.d.ts +0 -5
- package/dist/raiz/members/models.d.ts +0 -48
- package/dist/raiz/members/models.js +0 -10
- package/dist/raiz/roles/index.d.ts +0 -5
- package/dist/raiz/roles/models.d.ts +0 -32
- package/dist/visoft/agencies/client.d.ts +0 -58
- package/dist/visoft/agencies/index.d.ts +0 -5
- package/dist/visoft/agencies/models.d.ts +0 -29
- package/dist/visoft/groups/client.d.ts +0 -69
- package/dist/visoft/groups/index.d.ts +0 -5
- package/dist/visoft/groups/models.d.ts +0 -39
- package/dist/visoft/specialtyRules/client.d.ts +0 -50
- package/dist/visoft/tools/index.d.ts +0 -5
- package/dist/visoft/tools/models.d.ts +0 -37
- /package/dist/{raiz/members → orsovision/agencies}/index.js +0 -0
- /package/dist/{raiz/roles → orsovision/agencies}/models.js +0 -0
- /package/dist/{raiz/roles → orsovision/appointments}/index.js +0 -0
- /package/dist/{visoft/agencies → orsovision/availability}/index.js +0 -0
- /package/dist/{visoft/groups → orsovision/clinic}/index.js +0 -0
- /package/dist/{visoft/agencies → orsovision/clinic}/models.js +0 -0
- /package/dist/{visoft/specialtyRules → orsovision/contracts}/index.js +0 -0
- /package/dist/{visoft/groups → orsovision/contracts}/models.js +0 -0
- /package/dist/{visoft/tools → orsovision}/models.js +0 -0
- /package/dist/{visoft/tools → orsovision/patients}/index.js +0 -0
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
+
import type { OrsovisionContractServicePageResponse } 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
|
+
* List a contract's services
|
|
12
|
+
*
|
|
13
|
+
* The services of one of the chain's agreements (code) at one of its
|
|
14
|
+
* locations, in ascending code order; with q, only those whose code or name
|
|
15
|
+
* contains it. Catalog items that cannot be booked are not appointment
|
|
16
|
+
* availability. A refusal is TOOL_REFUSED: data.reason says why,
|
|
17
|
+
* data.guidance what to do next and data.details what it offers instead; it
|
|
18
|
+
* is never an outage. Orsovision's tool pack sets this tool's rules,
|
|
19
|
+
* parameters and accepted values (orsovision.tools.list answers them), and
|
|
20
|
+
* every call is checked against them.
|
|
21
|
+
*/
|
|
22
|
+
list(request: ListRequest, options?: RequestOptions): Promise<ListResponse>;
|
|
23
|
+
}
|
|
24
|
+
export declare function createClient(options: ClientOptions): Client;
|
|
25
|
+
export declare function bind(transport: Transport): Client;
|
|
26
|
+
export interface ListRequest {
|
|
27
|
+
/**
|
|
28
|
+
* Código de contrato devuelto por list_contracts para la misma sede.
|
|
29
|
+
*/
|
|
30
|
+
code: string;
|
|
31
|
+
/**
|
|
32
|
+
* El mismo código de sede usado en list_contracts.
|
|
33
|
+
*/
|
|
34
|
+
agency: string;
|
|
35
|
+
/**
|
|
36
|
+
* Texto opcional del servicio: optometria, tamizaje, montura, lentes o el
|
|
37
|
+
* nombre del procedimiento.
|
|
38
|
+
*/
|
|
39
|
+
q?: string;
|
|
40
|
+
/**
|
|
41
|
+
* true solo si la persona afirma que un servicio falta o acaba de
|
|
42
|
+
* habilitarse; relee el catálogo en vez del caché de 6 h.
|
|
43
|
+
*/
|
|
44
|
+
refresh?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Opaque cursor returned by pageInfo; omit it to request the first page.
|
|
47
|
+
*/
|
|
48
|
+
cursor?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Direction to traverse the stable keyset ordering from the supplied cursor.
|
|
51
|
+
*/
|
|
52
|
+
direction?: "forward" | "backward";
|
|
53
|
+
/**
|
|
54
|
+
* Maximum items returned in one page. Defaults to 25; larger reads require
|
|
55
|
+
* another cursor.
|
|
56
|
+
*/
|
|
57
|
+
limit?: number;
|
|
58
|
+
/**
|
|
59
|
+
* The Visoft connection to run on, as Account lists it (con_…). Optional when
|
|
60
|
+
* the organization has one; required when it has several. Another
|
|
61
|
+
* organization's connection is CONNECTION_NOT_FOUND.
|
|
62
|
+
*/
|
|
63
|
+
connectionId?: string;
|
|
64
|
+
/**
|
|
65
|
+
* The channel the conversation happens on: voice, whatsapp or web (the
|
|
66
|
+
* default).
|
|
67
|
+
*/
|
|
68
|
+
channel?: "voice" | "web" | "whatsapp";
|
|
69
|
+
/**
|
|
70
|
+
* Deprecated: use `q`. Answered until 2027-01-28.
|
|
71
|
+
*/
|
|
72
|
+
search?: string;
|
|
73
|
+
}
|
|
74
|
+
export type ListResponse = OrsovisionContractServicePageResponse;
|
|
@@ -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/orsovision/services",
|
|
15
|
+
query: { code: "code", agency: "agency", q: "q", refresh: "refresh", cursor: "cursor", direction: "direction", limit: "limit", connectionId: "connectionId", channel: "channel", search: "search" },
|
|
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 { OrsovisionContractService, OrsovisionContractServicePage, OrsovisionContractServicePageResponse, OrsovisionListServicesBadGatewayError, OrsovisionListServicesConflictError, OrsovisionListServicesConflictFailure, OrsovisionListServicesNotFoundError, OrsovisionListServicesNotFoundFailure, OrsovisionListServicesServiceUnavailableError, OrsovisionListServicesServiceUnavailableFailure, OrsovisionListServicesUnprocessableContentError, } from "./models.js";
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import type { ConnectionNotConfiguredFailure, ConnectionNotFoundFailure, ListServicesBadGatewayFailure, ListServicesUnprocessableContentFailure, PageInfo, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
+
import type { OrsovisionClinicNotServedFailure, OrsovisionOrsovisionNotConfiguredFailure, OrsovisionResponseMetadata, OrsovisionToolNotAvailableFailure } from "../models.js";
|
|
3
|
+
export interface OrsovisionContractService {
|
|
4
|
+
/**
|
|
5
|
+
* The service, as orsovision.availability.lookup takes it.
|
|
6
|
+
*/
|
|
7
|
+
code: string;
|
|
8
|
+
/**
|
|
9
|
+
* The service's name in the clinic's catalog.
|
|
10
|
+
*/
|
|
11
|
+
name: string;
|
|
12
|
+
/**
|
|
13
|
+
* The contract's price, when the catalog states one.
|
|
14
|
+
*/
|
|
15
|
+
price: number | null;
|
|
16
|
+
}
|
|
17
|
+
export interface OrsovisionContractServicePage {
|
|
18
|
+
/**
|
|
19
|
+
* Items admitted by this resource contract within the verified organization.
|
|
20
|
+
*/
|
|
21
|
+
data: OrsovisionContractService[];
|
|
22
|
+
/**
|
|
23
|
+
* Discriminator for a resource list response.
|
|
24
|
+
*/
|
|
25
|
+
object: "list";
|
|
26
|
+
/**
|
|
27
|
+
* Opaque navigation cursors for this page’s stable keyset order.
|
|
28
|
+
*/
|
|
29
|
+
pageInfo: PageInfo;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* A successful answer.
|
|
33
|
+
*/
|
|
34
|
+
export interface OrsovisionContractServicePageResponse {
|
|
35
|
+
data: OrsovisionContractServicePage;
|
|
36
|
+
error: null;
|
|
37
|
+
/**
|
|
38
|
+
* What every answer carries besides its data or error.
|
|
39
|
+
*/
|
|
40
|
+
metadata: OrsovisionResponseMetadata;
|
|
41
|
+
success: true;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* A failed answer.
|
|
45
|
+
*/
|
|
46
|
+
export interface OrsovisionListServicesBadGatewayError {
|
|
47
|
+
data: null;
|
|
48
|
+
error: ListServicesBadGatewayFailure;
|
|
49
|
+
/**
|
|
50
|
+
* What every answer carries besides its data or error.
|
|
51
|
+
*/
|
|
52
|
+
metadata: OrsovisionResponseMetadata;
|
|
53
|
+
success: false;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* A failed answer.
|
|
57
|
+
*/
|
|
58
|
+
export interface OrsovisionListServicesConflictError {
|
|
59
|
+
data: null;
|
|
60
|
+
error: OrsovisionListServicesConflictFailure;
|
|
61
|
+
/**
|
|
62
|
+
* What every answer carries besides its data or error.
|
|
63
|
+
*/
|
|
64
|
+
metadata: OrsovisionResponseMetadata;
|
|
65
|
+
success: false;
|
|
66
|
+
}
|
|
67
|
+
export type OrsovisionListServicesConflictFailure = ConnectionNotConfiguredFailure | OrsovisionClinicNotServedFailure;
|
|
68
|
+
/**
|
|
69
|
+
* A failed answer.
|
|
70
|
+
*/
|
|
71
|
+
export interface OrsovisionListServicesNotFoundError {
|
|
72
|
+
data: null;
|
|
73
|
+
error: OrsovisionListServicesNotFoundFailure;
|
|
74
|
+
/**
|
|
75
|
+
* What every answer carries besides its data or error.
|
|
76
|
+
*/
|
|
77
|
+
metadata: OrsovisionResponseMetadata;
|
|
78
|
+
success: false;
|
|
79
|
+
}
|
|
80
|
+
export type OrsovisionListServicesNotFoundFailure = ConnectionNotFoundFailure | OrsovisionToolNotAvailableFailure;
|
|
81
|
+
/**
|
|
82
|
+
* A failed answer.
|
|
83
|
+
*/
|
|
84
|
+
export interface OrsovisionListServicesServiceUnavailableError {
|
|
85
|
+
data: null;
|
|
86
|
+
error: OrsovisionListServicesServiceUnavailableFailure;
|
|
87
|
+
/**
|
|
88
|
+
* What every answer carries besides its data or error.
|
|
89
|
+
*/
|
|
90
|
+
metadata: OrsovisionResponseMetadata;
|
|
91
|
+
success: false;
|
|
92
|
+
}
|
|
93
|
+
export type OrsovisionListServicesServiceUnavailableFailure = UpstreamUnavailableFailure | OrsovisionOrsovisionNotConfiguredFailure;
|
|
94
|
+
/**
|
|
95
|
+
* A failed answer.
|
|
96
|
+
*/
|
|
97
|
+
export interface OrsovisionListServicesUnprocessableContentError {
|
|
98
|
+
data: null;
|
|
99
|
+
error: ListServicesUnprocessableContentFailure;
|
|
100
|
+
/**
|
|
101
|
+
* What every answer carries besides its data or error.
|
|
102
|
+
*/
|
|
103
|
+
metadata: OrsovisionResponseMetadata;
|
|
104
|
+
success: false;
|
|
105
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
+
import type { OrsovisionClinicToolPageResponse } 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
|
+
* List the clinic's tools
|
|
12
|
+
*
|
|
13
|
+
* Every tool Orsovision's agents may call, in ascending name order, with the
|
|
14
|
+
* clinic's exact parameters and instructions, each naming the operation that
|
|
15
|
+
* runs it; a list's tool declares the page fields too. The clinic itself, its
|
|
16
|
+
* timezone and the version of these definitions are orsovision.clinic.get's.
|
|
17
|
+
* Contains no patient data and performs no clinical login.
|
|
18
|
+
*/
|
|
19
|
+
list(request?: ListRequest, options?: RequestOptions): Promise<ListResponse>;
|
|
20
|
+
}
|
|
21
|
+
export declare function createClient(options: ClientOptions): Client;
|
|
22
|
+
export declare function bind(transport: Transport): Client;
|
|
23
|
+
export interface ListRequest {
|
|
24
|
+
/**
|
|
25
|
+
* Opaque cursor returned by pageInfo; omit it to request the first page.
|
|
26
|
+
*/
|
|
27
|
+
cursor?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Direction to traverse the stable keyset ordering from the supplied cursor.
|
|
30
|
+
*/
|
|
31
|
+
direction?: "forward" | "backward";
|
|
32
|
+
/**
|
|
33
|
+
* Maximum items returned in one page. Defaults to 25; larger reads require
|
|
34
|
+
* another cursor.
|
|
35
|
+
*/
|
|
36
|
+
limit?: number;
|
|
37
|
+
/**
|
|
38
|
+
* The Visoft connection to run on, as Account lists it (con_…). Optional when
|
|
39
|
+
* the organization has one; required when it has several. Another
|
|
40
|
+
* organization's connection is CONNECTION_NOT_FOUND.
|
|
41
|
+
*/
|
|
42
|
+
connectionId?: string;
|
|
43
|
+
}
|
|
44
|
+
export type ListResponse = OrsovisionClinicToolPageResponse;
|
|
@@ -11,8 +11,8 @@ export function bind(transport) {
|
|
|
11
11
|
}
|
|
12
12
|
const ListOperation = {
|
|
13
13
|
method: "GET",
|
|
14
|
-
route: "/v1/
|
|
15
|
-
query: { cursor: "cursor", direction: "direction", limit: "limit" },
|
|
14
|
+
route: "/v1/orsovision/tools",
|
|
15
|
+
query: { cursor: "cursor", direction: "direction", limit: "limit", connectionId: "connectionId" },
|
|
16
16
|
response: null,
|
|
17
|
-
errors: { "400": true, "401": true, "403": true, "404": true, "
|
|
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
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 { OrsovisionClinicTool, OrsovisionClinicToolPage, OrsovisionClinicToolPageResponse, OrsovisionListToolsBadGatewayError, OrsovisionListToolsConflictError, OrsovisionListToolsConflictFailure, OrsovisionListToolsNotFoundError, OrsovisionListToolsNotFoundFailure, OrsovisionListToolsServiceUnavailableError, OrsovisionListToolsServiceUnavailableFailure, } from "./models.js";
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import type { ConnectionNotConfiguredFailure, ConnectionNotFoundFailure, ListToolsBadGatewayFailure, PageInfo, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
+
import type { OrsovisionClinicNotServedFailure, OrsovisionOrsovisionNotConfiguredFailure, OrsovisionResponseMetadata, OrsovisionToolNotAvailableFailure } from "../models.js";
|
|
3
|
+
export interface OrsovisionClinicTool {
|
|
4
|
+
/**
|
|
5
|
+
* The clinic's instructions for this tool.
|
|
6
|
+
*/
|
|
7
|
+
description: string;
|
|
8
|
+
displayName: string;
|
|
9
|
+
/**
|
|
10
|
+
* JSON Schema of the clinic's exact parameters for this tool.
|
|
11
|
+
*/
|
|
12
|
+
inputSchema: {
|
|
13
|
+
[key: string]: unknown;
|
|
14
|
+
};
|
|
15
|
+
mutates: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* The tool's name, as the clinic's instructions name it.
|
|
18
|
+
*/
|
|
19
|
+
name: string;
|
|
20
|
+
/**
|
|
21
|
+
* The operation that runs this tool, such as orsovision.patients.lookup.
|
|
22
|
+
*/
|
|
23
|
+
operation: string | null;
|
|
24
|
+
}
|
|
25
|
+
export interface OrsovisionClinicToolPage {
|
|
26
|
+
/**
|
|
27
|
+
* Items admitted by this resource contract within the verified organization.
|
|
28
|
+
*/
|
|
29
|
+
data: OrsovisionClinicTool[];
|
|
30
|
+
/**
|
|
31
|
+
* Discriminator for a resource list response.
|
|
32
|
+
*/
|
|
33
|
+
object: "list";
|
|
34
|
+
/**
|
|
35
|
+
* Opaque navigation cursors for this page’s stable keyset order.
|
|
36
|
+
*/
|
|
37
|
+
pageInfo: PageInfo;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* A successful answer.
|
|
41
|
+
*/
|
|
42
|
+
export interface OrsovisionClinicToolPageResponse {
|
|
43
|
+
data: OrsovisionClinicToolPage;
|
|
44
|
+
error: null;
|
|
45
|
+
/**
|
|
46
|
+
* What every answer carries besides its data or error.
|
|
47
|
+
*/
|
|
48
|
+
metadata: OrsovisionResponseMetadata;
|
|
49
|
+
success: true;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* A failed answer.
|
|
53
|
+
*/
|
|
54
|
+
export interface OrsovisionListToolsBadGatewayError {
|
|
55
|
+
data: null;
|
|
56
|
+
error: ListToolsBadGatewayFailure;
|
|
57
|
+
/**
|
|
58
|
+
* What every answer carries besides its data or error.
|
|
59
|
+
*/
|
|
60
|
+
metadata: OrsovisionResponseMetadata;
|
|
61
|
+
success: false;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* A failed answer.
|
|
65
|
+
*/
|
|
66
|
+
export interface OrsovisionListToolsConflictError {
|
|
67
|
+
data: null;
|
|
68
|
+
error: OrsovisionListToolsConflictFailure;
|
|
69
|
+
/**
|
|
70
|
+
* What every answer carries besides its data or error.
|
|
71
|
+
*/
|
|
72
|
+
metadata: OrsovisionResponseMetadata;
|
|
73
|
+
success: false;
|
|
74
|
+
}
|
|
75
|
+
export type OrsovisionListToolsConflictFailure = ConnectionNotConfiguredFailure | OrsovisionClinicNotServedFailure;
|
|
76
|
+
/**
|
|
77
|
+
* A failed answer.
|
|
78
|
+
*/
|
|
79
|
+
export interface OrsovisionListToolsNotFoundError {
|
|
80
|
+
data: null;
|
|
81
|
+
error: OrsovisionListToolsNotFoundFailure;
|
|
82
|
+
/**
|
|
83
|
+
* What every answer carries besides its data or error.
|
|
84
|
+
*/
|
|
85
|
+
metadata: OrsovisionResponseMetadata;
|
|
86
|
+
success: false;
|
|
87
|
+
}
|
|
88
|
+
export type OrsovisionListToolsNotFoundFailure = ConnectionNotFoundFailure | OrsovisionToolNotAvailableFailure;
|
|
89
|
+
/**
|
|
90
|
+
* A failed answer.
|
|
91
|
+
*/
|
|
92
|
+
export interface OrsovisionListToolsServiceUnavailableError {
|
|
93
|
+
data: null;
|
|
94
|
+
error: OrsovisionListToolsServiceUnavailableFailure;
|
|
95
|
+
/**
|
|
96
|
+
* What every answer carries besides its data or error.
|
|
97
|
+
*/
|
|
98
|
+
metadata: OrsovisionResponseMetadata;
|
|
99
|
+
success: false;
|
|
100
|
+
}
|
|
101
|
+
export type OrsovisionListToolsServiceUnavailableFailure = UpstreamUnavailableFailure | OrsovisionOrsovisionNotConfiguredFailure;
|
|
@@ -15,7 +15,7 @@ export function bind(transport) {
|
|
|
15
15
|
}
|
|
16
16
|
const CreateOperation = {
|
|
17
17
|
method: "POST",
|
|
18
|
-
route: "/v1/raiz/agents
|
|
18
|
+
route: "/v1/raiz/agents",
|
|
19
19
|
body: "flat",
|
|
20
20
|
request: object([["settings", null, () => RaizAgentSettingsInputCodec]]),
|
|
21
21
|
response: object([["data", null, () => RaizAgentCodec]]),
|
|
@@ -23,8 +23,7 @@ const CreateOperation = {
|
|
|
23
23
|
};
|
|
24
24
|
const GetOperation = {
|
|
25
25
|
method: "GET",
|
|
26
|
-
route: "/v1/raiz/agents/
|
|
27
|
-
query: { agentId: "agentId" },
|
|
26
|
+
route: "/v1/raiz/agents/{agentId}",
|
|
28
27
|
response: object([["data", null, () => RaizAgentCodec]]),
|
|
29
28
|
errors: { "400": true, "401": true, "403": true, "404": true, "405": true, "413": true, "415": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
30
29
|
};
|
|
@@ -37,7 +36,7 @@ const ListOperation = {
|
|
|
37
36
|
};
|
|
38
37
|
const UpdateOperation = {
|
|
39
38
|
method: "PATCH",
|
|
40
|
-
route: "/v1/raiz/agents/
|
|
39
|
+
route: "/v1/raiz/agents/{agentId}",
|
|
41
40
|
body: "flat",
|
|
42
41
|
request: object([["settings", null, () => RaizAgentSettingsInputCodec]]),
|
|
43
42
|
response: object([["data", null, () => RaizAgentCodec]]),
|
|
@@ -99,6 +99,9 @@ export interface DeleteRequest {
|
|
|
99
99
|
* Bulletin id.
|
|
100
100
|
*/
|
|
101
101
|
bulletinId: string;
|
|
102
|
+
body: {
|
|
103
|
+
[key: string]: unknown;
|
|
104
|
+
};
|
|
102
105
|
}
|
|
103
106
|
export interface DeleteResponse {
|
|
104
107
|
data: DeletedObject;
|
|
@@ -153,11 +156,11 @@ export interface ListResponse {
|
|
|
153
156
|
success: true;
|
|
154
157
|
}
|
|
155
158
|
export interface UpdateRequest {
|
|
156
|
-
agentId?: string | null;
|
|
157
159
|
/**
|
|
158
160
|
* Bulletin id.
|
|
159
161
|
*/
|
|
160
162
|
bulletinId: string;
|
|
163
|
+
agentId?: string | null;
|
|
161
164
|
/**
|
|
162
165
|
* When Agents stop applying it, later than its start; send the current
|
|
163
166
|
* instant to end it now, or null to keep it until it is deleted.
|
|
@@ -16,7 +16,7 @@ export function bind(transport) {
|
|
|
16
16
|
}
|
|
17
17
|
const CreateOperation = {
|
|
18
18
|
method: "POST",
|
|
19
|
-
route: "/v1/raiz/bulletins
|
|
19
|
+
route: "/v1/raiz/bulletins",
|
|
20
20
|
body: "flat",
|
|
21
21
|
request: object([["endsAt", null, instant], ["startsAt", null, instant]]),
|
|
22
22
|
response: object([["data", null, () => RaizBulletinCodec]]),
|
|
@@ -24,15 +24,14 @@ const CreateOperation = {
|
|
|
24
24
|
};
|
|
25
25
|
const DeleteOperation = {
|
|
26
26
|
method: "DELETE",
|
|
27
|
-
route: "/v1/raiz/bulletins/
|
|
28
|
-
body: "
|
|
27
|
+
route: "/v1/raiz/bulletins/{bulletinId}",
|
|
28
|
+
body: "nested",
|
|
29
29
|
response: null,
|
|
30
30
|
errors: { "400": true, "401": true, "403": true, "404": true, "405": true, "413": true, "415": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
31
31
|
};
|
|
32
32
|
const GetOperation = {
|
|
33
33
|
method: "GET",
|
|
34
|
-
route: "/v1/raiz/bulletins/
|
|
35
|
-
query: { bulletinId: "bulletinId" },
|
|
34
|
+
route: "/v1/raiz/bulletins/{bulletinId}",
|
|
36
35
|
response: object([["data", null, () => RaizBulletinCodec]]),
|
|
37
36
|
errors: { "400": true, "401": true, "403": true, "404": true, "405": true, "413": true, "415": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
38
37
|
};
|
|
@@ -45,7 +44,7 @@ const ListOperation = {
|
|
|
45
44
|
};
|
|
46
45
|
const UpdateOperation = {
|
|
47
46
|
method: "PATCH",
|
|
48
|
-
route: "/v1/raiz/bulletins/
|
|
47
|
+
route: "/v1/raiz/bulletins/{bulletinId}",
|
|
49
48
|
body: "flat",
|
|
50
49
|
request: object([["endsAt", null, instant], ["startsAt", null, instant]]),
|
|
51
50
|
response: object([["data", null, () => RaizBulletinCodec]]),
|
|
@@ -21,7 +21,8 @@ export interface Client {
|
|
|
21
21
|
* `scheduledStartAt` and `scheduledEndAt`; each recipient gets up to
|
|
22
22
|
* `maxAttempts` calls, retried `retryAfterMinutes` later after the results in
|
|
23
23
|
* `retryOn` (`no_answer`, `failure`). Starting it (REST `POST
|
|
24
|
-
* /v1/campaigns/start`) is not an AI tool. Read the
|
|
24
|
+
* /v1/campaigns/{campaignId}/start`) is not an AI tool. Read the
|
|
25
|
+
* `run-a-campaign` skill.
|
|
25
26
|
*/
|
|
26
27
|
create(request: CreateRequest, options?: RequestOptions): Promise<CreateResponse>;
|
|
27
28
|
/**
|
|
@@ -170,14 +171,14 @@ export interface ListResponse {
|
|
|
170
171
|
success: true;
|
|
171
172
|
}
|
|
172
173
|
export interface UpdateRequest {
|
|
173
|
-
/**
|
|
174
|
-
* Changes only before the campaign starts.
|
|
175
|
-
*/
|
|
176
|
-
agentId?: string;
|
|
177
174
|
/**
|
|
178
175
|
* Campaign id.
|
|
179
176
|
*/
|
|
180
177
|
campaignId: string;
|
|
178
|
+
/**
|
|
179
|
+
* Changes only before the campaign starts.
|
|
180
|
+
*/
|
|
181
|
+
agentId?: string;
|
|
181
182
|
channelId?: string | null;
|
|
182
183
|
/**
|
|
183
184
|
* When calls may start, in the campaign's time zone. Empty: any time.
|
|
@@ -15,7 +15,7 @@ export function bind(transport) {
|
|
|
15
15
|
}
|
|
16
16
|
const CreateOperation = {
|
|
17
17
|
method: "POST",
|
|
18
|
-
route: "/v1/raiz/campaigns
|
|
18
|
+
route: "/v1/raiz/campaigns",
|
|
19
19
|
body: "flat",
|
|
20
20
|
request: object([["scheduledEndAt", null, instant], ["scheduledStartAt", null, instant]]),
|
|
21
21
|
response: object([["data", null, () => RaizCampaignCodec]]),
|
|
@@ -23,8 +23,8 @@ const CreateOperation = {
|
|
|
23
23
|
};
|
|
24
24
|
const GetOperation = {
|
|
25
25
|
method: "GET",
|
|
26
|
-
route: "/v1/raiz/campaigns/
|
|
27
|
-
query: {
|
|
26
|
+
route: "/v1/raiz/campaigns/{campaignId}",
|
|
27
|
+
query: { expand: "expand", recipientsCursor: "recipientsCursor", recipientsDirection: "recipientsDirection", recipientsLimit: "recipientsLimit" },
|
|
28
28
|
response: object([["data", null, () => RaizCampaignCodec]]),
|
|
29
29
|
errors: { "400": true, "401": true, "403": true, "404": true, "405": true, "413": true, "415": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
30
30
|
};
|
|
@@ -37,7 +37,7 @@ const ListOperation = {
|
|
|
37
37
|
};
|
|
38
38
|
const UpdateOperation = {
|
|
39
39
|
method: "PATCH",
|
|
40
|
-
route: "/v1/raiz/campaigns/
|
|
40
|
+
route: "/v1/raiz/campaigns/{campaignId}",
|
|
41
41
|
body: "flat",
|
|
42
42
|
request: object([["scheduledEndAt", null, instant], ["scheduledStartAt", null, instant]]),
|
|
43
43
|
response: object([["data", null, () => RaizCampaignCodec]]),
|
|
@@ -112,14 +112,16 @@ export type CreateRequest = {
|
|
|
112
112
|
endpoint: {
|
|
113
113
|
kind: "platform_number";
|
|
114
114
|
label?: string;
|
|
115
|
-
|
|
115
|
+
phone?: RaizPhoneNumber;
|
|
116
|
+
phoneNumber?: RaizPhoneNumber;
|
|
116
117
|
} | {
|
|
117
118
|
address: string;
|
|
118
119
|
kind: "sip_trunk";
|
|
119
120
|
label?: string;
|
|
120
121
|
mediaEncryption?: "disabled" | "allowed" | "required";
|
|
121
122
|
password?: string;
|
|
122
|
-
|
|
123
|
+
phone?: RaizPhoneNumber;
|
|
124
|
+
phoneNumber?: RaizPhoneNumber;
|
|
123
125
|
transport?: "auto" | "udp" | "tcp" | "tls";
|
|
124
126
|
username?: string;
|
|
125
127
|
};
|
|
@@ -145,6 +147,9 @@ export interface DeleteRequest {
|
|
|
145
147
|
* Channel id.
|
|
146
148
|
*/
|
|
147
149
|
channelId: string;
|
|
150
|
+
body: {
|
|
151
|
+
[key: string]: unknown;
|
|
152
|
+
};
|
|
148
153
|
}
|
|
149
154
|
export interface DeleteResponse {
|
|
150
155
|
data: DeletedObject;
|
|
@@ -210,6 +215,9 @@ export interface RenewSetupRequest {
|
|
|
210
215
|
* Channel id.
|
|
211
216
|
*/
|
|
212
217
|
channelId: string;
|
|
218
|
+
body: {
|
|
219
|
+
[key: string]: unknown;
|
|
220
|
+
};
|
|
213
221
|
}
|
|
214
222
|
export interface RenewSetupResponse {
|
|
215
223
|
data: RaizChannel;
|
|
@@ -218,13 +226,13 @@ export interface RenewSetupResponse {
|
|
|
218
226
|
success: true;
|
|
219
227
|
}
|
|
220
228
|
export interface UpdateRequest {
|
|
221
|
-
agentId?: string | null;
|
|
222
|
-
aiCoveragePercent?: number;
|
|
223
|
-
businessHours?: RaizBusinessHours | null;
|
|
224
229
|
/**
|
|
225
230
|
* Channel id.
|
|
226
231
|
*/
|
|
227
232
|
channelId: string;
|
|
233
|
+
agentId?: string | null;
|
|
234
|
+
aiCoveragePercent?: number;
|
|
235
|
+
businessHours?: RaizBusinessHours | null;
|
|
228
236
|
/**
|
|
229
237
|
* The `version` you read. When present, the change applies only if nobody
|
|
230
238
|
* changed the resource since; otherwise it fails with VERSION_CONFLICT.
|
|
@@ -278,6 +286,12 @@ export interface VerifyRequest {
|
|
|
278
286
|
/**
|
|
279
287
|
* Phone number in E.164 format.
|
|
280
288
|
*/
|
|
289
|
+
phone?: RaizPhoneNumber;
|
|
290
|
+
/**
|
|
291
|
+
* Deprecated: use `phone`. Answered until 2027-01-28.
|
|
292
|
+
*
|
|
293
|
+
* @deprecated
|
|
294
|
+
*/
|
|
281
295
|
phoneNumber?: RaizPhoneNumber;
|
|
282
296
|
}
|
|
283
297
|
export interface VerifyResponse {
|