@arbol-ai/sdk 5.43.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.
Files changed (231) hide show
  1. package/dist/account/client.d.ts +0 -16
  2. package/dist/account/client.js +0 -40
  3. package/dist/account/index.d.ts +1 -1
  4. package/dist/account/models.d.ts +0 -93
  5. package/dist/agenda/appointments/client.d.ts +14 -243
  6. package/dist/agenda/appointments/client.js +18 -17
  7. package/dist/agenda/appointments/index.d.ts +1 -1
  8. package/dist/agenda/appointments/models.d.ts +612 -2
  9. package/dist/agenda/appointments/models.js +14 -2
  10. package/dist/agenda/availability/client.d.ts +2 -7
  11. package/dist/agenda/availability/client.js +5 -4
  12. package/dist/agenda/availability/index.d.ts +1 -0
  13. package/dist/agenda/availability/models.d.ts +67 -0
  14. package/dist/agenda/bookingLocations/client.d.ts +2 -7
  15. package/dist/agenda/bookingLocations/client.js +4 -4
  16. package/dist/agenda/bookingLocations/index.d.ts +1 -0
  17. package/dist/agenda/bookingLocations/models.d.ts +67 -0
  18. package/dist/agenda/bookingOfferings/client.d.ts +2 -8
  19. package/dist/agenda/bookingOfferings/client.js +1 -1
  20. package/dist/agenda/bookingOfferings/index.d.ts +1 -1
  21. package/dist/agenda/bookingOfferings/models.d.ts +79 -1
  22. package/dist/agenda/bookingRequirements/client.d.ts +2 -75
  23. package/dist/agenda/bookingRequirements/client.js +1 -1
  24. package/dist/agenda/bookingRequirements/index.d.ts +1 -0
  25. package/dist/agenda/bookingRequirements/models.d.ts +182 -0
  26. package/dist/agenda/bookingSlots/client.d.ts +2 -7
  27. package/dist/agenda/bookingSlots/client.js +5 -4
  28. package/dist/agenda/bookingSlots/index.d.ts +1 -0
  29. package/dist/agenda/bookingSlots/models.d.ts +67 -0
  30. package/dist/agenda/bookingSlots/models.js +3 -0
  31. package/dist/agenda/bookings/client.d.ts +13 -188
  32. package/dist/agenda/bookings/client.js +13 -13
  33. package/dist/agenda/bookings/index.d.ts +1 -1
  34. package/dist/agenda/bookings/models.d.ts +526 -1
  35. package/dist/agenda/bookings/models.js +7 -1
  36. package/dist/agenda/firstAvailability/client.d.ts +2 -8
  37. package/dist/agenda/firstAvailability/client.js +4 -4
  38. package/dist/agenda/firstAvailability/index.d.ts +1 -1
  39. package/dist/agenda/firstAvailability/models.d.ts +80 -1
  40. package/dist/agenda/firstAvailability/models.js +4 -1
  41. package/dist/agenda/index.d.ts +1 -1
  42. package/dist/agenda/locations/client.d.ts +2 -7
  43. package/dist/agenda/locations/client.js +4 -4
  44. package/dist/agenda/locations/index.d.ts +1 -0
  45. package/dist/agenda/locations/models.d.ts +67 -0
  46. package/dist/agenda/locations/models.js +3 -0
  47. package/dist/agenda/models.d.ts +2193 -839
  48. package/dist/agenda/models.js +9 -0
  49. package/dist/agenda/nearestBookingSlots/client.d.ts +2 -8
  50. package/dist/agenda/nearestBookingSlots/client.js +4 -4
  51. package/dist/agenda/nearestBookingSlots/index.d.ts +1 -1
  52. package/dist/agenda/nearestBookingSlots/models.d.ts +80 -2
  53. package/dist/agenda/nearestBookingSlots/models.js +4 -1
  54. package/dist/agenda/offerings/client.d.ts +7 -146
  55. package/dist/agenda/offerings/client.js +8 -8
  56. package/dist/agenda/offerings/index.d.ts +1 -1
  57. package/dist/agenda/offerings/models.d.ts +349 -1
  58. package/dist/agenda/offerings/models.js +6 -0
  59. package/dist/agenda/resourceSchedules/client.d.ts +4 -51
  60. package/dist/agenda/resourceSchedules/client.js +5 -4
  61. package/dist/agenda/resourceSchedules/index.d.ts +1 -0
  62. package/dist/agenda/resourceSchedules/models.d.ts +133 -0
  63. package/dist/agenda/resourceSchedules/models.js +12 -0
  64. package/dist/agenda/resources/client.d.ts +7 -99
  65. package/dist/agenda/resources/client.js +8 -8
  66. package/dist/agenda/resources/index.d.ts +1 -1
  67. package/dist/agenda/resources/models.d.ts +302 -1
  68. package/dist/agenda/resources/models.js +6 -0
  69. package/dist/agenda/scheduleRules/client.d.ts +7 -172
  70. package/dist/agenda/scheduleRules/client.js +10 -10
  71. package/dist/agenda/scheduleRules/index.d.ts +1 -1
  72. package/dist/agenda/scheduleRules/models.d.ts +520 -1
  73. package/dist/agenda/scheduleRules/models.js +31 -0
  74. package/dist/agenda/services/client.d.ts +7 -71
  75. package/dist/agenda/services/client.js +8 -8
  76. package/dist/agenda/services/index.d.ts +1 -1
  77. package/dist/agenda/services/models.d.ts +274 -1
  78. package/dist/agenda/services/models.js +6 -0
  79. package/dist/agenda/waitlist/client.d.ts +9 -217
  80. package/dist/agenda/waitlist/client.js +13 -13
  81. package/dist/agenda/waitlist/index.d.ts +1 -1
  82. package/dist/agenda/waitlist/models.d.ts +482 -1
  83. package/dist/agenda/waitlist/models.js +16 -1
  84. package/dist/index.d.ts +1 -1
  85. package/dist/models.d.ts +0 -20
  86. package/dist/raiz/agents/client.d.ts +8 -137
  87. package/dist/raiz/agents/client.js +12 -12
  88. package/dist/raiz/agents/index.d.ts +1 -1
  89. package/dist/raiz/agents/models.d.ts +258 -2
  90. package/dist/raiz/agents/models.js +13 -1
  91. package/dist/raiz/bulletins/client.d.ts +10 -74
  92. package/dist/raiz/bulletins/client.js +13 -14
  93. package/dist/raiz/bulletins/index.d.ts +1 -1
  94. package/dist/raiz/bulletins/models.d.ts +112 -1
  95. package/dist/raiz/bulletins/models.js +14 -0
  96. package/dist/raiz/campaigns/client.d.ts +11 -140
  97. package/dist/raiz/campaigns/client.js +14 -14
  98. package/dist/raiz/campaigns/index.d.ts +1 -1
  99. package/dist/raiz/campaigns/models.d.ts +343 -2
  100. package/dist/raiz/campaigns/models.js +14 -1
  101. package/dist/raiz/changes/client.d.ts +2 -8
  102. package/dist/raiz/changes/client.js +4 -4
  103. package/dist/raiz/changes/index.d.ts +1 -1
  104. package/dist/raiz/changes/models.d.ts +41 -1
  105. package/dist/raiz/changes/models.js +3 -0
  106. package/dist/raiz/channels/client.d.ts +15 -142
  107. package/dist/raiz/channels/client.js +16 -18
  108. package/dist/raiz/channels/index.d.ts +1 -1
  109. package/dist/raiz/channels/models.d.ts +1511 -2
  110. package/dist/raiz/channels/models.js +12 -2
  111. package/dist/raiz/contacts/client.d.ts +12 -117
  112. package/dist/raiz/contacts/client.js +15 -15
  113. package/dist/raiz/contacts/index.d.ts +1 -1
  114. package/dist/raiz/contacts/models.d.ts +305 -2
  115. package/dist/raiz/contacts/models.js +10 -1
  116. package/dist/raiz/conversations/client.d.ts +18 -99
  117. package/dist/raiz/conversations/client.js +12 -13
  118. package/dist/raiz/conversations/index.d.ts +1 -1
  119. package/dist/raiz/conversations/models.d.ts +253 -2
  120. package/dist/raiz/conversations/models.js +8 -2
  121. package/dist/raiz/definitions/client.d.ts +8 -115
  122. package/dist/raiz/definitions/client.js +10 -10
  123. package/dist/raiz/definitions/index.d.ts +1 -1
  124. package/dist/raiz/definitions/models.d.ts +224 -1
  125. package/dist/raiz/definitions/models.js +6 -0
  126. package/dist/raiz/evalCases/client.d.ts +10 -57
  127. package/dist/raiz/evalCases/client.js +8 -8
  128. package/dist/raiz/evalCases/index.d.ts +1 -1
  129. package/dist/raiz/evalCases/models.d.ts +78 -1
  130. package/dist/raiz/evalCases/models.js +6 -0
  131. package/dist/raiz/evalRuns/client.d.ts +4 -45
  132. package/dist/raiz/evalRuns/client.js +6 -6
  133. package/dist/raiz/evalRuns/index.d.ts +1 -1
  134. package/dist/raiz/evalRuns/models.d.ts +85 -0
  135. package/dist/raiz/evalRuns/models.js +3 -0
  136. package/dist/raiz/facts/client.d.ts +6 -65
  137. package/dist/raiz/facts/client.js +7 -7
  138. package/dist/raiz/facts/index.d.ts +1 -0
  139. package/dist/raiz/facts/models.d.ts +120 -0
  140. package/dist/raiz/facts/models.js +10 -0
  141. package/dist/raiz/index.d.ts +1 -1
  142. package/dist/raiz/knowledge/client.d.ts +10 -130
  143. package/dist/raiz/knowledge/client.js +13 -13
  144. package/dist/raiz/knowledge/index.d.ts +1 -1
  145. package/dist/raiz/knowledge/models.d.ts +256 -1
  146. package/dist/raiz/knowledge/models.js +12 -0
  147. package/dist/raiz/models.d.ts +1474 -825
  148. package/dist/raiz/models.js +3 -0
  149. package/dist/raiz/organization/client.d.ts +7 -70
  150. package/dist/raiz/organization/client.js +8 -8
  151. package/dist/raiz/organization/index.d.ts +1 -1
  152. package/dist/raiz/organization/models.d.ts +178 -1
  153. package/dist/raiz/organization/models.js +11 -0
  154. package/dist/raiz/profiles/client.d.ts +8 -87
  155. package/dist/raiz/profiles/client.js +10 -10
  156. package/dist/raiz/profiles/index.d.ts +1 -1
  157. package/dist/raiz/profiles/models.d.ts +206 -2
  158. package/dist/raiz/profiles/models.js +6 -0
  159. package/dist/raiz/reports/client.d.ts +5 -8
  160. package/dist/raiz/reports/client.js +4 -4
  161. package/dist/raiz/reports/index.d.ts +1 -1
  162. package/dist/raiz/reports/models.d.ts +41 -0
  163. package/dist/raiz/reports/models.js +3 -0
  164. package/dist/raiz/suppressions/client.d.ts +4 -31
  165. package/dist/raiz/suppressions/client.js +6 -6
  166. package/dist/raiz/suppressions/index.d.ts +1 -1
  167. package/dist/raiz/suppressions/models.d.ts +114 -1
  168. package/dist/raiz/suppressions/models.js +6 -0
  169. package/dist/raiz/tasks/client.d.ts +12 -32
  170. package/dist/raiz/tasks/client.js +11 -11
  171. package/dist/raiz/tasks/index.d.ts +1 -1
  172. package/dist/raiz/tasks/models.d.ts +108 -2
  173. package/dist/raiz/tasks/models.js +4 -1
  174. package/dist/raiz/templates/client.d.ts +7 -84
  175. package/dist/raiz/templates/client.js +5 -4
  176. package/dist/raiz/templates/index.d.ts +1 -1
  177. package/dist/raiz/templates/models.d.ts +214 -1
  178. package/dist/raiz/templates/models.js +4 -1
  179. package/dist/raiz/voices/client.d.ts +2 -8
  180. package/dist/raiz/voices/client.js +1 -1
  181. package/dist/raiz/voices/index.d.ts +1 -1
  182. package/dist/raiz/voices/models.d.ts +40 -1
  183. package/package.json +3 -3
  184. package/dist/account/billing/client.d.ts +0 -22
  185. package/dist/account/billing/client.js +0 -18
  186. package/dist/account/billing/index.d.ts +0 -5
  187. package/dist/account/billing/index.js +0 -4
  188. package/dist/account/billing/models.d.ts +0 -74
  189. package/dist/account/billing/models.js +0 -10
  190. package/dist/account/billingProfiles/client.d.ts +0 -39
  191. package/dist/account/billingProfiles/client.js +0 -25
  192. package/dist/account/billingProfiles/index.d.ts +0 -5
  193. package/dist/account/billingProfiles/index.js +0 -4
  194. package/dist/account/billingProfiles/models.d.ts +0 -58
  195. package/dist/account/invoiceDocuments/client.d.ts +0 -25
  196. package/dist/account/invoiceDocuments/client.js +0 -17
  197. package/dist/account/invoiceDocuments/index.d.ts +0 -5
  198. package/dist/account/invoiceDocuments/index.js +0 -4
  199. package/dist/account/invoiceDocuments/models.d.ts +0 -35
  200. package/dist/account/invoices/client.d.ts +0 -47
  201. package/dist/account/invoices/client.js +0 -26
  202. package/dist/account/invoices/index.d.ts +0 -5
  203. package/dist/account/invoices/index.js +0 -4
  204. package/dist/account/invoices/models.d.ts +0 -135
  205. package/dist/account/invoices/models.js +0 -24
  206. package/dist/account/payments/client.d.ts +0 -34
  207. package/dist/account/payments/client.js +0 -19
  208. package/dist/account/payments/index.d.ts +0 -5
  209. package/dist/account/payments/index.js +0 -4
  210. package/dist/account/payments/models.d.ts +0 -64
  211. package/dist/account/payments/models.js +0 -12
  212. package/dist/account/usage/client.d.ts +0 -47
  213. package/dist/account/usage/client.js +0 -18
  214. package/dist/account/usage/index.d.ts +0 -5
  215. package/dist/account/usage/index.js +0 -4
  216. package/dist/account/usage/models.d.ts +0 -51
  217. package/dist/account/usageSummary/client.d.ts +0 -26
  218. package/dist/account/usageSummary/client.js +0 -19
  219. package/dist/account/usageSummary/index.d.ts +0 -5
  220. package/dist/account/usageSummary/index.js +0 -4
  221. package/dist/account/usageSummary/models.d.ts +0 -50
  222. package/dist/account/usageSummary/models.js +0 -9
  223. package/dist/account/walletTransactions/client.d.ts +0 -34
  224. package/dist/account/walletTransactions/client.js +0 -19
  225. package/dist/account/walletTransactions/index.d.ts +0 -5
  226. package/dist/account/walletTransactions/index.js +0 -4
  227. package/dist/account/walletTransactions/models.d.ts +0 -58
  228. package/dist/account/walletTransactions/models.js +0 -12
  229. /package/dist/{account/billingProfiles → agenda/availability}/models.js +0 -0
  230. /package/dist/{account/invoiceDocuments → agenda/bookingLocations}/models.js +0 -0
  231. /package/dist/{account/usage → agenda/bookingRequirements}/models.js +0 -0
@@ -1,5 +1,48 @@
1
- import type { HttpsUrl, PageInfo } from "../../models.js";
2
- import { type RaizBusinessHours } from "../models.js";
1
+ import type { Empty, ForbiddenFailure, HttpsUrl, InternalFailure, InvalidInputFailure, OutcomeUnknownFailure, PageInfo, RateLimitedFailure, RequestTooLargeFailure, ResponseMetadata, UpstreamTimeoutFailure, UpstreamUnavailableFailure } from "../../models.js";
2
+ import { type RaizAddressInUseFailure, type RaizAgentInUseFailure, type RaizAgentModalityLockedFailure, type RaizAgentProceduresInvalidFailure, type RaizAgentSettingsInvalidFailure, type RaizBulletinLimitReachedFailure, type RaizBulletinPeriodInvalidFailure, type RaizBusinessHours, type RaizCallInProgressFailure, type RaizCampaignAgentNotReadyFailure, type RaizCampaignHeaderMissingFailure, type RaizCampaignHeaderNotStoredFailure, type RaizCampaignNoRecipientsFailure, type RaizCampaignVariableMissingFailure, type RaizChannelAgentMismatchFailure, type RaizChannelNotReadyFailure, type RaizChannelTypeMismatchFailure, type RaizConversationClosedFailure, type RaizConversationNotHandedOffFailure, type RaizConversationOpenFailure, type RaizDailyReportInProgressFailure, type RaizDailyReportRecipientsMissingFailure, type RaizDefinitionNotActiveFailure, type RaizDefinitionOptionsInvalidFailure, type RaizDefinitionRetiredFailure, type RaizDefinitionTypeLockedFailure, type RaizEvalCasesUnavailableFailure, type RaizEvalGateUnmetFailure, type RaizFactSubjectMismatchFailure, type RaizFactValueInvalidFailure, type RaizFeedbackProposalUnavailableFailure, type RaizHandoffAlreadyContinuedFailure, type RaizIdentifierInUseFailure, type RaizImportFileInvalidFailure, type RaizImportFileTooLargeFailure, type RaizIntegrationProcedureUnavailableFailure, type RaizIntegrationToolUnavailableFailure, type RaizIntegrationsUnavailableFailure, type RaizInvalidCursorFailure, type RaizInvalidStateFailure, type RaizIpNetworkInvalidFailure, type RaizKeyInUseFailure, type RaizKnowledgeDocumentUnavailableFailure, type RaizKnowledgeFileInvalidFailure, type RaizKnowledgeKindMismatchFailure, type RaizPhoneNumber, type RaizProviderRejectedFailure, type RaizReplyInProgressFailure, type RaizReportFilterUnsupportedFailure, type RaizReportRangeInvalidFailure, type RaizResourceNotFoundFailure, type RaizSourceConversationOpenFailure, type RaizSuppressionExistsFailure, type RaizTaskNotRetryableFailure, type RaizTemplateHeaderMismatchFailure, type RaizTemplateHeaderRequiredFailure, type RaizTemplateNotApprovedFailure, type RaizTemplateNotFoundFailure, type RaizTemplateParametersMismatchFailure, type RaizTemplateUnsupportedFailure, type RaizTimeZoneUnknownFailure, type RaizVersionConflictFailure, type RaizVoiceAgentNotReadyFailure, type RaizVoiceUnavailableFailure, type RaizWebsiteNotApprovedFailure, type RaizWhatsappRateLimitedFailure, type RaizWhatsappWindowClosedFailure } from "../models.js";
3
+ /**
4
+ * Only a text Agent can hold a web conversation; a voice Agent only with
5
+ * `origin: test`, to try it by text.
6
+ */
7
+ export interface RaizAgentNotTextFailure {
8
+ /**
9
+ * The failure code, stable across releases.
10
+ */
11
+ code: "AGENT_NOT_TEXT";
12
+ /**
13
+ * No fields.
14
+ */
15
+ data: Empty;
16
+ /**
17
+ * What went wrong, for people; it never contains input values.
18
+ */
19
+ message: string;
20
+ /**
21
+ * Whether repeating the same request may succeed.
22
+ */
23
+ retryable: false;
24
+ }
25
+ /**
26
+ * The call could not be placed. Check the destination number and the line.
27
+ */
28
+ export interface RaizCallRejectedFailure {
29
+ /**
30
+ * The failure code, stable across releases.
31
+ */
32
+ code: "CALL_REJECTED";
33
+ /**
34
+ * No fields.
35
+ */
36
+ data: Empty;
37
+ /**
38
+ * What went wrong, for people; it never contains input values.
39
+ */
40
+ message: string;
41
+ /**
42
+ * Whether repeating the same request may succeed.
43
+ */
44
+ retryable: false;
45
+ }
3
46
  export interface RaizChannel {
4
47
  address: string | null;
5
48
  agent: RaizChannelAgent | null;
@@ -88,6 +131,71 @@ export interface RaizChannelAgent {
88
131
  id: string;
89
132
  name: string;
90
133
  }
134
+ /**
135
+ * Inbound traffic requires an assigned Agent. Outbound traffic requires one
136
+ * except on WhatsApp notification channels.
137
+ */
138
+ export interface RaizChannelAgentRequiredFailure {
139
+ /**
140
+ * The failure code, stable across releases.
141
+ */
142
+ code: "CHANNEL_AGENT_REQUIRED";
143
+ /**
144
+ * No fields.
145
+ */
146
+ data: Empty;
147
+ /**
148
+ * What went wrong, for people; it never contains input values.
149
+ */
150
+ message: string;
151
+ /**
152
+ * Whether repeating the same request may succeed.
153
+ */
154
+ retryable: false;
155
+ }
156
+ /**
157
+ * An AI tool creates website chats and forms only. A person adds WhatsApp
158
+ * numbers and phone numbers in Settings → Channels, or through the REST API.
159
+ */
160
+ export interface RaizChannelCreationInAppFailure {
161
+ /**
162
+ * The failure code, stable across releases.
163
+ */
164
+ code: "CHANNEL_CREATION_IN_APP";
165
+ /**
166
+ * No fields.
167
+ */
168
+ data: Empty;
169
+ /**
170
+ * What went wrong, for people; it never contains input values.
171
+ */
172
+ message: string;
173
+ /**
174
+ * Whether repeating the same request may succeed.
175
+ */
176
+ retryable: false;
177
+ }
178
+ /**
179
+ * Another channel already uses this number or endpoint.
180
+ */
181
+ export interface RaizChannelEndpointInUseFailure {
182
+ /**
183
+ * The failure code, stable across releases.
184
+ */
185
+ code: "CHANNEL_ENDPOINT_IN_USE";
186
+ /**
187
+ * No fields.
188
+ */
189
+ data: Empty;
190
+ /**
191
+ * What went wrong, for people; it never contains input values.
192
+ */
193
+ message: string;
194
+ /**
195
+ * Whether repeating the same request may succeed.
196
+ */
197
+ retryable: false;
198
+ }
91
199
  export interface RaizChannelPage {
92
200
  /**
93
201
  * Items admitted by this resource contract within the verified organization.
@@ -102,6 +210,1296 @@ export interface RaizChannelPage {
102
210
  */
103
211
  pageInfo: PageInfo;
104
212
  }
213
+ /**
214
+ * A successful answer.
215
+ */
216
+ export interface RaizChannelPageResponse {
217
+ data: RaizChannelPage;
218
+ error: null;
219
+ /**
220
+ * What every answer carries besides its data or error.
221
+ */
222
+ metadata: ResponseMetadata;
223
+ success: true;
224
+ }
225
+ /**
226
+ * A successful answer.
227
+ */
228
+ export interface RaizChannelResponse {
229
+ data: RaizChannel;
230
+ error: null;
231
+ /**
232
+ * What every answer carries besides its data or error.
233
+ */
234
+ metadata: ResponseMetadata;
235
+ success: true;
236
+ }
237
+ /**
238
+ * A suppression rule of this organization forbids contacting this address.
239
+ */
240
+ export interface RaizContactSuppressedFailure {
241
+ /**
242
+ * The failure code, stable across releases.
243
+ */
244
+ code: "CONTACT_SUPPRESSED";
245
+ /**
246
+ * No fields.
247
+ */
248
+ data: Empty;
249
+ /**
250
+ * What went wrong, for people; it never contains input values.
251
+ */
252
+ message: string;
253
+ /**
254
+ * Whether repeating the same request may succeed.
255
+ */
256
+ retryable: false;
257
+ }
258
+ /**
259
+ * The contact has no phone number. Give the destination number in `to`.
260
+ */
261
+ export interface RaizContactUnreachableFailure {
262
+ /**
263
+ * The failure code, stable across releases.
264
+ */
265
+ code: "CONTACT_UNREACHABLE";
266
+ /**
267
+ * No fields.
268
+ */
269
+ data: Empty;
270
+ /**
271
+ * What went wrong, for people; it never contains input values.
272
+ */
273
+ message: string;
274
+ /**
275
+ * Whether repeating the same request may succeed.
276
+ */
277
+ retryable: false;
278
+ }
279
+ /**
280
+ * Only the person who saved this view can make it private; it would disappear
281
+ * for the rest of the team.
282
+ */
283
+ export interface RaizConversationViewAuthorOnlyFailure {
284
+ /**
285
+ * The failure code, stable across releases.
286
+ */
287
+ code: "CONVERSATION_VIEW_AUTHOR_ONLY";
288
+ /**
289
+ * No fields.
290
+ */
291
+ data: Empty;
292
+ /**
293
+ * What went wrong, for people; it never contains input values.
294
+ */
295
+ message: string;
296
+ /**
297
+ * Whether repeating the same request may succeed.
298
+ */
299
+ retryable: false;
300
+ }
301
+ /**
302
+ * The organization already has 200 saved views. Delete one before saving
303
+ * another.
304
+ */
305
+ export interface RaizConversationViewLimitReachedFailure {
306
+ /**
307
+ * The failure code, stable across releases.
308
+ */
309
+ code: "CONVERSATION_VIEW_LIMIT_REACHED";
310
+ /**
311
+ * No fields.
312
+ */
313
+ data: Empty;
314
+ /**
315
+ * What went wrong, for people; it never contains input values.
316
+ */
317
+ message: string;
318
+ /**
319
+ * Whether repeating the same request may succeed.
320
+ */
321
+ retryable: false;
322
+ }
323
+ /**
324
+ * Another saved view already has this name. Choose a different name.
325
+ */
326
+ export interface RaizConversationViewNameTakenFailure {
327
+ /**
328
+ * The failure code, stable across releases.
329
+ */
330
+ code: "CONVERSATION_VIEW_NAME_TAKEN";
331
+ /**
332
+ * No fields.
333
+ */
334
+ data: Empty;
335
+ /**
336
+ * What went wrong, for people; it never contains input values.
337
+ */
338
+ message: string;
339
+ /**
340
+ * Whether repeating the same request may succeed.
341
+ */
342
+ retryable: false;
343
+ }
344
+ /**
345
+ * A failed answer.
346
+ */
347
+ export interface RaizCreateChannelBadGatewayError {
348
+ data: null;
349
+ error: RaizCreateChannelBadGatewayFailure;
350
+ /**
351
+ * What every answer carries besides its data or error.
352
+ */
353
+ metadata: ResponseMetadata;
354
+ success: false;
355
+ }
356
+ export type RaizCreateChannelBadGatewayFailure = OutcomeUnknownFailure | RaizWhatsappDeliveryFailedFailure;
357
+ /**
358
+ * A failed answer.
359
+ */
360
+ export interface RaizCreateChannelBadRequestError {
361
+ data: null;
362
+ error: RaizCreateChannelBadRequestFailure;
363
+ /**
364
+ * What every answer carries besides its data or error.
365
+ */
366
+ metadata: ResponseMetadata;
367
+ success: false;
368
+ }
369
+ export type RaizCreateChannelBadRequestFailure = InvalidInputFailure | RaizReportFilterUnsupportedFailure | RaizReportRangeInvalidFailure | RaizInvalidCursorFailure;
370
+ export type RaizCreateChannelBody = {
371
+ agentId?: string;
372
+ channelType: "whatsapp";
373
+ inboundEnabled?: boolean;
374
+ name?: string;
375
+ outboundEnabled?: boolean;
376
+ } | {
377
+ agentId?: string;
378
+ channelType: "voice";
379
+ endpoint: {
380
+ kind: "platform_number";
381
+ label?: string;
382
+ phone?: RaizPhoneNumber;
383
+ phoneNumber?: RaizPhoneNumber;
384
+ } | {
385
+ address: string;
386
+ kind: "sip_trunk";
387
+ label?: string;
388
+ mediaEncryption?: "disabled" | "allowed" | "required";
389
+ password?: string;
390
+ phone?: RaizPhoneNumber;
391
+ phoneNumber?: RaizPhoneNumber;
392
+ transport?: "auto" | "udp" | "tcp" | "tls";
393
+ username?: string;
394
+ };
395
+ inboundEnabled?: boolean;
396
+ name?: string;
397
+ outboundEnabled?: boolean;
398
+ } | {
399
+ agentId?: string;
400
+ channelType: "web";
401
+ inboundEnabled?: boolean;
402
+ name?: string;
403
+ outboundEnabled?: boolean;
404
+ widget: RaizWidgetSettingsInput;
405
+ };
406
+ /**
407
+ * A failed answer.
408
+ */
409
+ export interface RaizCreateChannelConflictError {
410
+ data: null;
411
+ error: RaizCreateChannelConflictFailure;
412
+ /**
413
+ * What every answer carries besides its data or error.
414
+ */
415
+ metadata: ResponseMetadata;
416
+ success: false;
417
+ }
418
+ export type RaizCreateChannelConflictFailure = RaizAgentNotTextFailure | RaizCallInProgressFailure | RaizConversationClosedFailure | RaizConversationNotHandedOffFailure | RaizConversationOpenFailure | RaizDailyReportInProgressFailure | RaizDefinitionNotActiveFailure | RaizDefinitionRetiredFailure | RaizDefinitionTypeLockedFailure | RaizHandoffAlreadyContinuedFailure | RaizReplyInProgressFailure | RaizOutsideContactHoursFailure | RaizProviderAccountExistsFailure | RaizProviderAccountInUseFailure | RaizSourceConversationOpenFailure | RaizSuppressionExistsFailure | RaizTaskNotRetryableFailure | RaizCampaignAgentNotReadyFailure | RaizCampaignNoRecipientsFailure | RaizChannelAgentRequiredFailure | RaizChannelEndpointInUseFailure | RaizChannelNotReadyFailure | RaizChannelTypeMismatchFailure | RaizConversationViewLimitReachedFailure | RaizConversationViewNameTakenFailure | RaizTemplateNotApprovedFailure | RaizWhatsappAccountRestrictedFailure | RaizWhatsappAiPausedFailure | RaizWhatsappMarketingStoppedFailure | RaizWhatsappWindowClosedFailure | RaizProviderAccountMismatchFailure | RaizProviderSecretUnavailableFailure | RaizVoiceAgentNotReadyFailure | RaizVoiceLineUnavailableFailure | RaizVoiceNumberInUseFailure | RaizAgentInUseFailure | RaizAgentModalityLockedFailure | RaizBulletinLimitReachedFailure | RaizEvalCasesUnavailableFailure | RaizEvalGateUnmetFailure | RaizWidgetConflictFailure | RaizAddressInUseFailure | RaizIdentifierInUseFailure | RaizInvalidStateFailure | RaizKeyInUseFailure | RaizContactSuppressedFailure | RaizVersionConflictFailure;
419
+ /**
420
+ * A failed answer.
421
+ */
422
+ export interface RaizCreateChannelContentTooLargeError {
423
+ data: null;
424
+ error: RaizCreateChannelContentTooLargeFailure;
425
+ /**
426
+ * What every answer carries besides its data or error.
427
+ */
428
+ metadata: ResponseMetadata;
429
+ success: false;
430
+ }
431
+ export type RaizCreateChannelContentTooLargeFailure = RequestTooLargeFailure | RaizImportFileTooLargeFailure;
432
+ /**
433
+ * A failed answer.
434
+ */
435
+ export interface RaizCreateChannelForbiddenError {
436
+ data: null;
437
+ error: RaizCreateChannelForbiddenFailure;
438
+ /**
439
+ * What every answer carries besides its data or error.
440
+ */
441
+ metadata: ResponseMetadata;
442
+ success: false;
443
+ }
444
+ export type RaizCreateChannelForbiddenFailure = ForbiddenFailure | RaizChannelCreationInAppFailure | RaizConversationViewAuthorOnlyFailure | RaizWhatsappChannelRefusedFailure | RaizWidgetRefusedFailure;
445
+ /**
446
+ * A failed answer.
447
+ */
448
+ export interface RaizCreateChannelGatewayTimeoutError {
449
+ data: null;
450
+ error: RaizCreateChannelGatewayTimeoutFailure;
451
+ /**
452
+ * What every answer carries besides its data or error.
453
+ */
454
+ metadata: ResponseMetadata;
455
+ success: false;
456
+ }
457
+ export type RaizCreateChannelGatewayTimeoutFailure = UpstreamTimeoutFailure | RaizWhatsappDeliveryUnconfirmedFailure;
458
+ /**
459
+ * A failed answer.
460
+ */
461
+ export interface RaizCreateChannelInternalServerErrorError {
462
+ data: null;
463
+ error: RaizCreateChannelInternalServerErrorFailure;
464
+ /**
465
+ * What every answer carries besides its data or error.
466
+ */
467
+ metadata: ResponseMetadata;
468
+ success: false;
469
+ }
470
+ export type RaizCreateChannelInternalServerErrorFailure = InternalFailure | RaizWhatsappChannelInternalFailure | RaizWhatsappNotSentFailure | RaizWidgetInternalFailure;
471
+ /**
472
+ * A failed answer.
473
+ */
474
+ export interface RaizCreateChannelNotFoundError {
475
+ data: null;
476
+ error: RaizCreateChannelNotFoundFailure;
477
+ /**
478
+ * What every answer carries besides its data or error.
479
+ */
480
+ metadata: ResponseMetadata;
481
+ success: false;
482
+ }
483
+ export type RaizCreateChannelNotFoundFailure = RaizTemplateNotFoundFailure | RaizResourceNotFoundFailure;
484
+ /**
485
+ * A failed answer.
486
+ */
487
+ export interface RaizCreateChannelServiceUnavailableError {
488
+ data: null;
489
+ error: RaizCreateChannelServiceUnavailableFailure;
490
+ /**
491
+ * What every answer carries besides its data or error.
492
+ */
493
+ metadata: ResponseMetadata;
494
+ success: false;
495
+ }
496
+ export type RaizCreateChannelServiceUnavailableFailure = UpstreamUnavailableFailure | RaizCampaignHeaderNotStoredFailure | RaizVoiceUnavailableFailure | RaizFeedbackProposalUnavailableFailure | RaizIntegrationsUnavailableFailure;
497
+ /**
498
+ * A failed answer.
499
+ */
500
+ export interface RaizCreateChannelTooManyRequestsError {
501
+ data: null;
502
+ error: RaizCreateChannelTooManyRequestsFailure;
503
+ /**
504
+ * What every answer carries besides its data or error.
505
+ */
506
+ metadata: ResponseMetadata;
507
+ success: false;
508
+ }
509
+ export type RaizCreateChannelTooManyRequestsFailure = RateLimitedFailure | RaizWhatsappEngagementLimitedFailure | RaizWhatsappRateLimitedFailure | RaizWidgetLimitReachedFailure;
510
+ /**
511
+ * A failed answer.
512
+ */
513
+ export interface RaizCreateChannelUnprocessableContentError {
514
+ data: null;
515
+ error: RaizCreateChannelUnprocessableContentFailure;
516
+ /**
517
+ * What every answer carries besides its data or error.
518
+ */
519
+ metadata: ResponseMetadata;
520
+ success: false;
521
+ }
522
+ export type RaizCreateChannelUnprocessableContentFailure = RaizContactUnreachableFailure | RaizDailyReportRecipientsMissingFailure | RaizDefinitionOptionsInvalidFailure | RaizFactSubjectMismatchFailure | RaizFactValueInvalidFailure | RaizImportFileInvalidFailure | RaizIpNetworkInvalidFailure | RaizProfileVariableMissingFailure | RaizTimeZoneUnknownFailure | RaizCampaignHeaderMissingFailure | RaizCampaignVariableMissingFailure | RaizChannelAgentMismatchFailure | RaizTemplateHeaderMismatchFailure | RaizTemplateHeaderRequiredFailure | RaizTemplateParametersMismatchFailure | RaizTemplateUnsupportedFailure | RaizWhatsappMediaRejectedFailure | RaizWhatsappMessageUnsupportedFailure | RaizWhatsappRecipientUnavailableFailure | RaizCallRejectedFailure | RaizProviderAccountUnsupportedFailure | RaizProviderCredentialsRejectedFailure | RaizVoiceNotAvailableFailure | RaizVoiceNumberNotOwnedFailure | RaizAgentProceduresInvalidFailure | RaizAgentSettingsInvalidFailure | RaizBulletinPeriodInvalidFailure | RaizIntegrationProcedureUnavailableFailure | RaizIntegrationToolUnavailableFailure | RaizKnowledgeDocumentUnavailableFailure | RaizKnowledgeFileInvalidFailure | RaizKnowledgeKindMismatchFailure | RaizWebsiteNotApprovedFailure | RaizWidgetVoiceUnheardFailure | RaizProviderRejectedFailure;
523
+ /**
524
+ * A failed answer.
525
+ */
526
+ export interface RaizDeleteChannelBadGatewayError {
527
+ data: null;
528
+ error: RaizDeleteChannelBadGatewayFailure;
529
+ /**
530
+ * What every answer carries besides its data or error.
531
+ */
532
+ metadata: ResponseMetadata;
533
+ success: false;
534
+ }
535
+ export type RaizDeleteChannelBadGatewayFailure = OutcomeUnknownFailure | RaizWhatsappDeliveryFailedFailure;
536
+ /**
537
+ * A failed answer.
538
+ */
539
+ export interface RaizDeleteChannelBadRequestError {
540
+ data: null;
541
+ error: RaizDeleteChannelBadRequestFailure;
542
+ /**
543
+ * What every answer carries besides its data or error.
544
+ */
545
+ metadata: ResponseMetadata;
546
+ success: false;
547
+ }
548
+ export type RaizDeleteChannelBadRequestFailure = InvalidInputFailure | RaizReportFilterUnsupportedFailure | RaizReportRangeInvalidFailure | RaizInvalidCursorFailure;
549
+ /**
550
+ * A failed answer.
551
+ */
552
+ export interface RaizDeleteChannelConflictError {
553
+ data: null;
554
+ error: RaizDeleteChannelConflictFailure;
555
+ /**
556
+ * What every answer carries besides its data or error.
557
+ */
558
+ metadata: ResponseMetadata;
559
+ success: false;
560
+ }
561
+ export type RaizDeleteChannelConflictFailure = RaizAgentNotTextFailure | RaizCallInProgressFailure | RaizConversationClosedFailure | RaizConversationNotHandedOffFailure | RaizConversationOpenFailure | RaizDailyReportInProgressFailure | RaizDefinitionNotActiveFailure | RaizDefinitionRetiredFailure | RaizDefinitionTypeLockedFailure | RaizHandoffAlreadyContinuedFailure | RaizReplyInProgressFailure | RaizOutsideContactHoursFailure | RaizProviderAccountExistsFailure | RaizProviderAccountInUseFailure | RaizSourceConversationOpenFailure | RaizSuppressionExistsFailure | RaizTaskNotRetryableFailure | RaizCampaignAgentNotReadyFailure | RaizCampaignNoRecipientsFailure | RaizChannelAgentRequiredFailure | RaizChannelEndpointInUseFailure | RaizChannelNotReadyFailure | RaizChannelTypeMismatchFailure | RaizConversationViewLimitReachedFailure | RaizConversationViewNameTakenFailure | RaizTemplateNotApprovedFailure | RaizWhatsappAccountRestrictedFailure | RaizWhatsappAiPausedFailure | RaizWhatsappMarketingStoppedFailure | RaizWhatsappWindowClosedFailure | RaizProviderAccountMismatchFailure | RaizProviderSecretUnavailableFailure | RaizVoiceAgentNotReadyFailure | RaizVoiceLineUnavailableFailure | RaizVoiceNumberInUseFailure | RaizAgentInUseFailure | RaizAgentModalityLockedFailure | RaizBulletinLimitReachedFailure | RaizEvalCasesUnavailableFailure | RaizEvalGateUnmetFailure | RaizWidgetConflictFailure | RaizAddressInUseFailure | RaizIdentifierInUseFailure | RaizInvalidStateFailure | RaizKeyInUseFailure | RaizContactSuppressedFailure | RaizVersionConflictFailure;
562
+ /**
563
+ * A failed answer.
564
+ */
565
+ export interface RaizDeleteChannelForbiddenError {
566
+ data: null;
567
+ error: RaizDeleteChannelForbiddenFailure;
568
+ /**
569
+ * What every answer carries besides its data or error.
570
+ */
571
+ metadata: ResponseMetadata;
572
+ success: false;
573
+ }
574
+ export type RaizDeleteChannelForbiddenFailure = ForbiddenFailure | RaizChannelCreationInAppFailure | RaizConversationViewAuthorOnlyFailure | RaizWhatsappChannelRefusedFailure | RaizWidgetRefusedFailure;
575
+ /**
576
+ * A failed answer.
577
+ */
578
+ export interface RaizDeleteChannelGatewayTimeoutError {
579
+ data: null;
580
+ error: RaizDeleteChannelGatewayTimeoutFailure;
581
+ /**
582
+ * What every answer carries besides its data or error.
583
+ */
584
+ metadata: ResponseMetadata;
585
+ success: false;
586
+ }
587
+ export type RaizDeleteChannelGatewayTimeoutFailure = UpstreamTimeoutFailure | RaizWhatsappDeliveryUnconfirmedFailure;
588
+ /**
589
+ * A failed answer.
590
+ */
591
+ export interface RaizDeleteChannelInternalServerErrorError {
592
+ data: null;
593
+ error: RaizDeleteChannelInternalServerErrorFailure;
594
+ /**
595
+ * What every answer carries besides its data or error.
596
+ */
597
+ metadata: ResponseMetadata;
598
+ success: false;
599
+ }
600
+ export type RaizDeleteChannelInternalServerErrorFailure = InternalFailure | RaizWhatsappChannelInternalFailure | RaizWhatsappNotSentFailure | RaizWidgetInternalFailure;
601
+ /**
602
+ * A failed answer.
603
+ */
604
+ export interface RaizDeleteChannelNotFoundError {
605
+ data: null;
606
+ error: RaizDeleteChannelNotFoundFailure;
607
+ /**
608
+ * What every answer carries besides its data or error.
609
+ */
610
+ metadata: ResponseMetadata;
611
+ success: false;
612
+ }
613
+ export type RaizDeleteChannelNotFoundFailure = RaizTemplateNotFoundFailure | RaizResourceNotFoundFailure;
614
+ /**
615
+ * A failed answer.
616
+ */
617
+ export interface RaizDeleteChannelServiceUnavailableError {
618
+ data: null;
619
+ error: RaizDeleteChannelServiceUnavailableFailure;
620
+ /**
621
+ * What every answer carries besides its data or error.
622
+ */
623
+ metadata: ResponseMetadata;
624
+ success: false;
625
+ }
626
+ export type RaizDeleteChannelServiceUnavailableFailure = UpstreamUnavailableFailure | RaizCampaignHeaderNotStoredFailure | RaizVoiceUnavailableFailure | RaizFeedbackProposalUnavailableFailure | RaizIntegrationsUnavailableFailure;
627
+ /**
628
+ * A failed answer.
629
+ */
630
+ export interface RaizDeleteChannelTooManyRequestsError {
631
+ data: null;
632
+ error: RaizDeleteChannelTooManyRequestsFailure;
633
+ /**
634
+ * What every answer carries besides its data or error.
635
+ */
636
+ metadata: ResponseMetadata;
637
+ success: false;
638
+ }
639
+ export type RaizDeleteChannelTooManyRequestsFailure = RateLimitedFailure | RaizWhatsappEngagementLimitedFailure | RaizWhatsappRateLimitedFailure | RaizWidgetLimitReachedFailure;
640
+ /**
641
+ * A failed answer.
642
+ */
643
+ export interface RaizDeleteChannelUnprocessableContentError {
644
+ data: null;
645
+ error: RaizDeleteChannelUnprocessableContentFailure;
646
+ /**
647
+ * What every answer carries besides its data or error.
648
+ */
649
+ metadata: ResponseMetadata;
650
+ success: false;
651
+ }
652
+ export type RaizDeleteChannelUnprocessableContentFailure = RaizContactUnreachableFailure | RaizDailyReportRecipientsMissingFailure | RaizDefinitionOptionsInvalidFailure | RaizFactSubjectMismatchFailure | RaizFactValueInvalidFailure | RaizImportFileInvalidFailure | RaizIpNetworkInvalidFailure | RaizProfileVariableMissingFailure | RaizTimeZoneUnknownFailure | RaizCampaignHeaderMissingFailure | RaizCampaignVariableMissingFailure | RaizChannelAgentMismatchFailure | RaizTemplateHeaderMismatchFailure | RaizTemplateHeaderRequiredFailure | RaizTemplateParametersMismatchFailure | RaizTemplateUnsupportedFailure | RaizWhatsappMediaRejectedFailure | RaizWhatsappMessageUnsupportedFailure | RaizWhatsappRecipientUnavailableFailure | RaizCallRejectedFailure | RaizProviderAccountUnsupportedFailure | RaizProviderCredentialsRejectedFailure | RaizVoiceNotAvailableFailure | RaizVoiceNumberNotOwnedFailure | RaizAgentProceduresInvalidFailure | RaizAgentSettingsInvalidFailure | RaizBulletinPeriodInvalidFailure | RaizIntegrationProcedureUnavailableFailure | RaizIntegrationToolUnavailableFailure | RaizKnowledgeDocumentUnavailableFailure | RaizKnowledgeFileInvalidFailure | RaizKnowledgeKindMismatchFailure | RaizWebsiteNotApprovedFailure | RaizWidgetVoiceUnheardFailure | RaizProviderRejectedFailure;
653
+ /**
654
+ * A failed answer.
655
+ */
656
+ export interface RaizGetChannelServiceUnavailableError {
657
+ data: null;
658
+ error: RaizGetChannelServiceUnavailableFailure;
659
+ /**
660
+ * What every answer carries besides its data or error.
661
+ */
662
+ metadata: ResponseMetadata;
663
+ success: false;
664
+ }
665
+ export type RaizGetChannelServiceUnavailableFailure = UpstreamUnavailableFailure | RaizIntegrationsUnavailableFailure;
666
+ /**
667
+ * A failed answer.
668
+ */
669
+ export interface RaizGetChannelTooManyRequestsError {
670
+ data: null;
671
+ error: RaizGetChannelTooManyRequestsFailure;
672
+ /**
673
+ * What every answer carries besides its data or error.
674
+ */
675
+ metadata: ResponseMetadata;
676
+ success: false;
677
+ }
678
+ export type RaizGetChannelTooManyRequestsFailure = RateLimitedFailure | RaizWhatsappRateLimitedFailure;
679
+ /**
680
+ * A failed answer.
681
+ */
682
+ export interface RaizImportFileTooLargeError {
683
+ data: null;
684
+ /**
685
+ * The import file is larger than 12 MB. Split it into several files.
686
+ */
687
+ error: RaizImportFileTooLargeFailure;
688
+ /**
689
+ * What every answer carries besides its data or error.
690
+ */
691
+ metadata: ResponseMetadata;
692
+ success: false;
693
+ }
694
+ /**
695
+ * A failed answer.
696
+ */
697
+ export interface RaizListChannelsBadRequestError {
698
+ data: null;
699
+ error: RaizListChannelsBadRequestFailure;
700
+ /**
701
+ * What every answer carries besides its data or error.
702
+ */
703
+ metadata: ResponseMetadata;
704
+ success: false;
705
+ }
706
+ export type RaizListChannelsBadRequestFailure = InvalidInputFailure | RaizInvalidCursorFailure;
707
+ /**
708
+ * A failed answer.
709
+ */
710
+ export interface RaizListChannelsServiceUnavailableError {
711
+ data: null;
712
+ error: RaizListChannelsServiceUnavailableFailure;
713
+ /**
714
+ * What every answer carries besides its data or error.
715
+ */
716
+ metadata: ResponseMetadata;
717
+ success: false;
718
+ }
719
+ export type RaizListChannelsServiceUnavailableFailure = UpstreamUnavailableFailure | RaizIntegrationsUnavailableFailure;
720
+ /**
721
+ * The profile's contact hours do not allow starting a conversation now. Try
722
+ * again within them.
723
+ */
724
+ export interface RaizOutsideContactHoursFailure {
725
+ /**
726
+ * The failure code, stable across releases.
727
+ */
728
+ code: "OUTSIDE_CONTACT_HOURS";
729
+ /**
730
+ * No fields.
731
+ */
732
+ data: Empty;
733
+ /**
734
+ * What went wrong, for people; it never contains input values.
735
+ */
736
+ message: string;
737
+ /**
738
+ * Whether repeating the same request may succeed.
739
+ */
740
+ retryable: false;
741
+ }
742
+ /**
743
+ * The profile's template parameters reference a variable that `variables` does
744
+ * not give.
745
+ */
746
+ export interface RaizProfileVariableMissingFailure {
747
+ /**
748
+ * The failure code, stable across releases.
749
+ */
750
+ code: "PROFILE_VARIABLE_MISSING";
751
+ /**
752
+ * No fields.
753
+ */
754
+ data: Empty;
755
+ /**
756
+ * What went wrong, for people; it never contains input values.
757
+ */
758
+ message: string;
759
+ /**
760
+ * Whether repeating the same request may succeed.
761
+ */
762
+ retryable: false;
763
+ }
764
+ /**
765
+ * This provider account is already registered.
766
+ */
767
+ export interface RaizProviderAccountExistsFailure {
768
+ /**
769
+ * The failure code, stable across releases.
770
+ */
771
+ code: "PROVIDER_ACCOUNT_EXISTS";
772
+ /**
773
+ * No fields.
774
+ */
775
+ data: Empty;
776
+ /**
777
+ * What went wrong, for people; it never contains input values.
778
+ */
779
+ message: string;
780
+ /**
781
+ * Whether repeating the same request may succeed.
782
+ */
783
+ retryable: false;
784
+ }
785
+ /**
786
+ * Channels or Agents still use this provider account. Move them to another
787
+ * account first.
788
+ */
789
+ export interface RaizProviderAccountInUseFailure {
790
+ /**
791
+ * The failure code, stable across releases.
792
+ */
793
+ code: "PROVIDER_ACCOUNT_IN_USE";
794
+ /**
795
+ * No fields.
796
+ */
797
+ data: Empty;
798
+ /**
799
+ * What went wrong, for people; it never contains input values.
800
+ */
801
+ message: string;
802
+ /**
803
+ * Whether repeating the same request may succeed.
804
+ */
805
+ retryable: false;
806
+ }
807
+ /**
808
+ * The number and the Agent belong to different voice accounts. A voice Agent
809
+ * answers and dials only numbers of its own account.
810
+ */
811
+ export interface RaizProviderAccountMismatchFailure {
812
+ /**
813
+ * The failure code, stable across releases.
814
+ */
815
+ code: "PROVIDER_ACCOUNT_MISMATCH";
816
+ /**
817
+ * No fields.
818
+ */
819
+ data: Empty;
820
+ /**
821
+ * What went wrong, for people; it never contains input values.
822
+ */
823
+ message: string;
824
+ /**
825
+ * Whether repeating the same request may succeed.
826
+ */
827
+ retryable: false;
828
+ }
829
+ /**
830
+ * This deployment cannot use provider accounts of this provider yet; the
831
+ * platform's own account is used instead.
832
+ */
833
+ export interface RaizProviderAccountUnsupportedFailure {
834
+ /**
835
+ * The failure code, stable across releases.
836
+ */
837
+ code: "PROVIDER_ACCOUNT_UNSUPPORTED";
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
+ }
851
+ /**
852
+ * The provider refused the provider account's credentials, or the account is
853
+ * not active there.
854
+ */
855
+ export interface RaizProviderCredentialsRejectedFailure {
856
+ /**
857
+ * The failure code, stable across releases.
858
+ */
859
+ code: "PROVIDER_CREDENTIALS_REJECTED";
860
+ /**
861
+ * No fields.
862
+ */
863
+ data: Empty;
864
+ /**
865
+ * What went wrong, for people; it never contains input values.
866
+ */
867
+ message: string;
868
+ /**
869
+ * Whether repeating the same request may succeed.
870
+ */
871
+ retryable: false;
872
+ }
873
+ /**
874
+ * A secret the provider account needs is not available to this deployment. Name
875
+ * a TENANT_ Secrets Store entry that this deployment has a binding for.
876
+ */
877
+ export interface RaizProviderSecretUnavailableFailure {
878
+ /**
879
+ * The failure code, stable across releases.
880
+ */
881
+ code: "PROVIDER_SECRET_UNAVAILABLE";
882
+ /**
883
+ * No fields.
884
+ */
885
+ data: Empty;
886
+ /**
887
+ * What went wrong, for people; it never contains input values.
888
+ */
889
+ message: string;
890
+ /**
891
+ * Whether repeating the same request may succeed.
892
+ */
893
+ retryable: false;
894
+ }
895
+ /**
896
+ * A failed answer.
897
+ */
898
+ export interface RaizRenewChannelSetupConflictError {
899
+ data: null;
900
+ error: RaizRenewChannelSetupConflictFailure;
901
+ /**
902
+ * What every answer carries besides its data or error.
903
+ */
904
+ metadata: ResponseMetadata;
905
+ success: false;
906
+ }
907
+ export type RaizRenewChannelSetupConflictFailure = RaizChannelAgentRequiredFailure | RaizChannelEndpointInUseFailure | RaizChannelTypeMismatchFailure | RaizInvalidStateFailure | RaizVersionConflictFailure;
908
+ /**
909
+ * A failed answer.
910
+ */
911
+ export interface RaizRenewChannelSetupTooManyRequestsError {
912
+ data: null;
913
+ error: RaizRenewChannelSetupTooManyRequestsFailure;
914
+ /**
915
+ * What every answer carries besides its data or error.
916
+ */
917
+ metadata: ResponseMetadata;
918
+ success: false;
919
+ }
920
+ export type RaizRenewChannelSetupTooManyRequestsFailure = RateLimitedFailure | RaizWhatsappRateLimitedFailure;
921
+ /**
922
+ * A failed answer.
923
+ */
924
+ export interface RaizUpdateChannelBadGatewayError {
925
+ data: null;
926
+ error: RaizUpdateChannelBadGatewayFailure;
927
+ /**
928
+ * What every answer carries besides its data or error.
929
+ */
930
+ metadata: ResponseMetadata;
931
+ success: false;
932
+ }
933
+ export type RaizUpdateChannelBadGatewayFailure = OutcomeUnknownFailure | RaizWhatsappDeliveryFailedFailure;
934
+ /**
935
+ * A failed answer.
936
+ */
937
+ export interface RaizUpdateChannelBadRequestError {
938
+ data: null;
939
+ error: RaizUpdateChannelBadRequestFailure;
940
+ /**
941
+ * What every answer carries besides its data or error.
942
+ */
943
+ metadata: ResponseMetadata;
944
+ success: false;
945
+ }
946
+ export type RaizUpdateChannelBadRequestFailure = InvalidInputFailure | RaizReportFilterUnsupportedFailure | RaizReportRangeInvalidFailure | RaizInvalidCursorFailure;
947
+ export interface RaizUpdateChannelBody {
948
+ agentId?: string | null;
949
+ aiCoveragePercent?: number;
950
+ businessHours?: RaizBusinessHours | null;
951
+ /**
952
+ * The `version` you read. When present, the change applies only if nobody
953
+ * changed the resource since; otherwise it fails with VERSION_CONFLICT.
954
+ */
955
+ expectedVersion?: number;
956
+ /**
957
+ * Inbound traffic needs an assigned Agent. WhatsApp outbound traffic can send
958
+ * notifications without one; other channel types require an Agent. Defaults
959
+ * to on when created with an Agent.
960
+ */
961
+ inboundEnabled?: boolean;
962
+ name?: string | null;
963
+ /**
964
+ * Inbound traffic needs an assigned Agent. WhatsApp outbound traffic can send
965
+ * notifications without one; other channel types require an Agent. Defaults
966
+ * to on when created with an Agent.
967
+ */
968
+ outboundEnabled?: boolean;
969
+ /**
970
+ * WhatsApp channels only: changes to the business profile, applied at
971
+ * WhatsApp.
972
+ */
973
+ profile?: {
974
+ about?: string;
975
+ address?: string;
976
+ description?: string;
977
+ email?: string;
978
+ vertical?: "ALCOHOL" | "APPAREL" | "AUTO" | "BEAUTY" | "EDU" | "ENTERTAIN" | "EVENT_PLAN" | "FINANCE" | "GOVT" | "GROCERY" | "HEALTH" | "HOTEL" | "NONPROFIT" | "ONLINE_GAMBLING" | "OTC_DRUGS" | "OTHER" | "PHYSICAL_GAMBLING" | "PROF_SERVICES" | "RESTAURANT" | "RETAIL" | "TRAVEL";
979
+ websites?: string[];
980
+ };
981
+ /**
982
+ * The web chat widget's configuration.
983
+ */
984
+ widget?: RaizWidgetSettingsInput;
985
+ widgetLogo?: {
986
+ data: Uint8Array;
987
+ mediaType: "image/png" | "image/jpeg" | "image/webp";
988
+ } | null;
989
+ }
990
+ /**
991
+ * A failed answer.
992
+ */
993
+ export interface RaizUpdateChannelConflictError {
994
+ data: null;
995
+ error: RaizUpdateChannelConflictFailure;
996
+ /**
997
+ * What every answer carries besides its data or error.
998
+ */
999
+ metadata: ResponseMetadata;
1000
+ success: false;
1001
+ }
1002
+ export type RaizUpdateChannelConflictFailure = RaizAgentNotTextFailure | RaizCallInProgressFailure | RaizConversationClosedFailure | RaizConversationNotHandedOffFailure | RaizConversationOpenFailure | RaizDailyReportInProgressFailure | RaizDefinitionNotActiveFailure | RaizDefinitionRetiredFailure | RaizDefinitionTypeLockedFailure | RaizHandoffAlreadyContinuedFailure | RaizReplyInProgressFailure | RaizOutsideContactHoursFailure | RaizProviderAccountExistsFailure | RaizProviderAccountInUseFailure | RaizSourceConversationOpenFailure | RaizSuppressionExistsFailure | RaizTaskNotRetryableFailure | RaizCampaignAgentNotReadyFailure | RaizCampaignNoRecipientsFailure | RaizChannelAgentRequiredFailure | RaizChannelEndpointInUseFailure | RaizChannelNotReadyFailure | RaizChannelTypeMismatchFailure | RaizConversationViewLimitReachedFailure | RaizConversationViewNameTakenFailure | RaizTemplateNotApprovedFailure | RaizWhatsappAccountRestrictedFailure | RaizWhatsappAiPausedFailure | RaizWhatsappMarketingStoppedFailure | RaizWhatsappWindowClosedFailure | RaizProviderAccountMismatchFailure | RaizProviderSecretUnavailableFailure | RaizVoiceAgentNotReadyFailure | RaizVoiceLineUnavailableFailure | RaizVoiceNumberInUseFailure | RaizAgentInUseFailure | RaizAgentModalityLockedFailure | RaizBulletinLimitReachedFailure | RaizEvalCasesUnavailableFailure | RaizEvalGateUnmetFailure | RaizWidgetConflictFailure | RaizAddressInUseFailure | RaizIdentifierInUseFailure | RaizInvalidStateFailure | RaizKeyInUseFailure | RaizContactSuppressedFailure | RaizVersionConflictFailure;
1003
+ /**
1004
+ * A failed answer.
1005
+ */
1006
+ export interface RaizUpdateChannelContentTooLargeError {
1007
+ data: null;
1008
+ error: RaizUpdateChannelContentTooLargeFailure;
1009
+ /**
1010
+ * What every answer carries besides its data or error.
1011
+ */
1012
+ metadata: ResponseMetadata;
1013
+ success: false;
1014
+ }
1015
+ export type RaizUpdateChannelContentTooLargeFailure = RequestTooLargeFailure | RaizImportFileTooLargeFailure;
1016
+ /**
1017
+ * A failed answer.
1018
+ */
1019
+ export interface RaizUpdateChannelForbiddenError {
1020
+ data: null;
1021
+ error: RaizUpdateChannelForbiddenFailure;
1022
+ /**
1023
+ * What every answer carries besides its data or error.
1024
+ */
1025
+ metadata: ResponseMetadata;
1026
+ success: false;
1027
+ }
1028
+ export type RaizUpdateChannelForbiddenFailure = ForbiddenFailure | RaizChannelCreationInAppFailure | RaizConversationViewAuthorOnlyFailure | RaizWhatsappChannelRefusedFailure | RaizWidgetRefusedFailure;
1029
+ /**
1030
+ * A failed answer.
1031
+ */
1032
+ export interface RaizUpdateChannelGatewayTimeoutError {
1033
+ data: null;
1034
+ error: RaizUpdateChannelGatewayTimeoutFailure;
1035
+ /**
1036
+ * What every answer carries besides its data or error.
1037
+ */
1038
+ metadata: ResponseMetadata;
1039
+ success: false;
1040
+ }
1041
+ export type RaizUpdateChannelGatewayTimeoutFailure = UpstreamTimeoutFailure | RaizWhatsappDeliveryUnconfirmedFailure;
1042
+ /**
1043
+ * A failed answer.
1044
+ */
1045
+ export interface RaizUpdateChannelInternalServerErrorError {
1046
+ data: null;
1047
+ error: RaizUpdateChannelInternalServerErrorFailure;
1048
+ /**
1049
+ * What every answer carries besides its data or error.
1050
+ */
1051
+ metadata: ResponseMetadata;
1052
+ success: false;
1053
+ }
1054
+ export type RaizUpdateChannelInternalServerErrorFailure = InternalFailure | RaizWhatsappChannelInternalFailure | RaizWhatsappNotSentFailure | RaizWidgetInternalFailure;
1055
+ /**
1056
+ * A failed answer.
1057
+ */
1058
+ export interface RaizUpdateChannelNotFoundError {
1059
+ data: null;
1060
+ error: RaizUpdateChannelNotFoundFailure;
1061
+ /**
1062
+ * What every answer carries besides its data or error.
1063
+ */
1064
+ metadata: ResponseMetadata;
1065
+ success: false;
1066
+ }
1067
+ export type RaizUpdateChannelNotFoundFailure = RaizTemplateNotFoundFailure | RaizResourceNotFoundFailure;
1068
+ /**
1069
+ * A failed answer.
1070
+ */
1071
+ export interface RaizUpdateChannelServiceUnavailableError {
1072
+ data: null;
1073
+ error: RaizUpdateChannelServiceUnavailableFailure;
1074
+ /**
1075
+ * What every answer carries besides its data or error.
1076
+ */
1077
+ metadata: ResponseMetadata;
1078
+ success: false;
1079
+ }
1080
+ export type RaizUpdateChannelServiceUnavailableFailure = UpstreamUnavailableFailure | RaizCampaignHeaderNotStoredFailure | RaizVoiceUnavailableFailure | RaizFeedbackProposalUnavailableFailure | RaizIntegrationsUnavailableFailure;
1081
+ /**
1082
+ * A failed answer.
1083
+ */
1084
+ export interface RaizUpdateChannelTooManyRequestsError {
1085
+ data: null;
1086
+ error: RaizUpdateChannelTooManyRequestsFailure;
1087
+ /**
1088
+ * What every answer carries besides its data or error.
1089
+ */
1090
+ metadata: ResponseMetadata;
1091
+ success: false;
1092
+ }
1093
+ export type RaizUpdateChannelTooManyRequestsFailure = RateLimitedFailure | RaizWhatsappEngagementLimitedFailure | RaizWhatsappRateLimitedFailure | RaizWidgetLimitReachedFailure;
1094
+ /**
1095
+ * A failed answer.
1096
+ */
1097
+ export interface RaizUpdateChannelUnprocessableContentError {
1098
+ data: null;
1099
+ error: RaizUpdateChannelUnprocessableContentFailure;
1100
+ /**
1101
+ * What every answer carries besides its data or error.
1102
+ */
1103
+ metadata: ResponseMetadata;
1104
+ success: false;
1105
+ }
1106
+ export type RaizUpdateChannelUnprocessableContentFailure = RaizContactUnreachableFailure | RaizDailyReportRecipientsMissingFailure | RaizDefinitionOptionsInvalidFailure | RaizFactSubjectMismatchFailure | RaizFactValueInvalidFailure | RaizImportFileInvalidFailure | RaizIpNetworkInvalidFailure | RaizProfileVariableMissingFailure | RaizTimeZoneUnknownFailure | RaizCampaignHeaderMissingFailure | RaizCampaignVariableMissingFailure | RaizChannelAgentMismatchFailure | RaizTemplateHeaderMismatchFailure | RaizTemplateHeaderRequiredFailure | RaizTemplateParametersMismatchFailure | RaizTemplateUnsupportedFailure | RaizWhatsappMediaRejectedFailure | RaizWhatsappMessageUnsupportedFailure | RaizWhatsappRecipientUnavailableFailure | RaizCallRejectedFailure | RaizProviderAccountUnsupportedFailure | RaizProviderCredentialsRejectedFailure | RaizVoiceNotAvailableFailure | RaizVoiceNumberNotOwnedFailure | RaizAgentProceduresInvalidFailure | RaizAgentSettingsInvalidFailure | RaizBulletinPeriodInvalidFailure | RaizIntegrationProcedureUnavailableFailure | RaizIntegrationToolUnavailableFailure | RaizKnowledgeDocumentUnavailableFailure | RaizKnowledgeFileInvalidFailure | RaizKnowledgeKindMismatchFailure | RaizWebsiteNotApprovedFailure | RaizWidgetVoiceUnheardFailure | RaizProviderRejectedFailure;
1107
+ export interface RaizVerifyChannelBody {
1108
+ /**
1109
+ * Phone number in E.164 format.
1110
+ */
1111
+ phone?: RaizPhoneNumber;
1112
+ /**
1113
+ * Deprecated: use `phone`. Answered until 2027-01-28.
1114
+ *
1115
+ * @deprecated
1116
+ */
1117
+ phoneNumber?: RaizPhoneNumber;
1118
+ }
1119
+ /**
1120
+ * A failed answer.
1121
+ */
1122
+ export interface RaizVerifyChannelConflictError {
1123
+ data: null;
1124
+ error: RaizVerifyChannelConflictFailure;
1125
+ /**
1126
+ * What every answer carries besides its data or error.
1127
+ */
1128
+ metadata: ResponseMetadata;
1129
+ success: false;
1130
+ }
1131
+ export type RaizVerifyChannelConflictFailure = RaizChannelAgentRequiredFailure | RaizChannelEndpointInUseFailure | RaizChannelTypeMismatchFailure | RaizInvalidStateFailure | RaizVersionConflictFailure;
1132
+ /**
1133
+ * A failed answer.
1134
+ */
1135
+ export interface RaizVerifyChannelServiceUnavailableError {
1136
+ data: null;
1137
+ error: RaizVerifyChannelServiceUnavailableFailure;
1138
+ /**
1139
+ * What every answer carries besides its data or error.
1140
+ */
1141
+ metadata: ResponseMetadata;
1142
+ success: false;
1143
+ }
1144
+ export type RaizVerifyChannelServiceUnavailableFailure = UpstreamUnavailableFailure | RaizIntegrationsUnavailableFailure;
1145
+ /**
1146
+ * A failed answer.
1147
+ */
1148
+ export interface RaizVerifyChannelTooManyRequestsError {
1149
+ data: null;
1150
+ error: RaizVerifyChannelTooManyRequestsFailure;
1151
+ /**
1152
+ * What every answer carries besides its data or error.
1153
+ */
1154
+ metadata: ResponseMetadata;
1155
+ success: false;
1156
+ }
1157
+ export type RaizVerifyChannelTooManyRequestsFailure = RateLimitedFailure | RaizWhatsappRateLimitedFailure;
1158
+ /**
1159
+ * No voice line can place this call. Name an active outbound line of the
1160
+ * organization with `from` or `channelId`, or assign one to the Agent.
1161
+ */
1162
+ export interface RaizVoiceLineUnavailableFailure {
1163
+ /**
1164
+ * The failure code, stable across releases.
1165
+ */
1166
+ code: "VOICE_LINE_UNAVAILABLE";
1167
+ /**
1168
+ * No fields.
1169
+ */
1170
+ data: Empty;
1171
+ /**
1172
+ * What went wrong, for people; it never contains input values.
1173
+ */
1174
+ message: string;
1175
+ /**
1176
+ * Whether repeating the same request may succeed.
1177
+ */
1178
+ retryable: false;
1179
+ }
1180
+ /**
1181
+ * This voice is not available. Choose one from `listVoices`.
1182
+ */
1183
+ export interface RaizVoiceNotAvailableFailure {
1184
+ /**
1185
+ * The failure code, stable across releases.
1186
+ */
1187
+ code: "VOICE_NOT_AVAILABLE";
1188
+ /**
1189
+ * No fields.
1190
+ */
1191
+ data: Empty;
1192
+ /**
1193
+ * What went wrong, for people; it never contains input values.
1194
+ */
1195
+ message: string;
1196
+ /**
1197
+ * Whether repeating the same request may succeed.
1198
+ */
1199
+ retryable: false;
1200
+ }
1201
+ /**
1202
+ * This number is already connected to another voice service. Release it there
1203
+ * first.
1204
+ */
1205
+ export interface RaizVoiceNumberInUseFailure {
1206
+ /**
1207
+ * The failure code, stable across releases.
1208
+ */
1209
+ code: "VOICE_NUMBER_IN_USE";
1210
+ /**
1211
+ * No fields.
1212
+ */
1213
+ data: Empty;
1214
+ /**
1215
+ * What went wrong, for people; it never contains input values.
1216
+ */
1217
+ message: string;
1218
+ /**
1219
+ * Whether repeating the same request may succeed.
1220
+ */
1221
+ retryable: false;
1222
+ }
1223
+ /**
1224
+ * The platform's telephony account does not own a voice-capable number with
1225
+ * this value.
1226
+ */
1227
+ export interface RaizVoiceNumberNotOwnedFailure {
1228
+ /**
1229
+ * The failure code, stable across releases.
1230
+ */
1231
+ code: "VOICE_NUMBER_NOT_OWNED";
1232
+ /**
1233
+ * No fields.
1234
+ */
1235
+ data: Empty;
1236
+ /**
1237
+ * What went wrong, for people; it never contains input values.
1238
+ */
1239
+ message: string;
1240
+ /**
1241
+ * Whether repeating the same request may succeed.
1242
+ */
1243
+ retryable: false;
1244
+ }
1245
+ /**
1246
+ * WhatsApp has restricted this number or its business account. Review the
1247
+ * account's status before sending again.
1248
+ */
1249
+ export interface RaizWhatsappAccountRestrictedFailure {
1250
+ /**
1251
+ * The failure code, stable across releases.
1252
+ */
1253
+ code: "WHATSAPP_ACCOUNT_RESTRICTED";
1254
+ /**
1255
+ * No fields.
1256
+ */
1257
+ data: Empty;
1258
+ /**
1259
+ * What went wrong, for people; it never contains input values.
1260
+ */
1261
+ message: string;
1262
+ /**
1263
+ * Whether repeating the same request may succeed.
1264
+ */
1265
+ retryable: false;
1266
+ }
1267
+ /**
1268
+ * Automatic replies are paused or this conversation can no longer receive them.
1269
+ */
1270
+ export interface RaizWhatsappAiPausedFailure {
1271
+ /**
1272
+ * The failure code, stable across releases.
1273
+ */
1274
+ code: "WHATSAPP_AI_PAUSED";
1275
+ /**
1276
+ * No fields.
1277
+ */
1278
+ data: Empty;
1279
+ /**
1280
+ * What went wrong, for people; it never contains input values.
1281
+ */
1282
+ message: string;
1283
+ /**
1284
+ * Whether repeating the same request may succeed.
1285
+ */
1286
+ retryable: false;
1287
+ }
1288
+ /**
1289
+ * The delivery outcome could not be read back. Asking again never sends the
1290
+ * message twice.
1291
+ */
1292
+ export interface RaizWhatsappChannelInternalFailure {
1293
+ /**
1294
+ * The failure code, stable across releases.
1295
+ */
1296
+ code: "WHATSAPP_CHANNEL_INTERNAL";
1297
+ /**
1298
+ * No fields.
1299
+ */
1300
+ data: Empty;
1301
+ /**
1302
+ * What went wrong, for people; it never contains input values.
1303
+ */
1304
+ message: string;
1305
+ /**
1306
+ * Whether repeating the same request may succeed.
1307
+ */
1308
+ retryable: false;
1309
+ }
1310
+ /**
1311
+ * Only the WhatsApp Agent Worker delivers through this service, and only Agent
1312
+ * messages of a WhatsApp conversation.
1313
+ */
1314
+ export interface RaizWhatsappChannelRefusedFailure {
1315
+ /**
1316
+ * The failure code, stable across releases.
1317
+ */
1318
+ code: "WHATSAPP_CHANNEL_REFUSED";
1319
+ /**
1320
+ * No fields.
1321
+ */
1322
+ data: Empty;
1323
+ /**
1324
+ * What went wrong, for people; it never contains input values.
1325
+ */
1326
+ message: string;
1327
+ /**
1328
+ * Whether repeating the same request may succeed.
1329
+ */
1330
+ retryable: false;
1331
+ }
1332
+ /**
1333
+ * WhatsApp did not deliver the message.
1334
+ */
1335
+ export interface RaizWhatsappDeliveryFailedFailure {
1336
+ /**
1337
+ * The failure code, stable across releases.
1338
+ */
1339
+ code: "WHATSAPP_DELIVERY_FAILED";
1340
+ /**
1341
+ * No fields.
1342
+ */
1343
+ data: Empty;
1344
+ /**
1345
+ * What went wrong, for people; it never contains input values.
1346
+ */
1347
+ message: string;
1348
+ /**
1349
+ * Whether repeating the same request may succeed.
1350
+ */
1351
+ retryable: false;
1352
+ }
1353
+ /**
1354
+ * WhatsApp never confirmed whether the message was sent. It was not sent again.
1355
+ */
1356
+ export interface RaizWhatsappDeliveryUnconfirmedFailure {
1357
+ /**
1358
+ * The failure code, stable across releases.
1359
+ */
1360
+ code: "WHATSAPP_DELIVERY_UNCONFIRMED";
1361
+ /**
1362
+ * No fields.
1363
+ */
1364
+ data: Empty;
1365
+ /**
1366
+ * What went wrong, for people; it never contains input values.
1367
+ */
1368
+ message: string;
1369
+ /**
1370
+ * Whether repeating the same request may succeed.
1371
+ */
1372
+ retryable: false;
1373
+ }
1374
+ /**
1375
+ * WhatsApp limited how many marketing messages this person receives. Wait at
1376
+ * least a day before sending again.
1377
+ */
1378
+ export interface RaizWhatsappEngagementLimitedFailure {
1379
+ /**
1380
+ * The failure code, stable across releases.
1381
+ */
1382
+ code: "WHATSAPP_ENGAGEMENT_LIMITED";
1383
+ /**
1384
+ * No fields.
1385
+ */
1386
+ data: Empty;
1387
+ /**
1388
+ * What went wrong, for people; it never contains input values.
1389
+ */
1390
+ message: string;
1391
+ /**
1392
+ * Whether repeating the same request may succeed.
1393
+ */
1394
+ retryable: true;
1395
+ }
1396
+ /**
1397
+ * The contact chose to stop receiving marketing messages from this business.
1398
+ */
1399
+ export interface RaizWhatsappMarketingStoppedFailure {
1400
+ /**
1401
+ * The failure code, stable across releases.
1402
+ */
1403
+ code: "WHATSAPP_MARKETING_STOPPED";
1404
+ /**
1405
+ * No fields.
1406
+ */
1407
+ data: Empty;
1408
+ /**
1409
+ * What went wrong, for people; it never contains input values.
1410
+ */
1411
+ message: string;
1412
+ /**
1413
+ * Whether repeating the same request may succeed.
1414
+ */
1415
+ retryable: false;
1416
+ }
1417
+ /**
1418
+ * WhatsApp could not use the attachment. Check its type and size limits.
1419
+ */
1420
+ export interface RaizWhatsappMediaRejectedFailure {
1421
+ /**
1422
+ * The failure code, stable across releases.
1423
+ */
1424
+ code: "WHATSAPP_MEDIA_REJECTED";
1425
+ /**
1426
+ * No fields.
1427
+ */
1428
+ data: Empty;
1429
+ /**
1430
+ * What went wrong, for people; it never contains input values.
1431
+ */
1432
+ message: string;
1433
+ /**
1434
+ * Whether repeating the same request may succeed.
1435
+ */
1436
+ retryable: false;
1437
+ }
1438
+ /**
1439
+ * This message cannot be sent on WhatsApp: it allows one attachment per
1440
+ * message, up to three buttons or ten list options, and text of up to 4096
1441
+ * characters.
1442
+ */
1443
+ export interface RaizWhatsappMessageUnsupportedFailure {
1444
+ /**
1445
+ * The failure code, stable across releases.
1446
+ */
1447
+ code: "WHATSAPP_MESSAGE_UNSUPPORTED";
1448
+ /**
1449
+ * No fields.
1450
+ */
1451
+ data: Empty;
1452
+ /**
1453
+ * What went wrong, for people; it never contains input values.
1454
+ */
1455
+ message: string;
1456
+ /**
1457
+ * Whether repeating the same request may succeed.
1458
+ */
1459
+ retryable: false;
1460
+ }
1461
+ /**
1462
+ * The message was stored but never handed to WhatsApp. It was not sent.
1463
+ */
1464
+ export interface RaizWhatsappNotSentFailure {
1465
+ /**
1466
+ * The failure code, stable across releases.
1467
+ */
1468
+ code: "WHATSAPP_NOT_SENT";
1469
+ /**
1470
+ * No fields.
1471
+ */
1472
+ data: Empty;
1473
+ /**
1474
+ * What went wrong, for people; it never contains input values.
1475
+ */
1476
+ message: string;
1477
+ /**
1478
+ * Whether repeating the same request may succeed.
1479
+ */
1480
+ retryable: false;
1481
+ }
1482
+ /**
1483
+ * The recipient cannot receive WhatsApp messages from this number.
1484
+ */
1485
+ export interface RaizWhatsappRecipientUnavailableFailure {
1486
+ /**
1487
+ * The failure code, stable across releases.
1488
+ */
1489
+ code: "WHATSAPP_RECIPIENT_UNAVAILABLE";
1490
+ /**
1491
+ * No fields.
1492
+ */
1493
+ data: Empty;
1494
+ /**
1495
+ * What went wrong, for people; it never contains input values.
1496
+ */
1497
+ message: string;
1498
+ /**
1499
+ * Whether repeating the same request may succeed.
1500
+ */
1501
+ retryable: false;
1502
+ }
105
1503
  export interface RaizWidgetAgentChoice {
106
1504
  /**
107
1505
  * A text Agent of the same organization.
@@ -119,6 +1517,27 @@ export interface RaizWidgetClientTool {
119
1517
  type: "string" | "number" | "boolean";
120
1518
  }[];
121
1519
  }
1520
+ /**
1521
+ * The request cannot be repeated or another turn is active.
1522
+ */
1523
+ export interface RaizWidgetConflictFailure {
1524
+ /**
1525
+ * The failure code, stable across releases.
1526
+ */
1527
+ code: "WIDGET_CONFLICT";
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
+ }
122
1541
  export interface RaizWidgetCopy {
123
1542
  consentText?: string;
124
1543
  firstMessageLabel?: string;
@@ -148,6 +1567,50 @@ export interface RaizWidgetField {
148
1567
  */
149
1568
  width?: "full" | "half";
150
1569
  }
1570
+ /**
1571
+ * The request outcome could not be confirmed. Do not repeat it with a new
1572
+ * identifier.
1573
+ */
1574
+ export interface RaizWidgetInternalFailure {
1575
+ /**
1576
+ * The failure code, stable across releases.
1577
+ */
1578
+ code: "WIDGET_INTERNAL";
1579
+ /**
1580
+ * No fields.
1581
+ */
1582
+ data: Empty;
1583
+ /**
1584
+ * What went wrong, for people; it never contains input values.
1585
+ */
1586
+ message: string;
1587
+ /**
1588
+ * Whether repeating the same request may succeed.
1589
+ */
1590
+ retryable: false;
1591
+ }
1592
+ /**
1593
+ * This widget reached its conversations or messages for today. It takes
1594
+ * visitors again after 00:00 UTC.
1595
+ */
1596
+ export interface RaizWidgetLimitReachedFailure {
1597
+ /**
1598
+ * The failure code, stable across releases.
1599
+ */
1600
+ code: "WIDGET_LIMIT_REACHED";
1601
+ /**
1602
+ * No fields.
1603
+ */
1604
+ data: Empty;
1605
+ /**
1606
+ * What went wrong, for people; it never contains input values.
1607
+ */
1608
+ message: string;
1609
+ /**
1610
+ * Whether repeating the same request may succeed.
1611
+ */
1612
+ retryable: true;
1613
+ }
151
1614
  export interface RaizWidgetPublication {
152
1615
  /**
153
1616
  * Visitors can start now: no `problems`. The hosted page answers at `url`,
@@ -163,6 +1626,27 @@ export interface RaizWidgetPublication {
163
1626
  problems: ("CHANNEL_INACTIVE" | "PAUSED" | "AGENT_REQUIRED" | "AGENT_PAUSED" | "NOT_PLACED")[];
164
1627
  url: string | null;
165
1628
  }
1629
+ /**
1630
+ * This widget session is unavailable.
1631
+ */
1632
+ export interface RaizWidgetRefusedFailure {
1633
+ /**
1634
+ * The failure code, stable across releases.
1635
+ */
1636
+ code: "WIDGET_REFUSED";
1637
+ /**
1638
+ * No fields.
1639
+ */
1640
+ data: Empty;
1641
+ /**
1642
+ * What went wrong, for people; it never contains input values.
1643
+ */
1644
+ message: string;
1645
+ /**
1646
+ * Whether repeating the same request may succeed.
1647
+ */
1648
+ retryable: false;
1649
+ }
166
1650
  export interface RaizWidgetSettings {
167
1651
  /**
168
1652
  * Up to 6 more Agents the visitor may pick; each Agent at most once.
@@ -594,5 +2078,30 @@ export interface RaizWidgetTranslations {
594
2078
  en?: RaizWidgetCopy;
595
2079
  es?: RaizWidgetCopy;
596
2080
  }
2081
+ /**
2082
+ * The voice message could not be understood. Record it again or write the
2083
+ * message.
2084
+ */
2085
+ export interface RaizWidgetVoiceUnheardFailure {
2086
+ /**
2087
+ * The failure code, stable across releases.
2088
+ */
2089
+ code: "WIDGET_VOICE_UNHEARD";
2090
+ /**
2091
+ * No fields.
2092
+ */
2093
+ data: Empty;
2094
+ /**
2095
+ * What went wrong, for people; it never contains input values.
2096
+ */
2097
+ message: string;
2098
+ /**
2099
+ * Whether repeating the same request may succeed.
2100
+ */
2101
+ retryable: false;
2102
+ }
597
2103
  export declare const RaizChannelCodec: import("../../_/codec.js").Codec;
598
2104
  export declare const RaizChannelPageCodec: import("../../_/codec.js").Codec;
2105
+ export declare const RaizChannelPageResponseCodec: import("../../_/codec.js").Codec;
2106
+ export declare const RaizChannelResponseCodec: import("../../_/codec.js").Codec;
2107
+ export declare const RaizUpdateChannelBodyCodec: import("../../_/codec.js").Codec;