@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
@@ -0,0 +1,182 @@
1
+ import type { ForbiddenFailure, InvalidInputFailure, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
2
+ import type { AgendaAgeNotEligibleFailure, AgendaApplicationJsonRequiredFailure, AgendaAppointmentClosedFailure, AgendaAppointmentNotMovableFailure, AgendaAppointmentNotRemindableFailure, AgendaAppointmentVersionMismatchFailure, AgendaAppointmentWithoutPatientFailure, AgendaArbolCatalogTooLargeFailure, AgendaArbolConfigurationRequiredFailure, AgendaArbolRefusedFailure, AgendaArbolResponseTooLargeFailure, AgendaArbolSettingsVersionMismatchFailure, AgendaArbolUnavailableFailure, AgendaBindingVersionMismatchFailure, AgendaBirthDateRequiredFailure, AgendaDailyReportTooLargeFailure, AgendaDurationChangeOffFailure, AgendaDurationNotAllowedFailure, AgendaFileContentMismatchFailure, AgendaFollowupConsentRequiredFailure, AgendaFollowupDisabledFailure, AgendaFollowupSettingsVersionMismatchFailure, AgendaHoldNotActiveFailure, AgendaIdTokenMismatchFailure, AgendaIntakeSettingsVersionMismatchFailure, AgendaInvalidAppointmentIntakeFailure, AgendaInvalidAvailabilityWindowFailure, AgendaInvalidBodyFailure, AgendaInvalidFileKindFailure, AgendaInvalidFileNameFailure, AgendaInvalidHoldPayloadFailure, AgendaInvalidIdTokenFailure, AgendaInvalidJsonFailure, AgendaInvalidPatientFieldsFailure, AgendaInvalidSlotTokenFailure, AgendaInvalidWindowFailure, AgendaLocationVersionMismatchFailure, AgendaNotFileUploaderFailure, AgendaNotNoteAuthorFailure, AgendaNotificationSettingsVersionMismatchFailure, AgendaNotificationsNotSetUpFailure, AgendaOfferingVersionMismatchFailure, AgendaOrganizationVersionMismatchFailure, AgendaOriginNotAllowedFailure, AgendaOverbookOutOfRangeFailure, AgendaOverbookUnavailableFailure, AgendaPatientArchivedFailure, AgendaPatientDocumentTakenFailure, AgendaPatientEmailRequiredFailure, AgendaPatientVersionMismatchFailure, AgendaPayerNameTakenFailure, AgendaPayerStaffOnlyFailure, AgendaPayerVersionMismatchFailure, AgendaProfileVersionMismatchFailure, AgendaProviderDisabledFailure, AgendaRecallAlreadyActiveFailure, AgendaRecallMonthPassedFailure, AgendaRecallVersionMismatchFailure, AgendaRecallVisitInFutureFailure, AgendaRecallVisitRequiredFailure, AgendaRemovalJobConflictFailure, AgendaRemovalWorkflowUnavailableFailure, AgendaReportNotificationsDisabledFailure, AgendaReportRecipientsRequiredFailure, AgendaReportSettingsVersionMismatchFailure, AgendaResourceCapacityExceededFailure, AgendaResourceVersionMismatchFailure, AgendaSameOfferingFailure, AgendaSameResourceFailure, AgendaSameServiceFailure, AgendaScheduleChangedFailure, AgendaScheduleRuleAgendaMismatchFailure, AgendaScheduleRuleExpectedVersionRequiredFailure, AgendaScheduleRuleVersionMismatchFailure, AgendaScheduleRulesChangedFailure, AgendaServiceCapacityExceededFailure, AgendaServiceChangedFailure, AgendaServiceVersionMismatchFailure, AgendaSlotOfferAlreadyOpenFailure, AgendaSlotOfferClosedFailure, AgendaSlotOfferMismatchFailure, AgendaSlotOfferNotAllowedFailure, AgendaSlotOfferTooSoonFailure, AgendaSlotRequiredFailure, AgendaStudyLengthNotOfferedFailure, AgendaStudyOverbookingNotAllowedFailure, AgendaTargetInactiveFailure, AgendaUnexpectedQueryParametersFailure, AgendaUnsupportedContentEncodingFailure, AgendaUnsupportedFileTypeFailure, AgendaWaitlistEntryVersionMismatchFailure, AgendaWaitlistResourceAmbiguousFailure, AgendaWaitlistResourceUnavailableFailure, AgendaWaitlistServiceUnavailableFailure } from "../models.js";
3
+ /**
4
+ * A failed answer.
5
+ */
6
+ export interface AgendaGetAgentBookingRequirementsBadRequestError {
7
+ data: null;
8
+ error: AgendaGetAgentBookingRequirementsBadRequestFailure;
9
+ /**
10
+ * What every answer carries besides its data or error.
11
+ */
12
+ metadata: ResponseMetadata;
13
+ success: false;
14
+ }
15
+ export type AgendaGetAgentBookingRequirementsBadRequestFailure = InvalidInputFailure | AgendaWaitlistServiceUnavailableFailure | AgendaWaitlistResourceUnavailableFailure | AgendaWaitlistResourceAmbiguousFailure | AgendaInvalidAppointmentIntakeFailure | AgendaInvalidPatientFieldsFailure | AgendaDurationChangeOffFailure | AgendaDurationNotAllowedFailure | AgendaStudyLengthNotOfferedFailure | AgendaInvalidFileKindFailure | AgendaInvalidFileNameFailure | AgendaInvalidIdTokenFailure | AgendaInvalidJsonFailure | AgendaInvalidWindowFailure | AgendaUnexpectedQueryParametersFailure | AgendaInvalidBodyFailure;
16
+ /**
17
+ * A failed answer.
18
+ */
19
+ export interface AgendaGetAgentBookingRequirementsConflictError {
20
+ data: null;
21
+ error: AgendaGetAgentBookingRequirementsConflictFailure;
22
+ /**
23
+ * What every answer carries besides its data or error.
24
+ */
25
+ metadata: ResponseMetadata;
26
+ success: false;
27
+ }
28
+ export type AgendaGetAgentBookingRequirementsConflictFailure = 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;
29
+ /**
30
+ * A failed answer.
31
+ */
32
+ export interface AgendaGetAgentBookingRequirementsForbiddenError {
33
+ data: null;
34
+ error: AgendaGetAgentBookingRequirementsForbiddenFailure;
35
+ /**
36
+ * What every answer carries besides its data or error.
37
+ */
38
+ metadata: ResponseMetadata;
39
+ success: false;
40
+ }
41
+ export type AgendaGetAgentBookingRequirementsForbiddenFailure = ForbiddenFailure | AgendaIdTokenMismatchFailure | AgendaNotFileUploaderFailure | AgendaNotNoteAuthorFailure | AgendaOriginNotAllowedFailure;
42
+ export interface AgendaGetAgentBookingRequirementsResult {
43
+ /**
44
+ * Staff duration override policy; it changes one appointment without changing
45
+ * the service’s standard duration.
46
+ */
47
+ bookingDuration: {
48
+ enabled: boolean;
49
+ maxMinutes: number;
50
+ minMinutes: number;
51
+ stepMinutes: 1 | 5 | 10 | 15 | 20 | 30 | 60;
52
+ };
53
+ /**
54
+ * Organization-defined intake fields with stable keys retained in recorded
55
+ * values.
56
+ */
57
+ customFields: {
58
+ help: string | null;
59
+ key: string;
60
+ label: string;
61
+ options: string[];
62
+ required: boolean;
63
+ status: "active" | "archived";
64
+ type: "text" | "number" | "date" | "select" | "checkbox";
65
+ }[];
66
+ /**
67
+ * Configured document types; inactive types remain valid on existing records.
68
+ */
69
+ documentTypes: {
70
+ code: string;
71
+ description: string;
72
+ name: string;
73
+ status: "active" | "inactive";
74
+ }[];
75
+ /**
76
+ * Modes controlling which built-in intake fields are displayed or required.
77
+ */
78
+ fields: {
79
+ authorization: "off" | "optional" | "required";
80
+ conversationUrl: "off" | "optional";
81
+ document: "optional" | "required";
82
+ email: "off" | "optional" | "required";
83
+ notes: "off" | "optional" | "required";
84
+ payer: "off" | "optional" | "required";
85
+ phone: "off" | "optional" | "required";
86
+ priority: "off" | "on";
87
+ };
88
+ /**
89
+ * Organization-defined labels and examples for built-in intake fields.
90
+ */
91
+ labels: {
92
+ authorization: {
93
+ label: string;
94
+ placeholder: string;
95
+ };
96
+ document: {
97
+ label: string;
98
+ placeholder: string;
99
+ };
100
+ email: {
101
+ label: string;
102
+ placeholder: string;
103
+ };
104
+ name: {
105
+ label: string;
106
+ placeholder: string;
107
+ };
108
+ notes: {
109
+ label: string;
110
+ placeholder: string;
111
+ };
112
+ phone: {
113
+ label: string;
114
+ placeholder: string;
115
+ };
116
+ };
117
+ /**
118
+ * Stable resource discriminator identifying the response object kind.
119
+ */
120
+ object: "scheduling.intake_settings";
121
+ /**
122
+ * Organization-specific display name for the payer selector.
123
+ */
124
+ payerLabel: string;
125
+ /**
126
+ * Active payer booking policies and attended sites admitted by the
127
+ * organization’s current intake modules.
128
+ */
129
+ payers: {
130
+ bookingPolicy: "open" | "staff_only";
131
+ name: string;
132
+ sites: string[];
133
+ sitesNote: string | null;
134
+ }[];
135
+ /**
136
+ * ISO 8601 instant of the latest persisted change; null when this
137
+ * configuration has never been saved.
138
+ */
139
+ updatedAt: string | null;
140
+ /**
141
+ * Persisted revision used to detect concurrent edits.
142
+ */
143
+ version: number;
144
+ }
145
+ /**
146
+ * A successful answer.
147
+ */
148
+ export interface AgendaGetAgentBookingRequirementsResultResponse {
149
+ data: AgendaGetAgentBookingRequirementsResult;
150
+ error: null;
151
+ /**
152
+ * What every answer carries besides its data or error.
153
+ */
154
+ metadata: ResponseMetadata;
155
+ success: true;
156
+ }
157
+ /**
158
+ * A failed answer.
159
+ */
160
+ export interface AgendaGetAgentBookingRequirementsServiceUnavailableError {
161
+ data: null;
162
+ error: AgendaGetAgentBookingRequirementsServiceUnavailableFailure;
163
+ /**
164
+ * What every answer carries besides its data or error.
165
+ */
166
+ metadata: ResponseMetadata;
167
+ success: false;
168
+ }
169
+ export type AgendaGetAgentBookingRequirementsServiceUnavailableFailure = UpstreamUnavailableFailure | AgendaArbolResponseTooLargeFailure | AgendaArbolUnavailableFailure | AgendaRemovalWorkflowUnavailableFailure | AgendaArbolRefusedFailure;
170
+ /**
171
+ * A failed answer.
172
+ */
173
+ export interface AgendaGetAgentBookingRequirementsUnsupportedMediaTypeError {
174
+ data: null;
175
+ error: AgendaGetAgentBookingRequirementsUnsupportedMediaTypeFailure;
176
+ /**
177
+ * What every answer carries besides its data or error.
178
+ */
179
+ metadata: ResponseMetadata;
180
+ success: false;
181
+ }
182
+ export type AgendaGetAgentBookingRequirementsUnsupportedMediaTypeFailure = AgendaApplicationJsonRequiredFailure | AgendaFileContentMismatchFailure | AgendaUnsupportedContentEncodingFailure | AgendaUnsupportedFileTypeFailure;
@@ -1,5 +1,5 @@
1
1
  import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
- import { type AgendaResponseMetadata, type AgendaSlotPage } from "../models.js";
2
+ import { type AgendaSlotPageResponse } from "../models.js";
3
3
  export interface ClientOptions extends BaseClientOptions {
4
4
  /**
5
5
  * The URL the paths of the API are relative to.
@@ -70,9 +70,4 @@ export interface ListRequest {
70
70
  */
71
71
  connectionId?: string;
72
72
  }
73
- export interface ListResponse {
74
- data: AgendaSlotPage;
75
- error: null;
76
- metadata: AgendaResponseMetadata;
77
- success: true;
78
- }
73
+ export type ListResponse = AgendaSlotPageResponse;
@@ -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 { AgendaSlotPageCodec, } from "../models.js";
3
+ import { Transport, } from "../../_/index.js";
4
+ import { AgendaSlotPageResponseCodec, } from "../models.js";
5
5
  export function createClient(options) {
6
6
  return bind(new Transport(options));
7
7
  }
@@ -14,6 +14,7 @@ const ListOperation = {
14
14
  method: "GET",
15
15
  route: "/v1/agenda/booking-slots",
16
16
  query: { cursor: "cursor", direction: "direction", limit: "limit", excludeAppointmentId: "excludeAppointmentId", from: "from", offeringId: "offeringId", preferredResourceIds: "preferredResourceIds", timezone: "timezone", to: "to", channel: "channel", connectionId: "connectionId" },
17
- response: object([["data", null, () => AgendaSlotPageCodec]]),
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
+ joined: ["preferredResourceIds"],
18
+ response: AgendaSlotPageResponseCodec,
19
+ 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
20
  };
@@ -2,3 +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, ListRequest, ListResponse, } from "./client.js";
5
+ export type { AgendaFindBookableSlotsBadRequestError, AgendaFindBookableSlotsBadRequestFailure, AgendaFindBookableSlotsConflictError, AgendaFindBookableSlotsConflictFailure, AgendaFindBookableSlotsForbiddenError, AgendaFindBookableSlotsForbiddenFailure, AgendaFindBookableSlotsServiceUnavailableError, AgendaFindBookableSlotsServiceUnavailableFailure, AgendaFindBookableSlotsUnsupportedMediaTypeError, AgendaFindBookableSlotsUnsupportedMediaTypeFailure, } from "./models.js";
@@ -0,0 +1,67 @@
1
+ import type { ForbiddenFailure, InvalidInputFailure, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
2
+ import type { AgendaAgeNotEligibleFailure, AgendaApplicationJsonRequiredFailure, AgendaAppointmentClosedFailure, AgendaAppointmentNotMovableFailure, AgendaAppointmentNotRemindableFailure, AgendaAppointmentVersionMismatchFailure, AgendaAppointmentWithoutPatientFailure, AgendaArbolCatalogTooLargeFailure, AgendaArbolConfigurationRequiredFailure, AgendaArbolRefusedFailure, AgendaArbolResponseTooLargeFailure, AgendaArbolSettingsVersionMismatchFailure, AgendaArbolUnavailableFailure, AgendaBindingVersionMismatchFailure, AgendaBirthDateRequiredFailure, AgendaDailyReportTooLargeFailure, AgendaDurationChangeOffFailure, AgendaDurationNotAllowedFailure, AgendaFileContentMismatchFailure, AgendaFollowupConsentRequiredFailure, AgendaFollowupDisabledFailure, AgendaFollowupSettingsVersionMismatchFailure, AgendaHoldNotActiveFailure, AgendaIdTokenMismatchFailure, AgendaIntakeSettingsVersionMismatchFailure, AgendaInvalidAppointmentIntakeFailure, AgendaInvalidAvailabilityWindowFailure, AgendaInvalidBodyFailure, AgendaInvalidFileKindFailure, AgendaInvalidFileNameFailure, AgendaInvalidHoldPayloadFailure, AgendaInvalidIdTokenFailure, AgendaInvalidJsonFailure, AgendaInvalidPatientFieldsFailure, AgendaInvalidSlotTokenFailure, AgendaInvalidWindowFailure, AgendaLocationVersionMismatchFailure, AgendaNotFileUploaderFailure, AgendaNotNoteAuthorFailure, AgendaNotificationSettingsVersionMismatchFailure, AgendaNotificationsNotSetUpFailure, AgendaOfferingVersionMismatchFailure, AgendaOrganizationVersionMismatchFailure, AgendaOriginNotAllowedFailure, AgendaOverbookOutOfRangeFailure, AgendaOverbookUnavailableFailure, AgendaPatientArchivedFailure, AgendaPatientDocumentTakenFailure, AgendaPatientEmailRequiredFailure, AgendaPatientVersionMismatchFailure, AgendaPayerNameTakenFailure, AgendaPayerStaffOnlyFailure, AgendaPayerVersionMismatchFailure, AgendaProfileVersionMismatchFailure, AgendaProviderDisabledFailure, AgendaRecallAlreadyActiveFailure, AgendaRecallMonthPassedFailure, AgendaRecallVersionMismatchFailure, AgendaRecallVisitInFutureFailure, AgendaRecallVisitRequiredFailure, AgendaRemovalJobConflictFailure, AgendaRemovalWorkflowUnavailableFailure, AgendaReportNotificationsDisabledFailure, AgendaReportRecipientsRequiredFailure, AgendaReportSettingsVersionMismatchFailure, AgendaResourceCapacityExceededFailure, AgendaResourceVersionMismatchFailure, AgendaSameOfferingFailure, AgendaSameResourceFailure, AgendaSameServiceFailure, AgendaScheduleChangedFailure, AgendaScheduleRuleAgendaMismatchFailure, AgendaScheduleRuleExpectedVersionRequiredFailure, AgendaScheduleRuleVersionMismatchFailure, AgendaScheduleRulesChangedFailure, AgendaServiceCapacityExceededFailure, AgendaServiceChangedFailure, AgendaServiceVersionMismatchFailure, AgendaSlotOfferAlreadyOpenFailure, AgendaSlotOfferClosedFailure, AgendaSlotOfferMismatchFailure, AgendaSlotOfferNotAllowedFailure, AgendaSlotOfferTooSoonFailure, AgendaSlotRequiredFailure, AgendaStudyLengthNotOfferedFailure, AgendaStudyOverbookingNotAllowedFailure, AgendaTargetInactiveFailure, AgendaUnexpectedQueryParametersFailure, AgendaUnsupportedContentEncodingFailure, AgendaUnsupportedFileTypeFailure, AgendaWaitlistEntryVersionMismatchFailure, AgendaWaitlistResourceAmbiguousFailure, AgendaWaitlistResourceUnavailableFailure, AgendaWaitlistServiceUnavailableFailure } from "../models.js";
3
+ /**
4
+ * A failed answer.
5
+ */
6
+ export interface AgendaFindBookableSlotsBadRequestError {
7
+ data: null;
8
+ error: AgendaFindBookableSlotsBadRequestFailure;
9
+ /**
10
+ * What every answer carries besides its data or error.
11
+ */
12
+ metadata: ResponseMetadata;
13
+ success: false;
14
+ }
15
+ export type AgendaFindBookableSlotsBadRequestFailure = InvalidInputFailure | AgendaWaitlistServiceUnavailableFailure | AgendaWaitlistResourceUnavailableFailure | AgendaWaitlistResourceAmbiguousFailure | AgendaInvalidAppointmentIntakeFailure | AgendaInvalidPatientFieldsFailure | AgendaDurationChangeOffFailure | AgendaDurationNotAllowedFailure | AgendaStudyLengthNotOfferedFailure | AgendaInvalidFileKindFailure | AgendaInvalidFileNameFailure | AgendaInvalidIdTokenFailure | AgendaInvalidJsonFailure | AgendaInvalidWindowFailure | AgendaUnexpectedQueryParametersFailure | AgendaInvalidBodyFailure;
16
+ /**
17
+ * A failed answer.
18
+ */
19
+ export interface AgendaFindBookableSlotsConflictError {
20
+ data: null;
21
+ error: AgendaFindBookableSlotsConflictFailure;
22
+ /**
23
+ * What every answer carries besides its data or error.
24
+ */
25
+ metadata: ResponseMetadata;
26
+ success: false;
27
+ }
28
+ export type AgendaFindBookableSlotsConflictFailure = 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;
29
+ /**
30
+ * A failed answer.
31
+ */
32
+ export interface AgendaFindBookableSlotsForbiddenError {
33
+ data: null;
34
+ error: AgendaFindBookableSlotsForbiddenFailure;
35
+ /**
36
+ * What every answer carries besides its data or error.
37
+ */
38
+ metadata: ResponseMetadata;
39
+ success: false;
40
+ }
41
+ export type AgendaFindBookableSlotsForbiddenFailure = ForbiddenFailure | AgendaIdTokenMismatchFailure | AgendaNotFileUploaderFailure | AgendaNotNoteAuthorFailure | AgendaOriginNotAllowedFailure;
42
+ /**
43
+ * A failed answer.
44
+ */
45
+ export interface AgendaFindBookableSlotsServiceUnavailableError {
46
+ data: null;
47
+ error: AgendaFindBookableSlotsServiceUnavailableFailure;
48
+ /**
49
+ * What every answer carries besides its data or error.
50
+ */
51
+ metadata: ResponseMetadata;
52
+ success: false;
53
+ }
54
+ export type AgendaFindBookableSlotsServiceUnavailableFailure = UpstreamUnavailableFailure | AgendaArbolResponseTooLargeFailure | AgendaArbolUnavailableFailure | AgendaRemovalWorkflowUnavailableFailure | AgendaArbolRefusedFailure;
55
+ /**
56
+ * A failed answer.
57
+ */
58
+ export interface AgendaFindBookableSlotsUnsupportedMediaTypeError {
59
+ data: null;
60
+ error: AgendaFindBookableSlotsUnsupportedMediaTypeFailure;
61
+ /**
62
+ * What every answer carries besides its data or error.
63
+ */
64
+ metadata: ResponseMetadata;
65
+ success: false;
66
+ }
67
+ export type AgendaFindBookableSlotsUnsupportedMediaTypeFailure = AgendaApplicationJsonRequiredFailure | AgendaFileContentMismatchFailure | AgendaUnsupportedContentEncodingFailure | AgendaUnsupportedFileTypeFailure;
@@ -0,0 +1,3 @@
1
+ // Code generated by forge. DO NOT EDIT.
2
+ /* eslint-disable */
3
+ export {};
@@ -1,6 +1,6 @@
1
1
  import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
- import { type AgendaAppointment, type AgendaAppointmentIntakeInput, type AgendaResponseMetadata } from "../models.js";
3
- import { type AgendaAppointmentGuidance, type AgendaBooking } from "./models.js";
2
+ import { type AgendaAppointmentResponse } from "../models.js";
3
+ import { type AgendaBookAgentAppointmentBody, type AgendaBookingResponse, type AgendaCancelAgentAppointmentBody, type AgendaListAgentPatientAppointmentsBody, type AgendaListAgentPatientAppointmentsResultResponse, type AgendaRescheduleAgentAppointmentBody } from "./models.js";
4
4
  export interface ClientOptions extends BaseClientOptions {
5
5
  /**
6
6
  * The URL the paths of the API are relative to.
@@ -67,87 +67,16 @@ export interface Client {
67
67
  }
68
68
  export declare function createClient(options: ClientOptions): Client;
69
69
  export declare function bind(transport: Transport): Client;
70
- export interface CancelRequest {
70
+ export type CancelRequest = {
71
71
  /**
72
72
  * Stable eng-prefixed Scheduling record identifier; ownership is checked in
73
73
  * the authenticated organization.
74
74
  */
75
75
  appointmentId: string;
76
- /**
77
- * The conversation's channel, set by the platform. It changes nothing in
78
- * Agenda; omit it.
79
- */
80
- channel?: "voice" | "whatsapp" | "web";
81
- /**
82
- * The platform's id for the organization's Agenda, set by the platform. An
83
- * organization has one Agenda, so it selects nothing; omit it.
84
- */
85
- connectionId?: string;
86
- /**
87
- * Cancellation reason explicitly provided by the person; recorded in
88
- * appointment history.
89
- */
90
- reason: string;
91
- }
92
- export interface CancelResponse {
93
- data: AgendaAppointment;
94
- error: null;
95
- metadata: AgendaResponseMetadata;
96
- success: true;
97
- }
98
- export interface CreateRequest {
99
- /**
100
- * The conversation's channel, set by the platform. It changes nothing in
101
- * Agenda; omit it.
102
- */
103
- channel?: "voice" | "whatsapp" | "web";
104
- /**
105
- * The platform's id for the organization's Agenda, set by the platform. An
106
- * organization has one Agenda, so it selects nothing; omit it.
107
- */
108
- connectionId?: string;
109
- /**
110
- * External contact reference associated with this booking; null when it has
111
- * no external contact.
112
- */
113
- contactId?: string | null;
114
- /**
115
- * Appointment-specific contact, payer, authorization and custom-field values;
116
- * null when no intake was recorded.
117
- */
118
- intake?: AgendaAppointmentIntakeInput | null;
119
- /**
120
- * Patient identity copied into the booking; null when no patient identity was
121
- * supplied.
122
- */
123
- patient?: {
124
- document?: string | null;
125
- documentNumber?: string | null;
126
- documentType?: string | null;
127
- name: string;
128
- } | null;
129
- /**
130
- * Patient-supplied date of birth (YYYY-MM-DD), stored on the record and
131
- * checked against service age eligibility.
132
- */
133
- patientBirthDate?: Temporal.PlainDate;
134
- /**
135
- * Opaque signed token for one exact available slot. Use the returned token
136
- * unchanged after the patient confirms that time.
137
- */
138
- slotToken: string;
139
- /**
140
- * Desk-authored appointment title; null permits the service name to supply
141
- * the display title.
142
- */
143
- title?: string | null;
144
- }
145
- export interface CreateResponse {
146
- data: AgendaBooking;
147
- error: null;
148
- metadata: AgendaResponseMetadata;
149
- success: true;
150
- }
76
+ } & AgendaCancelAgentAppointmentBody;
77
+ export type CancelResponse = AgendaAppointmentResponse;
78
+ export type CreateRequest = AgendaBookAgentAppointmentBody;
79
+ export type CreateResponse = AgendaBookingResponse;
151
80
  export interface GetRequest {
152
81
  /**
153
82
  * Stable eng-prefixed Scheduling record identifier; ownership is checked in
@@ -165,118 +94,14 @@ export interface GetRequest {
165
94
  */
166
95
  connectionId?: string;
167
96
  }
168
- export interface GetResponse {
169
- data: AgendaBooking;
170
- error: null;
171
- metadata: AgendaResponseMetadata;
172
- success: true;
173
- }
174
- export interface LookupRequest {
175
- /**
176
- * The conversation's channel, set by the platform. It changes nothing in
177
- * Agenda; omit it.
178
- */
179
- channel?: "voice" | "whatsapp" | "web";
180
- /**
181
- * The platform's id for the organization's Agenda, set by the platform. An
182
- * organization has one Agenda, so it selects nothing; omit it.
183
- */
184
- connectionId?: string;
185
- /**
186
- * Deprecated: use `documentNumber`. Answered until 2027-01-28.
187
- *
188
- * @deprecated
189
- */
190
- document?: string;
191
- /**
192
- * Exact patient document number; normalized for matching, with documentType
193
- * needed when multiple types share the number.
194
- */
195
- documentNumber?: string;
196
- /**
197
- * Document-type code from the organization’s configured active types. Input
198
- * is trimmed and uppercased.
199
- */
200
- documentType?: string;
201
- }
202
- export interface LookupResponse {
203
- data: {
204
- appointments: {
205
- endsAt: string;
206
- guidance: AgendaAppointmentGuidance | null;
207
- id: string;
208
- offeringId: string | null;
209
- resourceIds: string[];
210
- startsAt: string;
211
- status: "tentative" | "scheduled" | "confirmed" | "checked_in" | "completed" | "cancelled" | "no_show" | "unknown";
212
- version: number;
213
- }[];
214
- found: boolean;
215
- patient?: {
216
- addressLine: string | null;
217
- alert: string | null;
218
- archivedAt: string | null;
219
- birthDate: string | null;
220
- cancelled: number;
221
- city: string | null;
222
- createdAt: string;
223
- document: string | null;
224
- documentNumber: string | null;
225
- documentType: string | null;
226
- email: string | null;
227
- entity: string | null;
228
- fields: {
229
- [key: string]: unknown;
230
- };
231
- gender: "male" | "female" | "other" | "unknown" | null;
232
- id: string;
233
- lastAt: string | null;
234
- name: string;
235
- nextAt: string | null;
236
- noShow: number;
237
- object: "scheduling.patient";
238
- phone: string | null;
239
- total: number;
240
- updatedAt: string;
241
- version: number;
242
- };
243
- patients?: {
244
- document: string | null;
245
- documentNumber: string | null;
246
- documentType: string | null;
247
- id: string;
248
- name: string;
249
- }[];
250
- };
251
- error: null;
252
- metadata: AgendaResponseMetadata;
253
- success: true;
254
- }
255
- export interface RescheduleRequest {
97
+ export type GetResponse = AgendaBookingResponse;
98
+ export type LookupRequest = AgendaListAgentPatientAppointmentsBody;
99
+ export type LookupResponse = AgendaListAgentPatientAppointmentsResultResponse;
100
+ export type RescheduleRequest = {
256
101
  /**
257
102
  * Stable eng-prefixed Scheduling record identifier; ownership is checked in
258
103
  * the authenticated organization.
259
104
  */
260
105
  appointmentId: string;
261
- /**
262
- * The conversation's channel, set by the platform. It changes nothing in
263
- * Agenda; omit it.
264
- */
265
- channel?: "voice" | "whatsapp" | "web";
266
- /**
267
- * The platform's id for the organization's Agenda, set by the platform. An
268
- * organization has one Agenda, so it selects nothing; omit it.
269
- */
270
- connectionId?: string;
271
- /**
272
- * Exact signed slot token confirmed by the person; the slot must belong to
273
- * the appointment’s existing service.
274
- */
275
- slotToken: string;
276
- }
277
- export interface RescheduleResponse {
278
- data: AgendaBooking;
279
- error: null;
280
- metadata: AgendaResponseMetadata;
281
- success: true;
282
- }
106
+ } & AgendaRescheduleAgentAppointmentBody;
107
+ export type RescheduleResponse = AgendaBookingResponse;
@@ -1,8 +1,8 @@
1
1
  // Code generated by forge. DO NOT EDIT.
2
2
  /* eslint-disable */
3
- import { Transport, date, object, } from "../../_/index.js";
4
- import { AgendaAppointmentCodec, } from "../models.js";
5
- import { AgendaBookingCodec, } from "./models.js";
3
+ import { Transport, } from "../../_/index.js";
4
+ import { AgendaAppointmentResponseCodec, } from "../models.js";
5
+ import { AgendaBookAgentAppointmentBodyCodec, AgendaBookingResponseCodec, } from "./models.js";
6
6
  export function createClient(options) {
7
7
  return bind(new Transport(options));
8
8
  }
@@ -19,35 +19,35 @@ const CancelOperation = {
19
19
  method: "POST",
20
20
  route: "/v1/agenda/bookings/{appointmentId}/cancel",
21
21
  body: "flat",
22
- response: object([["data", null, () => AgendaAppointmentCodec]]),
23
- 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 },
22
+ response: AgendaAppointmentResponseCodec,
23
+ errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "413": true, "415": true, "426": true, "429": true, "500": true, "502": true, "503": true, "504": true },
24
24
  };
25
25
  const CreateOperation = {
26
26
  method: "POST",
27
27
  route: "/v1/agenda/bookings",
28
28
  body: "flat",
29
- request: object([["patientBirthDate", null, date]]),
30
- response: object([["data", null, () => AgendaBookingCodec]]),
31
- 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 },
29
+ request: AgendaBookAgentAppointmentBodyCodec,
30
+ response: AgendaBookingResponseCodec,
31
+ errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "413": true, "415": true, "426": true, "429": true, "500": true, "502": true, "503": true, "504": true },
32
32
  };
33
33
  const GetOperation = {
34
34
  method: "GET",
35
35
  route: "/v1/agenda/bookings/{appointmentId}",
36
36
  query: { channel: "channel", connectionId: "connectionId" },
37
- response: object([["data", null, () => AgendaBookingCodec]]),
38
- 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 },
37
+ response: AgendaBookingResponseCodec,
38
+ 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 },
39
39
  };
40
40
  const LookupOperation = {
41
41
  method: "POST",
42
42
  route: "/v1/agenda/bookings/lookup",
43
43
  body: "flat",
44
44
  response: null,
45
- 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 },
45
+ errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "413": true, "415": true, "426": true, "429": true, "500": true, "502": true, "503": true, "504": true },
46
46
  };
47
47
  const RescheduleOperation = {
48
48
  method: "POST",
49
49
  route: "/v1/agenda/bookings/{appointmentId}/reschedule",
50
50
  body: "flat",
51
- response: object([["data", null, () => AgendaBookingCodec]]),
52
- 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 },
51
+ response: AgendaBookingResponseCodec,
52
+ errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "413": true, "415": true, "426": true, "429": true, "500": true, "502": true, "503": true, "504": true },
53
53
  };
@@ -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, CancelRequest, CancelResponse, CreateRequest, CreateResponse, GetRequest, GetResponse, LookupRequest, LookupResponse, RescheduleRequest, RescheduleResponse, } from "./client.js";
5
- export type { AgendaAppointmentGuidance, AgendaBooking, } from "./models.js";
5
+ export type { AgendaAppointmentGuidance, AgendaBookAgentAppointmentBadRequestError, AgendaBookAgentAppointmentBadRequestFailure, AgendaBookAgentAppointmentBody, AgendaBookAgentAppointmentConflictError, AgendaBookAgentAppointmentConflictFailure, AgendaBookAgentAppointmentForbiddenError, AgendaBookAgentAppointmentForbiddenFailure, AgendaBookAgentAppointmentServiceUnavailableError, AgendaBookAgentAppointmentServiceUnavailableFailure, AgendaBookAgentAppointmentUnsupportedMediaTypeError, AgendaBookAgentAppointmentUnsupportedMediaTypeFailure, AgendaBooking, AgendaBookingResponse, AgendaCancelAgentAppointmentBadRequestError, AgendaCancelAgentAppointmentBadRequestFailure, AgendaCancelAgentAppointmentBody, AgendaCancelAgentAppointmentConflictError, AgendaCancelAgentAppointmentConflictFailure, AgendaCancelAgentAppointmentForbiddenError, AgendaCancelAgentAppointmentForbiddenFailure, AgendaCancelAgentAppointmentServiceUnavailableError, AgendaCancelAgentAppointmentServiceUnavailableFailure, AgendaCancelAgentAppointmentUnsupportedMediaTypeError, AgendaCancelAgentAppointmentUnsupportedMediaTypeFailure, AgendaGetAgentAppointmentBadRequestError, AgendaGetAgentAppointmentBadRequestFailure, AgendaGetAgentAppointmentConflictError, AgendaGetAgentAppointmentConflictFailure, AgendaGetAgentAppointmentForbiddenError, AgendaGetAgentAppointmentForbiddenFailure, AgendaGetAgentAppointmentServiceUnavailableError, AgendaGetAgentAppointmentServiceUnavailableFailure, AgendaGetAgentAppointmentUnsupportedMediaTypeError, AgendaGetAgentAppointmentUnsupportedMediaTypeFailure, AgendaListAgentPatientAppointmentsBadRequestError, AgendaListAgentPatientAppointmentsBadRequestFailure, AgendaListAgentPatientAppointmentsBody, AgendaListAgentPatientAppointmentsConflictError, AgendaListAgentPatientAppointmentsConflictFailure, AgendaListAgentPatientAppointmentsForbiddenError, AgendaListAgentPatientAppointmentsForbiddenFailure, AgendaListAgentPatientAppointmentsResult, AgendaListAgentPatientAppointmentsResultResponse, AgendaListAgentPatientAppointmentsServiceUnavailableError, AgendaListAgentPatientAppointmentsServiceUnavailableFailure, AgendaListAgentPatientAppointmentsUnsupportedMediaTypeError, AgendaListAgentPatientAppointmentsUnsupportedMediaTypeFailure, AgendaRescheduleAgentAppointmentBadRequestError, AgendaRescheduleAgentAppointmentBadRequestFailure, AgendaRescheduleAgentAppointmentBody, AgendaRescheduleAgentAppointmentConflictError, AgendaRescheduleAgentAppointmentConflictFailure, AgendaRescheduleAgentAppointmentForbiddenError, AgendaRescheduleAgentAppointmentForbiddenFailure, AgendaRescheduleAgentAppointmentServiceUnavailableError, AgendaRescheduleAgentAppointmentServiceUnavailableFailure, AgendaRescheduleAgentAppointmentUnsupportedMediaTypeError, AgendaRescheduleAgentAppointmentUnsupportedMediaTypeFailure, } from "./models.js";