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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: db2a36443a05458d327a71f7d2cb9f008bac45c478ec9c671b54f2a3968caf95
4
- data.tar.gz: 260b90bc919e4ec3c6076c703c31a72e419842daecf8d3ce4e16d9b32987cf08
3
+ metadata.gz: c07db35a7475c721d7ce11b2f40bd9ca5a0c3b1aea5e4540c080a7aa24bab6a8
4
+ data.tar.gz: a22857a4aa10909656f0d0b29f0b1c851e204e17a4dd4de2009a7055811ec175
5
5
  SHA512:
6
- metadata.gz: 54a4756575583de9be754d9c1d70ccb1dc6a3d71a4f01035aaa4e64c426d3cc3fca0523bac7779c4ab6b69ee6d970fa8db03b6923563455d8444be7a0152dd24
7
- data.tar.gz: f742f3b37f4a16310db632a557d44150fbda12b94635efe7870460381c4012dffbba408cf3b846afb09e949480aee493530568bda099599f1ee433d6cded46aa
6
+ metadata.gz: 25784fb94cfbd3c506a5abc08d9ee661e9b4da081157f4d66509468aaf13f163d819194667ffe1b07fa84cfee7aec3a9750777d860ee4ba4b4f570d320bd0db0
7
+ data.tar.gz: c13c5e22d61922a6109e5bc6b72563fe6d1ee600205e5490afafd590eabada29d3dac7f7720522e9b027230251c3c715bd8bf1b5474aed15e0ccdfd3ede98900
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.3.0
4
+
5
+ - Regenerated from the API's OpenAPI document at 820256d03a44. What changed in the API: the
6
+ [API changelog](https://coss.com/docs/api-reference/changelog).
7
+
3
8
  ## 0.2.0
4
9
 
5
10
  - Regenerated from the API's OpenAPI document at 9051e32f1f00. What changed in the API: the
@@ -71,6 +71,8 @@ module Coss
71
71
  end
72
72
  end
73
73
 
74
+ # One event of the organization's audit log.
75
+ #
74
76
  # @param request_options [Hash]
75
77
  # @param params [Hash]
76
78
  # @option request_options [String] :base_url
@@ -8,7 +8,9 @@ module Coss
8
8
 
9
9
  EMAIL_RECIPIENTS = "email.recipients"
10
10
  EMAIL_DEDICATED_IP = "email.dedicated_ip"
11
+ EMAIL_ATTACHMENT_DATA = "email.attachment_data"
11
12
  EMAIL_RECEIVED = "email.received"
13
+ EMAIL_RECEIVED_DATA = "email.received_data"
12
14
  EMAIL_INBOXES = "email.inboxes"
13
15
  SMS_SEGMENTS = "sms.segments"
14
16
  SMS_RECEIVED_SEGMENTS = "sms.received_segments"
@@ -16,11 +18,15 @@ module Coss
16
18
  SMS_REGISTRATIONS = "sms.registrations"
17
19
  SIGN_COMPLETED_REQUESTS = "sign.completed_requests"
18
20
  RISK_PHONE_CHECKS = "risk.phone_checks"
21
+ RISK_ASSESSMENTS = "risk.assessments"
22
+ RISK_CONTENT_CHECKS = "risk.content_checks"
19
23
  VERIFY_VERIFICATIONS = "verify.verifications"
20
24
  VERIFY_SMS = "verify.sms"
21
25
  FORMS_SUBMISSIONS = "forms.submissions"
22
- VIDEO_PARTICIPANT_MINUTES = "video.participant_minutes"
26
+ FORMS_FILE_UPLOADS = "forms.file_uploads"
23
27
  SCHEDULING_BOOKINGS = "scheduling.bookings"
28
+ SCHEDULING_HOSTS = "scheduling.hosts"
29
+ HOOKS_MESSAGES = "hooks.messages"
24
30
  end
25
31
  end
26
32
  end
data/lib/coss/client.rb CHANGED
@@ -12,7 +12,7 @@ module Coss
12
12
  @raw_client = Coss::Internal::Http::RawClient.new(
13
13
  base_url: base_url || Coss::Environment::DEFAULT,
14
14
  headers: {
15
- "User-Agent" => "coss-ruby/0.2.0",
15
+ "User-Agent" => "coss-ruby/0.3.0",
16
16
  "X-Fern-Language" => "Ruby",
17
17
  Authorization: "Bearer #{api_key}",
18
18
  "Coss-Version" => api_version.to_s
@@ -112,6 +112,11 @@ module Coss
112
112
  @hooks ||= Coss::Hooks::Client.new(client: @raw_client)
113
113
  end
114
114
 
115
+ # @return [Coss::Scheduling::Client]
116
+ def scheduling
117
+ @scheduling ||= Coss::Scheduling::Client.new(client: @raw_client)
118
+ end
119
+
115
120
  # @return [Coss::Sign::Client]
116
121
  def sign
117
122
  @sign ||= Coss::Sign::Client.new(client: @raw_client)
@@ -54,6 +54,9 @@ module Coss
54
54
  end
55
55
  end
56
56
 
57
+ # Creates a static contact list in the API key's environment. Names are unique within it (`name_taken`). Add its
58
+ # members with `POST /v1/audiences/{id}/contacts`.
59
+ #
57
60
  # @param request_options [Hash]
58
61
  # @param params [Coss::Email::Audiences::Types::CreateAudienceRequest]
59
62
  # @option request_options [String] :base_url
@@ -92,6 +95,8 @@ module Coss
92
95
  end
93
96
  end
94
97
 
98
+ # One audience of the API key's environment.
99
+ #
95
100
  # @param request_options [Hash]
96
101
  # @param params [Hash]
97
102
  # @option request_options [String] :base_url
@@ -164,6 +169,8 @@ module Coss
164
169
  end
165
170
  end
166
171
 
172
+ # Renames an audience. Its members stay.
173
+ #
167
174
  # @param request_options [Hash]
168
175
  # @param params [Coss::Email::Audiences::Types::UpdateAudienceRequest]
169
176
  # @option request_options [String] :base_url
@@ -299,6 +306,8 @@ module Coss
299
306
  end
300
307
  end
301
308
 
309
+ # Takes a contact out of the audience. The contact itself stays.
310
+ #
302
311
  # @param request_options [Hash]
303
312
  # @param params [Hash]
304
313
  # @option request_options [String] :base_url
@@ -113,6 +113,8 @@ module Coss
113
113
  end
114
114
  end
115
115
 
116
+ # One broadcast of the API key's environment, with its status and stats.
117
+ #
116
118
  # @param request_options [Hash]
117
119
  # @param params [Hash]
118
120
  # @option request_options [String] :base_url
@@ -4,6 +4,7 @@ module Coss
4
4
  module Email
5
5
  module Broadcasts
6
6
  module Types
7
+ # Which opens and clicks are tracked.
7
8
  class CreateBroadcastRequestTracking < Internal::Types::Model
8
9
  field :opens, -> { Internal::Types::Boolean }, optional: true, nullable: false
9
10
 
@@ -4,6 +4,7 @@ module Coss
4
4
  module Email
5
5
  module Broadcasts
6
6
  module Types
7
+ # Which opens and clicks are tracked.
7
8
  class UpdateBroadcastRequestTracking < Internal::Types::Model
8
9
  field :opens, -> { Internal::Types::Boolean }, optional: true, nullable: false
9
10
 
@@ -295,6 +295,8 @@ module Coss
295
295
  raise error_class.new(response.body, code: code)
296
296
  end
297
297
 
298
+ # One contact of the API key's environment.
299
+ #
298
300
  # @param request_options [Hash]
299
301
  # @param params [Hash]
300
302
  # @option request_options [String] :base_url
@@ -92,6 +92,8 @@ module Coss
92
92
  end
93
93
  end
94
94
 
95
+ # One contact property of the API key's environment: its key, type and fallback.
96
+ #
95
97
  # @param request_options [Hash]
96
98
  # @param params [Hash]
97
99
  # @option request_options [String] :base_url
@@ -165,6 +167,8 @@ module Coss
165
167
  end
166
168
  end
167
169
 
170
+ # Changes the value used when a contact has none for this property. Its key and type can't change.
171
+ #
168
172
  # @param request_options [Hash]
169
173
  # @param params [Coss::Email::Contacts::Properties::Types::UpdateContactPropertyRequest]
170
174
  # @option request_options [String] :base_url
@@ -5,6 +5,7 @@ module Coss
5
5
  module Contacts
6
6
  module Properties
7
7
  module Types
8
+ # Used in templates for contacts without a value.
8
9
  class CreateContactPropertyRequestFallback < Internal::Types::Model
9
10
  extend Coss::Internal::Types::Union
10
11
 
@@ -5,6 +5,7 @@ module Coss
5
5
  module Contacts
6
6
  module Properties
7
7
  module Types
8
+ # Used in templates for contacts without a value. `null` removes it.
8
9
  class UpdateContactPropertyRequestFallback < Internal::Types::Model
9
10
  extend Coss::Internal::Types::Union
10
11
 
@@ -121,6 +121,8 @@ module Coss
121
121
  end
122
122
  end
123
123
 
124
+ # One segment of the API key's environment, with its filter.
125
+ #
124
126
  # @param request_options [Hash]
125
127
  # @param params [Hash]
126
128
  # @option request_options [String] :base_url
@@ -156,6 +158,8 @@ module Coss
156
158
  end
157
159
  end
158
160
 
161
+ # Deletes a segment. The contacts it matched stay.
162
+ #
159
163
  # @param request_options [Hash]
160
164
  # @param params [Hash]
161
165
  # @option request_options [String] :base_url
@@ -191,6 +195,8 @@ module Coss
191
195
  end
192
196
  end
193
197
 
198
+ # Changes a segment's name or filter. Only the fields given change.
199
+ #
194
200
  # @param request_options [Hash]
195
201
  # @param params [Coss::Email::Segments::Types::UpdateSegmentRequest]
196
202
  # @option request_options [String] :base_url
@@ -244,6 +244,8 @@ module Coss
244
244
  raise error_class.new(response.body, code: code)
245
245
  end
246
246
 
247
+ # One entry of the suppression list of the API key's environment.
248
+ #
247
249
  # @param request_options [Hash]
248
250
  # @param params [Hash]
249
251
  # @option request_options [String] :base_url
@@ -100,6 +100,8 @@ module Coss
100
100
  end
101
101
  end
102
102
 
103
+ # One topic of the API key's environment.
104
+ #
103
105
  # @param request_options [Hash]
104
106
  # @param params [Hash]
105
107
  # @option request_options [String] :base_url
@@ -102,6 +102,8 @@ module Coss
102
102
  end
103
103
  end
104
104
 
105
+ # A form's settings, with the `endpoint` it posts to and its `hosted_url`.
106
+ #
105
107
  # @param request_options [Hash]
106
108
  # @param params [Hash]
107
109
  # @option request_options [String] :base_url
@@ -58,6 +58,8 @@ module Coss
58
58
  end
59
59
  end
60
60
 
61
+ # One submission of the form, with its data, files and Risk's assessment.
62
+ #
61
63
  # @param request_options [Hash]
62
64
  # @param params [Hash]
63
65
  # @option request_options [String] :base_url
@@ -3,6 +3,7 @@
3
3
  module Coss
4
4
  module Forms
5
5
  module Types
6
+ # Turning submissions into contacts. Only the fields given change.
6
7
  class CreateFormRequestContacts < Internal::Types::Model
7
8
  field :enabled, -> { Internal::Types::Boolean }, optional: true, nullable: false
8
9
 
@@ -3,6 +3,7 @@
3
3
  module Coss
4
4
  module Forms
5
5
  module Types
6
+ # File uploads. Only the fields given change.
6
7
  class CreateFormRequestFiles < Internal::Types::Model
7
8
  field :enabled, -> { Internal::Types::Boolean }, optional: true, nullable: false
8
9
 
@@ -3,6 +3,7 @@
3
3
  module Coss
4
4
  module Forms
5
5
  module Types
6
+ # The page coss.com can serve for this form. Only the fields given change.
6
7
  class CreateFormRequestHosted < Internal::Types::Model
7
8
  field :enabled, -> { Internal::Types::Boolean }, optional: true, nullable: false
8
9
 
@@ -3,6 +3,7 @@
3
3
  module Coss
4
4
  module Forms
5
5
  module Types
6
+ # Emails about accepted submissions. Only the fields given change.
6
7
  class CreateFormRequestNotifications < Internal::Types::Model
7
8
  field :recipients, -> { Internal::Types::Array[String] }, optional: true, nullable: false
8
9
 
@@ -3,6 +3,7 @@
3
3
  module Coss
4
4
  module Forms
5
5
  module Types
6
+ # How submissions are screened. Only the fields given change.
6
7
  class CreateFormRequestSpam < Internal::Types::Model
7
8
  field :honeypot_field, -> { String }, optional: true, nullable: false
8
9
 
@@ -3,6 +3,7 @@
3
3
  module Coss
4
4
  module Forms
5
5
  module Types
6
+ # Who the submitter is, and whether they must confirm by email. Only the fields given change.
6
7
  class CreateFormRequestSubmitter < Internal::Types::Model
7
8
  field :email_field, -> { String }, optional: true, nullable: false
8
9
 
@@ -3,6 +3,7 @@
3
3
  module Coss
4
4
  module Forms
5
5
  module Types
6
+ # Turning submissions into contacts. Only the fields given change.
6
7
  class UpdateFormRequestContacts < Internal::Types::Model
7
8
  field :enabled, -> { Internal::Types::Boolean }, optional: true, nullable: false
8
9
 
@@ -3,6 +3,7 @@
3
3
  module Coss
4
4
  module Forms
5
5
  module Types
6
+ # File uploads. Only the fields given change.
6
7
  class UpdateFormRequestFiles < Internal::Types::Model
7
8
  field :enabled, -> { Internal::Types::Boolean }, optional: true, nullable: false
8
9
 
@@ -3,6 +3,7 @@
3
3
  module Coss
4
4
  module Forms
5
5
  module Types
6
+ # The page coss.com can serve for this form. Only the fields given change.
6
7
  class UpdateFormRequestHosted < Internal::Types::Model
7
8
  field :enabled, -> { Internal::Types::Boolean }, optional: true, nullable: false
8
9
 
@@ -3,6 +3,7 @@
3
3
  module Coss
4
4
  module Forms
5
5
  module Types
6
+ # Emails about accepted submissions. Only the fields given change.
6
7
  class UpdateFormRequestNotifications < Internal::Types::Model
7
8
  field :recipients, -> { Internal::Types::Array[String] }, optional: true, nullable: false
8
9
 
@@ -3,6 +3,7 @@
3
3
  module Coss
4
4
  module Forms
5
5
  module Types
6
+ # How submissions are screened. Only the fields given change.
6
7
  class UpdateFormRequestSpam < Internal::Types::Model
7
8
  field :honeypot_field, -> { String }, optional: true, nullable: false
8
9
 
@@ -3,6 +3,7 @@
3
3
  module Coss
4
4
  module Forms
5
5
  module Types
6
+ # Who the submitter is, and whether they must confirm by email. Only the fields given change.
6
7
  class UpdateFormRequestSubmitter < Internal::Types::Model
7
8
  field :email_field, -> { String }, optional: true, nullable: false
8
9
 
@@ -60,7 +60,9 @@ module Coss
60
60
  # Queues a message to the application: coss.com delivers it to each of its enabled endpoints subscribed to
61
61
  # `event_type` within seconds, signed with each endpoint's secret, and retries failures with backoff for about a
62
62
  # day. Each request's `webhook-id` header is the message's id. Counts against the send quota once per endpoint
63
- # it goes to (at least once). Live sends are refused while the organization is suspended (`account_suspended`).
63
+ # it goes to (at least once). A live message is billed once, whatever its fan-out; retries and sandbox are free.
64
+ # Live sends are refused while the organization is suspended (`account_suspended`), on a billing hold
65
+ # (`billing_hold`), over a budget (`budget_exceeded`) or past Free's monthly messages (`usage_limit_exceeded`).
64
66
  # Hooks resources belong to the API key's own environment: a `coss_test_…` key only ever sees sandbox ones, a
65
67
  # `coss_live_…` key only production ones.
66
68
  #
@@ -101,6 +101,8 @@ module Coss
101
101
  end
102
102
  end
103
103
 
104
+ # One inbox of the API key's environment.
105
+ #
104
106
  # @param request_options [Hash]
105
107
  # @param params [Hash]
106
108
  # @option request_options [String] :base_url
@@ -4,6 +4,7 @@ module Coss
4
4
  module Inboxes
5
5
  module Messages
6
6
  module Types
7
+ # Who it's blind copied to.
7
8
  class ReplyInboxMessageRequestBcc < Internal::Types::Model
8
9
  extend Coss::Internal::Types::Union
9
10
 
@@ -4,6 +4,7 @@ module Coss
4
4
  module Inboxes
5
5
  module Messages
6
6
  module Types
7
+ # Who it's copied to.
7
8
  class ReplyInboxMessageRequestCc < Internal::Types::Model
8
9
  extend Coss::Internal::Types::Union
9
10
 
@@ -4,6 +4,7 @@ module Coss
4
4
  module Inboxes
5
5
  module Messages
6
6
  module Types
7
+ # Who it's blind copied to.
7
8
  class SendInboxMessageRequestBcc < Internal::Types::Model
8
9
  extend Coss::Internal::Types::Union
9
10
 
@@ -4,6 +4,7 @@ module Coss
4
4
  module Inboxes
5
5
  module Messages
6
6
  module Types
7
+ # Who it's copied to.
7
8
  class SendInboxMessageRequestCc < Internal::Types::Model
8
9
  extend Coss::Internal::Types::Union
9
10
 
@@ -4,6 +4,7 @@ module Coss
4
4
  module Inboxes
5
5
  module Messages
6
6
  module Types
7
+ # Who it goes to.
7
8
  class SendInboxMessageRequestTo < Internal::Types::Model
8
9
  extend Coss::Internal::Types::Union
9
10
 
@@ -11,8 +11,8 @@ module Coss
11
11
  @client = client
12
12
  end
13
13
 
14
- # The drain's delivery log, newest first: one batch per NDJSON request, with every HTTP attempt. A failing batch
15
- # is retried with backoff for about a day (10 attempts); if every attempt fails, the drain is disabled. Pass the
14
+ # The drain's delivery log, newest first: one batch per request, with every HTTP attempt. A failing batch is
15
+ # retried with backoff for about a day (10 attempts); if every attempt fails, the drain is disabled. Pass the
16
16
  # last `id` as `after` to get the next page while `has_more` is true.
17
17
  #
18
18
  # @param request_options [Hash]
@@ -47,10 +47,12 @@ module Coss
47
47
  end
48
48
 
49
49
  # Streams the environment's logs to a URL: every line `GET /v1/logs` returns (API requests, email events, webhook
50
- # attempts) and the environment's audit events, posted as signed NDJSON batches of up to 500 lines or 1 MB,
51
- # usually within seconds. Log drains belong to the API key's own environment: a `coss_test_…` key only ever sees
52
- # sandbox drains, and a `coss_live_…` key only production ones. The response carries the signing secret, which is
53
- # returned only here: store it, and verify every batch with it (`verifyLogDrainBatch` in the SDK).
50
+ # attempts) and the environment's audit events, posted as signed batches of up to 500 lines or 1 MB, usually
51
+ # within seconds. `format` picks the body: NDJSON for your own endpoint, or the intake API of Loki (Grafana
52
+ # Cloud), Datadog or an OTLP/HTTP collector, with `auth_header` carrying its key. Log drains belong to the API
53
+ # key's own environment: a `coss_test_…` key only ever sees sandbox drains, and a `coss_live_…` key only
54
+ # production ones. The response carries the signing secret, which is returned only here: store it, and verify
55
+ # every NDJSON batch with it (`verifyLogDrainBatch` in the SDK).
54
56
  #
55
57
  # @param request_options [Hash]
56
58
  # @param params [Coss::LogDrains::Types::CreateLogDrainRequest]
@@ -169,10 +171,11 @@ module Coss
169
171
  end
170
172
  end
171
173
 
172
- # Changes the URL, description, sources or `enabled` flag. Omitted fields keep their current value, and the
173
- # signing secret stays the same. Disabling a drain drops the lines still waiting for it, and nothing is kept for
174
- # it while it is disabled; enabling it again (also after coss.com disabled it for failing) sends lines logged from
175
- # then on.
174
+ # Changes the URL, description, sources, format, auth header or `enabled` flag. Omitted fields keep their current
175
+ # value (`auth_header: null` removes the header), and the signing secret stays the same. A batch being retried
176
+ # goes out as the drain is when it is retried. Disabling a drain drops the lines still waiting for it, and nothing
177
+ # is kept for it while it is disabled; enabling it again (also after coss.com disabled it for failing) sends lines
178
+ # logged from then on.
176
179
  #
177
180
  # @param request_options [Hash]
178
181
  # @param params [Coss::LogDrains::Types::UpdateLogDrainRequest]
@@ -9,6 +9,10 @@ module Coss
9
9
  field :description, -> { String }, optional: true, nullable: false
10
10
 
11
11
  field :sources, -> { Internal::Types::Array[Coss::Types::LogDrainSource] }, optional: true, nullable: false
12
+
13
+ field :format, -> { Coss::LogDrains::Types::CreateLogDrainRequestFormat }, optional: true, nullable: false
14
+
15
+ field :auth_header, -> { Coss::Types::LogDrainAuthHeader }, optional: true, nullable: false
12
16
  end
13
17
  end
14
18
  end
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Coss
4
+ module LogDrains
5
+ module Types
6
+ module CreateLogDrainRequestFormat
7
+ extend Coss::Internal::Types::Enum
8
+
9
+ NDJSON = "ndjson"
10
+ LOKI = "loki"
11
+ DATADOG = "datadog"
12
+ OTLP = "otlp"
13
+ end
14
+ end
15
+ end
16
+ end
@@ -12,6 +12,10 @@ module Coss
12
12
 
13
13
  field :sources, -> { Internal::Types::Array[Coss::Types::LogDrainSource] }, optional: true, nullable: false
14
14
 
15
+ field :format, -> { Coss::Types::LogDrainFormat }, optional: true, nullable: false
16
+
17
+ field :auth_header, -> { Coss::Types::LogDrainAuthHeader }, optional: true, nullable: false
18
+
15
19
  field :enabled, -> { Internal::Types::Boolean }, optional: true, nullable: false
16
20
  end
17
21
  end
@@ -80,6 +80,8 @@ module Coss
80
80
  end
81
81
  end
82
82
 
83
+ # One line of the API key's environment log.
84
+ #
83
85
  # @param request_options [Hash]
84
86
  # @param params [Hash]
85
87
  # @option request_options [String] :base_url
@@ -15,8 +15,11 @@ module Coss
15
15
  # in this environment (velocity, accounts sharing a mailbox, identifiers you reported) and your allow and block
16
16
  # lists. Signals that are unavailable at the moment are skipped and listed in `degraded`. Call it from your
17
17
  # server, never from the browser, and treat errors as `allow` (fail open) so an outage never locks your users out.
18
- # `review` decisions also fire a `risk.assessment.review` webhook. Sandbox (`coss_test_…`) keys accept documented
19
- # test addresses (`192.0.2.x`, `@disposable.test`, `@undeliverable.test`).
18
+ # `review` decisions also fire a `risk.assessment.review` webhook. Live assessments are billed
19
+ # (`risk.assessments`; plans include some every month) unless they end in `block`. Past Free's allowance, on a
20
+ # billing hold or over a budget, they are free and made without velocity, memory or content (`usage_limit` in
21
+ # `degraded`); they never fail over billing. Sandbox (`coss_test_…`) keys accept documented test addresses
22
+ # (`192.0.2.x`, `@disposable.test`, `@undeliverable.test`).
20
23
  #
21
24
  # @param request_options [Hash]
22
25
  # @param params [Coss::Risk::Types::CreateRiskAssessmentRequest]
@@ -288,9 +291,10 @@ module Coss
288
291
  # Scores text people post on your platform (a profile bio, a comment, a listing) for spam, phishing, malware and
289
292
  # fraud with an AI model, with zero data retention. Returns scores only: you decide what they mean. Neither the
290
293
  # text nor the scores are stored, and request logs keep no body for this endpoint. Takes up to 3 seconds; a
291
- # failure is a 503 you can retry or treat as unknown. Limited per organization as well as per key. Sandbox keys
292
- # use markers instead of a model: `[coss-test:phishing]` scores 0.99, `[coss-test:spam:0.4]` exactly 0.4,
293
- # everything else 0.01.
294
+ # failure is a 503 you can retry or treat as unknown. Each live classification the model answered is billed
295
+ # (`risk.content_checks`; plans include some every month, and Free stops at its allowance). Limited per
296
+ # organization as well as per key. Sandbox keys use markers instead of a model: `[coss-test:phishing]` scores
297
+ # 0.99, `[coss-test:spam:0.4]` exactly 0.4, everything else 0.01.
294
298
  #
295
299
  # @param request_options [Hash]
296
300
  # @param params [Coss::Risk::Types::RiskContentClassifyRequest]
@@ -313,7 +317,8 @@ module Coss
313
317
  path: "v1/risk/content/classify",
314
318
  headers: headers,
315
319
  body: Coss::Risk::Types::RiskContentClassifyRequest.new(params).to_h,
316
- request_options: request_options
320
+ request_options: request_options,
321
+ max_retries: 0
317
322
  )
318
323
  begin
319
324
  response = @client.send(request)
@@ -90,6 +90,8 @@ module Coss
90
90
  end
91
91
  end
92
92
 
93
+ # One of the rate limit buckets you defined for `POST /v1/risk/limit`.
94
+ #
93
95
  # @param request_options [Hash]
94
96
  # @param params [Hash]
95
97
  # @option request_options [String] :base_url
@@ -106,6 +106,8 @@ module Coss
106
106
  end
107
107
  end
108
108
 
109
+ # One allow or block list entry of the API key's environment.
110
+ #
109
111
  # @param request_options [Hash]
110
112
  # @param params [Hash]
111
113
  # @option request_options [String] :base_url
@@ -141,6 +143,8 @@ module Coss
141
143
  end
142
144
  end
143
145
 
146
+ # Removes an entry from its list. Later assessments no longer see it.
147
+ #
144
148
  # @param request_options [Hash]
145
149
  # @param params [Hash]
146
150
  # @option request_options [String] :base_url
@@ -102,6 +102,8 @@ module Coss
102
102
  end
103
103
  end
104
104
 
105
+ # One rule of the API key's environment.
106
+ #
105
107
  # @param request_options [Hash]
106
108
  # @param params [Hash]
107
109
  # @option request_options [String] :base_url
@@ -137,6 +139,8 @@ module Coss
137
139
  end
138
140
  end
139
141
 
142
+ # Deletes a rule. Later assessments no longer apply it.
143
+ #
140
144
  # @param request_options [Hash]
141
145
  # @param params [Hash]
142
146
  # @option request_options [String] :base_url