@arbol-ai/sdk 5.44.0 → 5.45.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/client.d.ts +0 -16
- package/dist/account/client.js +0 -40
- package/dist/account/index.d.ts +1 -1
- package/dist/account/models.d.ts +0 -93
- package/dist/agenda/appointments/client.d.ts +14 -243
- package/dist/agenda/appointments/client.js +18 -17
- package/dist/agenda/appointments/index.d.ts +1 -1
- package/dist/agenda/appointments/models.d.ts +612 -2
- package/dist/agenda/appointments/models.js +14 -2
- package/dist/agenda/availability/client.d.ts +2 -7
- package/dist/agenda/availability/client.js +5 -4
- package/dist/agenda/availability/index.d.ts +1 -0
- package/dist/agenda/availability/models.d.ts +67 -0
- package/dist/agenda/bookingLocations/client.d.ts +2 -7
- package/dist/agenda/bookingLocations/client.js +4 -4
- package/dist/agenda/bookingLocations/index.d.ts +1 -0
- package/dist/agenda/bookingLocations/models.d.ts +67 -0
- package/dist/agenda/bookingOfferings/client.d.ts +2 -8
- package/dist/agenda/bookingOfferings/client.js +1 -1
- package/dist/agenda/bookingOfferings/index.d.ts +1 -1
- package/dist/agenda/bookingOfferings/models.d.ts +79 -1
- package/dist/agenda/bookingRequirements/client.d.ts +2 -75
- package/dist/agenda/bookingRequirements/client.js +1 -1
- package/dist/agenda/bookingRequirements/index.d.ts +1 -0
- package/dist/agenda/bookingRequirements/models.d.ts +182 -0
- package/dist/agenda/bookingSlots/client.d.ts +2 -7
- package/dist/agenda/bookingSlots/client.js +5 -4
- package/dist/agenda/bookingSlots/index.d.ts +1 -0
- package/dist/agenda/bookingSlots/models.d.ts +67 -0
- package/dist/agenda/bookingSlots/models.js +3 -0
- package/dist/agenda/bookings/client.d.ts +13 -188
- package/dist/agenda/bookings/client.js +13 -13
- package/dist/agenda/bookings/index.d.ts +1 -1
- package/dist/agenda/bookings/models.d.ts +526 -1
- package/dist/agenda/bookings/models.js +7 -1
- package/dist/agenda/firstAvailability/client.d.ts +2 -8
- package/dist/agenda/firstAvailability/client.js +4 -4
- package/dist/agenda/firstAvailability/index.d.ts +1 -1
- package/dist/agenda/firstAvailability/models.d.ts +80 -1
- package/dist/agenda/firstAvailability/models.js +4 -1
- package/dist/agenda/index.d.ts +1 -1
- package/dist/agenda/locations/client.d.ts +2 -7
- package/dist/agenda/locations/client.js +4 -4
- package/dist/agenda/locations/index.d.ts +1 -0
- package/dist/agenda/locations/models.d.ts +67 -0
- package/dist/agenda/locations/models.js +3 -0
- package/dist/agenda/models.d.ts +2193 -839
- package/dist/agenda/models.js +9 -0
- package/dist/agenda/nearestBookingSlots/client.d.ts +2 -8
- package/dist/agenda/nearestBookingSlots/client.js +4 -4
- package/dist/agenda/nearestBookingSlots/index.d.ts +1 -1
- package/dist/agenda/nearestBookingSlots/models.d.ts +80 -2
- package/dist/agenda/nearestBookingSlots/models.js +4 -1
- package/dist/agenda/offerings/client.d.ts +7 -146
- package/dist/agenda/offerings/client.js +8 -8
- package/dist/agenda/offerings/index.d.ts +1 -1
- package/dist/agenda/offerings/models.d.ts +349 -1
- package/dist/agenda/offerings/models.js +6 -0
- package/dist/agenda/resourceSchedules/client.d.ts +4 -51
- package/dist/agenda/resourceSchedules/client.js +5 -4
- package/dist/agenda/resourceSchedules/index.d.ts +1 -0
- package/dist/agenda/resourceSchedules/models.d.ts +133 -0
- package/dist/agenda/resourceSchedules/models.js +12 -0
- package/dist/agenda/resources/client.d.ts +7 -99
- package/dist/agenda/resources/client.js +8 -8
- package/dist/agenda/resources/index.d.ts +1 -1
- package/dist/agenda/resources/models.d.ts +302 -1
- package/dist/agenda/resources/models.js +6 -0
- package/dist/agenda/scheduleRules/client.d.ts +7 -172
- package/dist/agenda/scheduleRules/client.js +10 -10
- package/dist/agenda/scheduleRules/index.d.ts +1 -1
- package/dist/agenda/scheduleRules/models.d.ts +520 -1
- package/dist/agenda/scheduleRules/models.js +31 -0
- package/dist/agenda/services/client.d.ts +7 -71
- package/dist/agenda/services/client.js +8 -8
- package/dist/agenda/services/index.d.ts +1 -1
- package/dist/agenda/services/models.d.ts +274 -1
- package/dist/agenda/services/models.js +6 -0
- package/dist/agenda/waitlist/client.d.ts +9 -217
- package/dist/agenda/waitlist/client.js +13 -13
- package/dist/agenda/waitlist/index.d.ts +1 -1
- package/dist/agenda/waitlist/models.d.ts +482 -1
- package/dist/agenda/waitlist/models.js +16 -1
- package/dist/index.d.ts +1 -1
- package/dist/models.d.ts +0 -20
- package/dist/raiz/agents/client.d.ts +8 -137
- package/dist/raiz/agents/client.js +12 -12
- package/dist/raiz/agents/index.d.ts +1 -1
- package/dist/raiz/agents/models.d.ts +258 -2
- package/dist/raiz/agents/models.js +13 -1
- package/dist/raiz/bulletins/client.d.ts +10 -74
- package/dist/raiz/bulletins/client.js +13 -14
- package/dist/raiz/bulletins/index.d.ts +1 -1
- package/dist/raiz/bulletins/models.d.ts +112 -1
- package/dist/raiz/bulletins/models.js +14 -0
- package/dist/raiz/campaigns/client.d.ts +11 -140
- package/dist/raiz/campaigns/client.js +14 -14
- package/dist/raiz/campaigns/index.d.ts +1 -1
- package/dist/raiz/campaigns/models.d.ts +343 -2
- package/dist/raiz/campaigns/models.js +14 -1
- package/dist/raiz/changes/client.d.ts +2 -8
- package/dist/raiz/changes/client.js +4 -4
- package/dist/raiz/changes/index.d.ts +1 -1
- package/dist/raiz/changes/models.d.ts +41 -1
- package/dist/raiz/changes/models.js +3 -0
- package/dist/raiz/channels/client.d.ts +15 -142
- package/dist/raiz/channels/client.js +16 -18
- package/dist/raiz/channels/index.d.ts +1 -1
- package/dist/raiz/channels/models.d.ts +1511 -2
- package/dist/raiz/channels/models.js +12 -2
- package/dist/raiz/contacts/client.d.ts +12 -117
- package/dist/raiz/contacts/client.js +15 -15
- package/dist/raiz/contacts/index.d.ts +1 -1
- package/dist/raiz/contacts/models.d.ts +305 -2
- package/dist/raiz/contacts/models.js +10 -1
- package/dist/raiz/conversations/client.d.ts +18 -99
- package/dist/raiz/conversations/client.js +12 -13
- package/dist/raiz/conversations/index.d.ts +1 -1
- package/dist/raiz/conversations/models.d.ts +253 -2
- package/dist/raiz/conversations/models.js +8 -2
- package/dist/raiz/definitions/client.d.ts +8 -115
- package/dist/raiz/definitions/client.js +10 -10
- package/dist/raiz/definitions/index.d.ts +1 -1
- package/dist/raiz/definitions/models.d.ts +224 -1
- package/dist/raiz/definitions/models.js +6 -0
- package/dist/raiz/evalCases/client.d.ts +10 -57
- package/dist/raiz/evalCases/client.js +8 -8
- package/dist/raiz/evalCases/index.d.ts +1 -1
- package/dist/raiz/evalCases/models.d.ts +78 -1
- package/dist/raiz/evalCases/models.js +6 -0
- package/dist/raiz/evalRuns/client.d.ts +4 -45
- package/dist/raiz/evalRuns/client.js +6 -6
- package/dist/raiz/evalRuns/index.d.ts +1 -1
- package/dist/raiz/evalRuns/models.d.ts +85 -0
- package/dist/raiz/evalRuns/models.js +3 -0
- package/dist/raiz/facts/client.d.ts +6 -65
- package/dist/raiz/facts/client.js +7 -7
- package/dist/raiz/facts/index.d.ts +1 -0
- package/dist/raiz/facts/models.d.ts +120 -0
- package/dist/raiz/facts/models.js +10 -0
- package/dist/raiz/index.d.ts +1 -1
- package/dist/raiz/knowledge/client.d.ts +10 -130
- package/dist/raiz/knowledge/client.js +13 -13
- package/dist/raiz/knowledge/index.d.ts +1 -1
- package/dist/raiz/knowledge/models.d.ts +256 -1
- package/dist/raiz/knowledge/models.js +12 -0
- package/dist/raiz/models.d.ts +1474 -825
- package/dist/raiz/models.js +3 -0
- package/dist/raiz/organization/client.d.ts +7 -70
- package/dist/raiz/organization/client.js +8 -8
- package/dist/raiz/organization/index.d.ts +1 -1
- package/dist/raiz/organization/models.d.ts +178 -1
- package/dist/raiz/organization/models.js +11 -0
- package/dist/raiz/profiles/client.d.ts +8 -87
- package/dist/raiz/profiles/client.js +10 -10
- package/dist/raiz/profiles/index.d.ts +1 -1
- package/dist/raiz/profiles/models.d.ts +206 -2
- package/dist/raiz/profiles/models.js +6 -0
- package/dist/raiz/reports/client.d.ts +5 -8
- package/dist/raiz/reports/client.js +4 -4
- package/dist/raiz/reports/index.d.ts +1 -1
- package/dist/raiz/reports/models.d.ts +41 -0
- package/dist/raiz/reports/models.js +3 -0
- package/dist/raiz/suppressions/client.d.ts +4 -31
- package/dist/raiz/suppressions/client.js +6 -6
- package/dist/raiz/suppressions/index.d.ts +1 -1
- package/dist/raiz/suppressions/models.d.ts +114 -1
- package/dist/raiz/suppressions/models.js +6 -0
- package/dist/raiz/tasks/client.d.ts +12 -32
- package/dist/raiz/tasks/client.js +11 -11
- package/dist/raiz/tasks/index.d.ts +1 -1
- package/dist/raiz/tasks/models.d.ts +108 -2
- package/dist/raiz/tasks/models.js +4 -1
- package/dist/raiz/templates/client.d.ts +7 -84
- package/dist/raiz/templates/client.js +5 -4
- package/dist/raiz/templates/index.d.ts +1 -1
- package/dist/raiz/templates/models.d.ts +214 -1
- package/dist/raiz/templates/models.js +4 -1
- package/dist/raiz/voices/client.d.ts +2 -8
- package/dist/raiz/voices/client.js +1 -1
- package/dist/raiz/voices/index.d.ts +1 -1
- package/dist/raiz/voices/models.d.ts +40 -1
- package/package.json +3 -3
- package/dist/account/billing/client.d.ts +0 -22
- package/dist/account/billing/client.js +0 -18
- package/dist/account/billing/index.d.ts +0 -5
- package/dist/account/billing/index.js +0 -4
- package/dist/account/billing/models.d.ts +0 -74
- package/dist/account/billing/models.js +0 -10
- package/dist/account/billingProfiles/client.d.ts +0 -39
- package/dist/account/billingProfiles/client.js +0 -25
- package/dist/account/billingProfiles/index.d.ts +0 -5
- package/dist/account/billingProfiles/index.js +0 -4
- package/dist/account/billingProfiles/models.d.ts +0 -58
- package/dist/account/invoiceDocuments/client.d.ts +0 -25
- package/dist/account/invoiceDocuments/client.js +0 -17
- package/dist/account/invoiceDocuments/index.d.ts +0 -5
- package/dist/account/invoiceDocuments/index.js +0 -4
- package/dist/account/invoiceDocuments/models.d.ts +0 -35
- package/dist/account/invoices/client.d.ts +0 -47
- package/dist/account/invoices/client.js +0 -26
- package/dist/account/invoices/index.d.ts +0 -5
- package/dist/account/invoices/index.js +0 -4
- package/dist/account/invoices/models.d.ts +0 -135
- package/dist/account/invoices/models.js +0 -24
- package/dist/account/payments/client.d.ts +0 -34
- package/dist/account/payments/client.js +0 -19
- package/dist/account/payments/index.d.ts +0 -5
- package/dist/account/payments/index.js +0 -4
- package/dist/account/payments/models.d.ts +0 -64
- package/dist/account/payments/models.js +0 -12
- package/dist/account/usage/client.d.ts +0 -47
- package/dist/account/usage/client.js +0 -18
- package/dist/account/usage/index.d.ts +0 -5
- package/dist/account/usage/index.js +0 -4
- package/dist/account/usage/models.d.ts +0 -51
- package/dist/account/usageSummary/client.d.ts +0 -26
- package/dist/account/usageSummary/client.js +0 -19
- package/dist/account/usageSummary/index.d.ts +0 -5
- package/dist/account/usageSummary/index.js +0 -4
- package/dist/account/usageSummary/models.d.ts +0 -50
- package/dist/account/usageSummary/models.js +0 -9
- package/dist/account/walletTransactions/client.d.ts +0 -34
- package/dist/account/walletTransactions/client.js +0 -19
- package/dist/account/walletTransactions/index.d.ts +0 -5
- package/dist/account/walletTransactions/index.js +0 -4
- package/dist/account/walletTransactions/models.d.ts +0 -58
- package/dist/account/walletTransactions/models.js +0 -12
- /package/dist/{account/billingProfiles → agenda/availability}/models.js +0 -0
- /package/dist/{account/invoiceDocuments → agenda/bookingLocations}/models.js +0 -0
- /package/dist/{account/usage → agenda/bookingRequirements}/models.js +0 -0
package/dist/raiz/models.d.ts
CHANGED
|
@@ -1,4 +1,47 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Empty, ResponseMetadata } from "../models.js";
|
|
2
|
+
/**
|
|
3
|
+
* Another contact in this organization already uses this address.
|
|
4
|
+
*/
|
|
5
|
+
export interface RaizAddressInUseFailure {
|
|
6
|
+
/**
|
|
7
|
+
* The failure code, stable across releases.
|
|
8
|
+
*/
|
|
9
|
+
code: "ADDRESS_IN_USE";
|
|
10
|
+
/**
|
|
11
|
+
* No fields.
|
|
12
|
+
*/
|
|
13
|
+
data: Empty;
|
|
14
|
+
/**
|
|
15
|
+
* What went wrong, for people; it never contains input values.
|
|
16
|
+
*/
|
|
17
|
+
message: string;
|
|
18
|
+
/**
|
|
19
|
+
* Whether repeating the same request may succeed.
|
|
20
|
+
*/
|
|
21
|
+
retryable: false;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* The Agent still has channels or active campaigns. Unassign them before
|
|
25
|
+
* deleting it.
|
|
26
|
+
*/
|
|
27
|
+
export interface RaizAgentInUseFailure {
|
|
28
|
+
/**
|
|
29
|
+
* The failure code, stable across releases.
|
|
30
|
+
*/
|
|
31
|
+
code: "AGENT_IN_USE";
|
|
32
|
+
/**
|
|
33
|
+
* No fields.
|
|
34
|
+
*/
|
|
35
|
+
data: Empty;
|
|
36
|
+
/**
|
|
37
|
+
* What went wrong, for people; it never contains input values.
|
|
38
|
+
*/
|
|
39
|
+
message: string;
|
|
40
|
+
/**
|
|
41
|
+
* Whether repeating the same request may succeed.
|
|
42
|
+
*/
|
|
43
|
+
retryable: false;
|
|
44
|
+
}
|
|
2
45
|
export interface RaizAgentIntegrationProcedureInput {
|
|
3
46
|
/**
|
|
4
47
|
* A connection's id in Account (`con_…`).
|
|
@@ -9,6 +52,28 @@ export interface RaizAgentIntegrationProcedureInput {
|
|
|
9
52
|
*/
|
|
10
53
|
procedure: string;
|
|
11
54
|
}
|
|
55
|
+
/**
|
|
56
|
+
* The Agent's modality cannot change while it has channels or is published for
|
|
57
|
+
* calls. Create a new Agent instead.
|
|
58
|
+
*/
|
|
59
|
+
export interface RaizAgentModalityLockedFailure {
|
|
60
|
+
/**
|
|
61
|
+
* The failure code, stable across releases.
|
|
62
|
+
*/
|
|
63
|
+
code: "AGENT_MODALITY_LOCKED";
|
|
64
|
+
/**
|
|
65
|
+
* No fields.
|
|
66
|
+
*/
|
|
67
|
+
data: Empty;
|
|
68
|
+
/**
|
|
69
|
+
* What went wrong, for people; it never contains input values.
|
|
70
|
+
*/
|
|
71
|
+
message: string;
|
|
72
|
+
/**
|
|
73
|
+
* Whether repeating the same request may succeed.
|
|
74
|
+
*/
|
|
75
|
+
retryable: false;
|
|
76
|
+
}
|
|
12
77
|
export interface RaizAgentProcedureInput {
|
|
13
78
|
/**
|
|
14
79
|
* Free-form procedures: what to do, in Markdown, with inline references such
|
|
@@ -187,6 +252,96 @@ export interface RaizAgentProcedureInput {
|
|
|
187
252
|
*/
|
|
188
253
|
type: "free_form" | "structured";
|
|
189
254
|
}
|
|
255
|
+
/**
|
|
256
|
+
* A procedure is incomplete, references a tool, document or procedure the Agent
|
|
257
|
+
* does not have, or breaks the structured step rules. `issues` says where.
|
|
258
|
+
*/
|
|
259
|
+
export interface RaizAgentProceduresInvalidFailure {
|
|
260
|
+
/**
|
|
261
|
+
* The failure code, stable across releases.
|
|
262
|
+
*/
|
|
263
|
+
code: "AGENT_PROCEDURES_INVALID";
|
|
264
|
+
data: RaizAgentProceduresInvalidFailureData;
|
|
265
|
+
/**
|
|
266
|
+
* What went wrong, for people; it never contains input values.
|
|
267
|
+
*/
|
|
268
|
+
message: string;
|
|
269
|
+
/**
|
|
270
|
+
* Whether repeating the same request may succeed.
|
|
271
|
+
*/
|
|
272
|
+
retryable: false;
|
|
273
|
+
}
|
|
274
|
+
export interface RaizAgentProceduresInvalidFailureData {
|
|
275
|
+
issues: {
|
|
276
|
+
code: string;
|
|
277
|
+
path: string;
|
|
278
|
+
}[];
|
|
279
|
+
}
|
|
280
|
+
/**
|
|
281
|
+
* The settings do not apply to this Agent's modality, or two settings
|
|
282
|
+
* contradict each other.
|
|
283
|
+
*/
|
|
284
|
+
export interface RaizAgentSettingsInvalidFailure {
|
|
285
|
+
/**
|
|
286
|
+
* The failure code, stable across releases.
|
|
287
|
+
*/
|
|
288
|
+
code: "AGENT_SETTINGS_INVALID";
|
|
289
|
+
/**
|
|
290
|
+
* No fields.
|
|
291
|
+
*/
|
|
292
|
+
data: Empty;
|
|
293
|
+
/**
|
|
294
|
+
* What went wrong, for people; it never contains input values.
|
|
295
|
+
*/
|
|
296
|
+
message: string;
|
|
297
|
+
/**
|
|
298
|
+
* Whether repeating the same request may succeed.
|
|
299
|
+
*/
|
|
300
|
+
retryable: false;
|
|
301
|
+
}
|
|
302
|
+
/**
|
|
303
|
+
* The organization already has 30 bulletins in force or scheduled. End or
|
|
304
|
+
* delete one before adding another.
|
|
305
|
+
*/
|
|
306
|
+
export interface RaizBulletinLimitReachedFailure {
|
|
307
|
+
/**
|
|
308
|
+
* The failure code, stable across releases.
|
|
309
|
+
*/
|
|
310
|
+
code: "BULLETIN_LIMIT_REACHED";
|
|
311
|
+
/**
|
|
312
|
+
* No fields.
|
|
313
|
+
*/
|
|
314
|
+
data: Empty;
|
|
315
|
+
/**
|
|
316
|
+
* What went wrong, for people; it never contains input values.
|
|
317
|
+
*/
|
|
318
|
+
message: string;
|
|
319
|
+
/**
|
|
320
|
+
* Whether repeating the same request may succeed.
|
|
321
|
+
*/
|
|
322
|
+
retryable: false;
|
|
323
|
+
}
|
|
324
|
+
/**
|
|
325
|
+
* A bulletin must end after it starts, and a new one must end in the future.
|
|
326
|
+
*/
|
|
327
|
+
export interface RaizBulletinPeriodInvalidFailure {
|
|
328
|
+
/**
|
|
329
|
+
* The failure code, stable across releases.
|
|
330
|
+
*/
|
|
331
|
+
code: "BULLETIN_PERIOD_INVALID";
|
|
332
|
+
/**
|
|
333
|
+
* No fields.
|
|
334
|
+
*/
|
|
335
|
+
data: Empty;
|
|
336
|
+
/**
|
|
337
|
+
* What went wrong, for people; it never contains input values.
|
|
338
|
+
*/
|
|
339
|
+
message: string;
|
|
340
|
+
/**
|
|
341
|
+
* Whether repeating the same request may succeed.
|
|
342
|
+
*/
|
|
343
|
+
retryable: false;
|
|
344
|
+
}
|
|
190
345
|
export interface RaizBusinessHours {
|
|
191
346
|
/**
|
|
192
347
|
* Local dates (`YYYY-MM-DD`) closed all day, such as holidays.
|
|
@@ -234,6 +389,214 @@ export interface RaizBusinessHoursWindow {
|
|
|
234
389
|
*/
|
|
235
390
|
to: string;
|
|
236
391
|
}
|
|
392
|
+
/**
|
|
393
|
+
* A voice conversation closes by itself when its call ends; it cannot be closed
|
|
394
|
+
* by hand.
|
|
395
|
+
*/
|
|
396
|
+
export interface RaizCallInProgressFailure {
|
|
397
|
+
/**
|
|
398
|
+
* The failure code, stable across releases.
|
|
399
|
+
*/
|
|
400
|
+
code: "CALL_IN_PROGRESS";
|
|
401
|
+
/**
|
|
402
|
+
* No fields.
|
|
403
|
+
*/
|
|
404
|
+
data: Empty;
|
|
405
|
+
/**
|
|
406
|
+
* What went wrong, for people; it never contains input values.
|
|
407
|
+
*/
|
|
408
|
+
message: string;
|
|
409
|
+
/**
|
|
410
|
+
* Whether repeating the same request may succeed.
|
|
411
|
+
*/
|
|
412
|
+
retryable: false;
|
|
413
|
+
}
|
|
414
|
+
/**
|
|
415
|
+
* The campaign's Agent must be an active text Agent: it answers whoever replies
|
|
416
|
+
* to the message.
|
|
417
|
+
*/
|
|
418
|
+
export interface RaizCampaignAgentNotReadyFailure {
|
|
419
|
+
/**
|
|
420
|
+
* The failure code, stable across releases.
|
|
421
|
+
*/
|
|
422
|
+
code: "CAMPAIGN_AGENT_NOT_READY";
|
|
423
|
+
/**
|
|
424
|
+
* No fields.
|
|
425
|
+
*/
|
|
426
|
+
data: Empty;
|
|
427
|
+
/**
|
|
428
|
+
* What went wrong, for people; it never contains input values.
|
|
429
|
+
*/
|
|
430
|
+
message: string;
|
|
431
|
+
/**
|
|
432
|
+
* Whether repeating the same request may succeed.
|
|
433
|
+
*/
|
|
434
|
+
retryable: false;
|
|
435
|
+
}
|
|
436
|
+
/**
|
|
437
|
+
* A recipient has no file that fits the template's header (a PDF for a
|
|
438
|
+
* document, JPEG or PNG for an image, MP4 for a video). Each recipient brings
|
|
439
|
+
* its own as `header`.
|
|
440
|
+
*/
|
|
441
|
+
export interface RaizCampaignHeaderMissingFailure {
|
|
442
|
+
/**
|
|
443
|
+
* The failure code, stable across releases.
|
|
444
|
+
*/
|
|
445
|
+
code: "CAMPAIGN_HEADER_MISSING";
|
|
446
|
+
/**
|
|
447
|
+
* No fields.
|
|
448
|
+
*/
|
|
449
|
+
data: Empty;
|
|
450
|
+
/**
|
|
451
|
+
* What went wrong, for people; it never contains input values.
|
|
452
|
+
*/
|
|
453
|
+
message: string;
|
|
454
|
+
/**
|
|
455
|
+
* Whether repeating the same request may succeed.
|
|
456
|
+
*/
|
|
457
|
+
retryable: false;
|
|
458
|
+
}
|
|
459
|
+
/**
|
|
460
|
+
* The campaign and its recipients were saved, but some recipients' files were
|
|
461
|
+
* not. Send those recipients again with `addRecipients` on this campaign: their
|
|
462
|
+
* numbers are kept and their files stored. Do not create the campaign again.
|
|
463
|
+
*/
|
|
464
|
+
export interface RaizCampaignHeaderNotStoredFailure {
|
|
465
|
+
/**
|
|
466
|
+
* The failure code, stable across releases.
|
|
467
|
+
*/
|
|
468
|
+
code: "CAMPAIGN_HEADER_NOT_STORED";
|
|
469
|
+
data: RaizCampaignHeaderNotStoredFailureData;
|
|
470
|
+
/**
|
|
471
|
+
* What went wrong, for people; it never contains input values.
|
|
472
|
+
*/
|
|
473
|
+
message: string;
|
|
474
|
+
/**
|
|
475
|
+
* Whether repeating the same request may succeed.
|
|
476
|
+
*/
|
|
477
|
+
retryable: false;
|
|
478
|
+
}
|
|
479
|
+
export interface RaizCampaignHeaderNotStoredFailureData {
|
|
480
|
+
/**
|
|
481
|
+
* The campaign, saved with its recipients.
|
|
482
|
+
*/
|
|
483
|
+
campaignId: string;
|
|
484
|
+
}
|
|
485
|
+
/**
|
|
486
|
+
* The campaign has nobody left to reach. Add recipients first.
|
|
487
|
+
*/
|
|
488
|
+
export interface RaizCampaignNoRecipientsFailure {
|
|
489
|
+
/**
|
|
490
|
+
* The failure code, stable across releases.
|
|
491
|
+
*/
|
|
492
|
+
code: "CAMPAIGN_NO_RECIPIENTS";
|
|
493
|
+
/**
|
|
494
|
+
* No fields.
|
|
495
|
+
*/
|
|
496
|
+
data: Empty;
|
|
497
|
+
/**
|
|
498
|
+
* What went wrong, for people; it never contains input values.
|
|
499
|
+
*/
|
|
500
|
+
message: string;
|
|
501
|
+
/**
|
|
502
|
+
* Whether repeating the same request may succeed.
|
|
503
|
+
*/
|
|
504
|
+
retryable: false;
|
|
505
|
+
}
|
|
506
|
+
/**
|
|
507
|
+
* A recipient has no value for a variable the template's parameters use. An
|
|
508
|
+
* empty value cannot be sent on WhatsApp.
|
|
509
|
+
*/
|
|
510
|
+
export interface RaizCampaignVariableMissingFailure {
|
|
511
|
+
/**
|
|
512
|
+
* The failure code, stable across releases.
|
|
513
|
+
*/
|
|
514
|
+
code: "CAMPAIGN_VARIABLE_MISSING";
|
|
515
|
+
data: RaizCampaignVariableMissingFailureData;
|
|
516
|
+
/**
|
|
517
|
+
* What went wrong, for people; it never contains input values.
|
|
518
|
+
*/
|
|
519
|
+
message: string;
|
|
520
|
+
/**
|
|
521
|
+
* Whether repeating the same request may succeed.
|
|
522
|
+
*/
|
|
523
|
+
retryable: false;
|
|
524
|
+
}
|
|
525
|
+
export interface RaizCampaignVariableMissingFailureData {
|
|
526
|
+
/**
|
|
527
|
+
* The first recipient that lacks the value.
|
|
528
|
+
*/
|
|
529
|
+
address: string;
|
|
530
|
+
/**
|
|
531
|
+
* The variable of the template's parameters it lacks.
|
|
532
|
+
*/
|
|
533
|
+
variable: string;
|
|
534
|
+
}
|
|
535
|
+
/**
|
|
536
|
+
* This Agent cannot serve this channel: voice channels need a voice Agent;
|
|
537
|
+
* WhatsApp and web channels need a text Agent.
|
|
538
|
+
*/
|
|
539
|
+
export interface RaizChannelAgentMismatchFailure {
|
|
540
|
+
/**
|
|
541
|
+
* The failure code, stable across releases.
|
|
542
|
+
*/
|
|
543
|
+
code: "CHANNEL_AGENT_MISMATCH";
|
|
544
|
+
/**
|
|
545
|
+
* No fields.
|
|
546
|
+
*/
|
|
547
|
+
data: Empty;
|
|
548
|
+
/**
|
|
549
|
+
* What went wrong, for people; it never contains input values.
|
|
550
|
+
*/
|
|
551
|
+
message: string;
|
|
552
|
+
/**
|
|
553
|
+
* Whether repeating the same request may succeed.
|
|
554
|
+
*/
|
|
555
|
+
retryable: false;
|
|
556
|
+
}
|
|
557
|
+
/**
|
|
558
|
+
* The channel is not connected yet, or this kind of traffic is not enabled on
|
|
559
|
+
* it.
|
|
560
|
+
*/
|
|
561
|
+
export interface RaizChannelNotReadyFailure {
|
|
562
|
+
/**
|
|
563
|
+
* The failure code, stable across releases.
|
|
564
|
+
*/
|
|
565
|
+
code: "CHANNEL_NOT_READY";
|
|
566
|
+
/**
|
|
567
|
+
* No fields.
|
|
568
|
+
*/
|
|
569
|
+
data: Empty;
|
|
570
|
+
/**
|
|
571
|
+
* What went wrong, for people; it never contains input values.
|
|
572
|
+
*/
|
|
573
|
+
message: string;
|
|
574
|
+
/**
|
|
575
|
+
* Whether repeating the same request may succeed.
|
|
576
|
+
*/
|
|
577
|
+
retryable: false;
|
|
578
|
+
}
|
|
579
|
+
/**
|
|
580
|
+
* This operation or field does not apply to this channel's type.
|
|
581
|
+
*/
|
|
582
|
+
export interface RaizChannelTypeMismatchFailure {
|
|
583
|
+
/**
|
|
584
|
+
* The failure code, stable across releases.
|
|
585
|
+
*/
|
|
586
|
+
code: "CHANNEL_TYPE_MISMATCH";
|
|
587
|
+
/**
|
|
588
|
+
* No fields.
|
|
589
|
+
*/
|
|
590
|
+
data: Empty;
|
|
591
|
+
/**
|
|
592
|
+
* What went wrong, for people; it never contains input values.
|
|
593
|
+
*/
|
|
594
|
+
message: string;
|
|
595
|
+
/**
|
|
596
|
+
* Whether repeating the same request may succeed.
|
|
597
|
+
*/
|
|
598
|
+
retryable: false;
|
|
599
|
+
}
|
|
237
600
|
export interface RaizContactHoursWindow {
|
|
238
601
|
days: ("MO" | "TU" | "WE" | "TH" | "FR" | "SA" | "SU")[];
|
|
239
602
|
/**
|
|
@@ -245,7 +608,246 @@ export interface RaizContactHoursWindow {
|
|
|
245
608
|
*/
|
|
246
609
|
to: string;
|
|
247
610
|
}
|
|
611
|
+
/**
|
|
612
|
+
* The conversation is closed. Start a new conversation to write again.
|
|
613
|
+
*/
|
|
614
|
+
export interface RaizConversationClosedFailure {
|
|
615
|
+
/**
|
|
616
|
+
* The failure code, stable across releases.
|
|
617
|
+
*/
|
|
618
|
+
code: "CONVERSATION_CLOSED";
|
|
619
|
+
/**
|
|
620
|
+
* No fields.
|
|
621
|
+
*/
|
|
622
|
+
data: Empty;
|
|
623
|
+
/**
|
|
624
|
+
* What went wrong, for people; it never contains input values.
|
|
625
|
+
*/
|
|
626
|
+
message: string;
|
|
627
|
+
/**
|
|
628
|
+
* Whether repeating the same request may succeed.
|
|
629
|
+
*/
|
|
630
|
+
retryable: false;
|
|
631
|
+
}
|
|
632
|
+
/**
|
|
633
|
+
* The AI has not handed this conversation to the team, so there is nothing to
|
|
634
|
+
* give back to it.
|
|
635
|
+
*/
|
|
636
|
+
export interface RaizConversationNotHandedOffFailure {
|
|
637
|
+
/**
|
|
638
|
+
* The failure code, stable across releases.
|
|
639
|
+
*/
|
|
640
|
+
code: "CONVERSATION_NOT_HANDED_OFF";
|
|
641
|
+
/**
|
|
642
|
+
* No fields.
|
|
643
|
+
*/
|
|
644
|
+
data: Empty;
|
|
645
|
+
/**
|
|
646
|
+
* What went wrong, for people; it never contains input values.
|
|
647
|
+
*/
|
|
648
|
+
message: string;
|
|
649
|
+
/**
|
|
650
|
+
* Whether repeating the same request may succeed.
|
|
651
|
+
*/
|
|
652
|
+
retryable: false;
|
|
653
|
+
}
|
|
654
|
+
/**
|
|
655
|
+
* The conversation is still open. Close it first.
|
|
656
|
+
*/
|
|
657
|
+
export interface RaizConversationOpenFailure {
|
|
658
|
+
/**
|
|
659
|
+
* The failure code, stable across releases.
|
|
660
|
+
*/
|
|
661
|
+
code: "CONVERSATION_OPEN";
|
|
662
|
+
/**
|
|
663
|
+
* No fields.
|
|
664
|
+
*/
|
|
665
|
+
data: Empty;
|
|
666
|
+
/**
|
|
667
|
+
* What went wrong, for people; it never contains input values.
|
|
668
|
+
*/
|
|
669
|
+
message: string;
|
|
670
|
+
/**
|
|
671
|
+
* Whether repeating the same request may succeed.
|
|
672
|
+
*/
|
|
673
|
+
retryable: false;
|
|
674
|
+
}
|
|
675
|
+
/**
|
|
676
|
+
* The daily report you asked for is still on its way; it arrives within a
|
|
677
|
+
* minute.
|
|
678
|
+
*/
|
|
679
|
+
export interface RaizDailyReportInProgressFailure {
|
|
680
|
+
/**
|
|
681
|
+
* The failure code, stable across releases.
|
|
682
|
+
*/
|
|
683
|
+
code: "DAILY_REPORT_IN_PROGRESS";
|
|
684
|
+
/**
|
|
685
|
+
* No fields.
|
|
686
|
+
*/
|
|
687
|
+
data: Empty;
|
|
688
|
+
/**
|
|
689
|
+
* What went wrong, for people; it never contains input values.
|
|
690
|
+
*/
|
|
691
|
+
message: string;
|
|
692
|
+
/**
|
|
693
|
+
* Whether repeating the same request may succeed.
|
|
694
|
+
*/
|
|
695
|
+
retryable: false;
|
|
696
|
+
}
|
|
697
|
+
/**
|
|
698
|
+
* The daily report has no recipients. Add them in
|
|
699
|
+
* `settings.dailyReport.recipients` first.
|
|
700
|
+
*/
|
|
701
|
+
export interface RaizDailyReportRecipientsMissingFailure {
|
|
702
|
+
/**
|
|
703
|
+
* The failure code, stable across releases.
|
|
704
|
+
*/
|
|
705
|
+
code: "DAILY_REPORT_RECIPIENTS_MISSING";
|
|
706
|
+
/**
|
|
707
|
+
* No fields.
|
|
708
|
+
*/
|
|
709
|
+
data: Empty;
|
|
710
|
+
/**
|
|
711
|
+
* What went wrong, for people; it never contains input values.
|
|
712
|
+
*/
|
|
713
|
+
message: string;
|
|
714
|
+
/**
|
|
715
|
+
* Whether repeating the same request may succeed.
|
|
716
|
+
*/
|
|
717
|
+
retryable: false;
|
|
718
|
+
}
|
|
719
|
+
/**
|
|
720
|
+
* Facts can be asserted only under an active definition.
|
|
721
|
+
*/
|
|
722
|
+
export interface RaizDefinitionNotActiveFailure {
|
|
723
|
+
/**
|
|
724
|
+
* The failure code, stable across releases.
|
|
725
|
+
*/
|
|
726
|
+
code: "DEFINITION_NOT_ACTIVE";
|
|
727
|
+
/**
|
|
728
|
+
* No fields.
|
|
729
|
+
*/
|
|
730
|
+
data: Empty;
|
|
731
|
+
/**
|
|
732
|
+
* What went wrong, for people; it never contains input values.
|
|
733
|
+
*/
|
|
734
|
+
message: string;
|
|
735
|
+
/**
|
|
736
|
+
* Whether repeating the same request may succeed.
|
|
737
|
+
*/
|
|
738
|
+
retryable: false;
|
|
739
|
+
}
|
|
740
|
+
/**
|
|
741
|
+
* Only a definition whose value type is `option` has options; it needs at least
|
|
742
|
+
* one, and option keys must be unique.
|
|
743
|
+
*/
|
|
744
|
+
export interface RaizDefinitionOptionsInvalidFailure {
|
|
745
|
+
/**
|
|
746
|
+
* The failure code, stable across releases.
|
|
747
|
+
*/
|
|
748
|
+
code: "DEFINITION_OPTIONS_INVALID";
|
|
749
|
+
/**
|
|
750
|
+
* No fields.
|
|
751
|
+
*/
|
|
752
|
+
data: Empty;
|
|
753
|
+
/**
|
|
754
|
+
* What went wrong, for people; it never contains input values.
|
|
755
|
+
*/
|
|
756
|
+
message: string;
|
|
757
|
+
/**
|
|
758
|
+
* Whether repeating the same request may succeed.
|
|
759
|
+
*/
|
|
760
|
+
retryable: false;
|
|
761
|
+
}
|
|
762
|
+
/**
|
|
763
|
+
* The definition is retired and can no longer change.
|
|
764
|
+
*/
|
|
765
|
+
export interface RaizDefinitionRetiredFailure {
|
|
766
|
+
/**
|
|
767
|
+
* The failure code, stable across releases.
|
|
768
|
+
*/
|
|
769
|
+
code: "DEFINITION_RETIRED";
|
|
770
|
+
/**
|
|
771
|
+
* No fields.
|
|
772
|
+
*/
|
|
773
|
+
data: Empty;
|
|
774
|
+
/**
|
|
775
|
+
* What went wrong, for people; it never contains input values.
|
|
776
|
+
*/
|
|
777
|
+
message: string;
|
|
778
|
+
/**
|
|
779
|
+
* Whether repeating the same request may succeed.
|
|
780
|
+
*/
|
|
781
|
+
retryable: false;
|
|
782
|
+
}
|
|
783
|
+
/**
|
|
784
|
+
* The value type and subject of a definition cannot change once it has facts.
|
|
785
|
+
* Retire it and create a new one instead.
|
|
786
|
+
*/
|
|
787
|
+
export interface RaizDefinitionTypeLockedFailure {
|
|
788
|
+
/**
|
|
789
|
+
* The failure code, stable across releases.
|
|
790
|
+
*/
|
|
791
|
+
code: "DEFINITION_TYPE_LOCKED";
|
|
792
|
+
/**
|
|
793
|
+
* No fields.
|
|
794
|
+
*/
|
|
795
|
+
data: Empty;
|
|
796
|
+
/**
|
|
797
|
+
* What went wrong, for people; it never contains input values.
|
|
798
|
+
*/
|
|
799
|
+
message: string;
|
|
800
|
+
/**
|
|
801
|
+
* Whether repeating the same request may succeed.
|
|
802
|
+
*/
|
|
803
|
+
retryable: false;
|
|
804
|
+
}
|
|
248
805
|
export type RaizEmailAddress = string;
|
|
806
|
+
/**
|
|
807
|
+
* The Agent has no kept evaluation case to replay, or a named case is not one
|
|
808
|
+
* of its kept cases.
|
|
809
|
+
*/
|
|
810
|
+
export interface RaizEvalCasesUnavailableFailure {
|
|
811
|
+
/**
|
|
812
|
+
* The failure code, stable across releases.
|
|
813
|
+
*/
|
|
814
|
+
code: "EVAL_CASES_UNAVAILABLE";
|
|
815
|
+
/**
|
|
816
|
+
* No fields.
|
|
817
|
+
*/
|
|
818
|
+
data: Empty;
|
|
819
|
+
/**
|
|
820
|
+
* What went wrong, for people; it never contains input values.
|
|
821
|
+
*/
|
|
822
|
+
message: string;
|
|
823
|
+
/**
|
|
824
|
+
* Whether repeating the same request may succeed.
|
|
825
|
+
*/
|
|
826
|
+
retryable: false;
|
|
827
|
+
}
|
|
828
|
+
/**
|
|
829
|
+
* This Agent requires a completed evaluation run of exactly this content, in
|
|
830
|
+
* which every case passed, before what its model reads changes. Create one with
|
|
831
|
+
* createEvalRun and send its id as evalRunId.
|
|
832
|
+
*/
|
|
833
|
+
export interface RaizEvalGateUnmetFailure {
|
|
834
|
+
/**
|
|
835
|
+
* The failure code, stable across releases.
|
|
836
|
+
*/
|
|
837
|
+
code: "EVAL_GATE_UNMET";
|
|
838
|
+
/**
|
|
839
|
+
* No fields.
|
|
840
|
+
*/
|
|
841
|
+
data: Empty;
|
|
842
|
+
/**
|
|
843
|
+
* What went wrong, for people; it never contains input values.
|
|
844
|
+
*/
|
|
845
|
+
message: string;
|
|
846
|
+
/**
|
|
847
|
+
* Whether repeating the same request may succeed.
|
|
848
|
+
*/
|
|
849
|
+
retryable: false;
|
|
850
|
+
}
|
|
249
851
|
export interface RaizFact {
|
|
250
852
|
/**
|
|
251
853
|
* Who wrote the value.
|
|
@@ -282,827 +884,370 @@ export interface RaizFact {
|
|
|
282
884
|
value: string | number | boolean | null;
|
|
283
885
|
valueStatus: "known" | "unknown" | "not_applicable";
|
|
284
886
|
}
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
};
|
|
650
|
-
message: "This operation or field does not apply to this channel's type.";
|
|
651
|
-
retryable: false;
|
|
652
|
-
} | {
|
|
653
|
-
code: "CONVERSATION_VIEW_AUTHOR_ONLY";
|
|
654
|
-
data: {
|
|
655
|
-
[key: string]: unknown;
|
|
656
|
-
};
|
|
657
|
-
message: "Only the person who saved this view can make it private; it would disappear for the rest of the team.";
|
|
658
|
-
retryable: false;
|
|
659
|
-
} | {
|
|
660
|
-
code: "CONVERSATION_VIEW_LIMIT_REACHED";
|
|
661
|
-
data: {
|
|
662
|
-
[key: string]: unknown;
|
|
663
|
-
};
|
|
664
|
-
message: "The organization already has 200 saved views. Delete one before saving another.";
|
|
665
|
-
retryable: false;
|
|
666
|
-
} | {
|
|
667
|
-
code: "CONVERSATION_VIEW_NAME_TAKEN";
|
|
668
|
-
data: {
|
|
669
|
-
[key: string]: unknown;
|
|
670
|
-
};
|
|
671
|
-
message: "Another saved view already has this name. Choose a different name.";
|
|
672
|
-
retryable: false;
|
|
673
|
-
} | {
|
|
674
|
-
code: "TEMPLATE_HEADER_MISMATCH";
|
|
675
|
-
data: {
|
|
676
|
-
[key: string]: unknown;
|
|
677
|
-
};
|
|
678
|
-
message: "The header file does not fit the template: a document header takes a PDF, an image header a JPEG or PNG, a video header an MP4, and a template without a media header takes no file.";
|
|
679
|
-
retryable: false;
|
|
680
|
-
} | {
|
|
681
|
-
code: "TEMPLATE_HEADER_REQUIRED";
|
|
682
|
-
data: {
|
|
683
|
-
[key: string]: unknown;
|
|
684
|
-
};
|
|
685
|
-
message: "The template's header is a document, image or video: send its file with the template.";
|
|
686
|
-
retryable: false;
|
|
687
|
-
} | {
|
|
688
|
-
code: "TEMPLATE_NOT_APPROVED";
|
|
689
|
-
data: {
|
|
690
|
-
[key: string]: unknown;
|
|
691
|
-
};
|
|
692
|
-
message: "The template is not approved for sending: it is pending review, rejected, paused or disabled.";
|
|
693
|
-
retryable: false;
|
|
694
|
-
} | {
|
|
695
|
-
code: "TEMPLATE_NOT_FOUND";
|
|
696
|
-
data: {
|
|
697
|
-
[key: string]: unknown;
|
|
698
|
-
};
|
|
699
|
-
message: "The template does not exist in this channel's WhatsApp Business Account.";
|
|
700
|
-
retryable: false;
|
|
701
|
-
} | {
|
|
702
|
-
code: "TEMPLATE_PARAMETERS_MISMATCH";
|
|
703
|
-
data: {
|
|
704
|
-
[key: string]: unknown;
|
|
705
|
-
};
|
|
706
|
-
message: "The number of parameters does not match the variables of the template's body.";
|
|
707
|
-
retryable: false;
|
|
708
|
-
} | {
|
|
709
|
-
code: "TEMPLATE_UNSUPPORTED";
|
|
710
|
-
data: {
|
|
711
|
-
[key: string]: unknown;
|
|
712
|
-
};
|
|
713
|
-
message: "The template needs header text variables, a location header or button parameters, which cannot be sent yet.";
|
|
714
|
-
retryable: false;
|
|
715
|
-
} | {
|
|
716
|
-
code: "WHATSAPP_ACCOUNT_RESTRICTED";
|
|
717
|
-
data: {
|
|
718
|
-
[key: string]: unknown;
|
|
719
|
-
};
|
|
720
|
-
message: "WhatsApp has restricted this number or its business account. Review the account's status before sending again.";
|
|
721
|
-
retryable: false;
|
|
722
|
-
} | {
|
|
723
|
-
code: "WHATSAPP_AI_PAUSED";
|
|
724
|
-
data: {
|
|
725
|
-
[key: string]: unknown;
|
|
726
|
-
};
|
|
727
|
-
message: "Automatic replies are paused or this conversation can no longer receive them.";
|
|
728
|
-
retryable: false;
|
|
729
|
-
} | {
|
|
730
|
-
code: "WHATSAPP_CHANNEL_INTERNAL";
|
|
731
|
-
data: {
|
|
732
|
-
[key: string]: unknown;
|
|
733
|
-
};
|
|
734
|
-
message: "The delivery outcome could not be read back. Asking again never sends the message twice.";
|
|
735
|
-
retryable: false;
|
|
736
|
-
} | {
|
|
737
|
-
code: "WHATSAPP_CHANNEL_REFUSED";
|
|
738
|
-
data: {
|
|
739
|
-
[key: string]: unknown;
|
|
740
|
-
};
|
|
741
|
-
message: "Only the WhatsApp Agent Worker delivers through this service, and only Agent messages of a WhatsApp conversation.";
|
|
742
|
-
retryable: false;
|
|
743
|
-
} | {
|
|
744
|
-
code: "WHATSAPP_DELIVERY_FAILED";
|
|
745
|
-
data: {
|
|
746
|
-
[key: string]: unknown;
|
|
747
|
-
};
|
|
748
|
-
message: "WhatsApp did not deliver the message.";
|
|
749
|
-
retryable: false;
|
|
750
|
-
} | {
|
|
751
|
-
code: "WHATSAPP_DELIVERY_UNCONFIRMED";
|
|
752
|
-
data: {
|
|
753
|
-
[key: string]: unknown;
|
|
754
|
-
};
|
|
755
|
-
message: "WhatsApp never confirmed whether the message was sent. It was not sent again.";
|
|
756
|
-
retryable: false;
|
|
757
|
-
} | {
|
|
758
|
-
code: "WHATSAPP_ENGAGEMENT_LIMITED";
|
|
759
|
-
data: {
|
|
760
|
-
[key: string]: unknown;
|
|
761
|
-
};
|
|
762
|
-
message: "WhatsApp limited how many marketing messages this person receives. Wait at least a day before sending again.";
|
|
763
|
-
retryable: true;
|
|
764
|
-
} | {
|
|
765
|
-
code: "WHATSAPP_MARKETING_STOPPED";
|
|
766
|
-
data: {
|
|
767
|
-
[key: string]: unknown;
|
|
768
|
-
};
|
|
769
|
-
message: "The contact chose to stop receiving marketing messages from this business.";
|
|
770
|
-
retryable: false;
|
|
771
|
-
} | {
|
|
772
|
-
code: "WHATSAPP_MEDIA_REJECTED";
|
|
773
|
-
data: {
|
|
774
|
-
[key: string]: unknown;
|
|
775
|
-
};
|
|
776
|
-
message: "WhatsApp could not use the attachment. Check its type and size limits.";
|
|
777
|
-
retryable: false;
|
|
778
|
-
} | {
|
|
779
|
-
code: "WHATSAPP_MESSAGE_UNSUPPORTED";
|
|
780
|
-
data: {
|
|
781
|
-
[key: string]: unknown;
|
|
782
|
-
};
|
|
783
|
-
message: "This message cannot be sent on WhatsApp: it allows one attachment per message, up to three buttons or ten list options, and text of up to 4096 characters.";
|
|
784
|
-
retryable: false;
|
|
785
|
-
} | {
|
|
786
|
-
code: "WHATSAPP_NOT_SENT";
|
|
787
|
-
data: {
|
|
788
|
-
[key: string]: unknown;
|
|
789
|
-
};
|
|
790
|
-
message: "The message was stored but never handed to WhatsApp. It was not sent.";
|
|
791
|
-
retryable: false;
|
|
792
|
-
} | {
|
|
793
|
-
code: "WHATSAPP_RATE_LIMITED";
|
|
794
|
-
data: {
|
|
795
|
-
[key: string]: unknown;
|
|
796
|
-
};
|
|
797
|
-
message: "WhatsApp is limiting messages from this number. Try again later.";
|
|
798
|
-
retryable: true;
|
|
799
|
-
} | {
|
|
800
|
-
code: "WHATSAPP_RECIPIENT_UNAVAILABLE";
|
|
801
|
-
data: {
|
|
802
|
-
[key: string]: unknown;
|
|
803
|
-
};
|
|
804
|
-
message: "The recipient cannot receive WhatsApp messages from this number.";
|
|
805
|
-
retryable: false;
|
|
806
|
-
} | {
|
|
807
|
-
code: "WHATSAPP_WINDOW_CLOSED";
|
|
808
|
-
data: {
|
|
809
|
-
[key: string]: unknown;
|
|
810
|
-
};
|
|
811
|
-
message: "More than 24 hours passed since the contact last wrote. Start the conversation with an approved template.";
|
|
812
|
-
retryable: false;
|
|
813
|
-
} | {
|
|
814
|
-
code: "CALL_REJECTED";
|
|
815
|
-
data: {
|
|
816
|
-
[key: string]: unknown;
|
|
817
|
-
};
|
|
818
|
-
message: "The call could not be placed. Check the destination number and the line.";
|
|
819
|
-
retryable: false;
|
|
820
|
-
} | {
|
|
821
|
-
code: "PROVIDER_ACCOUNT_MISMATCH";
|
|
822
|
-
data: {
|
|
823
|
-
[key: string]: unknown;
|
|
824
|
-
};
|
|
825
|
-
message: "The number and the Agent belong to different voice accounts. A voice Agent answers and dials only numbers of its own account.";
|
|
826
|
-
retryable: false;
|
|
827
|
-
} | {
|
|
828
|
-
code: "PROVIDER_ACCOUNT_UNSUPPORTED";
|
|
829
|
-
data: {
|
|
830
|
-
[key: string]: unknown;
|
|
831
|
-
};
|
|
832
|
-
message: "This deployment cannot use provider accounts of this provider yet; the platform's own account is used instead.";
|
|
833
|
-
retryable: false;
|
|
834
|
-
} | {
|
|
835
|
-
code: "PROVIDER_CREDENTIALS_REJECTED";
|
|
836
|
-
data: {
|
|
837
|
-
[key: string]: unknown;
|
|
838
|
-
};
|
|
839
|
-
message: "The provider refused the provider account's credentials, or the account is not active there.";
|
|
840
|
-
retryable: false;
|
|
841
|
-
} | {
|
|
842
|
-
code: "PROVIDER_SECRET_UNAVAILABLE";
|
|
843
|
-
data: {
|
|
844
|
-
[key: string]: unknown;
|
|
845
|
-
};
|
|
846
|
-
message: "A secret the provider account needs is not available to this deployment. Name a TENANT_ Secrets Store entry that this deployment has a binding for.";
|
|
847
|
-
retryable: false;
|
|
848
|
-
} | {
|
|
849
|
-
code: "VOICE_AGENT_NOT_READY";
|
|
850
|
-
data: {
|
|
851
|
-
[key: string]: unknown;
|
|
852
|
-
};
|
|
853
|
-
message: "The Agent cannot take calls yet: it must be an active voice Agent with instructions, published for calls.";
|
|
854
|
-
retryable: false;
|
|
855
|
-
} | {
|
|
856
|
-
code: "VOICE_LINE_UNAVAILABLE";
|
|
857
|
-
data: {
|
|
858
|
-
[key: string]: unknown;
|
|
859
|
-
};
|
|
860
|
-
message: "No voice line can place this call. Name an active outbound line of the organization with `from` or `channelId`, or assign one to the Agent.";
|
|
861
|
-
retryable: false;
|
|
862
|
-
} | {
|
|
863
|
-
code: "VOICE_NOT_AVAILABLE";
|
|
864
|
-
data: {
|
|
865
|
-
[key: string]: unknown;
|
|
866
|
-
};
|
|
867
|
-
message: "This voice is not available. Choose one from `listVoices`.";
|
|
868
|
-
retryable: false;
|
|
869
|
-
} | {
|
|
870
|
-
code: "VOICE_NUMBER_IN_USE";
|
|
871
|
-
data: {
|
|
872
|
-
[key: string]: unknown;
|
|
873
|
-
};
|
|
874
|
-
message: "This number is already connected to another voice service. Release it there first.";
|
|
875
|
-
retryable: false;
|
|
876
|
-
} | {
|
|
877
|
-
code: "VOICE_NUMBER_NOT_OWNED";
|
|
878
|
-
data: {
|
|
879
|
-
[key: string]: unknown;
|
|
880
|
-
};
|
|
881
|
-
message: "The platform's telephony account does not own a voice-capable number with this value.";
|
|
882
|
-
retryable: false;
|
|
883
|
-
} | {
|
|
884
|
-
code: "VOICE_UNAVAILABLE";
|
|
885
|
-
data: {
|
|
886
|
-
[key: string]: unknown;
|
|
887
|
-
};
|
|
888
|
-
message: "Calls are unavailable right now. Try again in a few minutes.";
|
|
889
|
-
retryable: true;
|
|
890
|
-
} | {
|
|
891
|
-
code: "AGENT_PROCEDURES_INVALID";
|
|
892
|
-
data: {
|
|
893
|
-
issues: {
|
|
894
|
-
code: string;
|
|
895
|
-
path: string;
|
|
896
|
-
}[];
|
|
897
|
-
};
|
|
898
|
-
message: "A procedure is incomplete, references a tool, document or procedure the Agent does not have, or breaks the structured step rules. `issues` says where.";
|
|
899
|
-
retryable: false;
|
|
900
|
-
} | {
|
|
901
|
-
code: "AGENT_IN_USE";
|
|
902
|
-
data: {
|
|
903
|
-
[key: string]: unknown;
|
|
904
|
-
};
|
|
905
|
-
message: "The Agent still has channels or active campaigns. Unassign them before deleting it.";
|
|
906
|
-
retryable: false;
|
|
907
|
-
} | {
|
|
908
|
-
code: "AGENT_MODALITY_LOCKED";
|
|
909
|
-
data: {
|
|
910
|
-
[key: string]: unknown;
|
|
911
|
-
};
|
|
912
|
-
message: "The Agent's modality cannot change while it has channels or is published for calls. Create a new Agent instead.";
|
|
913
|
-
retryable: false;
|
|
914
|
-
} | {
|
|
915
|
-
code: "AGENT_SETTINGS_INVALID";
|
|
916
|
-
data: {
|
|
917
|
-
[key: string]: unknown;
|
|
918
|
-
};
|
|
919
|
-
message: "The settings do not apply to this Agent's modality, or two settings contradict each other.";
|
|
920
|
-
retryable: false;
|
|
921
|
-
} | {
|
|
922
|
-
code: "BULLETIN_LIMIT_REACHED";
|
|
923
|
-
data: {
|
|
924
|
-
[key: string]: unknown;
|
|
925
|
-
};
|
|
926
|
-
message: "The organization already has 30 bulletins in force or scheduled. End or delete one before adding another.";
|
|
927
|
-
retryable: false;
|
|
928
|
-
} | {
|
|
929
|
-
code: "BULLETIN_PERIOD_INVALID";
|
|
930
|
-
data: {
|
|
931
|
-
[key: string]: unknown;
|
|
932
|
-
};
|
|
933
|
-
message: "A bulletin must end after it starts, and a new one must end in the future.";
|
|
934
|
-
retryable: false;
|
|
935
|
-
} | {
|
|
936
|
-
code: "FEEDBACK_PROPOSAL_UNAVAILABLE";
|
|
937
|
-
data: {
|
|
938
|
-
[key: string]: unknown;
|
|
939
|
-
};
|
|
940
|
-
message: "A usable improvement could not be prepared. The Agent has not changed. Try again later.";
|
|
941
|
-
retryable: true;
|
|
942
|
-
} | {
|
|
943
|
-
code: "EVAL_CASES_UNAVAILABLE";
|
|
944
|
-
data: {
|
|
945
|
-
[key: string]: unknown;
|
|
946
|
-
};
|
|
947
|
-
message: "The Agent has no kept evaluation case to replay, or a named case is not one of its kept cases.";
|
|
948
|
-
retryable: false;
|
|
949
|
-
} | {
|
|
950
|
-
code: "EVAL_GATE_UNMET";
|
|
951
|
-
data: {
|
|
952
|
-
[key: string]: unknown;
|
|
953
|
-
};
|
|
954
|
-
message: "This Agent requires a completed evaluation run of exactly this content, in which every case passed, before what its model reads changes. Create one with createEvalRun and send its id as evalRunId.";
|
|
955
|
-
retryable: false;
|
|
956
|
-
} | {
|
|
957
|
-
code: "INTEGRATIONS_UNAVAILABLE";
|
|
958
|
-
data: {
|
|
959
|
-
[key: string]: unknown;
|
|
960
|
-
};
|
|
961
|
-
message: "The organization's integrations cannot be read right now. Try again shortly.";
|
|
962
|
-
retryable: true;
|
|
963
|
-
} | {
|
|
964
|
-
code: "INTEGRATION_PROCEDURE_UNAVAILABLE";
|
|
965
|
-
data: {
|
|
966
|
-
[key: string]: unknown;
|
|
967
|
-
};
|
|
968
|
-
message: "A procedure does not exist in this organization's connections, Raíz cannot run its connection, or the Agent is not a text Agent.";
|
|
969
|
-
retryable: false;
|
|
970
|
-
} | {
|
|
971
|
-
code: "INTEGRATION_TOOL_UNAVAILABLE";
|
|
972
|
-
data: {
|
|
973
|
-
[key: string]: unknown;
|
|
974
|
-
};
|
|
975
|
-
message: "An integration tool does not exist in this organization's connections, or Raíz cannot run it.";
|
|
976
|
-
retryable: false;
|
|
977
|
-
} | {
|
|
978
|
-
code: "KNOWLEDGE_DOCUMENT_UNAVAILABLE";
|
|
979
|
-
data: {
|
|
980
|
-
[key: string]: unknown;
|
|
981
|
-
};
|
|
982
|
-
message: "A Knowledge document does not exist in this organization.";
|
|
983
|
-
retryable: false;
|
|
984
|
-
} | {
|
|
985
|
-
code: "KNOWLEDGE_FILE_INVALID";
|
|
986
|
-
data: {
|
|
987
|
-
[key: string]: unknown;
|
|
988
|
-
};
|
|
989
|
-
message: "The file is not valid base64, exceeds the size limit or does not match its declared type.";
|
|
990
|
-
retryable: false;
|
|
991
|
-
} | {
|
|
992
|
-
code: "KNOWLEDGE_KIND_MISMATCH";
|
|
993
|
-
data: {
|
|
994
|
-
[key: string]: unknown;
|
|
995
|
-
};
|
|
996
|
-
message: "The change does not apply to this kind of Knowledge document.";
|
|
997
|
-
retryable: false;
|
|
998
|
-
} | {
|
|
999
|
-
code: "WEBSITE_NOT_APPROVED";
|
|
1000
|
-
data: {
|
|
1001
|
-
[key: string]: unknown;
|
|
1002
|
-
};
|
|
1003
|
-
message: "This website's origin is not approved for crawling in this deployment.";
|
|
1004
|
-
retryable: false;
|
|
1005
|
-
} | {
|
|
1006
|
-
code: "WIDGET_CONFLICT";
|
|
1007
|
-
data: {
|
|
1008
|
-
[key: string]: unknown;
|
|
1009
|
-
};
|
|
1010
|
-
message: "The request cannot be repeated or another turn is active.";
|
|
1011
|
-
retryable: false;
|
|
1012
|
-
} | {
|
|
1013
|
-
code: "WIDGET_INTERNAL";
|
|
1014
|
-
data: {
|
|
1015
|
-
[key: string]: unknown;
|
|
1016
|
-
};
|
|
1017
|
-
message: "The request outcome could not be confirmed. Do not repeat it with a new identifier.";
|
|
1018
|
-
retryable: false;
|
|
1019
|
-
} | {
|
|
1020
|
-
code: "WIDGET_LIMIT_REACHED";
|
|
1021
|
-
data: {
|
|
1022
|
-
[key: string]: unknown;
|
|
1023
|
-
};
|
|
1024
|
-
message: "This widget reached its conversations or messages for today. It takes visitors again after 00:00 UTC.";
|
|
1025
|
-
retryable: true;
|
|
1026
|
-
} | {
|
|
1027
|
-
code: "WIDGET_REFUSED";
|
|
1028
|
-
data: {
|
|
1029
|
-
[key: string]: unknown;
|
|
1030
|
-
};
|
|
1031
|
-
message: "This widget session is unavailable.";
|
|
1032
|
-
retryable: false;
|
|
1033
|
-
} | {
|
|
1034
|
-
code: "WIDGET_VOICE_UNHEARD";
|
|
1035
|
-
data: {
|
|
1036
|
-
[key: string]: unknown;
|
|
1037
|
-
};
|
|
1038
|
-
message: "The voice message could not be understood. Record it again or write the message.";
|
|
1039
|
-
retryable: false;
|
|
1040
|
-
} | {
|
|
1041
|
-
code: "ADDRESS_IN_USE";
|
|
1042
|
-
data: {
|
|
1043
|
-
[key: string]: unknown;
|
|
1044
|
-
};
|
|
1045
|
-
message: "Another contact in this organization already uses this address.";
|
|
1046
|
-
retryable: false;
|
|
1047
|
-
} | {
|
|
1048
|
-
code: "IDENTIFIER_IN_USE";
|
|
1049
|
-
data: {
|
|
1050
|
-
[key: string]: unknown;
|
|
1051
|
-
};
|
|
1052
|
-
message: "Another contact in this organization already has this identity document.";
|
|
1053
|
-
retryable: false;
|
|
1054
|
-
} | {
|
|
1055
|
-
code: "INVALID_CURSOR";
|
|
1056
|
-
data: {
|
|
1057
|
-
[key: string]: unknown;
|
|
1058
|
-
};
|
|
1059
|
-
message: "The cursor is malformed or belongs to a different list.";
|
|
1060
|
-
retryable: false;
|
|
1061
|
-
} | {
|
|
1062
|
-
code: "INVALID_STATE";
|
|
1063
|
-
data: {
|
|
1064
|
-
[key: string]: unknown;
|
|
1065
|
-
};
|
|
1066
|
-
message: "The resource is not in a state that allows this operation.";
|
|
1067
|
-
retryable: false;
|
|
1068
|
-
} | {
|
|
1069
|
-
code: "KEY_IN_USE";
|
|
1070
|
-
data: {
|
|
1071
|
-
[key: string]: unknown;
|
|
1072
|
-
};
|
|
1073
|
-
message: "Another active resource in this organization already uses this key.";
|
|
1074
|
-
retryable: false;
|
|
1075
|
-
} | {
|
|
1076
|
-
code: "PROVIDER_REJECTED";
|
|
1077
|
-
data: {
|
|
1078
|
-
[key: string]: unknown;
|
|
1079
|
-
};
|
|
1080
|
-
message: "The provider refused the request. Check the configuration and try again.";
|
|
1081
|
-
retryable: false;
|
|
1082
|
-
} | {
|
|
1083
|
-
code: "RESOURCE_NOT_FOUND";
|
|
1084
|
-
data: {
|
|
1085
|
-
[key: string]: unknown;
|
|
1086
|
-
};
|
|
1087
|
-
message: "The requested resource does not exist in this organization.";
|
|
1088
|
-
retryable: false;
|
|
1089
|
-
} | {
|
|
1090
|
-
code: "CONTACT_SUPPRESSED";
|
|
1091
|
-
data: {
|
|
1092
|
-
[key: string]: unknown;
|
|
1093
|
-
};
|
|
1094
|
-
message: "A suppression rule of this organization forbids contacting this address.";
|
|
1095
|
-
retryable: false;
|
|
1096
|
-
} | {
|
|
1097
|
-
code: "VERSION_CONFLICT";
|
|
1098
|
-
data: {
|
|
1099
|
-
[key: string]: unknown;
|
|
1100
|
-
};
|
|
1101
|
-
message: "The resource changed after it was read. Read it again and retry with the new version.";
|
|
1102
|
-
retryable: false;
|
|
1103
|
-
});
|
|
1104
|
-
metadata: RaizResponseMetadata;
|
|
1105
|
-
success: false;
|
|
887
|
+
/**
|
|
888
|
+
* The fact's subject (a contact or a conversation) does not match what its
|
|
889
|
+
* definition describes.
|
|
890
|
+
*/
|
|
891
|
+
export interface RaizFactSubjectMismatchFailure {
|
|
892
|
+
/**
|
|
893
|
+
* The failure code, stable across releases.
|
|
894
|
+
*/
|
|
895
|
+
code: "FACT_SUBJECT_MISMATCH";
|
|
896
|
+
/**
|
|
897
|
+
* No fields.
|
|
898
|
+
*/
|
|
899
|
+
data: Empty;
|
|
900
|
+
/**
|
|
901
|
+
* What went wrong, for people; it never contains input values.
|
|
902
|
+
*/
|
|
903
|
+
message: string;
|
|
904
|
+
/**
|
|
905
|
+
* Whether repeating the same request may succeed.
|
|
906
|
+
*/
|
|
907
|
+
retryable: false;
|
|
908
|
+
}
|
|
909
|
+
/**
|
|
910
|
+
* The value does not match the definition's value type, or names no active
|
|
911
|
+
* option.
|
|
912
|
+
*/
|
|
913
|
+
export interface RaizFactValueInvalidFailure {
|
|
914
|
+
/**
|
|
915
|
+
* The failure code, stable across releases.
|
|
916
|
+
*/
|
|
917
|
+
code: "FACT_VALUE_INVALID";
|
|
918
|
+
/**
|
|
919
|
+
* No fields.
|
|
920
|
+
*/
|
|
921
|
+
data: Empty;
|
|
922
|
+
/**
|
|
923
|
+
* What went wrong, for people; it never contains input values.
|
|
924
|
+
*/
|
|
925
|
+
message: string;
|
|
926
|
+
/**
|
|
927
|
+
* Whether repeating the same request may succeed.
|
|
928
|
+
*/
|
|
929
|
+
retryable: false;
|
|
930
|
+
}
|
|
931
|
+
/**
|
|
932
|
+
* A usable improvement could not be prepared. The Agent has not changed. Try
|
|
933
|
+
* again later.
|
|
934
|
+
*/
|
|
935
|
+
export interface RaizFeedbackProposalUnavailableFailure {
|
|
936
|
+
/**
|
|
937
|
+
* The failure code, stable across releases.
|
|
938
|
+
*/
|
|
939
|
+
code: "FEEDBACK_PROPOSAL_UNAVAILABLE";
|
|
940
|
+
/**
|
|
941
|
+
* No fields.
|
|
942
|
+
*/
|
|
943
|
+
data: Empty;
|
|
944
|
+
/**
|
|
945
|
+
* What went wrong, for people; it never contains input values.
|
|
946
|
+
*/
|
|
947
|
+
message: string;
|
|
948
|
+
/**
|
|
949
|
+
* Whether repeating the same request may succeed.
|
|
950
|
+
*/
|
|
951
|
+
retryable: true;
|
|
952
|
+
}
|
|
953
|
+
/**
|
|
954
|
+
* This handoff was already given back to the AI to continue. It continues once
|
|
955
|
+
* per handoff; a new escalation can be given back again.
|
|
956
|
+
*/
|
|
957
|
+
export interface RaizHandoffAlreadyContinuedFailure {
|
|
958
|
+
/**
|
|
959
|
+
* The failure code, stable across releases.
|
|
960
|
+
*/
|
|
961
|
+
code: "HANDOFF_ALREADY_CONTINUED";
|
|
962
|
+
/**
|
|
963
|
+
* No fields.
|
|
964
|
+
*/
|
|
965
|
+
data: Empty;
|
|
966
|
+
/**
|
|
967
|
+
* What went wrong, for people; it never contains input values.
|
|
968
|
+
*/
|
|
969
|
+
message: string;
|
|
970
|
+
/**
|
|
971
|
+
* Whether repeating the same request may succeed.
|
|
972
|
+
*/
|
|
973
|
+
retryable: false;
|
|
974
|
+
}
|
|
975
|
+
/**
|
|
976
|
+
* Another contact in this organization already has this identity document.
|
|
977
|
+
*/
|
|
978
|
+
export interface RaizIdentifierInUseFailure {
|
|
979
|
+
/**
|
|
980
|
+
* The failure code, stable across releases.
|
|
981
|
+
*/
|
|
982
|
+
code: "IDENTIFIER_IN_USE";
|
|
983
|
+
/**
|
|
984
|
+
* No fields.
|
|
985
|
+
*/
|
|
986
|
+
data: Empty;
|
|
987
|
+
/**
|
|
988
|
+
* What went wrong, for people; it never contains input values.
|
|
989
|
+
*/
|
|
990
|
+
message: string;
|
|
991
|
+
/**
|
|
992
|
+
* Whether repeating the same request may succeed.
|
|
993
|
+
*/
|
|
994
|
+
retryable: false;
|
|
995
|
+
}
|
|
996
|
+
/**
|
|
997
|
+
* The import file is not valid base64 of UTF-8 text. Save the spreadsheet as
|
|
998
|
+
* CSV UTF-8 and try again.
|
|
999
|
+
*/
|
|
1000
|
+
export interface RaizImportFileInvalidFailure {
|
|
1001
|
+
/**
|
|
1002
|
+
* The failure code, stable across releases.
|
|
1003
|
+
*/
|
|
1004
|
+
code: "IMPORT_FILE_INVALID";
|
|
1005
|
+
/**
|
|
1006
|
+
* No fields.
|
|
1007
|
+
*/
|
|
1008
|
+
data: Empty;
|
|
1009
|
+
/**
|
|
1010
|
+
* What went wrong, for people; it never contains input values.
|
|
1011
|
+
*/
|
|
1012
|
+
message: string;
|
|
1013
|
+
/**
|
|
1014
|
+
* Whether repeating the same request may succeed.
|
|
1015
|
+
*/
|
|
1016
|
+
retryable: false;
|
|
1017
|
+
}
|
|
1018
|
+
/**
|
|
1019
|
+
* The import file is larger than 12 MB. Split it into several files.
|
|
1020
|
+
*/
|
|
1021
|
+
export interface RaizImportFileTooLargeFailure {
|
|
1022
|
+
/**
|
|
1023
|
+
* The failure code, stable across releases.
|
|
1024
|
+
*/
|
|
1025
|
+
code: "IMPORT_FILE_TOO_LARGE";
|
|
1026
|
+
/**
|
|
1027
|
+
* No fields.
|
|
1028
|
+
*/
|
|
1029
|
+
data: Empty;
|
|
1030
|
+
/**
|
|
1031
|
+
* What went wrong, for people; it never contains input values.
|
|
1032
|
+
*/
|
|
1033
|
+
message: string;
|
|
1034
|
+
/**
|
|
1035
|
+
* Whether repeating the same request may succeed.
|
|
1036
|
+
*/
|
|
1037
|
+
retryable: false;
|
|
1038
|
+
}
|
|
1039
|
+
/**
|
|
1040
|
+
* A procedure does not exist in this organization's connections, Raíz cannot
|
|
1041
|
+
* run its connection, or the Agent is not a text Agent.
|
|
1042
|
+
*/
|
|
1043
|
+
export interface RaizIntegrationProcedureUnavailableFailure {
|
|
1044
|
+
/**
|
|
1045
|
+
* The failure code, stable across releases.
|
|
1046
|
+
*/
|
|
1047
|
+
code: "INTEGRATION_PROCEDURE_UNAVAILABLE";
|
|
1048
|
+
/**
|
|
1049
|
+
* No fields.
|
|
1050
|
+
*/
|
|
1051
|
+
data: Empty;
|
|
1052
|
+
/**
|
|
1053
|
+
* What went wrong, for people; it never contains input values.
|
|
1054
|
+
*/
|
|
1055
|
+
message: string;
|
|
1056
|
+
/**
|
|
1057
|
+
* Whether repeating the same request may succeed.
|
|
1058
|
+
*/
|
|
1059
|
+
retryable: false;
|
|
1060
|
+
}
|
|
1061
|
+
/**
|
|
1062
|
+
* An integration tool does not exist in this organization's connections, or
|
|
1063
|
+
* Raíz cannot run it.
|
|
1064
|
+
*/
|
|
1065
|
+
export interface RaizIntegrationToolUnavailableFailure {
|
|
1066
|
+
/**
|
|
1067
|
+
* The failure code, stable across releases.
|
|
1068
|
+
*/
|
|
1069
|
+
code: "INTEGRATION_TOOL_UNAVAILABLE";
|
|
1070
|
+
/**
|
|
1071
|
+
* No fields.
|
|
1072
|
+
*/
|
|
1073
|
+
data: Empty;
|
|
1074
|
+
/**
|
|
1075
|
+
* What went wrong, for people; it never contains input values.
|
|
1076
|
+
*/
|
|
1077
|
+
message: string;
|
|
1078
|
+
/**
|
|
1079
|
+
* Whether repeating the same request may succeed.
|
|
1080
|
+
*/
|
|
1081
|
+
retryable: false;
|
|
1082
|
+
}
|
|
1083
|
+
/**
|
|
1084
|
+
* The organization's integrations cannot be read right now. Try again shortly.
|
|
1085
|
+
*/
|
|
1086
|
+
export interface RaizIntegrationsUnavailableFailure {
|
|
1087
|
+
/**
|
|
1088
|
+
* The failure code, stable across releases.
|
|
1089
|
+
*/
|
|
1090
|
+
code: "INTEGRATIONS_UNAVAILABLE";
|
|
1091
|
+
/**
|
|
1092
|
+
* No fields.
|
|
1093
|
+
*/
|
|
1094
|
+
data: Empty;
|
|
1095
|
+
/**
|
|
1096
|
+
* What went wrong, for people; it never contains input values.
|
|
1097
|
+
*/
|
|
1098
|
+
message: string;
|
|
1099
|
+
/**
|
|
1100
|
+
* Whether repeating the same request may succeed.
|
|
1101
|
+
*/
|
|
1102
|
+
retryable: true;
|
|
1103
|
+
}
|
|
1104
|
+
/**
|
|
1105
|
+
* The cursor is malformed or belongs to a different list.
|
|
1106
|
+
*/
|
|
1107
|
+
export interface RaizInvalidCursorFailure {
|
|
1108
|
+
/**
|
|
1109
|
+
* The failure code, stable across releases.
|
|
1110
|
+
*/
|
|
1111
|
+
code: "INVALID_CURSOR";
|
|
1112
|
+
/**
|
|
1113
|
+
* No fields.
|
|
1114
|
+
*/
|
|
1115
|
+
data: Empty;
|
|
1116
|
+
/**
|
|
1117
|
+
* What went wrong, for people; it never contains input values.
|
|
1118
|
+
*/
|
|
1119
|
+
message: string;
|
|
1120
|
+
/**
|
|
1121
|
+
* Whether repeating the same request may succeed.
|
|
1122
|
+
*/
|
|
1123
|
+
retryable: false;
|
|
1124
|
+
}
|
|
1125
|
+
/**
|
|
1126
|
+
* The resource is not in a state that allows this operation.
|
|
1127
|
+
*/
|
|
1128
|
+
export interface RaizInvalidStateFailure {
|
|
1129
|
+
/**
|
|
1130
|
+
* The failure code, stable across releases.
|
|
1131
|
+
*/
|
|
1132
|
+
code: "INVALID_STATE";
|
|
1133
|
+
/**
|
|
1134
|
+
* No fields.
|
|
1135
|
+
*/
|
|
1136
|
+
data: Empty;
|
|
1137
|
+
/**
|
|
1138
|
+
* What went wrong, for people; it never contains input values.
|
|
1139
|
+
*/
|
|
1140
|
+
message: string;
|
|
1141
|
+
/**
|
|
1142
|
+
* Whether repeating the same request may succeed.
|
|
1143
|
+
*/
|
|
1144
|
+
retryable: false;
|
|
1145
|
+
}
|
|
1146
|
+
/**
|
|
1147
|
+
* The IP network is not a valid IPv4 or IPv6 address or CIDR block.
|
|
1148
|
+
*/
|
|
1149
|
+
export interface RaizIpNetworkInvalidFailure {
|
|
1150
|
+
/**
|
|
1151
|
+
* The failure code, stable across releases.
|
|
1152
|
+
*/
|
|
1153
|
+
code: "IP_NETWORK_INVALID";
|
|
1154
|
+
/**
|
|
1155
|
+
* No fields.
|
|
1156
|
+
*/
|
|
1157
|
+
data: Empty;
|
|
1158
|
+
/**
|
|
1159
|
+
* What went wrong, for people; it never contains input values.
|
|
1160
|
+
*/
|
|
1161
|
+
message: string;
|
|
1162
|
+
/**
|
|
1163
|
+
* Whether repeating the same request may succeed.
|
|
1164
|
+
*/
|
|
1165
|
+
retryable: false;
|
|
1166
|
+
}
|
|
1167
|
+
/**
|
|
1168
|
+
* Another active resource in this organization already uses this key.
|
|
1169
|
+
*/
|
|
1170
|
+
export interface RaizKeyInUseFailure {
|
|
1171
|
+
/**
|
|
1172
|
+
* The failure code, stable across releases.
|
|
1173
|
+
*/
|
|
1174
|
+
code: "KEY_IN_USE";
|
|
1175
|
+
/**
|
|
1176
|
+
* No fields.
|
|
1177
|
+
*/
|
|
1178
|
+
data: Empty;
|
|
1179
|
+
/**
|
|
1180
|
+
* What went wrong, for people; it never contains input values.
|
|
1181
|
+
*/
|
|
1182
|
+
message: string;
|
|
1183
|
+
/**
|
|
1184
|
+
* Whether repeating the same request may succeed.
|
|
1185
|
+
*/
|
|
1186
|
+
retryable: false;
|
|
1187
|
+
}
|
|
1188
|
+
/**
|
|
1189
|
+
* A Knowledge document does not exist in this organization.
|
|
1190
|
+
*/
|
|
1191
|
+
export interface RaizKnowledgeDocumentUnavailableFailure {
|
|
1192
|
+
/**
|
|
1193
|
+
* The failure code, stable across releases.
|
|
1194
|
+
*/
|
|
1195
|
+
code: "KNOWLEDGE_DOCUMENT_UNAVAILABLE";
|
|
1196
|
+
/**
|
|
1197
|
+
* No fields.
|
|
1198
|
+
*/
|
|
1199
|
+
data: Empty;
|
|
1200
|
+
/**
|
|
1201
|
+
* What went wrong, for people; it never contains input values.
|
|
1202
|
+
*/
|
|
1203
|
+
message: string;
|
|
1204
|
+
/**
|
|
1205
|
+
* Whether repeating the same request may succeed.
|
|
1206
|
+
*/
|
|
1207
|
+
retryable: false;
|
|
1208
|
+
}
|
|
1209
|
+
/**
|
|
1210
|
+
* The file is not valid base64, exceeds the size limit or does not match its
|
|
1211
|
+
* declared type.
|
|
1212
|
+
*/
|
|
1213
|
+
export interface RaizKnowledgeFileInvalidFailure {
|
|
1214
|
+
/**
|
|
1215
|
+
* The failure code, stable across releases.
|
|
1216
|
+
*/
|
|
1217
|
+
code: "KNOWLEDGE_FILE_INVALID";
|
|
1218
|
+
/**
|
|
1219
|
+
* No fields.
|
|
1220
|
+
*/
|
|
1221
|
+
data: Empty;
|
|
1222
|
+
/**
|
|
1223
|
+
* What went wrong, for people; it never contains input values.
|
|
1224
|
+
*/
|
|
1225
|
+
message: string;
|
|
1226
|
+
/**
|
|
1227
|
+
* Whether repeating the same request may succeed.
|
|
1228
|
+
*/
|
|
1229
|
+
retryable: false;
|
|
1230
|
+
}
|
|
1231
|
+
/**
|
|
1232
|
+
* The change does not apply to this kind of Knowledge document.
|
|
1233
|
+
*/
|
|
1234
|
+
export interface RaizKnowledgeKindMismatchFailure {
|
|
1235
|
+
/**
|
|
1236
|
+
* The failure code, stable across releases.
|
|
1237
|
+
*/
|
|
1238
|
+
code: "KNOWLEDGE_KIND_MISMATCH";
|
|
1239
|
+
/**
|
|
1240
|
+
* No fields.
|
|
1241
|
+
*/
|
|
1242
|
+
data: Empty;
|
|
1243
|
+
/**
|
|
1244
|
+
* What went wrong, for people; it never contains input values.
|
|
1245
|
+
*/
|
|
1246
|
+
message: string;
|
|
1247
|
+
/**
|
|
1248
|
+
* Whether repeating the same request may succeed.
|
|
1249
|
+
*/
|
|
1250
|
+
retryable: false;
|
|
1106
1251
|
}
|
|
1107
1252
|
export interface RaizOutsideHoursTemplate {
|
|
1108
1253
|
/**
|
|
@@ -1115,11 +1260,183 @@ export interface RaizOutsideHoursTemplate {
|
|
|
1115
1260
|
name: string;
|
|
1116
1261
|
}
|
|
1117
1262
|
export type RaizPhoneNumber = string;
|
|
1118
|
-
|
|
1263
|
+
/**
|
|
1264
|
+
* A failed answer.
|
|
1265
|
+
*/
|
|
1266
|
+
export interface RaizProviderRejectedError {
|
|
1267
|
+
data: null;
|
|
1268
|
+
/**
|
|
1269
|
+
* The provider refused the request. Check the configuration and try again.
|
|
1270
|
+
*/
|
|
1271
|
+
error: RaizProviderRejectedFailure;
|
|
1272
|
+
/**
|
|
1273
|
+
* What every answer carries besides its data or error.
|
|
1274
|
+
*/
|
|
1275
|
+
metadata: ResponseMetadata;
|
|
1276
|
+
success: false;
|
|
1277
|
+
}
|
|
1278
|
+
/**
|
|
1279
|
+
* The provider refused the request. Check the configuration and try again.
|
|
1280
|
+
*/
|
|
1281
|
+
export interface RaizProviderRejectedFailure {
|
|
1282
|
+
/**
|
|
1283
|
+
* The failure code, stable across releases.
|
|
1284
|
+
*/
|
|
1285
|
+
code: "PROVIDER_REJECTED";
|
|
1286
|
+
/**
|
|
1287
|
+
* No fields.
|
|
1288
|
+
*/
|
|
1289
|
+
data: Empty;
|
|
1290
|
+
/**
|
|
1291
|
+
* What went wrong, for people; it never contains input values.
|
|
1292
|
+
*/
|
|
1293
|
+
message: string;
|
|
1294
|
+
/**
|
|
1295
|
+
* Whether repeating the same request may succeed.
|
|
1296
|
+
*/
|
|
1297
|
+
retryable: false;
|
|
1298
|
+
}
|
|
1299
|
+
/**
|
|
1300
|
+
* The Agent is still replying in this conversation. Try again once the reply is
|
|
1301
|
+
* delivered.
|
|
1302
|
+
*/
|
|
1303
|
+
export interface RaizReplyInProgressFailure {
|
|
1304
|
+
/**
|
|
1305
|
+
* The failure code, stable across releases.
|
|
1306
|
+
*/
|
|
1307
|
+
code: "REPLY_IN_PROGRESS";
|
|
1119
1308
|
/**
|
|
1120
|
-
*
|
|
1309
|
+
* No fields.
|
|
1121
1310
|
*/
|
|
1122
|
-
|
|
1311
|
+
data: Empty;
|
|
1312
|
+
/**
|
|
1313
|
+
* What went wrong, for people; it never contains input values.
|
|
1314
|
+
*/
|
|
1315
|
+
message: string;
|
|
1316
|
+
/**
|
|
1317
|
+
* Whether repeating the same request may succeed.
|
|
1318
|
+
*/
|
|
1319
|
+
retryable: true;
|
|
1320
|
+
}
|
|
1321
|
+
/**
|
|
1322
|
+
* A filter does not apply to the selected report.
|
|
1323
|
+
*/
|
|
1324
|
+
export interface RaizReportFilterUnsupportedFailure {
|
|
1325
|
+
/**
|
|
1326
|
+
* The failure code, stable across releases.
|
|
1327
|
+
*/
|
|
1328
|
+
code: "REPORT_FILTER_UNSUPPORTED";
|
|
1329
|
+
/**
|
|
1330
|
+
* No fields.
|
|
1331
|
+
*/
|
|
1332
|
+
data: Empty;
|
|
1333
|
+
/**
|
|
1334
|
+
* What went wrong, for people; it never contains input values.
|
|
1335
|
+
*/
|
|
1336
|
+
message: string;
|
|
1337
|
+
/**
|
|
1338
|
+
* Whether repeating the same request may succeed.
|
|
1339
|
+
*/
|
|
1340
|
+
retryable: false;
|
|
1341
|
+
}
|
|
1342
|
+
/**
|
|
1343
|
+
* The report range is invalid: `from` must not be after `to`.
|
|
1344
|
+
*/
|
|
1345
|
+
export interface RaizReportRangeInvalidFailure {
|
|
1346
|
+
/**
|
|
1347
|
+
* The failure code, stable across releases.
|
|
1348
|
+
*/
|
|
1349
|
+
code: "REPORT_RANGE_INVALID";
|
|
1350
|
+
/**
|
|
1351
|
+
* No fields.
|
|
1352
|
+
*/
|
|
1353
|
+
data: Empty;
|
|
1354
|
+
/**
|
|
1355
|
+
* What went wrong, for people; it never contains input values.
|
|
1356
|
+
*/
|
|
1357
|
+
message: string;
|
|
1358
|
+
/**
|
|
1359
|
+
* Whether repeating the same request may succeed.
|
|
1360
|
+
*/
|
|
1361
|
+
retryable: false;
|
|
1362
|
+
}
|
|
1363
|
+
/**
|
|
1364
|
+
* A failed answer.
|
|
1365
|
+
*/
|
|
1366
|
+
export interface RaizResourceNotFoundError {
|
|
1367
|
+
data: null;
|
|
1368
|
+
/**
|
|
1369
|
+
* The requested resource does not exist in this organization.
|
|
1370
|
+
*/
|
|
1371
|
+
error: RaizResourceNotFoundFailure;
|
|
1372
|
+
/**
|
|
1373
|
+
* What every answer carries besides its data or error.
|
|
1374
|
+
*/
|
|
1375
|
+
metadata: ResponseMetadata;
|
|
1376
|
+
success: false;
|
|
1377
|
+
}
|
|
1378
|
+
/**
|
|
1379
|
+
* The requested resource does not exist in this organization.
|
|
1380
|
+
*/
|
|
1381
|
+
export interface RaizResourceNotFoundFailure {
|
|
1382
|
+
/**
|
|
1383
|
+
* The failure code, stable across releases.
|
|
1384
|
+
*/
|
|
1385
|
+
code: "RESOURCE_NOT_FOUND";
|
|
1386
|
+
/**
|
|
1387
|
+
* No fields.
|
|
1388
|
+
*/
|
|
1389
|
+
data: Empty;
|
|
1390
|
+
/**
|
|
1391
|
+
* What went wrong, for people; it never contains input values.
|
|
1392
|
+
*/
|
|
1393
|
+
message: string;
|
|
1394
|
+
/**
|
|
1395
|
+
* Whether repeating the same request may succeed.
|
|
1396
|
+
*/
|
|
1397
|
+
retryable: false;
|
|
1398
|
+
}
|
|
1399
|
+
/**
|
|
1400
|
+
* A fact can cite only a closed conversation as its source.
|
|
1401
|
+
*/
|
|
1402
|
+
export interface RaizSourceConversationOpenFailure {
|
|
1403
|
+
/**
|
|
1404
|
+
* The failure code, stable across releases.
|
|
1405
|
+
*/
|
|
1406
|
+
code: "SOURCE_CONVERSATION_OPEN";
|
|
1407
|
+
/**
|
|
1408
|
+
* No fields.
|
|
1409
|
+
*/
|
|
1410
|
+
data: Empty;
|
|
1411
|
+
/**
|
|
1412
|
+
* What went wrong, for people; it never contains input values.
|
|
1413
|
+
*/
|
|
1414
|
+
message: string;
|
|
1415
|
+
/**
|
|
1416
|
+
* Whether repeating the same request may succeed.
|
|
1417
|
+
*/
|
|
1418
|
+
retryable: false;
|
|
1419
|
+
}
|
|
1420
|
+
/**
|
|
1421
|
+
* This organization already has this suppression rule.
|
|
1422
|
+
*/
|
|
1423
|
+
export interface RaizSuppressionExistsFailure {
|
|
1424
|
+
/**
|
|
1425
|
+
* The failure code, stable across releases.
|
|
1426
|
+
*/
|
|
1427
|
+
code: "SUPPRESSION_EXISTS";
|
|
1428
|
+
/**
|
|
1429
|
+
* No fields.
|
|
1430
|
+
*/
|
|
1431
|
+
data: Empty;
|
|
1432
|
+
/**
|
|
1433
|
+
* What went wrong, for people; it never contains input values.
|
|
1434
|
+
*/
|
|
1435
|
+
message: string;
|
|
1436
|
+
/**
|
|
1437
|
+
* Whether repeating the same request may succeed.
|
|
1438
|
+
*/
|
|
1439
|
+
retryable: false;
|
|
1123
1440
|
}
|
|
1124
1441
|
export interface RaizTask {
|
|
1125
1442
|
/**
|
|
@@ -1164,6 +1481,338 @@ export interface RaizTask {
|
|
|
1164
1481
|
status: "queued" | "running" | "completed" | "failed" | "cancelled";
|
|
1165
1482
|
subjectId: string | null;
|
|
1166
1483
|
}
|
|
1484
|
+
/**
|
|
1485
|
+
* This task cannot be retried: its kind never retries, or it already used every
|
|
1486
|
+
* attempt. Start it again from its resource.
|
|
1487
|
+
*/
|
|
1488
|
+
export interface RaizTaskNotRetryableFailure {
|
|
1489
|
+
/**
|
|
1490
|
+
* The failure code, stable across releases.
|
|
1491
|
+
*/
|
|
1492
|
+
code: "TASK_NOT_RETRYABLE";
|
|
1493
|
+
/**
|
|
1494
|
+
* No fields.
|
|
1495
|
+
*/
|
|
1496
|
+
data: Empty;
|
|
1497
|
+
/**
|
|
1498
|
+
* What went wrong, for people; it never contains input values.
|
|
1499
|
+
*/
|
|
1500
|
+
message: string;
|
|
1501
|
+
/**
|
|
1502
|
+
* Whether repeating the same request may succeed.
|
|
1503
|
+
*/
|
|
1504
|
+
retryable: false;
|
|
1505
|
+
}
|
|
1506
|
+
/**
|
|
1507
|
+
* A successful answer.
|
|
1508
|
+
*/
|
|
1509
|
+
export interface RaizTaskResponse {
|
|
1510
|
+
data: RaizTask;
|
|
1511
|
+
error: null;
|
|
1512
|
+
/**
|
|
1513
|
+
* What every answer carries besides its data or error.
|
|
1514
|
+
*/
|
|
1515
|
+
metadata: ResponseMetadata;
|
|
1516
|
+
success: true;
|
|
1517
|
+
}
|
|
1518
|
+
/**
|
|
1519
|
+
* The header file does not fit the template: a document header takes a PDF, an
|
|
1520
|
+
* image header a JPEG or PNG, a video header an MP4, and a template without a
|
|
1521
|
+
* media header takes no file.
|
|
1522
|
+
*/
|
|
1523
|
+
export interface RaizTemplateHeaderMismatchFailure {
|
|
1524
|
+
/**
|
|
1525
|
+
* The failure code, stable across releases.
|
|
1526
|
+
*/
|
|
1527
|
+
code: "TEMPLATE_HEADER_MISMATCH";
|
|
1528
|
+
/**
|
|
1529
|
+
* No fields.
|
|
1530
|
+
*/
|
|
1531
|
+
data: Empty;
|
|
1532
|
+
/**
|
|
1533
|
+
* What went wrong, for people; it never contains input values.
|
|
1534
|
+
*/
|
|
1535
|
+
message: string;
|
|
1536
|
+
/**
|
|
1537
|
+
* Whether repeating the same request may succeed.
|
|
1538
|
+
*/
|
|
1539
|
+
retryable: false;
|
|
1540
|
+
}
|
|
1541
|
+
/**
|
|
1542
|
+
* The template's header is a document, image or video: send its file with the
|
|
1543
|
+
* template.
|
|
1544
|
+
*/
|
|
1545
|
+
export interface RaizTemplateHeaderRequiredFailure {
|
|
1546
|
+
/**
|
|
1547
|
+
* The failure code, stable across releases.
|
|
1548
|
+
*/
|
|
1549
|
+
code: "TEMPLATE_HEADER_REQUIRED";
|
|
1550
|
+
/**
|
|
1551
|
+
* No fields.
|
|
1552
|
+
*/
|
|
1553
|
+
data: Empty;
|
|
1554
|
+
/**
|
|
1555
|
+
* What went wrong, for people; it never contains input values.
|
|
1556
|
+
*/
|
|
1557
|
+
message: string;
|
|
1558
|
+
/**
|
|
1559
|
+
* Whether repeating the same request may succeed.
|
|
1560
|
+
*/
|
|
1561
|
+
retryable: false;
|
|
1562
|
+
}
|
|
1563
|
+
/**
|
|
1564
|
+
* The template is not approved for sending: it is pending review, rejected,
|
|
1565
|
+
* paused or disabled.
|
|
1566
|
+
*/
|
|
1567
|
+
export interface RaizTemplateNotApprovedFailure {
|
|
1568
|
+
/**
|
|
1569
|
+
* The failure code, stable across releases.
|
|
1570
|
+
*/
|
|
1571
|
+
code: "TEMPLATE_NOT_APPROVED";
|
|
1572
|
+
/**
|
|
1573
|
+
* No fields.
|
|
1574
|
+
*/
|
|
1575
|
+
data: Empty;
|
|
1576
|
+
/**
|
|
1577
|
+
* What went wrong, for people; it never contains input values.
|
|
1578
|
+
*/
|
|
1579
|
+
message: string;
|
|
1580
|
+
/**
|
|
1581
|
+
* Whether repeating the same request may succeed.
|
|
1582
|
+
*/
|
|
1583
|
+
retryable: false;
|
|
1584
|
+
}
|
|
1585
|
+
/**
|
|
1586
|
+
* The template does not exist in this channel's WhatsApp Business Account.
|
|
1587
|
+
*/
|
|
1588
|
+
export interface RaizTemplateNotFoundFailure {
|
|
1589
|
+
/**
|
|
1590
|
+
* The failure code, stable across releases.
|
|
1591
|
+
*/
|
|
1592
|
+
code: "TEMPLATE_NOT_FOUND";
|
|
1593
|
+
/**
|
|
1594
|
+
* No fields.
|
|
1595
|
+
*/
|
|
1596
|
+
data: Empty;
|
|
1597
|
+
/**
|
|
1598
|
+
* What went wrong, for people; it never contains input values.
|
|
1599
|
+
*/
|
|
1600
|
+
message: string;
|
|
1601
|
+
/**
|
|
1602
|
+
* Whether repeating the same request may succeed.
|
|
1603
|
+
*/
|
|
1604
|
+
retryable: false;
|
|
1605
|
+
}
|
|
1606
|
+
/**
|
|
1607
|
+
* The number of parameters does not match the variables of the template's body.
|
|
1608
|
+
*/
|
|
1609
|
+
export interface RaizTemplateParametersMismatchFailure {
|
|
1610
|
+
/**
|
|
1611
|
+
* The failure code, stable across releases.
|
|
1612
|
+
*/
|
|
1613
|
+
code: "TEMPLATE_PARAMETERS_MISMATCH";
|
|
1614
|
+
/**
|
|
1615
|
+
* No fields.
|
|
1616
|
+
*/
|
|
1617
|
+
data: Empty;
|
|
1618
|
+
/**
|
|
1619
|
+
* What went wrong, for people; it never contains input values.
|
|
1620
|
+
*/
|
|
1621
|
+
message: string;
|
|
1622
|
+
/**
|
|
1623
|
+
* Whether repeating the same request may succeed.
|
|
1624
|
+
*/
|
|
1625
|
+
retryable: false;
|
|
1626
|
+
}
|
|
1627
|
+
/**
|
|
1628
|
+
* The template needs header text variables, a location header or button
|
|
1629
|
+
* parameters, which cannot be sent yet.
|
|
1630
|
+
*/
|
|
1631
|
+
export interface RaizTemplateUnsupportedFailure {
|
|
1632
|
+
/**
|
|
1633
|
+
* The failure code, stable across releases.
|
|
1634
|
+
*/
|
|
1635
|
+
code: "TEMPLATE_UNSUPPORTED";
|
|
1636
|
+
/**
|
|
1637
|
+
* No fields.
|
|
1638
|
+
*/
|
|
1639
|
+
data: Empty;
|
|
1640
|
+
/**
|
|
1641
|
+
* What went wrong, for people; it never contains input values.
|
|
1642
|
+
*/
|
|
1643
|
+
message: string;
|
|
1644
|
+
/**
|
|
1645
|
+
* Whether repeating the same request may succeed.
|
|
1646
|
+
*/
|
|
1647
|
+
retryable: false;
|
|
1648
|
+
}
|
|
1649
|
+
/**
|
|
1650
|
+
* The time zone is not in the IANA time zone database.
|
|
1651
|
+
*/
|
|
1652
|
+
export interface RaizTimeZoneUnknownFailure {
|
|
1653
|
+
/**
|
|
1654
|
+
* The failure code, stable across releases.
|
|
1655
|
+
*/
|
|
1656
|
+
code: "TIME_ZONE_UNKNOWN";
|
|
1657
|
+
/**
|
|
1658
|
+
* No fields.
|
|
1659
|
+
*/
|
|
1660
|
+
data: Empty;
|
|
1661
|
+
/**
|
|
1662
|
+
* What went wrong, for people; it never contains input values.
|
|
1663
|
+
*/
|
|
1664
|
+
message: string;
|
|
1665
|
+
/**
|
|
1666
|
+
* Whether repeating the same request may succeed.
|
|
1667
|
+
*/
|
|
1668
|
+
retryable: false;
|
|
1669
|
+
}
|
|
1670
|
+
/**
|
|
1671
|
+
* A failed answer.
|
|
1672
|
+
*/
|
|
1673
|
+
export interface RaizVersionConflictError {
|
|
1674
|
+
data: null;
|
|
1675
|
+
/**
|
|
1676
|
+
* The resource changed after it was read. Read it again and retry with the
|
|
1677
|
+
* new version.
|
|
1678
|
+
*/
|
|
1679
|
+
error: RaizVersionConflictFailure;
|
|
1680
|
+
/**
|
|
1681
|
+
* What every answer carries besides its data or error.
|
|
1682
|
+
*/
|
|
1683
|
+
metadata: ResponseMetadata;
|
|
1684
|
+
success: false;
|
|
1685
|
+
}
|
|
1686
|
+
/**
|
|
1687
|
+
* The resource changed after it was read. Read it again and retry with the new
|
|
1688
|
+
* version.
|
|
1689
|
+
*/
|
|
1690
|
+
export interface RaizVersionConflictFailure {
|
|
1691
|
+
/**
|
|
1692
|
+
* The failure code, stable across releases.
|
|
1693
|
+
*/
|
|
1694
|
+
code: "VERSION_CONFLICT";
|
|
1695
|
+
/**
|
|
1696
|
+
* No fields.
|
|
1697
|
+
*/
|
|
1698
|
+
data: Empty;
|
|
1699
|
+
/**
|
|
1700
|
+
* What went wrong, for people; it never contains input values.
|
|
1701
|
+
*/
|
|
1702
|
+
message: string;
|
|
1703
|
+
/**
|
|
1704
|
+
* Whether repeating the same request may succeed.
|
|
1705
|
+
*/
|
|
1706
|
+
retryable: false;
|
|
1707
|
+
}
|
|
1708
|
+
/**
|
|
1709
|
+
* The Agent cannot take calls yet: it must be an active voice Agent with
|
|
1710
|
+
* instructions, published for calls.
|
|
1711
|
+
*/
|
|
1712
|
+
export interface RaizVoiceAgentNotReadyFailure {
|
|
1713
|
+
/**
|
|
1714
|
+
* The failure code, stable across releases.
|
|
1715
|
+
*/
|
|
1716
|
+
code: "VOICE_AGENT_NOT_READY";
|
|
1717
|
+
/**
|
|
1718
|
+
* No fields.
|
|
1719
|
+
*/
|
|
1720
|
+
data: Empty;
|
|
1721
|
+
/**
|
|
1722
|
+
* What went wrong, for people; it never contains input values.
|
|
1723
|
+
*/
|
|
1724
|
+
message: string;
|
|
1725
|
+
/**
|
|
1726
|
+
* Whether repeating the same request may succeed.
|
|
1727
|
+
*/
|
|
1728
|
+
retryable: false;
|
|
1729
|
+
}
|
|
1730
|
+
/**
|
|
1731
|
+
* Calls are unavailable right now. Try again in a few minutes.
|
|
1732
|
+
*/
|
|
1733
|
+
export interface RaizVoiceUnavailableFailure {
|
|
1734
|
+
/**
|
|
1735
|
+
* The failure code, stable across releases.
|
|
1736
|
+
*/
|
|
1737
|
+
code: "VOICE_UNAVAILABLE";
|
|
1738
|
+
/**
|
|
1739
|
+
* No fields.
|
|
1740
|
+
*/
|
|
1741
|
+
data: Empty;
|
|
1742
|
+
/**
|
|
1743
|
+
* What went wrong, for people; it never contains input values.
|
|
1744
|
+
*/
|
|
1745
|
+
message: string;
|
|
1746
|
+
/**
|
|
1747
|
+
* Whether repeating the same request may succeed.
|
|
1748
|
+
*/
|
|
1749
|
+
retryable: true;
|
|
1750
|
+
}
|
|
1751
|
+
/**
|
|
1752
|
+
* This website's origin is not approved for crawling in this deployment.
|
|
1753
|
+
*/
|
|
1754
|
+
export interface RaizWebsiteNotApprovedFailure {
|
|
1755
|
+
/**
|
|
1756
|
+
* The failure code, stable across releases.
|
|
1757
|
+
*/
|
|
1758
|
+
code: "WEBSITE_NOT_APPROVED";
|
|
1759
|
+
/**
|
|
1760
|
+
* No fields.
|
|
1761
|
+
*/
|
|
1762
|
+
data: Empty;
|
|
1763
|
+
/**
|
|
1764
|
+
* What went wrong, for people; it never contains input values.
|
|
1765
|
+
*/
|
|
1766
|
+
message: string;
|
|
1767
|
+
/**
|
|
1768
|
+
* Whether repeating the same request may succeed.
|
|
1769
|
+
*/
|
|
1770
|
+
retryable: false;
|
|
1771
|
+
}
|
|
1772
|
+
/**
|
|
1773
|
+
* WhatsApp is limiting messages from this number. Try again later.
|
|
1774
|
+
*/
|
|
1775
|
+
export interface RaizWhatsappRateLimitedFailure {
|
|
1776
|
+
/**
|
|
1777
|
+
* The failure code, stable across releases.
|
|
1778
|
+
*/
|
|
1779
|
+
code: "WHATSAPP_RATE_LIMITED";
|
|
1780
|
+
/**
|
|
1781
|
+
* No fields.
|
|
1782
|
+
*/
|
|
1783
|
+
data: Empty;
|
|
1784
|
+
/**
|
|
1785
|
+
* What went wrong, for people; it never contains input values.
|
|
1786
|
+
*/
|
|
1787
|
+
message: string;
|
|
1788
|
+
/**
|
|
1789
|
+
* Whether repeating the same request may succeed.
|
|
1790
|
+
*/
|
|
1791
|
+
retryable: true;
|
|
1792
|
+
}
|
|
1793
|
+
/**
|
|
1794
|
+
* More than 24 hours passed since the contact last wrote. Start the
|
|
1795
|
+
* conversation with an approved template.
|
|
1796
|
+
*/
|
|
1797
|
+
export interface RaizWhatsappWindowClosedFailure {
|
|
1798
|
+
/**
|
|
1799
|
+
* The failure code, stable across releases.
|
|
1800
|
+
*/
|
|
1801
|
+
code: "WHATSAPP_WINDOW_CLOSED";
|
|
1802
|
+
/**
|
|
1803
|
+
* No fields.
|
|
1804
|
+
*/
|
|
1805
|
+
data: Empty;
|
|
1806
|
+
/**
|
|
1807
|
+
* What went wrong, for people; it never contains input values.
|
|
1808
|
+
*/
|
|
1809
|
+
message: string;
|
|
1810
|
+
/**
|
|
1811
|
+
* Whether repeating the same request may succeed.
|
|
1812
|
+
*/
|
|
1813
|
+
retryable: false;
|
|
1814
|
+
}
|
|
1167
1815
|
export declare const RaizBusinessHoursCodec: import("../_/codec.js").Codec;
|
|
1168
1816
|
export declare const RaizFactCodec: import("../_/codec.js").Codec;
|
|
1169
1817
|
export declare const RaizTaskCodec: import("../_/codec.js").Codec;
|
|
1818
|
+
export declare const RaizTaskResponseCodec: import("../_/codec.js").Codec;
|