@arbol-ai/sdk 5.44.0 → 5.46.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 +32 -158
  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 +334 -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 +1499 -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,4 +1,46 @@
1
- import type { Failure, PageInfo, ValidationIssue } from "../models.js";
1
+ import type { Empty, PageInfo, ResponseMetadata } from "../models.js";
2
+ /**
3
+ * The patient's age on that day is outside this service's age rule.
4
+ */
5
+ export interface AgendaAgeNotEligibleFailure {
6
+ /**
7
+ * The failure code, stable across releases.
8
+ */
9
+ code: "AGE_NOT_ELIGIBLE";
10
+ /**
11
+ * No fields.
12
+ */
13
+ data: Empty;
14
+ /**
15
+ * What went wrong, for people; it never contains input values.
16
+ */
17
+ message: string;
18
+ /**
19
+ * Whether repeating the same request may succeed.
20
+ */
21
+ retryable: false;
22
+ }
23
+ /**
24
+ * Send the request as application/json.
25
+ */
26
+ export interface AgendaApplicationJsonRequiredFailure {
27
+ /**
28
+ * The failure code, stable across releases.
29
+ */
30
+ code: "APPLICATION_JSON_REQUIRED";
31
+ /**
32
+ * No fields.
33
+ */
34
+ data: Empty;
35
+ /**
36
+ * What went wrong, for people; it never contains input values.
37
+ */
38
+ message: string;
39
+ /**
40
+ * Whether repeating the same request may succeed.
41
+ */
42
+ retryable: false;
43
+ }
2
44
  export interface AgendaAppointment {
3
45
  /**
4
46
  * Booking source recorded on the appointment; null when no channel was
@@ -115,6 +157,27 @@ export interface AgendaAppointment {
115
157
  */
116
158
  version: number;
117
159
  }
160
+ /**
161
+ * A cancelled appointment cannot be edited.
162
+ */
163
+ export interface AgendaAppointmentClosedFailure {
164
+ /**
165
+ * The failure code, stable across releases.
166
+ */
167
+ code: "APPOINTMENT_CLOSED";
168
+ /**
169
+ * No fields.
170
+ */
171
+ data: Empty;
172
+ /**
173
+ * What went wrong, for people; it never contains input values.
174
+ */
175
+ message: string;
176
+ /**
177
+ * Whether repeating the same request may succeed.
178
+ */
179
+ retryable: false;
180
+ }
118
181
  export interface AgendaAppointmentIntake {
119
182
  /**
120
183
  * Payer authorization reference recorded with this appointment; null when
@@ -199,6 +262,60 @@ export interface AgendaAppointmentIntakeInput {
199
262
  */
200
263
  priority?: "normal" | "urgent";
201
264
  }
265
+ /**
266
+ * A closed appointment cannot be moved.
267
+ */
268
+ export interface AgendaAppointmentNotMovableFailure {
269
+ /**
270
+ * The failure code, stable across releases.
271
+ */
272
+ code: "APPOINTMENT_NOT_MOVABLE";
273
+ /**
274
+ * No fields.
275
+ */
276
+ data: Empty;
277
+ /**
278
+ * What went wrong, for people; it never contains input values.
279
+ */
280
+ message: string;
281
+ /**
282
+ * Whether repeating the same request may succeed.
283
+ */
284
+ retryable: false;
285
+ }
286
+ /**
287
+ * Only an open future appointment with a patient email can receive a reminder.
288
+ */
289
+ export interface AgendaAppointmentNotRemindableFailure {
290
+ /**
291
+ * The failure code, stable across releases.
292
+ */
293
+ code: "APPOINTMENT_NOT_REMINDABLE";
294
+ /**
295
+ * No fields.
296
+ */
297
+ data: Empty;
298
+ /**
299
+ * What went wrong, for people; it never contains input values.
300
+ */
301
+ message: string;
302
+ /**
303
+ * Whether repeating the same request may succeed.
304
+ */
305
+ retryable: false;
306
+ }
307
+ /**
308
+ * A successful answer.
309
+ */
310
+ export interface AgendaAppointmentResponse {
311
+ data: AgendaAppointment;
312
+ error: null;
313
+ /**
314
+ * What every answer carries besides its data or error.
315
+ */
316
+ metadata: ResponseMetadata;
317
+ success: true;
318
+ }
202
319
  export interface AgendaAppointmentStatusChange {
203
320
  /**
204
321
  * Instant when the appointment change was recorded.
@@ -215,910 +332,2147 @@ export interface AgendaAppointmentStatusChange {
215
332
  */
216
333
  reason: string | null;
217
334
  }
218
- export interface AgendaFailureResponse {
219
- data: null;
220
- error: Failure & ({
221
- code: "INVALID_INPUT";
222
- data: {
223
- issues?: ValidationIssue[];
224
- };
225
- message: "The request does not match the published schema.";
226
- retryable: false;
227
- } | {
228
- code: "UNAUTHORIZED";
229
- data: {
230
- [key: string]: unknown;
231
- };
232
- message: "A valid access token is required.";
233
- retryable: false;
234
- } | {
235
- code: "FORBIDDEN";
236
- data: {
237
- [key: string]: unknown;
238
- };
239
- message: "The token does not authorize this operation.";
240
- retryable: false;
241
- } | {
242
- code: "NOT_FOUND";
243
- data: {
244
- [key: string]: unknown;
245
- };
246
- message: "The requested resource does not exist.";
247
- retryable: false;
248
- } | {
249
- code: "HTTP_METHOD_NOT_ALLOWED";
250
- data: {
251
- [key: string]: unknown;
252
- };
253
- message: "The HTTP method is not supported for this resource.";
254
- retryable: false;
255
- } | {
256
- code: "REQUEST_TOO_LARGE";
257
- data: {
258
- [key: string]: unknown;
259
- };
260
- message: "The request exceeds the allowed size.";
261
- retryable: false;
262
- } | {
263
- code: "UNSUPPORTED_MEDIA_TYPE";
264
- data: {
265
- [key: string]: unknown;
266
- };
267
- message: "The request content type is not supported.";
268
- retryable: false;
269
- } | {
270
- code: "RATE_LIMITED";
271
- data: {
272
- [key: string]: unknown;
273
- };
274
- message: "The request rate limit was exceeded. Try again later.";
275
- retryable: true;
276
- } | {
277
- code: "INTERNAL_ERROR";
278
- data: {
279
- [key: string]: unknown;
280
- };
281
- message: "The service could not complete the operation.";
282
- retryable: false;
283
- } | {
284
- code: "UPSTREAM_UNAVAILABLE";
285
- data: {
286
- [key: string]: unknown;
287
- };
288
- message: "The upstream service could not complete the request.";
289
- retryable: true;
290
- } | {
291
- code: "UPSTREAM_TIMEOUT";
292
- data: {
293
- [key: string]: unknown;
294
- };
295
- message: "The upstream service did not respond before its deadline.";
296
- retryable: true;
297
- } | {
298
- code: "OUTCOME_UNKNOWN";
299
- data: {
300
- [key: string]: unknown;
301
- };
302
- message: "The operation may have been applied; check its result before repeating it.";
303
- retryable: false;
304
- } | {
305
- code: "WAITLIST_SERVICE_UNAVAILABLE";
306
- data: {
307
- [key: string]: unknown;
308
- };
309
- message: "Correct serviceId using serviceId from bookingOfferings.list. Search a short service term such as neurología, then inspect the matching service name. Never invent an ID. No waiting-list entry was changed; correct this field and retry with the same consent.";
310
- retryable: false;
311
- } | {
312
- code: "WAITLIST_RESOURCE_UNAVAILABLE";
313
- data: {
314
- [key: string]: unknown;
315
- };
316
- message: "The requested professional is not an active agenda for this service. Use resourceName for the requested professional or copy agendas[].id from bookingOfferings.list, never the offering id. If both are supplied, they must agree. No waiting-list entry was changed. Correct the reference with the same consent. If a verified provider professional is absent from Agenda, omit resourceName, clear resourceId and explicitly restrict the manual request to that professional in note.";
317
- retryable: false;
318
- } | {
319
- code: "WAITLIST_RESOURCE_AMBIGUOUS";
320
- data: {
321
- [key: string]: unknown;
322
- };
323
- message: "More than one active agenda matches resourceName for this service. Read bookingOfferings.list and provide the complete requested professional name or its agendas[].id. No waiting-list entry was changed.";
324
- retryable: false;
325
- } | {
326
- code: "INVALID_APPOINTMENT_INTAKE";
327
- data: {
328
- issues: {
329
- code: "REQUIRED_FIELD" | "UNKNOWN_DOCUMENT_TYPE" | "UNKNOWN_CUSTOM_FIELD" | "INVALID_CUSTOM_FIELD";
330
- path: (string | number)[];
331
- }[];
332
- };
333
- message: "Correct the indicated patient or intake fields before booking.";
334
- retryable: false;
335
- } | {
336
- code: "INVALID_PATIENT_FIELDS";
337
- data: {
338
- issues: {
339
- code: "REQUIRED_FIELD" | "UNKNOWN_DOCUMENT_TYPE" | "UNKNOWN_CUSTOM_FIELD" | "INVALID_CUSTOM_FIELD";
340
- path: (string | number)[];
341
- }[];
342
- };
343
- message: "Correct the indicated patient fields before saving.";
344
- retryable: false;
345
- } | {
346
- code: "PAYER_STAFF_ONLY";
347
- data: {
348
- [key: string]: unknown;
349
- };
350
- message: "This payer requires booking by the organization team. Add the patient to the waitlist for review.";
351
- retryable: false;
352
- } | {
353
- code: "APPLICATION_JSON_REQUIRED";
354
- data: {
355
- [key: string]: unknown;
356
- };
357
- message: "Send the request as application/json.";
358
- retryable: false;
359
- } | {
360
- code: "APPOINTMENT_NOT_REMINDABLE";
361
- data: {
362
- [key: string]: unknown;
363
- };
364
- message: "Only an open future appointment with a patient email can receive a reminder.";
365
- retryable: false;
366
- } | {
367
- code: "APPOINTMENT_WITHOUT_PATIENT";
368
- data: {
369
- [key: string]: unknown;
370
- };
371
- message: "Link a patient to this appointment before performing this action.";
372
- retryable: false;
373
- } | {
374
- code: "ARBOL_CATALOG_TOO_LARGE";
375
- data: {
376
- [key: string]: unknown;
377
- };
378
- message: "The integration catalog exceeds the supported size. Narrow the catalog before retrying.";
379
- retryable: false;
380
- } | {
381
- code: "ARBOL_CONFIGURATION_REQUIRED";
382
- data: {
383
- [key: string]: unknown;
384
- };
385
- message: "Configure the organization integration before using it.";
386
- retryable: false;
387
- } | {
388
- code: "ARBOL_RESPONSE_TOO_LARGE";
389
- data: {
390
- [key: string]: unknown;
391
- };
392
- message: "The integration response exceeds the supported size.";
393
- retryable: false;
394
- } | {
395
- code: "ARBOL_UNAVAILABLE";
396
- data: {
397
- [key: string]: unknown;
398
- };
399
- message: "The integration service is temporarily unavailable. Retry later.";
400
- retryable: true;
401
- } | {
402
- code: "DURATION_CHANGE_OFF";
403
- data: {
404
- [key: string]: unknown;
405
- };
406
- message: "This service does not allow changing appointment duration.";
407
- retryable: false;
408
- } | {
409
- code: "DURATION_NOT_ALLOWED";
410
- data: {
411
- [key: string]: unknown;
412
- };
413
- message: "Select a duration allowed by this service.";
414
- retryable: false;
415
- } | {
416
- code: "STUDY_LENGTH_NOT_OFFERED";
417
- data: {
418
- [key: string]: unknown;
419
- };
420
- message: "Select one of the study lengths this agenda offers.";
421
- retryable: false;
422
- } | {
423
- code: "FILE_CONTENT_MISMATCH";
424
- data: {
425
- [key: string]: unknown;
426
- };
427
- message: "The uploaded content does not match its declared file type.";
428
- retryable: false;
429
- } | {
430
- code: "ID_TOKEN_MISMATCH";
431
- data: {
432
- [key: string]: unknown;
433
- };
434
- message: "The identity token does not match the authenticated user.";
435
- retryable: false;
436
- } | {
437
- code: "INVALID_FILE_KIND";
438
- data: {
439
- [key: string]: unknown;
440
- };
441
- message: "Select a supported attachment kind.";
442
- retryable: false;
443
- } | {
444
- code: "INVALID_FILE_NAME";
445
- data: {
446
- [key: string]: unknown;
447
- };
448
- message: "Provide a valid attachment filename.";
449
- retryable: false;
450
- } | {
451
- code: "INVALID_ID_TOKEN";
452
- data: {
453
- [key: string]: unknown;
454
- };
455
- message: "Provide a valid identity token.";
456
- retryable: false;
457
- } | {
458
- code: "INVALID_JSON";
459
- data: {
460
- [key: string]: unknown;
461
- };
462
- message: "Send a valid JSON document.";
463
- retryable: false;
464
- } | {
465
- code: "INVALID_WINDOW";
466
- data: {
467
- [key: string]: unknown;
468
- };
469
- message: "Provide a positive time window within the supported range.";
470
- retryable: false;
471
- } | {
472
- code: "UPGRADE_REQUIRED";
473
- data: {
474
- [key: string]: unknown;
475
- };
476
- message: "Open the live channel with a WebSocket upgrade.";
477
- retryable: false;
478
- } | {
479
- code: "NOT_FILE_UPLOADER";
480
- data: {
481
- [key: string]: unknown;
482
- };
483
- message: "Only the uploader may delete this attachment.";
484
- retryable: false;
485
- } | {
486
- code: "NOT_NOTE_AUTHOR";
487
- data: {
488
- [key: string]: unknown;
489
- };
490
- message: "Only the author may edit or delete this note.";
491
- retryable: false;
492
- } | {
493
- code: "ORIGIN_NOT_ALLOWED";
494
- data: {
495
- [key: string]: unknown;
496
- };
497
- message: "This request origin is not allowed.";
498
- retryable: false;
499
- } | {
500
- code: "UNEXPECTED_QUERY_PARAMETERS";
501
- data: {
502
- [key: string]: unknown;
503
- };
504
- message: "Remove query parameters not declared by this operation.";
505
- retryable: false;
506
- } | {
507
- code: "UNSUPPORTED_CONTENT_ENCODING";
508
- data: {
509
- [key: string]: unknown;
510
- };
511
- message: "Send an uncompressed request body.";
512
- retryable: false;
513
- } | {
514
- code: "UNSUPPORTED_FILE_TYPE";
515
- data: {
516
- [key: string]: unknown;
517
- };
518
- message: "Select a supported attachment file type.";
519
- retryable: false;
520
- } | {
521
- code: "NOTIFICATIONS_NOT_SET_UP";
522
- data: {
523
- [key: string]: unknown;
524
- };
525
- message: "Patient emails need the notifications module turned on.";
526
- retryable: false;
527
- } | {
528
- code: "SAME_OFFERING";
529
- data: {
530
- [key: string]: unknown;
531
- };
532
- message: "An agenda cannot take its own appointments.";
533
- retryable: false;
534
- } | {
535
- code: "SAME_SERVICE";
536
- data: {
537
- [key: string]: unknown;
538
- };
539
- message: "A service cannot be merged into itself.";
540
- retryable: false;
541
- } | {
542
- code: "INVALID_HOLD_PAYLOAD";
543
- data: {
544
- [key: string]: unknown;
545
- };
546
- message: "The held slot is malformed.";
547
- retryable: false;
548
- } | {
549
- code: "HOLD_NOT_ACTIVE";
550
- data: {
551
- [key: string]: unknown;
552
- };
553
- message: "The hold is no longer active.";
554
- retryable: false;
555
- } | {
556
- code: "APPOINTMENT_CLOSED";
557
- data: {
558
- [key: string]: unknown;
559
- };
560
- message: "A cancelled appointment cannot be edited.";
561
- retryable: false;
562
- } | {
563
- code: "APPOINTMENT_VERSION_MISMATCH";
564
- data: {
565
- [key: string]: unknown;
566
- };
567
- message: "The appointment changed after it was loaded.";
568
- retryable: false;
569
- } | {
570
- code: "APPOINTMENT_NOT_MOVABLE";
571
- data: {
572
- [key: string]: unknown;
573
- };
574
- message: "A closed appointment cannot be moved.";
575
- retryable: false;
576
- } | {
577
- code: "SERVICE_CHANGED";
578
- data: {
579
- [key: string]: unknown;
580
- };
581
- message: "The new slot belongs to another service.";
582
- retryable: false;
583
- } | {
584
- code: "SCHEDULE_CHANGED";
585
- data: {
586
- [key: string]: unknown;
587
- };
588
- message: "The selected time no longer matches the current schedule.";
589
- retryable: false;
590
- } | {
591
- code: "INVALID_AVAILABILITY_WINDOW";
592
- data: {
593
- [key: string]: unknown;
594
- };
595
- message: "Availability windows must be positive and at most 31 days.";
596
- retryable: false;
597
- } | {
598
- code: "SERVICE_CAPACITY_EXCEEDED";
599
- data: {
600
- [key: string]: unknown;
601
- };
602
- message: "This service already has as many appointments as it can run at once at that time.";
603
- retryable: false;
604
- } | {
605
- code: "RESOURCE_CAPACITY_EXCEEDED";
606
- data: {
607
- [key: string]: unknown;
608
- };
609
- message: "The selected time is no longer available.";
610
- retryable: false;
611
- } | {
612
- code: "OVERBOOK_OUT_OF_RANGE";
613
- data: {
614
- [key: string]: unknown;
615
- };
616
- message: "An overbooked appointment must start between yesterday and the booking horizon.";
617
- retryable: false;
618
- } | {
619
- code: "OVERBOOK_UNAVAILABLE";
620
- data: {
621
- [key: string]: unknown;
622
- };
623
- message: "No active agenda can take this appointment.";
624
- retryable: false;
625
- } | {
626
- code: "STUDY_OVERBOOKING_NOT_ALLOWED";
627
- data: {
628
- [key: string]: unknown;
629
- };
630
- message: "This study has an explicit capacity limit and requires an available ordinary slot.";
631
- retryable: false;
632
- } | {
633
- code: "INVALID_SLOT_TOKEN";
634
- data: {
635
- [key: string]: unknown;
636
- };
637
- message: "Request a fresh available slot before booking.";
638
- retryable: false;
639
- } | {
640
- code: "BIRTH_DATE_REQUIRED";
641
- data: {
642
- [key: string]: unknown;
643
- };
644
- message: "This service has an age rule: the patient's date of birth is required.";
645
- retryable: false;
646
- } | {
647
- code: "AGE_NOT_ELIGIBLE";
648
- data: {
649
- [key: string]: unknown;
650
- };
651
- message: "The patient's age on that day is outside this service's age rule.";
652
- retryable: false;
653
- } | {
654
- code: "INTAKE_SETTINGS_VERSION_MISMATCH";
655
- data: {
656
- [key: string]: unknown;
657
- };
658
- message: "Intake settings changed; reload before saving.";
659
- retryable: false;
660
- } | {
661
- code: "PAYER_NAME_TAKEN";
662
- data: {
663
- [key: string]: unknown;
664
- };
665
- message: "Another payer already has that name.";
666
- retryable: false;
667
- } | {
668
- code: "PAYER_VERSION_MISMATCH";
669
- data: {
670
- [key: string]: unknown;
671
- };
672
- message: "The payer changed; reload before saving.";
673
- retryable: false;
674
- } | {
675
- code: "LOCATION_VERSION_MISMATCH";
676
- data: {
677
- [key: string]: unknown;
678
- };
679
- message: "The site changed after it was loaded.";
680
- retryable: false;
681
- } | {
682
- code: "PROFILE_VERSION_MISMATCH";
683
- data: {
684
- [key: string]: unknown;
685
- };
686
- message: "The profile changed after it was loaded.";
687
- retryable: false;
688
- } | {
689
- code: "PROVIDER_DISABLED";
690
- data: {
691
- [key: string]: unknown;
692
- };
693
- message: "Enable the provider integration before using it.";
694
- retryable: false;
695
- } | {
696
- code: "BINDING_VERSION_MISMATCH";
697
- data: {
698
- [key: string]: unknown;
699
- };
700
- message: "Connection changed or is synchronizing; refresh and retry.";
701
- retryable: false;
702
- } | {
703
- code: "RESOURCE_VERSION_MISMATCH";
704
- data: {
705
- [key: string]: unknown;
706
- };
707
- message: "The resource changed after it was loaded.";
708
- retryable: false;
709
- } | {
710
- code: "SCHEDULE_RULE_AGENDA_MISMATCH";
711
- data: {
712
- [key: string]: unknown;
713
- };
714
- message: "The schedule rule belongs to another agenda.";
715
- retryable: false;
716
- } | {
717
- code: "SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED";
718
- data: {
719
- [key: string]: unknown;
720
- };
721
- message: "Expected version is required for an update.";
722
- retryable: false;
723
- } | {
724
- code: "SCHEDULE_RULE_VERSION_MISMATCH";
725
- data: {
726
- [key: string]: unknown;
727
- };
728
- message: "The schedule rule changed after it was loaded.";
729
- retryable: false;
730
- } | {
731
- code: "SCHEDULE_RULES_CHANGED";
732
- data: {
733
- [key: string]: unknown;
734
- };
735
- message: "The schedule changed after it was loaded.";
736
- retryable: false;
737
- } | {
738
- code: "SERVICE_VERSION_MISMATCH";
739
- data: {
740
- [key: string]: unknown;
741
- };
742
- message: "The service changed after it was loaded.";
743
- retryable: false;
744
- } | {
745
- code: "OFFERING_VERSION_MISMATCH";
746
- data: {
747
- [key: string]: unknown;
748
- };
749
- message: "The offering changed after it was loaded.";
750
- retryable: false;
751
- } | {
752
- code: "SAME_RESOURCE";
753
- data: {
754
- [key: string]: unknown;
755
- };
756
- message: "An agenda cannot take its own appointments.";
757
- retryable: false;
758
- } | {
759
- code: "TARGET_INACTIVE";
760
- data: {
761
- [key: string]: unknown;
762
- };
763
- message: "An archived agenda takes no appointments.";
764
- retryable: false;
765
- } | {
766
- code: "SLOT_REQUIRED";
767
- data: {
768
- [key: string]: unknown;
769
- };
770
- message: "A hold or slot token is required.";
771
- retryable: false;
772
- } | {
773
- code: "ARBOL_SETTINGS_VERSION_MISMATCH";
774
- data: {
775
- [key: string]: unknown;
776
- };
777
- message: "Arbol settings changed.";
778
- retryable: false;
779
- } | {
780
- code: "NOTIFICATION_SETTINGS_VERSION_MISMATCH";
781
- data: {
782
- [key: string]: unknown;
783
- };
784
- message: "Notification settings changed; reload before saving.";
785
- retryable: false;
786
- } | {
787
- code: "ORGANIZATION_VERSION_MISMATCH";
788
- data: {
789
- [key: string]: unknown;
790
- };
791
- message: "The organization changed; reload before saving.";
792
- retryable: false;
793
- } | {
794
- code: "PATIENT_DOCUMENT_TAKEN";
795
- data: {
796
- [key: string]: unknown;
797
- };
798
- message: "Another patient has that document.";
799
- retryable: false;
800
- } | {
801
- code: "PATIENT_VERSION_MISMATCH";
802
- data: {
803
- [key: string]: unknown;
804
- };
805
- message: "The patient changed after it was loaded.";
806
- retryable: false;
807
- } | {
808
- code: "DAILY_REPORT_TOO_LARGE";
809
- data: {
810
- [key: string]: unknown;
811
- };
812
- message: "Daily report exceeds the supported size; no partial report was generated.";
813
- retryable: false;
814
- } | {
815
- code: "REPORT_SETTINGS_VERSION_MISMATCH";
816
- data: {
817
- [key: string]: unknown;
818
- };
819
- message: "Report settings changed; reload before saving.";
820
- retryable: false;
821
- } | {
822
- code: "REPORT_NOTIFICATIONS_DISABLED";
823
- data: {
824
- [key: string]: unknown;
825
- };
826
- message: "Enable the notifications module before sending a daily agenda.";
827
- retryable: false;
828
- } | {
829
- code: "REPORT_RECIPIENTS_REQUIRED";
830
- data: {
831
- [key: string]: unknown;
832
- };
833
- message: "No eligible organization owner or additional delivery address is available for this agenda.";
834
- retryable: false;
835
- } | {
836
- code: "WAITLIST_ENTRY_VERSION_MISMATCH";
837
- data: {
838
- [key: string]: unknown;
839
- };
840
- message: "The waitlist entry changed; reload before saving.";
841
- retryable: false;
842
- } | {
843
- code: "REMOVAL_WORKFLOW_UNAVAILABLE";
844
- data: {
845
- [key: string]: unknown;
846
- };
847
- message: "Durable removal is unavailable here; use the bounded manual removal operations.";
848
- retryable: false;
849
- } | {
850
- code: "REMOVAL_JOB_CONFLICT";
851
- data: {
852
- [key: string]: unknown;
853
- };
854
- message: "A removal is already active, or this idempotency key belongs to another decision.";
855
- retryable: false;
856
- } | {
857
- code: "INVALID_BODY";
858
- data: {
859
- [key: string]: unknown;
860
- };
861
- message: "The request body could not be read. Send valid uncompressed JSON.";
862
- retryable: false;
863
- } | {
864
- code: "ARBOL_REFUSED";
865
- data: {
866
- [key: string]: unknown;
867
- };
868
- message: "The integration service rejected this request. Review its configuration.";
869
- retryable: false;
870
- } | {
871
- code: "FOLLOWUP_SETTINGS_VERSION_MISMATCH";
872
- data: {
873
- [key: string]: unknown;
874
- };
875
- message: "Follow-up email settings changed; reload before saving.";
876
- retryable: false;
877
- } | {
878
- code: "FOLLOWUP_DISABLED";
879
- data: {
880
- [key: string]: unknown;
881
- };
882
- message: "Turn this follow-up email on in the notification settings first.";
883
- retryable: false;
884
- } | {
885
- code: "FOLLOWUP_CONSENT_REQUIRED";
886
- data: {
887
- [key: string]: unknown;
888
- };
889
- message: "The patient has not consented to this follow-up email for their current address.";
890
- retryable: false;
891
- } | {
892
- code: "PATIENT_EMAIL_REQUIRED";
893
- data: {
894
- [key: string]: unknown;
895
- };
896
- message: "Record the patient's email before this action.";
897
- retryable: false;
898
- } | {
899
- code: "PATIENT_ARCHIVED";
900
- data: {
901
- [key: string]: unknown;
902
- };
903
- message: "Restore the patient before this action.";
904
- retryable: false;
905
- } | {
906
- code: "RECALL_ALREADY_ACTIVE";
907
- data: {
908
- [key: string]: unknown;
909
- };
910
- message: "The patient already has an active recall for this service.";
911
- retryable: false;
912
- } | {
913
- code: "RECALL_MONTH_PASSED";
914
- data: {
915
- [key: string]: unknown;
916
- };
917
- message: "The recall's month has already passed.";
918
- retryable: false;
919
- } | {
920
- code: "RECALL_VISIT_REQUIRED";
921
- data: {
922
- [key: string]: unknown;
923
- };
924
- message: "Enter the last visit: there is no attended appointment of this service for the patient.";
925
- retryable: false;
926
- } | {
927
- code: "RECALL_VISIT_IN_FUTURE";
928
- data: {
929
- [key: string]: unknown;
930
- };
931
- message: "The last visit must be a past date.";
932
- retryable: false;
933
- } | {
934
- code: "RECALL_VERSION_MISMATCH";
935
- data: {
936
- [key: string]: unknown;
937
- };
938
- message: "The recall changed after it was loaded.";
939
- retryable: false;
940
- } | {
941
- code: "SLOT_OFFER_NOT_ALLOWED";
942
- data: {
943
- [key: string]: unknown;
944
- };
945
- message: "Only an open waiting-list entry of a registered patient can receive a slot offer.";
946
- retryable: false;
947
- } | {
948
- code: "SLOT_OFFER_MISMATCH";
949
- data: {
950
- [key: string]: unknown;
951
- };
952
- message: "The slot belongs to another service or agenda than the entry asks for.";
953
- retryable: false;
954
- } | {
955
- code: "SLOT_OFFER_TOO_SOON";
956
- data: {
957
- [key: string]: unknown;
958
- };
959
- message: "The slot starts too soon to hold it for the patient; offer a later one.";
960
- retryable: false;
961
- } | {
962
- code: "SLOT_OFFER_ALREADY_OPEN";
963
- data: {
964
- [key: string]: unknown;
965
- };
966
- message: "This waiting-list entry already has an open slot offer.";
967
- retryable: false;
968
- } | {
969
- code: "SLOT_OFFER_CLOSED";
970
- data: {
971
- [key: string]: unknown;
972
- };
973
- message: "The slot offer is no longer open.";
974
- retryable: false;
975
- });
976
- metadata: AgendaResponseMetadata;
977
- success: false;
335
+ /**
336
+ * The appointment changed after it was loaded.
337
+ */
338
+ export interface AgendaAppointmentVersionMismatchFailure {
339
+ /**
340
+ * The failure code, stable across releases.
341
+ */
342
+ code: "APPOINTMENT_VERSION_MISMATCH";
343
+ /**
344
+ * No fields.
345
+ */
346
+ data: Empty;
347
+ /**
348
+ * What went wrong, for people; it never contains input values.
349
+ */
350
+ message: string;
351
+ /**
352
+ * Whether repeating the same request may succeed.
353
+ */
354
+ retryable: false;
978
355
  }
979
- export interface AgendaLocation {
356
+ /**
357
+ * Link a patient to this appointment before performing this action.
358
+ */
359
+ export interface AgendaAppointmentWithoutPatientFailure {
980
360
  /**
981
- * Street address displayed with this clinic site; null when not configured.
361
+ * The failure code, stable across releases.
982
362
  */
983
- address: string | null;
363
+ code: "APPOINTMENT_WITHOUT_PATIENT";
984
364
  /**
985
- * City displayed with this clinic site; null when not configured.
365
+ * No fields.
986
366
  */
987
- city: string | null;
367
+ data: Empty;
988
368
  /**
989
- * Bounded JSON configuration owned by this catalog record, including
990
- * supported domain settings.
369
+ * What went wrong, for people; it never contains input values.
991
370
  */
992
- details: {
993
- [key: string]: unknown;
994
- };
371
+ message: string;
995
372
  /**
996
- * Stable loc-prefixed Scheduling record identifier; ownership is checked in
997
- * the authenticated organization.
373
+ * Whether repeating the same request may succeed.
998
374
  */
999
- id: string;
375
+ retryable: false;
376
+ }
377
+ /**
378
+ * The integration catalog exceeds the supported size. Narrow the catalog before
379
+ * retrying.
380
+ */
381
+ export interface AgendaArbolCatalogTooLargeFailure {
1000
382
  /**
1001
- * Display name of this catalog or configuration record.
383
+ * The failure code, stable across releases.
1002
384
  */
1003
- name: string;
385
+ code: "ARBOL_CATALOG_TOO_LARGE";
1004
386
  /**
1005
- * Stable resource discriminator identifying the response object kind.
387
+ * No fields.
1006
388
  */
1007
- object: "scheduling.location";
389
+ data: Empty;
1008
390
  /**
1009
- * Lifecycle state controlling whether this record remains available to its
1010
- * domain consumers.
391
+ * What went wrong, for people; it never contains input values.
1011
392
  */
1012
- status: "active" | "inactive";
393
+ message: string;
1013
394
  /**
1014
- * IANA timezone used to interpret local working hours, appointment dates and
1015
- * age eligibility.
395
+ * Whether repeating the same request may succeed.
1016
396
  */
1017
- timezone: string;
397
+ retryable: false;
398
+ }
399
+ /**
400
+ * Configure the organization integration before using it.
401
+ */
402
+ export interface AgendaArbolConfigurationRequiredFailure {
1018
403
  /**
1019
- * ISO 8601 instant with an explicit UTC or local offset; local-offset inputs
1020
- * are accepted.
404
+ * The failure code, stable across releases.
1021
405
  */
1022
- updatedAt: Temporal.Instant;
406
+ code: "ARBOL_CONFIGURATION_REQUIRED";
1023
407
  /**
1024
- * Persisted revision used to detect concurrent edits.
408
+ * No fields.
1025
409
  */
1026
- version: number;
410
+ data: Empty;
411
+ /**
412
+ * What went wrong, for people; it never contains input values.
413
+ */
414
+ message: string;
415
+ /**
416
+ * Whether repeating the same request may succeed.
417
+ */
418
+ retryable: false;
1027
419
  }
1028
- export interface AgendaLocationPage {
420
+ /**
421
+ * The integration service rejected this request. Review its configuration.
422
+ */
423
+ export interface AgendaArbolRefusedFailure {
1029
424
  /**
1030
- * Items admitted by this resource contract within the verified organization.
425
+ * The failure code, stable across releases.
1031
426
  */
1032
- data: AgendaLocation[];
427
+ code: "ARBOL_REFUSED";
1033
428
  /**
1034
- * Discriminator for a resource list response.
429
+ * No fields.
1035
430
  */
1036
- object: "list";
431
+ data: Empty;
1037
432
  /**
1038
- * Opaque navigation cursors for this page’s stable keyset order.
433
+ * What went wrong, for people; it never contains input values.
1039
434
  */
1040
- pageInfo: PageInfo;
435
+ message: string;
436
+ /**
437
+ * Whether repeating the same request may succeed.
438
+ */
439
+ retryable: false;
1041
440
  }
1042
- export interface AgendaPatientIdentity {
441
+ /**
442
+ * The integration response exceeds the supported size.
443
+ */
444
+ export interface AgendaArbolResponseTooLargeFailure {
1043
445
  /**
1044
- * Deprecated: use `documentNumber`. Answered until 2027-01-28.
1045
- *
1046
- * @deprecated
446
+ * The failure code, stable across releases.
1047
447
  */
1048
- document: string | null;
448
+ code: "ARBOL_RESPONSE_TOO_LARGE";
1049
449
  /**
1050
- * Normalized patient document number; null when no document is recorded.
1051
- * Identity combines its type and number.
450
+ * No fields.
1052
451
  */
1053
- documentNumber: string | null;
452
+ data: Empty;
1054
453
  /**
1055
- * Organization-configured document type code. A number without a supplied
1056
- * type uses the configured first type; no number means no stored type.
454
+ * What went wrong, for people; it never contains input values.
1057
455
  */
1058
- documentType: string | null;
456
+ message: string;
1059
457
  /**
1060
- * Patient display name with surrounding whitespace removed.
458
+ * Whether repeating the same request may succeed.
1061
459
  */
1062
- name: string;
460
+ retryable: false;
1063
461
  }
1064
- export interface AgendaResponseMetadata {
462
+ /**
463
+ * Arbol settings changed.
464
+ */
465
+ export interface AgendaArbolSettingsVersionMismatchFailure {
466
+ /**
467
+ * The failure code, stable across releases.
468
+ */
469
+ code: "ARBOL_SETTINGS_VERSION_MISMATCH";
470
+ /**
471
+ * No fields.
472
+ */
473
+ data: Empty;
474
+ /**
475
+ * What went wrong, for people; it never contains input values.
476
+ */
477
+ message: string;
1065
478
  /**
1066
- * Request correlation identifier, also sent as X-Request-Id.
479
+ * Whether repeating the same request may succeed.
1067
480
  */
1068
- requestId: string;
481
+ retryable: false;
1069
482
  }
1070
- export interface AgendaSlot {
483
+ /**
484
+ * The integration service is temporarily unavailable. Retry later.
485
+ */
486
+ export interface AgendaArbolUnavailableFailure {
1071
487
  /**
1072
- * Exclusive end of the visible appointment or slot, before allocation buffers
1073
- * are added.
488
+ * The failure code, stable across releases.
1074
489
  */
1075
- endsAt: Temporal.Instant;
490
+ code: "ARBOL_UNAVAILABLE";
1076
491
  /**
1077
- * scheduling.slot identifies this signed available slot.
492
+ * No fields.
1078
493
  */
1079
- object: "scheduling.slot";
494
+ data: Empty;
1080
495
  /**
1081
- * Required service offering whose schedule and capacity produced this signed
1082
- * slot.
496
+ * What went wrong, for people; it never contains input values.
1083
497
  */
1084
- offeringId: string;
498
+ message: string;
1085
499
  /**
1086
- * Agendas assigned to the appointment or slot, including required
1087
- * professionals, rooms and equipment.
500
+ * Whether repeating the same request may succeed.
1088
501
  */
1089
- resourceIds: string[];
502
+ retryable: true;
503
+ }
504
+ /**
505
+ * Connection changed or is synchronizing; refresh and retry.
506
+ */
507
+ export interface AgendaBindingVersionMismatchFailure {
1090
508
  /**
1091
- * Opaque signed token for one exact available slot. Use the returned token
1092
- * unchanged after the patient confirms that time.
509
+ * The failure code, stable across releases.
1093
510
  */
1094
- slotToken: string;
511
+ code: "BINDING_VERSION_MISMATCH";
1095
512
  /**
1096
- * Visible appointment or slot start instant, including an explicit timezone
1097
- * offset.
513
+ * No fields.
1098
514
  */
1099
- startsAt: Temporal.Instant;
515
+ data: Empty;
1100
516
  /**
1101
- * IANA timezone used to interpret local dates and agenda working hours.
517
+ * What went wrong, for people; it never contains input values.
1102
518
  */
1103
- timezone: string;
519
+ message: string;
520
+ /**
521
+ * Whether repeating the same request may succeed.
522
+ */
523
+ retryable: false;
1104
524
  }
1105
- export interface AgendaSlotPage {
525
+ /**
526
+ * This service has an age rule: the patient's date of birth is required.
527
+ */
528
+ export interface AgendaBirthDateRequiredFailure {
1106
529
  /**
1107
- * Items admitted by this resource contract within the verified organization.
530
+ * The failure code, stable across releases.
1108
531
  */
1109
- data: AgendaSlot[];
532
+ code: "BIRTH_DATE_REQUIRED";
1110
533
  /**
1111
- * Discriminator for a resource list response.
534
+ * No fields.
1112
535
  */
1113
- object: "list";
536
+ data: Empty;
1114
537
  /**
1115
- * Opaque navigation cursors for this page’s stable keyset order.
538
+ * What went wrong, for people; it never contains input values.
1116
539
  */
1117
- pageInfo: PageInfo;
540
+ message: string;
541
+ /**
542
+ * Whether repeating the same request may succeed.
543
+ */
544
+ retryable: false;
545
+ }
546
+ /**
547
+ * Daily report exceeds the supported size; no partial report was generated.
548
+ */
549
+ export interface AgendaDailyReportTooLargeFailure {
550
+ /**
551
+ * The failure code, stable across releases.
552
+ */
553
+ code: "DAILY_REPORT_TOO_LARGE";
554
+ /**
555
+ * No fields.
556
+ */
557
+ data: Empty;
558
+ /**
559
+ * What went wrong, for people; it never contains input values.
560
+ */
561
+ message: string;
562
+ /**
563
+ * Whether repeating the same request may succeed.
564
+ */
565
+ retryable: false;
566
+ }
567
+ /**
568
+ * This service does not allow changing appointment duration.
569
+ */
570
+ export interface AgendaDurationChangeOffFailure {
571
+ /**
572
+ * The failure code, stable across releases.
573
+ */
574
+ code: "DURATION_CHANGE_OFF";
575
+ /**
576
+ * No fields.
577
+ */
578
+ data: Empty;
579
+ /**
580
+ * What went wrong, for people; it never contains input values.
581
+ */
582
+ message: string;
583
+ /**
584
+ * Whether repeating the same request may succeed.
585
+ */
586
+ retryable: false;
587
+ }
588
+ /**
589
+ * Select a duration allowed by this service.
590
+ */
591
+ export interface AgendaDurationNotAllowedFailure {
592
+ /**
593
+ * The failure code, stable across releases.
594
+ */
595
+ code: "DURATION_NOT_ALLOWED";
596
+ /**
597
+ * No fields.
598
+ */
599
+ data: Empty;
600
+ /**
601
+ * What went wrong, for people; it never contains input values.
602
+ */
603
+ message: string;
604
+ /**
605
+ * Whether repeating the same request may succeed.
606
+ */
607
+ retryable: false;
608
+ }
609
+ /**
610
+ * The uploaded content does not match its declared file type.
611
+ */
612
+ export interface AgendaFileContentMismatchFailure {
613
+ /**
614
+ * The failure code, stable across releases.
615
+ */
616
+ code: "FILE_CONTENT_MISMATCH";
617
+ /**
618
+ * No fields.
619
+ */
620
+ data: Empty;
621
+ /**
622
+ * What went wrong, for people; it never contains input values.
623
+ */
624
+ message: string;
625
+ /**
626
+ * Whether repeating the same request may succeed.
627
+ */
628
+ retryable: false;
629
+ }
630
+ /**
631
+ * The patient has not consented to this follow-up email for their current
632
+ * address.
633
+ */
634
+ export interface AgendaFollowupConsentRequiredFailure {
635
+ /**
636
+ * The failure code, stable across releases.
637
+ */
638
+ code: "FOLLOWUP_CONSENT_REQUIRED";
639
+ /**
640
+ * No fields.
641
+ */
642
+ data: Empty;
643
+ /**
644
+ * What went wrong, for people; it never contains input values.
645
+ */
646
+ message: string;
647
+ /**
648
+ * Whether repeating the same request may succeed.
649
+ */
650
+ retryable: false;
651
+ }
652
+ /**
653
+ * Turn this follow-up email on in the notification settings first.
654
+ */
655
+ export interface AgendaFollowupDisabledFailure {
656
+ /**
657
+ * The failure code, stable across releases.
658
+ */
659
+ code: "FOLLOWUP_DISABLED";
660
+ /**
661
+ * No fields.
662
+ */
663
+ data: Empty;
664
+ /**
665
+ * What went wrong, for people; it never contains input values.
666
+ */
667
+ message: string;
668
+ /**
669
+ * Whether repeating the same request may succeed.
670
+ */
671
+ retryable: false;
672
+ }
673
+ /**
674
+ * Follow-up email settings changed; reload before saving.
675
+ */
676
+ export interface AgendaFollowupSettingsVersionMismatchFailure {
677
+ /**
678
+ * The failure code, stable across releases.
679
+ */
680
+ code: "FOLLOWUP_SETTINGS_VERSION_MISMATCH";
681
+ /**
682
+ * No fields.
683
+ */
684
+ data: Empty;
685
+ /**
686
+ * What went wrong, for people; it never contains input values.
687
+ */
688
+ message: string;
689
+ /**
690
+ * Whether repeating the same request may succeed.
691
+ */
692
+ retryable: false;
693
+ }
694
+ /**
695
+ * The hold is no longer active.
696
+ */
697
+ export interface AgendaHoldNotActiveFailure {
698
+ /**
699
+ * The failure code, stable across releases.
700
+ */
701
+ code: "HOLD_NOT_ACTIVE";
702
+ /**
703
+ * No fields.
704
+ */
705
+ data: Empty;
706
+ /**
707
+ * What went wrong, for people; it never contains input values.
708
+ */
709
+ message: string;
710
+ /**
711
+ * Whether repeating the same request may succeed.
712
+ */
713
+ retryable: false;
714
+ }
715
+ /**
716
+ * The identity token does not match the authenticated user.
717
+ */
718
+ export interface AgendaIdTokenMismatchFailure {
719
+ /**
720
+ * The failure code, stable across releases.
721
+ */
722
+ code: "ID_TOKEN_MISMATCH";
723
+ /**
724
+ * No fields.
725
+ */
726
+ data: Empty;
727
+ /**
728
+ * What went wrong, for people; it never contains input values.
729
+ */
730
+ message: string;
731
+ /**
732
+ * Whether repeating the same request may succeed.
733
+ */
734
+ retryable: false;
735
+ }
736
+ /**
737
+ * Intake settings changed; reload before saving.
738
+ */
739
+ export interface AgendaIntakeSettingsVersionMismatchFailure {
740
+ /**
741
+ * The failure code, stable across releases.
742
+ */
743
+ code: "INTAKE_SETTINGS_VERSION_MISMATCH";
744
+ /**
745
+ * No fields.
746
+ */
747
+ data: Empty;
748
+ /**
749
+ * What went wrong, for people; it never contains input values.
750
+ */
751
+ message: string;
752
+ /**
753
+ * Whether repeating the same request may succeed.
754
+ */
755
+ retryable: false;
756
+ }
757
+ /**
758
+ * Correct the indicated patient or intake fields before booking.
759
+ */
760
+ export interface AgendaInvalidAppointmentIntakeFailure {
761
+ /**
762
+ * The failure code, stable across releases.
763
+ */
764
+ code: "INVALID_APPOINTMENT_INTAKE";
765
+ data: AgendaInvalidAppointmentIntakeFailureData;
766
+ /**
767
+ * What went wrong, for people; it never contains input values.
768
+ */
769
+ message: string;
770
+ /**
771
+ * Whether repeating the same request may succeed.
772
+ */
773
+ retryable: false;
774
+ }
775
+ export interface AgendaInvalidAppointmentIntakeFailureData {
776
+ /**
777
+ * Up to 100 field refusals evaluated against the organization's current
778
+ * policy. No free-form message or submitted value is emitted.
779
+ */
780
+ issues: {
781
+ code: "REQUIRED_FIELD" | "UNKNOWN_DOCUMENT_TYPE" | "UNKNOWN_CUSTOM_FIELD" | "INVALID_CUSTOM_FIELD";
782
+ path: (string | number)[];
783
+ }[];
784
+ }
785
+ /**
786
+ * Availability windows must be positive and at most 31 days.
787
+ */
788
+ export interface AgendaInvalidAvailabilityWindowFailure {
789
+ /**
790
+ * The failure code, stable across releases.
791
+ */
792
+ code: "INVALID_AVAILABILITY_WINDOW";
793
+ /**
794
+ * No fields.
795
+ */
796
+ data: Empty;
797
+ /**
798
+ * What went wrong, for people; it never contains input values.
799
+ */
800
+ message: string;
801
+ /**
802
+ * Whether repeating the same request may succeed.
803
+ */
804
+ retryable: false;
805
+ }
806
+ /**
807
+ * The request body could not be read. Send valid uncompressed JSON.
808
+ */
809
+ export interface AgendaInvalidBodyFailure {
810
+ /**
811
+ * The failure code, stable across releases.
812
+ */
813
+ code: "INVALID_BODY";
814
+ /**
815
+ * No fields.
816
+ */
817
+ data: Empty;
818
+ /**
819
+ * What went wrong, for people; it never contains input values.
820
+ */
821
+ message: string;
822
+ /**
823
+ * Whether repeating the same request may succeed.
824
+ */
825
+ retryable: false;
826
+ }
827
+ /**
828
+ * Select a supported attachment kind.
829
+ */
830
+ export interface AgendaInvalidFileKindFailure {
831
+ /**
832
+ * The failure code, stable across releases.
833
+ */
834
+ code: "INVALID_FILE_KIND";
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
+ * Provide a valid attachment filename.
850
+ */
851
+ export interface AgendaInvalidFileNameFailure {
852
+ /**
853
+ * The failure code, stable across releases.
854
+ */
855
+ code: "INVALID_FILE_NAME";
856
+ /**
857
+ * No fields.
858
+ */
859
+ data: Empty;
860
+ /**
861
+ * What went wrong, for people; it never contains input values.
862
+ */
863
+ message: string;
864
+ /**
865
+ * Whether repeating the same request may succeed.
866
+ */
867
+ retryable: false;
868
+ }
869
+ /**
870
+ * The held slot is malformed.
871
+ */
872
+ export interface AgendaInvalidHoldPayloadFailure {
873
+ /**
874
+ * The failure code, stable across releases.
875
+ */
876
+ code: "INVALID_HOLD_PAYLOAD";
877
+ /**
878
+ * No fields.
879
+ */
880
+ data: Empty;
881
+ /**
882
+ * What went wrong, for people; it never contains input values.
883
+ */
884
+ message: string;
885
+ /**
886
+ * Whether repeating the same request may succeed.
887
+ */
888
+ retryable: false;
889
+ }
890
+ /**
891
+ * Provide a valid identity token.
892
+ */
893
+ export interface AgendaInvalidIdTokenFailure {
894
+ /**
895
+ * The failure code, stable across releases.
896
+ */
897
+ code: "INVALID_ID_TOKEN";
898
+ /**
899
+ * No fields.
900
+ */
901
+ data: Empty;
902
+ /**
903
+ * What went wrong, for people; it never contains input values.
904
+ */
905
+ message: string;
906
+ /**
907
+ * Whether repeating the same request may succeed.
908
+ */
909
+ retryable: false;
910
+ }
911
+ /**
912
+ * Send a valid JSON document.
913
+ */
914
+ export interface AgendaInvalidJsonFailure {
915
+ /**
916
+ * The failure code, stable across releases.
917
+ */
918
+ code: "INVALID_JSON";
919
+ /**
920
+ * No fields.
921
+ */
922
+ data: Empty;
923
+ /**
924
+ * What went wrong, for people; it never contains input values.
925
+ */
926
+ message: string;
927
+ /**
928
+ * Whether repeating the same request may succeed.
929
+ */
930
+ retryable: false;
931
+ }
932
+ /**
933
+ * Correct the indicated patient fields before saving.
934
+ */
935
+ export interface AgendaInvalidPatientFieldsFailure {
936
+ /**
937
+ * The failure code, stable across releases.
938
+ */
939
+ code: "INVALID_PATIENT_FIELDS";
940
+ data: AgendaInvalidPatientFieldsFailureData;
941
+ /**
942
+ * What went wrong, for people; it never contains input values.
943
+ */
944
+ message: string;
945
+ /**
946
+ * Whether repeating the same request may succeed.
947
+ */
948
+ retryable: false;
949
+ }
950
+ export interface AgendaInvalidPatientFieldsFailureData {
951
+ /**
952
+ * Up to 100 field refusals evaluated against the organization's current
953
+ * policy. No free-form message or submitted value is emitted.
954
+ */
955
+ issues: {
956
+ code: "REQUIRED_FIELD" | "UNKNOWN_DOCUMENT_TYPE" | "UNKNOWN_CUSTOM_FIELD" | "INVALID_CUSTOM_FIELD";
957
+ path: (string | number)[];
958
+ }[];
959
+ }
960
+ /**
961
+ * Request a fresh available slot before booking.
962
+ */
963
+ export interface AgendaInvalidSlotTokenFailure {
964
+ /**
965
+ * The failure code, stable across releases.
966
+ */
967
+ code: "INVALID_SLOT_TOKEN";
968
+ /**
969
+ * No fields.
970
+ */
971
+ data: Empty;
972
+ /**
973
+ * What went wrong, for people; it never contains input values.
974
+ */
975
+ message: string;
976
+ /**
977
+ * Whether repeating the same request may succeed.
978
+ */
979
+ retryable: false;
980
+ }
981
+ /**
982
+ * Provide a positive time window within the supported range.
983
+ */
984
+ export interface AgendaInvalidWindowFailure {
985
+ /**
986
+ * The failure code, stable across releases.
987
+ */
988
+ code: "INVALID_WINDOW";
989
+ /**
990
+ * No fields.
991
+ */
992
+ data: Empty;
993
+ /**
994
+ * What went wrong, for people; it never contains input values.
995
+ */
996
+ message: string;
997
+ /**
998
+ * Whether repeating the same request may succeed.
999
+ */
1000
+ retryable: false;
1001
+ }
1002
+ export interface AgendaLocation {
1003
+ /**
1004
+ * Street address displayed with this clinic site; null when not configured.
1005
+ */
1006
+ address: string | null;
1007
+ /**
1008
+ * City displayed with this clinic site; null when not configured.
1009
+ */
1010
+ city: string | null;
1011
+ /**
1012
+ * Bounded JSON configuration owned by this catalog record, including
1013
+ * supported domain settings.
1014
+ */
1015
+ details: {
1016
+ [key: string]: unknown;
1017
+ };
1018
+ /**
1019
+ * Stable loc-prefixed Scheduling record identifier; ownership is checked in
1020
+ * the authenticated organization.
1021
+ */
1022
+ id: string;
1023
+ /**
1024
+ * Display name of this catalog or configuration record.
1025
+ */
1026
+ name: string;
1027
+ /**
1028
+ * Stable resource discriminator identifying the response object kind.
1029
+ */
1030
+ object: "scheduling.location";
1031
+ /**
1032
+ * Lifecycle state controlling whether this record remains available to its
1033
+ * domain consumers.
1034
+ */
1035
+ status: "active" | "inactive";
1036
+ /**
1037
+ * IANA timezone used to interpret local working hours, appointment dates and
1038
+ * age eligibility.
1039
+ */
1040
+ timezone: string;
1041
+ /**
1042
+ * ISO 8601 instant with an explicit UTC or local offset; local-offset inputs
1043
+ * are accepted.
1044
+ */
1045
+ updatedAt: Temporal.Instant;
1046
+ /**
1047
+ * Persisted revision used to detect concurrent edits.
1048
+ */
1049
+ version: number;
1050
+ }
1051
+ export interface AgendaLocationPage {
1052
+ /**
1053
+ * Items admitted by this resource contract within the verified organization.
1054
+ */
1055
+ data: AgendaLocation[];
1056
+ /**
1057
+ * Discriminator for a resource list response.
1058
+ */
1059
+ object: "list";
1060
+ /**
1061
+ * Opaque navigation cursors for this page’s stable keyset order.
1062
+ */
1063
+ pageInfo: PageInfo;
1064
+ }
1065
+ /**
1066
+ * A successful answer.
1067
+ */
1068
+ export interface AgendaLocationPageResponse {
1069
+ data: AgendaLocationPage;
1070
+ error: null;
1071
+ /**
1072
+ * What every answer carries besides its data or error.
1073
+ */
1074
+ metadata: ResponseMetadata;
1075
+ success: true;
1076
+ }
1077
+ /**
1078
+ * The site changed after it was loaded.
1079
+ */
1080
+ export interface AgendaLocationVersionMismatchFailure {
1081
+ /**
1082
+ * The failure code, stable across releases.
1083
+ */
1084
+ code: "LOCATION_VERSION_MISMATCH";
1085
+ /**
1086
+ * No fields.
1087
+ */
1088
+ data: Empty;
1089
+ /**
1090
+ * What went wrong, for people; it never contains input values.
1091
+ */
1092
+ message: string;
1093
+ /**
1094
+ * Whether repeating the same request may succeed.
1095
+ */
1096
+ retryable: false;
1097
+ }
1098
+ /**
1099
+ * Only the uploader may delete this attachment.
1100
+ */
1101
+ export interface AgendaNotFileUploaderFailure {
1102
+ /**
1103
+ * The failure code, stable across releases.
1104
+ */
1105
+ code: "NOT_FILE_UPLOADER";
1106
+ /**
1107
+ * No fields.
1108
+ */
1109
+ data: Empty;
1110
+ /**
1111
+ * What went wrong, for people; it never contains input values.
1112
+ */
1113
+ message: string;
1114
+ /**
1115
+ * Whether repeating the same request may succeed.
1116
+ */
1117
+ retryable: false;
1118
+ }
1119
+ /**
1120
+ * Only the author may edit or delete this note.
1121
+ */
1122
+ export interface AgendaNotNoteAuthorFailure {
1123
+ /**
1124
+ * The failure code, stable across releases.
1125
+ */
1126
+ code: "NOT_NOTE_AUTHOR";
1127
+ /**
1128
+ * No fields.
1129
+ */
1130
+ data: Empty;
1131
+ /**
1132
+ * What went wrong, for people; it never contains input values.
1133
+ */
1134
+ message: string;
1135
+ /**
1136
+ * Whether repeating the same request may succeed.
1137
+ */
1138
+ retryable: false;
1139
+ }
1140
+ /**
1141
+ * Notification settings changed; reload before saving.
1142
+ */
1143
+ export interface AgendaNotificationSettingsVersionMismatchFailure {
1144
+ /**
1145
+ * The failure code, stable across releases.
1146
+ */
1147
+ code: "NOTIFICATION_SETTINGS_VERSION_MISMATCH";
1148
+ /**
1149
+ * No fields.
1150
+ */
1151
+ data: Empty;
1152
+ /**
1153
+ * What went wrong, for people; it never contains input values.
1154
+ */
1155
+ message: string;
1156
+ /**
1157
+ * Whether repeating the same request may succeed.
1158
+ */
1159
+ retryable: false;
1160
+ }
1161
+ /**
1162
+ * Patient emails need the notifications module turned on.
1163
+ */
1164
+ export interface AgendaNotificationsNotSetUpFailure {
1165
+ /**
1166
+ * The failure code, stable across releases.
1167
+ */
1168
+ code: "NOTIFICATIONS_NOT_SET_UP";
1169
+ /**
1170
+ * No fields.
1171
+ */
1172
+ data: Empty;
1173
+ /**
1174
+ * What went wrong, for people; it never contains input values.
1175
+ */
1176
+ message: string;
1177
+ /**
1178
+ * Whether repeating the same request may succeed.
1179
+ */
1180
+ retryable: false;
1181
+ }
1182
+ /**
1183
+ * The offering changed after it was loaded.
1184
+ */
1185
+ export interface AgendaOfferingVersionMismatchFailure {
1186
+ /**
1187
+ * The failure code, stable across releases.
1188
+ */
1189
+ code: "OFFERING_VERSION_MISMATCH";
1190
+ /**
1191
+ * No fields.
1192
+ */
1193
+ data: Empty;
1194
+ /**
1195
+ * What went wrong, for people; it never contains input values.
1196
+ */
1197
+ message: string;
1198
+ /**
1199
+ * Whether repeating the same request may succeed.
1200
+ */
1201
+ retryable: false;
1202
+ }
1203
+ /**
1204
+ * The organization changed; reload before saving.
1205
+ */
1206
+ export interface AgendaOrganizationVersionMismatchFailure {
1207
+ /**
1208
+ * The failure code, stable across releases.
1209
+ */
1210
+ code: "ORGANIZATION_VERSION_MISMATCH";
1211
+ /**
1212
+ * No fields.
1213
+ */
1214
+ data: Empty;
1215
+ /**
1216
+ * What went wrong, for people; it never contains input values.
1217
+ */
1218
+ message: string;
1219
+ /**
1220
+ * Whether repeating the same request may succeed.
1221
+ */
1222
+ retryable: false;
1223
+ }
1224
+ /**
1225
+ * This request origin is not allowed.
1226
+ */
1227
+ export interface AgendaOriginNotAllowedFailure {
1228
+ /**
1229
+ * The failure code, stable across releases.
1230
+ */
1231
+ code: "ORIGIN_NOT_ALLOWED";
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
+ * An overbooked appointment must start between yesterday and the booking
1247
+ * horizon.
1248
+ */
1249
+ export interface AgendaOverbookOutOfRangeFailure {
1250
+ /**
1251
+ * The failure code, stable across releases.
1252
+ */
1253
+ code: "OVERBOOK_OUT_OF_RANGE";
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
+ * No active agenda can take this appointment.
1269
+ */
1270
+ export interface AgendaOverbookUnavailableFailure {
1271
+ /**
1272
+ * The failure code, stable across releases.
1273
+ */
1274
+ code: "OVERBOOK_UNAVAILABLE";
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
+ * Restore the patient before this action.
1290
+ */
1291
+ export interface AgendaPatientArchivedFailure {
1292
+ /**
1293
+ * The failure code, stable across releases.
1294
+ */
1295
+ code: "PATIENT_ARCHIVED";
1296
+ /**
1297
+ * No fields.
1298
+ */
1299
+ data: Empty;
1300
+ /**
1301
+ * What went wrong, for people; it never contains input values.
1302
+ */
1303
+ message: string;
1304
+ /**
1305
+ * Whether repeating the same request may succeed.
1306
+ */
1307
+ retryable: false;
1308
+ }
1309
+ /**
1310
+ * Another patient has that document.
1311
+ */
1312
+ export interface AgendaPatientDocumentTakenFailure {
1313
+ /**
1314
+ * The failure code, stable across releases.
1315
+ */
1316
+ code: "PATIENT_DOCUMENT_TAKEN";
1317
+ /**
1318
+ * No fields.
1319
+ */
1320
+ data: Empty;
1321
+ /**
1322
+ * What went wrong, for people; it never contains input values.
1323
+ */
1324
+ message: string;
1325
+ /**
1326
+ * Whether repeating the same request may succeed.
1327
+ */
1328
+ retryable: false;
1329
+ }
1330
+ /**
1331
+ * Record the patient's email before this action.
1332
+ */
1333
+ export interface AgendaPatientEmailRequiredFailure {
1334
+ /**
1335
+ * The failure code, stable across releases.
1336
+ */
1337
+ code: "PATIENT_EMAIL_REQUIRED";
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
+ export interface AgendaPatientIdentity {
1352
+ /**
1353
+ * Deprecated: use `documentNumber`. Answered until 2027-01-28.
1354
+ *
1355
+ * @deprecated
1356
+ */
1357
+ document: string | null;
1358
+ /**
1359
+ * Normalized patient document number; null when no document is recorded.
1360
+ * Identity combines its type and number.
1361
+ */
1362
+ documentNumber: string | null;
1363
+ /**
1364
+ * Organization-configured document type code. A number without a supplied
1365
+ * type uses the configured first type; no number means no stored type.
1366
+ */
1367
+ documentType: string | null;
1368
+ /**
1369
+ * Patient display name with surrounding whitespace removed.
1370
+ */
1371
+ name: string;
1372
+ }
1373
+ /**
1374
+ * The patient changed after it was loaded.
1375
+ */
1376
+ export interface AgendaPatientVersionMismatchFailure {
1377
+ /**
1378
+ * The failure code, stable across releases.
1379
+ */
1380
+ code: "PATIENT_VERSION_MISMATCH";
1381
+ /**
1382
+ * No fields.
1383
+ */
1384
+ data: Empty;
1385
+ /**
1386
+ * What went wrong, for people; it never contains input values.
1387
+ */
1388
+ message: string;
1389
+ /**
1390
+ * Whether repeating the same request may succeed.
1391
+ */
1392
+ retryable: false;
1393
+ }
1394
+ /**
1395
+ * Another payer already has that name.
1396
+ */
1397
+ export interface AgendaPayerNameTakenFailure {
1398
+ /**
1399
+ * The failure code, stable across releases.
1400
+ */
1401
+ code: "PAYER_NAME_TAKEN";
1402
+ /**
1403
+ * No fields.
1404
+ */
1405
+ data: Empty;
1406
+ /**
1407
+ * What went wrong, for people; it never contains input values.
1408
+ */
1409
+ message: string;
1410
+ /**
1411
+ * Whether repeating the same request may succeed.
1412
+ */
1413
+ retryable: false;
1414
+ }
1415
+ /**
1416
+ * This payer requires booking by the organization team. Add the patient to the
1417
+ * waitlist for review.
1418
+ */
1419
+ export interface AgendaPayerStaffOnlyFailure {
1420
+ /**
1421
+ * The failure code, stable across releases.
1422
+ */
1423
+ code: "PAYER_STAFF_ONLY";
1424
+ /**
1425
+ * No fields.
1426
+ */
1427
+ data: Empty;
1428
+ /**
1429
+ * What went wrong, for people; it never contains input values.
1430
+ */
1431
+ message: string;
1432
+ /**
1433
+ * Whether repeating the same request may succeed.
1434
+ */
1435
+ retryable: false;
1436
+ }
1437
+ /**
1438
+ * The payer changed; reload before saving.
1439
+ */
1440
+ export interface AgendaPayerVersionMismatchFailure {
1441
+ /**
1442
+ * The failure code, stable across releases.
1443
+ */
1444
+ code: "PAYER_VERSION_MISMATCH";
1445
+ /**
1446
+ * No fields.
1447
+ */
1448
+ data: Empty;
1449
+ /**
1450
+ * What went wrong, for people; it never contains input values.
1451
+ */
1452
+ message: string;
1453
+ /**
1454
+ * Whether repeating the same request may succeed.
1455
+ */
1456
+ retryable: false;
1457
+ }
1458
+ /**
1459
+ * The profile changed after it was loaded.
1460
+ */
1461
+ export interface AgendaProfileVersionMismatchFailure {
1462
+ /**
1463
+ * The failure code, stable across releases.
1464
+ */
1465
+ code: "PROFILE_VERSION_MISMATCH";
1466
+ /**
1467
+ * No fields.
1468
+ */
1469
+ data: Empty;
1470
+ /**
1471
+ * What went wrong, for people; it never contains input values.
1472
+ */
1473
+ message: string;
1474
+ /**
1475
+ * Whether repeating the same request may succeed.
1476
+ */
1477
+ retryable: false;
1478
+ }
1479
+ /**
1480
+ * Enable the provider integration before using it.
1481
+ */
1482
+ export interface AgendaProviderDisabledFailure {
1483
+ /**
1484
+ * The failure code, stable across releases.
1485
+ */
1486
+ code: "PROVIDER_DISABLED";
1487
+ /**
1488
+ * No fields.
1489
+ */
1490
+ data: Empty;
1491
+ /**
1492
+ * What went wrong, for people; it never contains input values.
1493
+ */
1494
+ message: string;
1495
+ /**
1496
+ * Whether repeating the same request may succeed.
1497
+ */
1498
+ retryable: false;
1499
+ }
1500
+ /**
1501
+ * The patient already has an active recall for this service.
1502
+ */
1503
+ export interface AgendaRecallAlreadyActiveFailure {
1504
+ /**
1505
+ * The failure code, stable across releases.
1506
+ */
1507
+ code: "RECALL_ALREADY_ACTIVE";
1508
+ /**
1509
+ * No fields.
1510
+ */
1511
+ data: Empty;
1512
+ /**
1513
+ * What went wrong, for people; it never contains input values.
1514
+ */
1515
+ message: string;
1516
+ /**
1517
+ * Whether repeating the same request may succeed.
1518
+ */
1519
+ retryable: false;
1520
+ }
1521
+ /**
1522
+ * The recall's month has already passed.
1523
+ */
1524
+ export interface AgendaRecallMonthPassedFailure {
1525
+ /**
1526
+ * The failure code, stable across releases.
1527
+ */
1528
+ code: "RECALL_MONTH_PASSED";
1529
+ /**
1530
+ * No fields.
1531
+ */
1532
+ data: Empty;
1533
+ /**
1534
+ * What went wrong, for people; it never contains input values.
1535
+ */
1536
+ message: string;
1537
+ /**
1538
+ * Whether repeating the same request may succeed.
1539
+ */
1540
+ retryable: false;
1541
+ }
1542
+ /**
1543
+ * The recall changed after it was loaded.
1544
+ */
1545
+ export interface AgendaRecallVersionMismatchFailure {
1546
+ /**
1547
+ * The failure code, stable across releases.
1548
+ */
1549
+ code: "RECALL_VERSION_MISMATCH";
1550
+ /**
1551
+ * No fields.
1552
+ */
1553
+ data: Empty;
1554
+ /**
1555
+ * What went wrong, for people; it never contains input values.
1556
+ */
1557
+ message: string;
1558
+ /**
1559
+ * Whether repeating the same request may succeed.
1560
+ */
1561
+ retryable: false;
1562
+ }
1563
+ /**
1564
+ * The last visit must be a past date.
1565
+ */
1566
+ export interface AgendaRecallVisitInFutureFailure {
1567
+ /**
1568
+ * The failure code, stable across releases.
1569
+ */
1570
+ code: "RECALL_VISIT_IN_FUTURE";
1571
+ /**
1572
+ * No fields.
1573
+ */
1574
+ data: Empty;
1575
+ /**
1576
+ * What went wrong, for people; it never contains input values.
1577
+ */
1578
+ message: string;
1579
+ /**
1580
+ * Whether repeating the same request may succeed.
1581
+ */
1582
+ retryable: false;
1583
+ }
1584
+ /**
1585
+ * Enter the last visit: there is no attended appointment of this service for
1586
+ * the patient.
1587
+ */
1588
+ export interface AgendaRecallVisitRequiredFailure {
1589
+ /**
1590
+ * The failure code, stable across releases.
1591
+ */
1592
+ code: "RECALL_VISIT_REQUIRED";
1593
+ /**
1594
+ * No fields.
1595
+ */
1596
+ data: Empty;
1597
+ /**
1598
+ * What went wrong, for people; it never contains input values.
1599
+ */
1600
+ message: string;
1601
+ /**
1602
+ * Whether repeating the same request may succeed.
1603
+ */
1604
+ retryable: false;
1605
+ }
1606
+ /**
1607
+ * A failed answer.
1608
+ */
1609
+ export interface AgendaRecordNotFoundError {
1610
+ data: null;
1611
+ /**
1612
+ * The requested record does not exist.
1613
+ */
1614
+ error: AgendaRecordNotFoundFailure;
1615
+ /**
1616
+ * What every answer carries besides its data or error.
1617
+ */
1618
+ metadata: ResponseMetadata;
1619
+ success: false;
1620
+ }
1621
+ /**
1622
+ * The requested record does not exist.
1623
+ */
1624
+ export interface AgendaRecordNotFoundFailure {
1625
+ /**
1626
+ * The failure code, stable across releases.
1627
+ */
1628
+ code: "RECORD_NOT_FOUND";
1629
+ /**
1630
+ * No fields.
1631
+ */
1632
+ data: Empty;
1633
+ /**
1634
+ * What went wrong, for people; it never contains input values.
1635
+ */
1636
+ message: string;
1637
+ /**
1638
+ * Whether repeating the same request may succeed.
1639
+ */
1640
+ retryable: false;
1641
+ }
1642
+ /**
1643
+ * A removal is already active, or this idempotency key belongs to another
1644
+ * decision.
1645
+ */
1646
+ export interface AgendaRemovalJobConflictFailure {
1647
+ /**
1648
+ * The failure code, stable across releases.
1649
+ */
1650
+ code: "REMOVAL_JOB_CONFLICT";
1651
+ /**
1652
+ * No fields.
1653
+ */
1654
+ data: Empty;
1655
+ /**
1656
+ * What went wrong, for people; it never contains input values.
1657
+ */
1658
+ message: string;
1659
+ /**
1660
+ * Whether repeating the same request may succeed.
1661
+ */
1662
+ retryable: false;
1663
+ }
1664
+ /**
1665
+ * Durable removal is unavailable here; use the bounded manual removal
1666
+ * operations.
1667
+ */
1668
+ export interface AgendaRemovalWorkflowUnavailableFailure {
1669
+ /**
1670
+ * The failure code, stable across releases.
1671
+ */
1672
+ code: "REMOVAL_WORKFLOW_UNAVAILABLE";
1673
+ /**
1674
+ * No fields.
1675
+ */
1676
+ data: Empty;
1677
+ /**
1678
+ * What went wrong, for people; it never contains input values.
1679
+ */
1680
+ message: string;
1681
+ /**
1682
+ * Whether repeating the same request may succeed.
1683
+ */
1684
+ retryable: false;
1685
+ }
1686
+ /**
1687
+ * Enable the notifications module before sending a daily agenda.
1688
+ */
1689
+ export interface AgendaReportNotificationsDisabledFailure {
1690
+ /**
1691
+ * The failure code, stable across releases.
1692
+ */
1693
+ code: "REPORT_NOTIFICATIONS_DISABLED";
1694
+ /**
1695
+ * No fields.
1696
+ */
1697
+ data: Empty;
1698
+ /**
1699
+ * What went wrong, for people; it never contains input values.
1700
+ */
1701
+ message: string;
1702
+ /**
1703
+ * Whether repeating the same request may succeed.
1704
+ */
1705
+ retryable: false;
1706
+ }
1707
+ /**
1708
+ * No eligible organization owner or additional delivery address is available
1709
+ * for this agenda.
1710
+ */
1711
+ export interface AgendaReportRecipientsRequiredFailure {
1712
+ /**
1713
+ * The failure code, stable across releases.
1714
+ */
1715
+ code: "REPORT_RECIPIENTS_REQUIRED";
1716
+ /**
1717
+ * No fields.
1718
+ */
1719
+ data: Empty;
1720
+ /**
1721
+ * What went wrong, for people; it never contains input values.
1722
+ */
1723
+ message: string;
1724
+ /**
1725
+ * Whether repeating the same request may succeed.
1726
+ */
1727
+ retryable: false;
1728
+ }
1729
+ /**
1730
+ * Report settings changed; reload before saving.
1731
+ */
1732
+ export interface AgendaReportSettingsVersionMismatchFailure {
1733
+ /**
1734
+ * The failure code, stable across releases.
1735
+ */
1736
+ code: "REPORT_SETTINGS_VERSION_MISMATCH";
1737
+ /**
1738
+ * No fields.
1739
+ */
1740
+ data: Empty;
1741
+ /**
1742
+ * What went wrong, for people; it never contains input values.
1743
+ */
1744
+ message: string;
1745
+ /**
1746
+ * Whether repeating the same request may succeed.
1747
+ */
1748
+ retryable: false;
1749
+ }
1750
+ /**
1751
+ * The selected time is no longer available.
1752
+ */
1753
+ export interface AgendaResourceCapacityExceededFailure {
1754
+ /**
1755
+ * The failure code, stable across releases.
1756
+ */
1757
+ code: "RESOURCE_CAPACITY_EXCEEDED";
1758
+ /**
1759
+ * No fields.
1760
+ */
1761
+ data: Empty;
1762
+ /**
1763
+ * What went wrong, for people; it never contains input values.
1764
+ */
1765
+ message: string;
1766
+ /**
1767
+ * Whether repeating the same request may succeed.
1768
+ */
1769
+ retryable: false;
1770
+ }
1771
+ /**
1772
+ * The resource changed after it was loaded.
1773
+ */
1774
+ export interface AgendaResourceVersionMismatchFailure {
1775
+ /**
1776
+ * The failure code, stable across releases.
1777
+ */
1778
+ code: "RESOURCE_VERSION_MISMATCH";
1779
+ /**
1780
+ * No fields.
1781
+ */
1782
+ data: Empty;
1783
+ /**
1784
+ * What went wrong, for people; it never contains input values.
1785
+ */
1786
+ message: string;
1787
+ /**
1788
+ * Whether repeating the same request may succeed.
1789
+ */
1790
+ retryable: false;
1791
+ }
1792
+ /**
1793
+ * An agenda cannot take its own appointments.
1794
+ */
1795
+ export interface AgendaSameOfferingFailure {
1796
+ /**
1797
+ * The failure code, stable across releases.
1798
+ */
1799
+ code: "SAME_OFFERING";
1800
+ /**
1801
+ * No fields.
1802
+ */
1803
+ data: Empty;
1804
+ /**
1805
+ * What went wrong, for people; it never contains input values.
1806
+ */
1807
+ message: string;
1808
+ /**
1809
+ * Whether repeating the same request may succeed.
1810
+ */
1811
+ retryable: false;
1812
+ }
1813
+ /**
1814
+ * An agenda cannot take its own appointments.
1815
+ */
1816
+ export interface AgendaSameResourceFailure {
1817
+ /**
1818
+ * The failure code, stable across releases.
1819
+ */
1820
+ code: "SAME_RESOURCE";
1821
+ /**
1822
+ * No fields.
1823
+ */
1824
+ data: Empty;
1825
+ /**
1826
+ * What went wrong, for people; it never contains input values.
1827
+ */
1828
+ message: string;
1829
+ /**
1830
+ * Whether repeating the same request may succeed.
1831
+ */
1832
+ retryable: false;
1833
+ }
1834
+ /**
1835
+ * A service cannot be merged into itself.
1836
+ */
1837
+ export interface AgendaSameServiceFailure {
1838
+ /**
1839
+ * The failure code, stable across releases.
1840
+ */
1841
+ code: "SAME_SERVICE";
1842
+ /**
1843
+ * No fields.
1844
+ */
1845
+ data: Empty;
1846
+ /**
1847
+ * What went wrong, for people; it never contains input values.
1848
+ */
1849
+ message: string;
1850
+ /**
1851
+ * Whether repeating the same request may succeed.
1852
+ */
1853
+ retryable: false;
1854
+ }
1855
+ /**
1856
+ * The selected time no longer matches the current schedule.
1857
+ */
1858
+ export interface AgendaScheduleChangedFailure {
1859
+ /**
1860
+ * The failure code, stable across releases.
1861
+ */
1862
+ code: "SCHEDULE_CHANGED";
1863
+ /**
1864
+ * No fields.
1865
+ */
1866
+ data: Empty;
1867
+ /**
1868
+ * What went wrong, for people; it never contains input values.
1869
+ */
1870
+ message: string;
1871
+ /**
1872
+ * Whether repeating the same request may succeed.
1873
+ */
1874
+ retryable: false;
1875
+ }
1876
+ /**
1877
+ * The schedule rule belongs to another agenda.
1878
+ */
1879
+ export interface AgendaScheduleRuleAgendaMismatchFailure {
1880
+ /**
1881
+ * The failure code, stable across releases.
1882
+ */
1883
+ code: "SCHEDULE_RULE_AGENDA_MISMATCH";
1884
+ /**
1885
+ * No fields.
1886
+ */
1887
+ data: Empty;
1888
+ /**
1889
+ * What went wrong, for people; it never contains input values.
1890
+ */
1891
+ message: string;
1892
+ /**
1893
+ * Whether repeating the same request may succeed.
1894
+ */
1895
+ retryable: false;
1896
+ }
1897
+ /**
1898
+ * Expected version is required for an update.
1899
+ */
1900
+ export interface AgendaScheduleRuleExpectedVersionRequiredFailure {
1901
+ /**
1902
+ * The failure code, stable across releases.
1903
+ */
1904
+ code: "SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED";
1905
+ /**
1906
+ * No fields.
1907
+ */
1908
+ data: Empty;
1909
+ /**
1910
+ * What went wrong, for people; it never contains input values.
1911
+ */
1912
+ message: string;
1913
+ /**
1914
+ * Whether repeating the same request may succeed.
1915
+ */
1916
+ retryable: false;
1917
+ }
1918
+ /**
1919
+ * The schedule rule changed after it was loaded.
1920
+ */
1921
+ export interface AgendaScheduleRuleVersionMismatchFailure {
1922
+ /**
1923
+ * The failure code, stable across releases.
1924
+ */
1925
+ code: "SCHEDULE_RULE_VERSION_MISMATCH";
1926
+ /**
1927
+ * No fields.
1928
+ */
1929
+ data: Empty;
1930
+ /**
1931
+ * What went wrong, for people; it never contains input values.
1932
+ */
1933
+ message: string;
1934
+ /**
1935
+ * Whether repeating the same request may succeed.
1936
+ */
1937
+ retryable: false;
1938
+ }
1939
+ /**
1940
+ * The schedule changed after it was loaded.
1941
+ */
1942
+ export interface AgendaScheduleRulesChangedFailure {
1943
+ /**
1944
+ * The failure code, stable across releases.
1945
+ */
1946
+ code: "SCHEDULE_RULES_CHANGED";
1947
+ /**
1948
+ * No fields.
1949
+ */
1950
+ data: Empty;
1951
+ /**
1952
+ * What went wrong, for people; it never contains input values.
1953
+ */
1954
+ message: string;
1955
+ /**
1956
+ * Whether repeating the same request may succeed.
1957
+ */
1958
+ retryable: false;
1959
+ }
1960
+ /**
1961
+ * This service already has as many appointments as it can run at once at that
1962
+ * time.
1963
+ */
1964
+ export interface AgendaServiceCapacityExceededFailure {
1965
+ /**
1966
+ * The failure code, stable across releases.
1967
+ */
1968
+ code: "SERVICE_CAPACITY_EXCEEDED";
1969
+ /**
1970
+ * No fields.
1971
+ */
1972
+ data: Empty;
1973
+ /**
1974
+ * What went wrong, for people; it never contains input values.
1975
+ */
1976
+ message: string;
1977
+ /**
1978
+ * Whether repeating the same request may succeed.
1979
+ */
1980
+ retryable: false;
1981
+ }
1982
+ /**
1983
+ * The new slot belongs to another service.
1984
+ */
1985
+ export interface AgendaServiceChangedFailure {
1986
+ /**
1987
+ * The failure code, stable across releases.
1988
+ */
1989
+ code: "SERVICE_CHANGED";
1990
+ /**
1991
+ * No fields.
1992
+ */
1993
+ data: Empty;
1994
+ /**
1995
+ * What went wrong, for people; it never contains input values.
1996
+ */
1997
+ message: string;
1998
+ /**
1999
+ * Whether repeating the same request may succeed.
2000
+ */
2001
+ retryable: false;
2002
+ }
2003
+ /**
2004
+ * The service changed after it was loaded.
2005
+ */
2006
+ export interface AgendaServiceVersionMismatchFailure {
2007
+ /**
2008
+ * The failure code, stable across releases.
2009
+ */
2010
+ code: "SERVICE_VERSION_MISMATCH";
2011
+ /**
2012
+ * No fields.
2013
+ */
2014
+ data: Empty;
2015
+ /**
2016
+ * What went wrong, for people; it never contains input values.
2017
+ */
2018
+ message: string;
2019
+ /**
2020
+ * Whether repeating the same request may succeed.
2021
+ */
2022
+ retryable: false;
2023
+ }
2024
+ export interface AgendaSlot {
2025
+ /**
2026
+ * Exclusive end of the visible appointment or slot, before allocation buffers
2027
+ * are added.
2028
+ */
2029
+ endsAt: Temporal.Instant;
2030
+ /**
2031
+ * scheduling.slot identifies this signed available slot.
2032
+ */
2033
+ object: "scheduling.slot";
2034
+ /**
2035
+ * Required service offering whose schedule and capacity produced this signed
2036
+ * slot.
2037
+ */
2038
+ offeringId: string;
2039
+ /**
2040
+ * Agendas assigned to the appointment or slot, including required
2041
+ * professionals, rooms and equipment.
2042
+ */
2043
+ resourceIds: string[];
2044
+ /**
2045
+ * Opaque signed token for one exact available slot. Use the returned token
2046
+ * unchanged after the patient confirms that time.
2047
+ */
2048
+ slotToken: string;
2049
+ /**
2050
+ * Visible appointment or slot start instant, including an explicit timezone
2051
+ * offset.
2052
+ */
2053
+ startsAt: Temporal.Instant;
2054
+ /**
2055
+ * IANA timezone used to interpret local dates and agenda working hours.
2056
+ */
2057
+ timezone: string;
2058
+ }
2059
+ /**
2060
+ * This waiting-list entry already has an open slot offer.
2061
+ */
2062
+ export interface AgendaSlotOfferAlreadyOpenFailure {
2063
+ /**
2064
+ * The failure code, stable across releases.
2065
+ */
2066
+ code: "SLOT_OFFER_ALREADY_OPEN";
2067
+ /**
2068
+ * No fields.
2069
+ */
2070
+ data: Empty;
2071
+ /**
2072
+ * What went wrong, for people; it never contains input values.
2073
+ */
2074
+ message: string;
2075
+ /**
2076
+ * Whether repeating the same request may succeed.
2077
+ */
2078
+ retryable: false;
2079
+ }
2080
+ /**
2081
+ * The slot offer is no longer open.
2082
+ */
2083
+ export interface AgendaSlotOfferClosedFailure {
2084
+ /**
2085
+ * The failure code, stable across releases.
2086
+ */
2087
+ code: "SLOT_OFFER_CLOSED";
2088
+ /**
2089
+ * No fields.
2090
+ */
2091
+ data: Empty;
2092
+ /**
2093
+ * What went wrong, for people; it never contains input values.
2094
+ */
2095
+ message: string;
2096
+ /**
2097
+ * Whether repeating the same request may succeed.
2098
+ */
2099
+ retryable: false;
2100
+ }
2101
+ /**
2102
+ * The slot belongs to another service or agenda than the entry asks for.
2103
+ */
2104
+ export interface AgendaSlotOfferMismatchFailure {
2105
+ /**
2106
+ * The failure code, stable across releases.
2107
+ */
2108
+ code: "SLOT_OFFER_MISMATCH";
2109
+ /**
2110
+ * No fields.
2111
+ */
2112
+ data: Empty;
2113
+ /**
2114
+ * What went wrong, for people; it never contains input values.
2115
+ */
2116
+ message: string;
2117
+ /**
2118
+ * Whether repeating the same request may succeed.
2119
+ */
2120
+ retryable: false;
2121
+ }
2122
+ /**
2123
+ * Only an open waiting-list entry of a registered patient can receive a slot
2124
+ * offer.
2125
+ */
2126
+ export interface AgendaSlotOfferNotAllowedFailure {
2127
+ /**
2128
+ * The failure code, stable across releases.
2129
+ */
2130
+ code: "SLOT_OFFER_NOT_ALLOWED";
2131
+ /**
2132
+ * No fields.
2133
+ */
2134
+ data: Empty;
2135
+ /**
2136
+ * What went wrong, for people; it never contains input values.
2137
+ */
2138
+ message: string;
2139
+ /**
2140
+ * Whether repeating the same request may succeed.
2141
+ */
2142
+ retryable: false;
2143
+ }
2144
+ /**
2145
+ * The slot starts too soon to hold it for the patient; offer a later one.
2146
+ */
2147
+ export interface AgendaSlotOfferTooSoonFailure {
2148
+ /**
2149
+ * The failure code, stable across releases.
2150
+ */
2151
+ code: "SLOT_OFFER_TOO_SOON";
2152
+ /**
2153
+ * No fields.
2154
+ */
2155
+ data: Empty;
2156
+ /**
2157
+ * What went wrong, for people; it never contains input values.
2158
+ */
2159
+ message: string;
2160
+ /**
2161
+ * Whether repeating the same request may succeed.
2162
+ */
2163
+ retryable: false;
2164
+ }
2165
+ export interface AgendaSlotPage {
2166
+ /**
2167
+ * Items admitted by this resource contract within the verified organization.
2168
+ */
2169
+ data: AgendaSlot[];
2170
+ /**
2171
+ * Discriminator for a resource list response.
2172
+ */
2173
+ object: "list";
2174
+ /**
2175
+ * Opaque navigation cursors for this page’s stable keyset order.
2176
+ */
2177
+ pageInfo: PageInfo;
2178
+ }
2179
+ /**
2180
+ * A successful answer.
2181
+ */
2182
+ export interface AgendaSlotPageResponse {
2183
+ data: AgendaSlotPage;
2184
+ error: null;
2185
+ /**
2186
+ * What every answer carries besides its data or error.
2187
+ */
2188
+ metadata: ResponseMetadata;
2189
+ success: true;
2190
+ }
2191
+ /**
2192
+ * A hold or slot token is required.
2193
+ */
2194
+ export interface AgendaSlotRequiredFailure {
2195
+ /**
2196
+ * The failure code, stable across releases.
2197
+ */
2198
+ code: "SLOT_REQUIRED";
2199
+ /**
2200
+ * No fields.
2201
+ */
2202
+ data: Empty;
2203
+ /**
2204
+ * What went wrong, for people; it never contains input values.
2205
+ */
2206
+ message: string;
2207
+ /**
2208
+ * Whether repeating the same request may succeed.
2209
+ */
2210
+ retryable: false;
2211
+ }
2212
+ /**
2213
+ * Select one of the study lengths this agenda offers.
2214
+ */
2215
+ export interface AgendaStudyLengthNotOfferedFailure {
2216
+ /**
2217
+ * The failure code, stable across releases.
2218
+ */
2219
+ code: "STUDY_LENGTH_NOT_OFFERED";
2220
+ /**
2221
+ * No fields.
2222
+ */
2223
+ data: Empty;
2224
+ /**
2225
+ * What went wrong, for people; it never contains input values.
2226
+ */
2227
+ message: string;
2228
+ /**
2229
+ * Whether repeating the same request may succeed.
2230
+ */
2231
+ retryable: false;
2232
+ }
2233
+ /**
2234
+ * This study has an explicit capacity limit and requires an available ordinary
2235
+ * slot.
2236
+ */
2237
+ export interface AgendaStudyOverbookingNotAllowedFailure {
2238
+ /**
2239
+ * The failure code, stable across releases.
2240
+ */
2241
+ code: "STUDY_OVERBOOKING_NOT_ALLOWED";
2242
+ /**
2243
+ * No fields.
2244
+ */
2245
+ data: Empty;
2246
+ /**
2247
+ * What went wrong, for people; it never contains input values.
2248
+ */
2249
+ message: string;
2250
+ /**
2251
+ * Whether repeating the same request may succeed.
2252
+ */
2253
+ retryable: false;
2254
+ }
2255
+ /**
2256
+ * An archived agenda takes no appointments.
2257
+ */
2258
+ export interface AgendaTargetInactiveFailure {
2259
+ /**
2260
+ * The failure code, stable across releases.
2261
+ */
2262
+ code: "TARGET_INACTIVE";
2263
+ /**
2264
+ * No fields.
2265
+ */
2266
+ data: Empty;
2267
+ /**
2268
+ * What went wrong, for people; it never contains input values.
2269
+ */
2270
+ message: string;
2271
+ /**
2272
+ * Whether repeating the same request may succeed.
2273
+ */
2274
+ retryable: false;
2275
+ }
2276
+ /**
2277
+ * Remove query parameters not declared by this operation.
2278
+ */
2279
+ export interface AgendaUnexpectedQueryParametersFailure {
2280
+ /**
2281
+ * The failure code, stable across releases.
2282
+ */
2283
+ code: "UNEXPECTED_QUERY_PARAMETERS";
2284
+ /**
2285
+ * No fields.
2286
+ */
2287
+ data: Empty;
2288
+ /**
2289
+ * What went wrong, for people; it never contains input values.
2290
+ */
2291
+ message: string;
2292
+ /**
2293
+ * Whether repeating the same request may succeed.
2294
+ */
2295
+ retryable: false;
2296
+ }
2297
+ /**
2298
+ * Send an uncompressed request body.
2299
+ */
2300
+ export interface AgendaUnsupportedContentEncodingFailure {
2301
+ /**
2302
+ * The failure code, stable across releases.
2303
+ */
2304
+ code: "UNSUPPORTED_CONTENT_ENCODING";
2305
+ /**
2306
+ * No fields.
2307
+ */
2308
+ data: Empty;
2309
+ /**
2310
+ * What went wrong, for people; it never contains input values.
2311
+ */
2312
+ message: string;
2313
+ /**
2314
+ * Whether repeating the same request may succeed.
2315
+ */
2316
+ retryable: false;
2317
+ }
2318
+ /**
2319
+ * Select a supported attachment file type.
2320
+ */
2321
+ export interface AgendaUnsupportedFileTypeFailure {
2322
+ /**
2323
+ * The failure code, stable across releases.
2324
+ */
2325
+ code: "UNSUPPORTED_FILE_TYPE";
2326
+ /**
2327
+ * No fields.
2328
+ */
2329
+ data: Empty;
2330
+ /**
2331
+ * What went wrong, for people; it never contains input values.
2332
+ */
2333
+ message: string;
2334
+ /**
2335
+ * Whether repeating the same request may succeed.
2336
+ */
2337
+ retryable: false;
2338
+ }
2339
+ /**
2340
+ * A failed answer.
2341
+ */
2342
+ export interface AgendaUpgradeRequiredError {
2343
+ data: null;
2344
+ /**
2345
+ * Open the live channel with a WebSocket upgrade.
2346
+ */
2347
+ error: AgendaUpgradeRequiredFailure;
2348
+ /**
2349
+ * What every answer carries besides its data or error.
2350
+ */
2351
+ metadata: ResponseMetadata;
2352
+ success: false;
2353
+ }
2354
+ /**
2355
+ * Open the live channel with a WebSocket upgrade.
2356
+ */
2357
+ export interface AgendaUpgradeRequiredFailure {
2358
+ /**
2359
+ * The failure code, stable across releases.
2360
+ */
2361
+ code: "UPGRADE_REQUIRED";
2362
+ /**
2363
+ * No fields.
2364
+ */
2365
+ data: Empty;
2366
+ /**
2367
+ * What went wrong, for people; it never contains input values.
2368
+ */
2369
+ message: string;
2370
+ /**
2371
+ * Whether repeating the same request may succeed.
2372
+ */
2373
+ retryable: false;
2374
+ }
2375
+ /**
2376
+ * The waitlist entry changed; reload before saving.
2377
+ */
2378
+ export interface AgendaWaitlistEntryVersionMismatchFailure {
2379
+ /**
2380
+ * The failure code, stable across releases.
2381
+ */
2382
+ code: "WAITLIST_ENTRY_VERSION_MISMATCH";
2383
+ /**
2384
+ * No fields.
2385
+ */
2386
+ data: Empty;
2387
+ /**
2388
+ * What went wrong, for people; it never contains input values.
2389
+ */
2390
+ message: string;
2391
+ /**
2392
+ * Whether repeating the same request may succeed.
2393
+ */
2394
+ retryable: false;
2395
+ }
2396
+ /**
2397
+ * More than one active agenda matches resourceName for this service. Read
2398
+ * bookingOfferings.list and provide the complete requested professional name or
2399
+ * its agendas[].id. No waiting-list entry was changed.
2400
+ */
2401
+ export interface AgendaWaitlistResourceAmbiguousFailure {
2402
+ /**
2403
+ * The failure code, stable across releases.
2404
+ */
2405
+ code: "WAITLIST_RESOURCE_AMBIGUOUS";
2406
+ /**
2407
+ * No fields.
2408
+ */
2409
+ data: Empty;
2410
+ /**
2411
+ * What went wrong, for people; it never contains input values.
2412
+ */
2413
+ message: string;
2414
+ /**
2415
+ * Whether repeating the same request may succeed.
2416
+ */
2417
+ retryable: false;
2418
+ }
2419
+ /**
2420
+ * The requested professional is not an active agenda for this service. Use
2421
+ * resourceName for the requested professional or copy agendas[].id from
2422
+ * bookingOfferings.list, never the offering id. If both are supplied, they must
2423
+ * agree. No waiting-list entry was changed. Correct the reference with the same
2424
+ * consent. If a verified provider professional is absent from Agenda, omit
2425
+ * resourceName, clear resourceId and explicitly restrict the manual request to
2426
+ * that professional in note.
2427
+ */
2428
+ export interface AgendaWaitlistResourceUnavailableFailure {
2429
+ /**
2430
+ * The failure code, stable across releases.
2431
+ */
2432
+ code: "WAITLIST_RESOURCE_UNAVAILABLE";
2433
+ /**
2434
+ * No fields.
2435
+ */
2436
+ data: Empty;
2437
+ /**
2438
+ * What went wrong, for people; it never contains input values.
2439
+ */
2440
+ message: string;
2441
+ /**
2442
+ * Whether repeating the same request may succeed.
2443
+ */
2444
+ retryable: false;
2445
+ }
2446
+ /**
2447
+ * Correct serviceId using serviceId from bookingOfferings.list. Search a short
2448
+ * service term such as neurología, then inspect the matching service name.
2449
+ * Never invent an ID. No waiting-list entry was changed; correct this field and
2450
+ * retry with the same consent.
2451
+ */
2452
+ export interface AgendaWaitlistServiceUnavailableFailure {
2453
+ /**
2454
+ * The failure code, stable across releases.
2455
+ */
2456
+ code: "WAITLIST_SERVICE_UNAVAILABLE";
2457
+ /**
2458
+ * No fields.
2459
+ */
2460
+ data: Empty;
2461
+ /**
2462
+ * What went wrong, for people; it never contains input values.
2463
+ */
2464
+ message: string;
2465
+ /**
2466
+ * Whether repeating the same request may succeed.
2467
+ */
2468
+ retryable: false;
1118
2469
  }
1119
2470
  export declare const AgendaAppointmentCodec: import("../_/codec.js").Codec;
2471
+ export declare const AgendaAppointmentResponseCodec: import("../_/codec.js").Codec;
1120
2472
  export declare const AgendaAppointmentStatusChangeCodec: import("../_/codec.js").Codec;
1121
2473
  export declare const AgendaLocationCodec: import("../_/codec.js").Codec;
1122
2474
  export declare const AgendaLocationPageCodec: import("../_/codec.js").Codec;
2475
+ export declare const AgendaLocationPageResponseCodec: import("../_/codec.js").Codec;
1123
2476
  export declare const AgendaSlotCodec: import("../_/codec.js").Codec;
1124
2477
  export declare const AgendaSlotPageCodec: import("../_/codec.js").Codec;
2478
+ export declare const AgendaSlotPageResponseCodec: import("../_/codec.js").Codec;