@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,5 +1,5 @@
1
- import type { PageInfo } from "../../models.js";
2
- import { type AgendaAppointment } from "../models.js";
1
+ import type { ForbiddenFailure, InvalidInputFailure, PageInfo, ResponseMetadata, UnsupportedMediaTypeFailure, UpstreamUnavailableFailure } from "../../models.js";
2
+ import { type AgendaAgeNotEligibleFailure, type AgendaApplicationJsonRequiredFailure, type AgendaAppointment, type AgendaAppointmentClosedFailure, type AgendaAppointmentIntakeInput, type AgendaAppointmentNotMovableFailure, type AgendaAppointmentNotRemindableFailure, type AgendaAppointmentVersionMismatchFailure, type AgendaAppointmentWithoutPatientFailure, type AgendaArbolCatalogTooLargeFailure, type AgendaArbolConfigurationRequiredFailure, type AgendaArbolRefusedFailure, type AgendaArbolResponseTooLargeFailure, type AgendaArbolSettingsVersionMismatchFailure, type AgendaArbolUnavailableFailure, type AgendaBindingVersionMismatchFailure, type AgendaBirthDateRequiredFailure, type AgendaDailyReportTooLargeFailure, type AgendaDurationChangeOffFailure, type AgendaDurationNotAllowedFailure, type AgendaFileContentMismatchFailure, type AgendaFollowupConsentRequiredFailure, type AgendaFollowupDisabledFailure, type AgendaFollowupSettingsVersionMismatchFailure, type AgendaHoldNotActiveFailure, type AgendaIdTokenMismatchFailure, type AgendaIntakeSettingsVersionMismatchFailure, type AgendaInvalidAppointmentIntakeFailure, type AgendaInvalidAvailabilityWindowFailure, type AgendaInvalidBodyFailure, type AgendaInvalidFileKindFailure, type AgendaInvalidFileNameFailure, type AgendaInvalidHoldPayloadFailure, type AgendaInvalidIdTokenFailure, type AgendaInvalidJsonFailure, type AgendaInvalidPatientFieldsFailure, type AgendaInvalidSlotTokenFailure, type AgendaInvalidWindowFailure, type AgendaLocationVersionMismatchFailure, type AgendaNotFileUploaderFailure, type AgendaNotNoteAuthorFailure, type AgendaNotificationSettingsVersionMismatchFailure, type AgendaNotificationsNotSetUpFailure, type AgendaOfferingVersionMismatchFailure, type AgendaOrganizationVersionMismatchFailure, type AgendaOriginNotAllowedFailure, type AgendaOverbookOutOfRangeFailure, type AgendaOverbookUnavailableFailure, type AgendaPatientArchivedFailure, type AgendaPatientDocumentTakenFailure, type AgendaPatientEmailRequiredFailure, type AgendaPatientVersionMismatchFailure, type AgendaPayerNameTakenFailure, type AgendaPayerStaffOnlyFailure, type AgendaPayerVersionMismatchFailure, type AgendaProfileVersionMismatchFailure, type AgendaProviderDisabledFailure, type AgendaRecallAlreadyActiveFailure, type AgendaRecallMonthPassedFailure, type AgendaRecallVersionMismatchFailure, type AgendaRecallVisitInFutureFailure, type AgendaRecallVisitRequiredFailure, type AgendaRemovalJobConflictFailure, type AgendaRemovalWorkflowUnavailableFailure, type AgendaReportNotificationsDisabledFailure, type AgendaReportRecipientsRequiredFailure, type AgendaReportSettingsVersionMismatchFailure, type AgendaResourceCapacityExceededFailure, type AgendaResourceVersionMismatchFailure, type AgendaSameOfferingFailure, type AgendaSameResourceFailure, type AgendaSameServiceFailure, type AgendaScheduleChangedFailure, type AgendaScheduleRuleAgendaMismatchFailure, type AgendaScheduleRuleExpectedVersionRequiredFailure, type AgendaScheduleRuleVersionMismatchFailure, type AgendaScheduleRulesChangedFailure, type AgendaServiceCapacityExceededFailure, type AgendaServiceChangedFailure, type AgendaServiceVersionMismatchFailure, type AgendaSlotOfferAlreadyOpenFailure, type AgendaSlotOfferClosedFailure, type AgendaSlotOfferMismatchFailure, type AgendaSlotOfferNotAllowedFailure, type AgendaSlotOfferTooSoonFailure, type AgendaSlotRequiredFailure, type AgendaStudyLengthNotOfferedFailure, type AgendaStudyOverbookingNotAllowedFailure, type AgendaTargetInactiveFailure, type AgendaUnexpectedQueryParametersFailure, type AgendaUnsupportedContentEncodingFailure, type AgendaUnsupportedFileTypeFailure, type AgendaWaitlistEntryVersionMismatchFailure, type AgendaWaitlistResourceAmbiguousFailure, type AgendaWaitlistResourceUnavailableFailure, type AgendaWaitlistServiceUnavailableFailure } from "../models.js";
3
3
  export interface AgendaAppointmentPage {
4
4
  /**
5
5
  * Items admitted by this resource contract within the verified organization.
@@ -14,4 +14,614 @@ export interface AgendaAppointmentPage {
14
14
  */
15
15
  pageInfo: PageInfo;
16
16
  }
17
+ /**
18
+ * A successful answer.
19
+ */
20
+ export interface AgendaAppointmentPageResponse {
21
+ data: AgendaAppointmentPage;
22
+ error: null;
23
+ /**
24
+ * What every answer carries besides its data or error.
25
+ */
26
+ metadata: ResponseMetadata;
27
+ success: true;
28
+ }
29
+ /**
30
+ * A failed answer.
31
+ */
32
+ export interface AgendaCreateAppointmentBadRequestError {
33
+ data: null;
34
+ error: AgendaCreateAppointmentBadRequestFailure;
35
+ /**
36
+ * What every answer carries besides its data or error.
37
+ */
38
+ metadata: ResponseMetadata;
39
+ success: false;
40
+ }
41
+ export type AgendaCreateAppointmentBadRequestFailure = InvalidInputFailure | AgendaWaitlistServiceUnavailableFailure | AgendaWaitlistResourceUnavailableFailure | AgendaWaitlistResourceAmbiguousFailure | AgendaInvalidAppointmentIntakeFailure | AgendaInvalidPatientFieldsFailure | AgendaDurationChangeOffFailure | AgendaDurationNotAllowedFailure | AgendaStudyLengthNotOfferedFailure | AgendaInvalidFileKindFailure | AgendaInvalidFileNameFailure | AgendaInvalidIdTokenFailure | AgendaInvalidJsonFailure | AgendaInvalidWindowFailure | AgendaUnexpectedQueryParametersFailure | AgendaInvalidBodyFailure;
42
+ export interface AgendaCreateAppointmentBody {
43
+ /**
44
+ * Booking source recorded on the appointment; null when no channel was
45
+ * recorded.
46
+ */
47
+ bookingChannel?: string;
48
+ /**
49
+ * External contact reference associated with this booking; null when it has
50
+ * no external contact.
51
+ */
52
+ contactId?: string | null;
53
+ /**
54
+ * Existing unexpired capacity hold to convert; provide holdId or a freshly
55
+ * returned signed slot token.
56
+ */
57
+ holdId?: string;
58
+ /**
59
+ * Stable key for this booking attempt, unique within the verified
60
+ * organization. Reusing it returns the original appointment.
61
+ */
62
+ idempotencyKey: string;
63
+ /**
64
+ * Appointment-specific contact, payer, authorization and custom-field values;
65
+ * null when no intake was recorded.
66
+ */
67
+ intake?: AgendaAppointmentIntakeInput | null;
68
+ /**
69
+ * Patient identity copied into the booking; null when no patient identity was
70
+ * supplied.
71
+ */
72
+ patient?: {
73
+ document?: string | null;
74
+ documentNumber?: string | null;
75
+ documentType?: string | null;
76
+ name: string;
77
+ } | null;
78
+ /**
79
+ * Patient-supplied date of birth (YYYY-MM-DD), stored on the record and
80
+ * checked against service age eligibility.
81
+ */
82
+ patientBirthDate?: Temporal.PlainDate;
83
+ /**
84
+ * The registered patient the desk picked. The typed document still decides
85
+ * who it is; this record only gains that document when it had none.
86
+ */
87
+ patientId?: string;
88
+ /**
89
+ * Opaque signed token for one exact available slot. Use the returned token
90
+ * unchanged after the patient confirms that time.
91
+ */
92
+ slotToken?: string;
93
+ /**
94
+ * Desk-authored appointment title; null permits the service name to supply
95
+ * the display title.
96
+ */
97
+ title?: string | null;
98
+ }
99
+ /**
100
+ * A failed answer.
101
+ */
102
+ export interface AgendaCreateAppointmentConflictError {
103
+ data: null;
104
+ error: AgendaCreateAppointmentConflictFailure;
105
+ /**
106
+ * What every answer carries besides its data or error.
107
+ */
108
+ metadata: ResponseMetadata;
109
+ success: false;
110
+ }
111
+ export type AgendaCreateAppointmentConflictFailure = AgendaPayerStaffOnlyFailure | AgendaAppointmentNotRemindableFailure | AgendaAppointmentWithoutPatientFailure | AgendaArbolCatalogTooLargeFailure | AgendaArbolConfigurationRequiredFailure | AgendaNotificationsNotSetUpFailure | AgendaSameOfferingFailure | AgendaSameServiceFailure | AgendaInvalidHoldPayloadFailure | AgendaHoldNotActiveFailure | AgendaAppointmentClosedFailure | AgendaAppointmentVersionMismatchFailure | AgendaAppointmentNotMovableFailure | AgendaServiceChangedFailure | AgendaScheduleChangedFailure | AgendaInvalidAvailabilityWindowFailure | AgendaServiceCapacityExceededFailure | AgendaResourceCapacityExceededFailure | AgendaOverbookOutOfRangeFailure | AgendaOverbookUnavailableFailure | AgendaStudyOverbookingNotAllowedFailure | AgendaInvalidSlotTokenFailure | AgendaBirthDateRequiredFailure | AgendaAgeNotEligibleFailure | AgendaIntakeSettingsVersionMismatchFailure | AgendaPayerNameTakenFailure | AgendaPayerVersionMismatchFailure | AgendaLocationVersionMismatchFailure | AgendaProfileVersionMismatchFailure | AgendaProviderDisabledFailure | AgendaBindingVersionMismatchFailure | AgendaResourceVersionMismatchFailure | AgendaScheduleRuleAgendaMismatchFailure | AgendaScheduleRuleExpectedVersionRequiredFailure | AgendaScheduleRuleVersionMismatchFailure | AgendaScheduleRulesChangedFailure | AgendaServiceVersionMismatchFailure | AgendaOfferingVersionMismatchFailure | AgendaSameResourceFailure | AgendaTargetInactiveFailure | AgendaSlotRequiredFailure | AgendaArbolSettingsVersionMismatchFailure | AgendaNotificationSettingsVersionMismatchFailure | AgendaOrganizationVersionMismatchFailure | AgendaPatientDocumentTakenFailure | AgendaPatientVersionMismatchFailure | AgendaDailyReportTooLargeFailure | AgendaReportSettingsVersionMismatchFailure | AgendaReportNotificationsDisabledFailure | AgendaReportRecipientsRequiredFailure | AgendaWaitlistEntryVersionMismatchFailure | AgendaRemovalJobConflictFailure | AgendaFollowupSettingsVersionMismatchFailure | AgendaFollowupDisabledFailure | AgendaFollowupConsentRequiredFailure | AgendaPatientEmailRequiredFailure | AgendaPatientArchivedFailure | AgendaRecallAlreadyActiveFailure | AgendaRecallMonthPassedFailure | AgendaRecallVisitRequiredFailure | AgendaRecallVisitInFutureFailure | AgendaRecallVersionMismatchFailure | AgendaSlotOfferNotAllowedFailure | AgendaSlotOfferMismatchFailure | AgendaSlotOfferTooSoonFailure | AgendaSlotOfferAlreadyOpenFailure | AgendaSlotOfferClosedFailure;
112
+ /**
113
+ * A failed answer.
114
+ */
115
+ export interface AgendaCreateAppointmentForbiddenError {
116
+ data: null;
117
+ error: AgendaCreateAppointmentForbiddenFailure;
118
+ /**
119
+ * What every answer carries besides its data or error.
120
+ */
121
+ metadata: ResponseMetadata;
122
+ success: false;
123
+ }
124
+ export type AgendaCreateAppointmentForbiddenFailure = ForbiddenFailure | AgendaIdTokenMismatchFailure | AgendaNotFileUploaderFailure | AgendaNotNoteAuthorFailure | AgendaOriginNotAllowedFailure;
125
+ /**
126
+ * A failed answer.
127
+ */
128
+ export interface AgendaCreateAppointmentServiceUnavailableError {
129
+ data: null;
130
+ error: AgendaCreateAppointmentServiceUnavailableFailure;
131
+ /**
132
+ * What every answer carries besides its data or error.
133
+ */
134
+ metadata: ResponseMetadata;
135
+ success: false;
136
+ }
137
+ export type AgendaCreateAppointmentServiceUnavailableFailure = UpstreamUnavailableFailure | AgendaArbolResponseTooLargeFailure | AgendaArbolUnavailableFailure | AgendaRemovalWorkflowUnavailableFailure | AgendaArbolRefusedFailure;
138
+ /**
139
+ * A failed answer.
140
+ */
141
+ export interface AgendaCreateAppointmentUnsupportedMediaTypeError {
142
+ data: null;
143
+ error: AgendaCreateAppointmentUnsupportedMediaTypeFailure;
144
+ /**
145
+ * What every answer carries besides its data or error.
146
+ */
147
+ metadata: ResponseMetadata;
148
+ success: false;
149
+ }
150
+ export type AgendaCreateAppointmentUnsupportedMediaTypeFailure = UnsupportedMediaTypeFailure | AgendaApplicationJsonRequiredFailure | AgendaFileContentMismatchFailure | AgendaUnsupportedContentEncodingFailure | AgendaUnsupportedFileTypeFailure;
151
+ /**
152
+ * A failed answer.
153
+ */
154
+ export interface AgendaGetAppointmentBadRequestError {
155
+ data: null;
156
+ error: AgendaGetAppointmentBadRequestFailure;
157
+ /**
158
+ * What every answer carries besides its data or error.
159
+ */
160
+ metadata: ResponseMetadata;
161
+ success: false;
162
+ }
163
+ export type AgendaGetAppointmentBadRequestFailure = InvalidInputFailure | AgendaWaitlistServiceUnavailableFailure | AgendaWaitlistResourceUnavailableFailure | AgendaWaitlistResourceAmbiguousFailure | AgendaInvalidAppointmentIntakeFailure | AgendaInvalidPatientFieldsFailure | AgendaDurationChangeOffFailure | AgendaDurationNotAllowedFailure | AgendaStudyLengthNotOfferedFailure | AgendaInvalidFileKindFailure | AgendaInvalidFileNameFailure | AgendaInvalidIdTokenFailure | AgendaInvalidJsonFailure | AgendaInvalidWindowFailure | AgendaUnexpectedQueryParametersFailure | AgendaInvalidBodyFailure;
164
+ /**
165
+ * A failed answer.
166
+ */
167
+ export interface AgendaGetAppointmentConflictError {
168
+ data: null;
169
+ error: AgendaGetAppointmentConflictFailure;
170
+ /**
171
+ * What every answer carries besides its data or error.
172
+ */
173
+ metadata: ResponseMetadata;
174
+ success: false;
175
+ }
176
+ export type AgendaGetAppointmentConflictFailure = AgendaPayerStaffOnlyFailure | AgendaAppointmentNotRemindableFailure | AgendaAppointmentWithoutPatientFailure | AgendaArbolCatalogTooLargeFailure | AgendaArbolConfigurationRequiredFailure | AgendaNotificationsNotSetUpFailure | AgendaSameOfferingFailure | AgendaSameServiceFailure | AgendaInvalidHoldPayloadFailure | AgendaHoldNotActiveFailure | AgendaAppointmentClosedFailure | AgendaAppointmentVersionMismatchFailure | AgendaAppointmentNotMovableFailure | AgendaServiceChangedFailure | AgendaScheduleChangedFailure | AgendaInvalidAvailabilityWindowFailure | AgendaServiceCapacityExceededFailure | AgendaResourceCapacityExceededFailure | AgendaOverbookOutOfRangeFailure | AgendaOverbookUnavailableFailure | AgendaStudyOverbookingNotAllowedFailure | AgendaInvalidSlotTokenFailure | AgendaBirthDateRequiredFailure | AgendaAgeNotEligibleFailure | AgendaIntakeSettingsVersionMismatchFailure | AgendaPayerNameTakenFailure | AgendaPayerVersionMismatchFailure | AgendaLocationVersionMismatchFailure | AgendaProfileVersionMismatchFailure | AgendaProviderDisabledFailure | AgendaBindingVersionMismatchFailure | AgendaResourceVersionMismatchFailure | AgendaScheduleRuleAgendaMismatchFailure | AgendaScheduleRuleExpectedVersionRequiredFailure | AgendaScheduleRuleVersionMismatchFailure | AgendaScheduleRulesChangedFailure | AgendaServiceVersionMismatchFailure | AgendaOfferingVersionMismatchFailure | AgendaSameResourceFailure | AgendaTargetInactiveFailure | AgendaSlotRequiredFailure | AgendaArbolSettingsVersionMismatchFailure | AgendaNotificationSettingsVersionMismatchFailure | AgendaOrganizationVersionMismatchFailure | AgendaPatientDocumentTakenFailure | AgendaPatientVersionMismatchFailure | AgendaDailyReportTooLargeFailure | AgendaReportSettingsVersionMismatchFailure | AgendaReportNotificationsDisabledFailure | AgendaReportRecipientsRequiredFailure | AgendaWaitlistEntryVersionMismatchFailure | AgendaRemovalJobConflictFailure | AgendaFollowupSettingsVersionMismatchFailure | AgendaFollowupDisabledFailure | AgendaFollowupConsentRequiredFailure | AgendaPatientEmailRequiredFailure | AgendaPatientArchivedFailure | AgendaRecallAlreadyActiveFailure | AgendaRecallMonthPassedFailure | AgendaRecallVisitRequiredFailure | AgendaRecallVisitInFutureFailure | AgendaRecallVersionMismatchFailure | AgendaSlotOfferNotAllowedFailure | AgendaSlotOfferMismatchFailure | AgendaSlotOfferTooSoonFailure | AgendaSlotOfferAlreadyOpenFailure | AgendaSlotOfferClosedFailure;
177
+ /**
178
+ * A failed answer.
179
+ */
180
+ export interface AgendaGetAppointmentForbiddenError {
181
+ data: null;
182
+ error: AgendaGetAppointmentForbiddenFailure;
183
+ /**
184
+ * What every answer carries besides its data or error.
185
+ */
186
+ metadata: ResponseMetadata;
187
+ success: false;
188
+ }
189
+ export type AgendaGetAppointmentForbiddenFailure = ForbiddenFailure | AgendaIdTokenMismatchFailure | AgendaNotFileUploaderFailure | AgendaNotNoteAuthorFailure | AgendaOriginNotAllowedFailure;
190
+ /**
191
+ * A failed answer.
192
+ */
193
+ export interface AgendaGetAppointmentServiceUnavailableError {
194
+ data: null;
195
+ error: AgendaGetAppointmentServiceUnavailableFailure;
196
+ /**
197
+ * What every answer carries besides its data or error.
198
+ */
199
+ metadata: ResponseMetadata;
200
+ success: false;
201
+ }
202
+ export type AgendaGetAppointmentServiceUnavailableFailure = UpstreamUnavailableFailure | AgendaArbolResponseTooLargeFailure | AgendaArbolUnavailableFailure | AgendaRemovalWorkflowUnavailableFailure | AgendaArbolRefusedFailure;
203
+ /**
204
+ * A failed answer.
205
+ */
206
+ export interface AgendaGetAppointmentUnsupportedMediaTypeError {
207
+ data: null;
208
+ error: AgendaGetAppointmentUnsupportedMediaTypeFailure;
209
+ /**
210
+ * What every answer carries besides its data or error.
211
+ */
212
+ metadata: ResponseMetadata;
213
+ success: false;
214
+ }
215
+ export type AgendaGetAppointmentUnsupportedMediaTypeFailure = AgendaApplicationJsonRequiredFailure | AgendaFileContentMismatchFailure | AgendaUnsupportedContentEncodingFailure | AgendaUnsupportedFileTypeFailure;
216
+ /**
217
+ * A failed answer.
218
+ */
219
+ export interface AgendaListAppointmentsBadRequestError {
220
+ data: null;
221
+ error: AgendaListAppointmentsBadRequestFailure;
222
+ /**
223
+ * What every answer carries besides its data or error.
224
+ */
225
+ metadata: ResponseMetadata;
226
+ success: false;
227
+ }
228
+ export type AgendaListAppointmentsBadRequestFailure = InvalidInputFailure | AgendaWaitlistServiceUnavailableFailure | AgendaWaitlistResourceUnavailableFailure | AgendaWaitlistResourceAmbiguousFailure | AgendaInvalidAppointmentIntakeFailure | AgendaInvalidPatientFieldsFailure | AgendaDurationChangeOffFailure | AgendaDurationNotAllowedFailure | AgendaStudyLengthNotOfferedFailure | AgendaInvalidFileKindFailure | AgendaInvalidFileNameFailure | AgendaInvalidIdTokenFailure | AgendaInvalidJsonFailure | AgendaInvalidWindowFailure | AgendaUnexpectedQueryParametersFailure | AgendaInvalidBodyFailure;
229
+ /**
230
+ * A failed answer.
231
+ */
232
+ export interface AgendaListAppointmentsConflictError {
233
+ data: null;
234
+ error: AgendaListAppointmentsConflictFailure;
235
+ /**
236
+ * What every answer carries besides its data or error.
237
+ */
238
+ metadata: ResponseMetadata;
239
+ success: false;
240
+ }
241
+ export type AgendaListAppointmentsConflictFailure = AgendaPayerStaffOnlyFailure | AgendaAppointmentNotRemindableFailure | AgendaAppointmentWithoutPatientFailure | AgendaArbolCatalogTooLargeFailure | AgendaArbolConfigurationRequiredFailure | AgendaNotificationsNotSetUpFailure | AgendaSameOfferingFailure | AgendaSameServiceFailure | AgendaInvalidHoldPayloadFailure | AgendaHoldNotActiveFailure | AgendaAppointmentClosedFailure | AgendaAppointmentVersionMismatchFailure | AgendaAppointmentNotMovableFailure | AgendaServiceChangedFailure | AgendaScheduleChangedFailure | AgendaInvalidAvailabilityWindowFailure | AgendaServiceCapacityExceededFailure | AgendaResourceCapacityExceededFailure | AgendaOverbookOutOfRangeFailure | AgendaOverbookUnavailableFailure | AgendaStudyOverbookingNotAllowedFailure | AgendaInvalidSlotTokenFailure | AgendaBirthDateRequiredFailure | AgendaAgeNotEligibleFailure | AgendaIntakeSettingsVersionMismatchFailure | AgendaPayerNameTakenFailure | AgendaPayerVersionMismatchFailure | AgendaLocationVersionMismatchFailure | AgendaProfileVersionMismatchFailure | AgendaProviderDisabledFailure | AgendaBindingVersionMismatchFailure | AgendaResourceVersionMismatchFailure | AgendaScheduleRuleAgendaMismatchFailure | AgendaScheduleRuleExpectedVersionRequiredFailure | AgendaScheduleRuleVersionMismatchFailure | AgendaScheduleRulesChangedFailure | AgendaServiceVersionMismatchFailure | AgendaOfferingVersionMismatchFailure | AgendaSameResourceFailure | AgendaTargetInactiveFailure | AgendaSlotRequiredFailure | AgendaArbolSettingsVersionMismatchFailure | AgendaNotificationSettingsVersionMismatchFailure | AgendaOrganizationVersionMismatchFailure | AgendaPatientDocumentTakenFailure | AgendaPatientVersionMismatchFailure | AgendaDailyReportTooLargeFailure | AgendaReportSettingsVersionMismatchFailure | AgendaReportNotificationsDisabledFailure | AgendaReportRecipientsRequiredFailure | AgendaWaitlistEntryVersionMismatchFailure | AgendaRemovalJobConflictFailure | AgendaFollowupSettingsVersionMismatchFailure | AgendaFollowupDisabledFailure | AgendaFollowupConsentRequiredFailure | AgendaPatientEmailRequiredFailure | AgendaPatientArchivedFailure | AgendaRecallAlreadyActiveFailure | AgendaRecallMonthPassedFailure | AgendaRecallVisitRequiredFailure | AgendaRecallVisitInFutureFailure | AgendaRecallVersionMismatchFailure | AgendaSlotOfferNotAllowedFailure | AgendaSlotOfferMismatchFailure | AgendaSlotOfferTooSoonFailure | AgendaSlotOfferAlreadyOpenFailure | AgendaSlotOfferClosedFailure;
242
+ /**
243
+ * A failed answer.
244
+ */
245
+ export interface AgendaListAppointmentsForbiddenError {
246
+ data: null;
247
+ error: AgendaListAppointmentsForbiddenFailure;
248
+ /**
249
+ * What every answer carries besides its data or error.
250
+ */
251
+ metadata: ResponseMetadata;
252
+ success: false;
253
+ }
254
+ export type AgendaListAppointmentsForbiddenFailure = ForbiddenFailure | AgendaIdTokenMismatchFailure | AgendaNotFileUploaderFailure | AgendaNotNoteAuthorFailure | AgendaOriginNotAllowedFailure;
255
+ /**
256
+ * A failed answer.
257
+ */
258
+ export interface AgendaListAppointmentsServiceUnavailableError {
259
+ data: null;
260
+ error: AgendaListAppointmentsServiceUnavailableFailure;
261
+ /**
262
+ * What every answer carries besides its data or error.
263
+ */
264
+ metadata: ResponseMetadata;
265
+ success: false;
266
+ }
267
+ export type AgendaListAppointmentsServiceUnavailableFailure = UpstreamUnavailableFailure | AgendaArbolResponseTooLargeFailure | AgendaArbolUnavailableFailure | AgendaRemovalWorkflowUnavailableFailure | AgendaArbolRefusedFailure;
268
+ /**
269
+ * A failed answer.
270
+ */
271
+ export interface AgendaListAppointmentsUnsupportedMediaTypeError {
272
+ data: null;
273
+ error: AgendaListAppointmentsUnsupportedMediaTypeFailure;
274
+ /**
275
+ * What every answer carries besides its data or error.
276
+ */
277
+ metadata: ResponseMetadata;
278
+ success: false;
279
+ }
280
+ export type AgendaListAppointmentsUnsupportedMediaTypeFailure = AgendaApplicationJsonRequiredFailure | AgendaFileContentMismatchFailure | AgendaUnsupportedContentEncodingFailure | AgendaUnsupportedFileTypeFailure;
281
+ /**
282
+ * A failed answer.
283
+ */
284
+ export interface AgendaRescheduleAppointmentBadRequestError {
285
+ data: null;
286
+ error: AgendaRescheduleAppointmentBadRequestFailure;
287
+ /**
288
+ * What every answer carries besides its data or error.
289
+ */
290
+ metadata: ResponseMetadata;
291
+ success: false;
292
+ }
293
+ export type AgendaRescheduleAppointmentBadRequestFailure = InvalidInputFailure | AgendaWaitlistServiceUnavailableFailure | AgendaWaitlistResourceUnavailableFailure | AgendaWaitlistResourceAmbiguousFailure | AgendaInvalidAppointmentIntakeFailure | AgendaInvalidPatientFieldsFailure | AgendaDurationChangeOffFailure | AgendaDurationNotAllowedFailure | AgendaStudyLengthNotOfferedFailure | AgendaInvalidFileKindFailure | AgendaInvalidFileNameFailure | AgendaInvalidIdTokenFailure | AgendaInvalidJsonFailure | AgendaInvalidWindowFailure | AgendaUnexpectedQueryParametersFailure | AgendaInvalidBodyFailure;
294
+ export interface AgendaRescheduleAppointmentBody {
295
+ /**
296
+ * Who moves it, as when booking: "agent" (the WhatsApp agent) may not move an
297
+ * appointment of a payer only the team books (`payer_staff_only`).
298
+ */
299
+ bookingChannel?: string;
300
+ /**
301
+ * Version last read by the caller. The mutation fails if another writer has
302
+ * changed this record.
303
+ */
304
+ expectedVersion: number;
305
+ /**
306
+ * When true, the new signed slot must belong to the appointment’s original
307
+ * service. Agent rescheduling always enables this restriction.
308
+ */
309
+ keepService?: boolean;
310
+ /**
311
+ * false: no "your appointment moved" email or WhatsApp, for a correction such
312
+ * as fixing only the service. Reminders still follow the new time.
313
+ */
314
+ notify?: boolean;
315
+ /**
316
+ * Reason recorded for this scheduling change; null when no reason was
317
+ * supplied.
318
+ */
319
+ reason?: string;
320
+ /**
321
+ * Opaque signed token for one exact available slot. Use the returned token
322
+ * unchanged after the patient confirms that time.
323
+ */
324
+ slotToken: string;
325
+ }
326
+ /**
327
+ * A failed answer.
328
+ */
329
+ export interface AgendaRescheduleAppointmentConflictError {
330
+ data: null;
331
+ error: AgendaRescheduleAppointmentConflictFailure;
332
+ /**
333
+ * What every answer carries besides its data or error.
334
+ */
335
+ metadata: ResponseMetadata;
336
+ success: false;
337
+ }
338
+ export type AgendaRescheduleAppointmentConflictFailure = AgendaPayerStaffOnlyFailure | AgendaAppointmentNotRemindableFailure | AgendaAppointmentWithoutPatientFailure | AgendaArbolCatalogTooLargeFailure | AgendaArbolConfigurationRequiredFailure | AgendaNotificationsNotSetUpFailure | AgendaSameOfferingFailure | AgendaSameServiceFailure | AgendaInvalidHoldPayloadFailure | AgendaHoldNotActiveFailure | AgendaAppointmentClosedFailure | AgendaAppointmentVersionMismatchFailure | AgendaAppointmentNotMovableFailure | AgendaServiceChangedFailure | AgendaScheduleChangedFailure | AgendaInvalidAvailabilityWindowFailure | AgendaServiceCapacityExceededFailure | AgendaResourceCapacityExceededFailure | AgendaOverbookOutOfRangeFailure | AgendaOverbookUnavailableFailure | AgendaStudyOverbookingNotAllowedFailure | AgendaInvalidSlotTokenFailure | AgendaBirthDateRequiredFailure | AgendaAgeNotEligibleFailure | AgendaIntakeSettingsVersionMismatchFailure | AgendaPayerNameTakenFailure | AgendaPayerVersionMismatchFailure | AgendaLocationVersionMismatchFailure | AgendaProfileVersionMismatchFailure | AgendaProviderDisabledFailure | AgendaBindingVersionMismatchFailure | AgendaResourceVersionMismatchFailure | AgendaScheduleRuleAgendaMismatchFailure | AgendaScheduleRuleExpectedVersionRequiredFailure | AgendaScheduleRuleVersionMismatchFailure | AgendaScheduleRulesChangedFailure | AgendaServiceVersionMismatchFailure | AgendaOfferingVersionMismatchFailure | AgendaSameResourceFailure | AgendaTargetInactiveFailure | AgendaSlotRequiredFailure | AgendaArbolSettingsVersionMismatchFailure | AgendaNotificationSettingsVersionMismatchFailure | AgendaOrganizationVersionMismatchFailure | AgendaPatientDocumentTakenFailure | AgendaPatientVersionMismatchFailure | AgendaDailyReportTooLargeFailure | AgendaReportSettingsVersionMismatchFailure | AgendaReportNotificationsDisabledFailure | AgendaReportRecipientsRequiredFailure | AgendaWaitlistEntryVersionMismatchFailure | AgendaRemovalJobConflictFailure | AgendaFollowupSettingsVersionMismatchFailure | AgendaFollowupDisabledFailure | AgendaFollowupConsentRequiredFailure | AgendaPatientEmailRequiredFailure | AgendaPatientArchivedFailure | AgendaRecallAlreadyActiveFailure | AgendaRecallMonthPassedFailure | AgendaRecallVisitRequiredFailure | AgendaRecallVisitInFutureFailure | AgendaRecallVersionMismatchFailure | AgendaSlotOfferNotAllowedFailure | AgendaSlotOfferMismatchFailure | AgendaSlotOfferTooSoonFailure | AgendaSlotOfferAlreadyOpenFailure | AgendaSlotOfferClosedFailure;
339
+ /**
340
+ * A failed answer.
341
+ */
342
+ export interface AgendaRescheduleAppointmentForbiddenError {
343
+ data: null;
344
+ error: AgendaRescheduleAppointmentForbiddenFailure;
345
+ /**
346
+ * What every answer carries besides its data or error.
347
+ */
348
+ metadata: ResponseMetadata;
349
+ success: false;
350
+ }
351
+ export type AgendaRescheduleAppointmentForbiddenFailure = ForbiddenFailure | AgendaIdTokenMismatchFailure | AgendaNotFileUploaderFailure | AgendaNotNoteAuthorFailure | AgendaOriginNotAllowedFailure;
352
+ /**
353
+ * A failed answer.
354
+ */
355
+ export interface AgendaRescheduleAppointmentServiceUnavailableError {
356
+ data: null;
357
+ error: AgendaRescheduleAppointmentServiceUnavailableFailure;
358
+ /**
359
+ * What every answer carries besides its data or error.
360
+ */
361
+ metadata: ResponseMetadata;
362
+ success: false;
363
+ }
364
+ export type AgendaRescheduleAppointmentServiceUnavailableFailure = UpstreamUnavailableFailure | AgendaArbolResponseTooLargeFailure | AgendaArbolUnavailableFailure | AgendaRemovalWorkflowUnavailableFailure | AgendaArbolRefusedFailure;
365
+ /**
366
+ * A failed answer.
367
+ */
368
+ export interface AgendaRescheduleAppointmentUnsupportedMediaTypeError {
369
+ data: null;
370
+ error: AgendaRescheduleAppointmentUnsupportedMediaTypeFailure;
371
+ /**
372
+ * What every answer carries besides its data or error.
373
+ */
374
+ metadata: ResponseMetadata;
375
+ success: false;
376
+ }
377
+ export type AgendaRescheduleAppointmentUnsupportedMediaTypeFailure = UnsupportedMediaTypeFailure | AgendaApplicationJsonRequiredFailure | AgendaFileContentMismatchFailure | AgendaUnsupportedContentEncodingFailure | AgendaUnsupportedFileTypeFailure;
378
+ /**
379
+ * A failed answer.
380
+ */
381
+ export interface AgendaSearchAppointmentsBadRequestError {
382
+ data: null;
383
+ error: AgendaSearchAppointmentsBadRequestFailure;
384
+ /**
385
+ * What every answer carries besides its data or error.
386
+ */
387
+ metadata: ResponseMetadata;
388
+ success: false;
389
+ }
390
+ export type AgendaSearchAppointmentsBadRequestFailure = InvalidInputFailure | AgendaWaitlistServiceUnavailableFailure | AgendaWaitlistResourceUnavailableFailure | AgendaWaitlistResourceAmbiguousFailure | AgendaInvalidAppointmentIntakeFailure | AgendaInvalidPatientFieldsFailure | AgendaDurationChangeOffFailure | AgendaDurationNotAllowedFailure | AgendaStudyLengthNotOfferedFailure | AgendaInvalidFileKindFailure | AgendaInvalidFileNameFailure | AgendaInvalidIdTokenFailure | AgendaInvalidJsonFailure | AgendaInvalidWindowFailure | AgendaUnexpectedQueryParametersFailure | AgendaInvalidBodyFailure;
391
+ export interface AgendaSearchAppointmentsBody {
392
+ /**
393
+ * Filter the recorded booking channel; null selects appointments whose
394
+ * channel was never recorded.
395
+ */
396
+ bookingChannel?: string | null;
397
+ /**
398
+ * Inclusive creation instant, independent of the appointment date. Pair with
399
+ * createdBefore; at most 93 days.
400
+ */
401
+ createdAfter?: Temporal.Instant;
402
+ /**
403
+ * Exclusive creation instant. Use for appointments generated during a period,
404
+ * including future appointments.
405
+ */
406
+ createdBefore?: Temporal.Instant;
407
+ /**
408
+ * Principal reference of whoever booked it.
409
+ */
410
+ createdBy?: string | null;
411
+ /**
412
+ * Opaque cursor returned by pageInfo; omit it to request the first page.
413
+ */
414
+ cursor?: string;
415
+ /**
416
+ * Direction to traverse the stable keyset ordering from the supplied cursor.
417
+ */
418
+ direction?: "forward" | "backward";
419
+ /**
420
+ * Beginning of the appointment range; must be paired with to unless a patient
421
+ * search is supplied.
422
+ */
423
+ from?: Temporal.Instant;
424
+ /**
425
+ * Maximum number of appointment records returned by one page; defaults to 25
426
+ * and cannot exceed 500.
427
+ */
428
+ limit?: number;
429
+ /**
430
+ * Held on an agenda of this site, like `appointmentReport`.
431
+ */
432
+ locationId?: string;
433
+ /**
434
+ * Ascending or descending order within the selected appointment sort key.
435
+ */
436
+ order?: "desc" | "asc";
437
+ /**
438
+ * The payer's name as recorded in the intake.
439
+ */
440
+ payer?: string | null;
441
+ /**
442
+ * Only appointments marked priority ("urgent"), or only the rest.
443
+ */
444
+ priority?: "normal" | "urgent";
445
+ /**
446
+ * Patient name or document search text; provide this or a complete instant
447
+ * range.
448
+ */
449
+ q?: string;
450
+ /**
451
+ * Deprecated: use `q`. Answered until 2027-01-28.
452
+ *
453
+ * @deprecated
454
+ */
455
+ query?: string;
456
+ /**
457
+ * The reason given for a cancellation or no-show.
458
+ */
459
+ reason?: string | null;
460
+ /**
461
+ * Only appointments assigned to this agenda in the authenticated
462
+ * organization.
463
+ */
464
+ resourceId?: string;
465
+ /**
466
+ * Held on any of these agendas (at most 200).
467
+ */
468
+ resourceIds?: string[];
469
+ /**
470
+ * Service identifier within the authenticated organization.
471
+ */
472
+ serviceId?: string;
473
+ /**
474
+ * createdAt uses agenda overlap semantics; startsAt selects appointments
475
+ * beginning inside the report window.
476
+ */
477
+ sort?: "createdAt" | "startsAt";
478
+ /**
479
+ * One status, or any of several.
480
+ */
481
+ status?: ("tentative" | "scheduled" | "confirmed" | "checked_in" | "completed" | "cancelled" | "no_show" | "unknown")[] | "tentative" | "scheduled" | "confirmed" | "checked_in" | "completed" | "cancelled" | "no_show" | "unknown";
482
+ /**
483
+ * Principal reference of whoever made the latest status change.
484
+ */
485
+ statusChangedBy?: string | null;
486
+ /**
487
+ * End of the appointment range; must be paired with from.
488
+ */
489
+ to?: Temporal.Instant;
490
+ }
491
+ /**
492
+ * A failed answer.
493
+ */
494
+ export interface AgendaSearchAppointmentsConflictError {
495
+ data: null;
496
+ error: AgendaSearchAppointmentsConflictFailure;
497
+ /**
498
+ * What every answer carries besides its data or error.
499
+ */
500
+ metadata: ResponseMetadata;
501
+ success: false;
502
+ }
503
+ export type AgendaSearchAppointmentsConflictFailure = AgendaPayerStaffOnlyFailure | AgendaAppointmentNotRemindableFailure | AgendaAppointmentWithoutPatientFailure | AgendaArbolCatalogTooLargeFailure | AgendaArbolConfigurationRequiredFailure | AgendaNotificationsNotSetUpFailure | AgendaSameOfferingFailure | AgendaSameServiceFailure | AgendaInvalidHoldPayloadFailure | AgendaHoldNotActiveFailure | AgendaAppointmentClosedFailure | AgendaAppointmentVersionMismatchFailure | AgendaAppointmentNotMovableFailure | AgendaServiceChangedFailure | AgendaScheduleChangedFailure | AgendaInvalidAvailabilityWindowFailure | AgendaServiceCapacityExceededFailure | AgendaResourceCapacityExceededFailure | AgendaOverbookOutOfRangeFailure | AgendaOverbookUnavailableFailure | AgendaStudyOverbookingNotAllowedFailure | AgendaInvalidSlotTokenFailure | AgendaBirthDateRequiredFailure | AgendaAgeNotEligibleFailure | AgendaIntakeSettingsVersionMismatchFailure | AgendaPayerNameTakenFailure | AgendaPayerVersionMismatchFailure | AgendaLocationVersionMismatchFailure | AgendaProfileVersionMismatchFailure | AgendaProviderDisabledFailure | AgendaBindingVersionMismatchFailure | AgendaResourceVersionMismatchFailure | AgendaScheduleRuleAgendaMismatchFailure | AgendaScheduleRuleExpectedVersionRequiredFailure | AgendaScheduleRuleVersionMismatchFailure | AgendaScheduleRulesChangedFailure | AgendaServiceVersionMismatchFailure | AgendaOfferingVersionMismatchFailure | AgendaSameResourceFailure | AgendaTargetInactiveFailure | AgendaSlotRequiredFailure | AgendaArbolSettingsVersionMismatchFailure | AgendaNotificationSettingsVersionMismatchFailure | AgendaOrganizationVersionMismatchFailure | AgendaPatientDocumentTakenFailure | AgendaPatientVersionMismatchFailure | AgendaDailyReportTooLargeFailure | AgendaReportSettingsVersionMismatchFailure | AgendaReportNotificationsDisabledFailure | AgendaReportRecipientsRequiredFailure | AgendaWaitlistEntryVersionMismatchFailure | AgendaRemovalJobConflictFailure | AgendaFollowupSettingsVersionMismatchFailure | AgendaFollowupDisabledFailure | AgendaFollowupConsentRequiredFailure | AgendaPatientEmailRequiredFailure | AgendaPatientArchivedFailure | AgendaRecallAlreadyActiveFailure | AgendaRecallMonthPassedFailure | AgendaRecallVisitRequiredFailure | AgendaRecallVisitInFutureFailure | AgendaRecallVersionMismatchFailure | AgendaSlotOfferNotAllowedFailure | AgendaSlotOfferMismatchFailure | AgendaSlotOfferTooSoonFailure | AgendaSlotOfferAlreadyOpenFailure | AgendaSlotOfferClosedFailure;
504
+ /**
505
+ * A failed answer.
506
+ */
507
+ export interface AgendaSearchAppointmentsForbiddenError {
508
+ data: null;
509
+ error: AgendaSearchAppointmentsForbiddenFailure;
510
+ /**
511
+ * What every answer carries besides its data or error.
512
+ */
513
+ metadata: ResponseMetadata;
514
+ success: false;
515
+ }
516
+ export type AgendaSearchAppointmentsForbiddenFailure = ForbiddenFailure | AgendaIdTokenMismatchFailure | AgendaNotFileUploaderFailure | AgendaNotNoteAuthorFailure | AgendaOriginNotAllowedFailure;
517
+ /**
518
+ * A failed answer.
519
+ */
520
+ export interface AgendaSearchAppointmentsServiceUnavailableError {
521
+ data: null;
522
+ error: AgendaSearchAppointmentsServiceUnavailableFailure;
523
+ /**
524
+ * What every answer carries besides its data or error.
525
+ */
526
+ metadata: ResponseMetadata;
527
+ success: false;
528
+ }
529
+ export type AgendaSearchAppointmentsServiceUnavailableFailure = UpstreamUnavailableFailure | AgendaArbolResponseTooLargeFailure | AgendaArbolUnavailableFailure | AgendaRemovalWorkflowUnavailableFailure | AgendaArbolRefusedFailure;
530
+ /**
531
+ * A failed answer.
532
+ */
533
+ export interface AgendaSearchAppointmentsUnsupportedMediaTypeError {
534
+ data: null;
535
+ error: AgendaSearchAppointmentsUnsupportedMediaTypeFailure;
536
+ /**
537
+ * What every answer carries besides its data or error.
538
+ */
539
+ metadata: ResponseMetadata;
540
+ success: false;
541
+ }
542
+ export type AgendaSearchAppointmentsUnsupportedMediaTypeFailure = UnsupportedMediaTypeFailure | AgendaApplicationJsonRequiredFailure | AgendaFileContentMismatchFailure | AgendaUnsupportedContentEncodingFailure | AgendaUnsupportedFileTypeFailure;
543
+ /**
544
+ * A failed answer.
545
+ */
546
+ export interface AgendaUpdateAppointmentStatusBadRequestError {
547
+ data: null;
548
+ error: AgendaUpdateAppointmentStatusBadRequestFailure;
549
+ /**
550
+ * What every answer carries besides its data or error.
551
+ */
552
+ metadata: ResponseMetadata;
553
+ success: false;
554
+ }
555
+ export type AgendaUpdateAppointmentStatusBadRequestFailure = InvalidInputFailure | AgendaWaitlistServiceUnavailableFailure | AgendaWaitlistResourceUnavailableFailure | AgendaWaitlistResourceAmbiguousFailure | AgendaInvalidAppointmentIntakeFailure | AgendaInvalidPatientFieldsFailure | AgendaDurationChangeOffFailure | AgendaDurationNotAllowedFailure | AgendaStudyLengthNotOfferedFailure | AgendaInvalidFileKindFailure | AgendaInvalidFileNameFailure | AgendaInvalidIdTokenFailure | AgendaInvalidJsonFailure | AgendaInvalidWindowFailure | AgendaUnexpectedQueryParametersFailure | AgendaInvalidBodyFailure;
556
+ export interface AgendaUpdateAppointmentStatusBody {
557
+ /**
558
+ * Version last read by the caller. The mutation fails if another writer has
559
+ * changed this record.
560
+ */
561
+ expectedVersion: number;
562
+ /**
563
+ * Why: kept for a cancellation or a no-show, ignored otherwise.
564
+ */
565
+ reason?: string;
566
+ /**
567
+ * Current appointment lifecycle state; cancelled and completed appointments
568
+ * cannot regain capacity through a status change.
569
+ */
570
+ status: "tentative" | "scheduled" | "confirmed" | "checked_in" | "completed" | "cancelled" | "no_show" | "unknown";
571
+ }
572
+ /**
573
+ * A failed answer.
574
+ */
575
+ export interface AgendaUpdateAppointmentStatusConflictError {
576
+ data: null;
577
+ error: AgendaUpdateAppointmentStatusConflictFailure;
578
+ /**
579
+ * What every answer carries besides its data or error.
580
+ */
581
+ metadata: ResponseMetadata;
582
+ success: false;
583
+ }
584
+ export type AgendaUpdateAppointmentStatusConflictFailure = AgendaPayerStaffOnlyFailure | AgendaAppointmentNotRemindableFailure | AgendaAppointmentWithoutPatientFailure | AgendaArbolCatalogTooLargeFailure | AgendaArbolConfigurationRequiredFailure | AgendaNotificationsNotSetUpFailure | AgendaSameOfferingFailure | AgendaSameServiceFailure | AgendaInvalidHoldPayloadFailure | AgendaHoldNotActiveFailure | AgendaAppointmentClosedFailure | AgendaAppointmentVersionMismatchFailure | AgendaAppointmentNotMovableFailure | AgendaServiceChangedFailure | AgendaScheduleChangedFailure | AgendaInvalidAvailabilityWindowFailure | AgendaServiceCapacityExceededFailure | AgendaResourceCapacityExceededFailure | AgendaOverbookOutOfRangeFailure | AgendaOverbookUnavailableFailure | AgendaStudyOverbookingNotAllowedFailure | AgendaInvalidSlotTokenFailure | AgendaBirthDateRequiredFailure | AgendaAgeNotEligibleFailure | AgendaIntakeSettingsVersionMismatchFailure | AgendaPayerNameTakenFailure | AgendaPayerVersionMismatchFailure | AgendaLocationVersionMismatchFailure | AgendaProfileVersionMismatchFailure | AgendaProviderDisabledFailure | AgendaBindingVersionMismatchFailure | AgendaResourceVersionMismatchFailure | AgendaScheduleRuleAgendaMismatchFailure | AgendaScheduleRuleExpectedVersionRequiredFailure | AgendaScheduleRuleVersionMismatchFailure | AgendaScheduleRulesChangedFailure | AgendaServiceVersionMismatchFailure | AgendaOfferingVersionMismatchFailure | AgendaSameResourceFailure | AgendaTargetInactiveFailure | AgendaSlotRequiredFailure | AgendaArbolSettingsVersionMismatchFailure | AgendaNotificationSettingsVersionMismatchFailure | AgendaOrganizationVersionMismatchFailure | AgendaPatientDocumentTakenFailure | AgendaPatientVersionMismatchFailure | AgendaDailyReportTooLargeFailure | AgendaReportSettingsVersionMismatchFailure | AgendaReportNotificationsDisabledFailure | AgendaReportRecipientsRequiredFailure | AgendaWaitlistEntryVersionMismatchFailure | AgendaRemovalJobConflictFailure | AgendaFollowupSettingsVersionMismatchFailure | AgendaFollowupDisabledFailure | AgendaFollowupConsentRequiredFailure | AgendaPatientEmailRequiredFailure | AgendaPatientArchivedFailure | AgendaRecallAlreadyActiveFailure | AgendaRecallMonthPassedFailure | AgendaRecallVisitRequiredFailure | AgendaRecallVisitInFutureFailure | AgendaRecallVersionMismatchFailure | AgendaSlotOfferNotAllowedFailure | AgendaSlotOfferMismatchFailure | AgendaSlotOfferTooSoonFailure | AgendaSlotOfferAlreadyOpenFailure | AgendaSlotOfferClosedFailure;
585
+ /**
586
+ * A failed answer.
587
+ */
588
+ export interface AgendaUpdateAppointmentStatusForbiddenError {
589
+ data: null;
590
+ error: AgendaUpdateAppointmentStatusForbiddenFailure;
591
+ /**
592
+ * What every answer carries besides its data or error.
593
+ */
594
+ metadata: ResponseMetadata;
595
+ success: false;
596
+ }
597
+ export type AgendaUpdateAppointmentStatusForbiddenFailure = ForbiddenFailure | AgendaIdTokenMismatchFailure | AgendaNotFileUploaderFailure | AgendaNotNoteAuthorFailure | AgendaOriginNotAllowedFailure;
598
+ /**
599
+ * A failed answer.
600
+ */
601
+ export interface AgendaUpdateAppointmentStatusServiceUnavailableError {
602
+ data: null;
603
+ error: AgendaUpdateAppointmentStatusServiceUnavailableFailure;
604
+ /**
605
+ * What every answer carries besides its data or error.
606
+ */
607
+ metadata: ResponseMetadata;
608
+ success: false;
609
+ }
610
+ export type AgendaUpdateAppointmentStatusServiceUnavailableFailure = UpstreamUnavailableFailure | AgendaArbolResponseTooLargeFailure | AgendaArbolUnavailableFailure | AgendaRemovalWorkflowUnavailableFailure | AgendaArbolRefusedFailure;
611
+ /**
612
+ * A failed answer.
613
+ */
614
+ export interface AgendaUpdateAppointmentStatusUnsupportedMediaTypeError {
615
+ data: null;
616
+ error: AgendaUpdateAppointmentStatusUnsupportedMediaTypeFailure;
617
+ /**
618
+ * What every answer carries besides its data or error.
619
+ */
620
+ metadata: ResponseMetadata;
621
+ success: false;
622
+ }
623
+ export type AgendaUpdateAppointmentStatusUnsupportedMediaTypeFailure = UnsupportedMediaTypeFailure | AgendaApplicationJsonRequiredFailure | AgendaFileContentMismatchFailure | AgendaUnsupportedContentEncodingFailure | AgendaUnsupportedFileTypeFailure;
17
624
  export declare const AgendaAppointmentPageCodec: import("../../_/codec.js").Codec;
625
+ export declare const AgendaAppointmentPageResponseCodec: import("../../_/codec.js").Codec;
626
+ export declare const AgendaCreateAppointmentBodyCodec: import("../../_/codec.js").Codec;
627
+ export declare const AgendaSearchAppointmentsBodyCodec: import("../../_/codec.js").Codec;
@@ -1,7 +1,19 @@
1
1
  // Code generated by forge. DO NOT EDIT.
2
2
  /* eslint-disable */
3
- import { array, object } from "../../_/index.js";
4
- import { AgendaAppointmentCodec } from "../models.js";
3
+ import { array, date, instant, object } from "../../_/index.js";
4
+ import { AgendaAppointmentCodec, } from "../models.js";
5
5
  export const AgendaAppointmentPageCodec = object([
6
6
  ["data", null, array(() => AgendaAppointmentCodec)],
7
7
  ]);
8
+ export const AgendaAppointmentPageResponseCodec = object([
9
+ ["data", null, () => AgendaAppointmentPageCodec],
10
+ ]);
11
+ export const AgendaCreateAppointmentBodyCodec = object([
12
+ ["patientBirthDate", null, date],
13
+ ]);
14
+ export const AgendaSearchAppointmentsBodyCodec = object([
15
+ ["createdAfter", null, instant],
16
+ ["createdBefore", null, instant],
17
+ ["from", null, instant],
18
+ ["to", null, instant],
19
+ ]);