@arbol-ai/sdk 5.46.0 → 5.47.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/connections/models.d.ts +10 -0
- package/dist/account/permissions/models.d.ts +1 -1
- package/dist/gmedic/appointments/models.d.ts +3 -3
- package/dist/raiz/campaigns/client.d.ts +23 -13
- package/dist/raiz/campaigns/client.js +1 -1
- package/dist/raiz/campaigns/models.d.ts +25 -0
- package/dist/raiz/campaigns/models.js +1 -1
- package/dist/raiz/channels/index.d.ts +1 -1
- package/dist/raiz/channels/models.d.ts +50 -6
- package/dist/raiz/conversations/models.d.ts +10 -5
- package/dist/visoft/appointments/client.d.ts +5 -5
- package/dist/visoft/appointments/models.d.ts +6 -0
- package/package.json +3 -3
|
@@ -31,6 +31,16 @@ export interface AccountConnection {
|
|
|
31
31
|
* The independent portal this account connects to.
|
|
32
32
|
*/
|
|
33
33
|
portal?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Its WhatsApp appointment reminders, or null when its integration cannot
|
|
36
|
+
* feed them. Until someone changes them they are off, at 09:00, the day
|
|
37
|
+
* before.
|
|
38
|
+
*/
|
|
39
|
+
reminders: {
|
|
40
|
+
daysBefore: number;
|
|
41
|
+
mode: "off" | "review" | "automatic";
|
|
42
|
+
sendAt: string;
|
|
43
|
+
} | null;
|
|
34
44
|
server: {
|
|
35
45
|
authHeader: string | null;
|
|
36
46
|
fileArgument: string | null;
|
|
@@ -22,7 +22,7 @@ export interface AccountPermission {
|
|
|
22
22
|
/**
|
|
23
23
|
* The product or integration the permission belongs to.
|
|
24
24
|
*/
|
|
25
|
-
group: "raiz" | "agenda" | "ambar" | "sura" | "visoft" | "salud-total" | "nueva-eps" | "comfachoco" | "oficlinic" | "sanitas" | "account";
|
|
25
|
+
group: "raiz" | "agenda" | "ambar" | "sura" | "visoft" | "salud-total" | "nueva-eps" | "comfachoco" | "oficlinic" | "sanitas" | "gmedic" | "account";
|
|
26
26
|
value: string;
|
|
27
27
|
}
|
|
28
28
|
export interface AccountPermissionPage {
|
|
@@ -79,7 +79,7 @@ export interface GmedicAppointmentsPage {
|
|
|
79
79
|
medicalServiceId?: string | null;
|
|
80
80
|
medicalServiceName?: string | null;
|
|
81
81
|
meetUrl?: string | null;
|
|
82
|
-
modality?:
|
|
82
|
+
modality?: string | null;
|
|
83
83
|
modificationDate?: string | null;
|
|
84
84
|
opportunityIndicator?: number | null;
|
|
85
85
|
personCreator?: string | null;
|
|
@@ -277,7 +277,7 @@ export interface GmedicCreateAppointmentResult {
|
|
|
277
277
|
medicalServiceId?: string | null;
|
|
278
278
|
medicalServiceName?: string | null;
|
|
279
279
|
meetUrl?: string | null;
|
|
280
|
-
modality?:
|
|
280
|
+
modality?: string | null;
|
|
281
281
|
/**
|
|
282
282
|
* Deprecated: use `updatedAt`. Answered until 2027-01-28.
|
|
283
283
|
*
|
|
@@ -521,7 +521,7 @@ export interface GmedicUpdateAppointmentResult {
|
|
|
521
521
|
medicalServiceId?: string | null;
|
|
522
522
|
medicalServiceName?: string | null;
|
|
523
523
|
meetUrl?: string | null;
|
|
524
|
-
modality?:
|
|
524
|
+
modality?: string | null;
|
|
525
525
|
/**
|
|
526
526
|
* Deprecated: use `updatedAt`. Answered until 2027-01-28.
|
|
527
527
|
*
|
|
@@ -60,19 +60,18 @@ export interface Client {
|
|
|
60
60
|
*
|
|
61
61
|
* Start reaching people: from now on the campaign's due recipients are
|
|
62
62
|
* called, at most `settings.channels.maxConcurrentOutboundCalls` (five by
|
|
63
|
-
* default) at once across the organization, or sent their message,
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
*
|
|
75
|
-
* people.
|
|
63
|
+
* default) at once across the organization, or sent their message, a few a
|
|
64
|
+
* second. A call campaign needs an active, published voice Agent
|
|
65
|
+
* (VOICE_AGENT_NOT_READY). A WhatsApp campaign needs an active text Agent
|
|
66
|
+
* (CAMPAIGN_AGENT_NOT_READY), a line that can send (CHANNEL_NOT_READY), an
|
|
67
|
+
* approved template whose parameters fit (a `TEMPLATE_*` code), a value for
|
|
68
|
+
* every variable (CAMPAIGN_VARIABLE_MISSING) and, when the template's header
|
|
69
|
+
* is a document, image or video, the first pending recipient's own `header`
|
|
70
|
+
* file (CAMPAIGN_HEADER_MISSING). A recipient must be pending
|
|
71
|
+
* (CAMPAIGN_NO_RECIPIENTS). `get_campaign` with `expand=readiness` lists all
|
|
72
|
+
* of this beforehand. A campaign starts once: starting a running one changes
|
|
73
|
+
* nothing, and a paused one resumes with `update_campaign` and `paused:
|
|
74
|
+
* false`. Not an AI tool: it reaches real people.
|
|
76
75
|
*/
|
|
77
76
|
start(request: StartRequest, options?: RequestOptions): Promise<StartResponse>;
|
|
78
77
|
/**
|
|
@@ -132,6 +131,17 @@ export interface GetRequest {
|
|
|
132
131
|
* yet.
|
|
133
132
|
*/
|
|
134
133
|
recipientsResult?: string;
|
|
134
|
+
/**
|
|
135
|
+
* With `expand=recipients`: only those whose last pressed button is this one,
|
|
136
|
+
* by its exact text.
|
|
137
|
+
*/
|
|
138
|
+
recipientsButton?: string;
|
|
139
|
+
/**
|
|
140
|
+
* With `expand=recipients`, WhatsApp: how the people a message reached
|
|
141
|
+
* answered it. `button`: they pressed one of its buttons. `written`: they
|
|
142
|
+
* wrote and pressed none. `none`: they did neither (`progress.noReply`).
|
|
143
|
+
*/
|
|
144
|
+
recipientsReply?: "button" | "written" | "none";
|
|
135
145
|
/**
|
|
136
146
|
* `pending`: waiting for its (next) call or message. `in_progress`: being
|
|
137
147
|
* called, or on WhatsApp waiting for a reply until a reminder is due.
|
|
@@ -25,7 +25,7 @@ const CreateOperation = {
|
|
|
25
25
|
const GetOperation = {
|
|
26
26
|
method: "GET",
|
|
27
27
|
route: "/v1/raiz/campaigns/{campaignId}",
|
|
28
|
-
query: { expand: "expand", recipientsCursor: "recipientsCursor", recipientsDirection: "recipientsDirection", recipientsLimit: "recipientsLimit", recipientsQ: "recipientsQ", recipientsResult: "recipientsResult", recipientsStatus: "recipientsStatus" },
|
|
28
|
+
query: { expand: "expand", recipientsCursor: "recipientsCursor", recipientsDirection: "recipientsDirection", recipientsLimit: "recipientsLimit", recipientsQ: "recipientsQ", recipientsResult: "recipientsResult", recipientsButton: "recipientsButton", recipientsReply: "recipientsReply", recipientsStatus: "recipientsStatus" },
|
|
29
29
|
response: RaizCampaignResponseCodec,
|
|
30
30
|
errors: { "400": true, "401": true, "403": true, "404": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
31
31
|
};
|
|
@@ -126,6 +126,16 @@ export interface RaizCampaignProgress {
|
|
|
126
126
|
* judged.
|
|
127
127
|
*/
|
|
128
128
|
answered: number;
|
|
129
|
+
/**
|
|
130
|
+
* WhatsApp: the template's quick-reply buttons people pressed, most pressed
|
|
131
|
+
* first, each with how many recipients pressed it last. A recipient counts
|
|
132
|
+
* once, under their latest press. A button nobody pressed is not listed. Read
|
|
133
|
+
* from the reply itself: a written answer is not a button.
|
|
134
|
+
*/
|
|
135
|
+
buttons: {
|
|
136
|
+
recipients: number;
|
|
137
|
+
text: string;
|
|
138
|
+
}[];
|
|
129
139
|
completed: number;
|
|
130
140
|
/**
|
|
131
141
|
* WhatsApp: recipients who received a message.
|
|
@@ -138,6 +148,17 @@ export interface RaizCampaignProgress {
|
|
|
138
148
|
* answering. A voicemail counts here.
|
|
139
149
|
*/
|
|
140
150
|
noAnswer: number;
|
|
151
|
+
/**
|
|
152
|
+
* WhatsApp: recipients a message reached (`deliveredAt`) who pressed none of
|
|
153
|
+
* its buttons, whether or not they wrote. People still pending, or whose
|
|
154
|
+
* message never arrived, are not counted.
|
|
155
|
+
*/
|
|
156
|
+
noButton: number;
|
|
157
|
+
/**
|
|
158
|
+
* WhatsApp: recipients a message reached who neither pressed a button nor
|
|
159
|
+
* wrote: `noButton` less those who answered in writing.
|
|
160
|
+
*/
|
|
161
|
+
noReply: number;
|
|
141
162
|
pending: number;
|
|
142
163
|
/**
|
|
143
164
|
* WhatsApp: recipients who read a message.
|
|
@@ -208,6 +229,10 @@ export interface RaizCampaignRecipientPage {
|
|
|
208
229
|
data: {
|
|
209
230
|
address: string;
|
|
210
231
|
attemptCount: number;
|
|
232
|
+
button: {
|
|
233
|
+
pressedAt: Temporal.Instant;
|
|
234
|
+
text: string;
|
|
235
|
+
} | null;
|
|
211
236
|
contact: {
|
|
212
237
|
id: string;
|
|
213
238
|
name: string | null;
|
|
@@ -22,7 +22,7 @@ export const RaizCampaignRecipientInputCodec = object([
|
|
|
22
22
|
["header", null, () => RaizTemplateHeaderFileCodec],
|
|
23
23
|
]);
|
|
24
24
|
export const RaizCampaignRecipientPageCodec = object([
|
|
25
|
-
["data", null, array(object([["createdAt", null, instant], ["deliveredAt", null, instant], ["lastAttempt", null, object([["startedAt", null, instant]])], ["nextAttemptAt", null, instant], ["readAt", null, instant], ["repliedAt", null, instant], ["updatedAt", null, instant]]))],
|
|
25
|
+
["data", null, array(object([["button", null, object([["pressedAt", null, instant]])], ["createdAt", null, instant], ["deliveredAt", null, instant], ["lastAttempt", null, object([["startedAt", null, instant]])], ["nextAttemptAt", null, instant], ["readAt", null, instant], ["repliedAt", null, instant], ["updatedAt", null, instant]]))],
|
|
26
26
|
]);
|
|
27
27
|
export const RaizCampaignResponseCodec = object([
|
|
28
28
|
["data", null, () => RaizCampaignCodec],
|
|
@@ -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, CreateRequest, CreateResponse, DeleteRequest, DeleteResponse, GetRequest, GetResponse, ListRequest, ListResponse, RenewSetupRequest, RenewSetupResponse, UpdateRequest, UpdateResponse, VerifyRequest, VerifyResponse, } from "./client.js";
|
|
5
|
-
export type { RaizAgentNotTextFailure, RaizCallRejectedFailure, RaizChannel, RaizChannelAgent, RaizChannelAgentRequiredFailure, RaizChannelCreationInAppFailure, RaizChannelEndpointInUseFailure, RaizChannelPage, RaizChannelPageResponse, RaizChannelResponse, RaizContactSuppressedFailure, RaizContactUnreachableFailure, RaizConversationViewAuthorOnlyFailure, RaizConversationViewLimitReachedFailure, RaizConversationViewNameTakenFailure, RaizCreateChannelBadGatewayError, RaizCreateChannelBadGatewayFailure, RaizCreateChannelBadRequestError, RaizCreateChannelBadRequestFailure, RaizCreateChannelBody, RaizCreateChannelConflictError, RaizCreateChannelConflictFailure, RaizCreateChannelContentTooLargeError, RaizCreateChannelContentTooLargeFailure, RaizCreateChannelForbiddenError, RaizCreateChannelForbiddenFailure, RaizCreateChannelGatewayTimeoutError, RaizCreateChannelGatewayTimeoutFailure, RaizCreateChannelInternalServerErrorError, RaizCreateChannelInternalServerErrorFailure, RaizCreateChannelNotFoundError, RaizCreateChannelNotFoundFailure, RaizCreateChannelServiceUnavailableError, RaizCreateChannelServiceUnavailableFailure, RaizCreateChannelTooManyRequestsError, RaizCreateChannelTooManyRequestsFailure, RaizCreateChannelUnprocessableContentError, RaizCreateChannelUnprocessableContentFailure, RaizDeleteChannelBadGatewayError, RaizDeleteChannelBadGatewayFailure, RaizDeleteChannelBadRequestError, RaizDeleteChannelBadRequestFailure, RaizDeleteChannelConflictError, RaizDeleteChannelConflictFailure, RaizDeleteChannelForbiddenError, RaizDeleteChannelForbiddenFailure, RaizDeleteChannelGatewayTimeoutError, RaizDeleteChannelGatewayTimeoutFailure, RaizDeleteChannelInternalServerErrorError, RaizDeleteChannelInternalServerErrorFailure, RaizDeleteChannelNotFoundError, RaizDeleteChannelNotFoundFailure, RaizDeleteChannelServiceUnavailableError, RaizDeleteChannelServiceUnavailableFailure, RaizDeleteChannelTooManyRequestsError, RaizDeleteChannelTooManyRequestsFailure, RaizDeleteChannelUnprocessableContentError, RaizDeleteChannelUnprocessableContentFailure, RaizGetChannelServiceUnavailableError, RaizGetChannelServiceUnavailableFailure, RaizGetChannelTooManyRequestsError, RaizGetChannelTooManyRequestsFailure, RaizImportFileTooLargeError, RaizListChannelsBadRequestError, RaizListChannelsBadRequestFailure, RaizListChannelsServiceUnavailableError, RaizListChannelsServiceUnavailableFailure, RaizOutsideContactHoursFailure, RaizProfileVariableMissingFailure, RaizProviderAccountExistsFailure, RaizProviderAccountInUseFailure, RaizProviderAccountMismatchFailure, RaizProviderAccountUnsupportedFailure, RaizProviderCredentialsRejectedFailure, RaizProviderSecretUnavailableFailure, RaizRenewChannelSetupConflictError, RaizRenewChannelSetupConflictFailure, RaizRenewChannelSetupTooManyRequestsError, RaizRenewChannelSetupTooManyRequestsFailure, RaizUpdateChannelBadGatewayError, RaizUpdateChannelBadGatewayFailure, RaizUpdateChannelBadRequestError, RaizUpdateChannelBadRequestFailure, RaizUpdateChannelBody, RaizUpdateChannelConflictError, RaizUpdateChannelConflictFailure, RaizUpdateChannelContentTooLargeError, RaizUpdateChannelContentTooLargeFailure, RaizUpdateChannelForbiddenError, RaizUpdateChannelForbiddenFailure, RaizUpdateChannelGatewayTimeoutError, RaizUpdateChannelGatewayTimeoutFailure, RaizUpdateChannelInternalServerErrorError, RaizUpdateChannelInternalServerErrorFailure, RaizUpdateChannelNotFoundError, RaizUpdateChannelNotFoundFailure, RaizUpdateChannelServiceUnavailableError, RaizUpdateChannelServiceUnavailableFailure, RaizUpdateChannelTooManyRequestsError, RaizUpdateChannelTooManyRequestsFailure, RaizUpdateChannelUnprocessableContentError, RaizUpdateChannelUnprocessableContentFailure, RaizVerifyChannelBody, RaizVerifyChannelConflictError, RaizVerifyChannelConflictFailure, RaizVerifyChannelServiceUnavailableError, RaizVerifyChannelServiceUnavailableFailure, RaizVerifyChannelTooManyRequestsError, RaizVerifyChannelTooManyRequestsFailure, RaizVoiceLineUnavailableFailure, RaizVoiceNotAvailableFailure, RaizVoiceNumberInUseFailure, RaizVoiceNumberNotOwnedFailure, RaizWhatsappAccountRestrictedFailure, RaizWhatsappAiPausedFailure, RaizWhatsappChannelInternalFailure, RaizWhatsappChannelRefusedFailure, RaizWhatsappDeliveryFailedFailure, RaizWhatsappDeliveryUnconfirmedFailure, RaizWhatsappEngagementLimitedFailure, RaizWhatsappMarketingStoppedFailure, RaizWhatsappMediaRejectedFailure, RaizWhatsappMessageUnsupportedFailure, RaizWhatsappNotSentFailure, RaizWhatsappRecipientUnavailableFailure, RaizWidgetAgentChoice, RaizWidgetClientTool, RaizWidgetConflictFailure, RaizWidgetCopy, RaizWidgetField, RaizWidgetInternalFailure, RaizWidgetLimitReachedFailure, RaizWidgetPublication, RaizWidgetRefusedFailure, RaizWidgetSettings, RaizWidgetSettingsInput, RaizWidgetTranslations, RaizWidgetVoiceUnheardFailure, } from "./models.js";
|
|
5
|
+
export type { RaizAgentNotTextFailure, RaizCallRejectedFailure, RaizChannel, RaizChannelAgent, RaizChannelAgentRequiredFailure, RaizChannelCreationInAppFailure, RaizChannelEndpointInUseFailure, RaizChannelPage, RaizChannelPageResponse, RaizChannelResponse, RaizContactSuppressedFailure, RaizContactUnreachableFailure, RaizConversationViewAuthorOnlyFailure, RaizConversationViewLimitReachedFailure, RaizConversationViewNameTakenFailure, RaizCreateChannelBadGatewayError, RaizCreateChannelBadGatewayFailure, RaizCreateChannelBadRequestError, RaizCreateChannelBadRequestFailure, RaizCreateChannelBody, RaizCreateChannelConflictError, RaizCreateChannelConflictFailure, RaizCreateChannelContentTooLargeError, RaizCreateChannelContentTooLargeFailure, RaizCreateChannelForbiddenError, RaizCreateChannelForbiddenFailure, RaizCreateChannelGatewayTimeoutError, RaizCreateChannelGatewayTimeoutFailure, RaizCreateChannelInternalServerErrorError, RaizCreateChannelInternalServerErrorFailure, RaizCreateChannelNotFoundError, RaizCreateChannelNotFoundFailure, RaizCreateChannelServiceUnavailableError, RaizCreateChannelServiceUnavailableFailure, RaizCreateChannelTooManyRequestsError, RaizCreateChannelTooManyRequestsFailure, RaizCreateChannelUnprocessableContentError, RaizCreateChannelUnprocessableContentFailure, RaizDeleteChannelBadGatewayError, RaizDeleteChannelBadGatewayFailure, RaizDeleteChannelBadRequestError, RaizDeleteChannelBadRequestFailure, RaizDeleteChannelConflictError, RaizDeleteChannelConflictFailure, RaizDeleteChannelForbiddenError, RaizDeleteChannelForbiddenFailure, RaizDeleteChannelGatewayTimeoutError, RaizDeleteChannelGatewayTimeoutFailure, RaizDeleteChannelInternalServerErrorError, RaizDeleteChannelInternalServerErrorFailure, RaizDeleteChannelNotFoundError, RaizDeleteChannelNotFoundFailure, RaizDeleteChannelServiceUnavailableError, RaizDeleteChannelServiceUnavailableFailure, RaizDeleteChannelTooManyRequestsError, RaizDeleteChannelTooManyRequestsFailure, RaizDeleteChannelUnprocessableContentError, RaizDeleteChannelUnprocessableContentFailure, RaizGetChannelServiceUnavailableError, RaizGetChannelServiceUnavailableFailure, RaizGetChannelTooManyRequestsError, RaizGetChannelTooManyRequestsFailure, RaizImportFileTooLargeError, RaizListChannelsBadRequestError, RaizListChannelsBadRequestFailure, RaizListChannelsServiceUnavailableError, RaizListChannelsServiceUnavailableFailure, RaizOutboundChannelInternalFailure, RaizOutboundChannelRefusedFailure, RaizOutsideContactHoursFailure, RaizProfileVariableMissingFailure, RaizProviderAccountExistsFailure, RaizProviderAccountInUseFailure, RaizProviderAccountMismatchFailure, RaizProviderAccountUnsupportedFailure, RaizProviderCredentialsRejectedFailure, RaizProviderSecretUnavailableFailure, RaizRenewChannelSetupConflictError, RaizRenewChannelSetupConflictFailure, RaizRenewChannelSetupTooManyRequestsError, RaizRenewChannelSetupTooManyRequestsFailure, RaizUpdateChannelBadGatewayError, RaizUpdateChannelBadGatewayFailure, RaizUpdateChannelBadRequestError, RaizUpdateChannelBadRequestFailure, RaizUpdateChannelBody, RaizUpdateChannelConflictError, RaizUpdateChannelConflictFailure, RaizUpdateChannelContentTooLargeError, RaizUpdateChannelContentTooLargeFailure, RaizUpdateChannelForbiddenError, RaizUpdateChannelForbiddenFailure, RaizUpdateChannelGatewayTimeoutError, RaizUpdateChannelGatewayTimeoutFailure, RaizUpdateChannelInternalServerErrorError, RaizUpdateChannelInternalServerErrorFailure, RaizUpdateChannelNotFoundError, RaizUpdateChannelNotFoundFailure, RaizUpdateChannelServiceUnavailableError, RaizUpdateChannelServiceUnavailableFailure, RaizUpdateChannelTooManyRequestsError, RaizUpdateChannelTooManyRequestsFailure, RaizUpdateChannelUnprocessableContentError, RaizUpdateChannelUnprocessableContentFailure, RaizVerifyChannelBody, RaizVerifyChannelConflictError, RaizVerifyChannelConflictFailure, RaizVerifyChannelServiceUnavailableError, RaizVerifyChannelServiceUnavailableFailure, RaizVerifyChannelTooManyRequestsError, RaizVerifyChannelTooManyRequestsFailure, RaizVoiceLineUnavailableFailure, RaizVoiceNotAvailableFailure, RaizVoiceNumberInUseFailure, RaizVoiceNumberNotOwnedFailure, RaizWhatsappAccountRestrictedFailure, RaizWhatsappAiPausedFailure, RaizWhatsappChannelInternalFailure, RaizWhatsappChannelRefusedFailure, RaizWhatsappDeliveryFailedFailure, RaizWhatsappDeliveryUnconfirmedFailure, RaizWhatsappEngagementLimitedFailure, RaizWhatsappMarketingStoppedFailure, RaizWhatsappMediaRejectedFailure, RaizWhatsappMessageUnsupportedFailure, RaizWhatsappNotSentFailure, RaizWhatsappRecipientUnavailableFailure, RaizWidgetAgentChoice, RaizWidgetClientTool, RaizWidgetConflictFailure, RaizWidgetCopy, RaizWidgetField, RaizWidgetInternalFailure, RaizWidgetLimitReachedFailure, RaizWidgetPublication, RaizWidgetRefusedFailure, RaizWidgetSettings, RaizWidgetSettingsInput, RaizWidgetTranslations, RaizWidgetVoiceUnheardFailure, } from "./models.js";
|
|
@@ -441,7 +441,7 @@ export interface RaizCreateChannelForbiddenError {
|
|
|
441
441
|
metadata: ResponseMetadata;
|
|
442
442
|
success: false;
|
|
443
443
|
}
|
|
444
|
-
export type RaizCreateChannelForbiddenFailure = ForbiddenFailure | RaizChannelCreationInAppFailure | RaizConversationViewAuthorOnlyFailure | RaizWhatsappChannelRefusedFailure | RaizWidgetRefusedFailure;
|
|
444
|
+
export type RaizCreateChannelForbiddenFailure = ForbiddenFailure | RaizChannelCreationInAppFailure | RaizConversationViewAuthorOnlyFailure | RaizOutboundChannelRefusedFailure | RaizWhatsappChannelRefusedFailure | RaizWidgetRefusedFailure;
|
|
445
445
|
/**
|
|
446
446
|
* A failed answer.
|
|
447
447
|
*/
|
|
@@ -467,7 +467,7 @@ export interface RaizCreateChannelInternalServerErrorError {
|
|
|
467
467
|
metadata: ResponseMetadata;
|
|
468
468
|
success: false;
|
|
469
469
|
}
|
|
470
|
-
export type RaizCreateChannelInternalServerErrorFailure = InternalFailure | RaizWhatsappChannelInternalFailure | RaizWhatsappNotSentFailure | RaizWidgetInternalFailure;
|
|
470
|
+
export type RaizCreateChannelInternalServerErrorFailure = InternalFailure | RaizOutboundChannelInternalFailure | RaizWhatsappChannelInternalFailure | RaizWhatsappNotSentFailure | RaizWidgetInternalFailure;
|
|
471
471
|
/**
|
|
472
472
|
* A failed answer.
|
|
473
473
|
*/
|
|
@@ -571,7 +571,7 @@ export interface RaizDeleteChannelForbiddenError {
|
|
|
571
571
|
metadata: ResponseMetadata;
|
|
572
572
|
success: false;
|
|
573
573
|
}
|
|
574
|
-
export type RaizDeleteChannelForbiddenFailure = ForbiddenFailure | RaizChannelCreationInAppFailure | RaizConversationViewAuthorOnlyFailure | RaizWhatsappChannelRefusedFailure | RaizWidgetRefusedFailure;
|
|
574
|
+
export type RaizDeleteChannelForbiddenFailure = ForbiddenFailure | RaizChannelCreationInAppFailure | RaizConversationViewAuthorOnlyFailure | RaizOutboundChannelRefusedFailure | RaizWhatsappChannelRefusedFailure | RaizWidgetRefusedFailure;
|
|
575
575
|
/**
|
|
576
576
|
* A failed answer.
|
|
577
577
|
*/
|
|
@@ -597,7 +597,7 @@ export interface RaizDeleteChannelInternalServerErrorError {
|
|
|
597
597
|
metadata: ResponseMetadata;
|
|
598
598
|
success: false;
|
|
599
599
|
}
|
|
600
|
-
export type RaizDeleteChannelInternalServerErrorFailure = InternalFailure | RaizWhatsappChannelInternalFailure | RaizWhatsappNotSentFailure | RaizWidgetInternalFailure;
|
|
600
|
+
export type RaizDeleteChannelInternalServerErrorFailure = InternalFailure | RaizOutboundChannelInternalFailure | RaizWhatsappChannelInternalFailure | RaizWhatsappNotSentFailure | RaizWidgetInternalFailure;
|
|
601
601
|
/**
|
|
602
602
|
* A failed answer.
|
|
603
603
|
*/
|
|
@@ -717,6 +717,50 @@ export interface RaizListChannelsServiceUnavailableError {
|
|
|
717
717
|
success: false;
|
|
718
718
|
}
|
|
719
719
|
export type RaizListChannelsServiceUnavailableFailure = UpstreamUnavailableFailure | RaizIntegrationsUnavailableFailure;
|
|
720
|
+
/**
|
|
721
|
+
* What became of the send could not be read back. Asking again never reaches
|
|
722
|
+
* the person twice.
|
|
723
|
+
*/
|
|
724
|
+
export interface RaizOutboundChannelInternalFailure {
|
|
725
|
+
/**
|
|
726
|
+
* The failure code, stable across releases.
|
|
727
|
+
*/
|
|
728
|
+
code: "OUTBOUND_CHANNEL_INTERNAL";
|
|
729
|
+
/**
|
|
730
|
+
* No fields.
|
|
731
|
+
*/
|
|
732
|
+
data: Empty;
|
|
733
|
+
/**
|
|
734
|
+
* What went wrong, for people; it never contains input values.
|
|
735
|
+
*/
|
|
736
|
+
message: string;
|
|
737
|
+
/**
|
|
738
|
+
* Whether repeating the same request may succeed.
|
|
739
|
+
*/
|
|
740
|
+
retryable: false;
|
|
741
|
+
}
|
|
742
|
+
/**
|
|
743
|
+
* Only the Campaigns Worker sends through this service, and only for a
|
|
744
|
+
* recipient of a campaign of that organization.
|
|
745
|
+
*/
|
|
746
|
+
export interface RaizOutboundChannelRefusedFailure {
|
|
747
|
+
/**
|
|
748
|
+
* The failure code, stable across releases.
|
|
749
|
+
*/
|
|
750
|
+
code: "OUTBOUND_CHANNEL_REFUSED";
|
|
751
|
+
/**
|
|
752
|
+
* No fields.
|
|
753
|
+
*/
|
|
754
|
+
data: Empty;
|
|
755
|
+
/**
|
|
756
|
+
* What went wrong, for people; it never contains input values.
|
|
757
|
+
*/
|
|
758
|
+
message: string;
|
|
759
|
+
/**
|
|
760
|
+
* Whether repeating the same request may succeed.
|
|
761
|
+
*/
|
|
762
|
+
retryable: false;
|
|
763
|
+
}
|
|
720
764
|
/**
|
|
721
765
|
* The profile's contact hours do not allow starting a conversation now. Try
|
|
722
766
|
* again within them.
|
|
@@ -1025,7 +1069,7 @@ export interface RaizUpdateChannelForbiddenError {
|
|
|
1025
1069
|
metadata: ResponseMetadata;
|
|
1026
1070
|
success: false;
|
|
1027
1071
|
}
|
|
1028
|
-
export type RaizUpdateChannelForbiddenFailure = ForbiddenFailure | RaizChannelCreationInAppFailure | RaizConversationViewAuthorOnlyFailure | RaizWhatsappChannelRefusedFailure | RaizWidgetRefusedFailure;
|
|
1072
|
+
export type RaizUpdateChannelForbiddenFailure = ForbiddenFailure | RaizChannelCreationInAppFailure | RaizConversationViewAuthorOnlyFailure | RaizOutboundChannelRefusedFailure | RaizWhatsappChannelRefusedFailure | RaizWidgetRefusedFailure;
|
|
1029
1073
|
/**
|
|
1030
1074
|
* A failed answer.
|
|
1031
1075
|
*/
|
|
@@ -1051,7 +1095,7 @@ export interface RaizUpdateChannelInternalServerErrorError {
|
|
|
1051
1095
|
metadata: ResponseMetadata;
|
|
1052
1096
|
success: false;
|
|
1053
1097
|
}
|
|
1054
|
-
export type RaizUpdateChannelInternalServerErrorFailure = InternalFailure | RaizWhatsappChannelInternalFailure | RaizWhatsappNotSentFailure | RaizWidgetInternalFailure;
|
|
1098
|
+
export type RaizUpdateChannelInternalServerErrorFailure = InternalFailure | RaizOutboundChannelInternalFailure | RaizWhatsappChannelInternalFailure | RaizWhatsappNotSentFailure | RaizWidgetInternalFailure;
|
|
1055
1099
|
/**
|
|
1056
1100
|
* A failed answer.
|
|
1057
1101
|
*/
|
|
@@ -134,15 +134,18 @@ export interface RaizConversation {
|
|
|
134
134
|
[key: string]: unknown;
|
|
135
135
|
};
|
|
136
136
|
/**
|
|
137
|
-
*
|
|
138
|
-
*
|
|
137
|
+
* The organization's team wrote to the contact, in Raíz or in the WhatsApp
|
|
138
|
+
* Business app. The message a campaign or a machine client opens a
|
|
139
|
+
* conversation with is not the team's (a message's `origin`).
|
|
139
140
|
*/
|
|
140
141
|
operatorReplied: boolean;
|
|
141
142
|
/**
|
|
142
143
|
* How it started: the contact reached out (`inbound`), a person of the
|
|
143
144
|
* organization started it (`manual`: in the Dashboard, or on WhatsApp in the
|
|
144
145
|
* WhatsApp Business app), a client through the API (`api`), a campaign, an
|
|
145
|
-
* import or a person-owned WhatsApp Agent trial (`test`).
|
|
146
|
+
* import or a person-owned WhatsApp Agent trial (`test`). On WhatsApp,
|
|
147
|
+
* `campaign` and `api` with `direction: inbound` are the contact answering
|
|
148
|
+
* such a message after its conversation closed, which continues it.
|
|
146
149
|
*/
|
|
147
150
|
origin: "inbound" | "manual" | "api" | "campaign" | "import" | "test";
|
|
148
151
|
outcome: "success" | "failure" | "unknown" | null;
|
|
@@ -182,7 +185,9 @@ export interface RaizConversation {
|
|
|
182
185
|
* wrote something the contact saw (those who have not yet, last): each Agent
|
|
183
186
|
* and the team that wrote in it and, while it is open or when nobody answered
|
|
184
187
|
* it, whoever has it (the assigned Agent while the AI handles it, the team
|
|
185
|
-
* otherwise).
|
|
188
|
+
* otherwise). A campaign's message and a machine client's opening make nobody
|
|
189
|
+
* a worker: read who sent them from the message's `origin`. `agentId` is the
|
|
190
|
+
* Agent assigned now.
|
|
186
191
|
*/
|
|
187
192
|
workers: RaizConversationWorker[];
|
|
188
193
|
}
|
|
@@ -434,7 +439,7 @@ export interface RaizMessage {
|
|
|
434
439
|
* An instant in RFC 3339 format, in UTC.
|
|
435
440
|
*/
|
|
436
441
|
occurredAt: Temporal.Instant;
|
|
437
|
-
origin: "business_app" | null;
|
|
442
|
+
origin: "business_app" | "campaign" | "api" | null;
|
|
438
443
|
parts: ({
|
|
439
444
|
format: "plain" | "markdown";
|
|
440
445
|
interrupted: boolean;
|
|
@@ -36,11 +36,11 @@ export interface Client {
|
|
|
36
36
|
* List assigned appointments
|
|
37
37
|
*
|
|
38
38
|
* Read assigned appointments for one day at a cost centre, ordered by moment
|
|
39
|
-
* and reference, with the
|
|
40
|
-
* records. Never cached. A full upstream page that
|
|
41
|
-
* is PROVIDER_UNAVAILABLE; narrow by professionalId
|
|
42
|
-
* partial agenda as complete. This operation changes
|
|
43
|
-
* no message.
|
|
39
|
+
* and reference, with the patient's document number, the contact phone and
|
|
40
|
+
* the state (`status`) SIIPS records. Never cached. A full upstream page that
|
|
41
|
+
* cannot prove completeness is PROVIDER_UNAVAILABLE; narrow by professionalId
|
|
42
|
+
* rather than treating a partial agenda as complete. This operation changes
|
|
43
|
+
* no appointment and sends no message.
|
|
44
44
|
*/
|
|
45
45
|
list(request: ListRequest, options?: RequestOptions): Promise<ListResponse>;
|
|
46
46
|
}
|
|
@@ -76,6 +76,12 @@ export interface VisoftAssignedAppointment {
|
|
|
76
76
|
* SIIPS's attendance flag, as stored.
|
|
77
77
|
*/
|
|
78
78
|
attended: string;
|
|
79
|
+
/**
|
|
80
|
+
* The patient's document number, as SIIPS's agenda stores it: letters and
|
|
81
|
+
* digits only. Empty when the agenda shows none, or when its row and its
|
|
82
|
+
* reference name different documents.
|
|
83
|
+
*/
|
|
84
|
+
documentNumber: string;
|
|
79
85
|
patientName: string;
|
|
80
86
|
/**
|
|
81
87
|
* SIIPS's contact phone text; may be empty or contain several numbers.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arbol-ai/sdk",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.47.0",
|
|
4
4
|
"description": "The Arbol API for TypeScript and JavaScript, generated by Cloudflare Forge from the platform's public OpenAPI.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"arbol",
|
|
@@ -58,8 +58,8 @@
|
|
|
58
58
|
"packageManager": "bun@1.4.3",
|
|
59
59
|
"arbol": {
|
|
60
60
|
"openapi": {
|
|
61
|
-
"release": "1.
|
|
62
|
-
"sha256": "
|
|
61
|
+
"release": "1.20261110.71953",
|
|
62
|
+
"sha256": "e4500da0dc9e62fc4c2c5f01cf0ef0cd8ace237db83026063e1264f2e205dd06"
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
}
|