coss 0.2.0 → 0.3.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 (413) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +5 -0
  3. data/lib/coss/audit_events/client.rb +2 -0
  4. data/lib/coss/billing/types/usage_billing_request_meter.rb +7 -1
  5. data/lib/coss/client.rb +6 -1
  6. data/lib/coss/email/audiences/client.rb +9 -0
  7. data/lib/coss/email/broadcasts/client.rb +2 -0
  8. data/lib/coss/email/broadcasts/types/create_broadcast_request_tracking.rb +1 -0
  9. data/lib/coss/email/broadcasts/types/update_broadcast_request_tracking.rb +1 -0
  10. data/lib/coss/email/contacts/client.rb +2 -0
  11. data/lib/coss/email/contacts/properties/client.rb +4 -0
  12. data/lib/coss/email/contacts/properties/types/create_contact_property_request_fallback.rb +1 -0
  13. data/lib/coss/email/contacts/properties/types/update_contact_property_request_fallback.rb +1 -0
  14. data/lib/coss/email/segments/client.rb +6 -0
  15. data/lib/coss/email/suppressions/client.rb +2 -0
  16. data/lib/coss/email/topics/client.rb +2 -0
  17. data/lib/coss/forms/client.rb +2 -0
  18. data/lib/coss/forms/submissions/client.rb +2 -0
  19. data/lib/coss/forms/types/create_form_request_contacts.rb +1 -0
  20. data/lib/coss/forms/types/create_form_request_files.rb +1 -0
  21. data/lib/coss/forms/types/create_form_request_hosted.rb +1 -0
  22. data/lib/coss/forms/types/create_form_request_notifications.rb +1 -0
  23. data/lib/coss/forms/types/create_form_request_spam.rb +1 -0
  24. data/lib/coss/forms/types/create_form_request_submitter.rb +1 -0
  25. data/lib/coss/forms/types/update_form_request_contacts.rb +1 -0
  26. data/lib/coss/forms/types/update_form_request_files.rb +1 -0
  27. data/lib/coss/forms/types/update_form_request_hosted.rb +1 -0
  28. data/lib/coss/forms/types/update_form_request_notifications.rb +1 -0
  29. data/lib/coss/forms/types/update_form_request_spam.rb +1 -0
  30. data/lib/coss/forms/types/update_form_request_submitter.rb +1 -0
  31. data/lib/coss/hooks/messages/client.rb +3 -1
  32. data/lib/coss/inboxes/client.rb +2 -0
  33. data/lib/coss/inboxes/messages/types/reply_inbox_message_request_bcc.rb +1 -0
  34. data/lib/coss/inboxes/messages/types/reply_inbox_message_request_cc.rb +1 -0
  35. data/lib/coss/inboxes/messages/types/send_inbox_message_request_bcc.rb +1 -0
  36. data/lib/coss/inboxes/messages/types/send_inbox_message_request_cc.rb +1 -0
  37. data/lib/coss/inboxes/messages/types/send_inbox_message_request_to.rb +1 -0
  38. data/lib/coss/log_drains/batches/client.rb +2 -2
  39. data/lib/coss/log_drains/client.rb +11 -8
  40. data/lib/coss/log_drains/types/create_log_drain_request.rb +4 -0
  41. data/lib/coss/log_drains/types/create_log_drain_request_format.rb +16 -0
  42. data/lib/coss/log_drains/types/update_log_drain_request.rb +4 -0
  43. data/lib/coss/logs/client.rb +2 -0
  44. data/lib/coss/risk/client.rb +11 -6
  45. data/lib/coss/risk/limit_buckets/client.rb +2 -0
  46. data/lib/coss/risk/lists/client.rb +4 -0
  47. data/lib/coss/risk/rules/client.rb +4 -0
  48. data/lib/coss/scheduling/attendees/client.rb +94 -0
  49. data/lib/coss/scheduling/attendees/types/erase_attendees_request.rb +13 -0
  50. data/lib/coss/scheduling/attendees/types/erase_scheduling_attendee_by_email_request.rb +13 -0
  51. data/lib/coss/scheduling/availability/client.rb +62 -0
  52. data/lib/coss/scheduling/availability/types/availability_search_request.rb +25 -0
  53. data/lib/coss/scheduling/availability/types/availability_search_request_attributes_value.rb +17 -0
  54. data/lib/coss/scheduling/bookings/client.rb +510 -0
  55. data/lib/coss/scheduling/bookings/types/approve_bookings_request.rb +13 -0
  56. data/lib/coss/scheduling/bookings/types/cancel_scheduling_booking_request.rb +15 -0
  57. data/lib/coss/scheduling/bookings/types/create_booking_request.rb +33 -0
  58. data/lib/coss/scheduling/bookings/types/create_booking_request_answers_value.rb +17 -0
  59. data/lib/coss/scheduling/bookings/types/create_booking_request_attributes_value.rb +17 -0
  60. data/lib/coss/scheduling/bookings/types/create_booking_request_location.rb +28 -0
  61. data/lib/coss/scheduling/bookings/types/create_booking_request_location_google_meet.rb +11 -0
  62. data/lib/coss/scheduling/bookings/types/create_booking_request_location_in_person.rb +13 -0
  63. data/lib/coss/scheduling/bookings/types/create_booking_request_location_link.rb +13 -0
  64. data/lib/coss/scheduling/bookings/types/create_booking_request_location_microsoft_teams.rb +11 -0
  65. data/lib/coss/scheduling/bookings/types/create_booking_request_location_phone.rb +13 -0
  66. data/lib/coss/scheduling/bookings/types/create_booking_request_location_zoom.rb +13 -0
  67. data/lib/coss/scheduling/bookings/types/decline_bookings_request.rb +13 -0
  68. data/lib/coss/scheduling/bookings/types/events_bookings_request.rb +17 -0
  69. data/lib/coss/scheduling/bookings/types/get_bookings_request.rb +13 -0
  70. data/lib/coss/scheduling/bookings/types/list_bookings_request.rb +27 -0
  71. data/lib/coss/scheduling/bookings/types/list_bookings_request_status.rb +19 -0
  72. data/lib/coss/scheduling/bookings/types/mark_no_show_bookings_request.rb +13 -0
  73. data/lib/coss/scheduling/bookings/types/notifications_bookings_request.rb +17 -0
  74. data/lib/coss/scheduling/bookings/types/reschedule_booking_request.rb +17 -0
  75. data/lib/coss/scheduling/bookings/types/update_booking_location_request.rb +15 -0
  76. data/lib/coss/scheduling/calendar_delegations/client.rb +261 -0
  77. data/lib/coss/scheduling/calendar_delegations/types/delete_calendar_delegations_request.rb +13 -0
  78. data/lib/coss/scheduling/calendar_delegations/types/get_calendar_delegations_request.rb +13 -0
  79. data/lib/coss/scheduling/calendar_delegations/types/update_calendar_delegation_request.rb +21 -0
  80. data/lib/coss/scheduling/calendar_delegations/types/verify_calendar_delegation_request.rb +15 -0
  81. data/lib/coss/scheduling/calendars/client.rb +281 -0
  82. data/lib/coss/scheduling/calendars/types/authorize_calendar_request.rb +17 -0
  83. data/lib/coss/scheduling/calendars/types/authorize_calendar_request_provider.rb +17 -0
  84. data/lib/coss/scheduling/calendars/types/connect_calendars_request.rb +15 -0
  85. data/lib/coss/scheduling/calendars/types/disconnect_calendars_request.rb +15 -0
  86. data/lib/coss/scheduling/calendars/types/list_calendars_request.rb +13 -0
  87. data/lib/coss/scheduling/calendars/types/set_simulated_busy_request.rb +15 -0
  88. data/lib/coss/scheduling/calendars/types/set_simulated_busy_request_intervals_item.rb +15 -0
  89. data/lib/coss/scheduling/calendars/types/update_calendar_request.rb +19 -0
  90. data/lib/coss/scheduling/client.rb +79 -0
  91. data/lib/coss/scheduling/event_types/client.rb +192 -0
  92. data/lib/coss/scheduling/event_types/types/create_event_type_request.rb +69 -0
  93. data/lib/coss/scheduling/event_types/types/create_event_type_request_host_calendar_details.rb +16 -0
  94. data/lib/coss/scheduling/event_types/types/create_event_type_request_host_filter_value.rb +17 -0
  95. data/lib/coss/scheduling/event_types/types/create_event_type_request_kind.rb +18 -0
  96. data/lib/coss/scheduling/event_types/types/create_event_type_request_notifications_value.rb +17 -0
  97. data/lib/coss/scheduling/event_types/types/get_event_types_request.rb +13 -0
  98. data/lib/coss/scheduling/event_types/types/list_event_types_request.rb +15 -0
  99. data/lib/coss/scheduling/event_types/types/update_event_type_request.rb +71 -0
  100. data/lib/coss/scheduling/event_types/types/update_event_type_request_host_calendar_details.rb +16 -0
  101. data/lib/coss/scheduling/event_types/types/update_event_type_request_host_filter_value.rb +17 -0
  102. data/lib/coss/scheduling/event_types/types/update_event_type_request_notifications_value.rb +17 -0
  103. data/lib/coss/scheduling/event_types/types/update_event_type_request_status.rb +16 -0
  104. data/lib/coss/scheduling/holds/client.rb +155 -0
  105. data/lib/coss/scheduling/holds/types/confirm_hold_request.rb +15 -0
  106. data/lib/coss/scheduling/holds/types/create_hold_request.rb +33 -0
  107. data/lib/coss/scheduling/holds/types/create_hold_request_answers_value.rb +17 -0
  108. data/lib/coss/scheduling/holds/types/create_hold_request_attributes_value.rb +17 -0
  109. data/lib/coss/scheduling/holds/types/create_hold_request_location.rb +28 -0
  110. data/lib/coss/scheduling/holds/types/create_hold_request_location_google_meet.rb +11 -0
  111. data/lib/coss/scheduling/holds/types/create_hold_request_location_in_person.rb +13 -0
  112. data/lib/coss/scheduling/holds/types/create_hold_request_location_link.rb +13 -0
  113. data/lib/coss/scheduling/holds/types/create_hold_request_location_microsoft_teams.rb +11 -0
  114. data/lib/coss/scheduling/holds/types/create_hold_request_location_phone.rb +13 -0
  115. data/lib/coss/scheduling/holds/types/create_hold_request_location_zoom.rb +13 -0
  116. data/lib/coss/scheduling/holds/types/release_holds_request.rb +13 -0
  117. data/lib/coss/scheduling/hosts/client.rb +228 -0
  118. data/lib/coss/scheduling/hosts/types/create_host_request.rb +31 -0
  119. data/lib/coss/scheduling/hosts/types/create_host_request_attributes_value.rb +17 -0
  120. data/lib/coss/scheduling/hosts/types/get_hosts_request.rb +13 -0
  121. data/lib/coss/scheduling/hosts/types/list_hosts_request.rb +15 -0
  122. data/lib/coss/scheduling/hosts/types/remove_hosts_request.rb +13 -0
  123. data/lib/coss/scheduling/hosts/types/update_host_request.rb +35 -0
  124. data/lib/coss/scheduling/hosts/types/update_host_request_attributes_value.rb +17 -0
  125. data/lib/coss/scheduling/hosts/types/update_host_request_status.rb +16 -0
  126. data/lib/coss/scheduling/schedules/client.rb +253 -0
  127. data/lib/coss/scheduling/schedules/types/create_schedules_request.rb +15 -0
  128. data/lib/coss/scheduling/schedules/types/get_schedules_request.rb +15 -0
  129. data/lib/coss/scheduling/schedules/types/list_schedules_request.rb +13 -0
  130. data/lib/coss/scheduling/schedules/types/remove_schedules_request.rb +15 -0
  131. data/lib/coss/scheduling/schedules/types/update_schedules_request.rb +17 -0
  132. data/lib/coss/scheduling/series/client.rb +171 -0
  133. data/lib/coss/scheduling/series/types/cancel_series_request.rb +15 -0
  134. data/lib/coss/scheduling/series/types/create_series_body.rb +15 -0
  135. data/lib/coss/scheduling/sessions/client.rb +153 -0
  136. data/lib/coss/scheduling/sessions/types/create_for_booking_sessions_request.rb +13 -0
  137. data/lib/coss/scheduling/sessions/types/create_scheduling_booker_session_request.rb +21 -0
  138. data/lib/coss/scheduling/sessions/types/create_scheduling_booker_session_request_attendee.rb +24 -0
  139. data/lib/coss/scheduling/sessions/types/create_scheduling_booker_session_request_attributes_value.rb +17 -0
  140. data/lib/coss/scheduling/sessions/types/create_scheduling_host_session_request.rb +17 -0
  141. data/lib/coss/scheduling/settings/client.rb +88 -0
  142. data/lib/coss/scheduling/settings/types/update_scheduling_settings_request.rb +31 -0
  143. data/lib/coss/scheduling/settings/types/update_scheduling_settings_request_calendar_failure_mode.rb +16 -0
  144. data/lib/coss/scheduling/settings/types/update_scheduling_settings_request_logo.rb +14 -0
  145. data/lib/coss/scheduling/settings/types/update_scheduling_settings_request_notifications_value.rb +17 -0
  146. data/lib/coss/scheduling/slots/client.rb +123 -0
  147. data/lib/coss/scheduling/slots/types/explain_slots_request.rb +21 -0
  148. data/lib/coss/scheduling/slots/types/list_slots_request.rb +23 -0
  149. data/lib/coss/sign/documents/client.rb +2 -0
  150. data/lib/coss/sign/requests/client.rb +2 -0
  151. data/lib/coss/sign/templates/client.rb +2 -0
  152. data/lib/coss/sms/client.rb +2 -0
  153. data/lib/coss/sms/received/client.rb +2 -0
  154. data/lib/coss/sms/suppressions/client.rb +4 -0
  155. data/lib/coss/types/billing.rb +2 -0
  156. data/lib/coss/types/billing_credit_limit.rb +14 -0
  157. data/lib/coss/types/billing_features.rb +1 -0
  158. data/lib/coss/types/billing_holds_item_reason.rb +1 -0
  159. data/lib/coss/types/billing_payment_method.rb +1 -0
  160. data/lib/coss/types/billing_usage_item_meter.rb +7 -1
  161. data/lib/coss/types/billing_webhook_event_four_data_reason.rb +1 -0
  162. data/lib/coss/types/billing_webhook_event_three_data_meter.rb +7 -1
  163. data/lib/coss/types/broadcast_error.rb +2 -0
  164. data/lib/coss/types/broadcast_stats.rb +1 -0
  165. data/lib/coss/types/broadcast_tracking.rb +1 -0
  166. data/lib/coss/types/broadcast_webhook_event_data.rb +1 -0
  167. data/lib/coss/types/broadcast_webhook_event_data_error.rb +1 -0
  168. data/lib/coss/types/contact_webhook_event_data.rb +1 -0
  169. data/lib/coss/types/create_calendar_connection_request.rb +16 -0
  170. data/lib/coss/types/create_calendar_connection_request_caldav.rb +13 -0
  171. data/lib/coss/types/create_calendar_connection_request_simulated.rb +7 -0
  172. data/lib/coss/types/create_calendar_delegation_request.rb +15 -0
  173. data/lib/coss/types/create_calendar_delegation_request_google.rb +13 -0
  174. data/lib/coss/types/create_calendar_delegation_request_microsoft.rb +19 -0
  175. data/lib/coss/types/create_series_request.rb +31 -0
  176. data/lib/coss/types/create_series_request_answers_value.rb +13 -0
  177. data/lib/coss/types/create_series_request_attributes_value.rb +13 -0
  178. data/lib/coss/types/create_series_request_location.rb +24 -0
  179. data/lib/coss/types/create_series_request_location_google_meet.rb +7 -0
  180. data/lib/coss/types/create_series_request_location_in_person.rb +9 -0
  181. data/lib/coss/types/create_series_request_location_link.rb +9 -0
  182. data/lib/coss/types/create_series_request_location_microsoft_teams.rb +7 -0
  183. data/lib/coss/types/create_series_request_location_phone.rb +9 -0
  184. data/lib/coss/types/create_series_request_location_zoom.rb +9 -0
  185. data/lib/coss/types/create_series_request_on_conflict.rb +12 -0
  186. data/lib/coss/types/create_series_request_recurrence.rb +14 -0
  187. data/lib/coss/types/create_series_request_recurrence_frequency.rb +12 -0
  188. data/lib/coss/types/credit_meter.rb +7 -1
  189. data/lib/coss/types/credit_meters_item.rb +7 -1
  190. data/lib/coss/types/credit_source.rb +1 -0
  191. data/lib/coss/types/deleted_scheduling_calendar_connection.rb +13 -0
  192. data/lib/coss/types/deleted_scheduling_calendar_connection_object.rb +11 -0
  193. data/lib/coss/types/deleted_scheduling_calendar_delegation.rb +13 -0
  194. data/lib/coss/types/deleted_scheduling_calendar_delegation_object.rb +11 -0
  195. data/lib/coss/types/deleted_scheduling_host.rb +13 -0
  196. data/lib/coss/types/deleted_scheduling_host_object.rb +11 -0
  197. data/lib/coss/types/deleted_scheduling_schedule.rb +13 -0
  198. data/lib/coss/types/deleted_scheduling_schedule_object.rb +11 -0
  199. data/lib/coss/types/dmarc_report_record_auth_results.rb +1 -0
  200. data/lib/coss/types/dmarc_report_reporter.rb +1 -0
  201. data/lib/coss/types/dmarc_report_summary_reporter.rb +1 -0
  202. data/lib/coss/types/domain_dmarc_report_summary.rb +1 -0
  203. data/lib/coss/types/email_event_data.rb +1 -0
  204. data/lib/coss/types/email_recipient.rb +1 -0
  205. data/lib/coss/types/email_webhook_event_data.rb +2 -0
  206. data/lib/coss/types/environment_organization.rb +3 -0
  207. data/lib/coss/types/environment_project.rb +1 -0
  208. data/lib/coss/types/form_contacts.rb +1 -0
  209. data/lib/coss/types/form_files.rb +1 -0
  210. data/lib/coss/types/form_hosted.rb +1 -0
  211. data/lib/coss/types/form_notifications.rb +1 -0
  212. data/lib/coss/types/form_spam.rb +1 -0
  213. data/lib/coss/types/form_submission_webhook_event_data.rb +1 -0
  214. data/lib/coss/types/form_submitter.rb +1 -0
  215. data/lib/coss/types/invoice_kind.rb +1 -0
  216. data/lib/coss/types/invoice_line_meter.rb +7 -1
  217. data/lib/coss/types/invoice_line_period.rb +1 -0
  218. data/lib/coss/types/invoice_period.rb +1 -0
  219. data/lib/coss/types/invoice_summary_kind.rb +1 -0
  220. data/lib/coss/types/invoice_summary_period.rb +1 -0
  221. data/lib/coss/types/log_drain.rb +4 -0
  222. data/lib/coss/types/log_drain_auth_header.rb +13 -0
  223. data/lib/coss/types/log_drain_format.rb +14 -0
  224. data/lib/coss/types/log_drain_source.rb +1 -0
  225. data/lib/coss/types/log_drain_with_secret.rb +4 -0
  226. data/lib/coss/types/log_source.rb +1 -0
  227. data/lib/coss/types/risk_assessment_degraded_item.rb +1 -0
  228. data/lib/coss/types/risk_assessment_signals.rb +1 -0
  229. data/lib/coss/types/risk_assessment_user.rb +1 -0
  230. data/lib/coss/types/risk_captcha_signals.rb +1 -0
  231. data/lib/coss/types/risk_email_signals.rb +1 -0
  232. data/lib/coss/types/risk_ip_signals.rb +1 -0
  233. data/lib/coss/types/risk_rule_condition_value.rb +1 -0
  234. data/lib/coss/types/risk_webhook_event_data.rb +1 -0
  235. data/lib/coss/types/scheduling_attendee_erasure.rb +13 -0
  236. data/lib/coss/types/scheduling_attendee_erasure_by_email.rb +11 -0
  237. data/lib/coss/types/scheduling_attendee_erasure_by_email_object.rb +11 -0
  238. data/lib/coss/types/scheduling_attendee_erasure_object.rb +11 -0
  239. data/lib/coss/types/scheduling_attendee_input.rb +20 -0
  240. data/lib/coss/types/scheduling_availability_search_result.rb +13 -0
  241. data/lib/coss/types/scheduling_availability_search_result_data_item.rb +13 -0
  242. data/lib/coss/types/scheduling_availability_search_result_data_item_slots_item.rb +11 -0
  243. data/lib/coss/types/scheduling_availability_search_result_object.rb +11 -0
  244. data/lib/coss/types/scheduling_booking.rb +55 -0
  245. data/lib/coss/types/scheduling_booking_attendees_item.rb +25 -0
  246. data/lib/coss/types/scheduling_booking_attendees_item_answers_value.rb +13 -0
  247. data/lib/coss/types/scheduling_booking_attendees_item_role.rb +12 -0
  248. data/lib/coss/types/scheduling_booking_cancelled_by.rb +16 -0
  249. data/lib/coss/types/scheduling_booking_event.rb +21 -0
  250. data/lib/coss/types/scheduling_booking_event_actor.rb +12 -0
  251. data/lib/coss/types/scheduling_booking_event_actor_kind.rb +16 -0
  252. data/lib/coss/types/scheduling_booking_event_list.rb +13 -0
  253. data/lib/coss/types/scheduling_booking_event_list_object.rb +11 -0
  254. data/lib/coss/types/scheduling_booking_event_object.rb +11 -0
  255. data/lib/coss/types/scheduling_booking_list.rb +13 -0
  256. data/lib/coss/types/scheduling_booking_list_object.rb +11 -0
  257. data/lib/coss/types/scheduling_booking_notification.rb +25 -0
  258. data/lib/coss/types/scheduling_booking_notification_channel.rb +13 -0
  259. data/lib/coss/types/scheduling_booking_notification_list.rb +13 -0
  260. data/lib/coss/types/scheduling_booking_notification_list_object.rb +11 -0
  261. data/lib/coss/types/scheduling_booking_notification_object.rb +11 -0
  262. data/lib/coss/types/scheduling_booking_notification_recipient.rb +14 -0
  263. data/lib/coss/types/scheduling_booking_object.rb +11 -0
  264. data/lib/coss/types/scheduling_booking_status.rb +15 -0
  265. data/lib/coss/types/scheduling_booking_webhook_data.rb +30 -0
  266. data/lib/coss/types/scheduling_booking_webhook_data_reminder.rb +18 -0
  267. data/lib/coss/types/scheduling_booking_webhook_data_reminder_anchor.rb +18 -0
  268. data/lib/coss/types/scheduling_booking_webhook_data_status.rb +15 -0
  269. data/lib/coss/types/scheduling_booking_webhook_event.rb +19 -0
  270. data/lib/coss/types/scheduling_booking_webhook_event_object.rb +11 -0
  271. data/lib/coss/types/scheduling_booking_webhook_event_type.rb +23 -0
  272. data/lib/coss/types/scheduling_booking_window.rb +15 -0
  273. data/lib/coss/types/scheduling_booking_window_days.rb +11 -0
  274. data/lib/coss/types/scheduling_booking_window_days_kind.rb +11 -0
  275. data/lib/coss/types/scheduling_booking_window_from.rb +13 -0
  276. data/lib/coss/types/scheduling_booking_window_from_kind.rb +11 -0
  277. data/lib/coss/types/scheduling_calendar_authorization.rb +11 -0
  278. data/lib/coss/types/scheduling_calendar_authorization_object.rb +11 -0
  279. data/lib/coss/types/scheduling_calendar_connection.rb +25 -0
  280. data/lib/coss/types/scheduling_calendar_connection_calendars_item.rb +17 -0
  281. data/lib/coss/types/scheduling_calendar_connection_list.rb +13 -0
  282. data/lib/coss/types/scheduling_calendar_connection_list_object.rb +11 -0
  283. data/lib/coss/types/scheduling_calendar_connection_object.rb +11 -0
  284. data/lib/coss/types/scheduling_calendar_connection_provider.rb +15 -0
  285. data/lib/coss/types/scheduling_calendar_connection_status.rb +12 -0
  286. data/lib/coss/types/scheduling_calendar_delegation.rb +41 -0
  287. data/lib/coss/types/scheduling_calendar_delegation_list.rb +13 -0
  288. data/lib/coss/types/scheduling_calendar_delegation_list_object.rb +11 -0
  289. data/lib/coss/types/scheduling_calendar_delegation_object.rb +11 -0
  290. data/lib/coss/types/scheduling_calendar_delegation_provider.rb +12 -0
  291. data/lib/coss/types/scheduling_calendar_delegation_status.rb +14 -0
  292. data/lib/coss/types/scheduling_calendar_delegation_webhook_event.rb +19 -0
  293. data/lib/coss/types/scheduling_calendar_delegation_webhook_event_data.rb +17 -0
  294. data/lib/coss/types/scheduling_calendar_delegation_webhook_event_object.rb +11 -0
  295. data/lib/coss/types/scheduling_calendar_delegation_webhook_event_type.rb +12 -0
  296. data/lib/coss/types/scheduling_calendar_webhook_event.rb +19 -0
  297. data/lib/coss/types/scheduling_calendar_webhook_event_data.rb +16 -0
  298. data/lib/coss/types/scheduling_calendar_webhook_event_object.rb +11 -0
  299. data/lib/coss/types/scheduling_calendar_webhook_event_type.rb +13 -0
  300. data/lib/coss/types/scheduling_cancelled_series.rb +13 -0
  301. data/lib/coss/types/scheduling_cancelled_series_object.rb +11 -0
  302. data/lib/coss/types/scheduling_event_type.rb +75 -0
  303. data/lib/coss/types/scheduling_event_type_host_calendar_details.rb +12 -0
  304. data/lib/coss/types/scheduling_event_type_host_filter_value.rb +13 -0
  305. data/lib/coss/types/scheduling_event_type_host_input.rb +15 -0
  306. data/lib/coss/types/scheduling_event_type_host_input_role.rb +12 -0
  307. data/lib/coss/types/scheduling_event_type_hosts_item.rb +15 -0
  308. data/lib/coss/types/scheduling_event_type_hosts_item_role.rb +12 -0
  309. data/lib/coss/types/scheduling_event_type_kind.rb +14 -0
  310. data/lib/coss/types/scheduling_event_type_list.rb +13 -0
  311. data/lib/coss/types/scheduling_event_type_list_object.rb +11 -0
  312. data/lib/coss/types/scheduling_event_type_notifications_value.rb +13 -0
  313. data/lib/coss/types/scheduling_event_type_object.rb +11 -0
  314. data/lib/coss/types/scheduling_event_type_status.rb +12 -0
  315. data/lib/coss/types/scheduling_guest_input.rb +12 -0
  316. data/lib/coss/types/scheduling_host.rb +37 -0
  317. data/lib/coss/types/scheduling_host_attributes_value.rb +13 -0
  318. data/lib/coss/types/scheduling_host_list.rb +13 -0
  319. data/lib/coss/types/scheduling_host_list_object.rb +11 -0
  320. data/lib/coss/types/scheduling_host_location.rb +18 -0
  321. data/lib/coss/types/scheduling_host_location_in_person.rb +9 -0
  322. data/lib/coss/types/scheduling_host_location_link.rb +9 -0
  323. data/lib/coss/types/scheduling_host_location_phone.rb +9 -0
  324. data/lib/coss/types/scheduling_host_object.rb +11 -0
  325. data/lib/coss/types/scheduling_host_status.rb +12 -0
  326. data/lib/coss/types/scheduling_limit.rb +14 -0
  327. data/lib/coss/types/scheduling_limit_period.rb +12 -0
  328. data/lib/coss/types/scheduling_limit_scope.rb +12 -0
  329. data/lib/coss/types/scheduling_location.rb +26 -0
  330. data/lib/coss/types/scheduling_location_google_meet.rb +7 -0
  331. data/lib/coss/types/scheduling_location_in_person.rb +9 -0
  332. data/lib/coss/types/scheduling_location_link.rb +9 -0
  333. data/lib/coss/types/scheduling_location_microsoft_teams.rb +7 -0
  334. data/lib/coss/types/scheduling_location_phone.rb +9 -0
  335. data/lib/coss/types/scheduling_location_zoom.rb +9 -0
  336. data/lib/coss/types/scheduling_question.rb +19 -0
  337. data/lib/coss/types/scheduling_question_type.rb +18 -0
  338. data/lib/coss/types/scheduling_reminder.rb +35 -0
  339. data/lib/coss/types/scheduling_reminder_anchor.rb +18 -0
  340. data/lib/coss/types/scheduling_reminder_button.rb +12 -0
  341. data/lib/coss/types/scheduling_reminder_input.rb +35 -0
  342. data/lib/coss/types/scheduling_reminder_input_anchor.rb +18 -0
  343. data/lib/coss/types/scheduling_reminder_input_button.rb +12 -0
  344. data/lib/coss/types/scheduling_reminder_input_only_if.rb +12 -0
  345. data/lib/coss/types/scheduling_reminder_input_only_if_location_types_item.rb +16 -0
  346. data/lib/coss/types/scheduling_reminder_input_send_item.rb +15 -0
  347. data/lib/coss/types/scheduling_reminder_only_if.rb +12 -0
  348. data/lib/coss/types/scheduling_reminder_send_item.rb +15 -0
  349. data/lib/coss/types/scheduling_schedule.rb +27 -0
  350. data/lib/coss/types/scheduling_schedule_list.rb +13 -0
  351. data/lib/coss/types/scheduling_schedule_list_object.rb +11 -0
  352. data/lib/coss/types/scheduling_schedule_object.rb +11 -0
  353. data/lib/coss/types/scheduling_schedule_override.rb +11 -0
  354. data/lib/coss/types/scheduling_schedule_override_ranges_item.rb +11 -0
  355. data/lib/coss/types/scheduling_schedule_overrides_item.rb +11 -0
  356. data/lib/coss/types/scheduling_schedule_overrides_item_ranges_item.rb +11 -0
  357. data/lib/coss/types/scheduling_schedule_rules_item.rb +13 -0
  358. data/lib/coss/types/scheduling_series.rb +15 -0
  359. data/lib/coss/types/scheduling_series_conflicts_item.rb +11 -0
  360. data/lib/coss/types/scheduling_series_object.rb +11 -0
  361. data/lib/coss/types/scheduling_series_preview.rb +13 -0
  362. data/lib/coss/types/scheduling_series_preview_data_item.rb +15 -0
  363. data/lib/coss/types/scheduling_series_preview_object.rb +11 -0
  364. data/lib/coss/types/scheduling_session.rb +17 -0
  365. data/lib/coss/types/scheduling_session_object.rb +11 -0
  366. data/lib/coss/types/scheduling_settings.rb +29 -0
  367. data/lib/coss/types/scheduling_settings_calendar_failure_mode.rb +12 -0
  368. data/lib/coss/types/scheduling_settings_logo.rb +16 -0
  369. data/lib/coss/types/scheduling_settings_logo_content_type.rb +12 -0
  370. data/lib/coss/types/scheduling_settings_notifications_value.rb +13 -0
  371. data/lib/coss/types/scheduling_settings_object.rb +11 -0
  372. data/lib/coss/types/scheduling_slot.rb +15 -0
  373. data/lib/coss/types/scheduling_slot_explanation.rb +19 -0
  374. data/lib/coss/types/scheduling_slot_explanation_hosts_item.rb +17 -0
  375. data/lib/coss/types/scheduling_slot_explanation_hosts_item_role.rb +12 -0
  376. data/lib/coss/types/scheduling_slot_explanation_object.rb +11 -0
  377. data/lib/coss/types/scheduling_slot_list.rb +13 -0
  378. data/lib/coss/types/scheduling_slot_list_object.rb +11 -0
  379. data/lib/coss/types/scheduling_weekly_rule.rb +13 -0
  380. data/lib/coss/types/send_email_request_bcc.rb +1 -0
  381. data/lib/coss/types/send_email_request_cc.rb +1 -0
  382. data/lib/coss/types/send_email_request_reply_to.rb +1 -0
  383. data/lib/coss/types/send_email_request_to.rb +1 -0
  384. data/lib/coss/types/sign_event_details.rb +1 -0
  385. data/lib/coss/types/sign_field.rb +1 -0
  386. data/lib/coss/types/sign_request_webhook_event_data.rb +1 -0
  387. data/lib/coss/types/sign_signer.rb +1 -0
  388. data/lib/coss/types/sms_event_data.rb +1 -0
  389. data/lib/coss/types/sms_suppression.rb +1 -0
  390. data/lib/coss/types/sms_suppression_check_suppression.rb +1 -0
  391. data/lib/coss/types/sms_webhook_event_data.rb +2 -0
  392. data/lib/coss/types/subaccount_quotas.rb +1 -0
  393. data/lib/coss/types/subaccount_reputation.rb +1 -0
  394. data/lib/coss/types/subaccount_webhook_event_data.rb +1 -0
  395. data/lib/coss/types/template_variable_default.rb +1 -0
  396. data/lib/coss/types/upsert_schedule_request.rb +17 -0
  397. data/lib/coss/types/usage_meter.rb +7 -1
  398. data/lib/coss/types/verification_webhook_event_data.rb +1 -0
  399. data/lib/coss/types/verification_webhook_event_data_failure.rb +1 -0
  400. data/lib/coss/types/verify_settings.rb +26 -0
  401. data/lib/coss/types/verify_settings_object.rb +11 -0
  402. data/lib/coss/types/webhook_test_event_event.rb +6 -0
  403. data/lib/coss/verify/client.rb +7 -0
  404. data/lib/coss/verify/settings/client.rb +93 -0
  405. data/lib/coss/verify/settings/types/update_verify_settings_request.rb +25 -0
  406. data/lib/coss/version.rb +1 -1
  407. data/lib/coss/webhook_endpoints/types/create_webhook_endpoint_request_event_types_item.rb +18 -0
  408. data/lib/coss/webhook_endpoints/types/update_webhook_endpoint_request_event_types_item.rb +18 -0
  409. data/lib/coss/webhook_events/types/create_test_webhook_event_request_type.rb +18 -0
  410. data/lib/coss/webhook_listeners/types/create_webhook_listener_request_event_types_item.rb +18 -0
  411. data/lib/coss.rb +282 -0
  412. data/reference.md +5626 -224
  413. metadata +283 -1
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Coss
4
+ module Scheduling
5
+ module Settings
6
+ module Types
7
+ class UpdateSchedulingSettingsRequestNotificationsValue < Internal::Types::Model
8
+ field :email_attendee, -> { Internal::Types::Boolean }, optional: true, nullable: false
9
+
10
+ field :email_host, -> { Internal::Types::Boolean }, optional: true, nullable: false
11
+
12
+ field :sms_attendee, -> { Internal::Types::Boolean }, optional: true, nullable: false
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,123 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Coss
4
+ module Scheduling
5
+ module Slots
6
+ class Client
7
+ # @param client [Coss::Internal::Http::RawClient]
8
+ #
9
+ # @return [void]
10
+ def initialize(client:)
11
+ @client = client
12
+ end
13
+
14
+ # Starts an attendee can book between `start` and `end` (at most 62 days), as UTC instants to show in their own
15
+ # time zone. A host whose calendar can't be read isn't offered.
16
+ #
17
+ # @param request_options [Hash]
18
+ # @param params [Hash]
19
+ # @option request_options [String] :base_url
20
+ # @option request_options [Hash{String => Object}] :additional_headers
21
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
22
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
23
+ # @option request_options [Integer] :timeout_in_seconds
24
+ # @option params [String] :event_type
25
+ # @option params [String] :start
26
+ # @option params [String] :end_
27
+ # @option params [String, nil] :host
28
+ # @option params [Integer, nil] :duration_minutes
29
+ # @option params [String, nil] :attributes
30
+ #
31
+ # @example
32
+ # client.scheduling.slots.list(
33
+ # event_type: "evtype_01kd2m9a0b1c2d3e4f5g6h7j8m",
34
+ # start: "2027-01-04T15:00:00.000Z",
35
+ # end_: "2027-01-04T15:00:00.000Z"
36
+ # )
37
+ #
38
+ # @return [Coss::Types::SchedulingSlotList]
39
+ def list(request_options: {}, **params)
40
+ params = Coss::Internal::Types::Utils.normalize_keys(params)
41
+ query_params = {}
42
+ query_params["start"] = params[:start] if params.key?(:start)
43
+ query_params["end"] = params[:end_] if params.key?(:end_)
44
+ query_params["host"] = params[:host] if params.key?(:host)
45
+ query_params["duration_minutes"] = params[:duration_minutes] if params.key?(:duration_minutes)
46
+ query_params["attributes"] = params[:attributes] if params.key?(:attributes)
47
+
48
+ request = Coss::Internal::JSON::Request.new(
49
+ base_url: request_options[:base_url],
50
+ method: "GET",
51
+ path: "v1/scheduling/event_types/#{URI.encode_uri_component(params[:event_type].to_s)}/slots",
52
+ query: query_params,
53
+ request_options: request_options
54
+ )
55
+ begin
56
+ response = @client.send(request)
57
+ rescue Net::HTTPRequestTimeout
58
+ raise Coss::Errors::TimeoutError
59
+ end
60
+ code = response.code.to_i
61
+ if code.between?(200, 299)
62
+ (response.body.to_s.empty? ? nil : Coss::Types::SchedulingSlotList.load(response.body))
63
+ else
64
+ error_class = Coss::Errors::ResponseError.subclass_for_code(code)
65
+ raise error_class.new(response.body, code: code)
66
+ end
67
+ end
68
+
69
+ # Why one start can or can't be booked right now, host by host, decided the same way a booking is. For support
70
+ # and debugging: it says when a host is busy, so don't show it to attendees.
71
+ #
72
+ # @param request_options [Hash]
73
+ # @param params [Hash]
74
+ # @option request_options [String] :base_url
75
+ # @option request_options [Hash{String => Object}] :additional_headers
76
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
77
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
78
+ # @option request_options [Integer] :timeout_in_seconds
79
+ # @option params [String] :event_type
80
+ # @option params [String] :start
81
+ # @option params [String, nil] :host
82
+ # @option params [Integer, nil] :duration_minutes
83
+ # @option params [String, nil] :attributes
84
+ #
85
+ # @example
86
+ # client.scheduling.slots.explain(
87
+ # event_type: "evtype_01kd2m9a0b1c2d3e4f5g6h7j8m",
88
+ # start: "2027-01-04T15:00:00.000Z"
89
+ # )
90
+ #
91
+ # @return [Coss::Types::SchedulingSlotExplanation]
92
+ def explain(request_options: {}, **params)
93
+ params = Coss::Internal::Types::Utils.normalize_keys(params)
94
+ query_params = {}
95
+ query_params["start"] = params[:start] if params.key?(:start)
96
+ query_params["host"] = params[:host] if params.key?(:host)
97
+ query_params["duration_minutes"] = params[:duration_minutes] if params.key?(:duration_minutes)
98
+ query_params["attributes"] = params[:attributes] if params.key?(:attributes)
99
+
100
+ request = Coss::Internal::JSON::Request.new(
101
+ base_url: request_options[:base_url],
102
+ method: "GET",
103
+ path: "v1/scheduling/event_types/#{URI.encode_uri_component(params[:event_type].to_s)}/slots/explain",
104
+ query: query_params,
105
+ request_options: request_options
106
+ )
107
+ begin
108
+ response = @client.send(request)
109
+ rescue Net::HTTPRequestTimeout
110
+ raise Coss::Errors::TimeoutError
111
+ end
112
+ code = response.code.to_i
113
+ if code.between?(200, 299)
114
+ (response.body.to_s.empty? ? nil : Coss::Types::SchedulingSlotExplanation.load(response.body))
115
+ else
116
+ error_class = Coss::Errors::ResponseError.subclass_for_code(code)
117
+ raise error_class.new(response.body, code: code)
118
+ end
119
+ end
120
+ end
121
+ end
122
+ end
123
+ end
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Coss
4
+ module Scheduling
5
+ module Slots
6
+ module Types
7
+ class ExplainSlotsRequest < Internal::Types::Model
8
+ field :event_type, -> { String }, optional: false, nullable: false
9
+
10
+ field :start, -> { String }, optional: false, nullable: false
11
+
12
+ field :host, -> { String }, optional: true, nullable: false
13
+
14
+ field :duration_minutes, -> { Integer }, optional: true, nullable: false
15
+
16
+ field :attributes, -> { String }, optional: true, nullable: false
17
+ end
18
+ end
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Coss
4
+ module Scheduling
5
+ module Slots
6
+ module Types
7
+ class ListSlotsRequest < Internal::Types::Model
8
+ field :event_type, -> { String }, optional: false, nullable: false
9
+
10
+ field :start, -> { String }, optional: false, nullable: false
11
+
12
+ field :end_, -> { String }, optional: false, nullable: false, api_name: "end"
13
+
14
+ field :host, -> { String }, optional: true, nullable: false
15
+
16
+ field :duration_minutes, -> { Integer }, optional: true, nullable: false
17
+
18
+ field :attributes, -> { String }, optional: true, nullable: false
19
+ end
20
+ end
21
+ end
22
+ end
23
+ end
@@ -100,6 +100,8 @@ module Coss
100
100
  end
101
101
  end
102
102
 
103
+ # An uploaded document's details: its hash, page sizes and text anchors. Its bytes are never returned here.
104
+ #
103
105
  # @param request_options [Hash]
104
106
  # @param params [Hash]
105
107
  # @option request_options [String] :base_url
@@ -133,6 +133,8 @@ module Coss
133
133
  end
134
134
  end
135
135
 
136
+ # A signature request with its documents, signers and fields, and `signed_document` once it's sealed.
137
+ #
136
138
  # @param request_options [Hash]
137
139
  # @param params [Hash]
138
140
  # @option request_options [String] :base_url
@@ -136,6 +136,8 @@ module Coss
136
136
  end
137
137
  end
138
138
 
139
+ # A template with its documents, roles and fields. `ready` says whether requests can be made from it.
140
+ #
139
141
  # @param request_options [Hash]
140
142
  # @param params [Hash]
141
143
  # @option request_options [String] :base_url
@@ -125,6 +125,8 @@ module Coss
125
125
  end
126
126
  end
127
127
 
128
+ # One message sent from the API key's environment, with its current status.
129
+ #
128
130
  # @param request_options [Hash]
129
131
  # @param params [Hash]
130
132
  # @option request_options [String] :base_url
@@ -62,6 +62,8 @@ module Coss
62
62
  end
63
63
  end
64
64
 
65
+ # One message received on a number of the organization and routed to the API key's environment.
66
+ #
65
67
  # @param request_options [Hash]
66
68
  # @param params [Hash]
67
69
  # @option request_options [String] :base_url
@@ -97,6 +97,8 @@ module Coss
97
97
  end
98
98
  end
99
99
 
100
+ # Whether a phone number is on the SMS suppression list of the API key's environment, with its entry if it is.
101
+ #
100
102
  # @param request_options [Hash]
101
103
  # @param params [Hash]
102
104
  # @option request_options [String] :base_url
@@ -136,6 +138,8 @@ module Coss
136
138
  end
137
139
  end
138
140
 
141
+ # One entry of the SMS suppression list of the API key's environment.
142
+ #
139
143
  # @param request_options [Hash]
140
144
  # @param params [Hash]
141
145
  # @option request_options [String] :base_url
@@ -29,6 +29,8 @@ module Coss
29
29
 
30
30
  field :spend_limit, -> { Integer }, optional: false, nullable: true
31
31
 
32
+ field :credit_limit, -> { Coss::Types::BillingCreditLimit }, optional: false, nullable: true
33
+
32
34
  field :payment_method, -> { Coss::Types::BillingPaymentMethod }, optional: false, nullable: true
33
35
 
34
36
  field :add_ons, -> { Internal::Types::Array[Coss::Types::BillingAddOnsItem] }, optional: false, nullable: false
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Coss
4
+ module Types
5
+ # Where the organization stands against its credit limit; `null`: it has none.
6
+ class BillingCreditLimit < Internal::Types::Model
7
+ field :limit, -> { Integer }, optional: false, nullable: false
8
+
9
+ field :used, -> { Integer }, optional: false, nullable: false
10
+
11
+ field :charge_threshold, -> { Integer }, optional: false, nullable: true
12
+ end
13
+ end
14
+ end
@@ -2,6 +2,7 @@
2
2
 
3
3
  module Coss
4
4
  module Types
5
+ # Which features the plan includes.
5
6
  class BillingFeatures < Internal::Types::Model
6
7
  field :tracking_domains, -> { Internal::Types::Boolean }, optional: false, nullable: false
7
8
 
@@ -7,6 +7,7 @@ module Coss
7
7
 
8
8
  DELINQUENT = "delinquent"
9
9
  SPEND_LIMIT = "spend_limit"
10
+ CREDIT_LIMIT = "credit_limit"
10
11
  ADMIN = "admin"
11
12
  end
12
13
  end
@@ -2,6 +2,7 @@
2
2
 
3
3
  module Coss
4
4
  module Types
5
+ # The payment method on file. `null`: none.
5
6
  class BillingPaymentMethod < Internal::Types::Model
6
7
  field :type, -> { String }, optional: false, nullable: false
7
8
 
@@ -7,7 +7,9 @@ module Coss
7
7
 
8
8
  EMAIL_RECIPIENTS = "email.recipients"
9
9
  EMAIL_DEDICATED_IP = "email.dedicated_ip"
10
+ EMAIL_ATTACHMENT_DATA = "email.attachment_data"
10
11
  EMAIL_RECEIVED = "email.received"
12
+ EMAIL_RECEIVED_DATA = "email.received_data"
11
13
  EMAIL_INBOXES = "email.inboxes"
12
14
  SMS_SEGMENTS = "sms.segments"
13
15
  SMS_RECEIVED_SEGMENTS = "sms.received_segments"
@@ -15,11 +17,15 @@ module Coss
15
17
  SMS_REGISTRATIONS = "sms.registrations"
16
18
  SIGN_COMPLETED_REQUESTS = "sign.completed_requests"
17
19
  RISK_PHONE_CHECKS = "risk.phone_checks"
20
+ RISK_ASSESSMENTS = "risk.assessments"
21
+ RISK_CONTENT_CHECKS = "risk.content_checks"
18
22
  VERIFY_VERIFICATIONS = "verify.verifications"
19
23
  VERIFY_SMS = "verify.sms"
20
24
  FORMS_SUBMISSIONS = "forms.submissions"
21
- VIDEO_PARTICIPANT_MINUTES = "video.participant_minutes"
25
+ FORMS_FILE_UPLOADS = "forms.file_uploads"
22
26
  SCHEDULING_BOOKINGS = "scheduling.bookings"
27
+ SCHEDULING_HOSTS = "scheduling.hosts"
28
+ HOOKS_MESSAGES = "hooks.messages"
23
29
  end
24
30
  end
25
31
  end
@@ -7,6 +7,7 @@ module Coss
7
7
 
8
8
  DELINQUENT = "delinquent"
9
9
  SPEND_LIMIT = "spend_limit"
10
+ CREDIT_LIMIT = "credit_limit"
10
11
  ADMIN = "admin"
11
12
  end
12
13
  end
@@ -7,7 +7,9 @@ module Coss
7
7
 
8
8
  EMAIL_RECIPIENTS = "email.recipients"
9
9
  EMAIL_DEDICATED_IP = "email.dedicated_ip"
10
+ EMAIL_ATTACHMENT_DATA = "email.attachment_data"
10
11
  EMAIL_RECEIVED = "email.received"
12
+ EMAIL_RECEIVED_DATA = "email.received_data"
11
13
  EMAIL_INBOXES = "email.inboxes"
12
14
  SMS_SEGMENTS = "sms.segments"
13
15
  SMS_RECEIVED_SEGMENTS = "sms.received_segments"
@@ -15,11 +17,15 @@ module Coss
15
17
  SMS_REGISTRATIONS = "sms.registrations"
16
18
  SIGN_COMPLETED_REQUESTS = "sign.completed_requests"
17
19
  RISK_PHONE_CHECKS = "risk.phone_checks"
20
+ RISK_ASSESSMENTS = "risk.assessments"
21
+ RISK_CONTENT_CHECKS = "risk.content_checks"
18
22
  VERIFY_VERIFICATIONS = "verify.verifications"
19
23
  VERIFY_SMS = "verify.sms"
20
24
  FORMS_SUBMISSIONS = "forms.submissions"
21
- VIDEO_PARTICIPANT_MINUTES = "video.participant_minutes"
25
+ FORMS_FILE_UPLOADS = "forms.file_uploads"
22
26
  SCHEDULING_BOOKINGS = "scheduling.bookings"
27
+ SCHEDULING_HOSTS = "scheduling.hosts"
28
+ HOOKS_MESSAGES = "hooks.messages"
23
29
  end
24
30
  end
25
31
  end
@@ -2,6 +2,8 @@
2
2
 
3
3
  module Coss
4
4
  module Types
5
+ # Why it `failed`, such as `target_unavailable` when its audience, segment or topic was deleted while sending.
6
+ # `null`: it didn't.
5
7
  class BroadcastError < Internal::Types::Model
6
8
  field :code, -> { String }, optional: false, nullable: false
7
9
 
@@ -2,6 +2,7 @@
2
2
 
3
3
  module Coss
4
4
  module Types
5
+ # How its emails fared so far.
5
6
  class BroadcastStats < Internal::Types::Model
6
7
  field :recipients, -> { Integer }, optional: false, nullable: false
7
8
 
@@ -2,6 +2,7 @@
2
2
 
3
3
  module Coss
4
4
  module Types
5
+ # Which opens and clicks are tracked.
5
6
  class BroadcastTracking < Internal::Types::Model
6
7
  field :opens, -> { Internal::Types::Boolean }, optional: false, nullable: false
7
8
 
@@ -2,6 +2,7 @@
2
2
 
3
3
  module Coss
4
4
  module Types
5
+ # The broadcast and how it fared.
5
6
  class BroadcastWebhookEventData < Internal::Types::Model
6
7
  field :broadcast, -> { Coss::Types::BroadcastWebhookEventDataBroadcast }, optional: false, nullable: false
7
8
 
@@ -2,6 +2,7 @@
2
2
 
3
3
  module Coss
4
4
  module Types
5
+ # Why it failed. `null`: it didn't.
5
6
  class BroadcastWebhookEventDataError < Internal::Types::Model
6
7
  field :code, -> { String }, optional: false, nullable: false
7
8
 
@@ -2,6 +2,7 @@
2
2
 
3
3
  module Coss
4
4
  module Types
5
+ # The contact, without its properties.
5
6
  class ContactWebhookEventData < Internal::Types::Model
6
7
  field :contact, -> { Coss::Types::ContactWebhookEventDataContact }, optional: false, nullable: false
7
8
 
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Coss
4
+ module Types
5
+ # `caldav` connects a server with an app-specific password; `simulated` is a sandbox calendar for tests.
6
+ class CreateCalendarConnectionRequest < Internal::Types::Model
7
+ extend Coss::Internal::Types::Union
8
+
9
+ discriminant :provider
10
+
11
+ member -> { Coss::Types::CreateCalendarConnectionRequestCaldav }, key: "CALDAV"
12
+
13
+ member -> { Coss::Types::CreateCalendarConnectionRequestSimulated }, key: "SIMULATED"
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Coss
4
+ module Types
5
+ class CreateCalendarConnectionRequestCaldav < Internal::Types::Model
6
+ field :url, -> { String }, optional: false, nullable: false
7
+
8
+ field :username, -> { String }, optional: false, nullable: false
9
+
10
+ field :password, -> { String }, optional: false, nullable: false
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Coss
4
+ module Types
5
+ class CreateCalendarConnectionRequestSimulated < Internal::Types::Model; end
6
+ end
7
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Coss
4
+ module Types
5
+ class CreateCalendarDelegationRequest < Internal::Types::Model
6
+ extend Coss::Internal::Types::Union
7
+
8
+ discriminant :provider
9
+
10
+ member -> { Coss::Types::CreateCalendarDelegationRequestGoogle }, key: "GOOGLE"
11
+
12
+ member -> { Coss::Types::CreateCalendarDelegationRequestMicrosoft }, key: "MICROSOFT"
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Coss
4
+ module Types
5
+ class CreateCalendarDelegationRequestGoogle < Internal::Types::Model
6
+ field :domain, -> { String }, optional: false, nullable: false
7
+
8
+ field :match_host_email, -> { Internal::Types::Boolean }, optional: true, nullable: false
9
+
10
+ field :service_account_key, -> { String }, optional: false, nullable: false
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Coss
4
+ module Types
5
+ class CreateCalendarDelegationRequestMicrosoft < Internal::Types::Model
6
+ field :domain, -> { String }, optional: false, nullable: false
7
+
8
+ field :match_host_email, -> { Internal::Types::Boolean }, optional: true, nullable: false
9
+
10
+ field :tenant_id, -> { String }, optional: false, nullable: false
11
+
12
+ field :client_id, -> { String }, optional: false, nullable: false
13
+
14
+ field :client_secret, -> { String }, optional: false, nullable: false
15
+
16
+ field :secret_expires_at, -> { String }, optional: true, nullable: false
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,31 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Coss
4
+ module Types
5
+ class CreateSeriesRequest < Internal::Types::Model
6
+ field :event_type, -> { String }, optional: false, nullable: false
7
+
8
+ field :start, -> { String }, optional: false, nullable: false
9
+
10
+ field :host, -> { String }, optional: true, nullable: false
11
+
12
+ field :attributes, -> { Internal::Types::Hash[String, Coss::Types::CreateSeriesRequestAttributesValue] }, optional: true, nullable: false
13
+
14
+ field :duration_minutes, -> { Integer }, optional: true, nullable: false
15
+
16
+ field :attendee, -> { Coss::Types::SchedulingAttendeeInput }, optional: false, nullable: false
17
+
18
+ field :guests, -> { Internal::Types::Array[Coss::Types::SchedulingGuestInput] }, optional: true, nullable: false
19
+
20
+ field :answers, -> { Internal::Types::Hash[String, Coss::Types::CreateSeriesRequestAnswersValue] }, optional: true, nullable: false
21
+
22
+ field :location, -> { Coss::Types::CreateSeriesRequestLocation }, optional: true, nullable: false
23
+
24
+ field :metadata, -> { Internal::Types::Hash[String, String] }, optional: true, nullable: false
25
+
26
+ field :recurrence, -> { Coss::Types::CreateSeriesRequestRecurrence }, optional: false, nullable: false
27
+
28
+ field :on_conflict, -> { Coss::Types::CreateSeriesRequestOnConflict }, optional: true, nullable: false
29
+ end
30
+ end
31
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Coss
4
+ module Types
5
+ class CreateSeriesRequestAnswersValue < Internal::Types::Model
6
+ extend Coss::Internal::Types::Union
7
+
8
+ member -> { String }
9
+
10
+ member -> { Internal::Types::Array[String] }
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Coss
4
+ module Types
5
+ class CreateSeriesRequestAttributesValue < Internal::Types::Model
6
+ extend Coss::Internal::Types::Union
7
+
8
+ member -> { String }
9
+
10
+ member -> { Internal::Types::Array[String] }
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Coss
4
+ module Types
5
+ # One of the event type's `locations`, with your link filled in if it has none.
6
+ class CreateSeriesRequestLocation < Internal::Types::Model
7
+ extend Coss::Internal::Types::Union
8
+
9
+ discriminant :type
10
+
11
+ member -> { Coss::Types::CreateSeriesRequestLocationLink }, key: "LINK"
12
+
13
+ member -> { Coss::Types::CreateSeriesRequestLocationPhone }, key: "PHONE"
14
+
15
+ member -> { Coss::Types::CreateSeriesRequestLocationInPerson }, key: "IN_PERSON"
16
+
17
+ member -> { Coss::Types::CreateSeriesRequestLocationGoogleMeet }, key: "GOOGLE_MEET"
18
+
19
+ member -> { Coss::Types::CreateSeriesRequestLocationMicrosoftTeams }, key: "MICROSOFT_TEAMS"
20
+
21
+ member -> { Coss::Types::CreateSeriesRequestLocationZoom }, key: "ZOOM"
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Coss
4
+ module Types
5
+ class CreateSeriesRequestLocationGoogleMeet < Internal::Types::Model; end
6
+ end
7
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Coss
4
+ module Types
5
+ class CreateSeriesRequestLocationInPerson < Internal::Types::Model
6
+ field :address, -> { String }, optional: true, nullable: false
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Coss
4
+ module Types
5
+ class CreateSeriesRequestLocationLink < Internal::Types::Model
6
+ field :url, -> { String }, optional: true, nullable: false
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Coss
4
+ module Types
5
+ class CreateSeriesRequestLocationMicrosoftTeams < Internal::Types::Model; end
6
+ end
7
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Coss
4
+ module Types
5
+ class CreateSeriesRequestLocationPhone < Internal::Types::Model
6
+ field :number, -> { String }, optional: true, nullable: false
7
+ end
8
+ end
9
+ end