@arbol-ai/sdk 5.73.0 → 5.75.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/account/billing/models.d.ts +2 -2
- package/dist/account/usageSummary/models.d.ts +1 -1
- package/dist/oficlinic/appointmentReport/client.d.ts +36 -0
- package/dist/oficlinic/appointmentReport/client.js +19 -0
- package/dist/oficlinic/appointmentReport/index.d.ts +5 -0
- package/dist/oficlinic/appointmentReport/index.js +4 -0
- package/dist/oficlinic/appointmentReport/models.d.ts +100 -0
- package/dist/oficlinic/appointmentReport/models.js +9 -0
- package/dist/oficlinic/client.d.ts +4 -0
- package/dist/oficlinic/client.js +10 -0
- package/dist/oficlinic/reportCatalog/client.d.ts +45 -0
- package/dist/oficlinic/reportCatalog/client.js +18 -0
- package/dist/oficlinic/reportCatalog/index.d.ts +5 -0
- package/dist/oficlinic/reportCatalog/index.js +4 -0
- package/dist/oficlinic/reportCatalog/models.d.ts +116 -0
- package/dist/oficlinic/reportCatalog/models.js +3 -0
- package/dist/raiz/agents/client.d.ts +14 -1
- package/dist/raiz/agents/client.js +1 -0
- package/dist/raiz/agents/models.d.ts +30 -6
- package/dist/raiz/channels/client.d.ts +4 -1
- package/dist/raiz/channels/index.d.ts +1 -1
- package/dist/raiz/channels/models.d.ts +9 -746
- package/dist/raiz/client.d.ts +2 -0
- package/dist/raiz/client.js +5 -0
- package/dist/raiz/conversations/client.d.ts +32 -1
- package/dist/raiz/conversations/client.js +10 -1
- package/dist/raiz/conversations/index.d.ts +2 -2
- package/dist/raiz/conversations/models.d.ts +217 -3
- package/dist/raiz/conversations/models.js +1 -0
- package/dist/raiz/definitions/models.d.ts +30 -0
- package/dist/raiz/evalRuns/client.d.ts +33 -10
- package/dist/raiz/evalRuns/client.js +1 -0
- package/dist/raiz/evalRuns/index.d.ts +1 -1
- package/dist/raiz/evalRuns/models.d.ts +108 -7
- package/dist/raiz/evalRuns/models.js +4 -0
- package/dist/raiz/index.d.ts +1 -1
- package/dist/raiz/models/client.d.ts +37 -0
- package/dist/raiz/models/client.js +18 -0
- package/dist/raiz/models/index.d.ts +5 -0
- package/dist/raiz/models/index.js +4 -0
- package/dist/raiz/models/models.d.ts +55 -0
- package/dist/raiz/models/models.js +3 -0
- package/dist/raiz/models.d.ts +1157 -175
- package/dist/raiz/organization/models.d.ts +2 -2
- package/dist/raiz/reports/client.d.ts +1 -1
- package/dist/raiz/reports/models.d.ts +1 -1
- package/dist/visoft/patients/client.d.ts +2 -2
- package/package.json +4 -4
package/dist/raiz/models.d.ts
CHANGED
|
@@ -20,6 +20,163 @@ export interface RaizAddressInUseFailure {
|
|
|
20
20
|
*/
|
|
21
21
|
retryable: false;
|
|
22
22
|
}
|
|
23
|
+
/**
|
|
24
|
+
* Main was published after the candidate started from it. Rebase the candidate
|
|
25
|
+
* (rebaseAgentBranch), review and publish it, then promote it.
|
|
26
|
+
*/
|
|
27
|
+
export interface RaizAgentBranchBehindFailure {
|
|
28
|
+
/**
|
|
29
|
+
* The failure code, stable across releases.
|
|
30
|
+
*/
|
|
31
|
+
code: "AGENT_BRANCH_BEHIND";
|
|
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
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Main and the candidate changed the same part since the candidate started.
|
|
47
|
+
* `conflicts` says where: choose for each in `resolutions` and rebase again.
|
|
48
|
+
*/
|
|
49
|
+
export interface RaizAgentBranchConflictFailure {
|
|
50
|
+
/**
|
|
51
|
+
* The failure code, stable across releases.
|
|
52
|
+
*/
|
|
53
|
+
code: "AGENT_BRANCH_CONFLICT";
|
|
54
|
+
data: RaizAgentBranchConflictFailureData;
|
|
55
|
+
/**
|
|
56
|
+
* What went wrong, for people; it never contains input values.
|
|
57
|
+
*/
|
|
58
|
+
message: string;
|
|
59
|
+
/**
|
|
60
|
+
* Whether repeating the same request may succeed.
|
|
61
|
+
*/
|
|
62
|
+
retryable: false;
|
|
63
|
+
}
|
|
64
|
+
export interface RaizAgentBranchConflictFailureData {
|
|
65
|
+
conflicts: {
|
|
66
|
+
path: string;
|
|
67
|
+
}[];
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* The branch was promoted or discarded and no longer changes. Open a new
|
|
71
|
+
* candidate instead.
|
|
72
|
+
*/
|
|
73
|
+
export interface RaizAgentBranchEndedFailure {
|
|
74
|
+
/**
|
|
75
|
+
* The failure code, stable across releases.
|
|
76
|
+
*/
|
|
77
|
+
code: "AGENT_BRANCH_ENDED";
|
|
78
|
+
/**
|
|
79
|
+
* No fields.
|
|
80
|
+
*/
|
|
81
|
+
data: Empty;
|
|
82
|
+
/**
|
|
83
|
+
* What went wrong, for people; it never contains input values.
|
|
84
|
+
*/
|
|
85
|
+
message: string;
|
|
86
|
+
/**
|
|
87
|
+
* Whether repeating the same request may succeed.
|
|
88
|
+
*/
|
|
89
|
+
retryable: false;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* This belongs to the Agent, not to a candidate: its name, description, status,
|
|
93
|
+
* modality and the settings that take effect at once change on the Agent
|
|
94
|
+
* itself, without branchId.
|
|
95
|
+
*/
|
|
96
|
+
export interface RaizAgentBranchFieldFailure {
|
|
97
|
+
/**
|
|
98
|
+
* The failure code, stable across releases.
|
|
99
|
+
*/
|
|
100
|
+
code: "AGENT_BRANCH_FIELD";
|
|
101
|
+
/**
|
|
102
|
+
* No fields.
|
|
103
|
+
*/
|
|
104
|
+
data: Empty;
|
|
105
|
+
/**
|
|
106
|
+
* What went wrong, for people; it never contains input values.
|
|
107
|
+
*/
|
|
108
|
+
message: string;
|
|
109
|
+
/**
|
|
110
|
+
* Whether repeating the same request may succeed.
|
|
111
|
+
*/
|
|
112
|
+
retryable: false;
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* The Agent already has a candidate. Promote or discard it before opening
|
|
116
|
+
* another.
|
|
117
|
+
*/
|
|
118
|
+
export interface RaizAgentCandidateExistsFailure {
|
|
119
|
+
/**
|
|
120
|
+
* The failure code, stable across releases.
|
|
121
|
+
*/
|
|
122
|
+
code: "AGENT_CANDIDATE_EXISTS";
|
|
123
|
+
/**
|
|
124
|
+
* No fields.
|
|
125
|
+
*/
|
|
126
|
+
data: Empty;
|
|
127
|
+
/**
|
|
128
|
+
* What went wrong, for people; it never contains input values.
|
|
129
|
+
*/
|
|
130
|
+
message: string;
|
|
131
|
+
/**
|
|
132
|
+
* Whether repeating the same request may succeed.
|
|
133
|
+
*/
|
|
134
|
+
retryable: false;
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* The branch has unpublished changes. Publish or discard them first, or say
|
|
138
|
+
* with publish whether this change publishes them too.
|
|
139
|
+
*/
|
|
140
|
+
export interface RaizAgentDraftPendingFailure {
|
|
141
|
+
/**
|
|
142
|
+
* The failure code, stable across releases.
|
|
143
|
+
*/
|
|
144
|
+
code: "AGENT_DRAFT_PENDING";
|
|
145
|
+
/**
|
|
146
|
+
* No fields.
|
|
147
|
+
*/
|
|
148
|
+
data: Empty;
|
|
149
|
+
/**
|
|
150
|
+
* What went wrong, for people; it never contains input values.
|
|
151
|
+
*/
|
|
152
|
+
message: string;
|
|
153
|
+
/**
|
|
154
|
+
* Whether repeating the same request may succeed.
|
|
155
|
+
*/
|
|
156
|
+
retryable: false;
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* The Agent was published by another change after these unpublished changes
|
|
160
|
+
* started. Restore its current version to discard them, then edit again.
|
|
161
|
+
*/
|
|
162
|
+
export interface RaizAgentDraftStaleFailure {
|
|
163
|
+
/**
|
|
164
|
+
* The failure code, stable across releases.
|
|
165
|
+
*/
|
|
166
|
+
code: "AGENT_DRAFT_STALE";
|
|
167
|
+
/**
|
|
168
|
+
* No fields.
|
|
169
|
+
*/
|
|
170
|
+
data: Empty;
|
|
171
|
+
/**
|
|
172
|
+
* What went wrong, for people; it never contains input values.
|
|
173
|
+
*/
|
|
174
|
+
message: string;
|
|
175
|
+
/**
|
|
176
|
+
* Whether repeating the same request may succeed.
|
|
177
|
+
*/
|
|
178
|
+
retryable: false;
|
|
179
|
+
}
|
|
23
180
|
/**
|
|
24
181
|
* The Agent still has channels or active campaigns. Unassign them before
|
|
25
182
|
* deleting it.
|
|
@@ -74,6 +231,28 @@ export interface RaizAgentModalityLockedFailure {
|
|
|
74
231
|
*/
|
|
75
232
|
retryable: false;
|
|
76
233
|
}
|
|
234
|
+
/**
|
|
235
|
+
* Only a text Agent can hold a web conversation; a voice Agent only with
|
|
236
|
+
* `origin: test`, to try it by text.
|
|
237
|
+
*/
|
|
238
|
+
export interface RaizAgentNotTextFailure {
|
|
239
|
+
/**
|
|
240
|
+
* The failure code, stable across releases.
|
|
241
|
+
*/
|
|
242
|
+
code: "AGENT_NOT_TEXT";
|
|
243
|
+
/**
|
|
244
|
+
* No fields.
|
|
245
|
+
*/
|
|
246
|
+
data: Empty;
|
|
247
|
+
/**
|
|
248
|
+
* What went wrong, for people; it never contains input values.
|
|
249
|
+
*/
|
|
250
|
+
message: string;
|
|
251
|
+
/**
|
|
252
|
+
* Whether repeating the same request may succeed.
|
|
253
|
+
*/
|
|
254
|
+
retryable: false;
|
|
255
|
+
}
|
|
77
256
|
export interface RaizAgentProcedureInput {
|
|
78
257
|
/**
|
|
79
258
|
* Free-form procedures: what to do, in Markdown, with inline references such
|
|
@@ -299,6 +478,28 @@ export interface RaizAgentSettingsInvalidFailure {
|
|
|
299
478
|
*/
|
|
300
479
|
retryable: false;
|
|
301
480
|
}
|
|
481
|
+
/**
|
|
482
|
+
* Only an active candidate with a published version takes a share of new
|
|
483
|
+
* conversations.
|
|
484
|
+
*/
|
|
485
|
+
export interface RaizAgentSplitInvalidFailure {
|
|
486
|
+
/**
|
|
487
|
+
* The failure code, stable across releases.
|
|
488
|
+
*/
|
|
489
|
+
code: "AGENT_SPLIT_INVALID";
|
|
490
|
+
/**
|
|
491
|
+
* No fields.
|
|
492
|
+
*/
|
|
493
|
+
data: Empty;
|
|
494
|
+
/**
|
|
495
|
+
* What went wrong, for people; it never contains input values.
|
|
496
|
+
*/
|
|
497
|
+
message: string;
|
|
498
|
+
/**
|
|
499
|
+
* Whether repeating the same request may succeed.
|
|
500
|
+
*/
|
|
501
|
+
retryable: false;
|
|
502
|
+
}
|
|
302
503
|
/**
|
|
303
504
|
* The workflow breaks the graph rules, leaves a step without a way forward, or
|
|
304
505
|
* uses a tool this Agent cannot run there. `issues` says where.
|
|
@@ -458,6 +659,27 @@ export interface RaizCallInProgressFailure {
|
|
|
458
659
|
*/
|
|
459
660
|
retryable: false;
|
|
460
661
|
}
|
|
662
|
+
/**
|
|
663
|
+
* The call could not be placed. Check the destination number and the line.
|
|
664
|
+
*/
|
|
665
|
+
export interface RaizCallRejectedFailure {
|
|
666
|
+
/**
|
|
667
|
+
* The failure code, stable across releases.
|
|
668
|
+
*/
|
|
669
|
+
code: "CALL_REJECTED";
|
|
670
|
+
/**
|
|
671
|
+
* No fields.
|
|
672
|
+
*/
|
|
673
|
+
data: Empty;
|
|
674
|
+
/**
|
|
675
|
+
* What went wrong, for people; it never contains input values.
|
|
676
|
+
*/
|
|
677
|
+
message: string;
|
|
678
|
+
/**
|
|
679
|
+
* Whether repeating the same request may succeed.
|
|
680
|
+
*/
|
|
681
|
+
retryable: false;
|
|
682
|
+
}
|
|
461
683
|
/**
|
|
462
684
|
* The campaign's Agent must be an active text Agent: it answers whoever replies
|
|
463
685
|
* to the message.
|
|
@@ -601,6 +823,71 @@ export interface RaizChannelAgentMismatchFailure {
|
|
|
601
823
|
*/
|
|
602
824
|
retryable: false;
|
|
603
825
|
}
|
|
826
|
+
/**
|
|
827
|
+
* Inbound traffic requires an assigned Agent. Outbound traffic requires one
|
|
828
|
+
* except on WhatsApp notification channels.
|
|
829
|
+
*/
|
|
830
|
+
export interface RaizChannelAgentRequiredFailure {
|
|
831
|
+
/**
|
|
832
|
+
* The failure code, stable across releases.
|
|
833
|
+
*/
|
|
834
|
+
code: "CHANNEL_AGENT_REQUIRED";
|
|
835
|
+
/**
|
|
836
|
+
* No fields.
|
|
837
|
+
*/
|
|
838
|
+
data: Empty;
|
|
839
|
+
/**
|
|
840
|
+
* What went wrong, for people; it never contains input values.
|
|
841
|
+
*/
|
|
842
|
+
message: string;
|
|
843
|
+
/**
|
|
844
|
+
* Whether repeating the same request may succeed.
|
|
845
|
+
*/
|
|
846
|
+
retryable: false;
|
|
847
|
+
}
|
|
848
|
+
/**
|
|
849
|
+
* An AI tool creates website chats and forms only. A person adds WhatsApp
|
|
850
|
+
* numbers and phone numbers in Settings → Channels, or through the REST API.
|
|
851
|
+
*/
|
|
852
|
+
export interface RaizChannelCreationInAppFailure {
|
|
853
|
+
/**
|
|
854
|
+
* The failure code, stable across releases.
|
|
855
|
+
*/
|
|
856
|
+
code: "CHANNEL_CREATION_IN_APP";
|
|
857
|
+
/**
|
|
858
|
+
* No fields.
|
|
859
|
+
*/
|
|
860
|
+
data: Empty;
|
|
861
|
+
/**
|
|
862
|
+
* What went wrong, for people; it never contains input values.
|
|
863
|
+
*/
|
|
864
|
+
message: string;
|
|
865
|
+
/**
|
|
866
|
+
* Whether repeating the same request may succeed.
|
|
867
|
+
*/
|
|
868
|
+
retryable: false;
|
|
869
|
+
}
|
|
870
|
+
/**
|
|
871
|
+
* Another channel already uses this number or endpoint.
|
|
872
|
+
*/
|
|
873
|
+
export interface RaizChannelEndpointInUseFailure {
|
|
874
|
+
/**
|
|
875
|
+
* The failure code, stable across releases.
|
|
876
|
+
*/
|
|
877
|
+
code: "CHANNEL_ENDPOINT_IN_USE";
|
|
878
|
+
/**
|
|
879
|
+
* No fields.
|
|
880
|
+
*/
|
|
881
|
+
data: Empty;
|
|
882
|
+
/**
|
|
883
|
+
* What went wrong, for people; it never contains input values.
|
|
884
|
+
*/
|
|
885
|
+
message: string;
|
|
886
|
+
/**
|
|
887
|
+
* Whether repeating the same request may succeed.
|
|
888
|
+
*/
|
|
889
|
+
retryable: false;
|
|
890
|
+
}
|
|
604
891
|
/**
|
|
605
892
|
* The channel is not connected yet, or this kind of traffic is not enabled on
|
|
606
893
|
* it.
|
|
@@ -676,6 +963,27 @@ export interface RaizContactSuppressedFailure {
|
|
|
676
963
|
*/
|
|
677
964
|
retryable: false;
|
|
678
965
|
}
|
|
966
|
+
/**
|
|
967
|
+
* The contact has no phone number. Give the destination number in `to`.
|
|
968
|
+
*/
|
|
969
|
+
export interface RaizContactUnreachableFailure {
|
|
970
|
+
/**
|
|
971
|
+
* The failure code, stable across releases.
|
|
972
|
+
*/
|
|
973
|
+
code: "CONTACT_UNREACHABLE";
|
|
974
|
+
/**
|
|
975
|
+
* No fields.
|
|
976
|
+
*/
|
|
977
|
+
data: Empty;
|
|
978
|
+
/**
|
|
979
|
+
* What went wrong, for people; it never contains input values.
|
|
980
|
+
*/
|
|
981
|
+
message: string;
|
|
982
|
+
/**
|
|
983
|
+
* Whether repeating the same request may succeed.
|
|
984
|
+
*/
|
|
985
|
+
retryable: false;
|
|
986
|
+
}
|
|
679
987
|
/**
|
|
680
988
|
* The conversation is closed. Start a new conversation to write again.
|
|
681
989
|
*/
|
|
@@ -741,13 +1049,78 @@ export interface RaizConversationOpenFailure {
|
|
|
741
1049
|
retryable: false;
|
|
742
1050
|
}
|
|
743
1051
|
/**
|
|
744
|
-
*
|
|
1052
|
+
* Only the person who saved this view can make it private; it would disappear
|
|
1053
|
+
* for the rest of the team.
|
|
745
1054
|
*/
|
|
746
|
-
export interface
|
|
747
|
-
data: null;
|
|
1055
|
+
export interface RaizConversationViewAuthorOnlyFailure {
|
|
748
1056
|
/**
|
|
749
|
-
* The
|
|
750
|
-
|
|
1057
|
+
* The failure code, stable across releases.
|
|
1058
|
+
*/
|
|
1059
|
+
code: "CONVERSATION_VIEW_AUTHOR_ONLY";
|
|
1060
|
+
/**
|
|
1061
|
+
* No fields.
|
|
1062
|
+
*/
|
|
1063
|
+
data: Empty;
|
|
1064
|
+
/**
|
|
1065
|
+
* What went wrong, for people; it never contains input values.
|
|
1066
|
+
*/
|
|
1067
|
+
message: string;
|
|
1068
|
+
/**
|
|
1069
|
+
* Whether repeating the same request may succeed.
|
|
1070
|
+
*/
|
|
1071
|
+
retryable: false;
|
|
1072
|
+
}
|
|
1073
|
+
/**
|
|
1074
|
+
* The organization already has 200 saved views. Delete one before saving
|
|
1075
|
+
* another.
|
|
1076
|
+
*/
|
|
1077
|
+
export interface RaizConversationViewLimitReachedFailure {
|
|
1078
|
+
/**
|
|
1079
|
+
* The failure code, stable across releases.
|
|
1080
|
+
*/
|
|
1081
|
+
code: "CONVERSATION_VIEW_LIMIT_REACHED";
|
|
1082
|
+
/**
|
|
1083
|
+
* No fields.
|
|
1084
|
+
*/
|
|
1085
|
+
data: Empty;
|
|
1086
|
+
/**
|
|
1087
|
+
* What went wrong, for people; it never contains input values.
|
|
1088
|
+
*/
|
|
1089
|
+
message: string;
|
|
1090
|
+
/**
|
|
1091
|
+
* Whether repeating the same request may succeed.
|
|
1092
|
+
*/
|
|
1093
|
+
retryable: false;
|
|
1094
|
+
}
|
|
1095
|
+
/**
|
|
1096
|
+
* Another saved view already has this name. Choose a different name.
|
|
1097
|
+
*/
|
|
1098
|
+
export interface RaizConversationViewNameTakenFailure {
|
|
1099
|
+
/**
|
|
1100
|
+
* The failure code, stable across releases.
|
|
1101
|
+
*/
|
|
1102
|
+
code: "CONVERSATION_VIEW_NAME_TAKEN";
|
|
1103
|
+
/**
|
|
1104
|
+
* No fields.
|
|
1105
|
+
*/
|
|
1106
|
+
data: Empty;
|
|
1107
|
+
/**
|
|
1108
|
+
* What went wrong, for people; it never contains input values.
|
|
1109
|
+
*/
|
|
1110
|
+
message: string;
|
|
1111
|
+
/**
|
|
1112
|
+
* Whether repeating the same request may succeed.
|
|
1113
|
+
*/
|
|
1114
|
+
retryable: false;
|
|
1115
|
+
}
|
|
1116
|
+
/**
|
|
1117
|
+
* A failed answer.
|
|
1118
|
+
*/
|
|
1119
|
+
export interface RaizCreditsExhaustedError {
|
|
1120
|
+
data: null;
|
|
1121
|
+
/**
|
|
1122
|
+
* The organization's credits do not cover this, so nothing was started. Try
|
|
1123
|
+
* again once the organization adds credits.
|
|
751
1124
|
*/
|
|
752
1125
|
error: RaizCreditsExhaustedFailure;
|
|
753
1126
|
/**
|
|
@@ -954,6 +1327,71 @@ export interface RaizEvalGateUnmetFailure {
|
|
|
954
1327
|
*/
|
|
955
1328
|
retryable: false;
|
|
956
1329
|
}
|
|
1330
|
+
/**
|
|
1331
|
+
* Another scenario of this Agent already has that name.
|
|
1332
|
+
*/
|
|
1333
|
+
export interface RaizEvalScenarioNameInUseFailure {
|
|
1334
|
+
/**
|
|
1335
|
+
* The failure code, stable across releases.
|
|
1336
|
+
*/
|
|
1337
|
+
code: "EVAL_SCENARIO_NAME_IN_USE";
|
|
1338
|
+
/**
|
|
1339
|
+
* No fields.
|
|
1340
|
+
*/
|
|
1341
|
+
data: Empty;
|
|
1342
|
+
/**
|
|
1343
|
+
* What went wrong, for people; it never contains input values.
|
|
1344
|
+
*/
|
|
1345
|
+
message: string;
|
|
1346
|
+
/**
|
|
1347
|
+
* Whether repeating the same request may succeed.
|
|
1348
|
+
*/
|
|
1349
|
+
retryable: false;
|
|
1350
|
+
}
|
|
1351
|
+
/**
|
|
1352
|
+
* The Agent has no active scenario to simulate, or a named scenario is not one
|
|
1353
|
+
* of its active scenarios.
|
|
1354
|
+
*/
|
|
1355
|
+
export interface RaizEvalScenariosUnavailableFailure {
|
|
1356
|
+
/**
|
|
1357
|
+
* The failure code, stable across releases.
|
|
1358
|
+
*/
|
|
1359
|
+
code: "EVAL_SCENARIOS_UNAVAILABLE";
|
|
1360
|
+
/**
|
|
1361
|
+
* No fields.
|
|
1362
|
+
*/
|
|
1363
|
+
data: Empty;
|
|
1364
|
+
/**
|
|
1365
|
+
* What went wrong, for people; it never contains input values.
|
|
1366
|
+
*/
|
|
1367
|
+
message: string;
|
|
1368
|
+
/**
|
|
1369
|
+
* Whether repeating the same request may succeed.
|
|
1370
|
+
*/
|
|
1371
|
+
retryable: false;
|
|
1372
|
+
}
|
|
1373
|
+
/**
|
|
1374
|
+
* Scenarios are simulated on text Agents only: a voice Agent's calls are not
|
|
1375
|
+
* simulated yet.
|
|
1376
|
+
*/
|
|
1377
|
+
export interface RaizEvalSimulationUnsupportedFailure {
|
|
1378
|
+
/**
|
|
1379
|
+
* The failure code, stable across releases.
|
|
1380
|
+
*/
|
|
1381
|
+
code: "EVAL_SIMULATION_UNSUPPORTED";
|
|
1382
|
+
/**
|
|
1383
|
+
* No fields.
|
|
1384
|
+
*/
|
|
1385
|
+
data: Empty;
|
|
1386
|
+
/**
|
|
1387
|
+
* What went wrong, for people; it never contains input values.
|
|
1388
|
+
*/
|
|
1389
|
+
message: string;
|
|
1390
|
+
/**
|
|
1391
|
+
* Whether repeating the same request may succeed.
|
|
1392
|
+
*/
|
|
1393
|
+
retryable: false;
|
|
1394
|
+
}
|
|
957
1395
|
export interface RaizFact {
|
|
958
1396
|
/**
|
|
959
1397
|
* Who wrote the value.
|
|
@@ -1355,40 +1793,15 @@ export interface RaizKnowledgeKindMismatchFailure {
|
|
|
1355
1793
|
*/
|
|
1356
1794
|
retryable: false;
|
|
1357
1795
|
}
|
|
1358
|
-
export interface RaizOutsideHoursTemplate {
|
|
1359
|
-
/**
|
|
1360
|
-
* The template's language in WhatsApp's code, for example `es` or `es_MX`.
|
|
1361
|
-
*/
|
|
1362
|
-
language: string;
|
|
1363
|
-
/**
|
|
1364
|
-
* The template's name.
|
|
1365
|
-
*/
|
|
1366
|
-
name: string;
|
|
1367
|
-
}
|
|
1368
|
-
export type RaizPhoneNumber = string;
|
|
1369
|
-
/**
|
|
1370
|
-
* A failed answer.
|
|
1371
|
-
*/
|
|
1372
|
-
export interface RaizProviderRejectedError {
|
|
1373
|
-
data: null;
|
|
1374
|
-
/**
|
|
1375
|
-
* The provider refused the request. Check the configuration and try again.
|
|
1376
|
-
*/
|
|
1377
|
-
error: RaizProviderRejectedFailure;
|
|
1378
|
-
/**
|
|
1379
|
-
* What every answer carries besides its data or error.
|
|
1380
|
-
*/
|
|
1381
|
-
metadata: ResponseMetadata;
|
|
1382
|
-
success: false;
|
|
1383
|
-
}
|
|
1384
1796
|
/**
|
|
1385
|
-
*
|
|
1797
|
+
* What became of the send could not be read back. Asking again never reaches
|
|
1798
|
+
* the person twice.
|
|
1386
1799
|
*/
|
|
1387
|
-
export interface
|
|
1800
|
+
export interface RaizOutboundChannelInternalFailure {
|
|
1388
1801
|
/**
|
|
1389
1802
|
* The failure code, stable across releases.
|
|
1390
1803
|
*/
|
|
1391
|
-
code: "
|
|
1804
|
+
code: "OUTBOUND_CHANNEL_INTERNAL";
|
|
1392
1805
|
/**
|
|
1393
1806
|
* No fields.
|
|
1394
1807
|
*/
|
|
@@ -1403,14 +1816,14 @@ export interface RaizProviderRejectedFailure {
|
|
|
1403
1816
|
retryable: false;
|
|
1404
1817
|
}
|
|
1405
1818
|
/**
|
|
1406
|
-
*
|
|
1407
|
-
*
|
|
1819
|
+
* Only the Campaigns Worker sends through this service, and only for a
|
|
1820
|
+
* recipient of a campaign of that organization.
|
|
1408
1821
|
*/
|
|
1409
|
-
export interface
|
|
1822
|
+
export interface RaizOutboundChannelRefusedFailure {
|
|
1410
1823
|
/**
|
|
1411
1824
|
* The failure code, stable across releases.
|
|
1412
1825
|
*/
|
|
1413
|
-
code: "
|
|
1826
|
+
code: "OUTBOUND_CHANNEL_REFUSED";
|
|
1414
1827
|
/**
|
|
1415
1828
|
* No fields.
|
|
1416
1829
|
*/
|
|
@@ -1422,16 +1835,17 @@ export interface RaizReplyInProgressFailure {
|
|
|
1422
1835
|
/**
|
|
1423
1836
|
* Whether repeating the same request may succeed.
|
|
1424
1837
|
*/
|
|
1425
|
-
retryable:
|
|
1838
|
+
retryable: false;
|
|
1426
1839
|
}
|
|
1427
1840
|
/**
|
|
1428
|
-
*
|
|
1841
|
+
* The profile's contact hours do not allow starting a conversation now. Try
|
|
1842
|
+
* again within them.
|
|
1429
1843
|
*/
|
|
1430
|
-
export interface
|
|
1844
|
+
export interface RaizOutsideContactHoursFailure {
|
|
1431
1845
|
/**
|
|
1432
1846
|
* The failure code, stable across releases.
|
|
1433
1847
|
*/
|
|
1434
|
-
code: "
|
|
1848
|
+
code: "OUTSIDE_CONTACT_HOURS";
|
|
1435
1849
|
/**
|
|
1436
1850
|
* No fields.
|
|
1437
1851
|
*/
|
|
@@ -1445,14 +1859,26 @@ export interface RaizReportFilterUnsupportedFailure {
|
|
|
1445
1859
|
*/
|
|
1446
1860
|
retryable: false;
|
|
1447
1861
|
}
|
|
1862
|
+
export interface RaizOutsideHoursTemplate {
|
|
1863
|
+
/**
|
|
1864
|
+
* The template's language in WhatsApp's code, for example `es` or `es_MX`.
|
|
1865
|
+
*/
|
|
1866
|
+
language: string;
|
|
1867
|
+
/**
|
|
1868
|
+
* The template's name.
|
|
1869
|
+
*/
|
|
1870
|
+
name: string;
|
|
1871
|
+
}
|
|
1872
|
+
export type RaizPhoneNumber = string;
|
|
1448
1873
|
/**
|
|
1449
|
-
* The
|
|
1874
|
+
* The profile's template parameters reference a variable that `variables` does
|
|
1875
|
+
* not give.
|
|
1450
1876
|
*/
|
|
1451
|
-
export interface
|
|
1877
|
+
export interface RaizProfileVariableMissingFailure {
|
|
1452
1878
|
/**
|
|
1453
1879
|
* The failure code, stable across releases.
|
|
1454
1880
|
*/
|
|
1455
|
-
code: "
|
|
1881
|
+
code: "PROFILE_VARIABLE_MISSING";
|
|
1456
1882
|
/**
|
|
1457
1883
|
* No fields.
|
|
1458
1884
|
*/
|
|
@@ -1467,28 +1893,13 @@ export interface RaizReportRangeInvalidFailure {
|
|
|
1467
1893
|
retryable: false;
|
|
1468
1894
|
}
|
|
1469
1895
|
/**
|
|
1470
|
-
*
|
|
1471
|
-
*/
|
|
1472
|
-
export interface RaizResourceNotFoundError {
|
|
1473
|
-
data: null;
|
|
1474
|
-
/**
|
|
1475
|
-
* The requested resource does not exist in this organization.
|
|
1476
|
-
*/
|
|
1477
|
-
error: RaizResourceNotFoundFailure;
|
|
1478
|
-
/**
|
|
1479
|
-
* What every answer carries besides its data or error.
|
|
1480
|
-
*/
|
|
1481
|
-
metadata: ResponseMetadata;
|
|
1482
|
-
success: false;
|
|
1483
|
-
}
|
|
1484
|
-
/**
|
|
1485
|
-
* The requested resource does not exist in this organization.
|
|
1896
|
+
* This provider account is already registered.
|
|
1486
1897
|
*/
|
|
1487
|
-
export interface
|
|
1898
|
+
export interface RaizProviderAccountExistsFailure {
|
|
1488
1899
|
/**
|
|
1489
1900
|
* The failure code, stable across releases.
|
|
1490
1901
|
*/
|
|
1491
|
-
code: "
|
|
1902
|
+
code: "PROVIDER_ACCOUNT_EXISTS";
|
|
1492
1903
|
/**
|
|
1493
1904
|
* No fields.
|
|
1494
1905
|
*/
|
|
@@ -1503,13 +1914,14 @@ export interface RaizResourceNotFoundFailure {
|
|
|
1503
1914
|
retryable: false;
|
|
1504
1915
|
}
|
|
1505
1916
|
/**
|
|
1506
|
-
*
|
|
1917
|
+
* Channels or Agents still use this provider account. Move them to another
|
|
1918
|
+
* account first.
|
|
1507
1919
|
*/
|
|
1508
|
-
export interface
|
|
1920
|
+
export interface RaizProviderAccountInUseFailure {
|
|
1509
1921
|
/**
|
|
1510
1922
|
* The failure code, stable across releases.
|
|
1511
1923
|
*/
|
|
1512
|
-
code: "
|
|
1924
|
+
code: "PROVIDER_ACCOUNT_IN_USE";
|
|
1513
1925
|
/**
|
|
1514
1926
|
* No fields.
|
|
1515
1927
|
*/
|
|
@@ -1524,13 +1936,14 @@ export interface RaizSourceConversationOpenFailure {
|
|
|
1524
1936
|
retryable: false;
|
|
1525
1937
|
}
|
|
1526
1938
|
/**
|
|
1527
|
-
*
|
|
1939
|
+
* The number and the Agent belong to different voice accounts. A voice Agent
|
|
1940
|
+
* answers and dials only numbers of its own account.
|
|
1528
1941
|
*/
|
|
1529
|
-
export interface
|
|
1942
|
+
export interface RaizProviderAccountMismatchFailure {
|
|
1530
1943
|
/**
|
|
1531
1944
|
* The failure code, stable across releases.
|
|
1532
1945
|
*/
|
|
1533
|
-
code: "
|
|
1946
|
+
code: "PROVIDER_ACCOUNT_MISMATCH";
|
|
1534
1947
|
/**
|
|
1535
1948
|
* No fields.
|
|
1536
1949
|
*/
|
|
@@ -1544,58 +1957,37 @@ export interface RaizSuppressionExistsFailure {
|
|
|
1544
1957
|
*/
|
|
1545
1958
|
retryable: false;
|
|
1546
1959
|
}
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
attemptCount: number;
|
|
1553
|
-
cancelRequestedAt: Temporal.Instant | null;
|
|
1554
|
-
/**
|
|
1555
|
-
* An instant in RFC 3339 format, in UTC.
|
|
1556
|
-
*/
|
|
1557
|
-
createdAt: Temporal.Instant;
|
|
1558
|
-
createdBy: string | null;
|
|
1559
|
-
endedAt: Temporal.Instant | null;
|
|
1560
|
-
errorCode: string | null;
|
|
1960
|
+
/**
|
|
1961
|
+
* This deployment cannot use provider accounts of this provider yet; the
|
|
1962
|
+
* platform's own account is used instead.
|
|
1963
|
+
*/
|
|
1964
|
+
export interface RaizProviderAccountUnsupportedFailure {
|
|
1561
1965
|
/**
|
|
1562
|
-
*
|
|
1966
|
+
* The failure code, stable across releases.
|
|
1563
1967
|
*/
|
|
1564
|
-
|
|
1968
|
+
code: "PROVIDER_ACCOUNT_UNSUPPORTED";
|
|
1565
1969
|
/**
|
|
1566
|
-
*
|
|
1970
|
+
* No fields.
|
|
1567
1971
|
*/
|
|
1568
|
-
|
|
1972
|
+
data: Empty;
|
|
1569
1973
|
/**
|
|
1570
|
-
*
|
|
1571
|
-
* of a re-analysis). Zero steps: the task runs as one unit.
|
|
1974
|
+
* What went wrong, for people; it never contains input values.
|
|
1572
1975
|
*/
|
|
1573
|
-
|
|
1574
|
-
failedSteps: number;
|
|
1575
|
-
finishedSteps: number;
|
|
1576
|
-
totalSteps: number;
|
|
1577
|
-
};
|
|
1578
|
-
result: {
|
|
1579
|
-
[key: string]: unknown;
|
|
1580
|
-
} | null;
|
|
1976
|
+
message: string;
|
|
1581
1977
|
/**
|
|
1582
|
-
*
|
|
1583
|
-
* has attempts left.
|
|
1978
|
+
* Whether repeating the same request may succeed.
|
|
1584
1979
|
*/
|
|
1585
|
-
retryable:
|
|
1586
|
-
startedAt: Temporal.Instant | null;
|
|
1587
|
-
status: "queued" | "running" | "completed" | "failed" | "cancelled";
|
|
1588
|
-
subjectId: string | null;
|
|
1980
|
+
retryable: false;
|
|
1589
1981
|
}
|
|
1590
1982
|
/**
|
|
1591
|
-
*
|
|
1592
|
-
*
|
|
1983
|
+
* The provider refused the provider account's credentials, or the account is
|
|
1984
|
+
* not active there.
|
|
1593
1985
|
*/
|
|
1594
|
-
export interface
|
|
1986
|
+
export interface RaizProviderCredentialsRejectedFailure {
|
|
1595
1987
|
/**
|
|
1596
1988
|
* The failure code, stable across releases.
|
|
1597
1989
|
*/
|
|
1598
|
-
code: "
|
|
1990
|
+
code: "PROVIDER_CREDENTIALS_REJECTED";
|
|
1599
1991
|
/**
|
|
1600
1992
|
* No fields.
|
|
1601
1993
|
*/
|
|
@@ -1610,25 +2002,28 @@ export interface RaizTaskNotRetryableFailure {
|
|
|
1610
2002
|
retryable: false;
|
|
1611
2003
|
}
|
|
1612
2004
|
/**
|
|
1613
|
-
* A
|
|
2005
|
+
* A failed answer.
|
|
1614
2006
|
*/
|
|
1615
|
-
export interface
|
|
1616
|
-
data:
|
|
1617
|
-
|
|
2007
|
+
export interface RaizProviderRejectedError {
|
|
2008
|
+
data: null;
|
|
2009
|
+
/**
|
|
2010
|
+
* The provider refused the request. Check the configuration and try again.
|
|
2011
|
+
*/
|
|
2012
|
+
error: RaizProviderRejectedFailure;
|
|
1618
2013
|
/**
|
|
1619
2014
|
* What every answer carries besides its data or error.
|
|
1620
2015
|
*/
|
|
1621
2016
|
metadata: ResponseMetadata;
|
|
1622
|
-
success:
|
|
2017
|
+
success: false;
|
|
1623
2018
|
}
|
|
1624
2019
|
/**
|
|
1625
|
-
* The
|
|
2020
|
+
* The provider refused the request. Check the configuration and try again.
|
|
1626
2021
|
*/
|
|
1627
|
-
export interface
|
|
2022
|
+
export interface RaizProviderRejectedFailure {
|
|
1628
2023
|
/**
|
|
1629
2024
|
* The failure code, stable across releases.
|
|
1630
2025
|
*/
|
|
1631
|
-
code: "
|
|
2026
|
+
code: "PROVIDER_REJECTED";
|
|
1632
2027
|
/**
|
|
1633
2028
|
* No fields.
|
|
1634
2029
|
*/
|
|
@@ -1640,33 +2035,424 @@ export interface RaizTeamUnavailableFailure {
|
|
|
1640
2035
|
/**
|
|
1641
2036
|
* Whether repeating the same request may succeed.
|
|
1642
2037
|
*/
|
|
1643
|
-
retryable:
|
|
2038
|
+
retryable: false;
|
|
2039
|
+
}
|
|
2040
|
+
/**
|
|
2041
|
+
* A secret the provider account needs is not available to this deployment. Name
|
|
2042
|
+
* a TENANT_ Secrets Store entry that this deployment has a binding for.
|
|
2043
|
+
*/
|
|
2044
|
+
export interface RaizProviderSecretUnavailableFailure {
|
|
2045
|
+
/**
|
|
2046
|
+
* The failure code, stable across releases.
|
|
2047
|
+
*/
|
|
2048
|
+
code: "PROVIDER_SECRET_UNAVAILABLE";
|
|
2049
|
+
/**
|
|
2050
|
+
* No fields.
|
|
2051
|
+
*/
|
|
2052
|
+
data: Empty;
|
|
2053
|
+
/**
|
|
2054
|
+
* What went wrong, for people; it never contains input values.
|
|
2055
|
+
*/
|
|
2056
|
+
message: string;
|
|
2057
|
+
/**
|
|
2058
|
+
* Whether repeating the same request may succeed.
|
|
2059
|
+
*/
|
|
2060
|
+
retryable: false;
|
|
2061
|
+
}
|
|
2062
|
+
/**
|
|
2063
|
+
* The Agent is still replying in this conversation. Try again once the reply is
|
|
2064
|
+
* delivered.
|
|
2065
|
+
*/
|
|
2066
|
+
export interface RaizReplyInProgressFailure {
|
|
2067
|
+
/**
|
|
2068
|
+
* The failure code, stable across releases.
|
|
2069
|
+
*/
|
|
2070
|
+
code: "REPLY_IN_PROGRESS";
|
|
2071
|
+
/**
|
|
2072
|
+
* No fields.
|
|
2073
|
+
*/
|
|
2074
|
+
data: Empty;
|
|
2075
|
+
/**
|
|
2076
|
+
* What went wrong, for people; it never contains input values.
|
|
2077
|
+
*/
|
|
2078
|
+
message: string;
|
|
2079
|
+
/**
|
|
2080
|
+
* Whether repeating the same request may succeed.
|
|
2081
|
+
*/
|
|
2082
|
+
retryable: true;
|
|
2083
|
+
}
|
|
2084
|
+
/**
|
|
2085
|
+
* A filter does not apply to the selected report.
|
|
2086
|
+
*/
|
|
2087
|
+
export interface RaizReportFilterUnsupportedFailure {
|
|
2088
|
+
/**
|
|
2089
|
+
* The failure code, stable across releases.
|
|
2090
|
+
*/
|
|
2091
|
+
code: "REPORT_FILTER_UNSUPPORTED";
|
|
2092
|
+
/**
|
|
2093
|
+
* No fields.
|
|
2094
|
+
*/
|
|
2095
|
+
data: Empty;
|
|
2096
|
+
/**
|
|
2097
|
+
* What went wrong, for people; it never contains input values.
|
|
2098
|
+
*/
|
|
2099
|
+
message: string;
|
|
2100
|
+
/**
|
|
2101
|
+
* Whether repeating the same request may succeed.
|
|
2102
|
+
*/
|
|
2103
|
+
retryable: false;
|
|
2104
|
+
}
|
|
2105
|
+
/**
|
|
2106
|
+
* The report range is invalid: `from` must not be after `to`.
|
|
2107
|
+
*/
|
|
2108
|
+
export interface RaizReportRangeInvalidFailure {
|
|
2109
|
+
/**
|
|
2110
|
+
* The failure code, stable across releases.
|
|
2111
|
+
*/
|
|
2112
|
+
code: "REPORT_RANGE_INVALID";
|
|
2113
|
+
/**
|
|
2114
|
+
* No fields.
|
|
2115
|
+
*/
|
|
2116
|
+
data: Empty;
|
|
2117
|
+
/**
|
|
2118
|
+
* What went wrong, for people; it never contains input values.
|
|
2119
|
+
*/
|
|
2120
|
+
message: string;
|
|
2121
|
+
/**
|
|
2122
|
+
* Whether repeating the same request may succeed.
|
|
2123
|
+
*/
|
|
2124
|
+
retryable: false;
|
|
2125
|
+
}
|
|
2126
|
+
/**
|
|
2127
|
+
* A failed answer.
|
|
2128
|
+
*/
|
|
2129
|
+
export interface RaizResourceNotFoundError {
|
|
2130
|
+
data: null;
|
|
2131
|
+
/**
|
|
2132
|
+
* The requested resource does not exist in this organization.
|
|
2133
|
+
*/
|
|
2134
|
+
error: RaizResourceNotFoundFailure;
|
|
2135
|
+
/**
|
|
2136
|
+
* What every answer carries besides its data or error.
|
|
2137
|
+
*/
|
|
2138
|
+
metadata: ResponseMetadata;
|
|
2139
|
+
success: false;
|
|
2140
|
+
}
|
|
2141
|
+
/**
|
|
2142
|
+
* The requested resource does not exist in this organization.
|
|
2143
|
+
*/
|
|
2144
|
+
export interface RaizResourceNotFoundFailure {
|
|
2145
|
+
/**
|
|
2146
|
+
* The failure code, stable across releases.
|
|
2147
|
+
*/
|
|
2148
|
+
code: "RESOURCE_NOT_FOUND";
|
|
2149
|
+
/**
|
|
2150
|
+
* No fields.
|
|
2151
|
+
*/
|
|
2152
|
+
data: Empty;
|
|
2153
|
+
/**
|
|
2154
|
+
* What went wrong, for people; it never contains input values.
|
|
2155
|
+
*/
|
|
2156
|
+
message: string;
|
|
2157
|
+
/**
|
|
2158
|
+
* Whether repeating the same request may succeed.
|
|
2159
|
+
*/
|
|
2160
|
+
retryable: false;
|
|
2161
|
+
}
|
|
2162
|
+
/**
|
|
2163
|
+
* A fact can cite only a closed conversation as its source.
|
|
2164
|
+
*/
|
|
2165
|
+
export interface RaizSourceConversationOpenFailure {
|
|
2166
|
+
/**
|
|
2167
|
+
* The failure code, stable across releases.
|
|
2168
|
+
*/
|
|
2169
|
+
code: "SOURCE_CONVERSATION_OPEN";
|
|
2170
|
+
/**
|
|
2171
|
+
* No fields.
|
|
2172
|
+
*/
|
|
2173
|
+
data: Empty;
|
|
2174
|
+
/**
|
|
2175
|
+
* What went wrong, for people; it never contains input values.
|
|
2176
|
+
*/
|
|
2177
|
+
message: string;
|
|
2178
|
+
/**
|
|
2179
|
+
* Whether repeating the same request may succeed.
|
|
2180
|
+
*/
|
|
2181
|
+
retryable: false;
|
|
2182
|
+
}
|
|
2183
|
+
/**
|
|
2184
|
+
* This organization already has this suppression rule.
|
|
2185
|
+
*/
|
|
2186
|
+
export interface RaizSuppressionExistsFailure {
|
|
2187
|
+
/**
|
|
2188
|
+
* The failure code, stable across releases.
|
|
2189
|
+
*/
|
|
2190
|
+
code: "SUPPRESSION_EXISTS";
|
|
2191
|
+
/**
|
|
2192
|
+
* No fields.
|
|
2193
|
+
*/
|
|
2194
|
+
data: Empty;
|
|
2195
|
+
/**
|
|
2196
|
+
* What went wrong, for people; it never contains input values.
|
|
2197
|
+
*/
|
|
2198
|
+
message: string;
|
|
2199
|
+
/**
|
|
2200
|
+
* Whether repeating the same request may succeed.
|
|
2201
|
+
*/
|
|
2202
|
+
retryable: false;
|
|
2203
|
+
}
|
|
2204
|
+
export interface RaizTask {
|
|
2205
|
+
/**
|
|
2206
|
+
* Attempts the task has made so far, retries included. A task that works in
|
|
2207
|
+
* slices counts one attempt for all of them.
|
|
2208
|
+
*/
|
|
2209
|
+
attemptCount: number;
|
|
2210
|
+
cancelRequestedAt: Temporal.Instant | null;
|
|
2211
|
+
/**
|
|
2212
|
+
* An instant in RFC 3339 format, in UTC.
|
|
2213
|
+
*/
|
|
2214
|
+
createdAt: Temporal.Instant;
|
|
2215
|
+
createdBy: string | null;
|
|
2216
|
+
endedAt: Temporal.Instant | null;
|
|
2217
|
+
errorCode: string | null;
|
|
2218
|
+
/**
|
|
2219
|
+
* Task id.
|
|
2220
|
+
*/
|
|
2221
|
+
id: string;
|
|
2222
|
+
/**
|
|
2223
|
+
* What the task does.
|
|
2224
|
+
*/
|
|
2225
|
+
kind: "contact_import" | "analysis_run" | "knowledge_crawl";
|
|
2226
|
+
/**
|
|
2227
|
+
* Steps of a task that splits its work into child jobs (one per conversation
|
|
2228
|
+
* of a re-analysis). Zero steps: the task runs as one unit.
|
|
2229
|
+
*/
|
|
2230
|
+
progress: {
|
|
2231
|
+
failedSteps: number;
|
|
2232
|
+
finishedSteps: number;
|
|
2233
|
+
totalSteps: number;
|
|
2234
|
+
};
|
|
2235
|
+
result: {
|
|
2236
|
+
[key: string]: unknown;
|
|
2237
|
+
} | null;
|
|
2238
|
+
/**
|
|
2239
|
+
* The task failed and `retryTask` can queue it again: its kind retries and it
|
|
2240
|
+
* has attempts left.
|
|
2241
|
+
*/
|
|
2242
|
+
retryable: boolean;
|
|
2243
|
+
startedAt: Temporal.Instant | null;
|
|
2244
|
+
status: "queued" | "running" | "completed" | "failed" | "cancelled";
|
|
2245
|
+
subjectId: string | null;
|
|
2246
|
+
}
|
|
2247
|
+
/**
|
|
2248
|
+
* This task cannot be retried: its kind never retries, or it already used every
|
|
2249
|
+
* attempt. Start it again from its resource.
|
|
2250
|
+
*/
|
|
2251
|
+
export interface RaizTaskNotRetryableFailure {
|
|
2252
|
+
/**
|
|
2253
|
+
* The failure code, stable across releases.
|
|
2254
|
+
*/
|
|
2255
|
+
code: "TASK_NOT_RETRYABLE";
|
|
2256
|
+
/**
|
|
2257
|
+
* No fields.
|
|
2258
|
+
*/
|
|
2259
|
+
data: Empty;
|
|
2260
|
+
/**
|
|
2261
|
+
* What went wrong, for people; it never contains input values.
|
|
2262
|
+
*/
|
|
2263
|
+
message: string;
|
|
2264
|
+
/**
|
|
2265
|
+
* Whether repeating the same request may succeed.
|
|
2266
|
+
*/
|
|
2267
|
+
retryable: false;
|
|
2268
|
+
}
|
|
2269
|
+
/**
|
|
2270
|
+
* A successful answer.
|
|
2271
|
+
*/
|
|
2272
|
+
export interface RaizTaskResponse {
|
|
2273
|
+
data: RaizTask;
|
|
2274
|
+
error: null;
|
|
2275
|
+
/**
|
|
2276
|
+
* What every answer carries besides its data or error.
|
|
2277
|
+
*/
|
|
2278
|
+
metadata: ResponseMetadata;
|
|
2279
|
+
success: true;
|
|
2280
|
+
}
|
|
2281
|
+
/**
|
|
2282
|
+
* The organization's team cannot be read right now. Try again shortly.
|
|
2283
|
+
*/
|
|
2284
|
+
export interface RaizTeamUnavailableFailure {
|
|
2285
|
+
/**
|
|
2286
|
+
* The failure code, stable across releases.
|
|
2287
|
+
*/
|
|
2288
|
+
code: "TEAM_UNAVAILABLE";
|
|
2289
|
+
/**
|
|
2290
|
+
* No fields.
|
|
2291
|
+
*/
|
|
2292
|
+
data: Empty;
|
|
2293
|
+
/**
|
|
2294
|
+
* What went wrong, for people; it never contains input values.
|
|
2295
|
+
*/
|
|
2296
|
+
message: string;
|
|
2297
|
+
/**
|
|
2298
|
+
* Whether repeating the same request may succeed.
|
|
2299
|
+
*/
|
|
2300
|
+
retryable: true;
|
|
1644
2301
|
}
|
|
1645
2302
|
export interface RaizTemplateHeaderFile {
|
|
1646
2303
|
/**
|
|
1647
2304
|
* The file's bytes in base64, at most 5242880 bytes decoded.
|
|
1648
2305
|
*/
|
|
1649
|
-
data: Uint8Array;
|
|
2306
|
+
data: Uint8Array;
|
|
2307
|
+
/**
|
|
2308
|
+
* The name the contact sees for a document.
|
|
2309
|
+
*/
|
|
2310
|
+
fileName?: string;
|
|
2311
|
+
/**
|
|
2312
|
+
* It must fit the template's header: a PDF for `document`, JPEG or PNG for
|
|
2313
|
+
* `image`, MP4 for `video`.
|
|
2314
|
+
*/
|
|
2315
|
+
mediaType: "application/pdf" | "image/jpeg" | "image/png" | "video/mp4";
|
|
2316
|
+
}
|
|
2317
|
+
/**
|
|
2318
|
+
* The header file does not fit the template: a document header takes a PDF, an
|
|
2319
|
+
* image header a JPEG or PNG, a video header an MP4, and a template without a
|
|
2320
|
+
* media header takes no file.
|
|
2321
|
+
*/
|
|
2322
|
+
export interface RaizTemplateHeaderMismatchFailure {
|
|
2323
|
+
/**
|
|
2324
|
+
* The failure code, stable across releases.
|
|
2325
|
+
*/
|
|
2326
|
+
code: "TEMPLATE_HEADER_MISMATCH";
|
|
2327
|
+
/**
|
|
2328
|
+
* No fields.
|
|
2329
|
+
*/
|
|
2330
|
+
data: Empty;
|
|
2331
|
+
/**
|
|
2332
|
+
* What went wrong, for people; it never contains input values.
|
|
2333
|
+
*/
|
|
2334
|
+
message: string;
|
|
2335
|
+
/**
|
|
2336
|
+
* Whether repeating the same request may succeed.
|
|
2337
|
+
*/
|
|
2338
|
+
retryable: false;
|
|
2339
|
+
}
|
|
2340
|
+
/**
|
|
2341
|
+
* The template's header is a document, image or video: send its file with the
|
|
2342
|
+
* template.
|
|
2343
|
+
*/
|
|
2344
|
+
export interface RaizTemplateHeaderRequiredFailure {
|
|
2345
|
+
/**
|
|
2346
|
+
* The failure code, stable across releases.
|
|
2347
|
+
*/
|
|
2348
|
+
code: "TEMPLATE_HEADER_REQUIRED";
|
|
2349
|
+
/**
|
|
2350
|
+
* No fields.
|
|
2351
|
+
*/
|
|
2352
|
+
data: Empty;
|
|
2353
|
+
/**
|
|
2354
|
+
* What went wrong, for people; it never contains input values.
|
|
2355
|
+
*/
|
|
2356
|
+
message: string;
|
|
2357
|
+
/**
|
|
2358
|
+
* Whether repeating the same request may succeed.
|
|
2359
|
+
*/
|
|
2360
|
+
retryable: false;
|
|
2361
|
+
}
|
|
2362
|
+
/**
|
|
2363
|
+
* The template is not approved for sending: it is pending review, rejected,
|
|
2364
|
+
* paused or disabled.
|
|
2365
|
+
*/
|
|
2366
|
+
export interface RaizTemplateNotApprovedFailure {
|
|
2367
|
+
/**
|
|
2368
|
+
* The failure code, stable across releases.
|
|
2369
|
+
*/
|
|
2370
|
+
code: "TEMPLATE_NOT_APPROVED";
|
|
2371
|
+
/**
|
|
2372
|
+
* No fields.
|
|
2373
|
+
*/
|
|
2374
|
+
data: Empty;
|
|
2375
|
+
/**
|
|
2376
|
+
* What went wrong, for people; it never contains input values.
|
|
2377
|
+
*/
|
|
2378
|
+
message: string;
|
|
2379
|
+
/**
|
|
2380
|
+
* Whether repeating the same request may succeed.
|
|
2381
|
+
*/
|
|
2382
|
+
retryable: false;
|
|
2383
|
+
}
|
|
2384
|
+
/**
|
|
2385
|
+
* The template does not exist in this channel's WhatsApp Business Account.
|
|
2386
|
+
*/
|
|
2387
|
+
export interface RaizTemplateNotFoundFailure {
|
|
2388
|
+
/**
|
|
2389
|
+
* The failure code, stable across releases.
|
|
2390
|
+
*/
|
|
2391
|
+
code: "TEMPLATE_NOT_FOUND";
|
|
2392
|
+
/**
|
|
2393
|
+
* No fields.
|
|
2394
|
+
*/
|
|
2395
|
+
data: Empty;
|
|
2396
|
+
/**
|
|
2397
|
+
* What went wrong, for people; it never contains input values.
|
|
2398
|
+
*/
|
|
2399
|
+
message: string;
|
|
2400
|
+
/**
|
|
2401
|
+
* Whether repeating the same request may succeed.
|
|
2402
|
+
*/
|
|
2403
|
+
retryable: false;
|
|
2404
|
+
}
|
|
2405
|
+
/**
|
|
2406
|
+
* The number of parameters does not match the variables of the template's body.
|
|
2407
|
+
*/
|
|
2408
|
+
export interface RaizTemplateParametersMismatchFailure {
|
|
2409
|
+
/**
|
|
2410
|
+
* The failure code, stable across releases.
|
|
2411
|
+
*/
|
|
2412
|
+
code: "TEMPLATE_PARAMETERS_MISMATCH";
|
|
2413
|
+
/**
|
|
2414
|
+
* No fields.
|
|
2415
|
+
*/
|
|
2416
|
+
data: Empty;
|
|
2417
|
+
/**
|
|
2418
|
+
* What went wrong, for people; it never contains input values.
|
|
2419
|
+
*/
|
|
2420
|
+
message: string;
|
|
2421
|
+
/**
|
|
2422
|
+
* Whether repeating the same request may succeed.
|
|
2423
|
+
*/
|
|
2424
|
+
retryable: false;
|
|
2425
|
+
}
|
|
2426
|
+
/**
|
|
2427
|
+
* The template needs header text variables, a location header or button
|
|
2428
|
+
* parameters, which cannot be sent yet.
|
|
2429
|
+
*/
|
|
2430
|
+
export interface RaizTemplateUnsupportedFailure {
|
|
2431
|
+
/**
|
|
2432
|
+
* The failure code, stable across releases.
|
|
2433
|
+
*/
|
|
2434
|
+
code: "TEMPLATE_UNSUPPORTED";
|
|
2435
|
+
/**
|
|
2436
|
+
* No fields.
|
|
2437
|
+
*/
|
|
2438
|
+
data: Empty;
|
|
1650
2439
|
/**
|
|
1651
|
-
*
|
|
2440
|
+
* What went wrong, for people; it never contains input values.
|
|
1652
2441
|
*/
|
|
1653
|
-
|
|
2442
|
+
message: string;
|
|
1654
2443
|
/**
|
|
1655
|
-
*
|
|
1656
|
-
* `image`, MP4 for `video`.
|
|
2444
|
+
* Whether repeating the same request may succeed.
|
|
1657
2445
|
*/
|
|
1658
|
-
|
|
2446
|
+
retryable: false;
|
|
1659
2447
|
}
|
|
1660
2448
|
/**
|
|
1661
|
-
* The
|
|
1662
|
-
* image header a JPEG or PNG, a video header an MP4, and a template without a
|
|
1663
|
-
* media header takes no file.
|
|
2449
|
+
* The time zone is not in the IANA time zone database.
|
|
1664
2450
|
*/
|
|
1665
|
-
export interface
|
|
2451
|
+
export interface RaizTimeZoneUnknownFailure {
|
|
1666
2452
|
/**
|
|
1667
2453
|
* The failure code, stable across releases.
|
|
1668
2454
|
*/
|
|
1669
|
-
code: "
|
|
2455
|
+
code: "TIME_ZONE_UNKNOWN";
|
|
1670
2456
|
/**
|
|
1671
2457
|
* No fields.
|
|
1672
2458
|
*/
|
|
@@ -1681,14 +2467,30 @@ export interface RaizTemplateHeaderMismatchFailure {
|
|
|
1681
2467
|
retryable: false;
|
|
1682
2468
|
}
|
|
1683
2469
|
/**
|
|
1684
|
-
*
|
|
1685
|
-
* template.
|
|
2470
|
+
* A failed answer.
|
|
1686
2471
|
*/
|
|
1687
|
-
export interface
|
|
2472
|
+
export interface RaizVersionConflictError {
|
|
2473
|
+
data: null;
|
|
2474
|
+
/**
|
|
2475
|
+
* The resource changed after it was read. Read it again and retry with the
|
|
2476
|
+
* new version.
|
|
2477
|
+
*/
|
|
2478
|
+
error: RaizVersionConflictFailure;
|
|
2479
|
+
/**
|
|
2480
|
+
* What every answer carries besides its data or error.
|
|
2481
|
+
*/
|
|
2482
|
+
metadata: ResponseMetadata;
|
|
2483
|
+
success: false;
|
|
2484
|
+
}
|
|
2485
|
+
/**
|
|
2486
|
+
* The resource changed after it was read. Read it again and retry with the new
|
|
2487
|
+
* version.
|
|
2488
|
+
*/
|
|
2489
|
+
export interface RaizVersionConflictFailure {
|
|
1688
2490
|
/**
|
|
1689
2491
|
* The failure code, stable across releases.
|
|
1690
2492
|
*/
|
|
1691
|
-
code: "
|
|
2493
|
+
code: "VERSION_CONFLICT";
|
|
1692
2494
|
/**
|
|
1693
2495
|
* No fields.
|
|
1694
2496
|
*/
|
|
@@ -1703,14 +2505,14 @@ export interface RaizTemplateHeaderRequiredFailure {
|
|
|
1703
2505
|
retryable: false;
|
|
1704
2506
|
}
|
|
1705
2507
|
/**
|
|
1706
|
-
* The
|
|
1707
|
-
*
|
|
2508
|
+
* The Agent cannot take calls yet: it must be an active voice Agent with
|
|
2509
|
+
* instructions, published for calls.
|
|
1708
2510
|
*/
|
|
1709
|
-
export interface
|
|
2511
|
+
export interface RaizVoiceAgentNotReadyFailure {
|
|
1710
2512
|
/**
|
|
1711
2513
|
* The failure code, stable across releases.
|
|
1712
2514
|
*/
|
|
1713
|
-
code: "
|
|
2515
|
+
code: "VOICE_AGENT_NOT_READY";
|
|
1714
2516
|
/**
|
|
1715
2517
|
* No fields.
|
|
1716
2518
|
*/
|
|
@@ -1725,13 +2527,14 @@ export interface RaizTemplateNotApprovedFailure {
|
|
|
1725
2527
|
retryable: false;
|
|
1726
2528
|
}
|
|
1727
2529
|
/**
|
|
1728
|
-
*
|
|
2530
|
+
* No voice line can place this call. Name an active outbound line of the
|
|
2531
|
+
* organization with `from` or `channelId`, or assign one to the Agent.
|
|
1729
2532
|
*/
|
|
1730
|
-
export interface
|
|
2533
|
+
export interface RaizVoiceLineUnavailableFailure {
|
|
1731
2534
|
/**
|
|
1732
2535
|
* The failure code, stable across releases.
|
|
1733
2536
|
*/
|
|
1734
|
-
code: "
|
|
2537
|
+
code: "VOICE_LINE_UNAVAILABLE";
|
|
1735
2538
|
/**
|
|
1736
2539
|
* No fields.
|
|
1737
2540
|
*/
|
|
@@ -1746,13 +2549,13 @@ export interface RaizTemplateNotFoundFailure {
|
|
|
1746
2549
|
retryable: false;
|
|
1747
2550
|
}
|
|
1748
2551
|
/**
|
|
1749
|
-
*
|
|
2552
|
+
* This voice is not available. Choose one from `listVoices`.
|
|
1750
2553
|
*/
|
|
1751
|
-
export interface
|
|
2554
|
+
export interface RaizVoiceNotAvailableFailure {
|
|
1752
2555
|
/**
|
|
1753
2556
|
* The failure code, stable across releases.
|
|
1754
2557
|
*/
|
|
1755
|
-
code: "
|
|
2558
|
+
code: "VOICE_NOT_AVAILABLE";
|
|
1756
2559
|
/**
|
|
1757
2560
|
* No fields.
|
|
1758
2561
|
*/
|
|
@@ -1767,14 +2570,14 @@ export interface RaizTemplateParametersMismatchFailure {
|
|
|
1767
2570
|
retryable: false;
|
|
1768
2571
|
}
|
|
1769
2572
|
/**
|
|
1770
|
-
*
|
|
1771
|
-
*
|
|
2573
|
+
* This number is already connected to another voice service. Release it there
|
|
2574
|
+
* first.
|
|
1772
2575
|
*/
|
|
1773
|
-
export interface
|
|
2576
|
+
export interface RaizVoiceNumberInUseFailure {
|
|
1774
2577
|
/**
|
|
1775
2578
|
* The failure code, stable across releases.
|
|
1776
2579
|
*/
|
|
1777
|
-
code: "
|
|
2580
|
+
code: "VOICE_NUMBER_IN_USE";
|
|
1778
2581
|
/**
|
|
1779
2582
|
* No fields.
|
|
1780
2583
|
*/
|
|
@@ -1789,13 +2592,14 @@ export interface RaizTemplateUnsupportedFailure {
|
|
|
1789
2592
|
retryable: false;
|
|
1790
2593
|
}
|
|
1791
2594
|
/**
|
|
1792
|
-
* The
|
|
2595
|
+
* The platform's telephony account does not own a voice-capable number with
|
|
2596
|
+
* this value.
|
|
1793
2597
|
*/
|
|
1794
|
-
export interface
|
|
2598
|
+
export interface RaizVoiceNumberNotOwnedFailure {
|
|
1795
2599
|
/**
|
|
1796
2600
|
* The failure code, stable across releases.
|
|
1797
2601
|
*/
|
|
1798
|
-
code: "
|
|
2602
|
+
code: "VOICE_NUMBER_NOT_OWNED";
|
|
1799
2603
|
/**
|
|
1800
2604
|
* No fields.
|
|
1801
2605
|
*/
|
|
@@ -1810,30 +2614,34 @@ export interface RaizTimeZoneUnknownFailure {
|
|
|
1810
2614
|
retryable: false;
|
|
1811
2615
|
}
|
|
1812
2616
|
/**
|
|
1813
|
-
*
|
|
2617
|
+
* Calls are unavailable right now. Try again in a few minutes.
|
|
1814
2618
|
*/
|
|
1815
|
-
export interface
|
|
1816
|
-
data: null;
|
|
2619
|
+
export interface RaizVoiceUnavailableFailure {
|
|
1817
2620
|
/**
|
|
1818
|
-
* The
|
|
1819
|
-
* new version.
|
|
2621
|
+
* The failure code, stable across releases.
|
|
1820
2622
|
*/
|
|
1821
|
-
|
|
2623
|
+
code: "VOICE_UNAVAILABLE";
|
|
1822
2624
|
/**
|
|
1823
|
-
*
|
|
2625
|
+
* No fields.
|
|
1824
2626
|
*/
|
|
1825
|
-
|
|
1826
|
-
|
|
2627
|
+
data: Empty;
|
|
2628
|
+
/**
|
|
2629
|
+
* What went wrong, for people; it never contains input values.
|
|
2630
|
+
*/
|
|
2631
|
+
message: string;
|
|
2632
|
+
/**
|
|
2633
|
+
* Whether repeating the same request may succeed.
|
|
2634
|
+
*/
|
|
2635
|
+
retryable: true;
|
|
1827
2636
|
}
|
|
1828
2637
|
/**
|
|
1829
|
-
*
|
|
1830
|
-
* version.
|
|
2638
|
+
* This website's origin is not approved for crawling in this deployment.
|
|
1831
2639
|
*/
|
|
1832
|
-
export interface
|
|
2640
|
+
export interface RaizWebsiteNotApprovedFailure {
|
|
1833
2641
|
/**
|
|
1834
2642
|
* The failure code, stable across releases.
|
|
1835
2643
|
*/
|
|
1836
|
-
code: "
|
|
2644
|
+
code: "WEBSITE_NOT_APPROVED";
|
|
1837
2645
|
/**
|
|
1838
2646
|
* No fields.
|
|
1839
2647
|
*/
|
|
@@ -1848,14 +2656,14 @@ export interface RaizVersionConflictFailure {
|
|
|
1848
2656
|
retryable: false;
|
|
1849
2657
|
}
|
|
1850
2658
|
/**
|
|
1851
|
-
*
|
|
1852
|
-
*
|
|
2659
|
+
* WhatsApp has restricted this number or its business account. Review the
|
|
2660
|
+
* account's status before sending again.
|
|
1853
2661
|
*/
|
|
1854
|
-
export interface
|
|
2662
|
+
export interface RaizWhatsappAccountRestrictedFailure {
|
|
1855
2663
|
/**
|
|
1856
2664
|
* The failure code, stable across releases.
|
|
1857
2665
|
*/
|
|
1858
|
-
code: "
|
|
2666
|
+
code: "WHATSAPP_ACCOUNT_RESTRICTED";
|
|
1859
2667
|
/**
|
|
1860
2668
|
* No fields.
|
|
1861
2669
|
*/
|
|
@@ -1870,13 +2678,13 @@ export interface RaizVoiceAgentNotReadyFailure {
|
|
|
1870
2678
|
retryable: false;
|
|
1871
2679
|
}
|
|
1872
2680
|
/**
|
|
1873
|
-
*
|
|
2681
|
+
* Automatic replies are paused or this conversation can no longer receive them.
|
|
1874
2682
|
*/
|
|
1875
|
-
export interface
|
|
2683
|
+
export interface RaizWhatsappAiPausedFailure {
|
|
1876
2684
|
/**
|
|
1877
2685
|
* The failure code, stable across releases.
|
|
1878
2686
|
*/
|
|
1879
|
-
code: "
|
|
2687
|
+
code: "WHATSAPP_AI_PAUSED";
|
|
1880
2688
|
/**
|
|
1881
2689
|
* No fields.
|
|
1882
2690
|
*/
|
|
@@ -1888,16 +2696,17 @@ export interface RaizVoiceUnavailableFailure {
|
|
|
1888
2696
|
/**
|
|
1889
2697
|
* Whether repeating the same request may succeed.
|
|
1890
2698
|
*/
|
|
1891
|
-
retryable:
|
|
2699
|
+
retryable: false;
|
|
1892
2700
|
}
|
|
1893
2701
|
/**
|
|
1894
|
-
*
|
|
2702
|
+
* The delivery outcome could not be read back. Asking again never sends the
|
|
2703
|
+
* message twice.
|
|
1895
2704
|
*/
|
|
1896
|
-
export interface
|
|
2705
|
+
export interface RaizWhatsappChannelInternalFailure {
|
|
1897
2706
|
/**
|
|
1898
2707
|
* The failure code, stable across releases.
|
|
1899
2708
|
*/
|
|
1900
|
-
code: "
|
|
2709
|
+
code: "WHATSAPP_CHANNEL_INTERNAL";
|
|
1901
2710
|
/**
|
|
1902
2711
|
* No fields.
|
|
1903
2712
|
*/
|
|
@@ -1912,13 +2721,14 @@ export interface RaizWebsiteNotApprovedFailure {
|
|
|
1912
2721
|
retryable: false;
|
|
1913
2722
|
}
|
|
1914
2723
|
/**
|
|
1915
|
-
*
|
|
2724
|
+
* Only the WhatsApp Agent Worker delivers through this service, and only Agent
|
|
2725
|
+
* messages of a WhatsApp conversation.
|
|
1916
2726
|
*/
|
|
1917
|
-
export interface
|
|
2727
|
+
export interface RaizWhatsappChannelRefusedFailure {
|
|
1918
2728
|
/**
|
|
1919
2729
|
* The failure code, stable across releases.
|
|
1920
2730
|
*/
|
|
1921
|
-
code: "
|
|
2731
|
+
code: "WHATSAPP_CHANNEL_REFUSED";
|
|
1922
2732
|
/**
|
|
1923
2733
|
* No fields.
|
|
1924
2734
|
*/
|
|
@@ -1953,6 +2763,49 @@ export interface RaizWhatsappDeliveryFailedFailure {
|
|
|
1953
2763
|
*/
|
|
1954
2764
|
retryable: false;
|
|
1955
2765
|
}
|
|
2766
|
+
/**
|
|
2767
|
+
* WhatsApp never confirmed whether the message was sent. It was not sent again.
|
|
2768
|
+
*/
|
|
2769
|
+
export interface RaizWhatsappDeliveryUnconfirmedFailure {
|
|
2770
|
+
/**
|
|
2771
|
+
* The failure code, stable across releases.
|
|
2772
|
+
*/
|
|
2773
|
+
code: "WHATSAPP_DELIVERY_UNCONFIRMED";
|
|
2774
|
+
/**
|
|
2775
|
+
* No fields.
|
|
2776
|
+
*/
|
|
2777
|
+
data: Empty;
|
|
2778
|
+
/**
|
|
2779
|
+
* What went wrong, for people; it never contains input values.
|
|
2780
|
+
*/
|
|
2781
|
+
message: string;
|
|
2782
|
+
/**
|
|
2783
|
+
* Whether repeating the same request may succeed.
|
|
2784
|
+
*/
|
|
2785
|
+
retryable: false;
|
|
2786
|
+
}
|
|
2787
|
+
/**
|
|
2788
|
+
* WhatsApp limited how many marketing messages this person receives. Wait at
|
|
2789
|
+
* least a day before sending again.
|
|
2790
|
+
*/
|
|
2791
|
+
export interface RaizWhatsappEngagementLimitedFailure {
|
|
2792
|
+
/**
|
|
2793
|
+
* The failure code, stable across releases.
|
|
2794
|
+
*/
|
|
2795
|
+
code: "WHATSAPP_ENGAGEMENT_LIMITED";
|
|
2796
|
+
/**
|
|
2797
|
+
* No fields.
|
|
2798
|
+
*/
|
|
2799
|
+
data: Empty;
|
|
2800
|
+
/**
|
|
2801
|
+
* What went wrong, for people; it never contains input values.
|
|
2802
|
+
*/
|
|
2803
|
+
message: string;
|
|
2804
|
+
/**
|
|
2805
|
+
* Whether repeating the same request may succeed.
|
|
2806
|
+
*/
|
|
2807
|
+
retryable: true;
|
|
2808
|
+
}
|
|
1956
2809
|
/**
|
|
1957
2810
|
* The contact chose to stop receiving marketing messages from this business.
|
|
1958
2811
|
*/
|
|
@@ -2018,6 +2871,27 @@ export interface RaizWhatsappMessageUnsupportedFailure {
|
|
|
2018
2871
|
*/
|
|
2019
2872
|
retryable: false;
|
|
2020
2873
|
}
|
|
2874
|
+
/**
|
|
2875
|
+
* The message was stored but never handed to WhatsApp. It was not sent.
|
|
2876
|
+
*/
|
|
2877
|
+
export interface RaizWhatsappNotSentFailure {
|
|
2878
|
+
/**
|
|
2879
|
+
* The failure code, stable across releases.
|
|
2880
|
+
*/
|
|
2881
|
+
code: "WHATSAPP_NOT_SENT";
|
|
2882
|
+
/**
|
|
2883
|
+
* No fields.
|
|
2884
|
+
*/
|
|
2885
|
+
data: Empty;
|
|
2886
|
+
/**
|
|
2887
|
+
* What went wrong, for people; it never contains input values.
|
|
2888
|
+
*/
|
|
2889
|
+
message: string;
|
|
2890
|
+
/**
|
|
2891
|
+
* Whether repeating the same request may succeed.
|
|
2892
|
+
*/
|
|
2893
|
+
retryable: false;
|
|
2894
|
+
}
|
|
2021
2895
|
/**
|
|
2022
2896
|
* WhatsApp is limiting messages from this number. Try again later.
|
|
2023
2897
|
*/
|
|
@@ -2082,6 +2956,114 @@ export interface RaizWhatsappWindowClosedFailure {
|
|
|
2082
2956
|
*/
|
|
2083
2957
|
retryable: false;
|
|
2084
2958
|
}
|
|
2959
|
+
/**
|
|
2960
|
+
* The request cannot be repeated or another turn is active.
|
|
2961
|
+
*/
|
|
2962
|
+
export interface RaizWidgetConflictFailure {
|
|
2963
|
+
/**
|
|
2964
|
+
* The failure code, stable across releases.
|
|
2965
|
+
*/
|
|
2966
|
+
code: "WIDGET_CONFLICT";
|
|
2967
|
+
/**
|
|
2968
|
+
* No fields.
|
|
2969
|
+
*/
|
|
2970
|
+
data: Empty;
|
|
2971
|
+
/**
|
|
2972
|
+
* What went wrong, for people; it never contains input values.
|
|
2973
|
+
*/
|
|
2974
|
+
message: string;
|
|
2975
|
+
/**
|
|
2976
|
+
* Whether repeating the same request may succeed.
|
|
2977
|
+
*/
|
|
2978
|
+
retryable: false;
|
|
2979
|
+
}
|
|
2980
|
+
/**
|
|
2981
|
+
* The request outcome could not be confirmed. Do not repeat it with a new
|
|
2982
|
+
* identifier.
|
|
2983
|
+
*/
|
|
2984
|
+
export interface RaizWidgetInternalFailure {
|
|
2985
|
+
/**
|
|
2986
|
+
* The failure code, stable across releases.
|
|
2987
|
+
*/
|
|
2988
|
+
code: "WIDGET_INTERNAL";
|
|
2989
|
+
/**
|
|
2990
|
+
* No fields.
|
|
2991
|
+
*/
|
|
2992
|
+
data: Empty;
|
|
2993
|
+
/**
|
|
2994
|
+
* What went wrong, for people; it never contains input values.
|
|
2995
|
+
*/
|
|
2996
|
+
message: string;
|
|
2997
|
+
/**
|
|
2998
|
+
* Whether repeating the same request may succeed.
|
|
2999
|
+
*/
|
|
3000
|
+
retryable: false;
|
|
3001
|
+
}
|
|
3002
|
+
/**
|
|
3003
|
+
* This widget reached its conversations or messages for today. It takes
|
|
3004
|
+
* visitors again after 00:00 UTC.
|
|
3005
|
+
*/
|
|
3006
|
+
export interface RaizWidgetLimitReachedFailure {
|
|
3007
|
+
/**
|
|
3008
|
+
* The failure code, stable across releases.
|
|
3009
|
+
*/
|
|
3010
|
+
code: "WIDGET_LIMIT_REACHED";
|
|
3011
|
+
/**
|
|
3012
|
+
* No fields.
|
|
3013
|
+
*/
|
|
3014
|
+
data: Empty;
|
|
3015
|
+
/**
|
|
3016
|
+
* What went wrong, for people; it never contains input values.
|
|
3017
|
+
*/
|
|
3018
|
+
message: string;
|
|
3019
|
+
/**
|
|
3020
|
+
* Whether repeating the same request may succeed.
|
|
3021
|
+
*/
|
|
3022
|
+
retryable: true;
|
|
3023
|
+
}
|
|
3024
|
+
/**
|
|
3025
|
+
* This widget session is unavailable.
|
|
3026
|
+
*/
|
|
3027
|
+
export interface RaizWidgetRefusedFailure {
|
|
3028
|
+
/**
|
|
3029
|
+
* The failure code, stable across releases.
|
|
3030
|
+
*/
|
|
3031
|
+
code: "WIDGET_REFUSED";
|
|
3032
|
+
/**
|
|
3033
|
+
* No fields.
|
|
3034
|
+
*/
|
|
3035
|
+
data: Empty;
|
|
3036
|
+
/**
|
|
3037
|
+
* What went wrong, for people; it never contains input values.
|
|
3038
|
+
*/
|
|
3039
|
+
message: string;
|
|
3040
|
+
/**
|
|
3041
|
+
* Whether repeating the same request may succeed.
|
|
3042
|
+
*/
|
|
3043
|
+
retryable: false;
|
|
3044
|
+
}
|
|
3045
|
+
/**
|
|
3046
|
+
* The voice message could not be understood. Record it again or write the
|
|
3047
|
+
* message.
|
|
3048
|
+
*/
|
|
3049
|
+
export interface RaizWidgetVoiceUnheardFailure {
|
|
3050
|
+
/**
|
|
3051
|
+
* The failure code, stable across releases.
|
|
3052
|
+
*/
|
|
3053
|
+
code: "WIDGET_VOICE_UNHEARD";
|
|
3054
|
+
/**
|
|
3055
|
+
* No fields.
|
|
3056
|
+
*/
|
|
3057
|
+
data: Empty;
|
|
3058
|
+
/**
|
|
3059
|
+
* What went wrong, for people; it never contains input values.
|
|
3060
|
+
*/
|
|
3061
|
+
message: string;
|
|
3062
|
+
/**
|
|
3063
|
+
* Whether repeating the same request may succeed.
|
|
3064
|
+
*/
|
|
3065
|
+
retryable: false;
|
|
3066
|
+
}
|
|
2085
3067
|
export declare const RaizBusinessHoursCodec: import("../_/codec.js").Codec;
|
|
2086
3068
|
export declare const RaizFactCodec: import("../_/codec.js").Codec;
|
|
2087
3069
|
export declare const RaizTaskCodec: import("../_/codec.js").Codec;
|