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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/coss/audit_events/client.rb +2 -0
- data/lib/coss/billing/types/usage_billing_request_meter.rb +7 -1
- data/lib/coss/client.rb +6 -1
- data/lib/coss/email/audiences/client.rb +9 -0
- data/lib/coss/email/broadcasts/client.rb +2 -0
- data/lib/coss/email/broadcasts/types/create_broadcast_request_tracking.rb +1 -0
- data/lib/coss/email/broadcasts/types/update_broadcast_request_tracking.rb +1 -0
- data/lib/coss/email/contacts/client.rb +2 -0
- data/lib/coss/email/contacts/properties/client.rb +4 -0
- data/lib/coss/email/contacts/properties/types/create_contact_property_request_fallback.rb +1 -0
- data/lib/coss/email/contacts/properties/types/update_contact_property_request_fallback.rb +1 -0
- data/lib/coss/email/segments/client.rb +6 -0
- data/lib/coss/email/suppressions/client.rb +2 -0
- data/lib/coss/email/topics/client.rb +2 -0
- data/lib/coss/forms/client.rb +2 -0
- data/lib/coss/forms/submissions/client.rb +2 -0
- data/lib/coss/forms/types/create_form_request_contacts.rb +1 -0
- data/lib/coss/forms/types/create_form_request_files.rb +1 -0
- data/lib/coss/forms/types/create_form_request_hosted.rb +1 -0
- data/lib/coss/forms/types/create_form_request_notifications.rb +1 -0
- data/lib/coss/forms/types/create_form_request_spam.rb +1 -0
- data/lib/coss/forms/types/create_form_request_submitter.rb +1 -0
- data/lib/coss/forms/types/update_form_request_contacts.rb +1 -0
- data/lib/coss/forms/types/update_form_request_files.rb +1 -0
- data/lib/coss/forms/types/update_form_request_hosted.rb +1 -0
- data/lib/coss/forms/types/update_form_request_notifications.rb +1 -0
- data/lib/coss/forms/types/update_form_request_spam.rb +1 -0
- data/lib/coss/forms/types/update_form_request_submitter.rb +1 -0
- data/lib/coss/hooks/messages/client.rb +3 -1
- data/lib/coss/inboxes/client.rb +2 -0
- data/lib/coss/inboxes/messages/types/reply_inbox_message_request_bcc.rb +1 -0
- data/lib/coss/inboxes/messages/types/reply_inbox_message_request_cc.rb +1 -0
- data/lib/coss/inboxes/messages/types/send_inbox_message_request_bcc.rb +1 -0
- data/lib/coss/inboxes/messages/types/send_inbox_message_request_cc.rb +1 -0
- data/lib/coss/inboxes/messages/types/send_inbox_message_request_to.rb +1 -0
- data/lib/coss/log_drains/batches/client.rb +2 -2
- data/lib/coss/log_drains/client.rb +11 -8
- data/lib/coss/log_drains/types/create_log_drain_request.rb +4 -0
- data/lib/coss/log_drains/types/create_log_drain_request_format.rb +16 -0
- data/lib/coss/log_drains/types/update_log_drain_request.rb +4 -0
- data/lib/coss/logs/client.rb +2 -0
- data/lib/coss/risk/client.rb +11 -6
- data/lib/coss/risk/limit_buckets/client.rb +2 -0
- data/lib/coss/risk/lists/client.rb +4 -0
- data/lib/coss/risk/rules/client.rb +4 -0
- data/lib/coss/scheduling/attendees/client.rb +94 -0
- data/lib/coss/scheduling/attendees/types/erase_attendees_request.rb +13 -0
- data/lib/coss/scheduling/attendees/types/erase_scheduling_attendee_by_email_request.rb +13 -0
- data/lib/coss/scheduling/availability/client.rb +62 -0
- data/lib/coss/scheduling/availability/types/availability_search_request.rb +25 -0
- data/lib/coss/scheduling/availability/types/availability_search_request_attributes_value.rb +17 -0
- data/lib/coss/scheduling/bookings/client.rb +510 -0
- data/lib/coss/scheduling/bookings/types/approve_bookings_request.rb +13 -0
- data/lib/coss/scheduling/bookings/types/cancel_scheduling_booking_request.rb +15 -0
- data/lib/coss/scheduling/bookings/types/create_booking_request.rb +33 -0
- data/lib/coss/scheduling/bookings/types/create_booking_request_answers_value.rb +17 -0
- data/lib/coss/scheduling/bookings/types/create_booking_request_attributes_value.rb +17 -0
- data/lib/coss/scheduling/bookings/types/create_booking_request_location.rb +28 -0
- data/lib/coss/scheduling/bookings/types/create_booking_request_location_google_meet.rb +11 -0
- data/lib/coss/scheduling/bookings/types/create_booking_request_location_in_person.rb +13 -0
- data/lib/coss/scheduling/bookings/types/create_booking_request_location_link.rb +13 -0
- data/lib/coss/scheduling/bookings/types/create_booking_request_location_microsoft_teams.rb +11 -0
- data/lib/coss/scheduling/bookings/types/create_booking_request_location_phone.rb +13 -0
- data/lib/coss/scheduling/bookings/types/create_booking_request_location_zoom.rb +13 -0
- data/lib/coss/scheduling/bookings/types/decline_bookings_request.rb +13 -0
- data/lib/coss/scheduling/bookings/types/events_bookings_request.rb +17 -0
- data/lib/coss/scheduling/bookings/types/get_bookings_request.rb +13 -0
- data/lib/coss/scheduling/bookings/types/list_bookings_request.rb +27 -0
- data/lib/coss/scheduling/bookings/types/list_bookings_request_status.rb +19 -0
- data/lib/coss/scheduling/bookings/types/mark_no_show_bookings_request.rb +13 -0
- data/lib/coss/scheduling/bookings/types/notifications_bookings_request.rb +17 -0
- data/lib/coss/scheduling/bookings/types/reschedule_booking_request.rb +17 -0
- data/lib/coss/scheduling/bookings/types/update_booking_location_request.rb +15 -0
- data/lib/coss/scheduling/calendar_delegations/client.rb +261 -0
- data/lib/coss/scheduling/calendar_delegations/types/delete_calendar_delegations_request.rb +13 -0
- data/lib/coss/scheduling/calendar_delegations/types/get_calendar_delegations_request.rb +13 -0
- data/lib/coss/scheduling/calendar_delegations/types/update_calendar_delegation_request.rb +21 -0
- data/lib/coss/scheduling/calendar_delegations/types/verify_calendar_delegation_request.rb +15 -0
- data/lib/coss/scheduling/calendars/client.rb +281 -0
- data/lib/coss/scheduling/calendars/types/authorize_calendar_request.rb +17 -0
- data/lib/coss/scheduling/calendars/types/authorize_calendar_request_provider.rb +17 -0
- data/lib/coss/scheduling/calendars/types/connect_calendars_request.rb +15 -0
- data/lib/coss/scheduling/calendars/types/disconnect_calendars_request.rb +15 -0
- data/lib/coss/scheduling/calendars/types/list_calendars_request.rb +13 -0
- data/lib/coss/scheduling/calendars/types/set_simulated_busy_request.rb +15 -0
- data/lib/coss/scheduling/calendars/types/set_simulated_busy_request_intervals_item.rb +15 -0
- data/lib/coss/scheduling/calendars/types/update_calendar_request.rb +19 -0
- data/lib/coss/scheduling/client.rb +79 -0
- data/lib/coss/scheduling/event_types/client.rb +192 -0
- data/lib/coss/scheduling/event_types/types/create_event_type_request.rb +69 -0
- data/lib/coss/scheduling/event_types/types/create_event_type_request_host_calendar_details.rb +16 -0
- data/lib/coss/scheduling/event_types/types/create_event_type_request_host_filter_value.rb +17 -0
- data/lib/coss/scheduling/event_types/types/create_event_type_request_kind.rb +18 -0
- data/lib/coss/scheduling/event_types/types/create_event_type_request_notifications_value.rb +17 -0
- data/lib/coss/scheduling/event_types/types/get_event_types_request.rb +13 -0
- data/lib/coss/scheduling/event_types/types/list_event_types_request.rb +15 -0
- data/lib/coss/scheduling/event_types/types/update_event_type_request.rb +71 -0
- data/lib/coss/scheduling/event_types/types/update_event_type_request_host_calendar_details.rb +16 -0
- data/lib/coss/scheduling/event_types/types/update_event_type_request_host_filter_value.rb +17 -0
- data/lib/coss/scheduling/event_types/types/update_event_type_request_notifications_value.rb +17 -0
- data/lib/coss/scheduling/event_types/types/update_event_type_request_status.rb +16 -0
- data/lib/coss/scheduling/holds/client.rb +155 -0
- data/lib/coss/scheduling/holds/types/confirm_hold_request.rb +15 -0
- data/lib/coss/scheduling/holds/types/create_hold_request.rb +33 -0
- data/lib/coss/scheduling/holds/types/create_hold_request_answers_value.rb +17 -0
- data/lib/coss/scheduling/holds/types/create_hold_request_attributes_value.rb +17 -0
- data/lib/coss/scheduling/holds/types/create_hold_request_location.rb +28 -0
- data/lib/coss/scheduling/holds/types/create_hold_request_location_google_meet.rb +11 -0
- data/lib/coss/scheduling/holds/types/create_hold_request_location_in_person.rb +13 -0
- data/lib/coss/scheduling/holds/types/create_hold_request_location_link.rb +13 -0
- data/lib/coss/scheduling/holds/types/create_hold_request_location_microsoft_teams.rb +11 -0
- data/lib/coss/scheduling/holds/types/create_hold_request_location_phone.rb +13 -0
- data/lib/coss/scheduling/holds/types/create_hold_request_location_zoom.rb +13 -0
- data/lib/coss/scheduling/holds/types/release_holds_request.rb +13 -0
- data/lib/coss/scheduling/hosts/client.rb +228 -0
- data/lib/coss/scheduling/hosts/types/create_host_request.rb +31 -0
- data/lib/coss/scheduling/hosts/types/create_host_request_attributes_value.rb +17 -0
- data/lib/coss/scheduling/hosts/types/get_hosts_request.rb +13 -0
- data/lib/coss/scheduling/hosts/types/list_hosts_request.rb +15 -0
- data/lib/coss/scheduling/hosts/types/remove_hosts_request.rb +13 -0
- data/lib/coss/scheduling/hosts/types/update_host_request.rb +35 -0
- data/lib/coss/scheduling/hosts/types/update_host_request_attributes_value.rb +17 -0
- data/lib/coss/scheduling/hosts/types/update_host_request_status.rb +16 -0
- data/lib/coss/scheduling/schedules/client.rb +253 -0
- data/lib/coss/scheduling/schedules/types/create_schedules_request.rb +15 -0
- data/lib/coss/scheduling/schedules/types/get_schedules_request.rb +15 -0
- data/lib/coss/scheduling/schedules/types/list_schedules_request.rb +13 -0
- data/lib/coss/scheduling/schedules/types/remove_schedules_request.rb +15 -0
- data/lib/coss/scheduling/schedules/types/update_schedules_request.rb +17 -0
- data/lib/coss/scheduling/series/client.rb +171 -0
- data/lib/coss/scheduling/series/types/cancel_series_request.rb +15 -0
- data/lib/coss/scheduling/series/types/create_series_body.rb +15 -0
- data/lib/coss/scheduling/sessions/client.rb +153 -0
- data/lib/coss/scheduling/sessions/types/create_for_booking_sessions_request.rb +13 -0
- data/lib/coss/scheduling/sessions/types/create_scheduling_booker_session_request.rb +21 -0
- data/lib/coss/scheduling/sessions/types/create_scheduling_booker_session_request_attendee.rb +24 -0
- data/lib/coss/scheduling/sessions/types/create_scheduling_booker_session_request_attributes_value.rb +17 -0
- data/lib/coss/scheduling/sessions/types/create_scheduling_host_session_request.rb +17 -0
- data/lib/coss/scheduling/settings/client.rb +88 -0
- data/lib/coss/scheduling/settings/types/update_scheduling_settings_request.rb +31 -0
- data/lib/coss/scheduling/settings/types/update_scheduling_settings_request_calendar_failure_mode.rb +16 -0
- data/lib/coss/scheduling/settings/types/update_scheduling_settings_request_logo.rb +14 -0
- data/lib/coss/scheduling/settings/types/update_scheduling_settings_request_notifications_value.rb +17 -0
- data/lib/coss/scheduling/slots/client.rb +123 -0
- data/lib/coss/scheduling/slots/types/explain_slots_request.rb +21 -0
- data/lib/coss/scheduling/slots/types/list_slots_request.rb +23 -0
- data/lib/coss/sign/documents/client.rb +2 -0
- data/lib/coss/sign/requests/client.rb +2 -0
- data/lib/coss/sign/templates/client.rb +2 -0
- data/lib/coss/sms/client.rb +2 -0
- data/lib/coss/sms/received/client.rb +2 -0
- data/lib/coss/sms/suppressions/client.rb +4 -0
- data/lib/coss/types/billing.rb +2 -0
- data/lib/coss/types/billing_credit_limit.rb +14 -0
- data/lib/coss/types/billing_features.rb +1 -0
- data/lib/coss/types/billing_holds_item_reason.rb +1 -0
- data/lib/coss/types/billing_payment_method.rb +1 -0
- data/lib/coss/types/billing_usage_item_meter.rb +7 -1
- data/lib/coss/types/billing_webhook_event_four_data_reason.rb +1 -0
- data/lib/coss/types/billing_webhook_event_three_data_meter.rb +7 -1
- data/lib/coss/types/broadcast_error.rb +2 -0
- data/lib/coss/types/broadcast_stats.rb +1 -0
- data/lib/coss/types/broadcast_tracking.rb +1 -0
- data/lib/coss/types/broadcast_webhook_event_data.rb +1 -0
- data/lib/coss/types/broadcast_webhook_event_data_error.rb +1 -0
- data/lib/coss/types/contact_webhook_event_data.rb +1 -0
- data/lib/coss/types/create_calendar_connection_request.rb +16 -0
- data/lib/coss/types/create_calendar_connection_request_caldav.rb +13 -0
- data/lib/coss/types/create_calendar_connection_request_simulated.rb +7 -0
- data/lib/coss/types/create_calendar_delegation_request.rb +15 -0
- data/lib/coss/types/create_calendar_delegation_request_google.rb +13 -0
- data/lib/coss/types/create_calendar_delegation_request_microsoft.rb +19 -0
- data/lib/coss/types/create_series_request.rb +31 -0
- data/lib/coss/types/create_series_request_answers_value.rb +13 -0
- data/lib/coss/types/create_series_request_attributes_value.rb +13 -0
- data/lib/coss/types/create_series_request_location.rb +24 -0
- data/lib/coss/types/create_series_request_location_google_meet.rb +7 -0
- data/lib/coss/types/create_series_request_location_in_person.rb +9 -0
- data/lib/coss/types/create_series_request_location_link.rb +9 -0
- data/lib/coss/types/create_series_request_location_microsoft_teams.rb +7 -0
- data/lib/coss/types/create_series_request_location_phone.rb +9 -0
- data/lib/coss/types/create_series_request_location_zoom.rb +9 -0
- data/lib/coss/types/create_series_request_on_conflict.rb +12 -0
- data/lib/coss/types/create_series_request_recurrence.rb +14 -0
- data/lib/coss/types/create_series_request_recurrence_frequency.rb +12 -0
- data/lib/coss/types/credit_meter.rb +7 -1
- data/lib/coss/types/credit_meters_item.rb +7 -1
- data/lib/coss/types/credit_source.rb +1 -0
- data/lib/coss/types/deleted_scheduling_calendar_connection.rb +13 -0
- data/lib/coss/types/deleted_scheduling_calendar_connection_object.rb +11 -0
- data/lib/coss/types/deleted_scheduling_calendar_delegation.rb +13 -0
- data/lib/coss/types/deleted_scheduling_calendar_delegation_object.rb +11 -0
- data/lib/coss/types/deleted_scheduling_host.rb +13 -0
- data/lib/coss/types/deleted_scheduling_host_object.rb +11 -0
- data/lib/coss/types/deleted_scheduling_schedule.rb +13 -0
- data/lib/coss/types/deleted_scheduling_schedule_object.rb +11 -0
- data/lib/coss/types/dmarc_report_record_auth_results.rb +1 -0
- data/lib/coss/types/dmarc_report_reporter.rb +1 -0
- data/lib/coss/types/dmarc_report_summary_reporter.rb +1 -0
- data/lib/coss/types/domain_dmarc_report_summary.rb +1 -0
- data/lib/coss/types/email_event_data.rb +1 -0
- data/lib/coss/types/email_recipient.rb +1 -0
- data/lib/coss/types/email_webhook_event_data.rb +2 -0
- data/lib/coss/types/environment_organization.rb +3 -0
- data/lib/coss/types/environment_project.rb +1 -0
- data/lib/coss/types/form_contacts.rb +1 -0
- data/lib/coss/types/form_files.rb +1 -0
- data/lib/coss/types/form_hosted.rb +1 -0
- data/lib/coss/types/form_notifications.rb +1 -0
- data/lib/coss/types/form_spam.rb +1 -0
- data/lib/coss/types/form_submission_webhook_event_data.rb +1 -0
- data/lib/coss/types/form_submitter.rb +1 -0
- data/lib/coss/types/invoice_kind.rb +1 -0
- data/lib/coss/types/invoice_line_meter.rb +7 -1
- data/lib/coss/types/invoice_line_period.rb +1 -0
- data/lib/coss/types/invoice_period.rb +1 -0
- data/lib/coss/types/invoice_summary_kind.rb +1 -0
- data/lib/coss/types/invoice_summary_period.rb +1 -0
- data/lib/coss/types/log_drain.rb +4 -0
- data/lib/coss/types/log_drain_auth_header.rb +13 -0
- data/lib/coss/types/log_drain_format.rb +14 -0
- data/lib/coss/types/log_drain_source.rb +1 -0
- data/lib/coss/types/log_drain_with_secret.rb +4 -0
- data/lib/coss/types/log_source.rb +1 -0
- data/lib/coss/types/risk_assessment_degraded_item.rb +1 -0
- data/lib/coss/types/risk_assessment_signals.rb +1 -0
- data/lib/coss/types/risk_assessment_user.rb +1 -0
- data/lib/coss/types/risk_captcha_signals.rb +1 -0
- data/lib/coss/types/risk_email_signals.rb +1 -0
- data/lib/coss/types/risk_ip_signals.rb +1 -0
- data/lib/coss/types/risk_rule_condition_value.rb +1 -0
- data/lib/coss/types/risk_webhook_event_data.rb +1 -0
- data/lib/coss/types/scheduling_attendee_erasure.rb +13 -0
- data/lib/coss/types/scheduling_attendee_erasure_by_email.rb +11 -0
- data/lib/coss/types/scheduling_attendee_erasure_by_email_object.rb +11 -0
- data/lib/coss/types/scheduling_attendee_erasure_object.rb +11 -0
- data/lib/coss/types/scheduling_attendee_input.rb +20 -0
- data/lib/coss/types/scheduling_availability_search_result.rb +13 -0
- data/lib/coss/types/scheduling_availability_search_result_data_item.rb +13 -0
- data/lib/coss/types/scheduling_availability_search_result_data_item_slots_item.rb +11 -0
- data/lib/coss/types/scheduling_availability_search_result_object.rb +11 -0
- data/lib/coss/types/scheduling_booking.rb +55 -0
- data/lib/coss/types/scheduling_booking_attendees_item.rb +25 -0
- data/lib/coss/types/scheduling_booking_attendees_item_answers_value.rb +13 -0
- data/lib/coss/types/scheduling_booking_attendees_item_role.rb +12 -0
- data/lib/coss/types/scheduling_booking_cancelled_by.rb +16 -0
- data/lib/coss/types/scheduling_booking_event.rb +21 -0
- data/lib/coss/types/scheduling_booking_event_actor.rb +12 -0
- data/lib/coss/types/scheduling_booking_event_actor_kind.rb +16 -0
- data/lib/coss/types/scheduling_booking_event_list.rb +13 -0
- data/lib/coss/types/scheduling_booking_event_list_object.rb +11 -0
- data/lib/coss/types/scheduling_booking_event_object.rb +11 -0
- data/lib/coss/types/scheduling_booking_list.rb +13 -0
- data/lib/coss/types/scheduling_booking_list_object.rb +11 -0
- data/lib/coss/types/scheduling_booking_notification.rb +25 -0
- data/lib/coss/types/scheduling_booking_notification_channel.rb +13 -0
- data/lib/coss/types/scheduling_booking_notification_list.rb +13 -0
- data/lib/coss/types/scheduling_booking_notification_list_object.rb +11 -0
- data/lib/coss/types/scheduling_booking_notification_object.rb +11 -0
- data/lib/coss/types/scheduling_booking_notification_recipient.rb +14 -0
- data/lib/coss/types/scheduling_booking_object.rb +11 -0
- data/lib/coss/types/scheduling_booking_status.rb +15 -0
- data/lib/coss/types/scheduling_booking_webhook_data.rb +30 -0
- data/lib/coss/types/scheduling_booking_webhook_data_reminder.rb +18 -0
- data/lib/coss/types/scheduling_booking_webhook_data_reminder_anchor.rb +18 -0
- data/lib/coss/types/scheduling_booking_webhook_data_status.rb +15 -0
- data/lib/coss/types/scheduling_booking_webhook_event.rb +19 -0
- data/lib/coss/types/scheduling_booking_webhook_event_object.rb +11 -0
- data/lib/coss/types/scheduling_booking_webhook_event_type.rb +23 -0
- data/lib/coss/types/scheduling_booking_window.rb +15 -0
- data/lib/coss/types/scheduling_booking_window_days.rb +11 -0
- data/lib/coss/types/scheduling_booking_window_days_kind.rb +11 -0
- data/lib/coss/types/scheduling_booking_window_from.rb +13 -0
- data/lib/coss/types/scheduling_booking_window_from_kind.rb +11 -0
- data/lib/coss/types/scheduling_calendar_authorization.rb +11 -0
- data/lib/coss/types/scheduling_calendar_authorization_object.rb +11 -0
- data/lib/coss/types/scheduling_calendar_connection.rb +25 -0
- data/lib/coss/types/scheduling_calendar_connection_calendars_item.rb +17 -0
- data/lib/coss/types/scheduling_calendar_connection_list.rb +13 -0
- data/lib/coss/types/scheduling_calendar_connection_list_object.rb +11 -0
- data/lib/coss/types/scheduling_calendar_connection_object.rb +11 -0
- data/lib/coss/types/scheduling_calendar_connection_provider.rb +15 -0
- data/lib/coss/types/scheduling_calendar_connection_status.rb +12 -0
- data/lib/coss/types/scheduling_calendar_delegation.rb +41 -0
- data/lib/coss/types/scheduling_calendar_delegation_list.rb +13 -0
- data/lib/coss/types/scheduling_calendar_delegation_list_object.rb +11 -0
- data/lib/coss/types/scheduling_calendar_delegation_object.rb +11 -0
- data/lib/coss/types/scheduling_calendar_delegation_provider.rb +12 -0
- data/lib/coss/types/scheduling_calendar_delegation_status.rb +14 -0
- data/lib/coss/types/scheduling_calendar_delegation_webhook_event.rb +19 -0
- data/lib/coss/types/scheduling_calendar_delegation_webhook_event_data.rb +17 -0
- data/lib/coss/types/scheduling_calendar_delegation_webhook_event_object.rb +11 -0
- data/lib/coss/types/scheduling_calendar_delegation_webhook_event_type.rb +12 -0
- data/lib/coss/types/scheduling_calendar_webhook_event.rb +19 -0
- data/lib/coss/types/scheduling_calendar_webhook_event_data.rb +16 -0
- data/lib/coss/types/scheduling_calendar_webhook_event_object.rb +11 -0
- data/lib/coss/types/scheduling_calendar_webhook_event_type.rb +13 -0
- data/lib/coss/types/scheduling_cancelled_series.rb +13 -0
- data/lib/coss/types/scheduling_cancelled_series_object.rb +11 -0
- data/lib/coss/types/scheduling_event_type.rb +75 -0
- data/lib/coss/types/scheduling_event_type_host_calendar_details.rb +12 -0
- data/lib/coss/types/scheduling_event_type_host_filter_value.rb +13 -0
- data/lib/coss/types/scheduling_event_type_host_input.rb +15 -0
- data/lib/coss/types/scheduling_event_type_host_input_role.rb +12 -0
- data/lib/coss/types/scheduling_event_type_hosts_item.rb +15 -0
- data/lib/coss/types/scheduling_event_type_hosts_item_role.rb +12 -0
- data/lib/coss/types/scheduling_event_type_kind.rb +14 -0
- data/lib/coss/types/scheduling_event_type_list.rb +13 -0
- data/lib/coss/types/scheduling_event_type_list_object.rb +11 -0
- data/lib/coss/types/scheduling_event_type_notifications_value.rb +13 -0
- data/lib/coss/types/scheduling_event_type_object.rb +11 -0
- data/lib/coss/types/scheduling_event_type_status.rb +12 -0
- data/lib/coss/types/scheduling_guest_input.rb +12 -0
- data/lib/coss/types/scheduling_host.rb +37 -0
- data/lib/coss/types/scheduling_host_attributes_value.rb +13 -0
- data/lib/coss/types/scheduling_host_list.rb +13 -0
- data/lib/coss/types/scheduling_host_list_object.rb +11 -0
- data/lib/coss/types/scheduling_host_location.rb +18 -0
- data/lib/coss/types/scheduling_host_location_in_person.rb +9 -0
- data/lib/coss/types/scheduling_host_location_link.rb +9 -0
- data/lib/coss/types/scheduling_host_location_phone.rb +9 -0
- data/lib/coss/types/scheduling_host_object.rb +11 -0
- data/lib/coss/types/scheduling_host_status.rb +12 -0
- data/lib/coss/types/scheduling_limit.rb +14 -0
- data/lib/coss/types/scheduling_limit_period.rb +12 -0
- data/lib/coss/types/scheduling_limit_scope.rb +12 -0
- data/lib/coss/types/scheduling_location.rb +26 -0
- data/lib/coss/types/scheduling_location_google_meet.rb +7 -0
- data/lib/coss/types/scheduling_location_in_person.rb +9 -0
- data/lib/coss/types/scheduling_location_link.rb +9 -0
- data/lib/coss/types/scheduling_location_microsoft_teams.rb +7 -0
- data/lib/coss/types/scheduling_location_phone.rb +9 -0
- data/lib/coss/types/scheduling_location_zoom.rb +9 -0
- data/lib/coss/types/scheduling_question.rb +19 -0
- data/lib/coss/types/scheduling_question_type.rb +18 -0
- data/lib/coss/types/scheduling_reminder.rb +35 -0
- data/lib/coss/types/scheduling_reminder_anchor.rb +18 -0
- data/lib/coss/types/scheduling_reminder_button.rb +12 -0
- data/lib/coss/types/scheduling_reminder_input.rb +35 -0
- data/lib/coss/types/scheduling_reminder_input_anchor.rb +18 -0
- data/lib/coss/types/scheduling_reminder_input_button.rb +12 -0
- data/lib/coss/types/scheduling_reminder_input_only_if.rb +12 -0
- data/lib/coss/types/scheduling_reminder_input_only_if_location_types_item.rb +16 -0
- data/lib/coss/types/scheduling_reminder_input_send_item.rb +15 -0
- data/lib/coss/types/scheduling_reminder_only_if.rb +12 -0
- data/lib/coss/types/scheduling_reminder_send_item.rb +15 -0
- data/lib/coss/types/scheduling_schedule.rb +27 -0
- data/lib/coss/types/scheduling_schedule_list.rb +13 -0
- data/lib/coss/types/scheduling_schedule_list_object.rb +11 -0
- data/lib/coss/types/scheduling_schedule_object.rb +11 -0
- data/lib/coss/types/scheduling_schedule_override.rb +11 -0
- data/lib/coss/types/scheduling_schedule_override_ranges_item.rb +11 -0
- data/lib/coss/types/scheduling_schedule_overrides_item.rb +11 -0
- data/lib/coss/types/scheduling_schedule_overrides_item_ranges_item.rb +11 -0
- data/lib/coss/types/scheduling_schedule_rules_item.rb +13 -0
- data/lib/coss/types/scheduling_series.rb +15 -0
- data/lib/coss/types/scheduling_series_conflicts_item.rb +11 -0
- data/lib/coss/types/scheduling_series_object.rb +11 -0
- data/lib/coss/types/scheduling_series_preview.rb +13 -0
- data/lib/coss/types/scheduling_series_preview_data_item.rb +15 -0
- data/lib/coss/types/scheduling_series_preview_object.rb +11 -0
- data/lib/coss/types/scheduling_session.rb +17 -0
- data/lib/coss/types/scheduling_session_object.rb +11 -0
- data/lib/coss/types/scheduling_settings.rb +29 -0
- data/lib/coss/types/scheduling_settings_calendar_failure_mode.rb +12 -0
- data/lib/coss/types/scheduling_settings_logo.rb +16 -0
- data/lib/coss/types/scheduling_settings_logo_content_type.rb +12 -0
- data/lib/coss/types/scheduling_settings_notifications_value.rb +13 -0
- data/lib/coss/types/scheduling_settings_object.rb +11 -0
- data/lib/coss/types/scheduling_slot.rb +15 -0
- data/lib/coss/types/scheduling_slot_explanation.rb +19 -0
- data/lib/coss/types/scheduling_slot_explanation_hosts_item.rb +17 -0
- data/lib/coss/types/scheduling_slot_explanation_hosts_item_role.rb +12 -0
- data/lib/coss/types/scheduling_slot_explanation_object.rb +11 -0
- data/lib/coss/types/scheduling_slot_list.rb +13 -0
- data/lib/coss/types/scheduling_slot_list_object.rb +11 -0
- data/lib/coss/types/scheduling_weekly_rule.rb +13 -0
- data/lib/coss/types/send_email_request_bcc.rb +1 -0
- data/lib/coss/types/send_email_request_cc.rb +1 -0
- data/lib/coss/types/send_email_request_reply_to.rb +1 -0
- data/lib/coss/types/send_email_request_to.rb +1 -0
- data/lib/coss/types/sign_event_details.rb +1 -0
- data/lib/coss/types/sign_field.rb +1 -0
- data/lib/coss/types/sign_request_webhook_event_data.rb +1 -0
- data/lib/coss/types/sign_signer.rb +1 -0
- data/lib/coss/types/sms_event_data.rb +1 -0
- data/lib/coss/types/sms_suppression.rb +1 -0
- data/lib/coss/types/sms_suppression_check_suppression.rb +1 -0
- data/lib/coss/types/sms_webhook_event_data.rb +2 -0
- data/lib/coss/types/subaccount_quotas.rb +1 -0
- data/lib/coss/types/subaccount_reputation.rb +1 -0
- data/lib/coss/types/subaccount_webhook_event_data.rb +1 -0
- data/lib/coss/types/template_variable_default.rb +1 -0
- data/lib/coss/types/upsert_schedule_request.rb +17 -0
- data/lib/coss/types/usage_meter.rb +7 -1
- data/lib/coss/types/verification_webhook_event_data.rb +1 -0
- data/lib/coss/types/verification_webhook_event_data_failure.rb +1 -0
- data/lib/coss/types/verify_settings.rb +26 -0
- data/lib/coss/types/verify_settings_object.rb +11 -0
- data/lib/coss/types/webhook_test_event_event.rb +6 -0
- data/lib/coss/verify/client.rb +7 -0
- data/lib/coss/verify/settings/client.rb +93 -0
- data/lib/coss/verify/settings/types/update_verify_settings_request.rb +25 -0
- data/lib/coss/version.rb +1 -1
- data/lib/coss/webhook_endpoints/types/create_webhook_endpoint_request_event_types_item.rb +18 -0
- data/lib/coss/webhook_endpoints/types/update_webhook_endpoint_request_event_types_item.rb +18 -0
- data/lib/coss/webhook_events/types/create_test_webhook_event_request_type.rb +18 -0
- data/lib/coss/webhook_listeners/types/create_webhook_listener_request_event_types_item.rb +18 -0
- data/lib/coss.rb +282 -0
- data/reference.md +5626 -224
- metadata +283 -1
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Coss
|
|
4
|
+
module Scheduling
|
|
5
|
+
module EventTypes
|
|
6
|
+
module Types
|
|
7
|
+
class CreateEventTypeRequest < Internal::Types::Model
|
|
8
|
+
field :uid, -> { String }, optional: true, nullable: false
|
|
9
|
+
|
|
10
|
+
field :kind, -> { Coss::Scheduling::EventTypes::Types::CreateEventTypeRequestKind }, optional: true, nullable: false
|
|
11
|
+
|
|
12
|
+
field :description, -> { String }, optional: true, nullable: false
|
|
13
|
+
|
|
14
|
+
field :title, -> { String }, optional: false, nullable: false
|
|
15
|
+
|
|
16
|
+
field :duration_minutes, -> { Integer }, optional: false, nullable: false
|
|
17
|
+
|
|
18
|
+
field :duration_options, -> { Internal::Types::Array[Integer] }, optional: true, nullable: false
|
|
19
|
+
|
|
20
|
+
field :step_minutes, -> { Integer }, optional: true, nullable: false
|
|
21
|
+
|
|
22
|
+
field :grid_time_zone, -> { String }, optional: true, nullable: false
|
|
23
|
+
|
|
24
|
+
field :buffer_before_minutes, -> { Integer }, optional: true, nullable: false
|
|
25
|
+
|
|
26
|
+
field :buffer_after_minutes, -> { Integer }, optional: true, nullable: false
|
|
27
|
+
|
|
28
|
+
field :min_notice_minutes, -> { Integer }, optional: true, nullable: false
|
|
29
|
+
|
|
30
|
+
field :booking_window, -> { Coss::Types::SchedulingBookingWindow }, optional: true, nullable: false
|
|
31
|
+
|
|
32
|
+
field :limits, -> { Internal::Types::Array[Coss::Types::SchedulingLimit] }, optional: true, nullable: false
|
|
33
|
+
|
|
34
|
+
field :capacity, -> { Integer }, optional: true, nullable: false
|
|
35
|
+
|
|
36
|
+
field :requires_approval, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
37
|
+
|
|
38
|
+
field :approval_ttl_minutes, -> { Integer }, optional: true, nullable: false
|
|
39
|
+
|
|
40
|
+
field :hold_ttl_seconds, -> { Integer }, optional: true, nullable: false
|
|
41
|
+
|
|
42
|
+
field :cancel_notice_minutes, -> { Integer }, optional: true, nullable: false
|
|
43
|
+
|
|
44
|
+
field :reschedule_notice_minutes, -> { Integer }, optional: true, nullable: false
|
|
45
|
+
|
|
46
|
+
field :max_guests, -> { Integer }, optional: true, nullable: false
|
|
47
|
+
|
|
48
|
+
field :max_active_bookings_per_attendee, -> { Integer }, optional: true, nullable: false
|
|
49
|
+
|
|
50
|
+
field :host_calendar_details, -> { Coss::Scheduling::EventTypes::Types::CreateEventTypeRequestHostCalendarDetails }, optional: true, nullable: false
|
|
51
|
+
|
|
52
|
+
field :questions, -> { Internal::Types::Array[Coss::Types::SchedulingQuestion] }, optional: true, nullable: false
|
|
53
|
+
|
|
54
|
+
field :locations, -> { Internal::Types::Array[Coss::Types::SchedulingLocation] }, optional: true, nullable: false
|
|
55
|
+
|
|
56
|
+
field :host_filter, -> { Internal::Types::Hash[String, Coss::Scheduling::EventTypes::Types::CreateEventTypeRequestHostFilterValue] }, optional: true, nullable: false
|
|
57
|
+
|
|
58
|
+
field :notifications, -> { Internal::Types::Hash[String, Coss::Scheduling::EventTypes::Types::CreateEventTypeRequestNotificationsValue] }, optional: true, nullable: false
|
|
59
|
+
|
|
60
|
+
field :reminders, -> { Internal::Types::Array[Coss::Types::SchedulingReminderInput] }, optional: true, nullable: false
|
|
61
|
+
|
|
62
|
+
field :metadata, -> { Internal::Types::Hash[String, String] }, optional: true, nullable: false
|
|
63
|
+
|
|
64
|
+
field :hosts, -> { Internal::Types::Array[Coss::Types::SchedulingEventTypeHostInput] }, optional: true, nullable: false
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Coss
|
|
4
|
+
module Scheduling
|
|
5
|
+
module EventTypes
|
|
6
|
+
module Types
|
|
7
|
+
module CreateEventTypeRequestHostCalendarDetails
|
|
8
|
+
extend Coss::Internal::Types::Enum
|
|
9
|
+
|
|
10
|
+
NEUTRAL = "neutral"
|
|
11
|
+
FULL = "full"
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Coss
|
|
4
|
+
module Scheduling
|
|
5
|
+
module EventTypes
|
|
6
|
+
module Types
|
|
7
|
+
class CreateEventTypeRequestHostFilterValue < Internal::Types::Model
|
|
8
|
+
extend Coss::Internal::Types::Union
|
|
9
|
+
|
|
10
|
+
member -> { String }
|
|
11
|
+
|
|
12
|
+
member -> { Internal::Types::Array[String] }
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Coss
|
|
4
|
+
module Scheduling
|
|
5
|
+
module EventTypes
|
|
6
|
+
module Types
|
|
7
|
+
module CreateEventTypeRequestKind
|
|
8
|
+
extend Coss::Internal::Types::Enum
|
|
9
|
+
|
|
10
|
+
ONE_ON_ONE = "one_on_one"
|
|
11
|
+
POOL = "pool"
|
|
12
|
+
COLLECTIVE = "collective"
|
|
13
|
+
GROUP = "group"
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Coss
|
|
4
|
+
module Scheduling
|
|
5
|
+
module EventTypes
|
|
6
|
+
module Types
|
|
7
|
+
class CreateEventTypeRequestNotificationsValue < 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,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Coss
|
|
4
|
+
module Scheduling
|
|
5
|
+
module EventTypes
|
|
6
|
+
module Types
|
|
7
|
+
class GetEventTypesRequest < Internal::Types::Model
|
|
8
|
+
field :event_type, -> { String }, optional: false, nullable: false
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Coss
|
|
4
|
+
module Scheduling
|
|
5
|
+
module EventTypes
|
|
6
|
+
module Types
|
|
7
|
+
class ListEventTypesRequest < Internal::Types::Model
|
|
8
|
+
field :limit, -> { Integer }, optional: true, nullable: false
|
|
9
|
+
|
|
10
|
+
field :after, -> { String }, optional: true, nullable: false
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Coss
|
|
4
|
+
module Scheduling
|
|
5
|
+
module EventTypes
|
|
6
|
+
module Types
|
|
7
|
+
class UpdateEventTypeRequest < Internal::Types::Model
|
|
8
|
+
field :event_type, -> { String }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :uid, -> { String }, optional: true, nullable: false
|
|
11
|
+
|
|
12
|
+
field :description, -> { String }, optional: true, nullable: false
|
|
13
|
+
|
|
14
|
+
field :title, -> { String }, optional: true, nullable: false
|
|
15
|
+
|
|
16
|
+
field :duration_minutes, -> { Integer }, optional: true, nullable: false
|
|
17
|
+
|
|
18
|
+
field :duration_options, -> { Internal::Types::Array[Integer] }, optional: true, nullable: false
|
|
19
|
+
|
|
20
|
+
field :step_minutes, -> { Integer }, optional: true, nullable: false
|
|
21
|
+
|
|
22
|
+
field :grid_time_zone, -> { String }, optional: true, nullable: false
|
|
23
|
+
|
|
24
|
+
field :buffer_before_minutes, -> { Integer }, optional: true, nullable: false
|
|
25
|
+
|
|
26
|
+
field :buffer_after_minutes, -> { Integer }, optional: true, nullable: false
|
|
27
|
+
|
|
28
|
+
field :min_notice_minutes, -> { Integer }, optional: true, nullable: false
|
|
29
|
+
|
|
30
|
+
field :booking_window, -> { Coss::Types::SchedulingBookingWindow }, optional: true, nullable: false
|
|
31
|
+
|
|
32
|
+
field :limits, -> { Internal::Types::Array[Coss::Types::SchedulingLimit] }, optional: true, nullable: false
|
|
33
|
+
|
|
34
|
+
field :capacity, -> { Integer }, optional: true, nullable: false
|
|
35
|
+
|
|
36
|
+
field :requires_approval, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
37
|
+
|
|
38
|
+
field :approval_ttl_minutes, -> { Integer }, optional: true, nullable: false
|
|
39
|
+
|
|
40
|
+
field :hold_ttl_seconds, -> { Integer }, optional: true, nullable: false
|
|
41
|
+
|
|
42
|
+
field :cancel_notice_minutes, -> { Integer }, optional: true, nullable: false
|
|
43
|
+
|
|
44
|
+
field :reschedule_notice_minutes, -> { Integer }, optional: true, nullable: false
|
|
45
|
+
|
|
46
|
+
field :max_guests, -> { Integer }, optional: true, nullable: false
|
|
47
|
+
|
|
48
|
+
field :max_active_bookings_per_attendee, -> { Integer }, optional: true, nullable: false
|
|
49
|
+
|
|
50
|
+
field :host_calendar_details, -> { Coss::Scheduling::EventTypes::Types::UpdateEventTypeRequestHostCalendarDetails }, optional: true, nullable: false
|
|
51
|
+
|
|
52
|
+
field :questions, -> { Internal::Types::Array[Coss::Types::SchedulingQuestion] }, optional: true, nullable: false
|
|
53
|
+
|
|
54
|
+
field :locations, -> { Internal::Types::Array[Coss::Types::SchedulingLocation] }, optional: true, nullable: false
|
|
55
|
+
|
|
56
|
+
field :host_filter, -> { Internal::Types::Hash[String, Coss::Scheduling::EventTypes::Types::UpdateEventTypeRequestHostFilterValue] }, optional: true, nullable: false
|
|
57
|
+
|
|
58
|
+
field :notifications, -> { Internal::Types::Hash[String, Coss::Scheduling::EventTypes::Types::UpdateEventTypeRequestNotificationsValue] }, optional: true, nullable: false
|
|
59
|
+
|
|
60
|
+
field :reminders, -> { Internal::Types::Array[Coss::Types::SchedulingReminderInput] }, optional: true, nullable: false
|
|
61
|
+
|
|
62
|
+
field :metadata, -> { Internal::Types::Hash[String, String] }, optional: true, nullable: false
|
|
63
|
+
|
|
64
|
+
field :status, -> { Coss::Scheduling::EventTypes::Types::UpdateEventTypeRequestStatus }, optional: true, nullable: false
|
|
65
|
+
|
|
66
|
+
field :hosts, -> { Internal::Types::Array[Coss::Types::SchedulingEventTypeHostInput] }, optional: true, nullable: false
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Coss
|
|
4
|
+
module Scheduling
|
|
5
|
+
module EventTypes
|
|
6
|
+
module Types
|
|
7
|
+
module UpdateEventTypeRequestHostCalendarDetails
|
|
8
|
+
extend Coss::Internal::Types::Enum
|
|
9
|
+
|
|
10
|
+
NEUTRAL = "neutral"
|
|
11
|
+
FULL = "full"
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Coss
|
|
4
|
+
module Scheduling
|
|
5
|
+
module EventTypes
|
|
6
|
+
module Types
|
|
7
|
+
class UpdateEventTypeRequestHostFilterValue < Internal::Types::Model
|
|
8
|
+
extend Coss::Internal::Types::Union
|
|
9
|
+
|
|
10
|
+
member -> { String }
|
|
11
|
+
|
|
12
|
+
member -> { Internal::Types::Array[String] }
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Coss
|
|
4
|
+
module Scheduling
|
|
5
|
+
module EventTypes
|
|
6
|
+
module Types
|
|
7
|
+
class UpdateEventTypeRequestNotificationsValue < 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,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Coss
|
|
4
|
+
module Scheduling
|
|
5
|
+
module EventTypes
|
|
6
|
+
module Types
|
|
7
|
+
module UpdateEventTypeRequestStatus
|
|
8
|
+
extend Coss::Internal::Types::Enum
|
|
9
|
+
|
|
10
|
+
ACTIVE = "active"
|
|
11
|
+
ARCHIVED = "archived"
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Coss
|
|
4
|
+
module Scheduling
|
|
5
|
+
module Holds
|
|
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
|
+
# Keeps a slot for a while (the event type's `hold_ttl_seconds`) so you can take payment, then confirm it.
|
|
15
|
+
# Answers with a `held` booking, which isn't charged and sends nothing.
|
|
16
|
+
#
|
|
17
|
+
# @param request_options [Hash]
|
|
18
|
+
# @param params [Coss::Scheduling::Holds::Types::CreateHoldRequest]
|
|
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, nil] :idempotency_key
|
|
25
|
+
#
|
|
26
|
+
# @example
|
|
27
|
+
# client.scheduling.holds.create(
|
|
28
|
+
# idempotency_key: "welcome-user-123",
|
|
29
|
+
# event_type: "evtype_01kd2m9a0b1c2d3e4f5g6h7j8m",
|
|
30
|
+
# start: "2027-01-04T15:00:00.000Z",
|
|
31
|
+
# attendee: {
|
|
32
|
+
# uid: "patient_77",
|
|
33
|
+
# time_zone: "UTC"
|
|
34
|
+
# }
|
|
35
|
+
# )
|
|
36
|
+
#
|
|
37
|
+
# @return [Coss::Types::SchedulingBooking]
|
|
38
|
+
def create(request_options: {}, **params)
|
|
39
|
+
params = Coss::Internal::Types::Utils.normalize_keys(params)
|
|
40
|
+
request_data = Coss::Scheduling::Holds::Types::CreateHoldRequest.new(params).to_h
|
|
41
|
+
non_body_param_names = %w[Idempotency-Key]
|
|
42
|
+
body = request_data.except(*non_body_param_names)
|
|
43
|
+
|
|
44
|
+
headers = {}
|
|
45
|
+
headers["Idempotency-Key"] = params[:idempotency_key] if params[:idempotency_key]
|
|
46
|
+
|
|
47
|
+
request = Coss::Internal::JSON::Request.new(
|
|
48
|
+
base_url: request_options[:base_url],
|
|
49
|
+
method: "POST",
|
|
50
|
+
path: "v1/scheduling/holds",
|
|
51
|
+
headers: headers,
|
|
52
|
+
body: body,
|
|
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::SchedulingBooking.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
|
+
# Turns a hold into a booking. Always succeeds before the hold expires. Repeating it is safe.
|
|
70
|
+
#
|
|
71
|
+
# @param request_options [Hash]
|
|
72
|
+
# @param params [Coss::Scheduling::Holds::Types::ConfirmHoldRequest]
|
|
73
|
+
# @option request_options [String] :base_url
|
|
74
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
75
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
76
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
77
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
78
|
+
# @option params [String] :id
|
|
79
|
+
#
|
|
80
|
+
# @example
|
|
81
|
+
# client.scheduling.holds.confirm(
|
|
82
|
+
# id: "book_01kd2m9a0b1c2d3e4f5g6h7j8m",
|
|
83
|
+
# if_still_free: true
|
|
84
|
+
# )
|
|
85
|
+
#
|
|
86
|
+
# @return [Coss::Types::SchedulingBooking]
|
|
87
|
+
def confirm(request_options: {}, **params)
|
|
88
|
+
params = Coss::Internal::Types::Utils.normalize_keys(params)
|
|
89
|
+
request_data = Coss::Scheduling::Holds::Types::ConfirmHoldRequest.new(params).to_h
|
|
90
|
+
non_body_param_names = %w[id]
|
|
91
|
+
body = request_data.except(*non_body_param_names)
|
|
92
|
+
|
|
93
|
+
headers = { "Idempotency-Key" => Coss::Internal::IdempotencyKey.generate }
|
|
94
|
+
request = Coss::Internal::JSON::Request.new(
|
|
95
|
+
base_url: request_options[:base_url],
|
|
96
|
+
method: "POST",
|
|
97
|
+
path: "v1/scheduling/holds/#{URI.encode_uri_component(params[:id].to_s)}/confirm",
|
|
98
|
+
headers: headers,
|
|
99
|
+
body: body,
|
|
100
|
+
request_options: request_options
|
|
101
|
+
)
|
|
102
|
+
begin
|
|
103
|
+
response = @client.send(request)
|
|
104
|
+
rescue Net::HTTPRequestTimeout
|
|
105
|
+
raise Coss::Errors::TimeoutError
|
|
106
|
+
end
|
|
107
|
+
code = response.code.to_i
|
|
108
|
+
if code.between?(200, 299)
|
|
109
|
+
(response.body.to_s.empty? ? nil : Coss::Types::SchedulingBooking.load(response.body))
|
|
110
|
+
else
|
|
111
|
+
error_class = Coss::Errors::ResponseError.subclass_for_code(code)
|
|
112
|
+
raise error_class.new(response.body, code: code)
|
|
113
|
+
end
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
# Gives the slot back early.
|
|
117
|
+
#
|
|
118
|
+
# @param request_options [Hash]
|
|
119
|
+
# @param params [Hash]
|
|
120
|
+
# @option request_options [String] :base_url
|
|
121
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
122
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
123
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
124
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
125
|
+
# @option params [String] :id
|
|
126
|
+
#
|
|
127
|
+
# @example
|
|
128
|
+
# client.scheduling.holds.release(id: "book_01kd2m9a0b1c2d3e4f5g6h7j8m")
|
|
129
|
+
#
|
|
130
|
+
# @return [Coss::Types::SchedulingBooking]
|
|
131
|
+
def release(request_options: {}, **params)
|
|
132
|
+
params = Coss::Internal::Types::Utils.normalize_keys(params)
|
|
133
|
+
request = Coss::Internal::JSON::Request.new(
|
|
134
|
+
base_url: request_options[:base_url],
|
|
135
|
+
method: "DELETE",
|
|
136
|
+
path: "v1/scheduling/holds/#{URI.encode_uri_component(params[:id].to_s)}",
|
|
137
|
+
request_options: request_options
|
|
138
|
+
)
|
|
139
|
+
begin
|
|
140
|
+
response = @client.send(request)
|
|
141
|
+
rescue Net::HTTPRequestTimeout
|
|
142
|
+
raise Coss::Errors::TimeoutError
|
|
143
|
+
end
|
|
144
|
+
code = response.code.to_i
|
|
145
|
+
if code.between?(200, 299)
|
|
146
|
+
(response.body.to_s.empty? ? nil : Coss::Types::SchedulingBooking.load(response.body))
|
|
147
|
+
else
|
|
148
|
+
error_class = Coss::Errors::ResponseError.subclass_for_code(code)
|
|
149
|
+
raise error_class.new(response.body, code: code)
|
|
150
|
+
end
|
|
151
|
+
end
|
|
152
|
+
end
|
|
153
|
+
end
|
|
154
|
+
end
|
|
155
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Coss
|
|
4
|
+
module Scheduling
|
|
5
|
+
module Holds
|
|
6
|
+
module Types
|
|
7
|
+
class ConfirmHoldRequest < Internal::Types::Model
|
|
8
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :if_still_free, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Coss
|
|
4
|
+
module Scheduling
|
|
5
|
+
module Holds
|
|
6
|
+
module Types
|
|
7
|
+
class CreateHoldRequest < Internal::Types::Model
|
|
8
|
+
field :idempotency_key, -> { String }, optional: true, nullable: false, api_name: "Idempotency-Key"
|
|
9
|
+
|
|
10
|
+
field :event_type, -> { String }, optional: false, nullable: false
|
|
11
|
+
|
|
12
|
+
field :start, -> { String }, optional: false, nullable: false
|
|
13
|
+
|
|
14
|
+
field :host, -> { String }, optional: true, nullable: false
|
|
15
|
+
|
|
16
|
+
field :attributes, -> { Internal::Types::Hash[String, Coss::Scheduling::Holds::Types::CreateHoldRequestAttributesValue] }, optional: true, nullable: false
|
|
17
|
+
|
|
18
|
+
field :duration_minutes, -> { Integer }, optional: true, nullable: false
|
|
19
|
+
|
|
20
|
+
field :attendee, -> { Coss::Types::SchedulingAttendeeInput }, optional: false, nullable: false
|
|
21
|
+
|
|
22
|
+
field :guests, -> { Internal::Types::Array[Coss::Types::SchedulingGuestInput] }, optional: true, nullable: false
|
|
23
|
+
|
|
24
|
+
field :answers, -> { Internal::Types::Hash[String, Coss::Scheduling::Holds::Types::CreateHoldRequestAnswersValue] }, optional: true, nullable: false
|
|
25
|
+
|
|
26
|
+
field :location, -> { Coss::Scheduling::Holds::Types::CreateHoldRequestLocation }, optional: true, nullable: false
|
|
27
|
+
|
|
28
|
+
field :metadata, -> { Internal::Types::Hash[String, String] }, optional: true, nullable: false
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Coss
|
|
4
|
+
module Scheduling
|
|
5
|
+
module Holds
|
|
6
|
+
module Types
|
|
7
|
+
class CreateHoldRequestAnswersValue < Internal::Types::Model
|
|
8
|
+
extend Coss::Internal::Types::Union
|
|
9
|
+
|
|
10
|
+
member -> { String }
|
|
11
|
+
|
|
12
|
+
member -> { Internal::Types::Array[String] }
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Coss
|
|
4
|
+
module Scheduling
|
|
5
|
+
module Holds
|
|
6
|
+
module Types
|
|
7
|
+
class CreateHoldRequestAttributesValue < Internal::Types::Model
|
|
8
|
+
extend Coss::Internal::Types::Union
|
|
9
|
+
|
|
10
|
+
member -> { String }
|
|
11
|
+
|
|
12
|
+
member -> { Internal::Types::Array[String] }
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Coss
|
|
4
|
+
module Scheduling
|
|
5
|
+
module Holds
|
|
6
|
+
module Types
|
|
7
|
+
# One of the event type's `locations`, with your link filled in if it has none.
|
|
8
|
+
class CreateHoldRequestLocation < Internal::Types::Model
|
|
9
|
+
extend Coss::Internal::Types::Union
|
|
10
|
+
|
|
11
|
+
discriminant :type
|
|
12
|
+
|
|
13
|
+
member -> { Coss::Scheduling::Holds::Types::CreateHoldRequestLocationLink }, key: "LINK"
|
|
14
|
+
|
|
15
|
+
member -> { Coss::Scheduling::Holds::Types::CreateHoldRequestLocationPhone }, key: "PHONE"
|
|
16
|
+
|
|
17
|
+
member -> { Coss::Scheduling::Holds::Types::CreateHoldRequestLocationInPerson }, key: "IN_PERSON"
|
|
18
|
+
|
|
19
|
+
member -> { Coss::Scheduling::Holds::Types::CreateHoldRequestLocationGoogleMeet }, key: "GOOGLE_MEET"
|
|
20
|
+
|
|
21
|
+
member -> { Coss::Scheduling::Holds::Types::CreateHoldRequestLocationMicrosoftTeams }, key: "MICROSOFT_TEAMS"
|
|
22
|
+
|
|
23
|
+
member -> { Coss::Scheduling::Holds::Types::CreateHoldRequestLocationZoom }, key: "ZOOM"
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Coss
|
|
4
|
+
module Scheduling
|
|
5
|
+
module Holds
|
|
6
|
+
module Types
|
|
7
|
+
class CreateHoldRequestLocationInPerson < Internal::Types::Model
|
|
8
|
+
field :address, -> { String }, optional: true, nullable: false
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Coss
|
|
4
|
+
module Scheduling
|
|
5
|
+
module Holds
|
|
6
|
+
module Types
|
|
7
|
+
class CreateHoldRequestLocationPhone < Internal::Types::Model
|
|
8
|
+
field :number, -> { String }, optional: true, nullable: false
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|