lib/seam.rb in seam-2.0.0a2 vs lib/seam.rb in seam-2.0.0b0

- old
+ new

@@ -1,74 +1,25 @@ # frozen_string_literal: true -require_relative "seam/version" -require_relative "seam/lts_version" -require_relative "seam/request" require_relative "seam/logger" -require_relative "seam/client" -require_relative "seam/clients/base_client" -require_relative "seam/resources/base_resource" -require_relative "seam/resources/resource_error" -require_relative "seam/resources/resource_warning" -require_relative "seam/resources/resource_errors_support" -require_relative "seam/resources/resource_warnings_support" -require_relative "seam/resources/access_code" -require_relative "seam/resources/acs_access_group" -require_relative "seam/resources/acs_credential" -require_relative "seam/resources/acs_credential_pool" -require_relative "seam/resources/acs_credential_provisioning_automation" -require_relative "seam/resources/acs_entrance" -require_relative "seam/resources/acs_system" -require_relative "seam/resources/acs_user" -require_relative "seam/resources/action_attempt" -require_relative "seam/resources/client_session" -require_relative "seam/resources/climate_setting_schedule" -require_relative "seam/resources/connect_webview" -require_relative "seam/resources/connected_account" -require_relative "seam/resources/device" -require_relative "seam/resources/device_provider" -require_relative "seam/resources/enrollment_automation" -require_relative "seam/resources/event" -require_relative "seam/resources/network" -require_relative "seam/resources/noise_threshold" -require_relative "seam/resources/phone" -require_relative "seam/resources/service_health" -require_relative "seam/resources/unmanaged_access_code" -require_relative "seam/resources/unmanaged_device" -require_relative "seam/resources/user_identity" -require_relative "seam/resources/webhook" -require_relative "seam/resources/workspace" -require_relative "seam/clients/access_codes" -require_relative "seam/clients/access_codes_simulate" -require_relative "seam/clients/access_codes_unmanaged" -require_relative "seam/clients/acs_access_groups" -require_relative "seam/clients/acs" -require_relative "seam/clients/acs_credential_pools" -require_relative "seam/clients/acs_credential_provisioning_automations" -require_relative "seam/clients/acs_credentials" -require_relative "seam/clients/acs_entrances" -require_relative "seam/clients/acs_systems" -require_relative "seam/clients/acs_users" -require_relative "seam/clients/action_attempts" -require_relative "seam/clients/client_sessions" -require_relative "seam/clients/connect_webviews" -require_relative "seam/clients/connected_accounts" -require_relative "seam/clients/devices" -require_relative "seam/clients/devices_simulate" -require_relative "seam/clients/devices_unmanaged" -require_relative "seam/clients/events" -require_relative "seam/clients/locks" -require_relative "seam/clients/networks" -require_relative "seam/clients/noise_sensors_noise_thresholds" -require_relative "seam/clients/noise_sensors" -require_relative "seam/clients/noise_sensors_simulate" -require_relative "seam/clients/phones" -require_relative "seam/clients/phones_simulate" -require_relative "seam/clients/thermostats_climate_setting_schedules" -require_relative "seam/clients/thermostats" -require_relative "seam/clients/user_identities" -require_relative "seam/clients/user_identities_enrollment_automations" -require_relative "seam/clients/webhooks" -require_relative "seam/clients/workspaces" +require_relative "seam/http" +require_relative "seam/http_multi_workspace" +require_relative "seam/wait_for_action_attempt" +require_relative "seam/webhook" module Seam + def self.new(**args) + Http.new(**args) + end + + def self.from_api_key(api_key, endpoint: nil, wait_for_action_attempt: false) + Http.from_api_key(api_key, endpoint: endpoint, wait_for_action_attempt: wait_for_action_attempt) + end + + def self.from_personal_access_token(personal_access_token, workspace_id, endpoint: nil, wait_for_action_attempt: false) + Http.from_personal_access_token(personal_access_token, workspace_id, endpoint: endpoint, wait_for_action_attempt: wait_for_action_attempt) + end + + def self.lts_version + Seam::LTS_VERSION + end end