@arbol-ai/sdk 5.44.0 → 5.45.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (231) hide show
  1. package/dist/account/client.d.ts +0 -16
  2. package/dist/account/client.js +0 -40
  3. package/dist/account/index.d.ts +1 -1
  4. package/dist/account/models.d.ts +0 -93
  5. package/dist/agenda/appointments/client.d.ts +14 -243
  6. package/dist/agenda/appointments/client.js +18 -17
  7. package/dist/agenda/appointments/index.d.ts +1 -1
  8. package/dist/agenda/appointments/models.d.ts +612 -2
  9. package/dist/agenda/appointments/models.js +14 -2
  10. package/dist/agenda/availability/client.d.ts +2 -7
  11. package/dist/agenda/availability/client.js +5 -4
  12. package/dist/agenda/availability/index.d.ts +1 -0
  13. package/dist/agenda/availability/models.d.ts +67 -0
  14. package/dist/agenda/bookingLocations/client.d.ts +2 -7
  15. package/dist/agenda/bookingLocations/client.js +4 -4
  16. package/dist/agenda/bookingLocations/index.d.ts +1 -0
  17. package/dist/agenda/bookingLocations/models.d.ts +67 -0
  18. package/dist/agenda/bookingOfferings/client.d.ts +2 -8
  19. package/dist/agenda/bookingOfferings/client.js +1 -1
  20. package/dist/agenda/bookingOfferings/index.d.ts +1 -1
  21. package/dist/agenda/bookingOfferings/models.d.ts +79 -1
  22. package/dist/agenda/bookingRequirements/client.d.ts +2 -75
  23. package/dist/agenda/bookingRequirements/client.js +1 -1
  24. package/dist/agenda/bookingRequirements/index.d.ts +1 -0
  25. package/dist/agenda/bookingRequirements/models.d.ts +182 -0
  26. package/dist/agenda/bookingSlots/client.d.ts +2 -7
  27. package/dist/agenda/bookingSlots/client.js +5 -4
  28. package/dist/agenda/bookingSlots/index.d.ts +1 -0
  29. package/dist/agenda/bookingSlots/models.d.ts +67 -0
  30. package/dist/agenda/bookingSlots/models.js +3 -0
  31. package/dist/agenda/bookings/client.d.ts +13 -188
  32. package/dist/agenda/bookings/client.js +13 -13
  33. package/dist/agenda/bookings/index.d.ts +1 -1
  34. package/dist/agenda/bookings/models.d.ts +526 -1
  35. package/dist/agenda/bookings/models.js +7 -1
  36. package/dist/agenda/firstAvailability/client.d.ts +2 -8
  37. package/dist/agenda/firstAvailability/client.js +4 -4
  38. package/dist/agenda/firstAvailability/index.d.ts +1 -1
  39. package/dist/agenda/firstAvailability/models.d.ts +80 -1
  40. package/dist/agenda/firstAvailability/models.js +4 -1
  41. package/dist/agenda/index.d.ts +1 -1
  42. package/dist/agenda/locations/client.d.ts +2 -7
  43. package/dist/agenda/locations/client.js +4 -4
  44. package/dist/agenda/locations/index.d.ts +1 -0
  45. package/dist/agenda/locations/models.d.ts +67 -0
  46. package/dist/agenda/locations/models.js +3 -0
  47. package/dist/agenda/models.d.ts +2193 -839
  48. package/dist/agenda/models.js +9 -0
  49. package/dist/agenda/nearestBookingSlots/client.d.ts +2 -8
  50. package/dist/agenda/nearestBookingSlots/client.js +4 -4
  51. package/dist/agenda/nearestBookingSlots/index.d.ts +1 -1
  52. package/dist/agenda/nearestBookingSlots/models.d.ts +80 -2
  53. package/dist/agenda/nearestBookingSlots/models.js +4 -1
  54. package/dist/agenda/offerings/client.d.ts +7 -146
  55. package/dist/agenda/offerings/client.js +8 -8
  56. package/dist/agenda/offerings/index.d.ts +1 -1
  57. package/dist/agenda/offerings/models.d.ts +349 -1
  58. package/dist/agenda/offerings/models.js +6 -0
  59. package/dist/agenda/resourceSchedules/client.d.ts +4 -51
  60. package/dist/agenda/resourceSchedules/client.js +5 -4
  61. package/dist/agenda/resourceSchedules/index.d.ts +1 -0
  62. package/dist/agenda/resourceSchedules/models.d.ts +133 -0
  63. package/dist/agenda/resourceSchedules/models.js +12 -0
  64. package/dist/agenda/resources/client.d.ts +7 -99
  65. package/dist/agenda/resources/client.js +8 -8
  66. package/dist/agenda/resources/index.d.ts +1 -1
  67. package/dist/agenda/resources/models.d.ts +302 -1
  68. package/dist/agenda/resources/models.js +6 -0
  69. package/dist/agenda/scheduleRules/client.d.ts +7 -172
  70. package/dist/agenda/scheduleRules/client.js +10 -10
  71. package/dist/agenda/scheduleRules/index.d.ts +1 -1
  72. package/dist/agenda/scheduleRules/models.d.ts +520 -1
  73. package/dist/agenda/scheduleRules/models.js +31 -0
  74. package/dist/agenda/services/client.d.ts +7 -71
  75. package/dist/agenda/services/client.js +8 -8
  76. package/dist/agenda/services/index.d.ts +1 -1
  77. package/dist/agenda/services/models.d.ts +274 -1
  78. package/dist/agenda/services/models.js +6 -0
  79. package/dist/agenda/waitlist/client.d.ts +9 -217
  80. package/dist/agenda/waitlist/client.js +13 -13
  81. package/dist/agenda/waitlist/index.d.ts +1 -1
  82. package/dist/agenda/waitlist/models.d.ts +482 -1
  83. package/dist/agenda/waitlist/models.js +16 -1
  84. package/dist/index.d.ts +1 -1
  85. package/dist/models.d.ts +0 -20
  86. package/dist/raiz/agents/client.d.ts +8 -137
  87. package/dist/raiz/agents/client.js +12 -12
  88. package/dist/raiz/agents/index.d.ts +1 -1
  89. package/dist/raiz/agents/models.d.ts +258 -2
  90. package/dist/raiz/agents/models.js +13 -1
  91. package/dist/raiz/bulletins/client.d.ts +10 -74
  92. package/dist/raiz/bulletins/client.js +13 -14
  93. package/dist/raiz/bulletins/index.d.ts +1 -1
  94. package/dist/raiz/bulletins/models.d.ts +112 -1
  95. package/dist/raiz/bulletins/models.js +14 -0
  96. package/dist/raiz/campaigns/client.d.ts +11 -140
  97. package/dist/raiz/campaigns/client.js +14 -14
  98. package/dist/raiz/campaigns/index.d.ts +1 -1
  99. package/dist/raiz/campaigns/models.d.ts +343 -2
  100. package/dist/raiz/campaigns/models.js +14 -1
  101. package/dist/raiz/changes/client.d.ts +2 -8
  102. package/dist/raiz/changes/client.js +4 -4
  103. package/dist/raiz/changes/index.d.ts +1 -1
  104. package/dist/raiz/changes/models.d.ts +41 -1
  105. package/dist/raiz/changes/models.js +3 -0
  106. package/dist/raiz/channels/client.d.ts +15 -142
  107. package/dist/raiz/channels/client.js +16 -18
  108. package/dist/raiz/channels/index.d.ts +1 -1
  109. package/dist/raiz/channels/models.d.ts +1511 -2
  110. package/dist/raiz/channels/models.js +12 -2
  111. package/dist/raiz/contacts/client.d.ts +12 -117
  112. package/dist/raiz/contacts/client.js +15 -15
  113. package/dist/raiz/contacts/index.d.ts +1 -1
  114. package/dist/raiz/contacts/models.d.ts +305 -2
  115. package/dist/raiz/contacts/models.js +10 -1
  116. package/dist/raiz/conversations/client.d.ts +18 -99
  117. package/dist/raiz/conversations/client.js +12 -13
  118. package/dist/raiz/conversations/index.d.ts +1 -1
  119. package/dist/raiz/conversations/models.d.ts +253 -2
  120. package/dist/raiz/conversations/models.js +8 -2
  121. package/dist/raiz/definitions/client.d.ts +8 -115
  122. package/dist/raiz/definitions/client.js +10 -10
  123. package/dist/raiz/definitions/index.d.ts +1 -1
  124. package/dist/raiz/definitions/models.d.ts +224 -1
  125. package/dist/raiz/definitions/models.js +6 -0
  126. package/dist/raiz/evalCases/client.d.ts +10 -57
  127. package/dist/raiz/evalCases/client.js +8 -8
  128. package/dist/raiz/evalCases/index.d.ts +1 -1
  129. package/dist/raiz/evalCases/models.d.ts +78 -1
  130. package/dist/raiz/evalCases/models.js +6 -0
  131. package/dist/raiz/evalRuns/client.d.ts +4 -45
  132. package/dist/raiz/evalRuns/client.js +6 -6
  133. package/dist/raiz/evalRuns/index.d.ts +1 -1
  134. package/dist/raiz/evalRuns/models.d.ts +85 -0
  135. package/dist/raiz/evalRuns/models.js +3 -0
  136. package/dist/raiz/facts/client.d.ts +6 -65
  137. package/dist/raiz/facts/client.js +7 -7
  138. package/dist/raiz/facts/index.d.ts +1 -0
  139. package/dist/raiz/facts/models.d.ts +120 -0
  140. package/dist/raiz/facts/models.js +10 -0
  141. package/dist/raiz/index.d.ts +1 -1
  142. package/dist/raiz/knowledge/client.d.ts +10 -130
  143. package/dist/raiz/knowledge/client.js +13 -13
  144. package/dist/raiz/knowledge/index.d.ts +1 -1
  145. package/dist/raiz/knowledge/models.d.ts +256 -1
  146. package/dist/raiz/knowledge/models.js +12 -0
  147. package/dist/raiz/models.d.ts +1474 -825
  148. package/dist/raiz/models.js +3 -0
  149. package/dist/raiz/organization/client.d.ts +7 -70
  150. package/dist/raiz/organization/client.js +8 -8
  151. package/dist/raiz/organization/index.d.ts +1 -1
  152. package/dist/raiz/organization/models.d.ts +178 -1
  153. package/dist/raiz/organization/models.js +11 -0
  154. package/dist/raiz/profiles/client.d.ts +8 -87
  155. package/dist/raiz/profiles/client.js +10 -10
  156. package/dist/raiz/profiles/index.d.ts +1 -1
  157. package/dist/raiz/profiles/models.d.ts +206 -2
  158. package/dist/raiz/profiles/models.js +6 -0
  159. package/dist/raiz/reports/client.d.ts +5 -8
  160. package/dist/raiz/reports/client.js +4 -4
  161. package/dist/raiz/reports/index.d.ts +1 -1
  162. package/dist/raiz/reports/models.d.ts +41 -0
  163. package/dist/raiz/reports/models.js +3 -0
  164. package/dist/raiz/suppressions/client.d.ts +4 -31
  165. package/dist/raiz/suppressions/client.js +6 -6
  166. package/dist/raiz/suppressions/index.d.ts +1 -1
  167. package/dist/raiz/suppressions/models.d.ts +114 -1
  168. package/dist/raiz/suppressions/models.js +6 -0
  169. package/dist/raiz/tasks/client.d.ts +12 -32
  170. package/dist/raiz/tasks/client.js +11 -11
  171. package/dist/raiz/tasks/index.d.ts +1 -1
  172. package/dist/raiz/tasks/models.d.ts +108 -2
  173. package/dist/raiz/tasks/models.js +4 -1
  174. package/dist/raiz/templates/client.d.ts +7 -84
  175. package/dist/raiz/templates/client.js +5 -4
  176. package/dist/raiz/templates/index.d.ts +1 -1
  177. package/dist/raiz/templates/models.d.ts +214 -1
  178. package/dist/raiz/templates/models.js +4 -1
  179. package/dist/raiz/voices/client.d.ts +2 -8
  180. package/dist/raiz/voices/client.js +1 -1
  181. package/dist/raiz/voices/index.d.ts +1 -1
  182. package/dist/raiz/voices/models.d.ts +40 -1
  183. package/package.json +3 -3
  184. package/dist/account/billing/client.d.ts +0 -22
  185. package/dist/account/billing/client.js +0 -18
  186. package/dist/account/billing/index.d.ts +0 -5
  187. package/dist/account/billing/index.js +0 -4
  188. package/dist/account/billing/models.d.ts +0 -74
  189. package/dist/account/billing/models.js +0 -10
  190. package/dist/account/billingProfiles/client.d.ts +0 -39
  191. package/dist/account/billingProfiles/client.js +0 -25
  192. package/dist/account/billingProfiles/index.d.ts +0 -5
  193. package/dist/account/billingProfiles/index.js +0 -4
  194. package/dist/account/billingProfiles/models.d.ts +0 -58
  195. package/dist/account/invoiceDocuments/client.d.ts +0 -25
  196. package/dist/account/invoiceDocuments/client.js +0 -17
  197. package/dist/account/invoiceDocuments/index.d.ts +0 -5
  198. package/dist/account/invoiceDocuments/index.js +0 -4
  199. package/dist/account/invoiceDocuments/models.d.ts +0 -35
  200. package/dist/account/invoices/client.d.ts +0 -47
  201. package/dist/account/invoices/client.js +0 -26
  202. package/dist/account/invoices/index.d.ts +0 -5
  203. package/dist/account/invoices/index.js +0 -4
  204. package/dist/account/invoices/models.d.ts +0 -135
  205. package/dist/account/invoices/models.js +0 -24
  206. package/dist/account/payments/client.d.ts +0 -34
  207. package/dist/account/payments/client.js +0 -19
  208. package/dist/account/payments/index.d.ts +0 -5
  209. package/dist/account/payments/index.js +0 -4
  210. package/dist/account/payments/models.d.ts +0 -64
  211. package/dist/account/payments/models.js +0 -12
  212. package/dist/account/usage/client.d.ts +0 -47
  213. package/dist/account/usage/client.js +0 -18
  214. package/dist/account/usage/index.d.ts +0 -5
  215. package/dist/account/usage/index.js +0 -4
  216. package/dist/account/usage/models.d.ts +0 -51
  217. package/dist/account/usageSummary/client.d.ts +0 -26
  218. package/dist/account/usageSummary/client.js +0 -19
  219. package/dist/account/usageSummary/index.d.ts +0 -5
  220. package/dist/account/usageSummary/index.js +0 -4
  221. package/dist/account/usageSummary/models.d.ts +0 -50
  222. package/dist/account/usageSummary/models.js +0 -9
  223. package/dist/account/walletTransactions/client.d.ts +0 -34
  224. package/dist/account/walletTransactions/client.js +0 -19
  225. package/dist/account/walletTransactions/index.d.ts +0 -5
  226. package/dist/account/walletTransactions/index.js +0 -4
  227. package/dist/account/walletTransactions/models.d.ts +0 -58
  228. package/dist/account/walletTransactions/models.js +0 -12
  229. /package/dist/{account/billingProfiles → agenda/availability}/models.js +0 -0
  230. /package/dist/{account/invoiceDocuments → agenda/bookingLocations}/models.js +0 -0
  231. /package/dist/{account/usage → agenda/bookingRequirements}/models.js +0 -0
@@ -1,4 +1,5 @@
1
- import { type AgendaAppointmentIntake, type AgendaAppointmentStatusChange, type AgendaPatientIdentity } from "../models.js";
1
+ import type { ForbiddenFailure, InvalidInputFailure, ResponseMetadata, UnsupportedMediaTypeFailure, UpstreamUnavailableFailure } from "../../models.js";
2
+ import { type AgendaAgeNotEligibleFailure, type AgendaApplicationJsonRequiredFailure, type AgendaAppointmentClosedFailure, type AgendaAppointmentIntake, type AgendaAppointmentIntakeInput, type AgendaAppointmentNotMovableFailure, type AgendaAppointmentNotRemindableFailure, type AgendaAppointmentStatusChange, 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 AgendaPatientIdentity, 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";
2
3
  export interface AgendaAppointmentGuidance {
3
4
  /**
4
5
  * Whether patients are attended in arrival order rather than by the exact
@@ -28,6 +29,118 @@ export interface AgendaAppointmentGuidance {
28
29
  */
29
30
  serviceName: string | null;
30
31
  }
32
+ /**
33
+ * A failed answer.
34
+ */
35
+ export interface AgendaBookAgentAppointmentBadRequestError {
36
+ data: null;
37
+ error: AgendaBookAgentAppointmentBadRequestFailure;
38
+ /**
39
+ * What every answer carries besides its data or error.
40
+ */
41
+ metadata: ResponseMetadata;
42
+ success: false;
43
+ }
44
+ export type AgendaBookAgentAppointmentBadRequestFailure = InvalidInputFailure | AgendaWaitlistServiceUnavailableFailure | AgendaWaitlistResourceUnavailableFailure | AgendaWaitlistResourceAmbiguousFailure | AgendaInvalidAppointmentIntakeFailure | AgendaInvalidPatientFieldsFailure | AgendaDurationChangeOffFailure | AgendaDurationNotAllowedFailure | AgendaStudyLengthNotOfferedFailure | AgendaInvalidFileKindFailure | AgendaInvalidFileNameFailure | AgendaInvalidIdTokenFailure | AgendaInvalidJsonFailure | AgendaInvalidWindowFailure | AgendaUnexpectedQueryParametersFailure | AgendaInvalidBodyFailure;
45
+ export interface AgendaBookAgentAppointmentBody {
46
+ /**
47
+ * The conversation's channel, set by the platform. It changes nothing in
48
+ * Agenda; omit it.
49
+ */
50
+ channel?: "voice" | "whatsapp" | "web";
51
+ /**
52
+ * The platform's id for the organization's Agenda, set by the platform. An
53
+ * organization has one Agenda, so it selects nothing; omit it.
54
+ */
55
+ connectionId?: string;
56
+ /**
57
+ * External contact reference associated with this booking; null when it has
58
+ * no external contact.
59
+ */
60
+ contactId?: string | null;
61
+ /**
62
+ * Appointment-specific contact, payer, authorization and custom-field values;
63
+ * null when no intake was recorded.
64
+ */
65
+ intake?: AgendaAppointmentIntakeInput | null;
66
+ /**
67
+ * Patient identity copied into the booking; null when no patient identity was
68
+ * supplied.
69
+ */
70
+ patient?: {
71
+ document?: string | null;
72
+ documentNumber?: string | null;
73
+ documentType?: string | null;
74
+ name: string;
75
+ } | null;
76
+ /**
77
+ * Patient-supplied date of birth (YYYY-MM-DD), stored on the record and
78
+ * checked against service age eligibility.
79
+ */
80
+ patientBirthDate?: Temporal.PlainDate;
81
+ /**
82
+ * Opaque signed token for one exact available slot. Use the returned token
83
+ * unchanged after the patient confirms that time.
84
+ */
85
+ slotToken: string;
86
+ /**
87
+ * Desk-authored appointment title; null permits the service name to supply
88
+ * the display title.
89
+ */
90
+ title?: string | null;
91
+ }
92
+ /**
93
+ * A failed answer.
94
+ */
95
+ export interface AgendaBookAgentAppointmentConflictError {
96
+ data: null;
97
+ error: AgendaBookAgentAppointmentConflictFailure;
98
+ /**
99
+ * What every answer carries besides its data or error.
100
+ */
101
+ metadata: ResponseMetadata;
102
+ success: false;
103
+ }
104
+ export type AgendaBookAgentAppointmentConflictFailure = 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;
105
+ /**
106
+ * A failed answer.
107
+ */
108
+ export interface AgendaBookAgentAppointmentForbiddenError {
109
+ data: null;
110
+ error: AgendaBookAgentAppointmentForbiddenFailure;
111
+ /**
112
+ * What every answer carries besides its data or error.
113
+ */
114
+ metadata: ResponseMetadata;
115
+ success: false;
116
+ }
117
+ export type AgendaBookAgentAppointmentForbiddenFailure = ForbiddenFailure | AgendaIdTokenMismatchFailure | AgendaNotFileUploaderFailure | AgendaNotNoteAuthorFailure | AgendaOriginNotAllowedFailure;
118
+ /**
119
+ * A failed answer.
120
+ */
121
+ export interface AgendaBookAgentAppointmentServiceUnavailableError {
122
+ data: null;
123
+ error: AgendaBookAgentAppointmentServiceUnavailableFailure;
124
+ /**
125
+ * What every answer carries besides its data or error.
126
+ */
127
+ metadata: ResponseMetadata;
128
+ success: false;
129
+ }
130
+ export type AgendaBookAgentAppointmentServiceUnavailableFailure = UpstreamUnavailableFailure | AgendaArbolResponseTooLargeFailure | AgendaArbolUnavailableFailure | AgendaRemovalWorkflowUnavailableFailure | AgendaArbolRefusedFailure;
131
+ /**
132
+ * A failed answer.
133
+ */
134
+ export interface AgendaBookAgentAppointmentUnsupportedMediaTypeError {
135
+ data: null;
136
+ error: AgendaBookAgentAppointmentUnsupportedMediaTypeFailure;
137
+ /**
138
+ * What every answer carries besides its data or error.
139
+ */
140
+ metadata: ResponseMetadata;
141
+ success: false;
142
+ }
143
+ export type AgendaBookAgentAppointmentUnsupportedMediaTypeFailure = UnsupportedMediaTypeFailure | AgendaApplicationJsonRequiredFailure | AgendaFileContentMismatchFailure | AgendaUnsupportedContentEncodingFailure | AgendaUnsupportedFileTypeFailure;
31
144
  export interface AgendaBooking {
32
145
  /**
33
146
  * Booking source recorded on the appointment; null when no channel was
@@ -157,4 +270,416 @@ export interface AgendaBooking {
157
270
  */
158
271
  version: number;
159
272
  }
273
+ /**
274
+ * A successful answer.
275
+ */
276
+ export interface AgendaBookingResponse {
277
+ data: AgendaBooking;
278
+ error: null;
279
+ /**
280
+ * What every answer carries besides its data or error.
281
+ */
282
+ metadata: ResponseMetadata;
283
+ success: true;
284
+ }
285
+ /**
286
+ * A failed answer.
287
+ */
288
+ export interface AgendaCancelAgentAppointmentBadRequestError {
289
+ data: null;
290
+ error: AgendaCancelAgentAppointmentBadRequestFailure;
291
+ /**
292
+ * What every answer carries besides its data or error.
293
+ */
294
+ metadata: ResponseMetadata;
295
+ success: false;
296
+ }
297
+ export type AgendaCancelAgentAppointmentBadRequestFailure = InvalidInputFailure | AgendaWaitlistServiceUnavailableFailure | AgendaWaitlistResourceUnavailableFailure | AgendaWaitlistResourceAmbiguousFailure | AgendaInvalidAppointmentIntakeFailure | AgendaInvalidPatientFieldsFailure | AgendaDurationChangeOffFailure | AgendaDurationNotAllowedFailure | AgendaStudyLengthNotOfferedFailure | AgendaInvalidFileKindFailure | AgendaInvalidFileNameFailure | AgendaInvalidIdTokenFailure | AgendaInvalidJsonFailure | AgendaInvalidWindowFailure | AgendaUnexpectedQueryParametersFailure | AgendaInvalidBodyFailure;
298
+ export interface AgendaCancelAgentAppointmentBody {
299
+ /**
300
+ * The conversation's channel, set by the platform. It changes nothing in
301
+ * Agenda; omit it.
302
+ */
303
+ channel?: "voice" | "whatsapp" | "web";
304
+ /**
305
+ * The platform's id for the organization's Agenda, set by the platform. An
306
+ * organization has one Agenda, so it selects nothing; omit it.
307
+ */
308
+ connectionId?: string;
309
+ /**
310
+ * Cancellation reason explicitly provided by the person; recorded in
311
+ * appointment history.
312
+ */
313
+ reason: string;
314
+ }
315
+ /**
316
+ * A failed answer.
317
+ */
318
+ export interface AgendaCancelAgentAppointmentConflictError {
319
+ data: null;
320
+ error: AgendaCancelAgentAppointmentConflictFailure;
321
+ /**
322
+ * What every answer carries besides its data or error.
323
+ */
324
+ metadata: ResponseMetadata;
325
+ success: false;
326
+ }
327
+ export type AgendaCancelAgentAppointmentConflictFailure = 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;
328
+ /**
329
+ * A failed answer.
330
+ */
331
+ export interface AgendaCancelAgentAppointmentForbiddenError {
332
+ data: null;
333
+ error: AgendaCancelAgentAppointmentForbiddenFailure;
334
+ /**
335
+ * What every answer carries besides its data or error.
336
+ */
337
+ metadata: ResponseMetadata;
338
+ success: false;
339
+ }
340
+ export type AgendaCancelAgentAppointmentForbiddenFailure = ForbiddenFailure | AgendaIdTokenMismatchFailure | AgendaNotFileUploaderFailure | AgendaNotNoteAuthorFailure | AgendaOriginNotAllowedFailure;
341
+ /**
342
+ * A failed answer.
343
+ */
344
+ export interface AgendaCancelAgentAppointmentServiceUnavailableError {
345
+ data: null;
346
+ error: AgendaCancelAgentAppointmentServiceUnavailableFailure;
347
+ /**
348
+ * What every answer carries besides its data or error.
349
+ */
350
+ metadata: ResponseMetadata;
351
+ success: false;
352
+ }
353
+ export type AgendaCancelAgentAppointmentServiceUnavailableFailure = UpstreamUnavailableFailure | AgendaArbolResponseTooLargeFailure | AgendaArbolUnavailableFailure | AgendaRemovalWorkflowUnavailableFailure | AgendaArbolRefusedFailure;
354
+ /**
355
+ * A failed answer.
356
+ */
357
+ export interface AgendaCancelAgentAppointmentUnsupportedMediaTypeError {
358
+ data: null;
359
+ error: AgendaCancelAgentAppointmentUnsupportedMediaTypeFailure;
360
+ /**
361
+ * What every answer carries besides its data or error.
362
+ */
363
+ metadata: ResponseMetadata;
364
+ success: false;
365
+ }
366
+ export type AgendaCancelAgentAppointmentUnsupportedMediaTypeFailure = UnsupportedMediaTypeFailure | AgendaApplicationJsonRequiredFailure | AgendaFileContentMismatchFailure | AgendaUnsupportedContentEncodingFailure | AgendaUnsupportedFileTypeFailure;
367
+ /**
368
+ * A failed answer.
369
+ */
370
+ export interface AgendaGetAgentAppointmentBadRequestError {
371
+ data: null;
372
+ error: AgendaGetAgentAppointmentBadRequestFailure;
373
+ /**
374
+ * What every answer carries besides its data or error.
375
+ */
376
+ metadata: ResponseMetadata;
377
+ success: false;
378
+ }
379
+ export type AgendaGetAgentAppointmentBadRequestFailure = InvalidInputFailure | AgendaWaitlistServiceUnavailableFailure | AgendaWaitlistResourceUnavailableFailure | AgendaWaitlistResourceAmbiguousFailure | AgendaInvalidAppointmentIntakeFailure | AgendaInvalidPatientFieldsFailure | AgendaDurationChangeOffFailure | AgendaDurationNotAllowedFailure | AgendaStudyLengthNotOfferedFailure | AgendaInvalidFileKindFailure | AgendaInvalidFileNameFailure | AgendaInvalidIdTokenFailure | AgendaInvalidJsonFailure | AgendaInvalidWindowFailure | AgendaUnexpectedQueryParametersFailure | AgendaInvalidBodyFailure;
380
+ /**
381
+ * A failed answer.
382
+ */
383
+ export interface AgendaGetAgentAppointmentConflictError {
384
+ data: null;
385
+ error: AgendaGetAgentAppointmentConflictFailure;
386
+ /**
387
+ * What every answer carries besides its data or error.
388
+ */
389
+ metadata: ResponseMetadata;
390
+ success: false;
391
+ }
392
+ export type AgendaGetAgentAppointmentConflictFailure = 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;
393
+ /**
394
+ * A failed answer.
395
+ */
396
+ export interface AgendaGetAgentAppointmentForbiddenError {
397
+ data: null;
398
+ error: AgendaGetAgentAppointmentForbiddenFailure;
399
+ /**
400
+ * What every answer carries besides its data or error.
401
+ */
402
+ metadata: ResponseMetadata;
403
+ success: false;
404
+ }
405
+ export type AgendaGetAgentAppointmentForbiddenFailure = ForbiddenFailure | AgendaIdTokenMismatchFailure | AgendaNotFileUploaderFailure | AgendaNotNoteAuthorFailure | AgendaOriginNotAllowedFailure;
406
+ /**
407
+ * A failed answer.
408
+ */
409
+ export interface AgendaGetAgentAppointmentServiceUnavailableError {
410
+ data: null;
411
+ error: AgendaGetAgentAppointmentServiceUnavailableFailure;
412
+ /**
413
+ * What every answer carries besides its data or error.
414
+ */
415
+ metadata: ResponseMetadata;
416
+ success: false;
417
+ }
418
+ export type AgendaGetAgentAppointmentServiceUnavailableFailure = UpstreamUnavailableFailure | AgendaArbolResponseTooLargeFailure | AgendaArbolUnavailableFailure | AgendaRemovalWorkflowUnavailableFailure | AgendaArbolRefusedFailure;
419
+ /**
420
+ * A failed answer.
421
+ */
422
+ export interface AgendaGetAgentAppointmentUnsupportedMediaTypeError {
423
+ data: null;
424
+ error: AgendaGetAgentAppointmentUnsupportedMediaTypeFailure;
425
+ /**
426
+ * What every answer carries besides its data or error.
427
+ */
428
+ metadata: ResponseMetadata;
429
+ success: false;
430
+ }
431
+ export type AgendaGetAgentAppointmentUnsupportedMediaTypeFailure = AgendaApplicationJsonRequiredFailure | AgendaFileContentMismatchFailure | AgendaUnsupportedContentEncodingFailure | AgendaUnsupportedFileTypeFailure;
432
+ /**
433
+ * A failed answer.
434
+ */
435
+ export interface AgendaListAgentPatientAppointmentsBadRequestError {
436
+ data: null;
437
+ error: AgendaListAgentPatientAppointmentsBadRequestFailure;
438
+ /**
439
+ * What every answer carries besides its data or error.
440
+ */
441
+ metadata: ResponseMetadata;
442
+ success: false;
443
+ }
444
+ export type AgendaListAgentPatientAppointmentsBadRequestFailure = InvalidInputFailure | AgendaWaitlistServiceUnavailableFailure | AgendaWaitlistResourceUnavailableFailure | AgendaWaitlistResourceAmbiguousFailure | AgendaInvalidAppointmentIntakeFailure | AgendaInvalidPatientFieldsFailure | AgendaDurationChangeOffFailure | AgendaDurationNotAllowedFailure | AgendaStudyLengthNotOfferedFailure | AgendaInvalidFileKindFailure | AgendaInvalidFileNameFailure | AgendaInvalidIdTokenFailure | AgendaInvalidJsonFailure | AgendaInvalidWindowFailure | AgendaUnexpectedQueryParametersFailure | AgendaInvalidBodyFailure;
445
+ export interface AgendaListAgentPatientAppointmentsBody {
446
+ /**
447
+ * The conversation's channel, set by the platform. It changes nothing in
448
+ * Agenda; omit it.
449
+ */
450
+ channel?: "voice" | "whatsapp" | "web";
451
+ /**
452
+ * The platform's id for the organization's Agenda, set by the platform. An
453
+ * organization has one Agenda, so it selects nothing; omit it.
454
+ */
455
+ connectionId?: string;
456
+ /**
457
+ * Deprecated: use `documentNumber`. Answered until 2027-01-28.
458
+ *
459
+ * @deprecated
460
+ */
461
+ document?: string;
462
+ /**
463
+ * Exact patient document number; normalized for matching, with documentType
464
+ * needed when multiple types share the number.
465
+ */
466
+ documentNumber?: string;
467
+ /**
468
+ * Document-type code from the organization’s configured active types. Input
469
+ * is trimmed and uppercased.
470
+ */
471
+ documentType?: string;
472
+ }
473
+ /**
474
+ * A failed answer.
475
+ */
476
+ export interface AgendaListAgentPatientAppointmentsConflictError {
477
+ data: null;
478
+ error: AgendaListAgentPatientAppointmentsConflictFailure;
479
+ /**
480
+ * What every answer carries besides its data or error.
481
+ */
482
+ metadata: ResponseMetadata;
483
+ success: false;
484
+ }
485
+ export type AgendaListAgentPatientAppointmentsConflictFailure = 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;
486
+ /**
487
+ * A failed answer.
488
+ */
489
+ export interface AgendaListAgentPatientAppointmentsForbiddenError {
490
+ data: null;
491
+ error: AgendaListAgentPatientAppointmentsForbiddenFailure;
492
+ /**
493
+ * What every answer carries besides its data or error.
494
+ */
495
+ metadata: ResponseMetadata;
496
+ success: false;
497
+ }
498
+ export type AgendaListAgentPatientAppointmentsForbiddenFailure = ForbiddenFailure | AgendaIdTokenMismatchFailure | AgendaNotFileUploaderFailure | AgendaNotNoteAuthorFailure | AgendaOriginNotAllowedFailure;
499
+ export interface AgendaListAgentPatientAppointmentsResult {
500
+ /**
501
+ * Appointments for the uniquely identified patient, newest first; empty when
502
+ * the document is absent or ambiguous.
503
+ */
504
+ appointments: {
505
+ endsAt: string;
506
+ guidance: AgendaAppointmentGuidance | null;
507
+ id: string;
508
+ offeringId: string | null;
509
+ resourceIds: string[];
510
+ startsAt: string;
511
+ status: "tentative" | "scheduled" | "confirmed" | "checked_in" | "completed" | "cancelled" | "no_show" | "unknown";
512
+ version: number;
513
+ }[];
514
+ /**
515
+ * Whether an exact document match exists; a true value may still require
516
+ * document-type disambiguation.
517
+ */
518
+ found: boolean;
519
+ /**
520
+ * Current patient record and appointment summary within the verified
521
+ * organization.
522
+ */
523
+ patient?: {
524
+ addressLine: string | null;
525
+ alert: string | null;
526
+ archivedAt: string | null;
527
+ birthDate: string | null;
528
+ cancelled: number;
529
+ city: string | null;
530
+ createdAt: string;
531
+ document: string | null;
532
+ documentNumber: string | null;
533
+ documentType: string | null;
534
+ email: string | null;
535
+ entity: string | null;
536
+ fields: {
537
+ [key: string]: unknown;
538
+ };
539
+ gender: "male" | "female" | "other" | "unknown" | null;
540
+ id: string;
541
+ lastAt: string | null;
542
+ name: string;
543
+ nextAt: string | null;
544
+ noShow: number;
545
+ object: "scheduling.patient";
546
+ phone: string | null;
547
+ total: number;
548
+ updatedAt: string;
549
+ version: number;
550
+ };
551
+ /**
552
+ * Candidate patients when an exact document number matches multiple document
553
+ * types; omitted after unique identification.
554
+ */
555
+ patients?: {
556
+ document: string | null;
557
+ documentNumber: string | null;
558
+ documentType: string | null;
559
+ id: string;
560
+ name: string;
561
+ }[];
562
+ }
563
+ /**
564
+ * A successful answer.
565
+ */
566
+ export interface AgendaListAgentPatientAppointmentsResultResponse {
567
+ data: AgendaListAgentPatientAppointmentsResult;
568
+ error: null;
569
+ /**
570
+ * What every answer carries besides its data or error.
571
+ */
572
+ metadata: ResponseMetadata;
573
+ success: true;
574
+ }
575
+ /**
576
+ * A failed answer.
577
+ */
578
+ export interface AgendaListAgentPatientAppointmentsServiceUnavailableError {
579
+ data: null;
580
+ error: AgendaListAgentPatientAppointmentsServiceUnavailableFailure;
581
+ /**
582
+ * What every answer carries besides its data or error.
583
+ */
584
+ metadata: ResponseMetadata;
585
+ success: false;
586
+ }
587
+ export type AgendaListAgentPatientAppointmentsServiceUnavailableFailure = UpstreamUnavailableFailure | AgendaArbolResponseTooLargeFailure | AgendaArbolUnavailableFailure | AgendaRemovalWorkflowUnavailableFailure | AgendaArbolRefusedFailure;
588
+ /**
589
+ * A failed answer.
590
+ */
591
+ export interface AgendaListAgentPatientAppointmentsUnsupportedMediaTypeError {
592
+ data: null;
593
+ error: AgendaListAgentPatientAppointmentsUnsupportedMediaTypeFailure;
594
+ /**
595
+ * What every answer carries besides its data or error.
596
+ */
597
+ metadata: ResponseMetadata;
598
+ success: false;
599
+ }
600
+ export type AgendaListAgentPatientAppointmentsUnsupportedMediaTypeFailure = UnsupportedMediaTypeFailure | AgendaApplicationJsonRequiredFailure | AgendaFileContentMismatchFailure | AgendaUnsupportedContentEncodingFailure | AgendaUnsupportedFileTypeFailure;
601
+ /**
602
+ * A failed answer.
603
+ */
604
+ export interface AgendaRescheduleAgentAppointmentBadRequestError {
605
+ data: null;
606
+ error: AgendaRescheduleAgentAppointmentBadRequestFailure;
607
+ /**
608
+ * What every answer carries besides its data or error.
609
+ */
610
+ metadata: ResponseMetadata;
611
+ success: false;
612
+ }
613
+ export type AgendaRescheduleAgentAppointmentBadRequestFailure = InvalidInputFailure | AgendaWaitlistServiceUnavailableFailure | AgendaWaitlistResourceUnavailableFailure | AgendaWaitlistResourceAmbiguousFailure | AgendaInvalidAppointmentIntakeFailure | AgendaInvalidPatientFieldsFailure | AgendaDurationChangeOffFailure | AgendaDurationNotAllowedFailure | AgendaStudyLengthNotOfferedFailure | AgendaInvalidFileKindFailure | AgendaInvalidFileNameFailure | AgendaInvalidIdTokenFailure | AgendaInvalidJsonFailure | AgendaInvalidWindowFailure | AgendaUnexpectedQueryParametersFailure | AgendaInvalidBodyFailure;
614
+ export interface AgendaRescheduleAgentAppointmentBody {
615
+ /**
616
+ * The conversation's channel, set by the platform. It changes nothing in
617
+ * Agenda; omit it.
618
+ */
619
+ channel?: "voice" | "whatsapp" | "web";
620
+ /**
621
+ * The platform's id for the organization's Agenda, set by the platform. An
622
+ * organization has one Agenda, so it selects nothing; omit it.
623
+ */
624
+ connectionId?: string;
625
+ /**
626
+ * Exact signed slot token confirmed by the person; the slot must belong to
627
+ * the appointment’s existing service.
628
+ */
629
+ slotToken: string;
630
+ }
631
+ /**
632
+ * A failed answer.
633
+ */
634
+ export interface AgendaRescheduleAgentAppointmentConflictError {
635
+ data: null;
636
+ error: AgendaRescheduleAgentAppointmentConflictFailure;
637
+ /**
638
+ * What every answer carries besides its data or error.
639
+ */
640
+ metadata: ResponseMetadata;
641
+ success: false;
642
+ }
643
+ export type AgendaRescheduleAgentAppointmentConflictFailure = 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;
644
+ /**
645
+ * A failed answer.
646
+ */
647
+ export interface AgendaRescheduleAgentAppointmentForbiddenError {
648
+ data: null;
649
+ error: AgendaRescheduleAgentAppointmentForbiddenFailure;
650
+ /**
651
+ * What every answer carries besides its data or error.
652
+ */
653
+ metadata: ResponseMetadata;
654
+ success: false;
655
+ }
656
+ export type AgendaRescheduleAgentAppointmentForbiddenFailure = ForbiddenFailure | AgendaIdTokenMismatchFailure | AgendaNotFileUploaderFailure | AgendaNotNoteAuthorFailure | AgendaOriginNotAllowedFailure;
657
+ /**
658
+ * A failed answer.
659
+ */
660
+ export interface AgendaRescheduleAgentAppointmentServiceUnavailableError {
661
+ data: null;
662
+ error: AgendaRescheduleAgentAppointmentServiceUnavailableFailure;
663
+ /**
664
+ * What every answer carries besides its data or error.
665
+ */
666
+ metadata: ResponseMetadata;
667
+ success: false;
668
+ }
669
+ export type AgendaRescheduleAgentAppointmentServiceUnavailableFailure = UpstreamUnavailableFailure | AgendaArbolResponseTooLargeFailure | AgendaArbolUnavailableFailure | AgendaRemovalWorkflowUnavailableFailure | AgendaArbolRefusedFailure;
670
+ /**
671
+ * A failed answer.
672
+ */
673
+ export interface AgendaRescheduleAgentAppointmentUnsupportedMediaTypeError {
674
+ data: null;
675
+ error: AgendaRescheduleAgentAppointmentUnsupportedMediaTypeFailure;
676
+ /**
677
+ * What every answer carries besides its data or error.
678
+ */
679
+ metadata: ResponseMetadata;
680
+ success: false;
681
+ }
682
+ export type AgendaRescheduleAgentAppointmentUnsupportedMediaTypeFailure = UnsupportedMediaTypeFailure | AgendaApplicationJsonRequiredFailure | AgendaFileContentMismatchFailure | AgendaUnsupportedContentEncodingFailure | AgendaUnsupportedFileTypeFailure;
683
+ export declare const AgendaBookAgentAppointmentBodyCodec: import("../../_/codec.js").Codec;
160
684
  export declare const AgendaBookingCodec: import("../../_/codec.js").Codec;
685
+ export declare const AgendaBookingResponseCodec: import("../../_/codec.js").Codec;
@@ -1,7 +1,10 @@
1
1
  // Code generated by forge. DO NOT EDIT.
2
2
  /* eslint-disable */
3
- import { instant, object } from "../../_/index.js";
3
+ import { date, instant, object } from "../../_/index.js";
4
4
  import { AgendaAppointmentStatusChangeCodec, } from "../models.js";
5
+ export const AgendaBookAgentAppointmentBodyCodec = object([
6
+ ["patientBirthDate", null, date],
7
+ ]);
5
8
  export const AgendaBookingCodec = object([
6
9
  ["createdAt", null, instant],
7
10
  ["endsAt", null, instant],
@@ -10,3 +13,6 @@ export const AgendaBookingCodec = object([
10
13
  ["statusChange", null, () => AgendaAppointmentStatusChangeCodec],
11
14
  ["updatedAt", null, instant],
12
15
  ]);
16
+ export const AgendaBookingResponseCodec = object([
17
+ ["data", null, () => AgendaBookingCodec],
18
+ ]);
@@ -1,6 +1,5 @@
1
1
  import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
- import type { AgendaResponseMetadata } from "../models.js";
3
- import { type AgendaFirstAvailability } from "./models.js";
2
+ import { type AgendaFirstAvailabilityResponse } from "./models.js";
4
3
  export interface ClientOptions extends BaseClientOptions {
5
4
  /**
6
5
  * The URL the paths of the API are relative to.
@@ -66,9 +65,4 @@ export interface GetRequest {
66
65
  */
67
66
  timezone: string;
68
67
  }
69
- export interface GetResponse {
70
- data: AgendaFirstAvailability;
71
- error: null;
72
- metadata: AgendaResponseMetadata;
73
- success: true;
74
- }
68
+ export type GetResponse = AgendaFirstAvailabilityResponse;
@@ -1,7 +1,7 @@
1
1
  // Code generated by forge. DO NOT EDIT.
2
2
  /* eslint-disable */
3
- import { Transport, object, } from "../../_/index.js";
4
- import { AgendaFirstAvailabilityCodec, } from "./models.js";
3
+ import { Transport, } from "../../_/index.js";
4
+ import { AgendaFirstAvailabilityResponseCodec, } from "./models.js";
5
5
  export function createClient(options) {
6
6
  return bind(new Transport(options));
7
7
  }
@@ -14,6 +14,6 @@ const GetOperation = {
14
14
  method: "GET",
15
15
  route: "/v1/agenda/first-availability/{serviceId}",
16
16
  query: { days: "days", durationMinutes: "durationMinutes", from: "from", occupationMinutes: "occupationMinutes", group: "group", limit: "limit", locationId: "locationId", resourceId: "resourceId", timezone: "timezone" },
17
- response: object([["data", null, () => AgendaFirstAvailabilityCodec]]),
18
- errors: { "400": true, "401": true, "403": true, "404": true, "405": true, "409": true, "413": true, "415": true, "426": true, "429": true, "500": true, "502": true, "503": true, "504": true },
17
+ response: AgendaFirstAvailabilityResponseCodec,
18
+ errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "415": true, "426": true, "429": true, "500": true, "502": true, "503": true, "504": true },
19
19
  };
@@ -2,4 +2,4 @@ export { ApiError } from "../../_/index.js";
2
2
  export type { RequestOptions } from "../../_/index.js";
3
3
  export { createClient } from "./client.js";
4
4
  export type { Client, ClientOptions, GetRequest, GetResponse, } from "./client.js";
5
- export type { AgendaFirstAvailability } from "./models.js";
5
+ export type { AgendaFirstAvailability, AgendaFirstAvailabilityResponse, AgendaGetFirstAvailableBadRequestError, AgendaGetFirstAvailableBadRequestFailure, AgendaGetFirstAvailableConflictError, AgendaGetFirstAvailableConflictFailure, AgendaGetFirstAvailableForbiddenError, AgendaGetFirstAvailableForbiddenFailure, AgendaGetFirstAvailableServiceUnavailableError, AgendaGetFirstAvailableServiceUnavailableFailure, AgendaGetFirstAvailableUnsupportedMediaTypeError, AgendaGetFirstAvailableUnsupportedMediaTypeFailure, } from "./models.js";